Documentation
¶
Overview ¶
Package types 实现了chain33基础结构体、接口、常量等的定义
Index ¶
- Constants
- Variables
- func AssertConfig(check interface{})
- func BuildQueryType(prefix string, methods map[string]reflect.Method) (map[string]reflect.Method, map[string]reflect.Type)
- func Bytes2Str(b []byte) string
- func CalcAddrTxsCountKey(addr string) []byte
- func CalcConsensusParaTxsKey(key []byte) []byte
- func CalcLocalPrefix(execer []byte) []byte
- func CalcRollbackKey(execer []byte, hash []byte) []byte
- func CalcStatePrefix(execer []byte) []byte
- func CalcTxAddrDirHashKey(addr string, flag int32, heightindex string) []byte
- func CalcTxAddrHashKey(addr string, heightindex string) []byte
- func CalcTxFeeAddrDirHashKey(addr string, flag int32, heightindex string) []byte
- func CalcTxShortHash(hash []byte) string
- func CalcTxShortKey(hash []byte) []byte
- func CallCreateTx(c *Chain33Config, execName, action string, param Message) ([]byte, error)
- func CallCreateTxJSON(c *Chain33Config, execName, action string, param json.RawMessage) ([]byte, error)
- func CallExecNewTx(c *Chain33Config, execName, action string, param interface{}) ([]byte, error)
- func CheckAmount(amount, coinPrecision int64) bool
- func CheckConsensusParaTxsKey(key []byte) bool
- func CheckSign(data []byte, execer string, sign *Signature, blockHeight int64) bool
- func CheckTxBlockedAccount(cfg *Chain33Config, height int64, tx *Transaction) error
- func CheckTxBlockedAccountImmediate(cfg *Chain33Config, height int64, tx *Transaction) error
- func CheckTxsBlockedAccount(cfg *Chain33Config, height int64, txs []*Transaction) error
- func CheckTxsBlockedAccountImmediate(cfg *Chain33Config, height int64, txs []*Transaction) error
- func Clone(data proto.Message) proto.Message
- func ConfigKey(key string) string
- func Decode(data []byte, msg proto.Message) error
- func DecodeLog(execer []byte, ty int64, data []byte) (interface{}, error)
- func Encode(data proto.Message) []byte
- func EncodeSignID(cryptoID, addressID int32) int32
- func EncodeWithBuffer(data proto.Message, buf *proto.Buffer) []byte
- func EthSignedTxEnvelope(tx *Transaction) (etx *etypes.Transaction, ok bool)
- func ExtractAddressID(signID int32) int32
- func ExtractCryptoID(signID int32) int32
- func FindExecer(key []byte) (execer []byte, err error)
- func FlatConfig(conf map[string]interface{}) map[string]interface{}
- func FormatAmount2FixPrecisionDisplay(amount, coinPrecision int64) string
- func FormatAmount2FloatDisplay(amount, coinPrecision int64, round bool) string
- func FormatFloatDisplay2Value(amount float64, coinPrecision int64) (int64, error)
- func FormatTxEncode(c *Chain33Config, execName string, tx *Transaction) ([]byte, error)
- func FreeTx(txs ...*Transaction)
- func GetActionValue(action interface{}, funclist map[string]reflect.Method) (vname string, vty int32, v reflect.Value, err error)
- func GetDefaultCfgstring() string
- func GetEventName(event int) string
- func GetExecKey(key []byte) (string, bool)
- func GetExecName(exec, paraName string) string
- func GetLocalDBKeyList() [][]byte
- func GetLogName(execer []byte, ty int64) string
- func GetParaExecName(execer []byte) []byte
- func GetParaExecTitleName(exec string) (string, bool)
- func GetRealExecName(execer []byte) []byte
- func GetSignName(execer string, signID int) string
- func GetSignType(execer string, name string) int
- func GetTxHeight(cfg *Chain33Config, valid int64, height int64) int64
- func GetTxTimeInterval() time.Duration
- func InitCfg(path string) (*Config, *ConfigSubModule)
- func InitCfgString(cfgstring string) (*Config, *ConfigSubModule)
- func IsAllowExecName(name []byte, execer []byte) bool
- func IsAssetsTransfer(payload interface{}) bool
- func IsEthCryptoID(txSignID int32) bool
- func IsEthSignID(txSignID int32) bool
- func IsForward2MainChainTx(cfg *Chain33Config, tx *Transaction) bool
- func IsNil(a interface{}) (ok bool)
- func IsNilP(a interface{}) bool
- func IsOK(list []reflect.Value, n int) bool
- func IsParaExecName(exec string) bool
- func IsSpecificParaExecName(title, exec string) bool
- func JSONToPB(data []byte, msg proto.Message) error
- func JSONToPBUTF8(data []byte, msg proto.Message) error
- func ListActionMethod(action interface{}, funclist []interface{}) map[string]reflect.Method
- func ListMethod(action interface{}) map[string]reflect.Method
- func ListMethodByType(typ reflect.Type) map[string]reflect.Method
- func ListType(tys []interface{}) map[string]reflect.Type
- func ManageKey(key string) string
- func MergeCfg(cfgstring, cfgdefault string) string
- func MergeConfig(conf map[string]interface{}, def map[string]interface{}) string
- func ModifySubConfig(sub []byte, key string, value interface{}) ([]byte, error)
- func MustDecode(data []byte, v interface{})
- func MustPBToJSON(req Message) []byte
- func Now() time.Time
- func PBToJSON(r Message) ([]byte, error)
- func PBToJSONUTF8(r Message) ([]byte, error)
- func ParseExpire(expire string) (int64, error)
- func ReadFile(path string) string
- func RegExec(name string, create Create)
- func RegExecInit(cfg *Chain33Config)
- func RegFork(name string, create Create)
- func RegForkInit(cfg *Chain33Config)
- func RegisterChain33Server(s *grpc.Server, srv Chain33Server)
- func RegisterP2PgserviceServer(s *grpc.Server, srv P2PgserviceServer)
- func RegistorExecutor(exec string, util ExecutorType)
- func SetCliSysParam(title string, cfg *Chain33Config)
- func SetTimeDelta(dt int64)
- func Since(t time.Time) time.Duration
- func Size(data proto.Message) int
- func StatisticFlag() []byte
- func Str2Bytes(s string) []byte
- func TotalFeeKey(hash []byte) []byte
- func TxCacheSet(tx *Transaction, txc *TransactionCache)
- func VerifySignature(cfg *Chain33Config, block *Block, txs []*Transaction) bool
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAddr() string
- func (x *Account) GetBalance() int64
- func (x *Account) GetCurrency() int32
- func (x *Account) GetFrozen() int64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountBlacklistConfig
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AccountInfo) GetAddr() string
- func (x *AccountInfo) GetPrivateKey() string
- func (x *AccountInfo) GetPubKey() string
- func (x *AccountInfo) GetSeed() string
- func (*AccountInfo) ProtoMessage()
- func (x *AccountInfo) ProtoReflect() protoreflect.Message
- func (x *AccountInfo) Reset()
- func (x *AccountInfo) String() string
- type Accounts
- type AddrOverview
- func (*AddrOverview) Descriptor() ([]byte, []int)deprecated
- func (x *AddrOverview) GetBalance() int64
- func (x *AddrOverview) GetReciver() int64
- func (x *AddrOverview) GetTxCount() int64
- func (*AddrOverview) ProtoMessage()
- func (x *AddrOverview) ProtoReflect() protoreflect.Message
- func (x *AddrOverview) Reset()
- func (x *AddrOverview) String() string
- type AddrTxFeeInfo
- func (*AddrTxFeeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AddrTxFeeInfo) GetExec() string
- func (x *AddrTxFeeInfo) GetFee() int64
- func (x *AddrTxFeeInfo) GetFromAddr() string
- func (x *AddrTxFeeInfo) GetHeight() int64
- func (x *AddrTxFeeInfo) GetIndex() int64
- func (x *AddrTxFeeInfo) GetToAddr() string
- func (x *AddrTxFeeInfo) GetTxHash() string
- func (x *AddrTxFeeInfo) GetTxStatus() int32
- func (*AddrTxFeeInfo) ProtoMessage()
- func (x *AddrTxFeeInfo) ProtoReflect() protoreflect.Message
- func (x *AddrTxFeeInfo) Reset()
- func (x *AddrTxFeeInfo) String() string
- type AddrTxFeeInfos
- type AddressDriver
- func (*AddressDriver) Descriptor() ([]byte, []int)deprecated
- func (x *AddressDriver) GetName() string
- func (x *AddressDriver) GetTypeID() int32
- func (*AddressDriver) ProtoMessage()
- func (x *AddressDriver) ProtoReflect() protoreflect.Message
- func (x *AddressDriver) Reset()
- func (x *AddressDriver) String() string
- type AddressDrivers
- type AllExecBalance
- func (*AllExecBalance) Descriptor() ([]byte, []int)deprecated
- func (x *AllExecBalance) GetAddr() string
- func (x *AllExecBalance) GetExecAccount() []*ExecAccount
- func (*AllExecBalance) ProtoMessage()
- func (x *AllExecBalance) ProtoReflect() protoreflect.Message
- func (x *AllExecBalance) Reset()
- func (x *AllExecBalance) String() string
- type Amounter
- type ArrayConfig
- type Asset
- type AssetsGenesis
- func (*AssetsGenesis) Descriptor() ([]byte, []int)deprecated
- func (x *AssetsGenesis) GetAmount() int64
- func (x *AssetsGenesis) GetReturnAddress() string
- func (*AssetsGenesis) ProtoMessage()
- func (x *AssetsGenesis) ProtoReflect() protoreflect.Message
- func (x *AssetsGenesis) Reset()
- func (x *AssetsGenesis) String() string
- type AssetsTransfer
- func (*AssetsTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *AssetsTransfer) GetAmount() int64
- func (x *AssetsTransfer) GetCointoken() string
- func (x *AssetsTransfer) GetNote() []byte
- func (x *AssetsTransfer) GetTo() string
- func (*AssetsTransfer) ProtoMessage()
- func (x *AssetsTransfer) ProtoReflect() protoreflect.Message
- func (x *AssetsTransfer) Reset()
- func (x *AssetsTransfer) String() string
- type AssetsTransferToExec
- func (*AssetsTransferToExec) Descriptor() ([]byte, []int)deprecated
- func (x *AssetsTransferToExec) GetAmount() int64
- func (x *AssetsTransferToExec) GetCointoken() string
- func (x *AssetsTransferToExec) GetExecName() string
- func (x *AssetsTransferToExec) GetNote() []byte
- func (x *AssetsTransferToExec) GetTo() string
- func (*AssetsTransferToExec) ProtoMessage()
- func (x *AssetsTransferToExec) ProtoReflect() protoreflect.Message
- func (x *AssetsTransferToExec) Reset()
- func (x *AssetsTransferToExec) String() string
- type AssetsWithdraw
- func (*AssetsWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *AssetsWithdraw) GetAmount() int64
- func (x *AssetsWithdraw) GetCointoken() string
- func (x *AssetsWithdraw) GetExecName() string
- func (x *AssetsWithdraw) GetNote() []byte
- func (x *AssetsWithdraw) GetTo() string
- func (*AssetsWithdraw) ProtoMessage()
- func (x *AssetsWithdraw) ProtoReflect() protoreflect.Message
- func (x *AssetsWithdraw) Reset()
- func (x *AssetsWithdraw) String() string
- type BlackInfo
- func (*BlackInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BlackInfo) GetLifetime() int64
- func (x *BlackInfo) GetPeerName() string
- func (x *BlackInfo) GetRemoteAddr() string
- func (*BlackInfo) ProtoMessage()
- func (x *BlackInfo) ProtoReflect() protoreflect.Message
- func (x *BlackInfo) Reset()
- func (x *BlackInfo) String() string
- type BlackPeer
- func (*BlackPeer) Descriptor() ([]byte, []int)deprecated
- func (x *BlackPeer) GetLifetime() string
- func (x *BlackPeer) GetPeerAddr() string
- func (x *BlackPeer) GetPeerName() string
- func (*BlackPeer) ProtoMessage()
- func (x *BlackPeer) ProtoReflect() protoreflect.Message
- func (x *BlackPeer) Reset()
- func (x *BlackPeer) String() string
- type Blacklist
- type Block
- func (block *Block) CheckSign(cfg *Chain33Config) bool
- func (b *Block) Clone() *Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetBlockTime() int64
- func (x *Block) GetDifficulty() uint32
- func (block *Block) GetHeader(cfg *Chain33Config) *Header
- func (x *Block) GetHeight() int64
- func (x *Block) GetMainHash() []byte
- func (x *Block) GetMainHeight() int64
- func (x *Block) GetParentHash() []byte
- func (x *Block) GetSignature() *Signature
- func (x *Block) GetStateHash() []byte
- func (x *Block) GetTxHash() []byte
- func (x *Block) GetTxs() []*Transaction
- func (x *Block) GetVersion() int64
- func (block *Block) Hash(cfg *Chain33Config) []byte
- func (block *Block) HashByForkHeight(forkheight int64) []byte
- func (block *Block) HashNew() []byte
- func (block *Block) HashOld() []byte
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (block *Block) SetHeader(header *Header)
- func (block *Block) Size() int
- func (x *Block) String() string
- type BlockBody
- func (b *BlockBody) Clone() *BlockBody
- func (*BlockBody) Descriptor() ([]byte, []int)deprecated
- func (x *BlockBody) GetHash() []byte
- func (x *BlockBody) GetHeight() int64
- func (x *BlockBody) GetMainHash() []byte
- func (x *BlockBody) GetMainHeight() int64
- func (x *BlockBody) GetReceipts() []*ReceiptData
- func (x *BlockBody) GetTxs() []*Transaction
- func (*BlockBody) ProtoMessage()
- func (x *BlockBody) ProtoReflect() protoreflect.Message
- func (x *BlockBody) Reset()
- func (x *BlockBody) String() string
- type BlockBodys
- type BlockChain
- type BlockDetail
- func (b *BlockDetail) Clone() *BlockDetail
- func (*BlockDetail) Descriptor() ([]byte, []int)deprecated
- func (blockDetail *BlockDetail) FilterParaTxsByTitle(cfg *Chain33Config, title string) *ParaTxDetail
- func (x *BlockDetail) GetBlock() *Block
- func (x *BlockDetail) GetKV() []*KeyValue
- func (x *BlockDetail) GetPrevStatusHash() []byte
- func (x *BlockDetail) GetReceipts() []*ReceiptData
- func (*BlockDetail) ProtoMessage()
- func (x *BlockDetail) ProtoReflect() protoreflect.Message
- func (x *BlockDetail) Reset()
- func (blockDetail *BlockDetail) Size() int
- func (x *BlockDetail) String() string
- type BlockDetails
- type BlockInfo
- type BlockKVs
- func (*BlockKVs) Descriptor() ([]byte, []int)deprecated
- func (x *BlockKVs) GetHash() []byte
- func (x *BlockKVs) GetHeight() int64
- func (x *BlockKVs) GetKVs() []*KeyValue
- func (*BlockKVs) ProtoMessage()
- func (x *BlockKVs) ProtoReflect() protoreflect.Message
- func (x *BlockKVs) Reset()
- func (x *BlockKVs) String() string
- type BlockOverview
- func (*BlockOverview) Descriptor() ([]byte, []int)deprecated
- func (x *BlockOverview) GetHead() *Header
- func (x *BlockOverview) GetTxCount() int64
- func (x *BlockOverview) GetTxHashes() [][]byte
- func (*BlockOverview) ProtoMessage()
- func (x *BlockOverview) ProtoReflect() protoreflect.Message
- func (x *BlockOverview) Reset()
- func (x *BlockOverview) String() string
- type BlockPid
- type BlockReceipt
- func (*BlockReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *BlockReceipt) GetHash() []byte
- func (x *BlockReceipt) GetHeight() int64
- func (x *BlockReceipt) GetReceipts() []*ReceiptData
- func (*BlockReceipt) ProtoMessage()
- func (x *BlockReceipt) ProtoReflect() protoreflect.Message
- func (x *BlockReceipt) Reset()
- func (x *BlockReceipt) String() string
- type BlockSeq
- func (*BlockSeq) Descriptor() ([]byte, []int)deprecated
- func (x *BlockSeq) GetDetail() *BlockDetail
- func (x *BlockSeq) GetNum() int64
- func (x *BlockSeq) GetSeq() *BlockSequence
- func (*BlockSeq) ProtoMessage()
- func (x *BlockSeq) ProtoReflect() protoreflect.Message
- func (x *BlockSeq) Reset()
- func (x *BlockSeq) String() string
- type BlockSeqs
- type BlockSequence
- func (*BlockSequence) Descriptor() ([]byte, []int)deprecated
- func (x *BlockSequence) GetHash() []byte
- func (x *BlockSequence) GetType() int64
- func (*BlockSequence) ProtoMessage()
- func (x *BlockSequence) ProtoReflect() protoreflect.Message
- func (x *BlockSequence) Reset()
- func (x *BlockSequence) String() string
- type BlockSequences
- type Blocks
- type BroadCastData
- func (*BroadCastData) Descriptor() ([]byte, []int)deprecated
- func (x *BroadCastData) GetBlock() *P2PBlock
- func (x *BroadCastData) GetBlockRep() *P2PBlockTxReply
- func (x *BroadCastData) GetLtBlock() *LightBlock
- func (x *BroadCastData) GetLtTx() *LightTx
- func (x *BroadCastData) GetPing() *P2PPing
- func (x *BroadCastData) GetQuery() *P2PQueryData
- func (x *BroadCastData) GetTx() *P2PTx
- func (m *BroadCastData) GetValue() isBroadCastData_Value
- func (x *BroadCastData) GetVersion() *Versions
- func (*BroadCastData) ProtoMessage()
- func (x *BroadCastData) ProtoReflect() protoreflect.Message
- func (x *BroadCastData) Reset()
- func (x *BroadCastData) String() string
- type BroadCastData_Block
- type BroadCastData_BlockRep
- type BroadCastData_LtBlock
- type BroadCastData_LtTx
- type BroadCastData_Ping
- type BroadCastData_Query
- type BroadCastData_Tx
- type BroadCastData_Version
- type Chain33Client
- type Chain33Config
- func (c *Chain33Config) CalcEthTxKey(hash []byte) []byte
- func (c *Chain33Config) CalcTxKey(hash []byte) []byte
- func (c *Chain33Config) CalcTxKeyValue(txr *TxResult) []byte
- func (c *Chain33Config) DisableCheckFork(d bool)
- func (c *Chain33Config) EthAssembleParams(now time.Time) stypes.AssembleParams
- func (c *Chain33Config) ExecName(name string) string
- func (c *Chain33Config) G(key string) (value interface{}, err error)
- func (c *Chain33Config) GInt(name string) int64
- func (c *Chain33Config) GStr(name string) string
- func (c *Chain33Config) GetChainID() int32
- func (c *Chain33Config) GetCoinExec() string
- func (c *Chain33Config) GetCoinPrecision() int64
- func (c *Chain33Config) GetCoinSymbol() string
- func (c *Chain33Config) GetDappFork(dapp, fork string) int64
- func (c *Chain33Config) GetFork(fork string) int64
- func (c *Chain33Config) GetForks() (map[string]int64, error)
- func (c *Chain33Config) GetFundAddr() string
- func (c *Chain33Config) GetMaxTxFee(height int64) int64
- func (c *Chain33Config) GetMaxTxFeeRate() int64
- func (c *Chain33Config) GetMinTxFeeRate() int64
- func (c *Chain33Config) GetMinerExecs() []string
- func (c *Chain33Config) GetModuleConfig() *Config
- func (c *Chain33Config) GetP(height int64) *ChainParam
- func (c *Chain33Config) GetParaExec(execer []byte) []byte
- func (c *Chain33Config) GetParaName() string
- func (c *Chain33Config) GetSubConfig() *ConfigSubModule
- func (c *Chain33Config) GetTitle() string
- func (c *Chain33Config) GetTokenPrecision() int64
- func (c *Chain33Config) HasConf(key string) bool
- func (c *Chain33Config) HasFork(fork string) bool
- func (c *Chain33Config) IsBlockedAccount(addr string, height int64) bool
- func (c *Chain33Config) IsBlockedAccountRaw(raw []byte, height int64) bool
- func (c *Chain33Config) IsDappFork(height int64, dapp, fork string) bool
- func (c *Chain33Config) IsEnable(name string) bool
- func (c *Chain33Config) IsEnableFork(height int64, fork string, enable bool) bool
- func (c *Chain33Config) IsFork(height int64, fork string) bool
- func (c *Chain33Config) IsLocal() bool
- func (c *Chain33Config) IsMyParaExecName(exec string) bool
- func (c *Chain33Config) IsPara() bool
- func (c *Chain33Config) IsTestNet() bool
- func (c *Chain33Config) MG(key string, height int64) (value interface{}, err error)
- func (c *Chain33Config) MGInt(name string, height int64) int64
- func (c *Chain33Config) MGStr(name string, height int64) string
- func (c *Chain33Config) MIsEnable(name string, height int64) bool
- func (c *Chain33Config) RegisterDappFork(dapp, fork string, height int64)
- func (c *Chain33Config) S(key string, value interface{})
- func (c *Chain33Config) SetBlockedAccountsForTest(fromHeight int64, addrs []string) func()
- func (c *Chain33Config) SetDappFork(dapp, fork string, height int64)
- func (c *Chain33Config) SetFork(fork string, height int64)
- func (c *Chain33Config) SetMinFee(fee int64)
- func (c *Chain33Config) SetTitleOnlyForTest(ti string)
- func (c *Chain33Config) SetTxFeeConfig(minTxFeeRate, maxTxFeeRate, maxTxFee int64)
- type Chain33Server
- type Chain33_SubEventClient
- type Chain33_SubEventServer
- type ChainConfigInfo
- func (*ChainConfigInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChainConfigInfo) GetChainID() int32
- func (x *ChainConfigInfo) GetCoinExec() string
- func (x *ChainConfigInfo) GetCoinPrecision() int64
- func (x *ChainConfigInfo) GetCoinSymbol() string
- func (x *ChainConfigInfo) GetDefaultAddressID() int32
- func (x *ChainConfigInfo) GetIsPara() bool
- func (x *ChainConfigInfo) GetMaxTxFee() int64
- func (x *ChainConfigInfo) GetMaxTxFeeRate() int64
- func (x *ChainConfigInfo) GetMinTxFeeRate() int64
- func (x *ChainConfigInfo) GetTitle() string
- func (x *ChainConfigInfo) GetTokenPrecision() int64
- func (*ChainConfigInfo) ProtoMessage()
- func (x *ChainConfigInfo) ProtoReflect() protoreflect.Message
- func (x *ChainConfigInfo) Reset()
- func (x *ChainConfigInfo) String() string
- type ChainExecutor
- func (*ChainExecutor) Descriptor() ([]byte, []int)deprecated
- func (x *ChainExecutor) GetDriver() string
- func (x *ChainExecutor) GetExtra() []byte
- func (x *ChainExecutor) GetFuncName() string
- func (x *ChainExecutor) GetParam() []byte
- func (x *ChainExecutor) GetStateHash() []byte
- func (*ChainExecutor) ProtoMessage()
- func (x *ChainExecutor) ProtoReflect() protoreflect.Message
- func (x *ChainExecutor) Reset()
- func (x *ChainExecutor) String() string
- type ChainParam
- type ChainStatus
- func (*ChainStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ChainStatus) GetCurrentHeight() int64
- func (x *ChainStatus) GetMempoolSize() int64
- func (x *ChainStatus) GetMsgQueueSize() int64
- func (*ChainStatus) ProtoMessage()
- func (x *ChainStatus) ProtoReflect() protoreflect.Message
- func (x *ChainStatus) Reset()
- func (x *ChainStatus) String() string
- type Checkpoint
- type ChildChain
- func (*ChildChain) Descriptor() ([]byte, []int)deprecated
- func (x *ChildChain) GetChildHash() []byte
- func (x *ChildChain) GetStartIndex() int32
- func (x *ChildChain) GetTitle() string
- func (x *ChildChain) GetTxCount() int32
- func (*ChildChain) ProtoMessage()
- func (x *ChildChain) ProtoReflect() protoreflect.Message
- func (x *ChildChain) Reset()
- func (x *ChildChain) String() string
- type ChunkInfo
- func (*ChunkInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChunkInfo) GetChunkHash() []byte
- func (x *ChunkInfo) GetChunkNum() int64
- func (x *ChunkInfo) GetEnd() int64
- func (x *ChunkInfo) GetStart() int64
- func (*ChunkInfo) ProtoMessage()
- func (x *ChunkInfo) ProtoReflect() protoreflect.Message
- func (x *ChunkInfo) Reset()
- func (x *ChunkInfo) String() string
- type ChunkInfoList
- type ChunkInfoMsg
- func (*ChunkInfoMsg) Descriptor() ([]byte, []int)deprecated
- func (x *ChunkInfoMsg) GetChunkHash() []byte
- func (x *ChunkInfoMsg) GetEnd() int64
- func (x *ChunkInfoMsg) GetStart() int64
- func (*ChunkInfoMsg) ProtoMessage()
- func (x *ChunkInfoMsg) ProtoReflect() protoreflect.Message
- func (x *ChunkInfoMsg) Reset()
- func (x *ChunkInfoMsg) String() string
- type ChunkProvider
- func (*ChunkProvider) Descriptor() ([]byte, []int)deprecated
- func (x *ChunkProvider) GetChunkHash() []byte
- func (x *ChunkProvider) GetPeerInfos() []*PeerInfo
- func (*ChunkProvider) ProtoMessage()
- func (x *ChunkProvider) ProtoReflect() protoreflect.Message
- func (x *ChunkProvider) Reset()
- func (x *ChunkProvider) String() string
- type ChunkRecords
- type ClientReply
- func (*ClientReply) Descriptor() ([]byte, []int)deprecated
- func (x *ClientReply) GetClient() string
- func (x *ClientReply) GetReplica() uint32
- func (x *ClientReply) GetResult() *Result
- func (x *ClientReply) GetTimestamp() string
- func (x *ClientReply) GetView() uint32
- func (*ClientReply) ProtoMessage()
- func (x *ClientReply) ProtoReflect() protoreflect.Message
- func (x *ClientReply) Reset()
- func (x *ClientReply) String() string
- type CmpBlock
- type ConfQuery
- func (query *ConfQuery) G(key string) (interface{}, error)
- func (query *ConfQuery) GInt(key string) int64
- func (query *ConfQuery) GStr(key string) string
- func (query *ConfQuery) GStrList(key string) []string
- func (query *ConfQuery) IsEnable(key string) bool
- func (query *ConfQuery) MG(key string, height int64) (interface{}, error)
- func (query *ConfQuery) MGInt(key string, height int64) int64
- func (query *ConfQuery) MGStr(key string, height int64) string
- func (query *ConfQuery) MGStrList(key string, height int64) []string
- func (query *ConfQuery) MIsEnable(key string, height int64) bool
- type Config
- type ConfigItem
- func (*ConfigItem) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigItem) GetAddr() string
- func (x *ConfigItem) GetArr() *ArrayConfig
- func (x *ConfigItem) GetInt() *Int32Config
- func (x *ConfigItem) GetKey() string
- func (x *ConfigItem) GetStr() *StringConfig
- func (x *ConfigItem) GetTy() int32
- func (m *ConfigItem) GetValue() isConfigItem_Value
- func (*ConfigItem) ProtoMessage()
- func (x *ConfigItem) ProtoReflect() protoreflect.Message
- func (x *ConfigItem) Reset()
- func (x *ConfigItem) String() string
- type ConfigItem_Arr
- type ConfigItem_Int
- type ConfigItem_Str
- type ConfigSubModule
- type Consensus
- type Create
- type CreateTransactionGroup
- func (*CreateTransactionGroup) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTransactionGroup) GetTxs() []string
- func (*CreateTransactionGroup) ProtoMessage()
- func (x *CreateTransactionGroup) ProtoReflect() protoreflect.Message
- func (x *CreateTransactionGroup) Reset()
- func (x *CreateTransactionGroup) String() string
- type CreateTx
- func (*CreateTx) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTx) GetAmount() int64
- func (x *CreateTx) GetExecName() string
- func (x *CreateTx) GetExecer() string
- func (x *CreateTx) GetFee() int64
- func (x *CreateTx) GetIsToken() bool
- func (x *CreateTx) GetIsWithdraw() bool
- func (x *CreateTx) GetNote() []byte
- func (x *CreateTx) GetTo() string
- func (x *CreateTx) GetTokenSymbol() string
- func (*CreateTx) ProtoMessage()
- func (x *CreateTx) ProtoReflect() protoreflect.Message
- func (x *CreateTx) Reset()
- func (x *CreateTx) String() string
- type CreateTxIn
- func (*CreateTxIn) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTxIn) GetActionName() string
- func (x *CreateTxIn) GetExecer() []byte
- func (x *CreateTxIn) GetPayload() []byte
- func (*CreateTxIn) ProtoMessage()
- func (x *CreateTxIn) ProtoReflect() protoreflect.Message
- func (x *CreateTxIn) Reset()
- func (x *CreateTxIn) String() string
- type Crypto
- type CryptoList
- type DelayTx
- type EVMContractAction4Chain33
- func (*EVMContractAction4Chain33) Descriptor() ([]byte, []int)deprecated
- func (x *EVMContractAction4Chain33) GetAlias() string
- func (x *EVMContractAction4Chain33) GetAmount() uint64
- func (x *EVMContractAction4Chain33) GetCode() []byte
- func (x *EVMContractAction4Chain33) GetContractAddr() string
- func (x *EVMContractAction4Chain33) GetGasLimit() uint64
- func (x *EVMContractAction4Chain33) GetGasPrice() uint32
- func (x *EVMContractAction4Chain33) GetNote() string
- func (x *EVMContractAction4Chain33) GetPara() []byte
- func (*EVMContractAction4Chain33) ProtoMessage()
- func (x *EVMContractAction4Chain33) ProtoReflect() protoreflect.Message
- func (x *EVMContractAction4Chain33) Reset()
- func (x *EVMContractAction4Chain33) String() string
- type EVMLog
- func (*EVMLog) Descriptor() ([]byte, []int)deprecated
- func (x *EVMLog) GetAddress() string
- func (x *EVMLog) GetData() []byte
- func (x *EVMLog) GetRemoved() bool
- func (x *EVMLog) GetTopic() [][]byte
- func (*EVMLog) ProtoMessage()
- func (x *EVMLog) ProtoReflect() protoreflect.Message
- func (x *EVMLog) Reset()
- func (x *EVMLog) String() string
- type EVMLogsPerTx
- type EVMTxAndLogs
- func (*EVMTxAndLogs) Descriptor() ([]byte, []int)deprecated
- func (x *EVMTxAndLogs) GetLogsPerTx() *EVMLogsPerTx
- func (x *EVMTxAndLogs) GetTx() *Transaction
- func (*EVMTxAndLogs) ProtoMessage()
- func (x *EVMTxAndLogs) ProtoReflect() protoreflect.Message
- func (x *EVMTxAndLogs) Reset()
- func (x *EVMTxAndLogs) String() string
- type EVMTxLogPerBlk
- func (*EVMTxLogPerBlk) Descriptor() ([]byte, []int)deprecated
- func (x *EVMTxLogPerBlk) GetAddDelType() int32
- func (x *EVMTxLogPerBlk) GetBlockHash() []byte
- func (x *EVMTxLogPerBlk) GetHeight() int64
- func (x *EVMTxLogPerBlk) GetParentHash() []byte
- func (x *EVMTxLogPerBlk) GetPreviousHash() []byte
- func (x *EVMTxLogPerBlk) GetSeqNum() int64
- func (x *EVMTxLogPerBlk) GetTxAndLogs() []*EVMTxAndLogs
- func (*EVMTxLogPerBlk) ProtoMessage()
- func (x *EVMTxLogPerBlk) ProtoReflect() protoreflect.Message
- func (x *EVMTxLogPerBlk) Reset()
- func (x *EVMTxLogPerBlk) String() string
- type EVMTxLogsInBlks
- func (*EVMTxLogsInBlks) Descriptor() ([]byte, []int)deprecated
- func (x *EVMTxLogsInBlks) GetLogs4EVMPerBlk() []*EVMTxLogPerBlk
- func (*EVMTxLogsInBlks) ProtoMessage()
- func (x *EVMTxLogsInBlks) ProtoReflect() protoreflect.Message
- func (x *EVMTxLogsInBlks) Reset()
- func (x *EVMTxLogsInBlks) String() string
- type EndBlock
- type Entry
- type EvmAccountNonce
- func (*EvmAccountNonce) Descriptor() ([]byte, []int)deprecated
- func (x *EvmAccountNonce) GetAddr() string
- func (x *EvmAccountNonce) GetNonce() int64
- func (*EvmAccountNonce) ProtoMessage()
- func (x *EvmAccountNonce) ProtoReflect() protoreflect.Message
- func (x *EvmAccountNonce) Reset()
- func (x *EvmAccountNonce) String() string
- type Exec
- type ExecAccount
- func (*ExecAccount) Descriptor() ([]byte, []int)deprecated
- func (x *ExecAccount) GetAccount() *Account
- func (x *ExecAccount) GetExecer() string
- func (*ExecAccount) ProtoMessage()
- func (x *ExecAccount) ProtoReflect() protoreflect.Message
- func (x *ExecAccount) Reset()
- func (x *ExecAccount) String() string
- type ExecBalanceItem
- func (*ExecBalanceItem) Descriptor() ([]byte, []int)deprecated
- func (x *ExecBalanceItem) GetActive() int64
- func (x *ExecBalanceItem) GetExecAddr() []byte
- func (x *ExecBalanceItem) GetFrozen() int64
- func (*ExecBalanceItem) ProtoMessage()
- func (x *ExecBalanceItem) ProtoReflect() protoreflect.Message
- func (x *ExecBalanceItem) Reset()
- func (x *ExecBalanceItem) String() string
- type ExecTxList
- func (*ExecTxList) Descriptor() ([]byte, []int)deprecated
- func (x *ExecTxList) GetBlockTime() int64
- func (x *ExecTxList) GetDifficulty() uint64
- func (x *ExecTxList) GetHeight() int64
- func (x *ExecTxList) GetIsMempool() bool
- func (x *ExecTxList) GetMainHash() []byte
- func (x *ExecTxList) GetMainHeight() int64
- func (x *ExecTxList) GetParentHash() []byte
- func (x *ExecTxList) GetStateHash() []byte
- func (x *ExecTxList) GetTxs() []*Transaction
- func (*ExecTxList) ProtoMessage()
- func (x *ExecTxList) ProtoReflect() protoreflect.Message
- func (x *ExecTxList) Reset()
- func (x *ExecTxList) String() string
- type ExecTypeBase
- func (base *ExecTypeBase) ActionName(tx *Transaction) string
- func (base *ExecTypeBase) Amount(tx *Transaction) (int64, error)
- func (base *ExecTypeBase) AssertCreate(c *CreateTx) (*Transaction, error)
- func (base *ExecTypeBase) Create(action string, msg Message) (*Transaction, error)
- func (base *ExecTypeBase) CreateQuery(funcname string, message json.RawMessage) (Message, error)
- func (base *ExecTypeBase) CreateTransaction(action string, data Message) (tx *Transaction, err error)
- func (base *ExecTypeBase) CreateTx(action string, msg json.RawMessage) (*Transaction, error)
- func (base *ExecTypeBase) DecodePayload(tx *Transaction) (Message, error)
- func (base *ExecTypeBase) DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)
- func (base *ExecTypeBase) GetAction(action string) (Message, error)
- func (base *ExecTypeBase) GetAssets(tx *Transaction) ([]*Asset, error)
- func (base *ExecTypeBase) GetChild() ExecutorType
- func (base *ExecTypeBase) GetConfig() *Chain33Config
- func (base *ExecTypeBase) GetCryptoDriver(ty int) (string, error)
- func (base *ExecTypeBase) GetCryptoType(name string) (int, error)
- func (base *ExecTypeBase) GetExecFuncMap() map[string]reflect.Method
- func (base *ExecTypeBase) GetForks() *Forks
- func (base *ExecTypeBase) GetFuncMap() map[string]reflect.Method
- func (base *ExecTypeBase) GetName() string
- func (base *ExecTypeBase) GetRPCFuncMap() map[string]reflect.Method
- func (base *ExecTypeBase) GetRealToAddr(tx *Transaction) string
- func (base *ExecTypeBase) GetViewFromToAddr(tx *Transaction) (string, string)
- func (base *ExecTypeBase) InitFuncList(list map[string]reflect.Method)
- func (base *ExecTypeBase) IsFork(height int64, key string) bool
- func (base *ExecTypeBase) QueryToJSON(funcname string, message Message) ([]byte, error)
- func (base *ExecTypeBase) SetChild(child ExecutorType)
- func (base *ExecTypeBase) SetConfig(cfg *Chain33Config)
- type ExecutorType
- type FetchTopicList
- type FileHeader
- func (*FileHeader) Descriptor() ([]byte, []int)deprecated
- func (x *FileHeader) GetDriver() string
- func (x *FileHeader) GetStartHeight() int64
- func (x *FileHeader) GetTestNet() bool
- func (x *FileHeader) GetTitle() string
- func (*FileHeader) ProtoMessage()
- func (x *FileHeader) ProtoReflect() protoreflect.Message
- func (x *FileHeader) Reset()
- func (x *FileHeader) String() string
- type ForkList
- type Forks
- func (f *Forks) GetAll() map[string]int64
- func (f *Forks) GetDappFork(app string, key string) int64
- func (f *Forks) GetFork(key string) int64
- func (f *Forks) HasFork(key string) bool
- func (f *Forks) IsDappFork(height int64, dapp, fork string) bool
- func (f *Forks) IsFork(height int64, fork string) bool
- func (f *Forks) RegisterSystemFork()
- func (f *Forks) ReplaceDappFork(dapp, key string, height int64)
- func (f *Forks) ReplaceFork(key string, height int64)
- func (f *Forks) SetAllFork(height int64)
- func (f *Forks) SetDappFork(dapp, key string, height int64)
- func (f *Forks) SetFork(key string, height int64)
- type GenSeedLang
- type Genesis
- type GetSeedByPw
- type HashList
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetBlockTime() int64
- func (x *Header) GetDifficulty() uint32
- func (x *Header) GetHash() []byte
- func (x *Header) GetHeight() int64
- func (x *Header) GetParentHash() []byte
- func (x *Header) GetSignature() *Signature
- func (x *Header) GetStateHash() []byte
- func (x *Header) GetTxCount() int64
- func (x *Header) GetTxHash() []byte
- func (x *Header) GetVersion() int64
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (header *Header) Size() int
- func (x *Header) String() string
- type HeaderSeq
- func (*HeaderSeq) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderSeq) GetHeader() *Header
- func (x *HeaderSeq) GetNum() int64
- func (x *HeaderSeq) GetSeq() *BlockSequence
- func (*HeaderSeq) ProtoMessage()
- func (x *HeaderSeq) ProtoReflect() protoreflect.Message
- func (x *HeaderSeq) Reset()
- func (x *HeaderSeq) String() string
- type HeaderSeqs
- type Headers
- type HeadersPid
- type HealthCheck
- type HeightPara
- func (*HeightPara) Descriptor() ([]byte, []int)deprecated
- func (x *HeightPara) GetChildHash() []byte
- func (x *HeightPara) GetChildHashIndex() uint32
- func (x *HeightPara) GetHash() []byte
- func (x *HeightPara) GetHeight() int64
- func (x *HeightPara) GetStartIndex() int32
- func (x *HeightPara) GetTitle() string
- func (x *HeightPara) GetTxCount() int32
- func (*HeightPara) ProtoMessage()
- func (x *HeightPara) ProtoReflect() protoreflect.Message
- func (x *HeightPara) Reset()
- func (x *HeightPara) String() string
- type HeightParas
- type HexTx
- type HistoryCertStore
- func (*HistoryCertStore) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryCertStore) GetCurHeigth() int64
- func (x *HistoryCertStore) GetIntermediateCerts() [][]byte
- func (x *HistoryCertStore) GetNxtHeight() int64
- func (x *HistoryCertStore) GetRevocationList() [][]byte
- func (x *HistoryCertStore) GetRootcerts() [][]byte
- func (*HistoryCertStore) ProtoMessage()
- func (x *HistoryCertStore) ProtoReflect() protoreflect.Message
- func (x *HistoryCertStore) Reset()
- func (x *HistoryCertStore) String() string
- type InnerNode
- func (*InnerNode) Descriptor() ([]byte, []int)deprecated
- func (x *InnerNode) GetHeight() int32
- func (x *InnerNode) GetLeftHash() []byte
- func (x *InnerNode) GetRightHash() []byte
- func (x *InnerNode) GetSize() int32
- func (innernode *InnerNode) Hash() []byte
- func (*InnerNode) ProtoMessage()
- func (x *InnerNode) ProtoReflect() protoreflect.Message
- func (x *InnerNode) Reset()
- func (x *InnerNode) String() string
- type Int32
- type Int32Config
- type Int64
- type InvData
- func (*InvData) Descriptor() ([]byte, []int)deprecated
- func (x *InvData) GetBlock() *Block
- func (x *InvData) GetTx() *Transaction
- func (x *InvData) GetTy() int32
- func (m *InvData) GetValue() isInvData_Value
- func (*InvData) ProtoMessage()
- func (x *InvData) ProtoReflect() protoreflect.Message
- func (x *InvData) Reset()
- func (x *InvData) String() string
- type InvData_Block
- type InvData_Tx
- type InvDatas
- type Inventory
- func (*Inventory) Descriptor() ([]byte, []int)deprecated
- func (x *Inventory) GetHash() []byte
- func (x *Inventory) GetHeight() int64
- func (x *Inventory) GetTy() int32
- func (*Inventory) ProtoMessage()
- func (x *Inventory) ProtoReflect() protoreflect.Message
- func (x *Inventory) Reset()
- func (x *Inventory) String() string
- type IsCaughtUp
- type IsNtpClockSync
- type IterateRangeByStateHash
- func (*IterateRangeByStateHash) Descriptor() ([]byte, []int)deprecated
- func (x *IterateRangeByStateHash) GetCount() int64
- func (x *IterateRangeByStateHash) GetEnd() []byte
- func (x *IterateRangeByStateHash) GetStart() []byte
- func (x *IterateRangeByStateHash) GetStateHash() []byte
- func (*IterateRangeByStateHash) ProtoMessage()
- func (x *IterateRangeByStateHash) ProtoReflect() protoreflect.Message
- func (x *IterateRangeByStateHash) Reset()
- func (x *IterateRangeByStateHash) String() string
- type KeyValue
- func (kv *KeyValue) Clone() *KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *KeyValue) GetKey() []byte
- func (x *KeyValue) GetValue() []byte
- func (*KeyValue) ProtoMessage()
- func (x *KeyValue) ProtoReflect() protoreflect.Message
- func (x *KeyValue) Reset()
- func (x *KeyValue) String() string
- type LeafNode
- func (*LeafNode) Descriptor() ([]byte, []int)deprecated
- func (x *LeafNode) GetHeight() int32
- func (x *LeafNode) GetKey() []byte
- func (x *LeafNode) GetSize() int32
- func (x *LeafNode) GetValue() []byte
- func (leafnode *LeafNode) Hash() []byte
- func (*LeafNode) ProtoMessage()
- func (x *LeafNode) ProtoReflect() protoreflect.Message
- func (x *LeafNode) Reset()
- func (x *LeafNode) String() string
- type LightBlock
- func (*LightBlock) Descriptor() ([]byte, []int)deprecated
- func (x *LightBlock) GetHeader() *Header
- func (x *LightBlock) GetMinerTx() *Transaction
- func (x *LightBlock) GetSTxHashes() []string
- func (x *LightBlock) GetSize() int64
- func (*LightBlock) ProtoMessage()
- func (x *LightBlock) ProtoReflect() protoreflect.Message
- func (x *LightBlock) Reset()
- func (x *LightBlock) String() string
- type LightTx
- type LocalDBGet
- type LocalDBList
- func (*LocalDBList) Descriptor() ([]byte, []int)deprecated
- func (x *LocalDBList) GetCount() int32
- func (x *LocalDBList) GetDirection() int32
- func (x *LocalDBList) GetKey() []byte
- func (x *LocalDBList) GetPrefix() []byte
- func (x *LocalDBList) GetTxid() int64
- func (*LocalDBList) ProtoMessage()
- func (x *LocalDBList) ProtoReflect() protoreflect.Message
- func (x *LocalDBList) Reset()
- func (x *LocalDBList) String() string
- type LocalDBSet
- type LocalReplyValue
- type Log
- type LogErr
- type LogInfo
- type LogReserved
- type LogType
- type MAVLProof
- func (*MAVLProof) Descriptor() ([]byte, []int)deprecated
- func (x *MAVLProof) GetInnerNodes() []*InnerNode
- func (x *MAVLProof) GetLeafHash() []byte
- func (x *MAVLProof) GetRootHash() []byte
- func (*MAVLProof) ProtoMessage()
- func (x *MAVLProof) ProtoReflect() protoreflect.Message
- func (x *MAVLProof) Reset()
- func (x *MAVLProof) String() string
- type Mempool
- type MempoolSize
- type Message
- type MessageAddrList
- func (*MessageAddrList) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAddrList) GetMessage() *P2PAddrList
- func (x *MessageAddrList) GetMessageData() *MessageComm
- func (*MessageAddrList) ProtoMessage()
- func (x *MessageAddrList) ProtoReflect() protoreflect.Message
- func (x *MessageAddrList) Reset()
- func (x *MessageAddrList) String() string
- type MessageAddrReq
- func (*MessageAddrReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAddrReq) GetMessage() *P2PGetAddr
- func (x *MessageAddrReq) GetMessageData() *MessageComm
- func (*MessageAddrReq) ProtoMessage()
- func (x *MessageAddrReq) ProtoReflect() protoreflect.Message
- func (x *MessageAddrReq) Reset()
- func (x *MessageAddrReq) String() string
- type MessageAddrResp
- func (*MessageAddrResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAddrResp) GetMessage() *P2PAddr
- func (x *MessageAddrResp) GetMessageData() *MessageComm
- func (*MessageAddrResp) ProtoMessage()
- func (x *MessageAddrResp) ProtoReflect() protoreflect.Message
- func (x *MessageAddrResp) Reset()
- func (x *MessageAddrResp) String() string
- type MessageBroadCast
- func (*MessageBroadCast) Descriptor() ([]byte, []int)deprecated
- func (x *MessageBroadCast) GetCommon() *MessageComm
- func (x *MessageBroadCast) GetMessage() *BroadCastData
- func (*MessageBroadCast) ProtoMessage()
- func (x *MessageBroadCast) ProtoReflect() protoreflect.Message
- func (x *MessageBroadCast) Reset()
- func (x *MessageBroadCast) String() string
- type MessageComm
- func (*MessageComm) Descriptor() ([]byte, []int)deprecated
- func (x *MessageComm) GetGossip() bool
- func (x *MessageComm) GetId() string
- func (x *MessageComm) GetNodeId() string
- func (x *MessageComm) GetNodePubKey() []byte
- func (x *MessageComm) GetSign() []byte
- func (x *MessageComm) GetTimestamp() int64
- func (x *MessageComm) GetVersion() string
- func (*MessageComm) ProtoMessage()
- func (x *MessageComm) ProtoReflect() protoreflect.Message
- func (x *MessageComm) Reset()
- func (x *MessageComm) String() string
- type MessageExternalNetReq
- func (*MessageExternalNetReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageExternalNetReq) GetMessageData() *MessageComm
- func (*MessageExternalNetReq) ProtoMessage()
- func (x *MessageExternalNetReq) ProtoReflect() protoreflect.Message
- func (x *MessageExternalNetReq) Reset()
- func (x *MessageExternalNetReq) String() string
- type MessageExternalNetResp
- func (*MessageExternalNetResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessageExternalNetResp) GetMessage() *P2PExternalInfo
- func (x *MessageExternalNetResp) GetMessageData() *MessageComm
- func (*MessageExternalNetResp) ProtoMessage()
- func (x *MessageExternalNetResp) ProtoReflect() protoreflect.Message
- func (x *MessageExternalNetResp) Reset()
- func (x *MessageExternalNetResp) String() string
- type MessageGetBlocksReq
- func (*MessageGetBlocksReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageGetBlocksReq) GetMessage() *P2PGetBlocks
- func (x *MessageGetBlocksReq) GetMessageData() *MessageComm
- func (*MessageGetBlocksReq) ProtoMessage()
- func (x *MessageGetBlocksReq) ProtoReflect() protoreflect.Message
- func (x *MessageGetBlocksReq) Reset()
- func (x *MessageGetBlocksReq) String() string
- type MessageGetBlocksResp
- func (*MessageGetBlocksResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessageGetBlocksResp) GetMessage() *InvDatas
- func (x *MessageGetBlocksResp) GetMessageData() *MessageComm
- func (*MessageGetBlocksResp) ProtoMessage()
- func (x *MessageGetBlocksResp) ProtoReflect() protoreflect.Message
- func (x *MessageGetBlocksResp) Reset()
- func (x *MessageGetBlocksResp) String() string
- type MessageGetMempoolReq
- func (*MessageGetMempoolReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageGetMempoolReq) GetMessage() *P2PGetMempool
- func (x *MessageGetMempoolReq) GetMessageData() *MessageComm
- func (*MessageGetMempoolReq) ProtoMessage()
- func (x *MessageGetMempoolReq) ProtoReflect() protoreflect.Message
- func (x *MessageGetMempoolReq) Reset()
- func (x *MessageGetMempoolReq) String() string
- type MessageHeaderReq
- func (*MessageHeaderReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageHeaderReq) GetMessage() *P2PGetHeaders
- func (x *MessageHeaderReq) GetMessageData() *MessageComm
- func (*MessageHeaderReq) ProtoMessage()
- func (x *MessageHeaderReq) ProtoReflect() protoreflect.Message
- func (x *MessageHeaderReq) Reset()
- func (x *MessageHeaderReq) String() string
- type MessageHeaderResp
- func (*MessageHeaderResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessageHeaderResp) GetMessage() *P2PHeaders
- func (x *MessageHeaderResp) GetMessageData() *MessageComm
- func (*MessageHeaderResp) ProtoMessage()
- func (x *MessageHeaderResp) ProtoReflect() protoreflect.Message
- func (x *MessageHeaderResp) Reset()
- func (x *MessageHeaderResp) String() string
- type MessageInvDataReq
- func (*MessageInvDataReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageInvDataReq) GetMessage() *InvData
- func (x *MessageInvDataReq) GetMessageData() *MessageComm
- func (*MessageInvDataReq) ProtoMessage()
- func (x *MessageInvDataReq) ProtoReflect() protoreflect.Message
- func (x *MessageInvDataReq) Reset()
- func (x *MessageInvDataReq) String() string
- type MessageNetInfo
- func (*MessageNetInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MessageNetInfo) GetMessage() *NodeNetInfo
- func (x *MessageNetInfo) GetMessageData() *MessageComm
- func (*MessageNetInfo) ProtoMessage()
- func (x *MessageNetInfo) ProtoReflect() protoreflect.Message
- func (x *MessageNetInfo) Reset()
- func (x *MessageNetInfo) String() string
- type MessageP2PVersionReq
- func (*MessageP2PVersionReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessageP2PVersionReq) GetMessage() *P2PVersion
- func (x *MessageP2PVersionReq) GetMessageData() *MessageComm
- func (*MessageP2PVersionReq) ProtoMessage()
- func (x *MessageP2PVersionReq) ProtoReflect() protoreflect.Message
- func (x *MessageP2PVersionReq) Reset()
- func (x *MessageP2PVersionReq) String() string
- type MessageP2PVersionResp
- func (*MessageP2PVersionResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessageP2PVersionResp) GetMessage() *P2PVersion
- func (x *MessageP2PVersionResp) GetMessageData() *MessageComm
- func (*MessageP2PVersionResp) ProtoMessage()
- func (x *MessageP2PVersionResp) ProtoReflect() protoreflect.Message
- func (x *MessageP2PVersionResp) Reset()
- func (x *MessageP2PVersionResp) String() string
- type MessagePeerInfoReq
- func (*MessagePeerInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePeerInfoReq) GetMessageData() *MessageComm
- func (*MessagePeerInfoReq) ProtoMessage()
- func (x *MessagePeerInfoReq) ProtoReflect() protoreflect.Message
- func (x *MessagePeerInfoReq) Reset()
- func (x *MessagePeerInfoReq) String() string
- type MessagePeerInfoResp
- func (*MessagePeerInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePeerInfoResp) GetMessage() *P2PPeerInfo
- func (x *MessagePeerInfoResp) GetMessageData() *MessageComm
- func (*MessagePeerInfoResp) ProtoMessage()
- func (x *MessagePeerInfoResp) ProtoReflect() protoreflect.Message
- func (x *MessagePeerInfoResp) Reset()
- func (x *MessagePeerInfoResp) String() string
- type MessagePeerList
- func (*MessagePeerList) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePeerList) GetMessage() *PeerList
- func (x *MessagePeerList) GetMessageData() *MessageComm
- func (*MessagePeerList) ProtoMessage()
- func (x *MessagePeerList) ProtoReflect() protoreflect.Message
- func (x *MessagePeerList) Reset()
- func (x *MessagePeerList) String() string
- type MessagePeersReply
- func (*MessagePeersReply) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePeersReply) GetCommon() *MessageComm
- func (x *MessagePeersReply) GetPeersReply() *PeersReply
- func (*MessagePeersReply) ProtoMessage()
- func (x *MessagePeersReply) ProtoReflect() protoreflect.Message
- func (x *MessagePeersReply) Reset()
- func (x *MessagePeersReply) String() string
- type MessagePingReq
- func (*MessagePingReq) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePingReq) GetMessage() *P2PPing
- func (x *MessagePingReq) GetMessageData() *MessageComm
- func (*MessagePingReq) ProtoMessage()
- func (x *MessagePingReq) ProtoReflect() protoreflect.Message
- func (x *MessagePingReq) Reset()
- func (x *MessagePingReq) String() string
- type MessagePingResp
- func (*MessagePingResp) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePingResp) GetMessage() *P2PPong
- func (x *MessagePingResp) GetMessageData() *MessageComm
- func (*MessagePingResp) ProtoMessage()
- func (x *MessagePingResp) ProtoReflect() protoreflect.Message
- func (x *MessagePingResp) Reset()
- func (x *MessagePingResp) String() string
- type MessageUtil
- func (*MessageUtil) Descriptor() ([]byte, []int)deprecated
- func (x *MessageUtil) GetCommon() *MessageComm
- func (x *MessageUtil) GetExternal() *P2PExternalInfo
- func (x *MessageUtil) GetGetblocks() *P2PGetBlocks
- func (x *MessageUtil) GetInvdatas() *InvDatas
- func (x *MessageUtil) GetPeerInfo() *P2PPeerInfo
- func (m *MessageUtil) GetValue() isMessageUtil_Value
- func (x *MessageUtil) GetVersion() *P2PVersion
- func (x *MessageUtil) GetVersionAck() *P2PVerAck
- func (*MessageUtil) ProtoMessage()
- func (x *MessageUtil) ProtoReflect() protoreflect.Message
- func (x *MessageUtil) Reset()
- func (x *MessageUtil) String() string
- type MessageUtil_External
- type MessageUtil_Getblocks
- type MessageUtil_Invdatas
- type MessageUtil_PeerInfo
- type MessageUtil_Version
- type MessageUtil_VersionAck
- type MessageVersion
- func (*MessageVersion) Descriptor() ([]byte, []int)deprecated
- func (x *MessageVersion) GetMessage() *Versions
- func (x *MessageVersion) GetMessageData() *MessageComm
- func (*MessageVersion) ProtoMessage()
- func (x *MessageVersion) ProtoReflect() protoreflect.Message
- func (x *MessageVersion) Reset()
- func (x *MessageVersion) String() string
- type Metrics
- type ModifyConfig
- func (*ModifyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyConfig) GetAddr() string
- func (x *ModifyConfig) GetKey() string
- func (x *ModifyConfig) GetOp() string
- func (x *ModifyConfig) GetValue() string
- func (*ModifyConfig) ProtoMessage()
- func (x *ModifyConfig) ProtoReflect() protoreflect.Message
- func (x *ModifyConfig) Reset()
- func (x *ModifyConfig) String() string
- type NetProtocolInfos
- func (*NetProtocolInfos) Descriptor() ([]byte, []int)deprecated
- func (x *NetProtocolInfos) GetProtoinfo() []*ProtocolInfo
- func (*NetProtocolInfos) ProtoMessage()
- func (x *NetProtocolInfos) ProtoReflect() protoreflect.Message
- func (x *NetProtocolInfos) Reset()
- func (x *NetProtocolInfos) String() string
- type NoBalanceTx
- func (*NoBalanceTx) Descriptor() ([]byte, []int)deprecated
- func (x *NoBalanceTx) GetExpire() string
- func (x *NoBalanceTx) GetPayAddr() string
- func (x *NoBalanceTx) GetPrivkey() string
- func (x *NoBalanceTx) GetTxHex() string
- func (*NoBalanceTx) ProtoMessage()
- func (x *NoBalanceTx) ProtoReflect() protoreflect.Message
- func (x *NoBalanceTx) Reset()
- func (x *NoBalanceTx) String() string
- type NoBalanceTxs
- func (*NoBalanceTxs) Descriptor() ([]byte, []int)deprecated
- func (x *NoBalanceTxs) GetExpire() string
- func (x *NoBalanceTxs) GetPayAddr() string
- func (x *NoBalanceTxs) GetPrivkey() string
- func (x *NoBalanceTxs) GetTxHexs() []string
- func (*NoBalanceTxs) ProtoMessage()
- func (x *NoBalanceTxs) ProtoReflect() protoreflect.Message
- func (x *NoBalanceTxs) Reset()
- func (x *NoBalanceTxs) String() string
- type NodeInfo
- type NodeNetInfo
- func (*NodeNetInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NodeNetInfo) GetExternaladdr() string
- func (x *NodeNetInfo) GetInbounds() int32
- func (x *NodeNetInfo) GetLocaladdr() string
- func (x *NodeNetInfo) GetOutbounds() int32
- func (x *NodeNetInfo) GetPeerstore() int32
- func (x *NodeNetInfo) GetRatein() string
- func (x *NodeNetInfo) GetRateout() string
- func (x *NodeNetInfo) GetRatetotal() string
- func (x *NodeNetInfo) GetRoutingtable() int32
- func (x *NodeNetInfo) GetService() bool
- func (*NodeNetInfo) ProtoMessage()
- func (x *NodeNetInfo) ProtoReflect() protoreflect.Message
- func (x *NodeNetInfo) Reset()
- func (x *NodeNetInfo) String() string
- type Operation
- type P2P
- type P2PAddr
- type P2PAddrList
- func (*P2PAddrList) Descriptor() ([]byte, []int)deprecated
- func (x *P2PAddrList) GetNonce() int64
- func (x *P2PAddrList) GetPeerinfo() []*P2PPeerInfo
- func (*P2PAddrList) ProtoMessage()
- func (x *P2PAddrList) ProtoReflect() protoreflect.Message
- func (x *P2PAddrList) Reset()
- func (x *P2PAddrList) String() string
- type P2PBlock
- type P2PBlockTxReply
- func (*P2PBlockTxReply) Descriptor() ([]byte, []int)deprecated
- func (x *P2PBlockTxReply) GetBlockHash() string
- func (x *P2PBlockTxReply) GetTxIndices() []int32
- func (x *P2PBlockTxReply) GetTxs() []*Transaction
- func (*P2PBlockTxReply) ProtoMessage()
- func (x *P2PBlockTxReply) ProtoReflect() protoreflect.Message
- func (x *P2PBlockTxReply) Reset()
- func (x *P2PBlockTxReply) String() string
- type P2PBlockTxReq
- func (*P2PBlockTxReq) Descriptor() ([]byte, []int)deprecated
- func (x *P2PBlockTxReq) GetBlockHash() string
- func (x *P2PBlockTxReq) GetTxIndices() []int32
- func (*P2PBlockTxReq) ProtoMessage()
- func (x *P2PBlockTxReq) ProtoReflect() protoreflect.Message
- func (x *P2PBlockTxReq) Reset()
- func (x *P2PBlockTxReq) String() string
- type P2PExternalInfo
- func (*P2PExternalInfo) Descriptor() ([]byte, []int)deprecated
- func (x *P2PExternalInfo) GetAddr() string
- func (x *P2PExternalInfo) GetIsoutside() bool
- func (*P2PExternalInfo) ProtoMessage()
- func (x *P2PExternalInfo) ProtoReflect() protoreflect.Message
- func (x *P2PExternalInfo) Reset()
- func (x *P2PExternalInfo) String() string
- type P2PGetAddr
- type P2PGetBlocks
- func (*P2PGetBlocks) Descriptor() ([]byte, []int)deprecated
- func (x *P2PGetBlocks) GetEndHeight() int64
- func (x *P2PGetBlocks) GetStartHeight() int64
- func (x *P2PGetBlocks) GetVersion() int32
- func (*P2PGetBlocks) ProtoMessage()
- func (x *P2PGetBlocks) ProtoReflect() protoreflect.Message
- func (x *P2PGetBlocks) Reset()
- func (x *P2PGetBlocks) String() string
- type P2PGetData
- type P2PGetHeaders
- func (*P2PGetHeaders) Descriptor() ([]byte, []int)deprecated
- func (x *P2PGetHeaders) GetEndHeight() int64
- func (x *P2PGetHeaders) GetStartHeight() int64
- func (x *P2PGetHeaders) GetVersion() int32
- func (*P2PGetHeaders) ProtoMessage()
- func (x *P2PGetHeaders) ProtoReflect() protoreflect.Message
- func (x *P2PGetHeaders) Reset()
- func (x *P2PGetHeaders) String() string
- type P2PGetMempool
- type P2PGetNetInfoReq
- type P2PGetPeerInfo
- type P2PGetPeerReq
- type P2PHeaders
- type P2PInv
- type P2PMessageHeaders
- func (*P2PMessageHeaders) Descriptor() ([]byte, []int)deprecated
- func (x *P2PMessageHeaders) GetId() int64
- func (x *P2PMessageHeaders) GetSign() []byte
- func (x *P2PMessageHeaders) GetTimestamp() int64
- func (x *P2PMessageHeaders) GetVersion() string
- func (*P2PMessageHeaders) ProtoMessage()
- func (x *P2PMessageHeaders) ProtoReflect() protoreflect.Message
- func (x *P2PMessageHeaders) Reset()
- func (x *P2PMessageHeaders) String() string
- type P2PPeerInfo
- func (*P2PPeerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *P2PPeerInfo) GetAddr() string
- func (x *P2PPeerInfo) GetBlocked() bool
- func (x *P2PPeerInfo) GetFullNode() bool
- func (x *P2PPeerInfo) GetHeader() *Header
- func (x *P2PPeerInfo) GetLocalDBVersion() string
- func (x *P2PPeerInfo) GetMempoolSize() int32
- func (x *P2PPeerInfo) GetName() string
- func (x *P2PPeerInfo) GetPort() int32
- func (x *P2PPeerInfo) GetRunningTime() string
- func (x *P2PPeerInfo) GetStoreDBVersion() string
- func (x *P2PPeerInfo) GetVersion() string
- func (*P2PPeerInfo) ProtoMessage()
- func (x *P2PPeerInfo) ProtoReflect() protoreflect.Message
- func (x *P2PPeerInfo) Reset()
- func (x *P2PPeerInfo) String() string
- type P2PPing
- func (*P2PPing) Descriptor() ([]byte, []int)deprecated
- func (x *P2PPing) GetAddr() string
- func (x *P2PPing) GetNonce() int64
- func (x *P2PPing) GetPort() int32
- func (x *P2PPing) GetSign() *Signature
- func (*P2PPing) ProtoMessage()
- func (x *P2PPing) ProtoReflect() protoreflect.Message
- func (x *P2PPing) Reset()
- func (x *P2PPing) String() string
- type P2PPong
- type P2PQueryData
- func (*P2PQueryData) Descriptor() ([]byte, []int)deprecated
- func (x *P2PQueryData) GetBlockTxReq() *P2PBlockTxReq
- func (x *P2PQueryData) GetTxReq() *P2PTxReq
- func (m *P2PQueryData) GetValue() isP2PQueryData_Value
- func (*P2PQueryData) ProtoMessage()
- func (x *P2PQueryData) ProtoReflect() protoreflect.Message
- func (x *P2PQueryData) Reset()
- func (x *P2PQueryData) String() string
- type P2PQueryData_BlockTxReq
- type P2PQueryData_TxReq
- type P2PRequest
- func (*P2PRequest) Descriptor() ([]byte, []int)deprecated
- func (x *P2PRequest) GetChunkInfoList() *ChunkInfoList
- func (x *P2PRequest) GetChunkInfoMsg() *ChunkInfoMsg
- func (x *P2PRequest) GetHeaders() *P2PMessageHeaders
- func (x *P2PRequest) GetPeerInfo() *PeerInfo
- func (x *P2PRequest) GetPid() string
- func (x *P2PRequest) GetProvider() *ChunkProvider
- func (x *P2PRequest) GetReqBlocks() *ReqBlocks
- func (x *P2PRequest) GetReqChunkRecords() *ReqChunkRecords
- func (x *P2PRequest) GetReqPeers() *ReqPeers
- func (m *P2PRequest) GetRequest() isP2PRequest_Request
- func (*P2PRequest) ProtoMessage()
- func (x *P2PRequest) ProtoReflect() protoreflect.Message
- func (x *P2PRequest) Reset()
- func (x *P2PRequest) String() string
- type P2PRequest_ChunkInfoList
- type P2PRequest_ChunkInfoMsg
- type P2PRequest_PeerInfo
- type P2PRequest_Pid
- type P2PRequest_Provider
- type P2PRequest_ReqBlocks
- type P2PRequest_ReqChunkRecords
- type P2PRequest_ReqPeers
- type P2PResponse
- func (*P2PResponse) Descriptor() ([]byte, []int)deprecated
- func (x *P2PResponse) GetBlockBody() *BlockBody
- func (x *P2PResponse) GetBlockHeaders() *Headers
- func (x *P2PResponse) GetChunkRecords() *ChunkRecords
- func (x *P2PResponse) GetCloserPeers() []*PeerInfo
- func (x *P2PResponse) GetError() string
- func (x *P2PResponse) GetHeaders() *P2PMessageHeaders
- func (x *P2PResponse) GetNodeInfo() *NodeInfo
- func (x *P2PResponse) GetPeerInfo() *PeerInfo
- func (x *P2PResponse) GetPeerInfos() *PeerInfoList
- func (m *P2PResponse) GetResponse() isP2PResponse_Response
- func (*P2PResponse) ProtoMessage()
- func (x *P2PResponse) ProtoReflect() protoreflect.Message
- func (x *P2PResponse) Reset()
- func (x *P2PResponse) String() string
- type P2PResponse_BlockBody
- type P2PResponse_BlockHeaders
- type P2PResponse_ChunkRecords
- type P2PResponse_NodeInfo
- type P2PResponse_PeerInfo
- type P2PResponse_PeerInfos
- type P2PRoute
- type P2PTx
- type P2PTxReq
- type P2PVerAck
- func (*P2PVerAck) Descriptor() ([]byte, []int)deprecated
- func (x *P2PVerAck) GetNonce() int64
- func (x *P2PVerAck) GetService() int64
- func (x *P2PVerAck) GetVersion() int32
- func (*P2PVerAck) ProtoMessage()
- func (x *P2PVerAck) ProtoReflect() protoreflect.Message
- func (x *P2PVerAck) Reset()
- func (x *P2PVerAck) String() string
- type P2PVersion
- func (*P2PVersion) Descriptor() ([]byte, []int)deprecated
- func (x *P2PVersion) GetAddrFrom() string
- func (x *P2PVersion) GetAddrRecv() string
- func (x *P2PVersion) GetNonce() int64
- func (x *P2PVersion) GetService() int64
- func (x *P2PVersion) GetStartHeight() int64
- func (x *P2PVersion) GetTimestamp() int64
- func (x *P2PVersion) GetUserAgent() string
- func (x *P2PVersion) GetVersion() int32
- func (*P2PVersion) ProtoMessage()
- func (x *P2PVersion) ProtoReflect() protoreflect.Message
- func (x *P2PVersion) Reset()
- func (x *P2PVersion) String() string
- type P2PgserviceClient
- type P2PgserviceServer
- type P2Pgservice_GetDataClient
- type P2Pgservice_GetDataServer
- type P2Pgservice_ServerStreamReadClient
- type P2Pgservice_ServerStreamReadServer
- type P2Pgservice_ServerStreamSendClient
- type P2Pgservice_ServerStreamSendServer
- type ParaChainBlockDetail
- func (*ParaChainBlockDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ParaChainBlockDetail) GetBlockdetail() *BlockDetail
- func (x *ParaChainBlockDetail) GetIsSync() bool
- func (x *ParaChainBlockDetail) GetSequence() int64
- func (*ParaChainBlockDetail) ProtoMessage()
- func (x *ParaChainBlockDetail) ProtoReflect() protoreflect.Message
- func (x *ParaChainBlockDetail) Reset()
- func (x *ParaChainBlockDetail) String() string
- type ParaCrossTx
- type ParaRPCConfig
- type ParaTxDetail
- func (*ParaTxDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ParaTxDetail) GetChildHash() []byte
- func (x *ParaTxDetail) GetHeader() *Header
- func (x *ParaTxDetail) GetIndex() uint32
- func (x *ParaTxDetail) GetProofs() [][]byte
- func (x *ParaTxDetail) GetTxDetails() []*TxDetail
- func (x *ParaTxDetail) GetType() int64
- func (*ParaTxDetail) ProtoMessage()
- func (x *ParaTxDetail) ProtoReflect() protoreflect.Message
- func (x *ParaTxDetail) Reset()
- func (paraTxDetail *ParaTxDetail) Size() int
- func (x *ParaTxDetail) String() string
- type ParaTxDetails
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)deprecated
- func (x *Peer) GetAddr() string
- func (x *Peer) GetBlocked() bool
- func (x *Peer) GetFinalized() *SnowChoice
- func (x *Peer) GetFullNode() bool
- func (x *Peer) GetHeader() *Header
- func (x *Peer) GetLocalDBVersion() string
- func (x *Peer) GetMempoolSize() int32
- func (x *Peer) GetName() string
- func (x *Peer) GetPort() int32
- func (x *Peer) GetRunningTime() string
- func (x *Peer) GetSelf() bool
- func (x *Peer) GetStoreDBVersion() string
- func (x *Peer) GetVersion() string
- func (*Peer) ProtoMessage()
- func (x *Peer) ProtoReflect() protoreflect.Message
- func (x *Peer) Reset()
- func (x *Peer) String() string
- type PeerInfo
- type PeerInfoList
- type PeerList
- type PeerPubSubMsg
- func (*PeerPubSubMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PeerPubSubMsg) GetMsgID() int32
- func (x *PeerPubSubMsg) GetProtoMsg() []byte
- func (*PeerPubSubMsg) ProtoMessage()
- func (x *PeerPubSubMsg) ProtoReflect() protoreflect.Message
- func (x *PeerPubSubMsg) Reset()
- func (x *PeerPubSubMsg) String() string
- type PeersInfo
- func (*PeersInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PeersInfo) GetIp() string
- func (x *PeersInfo) GetName() string
- func (x *PeersInfo) GetP2Pversion() int32
- func (x *PeersInfo) GetPort() int32
- func (x *PeersInfo) GetSoftversion() string
- func (*PeersInfo) ProtoMessage()
- func (x *PeersInfo) ProtoReflect() protoreflect.Message
- func (x *PeersInfo) Reset()
- func (x *PeersInfo) String() string
- type PeersReply
- type Pprof
- type ProtocolInfo
- func (*ProtocolInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolInfo) GetProtocol() string
- func (x *ProtocolInfo) GetRatein() string
- func (x *ProtocolInfo) GetRateout() string
- func (x *ProtocolInfo) GetRatetotal() string
- func (*ProtocolInfo) ProtoMessage()
- func (x *ProtocolInfo) ProtoReflect() protoreflect.Message
- func (x *ProtocolInfo) Reset()
- func (x *ProtocolInfo) String() string
- type PruneData
- type PublishTopicMsg
- func (*PublishTopicMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PublishTopicMsg) GetMsg() []byte
- func (x *PublishTopicMsg) GetTopic() string
- func (*PublishTopicMsg) ProtoMessage()
- func (x *PublishTopicMsg) ProtoReflect() protoreflect.Message
- func (x *PublishTopicMsg) Reset()
- func (x *PublishTopicMsg) String() string
- type PublishTopicMsgReply
- func (*PublishTopicMsgReply) Descriptor() ([]byte, []int)deprecated
- func (x *PublishTopicMsgReply) GetMsg() string
- func (x *PublishTopicMsgReply) GetStatus() bool
- func (x *PublishTopicMsgReply) GetTopic() string
- func (*PublishTopicMsgReply) ProtoMessage()
- func (x *PublishTopicMsgReply) ProtoReflect() protoreflect.Message
- func (x *PublishTopicMsgReply) Reset()
- func (x *PublishTopicMsgReply) String() string
- type PushData
- func (*PushData) Descriptor() ([]byte, []int)deprecated
- func (x *PushData) GetBlockSeqs() *BlockSeqs
- func (x *PushData) GetEvmLogs() *EVMTxLogsInBlks
- func (x *PushData) GetHeaderSeqs() *HeaderSeqs
- func (x *PushData) GetName() string
- func (x *PushData) GetTxReceipts() *TxReceipts4Subscribe
- func (x *PushData) GetTxResult() *TxResultSeqs
- func (m *PushData) GetValue() isPushData_Value
- func (*PushData) ProtoMessage()
- func (x *PushData) ProtoReflect() protoreflect.Message
- func (x *PushData) Reset()
- func (x *PushData) String() string
- type PushData_BlockSeqs
- type PushData_EvmLogs
- type PushData_HeaderSeqs
- type PushData_TxReceipts
- type PushData_TxResult
- type PushSubscribeReq
- func (*PushSubscribeReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushSubscribeReq) GetContract() map[string]bool
- func (x *PushSubscribeReq) GetEncode() string
- func (x *PushSubscribeReq) GetLastBlockHash() string
- func (x *PushSubscribeReq) GetLastHeight() int64
- func (x *PushSubscribeReq) GetLastSequence() int64
- func (x *PushSubscribeReq) GetName() string
- func (x *PushSubscribeReq) GetType() int32
- func (x *PushSubscribeReq) GetURL() string
- func (*PushSubscribeReq) ProtoMessage()
- func (x *PushSubscribeReq) ProtoReflect() protoreflect.Message
- func (x *PushSubscribeReq) Reset()
- func (x *PushSubscribeReq) String() string
- type PushSubscribes
- type PushWithStatus
- func (*PushWithStatus) Descriptor() ([]byte, []int)deprecated
- func (x *PushWithStatus) GetPush() *PushSubscribeReq
- func (x *PushWithStatus) GetStatus() int32
- func (*PushWithStatus) ProtoMessage()
- func (x *PushWithStatus) ProtoReflect() protoreflect.Message
- func (x *PushWithStatus) Reset()
- func (x *PushWithStatus) String() string
- type Query
- type QueryData
- func (q *QueryData) Call(driver, name string, in Message) (reply Message, err error)
- func (q *QueryData) Decode(driver, name string, in []byte) (reply Message, err error)
- func (q *QueryData) DecodeJSON(driver, name string, in json.Marshaler) (reply Message, err error)
- func (q *QueryData) GetFunc(driver, name string) (reflect.Method, error)
- func (q *QueryData) GetType(driver, name string) (reflect.Type, error)
- func (q *QueryData) Register(key string, obj interface{})
- func (q *QueryData) SetThis(key string, this reflect.Value)
- type RPC
- type ReWriteRawTx
- func (*ReWriteRawTx) Descriptor() ([]byte, []int)deprecated
- func (x *ReWriteRawTx) GetExpire() string
- func (x *ReWriteRawTx) GetFee() int64
- func (x *ReWriteRawTx) GetIndex() int32
- func (x *ReWriteRawTx) GetTo() string
- func (x *ReWriteRawTx) GetTx() string
- func (*ReWriteRawTx) ProtoMessage()
- func (x *ReWriteRawTx) ProtoReflect() protoreflect.Message
- func (x *ReWriteRawTx) Reset()
- func (x *ReWriteRawTx) String() string
- type Receipt
- func (*Receipt) Descriptor() ([]byte, []int)deprecated
- func (x *Receipt) GetKV() []*KeyValue
- func (x *Receipt) GetLogs() []*ReceiptLog
- func (x *Receipt) GetTy() int32
- func (*Receipt) ProtoMessage()
- func (x *Receipt) ProtoReflect() protoreflect.Message
- func (x *Receipt) Reset()
- func (x *Receipt) String() string
- type ReceiptAccountBurn
- func (*ReceiptAccountBurn) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptAccountBurn) GetCurrent() *Account
- func (x *ReceiptAccountBurn) GetPrev() *Account
- func (*ReceiptAccountBurn) ProtoMessage()
- func (x *ReceiptAccountBurn) ProtoReflect() protoreflect.Message
- func (x *ReceiptAccountBurn) Reset()
- func (x *ReceiptAccountBurn) String() string
- type ReceiptAccountMint
- func (*ReceiptAccountMint) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptAccountMint) GetCurrent() *Account
- func (x *ReceiptAccountMint) GetPrev() *Account
- func (*ReceiptAccountMint) ProtoMessage()
- func (x *ReceiptAccountMint) ProtoReflect() protoreflect.Message
- func (x *ReceiptAccountMint) Reset()
- func (x *ReceiptAccountMint) String() string
- type ReceiptAccountTransfer
- func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptAccountTransfer) GetCurrent() *Account
- func (x *ReceiptAccountTransfer) GetPrev() *Account
- func (*ReceiptAccountTransfer) ProtoMessage()
- func (x *ReceiptAccountTransfer) ProtoReflect() protoreflect.Message
- func (x *ReceiptAccountTransfer) Reset()
- func (x *ReceiptAccountTransfer) String() string
- type ReceiptCheckTxList
- func (*ReceiptCheckTxList) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptCheckTxList) GetErrs() []string
- func (*ReceiptCheckTxList) ProtoMessage()
- func (x *ReceiptCheckTxList) ProtoReflect() protoreflect.Message
- func (x *ReceiptCheckTxList) Reset()
- func (x *ReceiptCheckTxList) String() string
- type ReceiptConfig
- func (*ReceiptConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptConfig) GetCurrent() *ConfigItem
- func (x *ReceiptConfig) GetPrev() *ConfigItem
- func (*ReceiptConfig) ProtoMessage()
- func (x *ReceiptConfig) ProtoReflect() protoreflect.Message
- func (x *ReceiptConfig) Reset()
- func (x *ReceiptConfig) String() string
- type ReceiptData
- func (r *ReceiptData) Clone() *ReceiptData
- func (r *ReceiptData) DecodeReceiptLog(execer []byte) (*ReceiptDataResult, error)
- func (*ReceiptData) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptData) GetLogs() []*ReceiptLog
- func (x *ReceiptData) GetTy() int32
- func (r *ReceiptData) OutputReceiptDetails(execer []byte, logger log.Logger)
- func (*ReceiptData) ProtoMessage()
- func (x *ReceiptData) ProtoReflect() protoreflect.Message
- func (x *ReceiptData) Reset()
- func (x *ReceiptData) String() string
- type ReceiptDataResult
- type ReceiptExecAccountTransfer
- func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptExecAccountTransfer) GetCurrent() *Account
- func (x *ReceiptExecAccountTransfer) GetExecAddr() string
- func (x *ReceiptExecAccountTransfer) GetPrev() *Account
- func (*ReceiptExecAccountTransfer) ProtoMessage()
- func (x *ReceiptExecAccountTransfer) ProtoReflect() protoreflect.Message
- func (x *ReceiptExecAccountTransfer) Reset()
- func (x *ReceiptExecAccountTransfer) String() string
- type ReceiptLog
- func (r *ReceiptLog) Clone() *ReceiptLog
- func (*ReceiptLog) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiptLog) GetLog() []byte
- func (x *ReceiptLog) GetTy() int32
- func (*ReceiptLog) ProtoMessage()
- func (x *ReceiptLog) ProtoReflect() protoreflect.Message
- func (x *ReceiptLog) Reset()
- func (x *ReceiptLog) String() string
- type ReceiptLogResult
- type Receipts
- type RemoveTopic
- func (*RemoveTopic) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveTopic) GetModule() string
- func (x *RemoveTopic) GetTopic() string
- func (*RemoveTopic) ProtoMessage()
- func (x *RemoveTopic) ProtoReflect() protoreflect.Message
- func (x *RemoveTopic) Reset()
- func (x *RemoveTopic) String() string
- type RemoveTopicReply
- func (*RemoveTopicReply) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveTopicReply) GetMsg() string
- func (x *RemoveTopicReply) GetStatus() bool
- func (x *RemoveTopicReply) GetTopic() string
- func (*RemoveTopicReply) ProtoMessage()
- func (x *RemoveTopicReply) ProtoReflect() protoreflect.Message
- func (x *RemoveTopicReply) Reset()
- func (x *RemoveTopicReply) String() string
- type Replies
- type Reply
- type ReplyBlockHeight
- type ReplyCheckTxsExist
- func (*ReplyCheckTxsExist) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyCheckTxsExist) GetExistCount() uint32
- func (x *ReplyCheckTxsExist) GetExistFlags() []bool
- func (*ReplyCheckTxsExist) ProtoMessage()
- func (x *ReplyCheckTxsExist) ProtoReflect() protoreflect.Message
- func (x *ReplyCheckTxsExist) Reset()
- func (x *ReplyCheckTxsExist) String() string
- type ReplyConfig
- type ReplyGetExecBalance
- func (t *ReplyGetExecBalance) AddItem(execAddr, value []byte)
- func (*ReplyGetExecBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyGetExecBalance) GetAmount() int64
- func (x *ReplyGetExecBalance) GetAmountActive() int64
- func (x *ReplyGetExecBalance) GetAmountFrozen() int64
- func (x *ReplyGetExecBalance) GetItems() []*ExecBalanceItem
- func (x *ReplyGetExecBalance) GetNextKey() []byte
- func (*ReplyGetExecBalance) ProtoMessage()
- func (x *ReplyGetExecBalance) ProtoReflect() protoreflect.Message
- func (x *ReplyGetExecBalance) Reset()
- func (x *ReplyGetExecBalance) String() string
- type ReplyGetTotalCoins
- func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyGetTotalCoins) GetAmount() int64
- func (x *ReplyGetTotalCoins) GetCount() int64
- func (x *ReplyGetTotalCoins) GetNextKey() []byte
- func (x *ReplyGetTotalCoins) GetNum() int64
- func (t *ReplyGetTotalCoins) IterateRangeByStateHash(key, value []byte) bool
- func (*ReplyGetTotalCoins) ProtoMessage()
- func (x *ReplyGetTotalCoins) ProtoReflect() protoreflect.Message
- func (x *ReplyGetTotalCoins) Reset()
- func (x *ReplyGetTotalCoins) String() string
- type ReplyHash
- type ReplyHashes
- func (*ReplyHashes) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyHashes) GetHashes() [][]byte
- func (hashes *ReplyHashes) Hash() []byte
- func (*ReplyHashes) ProtoMessage()
- func (x *ReplyHashes) ProtoReflect() protoreflect.Message
- func (x *ReplyHashes) Reset()
- func (x *ReplyHashes) String() string
- type ReplyHeightByTitle
- func (*ReplyHeightByTitle) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyHeightByTitle) GetItems() []*BlockInfo
- func (x *ReplyHeightByTitle) GetTitle() string
- func (*ReplyHeightByTitle) ProtoMessage()
- func (x *ReplyHeightByTitle) ProtoReflect() protoreflect.Message
- func (x *ReplyHeightByTitle) Reset()
- func (x *ReplyHeightByTitle) String() string
- type ReplyProperFee
- type ReplySeed
- type ReplySignRawTx
- type ReplyString
- type ReplyStrings
- type ReplySubscribePush
- func (*ReplySubscribePush) Descriptor() ([]byte, []int)deprecated
- func (x *ReplySubscribePush) GetIsOk() bool
- func (x *ReplySubscribePush) GetMsg() string
- func (*ReplySubscribePush) ProtoMessage()
- func (x *ReplySubscribePush) ProtoReflect() protoreflect.Message
- func (x *ReplySubscribePush) Reset()
- func (x *ReplySubscribePush) String() string
- type ReplyTxInfo
- func (*ReplyTxInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyTxInfo) GetAssets() []*Asset
- func (x *ReplyTxInfo) GetHash() []byte
- func (x *ReplyTxInfo) GetHeight() int64
- func (x *ReplyTxInfo) GetIndex() int64
- func (*ReplyTxInfo) ProtoMessage()
- func (x *ReplyTxInfo) ProtoReflect() protoreflect.Message
- func (x *ReplyTxInfo) Reset()
- func (x *ReplyTxInfo) String() string
- type ReplyTxInfos
- type ReplyTxList
- type ReportErrEvent
- func (*ReportErrEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ReportErrEvent) GetError() string
- func (x *ReportErrEvent) GetFrommodule() string
- func (x *ReportErrEvent) GetTomodule() string
- func (*ReportErrEvent) ProtoMessage()
- func (x *ReportErrEvent) ProtoReflect() protoreflect.Message
- func (x *ReportErrEvent) Reset()
- func (x *ReportErrEvent) String() string
- type ReqAccountList
- type ReqAddr
- func (*ReqAddr) Descriptor() ([]byte, []int)deprecated
- func (x *ReqAddr) GetAddr() string
- func (x *ReqAddr) GetCount() int32
- func (x *ReqAddr) GetDirection() int32
- func (x *ReqAddr) GetFlag() int32
- func (x *ReqAddr) GetHeight() int64
- func (x *ReqAddr) GetHeightEnd() int64
- func (x *ReqAddr) GetIndex() int64
- func (*ReqAddr) ProtoMessage()
- func (x *ReqAddr) ProtoReflect() protoreflect.Message
- func (x *ReqAddr) Reset()
- func (x *ReqAddr) String() string
- type ReqAddrs
- type ReqAllExecBalance
- func (*ReqAllExecBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ReqAllExecBalance) GetAddr() string
- func (x *ReqAllExecBalance) GetAssetExec() string
- func (x *ReqAllExecBalance) GetAssetSymbol() string
- func (x *ReqAllExecBalance) GetExecer() string
- func (x *ReqAllExecBalance) GetStateHash() string
- func (*ReqAllExecBalance) ProtoMessage()
- func (x *ReqAllExecBalance) ProtoReflect() protoreflect.Message
- func (x *ReqAllExecBalance) Reset()
- func (x *ReqAllExecBalance) String() string
- type ReqBalance
- func (*ReqBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ReqBalance) GetAddresses() []string
- func (x *ReqBalance) GetAssetExec() string
- func (x *ReqBalance) GetAssetSymbol() string
- func (x *ReqBalance) GetExecer() string
- func (x *ReqBalance) GetStateHash() string
- func (*ReqBalance) ProtoMessage()
- func (x *ReqBalance) ProtoReflect() protoreflect.Message
- func (x *ReqBalance) Reset()
- func (x *ReqBalance) String() string
- type ReqBlocks
- func (*ReqBlocks) Descriptor() ([]byte, []int)deprecated
- func (x *ReqBlocks) GetEnd() int64
- func (x *ReqBlocks) GetIsDetail() bool
- func (x *ReqBlocks) GetPid() []string
- func (x *ReqBlocks) GetStart() int64
- func (*ReqBlocks) ProtoMessage()
- func (x *ReqBlocks) ProtoReflect() protoreflect.Message
- func (x *ReqBlocks) Reset()
- func (x *ReqBlocks) String() string
- type ReqBytes
- type ReqCheckTxsExist
- type ReqChunkRecords
- func (*ReqChunkRecords) Descriptor() ([]byte, []int)deprecated
- func (x *ReqChunkRecords) GetEnd() int64
- func (x *ReqChunkRecords) GetIsDetail() bool
- func (x *ReqChunkRecords) GetPid() []string
- func (x *ReqChunkRecords) GetStart() int64
- func (*ReqChunkRecords) ProtoMessage()
- func (x *ReqChunkRecords) ProtoReflect() protoreflect.Message
- func (x *ReqChunkRecords) Reset()
- func (x *ReqChunkRecords) String() string
- type ReqDecodeRawTransaction
- func (*ReqDecodeRawTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *ReqDecodeRawTransaction) GetTxHex() string
- func (*ReqDecodeRawTransaction) ProtoMessage()
- func (x *ReqDecodeRawTransaction) ProtoReflect() protoreflect.Message
- func (x *ReqDecodeRawTransaction) Reset()
- func (x *ReqDecodeRawTransaction) String() string
- type ReqEvmAccountNonce
- func (*ReqEvmAccountNonce) Descriptor() ([]byte, []int)deprecated
- func (x *ReqEvmAccountNonce) GetAddr() string
- func (*ReqEvmAccountNonce) ProtoMessage()
- func (x *ReqEvmAccountNonce) ProtoReflect() protoreflect.Message
- func (x *ReqEvmAccountNonce) Reset()
- func (x *ReqEvmAccountNonce) String() string
- type ReqGetAccount
- type ReqGetExecBalance
- func (*ReqGetExecBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ReqGetExecBalance) GetAddr() []byte
- func (x *ReqGetExecBalance) GetCount() int64
- func (x *ReqGetExecBalance) GetExecAddr() []byte
- func (x *ReqGetExecBalance) GetExecer() string
- func (x *ReqGetExecBalance) GetNextKey() []byte
- func (x *ReqGetExecBalance) GetStateHash() []byte
- func (x *ReqGetExecBalance) GetSymbol() string
- func (*ReqGetExecBalance) ProtoMessage()
- func (x *ReqGetExecBalance) ProtoReflect() protoreflect.Message
- func (x *ReqGetExecBalance) Reset()
- func (x *ReqGetExecBalance) String() string
- type ReqGetMempool
- type ReqGetTotalCoins
- func (*ReqGetTotalCoins) Descriptor() ([]byte, []int)deprecated
- func (x *ReqGetTotalCoins) GetCount() int64
- func (x *ReqGetTotalCoins) GetExecer() string
- func (x *ReqGetTotalCoins) GetStartKey() []byte
- func (x *ReqGetTotalCoins) GetStateHash() []byte
- func (x *ReqGetTotalCoins) GetSymbol() string
- func (*ReqGetTotalCoins) ProtoMessage()
- func (x *ReqGetTotalCoins) ProtoReflect() protoreflect.Message
- func (x *ReqGetTotalCoins) Reset()
- func (x *ReqGetTotalCoins) String() string
- type ReqGetWalletRecoverAddr
- func (*ReqGetWalletRecoverAddr) Descriptor() ([]byte, []int)deprecated
- func (x *ReqGetWalletRecoverAddr) GetCtrPubKey() string
- func (x *ReqGetWalletRecoverAddr) GetRecoverPubKeys() []string
- func (x *ReqGetWalletRecoverAddr) GetRelativeDelayTime() int64
- func (*ReqGetWalletRecoverAddr) ProtoMessage()
- func (x *ReqGetWalletRecoverAddr) ProtoReflect() protoreflect.Message
- func (x *ReqGetWalletRecoverAddr) Reset()
- func (x *ReqGetWalletRecoverAddr) String() string
- type ReqHash
- type ReqHashes
- type ReqHeightByTitle
- func (*ReqHeightByTitle) Descriptor() ([]byte, []int)deprecated
- func (x *ReqHeightByTitle) GetCount() int32
- func (x *ReqHeightByTitle) GetDirection() int32
- func (x *ReqHeightByTitle) GetHeight() int64
- func (x *ReqHeightByTitle) GetTitle() string
- func (*ReqHeightByTitle) ProtoMessage()
- func (x *ReqHeightByTitle) ProtoReflect() protoreflect.Message
- func (x *ReqHeightByTitle) Reset()
- func (x *ReqHeightByTitle) String() string
- type ReqInt
- type ReqKey
- type ReqModifyConfig
- func (*ReqModifyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ReqModifyConfig) GetKey() string
- func (x *ReqModifyConfig) GetModifier() string
- func (x *ReqModifyConfig) GetOp() string
- func (x *ReqModifyConfig) GetValue() string
- func (*ReqModifyConfig) ProtoMessage()
- func (x *ReqModifyConfig) ProtoReflect() protoreflect.Message
- func (x *ReqModifyConfig) Reset()
- func (x *ReqModifyConfig) String() string
- type ReqMultiStrings
- type ReqNewAccount
- func (*ReqNewAccount) Descriptor() ([]byte, []int)deprecated
- func (x *ReqNewAccount) GetAddressID() int32
- func (x *ReqNewAccount) GetLabel() string
- func (*ReqNewAccount) ProtoMessage()
- func (x *ReqNewAccount) ProtoReflect() protoreflect.Message
- func (x *ReqNewAccount) Reset()
- func (x *ReqNewAccount) String() string
- type ReqNil
- type ReqParaTxByHeight
- func (*ReqParaTxByHeight) Descriptor() ([]byte, []int)deprecated
- func (x *ReqParaTxByHeight) GetItems() []int64
- func (x *ReqParaTxByHeight) GetTitle() string
- func (*ReqParaTxByHeight) ProtoMessage()
- func (x *ReqParaTxByHeight) ProtoReflect() protoreflect.Message
- func (x *ReqParaTxByHeight) Reset()
- func (x *ReqParaTxByHeight) String() string
- type ReqParaTxByTitle
- func (*ReqParaTxByTitle) Descriptor() ([]byte, []int)deprecated
- func (x *ReqParaTxByTitle) GetEnd() int64
- func (x *ReqParaTxByTitle) GetIsSeq() bool
- func (x *ReqParaTxByTitle) GetStart() int64
- func (x *ReqParaTxByTitle) GetTitle() string
- func (*ReqParaTxByTitle) ProtoMessage()
- func (x *ReqParaTxByTitle) ProtoReflect() protoreflect.Message
- func (x *ReqParaTxByTitle) Reset()
- func (x *ReqParaTxByTitle) String() string
- type ReqPeers
- type ReqPrivkeysFile
- func (*ReqPrivkeysFile) Descriptor() ([]byte, []int)deprecated
- func (x *ReqPrivkeysFile) GetFileName() string
- func (x *ReqPrivkeysFile) GetPasswd() string
- func (*ReqPrivkeysFile) ProtoMessage()
- func (x *ReqPrivkeysFile) ProtoReflect() protoreflect.Message
- func (x *ReqPrivkeysFile) Reset()
- func (x *ReqPrivkeysFile) String() string
- type ReqProperFee
- func (*ReqProperFee) Descriptor() ([]byte, []int)deprecated
- func (x *ReqProperFee) GetTxCount() int32
- func (x *ReqProperFee) GetTxSize() int32
- func (*ReqProperFee) ProtoMessage()
- func (x *ReqProperFee) ProtoReflect() protoreflect.Message
- func (x *ReqProperFee) Reset()
- func (x *ReqProperFee) String() string
- type ReqRandHash
- func (*ReqRandHash) Descriptor() ([]byte, []int)deprecated
- func (x *ReqRandHash) GetBlockNum() int64
- func (x *ReqRandHash) GetExecName() string
- func (x *ReqRandHash) GetHash() []byte
- func (x *ReqRandHash) GetHeight() int64
- func (*ReqRandHash) ProtoMessage()
- func (x *ReqRandHash) ProtoReflect() protoreflect.Message
- func (x *ReqRandHash) Reset()
- func (x *ReqRandHash) String() string
- type ReqSignRawTx
- func (*ReqSignRawTx) Descriptor() ([]byte, []int)deprecated
- func (x *ReqSignRawTx) GetAddr() string
- func (x *ReqSignRawTx) GetAddressID() int32
- func (x *ReqSignRawTx) GetExpire() string
- func (x *ReqSignRawTx) GetFee() int64
- func (x *ReqSignRawTx) GetIndex() int32
- func (x *ReqSignRawTx) GetNewToAddr() string
- func (x *ReqSignRawTx) GetPrivkey() string
- func (x *ReqSignRawTx) GetToken() string
- func (x *ReqSignRawTx) GetTxHex() string
- func (*ReqSignRawTx) ProtoMessage()
- func (x *ReqSignRawTx) ProtoReflect() protoreflect.Message
- func (x *ReqSignRawTx) Reset()
- func (x *ReqSignRawTx) String() string
- type ReqSignWalletRecoverTx
- func (*ReqSignWalletRecoverTx) Descriptor() ([]byte, []int)deprecated
- func (x *ReqSignWalletRecoverTx) GetPrivKey() string
- func (x *ReqSignWalletRecoverTx) GetRawTx() string
- func (x *ReqSignWalletRecoverTx) GetSignAddr() string
- func (x *ReqSignWalletRecoverTx) GetWalletRecoverParam() *ReqGetWalletRecoverAddr
- func (*ReqSignWalletRecoverTx) ProtoMessage()
- func (x *ReqSignWalletRecoverTx) ProtoReflect() protoreflect.Message
- func (x *ReqSignWalletRecoverTx) Reset()
- func (x *ReqSignWalletRecoverTx) String() string
- type ReqString
- type ReqSubscribe
- func (*ReqSubscribe) Descriptor() ([]byte, []int)deprecated
- func (x *ReqSubscribe) GetContract() map[string]bool
- func (x *ReqSubscribe) GetFromBlock() int64
- func (x *ReqSubscribe) GetName() string
- func (x *ReqSubscribe) GetToBlock() int64
- func (x *ReqSubscribe) GetType() int32
- func (*ReqSubscribe) ProtoMessage()
- func (x *ReqSubscribe) ProtoReflect() protoreflect.Message
- func (x *ReqSubscribe) Reset()
- func (x *ReqSubscribe) String() string
- type ReqTokenFinishCreate
- func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int)deprecated
- func (x *ReqTokenFinishCreate) GetFinisherAddr() string
- func (x *ReqTokenFinishCreate) GetOwnerAddr() string
- func (x *ReqTokenFinishCreate) GetSymbol() string
- func (*ReqTokenFinishCreate) ProtoMessage()
- func (x *ReqTokenFinishCreate) ProtoReflect() protoreflect.Message
- func (x *ReqTokenFinishCreate) Reset()
- func (x *ReqTokenFinishCreate) String() string
- type ReqTokenPreCreate
- func (*ReqTokenPreCreate) Descriptor() ([]byte, []int)deprecated
- func (x *ReqTokenPreCreate) GetCreatorAddr() string
- func (x *ReqTokenPreCreate) GetIntroduction() string
- func (x *ReqTokenPreCreate) GetName() string
- func (x *ReqTokenPreCreate) GetOwnerAddr() string
- func (x *ReqTokenPreCreate) GetPrice() int64
- func (x *ReqTokenPreCreate) GetSymbol() string
- func (x *ReqTokenPreCreate) GetTotal() int64
- func (*ReqTokenPreCreate) ProtoMessage()
- func (x *ReqTokenPreCreate) ProtoReflect() protoreflect.Message
- func (x *ReqTokenPreCreate) Reset()
- func (x *ReqTokenPreCreate) String() string
- type ReqTokenRevokeCreate
- func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int)deprecated
- func (x *ReqTokenRevokeCreate) GetOwnerAddr() string
- func (x *ReqTokenRevokeCreate) GetRevokerAddr() string
- func (x *ReqTokenRevokeCreate) GetSymbol() string
- func (*ReqTokenRevokeCreate) ProtoMessage()
- func (x *ReqTokenRevokeCreate) ProtoReflect() protoreflect.Message
- func (x *ReqTokenRevokeCreate) Reset()
- func (x *ReqTokenRevokeCreate) String() string
- type ReqTxHashList
- func (*ReqTxHashList) Descriptor() ([]byte, []int)deprecated
- func (x *ReqTxHashList) GetHashes() []string
- func (x *ReqTxHashList) GetIsShortHash() bool
- func (*ReqTxHashList) ProtoMessage()
- func (x *ReqTxHashList) ProtoReflect() protoreflect.Message
- func (x *ReqTxHashList) Reset()
- func (x *ReqTxHashList) String() string
- type ReqTxList
- type ReqWalletImportPrivkey
- func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int)deprecated
- func (x *ReqWalletImportPrivkey) GetAddressID() int32
- func (x *ReqWalletImportPrivkey) GetLabel() string
- func (x *ReqWalletImportPrivkey) GetPrivkey() string
- func (*ReqWalletImportPrivkey) ProtoMessage()
- func (x *ReqWalletImportPrivkey) ProtoReflect() protoreflect.Message
- func (x *ReqWalletImportPrivkey) Reset()
- func (x *ReqWalletImportPrivkey) String() string
- type ReqWalletMergeBalance
- func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ReqWalletMergeBalance) GetTo() string
- func (*ReqWalletMergeBalance) ProtoMessage()
- func (x *ReqWalletMergeBalance) ProtoReflect() protoreflect.Message
- func (x *ReqWalletMergeBalance) Reset()
- func (x *ReqWalletMergeBalance) String() string
- type ReqWalletSendToAddress
- func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int)deprecated
- func (x *ReqWalletSendToAddress) GetAmount() int64
- func (x *ReqWalletSendToAddress) GetFrom() string
- func (x *ReqWalletSendToAddress) GetIsToken() bool
- func (x *ReqWalletSendToAddress) GetNote() string
- func (x *ReqWalletSendToAddress) GetTo() string
- func (x *ReqWalletSendToAddress) GetTokenSymbol() string
- func (*ReqWalletSendToAddress) ProtoMessage()
- func (x *ReqWalletSendToAddress) ProtoReflect() protoreflect.Message
- func (x *ReqWalletSendToAddress) Reset()
- func (x *ReqWalletSendToAddress) String() string
- type ReqWalletSetFee
- type ReqWalletSetLabel
- func (*ReqWalletSetLabel) Descriptor() ([]byte, []int)deprecated
- func (x *ReqWalletSetLabel) GetAddr() string
- func (x *ReqWalletSetLabel) GetLabel() string
- func (*ReqWalletSetLabel) ProtoMessage()
- func (x *ReqWalletSetLabel) ProtoReflect() protoreflect.Message
- func (x *ReqWalletSetLabel) Reset()
- func (x *ReqWalletSetLabel) String() string
- type ReqWalletSetPasswd
- func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int)deprecated
- func (x *ReqWalletSetPasswd) GetNewPass() string
- func (x *ReqWalletSetPasswd) GetOldPass() string
- func (*ReqWalletSetPasswd) ProtoMessage()
- func (x *ReqWalletSetPasswd) ProtoReflect() protoreflect.Message
- func (x *ReqWalletSetPasswd) Reset()
- func (x *ReqWalletSetPasswd) String() string
- type ReqWalletTransactionList
- func (*ReqWalletTransactionList) Descriptor() ([]byte, []int)deprecated
- func (x *ReqWalletTransactionList) GetCount() int32
- func (x *ReqWalletTransactionList) GetDirection() int32
- func (x *ReqWalletTransactionList) GetFromTx() []byte
- func (*ReqWalletTransactionList) ProtoMessage()
- func (x *ReqWalletTransactionList) ProtoReflect() protoreflect.Message
- func (x *ReqWalletTransactionList) Reset()
- func (x *ReqWalletTransactionList) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetAck() *RequestAck
- func (x *Request) GetCheckpoint() *RequestCheckpoint
- func (x *Request) GetClient() *RequestClient
- func (x *Request) GetCommit() *RequestCommit
- func (x *Request) GetNewview() *RequestNewView
- func (x *Request) GetPrepare() *RequestPrepare
- func (x *Request) GetPreprepare() *RequestPrePrepare
- func (m *Request) GetValue() isRequest_Value
- func (x *Request) GetViewchange() *RequestViewChange
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type RequestAck
- func (*RequestAck) Descriptor() ([]byte, []int)deprecated
- func (x *RequestAck) GetDigest() []byte
- func (x *RequestAck) GetReplica() uint32
- func (x *RequestAck) GetView() uint32
- func (x *RequestAck) GetViewchanger() uint32
- func (*RequestAck) ProtoMessage()
- func (x *RequestAck) ProtoReflect() protoreflect.Message
- func (x *RequestAck) Reset()
- func (x *RequestAck) String() string
- type RequestCheckpoint
- func (*RequestCheckpoint) Descriptor() ([]byte, []int)deprecated
- func (x *RequestCheckpoint) GetDigest() []byte
- func (x *RequestCheckpoint) GetReplica() uint32
- func (x *RequestCheckpoint) GetSequence() uint32
- func (*RequestCheckpoint) ProtoMessage()
- func (x *RequestCheckpoint) ProtoReflect() protoreflect.Message
- func (x *RequestCheckpoint) Reset()
- func (x *RequestCheckpoint) String() string
- type RequestClient
- func (*RequestClient) Descriptor() ([]byte, []int)deprecated
- func (x *RequestClient) GetClient() string
- func (x *RequestClient) GetOp() *Operation
- func (x *RequestClient) GetTimestamp() string
- func (*RequestClient) ProtoMessage()
- func (x *RequestClient) ProtoReflect() protoreflect.Message
- func (x *RequestClient) Reset()
- func (x *RequestClient) String() string
- type RequestCommit
- func (*RequestCommit) Descriptor() ([]byte, []int)deprecated
- func (x *RequestCommit) GetReplica() uint32
- func (x *RequestCommit) GetSequence() uint32
- func (x *RequestCommit) GetView() uint32
- func (*RequestCommit) ProtoMessage()
- func (x *RequestCommit) ProtoReflect() protoreflect.Message
- func (x *RequestCommit) Reset()
- func (x *RequestCommit) String() string
- type RequestNewView
- func (*RequestNewView) Descriptor() ([]byte, []int)deprecated
- func (x *RequestNewView) GetReplica() uint32
- func (x *RequestNewView) GetSummaries() []*Summary
- func (x *RequestNewView) GetView() uint32
- func (x *RequestNewView) GetViewchanges() []*ViewChange
- func (*RequestNewView) ProtoMessage()
- func (x *RequestNewView) ProtoReflect() protoreflect.Message
- func (x *RequestNewView) Reset()
- func (x *RequestNewView) String() string
- type RequestPrePrepare
- func (*RequestPrePrepare) Descriptor() ([]byte, []int)deprecated
- func (x *RequestPrePrepare) GetDigest() []byte
- func (x *RequestPrePrepare) GetReplica() uint32
- func (x *RequestPrePrepare) GetSequence() uint32
- func (x *RequestPrePrepare) GetView() uint32
- func (*RequestPrePrepare) ProtoMessage()
- func (x *RequestPrePrepare) ProtoReflect() protoreflect.Message
- func (x *RequestPrePrepare) Reset()
- func (x *RequestPrePrepare) String() string
- type RequestPrepare
- func (*RequestPrepare) Descriptor() ([]byte, []int)deprecated
- func (x *RequestPrepare) GetDigest() []byte
- func (x *RequestPrepare) GetReplica() uint32
- func (x *RequestPrepare) GetSequence() uint32
- func (x *RequestPrepare) GetView() uint32
- func (*RequestPrepare) ProtoMessage()
- func (x *RequestPrepare) ProtoReflect() protoreflect.Message
- func (x *RequestPrepare) Reset()
- func (x *RequestPrepare) String() string
- type RequestViewChange
- func (*RequestViewChange) Descriptor() ([]byte, []int)deprecated
- func (x *RequestViewChange) GetCheckpoints() []*Checkpoint
- func (x *RequestViewChange) GetPrepreps() []*Entry
- func (x *RequestViewChange) GetPreps() []*Entry
- func (x *RequestViewChange) GetReplica() uint32
- func (x *RequestViewChange) GetSequence() uint32
- func (x *RequestViewChange) GetView() uint32
- func (*RequestViewChange) ProtoMessage()
- func (x *RequestViewChange) ProtoReflect() protoreflect.Message
- func (x *RequestViewChange) Reset()
- func (x *RequestViewChange) String() string
- type Request_Ack
- type Request_Checkpoint
- type Request_Client
- type Request_Commit
- type Request_Newview
- type Request_Prepare
- type Request_Preprepare
- type Request_Viewchange
- type Result
- type RingSignature
- type RingSignatureItem
- func (*RingSignatureItem) Descriptor() ([]byte, []int)deprecated
- func (x *RingSignatureItem) GetPubkey() [][]byte
- func (x *RingSignatureItem) GetSignature() [][]byte
- func (*RingSignatureItem) ProtoMessage()
- func (x *RingSignatureItem) ProtoReflect() protoreflect.Message
- func (x *RingSignatureItem) Reset()
- func (x *RingSignatureItem) String() string
- type SaveSeedByPw
- func (*SaveSeedByPw) Descriptor() ([]byte, []int)deprecated
- func (x *SaveSeedByPw) GetPasswd() string
- func (x *SaveSeedByPw) GetSeed() string
- func (*SaveSeedByPw) ProtoMessage()
- func (x *SaveSeedByPw) ProtoReflect() protoreflect.Message
- func (x *SaveSeedByPw) Reset()
- func (x *SaveSeedByPw) String() string
- type ServerTime
- type SetPeer
- func (*SetPeer) Descriptor() ([]byte, []int)deprecated
- func (x *SetPeer) GetPeerAddr() string
- func (x *SetPeer) GetPid() string
- func (x *SetPeer) GetSeed() bool
- func (*SetPeer) ProtoMessage()
- func (x *SetPeer) ProtoReflect() protoreflect.Message
- func (x *SetPeer) Reset()
- func (x *SetPeer) String() string
- type Signature
- func (sig *Signature) Clone() *Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetPubkey() []byte
- func (x *Signature) GetSignature() []byte
- func (x *Signature) GetTy() int32
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) String() string
- type SnowChits
- func (*SnowChits) Descriptor() ([]byte, []int)deprecated
- func (x *SnowChits) GetAcceptedBlkHash() []byte
- func (x *SnowChits) GetPeerName() string
- func (x *SnowChits) GetPreferredBlkHash() []byte
- func (x *SnowChits) GetRequestID() uint32
- func (*SnowChits) ProtoMessage()
- func (x *SnowChits) ProtoReflect() protoreflect.Message
- func (x *SnowChits) Reset()
- func (x *SnowChits) String() string
- type SnowChoice
- type SnowFailedQuery
- func (*SnowFailedQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SnowFailedQuery) GetPeerName() string
- func (x *SnowFailedQuery) GetRequestID() uint32
- func (*SnowFailedQuery) ProtoMessage()
- func (x *SnowFailedQuery) ProtoReflect() protoreflect.Message
- func (x *SnowFailedQuery) Reset()
- func (x *SnowFailedQuery) String() string
- type SnowGetBlock
- func (*SnowGetBlock) Descriptor() ([]byte, []int)deprecated
- func (x *SnowGetBlock) GetBlockHash() []byte
- func (x *SnowGetBlock) GetPeerName() string
- func (x *SnowGetBlock) GetRequestID() uint32
- func (*SnowGetBlock) ProtoMessage()
- func (x *SnowGetBlock) ProtoReflect() protoreflect.Message
- func (x *SnowGetBlock) Reset()
- func (x *SnowGetBlock) String() string
- type SnowPullQuery
- func (*SnowPullQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SnowPullQuery) GetBlockHash() []byte
- func (x *SnowPullQuery) GetPeerName() string
- func (x *SnowPullQuery) GetRequestID() uint32
- func (*SnowPullQuery) ProtoMessage()
- func (x *SnowPullQuery) ProtoReflect() protoreflect.Message
- func (x *SnowPullQuery) Reset()
- func (x *SnowPullQuery) String() string
- type SnowPushQuery
- func (*SnowPushQuery) Descriptor() ([]byte, []int)deprecated
- func (x *SnowPushQuery) GetBlockData() []byte
- func (x *SnowPushQuery) GetPeerName() string
- func (x *SnowPushQuery) GetRequestID() uint32
- func (*SnowPushQuery) ProtoMessage()
- func (x *SnowPushQuery) ProtoReflect() protoreflect.Message
- func (x *SnowPushQuery) Reset()
- func (x *SnowPushQuery) String() string
- type SnowPutBlock
- func (*SnowPutBlock) Descriptor() ([]byte, []int)deprecated
- func (x *SnowPutBlock) GetBlockData() []byte
- func (x *SnowPutBlock) GetBlockHash() []byte
- func (x *SnowPutBlock) GetPeerName() string
- func (x *SnowPutBlock) GetRequestID() uint32
- func (*SnowPutBlock) ProtoMessage()
- func (x *SnowPutBlock) ProtoReflect() protoreflect.Message
- func (x *SnowPutBlock) Reset()
- func (x *SnowPutBlock) String() string
- type Statistical
- func (*Statistical) Descriptor() ([]byte, []int)deprecated
- func (x *Statistical) GetNodeinfo() *NodeNetInfo
- func (x *Statistical) GetPeers() []*Peer
- func (*Statistical) ProtoMessage()
- func (x *Statistical) ProtoReflect() protoreflect.Message
- func (x *Statistical) Reset()
- func (x *Statistical) String() string
- type Store
- type StoreDel
- type StoreGet
- type StoreList
- func (*StoreList) Descriptor() ([]byte, []int)deprecated
- func (x *StoreList) GetCount() int64
- func (x *StoreList) GetEnd() []byte
- func (x *StoreList) GetMode() int64
- func (x *StoreList) GetStart() []byte
- func (x *StoreList) GetStateHash() []byte
- func (x *StoreList) GetSuffix() []byte
- func (*StoreList) ProtoMessage()
- func (x *StoreList) ProtoReflect() protoreflect.Message
- func (x *StoreList) Reset()
- func (x *StoreList) String() string
- type StoreListReply
- func (*StoreListReply) Descriptor() ([]byte, []int)deprecated
- func (x *StoreListReply) GetCount() int64
- func (x *StoreListReply) GetEnd() []byte
- func (x *StoreListReply) GetKeys() [][]byte
- func (x *StoreListReply) GetMode() int64
- func (x *StoreListReply) GetNextKey() []byte
- func (x *StoreListReply) GetNum() int64
- func (x *StoreListReply) GetStart() []byte
- func (x *StoreListReply) GetSuffix() []byte
- func (x *StoreListReply) GetValues() [][]byte
- func (*StoreListReply) ProtoMessage()
- func (x *StoreListReply) ProtoReflect() protoreflect.Message
- func (x *StoreListReply) Reset()
- func (x *StoreListReply) String() string
- type StoreNode
- func (*StoreNode) Descriptor() ([]byte, []int)deprecated
- func (x *StoreNode) GetHeight() int32
- func (x *StoreNode) GetKey() []byte
- func (x *StoreNode) GetLeftHash() []byte
- func (x *StoreNode) GetRightHash() []byte
- func (x *StoreNode) GetSize() int32
- func (x *StoreNode) GetValue() []byte
- func (*StoreNode) ProtoMessage()
- func (x *StoreNode) ProtoReflect() protoreflect.Message
- func (x *StoreNode) Reset()
- func (x *StoreNode) String() string
- type StoreReplyValue
- type StoreSet
- func (*StoreSet) Descriptor() ([]byte, []int)deprecated
- func (x *StoreSet) GetHeight() int64
- func (x *StoreSet) GetKV() []*KeyValue
- func (x *StoreSet) GetStateHash() []byte
- func (*StoreSet) ProtoMessage()
- func (x *StoreSet) ProtoReflect() protoreflect.Message
- func (x *StoreSet) Reset()
- func (x *StoreSet) String() string
- type StoreSetWithSync
- func (*StoreSetWithSync) Descriptor() ([]byte, []int)deprecated
- func (x *StoreSetWithSync) GetStoreset() *StoreSet
- func (x *StoreSetWithSync) GetSync() bool
- func (x *StoreSetWithSync) GetUpgrade() bool
- func (*StoreSetWithSync) ProtoMessage()
- func (x *StoreSetWithSync) ProtoReflect() protoreflect.Message
- func (x *StoreSetWithSync) Reset()
- func (x *StoreSetWithSync) String() string
- type StoreValuePool
- type StringConfig
- type SubTopic
- type SubTopicReply
- func (*SubTopicReply) Descriptor() ([]byte, []int)deprecated
- func (x *SubTopicReply) GetMsg() string
- func (x *SubTopicReply) GetStatus() bool
- func (*SubTopicReply) ProtoMessage()
- func (x *SubTopicReply) ProtoReflect() protoreflect.Message
- func (x *SubTopicReply) Reset()
- func (x *SubTopicReply) String() string
- type SubscribeStatus
- func (*SubscribeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeStatus) GetName() string
- func (x *SubscribeStatus) GetStatus() int32
- func (*SubscribeStatus) ProtoMessage()
- func (x *SubscribeStatus) ProtoReflect() protoreflect.Message
- func (x *SubscribeStatus) Reset()
- func (x *SubscribeStatus) String() string
- type Summary
- type TSSMessage
- type TimeStatus
- func (*TimeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *TimeStatus) GetDiff() int64
- func (x *TimeStatus) GetLocalTime() string
- func (x *TimeStatus) GetNtpTime() string
- func (*TimeStatus) ProtoMessage()
- func (x *TimeStatus) ProtoReflect() protoreflect.Message
- func (x *TimeStatus) Reset()
- func (x *TimeStatus) String() string
- type TopicData
- func (*TopicData) Descriptor() ([]byte, []int)deprecated
- func (x *TopicData) GetData() []byte
- func (x *TopicData) GetFrom() string
- func (x *TopicData) GetTopic() string
- func (*TopicData) ProtoMessage()
- func (x *TopicData) ProtoReflect() protoreflect.Message
- func (x *TopicData) Reset()
- func (x *TopicData) String() string
- type TopicList
- type TotalAmount
- type TotalFee
- type Transaction
- func CacheToTxs(caches []*TransactionCache) (txs []*Transaction)
- func CallCreateTransaction(execName, action string, param Message) (*Transaction, error)
- func CloneTx(tx *Transaction) *Transaction
- func CreateFormatTx(c *Chain33Config, execName string, payload []byte) (*Transaction, error)
- func FormatTx(c *Chain33Config, execName string, tx *Transaction) (*Transaction, error)
- func FormatTxExt(chainID int32, isPara bool, minFee int64, execName string, tx *Transaction) (*Transaction, error)
- func NewTx() *Transaction
- func TransactionSort(rawtxs []*Transaction) []*Transaction
- func (tx *Transaction) ActionName() string
- func (tx *Transaction) Amount() (int64, error)
- func (tx *Transaction) Assets() ([]*Asset, error)
- func (tx *Transaction) Check(cfg *Chain33Config, height, minfee, maxFee int64) error
- func (tx *Transaction) CheckSign(blockHeight int64) bool
- func (tx *Transaction) Clone() *Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (tx *Transaction) From() string
- func (tx *Transaction) FullHash() []byte
- func (x *Transaction) GetChainID() int32
- func (tx *Transaction) GetEthTxHash() []byte
- func (x *Transaction) GetExecer() []byte
- func (x *Transaction) GetExpire() int64
- func (x *Transaction) GetFee() int64
- func (x *Transaction) GetGroupCount() int32
- func (x *Transaction) GetHeader() []byte
- func (x *Transaction) GetNext() []byte
- func (x *Transaction) GetNonce() int64
- func (x *Transaction) GetPayload() []byte
- func (tx *Transaction) GetRealFee(minFee int64) (int64, error)
- func (tx *Transaction) GetRealToAddr() string
- func (x *Transaction) GetSignature() *Signature
- func (x *Transaction) GetTo() string
- func (tx *Transaction) GetTxFee() int64
- func (tx *Transaction) GetTxGroup() (*Transactions, error)
- func (tx *Transaction) GetViewFromToAddr() (string, string)
- func (tx *Transaction) Hash() []byte
- func (tx *Transaction) IsExpire(cfg *Chain33Config, height, blocktime int64) bool
- func (tx *Transaction) IsWithdraw(coinExec string) bool
- func (tx *Transaction) JSON() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (tx *Transaction) SetExpire(cfg *Chain33Config, expire time.Duration)
- func (tx *Transaction) SetRealFee(minFee int64) error
- func (tx *Transaction) Sign(ty int32, priv crypto.PrivKey)
- func (tx *Transaction) Size() int
- func (x *Transaction) String() string
- func (tx *Transaction) Tx() *Transaction
- type TransactionCache
- func (tx *TransactionCache) Check(cfg *Chain33Config, height, minfee, maxFee int64) error
- func (tx *TransactionCache) CheckSign(blockHeight int64) bool
- func (tx *TransactionCache) GetPayloadValue() (plname string, payload reflect.Value, plerr error)
- func (tx *TransactionCache) GetTotalFee(minFee int64) (int64, error)
- func (tx *TransactionCache) GetTxGroup() (*Transactions, error)
- func (tx *TransactionCache) Hash() []byte
- func (tx *TransactionCache) SetPayloadValue(plname string, payload reflect.Value, plerr error)
- func (tx *TransactionCache) Size() int
- func (tx *TransactionCache) Tx() *Transaction
- type TransactionDetail
- func (*TransactionDetail) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionDetail) GetActionName() string
- func (x *TransactionDetail) GetAmount() int64
- func (x *TransactionDetail) GetAssets() []*Asset
- func (x *TransactionDetail) GetBlocktime() int64
- func (x *TransactionDetail) GetFromaddr() string
- func (x *TransactionDetail) GetFullHash() []byte
- func (x *TransactionDetail) GetHeight() int64
- func (x *TransactionDetail) GetIndex() int64
- func (x *TransactionDetail) GetProofs() [][]byte
- func (x *TransactionDetail) GetReceipt() *ReceiptData
- func (x *TransactionDetail) GetTx() *Transaction
- func (x *TransactionDetail) GetTxProofs() []*TxProof
- func (*TransactionDetail) ProtoMessage()
- func (x *TransactionDetail) ProtoReflect() protoreflect.Message
- func (x *TransactionDetail) Reset()
- func (x *TransactionDetail) String() string
- type TransactionDetails
- func (*TransactionDetails) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionDetails) GetTxs() []*TransactionDetail
- func (*TransactionDetails) ProtoMessage()
- func (x *TransactionDetails) ProtoReflect() protoreflect.Message
- func (x *TransactionDetails) Reset()
- func (x *TransactionDetails) String() string
- type Transactions
- func (txgroup *Transactions) Check(cfg *Chain33Config, height, minfee, maxFee int64) error
- func (txgroup *Transactions) CheckSign(blockHeight int64) bool
- func (txgroup *Transactions) CheckWithFork(cfg *Chain33Config, checkFork, paraFork bool, height, minfee, maxFee int64) error
- func (*Transactions) Descriptor() ([]byte, []int)deprecated
- func (txgroup *Transactions) GetTxGroup() *Transactions
- func (x *Transactions) GetTxs() []*Transaction
- func (txgroup *Transactions) IsExpire(cfg *Chain33Config, height, blocktime int64) bool
- func (*Transactions) ProtoMessage()
- func (x *Transactions) ProtoReflect() protoreflect.Message
- func (txgroup *Transactions) RebuiltGroup()
- func (x *Transactions) Reset()
- func (txgroup *Transactions) SetExpire(cfg *Chain33Config, n int, expire time.Duration)
- func (txgroup *Transactions) SignN(n int, ty int32, priv crypto.PrivKey) error
- func (x *Transactions) String() string
- func (txgroup *Transactions) Tx() *Transaction
- type TxDetail
- func (*TxDetail) Descriptor() ([]byte, []int)deprecated
- func (x *TxDetail) GetIndex() uint32
- func (x *TxDetail) GetProofs() [][]byte
- func (x *TxDetail) GetReceipt() *ReceiptData
- func (x *TxDetail) GetTx() *Transaction
- func (*TxDetail) ProtoMessage()
- func (x *TxDetail) ProtoReflect() protoreflect.Message
- func (x *TxDetail) Reset()
- func (x *TxDetail) String() string
- type TxGroup
- type TxHash
- type TxHashList
- func (*TxHashList) Descriptor() ([]byte, []int)deprecated
- func (x *TxHashList) GetCount() int64
- func (x *TxHashList) GetExpire() []int64
- func (x *TxHashList) GetHashes() [][]byte
- func (*TxHashList) ProtoMessage()
- func (x *TxHashList) ProtoReflect() protoreflect.Message
- func (x *TxHashList) Reset()
- func (x *TxHashList) String() string
- type TxHashWithReceiptType
- func (*TxHashWithReceiptType) Descriptor() ([]byte, []int)deprecated
- func (x *TxHashWithReceiptType) GetHash() []byte
- func (x *TxHashWithReceiptType) GetTy() int32
- func (*TxHashWithReceiptType) ProtoMessage()
- func (x *TxHashWithReceiptType) ProtoReflect() protoreflect.Message
- func (x *TxHashWithReceiptType) Reset()
- func (x *TxHashWithReceiptType) String() string
- type TxProof
- func (*TxProof) Descriptor() ([]byte, []int)deprecated
- func (x *TxProof) GetIndex() uint32
- func (x *TxProof) GetProofs() [][]byte
- func (x *TxProof) GetRootHash() []byte
- func (*TxProof) ProtoMessage()
- func (x *TxProof) ProtoReflect() protoreflect.Message
- func (x *TxProof) Reset()
- func (x *TxProof) String() string
- type TxReceipts4Subscribe
- func (*TxReceipts4Subscribe) Descriptor() ([]byte, []int)deprecated
- func (x *TxReceipts4Subscribe) GetTxReceipts() []*TxReceipts4SubscribePerBlk
- func (*TxReceipts4Subscribe) ProtoMessage()
- func (x *TxReceipts4Subscribe) ProtoReflect() protoreflect.Message
- func (x *TxReceipts4Subscribe) Reset()
- func (x *TxReceipts4Subscribe) String() string
- type TxReceipts4SubscribePerBlk
- func (*TxReceipts4SubscribePerBlk) Descriptor() ([]byte, []int)deprecated
- func (x *TxReceipts4SubscribePerBlk) GetAddDelType() int32
- func (x *TxReceipts4SubscribePerBlk) GetBlockHash() []byte
- func (x *TxReceipts4SubscribePerBlk) GetHeight() int64
- func (x *TxReceipts4SubscribePerBlk) GetParentHash() []byte
- func (x *TxReceipts4SubscribePerBlk) GetPreviousHash() []byte
- func (x *TxReceipts4SubscribePerBlk) GetReceiptData() []*ReceiptData
- func (x *TxReceipts4SubscribePerBlk) GetSeqNum() int64
- func (x *TxReceipts4SubscribePerBlk) GetTx() []*Transaction
- func (*TxReceipts4SubscribePerBlk) ProtoMessage()
- func (x *TxReceipts4SubscribePerBlk) ProtoReflect() protoreflect.Message
- func (x *TxReceipts4SubscribePerBlk) Reset()
- func (x *TxReceipts4SubscribePerBlk) String() string
- type TxResult
- func (*TxResult) Descriptor() ([]byte, []int)deprecated
- func (x *TxResult) GetActionName() string
- func (x *TxResult) GetBlocktime() int64
- func (x *TxResult) GetHeight() int64
- func (x *TxResult) GetIndex() int32
- func (x *TxResult) GetReceiptdate() *ReceiptData
- func (x *TxResult) GetTx() *Transaction
- func (*TxResult) ProtoMessage()
- func (x *TxResult) ProtoReflect() protoreflect.Message
- func (x *TxResult) Reset()
- func (x *TxResult) String() string
- type TxResultPerBlock
- func (*TxResultPerBlock) Descriptor() ([]byte, []int)deprecated
- func (x *TxResultPerBlock) GetAddDelType() int32
- func (x *TxResultPerBlock) GetBlockHash() []byte
- func (x *TxResultPerBlock) GetHeight() int64
- func (x *TxResultPerBlock) GetItems() []*TxHashWithReceiptType
- func (x *TxResultPerBlock) GetParentHash() []byte
- func (x *TxResultPerBlock) GetSeqNum() int64
- func (*TxResultPerBlock) ProtoMessage()
- func (x *TxResultPerBlock) ProtoReflect() protoreflect.Message
- func (x *TxResultPerBlock) Reset()
- func (x *TxResultPerBlock) String() string
- type TxResultSeqs
- type UnimplementedChain33Server
- func (*UnimplementedChain33Server) AddPushSubscribe(context.Context, *PushSubscribeReq) (*ReplySubscribePush, error)
- func (*UnimplementedChain33Server) CloseQueue(context.Context, *ReqNil) (*Reply, error)
- func (*UnimplementedChain33Server) ConvertExectoAddr(context.Context, *ReqString) (*ReplyString, error)
- func (*UnimplementedChain33Server) CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, error)
- func (*UnimplementedChain33Server) CreateNoBalanceTxs(context.Context, *NoBalanceTxs) (*ReplySignRawTx, error)
- func (*UnimplementedChain33Server) CreateRawTransaction(context.Context, *CreateTx) (*UnsignTx, error)
- func (*UnimplementedChain33Server) CreateRawTxGroup(context.Context, *CreateTransactionGroup) (*UnsignTx, error)
- func (*UnimplementedChain33Server) CreateTransaction(context.Context, *CreateTxIn) (*UnsignTx, error)
- func (*UnimplementedChain33Server) DumpPrivkey(context.Context, *ReqString) (*ReplyString, error)
- func (*UnimplementedChain33Server) DumpPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
- func (*UnimplementedChain33Server) ExecWallet(context.Context, *ChainExecutor) (*Reply, error)
- func (*UnimplementedChain33Server) GenSeed(context.Context, *GenSeedLang) (*ReplySeed, error)
- func (*UnimplementedChain33Server) GetAccount(context.Context, *ReqGetAccount) (*WalletAccount, error)
- func (*UnimplementedChain33Server) GetAccounts(context.Context, *ReqNil) (*WalletAccounts, error)
- func (*UnimplementedChain33Server) GetAddrOverview(context.Context, *ReqAddr) (*AddrOverview, error)
- func (*UnimplementedChain33Server) GetAddressDrivers(context.Context, *ReqNil) (*AddressDrivers, error)
- func (*UnimplementedChain33Server) GetAllExecBalance(context.Context, *ReqAllExecBalance) (*AllExecBalance, error)
- func (*UnimplementedChain33Server) GetBalance(context.Context, *ReqBalance) (*Accounts, error)
- func (*UnimplementedChain33Server) GetBlockByHashes(context.Context, *ReqHashes) (*BlockDetails, error)
- func (*UnimplementedChain33Server) GetBlockBySeq(context.Context, *Int64) (*BlockSeq, error)
- func (*UnimplementedChain33Server) GetBlockHash(context.Context, *ReqInt) (*ReplyHash, error)
- func (*UnimplementedChain33Server) GetBlockOverview(context.Context, *ReqHash) (*BlockOverview, error)
- func (*UnimplementedChain33Server) GetBlockSequences(context.Context, *ReqBlocks) (*BlockSequences, error)
- func (*UnimplementedChain33Server) GetBlocks(context.Context, *ReqBlocks) (*Reply, error)
- func (*UnimplementedChain33Server) GetChainConfig(context.Context, *ReqNil) (*ChainConfigInfo, error)
- func (*UnimplementedChain33Server) GetCoinSymbol(context.Context, *ReqNil) (*ReplyString, error)
- func (*UnimplementedChain33Server) GetCryptoList(context.Context, *ReqNil) (*CryptoList, error)
- func (*UnimplementedChain33Server) GetFatalFailure(context.Context, *ReqNil) (*Int32, error)
- func (*UnimplementedChain33Server) GetFinalizedBlock(context.Context, *ReqNil) (*SnowChoice, error)
- func (*UnimplementedChain33Server) GetFork(context.Context, *ReqKey) (*Int64, error)
- func (*UnimplementedChain33Server) GetHeaders(context.Context, *ReqBlocks) (*Headers, error)
- func (*UnimplementedChain33Server) GetHexTxByHash(context.Context, *ReqHash) (*HexTx, error)
- func (*UnimplementedChain33Server) GetLastBlockSequence(context.Context, *ReqNil) (*Int64, error)
- func (*UnimplementedChain33Server) GetLastHeader(context.Context, *ReqNil) (*Header, error)
- func (*UnimplementedChain33Server) GetLastMemPool(context.Context, *ReqNil) (*ReplyTxList, error)
- func (*UnimplementedChain33Server) GetMemPool(context.Context, *ReqGetMempool) (*ReplyTxList, error)
- func (*UnimplementedChain33Server) GetParaTxByHeight(context.Context, *ReqParaTxByHeight) (*ParaTxDetails, error)
- func (*UnimplementedChain33Server) GetParaTxByTitle(context.Context, *ReqParaTxByTitle) (*ParaTxDetails, error)
- func (*UnimplementedChain33Server) GetPeerInfo(context.Context, *P2PGetPeerReq) (*PeerList, error)
- func (*UnimplementedChain33Server) GetProperFee(context.Context, *ReqProperFee) (*ReplyProperFee, error)
- func (*UnimplementedChain33Server) GetPushSeqLastNum(context.Context, *ReqString) (*Int64, error)
- func (*UnimplementedChain33Server) GetSeed(context.Context, *GetSeedByPw) (*ReplySeed, error)
- func (*UnimplementedChain33Server) GetSequenceByHash(context.Context, *ReqHash) (*Int64, error)
- func (*UnimplementedChain33Server) GetServerTime(context.Context, *ReqNil) (*ServerTime, error)
- func (*UnimplementedChain33Server) GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)
- func (*UnimplementedChain33Server) GetTransactionByHashes(context.Context, *ReqHashes) (*TransactionDetails, error)
- func (*UnimplementedChain33Server) GetWalletRecoverAddress(context.Context, *ReqGetWalletRecoverAddr) (*ReplyString, error)
- func (*UnimplementedChain33Server) GetWalletStatus(context.Context, *ReqNil) (*WalletStatus, error)
- func (*UnimplementedChain33Server) ImportPrivkey(context.Context, *ReqWalletImportPrivkey) (*WalletAccount, error)
- func (*UnimplementedChain33Server) ImportPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
- func (*UnimplementedChain33Server) IsNtpClockSync(context.Context, *ReqNil) (*Reply, error)
- func (*UnimplementedChain33Server) IsSync(context.Context, *ReqNil) (*Reply, error)
- func (*UnimplementedChain33Server) ListPushes(context.Context, *ReqNil) (*PushSubscribes, error)
- func (*UnimplementedChain33Server) LoadParaTxByTitle(context.Context, *ReqHeightByTitle) (*ReplyHeightByTitle, error)
- func (*UnimplementedChain33Server) Lock(context.Context, *ReqNil) (*Reply, error)
- func (*UnimplementedChain33Server) MergeBalance(context.Context, *ReqWalletMergeBalance) (*ReplyHashes, error)
- func (*UnimplementedChain33Server) NetInfo(context.Context, *P2PGetNetInfoReq) (*NodeNetInfo, error)
- func (*UnimplementedChain33Server) NewAccount(context.Context, *ReqNewAccount) (*WalletAccount, error)
- func (*UnimplementedChain33Server) QueryChain(context.Context, *ChainExecutor) (*Reply, error)
- func (*UnimplementedChain33Server) QueryConsensus(context.Context, *ChainExecutor) (*Reply, error)
- func (*UnimplementedChain33Server) QueryRandNum(context.Context, *ReqRandHash) (*ReplyHash, error)
- func (*UnimplementedChain33Server) QueryTransaction(context.Context, *ReqHash) (*TransactionDetail, error)
- func (*UnimplementedChain33Server) ReWriteTx(context.Context, *ReWriteRawTx) (*UnsignTx, error)
- func (*UnimplementedChain33Server) SaveSeed(context.Context, *SaveSeedByPw) (*Reply, error)
- func (*UnimplementedChain33Server) SendDelayTransaction(context.Context, *DelayTx) (*Reply, error)
- func (*UnimplementedChain33Server) SendToAddress(context.Context, *ReqWalletSendToAddress) (*ReplyHash, error)
- func (*UnimplementedChain33Server) SendTransaction(context.Context, *Transaction) (*Reply, error)
- func (*UnimplementedChain33Server) SendTransactionSync(context.Context, *Transaction) (*Reply, error)
- func (*UnimplementedChain33Server) SendTransactions(context.Context, *Transactions) (*Replies, error)
- func (*UnimplementedChain33Server) SetLabl(context.Context, *ReqWalletSetLabel) (*WalletAccount, error)
- func (*UnimplementedChain33Server) SetPasswd(context.Context, *ReqWalletSetPasswd) (*Reply, error)
- func (*UnimplementedChain33Server) SetTxFee(context.Context, *ReqWalletSetFee) (*Reply, error)
- func (*UnimplementedChain33Server) SignRawTx(context.Context, *ReqSignRawTx) (*ReplySignRawTx, error)
- func (*UnimplementedChain33Server) SignWalletRecoverTx(context.Context, *ReqSignWalletRecoverTx) (*ReplySignRawTx, error)
- func (*UnimplementedChain33Server) SubEvent(*ReqSubscribe, Chain33_SubEventServer) error
- func (*UnimplementedChain33Server) UnLock(context.Context, *WalletUnLock) (*Reply, error)
- func (*UnimplementedChain33Server) UnSubEvent(context.Context, *ReqString) (*Reply, error)
- func (*UnimplementedChain33Server) Version(context.Context, *ReqNil) (*VersionInfo, error)
- func (*UnimplementedChain33Server) WalletTransactionList(context.Context, *ReqWalletTransactionList) (*WalletTxDetails, error)
- type UnimplementedP2PgserviceServer
- func (*UnimplementedP2PgserviceServer) BroadCastBlock(context.Context, *P2PBlock) (*Reply, error)
- func (*UnimplementedP2PgserviceServer) BroadCastTx(context.Context, *P2PTx) (*Reply, error)
- func (*UnimplementedP2PgserviceServer) CollectInPeers(context.Context, *P2PPing) (*PeerList, error)
- func (*UnimplementedP2PgserviceServer) CollectInPeers2(context.Context, *P2PPing) (*PeersReply, error)
- func (*UnimplementedP2PgserviceServer) GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error)
- func (*UnimplementedP2PgserviceServer) GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error)
- func (*UnimplementedP2PgserviceServer) GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error)
- func (*UnimplementedP2PgserviceServer) GetData(*P2PGetData, P2Pgservice_GetDataServer) error
- func (*UnimplementedP2PgserviceServer) GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error)
- func (*UnimplementedP2PgserviceServer) GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error)
- func (*UnimplementedP2PgserviceServer) GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error)
- func (*UnimplementedP2PgserviceServer) Ping(context.Context, *P2PPing) (*P2PPong, error)
- func (*UnimplementedP2PgserviceServer) ServerStreamRead(P2Pgservice_ServerStreamReadServer) error
- func (*UnimplementedP2PgserviceServer) ServerStreamSend(*P2PPing, P2Pgservice_ServerStreamSendServer) error
- func (*UnimplementedP2PgserviceServer) SoftVersion(context.Context, *P2PPing) (*Reply, error)
- func (*UnimplementedP2PgserviceServer) Version(context.Context, *P2PVersion) (*P2PVerAck, error)
- func (*UnimplementedP2PgserviceServer) Version2(context.Context, *P2PVersion) (*P2PVersion, error)
- type UnsignTx
- type UpgradeMeta
- func (*UpgradeMeta) Descriptor() ([]byte, []int)deprecated
- func (x *UpgradeMeta) GetHeight() int64
- func (x *UpgradeMeta) GetStarting() bool
- func (x *UpgradeMeta) GetVersion() string
- func (*UpgradeMeta) ProtoMessage()
- func (x *UpgradeMeta) ProtoReflect() protoreflect.Message
- func (x *UpgradeMeta) Reset()
- func (x *UpgradeMeta) String() string
- type UserWrite
- type VersionInfo
- func (*VersionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VersionInfo) GetApp() string
- func (x *VersionInfo) GetChain33() string
- func (x *VersionInfo) GetChainID() int32
- func (x *VersionInfo) GetLocalDb() string
- func (x *VersionInfo) GetTitle() string
- func (*VersionInfo) ProtoMessage()
- func (x *VersionInfo) ProtoReflect() protoreflect.Message
- func (x *VersionInfo) Reset()
- func (x *VersionInfo) String() string
- type Versions
- func (*Versions) Descriptor() ([]byte, []int)deprecated
- func (x *Versions) GetP2Pversion() int32
- func (x *Versions) GetPeername() string
- func (x *Versions) GetSoftversion() string
- func (*Versions) ProtoMessage()
- func (x *Versions) ProtoReflect() protoreflect.Message
- func (x *Versions) Reset()
- func (x *Versions) String() string
- type ViewChange
- type Wallet
- type WalletAccount
- func (*WalletAccount) Descriptor() ([]byte, []int)deprecated
- func (x *WalletAccount) GetAcc() *Account
- func (x *WalletAccount) GetLabel() string
- func (*WalletAccount) ProtoMessage()
- func (x *WalletAccount) ProtoReflect() protoreflect.Message
- func (x *WalletAccount) Reset()
- func (x *WalletAccount) String() string
- type WalletAccountStore
- func (*WalletAccountStore) Descriptor() ([]byte, []int)deprecated
- func (x *WalletAccountStore) GetAddr() string
- func (x *WalletAccountStore) GetLabel() string
- func (x *WalletAccountStore) GetPrivkey() string
- func (x *WalletAccountStore) GetTimeStamp() string
- func (*WalletAccountStore) ProtoMessage()
- func (x *WalletAccountStore) ProtoReflect() protoreflect.Message
- func (x *WalletAccountStore) Reset()
- func (x *WalletAccountStore) String() string
- type WalletAccounts
- type WalletPwHash
- func (*WalletPwHash) Descriptor() ([]byte, []int)deprecated
- func (x *WalletPwHash) GetPwHash() []byte
- func (x *WalletPwHash) GetRandstr() string
- func (*WalletPwHash) ProtoMessage()
- func (x *WalletPwHash) ProtoReflect() protoreflect.Message
- func (x *WalletPwHash) Reset()
- func (x *WalletPwHash) String() string
- type WalletStatus
- func (*WalletStatus) Descriptor() ([]byte, []int)deprecated
- func (x *WalletStatus) GetIsAutoMining() bool
- func (x *WalletStatus) GetIsHasSeed() bool
- func (x *WalletStatus) GetIsTicketLock() bool
- func (x *WalletStatus) GetIsWalletLock() bool
- func (*WalletStatus) ProtoMessage()
- func (x *WalletStatus) ProtoReflect() protoreflect.Message
- func (x *WalletStatus) Reset()
- func (x *WalletStatus) String() string
- type WalletTxDetail
- func (*WalletTxDetail) Descriptor() ([]byte, []int)deprecated
- func (x *WalletTxDetail) GetActionName() string
- func (x *WalletTxDetail) GetAmount() int64
- func (x *WalletTxDetail) GetBlocktime() int64
- func (x *WalletTxDetail) GetFromaddr() string
- func (x *WalletTxDetail) GetHeight() int64
- func (x *WalletTxDetail) GetIndex() int64
- func (x *WalletTxDetail) GetPayload() []byte
- func (x *WalletTxDetail) GetReceipt() *ReceiptData
- func (x *WalletTxDetail) GetTx() *Transaction
- func (x *WalletTxDetail) GetTxhash() []byte
- func (*WalletTxDetail) ProtoMessage()
- func (x *WalletTxDetail) ProtoReflect() protoreflect.Message
- func (x *WalletTxDetail) Reset()
- func (x *WalletTxDetail) String() string
- type WalletTxDetails
- type WalletUnLock
- func (*WalletUnLock) Descriptor() ([]byte, []int)deprecated
- func (x *WalletUnLock) GetPasswd() string
- func (x *WalletUnLock) GetTimeout() int64
- func (x *WalletUnLock) GetWalletOrTicket() bool
- func (*WalletUnLock) ProtoMessage()
- func (x *WalletUnLock) ProtoReflect() protoreflect.Message
- func (x *WalletUnLock) Reset()
- func (x *WalletUnLock) String() string
Constants ¶
const ( ForkAccountBlacklist = "ForkAccountBlacklist" ForkAccountBlacklistV2 = "ForkAccountBlacklistV2" )
ForkAccountBlacklist 账户黑名单分叉名,配置在 [fork.system] 节,默认注册高度为 MaxHeight(永不启用)。
名单本身配置在 mver 段,按高度分版本演进,与 ForkChainParamV1/V2 的用法完全一致:
[mver.blacklist] accountBlacklist=[] [mver.blacklist.ForkAccountBlacklist] accountBlacklist=["addr1", "addr2"]
高度 h 生效的名单是「高度不大于 h 的最大分叉」所对应的那一份,每一份都是全量名单而非增量。
新增一版名单的流程(三步缺一不可):
- 代码里加常量并在 RegisterSystemFork 中 SetFork(ForkAccountBlacklistV2, MaxHeight)
- 全网 fork toml 加 ForkAccountBlacklistV2=<未来高度或 -1>
- mver 加 [mver.blacklist.ForkAccountBlacklistV2] 全量名单
已经被链跨过的分叉,其高度与名单内容一律不可再改,只能追加新分叉。 否则历史区块回放会用新名单去判定旧区块,执行结果改变,直接破坏共识一致性。
const ( ShowPrecisionNum int64 = 4 //cli命令显示保留4位 MaxCoin int64 = 1e9 // 1e17/1e8 MaxFloatCharNum int = 15 //float64最大可精确表示15个字符的浮点数,小数点占一位,小数点位置不确定,不好确定最大值 MaxTxSize = 100000 //100K MaxTxGroupSize int32 = 20 MaxBlockSize = 20000000 //20M MaxTxsPerBlock = 100000 MaxTokenBalance int64 = 900 * 1e8 * DefaultCoinPrecision //缺省900亿,小数位精度为1e8, 900*1e16 大约为int64最大可表示范围 DefaultMinFee int64 = 1e5 )
coin conversation
const ( UserKeyX = "user." ParaKeyX = "user.p." NoneX = "none" )
UserKeyX 用户自定义执行器前缀字符串
const ( DefaultCoinsExec = "coins" DefaultCoinsSymbol = "bty" DefaultCoinPrecision = int64(1e8) )
DefaultCoinsSymbol 默认的主币名称
const ( BTY = "BTY" MinerAction = "miner" AirDropMinIndex uint32 = 100000000 //通过钱包的seed生成一个空投地址,最小index索引 AirDropMaxIndex uint32 = 101000000 //通过钱包的seed生成一个空投地址,最大index索引 MaxBlockCountPerTime int64 = 1000 //从数据库中一次性获取block的最大数 1000个 MaxBlockSizePerTime = 100 * 1024 * 1024 //从数据库中一次性获取block的最大size100M AddBlock int64 = 1 DelBlock int64 = 2 MainChainName = "main" MaxHeaderCountPerTime int64 = 10000 //从数据库中一次性获取header的最大数 10000个 AutonomyCfgKey = "autonomyExec" )
基本全局常量定义
const ( Invalid = 0 SECP256K1 = secp256k1.ID ED25519 = ed25519.ID SM2 = sm2.ID SECP256K1ETH = secp256k1eth.ID )
ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> onetimeed25519 ty = 5 -> RingBaseonED25519 ty = 1+offset(1<<8) -> secp256r1 ty = 2+offset(1<<8) -> sm2 ty= 3+offset(1<<8) -> bls ty = 4+offset(1<<8) -> secp256k1eth
const ( TyLogReserved = 0 TyLogErr = 1 TyLogFee = 2 //TyLogTransfer coins TyLogTransfer = 3 TyLogGenesis = 4 TyLogDeposit = 5 TyLogExecTransfer = 6 TyLogExecWithdraw = 7 TyLogExecDeposit = 8 TyLogExecFrozen = 9 TyLogExecActive = 10 TyLogGenesisTransfer = 11 TyLogGenesisDeposit = 12 TyLogRollback = 13 TyLogMint = 14 TyLogBurn = 15 )
log type
const ( ExecErr = 0 ExecPack = 1 ExecOk = 2 )
exec type
const ( EventTx = 1 EventGetBlocks = 2 EventBlocks = 3 EventGetBlockHeight = 4 EventReplyBlockHeight = 5 EventQueryTx = 6 EventTransactionDetail = 7 EventReply = 8 EventTxBroadcast = 9 EventPeerInfo = 10 EventTxList = 11 EventReplyTxList = 12 EventAddBlock = 13 EventBlockBroadcast = 14 EventFetchBlocks = 15 EventAddBlocks = 16 EventTxHashList = 17 EventTxHashListReply = 18 EventGetHeaders = 19 EventHeaders = 20 EventGetMempoolSize = 21 EventMempoolSize = 22 EventStoreGet = 23 EventStoreSet = 24 EventStoreGetReply = 25 EventStoreSetReply = 26 EventReceipts = 27 EventExecTxList = 28 EventPeerList = 29 EventGetLastHeader = 30 EventHeader = 31 EventAddBlockDetail = 32 EventGetMempool = 33 EventGetTransactionByAddr = 34 EventGetTransactionByHash = 35 EventReplyTxInfo = 36 EventWalletAccountList = 38 EventWalletAccount = 40 EventWalletExecutor = 42 EventStoreDel = 47 EventReplyHashes = 49 EventTransactionDetails = 53 EventBroadcastAddBlock = 54 EventGetBlockOverview = 55 EventGetAddrOverview = 56 EventReplyBlockOverview = 57 EventReplyAddrOverview = 58 EventGetBlockHash = 59 EventBlockHash = 60 EventGetLastMempool = 61 EventMinerStart = 63 EventMinerStop = 64 EventWalletTickets = 65 EventStoreMemSet = 66 EventStoreRollback = 67 EventStoreCommit = 68 EventCheckBlock = 69 //seed EventReplyGenSeed = 71 EventReplyGetSeed = 74 EventDelBlock = 75 //local store EventLocalGet = 76 EventLocalReplyValue = 77 EventLocalList = 78 EventLocalSet = 79 EventCheckTx = 81 EventReceiptCheckTx = 82 EventReplyQuery = 84 EventSubscribePush = 85 EventFetchBlockHeaders = 86 EventAddBlockHeaders = 87 EventReplyWalletStatus = 89 EventGetLastBlock = 90 EventBlock = 91 EventGetTicketCount = 92 EventReplyGetTicketCount = 93 EventReplyPrivkey = 95 EventIsSync = 96 EventReplyIsSync = 97 EventCloseTickets = 98 EventGetAddrTxs = 99 EventReplyAddrTxs = 100 EventIsNtpClockSync = 101 EventReplyIsNtpClockSync = 102 EventDelTxList = 103 EventStoreGetTotalCoins = 104 EventGetTotalCoinsReply = 105 EventQueryTotalFee = 106 EventReplySignRawTx = 108 EventSyncBlock = 109 EventGetNetInfo = 110 EventReplyNetInfo = 111 EventReplyFatalFailure = 114 EventBindMiner = 115 EventReplyBindMiner = 116 EventDecodeRawTx = 117 EventReplyDecodeRawTx = 118 EventGetLastBlockSequence = 119 EventReplyLastBlockSequence = 120 EventGetBlockSequences = 121 EventReplyBlockSequences = 122 EventGetBlockByHashes = 123 EventReplyBlockDetailsBySeqs = 124 EventDelParaChainBlockDetail = 125 EventAddParaChainBlockDetail = 126 EventGetSeqByHash = 127 EventLocalPrefixCount = 128 EventStoreList = 130 EventStoreListReply = 131 EventListPushes = 132 EventGetPushLastNum = 133 EventGetBlockBySeq = 134 EventLocalBegin = 135 EventLocalCommit = 136 EventLocalRollback = 137 EventLocalNew = 138 EventLocalClose = 139 //mempool EventGetProperFee = 140 EventReplyProperFee = 141 EventReExecBlock = 142 EventTxListByHash = 143 //exec EventBlockChainQuery = 212 EventConsensusQuery = 213 EventUpgrade = 214 // BlockChain 接收的事件 EventGetLastBlockMainSequence = 300 EventReplyLastBlockMainSequence = 301 EventGetMainSeqByHash = 302 EventReplyMainSeqByHash = 303 //其他模块读写blockchain db事件 EventSetValueByKey = 304 EventGetValueByKey = 305 //通过平行链title获取平行链的交易 EventGetParaTxByTitle = 306 EventReplyParaTxByTitle = 307 //获取拥有此title交易的区块高度 EventGetHeightByTitle = 308 EventReplyHeightByTitle = 309 //通过区块高度列表+title获取平行链交易 EventGetParaTxByTitleAndHeight = 310 //比较当前区块和新广播的区块最优区块 EventCmpBestBlock = 311 EventReplySubscribePush = 312 // 通知其它节点进行数据归档存储 EventNotifyStoreChunk = 313 // 获取chunkBlock数据 EventGetChunkBlock = 314 // 添加addChunkBlock EventAddChunkBlock = 315 // 获取chunkBody数据 EventGetChunkBlockBody = 316 // 获取ChunkRecord EventGetChunkRecord = 317 // 添加ChunkRecord EventAddChunkRecord = 318 //p2p 其他接收事件 EventSubTopic = 350 EventPubTopicMsg = 351 EventFetchTopics = 352 EventRemoveTopic = 353 EventReceiveSubData = 355 EventNetProtocols = 356 //检测mempool是否存在该交易 EventCheckTxsExist = 357 //delete para blocks EventDeleteParaBlocks = 358 //添加延时交易 EventAddDelayTx = 359 //添加节点到黑名单 EventAddBlacklist = 360 //删除节点中的黑名单 EventDelBlacklist = 361 //获取黑名单列表 EventShowBlacklist = 362 // 连接指定的节点 EventDialPeer = 363 //断开指定的节点 EventClosePeer = 364 EventPushBlock = 365 EventPushBlockHeader = 366 EventPushTxReceipt = 367 EventPushTxResult = 368 EventPushEVM = 369 //返回节点中最高的区块高度 EventHighestBlock = 370 EventGetEvmNonce = 371 // EventForFinalizer 最终化共识一级消息类型 EventForFinalizer = 372 EventSnowmanPreferBlk = 373 EventSnowmanAcceptBlk = 374 EventSnowmanLastChoice = 375 EventSnowmanChits = 376 EventSnowmanGetBlock = 377 EventSnowmanPutBlock = 378 EventSnowmanPullQuery = 379 EventSnowmanPushQuery = 380 EventSnowmanGetFailed = 381 EventSnowmanQueryFailed = 382 EventSnowmanQueryChoice = 383 EventSnowmanResetEngine = 384 EventCryptoTssMsg = 385 )
event
const ( // CryptoIDMask crypto type id mask CryptoIDMask = 0x3fff8fff // AddressIDMask address id mask AddressIDMask = 0x00007000 // AddressIDOffset offset len AddressIDOffset = 12 // EthAddressID eth address type EthAddressID = 2 )
const ForkEthSignEnvelope = "ForkEthSignEnvelope"
ForkEthSignEnvelope eth 签名交易的信封校验分叉名, 配置在 [fork.system] 节。 启用后, 交易检查会按当前高度重建 eth 交易对应的 chain33 信封(execer、To、fee、 payload、交易组形态、有效期窗口等)并要求完全一致, 防止签名未覆盖的信封字段被改写。 关闭(缺省 MaxHeight 或配置为 -1)时不做该校验, 历史区块按旧行为重放。
const ForkGenesisOnlyAtHeightZero = "ForkGenesisOnlyAtHeightZero"
ForkGenesisOnlyAtHeightZero 创世动作执行高度限制的分叉名, 配置在 [fork.system] 节。 启用后, 框架在系统 dapp 派发 Exec_Genesis 之前统一拒绝 height != 0 的创世动作, 返回 ErrReRunGenesis。coins/coinsx/token 的执行器各自已有该校验, ticket 曾经缺失; 该分叉把这条件提升为框架不变量, 保护漏写校验的执行器。 关闭该分叉(配置为 -1)时框架不做拦截, 以保持旧区块可以原样重放。 注意: 配置为 0 表示对全部历史高度生效, 启用前必须确认链上不存在高度 != 0 成功执行的 创世交易(否则重放会得到不同状态根); 另外若链的配置里根本没有 [fork] 段(例如 cmd/chain33/bityuan.toml), initForkConfig 会被跳过, 该分叉静默按注册默认值生效, 不会有缺键/未知键的启动校验提示。
const ForkTxChainIDStrict = "ForkTxChainIDStrict"
ForkTxChainIDStrict 交易 chainID 严格校验分叉名, 配置在 [fork.system] 节。 启用后, 交易组内的每笔交易以及 minTxFeeRate=0 时的单笔交易都会校验 chainID, 关闭时保持历史行为(这两条路径跳过校验)以保证旧区块可以原样重放。
const MaxHeight = 10000000000000000
MaxHeight 出于forks 过程安全的考虑,比如代码更新,出现了新的fork,旧的链只要不明确指定 fork的高度,那么默认fork高度为 MaxHeight 也就是新的代码默认不会被启用,直到使用的人明确指定了fork的高度
const Size1Kshiftlen uint = 10
Size1Kshiftlen tx消息大小1k
Variables ¶
var ( AllowUserExec = [][]byte{ExecerNone} EmptyValue = []byte("FFFFFFFFemptyBVBiCj5jvE15pEiwro8TQRGnJSNsJF") //这字符串表示数据库中的空值 )
区块链共识相关的参数,重要参数不要随便修改
var ( UserKey = []byte(UserKeyX) ParaKey = []byte(ParaKeyX) ExecerNone = []byte(NoneX) )
UserKeyX 用户自定义执行器前缀byte类型
var ( ErrSequenceNotMatch = errors.New("ErrSequenceNotMatch") ErrSequenceTooBig = errors.New("ErrSequenceTooBig") ErrTooManySeqCB = errors.New("ErrTooManySeqCB") ErrPushSeqPostData = errors.New("ErrPushSeqPostData") ErrMethodReturnType = errors.New("ErrMethodReturnType") ErrMethodNotFound = errors.New("ErrMethodNotFound") ErrExecBlockNil = errors.New("ErrExecBlockNil") ErrNotAllow = errors.New("ErrNotAllow") ErrCanOnlyDelTopVersion = errors.New("ErrCanOnlyDelTopVersion") ErrPrevVersion = errors.New("ErrPrevVersion") ErrNoExecerInMavlKey = errors.New("ErrNoExecerInMavlKey") ErrMavlKeyNotStartWithMavl = errors.New("ErrMavlKeyNotStartWithMavl") ErrNotFound = errors.New("ErrNotFound") ErrBlockExec = errors.New("ErrBlockExec") ErrCheckStateHash = errors.New("ErrCheckStateHash") ErrCheckTxHash = errors.New("ErrCheckTxHash") ErrReRunGenesis = errors.New("ErrReRunGenesis") ErrActionNotSupport = errors.New("ErrActionNotSupport") ErrQueryNotSupport = errors.New("ErrQueryNotSupport") ErrAmount = errors.New("ErrAmount") ErrMinerIsStared = errors.New("ErrMinerIsStared") ErrMinerNotStared = errors.New("ErrMinerNotStared") ErrMinerNotClosed = errors.New("ErrMinerNotClosed") ErrNoPeer = errors.New("ErrNoPeer") ErrExecNameNotMatch = errors.New("ErrExecNameNotMatch") ErrChannelClosed = errors.New("ErrChannelClosed") ErrNotMinered = errors.New("ErrNotMinered") ErrFromAddr = errors.New("ErrFromAddr") ErrBlockHeight = errors.New("ErrBlockHeight") ErrBlockTime = errors.New("ErrBlockTime") ErrCoinBaseExecer = errors.New("ErrCoinBaseExecer") ErrCoinBaseTxType = errors.New("ErrCoinBaseTxType") ErrCoinBaseExecErr = errors.New("ErrCoinBaseExecErr") ErrCoinBaseTarget = errors.New("ErrCoinBaseTarget") ErrCoinbaseReward = errors.New("ErrCoinbaseReward") ErrNotAllowDeposit = errors.New("ErrNotAllowDeposit") ErrCoinBaseIndex = errors.New("ErrCoinBaseIndex") ErrCoinBaseTicketStatus = errors.New("ErrCoinBaseTicketStatus") ErrBlockNotFound = errors.New("ErrBlockNotFound") ErrLogType = errors.New("ErrLogType") ErrNilTransaction = errors.New("ErrNilTransaction") ErrCacheOverFlow = errors.New("ErrCacheOverFlow") ErrInvalidParam = errors.New("ErrInvalidParam") ErrInvalidExpire = errors.New("ErrInvalidExpire") ErrInvalidAddress = errors.New("ErrInvalidAddress") ErrNotInited = errors.New("ErrNotInited") ErrBlockedAccount = errors.New("ErrBlockedAccount") ErrStartBigThanEnd = errors.New("ErrStartBigThanEnd") ErrToAddrNotSameToExecAddr = errors.New("ErrToAddrNotSameToExecAddr") ErrTypeAsset = errors.New("ErrTypeAsset") ErrEmpty = errors.New("ErrEmpty") ErrIsClosed = errors.New("ErrIsClosed") ErrSendSameToRecv = errors.New("ErrSendSameToRecv") ErrExecNameNotAllow = errors.New("ErrExecNameNotAllow") ErrExecNotFound = errors.New("ErrExecNotFound") ErrLocalDBPerfix = errors.New("ErrLocalDBPerfix") ErrBlockHeaderDifficulty = errors.New("ErrBlockHeaderDifficulty") ErrNoTx = errors.New("ErrNoTx") ErrTxExist = errors.New("ErrTxExist") ErrManyTx = errors.New("ErrManyTx") ErrDupTx = errors.New("ErrDupTx") ErrMemFull = errors.New("ErrMemFull") ErrNoBalance = errors.New("ErrNoBalance") ErrBalanceLessThanTenTimesFee = errors.New("ErrBalanceLessThanTenTimesFee") ErrTxExpire = errors.New("ErrTxExpire") ErrHeaderNotSet = errors.New("ErrHeaderNotSet") ErrSign = errors.New("ErrSign") ErrCertificate = errors.New("ErrCertificate") ErrFeeTooLow = errors.New("ErrFeeTooLow") ErrEmptyTx = errors.New("ErrEmptyTx") ErrTxFeeTooLow = errors.New("ErrTxFeeTooLow") ErrTxFeeTooHigh = errors.New("ErrTxFeeTooHigh") ErrTxMsgSizeTooBig = errors.New("ErrTxMsgSizeTooBig") ErrFutureBlock = errors.New("ErrFutureBlock") ErrHashNotFound = errors.New("ErrHashNotFound") ErrTxDup = errors.New("ErrTxDup") ErrNotSync = errors.New("ErrNotSync") ErrSize = errors.New("ErrSize") // ErrHashNotExist BlockChain Error Types ErrHashNotExist = errors.New("ErrHashNotExist") ErrHeightNotExist = errors.New("ErrHeightNotExist") ErrTxNotExist = errors.New("ErrTxNotExist") ErrAddrNotExist = errors.New("ErrAddrNotExist") ErrStartHeight = errors.New("ErrStartHeight") ErrEndLessThanStartHeight = errors.New("ErrEndLessThanStartHeight") ErrClientNotBindQueue = errors.New("ErrClientNotBindQueue") ErrContinueBack = errors.New("ErrContinueBack") ErrUnmarshal = errors.New("ErrUnmarshal") ErrMarshal = errors.New("ErrMarshal") ErrBlockExist = errors.New("ErrBlockExist") ErrHeightAlreadyFinalized = errors.New("ErrHeightAlreadyFinalized") ErrParentBlockNoExist = errors.New("ErrParentBlockNoExist") ErrBlockHeightNoMatch = errors.New("ErrBlockHeightNoEqual") ErrParentTdNoExist = errors.New("ErrParentTdNoExist") ErrBlockHashNoMatch = errors.New("ErrBlockHashNoMatch") ErrDecode = errors.New("ErrDecode") ErrNotRollBack = errors.New("ErrNotRollBack") ErrPeerInfoIsNil = errors.New("ErrPeerInfoIsNil") //ErrWalletIsLocked wallet ErrWalletIsLocked = errors.New("ErrWalletIsLocked") ErrSaveSeedFirst = errors.New("ErrSaveSeedFirst") ErrUnLockFirst = errors.New("ErrUnLockFirst") ErrLabelHasUsed = errors.New("ErrLabelHasUsed") ErrPrivkeyExist = errors.New("ErrPrivkeyExist") ErrPrivkey = errors.New("ErrPrivkey") ErrInsufficientBalance = errors.New("ErrInsufficientBalance") ErrInsufficientTokenBal = errors.New("ErrInsufficientTokenBalance") ErrInsuffSellOrder = errors.New("ErrInsufficientSellOrder2buy") ErrVerifyOldpasswdFail = errors.New("ErrVerifyOldpasswdFail") ErrInputPassword = errors.New("ErrInputPassword") ErrSeedlang = errors.New("ErrSeedlang") ErrSeedNotExist = errors.New("ErrSeedNotExist") ErrSubPubKeyVerifyFail = errors.New("ErrSubPubKeyVerifyFail") ErrLabelNotExist = errors.New("ErrLabelNotExist") ErrAccountNotExist = errors.New("ErrAccountNotExist") ErrSeedExist = errors.New("ErrSeedExist") ErrNotSupport = errors.New("ErrNotSupport") ErrSeedWordNum = errors.New("ErrSeedWordNum") ErrPubKeyLen = errors.New("ErrPublicKeyLen") ErrPrivateKeyLen = errors.New("ErrPrivateKeyLen") ErrSeedWord = errors.New("ErrSeedWord") ErrNoPrivKeyOrAddr = errors.New("ErrNoPrivKeyOrAddr") ErrNewWalletFromSeed = errors.New("ErrNewWalletFromSeed") ErrNewKeyPair = errors.New("ErrNewKeyPair") ErrPrivkeyToPub = errors.New("ErrPrivkeyToPub") ErrOnlyTicketUnLocked = errors.New("ErrOnlyTicketUnLocked") ErrNewCrypto = errors.New("ErrNewCrypto") ErrFromHex = errors.New("ErrFromHex") ErrPrivKeyFromBytes = errors.New("ErrFromHex") ErrParentHash = errors.New("ErrParentHash") ErrInvalidPassWord = errors.New("ErrInvalidPassWord") //ErrPing p2p模块错误类型 ErrPing = errors.New("ErrPingSignature") ErrVersion = errors.New("ErrVersionNoSupport") ErrStreamPing = errors.New("ErrStreamPing") ErrPeerStop = errors.New("ErrPeerStop") ErrP2PChannel = errors.New("ErrIllegalP2PChannel") ErrBlockSize = errors.New("ErrBlockSize") ErrTxGroupIndex = errors.New("ErrTxGroupIndex") ErrTxGroupFormat = errors.New("ErrTxGroupFormat") ErrTxGroupCountLessThanTwo = errors.New("ErrTxGroupCountLessThanTwo") ErrTxGroupHeader = errors.New("ErrTxGroupHeader") ErrTxGroupNext = errors.New("ErrTxGroupNext") ErrTxGroupCountBigThanMaxSize = errors.New("ErrTxGroupCountBigThanMaxSize") ErrTxGroupEmpty = errors.New("ErrTxGroupEmpty") ErrTxGroupCount = errors.New("ErrTxGroupCount") ErrTxGroupFeeNotZero = errors.New("ErrTxGroupFeeNotZero") ErrNomalTx = errors.New("ErrNomalTx") ErrUnknowDriver = errors.New("ErrUnknowDriver") ErrUnRegistedDriver = errors.New("ErrUnRegistedDriver") ErrSymbolNameNotAllow = errors.New("ErrSymbolNameNotAllow") ErrTxGroupNotSupport = errors.New("ErrTxGroupNotSupport") ErrNotAllowKey = errors.New("ErrNotAllowKey") ErrNotAllowMemSetKey = errors.New("ErrNotAllowMemSetKey") ErrNotAllowMemSetLocalKey = errors.New("ErrNotAllowMemSetLocalKey") ErrDataBaseDamage = errors.New("ErrDataBaseDamage") ErrGetStateDB = errors.New("ErrGetStateDB") ErrIndex = errors.New("ErrIndex") ErrTxGroupParaCount = errors.New("ErrTxGroupParaCount") ErrTxGroupParaMainMixed = errors.New("ErrTxGroupParaMainMixed") //ErrInvalidMainnetRPCAddr rpc模块的错误类型 ErrInvalidMainnetRPCAddr = errors.New("ErrInvalidMainnetRPCAddr") ErrDBFlag = errors.New("ErrDBFlag") ErrLocalPrefix = errors.New("ErrLocalPrefix") ErrLocalKeyLen = errors.New("ErrLocalKeyLen") //ErrNotSetInTransaction 必须set 在 事务 中 ErrNotSetInTransaction = errors.New("can not set kvs not in transaction") ErrLocalDBTxDupOpen = errors.New("ErrLocalDBTxDupOpen") ErrCloneForkFrom = errors.New("ErrCloneForkFrom") ErrCloneForkToExist = errors.New("ErrCloneForkToExist") ErrQueryThistIsNotSet = errors.New("ErrQueryThistIsNotSet") ErrHeightLessZero = errors.New("ErrHeightLessZero") ErrHeightOverflow = errors.New("ErrHeightOverflow") ErrRecordBlockSequence = errors.New("ErrRecordBlockSequence") ErrExecPanic = errors.New("ErrExecPanic") ErrDisableWrite = errors.New("ErrDisableWrite") ErrDisableRead = errors.New("ErrDisableRead") ErrConsensusHashErr = errors.New("ErrConsensusHashErr") ErrMaxCountPerTime = errors.New("ErrMaxCountPerTime") ErrInValidFileHeader = errors.New("ErrInValidFileHeader") ErrFileExists = errors.New("ErrFileExists") ErrSubscriberExist = errors.New("ErrSubscriberExist") ErrTooManySubscriber = errors.New("ErrTooManySubscriber") ErrPushNotSupport = errors.New("ErrPushNotSupport") ErrNotAllowModifyPush = errors.New("ErrNotAllowModifyPush") ErrTxReceiptReduced = errors.New("ErrTxReceiptReduced") ErrPushNotSubscribed = errors.New("ErrPushNotSubscribed") ErrTxChainID = errors.New("ErrTxChainID") ErrTimeout = errors.New("ErrTimeout") ErrLowNonce = errors.New("ErrNonceTooLow") )
chain33定义的错误类型
var ( LocalPrefix = []byte("LODB") FlagTxQuickIndex = []byte("FLAG:FlagTxQuickIndex") FlagKeyMVCC = []byte("FLAG:keyMVCCFlag") TxHashPerfix = []byte("TX:") TxShortHashPerfix = []byte("STX:") TxAddrHash = []byte("TxAddrHash:") TxAddrDirHash = []byte("TxAddrDirHash:") TxFeeAddrDirHash = []byte("TxFeeAddrDirHash:") AddrTxsCount = []byte("AddrTxsCount:") ConsensusParaTxsPrefix = []byte("LODBP:Consensus:Para:") //存贮para共识模块从主链拉取的平行链交易 FlagReduceLocaldb = []byte("FLAG:ReduceLocaldb") // 精简版localdb标记 ReduceLocaldbHeight = append(FlagReduceLocaldb, []byte(":H")...) // 精简版localdb高度 EthTxHashPrefix = []byte("ETX:") )
定义key值
var ConfigPrefix = "mavl-config-"
ConfigPrefix 配置前缀key
var Debug = false
Debug 调试开关
var ExpireBound int64 = 1000000000 // 交易过期分界线,小于expireBound比较height,大于expireBound比较blockTime
ExpireBound 交易过期边界值
var File_account_proto protoreflect.FileDescriptor
var File_blockchain_proto protoreflect.FileDescriptor
var File_common_proto protoreflect.FileDescriptor
var File_db_proto protoreflect.FileDescriptor
var File_evm_event_proto protoreflect.FileDescriptor
var File_executor_proto protoreflect.FileDescriptor
var File_p2p_proto protoreflect.FileDescriptor
var File_p2pnext_proto protoreflect.FileDescriptor
var File_pbft_proto protoreflect.FileDescriptor
var File_push_tx_receipt_proto protoreflect.FileDescriptor
var File_rpc_proto protoreflect.FileDescriptor
var File_snowman_proto protoreflect.FileDescriptor
var File_statistic_proto protoreflect.FileDescriptor
var File_transaction_proto protoreflect.FileDescriptor
var File_wallet_proto protoreflect.FileDescriptor
var HighAllowPackHeight int64 = 600
HighAllowPackHeight txHeight打包上限高度 eg: currentHeight = 10000 某交易的expire=TxHeightFlag+ currentHeight + 10, 则TxHeight=10010 打包的区块高度必须满足, Height >= TxHeight - LowAllowPackHeight && Height <= TxHeight + HighAllowPackHeight 那么交易可以打包的范围是: 10010 - 100 = 9910 , 10010 + 200 = 10210 (9910,10210) 注意,这两个条件必须同时满足. 关于交易查重: 也就是说,两笔相同的交易必然有相同的expire,即TxHeight相同,以及对应的打包区间一致,只能被打包在这个区间(9910,10210)。 那么检查交易重复的时候,我只要检查 9910 - currentHeight 这个区间的交易是否有重复
var LowAllowPackHeight int64 = 200
LowAllowPackHeight 允许打包的low区块高度
var ManagePrefix = "mavl-"
ManagePrefix 超级管理员账户配置前缀key
var MaxAllowPackInterval int64 = 5000
MaxAllowPackInterval 允许打包的最大区间值
var NtpHosts = []string{
"ntp.aliyun.com:123",
"time1.cloud.tencent.com:123",
"time.ustc.edu.cn:123",
"cn.ntp.org.cn:123",
"time.apple.com:123",
}
NtpHosts ntp hosts
var QueryFunc = NewQueryData("Query_")
QueryFunc support query
var SystemLog = map[int64]*LogInfo{ TyLogReserved: {reflect.TypeOf(LogReserved{}), "LogReserved"}, TyLogErr: {reflect.TypeOf(LogErr{}), "LogErr"}, TyLogFee: {reflect.TypeOf(ReceiptAccountTransfer{}), "LogFee"}, TyLogTransfer: {reflect.TypeOf(ReceiptAccountTransfer{}), "LogTransfer"}, TyLogDeposit: {reflect.TypeOf(ReceiptAccountTransfer{}), "LogDeposit"}, TyLogExecTransfer: {reflect.TypeOf(ReceiptExecAccountTransfer{}), "LogExecTransfer"}, TyLogExecWithdraw: {reflect.TypeOf(ReceiptExecAccountTransfer{}), "LogExecWithdraw"}, TyLogExecDeposit: {reflect.TypeOf(ReceiptExecAccountTransfer{}), "LogExecDeposit"}, TyLogExecFrozen: {reflect.TypeOf(ReceiptExecAccountTransfer{}), "LogExecFrozen"}, TyLogExecActive: {reflect.TypeOf(ReceiptExecAccountTransfer{}), "LogExecActive"}, TyLogGenesisTransfer: {reflect.TypeOf(ReceiptAccountTransfer{}), "LogGenesisTransfer"}, TyLogGenesisDeposit: {reflect.TypeOf(ReceiptAccountTransfer{}), "LogGenesisDeposit"}, TyLogRollback: {reflect.TypeOf(LocalDBSet{}), "LogRollback"}, TyLogMint: {reflect.TypeOf(ReceiptAccountMint{}), "LogMint"}, TyLogBurn: {reflect.TypeOf(ReceiptAccountBurn{}), "LogBurn"}, }
SystemLog 系统log日志
var TxHeightFlag int64 = 1 << 62
TxHeightFlag 标记是一个时间还是一个 TxHeight
Functions ¶
func BuildQueryType ¶
func BuildQueryType(prefix string, methods map[string]reflect.Method) (map[string]reflect.Method, map[string]reflect.Type)
BuildQueryType 构建查询方法
func Bytes2Str ¶ added in v1.65.0
Bytes2Str 高效字节数组转字符串 相比普通直接转化,性能提升35倍,提升程度和转换的byte长度线性相关,且不存在内存开销 需要注意b的修改会导致最终string的变更,比较适合临时变量转换,不适合
func CalcAddrTxsCountKey ¶
CalcAddrTxsCountKey 存储地址参与的交易数量。add时加一,del时减一
func CalcConsensusParaTxsKey ¶
CalcConsensusParaTxsKey 平行链localdb中保存的平行链title对应的交易
func CalcRollbackKey ¶
CalcRollbackKey 计算回滚的key
func CalcTxAddrDirHashKey ¶
CalcTxAddrDirHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:flag:height*100000 + index 地址下面某个分类的交易
func CalcTxAddrHashKey ¶
CalcTxAddrHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:height*100000 + index 地址下面所有的交易
func CalcTxFeeAddrDirHashKey ¶ added in v1.65.3
CalcTxFeeAddrDirHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:flag:height*100000 + index 地址下面某个分类的交易
func CallCreateTx ¶
func CallCreateTx(c *Chain33Config, execName, action string, param Message) ([]byte, error)
CallCreateTx 构造交易信息
func CallCreateTxJSON ¶
func CallCreateTxJSON(c *Chain33Config, execName, action string, param json.RawMessage) ([]byte, error)
CallCreateTxJSON create tx by json
func CallExecNewTx ¶
func CallExecNewTx(c *Chain33Config, execName, action string, param interface{}) ([]byte, error)
CallExecNewTx 重构完成后删除
func CheckConsensusParaTxsKey ¶
CheckConsensusParaTxsKey 检测para共识模块需要操作的平行链交易的key值
func CheckTxBlockedAccount ¶ added in v1.70.0
func CheckTxBlockedAccount(cfg *Chain33Config, height int64, tx *Transaction) error
CheckTxBlockedAccount 共识层拦截,供 executor.checkTx / checkTxGroup、BaseClient.AddTxsToBlock 调用。 取高度 h 生效的名单做深度判定,覆盖四个维度:发送方(tx.From)、接收方(tx.To / GetRealToAddr)、 EVM 合约目标地址(ContractAddr)、EVM 纯转账原始地址(20 字节 Para)。 命中返回包装后的 ErrBlockedAccount,调用方可用 errors.Is 判定。 这里没有 fork 门控分支:门控已在构建快照时固化为版本高度。
func CheckTxBlockedAccountImmediate ¶ added in v1.70.0
func CheckTxBlockedAccountImmediate(cfg *Chain33Config, height int64, tx *Transaction) error
CheckTxBlockedAccountImmediate 入口层拦截,供 mempool.checkTx 与延时交易入口调用。 与共识层共用同一套按高度选版逻辑,height 传即将打包的下一区块高度, 保证 mempool 与共识判定一致;不做「提前按未来版本拦截」的旁路。 链是去中心化的,本机 mempool 提前过滤挡不住未升级节点出块, 真正的网络级拦截点只能是共识在已到达高度上的判定。
func CheckTxsBlockedAccount ¶ added in v1.70.0
func CheckTxsBlockedAccount(cfg *Chain33Config, height int64, txs []*Transaction) error
CheckTxsBlockedAccount 交易组共识层拦截:任一笔命中返回 error,全部通过返回 nil。 语义与 procExecTxList 的错误处理一致(组内任一笔 err 则整组每笔都 ExecErr)。
func CheckTxsBlockedAccountImmediate ¶ added in v1.70.0
func CheckTxsBlockedAccountImmediate(cfg *Chain33Config, height int64, txs []*Transaction) error
CheckTxsBlockedAccountImmediate 交易组入口层拦截,语义同 CheckTxBlockedAccountImmediate
func EncodeSignID ¶ added in v1.67.1
EncodeSignID encode sign id
func EncodeWithBuffer ¶ added in v1.65.3
EncodeWithBuffer encode with input buffer
func EthSignedTxEnvelope ¶ added in v1.73.0
func EthSignedTxEnvelope(tx *Transaction) (etx *etypes.Transaction, ok bool)
EthSignedTxEnvelope returns the Ethereum transaction carried by an eth-signed chain33 transaction: a secp256k1eth signature on an EVM payload whose Note holds the raw Ethereum transaction. ok is false for every other shape.
The carrier is identified by crypto id, not by the exact signature type: the driver is selected by crypto id, so an address-driver variant of the same signature type still routes to secp256k1eth and must not be able to skip the rules built on this predicate.
func ExtractAddressID ¶ added in v1.67.1
ExtractAddressID extract address id from signature type id
func ExtractCryptoID ¶ added in v1.67.1
ExtractCryptoID extract crypto id from signature type id
func FlatConfig ¶
FlatConfig Flat配置
func FormatAmount2FixPrecisionDisplay ¶ added in v1.65.3
FormatAmount2FixPrecisionDisplay 将传输、计算的amount值按配置精度格式化成浮点显示值,不设缺省精度
func FormatAmount2FloatDisplay ¶ added in v1.65.3
FormatAmount2FloatDisplay 将传输、计算的amount值按精度格式化成浮点显示值,支持精度可配置 strconv.FormatFloat(float64(amount/types.Int1E4)/types.Float1E4, 'f', 4, 64) 的方法在amount很大的时候会丢失精度 比如在9001234567812345678时候,float64 最大精度只能在900123456781234的大小,decimal处理可以完整保持精度 在coinPrecision支持可配时候,对不同精度统一处理,而不是限定在1e4 round:是否需要对小数后四位值圆整,以912345678为例,912345678/1e8=9.1235, 非圆整例子:(912345678/1e4)/float(1e4)
func FormatFloatDisplay2Value ¶ added in v1.65.3
FormatFloatDisplay2Value 将显示、输入的float amount值按精度格式化成计算值,小数点后精度只保留4位 浮点数算上浮点能精确表达最大16位长的数字(1234567.12345678),考虑到16个9会被表示为1e16,这里限制最多15个字符 本函数然后小数位只精确到4位,后面补0
func FormatTxEncode ¶
func FormatTxEncode(c *Chain33Config, execName string, tx *Transaction) ([]byte, error)
FormatTxEncode 对交易信息编码成byte类型
func GetActionValue ¶
func GetActionValue(action interface{}, funclist map[string]reflect.Method) (vname string, vty int32, v reflect.Value, err error)
GetActionValue 获取执行器的action value
func GetExecName ¶ added in v1.65.3
GetExecName 根据paraName 获取exec name
func GetParaExecTitleName ¶
GetParaExecTitleName 如果是平行链执行器,获取对应title
func GetTxHeight ¶
func GetTxHeight(cfg *Chain33Config, valid int64, height int64) int64
GetTxHeight 获取交易高度
func InitCfgString ¶
func InitCfgString(cfgstring string) (*Config, *ConfigSubModule)
InitCfgString 初始化配置
func IsAllowExecName ¶
IsAllowExecName 默认的allow 规则->根据 GetRealExecName 来判断 name 必须大于3 小于 100
func IsAssetsTransfer ¶
func IsAssetsTransfer(payload interface{}) bool
IsAssetsTransfer 是否是资产转移相关的交易
func IsEthCryptoID ¶ added in v1.73.0
IsEthCryptoID reports whether signID selects the secp256k1eth driver. The crypto driver is chosen by crypto id, so the address-format id in the same value is not part of the driver identity and must not decide whether the eth rules apply.
func IsEthSignID ¶ added in v1.67.4
IsEthSignID check chain33 tx sigtype
func IsForward2MainChainTx ¶ added in v1.68.0
func IsForward2MainChainTx(cfg *Chain33Config, tx *Transaction) bool
IsForward2MainChainTx 检查交易是否转发到主链, 此类交易需要在主链执行或优先执行
func IsSpecificParaExecName ¶
IsSpecificParaExecName 是否是某一个平行链的执行器
func JSONToPBUTF8 ¶
JSONToPBUTF8 默认解码utf8的字符串成bytes
func ListActionMethod ¶
ListActionMethod list action的所有的方法
func ListMethod ¶
ListMethod list Method
func ListMethodByType ¶
ListMethodByType list Method 通过type类型
func MergeConfig ¶
MergeConfig Merge配置
func ModifySubConfig ¶
ModifySubConfig json data modify
func ParseExpire ¶
ParseExpire parse expire to int from during or height
func RegisterChain33Server ¶
func RegisterChain33Server(s *grpc.Server, srv Chain33Server)
func RegisterP2PgserviceServer ¶
func RegisterP2PgserviceServer(s *grpc.Server, srv P2PgserviceServer)
func RegistorExecutor ¶
func RegistorExecutor(exec string, util ExecutorType)
RegistorExecutor 注册执行器
func SetTimeDelta ¶
func SetTimeDelta(dt int64)
SetTimeDelta realtime - localtime 超过60s 不做修正 为了系统的安全,我们只做小范围时间错误的修复
func Str2Bytes ¶ added in v1.65.0
Str2Bytes 高效字符串转字节数组 相比普通直接转化,性能提升13倍, 提升程度和转换的byte长度线性相关,且不存在内存开销 需要注意不能修改转换后的byte数组,本质上是修改了底层string,将会panic
func VerifySignature ¶ added in v1.65.1
func VerifySignature(cfg *Chain33Config, block *Block, txs []*Transaction) bool
VerifySignature 验证区块和交易的签名,支持指定需要验证的交易
Types ¶
type Account ¶
type Account struct {
// coins标识,目前只有0 一个值
Currency int32 `protobuf:"varint,1,opt,name=currency,proto3" json:"currency,omitempty"`
//账户可用余额
Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
//账户冻结余额
Frozen int64 `protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
//账户的地址
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
Account 的信息
func CloneAccount ¶ added in v1.65.3
CloneAccount copy account
func (*Account) Descriptor
deprecated
func (*Account) GetBalance ¶
func (*Account) GetCurrency ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶ added in v1.65.3
func (x *Account) ProtoReflect() protoreflect.Message
type AccountBlacklistConfig ¶ added in v1.70.0
type AccountBlacklistConfig struct {
AccountBlacklist []string `json:"accountBlacklist,omitempty"`
}
AccountBlacklistConfig 账户黑名单配置
type AccountInfo ¶ added in v1.65.3
type AccountInfo struct {
//账户地址
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//账户私钥
PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
//账户公钥
PubKey string `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
//账户助记词
Seed string `protobuf:"bytes,4,opt,name=seed,proto3" json:"seed,omitempty"`
// contains filtered or unexported fields
}
AccountInfo account 的信息
func (*AccountInfo) Descriptor
deprecated
added in
v1.65.3
func (*AccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) GetAddr ¶ added in v1.65.3
func (x *AccountInfo) GetAddr() string
func (*AccountInfo) GetPrivateKey ¶ added in v1.65.3
func (x *AccountInfo) GetPrivateKey() string
func (*AccountInfo) GetPubKey ¶ added in v1.65.3
func (x *AccountInfo) GetPubKey() string
func (*AccountInfo) GetSeed ¶ added in v1.65.3
func (x *AccountInfo) GetSeed() string
func (*AccountInfo) ProtoMessage ¶ added in v1.65.3
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) ProtoReflect ¶ added in v1.65.3
func (x *AccountInfo) ProtoReflect() protoreflect.Message
func (*AccountInfo) Reset ¶ added in v1.65.3
func (x *AccountInfo) Reset()
func (*AccountInfo) String ¶ added in v1.65.3
func (x *AccountInfo) String() string
type Accounts ¶
type Accounts struct {
Acc []*Account `protobuf:"bytes,1,rep,name=acc,proto3" json:"acc,omitempty"`
// contains filtered or unexported fields
}
Account 的列表
func (*Accounts) Descriptor
deprecated
func (*Accounts) ProtoMessage ¶
func (*Accounts) ProtoMessage()
func (*Accounts) ProtoReflect ¶ added in v1.65.3
func (x *Accounts) ProtoReflect() protoreflect.Message
type AddrOverview ¶
type AddrOverview struct {
Reciver int64 `protobuf:"varint,1,opt,name=reciver,proto3" json:"reciver,omitempty"`
Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
TxCount int64 `protobuf:"varint,3,opt,name=txCount,proto3" json:"txCount,omitempty"`
// contains filtered or unexported fields
}
func (*AddrOverview) Descriptor
deprecated
func (*AddrOverview) Descriptor() ([]byte, []int)
Deprecated: Use AddrOverview.ProtoReflect.Descriptor instead.
func (*AddrOverview) GetBalance ¶
func (x *AddrOverview) GetBalance() int64
func (*AddrOverview) GetReciver ¶
func (x *AddrOverview) GetReciver() int64
func (*AddrOverview) GetTxCount ¶
func (x *AddrOverview) GetTxCount() int64
func (*AddrOverview) ProtoMessage ¶
func (*AddrOverview) ProtoMessage()
func (*AddrOverview) ProtoReflect ¶ added in v1.65.3
func (x *AddrOverview) ProtoReflect() protoreflect.Message
func (*AddrOverview) Reset ¶
func (x *AddrOverview) Reset()
func (*AddrOverview) String ¶
func (x *AddrOverview) String() string
type AddrTxFeeInfo ¶ added in v1.65.3
type AddrTxFeeInfo struct {
FromAddr string `protobuf:"bytes,1,opt,name=fromAddr,proto3" json:"fromAddr,omitempty"`
ToAddr string `protobuf:"bytes,2,opt,name=toAddr,proto3" json:"toAddr,omitempty"`
TxHash string `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
Exec string `protobuf:"bytes,4,opt,name=exec,proto3" json:"exec,omitempty"`
Fee int64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"`
TxStatus int32 `protobuf:"varint,8,opt,name=txStatus,proto3" json:"txStatus,omitempty"`
// contains filtered or unexported fields
}
根据Addr查询和此Addr相关的交易费交易记录
func (*AddrTxFeeInfo) Descriptor
deprecated
added in
v1.65.3
func (*AddrTxFeeInfo) Descriptor() ([]byte, []int)
Deprecated: Use AddrTxFeeInfo.ProtoReflect.Descriptor instead.
func (*AddrTxFeeInfo) GetExec ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetExec() string
func (*AddrTxFeeInfo) GetFee ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetFee() int64
func (*AddrTxFeeInfo) GetFromAddr ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetFromAddr() string
func (*AddrTxFeeInfo) GetHeight ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetHeight() int64
func (*AddrTxFeeInfo) GetIndex ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetIndex() int64
func (*AddrTxFeeInfo) GetToAddr ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetToAddr() string
func (*AddrTxFeeInfo) GetTxHash ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetTxHash() string
func (*AddrTxFeeInfo) GetTxStatus ¶ added in v1.65.3
func (x *AddrTxFeeInfo) GetTxStatus() int32
func (*AddrTxFeeInfo) ProtoMessage ¶ added in v1.65.3
func (*AddrTxFeeInfo) ProtoMessage()
func (*AddrTxFeeInfo) ProtoReflect ¶ added in v1.65.3
func (x *AddrTxFeeInfo) ProtoReflect() protoreflect.Message
func (*AddrTxFeeInfo) Reset ¶ added in v1.65.3
func (x *AddrTxFeeInfo) Reset()
func (*AddrTxFeeInfo) String ¶ added in v1.65.3
func (x *AddrTxFeeInfo) String() string
type AddrTxFeeInfos ¶ added in v1.65.3
type AddrTxFeeInfos struct {
TxInfos []*AddrTxFeeInfo `protobuf:"bytes,1,rep,name=txInfos,proto3" json:"txInfos,omitempty"`
// contains filtered or unexported fields
}
func (*AddrTxFeeInfos) Descriptor
deprecated
added in
v1.65.3
func (*AddrTxFeeInfos) Descriptor() ([]byte, []int)
Deprecated: Use AddrTxFeeInfos.ProtoReflect.Descriptor instead.
func (*AddrTxFeeInfos) GetTxInfos ¶ added in v1.65.3
func (x *AddrTxFeeInfos) GetTxInfos() []*AddrTxFeeInfo
func (*AddrTxFeeInfos) ProtoMessage ¶ added in v1.65.3
func (*AddrTxFeeInfos) ProtoMessage()
func (*AddrTxFeeInfos) ProtoReflect ¶ added in v1.65.3
func (x *AddrTxFeeInfos) ProtoReflect() protoreflect.Message
func (*AddrTxFeeInfos) Reset ¶ added in v1.65.3
func (x *AddrTxFeeInfos) Reset()
func (*AddrTxFeeInfos) String ¶ added in v1.65.3
func (x *AddrTxFeeInfos) String() string
type AddressDriver ¶ added in v1.67.1
type AddressDriver struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
TypeID int32 `protobuf:"varint,2,opt,name=typeID,proto3" json:"typeID,omitempty"`
// contains filtered or unexported fields
}
func (*AddressDriver) Descriptor
deprecated
added in
v1.67.1
func (*AddressDriver) Descriptor() ([]byte, []int)
Deprecated: Use AddressDriver.ProtoReflect.Descriptor instead.
func (*AddressDriver) GetName ¶ added in v1.67.1
func (x *AddressDriver) GetName() string
func (*AddressDriver) GetTypeID ¶ added in v1.67.1
func (x *AddressDriver) GetTypeID() int32
func (*AddressDriver) ProtoMessage ¶ added in v1.67.1
func (*AddressDriver) ProtoMessage()
func (*AddressDriver) ProtoReflect ¶ added in v1.67.1
func (x *AddressDriver) ProtoReflect() protoreflect.Message
func (*AddressDriver) Reset ¶ added in v1.67.1
func (x *AddressDriver) Reset()
func (*AddressDriver) String ¶ added in v1.67.1
func (x *AddressDriver) String() string
type AddressDrivers ¶ added in v1.67.1
type AddressDrivers struct {
Drivers []*AddressDriver `protobuf:"bytes,1,rep,name=drivers,proto3" json:"drivers,omitempty"`
// contains filtered or unexported fields
}
func (*AddressDrivers) Descriptor
deprecated
added in
v1.67.1
func (*AddressDrivers) Descriptor() ([]byte, []int)
Deprecated: Use AddressDrivers.ProtoReflect.Descriptor instead.
func (*AddressDrivers) GetDrivers ¶ added in v1.67.1
func (x *AddressDrivers) GetDrivers() []*AddressDriver
func (*AddressDrivers) ProtoMessage ¶ added in v1.67.1
func (*AddressDrivers) ProtoMessage()
func (*AddressDrivers) ProtoReflect ¶ added in v1.67.1
func (x *AddressDrivers) ProtoReflect() protoreflect.Message
func (*AddressDrivers) Reset ¶ added in v1.67.1
func (x *AddressDrivers) Reset()
func (*AddressDrivers) String ¶ added in v1.67.1
func (x *AddressDrivers) String() string
type AllExecBalance ¶
type AllExecBalance struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
ExecAccount []*ExecAccount `protobuf:"bytes,2,rep,name=ExecAccount,proto3" json:"ExecAccount,omitempty"`
// contains filtered or unexported fields
}
func (*AllExecBalance) Descriptor
deprecated
func (*AllExecBalance) Descriptor() ([]byte, []int)
Deprecated: Use AllExecBalance.ProtoReflect.Descriptor instead.
func (*AllExecBalance) GetAddr ¶
func (x *AllExecBalance) GetAddr() string
func (*AllExecBalance) GetExecAccount ¶
func (x *AllExecBalance) GetExecAccount() []*ExecAccount
func (*AllExecBalance) ProtoMessage ¶
func (*AllExecBalance) ProtoMessage()
func (*AllExecBalance) ProtoReflect ¶ added in v1.65.3
func (x *AllExecBalance) ProtoReflect() protoreflect.Message
func (*AllExecBalance) Reset ¶
func (x *AllExecBalance) Reset()
func (*AllExecBalance) String ¶
func (x *AllExecBalance) String() string
type ArrayConfig ¶
type ArrayConfig struct {
Value []string `protobuf:"bytes,3,rep,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
配置修改部分
func (*ArrayConfig) Descriptor
deprecated
func (*ArrayConfig) Descriptor() ([]byte, []int)
Deprecated: Use ArrayConfig.ProtoReflect.Descriptor instead.
func (*ArrayConfig) GetValue ¶
func (x *ArrayConfig) GetValue() []string
func (*ArrayConfig) ProtoMessage ¶
func (*ArrayConfig) ProtoMessage()
func (*ArrayConfig) ProtoReflect ¶ added in v1.65.3
func (x *ArrayConfig) ProtoReflect() protoreflect.Message
func (*ArrayConfig) Reset ¶
func (x *ArrayConfig) Reset()
func (*ArrayConfig) String ¶
func (x *ArrayConfig) String() string
type Asset ¶
type Asset struct {
Exec string `protobuf:"bytes,1,opt,name=exec,proto3" json:"exec,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
func (*Asset) Descriptor
deprecated
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) ProtoReflect ¶ added in v1.65.3
func (x *Asset) ProtoReflect() protoreflect.Message
type AssetsGenesis ¶
type AssetsGenesis struct {
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
// contains filtered or unexported fields
}
assert transfer struct
func (*AssetsGenesis) Descriptor
deprecated
func (*AssetsGenesis) Descriptor() ([]byte, []int)
Deprecated: Use AssetsGenesis.ProtoReflect.Descriptor instead.
func (*AssetsGenesis) GetAmount ¶
func (x *AssetsGenesis) GetAmount() int64
func (*AssetsGenesis) GetReturnAddress ¶
func (x *AssetsGenesis) GetReturnAddress() string
func (*AssetsGenesis) ProtoMessage ¶
func (*AssetsGenesis) ProtoMessage()
func (*AssetsGenesis) ProtoReflect ¶ added in v1.65.3
func (x *AssetsGenesis) ProtoReflect() protoreflect.Message
func (*AssetsGenesis) Reset ¶
func (x *AssetsGenesis) Reset()
func (*AssetsGenesis) String ¶
func (x *AssetsGenesis) String() string
type AssetsTransfer ¶
type AssetsTransfer struct {
Cointoken string `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
Note []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
// contains filtered or unexported fields
}
func (*AssetsTransfer) Descriptor
deprecated
func (*AssetsTransfer) Descriptor() ([]byte, []int)
Deprecated: Use AssetsTransfer.ProtoReflect.Descriptor instead.
func (*AssetsTransfer) GetAmount ¶
func (x *AssetsTransfer) GetAmount() int64
func (*AssetsTransfer) GetCointoken ¶
func (x *AssetsTransfer) GetCointoken() string
func (*AssetsTransfer) GetNote ¶
func (x *AssetsTransfer) GetNote() []byte
func (*AssetsTransfer) GetTo ¶
func (x *AssetsTransfer) GetTo() string
func (*AssetsTransfer) ProtoMessage ¶
func (*AssetsTransfer) ProtoMessage()
func (*AssetsTransfer) ProtoReflect ¶ added in v1.65.3
func (x *AssetsTransfer) ProtoReflect() protoreflect.Message
func (*AssetsTransfer) Reset ¶
func (x *AssetsTransfer) Reset()
func (*AssetsTransfer) String ¶
func (x *AssetsTransfer) String() string
type AssetsTransferToExec ¶
type AssetsTransferToExec struct {
Cointoken string `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
Note []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
ExecName string `protobuf:"bytes,4,opt,name=execName,proto3" json:"execName,omitempty"`
To string `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
// contains filtered or unexported fields
}
func (*AssetsTransferToExec) Descriptor
deprecated
func (*AssetsTransferToExec) Descriptor() ([]byte, []int)
Deprecated: Use AssetsTransferToExec.ProtoReflect.Descriptor instead.
func (*AssetsTransferToExec) GetAmount ¶
func (x *AssetsTransferToExec) GetAmount() int64
func (*AssetsTransferToExec) GetCointoken ¶
func (x *AssetsTransferToExec) GetCointoken() string
func (*AssetsTransferToExec) GetExecName ¶
func (x *AssetsTransferToExec) GetExecName() string
func (*AssetsTransferToExec) GetNote ¶
func (x *AssetsTransferToExec) GetNote() []byte
func (*AssetsTransferToExec) GetTo ¶
func (x *AssetsTransferToExec) GetTo() string
func (*AssetsTransferToExec) ProtoMessage ¶
func (*AssetsTransferToExec) ProtoMessage()
func (*AssetsTransferToExec) ProtoReflect ¶ added in v1.65.3
func (x *AssetsTransferToExec) ProtoReflect() protoreflect.Message
func (*AssetsTransferToExec) Reset ¶
func (x *AssetsTransferToExec) Reset()
func (*AssetsTransferToExec) String ¶
func (x *AssetsTransferToExec) String() string
type AssetsWithdraw ¶
type AssetsWithdraw struct {
Cointoken string `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
Note []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
ExecName string `protobuf:"bytes,4,opt,name=execName,proto3" json:"execName,omitempty"`
To string `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
// contains filtered or unexported fields
}
func (*AssetsWithdraw) Descriptor
deprecated
func (*AssetsWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use AssetsWithdraw.ProtoReflect.Descriptor instead.
func (*AssetsWithdraw) GetAmount ¶
func (x *AssetsWithdraw) GetAmount() int64
func (*AssetsWithdraw) GetCointoken ¶
func (x *AssetsWithdraw) GetCointoken() string
func (*AssetsWithdraw) GetExecName ¶
func (x *AssetsWithdraw) GetExecName() string
func (*AssetsWithdraw) GetNote ¶
func (x *AssetsWithdraw) GetNote() []byte
func (*AssetsWithdraw) GetTo ¶
func (x *AssetsWithdraw) GetTo() string
func (*AssetsWithdraw) ProtoMessage ¶
func (*AssetsWithdraw) ProtoMessage()
func (*AssetsWithdraw) ProtoReflect ¶ added in v1.65.3
func (x *AssetsWithdraw) ProtoReflect() protoreflect.Message
func (*AssetsWithdraw) Reset ¶
func (x *AssetsWithdraw) Reset()
func (*AssetsWithdraw) String ¶
func (x *AssetsWithdraw) String() string
type BlackInfo ¶ added in v1.65.3
type BlackInfo struct {
//节点名称,pid
PeerName string `protobuf:"bytes,1,opt,name=peerName,proto3" json:"peerName,omitempty"`
// 节点的IP地址
RemoteAddr string `protobuf:"bytes,2,opt,name=remoteAddr,proto3" json:"remoteAddr,omitempty"`
//生命周期,剩余解除的时间
Lifetime int64 `protobuf:"varint,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
// contains filtered or unexported fields
}
func (*BlackInfo) Descriptor
deprecated
added in
v1.65.3
func (*BlackInfo) GetLifetime ¶ added in v1.65.3
func (*BlackInfo) GetPeerName ¶ added in v1.65.3
func (*BlackInfo) GetRemoteAddr ¶ added in v1.65.3
func (*BlackInfo) ProtoMessage ¶ added in v1.65.3
func (*BlackInfo) ProtoMessage()
func (*BlackInfo) ProtoReflect ¶ added in v1.65.3
func (x *BlackInfo) ProtoReflect() protoreflect.Message
type BlackPeer ¶ added in v1.65.3
type BlackPeer struct {
PeerAddr string `protobuf:"bytes,1,opt,name=peerAddr,proto3" json:"peerAddr,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
Lifetime string `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
// contains filtered or unexported fields
}
func (*BlackPeer) Descriptor
deprecated
added in
v1.65.3
func (*BlackPeer) GetLifetime ¶ added in v1.65.3
func (*BlackPeer) GetPeerAddr ¶ added in v1.65.3
func (*BlackPeer) GetPeerName ¶ added in v1.65.3
func (*BlackPeer) ProtoMessage ¶ added in v1.65.3
func (*BlackPeer) ProtoMessage()
func (*BlackPeer) ProtoReflect ¶ added in v1.65.3
func (x *BlackPeer) ProtoReflect() protoreflect.Message
type Blacklist ¶ added in v1.65.3
type Blacklist struct {
Blackinfo []*BlackInfo `protobuf:"bytes,1,rep,name=blackinfo,proto3" json:"blackinfo,omitempty"`
// contains filtered or unexported fields
}
func (*Blacklist) Descriptor
deprecated
added in
v1.65.3
func (*Blacklist) GetBlackinfo ¶ added in v1.65.3
func (*Blacklist) ProtoMessage ¶ added in v1.65.3
func (*Blacklist) ProtoMessage()
func (*Blacklist) ProtoReflect ¶ added in v1.65.3
func (x *Blacklist) ProtoReflect() protoreflect.Message
type Block ¶
type Block struct {
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
ParentHash []byte `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
TxHash []byte `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
StateHash []byte `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
BlockTime int64 `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
Difficulty uint32 `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
MainHash []byte `protobuf:"bytes,12,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight int64 `protobuf:"varint,13,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
Signature *Signature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
Txs []*Transaction `protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
参考Header解释
mainHash 平行链上使用的字段,代表这个区块的主链hash
func (*Block) CheckSign ¶
func (block *Block) CheckSign(cfg *Chain33Config) bool
CheckSign 检测block的签名,以及交易的签名
func (*Block) Descriptor
deprecated
func (*Block) GetBlockTime ¶
func (*Block) GetDifficulty ¶
func (*Block) GetHeader ¶
func (block *Block) GetHeader(cfg *Chain33Config) *Header
GetHeader 获取block的Header信息
func (*Block) GetMainHash ¶
func (*Block) GetMainHeight ¶
func (*Block) GetParentHash ¶
func (*Block) GetSignature ¶
func (*Block) GetStateHash ¶
func (*Block) GetTxs ¶
func (x *Block) GetTxs() []*Transaction
func (*Block) GetVersion ¶
func (*Block) HashByForkHeight ¶
HashByForkHeight hash 通过自己设置的fork 高度计算 hash
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶ added in v1.65.3
func (x *Block) ProtoReflect() protoreflect.Message
type BlockBody ¶
type BlockBody struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
Receipts []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
MainHash []byte `protobuf:"bytes,3,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight int64 `protobuf:"varint,4,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
Hash []byte `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
区块体信息
txs : 区块上所有交易列表 receipts :区块上所有交易的收据信息列表 mainHash : 主链区块hash,平行链使用 mainHeight :主链区块高度,平行链使用 hash : 本链区块hash height :本链区块高度
func (*BlockBody) Descriptor
deprecated
func (*BlockBody) GetMainHash ¶
func (*BlockBody) GetMainHeight ¶
func (*BlockBody) GetReceipts ¶
func (x *BlockBody) GetReceipts() []*ReceiptData
func (*BlockBody) GetTxs ¶
func (x *BlockBody) GetTxs() []*Transaction
func (*BlockBody) ProtoMessage ¶
func (*BlockBody) ProtoMessage()
func (*BlockBody) ProtoReflect ¶ added in v1.65.3
func (x *BlockBody) ProtoReflect() protoreflect.Message
type BlockBodys ¶ added in v1.65.0
type BlockBodys struct {
Items []*BlockBody `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
BlockBodys
func (*BlockBodys) Descriptor
deprecated
added in
v1.65.0
func (*BlockBodys) Descriptor() ([]byte, []int)
Deprecated: Use BlockBodys.ProtoReflect.Descriptor instead.
func (*BlockBodys) GetItems ¶ added in v1.65.0
func (x *BlockBodys) GetItems() []*BlockBody
func (*BlockBodys) ProtoMessage ¶ added in v1.65.0
func (*BlockBodys) ProtoMessage()
func (*BlockBodys) ProtoReflect ¶ added in v1.65.3
func (x *BlockBodys) ProtoReflect() protoreflect.Message
func (*BlockBodys) Reset ¶ added in v1.65.0
func (x *BlockBodys) Reset()
func (*BlockBodys) String ¶ added in v1.65.0
func (x *BlockBodys) String() string
type BlockChain ¶
type BlockChain struct {
// 分片存储中每个大块包含的区块数
ChunkblockNum int64 `json:"chunkblockNum,omitempty"`
// blockchain模块保留的区块数,这些区块暂不参与分片
ReservedBlockNum int64 `json:"reservedBlockNum,omitempty"`
// 缓存区块的个数
DefCacheSize int64 `json:"defCacheSize,omitempty"`
// 同步区块时一次最多申请获取的区块个数
MaxFetchBlockNum int64 `json:"maxFetchBlockNum,omitempty"`
// 向对端节点请求同步区块的时间间隔
TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
BatchBlockNum int64 `json:"batchBlockNum,omitempty"`
// 使用的数据库类型
Driver string `json:"driver,omitempty"`
// 数据库文件目录
DbPath string `json:"dbPath,omitempty"`
// 数据库缓存大小
DbCache int32 `json:"dbCache,omitempty"`
IsStrongConsistency bool `json:"isStrongConsistency,omitempty"`
// 是否为单节点
SingleMode bool `json:"singleMode,omitempty"`
// 同步区块批量写数据库时,是否需要立即写磁盘,非固态硬盘的电脑可以设置为false,以提高性能
Batchsync bool `json:"batchsync,omitempty"`
// 是否记录添加或者删除区块的序列,若节点作为主链节点,为平行链节点提供服务,需要设置为true
IsRecordBlockSequence bool `json:"isRecordBlockSequence,omitempty"`
// 是否为平行链节点
IsParaChain bool `json:"isParaChain,omitempty"`
EnableTxQuickIndex bool `json:"enableTxQuickIndex,omitempty"`
// 升级storedb是否重新执行localdb
EnableReExecLocal bool `json:"enableReExecLocal,omitempty"`
// 关闭ExecLocal,不会影响ExecLocalSameTime的合约
DisableExecLocal bool `json:"disableExecLocal,omitempty"`
// 区块回退
RollbackBlock int64 `json:"rollbackBlock,omitempty"`
// 回退是否保存区块
RollbackSave bool `json:"rollbackSave,omitempty"`
// 最新区块上链超时时间,单位秒。
OnChainTimeout int64 `json:"onChainTimeout,omitempty"`
// 使能精简localdb
EnableReduceLocaldb bool `json:"enableReduceLocaldb,omitempty"`
// 关闭分片存储,默认开启分片存储为false;平行链不需要分片需要修改此默认参数为true
DisableShard bool `protobuf:"varint,19,opt,name=disableShard" json:"disableShard,omitempty"`
// 使能从P2pStore中获取数据
EnableFetchP2pstore bool `json:"enableFetchP2pstore,omitempty"`
// 使能注册推送区块、区块头或交易回执
EnablePushSubscribe bool `json:"EnablePushSubscribe,omitempty"`
// 当前活跃区块的缓存数量
MaxActiveBlockNum int `json:"maxActiveBlockNum,omitempty"`
// 当前活跃区块的缓存大小M为单位
MaxActiveBlockSize int `json:"maxActiveBlockSize,omitempty"`
//HighAllowPackHeight 允许打包的High区块高度
HighAllowPackHeight int64 `json:"highAllowPackHeight,omitempty"`
//LowAllowPackHeight 允许打包的low区块高度
LowAllowPackHeight int64 `json:"lowAllowPackHeight,omitempty"`
//关闭blockchain 区块广播
DisableBlockBroadcast bool `json:"disableBlockBroadcast,omitempty"`
//关闭本地和ntp server的时钟偏移检查
DisableClockDriftCheck bool `json:"disableClockDriftCheck,omitempty"`
//保存每个区块的block kvs
EnableSaveBlockKVs bool `json:"enableSaveBlockKVs,omitempty"`
// 区块最终化机制启动高度
BlockFinalizeEnableHeight int64 `json:"blockFinalizeEnableHeight,omitempty"`
// 区块最终化启动高度间隔, 等待高度差
BlockFinalizeGapHeight int64 `json:"blockFinalizeGapHeight,omitempty"`
}
BlockChain 配置
type BlockDetail ¶
type BlockDetail struct {
Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
Receipts []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
KV []*KeyValue `protobuf:"bytes,3,rep,name=KV,proto3" json:"KV,omitempty"`
PrevStatusHash []byte `protobuf:"bytes,4,opt,name=prevStatusHash,proto3" json:"prevStatusHash,omitempty"`
// contains filtered or unexported fields
}
区块详细信息
block : 区块信息 receipts :区块上所有交易的收据信息列表
func (*BlockDetail) Descriptor
deprecated
func (*BlockDetail) Descriptor() ([]byte, []int)
Deprecated: Use BlockDetail.ProtoReflect.Descriptor instead.
func (*BlockDetail) FilterParaTxsByTitle ¶
func (blockDetail *BlockDetail) FilterParaTxsByTitle(cfg *Chain33Config, title string) *ParaTxDetail
FilterParaTxsByTitle 过滤指定title的平行链交易 1,单笔平行连交易 2,交易组中的平行连交易,需要将整个交易组都过滤出来 目前暂时不返回单个交易的proof证明路径, 后面会将平行链的交易组装到一起,构成一个子roothash。会返回子roothash的proof证明路径
func (*BlockDetail) GetBlock ¶
func (x *BlockDetail) GetBlock() *Block
func (*BlockDetail) GetKV ¶
func (x *BlockDetail) GetKV() []*KeyValue
func (*BlockDetail) GetPrevStatusHash ¶
func (x *BlockDetail) GetPrevStatusHash() []byte
func (*BlockDetail) GetReceipts ¶
func (x *BlockDetail) GetReceipts() []*ReceiptData
func (*BlockDetail) ProtoMessage ¶
func (*BlockDetail) ProtoMessage()
func (*BlockDetail) ProtoReflect ¶ added in v1.65.3
func (x *BlockDetail) ProtoReflect() protoreflect.Message
func (*BlockDetail) Reset ¶
func (x *BlockDetail) Reset()
func (*BlockDetail) String ¶
func (x *BlockDetail) String() string
type BlockDetails ¶
type BlockDetails struct {
Items []*BlockDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
resp
func (*BlockDetails) Descriptor
deprecated
func (*BlockDetails) Descriptor() ([]byte, []int)
Deprecated: Use BlockDetails.ProtoReflect.Descriptor instead.
func (*BlockDetails) GetItems ¶
func (x *BlockDetails) GetItems() []*BlockDetail
func (*BlockDetails) ProtoMessage ¶
func (*BlockDetails) ProtoMessage()
func (*BlockDetails) ProtoReflect ¶ added in v1.65.3
func (x *BlockDetails) ProtoReflect() protoreflect.Message
func (*BlockDetails) Reset ¶
func (x *BlockDetails) Reset()
func (*BlockDetails) String ¶
func (x *BlockDetails) String() string
type BlockInfo ¶
type BlockInfo struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
title平行链交易所在主链区块的信息
func (*BlockInfo) Descriptor
deprecated
func (*BlockInfo) ProtoMessage ¶
func (*BlockInfo) ProtoMessage()
func (*BlockInfo) ProtoReflect ¶ added in v1.65.3
func (x *BlockInfo) ProtoReflect() protoreflect.Message
type BlockKVs ¶ added in v1.67.4
type BlockKVs struct {
KVs []*KeyValue `protobuf:"bytes,1,rep,name=KVs,proto3" json:"KVs,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*BlockKVs) Descriptor
deprecated
added in
v1.67.4
func (*BlockKVs) ProtoMessage ¶ added in v1.67.4
func (*BlockKVs) ProtoMessage()
func (*BlockKVs) ProtoReflect ¶ added in v1.67.4
func (x *BlockKVs) ProtoReflect() protoreflect.Message
type BlockOverview ¶
type BlockOverview struct {
Head *Header `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
TxCount int64 `protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
TxHashes [][]byte `protobuf:"bytes,3,rep,name=txHashes,proto3" json:"txHashes,omitempty"`
// contains filtered or unexported fields
}
区块视图
head : 区块头信息 txCount :区块上交易个数 txHashes : 区块上交易的哈希列表
func (*BlockOverview) Descriptor
deprecated
func (*BlockOverview) Descriptor() ([]byte, []int)
Deprecated: Use BlockOverview.ProtoReflect.Descriptor instead.
func (*BlockOverview) GetHead ¶
func (x *BlockOverview) GetHead() *Header
func (*BlockOverview) GetTxCount ¶
func (x *BlockOverview) GetTxCount() int64
func (*BlockOverview) GetTxHashes ¶
func (x *BlockOverview) GetTxHashes() [][]byte
func (*BlockOverview) ProtoMessage ¶
func (*BlockOverview) ProtoMessage()
func (*BlockOverview) ProtoReflect ¶ added in v1.65.3
func (x *BlockOverview) ProtoReflect() protoreflect.Message
func (*BlockOverview) Reset ¶
func (x *BlockOverview) Reset()
func (*BlockOverview) String ¶
func (x *BlockOverview) String() string
type BlockPid ¶
type BlockPid struct {
Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
Block *Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
// contains filtered or unexported fields
}
节点ID以及对应的Block
func (*BlockPid) Descriptor
deprecated
func (*BlockPid) ProtoMessage ¶
func (*BlockPid) ProtoMessage()
func (*BlockPid) ProtoReflect ¶ added in v1.65.3
func (x *BlockPid) ProtoReflect() protoreflect.Message
type BlockReceipt ¶
type BlockReceipt struct {
Receipts []*ReceiptData `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
区块回执
receipts :区块上所有交易的收据信息列表 hash : 本链区块hash height :本链区块高度
func (*BlockReceipt) Descriptor
deprecated
func (*BlockReceipt) Descriptor() ([]byte, []int)
Deprecated: Use BlockReceipt.ProtoReflect.Descriptor instead.
func (*BlockReceipt) GetHash ¶
func (x *BlockReceipt) GetHash() []byte
func (*BlockReceipt) GetHeight ¶
func (x *BlockReceipt) GetHeight() int64
func (*BlockReceipt) GetReceipts ¶
func (x *BlockReceipt) GetReceipts() []*ReceiptData
func (*BlockReceipt) ProtoMessage ¶
func (*BlockReceipt) ProtoMessage()
func (*BlockReceipt) ProtoReflect ¶ added in v1.65.3
func (x *BlockReceipt) ProtoReflect() protoreflect.Message
func (*BlockReceipt) Reset ¶
func (x *BlockReceipt) Reset()
func (*BlockReceipt) String ¶
func (x *BlockReceipt) String() string
type BlockSeq ¶
type BlockSeq struct {
Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
Seq *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
Detail *BlockDetail `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
// contains filtered or unexported fields
}
func (*BlockSeq) Descriptor
deprecated
func (*BlockSeq) GetDetail ¶
func (x *BlockSeq) GetDetail() *BlockDetail
func (*BlockSeq) GetSeq ¶
func (x *BlockSeq) GetSeq() *BlockSequence
func (*BlockSeq) ProtoMessage ¶
func (*BlockSeq) ProtoMessage()
func (*BlockSeq) ProtoReflect ¶ added in v1.65.3
func (x *BlockSeq) ProtoReflect() protoreflect.Message
type BlockSeqs ¶
type BlockSeqs struct {
Seqs []*BlockSeq `protobuf:"bytes,1,rep,name=seqs,proto3" json:"seqs,omitempty"`
// contains filtered or unexported fields
}
func (*BlockSeqs) Descriptor
deprecated
func (*BlockSeqs) ProtoMessage ¶
func (*BlockSeqs) ProtoMessage()
func (*BlockSeqs) ProtoReflect ¶ added in v1.65.3
func (x *BlockSeqs) ProtoReflect() protoreflect.Message
type BlockSequence ¶
type BlockSequence struct {
Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
Type int64 `protobuf:"varint,2,opt,name=Type,proto3" json:"Type,omitempty"`
// contains filtered or unexported fields
}
通过block hash记录block的操作类型及add/del:1/2
func (*BlockSequence) Descriptor
deprecated
func (*BlockSequence) Descriptor() ([]byte, []int)
Deprecated: Use BlockSequence.ProtoReflect.Descriptor instead.
func (*BlockSequence) GetHash ¶
func (x *BlockSequence) GetHash() []byte
func (*BlockSequence) GetType ¶
func (x *BlockSequence) GetType() int64
func (*BlockSequence) ProtoMessage ¶
func (*BlockSequence) ProtoMessage()
func (*BlockSequence) ProtoReflect ¶ added in v1.65.3
func (x *BlockSequence) ProtoReflect() protoreflect.Message
func (*BlockSequence) Reset ¶
func (x *BlockSequence) Reset()
func (*BlockSequence) String ¶
func (x *BlockSequence) String() string
type BlockSequences ¶
type BlockSequences struct {
Items []*BlockSequence `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
resp
func (*BlockSequences) Descriptor
deprecated
func (*BlockSequences) Descriptor() ([]byte, []int)
Deprecated: Use BlockSequences.ProtoReflect.Descriptor instead.
func (*BlockSequences) GetItems ¶
func (x *BlockSequences) GetItems() []*BlockSequence
func (*BlockSequences) ProtoMessage ¶
func (*BlockSequences) ProtoMessage()
func (*BlockSequences) ProtoReflect ¶ added in v1.65.3
func (x *BlockSequences) ProtoReflect() protoreflect.Message
func (*BlockSequences) Reset ¶
func (x *BlockSequences) Reset()
func (*BlockSequences) String ¶
func (x *BlockSequences) String() string
type Blocks ¶
type Blocks struct {
Items []*Block `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*Blocks) Descriptor
deprecated
func (*Blocks) ProtoMessage ¶
func (*Blocks) ProtoMessage()
func (*Blocks) ProtoReflect ¶ added in v1.65.3
func (x *Blocks) ProtoReflect() protoreflect.Message
type BroadCastData ¶
type BroadCastData struct {
// Types that are assignable to Value:
// *BroadCastData_Tx
// *BroadCastData_Block
// *BroadCastData_Ping
// *BroadCastData_Version
// *BroadCastData_LtTx
// *BroadCastData_LtBlock
// *BroadCastData_Query
// *BroadCastData_BlockRep
Value isBroadCastData_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
* p2p 广播数据协议
func (*BroadCastData) Descriptor
deprecated
func (*BroadCastData) Descriptor() ([]byte, []int)
Deprecated: Use BroadCastData.ProtoReflect.Descriptor instead.
func (*BroadCastData) GetBlock ¶
func (x *BroadCastData) GetBlock() *P2PBlock
func (*BroadCastData) GetBlockRep ¶
func (x *BroadCastData) GetBlockRep() *P2PBlockTxReply
func (*BroadCastData) GetLtBlock ¶
func (x *BroadCastData) GetLtBlock() *LightBlock
func (*BroadCastData) GetLtTx ¶
func (x *BroadCastData) GetLtTx() *LightTx
func (*BroadCastData) GetPing ¶
func (x *BroadCastData) GetPing() *P2PPing
func (*BroadCastData) GetQuery ¶
func (x *BroadCastData) GetQuery() *P2PQueryData
func (*BroadCastData) GetTx ¶
func (x *BroadCastData) GetTx() *P2PTx
func (*BroadCastData) GetValue ¶
func (m *BroadCastData) GetValue() isBroadCastData_Value
func (*BroadCastData) GetVersion ¶
func (x *BroadCastData) GetVersion() *Versions
func (*BroadCastData) ProtoMessage ¶
func (*BroadCastData) ProtoMessage()
func (*BroadCastData) ProtoReflect ¶ added in v1.65.3
func (x *BroadCastData) ProtoReflect() protoreflect.Message
func (*BroadCastData) Reset ¶
func (x *BroadCastData) Reset()
func (*BroadCastData) String ¶
func (x *BroadCastData) String() string
type BroadCastData_Block ¶
type BroadCastData_Block struct {
Block *P2PBlock `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}
type BroadCastData_BlockRep ¶
type BroadCastData_BlockRep struct {
BlockRep *P2PBlockTxReply `protobuf:"bytes,8,opt,name=blockRep,proto3,oneof"`
}
type BroadCastData_LtBlock ¶
type BroadCastData_LtBlock struct {
LtBlock *LightBlock `protobuf:"bytes,6,opt,name=ltBlock,proto3,oneof"`
}
type BroadCastData_LtTx ¶
type BroadCastData_LtTx struct {
LtTx *LightTx `protobuf:"bytes,5,opt,name=ltTx,proto3,oneof"`
}
type BroadCastData_Ping ¶
type BroadCastData_Ping struct {
Ping *P2PPing `protobuf:"bytes,3,opt,name=ping,proto3,oneof"`
}
type BroadCastData_Query ¶
type BroadCastData_Query struct {
Query *P2PQueryData `protobuf:"bytes,7,opt,name=query,proto3,oneof"`
}
type BroadCastData_Tx ¶
type BroadCastData_Tx struct {
Tx *P2PTx `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}
type BroadCastData_Version ¶
type BroadCastData_Version struct {
Version *Versions `protobuf:"bytes,4,opt,name=version,proto3,oneof"`
}
type Chain33Client ¶
type Chain33Client interface {
// chain33 对外提供服务的接口
//区块链接口
GetBlocks(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*Reply, error)
//获取最新的区块头
GetLastHeader(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Header, error)
//交易接口
CreateRawTransaction(ctx context.Context, in *CreateTx, opts ...grpc.CallOption) (*UnsignTx, error)
CreateRawTxGroup(ctx context.Context, in *CreateTransactionGroup, opts ...grpc.CallOption) (*UnsignTx, error)
// 根据哈希查询交易
QueryTransaction(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*TransactionDetail, error)
// 发送交易&&根据哈希查询交易
SendTransactionSync(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*Reply, error)
// 发送交易
SendTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*Reply, error)
// 批量发送交易
SendTransactions(ctx context.Context, in *Transactions, opts ...grpc.CallOption) (*Replies, error)
//通过地址获取交易信息
GetTransactionByAddr(ctx context.Context, in *ReqAddr, opts ...grpc.CallOption) (*ReplyTxInfos, error)
//通过哈希数组获取对应的交易
GetTransactionByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*TransactionDetails, error)
//缓存接口
GetMemPool(ctx context.Context, in *ReqGetMempool, opts ...grpc.CallOption) (*ReplyTxList, error)
//钱包接口
//获取钱包账户信息
GetAccounts(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletAccounts, error)
//根据账户lable信息获取账户地址
GetAccount(ctx context.Context, in *ReqGetAccount, opts ...grpc.CallOption) (*WalletAccount, error)
//创建钱包账户
NewAccount(ctx context.Context, in *ReqNewAccount, opts ...grpc.CallOption) (*WalletAccount, error)
//获取钱包的交易列表
WalletTransactionList(ctx context.Context, in *ReqWalletTransactionList, opts ...grpc.CallOption) (*WalletTxDetails, error)
//导入钱包私钥
ImportPrivkey(ctx context.Context, in *ReqWalletImportPrivkey, opts ...grpc.CallOption) (*WalletAccount, error)
// 发送交易
SendToAddress(ctx context.Context, in *ReqWalletSendToAddress, opts ...grpc.CallOption) (*ReplyHash, error)
//设置交易手续费
SetTxFee(ctx context.Context, in *ReqWalletSetFee, opts ...grpc.CallOption) (*Reply, error)
//设置标签
SetLabl(ctx context.Context, in *ReqWalletSetLabel, opts ...grpc.CallOption) (*WalletAccount, error)
//合并钱包余额
MergeBalance(ctx context.Context, in *ReqWalletMergeBalance, opts ...grpc.CallOption) (*ReplyHashes, error)
//设置钱包密码
SetPasswd(ctx context.Context, in *ReqWalletSetPasswd, opts ...grpc.CallOption) (*Reply, error)
//给钱包上锁
Lock(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
//给钱包解锁
UnLock(ctx context.Context, in *WalletUnLock, opts ...grpc.CallOption) (*Reply, error)
//获取最新的Mempool
GetLastMemPool(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ReplyTxList, error)
//获取最新的ProperFee
GetProperFee(ctx context.Context, in *ReqProperFee, opts ...grpc.CallOption) (*ReplyProperFee, error)
// 获取钱包状态
GetWalletStatus(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletStatus, error)
//区块浏览器接口
///
GetBlockOverview(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*BlockOverview, error)
GetAddrOverview(ctx context.Context, in *ReqAddr, opts ...grpc.CallOption) (*AddrOverview, error)
GetBlockHash(ctx context.Context, in *ReqInt, opts ...grpc.CallOption) (*ReplyHash, error)
// seed
// 创建seed
GenSeed(ctx context.Context, in *GenSeedLang, opts ...grpc.CallOption) (*ReplySeed, error)
//获取seed
GetSeed(ctx context.Context, in *GetSeedByPw, opts ...grpc.CallOption) (*ReplySeed, error)
//保存seed
SaveSeed(ctx context.Context, in *SaveSeedByPw, opts ...grpc.CallOption) (*Reply, error)
// Balance Query
//获取余额
GetBalance(ctx context.Context, in *ReqBalance, opts ...grpc.CallOption) (*Accounts, error)
QueryChain(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
ExecWallet(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
QueryConsensus(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
CreateTransaction(ctx context.Context, in *CreateTxIn, opts ...grpc.CallOption) (*UnsignTx, error)
//获取交易的十六进制编码
GetHexTxByHash(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*HexTx, error)
// 导出私钥
DumpPrivkey(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*ReplyString, error)
// 导出全部私钥到文件
DumpPrivkeysFile(ctx context.Context, in *ReqPrivkeysFile, opts ...grpc.CallOption) (*Reply, error)
// 从文件中批量导入私钥
ImportPrivkeysFile(ctx context.Context, in *ReqPrivkeysFile, opts ...grpc.CallOption) (*Reply, error)
//获取程序版本
Version(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*VersionInfo, error)
//是否同步
IsSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
//获取当前节点连接的其他节点信息
GetPeerInfo(ctx context.Context, in *P2PGetPeerReq, opts ...grpc.CallOption) (*PeerList, error)
//获取当前节点的网络信息
NetInfo(ctx context.Context, in *P2PGetNetInfoReq, opts ...grpc.CallOption) (*NodeNetInfo, error)
// ntpclock是否同步
IsNtpClockSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
//获取系统致命故障信息
GetFatalFailure(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Int32, error)
GetLastBlockSequence(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Int64, error)
// get add block's sequence by hash
GetSequenceByHash(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*Int64, error)
//通过block hash 获取对应的blocks信息
GetBlockByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*BlockDetails, error)
//通过block seq 获取对应的blocks hash 信息
GetBlockBySeq(ctx context.Context, in *Int64, opts ...grpc.CallOption) (*BlockSeq, error)
//关闭chain33
CloseQueue(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
//获取地址所以合约下的余额
GetAllExecBalance(ctx context.Context, in *ReqAllExecBalance, opts ...grpc.CallOption) (*AllExecBalance, error)
//签名交易
SignRawTx(ctx context.Context, in *ReqSignRawTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
CreateNoBalanceTransaction(ctx context.Context, in *NoBalanceTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
// 获取随机HASH
QueryRandNum(ctx context.Context, in *ReqRandHash, opts ...grpc.CallOption) (*ReplyHash, error)
// 获取是否达到fork高度
GetFork(ctx context.Context, in *ReqKey, opts ...grpc.CallOption) (*Int64, error)
CreateNoBalanceTxs(ctx context.Context, in *NoBalanceTxs, opts ...grpc.CallOption) (*ReplySignRawTx, error)
//通过seq以及title获取对应平行连的交易
GetParaTxByTitle(ctx context.Context, in *ReqParaTxByTitle, opts ...grpc.CallOption) (*ParaTxDetails, error)
//获取拥有此title交易的区块高度
LoadParaTxByTitle(ctx context.Context, in *ReqHeightByTitle, opts ...grpc.CallOption) (*ReplyHeightByTitle, error)
//通过区块高度列表+title获取平行链交易
GetParaTxByHeight(ctx context.Context, in *ReqParaTxByHeight, opts ...grpc.CallOption) (*ParaTxDetails, error)
//获取区块头信息
GetHeaders(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*Headers, error)
// get server time
GetServerTime(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ServerTime, error)
// 获取加密算法列表,用于签名等
GetCryptoList(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*CryptoList, error)
// 获取地址格式插件列表
GetAddressDrivers(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*AddressDrivers, error)
// 发送延时交易
SendDelayTransaction(ctx context.Context, in *DelayTx, opts ...grpc.CallOption) (*Reply, error)
// 获取钱包找回地址
GetWalletRecoverAddress(ctx context.Context, in *ReqGetWalletRecoverAddr, opts ...grpc.CallOption) (*ReplyString, error)
// 钱包找回交易签名
SignWalletRecoverTx(ctx context.Context, in *ReqSignWalletRecoverTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
// 获取最终化区块
GetFinalizedBlock(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*SnowChoice, error)
// 获取节点配置信息
GetChainConfig(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ChainConfigInfo, error)
//根据执行期名称创建对应的地址
ConvertExectoAddr(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*ReplyString, error)
// get coin symbol
GetCoinSymbol(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ReplyString, error)
// ReWriteRawTx
ReWriteTx(ctx context.Context, in *ReWriteRawTx, opts ...grpc.CallOption) (*UnsignTx, error)
// GetBlockSequences
GetBlockSequences(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*BlockSequences, error)
//兼容jrpc订阅接口
AddPushSubscribe(ctx context.Context, in *PushSubscribeReq, opts ...grpc.CallOption) (*ReplySubscribePush, error)
ListPushes(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*PushSubscribes, error)
GetPushSeqLastNum(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*Int64, error)
//发送订阅的数据到客户端
SubEvent(ctx context.Context, in *ReqSubscribe, opts ...grpc.CallOption) (Chain33_SubEventClient, error)
//取消订阅
UnSubEvent(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*Reply, error)
}
Chain33Client is the client API for Chain33 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChain33Client ¶
func NewChain33Client(cc grpc.ClientConnInterface) Chain33Client
type Chain33Config ¶
type Chain33Config struct {
// contains filtered or unexported fields
}
Chain33Config ...
func NewChain33ConfigNoInit ¶
func NewChain33ConfigNoInit(cfgstring string) *Chain33Config
NewChain33ConfigNoInit ...
func (*Chain33Config) CalcEthTxKey ¶ added in v1.68.1
func (c *Chain33Config) CalcEthTxKey(hash []byte) []byte
CalcEthTxKey local db中保存的eth 交易哈希key
func (*Chain33Config) CalcTxKey ¶
func (c *Chain33Config) CalcTxKey(hash []byte) []byte
CalcTxKey local db中保存交易的方法
func (*Chain33Config) CalcTxKeyValue ¶
func (c *Chain33Config) CalcTxKeyValue(txr *TxResult) []byte
CalcTxKeyValue 保存local db中保存交易的方法
func (*Chain33Config) DisableCheckFork ¶ added in v1.65.3
func (c *Chain33Config) DisableCheckFork(d bool)
DisableCheckFork ...
func (*Chain33Config) EthAssembleParams ¶ added in v1.73.0
func (c *Chain33Config) EthAssembleParams(now time.Time) stypes.AssembleParams
EthAssembleParams returns the parameters the eth transaction assembler reads from this config. The assembler and the signature verifier both use this mapping, so the rebuilt envelope and the produced envelope cannot drift.
func (*Chain33Config) ExecName ¶
func (c *Chain33Config) ExecName(name string) string
ExecName 执行器name
func (*Chain33Config) G ¶
func (c *Chain33Config) G(key string) (value interface{}, err error)
G 获取ChainConfig中的配置
func (*Chain33Config) GStr ¶
func (c *Chain33Config) GStr(name string) string
GStr 获取ChainConfig中的字符串格式
func (*Chain33Config) GetChainID ¶ added in v1.65.1
func (c *Chain33Config) GetChainID() int32
GetChainID 获取链ID,提供给其他模块使用
func (*Chain33Config) GetCoinExec ¶ added in v1.65.3
func (c *Chain33Config) GetCoinExec() string
GetCoinExec 获取 coin symbol
func (*Chain33Config) GetCoinPrecision ¶ added in v1.65.3
func (c *Chain33Config) GetCoinPrecision() int64
GetCoinPrecision 获取 coin 精度,缺省小数点后8位, 1e8
func (*Chain33Config) GetCoinSymbol ¶
func (c *Chain33Config) GetCoinSymbol() string
GetCoinSymbol 获取 coin symbol
func (*Chain33Config) GetDappFork ¶
func (c *Chain33Config) GetDappFork(dapp, fork string) int64
GetDappFork 获取dapp fork高度
func (*Chain33Config) GetFork ¶
func (c *Chain33Config) GetFork(fork string) int64
GetFork 获取系统fork高度
func (*Chain33Config) GetForks ¶
func (c *Chain33Config) GetForks() (map[string]int64, error)
GetForks ...
func (*Chain33Config) GetFundAddr ¶
func (c *Chain33Config) GetFundAddr() string
GetFundAddr 获取基金账户地址
func (*Chain33Config) GetMaxTxFee ¶
func (c *Chain33Config) GetMaxTxFee(height int64) int64
GetMaxTxFee get max transaction fee by blockheight
func (*Chain33Config) GetMaxTxFeeRate ¶
func (c *Chain33Config) GetMaxTxFeeRate() int64
GetMaxTxFeeRate get max transaction fee rate
func (*Chain33Config) GetMinTxFeeRate ¶
func (c *Chain33Config) GetMinTxFeeRate() int64
GetMinTxFeeRate get min transaction fee rate
func (*Chain33Config) GetMinerExecs ¶
func (c *Chain33Config) GetMinerExecs() []string
GetMinerExecs 获取挖矿的合约名单
func (*Chain33Config) GetModuleConfig ¶
func (c *Chain33Config) GetModuleConfig() *Config
GetModuleConfig ...
func (*Chain33Config) GetP ¶
func (c *Chain33Config) GetP(height int64) *ChainParam
GetP 获取ChainParam
func (*Chain33Config) GetParaExec ¶
func (c *Chain33Config) GetParaExec(execer []byte) []byte
GetParaExec 获取平行链执行
func (*Chain33Config) GetParaName ¶
func (c *Chain33Config) GetParaName() string
GetParaName 获取平行链name
func (*Chain33Config) GetSubConfig ¶
func (c *Chain33Config) GetSubConfig() *ConfigSubModule
GetSubConfig ...
func (*Chain33Config) GetTokenPrecision ¶ added in v1.65.3
func (c *Chain33Config) GetTokenPrecision() int64
GetTokenPrecision 获取 token 精度,缺省小数点后8位, 1e8
func (*Chain33Config) HasConf ¶
func (c *Chain33Config) HasConf(key string) bool
HasConf 解析chainConfig配置
func (*Chain33Config) IsBlockedAccount ¶ added in v1.71.0
func (c *Chain33Config) IsBlockedAccount(addr string, height int64) bool
IsBlockedAccount 判断地址(base58 或 0x 形态)在高度 h 是否命中黑名单。 地址无法解析时视为未命中,返回 false。
func (*Chain33Config) IsBlockedAccountRaw ¶ added in v1.71.0
func (c *Chain33Config) IsBlockedAccountRaw(raw []byte, height int64) bool
IsBlockedAccountRaw 判断 20 字节原始地址在高度 h 是否命中黑名单
func (*Chain33Config) IsDappFork ¶
func (c *Chain33Config) IsDappFork(height int64, dapp, fork string) bool
IsDappFork 是否dapp fork高度
func (*Chain33Config) IsEnable ¶
func (c *Chain33Config) IsEnable(name string) bool
IsEnable 解析ChainConfig配置
func (*Chain33Config) IsEnableFork ¶
func (c *Chain33Config) IsEnableFork(height int64, fork string, enable bool) bool
IsEnableFork 是否使能了fork
func (*Chain33Config) IsFork ¶
func (c *Chain33Config) IsFork(height int64, fork string) bool
IsFork 是否系统 fork高度
func (*Chain33Config) IsMyParaExecName ¶
func (c *Chain33Config) IsMyParaExecName(exec string) bool
IsMyParaExecName 是否是我的para链的执行器
func (*Chain33Config) MG ¶
func (c *Chain33Config) MG(key string, height int64) (value interface{}, err error)
MG 获取mver config中的配置
func (*Chain33Config) MGInt ¶
func (c *Chain33Config) MGInt(name string, height int64) int64
MGInt 解析mver config 配置
func (*Chain33Config) MGStr ¶
func (c *Chain33Config) MGStr(name string, height int64) string
MGStr 获取mver config 中的字符串格式
func (*Chain33Config) MIsEnable ¶
func (c *Chain33Config) MIsEnable(name string, height int64) bool
MIsEnable 解析mver config 配置
func (*Chain33Config) RegisterDappFork ¶
func (c *Chain33Config) RegisterDappFork(dapp, fork string, height int64)
RegisterDappFork 注册dapp fork高度
func (*Chain33Config) S ¶
func (c *Chain33Config) S(key string, value interface{})
S 设置chainConfig配置
func (*Chain33Config) SetBlockedAccountsForTest ¶ added in v1.71.0
func (c *Chain33Config) SetBlockedAccountsForTest(fromHeight int64, addrs []string) func()
SetBlockedAccountsForTest 仅供测试注入黑名单:addrs 自 fromHeight 起生效,返回恢复原快照的函数。 生产代码请勿调用。
func (*Chain33Config) SetDappFork ¶
func (c *Chain33Config) SetDappFork(dapp, fork string, height int64)
SetDappFork 设置dapp fork高度
func (*Chain33Config) SetFork ¶ added in v1.70.0
func (c *Chain33Config) SetFork(fork string, height int64)
SetFork 设置系统fork高度,主要用于测试
func (*Chain33Config) SetTitleOnlyForTest ¶
func (c *Chain33Config) SetTitleOnlyForTest(ti string)
SetTitleOnlyForTest set title only for test use
func (*Chain33Config) SetTxFeeConfig ¶
func (c *Chain33Config) SetTxFeeConfig(minTxFeeRate, maxTxFeeRate, maxTxFee int64)
SetTxFeeConfig 设置交易费相关配置
type Chain33Server ¶
type Chain33Server interface {
// chain33 对外提供服务的接口
//区块链接口
GetBlocks(context.Context, *ReqBlocks) (*Reply, error)
//获取最新的区块头
GetLastHeader(context.Context, *ReqNil) (*Header, error)
//交易接口
CreateRawTransaction(context.Context, *CreateTx) (*UnsignTx, error)
CreateRawTxGroup(context.Context, *CreateTransactionGroup) (*UnsignTx, error)
// 根据哈希查询交易
QueryTransaction(context.Context, *ReqHash) (*TransactionDetail, error)
// 发送交易&&根据哈希查询交易
SendTransactionSync(context.Context, *Transaction) (*Reply, error)
// 发送交易
SendTransaction(context.Context, *Transaction) (*Reply, error)
// 批量发送交易
SendTransactions(context.Context, *Transactions) (*Replies, error)
//通过地址获取交易信息
GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)
//通过哈希数组获取对应的交易
GetTransactionByHashes(context.Context, *ReqHashes) (*TransactionDetails, error)
//缓存接口
GetMemPool(context.Context, *ReqGetMempool) (*ReplyTxList, error)
//钱包接口
//获取钱包账户信息
GetAccounts(context.Context, *ReqNil) (*WalletAccounts, error)
//根据账户lable信息获取账户地址
GetAccount(context.Context, *ReqGetAccount) (*WalletAccount, error)
//创建钱包账户
NewAccount(context.Context, *ReqNewAccount) (*WalletAccount, error)
//获取钱包的交易列表
WalletTransactionList(context.Context, *ReqWalletTransactionList) (*WalletTxDetails, error)
//导入钱包私钥
ImportPrivkey(context.Context, *ReqWalletImportPrivkey) (*WalletAccount, error)
// 发送交易
SendToAddress(context.Context, *ReqWalletSendToAddress) (*ReplyHash, error)
//设置交易手续费
SetTxFee(context.Context, *ReqWalletSetFee) (*Reply, error)
//设置标签
SetLabl(context.Context, *ReqWalletSetLabel) (*WalletAccount, error)
//合并钱包余额
MergeBalance(context.Context, *ReqWalletMergeBalance) (*ReplyHashes, error)
//设置钱包密码
SetPasswd(context.Context, *ReqWalletSetPasswd) (*Reply, error)
//给钱包上锁
Lock(context.Context, *ReqNil) (*Reply, error)
//给钱包解锁
UnLock(context.Context, *WalletUnLock) (*Reply, error)
//获取最新的Mempool
GetLastMemPool(context.Context, *ReqNil) (*ReplyTxList, error)
//获取最新的ProperFee
GetProperFee(context.Context, *ReqProperFee) (*ReplyProperFee, error)
// 获取钱包状态
GetWalletStatus(context.Context, *ReqNil) (*WalletStatus, error)
//区块浏览器接口
///
GetBlockOverview(context.Context, *ReqHash) (*BlockOverview, error)
GetAddrOverview(context.Context, *ReqAddr) (*AddrOverview, error)
GetBlockHash(context.Context, *ReqInt) (*ReplyHash, error)
// seed
// 创建seed
GenSeed(context.Context, *GenSeedLang) (*ReplySeed, error)
//获取seed
GetSeed(context.Context, *GetSeedByPw) (*ReplySeed, error)
//保存seed
SaveSeed(context.Context, *SaveSeedByPw) (*Reply, error)
// Balance Query
//获取余额
GetBalance(context.Context, *ReqBalance) (*Accounts, error)
QueryChain(context.Context, *ChainExecutor) (*Reply, error)
ExecWallet(context.Context, *ChainExecutor) (*Reply, error)
QueryConsensus(context.Context, *ChainExecutor) (*Reply, error)
CreateTransaction(context.Context, *CreateTxIn) (*UnsignTx, error)
//获取交易的十六进制编码
GetHexTxByHash(context.Context, *ReqHash) (*HexTx, error)
// 导出私钥
DumpPrivkey(context.Context, *ReqString) (*ReplyString, error)
// 导出全部私钥到文件
DumpPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
// 从文件中批量导入私钥
ImportPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
//获取程序版本
Version(context.Context, *ReqNil) (*VersionInfo, error)
//是否同步
IsSync(context.Context, *ReqNil) (*Reply, error)
//获取当前节点连接的其他节点信息
GetPeerInfo(context.Context, *P2PGetPeerReq) (*PeerList, error)
//获取当前节点的网络信息
NetInfo(context.Context, *P2PGetNetInfoReq) (*NodeNetInfo, error)
// ntpclock是否同步
IsNtpClockSync(context.Context, *ReqNil) (*Reply, error)
//获取系统致命故障信息
GetFatalFailure(context.Context, *ReqNil) (*Int32, error)
GetLastBlockSequence(context.Context, *ReqNil) (*Int64, error)
// get add block's sequence by hash
GetSequenceByHash(context.Context, *ReqHash) (*Int64, error)
//通过block hash 获取对应的blocks信息
GetBlockByHashes(context.Context, *ReqHashes) (*BlockDetails, error)
//通过block seq 获取对应的blocks hash 信息
GetBlockBySeq(context.Context, *Int64) (*BlockSeq, error)
//关闭chain33
CloseQueue(context.Context, *ReqNil) (*Reply, error)
//获取地址所以合约下的余额
GetAllExecBalance(context.Context, *ReqAllExecBalance) (*AllExecBalance, error)
//签名交易
SignRawTx(context.Context, *ReqSignRawTx) (*ReplySignRawTx, error)
CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, error)
// 获取随机HASH
QueryRandNum(context.Context, *ReqRandHash) (*ReplyHash, error)
// 获取是否达到fork高度
GetFork(context.Context, *ReqKey) (*Int64, error)
CreateNoBalanceTxs(context.Context, *NoBalanceTxs) (*ReplySignRawTx, error)
//通过seq以及title获取对应平行连的交易
GetParaTxByTitle(context.Context, *ReqParaTxByTitle) (*ParaTxDetails, error)
//获取拥有此title交易的区块高度
LoadParaTxByTitle(context.Context, *ReqHeightByTitle) (*ReplyHeightByTitle, error)
//通过区块高度列表+title获取平行链交易
GetParaTxByHeight(context.Context, *ReqParaTxByHeight) (*ParaTxDetails, error)
//获取区块头信息
GetHeaders(context.Context, *ReqBlocks) (*Headers, error)
// get server time
GetServerTime(context.Context, *ReqNil) (*ServerTime, error)
// 获取加密算法列表,用于签名等
GetCryptoList(context.Context, *ReqNil) (*CryptoList, error)
// 获取地址格式插件列表
GetAddressDrivers(context.Context, *ReqNil) (*AddressDrivers, error)
// 发送延时交易
SendDelayTransaction(context.Context, *DelayTx) (*Reply, error)
// 获取钱包找回地址
GetWalletRecoverAddress(context.Context, *ReqGetWalletRecoverAddr) (*ReplyString, error)
// 钱包找回交易签名
SignWalletRecoverTx(context.Context, *ReqSignWalletRecoverTx) (*ReplySignRawTx, error)
// 获取最终化区块
GetFinalizedBlock(context.Context, *ReqNil) (*SnowChoice, error)
// 获取节点配置信息
GetChainConfig(context.Context, *ReqNil) (*ChainConfigInfo, error)
//根据执行期名称创建对应的地址
ConvertExectoAddr(context.Context, *ReqString) (*ReplyString, error)
// get coin symbol
GetCoinSymbol(context.Context, *ReqNil) (*ReplyString, error)
// ReWriteRawTx
ReWriteTx(context.Context, *ReWriteRawTx) (*UnsignTx, error)
// GetBlockSequences
GetBlockSequences(context.Context, *ReqBlocks) (*BlockSequences, error)
//兼容jrpc订阅接口
AddPushSubscribe(context.Context, *PushSubscribeReq) (*ReplySubscribePush, error)
ListPushes(context.Context, *ReqNil) (*PushSubscribes, error)
GetPushSeqLastNum(context.Context, *ReqString) (*Int64, error)
//发送订阅的数据到客户端
SubEvent(*ReqSubscribe, Chain33_SubEventServer) error
//取消订阅
UnSubEvent(context.Context, *ReqString) (*Reply, error)
}
Chain33Server is the server API for Chain33 service.
type Chain33_SubEventClient ¶ added in v1.66.1
type Chain33_SubEventClient interface {
Recv() (*PushData, error)
grpc.ClientStream
}
type Chain33_SubEventServer ¶ added in v1.66.1
type Chain33_SubEventServer interface {
Send(*PushData) error
grpc.ServerStream
}
type ChainConfigInfo ¶ added in v1.65.3
type ChainConfigInfo struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
CoinExec string `protobuf:"bytes,2,opt,name=coinExec,proto3" json:"coinExec,omitempty"`
CoinSymbol string `protobuf:"bytes,3,opt,name=coinSymbol,proto3" json:"coinSymbol,omitempty"`
CoinPrecision int64 `protobuf:"varint,4,opt,name=coinPrecision,proto3" json:"coinPrecision,omitempty"`
TokenPrecision int64 `protobuf:"varint,5,opt,name=tokenPrecision,proto3" json:"tokenPrecision,omitempty"`
ChainID int32 `protobuf:"varint,6,opt,name=chainID,proto3" json:"chainID,omitempty"`
MaxTxFee int64 `protobuf:"varint,7,opt,name=maxTxFee,proto3" json:"maxTxFee,omitempty"`
MinTxFeeRate int64 `protobuf:"varint,8,opt,name=minTxFeeRate,proto3" json:"minTxFeeRate,omitempty"`
MaxTxFeeRate int64 `protobuf:"varint,9,opt,name=maxTxFeeRate,proto3" json:"maxTxFeeRate,omitempty"`
IsPara bool `protobuf:"varint,10,opt,name=isPara,proto3" json:"isPara,omitempty"`
DefaultAddressID int32 `protobuf:"varint,11,opt,name=defaultAddressID,proto3" json:"defaultAddressID,omitempty"`
// contains filtered or unexported fields
}
func (*ChainConfigInfo) Descriptor
deprecated
added in
v1.65.3
func (*ChainConfigInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChainConfigInfo.ProtoReflect.Descriptor instead.
func (*ChainConfigInfo) GetChainID ¶ added in v1.65.3
func (x *ChainConfigInfo) GetChainID() int32
func (*ChainConfigInfo) GetCoinExec ¶ added in v1.65.3
func (x *ChainConfigInfo) GetCoinExec() string
func (*ChainConfigInfo) GetCoinPrecision ¶ added in v1.65.3
func (x *ChainConfigInfo) GetCoinPrecision() int64
func (*ChainConfigInfo) GetCoinSymbol ¶ added in v1.65.3
func (x *ChainConfigInfo) GetCoinSymbol() string
func (*ChainConfigInfo) GetDefaultAddressID ¶ added in v1.67.1
func (x *ChainConfigInfo) GetDefaultAddressID() int32
func (*ChainConfigInfo) GetIsPara ¶ added in v1.65.3
func (x *ChainConfigInfo) GetIsPara() bool
func (*ChainConfigInfo) GetMaxTxFee ¶ added in v1.65.3
func (x *ChainConfigInfo) GetMaxTxFee() int64
func (*ChainConfigInfo) GetMaxTxFeeRate ¶ added in v1.65.3
func (x *ChainConfigInfo) GetMaxTxFeeRate() int64
func (*ChainConfigInfo) GetMinTxFeeRate ¶ added in v1.65.3
func (x *ChainConfigInfo) GetMinTxFeeRate() int64
func (*ChainConfigInfo) GetTitle ¶ added in v1.65.3
func (x *ChainConfigInfo) GetTitle() string
func (*ChainConfigInfo) GetTokenPrecision ¶ added in v1.65.3
func (x *ChainConfigInfo) GetTokenPrecision() int64
func (*ChainConfigInfo) ProtoMessage ¶ added in v1.65.3
func (*ChainConfigInfo) ProtoMessage()
func (*ChainConfigInfo) ProtoReflect ¶ added in v1.65.3
func (x *ChainConfigInfo) ProtoReflect() protoreflect.Message
func (*ChainConfigInfo) Reset ¶ added in v1.65.3
func (x *ChainConfigInfo) Reset()
func (*ChainConfigInfo) String ¶ added in v1.65.3
func (x *ChainConfigInfo) String() string
type ChainExecutor ¶
type ChainExecutor struct {
Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
FuncName string `protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
StateHash []byte `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Param []byte `protobuf:"bytes,4,opt,name=param,proto3" json:"param,omitempty"`
//扩展字段,用于额外的用途
Extra []byte `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"`
// contains filtered or unexported fields
}
func (*ChainExecutor) Descriptor
deprecated
func (*ChainExecutor) Descriptor() ([]byte, []int)
Deprecated: Use ChainExecutor.ProtoReflect.Descriptor instead.
func (*ChainExecutor) GetDriver ¶
func (x *ChainExecutor) GetDriver() string
func (*ChainExecutor) GetExtra ¶
func (x *ChainExecutor) GetExtra() []byte
func (*ChainExecutor) GetFuncName ¶
func (x *ChainExecutor) GetFuncName() string
func (*ChainExecutor) GetParam ¶
func (x *ChainExecutor) GetParam() []byte
func (*ChainExecutor) GetStateHash ¶
func (x *ChainExecutor) GetStateHash() []byte
func (*ChainExecutor) ProtoMessage ¶
func (*ChainExecutor) ProtoMessage()
func (*ChainExecutor) ProtoReflect ¶ added in v1.65.3
func (x *ChainExecutor) ProtoReflect() protoreflect.Message
func (*ChainExecutor) Reset ¶
func (x *ChainExecutor) Reset()
func (*ChainExecutor) String ¶
func (x *ChainExecutor) String() string
type ChainStatus ¶
type ChainStatus struct {
CurrentHeight int64 `protobuf:"varint,1,opt,name=currentHeight,proto3" json:"currentHeight,omitempty"`
MempoolSize int64 `protobuf:"varint,2,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
MsgQueueSize int64 `protobuf:"varint,3,opt,name=msgQueueSize,proto3" json:"msgQueueSize,omitempty"`
// contains filtered or unexported fields
}
区块链状态
currentHeight : 区块最新高度 mempoolSize :内存池大小 msgQueueSize : 消息队列大小
func (*ChainStatus) Descriptor
deprecated
func (*ChainStatus) Descriptor() ([]byte, []int)
Deprecated: Use ChainStatus.ProtoReflect.Descriptor instead.
func (*ChainStatus) GetCurrentHeight ¶
func (x *ChainStatus) GetCurrentHeight() int64
func (*ChainStatus) GetMempoolSize ¶
func (x *ChainStatus) GetMempoolSize() int64
func (*ChainStatus) GetMsgQueueSize ¶
func (x *ChainStatus) GetMsgQueueSize() int64
func (*ChainStatus) ProtoMessage ¶
func (*ChainStatus) ProtoMessage()
func (*ChainStatus) ProtoReflect ¶ added in v1.65.3
func (x *ChainStatus) ProtoReflect() protoreflect.Message
func (*ChainStatus) Reset ¶
func (x *ChainStatus) Reset()
func (*ChainStatus) String ¶
func (x *ChainStatus) String() string
type Checkpoint ¶
type Checkpoint struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// contains filtered or unexported fields
}
func (*Checkpoint) Descriptor
deprecated
func (*Checkpoint) Descriptor() ([]byte, []int)
Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead.
func (*Checkpoint) GetDigest ¶
func (x *Checkpoint) GetDigest() []byte
func (*Checkpoint) GetSequence ¶
func (x *Checkpoint) GetSequence() uint32
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) ProtoReflect ¶ added in v1.65.3
func (x *Checkpoint) ProtoReflect() protoreflect.Message
func (*Checkpoint) Reset ¶
func (x *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (x *Checkpoint) String() string
type ChildChain ¶
type ChildChain struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
StartIndex int32 `protobuf:"varint,2,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
ChildHash []byte `protobuf:"bytes,3,opt,name=childHash,proto3" json:"childHash,omitempty"`
TxCount int32 `protobuf:"varint,4,opt,name=txCount,proto3" json:"txCount,omitempty"`
// contains filtered or unexported fields
}
记录平行链第一笔交易的index,以及平行链的roothash title:子链名字,主链的默认是main startIndex:子链第一笔交易的索引 childHash:子链的根hash txCount:子链交易的数量
func (*ChildChain) Descriptor
deprecated
func (*ChildChain) Descriptor() ([]byte, []int)
Deprecated: Use ChildChain.ProtoReflect.Descriptor instead.
func (*ChildChain) GetChildHash ¶
func (x *ChildChain) GetChildHash() []byte
func (*ChildChain) GetStartIndex ¶
func (x *ChildChain) GetStartIndex() int32
func (*ChildChain) GetTitle ¶
func (x *ChildChain) GetTitle() string
func (*ChildChain) GetTxCount ¶
func (x *ChildChain) GetTxCount() int32
func (*ChildChain) ProtoMessage ¶
func (*ChildChain) ProtoMessage()
func (*ChildChain) ProtoReflect ¶ added in v1.65.3
func (x *ChildChain) ProtoReflect() protoreflect.Message
func (*ChildChain) Reset ¶
func (x *ChildChain) Reset()
func (*ChildChain) String ¶
func (x *ChildChain) String() string
type ChunkInfo ¶ added in v1.65.0
type ChunkInfo struct {
ChunkNum int64 `protobuf:"varint,1,opt,name=chunkNum,proto3" json:"chunkNum,omitempty"`
ChunkHash []byte `protobuf:"bytes,2,opt,name=chunkHash,proto3" json:"chunkHash,omitempty"`
Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
ChunkInfo用于记录chunk的信息
func (*ChunkInfo) Descriptor
deprecated
added in
v1.65.0
func (*ChunkInfo) GetChunkHash ¶ added in v1.65.0
func (*ChunkInfo) GetChunkNum ¶ added in v1.65.0
func (*ChunkInfo) ProtoMessage ¶ added in v1.65.0
func (*ChunkInfo) ProtoMessage()
func (*ChunkInfo) ProtoReflect ¶ added in v1.65.3
func (x *ChunkInfo) ProtoReflect() protoreflect.Message
type ChunkInfoList ¶ added in v1.65.0
type ChunkInfoList struct {
Items []*ChunkInfoMsg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*ChunkInfoList) Descriptor
deprecated
added in
v1.65.0
func (*ChunkInfoList) Descriptor() ([]byte, []int)
Deprecated: Use ChunkInfoList.ProtoReflect.Descriptor instead.
func (*ChunkInfoList) GetItems ¶ added in v1.65.0
func (x *ChunkInfoList) GetItems() []*ChunkInfoMsg
func (*ChunkInfoList) ProtoMessage ¶ added in v1.65.0
func (*ChunkInfoList) ProtoMessage()
func (*ChunkInfoList) ProtoReflect ¶ added in v1.65.3
func (x *ChunkInfoList) ProtoReflect() protoreflect.Message
func (*ChunkInfoList) Reset ¶ added in v1.65.0
func (x *ChunkInfoList) Reset()
func (*ChunkInfoList) String ¶ added in v1.65.0
func (x *ChunkInfoList) String() string
type ChunkInfoMsg ¶ added in v1.65.0
type ChunkInfoMsg struct {
ChunkHash []byte `protobuf:"bytes,1,opt,name=chunkHash,proto3" json:"chunkHash,omitempty"`
Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
ChunkInfoMsg 用于消息传递
func (*ChunkInfoMsg) Descriptor
deprecated
added in
v1.65.0
func (*ChunkInfoMsg) Descriptor() ([]byte, []int)
Deprecated: Use ChunkInfoMsg.ProtoReflect.Descriptor instead.
func (*ChunkInfoMsg) GetChunkHash ¶ added in v1.65.0
func (x *ChunkInfoMsg) GetChunkHash() []byte
func (*ChunkInfoMsg) GetEnd ¶ added in v1.65.0
func (x *ChunkInfoMsg) GetEnd() int64
func (*ChunkInfoMsg) GetStart ¶ added in v1.65.0
func (x *ChunkInfoMsg) GetStart() int64
func (*ChunkInfoMsg) ProtoMessage ¶ added in v1.65.0
func (*ChunkInfoMsg) ProtoMessage()
func (*ChunkInfoMsg) ProtoReflect ¶ added in v1.65.3
func (x *ChunkInfoMsg) ProtoReflect() protoreflect.Message
func (*ChunkInfoMsg) Reset ¶ added in v1.65.0
func (x *ChunkInfoMsg) Reset()
func (*ChunkInfoMsg) String ¶ added in v1.65.0
func (x *ChunkInfoMsg) String() string
type ChunkProvider ¶ added in v1.65.3
type ChunkProvider struct {
ChunkHash []byte `protobuf:"bytes,1,opt,name=chunkHash,proto3" json:"chunkHash,omitempty"`
PeerInfos []*PeerInfo `protobuf:"bytes,2,rep,name=peerInfos,proto3" json:"peerInfos,omitempty"`
// contains filtered or unexported fields
}
func (*ChunkProvider) Descriptor
deprecated
added in
v1.65.3
func (*ChunkProvider) Descriptor() ([]byte, []int)
Deprecated: Use ChunkProvider.ProtoReflect.Descriptor instead.
func (*ChunkProvider) GetChunkHash ¶ added in v1.65.3
func (x *ChunkProvider) GetChunkHash() []byte
func (*ChunkProvider) GetPeerInfos ¶ added in v1.65.3
func (x *ChunkProvider) GetPeerInfos() []*PeerInfo
func (*ChunkProvider) ProtoMessage ¶ added in v1.65.3
func (*ChunkProvider) ProtoMessage()
func (*ChunkProvider) ProtoReflect ¶ added in v1.65.3
func (x *ChunkProvider) ProtoReflect() protoreflect.Message
func (*ChunkProvider) Reset ¶ added in v1.65.3
func (x *ChunkProvider) Reset()
func (*ChunkProvider) String ¶ added in v1.65.3
func (x *ChunkProvider) String() string
type ChunkRecords ¶ added in v1.65.0
type ChunkRecords struct {
Infos []*ChunkInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
// contains filtered or unexported fields
}
ChunkRecords
func (*ChunkRecords) Descriptor
deprecated
added in
v1.65.0
func (*ChunkRecords) Descriptor() ([]byte, []int)
Deprecated: Use ChunkRecords.ProtoReflect.Descriptor instead.
func (*ChunkRecords) GetInfos ¶ added in v1.65.0
func (x *ChunkRecords) GetInfos() []*ChunkInfo
func (*ChunkRecords) ProtoMessage ¶ added in v1.65.0
func (*ChunkRecords) ProtoMessage()
func (*ChunkRecords) ProtoReflect ¶ added in v1.65.3
func (x *ChunkRecords) ProtoReflect() protoreflect.Message
func (*ChunkRecords) Reset ¶ added in v1.65.0
func (x *ChunkRecords) Reset()
func (*ChunkRecords) String ¶ added in v1.65.0
func (x *ChunkRecords) String() string
type ClientReply ¶
type ClientReply struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
Replica uint32 `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
Result *Result `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
func (*ClientReply) Descriptor
deprecated
func (*ClientReply) Descriptor() ([]byte, []int)
Deprecated: Use ClientReply.ProtoReflect.Descriptor instead.
func (*ClientReply) GetClient ¶
func (x *ClientReply) GetClient() string
func (*ClientReply) GetReplica ¶
func (x *ClientReply) GetReplica() uint32
func (*ClientReply) GetResult ¶
func (x *ClientReply) GetResult() *Result
func (*ClientReply) GetTimestamp ¶
func (x *ClientReply) GetTimestamp() string
func (*ClientReply) GetView ¶
func (x *ClientReply) GetView() uint32
func (*ClientReply) ProtoMessage ¶
func (*ClientReply) ProtoMessage()
func (*ClientReply) ProtoReflect ¶ added in v1.65.3
func (x *ClientReply) ProtoReflect() protoreflect.Message
func (*ClientReply) Reset ¶
func (x *ClientReply) Reset()
func (*ClientReply) String ¶
func (x *ClientReply) String() string
type CmpBlock ¶
type CmpBlock struct {
Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
CmpHash []byte `protobuf:"bytes,2,opt,name=cmpHash,proto3" json:"cmpHash,omitempty"`
// contains filtered or unexported fields
}
用于比较最优区块的消息结构
func (*CmpBlock) Descriptor
deprecated
func (*CmpBlock) GetCmpHash ¶
func (*CmpBlock) ProtoMessage ¶
func (*CmpBlock) ProtoMessage()
func (*CmpBlock) ProtoReflect ¶ added in v1.65.3
func (x *CmpBlock) ProtoReflect() protoreflect.Message
type ConfQuery ¶
type ConfQuery struct {
// contains filtered or unexported fields
}
ConfQuery 结构体
type Config ¶
type Config struct {
Title string `json:"title,omitempty"`
Version string `json:"version,omitempty"`
Log *Log `json:"log,omitempty"`
Store *Store `json:"store,omitempty"`
Consensus *Consensus `json:"consensus,omitempty"`
Mempool *Mempool `json:"memPool,omitempty"`
BlockChain *BlockChain `json:"blockChain,omitempty"`
Wallet *Wallet `json:"wallet,omitempty"`
P2P *P2P `json:"p2p,omitempty"`
RPC *RPC `json:"rpc,omitempty"`
Exec *Exec `json:"exec,omitempty"`
TestNet bool `json:"testNet,omitempty"`
FixTime bool `json:"fixTime,omitempty"`
TxHeight bool `json:"txHeight,omitempty"`
Pprof *Pprof `json:"pprof,omitempty"`
Fork *ForkList `json:"fork,omitempty"`
Health *HealthCheck `json:"health,omitempty"`
CoinExec string `json:"coinExec,omitempty"`
CoinSymbol string `json:"coinSymbol,omitempty"`
CoinPrecision int64 `json:"coinPrecision,omitempty"`
TokenPrecision int64 `json:"tokenPrecision,omitempty"`
DisableForkCheck bool `json:"disableForkCheck,omitempty"`
EnableParaFork bool `json:"enableParaFork,omitempty"`
Metrics *Metrics `json:"metrics,omitempty"`
ChainID int32 `json:"chainID,omitempty"`
AddrVer byte `json:"addrVer,omitempty"`
Crypto *crypto.Config `json:"crypto,omitempty"`
NtpHosts []string `json:"ntpHosts,omitempty"`
Address *address.Config `json:"address,omitempty"`
Blacklist *AccountBlacklistConfig `json:"blacklist,omitempty"`
}
Config 配置信息
type ConfigItem ¶
type ConfigItem struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
// Types that are assignable to Value:
// *ConfigItem_Arr
// *ConfigItem_Str
// *ConfigItem_Int
Value isConfigItem_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,11,opt,name=Ty,proto3" json:"Ty,omitempty"`
// contains filtered or unexported fields
}
func (*ConfigItem) Descriptor
deprecated
func (*ConfigItem) Descriptor() ([]byte, []int)
Deprecated: Use ConfigItem.ProtoReflect.Descriptor instead.
func (*ConfigItem) GetAddr ¶
func (x *ConfigItem) GetAddr() string
func (*ConfigItem) GetArr ¶
func (x *ConfigItem) GetArr() *ArrayConfig
func (*ConfigItem) GetInt ¶
func (x *ConfigItem) GetInt() *Int32Config
func (*ConfigItem) GetKey ¶
func (x *ConfigItem) GetKey() string
func (*ConfigItem) GetStr ¶
func (x *ConfigItem) GetStr() *StringConfig
func (*ConfigItem) GetTy ¶
func (x *ConfigItem) GetTy() int32
func (*ConfigItem) GetValue ¶
func (m *ConfigItem) GetValue() isConfigItem_Value
func (*ConfigItem) ProtoMessage ¶
func (*ConfigItem) ProtoMessage()
func (*ConfigItem) ProtoReflect ¶ added in v1.65.3
func (x *ConfigItem) ProtoReflect() protoreflect.Message
func (*ConfigItem) Reset ¶
func (x *ConfigItem) Reset()
func (*ConfigItem) String ¶
func (x *ConfigItem) String() string
type ConfigItem_Arr ¶
type ConfigItem_Arr struct {
Arr *ArrayConfig `protobuf:"bytes,3,opt,name=arr,proto3,oneof"`
}
type ConfigItem_Int ¶
type ConfigItem_Int struct {
Int *Int32Config `protobuf:"bytes,5,opt,name=int,proto3,oneof"`
}
type ConfigItem_Str ¶
type ConfigItem_Str struct {
Str *StringConfig `protobuf:"bytes,4,opt,name=str,proto3,oneof"`
}
type ConfigSubModule ¶
type ConfigSubModule struct {
Store map[string][]byte
Exec map[string][]byte
Consensus map[string][]byte
Wallet map[string][]byte
Mempool map[string][]byte
Metrics map[string][]byte
P2P map[string][]byte
Crypto map[string][]byte
RPC map[string][]byte
Client map[string][]byte
}
ConfigSubModule 子模块的配置
type Consensus ¶
type Consensus struct {
// 共识名称 :solo, ticket, raft, tendermint, para
Name string `json:"name,omitempty"`
// state commiter, rollup
Committer string `json:"committer,omitempty"`
// 创世区块时间(UTC时间)
GenesisBlockTime int64 `json:"genesisBlockTime,omitempty"`
// 是否开启挖矿,开启挖矿才能创建区块
Minerstart bool `json:"minerstart,omitempty"`
// 创世交易地址
Genesis string `json:"genesis,omitempty"`
HotkeyAddr string `json:"hotkeyAddr,omitempty"`
ForceMining bool `json:"forceMining,omitempty"`
// 配置挖矿的合约名单
MinerExecs []string `json:"minerExecs,omitempty"`
// 最优区块选择
EnableBestBlockCmp bool `json:"enableBestBlockCmp,omitempty"`
// 不回滚的共识设为true
NoneRollback bool `json:"noneRollback,omitempty"`
// block finalizer, snowman
Finalizer string `json:"finalizer,omitempty"`
}
Consensus 配置
type CreateTransactionGroup ¶
type CreateTransactionGroup struct {
Txs []string `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
func (*CreateTransactionGroup) Descriptor
deprecated
func (*CreateTransactionGroup) Descriptor() ([]byte, []int)
Deprecated: Use CreateTransactionGroup.ProtoReflect.Descriptor instead.
func (*CreateTransactionGroup) GetTxs ¶
func (x *CreateTransactionGroup) GetTxs() []string
func (*CreateTransactionGroup) ProtoMessage ¶
func (*CreateTransactionGroup) ProtoMessage()
func (*CreateTransactionGroup) ProtoReflect ¶ added in v1.65.3
func (x *CreateTransactionGroup) ProtoReflect() protoreflect.Message
func (*CreateTransactionGroup) Reset ¶
func (x *CreateTransactionGroup) Reset()
func (*CreateTransactionGroup) String ¶
func (x *CreateTransactionGroup) String() string
type CreateTx ¶
type CreateTx struct {
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
Note []byte `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
IsWithdraw bool `protobuf:"varint,5,opt,name=isWithdraw,proto3" json:"isWithdraw,omitempty"`
IsToken bool `protobuf:"varint,6,opt,name=isToken,proto3" json:"isToken,omitempty"`
TokenSymbol string `protobuf:"bytes,7,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
ExecName string `protobuf:"bytes,8,opt,name=execName,proto3" json:"execName,omitempty"`
Execer string `protobuf:"bytes,9,opt,name=execer,proto3" json:"execer,omitempty"`
// contains filtered or unexported fields
}
func (*CreateTx) Descriptor
deprecated
func (*CreateTx) GetExecName ¶
func (*CreateTx) GetIsToken ¶
func (*CreateTx) GetIsWithdraw ¶
func (*CreateTx) GetTokenSymbol ¶
func (*CreateTx) ProtoMessage ¶
func (*CreateTx) ProtoMessage()
func (*CreateTx) ProtoReflect ¶ added in v1.65.3
func (x *CreateTx) ProtoReflect() protoreflect.Message
type CreateTxIn ¶
type CreateTxIn struct {
Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
ActionName string `protobuf:"bytes,2,opt,name=actionName,proto3" json:"actionName,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
func (*CreateTxIn) Descriptor
deprecated
func (*CreateTxIn) Descriptor() ([]byte, []int)
Deprecated: Use CreateTxIn.ProtoReflect.Descriptor instead.
func (*CreateTxIn) GetActionName ¶
func (x *CreateTxIn) GetActionName() string
func (*CreateTxIn) GetExecer ¶
func (x *CreateTxIn) GetExecer() []byte
func (*CreateTxIn) GetPayload ¶
func (x *CreateTxIn) GetPayload() []byte
func (*CreateTxIn) ProtoMessage ¶
func (*CreateTxIn) ProtoMessage()
func (*CreateTxIn) ProtoReflect ¶ added in v1.65.3
func (x *CreateTxIn) ProtoReflect() protoreflect.Message
func (*CreateTxIn) Reset ¶
func (x *CreateTxIn) Reset()
func (*CreateTxIn) String ¶
func (x *CreateTxIn) String() string
type Crypto ¶ added in v1.65.3
type Crypto struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
TypeID int32 `protobuf:"varint,2,opt,name=typeID,proto3" json:"typeID,omitempty"`
// contains filtered or unexported fields
}
数字签名加密算法类型
func (*Crypto) Descriptor
deprecated
added in
v1.65.3
func (*Crypto) ProtoMessage ¶ added in v1.65.3
func (*Crypto) ProtoMessage()
func (*Crypto) ProtoReflect ¶ added in v1.65.3
func (x *Crypto) ProtoReflect() protoreflect.Message
type CryptoList ¶ added in v1.65.3
type CryptoList struct {
Cryptos []*Crypto `protobuf:"bytes,1,rep,name=cryptos,proto3" json:"cryptos,omitempty"`
// contains filtered or unexported fields
}
func (*CryptoList) Descriptor
deprecated
added in
v1.65.3
func (*CryptoList) Descriptor() ([]byte, []int)
Deprecated: Use CryptoList.ProtoReflect.Descriptor instead.
func (*CryptoList) GetCryptos ¶ added in v1.65.3
func (x *CryptoList) GetCryptos() []*Crypto
func (*CryptoList) ProtoMessage ¶ added in v1.65.3
func (*CryptoList) ProtoMessage()
func (*CryptoList) ProtoReflect ¶ added in v1.65.3
func (x *CryptoList) ProtoReflect() protoreflect.Message
func (*CryptoList) Reset ¶ added in v1.65.3
func (x *CryptoList) Reset()
func (*CryptoList) String ¶ added in v1.65.3
func (x *CryptoList) String() string
type DelayTx ¶ added in v1.65.3
type DelayTx struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
EndDelayTime int64 `protobuf:"varint,2,opt,name=endDelayTime,proto3" json:"endDelayTime,omitempty"`
// contains filtered or unexported fields
}
延时交易
func (*DelayTx) Descriptor
deprecated
added in
v1.65.3
func (*DelayTx) GetEndDelayTime ¶ added in v1.65.3
func (*DelayTx) GetTx ¶ added in v1.65.3
func (x *DelayTx) GetTx() *Transaction
func (*DelayTx) ProtoMessage ¶ added in v1.65.3
func (*DelayTx) ProtoMessage()
func (*DelayTx) ProtoReflect ¶ added in v1.65.3
func (x *DelayTx) ProtoReflect() protoreflect.Message
type EVMContractAction4Chain33 ¶ added in v1.65.3
type EVMContractAction4Chain33 struct {
// 转账金额
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
// 消耗限制,默认为Transaction.Fee
GasLimit uint64 `protobuf:"varint,2,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"`
// gas价格,默认为1
GasPrice uint32 `protobuf:"varint,3,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
// 合约数据
Code []byte `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
//交易参数
Para []byte `protobuf:"bytes,5,opt,name=para,proto3" json:"para,omitempty"`
// 合约别名,方便识别
Alias string `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"`
// 交易备注
Note string `protobuf:"bytes,7,opt,name=note,proto3" json:"note,omitempty"`
// 调用合约地址
ContractAddr string `protobuf:"bytes,8,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
// contains filtered or unexported fields
}
创建/调用合约的请求结构
func (*EVMContractAction4Chain33) Descriptor
deprecated
added in
v1.65.3
func (*EVMContractAction4Chain33) Descriptor() ([]byte, []int)
Deprecated: Use EVMContractAction4Chain33.ProtoReflect.Descriptor instead.
func (*EVMContractAction4Chain33) GetAlias ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetAlias() string
func (*EVMContractAction4Chain33) GetAmount ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetAmount() uint64
func (*EVMContractAction4Chain33) GetCode ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetCode() []byte
func (*EVMContractAction4Chain33) GetContractAddr ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetContractAddr() string
func (*EVMContractAction4Chain33) GetGasLimit ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetGasLimit() uint64
func (*EVMContractAction4Chain33) GetGasPrice ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetGasPrice() uint32
func (*EVMContractAction4Chain33) GetNote ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetNote() string
func (*EVMContractAction4Chain33) GetPara ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) GetPara() []byte
func (*EVMContractAction4Chain33) ProtoMessage ¶ added in v1.65.3
func (*EVMContractAction4Chain33) ProtoMessage()
func (*EVMContractAction4Chain33) ProtoReflect ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) ProtoReflect() protoreflect.Message
func (*EVMContractAction4Chain33) Reset ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) Reset()
func (*EVMContractAction4Chain33) String ¶ added in v1.65.3
func (x *EVMContractAction4Chain33) String() string
type EVMLog ¶ added in v1.65.3
type EVMLog struct {
Topic [][]byte `protobuf:"bytes,1,rep,name=topic,proto3" json:"topic,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
Removed bool `protobuf:"varint,4,opt,name=removed,proto3" json:"removed,omitempty"`
// contains filtered or unexported fields
}
一条evm event log数据
func (*EVMLog) Descriptor
deprecated
added in
v1.65.3
func (*EVMLog) GetAddress ¶ added in v1.70.0
func (*EVMLog) GetRemoved ¶ added in v1.70.0
func (*EVMLog) ProtoMessage ¶ added in v1.65.3
func (*EVMLog) ProtoMessage()
func (*EVMLog) ProtoReflect ¶ added in v1.65.3
func (x *EVMLog) ProtoReflect() protoreflect.Message
type EVMLogsPerTx ¶ added in v1.65.3
type EVMLogsPerTx struct {
Logs []*EVMLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
// contains filtered or unexported fields
}
多条evm event log数据
func (*EVMLogsPerTx) Descriptor
deprecated
added in
v1.65.3
func (*EVMLogsPerTx) Descriptor() ([]byte, []int)
Deprecated: Use EVMLogsPerTx.ProtoReflect.Descriptor instead.
func (*EVMLogsPerTx) GetLogs ¶ added in v1.65.3
func (x *EVMLogsPerTx) GetLogs() []*EVMLog
func (*EVMLogsPerTx) ProtoMessage ¶ added in v1.65.3
func (*EVMLogsPerTx) ProtoMessage()
func (*EVMLogsPerTx) ProtoReflect ¶ added in v1.65.3
func (x *EVMLogsPerTx) ProtoReflect() protoreflect.Message
func (*EVMLogsPerTx) Reset ¶ added in v1.65.3
func (x *EVMLogsPerTx) Reset()
func (*EVMLogsPerTx) String ¶ added in v1.65.3
func (x *EVMLogsPerTx) String() string
type EVMTxAndLogs ¶ added in v1.65.3
type EVMTxAndLogs struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
LogsPerTx *EVMLogsPerTx `protobuf:"bytes,2,opt,name=logsPerTx,proto3" json:"logsPerTx,omitempty"`
// contains filtered or unexported fields
}
func (*EVMTxAndLogs) Descriptor
deprecated
added in
v1.65.3
func (*EVMTxAndLogs) Descriptor() ([]byte, []int)
Deprecated: Use EVMTxAndLogs.ProtoReflect.Descriptor instead.
func (*EVMTxAndLogs) GetLogsPerTx ¶ added in v1.65.3
func (x *EVMTxAndLogs) GetLogsPerTx() *EVMLogsPerTx
func (*EVMTxAndLogs) GetTx ¶ added in v1.65.3
func (x *EVMTxAndLogs) GetTx() *Transaction
func (*EVMTxAndLogs) ProtoMessage ¶ added in v1.65.3
func (*EVMTxAndLogs) ProtoMessage()
func (*EVMTxAndLogs) ProtoReflect ¶ added in v1.65.3
func (x *EVMTxAndLogs) ProtoReflect() protoreflect.Message
func (*EVMTxAndLogs) Reset ¶ added in v1.65.3
func (x *EVMTxAndLogs) Reset()
func (*EVMTxAndLogs) String ¶ added in v1.65.3
func (x *EVMTxAndLogs) String() string
type EVMTxLogPerBlk ¶ added in v1.65.3
type EVMTxLogPerBlk struct {
TxAndLogs []*EVMTxAndLogs `protobuf:"bytes,1,rep,name=txAndLogs,proto3" json:"txAndLogs,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
ParentHash []byte `protobuf:"bytes,4,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
PreviousHash []byte `protobuf:"bytes,5,opt,name=previousHash,proto3" json:"previousHash,omitempty"`
AddDelType int32 `protobuf:"varint,6,opt,name=addDelType,proto3" json:"addDelType,omitempty"`
SeqNum int64 `protobuf:"varint,7,opt,name=seqNum,proto3" json:"seqNum,omitempty"`
// contains filtered or unexported fields
}
一个块中包含的多条evm event log数据
func (*EVMTxLogPerBlk) Descriptor
deprecated
added in
v1.65.3
func (*EVMTxLogPerBlk) Descriptor() ([]byte, []int)
Deprecated: Use EVMTxLogPerBlk.ProtoReflect.Descriptor instead.
func (*EVMTxLogPerBlk) GetAddDelType ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetAddDelType() int32
func (*EVMTxLogPerBlk) GetBlockHash ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetBlockHash() []byte
func (*EVMTxLogPerBlk) GetHeight ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetHeight() int64
func (*EVMTxLogPerBlk) GetParentHash ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetParentHash() []byte
func (*EVMTxLogPerBlk) GetPreviousHash ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetPreviousHash() []byte
func (*EVMTxLogPerBlk) GetSeqNum ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetSeqNum() int64
func (*EVMTxLogPerBlk) GetTxAndLogs ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) GetTxAndLogs() []*EVMTxAndLogs
func (*EVMTxLogPerBlk) ProtoMessage ¶ added in v1.65.3
func (*EVMTxLogPerBlk) ProtoMessage()
func (*EVMTxLogPerBlk) ProtoReflect ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) ProtoReflect() protoreflect.Message
func (*EVMTxLogPerBlk) Reset ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) Reset()
func (*EVMTxLogPerBlk) String ¶ added in v1.65.3
func (x *EVMTxLogPerBlk) String() string
type EVMTxLogsInBlks ¶ added in v1.65.3
type EVMTxLogsInBlks struct {
Logs4EVMPerBlk []*EVMTxLogPerBlk `protobuf:"bytes,1,rep,name=logs4EVMPerBlk,proto3" json:"logs4EVMPerBlk,omitempty"`
// contains filtered or unexported fields
}
多个块中包含的多条evm event log数据
func (*EVMTxLogsInBlks) Descriptor
deprecated
added in
v1.65.3
func (*EVMTxLogsInBlks) Descriptor() ([]byte, []int)
Deprecated: Use EVMTxLogsInBlks.ProtoReflect.Descriptor instead.
func (*EVMTxLogsInBlks) GetLogs4EVMPerBlk ¶ added in v1.65.3
func (x *EVMTxLogsInBlks) GetLogs4EVMPerBlk() []*EVMTxLogPerBlk
func (*EVMTxLogsInBlks) ProtoMessage ¶ added in v1.65.3
func (*EVMTxLogsInBlks) ProtoMessage()
func (*EVMTxLogsInBlks) ProtoReflect ¶ added in v1.65.3
func (x *EVMTxLogsInBlks) ProtoReflect() protoreflect.Message
func (*EVMTxLogsInBlks) Reset ¶ added in v1.65.3
func (x *EVMTxLogsInBlks) Reset()
func (*EVMTxLogsInBlks) String ¶ added in v1.65.3
func (x *EVMTxLogsInBlks) String() string
type EndBlock ¶
type EndBlock struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
存储block高度和hash
func (*EndBlock) Descriptor
deprecated
func (*EndBlock) ProtoMessage ¶
func (*EndBlock) ProtoMessage()
func (*EndBlock) ProtoReflect ¶ added in v1.65.3
func (x *EndBlock) ProtoReflect() protoreflect.Message
type Entry ¶
type Entry struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
View uint32 `protobuf:"varint,3,opt,name=view,proto3" json:"view,omitempty"`
// contains filtered or unexported fields
}
func (*Entry) Descriptor
deprecated
func (*Entry) GetSequence ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶ added in v1.65.3
func (x *Entry) ProtoReflect() protoreflect.Message
type EvmAccountNonce ¶ added in v1.67.4
type EvmAccountNonce struct {
//地址列表
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Nonce int64 `protobuf:"varint,2,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
// contains filtered or unexported fields
}
func (*EvmAccountNonce) Descriptor
deprecated
added in
v1.67.4
func (*EvmAccountNonce) Descriptor() ([]byte, []int)
Deprecated: Use EvmAccountNonce.ProtoReflect.Descriptor instead.
func (*EvmAccountNonce) GetAddr ¶ added in v1.67.4
func (x *EvmAccountNonce) GetAddr() string
func (*EvmAccountNonce) GetNonce ¶ added in v1.67.4
func (x *EvmAccountNonce) GetNonce() int64
func (*EvmAccountNonce) ProtoMessage ¶ added in v1.67.4
func (*EvmAccountNonce) ProtoMessage()
func (*EvmAccountNonce) ProtoReflect ¶ added in v1.67.4
func (x *EvmAccountNonce) ProtoReflect() protoreflect.Message
func (*EvmAccountNonce) Reset ¶ added in v1.67.4
func (x *EvmAccountNonce) Reset()
func (*EvmAccountNonce) String ¶ added in v1.67.4
func (x *EvmAccountNonce) String() string
type Exec ¶
type Exec struct {
// 是否开启stat插件
EnableStat bool `json:"enableStat,omitempty"`
// 是否开启MVCC插件
EnableMVCC bool `json:"enableMVCC,omitempty"`
DisableAddrIndex bool `json:"disableAddrIndex,omitempty"`
Alias []string `json:"alias,omitempty"`
// 是否保存token交易信息
SaveTokenTxList bool `json:"saveTokenTxList,omitempty"`
EnableAddrFeeIndex bool `json:"enableAddrFeeIndex,omitempty"`
DisableTxIndex bool `json:"disableTxIndex,omitempty"`
DisableFeeIndex bool `json:"disableFeeIndex,omitempty"`
DisableTxDupCheck bool `json:"disableTxDupCheck,omitempty"`
DisableExecLocal bool `json:"disableExecLocal,omitempty"`
ProxyExecAddress string `json:"proxyExecAddress,omitempty"`
}
Exec 配置
type ExecAccount ¶
type ExecAccount struct {
Execer string `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
// contains filtered or unexported fields
}
func (*ExecAccount) Descriptor
deprecated
func (*ExecAccount) Descriptor() ([]byte, []int)
Deprecated: Use ExecAccount.ProtoReflect.Descriptor instead.
func (*ExecAccount) GetAccount ¶
func (x *ExecAccount) GetAccount() *Account
func (*ExecAccount) GetExecer ¶
func (x *ExecAccount) GetExecer() string
func (*ExecAccount) ProtoMessage ¶
func (*ExecAccount) ProtoMessage()
func (*ExecAccount) ProtoReflect ¶ added in v1.65.3
func (x *ExecAccount) ProtoReflect() protoreflect.Message
func (*ExecAccount) Reset ¶
func (x *ExecAccount) Reset()
func (*ExecAccount) String ¶
func (x *ExecAccount) String() string
type ExecBalanceItem ¶
type ExecBalanceItem struct {
ExecAddr []byte `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
Frozen int64 `protobuf:"varint,2,opt,name=frozen,proto3" json:"frozen,omitempty"`
Active int64 `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
// contains filtered or unexported fields
}
func (*ExecBalanceItem) Descriptor
deprecated
func (*ExecBalanceItem) Descriptor() ([]byte, []int)
Deprecated: Use ExecBalanceItem.ProtoReflect.Descriptor instead.
func (*ExecBalanceItem) GetActive ¶
func (x *ExecBalanceItem) GetActive() int64
func (*ExecBalanceItem) GetExecAddr ¶
func (x *ExecBalanceItem) GetExecAddr() []byte
func (*ExecBalanceItem) GetFrozen ¶
func (x *ExecBalanceItem) GetFrozen() int64
func (*ExecBalanceItem) ProtoMessage ¶
func (*ExecBalanceItem) ProtoMessage()
func (*ExecBalanceItem) ProtoReflect ¶ added in v1.65.3
func (x *ExecBalanceItem) ProtoReflect() protoreflect.Message
func (*ExecBalanceItem) Reset ¶
func (x *ExecBalanceItem) Reset()
func (*ExecBalanceItem) String ¶
func (x *ExecBalanceItem) String() string
type ExecTxList ¶
type ExecTxList struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
ParentHash []byte `protobuf:"bytes,7,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
MainHash []byte `protobuf:"bytes,8,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
MainHeight int64 `protobuf:"varint,9,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
BlockTime int64 `protobuf:"varint,3,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Difficulty uint64 `protobuf:"varint,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
IsMempool bool `protobuf:"varint,6,opt,name=isMempool,proto3" json:"isMempool,omitempty"`
Txs []*Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
func (*ExecTxList) Descriptor
deprecated
func (*ExecTxList) Descriptor() ([]byte, []int)
Deprecated: Use ExecTxList.ProtoReflect.Descriptor instead.
func (*ExecTxList) GetBlockTime ¶
func (x *ExecTxList) GetBlockTime() int64
func (*ExecTxList) GetDifficulty ¶
func (x *ExecTxList) GetDifficulty() uint64
func (*ExecTxList) GetHeight ¶
func (x *ExecTxList) GetHeight() int64
func (*ExecTxList) GetIsMempool ¶
func (x *ExecTxList) GetIsMempool() bool
func (*ExecTxList) GetMainHash ¶
func (x *ExecTxList) GetMainHash() []byte
func (*ExecTxList) GetMainHeight ¶
func (x *ExecTxList) GetMainHeight() int64
func (*ExecTxList) GetParentHash ¶
func (x *ExecTxList) GetParentHash() []byte
func (*ExecTxList) GetStateHash ¶
func (x *ExecTxList) GetStateHash() []byte
func (*ExecTxList) GetTxs ¶
func (x *ExecTxList) GetTxs() []*Transaction
func (*ExecTxList) ProtoMessage ¶
func (*ExecTxList) ProtoMessage()
func (*ExecTxList) ProtoReflect ¶ added in v1.65.3
func (x *ExecTxList) ProtoReflect() protoreflect.Message
func (*ExecTxList) Reset ¶
func (x *ExecTxList) Reset()
func (*ExecTxList) String ¶
func (x *ExecTxList) String() string
type ExecTypeBase ¶
type ExecTypeBase struct {
// contains filtered or unexported fields
}
ExecTypeBase 执行类型
func (*ExecTypeBase) ActionName ¶
func (base *ExecTypeBase) ActionName(tx *Transaction) string
ActionName 获取交易中payload的action name
func (*ExecTypeBase) Amount ¶
func (base *ExecTypeBase) Amount(tx *Transaction) (int64, error)
Amount 获取tx交易中的转账金额
func (*ExecTypeBase) AssertCreate ¶
func (base *ExecTypeBase) AssertCreate(c *CreateTx) (*Transaction, error)
AssertCreate 构造assets资产交易
func (*ExecTypeBase) Create ¶
func (base *ExecTypeBase) Create(action string, msg Message) (*Transaction, error)
Create 构造tx交易
func (*ExecTypeBase) CreateQuery ¶
func (base *ExecTypeBase) CreateQuery(funcname string, message json.RawMessage) (Message, error)
CreateQuery Query接口查询
func (*ExecTypeBase) CreateTransaction ¶
func (base *ExecTypeBase) CreateTransaction(action string, data Message) (tx *Transaction, err error)
CreateTransaction 构造Transaction
func (*ExecTypeBase) CreateTx ¶
func (base *ExecTypeBase) CreateTx(action string, msg json.RawMessage) (*Transaction, error)
CreateTx 通过json rpc 创建交易
func (*ExecTypeBase) DecodePayload ¶
func (base *ExecTypeBase) DecodePayload(tx *Transaction) (Message, error)
DecodePayload 解析tx交易中的payload
func (*ExecTypeBase) DecodePayloadValue ¶
func (base *ExecTypeBase) DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)
DecodePayloadValue 解析tx交易中的payload具体Value值
func (*ExecTypeBase) GetAction ¶
func (base *ExecTypeBase) GetAction(action string) (Message, error)
GetAction 获取action
func (*ExecTypeBase) GetAssets ¶
func (base *ExecTypeBase) GetAssets(tx *Transaction) ([]*Asset, error)
GetAssets 获取资产信息
func (*ExecTypeBase) GetCryptoDriver ¶
func (base *ExecTypeBase) GetCryptoDriver(ty int) (string, error)
GetCryptoDriver 获取Crypto驱动
func (*ExecTypeBase) GetCryptoType ¶
func (base *ExecTypeBase) GetCryptoType(name string) (int, error)
GetCryptoType 获取Crypto类型
func (*ExecTypeBase) GetExecFuncMap ¶
func (base *ExecTypeBase) GetExecFuncMap() map[string]reflect.Method
GetExecFuncMap 获取执行交易的接口列表
func (*ExecTypeBase) GetFuncMap ¶
func (base *ExecTypeBase) GetFuncMap() map[string]reflect.Method
GetFuncMap 获取函数列表
func (*ExecTypeBase) GetRPCFuncMap ¶
func (base *ExecTypeBase) GetRPCFuncMap() map[string]reflect.Method
GetRPCFuncMap 获取rpc的接口列表
func (*ExecTypeBase) GetRealToAddr ¶
func (base *ExecTypeBase) GetRealToAddr(tx *Transaction) string
GetRealToAddr 用户看到的ToAddr
func (*ExecTypeBase) GetViewFromToAddr ¶
func (base *ExecTypeBase) GetViewFromToAddr(tx *Transaction) (string, string)
GetViewFromToAddr 用户看到的FromAddr
func (*ExecTypeBase) InitFuncList ¶
func (base *ExecTypeBase) InitFuncList(list map[string]reflect.Method)
InitFuncList 初始化函数列表
func (*ExecTypeBase) IsFork ¶
func (base *ExecTypeBase) IsFork(height int64, key string) bool
IsFork 是否fork高度
func (*ExecTypeBase) QueryToJSON ¶
func (base *ExecTypeBase) QueryToJSON(funcname string, message Message) ([]byte, error)
QueryToJSON 转换成json格式
func (*ExecTypeBase) SetChild ¶
func (base *ExecTypeBase) SetChild(child ExecutorType)
SetChild 设置子执行器
func (*ExecTypeBase) SetConfig ¶
func (base *ExecTypeBase) SetConfig(cfg *Chain33Config)
SetConfig ...
type ExecutorType ¶
type ExecutorType interface {
//获取交易真正的to addr
GetRealToAddr(tx *Transaction) string
GetCryptoDriver(ty int) (string, error)
GetCryptoType(name string) (int, error)
//给用户显示的from 和 to
GetViewFromToAddr(tx *Transaction) (string, string)
ActionName(tx *Transaction) string
//新版本使用create接口,createTx 重构以后就废弃
GetAction(action string) (Message, error)
InitFuncList(list map[string]reflect.Method)
Create(action string, message Message) (*Transaction, error)
CreateTx(action string, message json.RawMessage) (*Transaction, error)
CreateQuery(funcname string, message json.RawMessage) (Message, error)
AssertCreate(createTx *CreateTx) (*Transaction, error)
QueryToJSON(funcname string, message Message) ([]byte, error)
Amount(tx *Transaction) (int64, error)
DecodePayload(tx *Transaction) (Message, error)
DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)
//write for executor
GetPayload() Message
GetChild() ExecutorType
GetName() string
//exec result of receipt log
GetLogMap() map[int64]*LogInfo
GetForks() *Forks
IsFork(height int64, key string) bool
//actionType -> name map
GetTypeMap() map[string]int32
//action function list map
GetFuncMap() map[string]reflect.Method
GetRPCFuncMap() map[string]reflect.Method
GetExecFuncMap() map[string]reflect.Method
CreateTransaction(action string, data Message) (*Transaction, error)
// collect assets the tx deal with
GetAssets(tx *Transaction) ([]*Asset, error)
// about chain33Config
GetConfig() *Chain33Config
SetConfig(cfg *Chain33Config)
}
ExecutorType 执行器接口
type FetchTopicList ¶ added in v1.65.0
type FetchTopicList struct {
Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
// contains filtered or unexported fields
}
func (*FetchTopicList) Descriptor
deprecated
added in
v1.65.0
func (*FetchTopicList) Descriptor() ([]byte, []int)
Deprecated: Use FetchTopicList.ProtoReflect.Descriptor instead.
func (*FetchTopicList) GetModule ¶ added in v1.65.0
func (x *FetchTopicList) GetModule() string
func (*FetchTopicList) ProtoMessage ¶ added in v1.65.0
func (*FetchTopicList) ProtoMessage()
func (*FetchTopicList) ProtoReflect ¶ added in v1.65.3
func (x *FetchTopicList) ProtoReflect() protoreflect.Message
func (*FetchTopicList) Reset ¶ added in v1.65.0
func (x *FetchTopicList) Reset()
func (*FetchTopicList) String ¶ added in v1.65.0
func (x *FetchTopicList) String() string
type FileHeader ¶
type FileHeader struct {
StartHeight int64 `protobuf:"varint,1,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
Driver string `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
TestNet bool `protobuf:"varint,4,opt,name=testNet,proto3" json:"testNet,omitempty"`
// contains filtered or unexported fields
}
导出block文件头信息
func (*FileHeader) Descriptor
deprecated
func (*FileHeader) Descriptor() ([]byte, []int)
Deprecated: Use FileHeader.ProtoReflect.Descriptor instead.
func (*FileHeader) GetDriver ¶
func (x *FileHeader) GetDriver() string
func (*FileHeader) GetStartHeight ¶
func (x *FileHeader) GetStartHeight() int64
func (*FileHeader) GetTestNet ¶
func (x *FileHeader) GetTestNet() bool
func (*FileHeader) GetTitle ¶
func (x *FileHeader) GetTitle() string
func (*FileHeader) ProtoMessage ¶
func (*FileHeader) ProtoMessage()
func (*FileHeader) ProtoReflect ¶ added in v1.65.3
func (x *FileHeader) ProtoReflect() protoreflect.Message
func (*FileHeader) Reset ¶
func (x *FileHeader) Reset()
func (*FileHeader) String ¶
func (x *FileHeader) String() string
type Forks ¶
type Forks struct {
// contains filtered or unexported fields
}
Forks fork分叉结构体
func (*Forks) GetDappFork ¶
GetDappFork 获取dapp fork信息
func (*Forks) IsDappFork ¶
IsDappFork 是否dapp fork高度
func (*Forks) RegisterSystemFork ¶ added in v1.68.2
func (f *Forks) RegisterSystemFork()
RegisterSystemFork 注册系统分叉, 部分分叉高度设为测试网分叉值
func (*Forks) ReplaceDappFork ¶
ReplaceDappFork 替换dapp的fork信息
func (*Forks) ReplaceFork ¶
ReplaceFork 替换fork信息
func (*Forks) SetDappFork ¶
SetDappFork 设置dapp的fork信息
type GenSeedLang ¶
type GenSeedLang struct {
Lang int32 `protobuf:"varint,1,opt,name=lang,proto3" json:"lang,omitempty"`
// contains filtered or unexported fields
}
func (*GenSeedLang) Descriptor
deprecated
func (*GenSeedLang) Descriptor() ([]byte, []int)
Deprecated: Use GenSeedLang.ProtoReflect.Descriptor instead.
func (*GenSeedLang) GetLang ¶
func (x *GenSeedLang) GetLang() int32
func (*GenSeedLang) ProtoMessage ¶
func (*GenSeedLang) ProtoMessage()
func (*GenSeedLang) ProtoReflect ¶ added in v1.65.3
func (x *GenSeedLang) ProtoReflect() protoreflect.Message
func (*GenSeedLang) Reset ¶
func (x *GenSeedLang) Reset()
func (*GenSeedLang) String ¶
func (x *GenSeedLang) String() string
type Genesis ¶
type Genesis struct {
Isrun bool `protobuf:"varint,1,opt,name=isrun,proto3" json:"isrun,omitempty"`
// contains filtered or unexported fields
}
func (*Genesis) Descriptor
deprecated
func (*Genesis) ProtoMessage ¶
func (*Genesis) ProtoMessage()
func (*Genesis) ProtoReflect ¶ added in v1.65.3
func (x *Genesis) ProtoReflect() protoreflect.Message
type GetSeedByPw ¶
type GetSeedByPw struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
// contains filtered or unexported fields
}
func (*GetSeedByPw) Descriptor
deprecated
func (*GetSeedByPw) Descriptor() ([]byte, []int)
Deprecated: Use GetSeedByPw.ProtoReflect.Descriptor instead.
func (*GetSeedByPw) GetPasswd ¶
func (x *GetSeedByPw) GetPasswd() string
func (*GetSeedByPw) ProtoMessage ¶
func (*GetSeedByPw) ProtoMessage()
func (*GetSeedByPw) ProtoReflect ¶ added in v1.65.3
func (x *GetSeedByPw) ProtoReflect() protoreflect.Message
func (*GetSeedByPw) Reset ¶
func (x *GetSeedByPw) Reset()
func (*GetSeedByPw) String ¶
func (x *GetSeedByPw) String() string
type HashList ¶ added in v1.65.1
type HashList struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
// contains filtered or unexported fields
}
func (*HashList) Descriptor
deprecated
added in
v1.65.1
func (*HashList) ProtoMessage ¶ added in v1.65.1
func (*HashList) ProtoMessage()
func (*HashList) ProtoReflect ¶ added in v1.65.3
func (x *HashList) ProtoReflect() protoreflect.Message
type Header ¶
type Header struct {
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
ParentHash []byte `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
TxHash []byte `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
StateHash []byte `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
BlockTime int64 `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
TxCount int64 `protobuf:"varint,9,opt,name=txCount,proto3" json:"txCount,omitempty"`
Hash []byte `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
Difficulty uint32 `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
Signature *Signature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
区块头信息
version : 版本信息 parentHash :父哈希 txHash : 交易根哈希 stateHash :状态哈希 height : 区块高度 blockTime :区块产生时的时标 txCount : 区块上所有交易个数 difficulty :区块难度系数, signature :交易签名
func (*Header) Descriptor
deprecated
func (*Header) GetBlockTime ¶
func (*Header) GetDifficulty ¶
func (*Header) GetParentHash ¶
func (*Header) GetSignature ¶
func (*Header) GetStateHash ¶
func (*Header) GetTxCount ¶
func (*Header) GetVersion ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶ added in v1.65.3
func (x *Header) ProtoReflect() protoreflect.Message
type HeaderSeq ¶
type HeaderSeq struct {
Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
Seq *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
// contains filtered or unexported fields
}
通过seq获取区块的header信息
func (*HeaderSeq) Descriptor
deprecated
func (*HeaderSeq) GetSeq ¶
func (x *HeaderSeq) GetSeq() *BlockSequence
func (*HeaderSeq) ProtoMessage ¶
func (*HeaderSeq) ProtoMessage()
func (*HeaderSeq) ProtoReflect ¶ added in v1.65.3
func (x *HeaderSeq) ProtoReflect() protoreflect.Message
type HeaderSeqs ¶
type HeaderSeqs struct {
Seqs []*HeaderSeq `protobuf:"bytes,1,rep,name=seqs,proto3" json:"seqs,omitempty"`
// contains filtered or unexported fields
}
批量推送区块的header信息
func (*HeaderSeqs) Descriptor
deprecated
func (*HeaderSeqs) Descriptor() ([]byte, []int)
Deprecated: Use HeaderSeqs.ProtoReflect.Descriptor instead.
func (*HeaderSeqs) GetSeqs ¶
func (x *HeaderSeqs) GetSeqs() []*HeaderSeq
func (*HeaderSeqs) ProtoMessage ¶
func (*HeaderSeqs) ProtoMessage()
func (*HeaderSeqs) ProtoReflect ¶ added in v1.65.3
func (x *HeaderSeqs) ProtoReflect() protoreflect.Message
func (*HeaderSeqs) Reset ¶
func (x *HeaderSeqs) Reset()
func (*HeaderSeqs) String ¶
func (x *HeaderSeqs) String() string
type Headers ¶
type Headers struct {
Items []*Header `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
resp
func (*Headers) Descriptor
deprecated
func (*Headers) ProtoMessage ¶
func (*Headers) ProtoMessage()
func (*Headers) ProtoReflect ¶ added in v1.65.3
func (x *Headers) ProtoReflect() protoreflect.Message
type HeadersPid ¶
type HeadersPid struct {
Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
Headers *Headers `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"`
// contains filtered or unexported fields
}
func (*HeadersPid) Descriptor
deprecated
func (*HeadersPid) Descriptor() ([]byte, []int)
Deprecated: Use HeadersPid.ProtoReflect.Descriptor instead.
func (*HeadersPid) GetHeaders ¶
func (x *HeadersPid) GetHeaders() *Headers
func (*HeadersPid) GetPid ¶
func (x *HeadersPid) GetPid() string
func (*HeadersPid) ProtoMessage ¶
func (*HeadersPid) ProtoMessage()
func (*HeadersPid) ProtoReflect ¶ added in v1.65.3
func (x *HeadersPid) ProtoReflect() protoreflect.Message
func (*HeadersPid) Reset ¶
func (x *HeadersPid) Reset()
func (*HeadersPid) String ¶
func (x *HeadersPid) String() string
type HealthCheck ¶
type HealthCheck struct {
ListenAddr string `json:"listenAddr,omitempty"`
CheckInterval uint32 `json:"checkInterval,omitempty"`
UnSyncMaxTimes uint32 `json:"unSyncMaxTimes,omitempty"`
}
HealthCheck 配置
type HeightPara ¶
type HeightPara struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
ChildHash []byte `protobuf:"bytes,4,opt,name=childHash,proto3" json:"childHash,omitempty"`
StartIndex int32 `protobuf:"varint,5,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
ChildHashIndex uint32 `protobuf:"varint,6,opt,name=childHashIndex,proto3" json:"childHashIndex,omitempty"`
TxCount int32 `protobuf:"varint,7,opt,name=txCount,proto3" json:"txCount,omitempty"`
// contains filtered or unexported fields
}
记录本平行链所在区块的信息以及子根hash值 childHash:平行链子roothash值 startIndex:此平行链的第一笔交易的index索引值 childHashIndex:此平行链子roothash在本区块中的索引值 txCount:此平行链交易的个数
func (*HeightPara) Descriptor
deprecated
func (*HeightPara) Descriptor() ([]byte, []int)
Deprecated: Use HeightPara.ProtoReflect.Descriptor instead.
func (*HeightPara) GetChildHash ¶
func (x *HeightPara) GetChildHash() []byte
func (*HeightPara) GetChildHashIndex ¶
func (x *HeightPara) GetChildHashIndex() uint32
func (*HeightPara) GetHash ¶
func (x *HeightPara) GetHash() []byte
func (*HeightPara) GetHeight ¶
func (x *HeightPara) GetHeight() int64
func (*HeightPara) GetStartIndex ¶
func (x *HeightPara) GetStartIndex() int32
func (*HeightPara) GetTitle ¶
func (x *HeightPara) GetTitle() string
func (*HeightPara) GetTxCount ¶
func (x *HeightPara) GetTxCount() int32
func (*HeightPara) ProtoMessage ¶
func (*HeightPara) ProtoMessage()
func (*HeightPara) ProtoReflect ¶ added in v1.65.3
func (x *HeightPara) ProtoReflect() protoreflect.Message
func (*HeightPara) Reset ¶
func (x *HeightPara) Reset()
func (*HeightPara) String ¶
func (x *HeightPara) String() string
type HeightParas ¶
type HeightParas struct {
Items []*HeightPara `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*HeightParas) Descriptor
deprecated
func (*HeightParas) Descriptor() ([]byte, []int)
Deprecated: Use HeightParas.ProtoReflect.Descriptor instead.
func (*HeightParas) GetItems ¶
func (x *HeightParas) GetItems() []*HeightPara
func (*HeightParas) ProtoMessage ¶
func (*HeightParas) ProtoMessage()
func (*HeightParas) ProtoReflect ¶ added in v1.65.3
func (x *HeightParas) ProtoReflect() protoreflect.Message
func (*HeightParas) Reset ¶
func (x *HeightParas) Reset()
func (*HeightParas) String ¶
func (x *HeightParas) String() string
type HexTx ¶
type HexTx struct {
Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
// contains filtered or unexported fields
}
func (*HexTx) Descriptor
deprecated
func (*HexTx) ProtoMessage ¶
func (*HexTx) ProtoMessage()
func (*HexTx) ProtoReflect ¶ added in v1.65.3
func (x *HexTx) ProtoReflect() protoreflect.Message
type HistoryCertStore ¶
type HistoryCertStore struct {
Rootcerts [][]byte `protobuf:"bytes,1,rep,name=rootcerts,proto3" json:"rootcerts,omitempty"`
IntermediateCerts [][]byte `protobuf:"bytes,2,rep,name=intermediateCerts,proto3" json:"intermediateCerts,omitempty"`
RevocationList [][]byte `protobuf:"bytes,3,rep,name=revocationList,proto3" json:"revocationList,omitempty"`
CurHeigth int64 `protobuf:"varint,4,opt,name=curHeigth,proto3" json:"curHeigth,omitempty"`
NxtHeight int64 `protobuf:"varint,5,opt,name=nxtHeight,proto3" json:"nxtHeight,omitempty"`
// contains filtered or unexported fields
}
func (*HistoryCertStore) Descriptor
deprecated
func (*HistoryCertStore) Descriptor() ([]byte, []int)
Deprecated: Use HistoryCertStore.ProtoReflect.Descriptor instead.
func (*HistoryCertStore) GetCurHeigth ¶
func (x *HistoryCertStore) GetCurHeigth() int64
func (*HistoryCertStore) GetIntermediateCerts ¶
func (x *HistoryCertStore) GetIntermediateCerts() [][]byte
func (*HistoryCertStore) GetNxtHeight ¶
func (x *HistoryCertStore) GetNxtHeight() int64
func (*HistoryCertStore) GetRevocationList ¶
func (x *HistoryCertStore) GetRevocationList() [][]byte
func (*HistoryCertStore) GetRootcerts ¶
func (x *HistoryCertStore) GetRootcerts() [][]byte
func (*HistoryCertStore) ProtoMessage ¶
func (*HistoryCertStore) ProtoMessage()
func (*HistoryCertStore) ProtoReflect ¶ added in v1.65.3
func (x *HistoryCertStore) ProtoReflect() protoreflect.Message
func (*HistoryCertStore) Reset ¶
func (x *HistoryCertStore) Reset()
func (*HistoryCertStore) String ¶
func (x *HistoryCertStore) String() string
type InnerNode ¶
type InnerNode struct {
LeftHash []byte `protobuf:"bytes,1,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
RightHash []byte `protobuf:"bytes,2,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*InnerNode) Descriptor
deprecated
func (*InnerNode) GetLeftHash ¶
func (*InnerNode) GetRightHash ¶
func (*InnerNode) ProtoMessage ¶
func (*InnerNode) ProtoMessage()
func (*InnerNode) ProtoReflect ¶ added in v1.65.3
func (x *InnerNode) ProtoReflect() protoreflect.Message
type Int32 ¶
type Int32 struct {
Data int32 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Int32) Descriptor
deprecated
func (*Int32) ProtoMessage ¶
func (*Int32) ProtoMessage()
func (*Int32) ProtoReflect ¶ added in v1.65.3
func (x *Int32) ProtoReflect() protoreflect.Message
type Int32Config ¶
type Int32Config struct {
Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Int32Config) Descriptor
deprecated
func (*Int32Config) Descriptor() ([]byte, []int)
Deprecated: Use Int32Config.ProtoReflect.Descriptor instead.
func (*Int32Config) GetValue ¶
func (x *Int32Config) GetValue() int32
func (*Int32Config) ProtoMessage ¶
func (*Int32Config) ProtoMessage()
func (*Int32Config) ProtoReflect ¶ added in v1.65.3
func (x *Int32Config) ProtoReflect() protoreflect.Message
func (*Int32Config) Reset ¶
func (x *Int32Config) Reset()
func (*Int32Config) String ¶
func (x *Int32Config) String() string
type Int64 ¶
type Int64 struct {
Data int64 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Int64) Descriptor
deprecated
func (*Int64) ProtoMessage ¶
func (*Int64) ProtoMessage()
func (*Int64) ProtoReflect ¶ added in v1.65.3
func (x *Int64) ProtoReflect() protoreflect.Message
type InvData ¶
type InvData struct {
// Types that are assignable to Value:
// *InvData_Tx
// *InvData_Block
Value isInvData_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
// contains filtered or unexported fields
}
* inv 请求协议
func (*InvData) Descriptor
deprecated
func (*InvData) GetTx ¶
func (x *InvData) GetTx() *Transaction
func (*InvData) ProtoMessage ¶
func (*InvData) ProtoMessage()
func (*InvData) ProtoReflect ¶ added in v1.65.3
func (x *InvData) ProtoReflect() protoreflect.Message
type InvData_Block ¶
type InvData_Block struct {
Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}
type InvData_Tx ¶
type InvData_Tx struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}
type InvDatas ¶
type InvDatas struct {
Items []*InvData `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
* inv 返回数据
func (*InvDatas) Descriptor
deprecated
func (*InvDatas) ProtoMessage ¶
func (*InvDatas) ProtoMessage()
func (*InvDatas) ProtoReflect ¶ added in v1.65.3
func (x *InvDatas) ProtoReflect() protoreflect.Message
type Inventory ¶
type Inventory struct {
//类型,数据类型,MSG_TX MSG_BLOCK
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
///哈希
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
//高度
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
ty=MSG_TX MSG_BLOCK
func (*Inventory) Descriptor
deprecated
func (*Inventory) ProtoMessage ¶
func (*Inventory) ProtoMessage()
func (*Inventory) ProtoReflect ¶ added in v1.65.3
func (x *Inventory) ProtoReflect() protoreflect.Message
type IsCaughtUp ¶
type IsCaughtUp struct {
Iscaughtup bool `protobuf:"varint,1,opt,name=Iscaughtup,proto3" json:"Iscaughtup,omitempty"`
// contains filtered or unexported fields
}
区块追赶主链状态,用于判断本节点区块是否已经同步好
func (*IsCaughtUp) Descriptor
deprecated
func (*IsCaughtUp) Descriptor() ([]byte, []int)
Deprecated: Use IsCaughtUp.ProtoReflect.Descriptor instead.
func (*IsCaughtUp) GetIscaughtup ¶
func (x *IsCaughtUp) GetIscaughtup() bool
func (*IsCaughtUp) ProtoMessage ¶
func (*IsCaughtUp) ProtoMessage()
func (*IsCaughtUp) ProtoReflect ¶ added in v1.65.3
func (x *IsCaughtUp) ProtoReflect() protoreflect.Message
func (*IsCaughtUp) Reset ¶
func (x *IsCaughtUp) Reset()
func (*IsCaughtUp) String ¶
func (x *IsCaughtUp) String() string
type IsNtpClockSync ¶
type IsNtpClockSync struct {
Isntpclocksync bool `protobuf:"varint,1,opt,name=isntpclocksync,proto3" json:"isntpclocksync,omitempty"`
// contains filtered or unexported fields
}
ntp时钟状态
func (*IsNtpClockSync) Descriptor
deprecated
func (*IsNtpClockSync) Descriptor() ([]byte, []int)
Deprecated: Use IsNtpClockSync.ProtoReflect.Descriptor instead.
func (*IsNtpClockSync) GetIsntpclocksync ¶
func (x *IsNtpClockSync) GetIsntpclocksync() bool
func (*IsNtpClockSync) ProtoMessage ¶
func (*IsNtpClockSync) ProtoMessage()
func (*IsNtpClockSync) ProtoReflect ¶ added in v1.65.3
func (x *IsNtpClockSync) ProtoReflect() protoreflect.Message
func (*IsNtpClockSync) Reset ¶
func (x *IsNtpClockSync) Reset()
func (*IsNtpClockSync) String ¶
func (x *IsNtpClockSync) String() string
type IterateRangeByStateHash ¶
type IterateRangeByStateHash struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Start []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
End []byte `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
迭代查询symbol代币总额
func (*IterateRangeByStateHash) Descriptor
deprecated
func (*IterateRangeByStateHash) Descriptor() ([]byte, []int)
Deprecated: Use IterateRangeByStateHash.ProtoReflect.Descriptor instead.
func (*IterateRangeByStateHash) GetCount ¶
func (x *IterateRangeByStateHash) GetCount() int64
func (*IterateRangeByStateHash) GetEnd ¶
func (x *IterateRangeByStateHash) GetEnd() []byte
func (*IterateRangeByStateHash) GetStart ¶
func (x *IterateRangeByStateHash) GetStart() []byte
func (*IterateRangeByStateHash) GetStateHash ¶
func (x *IterateRangeByStateHash) GetStateHash() []byte
func (*IterateRangeByStateHash) ProtoMessage ¶
func (*IterateRangeByStateHash) ProtoMessage()
func (*IterateRangeByStateHash) ProtoReflect ¶ added in v1.65.3
func (x *IterateRangeByStateHash) ProtoReflect() protoreflect.Message
func (*IterateRangeByStateHash) Reset ¶
func (x *IterateRangeByStateHash) Reset()
func (*IterateRangeByStateHash) String ¶
func (x *IterateRangeByStateHash) String() string
type KeyValue ¶
type KeyValue struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*KeyValue) Descriptor
deprecated
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶ added in v1.65.3
func (x *KeyValue) ProtoReflect() protoreflect.Message
type LeafNode ¶
type LeafNode struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
merkle avl tree
func (*LeafNode) Descriptor
deprecated
func (*LeafNode) ProtoMessage ¶
func (*LeafNode) ProtoMessage()
func (*LeafNode) ProtoReflect ¶ added in v1.65.3
func (x *LeafNode) ProtoReflect() protoreflect.Message
type LightBlock ¶
type LightBlock struct {
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
Header *Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
MinerTx *Transaction `protobuf:"bytes,3,opt,name=minerTx,proto3" json:"minerTx,omitempty"`
STxHashes []string `protobuf:"bytes,4,rep,name=sTxHashes,proto3" json:"sTxHashes,omitempty"`
// contains filtered or unexported fields
}
* p2p 轻量级区块, 广播交易短哈希列表
func (*LightBlock) Descriptor
deprecated
func (*LightBlock) Descriptor() ([]byte, []int)
Deprecated: Use LightBlock.ProtoReflect.Descriptor instead.
func (*LightBlock) GetHeader ¶
func (x *LightBlock) GetHeader() *Header
func (*LightBlock) GetMinerTx ¶
func (x *LightBlock) GetMinerTx() *Transaction
func (*LightBlock) GetSTxHashes ¶
func (x *LightBlock) GetSTxHashes() []string
func (*LightBlock) GetSize ¶
func (x *LightBlock) GetSize() int64
func (*LightBlock) ProtoMessage ¶
func (*LightBlock) ProtoMessage()
func (*LightBlock) ProtoReflect ¶ added in v1.65.3
func (x *LightBlock) ProtoReflect() protoreflect.Message
func (*LightBlock) Reset ¶
func (x *LightBlock) Reset()
func (*LightBlock) String ¶
func (x *LightBlock) String() string
type LightTx ¶
type LightTx struct {
TxHash []byte `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
Route *P2PRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
// contains filtered or unexported fields
}
轻量级交易广播
func (*LightTx) Descriptor
deprecated
func (*LightTx) ProtoMessage ¶
func (*LightTx) ProtoMessage()
func (*LightTx) ProtoReflect ¶ added in v1.65.3
func (x *LightTx) ProtoReflect() protoreflect.Message
type LocalDBGet ¶
type LocalDBGet struct {
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
Txid int64 `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
// contains filtered or unexported fields
}
func (*LocalDBGet) Descriptor
deprecated
func (*LocalDBGet) Descriptor() ([]byte, []int)
Deprecated: Use LocalDBGet.ProtoReflect.Descriptor instead.
func (*LocalDBGet) GetKeys ¶
func (x *LocalDBGet) GetKeys() [][]byte
func (*LocalDBGet) GetTxid ¶
func (x *LocalDBGet) GetTxid() int64
func (*LocalDBGet) ProtoMessage ¶
func (*LocalDBGet) ProtoMessage()
func (*LocalDBGet) ProtoReflect ¶ added in v1.65.3
func (x *LocalDBGet) ProtoReflect() protoreflect.Message
func (*LocalDBGet) Reset ¶
func (x *LocalDBGet) Reset()
func (*LocalDBGet) String ¶
func (x *LocalDBGet) String() string
type LocalDBList ¶
type LocalDBList struct {
Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
Txid int64 `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
// contains filtered or unexported fields
}
func (*LocalDBList) Descriptor
deprecated
func (*LocalDBList) Descriptor() ([]byte, []int)
Deprecated: Use LocalDBList.ProtoReflect.Descriptor instead.
func (*LocalDBList) GetCount ¶
func (x *LocalDBList) GetCount() int32
func (*LocalDBList) GetDirection ¶
func (x *LocalDBList) GetDirection() int32
func (*LocalDBList) GetKey ¶
func (x *LocalDBList) GetKey() []byte
func (*LocalDBList) GetPrefix ¶
func (x *LocalDBList) GetPrefix() []byte
func (*LocalDBList) GetTxid ¶
func (x *LocalDBList) GetTxid() int64
func (*LocalDBList) ProtoMessage ¶
func (*LocalDBList) ProtoMessage()
func (*LocalDBList) ProtoReflect ¶ added in v1.65.3
func (x *LocalDBList) ProtoReflect() protoreflect.Message
func (*LocalDBList) Reset ¶
func (x *LocalDBList) Reset()
func (*LocalDBList) String ¶
func (x *LocalDBList) String() string
type LocalDBSet ¶
type LocalDBSet struct {
KV []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
Txid int64 `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
// contains filtered or unexported fields
}
func (*LocalDBSet) Descriptor
deprecated
func (*LocalDBSet) Descriptor() ([]byte, []int)
Deprecated: Use LocalDBSet.ProtoReflect.Descriptor instead.
func (*LocalDBSet) GetKV ¶
func (x *LocalDBSet) GetKV() []*KeyValue
func (*LocalDBSet) GetTxid ¶
func (x *LocalDBSet) GetTxid() int64
func (*LocalDBSet) ProtoMessage ¶
func (*LocalDBSet) ProtoMessage()
func (*LocalDBSet) ProtoReflect ¶ added in v1.65.3
func (x *LocalDBSet) ProtoReflect() protoreflect.Message
func (*LocalDBSet) Reset ¶
func (x *LocalDBSet) Reset()
func (*LocalDBSet) String ¶
func (x *LocalDBSet) String() string
type LocalReplyValue ¶
type LocalReplyValue struct {
Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*LocalReplyValue) Descriptor
deprecated
func (*LocalReplyValue) Descriptor() ([]byte, []int)
Deprecated: Use LocalReplyValue.ProtoReflect.Descriptor instead.
func (*LocalReplyValue) GetValues ¶
func (x *LocalReplyValue) GetValues() [][]byte
func (*LocalReplyValue) ProtoMessage ¶
func (*LocalReplyValue) ProtoMessage()
func (*LocalReplyValue) ProtoReflect ¶ added in v1.65.3
func (x *LocalReplyValue) ProtoReflect() protoreflect.Message
func (*LocalReplyValue) Reset ¶
func (x *LocalReplyValue) Reset()
func (*LocalReplyValue) String ¶
func (x *LocalReplyValue) String() string
type Log ¶
type Log struct {
// 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
Loglevel string `json:"loglevel,omitempty"`
LogConsoleLevel string `json:"logConsoleLevel,omitempty"`
// 日志文件名,可带目录,所有生成的日志文件都放到此目录下
LogFile string `json:"logFile,omitempty"`
// 单个日志文件的最大值(单位:兆)
MaxFileSize uint32 `json:"maxFileSize,omitempty"`
// 最多保存的历史日志文件个数
MaxBackups uint32 `json:"maxBackups,omitempty"`
// 最多保存的历史日志消息(单位:天)
MaxAge uint32 `json:"maxAge,omitempty"`
// 日志文件名是否使用本地事件(否则使用UTC时间)
LocalTime bool `json:"localTime,omitempty"`
// 历史日志文件是否压缩(压缩格式为gz)
Compress bool `json:"compress,omitempty"`
// 是否打印调用源文件和行号
CallerFile bool `json:"callerFile,omitempty"`
// 是否打印调用方法
CallerFunction bool `json:"callerFunction,omitempty"`
}
Log 日志配置
type LogType ¶
type LogType interface {
Name() string
Decode([]byte) (interface{}, error)
JSON([]byte) ([]byte, error)
}
LogType 结构体类型
type MAVLProof ¶
type MAVLProof struct {
LeafHash []byte `protobuf:"bytes,1,opt,name=leafHash,proto3" json:"leafHash,omitempty"`
InnerNodes []*InnerNode `protobuf:"bytes,2,rep,name=innerNodes,proto3" json:"innerNodes,omitempty"`
RootHash []byte `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
// contains filtered or unexported fields
}
func (*MAVLProof) Descriptor
deprecated
func (*MAVLProof) GetInnerNodes ¶
func (*MAVLProof) GetLeafHash ¶
func (*MAVLProof) GetRootHash ¶
func (*MAVLProof) ProtoMessage ¶
func (*MAVLProof) ProtoMessage()
func (*MAVLProof) ProtoReflect ¶ added in v1.65.3
func (x *MAVLProof) ProtoReflect() protoreflect.Message
type Mempool ¶
type Mempool struct {
// mempool队列名称,可配,timeline,score,price
Name string `json:"name,omitempty"`
// mempool缓存容量大小,默认10240
PoolCacheSize int64 `json:"poolCacheSize,omitempty"`
ForceAccept bool `json:"forceAccept,omitempty"`
// 每个账户在mempool中得最大交易数量,默认100
MaxTxNumPerAccount int64 `json:"maxTxNumPerAccount,omitempty"`
MaxTxLast int64 `json:"maxTxLast,omitempty"`
IsLevelFee bool `json:"isLevelFee,omitempty"`
// 最小单元交易费,这个没有默认值,必填,一般是100000
MinTxFeeRate int64 `json:"minTxFeeRate,omitempty"`
// 最大单元交易费, 默认1e7
MaxTxFeeRate int64 `json:"maxTxFeeRate,omitempty"`
// 单笔最大交易费, 默认1e9
MaxTxFee int64 `json:"maxTxFee,omitempty"`
// 目前execCheck效率较低,支持关闭交易execCheck,提升性能
DisableExecCheck bool `json:"disableExecCheck,omitempty"`
// Deprecated:default enable check
EnableEthCheck bool `json:"enableEthCheck,omitempty"`
}
Mempool 配置
type MempoolSize ¶
type MempoolSize struct {
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*MempoolSize) Descriptor
deprecated
func (*MempoolSize) Descriptor() ([]byte, []int)
Deprecated: Use MempoolSize.ProtoReflect.Descriptor instead.
func (*MempoolSize) GetSize ¶
func (x *MempoolSize) GetSize() int64
func (*MempoolSize) ProtoMessage ¶
func (*MempoolSize) ProtoMessage()
func (*MempoolSize) ProtoReflect ¶ added in v1.65.3
func (x *MempoolSize) ProtoReflect() protoreflect.Message
func (*MempoolSize) Reset ¶
func (x *MempoolSize) Reset()
func (*MempoolSize) String ¶
func (x *MempoolSize) String() string
type MessageAddrList ¶
type MessageAddrList struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PAddrList `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageAddrList) Descriptor
deprecated
func (*MessageAddrList) Descriptor() ([]byte, []int)
Deprecated: Use MessageAddrList.ProtoReflect.Descriptor instead.
func (*MessageAddrList) GetMessage ¶
func (x *MessageAddrList) GetMessage() *P2PAddrList
func (*MessageAddrList) GetMessageData ¶
func (x *MessageAddrList) GetMessageData() *MessageComm
func (*MessageAddrList) ProtoMessage ¶
func (*MessageAddrList) ProtoMessage()
func (*MessageAddrList) ProtoReflect ¶ added in v1.65.3
func (x *MessageAddrList) ProtoReflect() protoreflect.Message
func (*MessageAddrList) Reset ¶
func (x *MessageAddrList) Reset()
func (*MessageAddrList) String ¶
func (x *MessageAddrList) String() string
type MessageAddrReq ¶
type MessageAddrReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PGetAddr `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageAddrReq) Descriptor
deprecated
func (*MessageAddrReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageAddrReq.ProtoReflect.Descriptor instead.
func (*MessageAddrReq) GetMessage ¶
func (x *MessageAddrReq) GetMessage() *P2PGetAddr
func (*MessageAddrReq) GetMessageData ¶
func (x *MessageAddrReq) GetMessageData() *MessageComm
func (*MessageAddrReq) ProtoMessage ¶
func (*MessageAddrReq) ProtoMessage()
func (*MessageAddrReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageAddrReq) ProtoReflect() protoreflect.Message
func (*MessageAddrReq) Reset ¶
func (x *MessageAddrReq) Reset()
func (*MessageAddrReq) String ¶
func (x *MessageAddrReq) String() string
type MessageAddrResp ¶
type MessageAddrResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PAddr `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageAddrResp) Descriptor
deprecated
func (*MessageAddrResp) Descriptor() ([]byte, []int)
Deprecated: Use MessageAddrResp.ProtoReflect.Descriptor instead.
func (*MessageAddrResp) GetMessage ¶
func (x *MessageAddrResp) GetMessage() *P2PAddr
func (*MessageAddrResp) GetMessageData ¶
func (x *MessageAddrResp) GetMessageData() *MessageComm
func (*MessageAddrResp) ProtoMessage ¶
func (*MessageAddrResp) ProtoMessage()
func (*MessageAddrResp) ProtoReflect ¶ added in v1.65.3
func (x *MessageAddrResp) ProtoReflect() protoreflect.Message
func (*MessageAddrResp) Reset ¶
func (x *MessageAddrResp) Reset()
func (*MessageAddrResp) String ¶
func (x *MessageAddrResp) String() string
type MessageBroadCast ¶
type MessageBroadCast struct {
Common *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
Message *BroadCastData `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageBroadCast) Descriptor
deprecated
func (*MessageBroadCast) Descriptor() ([]byte, []int)
Deprecated: Use MessageBroadCast.ProtoReflect.Descriptor instead.
func (*MessageBroadCast) GetCommon ¶
func (x *MessageBroadCast) GetCommon() *MessageComm
func (*MessageBroadCast) GetMessage ¶
func (x *MessageBroadCast) GetMessage() *BroadCastData
func (*MessageBroadCast) ProtoMessage ¶
func (*MessageBroadCast) ProtoMessage()
func (*MessageBroadCast) ProtoReflect ¶ added in v1.65.3
func (x *MessageBroadCast) ProtoReflect() protoreflect.Message
func (*MessageBroadCast) Reset ¶
func (x *MessageBroadCast) Reset()
func (*MessageBroadCast) String ¶
func (x *MessageBroadCast) String() string
type MessageComm ¶
type MessageComm struct {
// shared between all requests
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // client version
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // unix time
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // allows requesters to use request data when processing a response
Gossip bool `protobuf:"varint,4,opt,name=gossip,proto3" json:"gossip,omitempty"` // true to have receiver peer gossip the message to neighbors
NodeId string `protobuf:"bytes,5,opt,name=nodeId,proto3" json:"nodeId,omitempty"` // id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
NodePubKey []byte `protobuf:"bytes,6,opt,name=nodePubKey,proto3" json:"nodePubKey,omitempty"` // Authoring node Secp256k1 public key (32bytes) - protobufs serielized
Sign []byte `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"` // signature of message data + method specific data by message authoring node.
// contains filtered or unexported fields
}
func (*MessageComm) Descriptor
deprecated
func (*MessageComm) Descriptor() ([]byte, []int)
Deprecated: Use MessageComm.ProtoReflect.Descriptor instead.
func (*MessageComm) GetGossip ¶
func (x *MessageComm) GetGossip() bool
func (*MessageComm) GetId ¶
func (x *MessageComm) GetId() string
func (*MessageComm) GetNodeId ¶
func (x *MessageComm) GetNodeId() string
func (*MessageComm) GetNodePubKey ¶
func (x *MessageComm) GetNodePubKey() []byte
func (*MessageComm) GetSign ¶
func (x *MessageComm) GetSign() []byte
func (*MessageComm) GetTimestamp ¶
func (x *MessageComm) GetTimestamp() int64
func (*MessageComm) GetVersion ¶
func (x *MessageComm) GetVersion() string
func (*MessageComm) ProtoMessage ¶
func (*MessageComm) ProtoMessage()
func (*MessageComm) ProtoReflect ¶ added in v1.65.3
func (x *MessageComm) ProtoReflect() protoreflect.Message
func (*MessageComm) Reset ¶
func (x *MessageComm) Reset()
func (*MessageComm) String ¶
func (x *MessageComm) String() string
type MessageExternalNetReq ¶
type MessageExternalNetReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
// contains filtered or unexported fields
}
func (*MessageExternalNetReq) Descriptor
deprecated
func (*MessageExternalNetReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageExternalNetReq.ProtoReflect.Descriptor instead.
func (*MessageExternalNetReq) GetMessageData ¶
func (x *MessageExternalNetReq) GetMessageData() *MessageComm
func (*MessageExternalNetReq) ProtoMessage ¶
func (*MessageExternalNetReq) ProtoMessage()
func (*MessageExternalNetReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageExternalNetReq) ProtoReflect() protoreflect.Message
func (*MessageExternalNetReq) Reset ¶
func (x *MessageExternalNetReq) Reset()
func (*MessageExternalNetReq) String ¶
func (x *MessageExternalNetReq) String() string
type MessageExternalNetResp ¶
type MessageExternalNetResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PExternalInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageExternalNetResp) Descriptor
deprecated
func (*MessageExternalNetResp) Descriptor() ([]byte, []int)
Deprecated: Use MessageExternalNetResp.ProtoReflect.Descriptor instead.
func (*MessageExternalNetResp) GetMessage ¶
func (x *MessageExternalNetResp) GetMessage() *P2PExternalInfo
func (*MessageExternalNetResp) GetMessageData ¶
func (x *MessageExternalNetResp) GetMessageData() *MessageComm
func (*MessageExternalNetResp) ProtoMessage ¶
func (*MessageExternalNetResp) ProtoMessage()
func (*MessageExternalNetResp) ProtoReflect ¶ added in v1.65.3
func (x *MessageExternalNetResp) ProtoReflect() protoreflect.Message
func (*MessageExternalNetResp) Reset ¶
func (x *MessageExternalNetResp) Reset()
func (*MessageExternalNetResp) String ¶
func (x *MessageExternalNetResp) String() string
type MessageGetBlocksReq ¶
type MessageGetBlocksReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PGetBlocks `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageGetBlocksReq) Descriptor
deprecated
func (*MessageGetBlocksReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageGetBlocksReq.ProtoReflect.Descriptor instead.
func (*MessageGetBlocksReq) GetMessage ¶
func (x *MessageGetBlocksReq) GetMessage() *P2PGetBlocks
func (*MessageGetBlocksReq) GetMessageData ¶
func (x *MessageGetBlocksReq) GetMessageData() *MessageComm
func (*MessageGetBlocksReq) ProtoMessage ¶
func (*MessageGetBlocksReq) ProtoMessage()
func (*MessageGetBlocksReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageGetBlocksReq) ProtoReflect() protoreflect.Message
func (*MessageGetBlocksReq) Reset ¶
func (x *MessageGetBlocksReq) Reset()
func (*MessageGetBlocksReq) String ¶
func (x *MessageGetBlocksReq) String() string
type MessageGetBlocksResp ¶
type MessageGetBlocksResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *InvDatas `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageGetBlocksResp) Descriptor
deprecated
func (*MessageGetBlocksResp) Descriptor() ([]byte, []int)
Deprecated: Use MessageGetBlocksResp.ProtoReflect.Descriptor instead.
func (*MessageGetBlocksResp) GetMessage ¶
func (x *MessageGetBlocksResp) GetMessage() *InvDatas
func (*MessageGetBlocksResp) GetMessageData ¶
func (x *MessageGetBlocksResp) GetMessageData() *MessageComm
func (*MessageGetBlocksResp) ProtoMessage ¶
func (*MessageGetBlocksResp) ProtoMessage()
func (*MessageGetBlocksResp) ProtoReflect ¶ added in v1.65.3
func (x *MessageGetBlocksResp) ProtoReflect() protoreflect.Message
func (*MessageGetBlocksResp) Reset ¶
func (x *MessageGetBlocksResp) Reset()
func (*MessageGetBlocksResp) String ¶
func (x *MessageGetBlocksResp) String() string
type MessageGetMempoolReq ¶
type MessageGetMempoolReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PGetMempool `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageGetMempoolReq) Descriptor
deprecated
func (*MessageGetMempoolReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageGetMempoolReq.ProtoReflect.Descriptor instead.
func (*MessageGetMempoolReq) GetMessage ¶
func (x *MessageGetMempoolReq) GetMessage() *P2PGetMempool
func (*MessageGetMempoolReq) GetMessageData ¶
func (x *MessageGetMempoolReq) GetMessageData() *MessageComm
func (*MessageGetMempoolReq) ProtoMessage ¶
func (*MessageGetMempoolReq) ProtoMessage()
func (*MessageGetMempoolReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageGetMempoolReq) ProtoReflect() protoreflect.Message
func (*MessageGetMempoolReq) Reset ¶
func (x *MessageGetMempoolReq) Reset()
func (*MessageGetMempoolReq) String ¶
func (x *MessageGetMempoolReq) String() string
type MessageHeaderReq ¶
type MessageHeaderReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PGetHeaders `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageHeaderReq) Descriptor
deprecated
func (*MessageHeaderReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageHeaderReq.ProtoReflect.Descriptor instead.
func (*MessageHeaderReq) GetMessage ¶
func (x *MessageHeaderReq) GetMessage() *P2PGetHeaders
func (*MessageHeaderReq) GetMessageData ¶
func (x *MessageHeaderReq) GetMessageData() *MessageComm
func (*MessageHeaderReq) ProtoMessage ¶
func (*MessageHeaderReq) ProtoMessage()
func (*MessageHeaderReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageHeaderReq) ProtoReflect() protoreflect.Message
func (*MessageHeaderReq) Reset ¶
func (x *MessageHeaderReq) Reset()
func (*MessageHeaderReq) String ¶
func (x *MessageHeaderReq) String() string
type MessageHeaderResp ¶
type MessageHeaderResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PHeaders `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageHeaderResp) Descriptor
deprecated
func (*MessageHeaderResp) Descriptor() ([]byte, []int)
Deprecated: Use MessageHeaderResp.ProtoReflect.Descriptor instead.
func (*MessageHeaderResp) GetMessage ¶
func (x *MessageHeaderResp) GetMessage() *P2PHeaders
func (*MessageHeaderResp) GetMessageData ¶
func (x *MessageHeaderResp) GetMessageData() *MessageComm
func (*MessageHeaderResp) ProtoMessage ¶
func (*MessageHeaderResp) ProtoMessage()
func (*MessageHeaderResp) ProtoReflect ¶ added in v1.65.3
func (x *MessageHeaderResp) ProtoReflect() protoreflect.Message
func (*MessageHeaderResp) Reset ¶
func (x *MessageHeaderResp) Reset()
func (*MessageHeaderResp) String ¶
func (x *MessageHeaderResp) String() string
type MessageInvDataReq ¶
type MessageInvDataReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *InvData `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageInvDataReq) Descriptor
deprecated
func (*MessageInvDataReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageInvDataReq.ProtoReflect.Descriptor instead.
func (*MessageInvDataReq) GetMessage ¶
func (x *MessageInvDataReq) GetMessage() *InvData
func (*MessageInvDataReq) GetMessageData ¶
func (x *MessageInvDataReq) GetMessageData() *MessageComm
func (*MessageInvDataReq) ProtoMessage ¶
func (*MessageInvDataReq) ProtoMessage()
func (*MessageInvDataReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageInvDataReq) ProtoReflect() protoreflect.Message
func (*MessageInvDataReq) Reset ¶
func (x *MessageInvDataReq) Reset()
func (*MessageInvDataReq) String ¶
func (x *MessageInvDataReq) String() string
type MessageNetInfo ¶
type MessageNetInfo struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *NodeNetInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageNetInfo) Descriptor
deprecated
func (*MessageNetInfo) Descriptor() ([]byte, []int)
Deprecated: Use MessageNetInfo.ProtoReflect.Descriptor instead.
func (*MessageNetInfo) GetMessage ¶
func (x *MessageNetInfo) GetMessage() *NodeNetInfo
func (*MessageNetInfo) GetMessageData ¶
func (x *MessageNetInfo) GetMessageData() *MessageComm
func (*MessageNetInfo) ProtoMessage ¶
func (*MessageNetInfo) ProtoMessage()
func (*MessageNetInfo) ProtoReflect ¶ added in v1.65.3
func (x *MessageNetInfo) ProtoReflect() protoreflect.Message
func (*MessageNetInfo) Reset ¶
func (x *MessageNetInfo) Reset()
func (*MessageNetInfo) String ¶
func (x *MessageNetInfo) String() string
type MessageP2PVersionReq ¶
type MessageP2PVersionReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PVersion `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageP2PVersionReq) Descriptor
deprecated
func (*MessageP2PVersionReq) Descriptor() ([]byte, []int)
Deprecated: Use MessageP2PVersionReq.ProtoReflect.Descriptor instead.
func (*MessageP2PVersionReq) GetMessage ¶
func (x *MessageP2PVersionReq) GetMessage() *P2PVersion
func (*MessageP2PVersionReq) GetMessageData ¶
func (x *MessageP2PVersionReq) GetMessageData() *MessageComm
func (*MessageP2PVersionReq) ProtoMessage ¶
func (*MessageP2PVersionReq) ProtoMessage()
func (*MessageP2PVersionReq) ProtoReflect ¶ added in v1.65.3
func (x *MessageP2PVersionReq) ProtoReflect() protoreflect.Message
func (*MessageP2PVersionReq) Reset ¶
func (x *MessageP2PVersionReq) Reset()
func (*MessageP2PVersionReq) String ¶
func (x *MessageP2PVersionReq) String() string
type MessageP2PVersionResp ¶
type MessageP2PVersionResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PVersion `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageP2PVersionResp) Descriptor
deprecated
func (*MessageP2PVersionResp) Descriptor() ([]byte, []int)
Deprecated: Use MessageP2PVersionResp.ProtoReflect.Descriptor instead.
func (*MessageP2PVersionResp) GetMessage ¶
func (x *MessageP2PVersionResp) GetMessage() *P2PVersion
func (*MessageP2PVersionResp) GetMessageData ¶
func (x *MessageP2PVersionResp) GetMessageData() *MessageComm
func (*MessageP2PVersionResp) ProtoMessage ¶
func (*MessageP2PVersionResp) ProtoMessage()
func (*MessageP2PVersionResp) ProtoReflect ¶ added in v1.65.3
func (x *MessageP2PVersionResp) ProtoReflect() protoreflect.Message
func (*MessageP2PVersionResp) Reset ¶
func (x *MessageP2PVersionResp) Reset()
func (*MessageP2PVersionResp) String ¶
func (x *MessageP2PVersionResp) String() string
type MessagePeerInfoReq ¶
type MessagePeerInfoReq struct {
/// p2p版本
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
// contains filtered or unexported fields
}
* 请求获取远程节点的节点信息
func (*MessagePeerInfoReq) Descriptor
deprecated
func (*MessagePeerInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use MessagePeerInfoReq.ProtoReflect.Descriptor instead.
func (*MessagePeerInfoReq) GetMessageData ¶
func (x *MessagePeerInfoReq) GetMessageData() *MessageComm
func (*MessagePeerInfoReq) ProtoMessage ¶
func (*MessagePeerInfoReq) ProtoMessage()
func (*MessagePeerInfoReq) ProtoReflect ¶ added in v1.65.3
func (x *MessagePeerInfoReq) ProtoReflect() protoreflect.Message
func (*MessagePeerInfoReq) Reset ¶
func (x *MessagePeerInfoReq) Reset()
func (*MessagePeerInfoReq) String ¶
func (x *MessagePeerInfoReq) String() string
type MessagePeerInfoResp ¶
type MessagePeerInfoResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PPeerInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessagePeerInfoResp) Descriptor
deprecated
func (*MessagePeerInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use MessagePeerInfoResp.ProtoReflect.Descriptor instead.
func (*MessagePeerInfoResp) GetMessage ¶
func (x *MessagePeerInfoResp) GetMessage() *P2PPeerInfo
func (*MessagePeerInfoResp) GetMessageData ¶
func (x *MessagePeerInfoResp) GetMessageData() *MessageComm
func (*MessagePeerInfoResp) ProtoMessage ¶
func (*MessagePeerInfoResp) ProtoMessage()
func (*MessagePeerInfoResp) ProtoReflect ¶ added in v1.65.3
func (x *MessagePeerInfoResp) ProtoReflect() protoreflect.Message
func (*MessagePeerInfoResp) Reset ¶
func (x *MessagePeerInfoResp) Reset()
func (*MessagePeerInfoResp) String ¶
func (x *MessagePeerInfoResp) String() string
type MessagePeerList ¶
type MessagePeerList struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *PeerList `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessagePeerList) Descriptor
deprecated
func (*MessagePeerList) Descriptor() ([]byte, []int)
Deprecated: Use MessagePeerList.ProtoReflect.Descriptor instead.
func (*MessagePeerList) GetMessage ¶
func (x *MessagePeerList) GetMessage() *PeerList
func (*MessagePeerList) GetMessageData ¶
func (x *MessagePeerList) GetMessageData() *MessageComm
func (*MessagePeerList) ProtoMessage ¶
func (*MessagePeerList) ProtoMessage()
func (*MessagePeerList) ProtoReflect ¶ added in v1.65.3
func (x *MessagePeerList) ProtoReflect() protoreflect.Message
func (*MessagePeerList) Reset ¶
func (x *MessagePeerList) Reset()
func (*MessagePeerList) String ¶
func (x *MessagePeerList) String() string
type MessagePeersReply ¶
type MessagePeersReply struct {
Common *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
PeersReply *PeersReply `protobuf:"bytes,2,opt,name=peersReply,proto3" json:"peersReply,omitempty"`
// contains filtered or unexported fields
}
func (*MessagePeersReply) Descriptor
deprecated
func (*MessagePeersReply) Descriptor() ([]byte, []int)
Deprecated: Use MessagePeersReply.ProtoReflect.Descriptor instead.
func (*MessagePeersReply) GetCommon ¶
func (x *MessagePeersReply) GetCommon() *MessageComm
func (*MessagePeersReply) GetPeersReply ¶
func (x *MessagePeersReply) GetPeersReply() *PeersReply
func (*MessagePeersReply) ProtoMessage ¶
func (*MessagePeersReply) ProtoMessage()
func (*MessagePeersReply) ProtoReflect ¶ added in v1.65.3
func (x *MessagePeersReply) ProtoReflect() protoreflect.Message
func (*MessagePeersReply) Reset ¶
func (x *MessagePeersReply) Reset()
func (*MessagePeersReply) String ¶
func (x *MessagePeersReply) String() string
type MessagePingReq ¶
type MessagePingReq struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PPing `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessagePingReq) Descriptor
deprecated
func (*MessagePingReq) Descriptor() ([]byte, []int)
Deprecated: Use MessagePingReq.ProtoReflect.Descriptor instead.
func (*MessagePingReq) GetMessage ¶
func (x *MessagePingReq) GetMessage() *P2PPing
func (*MessagePingReq) GetMessageData ¶
func (x *MessagePingReq) GetMessageData() *MessageComm
func (*MessagePingReq) ProtoMessage ¶
func (*MessagePingReq) ProtoMessage()
func (*MessagePingReq) ProtoReflect ¶ added in v1.65.3
func (x *MessagePingReq) ProtoReflect() protoreflect.Message
func (*MessagePingReq) Reset ¶
func (x *MessagePingReq) Reset()
func (*MessagePingReq) String ¶
func (x *MessagePingReq) String() string
type MessagePingResp ¶
type MessagePingResp struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *P2PPong `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessagePingResp) Descriptor
deprecated
func (*MessagePingResp) Descriptor() ([]byte, []int)
Deprecated: Use MessagePingResp.ProtoReflect.Descriptor instead.
func (*MessagePingResp) GetMessage ¶
func (x *MessagePingResp) GetMessage() *P2PPong
func (*MessagePingResp) GetMessageData ¶
func (x *MessagePingResp) GetMessageData() *MessageComm
func (*MessagePingResp) ProtoMessage ¶
func (*MessagePingResp) ProtoMessage()
func (*MessagePingResp) ProtoReflect ¶ added in v1.65.3
func (x *MessagePingResp) ProtoReflect() protoreflect.Message
func (*MessagePingResp) Reset ¶
func (x *MessagePingResp) Reset()
func (*MessagePingResp) String ¶
func (x *MessagePingResp) String() string
type MessageUtil ¶
type MessageUtil struct {
Common *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
// Types that are assignable to Value:
// *MessageUtil_PeerInfo
// *MessageUtil_Version
// *MessageUtil_VersionAck
// *MessageUtil_External
// *MessageUtil_Getblocks
// *MessageUtil_Invdatas
Value isMessageUtil_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*MessageUtil) Descriptor
deprecated
func (*MessageUtil) Descriptor() ([]byte, []int)
Deprecated: Use MessageUtil.ProtoReflect.Descriptor instead.
func (*MessageUtil) GetCommon ¶
func (x *MessageUtil) GetCommon() *MessageComm
func (*MessageUtil) GetExternal ¶
func (x *MessageUtil) GetExternal() *P2PExternalInfo
func (*MessageUtil) GetGetblocks ¶
func (x *MessageUtil) GetGetblocks() *P2PGetBlocks
func (*MessageUtil) GetInvdatas ¶
func (x *MessageUtil) GetInvdatas() *InvDatas
func (*MessageUtil) GetPeerInfo ¶
func (x *MessageUtil) GetPeerInfo() *P2PPeerInfo
func (*MessageUtil) GetValue ¶
func (m *MessageUtil) GetValue() isMessageUtil_Value
func (*MessageUtil) GetVersion ¶
func (x *MessageUtil) GetVersion() *P2PVersion
func (*MessageUtil) GetVersionAck ¶
func (x *MessageUtil) GetVersionAck() *P2PVerAck
func (*MessageUtil) ProtoMessage ¶
func (*MessageUtil) ProtoMessage()
func (*MessageUtil) ProtoReflect ¶ added in v1.65.3
func (x *MessageUtil) ProtoReflect() protoreflect.Message
func (*MessageUtil) Reset ¶
func (x *MessageUtil) Reset()
func (*MessageUtil) String ¶
func (x *MessageUtil) String() string
type MessageUtil_External ¶
type MessageUtil_External struct {
External *P2PExternalInfo `protobuf:"bytes,5,opt,name=external,proto3,oneof"`
}
type MessageUtil_Getblocks ¶
type MessageUtil_Getblocks struct {
Getblocks *P2PGetBlocks `protobuf:"bytes,6,opt,name=getblocks,proto3,oneof"`
}
type MessageUtil_Invdatas ¶
type MessageUtil_Invdatas struct {
Invdatas *InvDatas `protobuf:"bytes,7,opt,name=invdatas,proto3,oneof"`
}
type MessageUtil_PeerInfo ¶
type MessageUtil_PeerInfo struct {
PeerInfo *P2PPeerInfo `protobuf:"bytes,2,opt,name=peerInfo,proto3,oneof"`
}
type MessageUtil_Version ¶
type MessageUtil_Version struct {
Version *P2PVersion `protobuf:"bytes,3,opt,name=version,proto3,oneof"`
}
type MessageUtil_VersionAck ¶
type MessageUtil_VersionAck struct {
VersionAck *P2PVerAck `protobuf:"bytes,4,opt,name=versionAck,proto3,oneof"`
}
type MessageVersion ¶
type MessageVersion struct {
MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
Message *Versions `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*MessageVersion) Descriptor
deprecated
func (*MessageVersion) Descriptor() ([]byte, []int)
Deprecated: Use MessageVersion.ProtoReflect.Descriptor instead.
func (*MessageVersion) GetMessage ¶
func (x *MessageVersion) GetMessage() *Versions
func (*MessageVersion) GetMessageData ¶
func (x *MessageVersion) GetMessageData() *MessageComm
func (*MessageVersion) ProtoMessage ¶
func (*MessageVersion) ProtoMessage()
func (*MessageVersion) ProtoReflect ¶ added in v1.65.3
func (x *MessageVersion) ProtoReflect() protoreflect.Message
func (*MessageVersion) Reset ¶
func (x *MessageVersion) Reset()
func (*MessageVersion) String ¶
func (x *MessageVersion) String() string
type Metrics ¶
type Metrics struct {
EnableMetrics bool `json:"enableMetrics,omitempty"`
DataEmitMode string `json:"dataEmitMode,omitempty"`
Duration int64 `json:"duration,omitempty"`
URL string `json:"url,omitempty"`
DatabaseName string `json:"databaseName,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Namespace string `json:"namespace,omitempty"`
}
Metrics 相关测量配置信息
type ModifyConfig ¶
type ModifyConfig struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Op string `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
func (*ModifyConfig) Descriptor
deprecated
func (*ModifyConfig) Descriptor() ([]byte, []int)
Deprecated: Use ModifyConfig.ProtoReflect.Descriptor instead.
func (*ModifyConfig) GetAddr ¶
func (x *ModifyConfig) GetAddr() string
func (*ModifyConfig) GetKey ¶
func (x *ModifyConfig) GetKey() string
func (*ModifyConfig) GetOp ¶
func (x *ModifyConfig) GetOp() string
func (*ModifyConfig) GetValue ¶
func (x *ModifyConfig) GetValue() string
func (*ModifyConfig) ProtoMessage ¶
func (*ModifyConfig) ProtoMessage()
func (*ModifyConfig) ProtoReflect ¶ added in v1.65.3
func (x *ModifyConfig) ProtoReflect() protoreflect.Message
func (*ModifyConfig) Reset ¶
func (x *ModifyConfig) Reset()
func (*ModifyConfig) String ¶
func (x *ModifyConfig) String() string
type NetProtocolInfos ¶ added in v1.65.0
type NetProtocolInfos struct {
Protoinfo []*ProtocolInfo `protobuf:"bytes,1,rep,name=protoinfo,proto3" json:"protoinfo,omitempty"`
// contains filtered or unexported fields
}
* dht protos 网络带宽信息
func (*NetProtocolInfos) Descriptor
deprecated
added in
v1.65.0
func (*NetProtocolInfos) Descriptor() ([]byte, []int)
Deprecated: Use NetProtocolInfos.ProtoReflect.Descriptor instead.
func (*NetProtocolInfos) GetProtoinfo ¶ added in v1.65.0
func (x *NetProtocolInfos) GetProtoinfo() []*ProtocolInfo
func (*NetProtocolInfos) ProtoMessage ¶ added in v1.65.0
func (*NetProtocolInfos) ProtoMessage()
func (*NetProtocolInfos) ProtoReflect ¶ added in v1.65.3
func (x *NetProtocolInfos) ProtoReflect() protoreflect.Message
func (*NetProtocolInfos) Reset ¶ added in v1.65.0
func (x *NetProtocolInfos) Reset()
func (*NetProtocolInfos) String ¶ added in v1.65.0
func (x *NetProtocolInfos) String() string
type NoBalanceTx ¶
type NoBalanceTx struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
PayAddr string `protobuf:"bytes,2,opt,name=payAddr,proto3" json:"payAddr,omitempty"`
Privkey string `protobuf:"bytes,3,opt,name=privkey,proto3" json:"privkey,omitempty"`
Expire string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
// contains filtered or unexported fields
}
payAddr 可以支持 1. 地址 2. 私钥
func (*NoBalanceTx) Descriptor
deprecated
func (*NoBalanceTx) Descriptor() ([]byte, []int)
Deprecated: Use NoBalanceTx.ProtoReflect.Descriptor instead.
func (*NoBalanceTx) GetExpire ¶
func (x *NoBalanceTx) GetExpire() string
func (*NoBalanceTx) GetPayAddr ¶
func (x *NoBalanceTx) GetPayAddr() string
func (*NoBalanceTx) GetPrivkey ¶
func (x *NoBalanceTx) GetPrivkey() string
func (*NoBalanceTx) GetTxHex ¶
func (x *NoBalanceTx) GetTxHex() string
func (*NoBalanceTx) ProtoMessage ¶
func (*NoBalanceTx) ProtoMessage()
func (*NoBalanceTx) ProtoReflect ¶ added in v1.65.3
func (x *NoBalanceTx) ProtoReflect() protoreflect.Message
func (*NoBalanceTx) Reset ¶
func (x *NoBalanceTx) Reset()
func (*NoBalanceTx) String ¶
func (x *NoBalanceTx) String() string
type NoBalanceTxs ¶
type NoBalanceTxs struct {
TxHexs []string `protobuf:"bytes,1,rep,name=txHexs,proto3" json:"txHexs,omitempty"`
PayAddr string `protobuf:"bytes,2,opt,name=payAddr,proto3" json:"payAddr,omitempty"`
Privkey string `protobuf:"bytes,3,opt,name=privkey,proto3" json:"privkey,omitempty"`
Expire string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
// contains filtered or unexported fields
}
支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥
func (*NoBalanceTxs) Descriptor
deprecated
func (*NoBalanceTxs) Descriptor() ([]byte, []int)
Deprecated: Use NoBalanceTxs.ProtoReflect.Descriptor instead.
func (*NoBalanceTxs) GetExpire ¶
func (x *NoBalanceTxs) GetExpire() string
func (*NoBalanceTxs) GetPayAddr ¶
func (x *NoBalanceTxs) GetPayAddr() string
func (*NoBalanceTxs) GetPrivkey ¶
func (x *NoBalanceTxs) GetPrivkey() string
func (*NoBalanceTxs) GetTxHexs ¶
func (x *NoBalanceTxs) GetTxHexs() []string
func (*NoBalanceTxs) ProtoMessage ¶
func (*NoBalanceTxs) ProtoMessage()
func (*NoBalanceTxs) ProtoReflect ¶ added in v1.65.3
func (x *NoBalanceTxs) ProtoReflect() protoreflect.Message
func (*NoBalanceTxs) Reset ¶
func (x *NoBalanceTxs) Reset()
func (*NoBalanceTxs) String ¶
func (x *NoBalanceTxs) String() string
type NodeInfo ¶ added in v1.65.1
type NodeInfo struct {
Answer bool `protobuf:"varint,1,opt,name=answer,proto3" json:"answer,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*NodeInfo) Descriptor
deprecated
added in
v1.65.1
func (*NodeInfo) ProtoMessage ¶ added in v1.65.1
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶ added in v1.65.3
func (x *NodeInfo) ProtoReflect() protoreflect.Message
type NodeNetInfo ¶
type NodeNetInfo struct {
Externaladdr string `protobuf:"bytes,1,opt,name=externaladdr,proto3" json:"externaladdr,omitempty"`
Localaddr string `protobuf:"bytes,2,opt,name=localaddr,proto3" json:"localaddr,omitempty"`
Service bool `protobuf:"varint,3,opt,name=service,proto3" json:"service,omitempty"`
Outbounds int32 `protobuf:"varint,4,opt,name=outbounds,proto3" json:"outbounds,omitempty"`
Inbounds int32 `protobuf:"varint,5,opt,name=inbounds,proto3" json:"inbounds,omitempty"`
Routingtable int32 `protobuf:"varint,6,opt,name=routingtable,proto3" json:"routingtable,omitempty"`
Peerstore int32 `protobuf:"varint,7,opt,name=peerstore,proto3" json:"peerstore,omitempty"`
Ratein string `protobuf:"bytes,8,opt,name=ratein,proto3" json:"ratein,omitempty"`
Rateout string `protobuf:"bytes,9,opt,name=rateout,proto3" json:"rateout,omitempty"`
Ratetotal string `protobuf:"bytes,10,opt,name=ratetotal,proto3" json:"ratetotal,omitempty"`
// contains filtered or unexported fields
}
* 当前节点的网络信息
func (*NodeNetInfo) Descriptor
deprecated
func (*NodeNetInfo) Descriptor() ([]byte, []int)
Deprecated: Use NodeNetInfo.ProtoReflect.Descriptor instead.
func (*NodeNetInfo) GetExternaladdr ¶
func (x *NodeNetInfo) GetExternaladdr() string
func (*NodeNetInfo) GetInbounds ¶
func (x *NodeNetInfo) GetInbounds() int32
func (*NodeNetInfo) GetLocaladdr ¶
func (x *NodeNetInfo) GetLocaladdr() string
func (*NodeNetInfo) GetOutbounds ¶
func (x *NodeNetInfo) GetOutbounds() int32
func (*NodeNetInfo) GetPeerstore ¶ added in v1.65.0
func (x *NodeNetInfo) GetPeerstore() int32
func (*NodeNetInfo) GetRatein ¶ added in v1.65.0
func (x *NodeNetInfo) GetRatein() string
func (*NodeNetInfo) GetRateout ¶ added in v1.65.0
func (x *NodeNetInfo) GetRateout() string
func (*NodeNetInfo) GetRatetotal ¶ added in v1.65.0
func (x *NodeNetInfo) GetRatetotal() string
func (*NodeNetInfo) GetRoutingtable ¶ added in v1.65.0
func (x *NodeNetInfo) GetRoutingtable() int32
func (*NodeNetInfo) GetService ¶
func (x *NodeNetInfo) GetService() bool
func (*NodeNetInfo) ProtoMessage ¶
func (*NodeNetInfo) ProtoMessage()
func (*NodeNetInfo) ProtoReflect ¶ added in v1.65.3
func (x *NodeNetInfo) ProtoReflect() protoreflect.Message
func (*NodeNetInfo) Reset ¶
func (x *NodeNetInfo) Reset()
func (*NodeNetInfo) String ¶
func (x *NodeNetInfo) String() string
type Operation ¶
type Operation struct {
Value *Block `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Operation) Descriptor
deprecated
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) ProtoReflect ¶ added in v1.65.3
func (x *Operation) ProtoReflect() protoreflect.Message
type P2P ¶
type P2P struct {
// 使用的数据库类型
Driver string `json:"driver,omitempty"`
// 数据库文件目录
DbPath string `json:"dbPath,omitempty"`
// 数据库缓存大小
DbCache int32 `json:"dbCache,omitempty"`
// GRPC请求日志文件
GrpcLogFile string `json:"grpcLogFile,omitempty"`
// 是否启动P2P服务
Enable bool `json:"enable,omitempty"`
//是否等待Pid
WaitPid bool `json:"waitPid,omitempty"`
//指定p2p类型, 支持gossip, dht
Types []string `json:"types,omitempty"`
}
P2P 配置
type P2PAddr ¶
type P2PAddr struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
///对方节点返回的其他节点信息
Addrlist []string `protobuf:"bytes,2,rep,name=addrlist,proto3" json:"addrlist,omitempty"`
// contains filtered or unexported fields
}
* 返回请求地址列表的社保
func (*P2PAddr) Descriptor
deprecated
func (*P2PAddr) GetAddrlist ¶
func (*P2PAddr) ProtoMessage ¶
func (*P2PAddr) ProtoMessage()
func (*P2PAddr) ProtoReflect ¶ added in v1.65.3
func (x *P2PAddr) ProtoReflect() protoreflect.Message
type P2PAddrList ¶
type P2PAddrList struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
Peerinfo []*P2PPeerInfo `protobuf:"bytes,2,rep,name=peerinfo,proto3" json:"peerinfo,omitempty"`
// contains filtered or unexported fields
}
func (*P2PAddrList) Descriptor
deprecated
func (*P2PAddrList) Descriptor() ([]byte, []int)
Deprecated: Use P2PAddrList.ProtoReflect.Descriptor instead.
func (*P2PAddrList) GetNonce ¶
func (x *P2PAddrList) GetNonce() int64
func (*P2PAddrList) GetPeerinfo ¶
func (x *P2PAddrList) GetPeerinfo() []*P2PPeerInfo
func (*P2PAddrList) ProtoMessage ¶
func (*P2PAddrList) ProtoMessage()
func (*P2PAddrList) ProtoReflect ¶ added in v1.65.3
func (x *P2PAddrList) ProtoReflect() protoreflect.Message
func (*P2PAddrList) Reset ¶
func (x *P2PAddrList) Reset()
func (*P2PAddrList) String ¶
func (x *P2PAddrList) String() string
type P2PBlock ¶
type P2PBlock struct {
Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
// contains filtered or unexported fields
}
* p2p 发送区块协议
func (*P2PBlock) Descriptor
deprecated
func (*P2PBlock) ProtoMessage ¶
func (*P2PBlock) ProtoMessage()
func (*P2PBlock) ProtoReflect ¶ added in v1.65.3
func (x *P2PBlock) ProtoReflect() protoreflect.Message
type P2PBlockTxReply ¶
type P2PBlockTxReply struct {
BlockHash string `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
TxIndices []int32 `protobuf:"varint,2,rep,packed,name=txIndices,proto3" json:"txIndices,omitempty"`
Txs []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
区块交易数据返回
func (*P2PBlockTxReply) Descriptor
deprecated
func (*P2PBlockTxReply) Descriptor() ([]byte, []int)
Deprecated: Use P2PBlockTxReply.ProtoReflect.Descriptor instead.
func (*P2PBlockTxReply) GetBlockHash ¶
func (x *P2PBlockTxReply) GetBlockHash() string
func (*P2PBlockTxReply) GetTxIndices ¶
func (x *P2PBlockTxReply) GetTxIndices() []int32
func (*P2PBlockTxReply) GetTxs ¶
func (x *P2PBlockTxReply) GetTxs() []*Transaction
func (*P2PBlockTxReply) ProtoMessage ¶
func (*P2PBlockTxReply) ProtoMessage()
func (*P2PBlockTxReply) ProtoReflect ¶ added in v1.65.3
func (x *P2PBlockTxReply) ProtoReflect() protoreflect.Message
func (*P2PBlockTxReply) Reset ¶
func (x *P2PBlockTxReply) Reset()
func (*P2PBlockTxReply) String ¶
func (x *P2PBlockTxReply) String() string
type P2PBlockTxReq ¶
type P2PBlockTxReq struct {
BlockHash string `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
TxIndices []int32 `protobuf:"varint,2,rep,packed,name=txIndices,proto3" json:"txIndices,omitempty"`
// contains filtered or unexported fields
}
请求区块内交易数据
func (*P2PBlockTxReq) Descriptor
deprecated
func (*P2PBlockTxReq) Descriptor() ([]byte, []int)
Deprecated: Use P2PBlockTxReq.ProtoReflect.Descriptor instead.
func (*P2PBlockTxReq) GetBlockHash ¶
func (x *P2PBlockTxReq) GetBlockHash() string
func (*P2PBlockTxReq) GetTxIndices ¶
func (x *P2PBlockTxReq) GetTxIndices() []int32
func (*P2PBlockTxReq) ProtoMessage ¶
func (*P2PBlockTxReq) ProtoMessage()
func (*P2PBlockTxReq) ProtoReflect ¶ added in v1.65.3
func (x *P2PBlockTxReq) ProtoReflect() protoreflect.Message
func (*P2PBlockTxReq) Reset ¶
func (x *P2PBlockTxReq) Reset()
func (*P2PBlockTxReq) String ¶
func (x *P2PBlockTxReq) String() string
type P2PExternalInfo ¶
type P2PExternalInfo struct {
///节点的外网地址
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//节点是否在外网
Isoutside bool `protobuf:"varint,2,opt,name=isoutside,proto3" json:"isoutside,omitempty"`
// contains filtered or unexported fields
}
* 节点外网信息
func (*P2PExternalInfo) Descriptor
deprecated
func (*P2PExternalInfo) Descriptor() ([]byte, []int)
Deprecated: Use P2PExternalInfo.ProtoReflect.Descriptor instead.
func (*P2PExternalInfo) GetAddr ¶
func (x *P2PExternalInfo) GetAddr() string
func (*P2PExternalInfo) GetIsoutside ¶
func (x *P2PExternalInfo) GetIsoutside() bool
func (*P2PExternalInfo) ProtoMessage ¶
func (*P2PExternalInfo) ProtoMessage()
func (*P2PExternalInfo) ProtoReflect ¶ added in v1.65.3
func (x *P2PExternalInfo) ProtoReflect() protoreflect.Message
func (*P2PExternalInfo) Reset ¶
func (x *P2PExternalInfo) Reset()
func (*P2PExternalInfo) String ¶
func (x *P2PExternalInfo) String() string
type P2PGetAddr ¶
type P2PGetAddr struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// contains filtered or unexported fields
}
* 获取对方节点所连接的其他节点地址的请求包
func (*P2PGetAddr) Descriptor
deprecated
func (*P2PGetAddr) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetAddr.ProtoReflect.Descriptor instead.
func (*P2PGetAddr) GetNonce ¶
func (x *P2PGetAddr) GetNonce() int64
func (*P2PGetAddr) ProtoMessage ¶
func (*P2PGetAddr) ProtoMessage()
func (*P2PGetAddr) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetAddr) ProtoReflect() protoreflect.Message
func (*P2PGetAddr) Reset ¶
func (x *P2PGetAddr) Reset()
func (*P2PGetAddr) String ¶
func (x *P2PGetAddr) String() string
type P2PGetBlocks ¶
type P2PGetBlocks struct {
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
StartHeight int64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
EndHeight int64 `protobuf:"varint,3,opt,name=endHeight,proto3" json:"endHeight,omitempty"`
// contains filtered or unexported fields
}
* 获取区间区块
func (*P2PGetBlocks) Descriptor
deprecated
func (*P2PGetBlocks) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetBlocks.ProtoReflect.Descriptor instead.
func (*P2PGetBlocks) GetEndHeight ¶
func (x *P2PGetBlocks) GetEndHeight() int64
func (*P2PGetBlocks) GetStartHeight ¶
func (x *P2PGetBlocks) GetStartHeight() int64
func (*P2PGetBlocks) GetVersion ¶
func (x *P2PGetBlocks) GetVersion() int32
func (*P2PGetBlocks) ProtoMessage ¶
func (*P2PGetBlocks) ProtoMessage()
func (*P2PGetBlocks) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetBlocks) ProtoReflect() protoreflect.Message
func (*P2PGetBlocks) Reset ¶
func (x *P2PGetBlocks) Reset()
func (*P2PGetBlocks) String ¶
func (x *P2PGetBlocks) String() string
type P2PGetData ¶
type P2PGetData struct {
/// p2p版本
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
/// invs 数组
Invs []*Inventory `protobuf:"bytes,2,rep,name=invs,proto3" json:"invs,omitempty"`
// contains filtered or unexported fields
}
* 通过invs 下载数据
func (*P2PGetData) Descriptor
deprecated
func (*P2PGetData) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetData.ProtoReflect.Descriptor instead.
func (*P2PGetData) GetInvs ¶
func (x *P2PGetData) GetInvs() []*Inventory
func (*P2PGetData) GetVersion ¶
func (x *P2PGetData) GetVersion() int32
func (*P2PGetData) ProtoMessage ¶
func (*P2PGetData) ProtoMessage()
func (*P2PGetData) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetData) ProtoReflect() protoreflect.Message
func (*P2PGetData) Reset ¶
func (x *P2PGetData) Reset()
func (*P2PGetData) String ¶
func (x *P2PGetData) String() string
type P2PGetHeaders ¶
type P2PGetHeaders struct {
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
StartHeight int64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
EndHeight int64 `protobuf:"varint,3,opt,name=endHeight,proto3" json:"endHeight,omitempty"`
// contains filtered or unexported fields
}
* p2p 获取区块区间头部信息协议
func (*P2PGetHeaders) Descriptor
deprecated
func (*P2PGetHeaders) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetHeaders.ProtoReflect.Descriptor instead.
func (*P2PGetHeaders) GetEndHeight ¶
func (x *P2PGetHeaders) GetEndHeight() int64
func (*P2PGetHeaders) GetStartHeight ¶
func (x *P2PGetHeaders) GetStartHeight() int64
func (*P2PGetHeaders) GetVersion ¶
func (x *P2PGetHeaders) GetVersion() int32
func (*P2PGetHeaders) ProtoMessage ¶
func (*P2PGetHeaders) ProtoMessage()
func (*P2PGetHeaders) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetHeaders) ProtoReflect() protoreflect.Message
func (*P2PGetHeaders) Reset ¶
func (x *P2PGetHeaders) Reset()
func (*P2PGetHeaders) String ¶
func (x *P2PGetHeaders) String() string
type P2PGetMempool ¶
type P2PGetMempool struct {
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
* 获取mempool
func (*P2PGetMempool) Descriptor
deprecated
func (*P2PGetMempool) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetMempool.ProtoReflect.Descriptor instead.
func (*P2PGetMempool) GetVersion ¶
func (x *P2PGetMempool) GetVersion() int32
func (*P2PGetMempool) ProtoMessage ¶
func (*P2PGetMempool) ProtoMessage()
func (*P2PGetMempool) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetMempool) ProtoReflect() protoreflect.Message
func (*P2PGetMempool) Reset ¶
func (x *P2PGetMempool) Reset()
func (*P2PGetMempool) String ¶
func (x *P2PGetMempool) String() string
type P2PGetNetInfoReq ¶
type P2PGetNetInfoReq struct {
P2PType string `protobuf:"bytes,1,opt,name=p2pType,proto3" json:"p2pType,omitempty"`
// contains filtered or unexported fields
}
* p2p get net info req
func (*P2PGetNetInfoReq) Descriptor
deprecated
func (*P2PGetNetInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetNetInfoReq.ProtoReflect.Descriptor instead.
func (*P2PGetNetInfoReq) GetP2PType ¶
func (x *P2PGetNetInfoReq) GetP2PType() string
func (*P2PGetNetInfoReq) ProtoMessage ¶
func (*P2PGetNetInfoReq) ProtoMessage()
func (*P2PGetNetInfoReq) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetNetInfoReq) ProtoReflect() protoreflect.Message
func (*P2PGetNetInfoReq) Reset ¶
func (x *P2PGetNetInfoReq) Reset()
func (*P2PGetNetInfoReq) String ¶
func (x *P2PGetNetInfoReq) String() string
type P2PGetPeerInfo ¶
type P2PGetPeerInfo struct {
/// p2p版本
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
* 请求获取远程节点的节点信息
func (*P2PGetPeerInfo) Descriptor
deprecated
func (*P2PGetPeerInfo) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetPeerInfo.ProtoReflect.Descriptor instead.
func (*P2PGetPeerInfo) GetVersion ¶
func (x *P2PGetPeerInfo) GetVersion() int32
func (*P2PGetPeerInfo) ProtoMessage ¶
func (*P2PGetPeerInfo) ProtoMessage()
func (*P2PGetPeerInfo) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetPeerInfo) ProtoReflect() protoreflect.Message
func (*P2PGetPeerInfo) Reset ¶
func (x *P2PGetPeerInfo) Reset()
func (*P2PGetPeerInfo) String ¶
func (x *P2PGetPeerInfo) String() string
type P2PGetPeerReq ¶
type P2PGetPeerReq struct {
P2PType string `protobuf:"bytes,1,opt,name=p2pType,proto3" json:"p2pType,omitempty"`
// contains filtered or unexported fields
}
* p2p get peer req
func (*P2PGetPeerReq) Descriptor
deprecated
func (*P2PGetPeerReq) Descriptor() ([]byte, []int)
Deprecated: Use P2PGetPeerReq.ProtoReflect.Descriptor instead.
func (*P2PGetPeerReq) GetP2PType ¶
func (x *P2PGetPeerReq) GetP2PType() string
func (*P2PGetPeerReq) ProtoMessage ¶
func (*P2PGetPeerReq) ProtoMessage()
func (*P2PGetPeerReq) ProtoReflect ¶ added in v1.65.3
func (x *P2PGetPeerReq) ProtoReflect() protoreflect.Message
func (*P2PGetPeerReq) Reset ¶
func (x *P2PGetPeerReq) Reset()
func (*P2PGetPeerReq) String ¶
func (x *P2PGetPeerReq) String() string
type P2PHeaders ¶
type P2PHeaders struct {
Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
// contains filtered or unexported fields
}
* p2p 区块头传输协议
func (*P2PHeaders) Descriptor
deprecated
func (*P2PHeaders) Descriptor() ([]byte, []int)
Deprecated: Use P2PHeaders.ProtoReflect.Descriptor instead.
func (*P2PHeaders) GetHeaders ¶
func (x *P2PHeaders) GetHeaders() []*Header
func (*P2PHeaders) ProtoMessage ¶
func (*P2PHeaders) ProtoMessage()
func (*P2PHeaders) ProtoReflect ¶ added in v1.65.3
func (x *P2PHeaders) ProtoReflect() protoreflect.Message
func (*P2PHeaders) Reset ¶
func (x *P2PHeaders) Reset()
func (*P2PHeaders) String ¶
func (x *P2PHeaders) String() string
type P2PInv ¶
type P2PInv struct {
Invs []*Inventory `protobuf:"bytes,1,rep,name=invs,proto3" json:"invs,omitempty"`
// contains filtered or unexported fields
}
func (*P2PInv) Descriptor
deprecated
func (*P2PInv) ProtoMessage ¶
func (*P2PInv) ProtoMessage()
func (*P2PInv) ProtoReflect ¶ added in v1.65.3
func (x *P2PInv) ProtoReflect() protoreflect.Message
type P2PMessageHeaders ¶ added in v1.65.0
type P2PMessageHeaders struct {
// shared between all requests
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // client version
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // unix time
Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // allows requesters to use request data when processing a response
Sign []byte `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"` // signature of message data + method specific data by message authoring node.
// contains filtered or unexported fields
}
func (*P2PMessageHeaders) Descriptor
deprecated
added in
v1.65.0
func (*P2PMessageHeaders) Descriptor() ([]byte, []int)
Deprecated: Use P2PMessageHeaders.ProtoReflect.Descriptor instead.
func (*P2PMessageHeaders) GetId ¶ added in v1.65.0
func (x *P2PMessageHeaders) GetId() int64
func (*P2PMessageHeaders) GetSign ¶ added in v1.65.0
func (x *P2PMessageHeaders) GetSign() []byte
func (*P2PMessageHeaders) GetTimestamp ¶ added in v1.65.0
func (x *P2PMessageHeaders) GetTimestamp() int64
func (*P2PMessageHeaders) GetVersion ¶ added in v1.65.0
func (x *P2PMessageHeaders) GetVersion() string
func (*P2PMessageHeaders) ProtoMessage ¶ added in v1.65.0
func (*P2PMessageHeaders) ProtoMessage()
func (*P2PMessageHeaders) ProtoReflect ¶ added in v1.65.3
func (x *P2PMessageHeaders) ProtoReflect() protoreflect.Message
func (*P2PMessageHeaders) Reset ¶ added in v1.65.0
func (x *P2PMessageHeaders) Reset()
func (*P2PMessageHeaders) String ¶ added in v1.65.0
func (x *P2PMessageHeaders) String() string
type P2PPeerInfo ¶
type P2PPeerInfo struct {
///节点的IP地址
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
///节点的外网端口
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
///节点的名称
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
/// mempool 的大小
MempoolSize int32 `protobuf:"varint,4,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
///节点当前高度头部数据
Header *Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
LocalDBVersion string `protobuf:"bytes,7,opt,name=localDBVersion,proto3" json:"localDBVersion,omitempty"`
StoreDBVersion string `protobuf:"bytes,8,opt,name=storeDBVersion,proto3" json:"storeDBVersion,omitempty"`
RunningTime string `protobuf:"bytes,9,opt,name=runningTime,proto3" json:"runningTime,omitempty"`
FullNode bool `protobuf:"varint,10,opt,name=fullNode,proto3" json:"fullNode,omitempty"`
Blocked bool `protobuf:"varint,11,opt,name=blocked,proto3" json:"blocked,omitempty"`
// contains filtered or unexported fields
}
* 节点信息
func (*P2PPeerInfo) Descriptor
deprecated
func (*P2PPeerInfo) Descriptor() ([]byte, []int)
Deprecated: Use P2PPeerInfo.ProtoReflect.Descriptor instead.
func (*P2PPeerInfo) GetAddr ¶
func (x *P2PPeerInfo) GetAddr() string
func (*P2PPeerInfo) GetBlocked ¶ added in v1.65.3
func (x *P2PPeerInfo) GetBlocked() bool
func (*P2PPeerInfo) GetFullNode ¶ added in v1.65.3
func (x *P2PPeerInfo) GetFullNode() bool
func (*P2PPeerInfo) GetHeader ¶
func (x *P2PPeerInfo) GetHeader() *Header
func (*P2PPeerInfo) GetLocalDBVersion ¶ added in v1.65.0
func (x *P2PPeerInfo) GetLocalDBVersion() string
func (*P2PPeerInfo) GetMempoolSize ¶
func (x *P2PPeerInfo) GetMempoolSize() int32
func (*P2PPeerInfo) GetName ¶
func (x *P2PPeerInfo) GetName() string
func (*P2PPeerInfo) GetPort ¶
func (x *P2PPeerInfo) GetPort() int32
func (*P2PPeerInfo) GetRunningTime ¶ added in v1.65.3
func (x *P2PPeerInfo) GetRunningTime() string
func (*P2PPeerInfo) GetStoreDBVersion ¶ added in v1.65.0
func (x *P2PPeerInfo) GetStoreDBVersion() string
func (*P2PPeerInfo) GetVersion ¶ added in v1.65.0
func (x *P2PPeerInfo) GetVersion() string
func (*P2PPeerInfo) ProtoMessage ¶
func (*P2PPeerInfo) ProtoMessage()
func (*P2PPeerInfo) ProtoReflect ¶ added in v1.65.3
func (x *P2PPeerInfo) ProtoReflect() protoreflect.Message
func (*P2PPeerInfo) Reset ¶
func (x *P2PPeerInfo) Reset()
func (*P2PPeerInfo) String ¶
func (x *P2PPeerInfo) String() string
type P2PPing ¶
type P2PPing struct {
///随机数
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
///节点的外网地址
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
///节点的外网端口
Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
//签名
Sign *Signature `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
// contains filtered or unexported fields
}
* P2P 心跳包
func (*P2PPing) Descriptor
deprecated
func (*P2PPing) ProtoMessage ¶
func (*P2PPing) ProtoMessage()
func (*P2PPing) ProtoReflect ¶ added in v1.65.3
func (x *P2PPing) ProtoReflect() protoreflect.Message
type P2PPong ¶
type P2PPong struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
// contains filtered or unexported fields
}
* 心跳返回包
func (*P2PPong) Descriptor
deprecated
func (*P2PPong) ProtoMessage ¶
func (*P2PPong) ProtoMessage()
func (*P2PPong) ProtoReflect ¶ added in v1.65.3
func (x *P2PPong) ProtoReflect() protoreflect.Message
type P2PQueryData ¶
type P2PQueryData struct {
// Types that are assignable to Value:
// *P2PQueryData_TxReq
// *P2PQueryData_BlockTxReq
Value isP2PQueryData_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
节点收到区块或交易hash, 当在本地不存在时,需要请求重发完整交易或区块 采用统一结构减少消息类型
func (*P2PQueryData) Descriptor
deprecated
func (*P2PQueryData) Descriptor() ([]byte, []int)
Deprecated: Use P2PQueryData.ProtoReflect.Descriptor instead.
func (*P2PQueryData) GetBlockTxReq ¶
func (x *P2PQueryData) GetBlockTxReq() *P2PBlockTxReq
func (*P2PQueryData) GetTxReq ¶
func (x *P2PQueryData) GetTxReq() *P2PTxReq
func (*P2PQueryData) GetValue ¶
func (m *P2PQueryData) GetValue() isP2PQueryData_Value
func (*P2PQueryData) ProtoMessage ¶
func (*P2PQueryData) ProtoMessage()
func (*P2PQueryData) ProtoReflect ¶ added in v1.65.3
func (x *P2PQueryData) ProtoReflect() protoreflect.Message
func (*P2PQueryData) Reset ¶
func (x *P2PQueryData) Reset()
func (*P2PQueryData) String ¶
func (x *P2PQueryData) String() string
type P2PQueryData_BlockTxReq ¶
type P2PQueryData_BlockTxReq struct {
BlockTxReq *P2PBlockTxReq `protobuf:"bytes,2,opt,name=blockTxReq,proto3,oneof"`
}
type P2PQueryData_TxReq ¶
type P2PQueryData_TxReq struct {
TxReq *P2PTxReq `protobuf:"bytes,1,opt,name=txReq,proto3,oneof"`
}
type P2PRequest ¶ added in v1.65.0
type P2PRequest struct {
Headers *P2PMessageHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"`
// Types that are assignable to Request:
// *P2PRequest_ReqChunkRecords
// *P2PRequest_ChunkInfoMsg
// *P2PRequest_ChunkInfoList
// *P2PRequest_ReqBlocks
// *P2PRequest_ReqPeers
// *P2PRequest_Pid
// *P2PRequest_PeerInfo
// *P2PRequest_Provider
Request isP2PRequest_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*P2PRequest) Descriptor
deprecated
added in
v1.65.0
func (*P2PRequest) Descriptor() ([]byte, []int)
Deprecated: Use P2PRequest.ProtoReflect.Descriptor instead.
func (*P2PRequest) GetChunkInfoList ¶ added in v1.65.0
func (x *P2PRequest) GetChunkInfoList() *ChunkInfoList
func (*P2PRequest) GetChunkInfoMsg ¶ added in v1.65.0
func (x *P2PRequest) GetChunkInfoMsg() *ChunkInfoMsg
func (*P2PRequest) GetHeaders ¶ added in v1.65.0
func (x *P2PRequest) GetHeaders() *P2PMessageHeaders
func (*P2PRequest) GetPeerInfo ¶ added in v1.65.3
func (x *P2PRequest) GetPeerInfo() *PeerInfo
func (*P2PRequest) GetPid ¶ added in v1.65.3
func (x *P2PRequest) GetPid() string
func (*P2PRequest) GetProvider ¶ added in v1.65.3
func (x *P2PRequest) GetProvider() *ChunkProvider
func (*P2PRequest) GetReqBlocks ¶ added in v1.65.0
func (x *P2PRequest) GetReqBlocks() *ReqBlocks
func (*P2PRequest) GetReqChunkRecords ¶ added in v1.65.0
func (x *P2PRequest) GetReqChunkRecords() *ReqChunkRecords
func (*P2PRequest) GetReqPeers ¶ added in v1.65.1
func (x *P2PRequest) GetReqPeers() *ReqPeers
func (*P2PRequest) GetRequest ¶ added in v1.65.0
func (m *P2PRequest) GetRequest() isP2PRequest_Request
func (*P2PRequest) ProtoMessage ¶ added in v1.65.0
func (*P2PRequest) ProtoMessage()
func (*P2PRequest) ProtoReflect ¶ added in v1.65.3
func (x *P2PRequest) ProtoReflect() protoreflect.Message
func (*P2PRequest) Reset ¶ added in v1.65.0
func (x *P2PRequest) Reset()
func (*P2PRequest) String ¶ added in v1.65.0
func (x *P2PRequest) String() string
type P2PRequest_ChunkInfoList ¶ added in v1.65.0
type P2PRequest_ChunkInfoList struct {
ChunkInfoList *ChunkInfoList `protobuf:"bytes,4,opt,name=chunkInfoList,proto3,oneof"`
}
type P2PRequest_ChunkInfoMsg ¶ added in v1.65.0
type P2PRequest_ChunkInfoMsg struct {
ChunkInfoMsg *ChunkInfoMsg `protobuf:"bytes,3,opt,name=chunkInfoMsg,proto3,oneof"`
}
type P2PRequest_PeerInfo ¶ added in v1.65.3
type P2PRequest_PeerInfo struct {
PeerInfo *PeerInfo `protobuf:"bytes,8,opt,name=peerInfo,proto3,oneof"`
}
type P2PRequest_Pid ¶ added in v1.65.3
type P2PRequest_Pid struct {
Pid string `protobuf:"bytes,7,opt,name=pid,proto3,oneof"`
}
type P2PRequest_Provider ¶ added in v1.65.3
type P2PRequest_Provider struct {
Provider *ChunkProvider `protobuf:"bytes,9,opt,name=provider,proto3,oneof"`
}
type P2PRequest_ReqBlocks ¶ added in v1.65.0
type P2PRequest_ReqBlocks struct {
ReqBlocks *ReqBlocks `protobuf:"bytes,5,opt,name=reqBlocks,proto3,oneof"`
}
type P2PRequest_ReqChunkRecords ¶ added in v1.65.0
type P2PRequest_ReqChunkRecords struct {
ReqChunkRecords *ReqChunkRecords `protobuf:"bytes,2,opt,name=reqChunkRecords,proto3,oneof"`
}
type P2PRequest_ReqPeers ¶ added in v1.65.1
type P2PRequest_ReqPeers struct {
//新的协议可以继续添加request类型
ReqPeers *ReqPeers `protobuf:"bytes,6,opt,name=reqPeers,proto3,oneof"`
}
type P2PResponse ¶ added in v1.65.0
type P2PResponse struct {
Headers *P2PMessageHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
CloserPeers []*PeerInfo `protobuf:"bytes,3,rep,name=closerPeers,proto3" json:"closerPeers,omitempty"`
// Types that are assignable to Response:
// *P2PResponse_BlockBody
// *P2PResponse_BlockHeaders
// *P2PResponse_ChunkRecords
// *P2PResponse_NodeInfo
// *P2PResponse_PeerInfo
// *P2PResponse_PeerInfos
Response isP2PResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*P2PResponse) Descriptor
deprecated
added in
v1.65.0
func (*P2PResponse) Descriptor() ([]byte, []int)
Deprecated: Use P2PResponse.ProtoReflect.Descriptor instead.
func (*P2PResponse) GetBlockBody ¶ added in v1.65.0
func (x *P2PResponse) GetBlockBody() *BlockBody
func (*P2PResponse) GetBlockHeaders ¶ added in v1.65.0
func (x *P2PResponse) GetBlockHeaders() *Headers
func (*P2PResponse) GetChunkRecords ¶ added in v1.65.0
func (x *P2PResponse) GetChunkRecords() *ChunkRecords
func (*P2PResponse) GetCloserPeers ¶ added in v1.65.0
func (x *P2PResponse) GetCloserPeers() []*PeerInfo
func (*P2PResponse) GetError ¶ added in v1.65.0
func (x *P2PResponse) GetError() string
func (*P2PResponse) GetHeaders ¶ added in v1.65.0
func (x *P2PResponse) GetHeaders() *P2PMessageHeaders
func (*P2PResponse) GetNodeInfo ¶ added in v1.65.1
func (x *P2PResponse) GetNodeInfo() *NodeInfo
func (*P2PResponse) GetPeerInfo ¶ added in v1.65.3
func (x *P2PResponse) GetPeerInfo() *PeerInfo
func (*P2PResponse) GetPeerInfos ¶ added in v1.65.3
func (x *P2PResponse) GetPeerInfos() *PeerInfoList
func (*P2PResponse) GetResponse ¶ added in v1.65.0
func (m *P2PResponse) GetResponse() isP2PResponse_Response
func (*P2PResponse) ProtoMessage ¶ added in v1.65.0
func (*P2PResponse) ProtoMessage()
func (*P2PResponse) ProtoReflect ¶ added in v1.65.3
func (x *P2PResponse) ProtoReflect() protoreflect.Message
func (*P2PResponse) Reset ¶ added in v1.65.0
func (x *P2PResponse) Reset()
func (*P2PResponse) String ¶ added in v1.65.0
func (x *P2PResponse) String() string
type P2PResponse_BlockBody ¶ added in v1.65.0
type P2PResponse_BlockBody struct {
BlockBody *BlockBody `protobuf:"bytes,5,opt,name=blockBody,proto3,oneof"`
}
type P2PResponse_BlockHeaders ¶ added in v1.65.0
type P2PResponse_BlockHeaders struct {
BlockHeaders *Headers `protobuf:"bytes,6,opt,name=blockHeaders,proto3,oneof"`
}
type P2PResponse_ChunkRecords ¶ added in v1.65.0
type P2PResponse_ChunkRecords struct {
ChunkRecords *ChunkRecords `protobuf:"bytes,7,opt,name=chunkRecords,proto3,oneof"`
}
type P2PResponse_NodeInfo ¶ added in v1.65.1
type P2PResponse_NodeInfo struct {
//新的协议可以继续添加response类型
NodeInfo *NodeInfo `protobuf:"bytes,8,opt,name=nodeInfo,proto3,oneof"`
}
type P2PResponse_PeerInfo ¶ added in v1.65.3
type P2PResponse_PeerInfo struct {
PeerInfo *PeerInfo `protobuf:"bytes,9,opt,name=peerInfo,proto3,oneof"`
}
type P2PResponse_PeerInfos ¶ added in v1.65.3
type P2PResponse_PeerInfos struct {
PeerInfos *PeerInfoList `protobuf:"bytes,10,opt,name=peerInfos,proto3,oneof"`
}
type P2PRoute ¶
type P2PRoute struct {
TTL int32 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
// contains filtered or unexported fields
}
func (*P2PRoute) Descriptor
deprecated
func (*P2PRoute) ProtoMessage ¶
func (*P2PRoute) ProtoMessage()
func (*P2PRoute) ProtoReflect ¶ added in v1.65.3
func (x *P2PRoute) ProtoReflect() protoreflect.Message
type P2PTx ¶
type P2PTx struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
Route *P2PRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
// contains filtered or unexported fields
}
* p2p 发送交易协议
func (*P2PTx) Descriptor
deprecated
func (*P2PTx) GetTx ¶
func (x *P2PTx) GetTx() *Transaction
func (*P2PTx) ProtoMessage ¶
func (*P2PTx) ProtoMessage()
func (*P2PTx) ProtoReflect ¶ added in v1.65.3
func (x *P2PTx) ProtoReflect() protoreflect.Message
type P2PTxReq ¶
type P2PTxReq struct {
TxHash []byte `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
// contains filtered or unexported fields
}
请求完整交易数据
func (*P2PTxReq) Descriptor
deprecated
func (*P2PTxReq) ProtoMessage ¶
func (*P2PTxReq) ProtoMessage()
func (*P2PTxReq) ProtoReflect ¶ added in v1.65.3
func (x *P2PTxReq) ProtoReflect() protoreflect.Message
type P2PVerAck ¶
type P2PVerAck struct {
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
Nonce int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
// contains filtered or unexported fields
}
* P2P 版本返回
func (*P2PVerAck) Descriptor
deprecated
func (*P2PVerAck) GetService ¶
func (*P2PVerAck) GetVersion ¶
func (*P2PVerAck) ProtoMessage ¶
func (*P2PVerAck) ProtoMessage()
func (*P2PVerAck) ProtoReflect ¶ added in v1.65.3
func (x *P2PVerAck) ProtoReflect() protoreflect.Message
type P2PVersion ¶
type P2PVersion struct {
///当前版本
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
///服务类型
Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
///时间戳
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
///数据包的目的地址
AddrRecv string `protobuf:"bytes,4,opt,name=addrRecv,proto3" json:"addrRecv,omitempty"`
///数据发送的源地址
AddrFrom string `protobuf:"bytes,5,opt,name=addrFrom,proto3" json:"addrFrom,omitempty"`
///随机数
Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
///用户代理
UserAgent string `protobuf:"bytes,7,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
///当前节点的高度
StartHeight int64 `protobuf:"varint,8,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
// contains filtered or unexported fields
}
* p2p节点间发送版本数据结构
func (*P2PVersion) Descriptor
deprecated
func (*P2PVersion) Descriptor() ([]byte, []int)
Deprecated: Use P2PVersion.ProtoReflect.Descriptor instead.
func (*P2PVersion) GetAddrFrom ¶
func (x *P2PVersion) GetAddrFrom() string
func (*P2PVersion) GetAddrRecv ¶
func (x *P2PVersion) GetAddrRecv() string
func (*P2PVersion) GetNonce ¶
func (x *P2PVersion) GetNonce() int64
func (*P2PVersion) GetService ¶
func (x *P2PVersion) GetService() int64
func (*P2PVersion) GetStartHeight ¶
func (x *P2PVersion) GetStartHeight() int64
func (*P2PVersion) GetTimestamp ¶
func (x *P2PVersion) GetTimestamp() int64
func (*P2PVersion) GetUserAgent ¶
func (x *P2PVersion) GetUserAgent() string
func (*P2PVersion) GetVersion ¶
func (x *P2PVersion) GetVersion() int32
func (*P2PVersion) ProtoMessage ¶
func (*P2PVersion) ProtoMessage()
func (*P2PVersion) ProtoReflect ¶ added in v1.65.3
func (x *P2PVersion) ProtoReflect() protoreflect.Message
func (*P2PVersion) Reset ¶
func (x *P2PVersion) Reset()
func (*P2PVersion) String ¶
func (x *P2PVersion) String() string
type P2PgserviceClient ¶
type P2PgserviceClient interface {
//广播交易
BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error)
//广播区块
BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error)
// PING
Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error)
//获取地址
GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error)
GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error)
//版本
Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error)
//获取p2p协议的版本号
Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error)
//获取软件的版本号
SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error)
//获取区块,最高200
GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error)
//获取mempool
GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error)
//获取数据
GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error)
//获取头部
GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error)
//获取 peerinfo
GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error)
// grpc server 读客户端发送来的数据
ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error)
// grpc server 发送数据给客户端
ServerStreamSend(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (P2Pgservice_ServerStreamSendClient, error)
// grpc 收集inpeers
CollectInPeers(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeerList, error)
CollectInPeers2(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeersReply, error)
}
P2PgserviceClient is the client API for P2Pgservice service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewP2PgserviceClient ¶
func NewP2PgserviceClient(cc grpc.ClientConnInterface) P2PgserviceClient
type P2PgserviceServer ¶
type P2PgserviceServer interface {
//广播交易
BroadCastTx(context.Context, *P2PTx) (*Reply, error)
//广播区块
BroadCastBlock(context.Context, *P2PBlock) (*Reply, error)
// PING
Ping(context.Context, *P2PPing) (*P2PPong, error)
//获取地址
GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error)
GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error)
//版本
Version(context.Context, *P2PVersion) (*P2PVerAck, error)
//获取p2p协议的版本号
Version2(context.Context, *P2PVersion) (*P2PVersion, error)
//获取软件的版本号
SoftVersion(context.Context, *P2PPing) (*Reply, error)
//获取区块,最高200
GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error)
//获取mempool
GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error)
//获取数据
GetData(*P2PGetData, P2Pgservice_GetDataServer) error
//获取头部
GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error)
//获取 peerinfo
GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error)
// grpc server 读客户端发送来的数据
ServerStreamRead(P2Pgservice_ServerStreamReadServer) error
// grpc server 发送数据给客户端
ServerStreamSend(*P2PPing, P2Pgservice_ServerStreamSendServer) error
// grpc 收集inpeers
CollectInPeers(context.Context, *P2PPing) (*PeerList, error)
CollectInPeers2(context.Context, *P2PPing) (*PeersReply, error)
}
P2PgserviceServer is the server API for P2Pgservice service.
type P2Pgservice_GetDataClient ¶
type P2Pgservice_GetDataClient interface {
Recv() (*InvDatas, error)
grpc.ClientStream
}
type P2Pgservice_GetDataServer ¶
type P2Pgservice_GetDataServer interface {
Send(*InvDatas) error
grpc.ServerStream
}
type P2Pgservice_ServerStreamReadClient ¶
type P2Pgservice_ServerStreamReadClient interface {
Send(*BroadCastData) error
CloseAndRecv() (*ReqNil, error)
grpc.ClientStream
}
type P2Pgservice_ServerStreamReadServer ¶
type P2Pgservice_ServerStreamReadServer interface {
SendAndClose(*ReqNil) error
Recv() (*BroadCastData, error)
grpc.ServerStream
}
type P2Pgservice_ServerStreamSendClient ¶
type P2Pgservice_ServerStreamSendClient interface {
Recv() (*BroadCastData, error)
grpc.ClientStream
}
type P2Pgservice_ServerStreamSendServer ¶
type P2Pgservice_ServerStreamSendServer interface {
Send(*BroadCastData) error
grpc.ServerStream
}
type ParaChainBlockDetail ¶
type ParaChainBlockDetail struct {
Blockdetail *BlockDetail `protobuf:"bytes,1,opt,name=blockdetail,proto3" json:"blockdetail,omitempty"`
Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
IsSync bool `protobuf:"varint,3,opt,name=isSync,proto3" json:"isSync,omitempty"`
// contains filtered or unexported fields
}
平行链区块详细信息
blockdetail : 区块详细信息 sequence :区块序列号 isSync:写数据库时是否需要刷盘
func (*ParaChainBlockDetail) Descriptor
deprecated
func (*ParaChainBlockDetail) Descriptor() ([]byte, []int)
Deprecated: Use ParaChainBlockDetail.ProtoReflect.Descriptor instead.
func (*ParaChainBlockDetail) GetBlockdetail ¶
func (x *ParaChainBlockDetail) GetBlockdetail() *BlockDetail
func (*ParaChainBlockDetail) GetIsSync ¶
func (x *ParaChainBlockDetail) GetIsSync() bool
func (*ParaChainBlockDetail) GetSequence ¶
func (x *ParaChainBlockDetail) GetSequence() int64
func (*ParaChainBlockDetail) ProtoMessage ¶
func (*ParaChainBlockDetail) ProtoMessage()
func (*ParaChainBlockDetail) ProtoReflect ¶ added in v1.65.3
func (x *ParaChainBlockDetail) ProtoReflect() protoreflect.Message
func (*ParaChainBlockDetail) Reset ¶
func (x *ParaChainBlockDetail) Reset()
func (*ParaChainBlockDetail) String ¶
func (x *ParaChainBlockDetail) String() string
type ParaRPCConfig ¶ added in v1.68.0
type ParaRPCConfig struct {
//主链grpc服务地址, 支持多地址逗号分割负载均衡,如“118.31.177.1:8802,localhost:8802”
MainChainGrpcAddr string `json:"mainChainGrpcAddr,omitempty"`
// ForwardTxExecs 指定直接转发到主链的交易执行器
ForwardExecs []string `json:"forwardExecs,omitempty"`
// ForwardActionNames 指定转发到主链的交易actionName
ForwardActionNames []string `json:"forwardActionNames,omitempty"`
// 设置sync模式负载均衡, 默认使用多地址模式
UseGrpcLBSync bool `json:"useGrpcLBSync,omitempty"`
}
ParaRPCConfig 用于平行链节点配置
type ParaTxDetail ¶
type ParaTxDetail struct {
Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
Header *Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
TxDetails []*TxDetail `protobuf:"bytes,3,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
ChildHash []byte `protobuf:"bytes,4,opt,name=childHash,proto3" json:"childHash,omitempty"`
Index uint32 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
Proofs [][]byte `protobuf:"bytes,6,rep,name=proofs,proto3" json:"proofs,omitempty"`
// contains filtered or unexported fields
}
type:平行链交易所在区块add/del操作,方便平行链回滚 header:平行链交易所在区块头信息 txDetails:本区块中指定title平行链的所有交易 proofs:对应平行链子roothash的存在证明路径 childHash:此平行链交易的子roothash index:对应平行链子roothash在整个区块中的索引
func (*ParaTxDetail) Descriptor
deprecated
func (*ParaTxDetail) Descriptor() ([]byte, []int)
Deprecated: Use ParaTxDetail.ProtoReflect.Descriptor instead.
func (*ParaTxDetail) GetChildHash ¶
func (x *ParaTxDetail) GetChildHash() []byte
func (*ParaTxDetail) GetHeader ¶
func (x *ParaTxDetail) GetHeader() *Header
func (*ParaTxDetail) GetIndex ¶
func (x *ParaTxDetail) GetIndex() uint32
func (*ParaTxDetail) GetProofs ¶
func (x *ParaTxDetail) GetProofs() [][]byte
func (*ParaTxDetail) GetTxDetails ¶
func (x *ParaTxDetail) GetTxDetails() []*TxDetail
func (*ParaTxDetail) GetType ¶
func (x *ParaTxDetail) GetType() int64
func (*ParaTxDetail) ProtoMessage ¶
func (*ParaTxDetail) ProtoMessage()
func (*ParaTxDetail) ProtoReflect ¶ added in v1.65.3
func (x *ParaTxDetail) ProtoReflect() protoreflect.Message
func (*ParaTxDetail) Reset ¶
func (x *ParaTxDetail) Reset()
func (*ParaTxDetail) String ¶
func (x *ParaTxDetail) String() string
type ParaTxDetails ¶
type ParaTxDetails struct {
Items []*ParaTxDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
定义para交易结构
func (*ParaTxDetails) Descriptor
deprecated
func (*ParaTxDetails) Descriptor() ([]byte, []int)
Deprecated: Use ParaTxDetails.ProtoReflect.Descriptor instead.
func (*ParaTxDetails) GetItems ¶
func (x *ParaTxDetails) GetItems() []*ParaTxDetail
func (*ParaTxDetails) ProtoMessage ¶
func (*ParaTxDetails) ProtoMessage()
func (*ParaTxDetails) ProtoReflect ¶ added in v1.65.3
func (x *ParaTxDetails) ProtoReflect() protoreflect.Message
func (*ParaTxDetails) Reset ¶
func (x *ParaTxDetails) Reset()
func (*ParaTxDetails) String ¶
func (x *ParaTxDetails) String() string
type Peer ¶
type Peer struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Self bool `protobuf:"varint,4,opt,name=self,proto3" json:"self,omitempty"`
MempoolSize int32 `protobuf:"varint,5,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
Header *Header `protobuf:"bytes,6,opt,name=header,proto3" json:"header,omitempty"`
Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
LocalDBVersion string `protobuf:"bytes,8,opt,name=localDBVersion,proto3" json:"localDBVersion,omitempty"`
StoreDBVersion string `protobuf:"bytes,9,opt,name=storeDBVersion,proto3" json:"storeDBVersion,omitempty"`
RunningTime string `protobuf:"bytes,10,opt,name=runningTime,proto3" json:"runningTime,omitempty"`
FullNode bool `protobuf:"varint,11,opt,name=fullNode,proto3" json:"fullNode,omitempty"`
Blocked bool `protobuf:"varint,12,opt,name=blocked,proto3" json:"blocked,omitempty"`
Finalized *SnowChoice `protobuf:"bytes,13,opt,name=finalized,proto3" json:"finalized,omitempty"`
// contains filtered or unexported fields
}
* peer 信息
func (*Peer) Descriptor
deprecated
func (*Peer) GetBlocked ¶ added in v1.65.3
func (*Peer) GetFinalized ¶ added in v1.69.0
func (x *Peer) GetFinalized() *SnowChoice
func (*Peer) GetFullNode ¶ added in v1.65.3
func (*Peer) GetLocalDBVersion ¶ added in v1.65.0
func (*Peer) GetMempoolSize ¶
func (*Peer) GetRunningTime ¶ added in v1.65.3
func (*Peer) GetStoreDBVersion ¶ added in v1.65.0
func (*Peer) GetVersion ¶ added in v1.65.0
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) ProtoReflect ¶ added in v1.65.3
func (x *Peer) ProtoReflect() protoreflect.Message
type PeerInfo ¶ added in v1.65.0
type PeerInfo struct {
ID []byte `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
MultiAddr [][]byte `protobuf:"bytes,2,rep,name=MultiAddr,proto3" json:"MultiAddr,omitempty"`
// contains filtered or unexported fields
}
func (*PeerInfo) Descriptor
deprecated
added in
v1.65.0
func (*PeerInfo) GetMultiAddr ¶ added in v1.65.0
func (*PeerInfo) ProtoMessage ¶ added in v1.65.0
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) ProtoReflect ¶ added in v1.65.3
func (x *PeerInfo) ProtoReflect() protoreflect.Message
type PeerInfoList ¶ added in v1.65.3
type PeerInfoList struct {
PeerInfos []*PeerInfo `protobuf:"bytes,1,rep,name=peerInfos,proto3" json:"peerInfos,omitempty"`
// contains filtered or unexported fields
}
func (*PeerInfoList) Descriptor
deprecated
added in
v1.65.3
func (*PeerInfoList) Descriptor() ([]byte, []int)
Deprecated: Use PeerInfoList.ProtoReflect.Descriptor instead.
func (*PeerInfoList) GetPeerInfos ¶ added in v1.65.3
func (x *PeerInfoList) GetPeerInfos() []*PeerInfo
func (*PeerInfoList) ProtoMessage ¶ added in v1.65.3
func (*PeerInfoList) ProtoMessage()
func (*PeerInfoList) ProtoReflect ¶ added in v1.65.3
func (x *PeerInfoList) ProtoReflect() protoreflect.Message
func (*PeerInfoList) Reset ¶ added in v1.65.3
func (x *PeerInfoList) Reset()
func (*PeerInfoList) String ¶ added in v1.65.3
func (x *PeerInfoList) String() string
type PeerList ¶
type PeerList struct {
Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
// contains filtered or unexported fields
}
* peer 列表
func (*PeerList) Descriptor
deprecated
func (*PeerList) ProtoMessage ¶
func (*PeerList) ProtoMessage()
func (*PeerList) ProtoReflect ¶ added in v1.65.3
func (x *PeerList) ProtoReflect() protoreflect.Message
type PeerPubSubMsg ¶ added in v1.66.1
type PeerPubSubMsg struct {
MsgID int32 `protobuf:"varint,1,opt,name=msgID,proto3" json:"msgID,omitempty"`
ProtoMsg []byte `protobuf:"bytes,2,opt,name=protoMsg,proto3" json:"protoMsg,omitempty"`
// contains filtered or unexported fields
}
dht pub sub 通信数据
func (*PeerPubSubMsg) Descriptor
deprecated
added in
v1.66.1
func (*PeerPubSubMsg) Descriptor() ([]byte, []int)
Deprecated: Use PeerPubSubMsg.ProtoReflect.Descriptor instead.
func (*PeerPubSubMsg) GetMsgID ¶ added in v1.66.1
func (x *PeerPubSubMsg) GetMsgID() int32
func (*PeerPubSubMsg) GetProtoMsg ¶ added in v1.66.1
func (x *PeerPubSubMsg) GetProtoMsg() []byte
func (*PeerPubSubMsg) ProtoMessage ¶ added in v1.66.1
func (*PeerPubSubMsg) ProtoMessage()
func (*PeerPubSubMsg) ProtoReflect ¶ added in v1.66.1
func (x *PeerPubSubMsg) ProtoReflect() protoreflect.Message
func (*PeerPubSubMsg) Reset ¶ added in v1.66.1
func (x *PeerPubSubMsg) Reset()
func (*PeerPubSubMsg) String ¶ added in v1.66.1
func (x *PeerPubSubMsg) String() string
type PeersInfo ¶
type PeersInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
Softversion string `protobuf:"bytes,4,opt,name=softversion,proto3" json:"softversion,omitempty"`
P2Pversion int32 `protobuf:"varint,5,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
// contains filtered or unexported fields
}
func (*PeersInfo) Descriptor
deprecated
func (*PeersInfo) GetP2Pversion ¶
func (*PeersInfo) GetSoftversion ¶
func (*PeersInfo) ProtoMessage ¶
func (*PeersInfo) ProtoMessage()
func (*PeersInfo) ProtoReflect ¶ added in v1.65.3
func (x *PeersInfo) ProtoReflect() protoreflect.Message
type PeersReply ¶
type PeersReply struct {
Peers []*PeersInfo `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
// contains filtered or unexported fields
}
func (*PeersReply) Descriptor
deprecated
func (*PeersReply) Descriptor() ([]byte, []int)
Deprecated: Use PeersReply.ProtoReflect.Descriptor instead.
func (*PeersReply) GetPeers ¶
func (x *PeersReply) GetPeers() []*PeersInfo
func (*PeersReply) ProtoMessage ¶
func (*PeersReply) ProtoMessage()
func (*PeersReply) ProtoReflect ¶ added in v1.65.3
func (x *PeersReply) ProtoReflect() protoreflect.Message
func (*PeersReply) Reset ¶
func (x *PeersReply) Reset()
func (*PeersReply) String ¶
func (x *PeersReply) String() string
type ProtocolInfo ¶ added in v1.65.0
type ProtocolInfo struct {
Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
Ratein string `protobuf:"bytes,2,opt,name=ratein,proto3" json:"ratein,omitempty"`
Rateout string `protobuf:"bytes,3,opt,name=rateout,proto3" json:"rateout,omitempty"`
Ratetotal string `protobuf:"bytes,4,opt,name=ratetotal,proto3" json:"ratetotal,omitempty"`
// contains filtered or unexported fields
}
func (*ProtocolInfo) Descriptor
deprecated
added in
v1.65.0
func (*ProtocolInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolInfo.ProtoReflect.Descriptor instead.
func (*ProtocolInfo) GetProtocol ¶ added in v1.65.0
func (x *ProtocolInfo) GetProtocol() string
func (*ProtocolInfo) GetRatein ¶ added in v1.65.0
func (x *ProtocolInfo) GetRatein() string
func (*ProtocolInfo) GetRateout ¶ added in v1.65.0
func (x *ProtocolInfo) GetRateout() string
func (*ProtocolInfo) GetRatetotal ¶ added in v1.65.0
func (x *ProtocolInfo) GetRatetotal() string
func (*ProtocolInfo) ProtoMessage ¶ added in v1.65.0
func (*ProtocolInfo) ProtoMessage()
func (*ProtocolInfo) ProtoReflect ¶ added in v1.65.3
func (x *ProtocolInfo) ProtoReflect() protoreflect.Message
func (*ProtocolInfo) Reset ¶ added in v1.65.0
func (x *ProtocolInfo) Reset()
func (*ProtocolInfo) String ¶ added in v1.65.0
func (x *ProtocolInfo) String() string
type PruneData ¶
type PruneData struct {
// 该叶子节点的所有父hash
Hashs [][]byte `protobuf:"bytes,1,rep,name=hashs,proto3" json:"hashs,omitempty"`
// contains filtered or unexported fields
}
func (*PruneData) Descriptor
deprecated
func (*PruneData) ProtoMessage ¶
func (*PruneData) ProtoMessage()
func (*PruneData) ProtoReflect ¶ added in v1.65.3
func (x *PruneData) ProtoReflect() protoreflect.Message
type PublishTopicMsg ¶ added in v1.65.0
type PublishTopicMsg struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*PublishTopicMsg) Descriptor
deprecated
added in
v1.65.0
func (*PublishTopicMsg) Descriptor() ([]byte, []int)
Deprecated: Use PublishTopicMsg.ProtoReflect.Descriptor instead.
func (*PublishTopicMsg) GetMsg ¶ added in v1.65.0
func (x *PublishTopicMsg) GetMsg() []byte
func (*PublishTopicMsg) GetTopic ¶ added in v1.65.0
func (x *PublishTopicMsg) GetTopic() string
func (*PublishTopicMsg) ProtoMessage ¶ added in v1.65.0
func (*PublishTopicMsg) ProtoMessage()
func (*PublishTopicMsg) ProtoReflect ¶ added in v1.65.3
func (x *PublishTopicMsg) ProtoReflect() protoreflect.Message
func (*PublishTopicMsg) Reset ¶ added in v1.65.0
func (x *PublishTopicMsg) Reset()
func (*PublishTopicMsg) String ¶ added in v1.65.0
func (x *PublishTopicMsg) String() string
type PublishTopicMsgReply ¶ added in v1.65.0
type PublishTopicMsgReply struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*PublishTopicMsgReply) Descriptor
deprecated
added in
v1.65.0
func (*PublishTopicMsgReply) Descriptor() ([]byte, []int)
Deprecated: Use PublishTopicMsgReply.ProtoReflect.Descriptor instead.
func (*PublishTopicMsgReply) GetMsg ¶ added in v1.65.0
func (x *PublishTopicMsgReply) GetMsg() string
func (*PublishTopicMsgReply) GetStatus ¶ added in v1.65.0
func (x *PublishTopicMsgReply) GetStatus() bool
func (*PublishTopicMsgReply) GetTopic ¶ added in v1.65.0
func (x *PublishTopicMsgReply) GetTopic() string
func (*PublishTopicMsgReply) ProtoMessage ¶ added in v1.65.0
func (*PublishTopicMsgReply) ProtoMessage()
func (*PublishTopicMsgReply) ProtoReflect ¶ added in v1.65.3
func (x *PublishTopicMsgReply) ProtoReflect() protoreflect.Message
func (*PublishTopicMsgReply) Reset ¶ added in v1.65.0
func (x *PublishTopicMsgReply) Reset()
func (*PublishTopicMsgReply) String ¶ added in v1.65.0
func (x *PublishTopicMsgReply) String() string
type PushData ¶ added in v1.66.1
type PushData struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are assignable to Value:
// *PushData_BlockSeqs
// *PushData_HeaderSeqs
// *PushData_TxReceipts
// *PushData_TxResult
// *PushData_EvmLogs
Value isPushData_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*PushData) Descriptor
deprecated
added in
v1.66.1
func (*PushData) GetBlockSeqs ¶ added in v1.66.1
func (*PushData) GetEvmLogs ¶ added in v1.66.1
func (x *PushData) GetEvmLogs() *EVMTxLogsInBlks
func (*PushData) GetHeaderSeqs ¶ added in v1.66.1
func (x *PushData) GetHeaderSeqs() *HeaderSeqs
func (*PushData) GetTxReceipts ¶ added in v1.66.1
func (x *PushData) GetTxReceipts() *TxReceipts4Subscribe
func (*PushData) GetTxResult ¶ added in v1.66.1
func (x *PushData) GetTxResult() *TxResultSeqs
func (*PushData) ProtoMessage ¶ added in v1.66.1
func (*PushData) ProtoMessage()
func (*PushData) ProtoReflect ¶ added in v1.66.1
func (x *PushData) ProtoReflect() protoreflect.Message
type PushData_BlockSeqs ¶ added in v1.66.1
type PushData_BlockSeqs struct {
BlockSeqs *BlockSeqs `protobuf:"bytes,2,opt,name=blockSeqs,proto3,oneof"`
}
type PushData_EvmLogs ¶ added in v1.66.1
type PushData_EvmLogs struct {
EvmLogs *EVMTxLogsInBlks `protobuf:"bytes,6,opt,name=evmLogs,proto3,oneof"`
}
type PushData_HeaderSeqs ¶ added in v1.66.1
type PushData_HeaderSeqs struct {
HeaderSeqs *HeaderSeqs `protobuf:"bytes,3,opt,name=headerSeqs,proto3,oneof"`
}
type PushData_TxReceipts ¶ added in v1.66.1
type PushData_TxReceipts struct {
TxReceipts *TxReceipts4Subscribe `protobuf:"bytes,4,opt,name=txReceipts,proto3,oneof"`
}
type PushData_TxResult ¶ added in v1.66.1
type PushData_TxResult struct {
TxResult *TxResultSeqs `protobuf:"bytes,5,opt,name=txResult,proto3,oneof"`
}
type PushSubscribeReq ¶ added in v1.65.0
type PushSubscribeReq struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
URL string `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"`
Encode string `protobuf:"bytes,3,opt,name=encode,proto3" json:"encode,omitempty"`
LastSequence int64 `protobuf:"varint,4,opt,name=lastSequence,proto3" json:"lastSequence,omitempty"`
LastHeight int64 `protobuf:"varint,5,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"`
LastBlockHash string `protobuf:"bytes,6,opt,name=lastBlockHash,proto3" json:"lastBlockHash,omitempty"`
// 0:代表区块;1:代表区块头信息;2:代表交易回执
Type int32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"`
//允许订阅多个类型的交易回执
Contract map[string]bool `` /* 158-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*PushSubscribeReq) Descriptor
deprecated
added in
v1.65.0
func (*PushSubscribeReq) Descriptor() ([]byte, []int)
Deprecated: Use PushSubscribeReq.ProtoReflect.Descriptor instead.
func (*PushSubscribeReq) GetContract ¶ added in v1.65.0
func (x *PushSubscribeReq) GetContract() map[string]bool
func (*PushSubscribeReq) GetEncode ¶ added in v1.65.0
func (x *PushSubscribeReq) GetEncode() string
func (*PushSubscribeReq) GetLastBlockHash ¶ added in v1.65.0
func (x *PushSubscribeReq) GetLastBlockHash() string
func (*PushSubscribeReq) GetLastHeight ¶ added in v1.65.0
func (x *PushSubscribeReq) GetLastHeight() int64
func (*PushSubscribeReq) GetLastSequence ¶ added in v1.65.0
func (x *PushSubscribeReq) GetLastSequence() int64
func (*PushSubscribeReq) GetName ¶ added in v1.65.0
func (x *PushSubscribeReq) GetName() string
func (*PushSubscribeReq) GetType ¶ added in v1.65.0
func (x *PushSubscribeReq) GetType() int32
func (*PushSubscribeReq) GetURL ¶ added in v1.65.0
func (x *PushSubscribeReq) GetURL() string
func (*PushSubscribeReq) ProtoMessage ¶ added in v1.65.0
func (*PushSubscribeReq) ProtoMessage()
func (*PushSubscribeReq) ProtoReflect ¶ added in v1.65.3
func (x *PushSubscribeReq) ProtoReflect() protoreflect.Message
func (*PushSubscribeReq) Reset ¶ added in v1.65.0
func (x *PushSubscribeReq) Reset()
func (*PushSubscribeReq) String ¶ added in v1.65.0
func (x *PushSubscribeReq) String() string
type PushSubscribes ¶ added in v1.65.0
type PushSubscribes struct {
Pushes []*PushSubscribeReq `protobuf:"bytes,1,rep,name=pushes,proto3" json:"pushes,omitempty"`
// contains filtered or unexported fields
}
func (*PushSubscribes) Descriptor
deprecated
added in
v1.65.0
func (*PushSubscribes) Descriptor() ([]byte, []int)
Deprecated: Use PushSubscribes.ProtoReflect.Descriptor instead.
func (*PushSubscribes) GetPushes ¶ added in v1.65.0
func (x *PushSubscribes) GetPushes() []*PushSubscribeReq
func (*PushSubscribes) ProtoMessage ¶ added in v1.65.0
func (*PushSubscribes) ProtoMessage()
func (*PushSubscribes) ProtoReflect ¶ added in v1.65.3
func (x *PushSubscribes) ProtoReflect() protoreflect.Message
func (*PushSubscribes) Reset ¶ added in v1.65.0
func (x *PushSubscribes) Reset()
func (*PushSubscribes) String ¶ added in v1.65.0
func (x *PushSubscribes) String() string
type PushWithStatus ¶ added in v1.65.0
type PushWithStatus struct {
Push *PushSubscribeReq `protobuf:"bytes,1,opt,name=push,proto3" json:"push,omitempty"`
// 1:active,2:noactive
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*PushWithStatus) Descriptor
deprecated
added in
v1.65.0
func (*PushWithStatus) Descriptor() ([]byte, []int)
Deprecated: Use PushWithStatus.ProtoReflect.Descriptor instead.
func (*PushWithStatus) GetPush ¶ added in v1.65.0
func (x *PushWithStatus) GetPush() *PushSubscribeReq
func (*PushWithStatus) GetStatus ¶ added in v1.65.0
func (x *PushWithStatus) GetStatus() int32
func (*PushWithStatus) ProtoMessage ¶ added in v1.65.0
func (*PushWithStatus) ProtoMessage()
func (*PushWithStatus) ProtoReflect ¶ added in v1.65.3
func (x *PushWithStatus) ProtoReflect() protoreflect.Message
func (*PushWithStatus) Reset ¶ added in v1.65.0
func (x *PushWithStatus) Reset()
func (*PushWithStatus) String ¶ added in v1.65.0
func (x *PushWithStatus) String() string
type Query ¶
type Query struct {
Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
FuncName string `protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
func (*Query) Descriptor
deprecated
func (*Query) GetFuncName ¶
func (*Query) GetPayload ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶ added in v1.65.3
func (x *Query) ProtoReflect() protoreflect.Message
type QueryData ¶
QueryData 查询结构体
func (*QueryData) DecodeJSON ¶
DecodeJSON 编码成json格式
type RPC ¶
type RPC struct {
// jrpc绑定地址
JrpcBindAddr string `json:"jrpcBindAddr,omitempty"`
// grpc绑定地址
GrpcBindAddr string `json:"grpcBindAddr,omitempty"`
//ethereum rpc bindaddr
ErpcBindAddr string `json:"erpcBindAddr,omitempty"`
// 白名单列表,允许访问的IP地址,默认是“*”,允许所有IP访问
Whitlist []string `json:"whitlist,omitempty"`
Whitelist []string `json:"whitelist,omitempty"`
// jrpc方法请求白名单,默认是“*”,允许访问所有RPC方法
JrpcFuncWhitelist []string `json:"jrpcFuncWhitelist,omitempty"`
// grpc方法请求白名单,默认是“*”,允许访问所有RPC方法
GrpcFuncWhitelist []string `json:"grpcFuncWhitelist,omitempty"`
// jrpc方法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
JrpcFuncBlacklist []string `json:"jrpcFuncBlacklist,omitempty"`
// grpc方法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
GrpcFuncBlacklist []string `json:"grpcFuncBlacklist,omitempty"`
//eth erpc法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
ErpcFuncBlacklist []string `json:"erpcFuncBlacklist,omitempty"`
// 是否开启https
EnableTLS bool `json:"enableTLS,omitempty"`
EnableTrace bool `json:"enableTrace,omitempty"`
// 证书文件,证书和私钥文件可以用cli工具生成
CertFile string `json:"certFile,omitempty"`
// 私钥文件
KeyFile string `json:"keyFile,omitempty"`
//basic auth 用户名
JrpcUserName string `json:"jrpcUserName,omitempty"`
//basic auth 用户密码
JrpcUserPasswd string `json:"jrpcUserPasswd,omitempty"`
ParaChain ParaRPCConfig `json:"parachain,omitempty"`
}
RPC 配置
type ReWriteRawTx ¶
type ReWriteRawTx struct {
Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
// bytes execer = 2;
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
Expire string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
Fee int64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
Index int32 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
func (*ReWriteRawTx) Descriptor
deprecated
func (*ReWriteRawTx) Descriptor() ([]byte, []int)
Deprecated: Use ReWriteRawTx.ProtoReflect.Descriptor instead.
func (*ReWriteRawTx) GetExpire ¶
func (x *ReWriteRawTx) GetExpire() string
func (*ReWriteRawTx) GetFee ¶
func (x *ReWriteRawTx) GetFee() int64
func (*ReWriteRawTx) GetIndex ¶
func (x *ReWriteRawTx) GetIndex() int32
func (*ReWriteRawTx) GetTo ¶
func (x *ReWriteRawTx) GetTo() string
func (*ReWriteRawTx) GetTx ¶
func (x *ReWriteRawTx) GetTx() string
func (*ReWriteRawTx) ProtoMessage ¶
func (*ReWriteRawTx) ProtoMessage()
func (*ReWriteRawTx) ProtoReflect ¶ added in v1.65.3
func (x *ReWriteRawTx) ProtoReflect() protoreflect.Message
func (*ReWriteRawTx) Reset ¶
func (x *ReWriteRawTx) Reset()
func (*ReWriteRawTx) String ¶
func (x *ReWriteRawTx) String() string
type Receipt ¶
type Receipt struct {
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
KV []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
Logs []*ReceiptLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
// contains filtered or unexported fields
}
ty = 0 -> error Receipt ty = 1 -> CutFee //cut fee ,bug exec not ok ty = 2 -> exec ok
func (*Receipt) Descriptor
deprecated
func (*Receipt) GetLogs ¶
func (x *Receipt) GetLogs() []*ReceiptLog
func (*Receipt) ProtoMessage ¶
func (*Receipt) ProtoMessage()
func (*Receipt) ProtoReflect ¶ added in v1.65.3
func (x *Receipt) ProtoReflect() protoreflect.Message
type ReceiptAccountBurn ¶
type ReceiptAccountBurn struct {
Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptAccountBurn) Descriptor
deprecated
func (*ReceiptAccountBurn) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptAccountBurn.ProtoReflect.Descriptor instead.
func (*ReceiptAccountBurn) GetCurrent ¶
func (x *ReceiptAccountBurn) GetCurrent() *Account
func (*ReceiptAccountBurn) GetPrev ¶
func (x *ReceiptAccountBurn) GetPrev() *Account
func (*ReceiptAccountBurn) ProtoMessage ¶
func (*ReceiptAccountBurn) ProtoMessage()
func (*ReceiptAccountBurn) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptAccountBurn) ProtoReflect() protoreflect.Message
func (*ReceiptAccountBurn) Reset ¶
func (x *ReceiptAccountBurn) Reset()
func (*ReceiptAccountBurn) String ¶
func (x *ReceiptAccountBurn) String() string
type ReceiptAccountMint ¶
type ReceiptAccountMint struct {
//铸币前
Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
//铸币后
Current *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
铸币账户余额增加
func (*ReceiptAccountMint) Descriptor
deprecated
func (*ReceiptAccountMint) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptAccountMint.ProtoReflect.Descriptor instead.
func (*ReceiptAccountMint) GetCurrent ¶
func (x *ReceiptAccountMint) GetCurrent() *Account
func (*ReceiptAccountMint) GetPrev ¶
func (x *ReceiptAccountMint) GetPrev() *Account
func (*ReceiptAccountMint) ProtoMessage ¶
func (*ReceiptAccountMint) ProtoMessage()
func (*ReceiptAccountMint) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptAccountMint) ProtoReflect() protoreflect.Message
func (*ReceiptAccountMint) Reset ¶
func (x *ReceiptAccountMint) Reset()
func (*ReceiptAccountMint) String ¶
func (x *ReceiptAccountMint) String() string
type ReceiptAccountTransfer ¶
type ReceiptAccountTransfer struct {
//转移前
Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
//转移后
Current *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
账户余额改变的一个交易回报(coins内)
func (*ReceiptAccountTransfer) Descriptor
deprecated
func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptAccountTransfer.ProtoReflect.Descriptor instead.
func (*ReceiptAccountTransfer) GetCurrent ¶
func (x *ReceiptAccountTransfer) GetCurrent() *Account
func (*ReceiptAccountTransfer) GetPrev ¶
func (x *ReceiptAccountTransfer) GetPrev() *Account
func (*ReceiptAccountTransfer) ProtoMessage ¶
func (*ReceiptAccountTransfer) ProtoMessage()
func (*ReceiptAccountTransfer) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptAccountTransfer) ProtoReflect() protoreflect.Message
func (*ReceiptAccountTransfer) Reset ¶
func (x *ReceiptAccountTransfer) Reset()
func (*ReceiptAccountTransfer) String ¶
func (x *ReceiptAccountTransfer) String() string
type ReceiptCheckTxList ¶
type ReceiptCheckTxList struct {
Errs []string `protobuf:"bytes,1,rep,name=errs,proto3" json:"errs,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptCheckTxList) Descriptor
deprecated
func (*ReceiptCheckTxList) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptCheckTxList.ProtoReflect.Descriptor instead.
func (*ReceiptCheckTxList) GetErrs ¶
func (x *ReceiptCheckTxList) GetErrs() []string
func (*ReceiptCheckTxList) ProtoMessage ¶
func (*ReceiptCheckTxList) ProtoMessage()
func (*ReceiptCheckTxList) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptCheckTxList) ProtoReflect() protoreflect.Message
func (*ReceiptCheckTxList) Reset ¶
func (x *ReceiptCheckTxList) Reset()
func (*ReceiptCheckTxList) String ¶
func (x *ReceiptCheckTxList) String() string
type ReceiptConfig ¶
type ReceiptConfig struct {
Prev *ConfigItem `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current *ConfigItem `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptConfig) Descriptor
deprecated
func (*ReceiptConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptConfig.ProtoReflect.Descriptor instead.
func (*ReceiptConfig) GetCurrent ¶
func (x *ReceiptConfig) GetCurrent() *ConfigItem
func (*ReceiptConfig) GetPrev ¶
func (x *ReceiptConfig) GetPrev() *ConfigItem
func (*ReceiptConfig) ProtoMessage ¶
func (*ReceiptConfig) ProtoMessage()
func (*ReceiptConfig) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptConfig) ProtoReflect() protoreflect.Message
func (*ReceiptConfig) Reset ¶
func (x *ReceiptConfig) Reset()
func (*ReceiptConfig) String ¶
func (x *ReceiptConfig) String() string
type ReceiptData ¶
type ReceiptData struct {
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
Logs []*ReceiptLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
// contains filtered or unexported fields
}
func CloneReceipts ¶ added in v1.65.3
func CloneReceipts(b []*ReceiptData) []*ReceiptData
CloneReceipts 浅拷贝交易回报
func (*ReceiptData) DecodeReceiptLog ¶
func (r *ReceiptData) DecodeReceiptLog(execer []byte) (*ReceiptDataResult, error)
DecodeReceiptLog 编码回执数据
func (*ReceiptData) Descriptor
deprecated
func (*ReceiptData) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptData.ProtoReflect.Descriptor instead.
func (*ReceiptData) GetLogs ¶
func (x *ReceiptData) GetLogs() []*ReceiptLog
func (*ReceiptData) GetTy ¶
func (x *ReceiptData) GetTy() int32
func (*ReceiptData) OutputReceiptDetails ¶
func (r *ReceiptData) OutputReceiptDetails(execer []byte, logger log.Logger)
OutputReceiptDetails 输出回执数据详情
func (*ReceiptData) ProtoMessage ¶
func (*ReceiptData) ProtoMessage()
func (*ReceiptData) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptData) ProtoReflect() protoreflect.Message
func (*ReceiptData) Reset ¶
func (x *ReceiptData) Reset()
func (*ReceiptData) String ¶
func (x *ReceiptData) String() string
type ReceiptDataResult ¶
type ReceiptDataResult struct {
Ty int32 `json:"ty"`
TyName string `json:"tyname"`
Logs []*ReceiptLogResult `json:"logs"`
}
ReceiptDataResult 回执数据
type ReceiptExecAccountTransfer ¶
type ReceiptExecAccountTransfer struct {
//合约地址
ExecAddr string `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
//转移前
Prev *Account `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
//转移后
Current *Account `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
// contains filtered or unexported fields
}
账户余额改变的一个交易回报(合约内)
func (*ReceiptExecAccountTransfer) Descriptor
deprecated
func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptExecAccountTransfer.ProtoReflect.Descriptor instead.
func (*ReceiptExecAccountTransfer) GetCurrent ¶
func (x *ReceiptExecAccountTransfer) GetCurrent() *Account
func (*ReceiptExecAccountTransfer) GetExecAddr ¶
func (x *ReceiptExecAccountTransfer) GetExecAddr() string
func (*ReceiptExecAccountTransfer) GetPrev ¶
func (x *ReceiptExecAccountTransfer) GetPrev() *Account
func (*ReceiptExecAccountTransfer) ProtoMessage ¶
func (*ReceiptExecAccountTransfer) ProtoMessage()
func (*ReceiptExecAccountTransfer) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptExecAccountTransfer) ProtoReflect() protoreflect.Message
func (*ReceiptExecAccountTransfer) Reset ¶
func (x *ReceiptExecAccountTransfer) Reset()
func (*ReceiptExecAccountTransfer) String ¶
func (x *ReceiptExecAccountTransfer) String() string
type ReceiptLog ¶
type ReceiptLog struct {
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
Log []byte `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiptLog) Descriptor
deprecated
func (*ReceiptLog) Descriptor() ([]byte, []int)
Deprecated: Use ReceiptLog.ProtoReflect.Descriptor instead.
func (*ReceiptLog) GetLog ¶
func (x *ReceiptLog) GetLog() []byte
func (*ReceiptLog) GetTy ¶
func (x *ReceiptLog) GetTy() int32
func (*ReceiptLog) ProtoMessage ¶
func (*ReceiptLog) ProtoMessage()
func (*ReceiptLog) ProtoReflect ¶ added in v1.65.3
func (x *ReceiptLog) ProtoReflect() protoreflect.Message
func (*ReceiptLog) Reset ¶
func (x *ReceiptLog) Reset()
func (*ReceiptLog) String ¶
func (x *ReceiptLog) String() string
type ReceiptLogResult ¶
type ReceiptLogResult struct {
Ty int32 `json:"ty"`
TyName string `json:"tyname"`
Log interface{} `json:"log"`
RawLog string `json:"rawlog"`
}
ReceiptLogResult 回执log数据
type Receipts ¶
type Receipts struct {
Receipts []*Receipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
// contains filtered or unexported fields
}
func (*Receipts) Descriptor
deprecated
func (*Receipts) GetReceipts ¶
func (*Receipts) ProtoMessage ¶
func (*Receipts) ProtoMessage()
func (*Receipts) ProtoReflect ¶ added in v1.65.3
func (x *Receipts) ProtoReflect() protoreflect.Message
type RemoveTopic ¶ added in v1.65.0
type RemoveTopic struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveTopic) Descriptor
deprecated
added in
v1.65.0
func (*RemoveTopic) Descriptor() ([]byte, []int)
Deprecated: Use RemoveTopic.ProtoReflect.Descriptor instead.
func (*RemoveTopic) GetModule ¶ added in v1.65.0
func (x *RemoveTopic) GetModule() string
func (*RemoveTopic) GetTopic ¶ added in v1.65.0
func (x *RemoveTopic) GetTopic() string
func (*RemoveTopic) ProtoMessage ¶ added in v1.65.0
func (*RemoveTopic) ProtoMessage()
func (*RemoveTopic) ProtoReflect ¶ added in v1.65.3
func (x *RemoveTopic) ProtoReflect() protoreflect.Message
func (*RemoveTopic) Reset ¶ added in v1.65.0
func (x *RemoveTopic) Reset()
func (*RemoveTopic) String ¶ added in v1.65.0
func (x *RemoveTopic) String() string
type RemoveTopicReply ¶ added in v1.65.0
type RemoveTopicReply struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*RemoveTopicReply) Descriptor
deprecated
added in
v1.65.0
func (*RemoveTopicReply) Descriptor() ([]byte, []int)
Deprecated: Use RemoveTopicReply.ProtoReflect.Descriptor instead.
func (*RemoveTopicReply) GetMsg ¶ added in v1.65.0
func (x *RemoveTopicReply) GetMsg() string
func (*RemoveTopicReply) GetStatus ¶ added in v1.65.0
func (x *RemoveTopicReply) GetStatus() bool
func (*RemoveTopicReply) GetTopic ¶ added in v1.65.0
func (x *RemoveTopicReply) GetTopic() string
func (*RemoveTopicReply) ProtoMessage ¶ added in v1.65.0
func (*RemoveTopicReply) ProtoMessage()
func (*RemoveTopicReply) ProtoReflect ¶ added in v1.65.3
func (x *RemoveTopicReply) ProtoReflect() protoreflect.Message
func (*RemoveTopicReply) Reset ¶ added in v1.65.0
func (x *RemoveTopicReply) Reset()
func (*RemoveTopicReply) String ¶ added in v1.65.0
func (x *RemoveTopicReply) String() string
type Replies ¶ added in v1.65.3
type Replies struct {
ReplyList []*Reply `protobuf:"bytes,1,rep,name=replyList,proto3" json:"replyList,omitempty"`
// contains filtered or unexported fields
}
批量发送交易返回结构
func (*Replies) Descriptor
deprecated
added in
v1.65.3
func (*Replies) GetReplyList ¶ added in v1.65.3
func (*Replies) ProtoMessage ¶ added in v1.65.3
func (*Replies) ProtoMessage()
func (*Replies) ProtoReflect ¶ added in v1.65.3
func (x *Replies) ProtoReflect() protoreflect.Message
type Reply ¶
type Reply struct {
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*Reply) Descriptor
deprecated
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶ added in v1.65.3
func (x *Reply) ProtoReflect() protoreflect.Message
type ReplyBlockHeight ¶
type ReplyBlockHeight struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyBlockHeight) Descriptor
deprecated
func (*ReplyBlockHeight) Descriptor() ([]byte, []int)
Deprecated: Use ReplyBlockHeight.ProtoReflect.Descriptor instead.
func (*ReplyBlockHeight) GetHeight ¶
func (x *ReplyBlockHeight) GetHeight() int64
func (*ReplyBlockHeight) ProtoMessage ¶
func (*ReplyBlockHeight) ProtoMessage()
func (*ReplyBlockHeight) ProtoReflect ¶ added in v1.65.3
func (x *ReplyBlockHeight) ProtoReflect() protoreflect.Message
func (*ReplyBlockHeight) Reset ¶
func (x *ReplyBlockHeight) Reset()
func (*ReplyBlockHeight) String ¶
func (x *ReplyBlockHeight) String() string
type ReplyCheckTxsExist ¶ added in v1.65.1
type ReplyCheckTxsExist struct {
//对应请求序列存在标识数组,存在则true,否则false
ExistFlags []bool `protobuf:"varint,1,rep,packed,name=existFlags,proto3" json:"existFlags,omitempty"`
//存在情况的总个数
ExistCount uint32 `protobuf:"varint,2,opt,name=existCount,proto3" json:"existCount,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyCheckTxsExist) Descriptor
deprecated
added in
v1.65.1
func (*ReplyCheckTxsExist) Descriptor() ([]byte, []int)
Deprecated: Use ReplyCheckTxsExist.ProtoReflect.Descriptor instead.
func (*ReplyCheckTxsExist) GetExistCount ¶ added in v1.65.1
func (x *ReplyCheckTxsExist) GetExistCount() uint32
func (*ReplyCheckTxsExist) GetExistFlags ¶ added in v1.65.1
func (x *ReplyCheckTxsExist) GetExistFlags() []bool
func (*ReplyCheckTxsExist) ProtoMessage ¶ added in v1.65.1
func (*ReplyCheckTxsExist) ProtoMessage()
func (*ReplyCheckTxsExist) ProtoReflect ¶ added in v1.65.3
func (x *ReplyCheckTxsExist) ProtoReflect() protoreflect.Message
func (*ReplyCheckTxsExist) Reset ¶ added in v1.65.1
func (x *ReplyCheckTxsExist) Reset()
func (*ReplyCheckTxsExist) String ¶ added in v1.65.1
func (x *ReplyCheckTxsExist) String() string
type ReplyConfig ¶
type ReplyConfig struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyConfig) Descriptor
deprecated
func (*ReplyConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReplyConfig.ProtoReflect.Descriptor instead.
func (*ReplyConfig) GetKey ¶
func (x *ReplyConfig) GetKey() string
func (*ReplyConfig) GetValue ¶
func (x *ReplyConfig) GetValue() string
func (*ReplyConfig) ProtoMessage ¶
func (*ReplyConfig) ProtoMessage()
func (*ReplyConfig) ProtoReflect ¶ added in v1.65.3
func (x *ReplyConfig) ProtoReflect() protoreflect.Message
func (*ReplyConfig) Reset ¶
func (x *ReplyConfig) Reset()
func (*ReplyConfig) String ¶
func (x *ReplyConfig) String() string
type ReplyGetExecBalance ¶
type ReplyGetExecBalance struct {
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
AmountFrozen int64 `protobuf:"varint,2,opt,name=amountFrozen,proto3" json:"amountFrozen,omitempty"`
AmountActive int64 `protobuf:"varint,3,opt,name=amountActive,proto3" json:"amountActive,omitempty"`
NextKey []byte `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
Items []*ExecBalanceItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
查询symbol在合约中的代币总额应答
func (*ReplyGetExecBalance) AddItem ¶
func (t *ReplyGetExecBalance) AddItem(execAddr, value []byte)
AddItem 添加item
func (*ReplyGetExecBalance) Descriptor
deprecated
func (*ReplyGetExecBalance) Descriptor() ([]byte, []int)
Deprecated: Use ReplyGetExecBalance.ProtoReflect.Descriptor instead.
func (*ReplyGetExecBalance) GetAmount ¶
func (x *ReplyGetExecBalance) GetAmount() int64
func (*ReplyGetExecBalance) GetAmountActive ¶
func (x *ReplyGetExecBalance) GetAmountActive() int64
func (*ReplyGetExecBalance) GetAmountFrozen ¶
func (x *ReplyGetExecBalance) GetAmountFrozen() int64
func (*ReplyGetExecBalance) GetItems ¶
func (x *ReplyGetExecBalance) GetItems() []*ExecBalanceItem
func (*ReplyGetExecBalance) GetNextKey ¶
func (x *ReplyGetExecBalance) GetNextKey() []byte
func (*ReplyGetExecBalance) ProtoMessage ¶
func (*ReplyGetExecBalance) ProtoMessage()
func (*ReplyGetExecBalance) ProtoReflect ¶ added in v1.65.3
func (x *ReplyGetExecBalance) ProtoReflect() protoreflect.Message
func (*ReplyGetExecBalance) Reset ¶
func (x *ReplyGetExecBalance) Reset()
func (*ReplyGetExecBalance) String ¶
func (x *ReplyGetExecBalance) String() string
type ReplyGetTotalCoins ¶
type ReplyGetTotalCoins struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Num int64 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
NextKey []byte `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
// contains filtered or unexported fields
}
查询symbol代币总额应答
func (*ReplyGetTotalCoins) Descriptor
deprecated
func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int)
Deprecated: Use ReplyGetTotalCoins.ProtoReflect.Descriptor instead.
func (*ReplyGetTotalCoins) GetAmount ¶
func (x *ReplyGetTotalCoins) GetAmount() int64
func (*ReplyGetTotalCoins) GetCount ¶
func (x *ReplyGetTotalCoins) GetCount() int64
func (*ReplyGetTotalCoins) GetNextKey ¶
func (x *ReplyGetTotalCoins) GetNextKey() []byte
func (*ReplyGetTotalCoins) GetNum ¶
func (x *ReplyGetTotalCoins) GetNum() int64
func (*ReplyGetTotalCoins) IterateRangeByStateHash ¶
func (t *ReplyGetTotalCoins) IterateRangeByStateHash(key, value []byte) bool
IterateRangeByStateHash 迭代查找
func (*ReplyGetTotalCoins) ProtoMessage ¶
func (*ReplyGetTotalCoins) ProtoMessage()
func (*ReplyGetTotalCoins) ProtoReflect ¶ added in v1.65.3
func (x *ReplyGetTotalCoins) ProtoReflect() protoreflect.Message
func (*ReplyGetTotalCoins) Reset ¶
func (x *ReplyGetTotalCoins) Reset()
func (*ReplyGetTotalCoins) String ¶
func (x *ReplyGetTotalCoins) String() string
type ReplyHash ¶
type ReplyHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyHash) Descriptor
deprecated
func (*ReplyHash) ProtoMessage ¶
func (*ReplyHash) ProtoMessage()
func (*ReplyHash) ProtoReflect ¶ added in v1.65.3
func (x *ReplyHash) ProtoReflect() protoreflect.Message
type ReplyHashes ¶
type ReplyHashes struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyHashes) Descriptor
deprecated
func (*ReplyHashes) Descriptor() ([]byte, []int)
Deprecated: Use ReplyHashes.ProtoReflect.Descriptor instead.
func (*ReplyHashes) GetHashes ¶
func (x *ReplyHashes) GetHashes() [][]byte
func (*ReplyHashes) ProtoMessage ¶
func (*ReplyHashes) ProtoMessage()
func (*ReplyHashes) ProtoReflect ¶ added in v1.65.3
func (x *ReplyHashes) ProtoReflect() protoreflect.Message
func (*ReplyHashes) Reset ¶
func (x *ReplyHashes) Reset()
func (*ReplyHashes) String ¶
func (x *ReplyHashes) String() string
type ReplyHeightByTitle ¶
type ReplyHeightByTitle struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Items []*BlockInfo `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyHeightByTitle) Descriptor
deprecated
func (*ReplyHeightByTitle) Descriptor() ([]byte, []int)
Deprecated: Use ReplyHeightByTitle.ProtoReflect.Descriptor instead.
func (*ReplyHeightByTitle) GetItems ¶
func (x *ReplyHeightByTitle) GetItems() []*BlockInfo
func (*ReplyHeightByTitle) GetTitle ¶
func (x *ReplyHeightByTitle) GetTitle() string
func (*ReplyHeightByTitle) ProtoMessage ¶
func (*ReplyHeightByTitle) ProtoMessage()
func (*ReplyHeightByTitle) ProtoReflect ¶ added in v1.65.3
func (x *ReplyHeightByTitle) ProtoReflect() protoreflect.Message
func (*ReplyHeightByTitle) Reset ¶
func (x *ReplyHeightByTitle) Reset()
func (*ReplyHeightByTitle) String ¶
func (x *ReplyHeightByTitle) String() string
type ReplyProperFee ¶
type ReplyProperFee struct {
ProperFee int64 `protobuf:"varint,1,opt,name=properFee,proto3" json:"properFee,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyProperFee) Descriptor
deprecated
func (*ReplyProperFee) Descriptor() ([]byte, []int)
Deprecated: Use ReplyProperFee.ProtoReflect.Descriptor instead.
func (*ReplyProperFee) GetProperFee ¶
func (x *ReplyProperFee) GetProperFee() int64
func (*ReplyProperFee) ProtoMessage ¶
func (*ReplyProperFee) ProtoMessage()
func (*ReplyProperFee) ProtoReflect ¶ added in v1.65.3
func (x *ReplyProperFee) ProtoReflect() protoreflect.Message
func (*ReplyProperFee) Reset ¶
func (x *ReplyProperFee) Reset()
func (*ReplyProperFee) String ¶
func (x *ReplyProperFee) String() string
type ReplySeed ¶
type ReplySeed struct {
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
// contains filtered or unexported fields
}
func (*ReplySeed) Descriptor
deprecated
func (*ReplySeed) ProtoMessage ¶
func (*ReplySeed) ProtoMessage()
func (*ReplySeed) ProtoReflect ¶ added in v1.65.3
func (x *ReplySeed) ProtoReflect() protoreflect.Message
type ReplySignRawTx ¶
type ReplySignRawTx struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
// contains filtered or unexported fields
}
func (*ReplySignRawTx) Descriptor
deprecated
func (*ReplySignRawTx) Descriptor() ([]byte, []int)
Deprecated: Use ReplySignRawTx.ProtoReflect.Descriptor instead.
func (*ReplySignRawTx) GetTxHex ¶
func (x *ReplySignRawTx) GetTxHex() string
func (*ReplySignRawTx) ProtoMessage ¶
func (*ReplySignRawTx) ProtoMessage()
func (*ReplySignRawTx) ProtoReflect ¶ added in v1.65.3
func (x *ReplySignRawTx) ProtoReflect() protoreflect.Message
func (*ReplySignRawTx) Reset ¶
func (x *ReplySignRawTx) Reset()
func (*ReplySignRawTx) String ¶
func (x *ReplySignRawTx) String() string
type ReplyString ¶
type ReplyString struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyString) Descriptor
deprecated
func (*ReplyString) Descriptor() ([]byte, []int)
Deprecated: Use ReplyString.ProtoReflect.Descriptor instead.
func (*ReplyString) GetData ¶
func (x *ReplyString) GetData() string
func (*ReplyString) ProtoMessage ¶
func (*ReplyString) ProtoMessage()
func (*ReplyString) ProtoReflect ¶ added in v1.65.3
func (x *ReplyString) ProtoReflect() protoreflect.Message
func (*ReplyString) Reset ¶
func (x *ReplyString) Reset()
func (*ReplyString) String ¶
func (x *ReplyString) String() string
type ReplyStrings ¶
type ReplyStrings struct {
Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyStrings) Descriptor
deprecated
func (*ReplyStrings) Descriptor() ([]byte, []int)
Deprecated: Use ReplyStrings.ProtoReflect.Descriptor instead.
func (*ReplyStrings) GetDatas ¶
func (x *ReplyStrings) GetDatas() []string
func (*ReplyStrings) ProtoMessage ¶
func (*ReplyStrings) ProtoMessage()
func (*ReplyStrings) ProtoReflect ¶ added in v1.65.3
func (x *ReplyStrings) ProtoReflect() protoreflect.Message
func (*ReplyStrings) Reset ¶
func (x *ReplyStrings) Reset()
func (*ReplyStrings) String ¶
func (x *ReplyStrings) String() string
type ReplySubscribePush ¶ added in v1.65.0
type ReplySubscribePush struct {
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*ReplySubscribePush) Descriptor
deprecated
added in
v1.65.0
func (*ReplySubscribePush) Descriptor() ([]byte, []int)
Deprecated: Use ReplySubscribePush.ProtoReflect.Descriptor instead.
func (*ReplySubscribePush) GetIsOk ¶ added in v1.65.0
func (x *ReplySubscribePush) GetIsOk() bool
func (*ReplySubscribePush) GetMsg ¶ added in v1.65.0
func (x *ReplySubscribePush) GetMsg() string
func (*ReplySubscribePush) ProtoMessage ¶ added in v1.65.0
func (*ReplySubscribePush) ProtoMessage()
func (*ReplySubscribePush) ProtoReflect ¶ added in v1.65.3
func (x *ReplySubscribePush) ProtoReflect() protoreflect.Message
func (*ReplySubscribePush) Reset ¶ added in v1.65.0
func (x *ReplySubscribePush) Reset()
func (*ReplySubscribePush) String ¶ added in v1.65.0
func (x *ReplySubscribePush) String() string
type ReplyTxInfo ¶
type ReplyTxInfo struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
Assets []*Asset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyTxInfo) Descriptor
deprecated
func (*ReplyTxInfo) Descriptor() ([]byte, []int)
Deprecated: Use ReplyTxInfo.ProtoReflect.Descriptor instead.
func (*ReplyTxInfo) GetAssets ¶
func (x *ReplyTxInfo) GetAssets() []*Asset
func (*ReplyTxInfo) GetHash ¶
func (x *ReplyTxInfo) GetHash() []byte
func (*ReplyTxInfo) GetHeight ¶
func (x *ReplyTxInfo) GetHeight() int64
func (*ReplyTxInfo) GetIndex ¶
func (x *ReplyTxInfo) GetIndex() int64
func (*ReplyTxInfo) ProtoMessage ¶
func (*ReplyTxInfo) ProtoMessage()
func (*ReplyTxInfo) ProtoReflect ¶ added in v1.65.3
func (x *ReplyTxInfo) ProtoReflect() protoreflect.Message
func (*ReplyTxInfo) Reset ¶
func (x *ReplyTxInfo) Reset()
func (*ReplyTxInfo) String ¶
func (x *ReplyTxInfo) String() string
type ReplyTxInfos ¶
type ReplyTxInfos struct {
TxInfos []*ReplyTxInfo `protobuf:"bytes,1,rep,name=txInfos,proto3" json:"txInfos,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyTxInfos) Descriptor
deprecated
func (*ReplyTxInfos) Descriptor() ([]byte, []int)
Deprecated: Use ReplyTxInfos.ProtoReflect.Descriptor instead.
func (*ReplyTxInfos) GetTxInfos ¶
func (x *ReplyTxInfos) GetTxInfos() []*ReplyTxInfo
func (*ReplyTxInfos) ProtoMessage ¶
func (*ReplyTxInfos) ProtoMessage()
func (*ReplyTxInfos) ProtoReflect ¶ added in v1.65.3
func (x *ReplyTxInfos) ProtoReflect() protoreflect.Message
func (*ReplyTxInfos) Reset ¶
func (x *ReplyTxInfos) Reset()
func (*ReplyTxInfos) String ¶
func (x *ReplyTxInfos) String() string
type ReplyTxList ¶
type ReplyTxList struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyTxList) Descriptor
deprecated
func (*ReplyTxList) Descriptor() ([]byte, []int)
Deprecated: Use ReplyTxList.ProtoReflect.Descriptor instead.
func (*ReplyTxList) GetTxs ¶
func (x *ReplyTxList) GetTxs() []*Transaction
func (*ReplyTxList) ProtoMessage ¶
func (*ReplyTxList) ProtoMessage()
func (*ReplyTxList) ProtoReflect ¶ added in v1.65.3
func (x *ReplyTxList) ProtoReflect() protoreflect.Message
func (*ReplyTxList) Reset ¶
func (x *ReplyTxList) Reset()
func (*ReplyTxList) String ¶
func (x *ReplyTxList) String() string
type ReportErrEvent ¶
type ReportErrEvent struct {
Frommodule string `protobuf:"bytes,1,opt,name=frommodule,proto3" json:"frommodule,omitempty"`
Tomodule string `protobuf:"bytes,2,opt,name=tomodule,proto3" json:"tomodule,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*ReportErrEvent) Descriptor
deprecated
func (*ReportErrEvent) Descriptor() ([]byte, []int)
Deprecated: Use ReportErrEvent.ProtoReflect.Descriptor instead.
func (*ReportErrEvent) GetError ¶
func (x *ReportErrEvent) GetError() string
func (*ReportErrEvent) GetFrommodule ¶
func (x *ReportErrEvent) GetFrommodule() string
func (*ReportErrEvent) GetTomodule ¶
func (x *ReportErrEvent) GetTomodule() string
func (*ReportErrEvent) ProtoMessage ¶
func (*ReportErrEvent) ProtoMessage()
func (*ReportErrEvent) ProtoReflect ¶ added in v1.65.3
func (x *ReportErrEvent) ProtoReflect() protoreflect.Message
func (*ReportErrEvent) Reset ¶
func (x *ReportErrEvent) Reset()
func (*ReportErrEvent) String ¶
func (x *ReportErrEvent) String() string
type ReqAccountList ¶
type ReqAccountList struct {
WithoutBalance bool `protobuf:"varint,1,opt,name=withoutBalance,proto3" json:"withoutBalance,omitempty"`
// contains filtered or unexported fields
}
func (*ReqAccountList) Descriptor
deprecated
func (*ReqAccountList) Descriptor() ([]byte, []int)
Deprecated: Use ReqAccountList.ProtoReflect.Descriptor instead.
func (*ReqAccountList) GetWithoutBalance ¶
func (x *ReqAccountList) GetWithoutBalance() bool
func (*ReqAccountList) ProtoMessage ¶
func (*ReqAccountList) ProtoMessage()
func (*ReqAccountList) ProtoReflect ¶ added in v1.65.3
func (x *ReqAccountList) ProtoReflect() protoreflect.Message
func (*ReqAccountList) Reset ¶
func (x *ReqAccountList) Reset()
func (*ReqAccountList) String ¶
func (x *ReqAccountList) String() string
type ReqAddr ¶
type ReqAddr struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//表示取所有/from/to/其他的hash列表
Flag int32 `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
// height start
Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
HeightEnd int64 `protobuf:"varint,7,opt,name=heightEnd,proto3" json:"heightEnd,omitempty"`
// contains filtered or unexported fields
}
func (*ReqAddr) Descriptor
deprecated
func (*ReqAddr) GetDirection ¶
func (*ReqAddr) GetHeightEnd ¶ added in v1.65.3
func (*ReqAddr) ProtoMessage ¶
func (*ReqAddr) ProtoMessage()
func (*ReqAddr) ProtoReflect ¶ added in v1.65.3
func (x *ReqAddr) ProtoReflect() protoreflect.Message
type ReqAddrs ¶
type ReqAddrs struct {
Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"`
// contains filtered or unexported fields
}
func (*ReqAddrs) Descriptor
deprecated
func (*ReqAddrs) ProtoMessage ¶
func (*ReqAddrs) ProtoMessage()
func (*ReqAddrs) ProtoReflect ¶ added in v1.65.3
func (x *ReqAddrs) ProtoReflect() protoreflect.Message
type ReqAllExecBalance ¶
type ReqAllExecBalance struct {
//地址列表
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//执行器名称
Execer string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
StateHash string `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
AssetExec string `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
AssetSymbol string `protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
// contains filtered or unexported fields
}
func (*ReqAllExecBalance) Descriptor
deprecated
func (*ReqAllExecBalance) Descriptor() ([]byte, []int)
Deprecated: Use ReqAllExecBalance.ProtoReflect.Descriptor instead.
func (*ReqAllExecBalance) GetAddr ¶
func (x *ReqAllExecBalance) GetAddr() string
func (*ReqAllExecBalance) GetAssetExec ¶
func (x *ReqAllExecBalance) GetAssetExec() string
func (*ReqAllExecBalance) GetAssetSymbol ¶
func (x *ReqAllExecBalance) GetAssetSymbol() string
func (*ReqAllExecBalance) GetExecer ¶
func (x *ReqAllExecBalance) GetExecer() string
func (*ReqAllExecBalance) GetStateHash ¶
func (x *ReqAllExecBalance) GetStateHash() string
func (*ReqAllExecBalance) ProtoMessage ¶
func (*ReqAllExecBalance) ProtoMessage()
func (*ReqAllExecBalance) ProtoReflect ¶ added in v1.65.3
func (x *ReqAllExecBalance) ProtoReflect() protoreflect.Message
func (*ReqAllExecBalance) Reset ¶
func (x *ReqAllExecBalance) Reset()
func (*ReqAllExecBalance) String ¶
func (x *ReqAllExecBalance) String() string
type ReqBalance ¶
type ReqBalance struct {
//地址列表
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
//执行器名称
Execer string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
StateHash string `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
AssetExec string `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
AssetSymbol string `protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
// contains filtered or unexported fields
}
查询一个地址列表在某个执行器中余额
func (*ReqBalance) Descriptor
deprecated
func (*ReqBalance) Descriptor() ([]byte, []int)
Deprecated: Use ReqBalance.ProtoReflect.Descriptor instead.
func (*ReqBalance) GetAddresses ¶
func (x *ReqBalance) GetAddresses() []string
func (*ReqBalance) GetAssetExec ¶
func (x *ReqBalance) GetAssetExec() string
func (*ReqBalance) GetAssetSymbol ¶
func (x *ReqBalance) GetAssetSymbol() string
func (*ReqBalance) GetExecer ¶
func (x *ReqBalance) GetExecer() string
func (*ReqBalance) GetStateHash ¶
func (x *ReqBalance) GetStateHash() string
func (*ReqBalance) ProtoMessage ¶
func (*ReqBalance) ProtoMessage()
func (*ReqBalance) ProtoReflect ¶ added in v1.65.3
func (x *ReqBalance) ProtoReflect() protoreflect.Message
func (*ReqBalance) Reset ¶
func (x *ReqBalance) Reset()
func (*ReqBalance) String ¶
func (x *ReqBalance) String() string
type ReqBlocks ¶
type ReqBlocks struct {
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
IsDetail bool `protobuf:"varint,3,opt,name=isDetail,proto3" json:"isDetail,omitempty"`
Pid []string `protobuf:"bytes,4,rep,name=pid,proto3" json:"pid,omitempty"`
// contains filtered or unexported fields
}
获取区块信息
start : 获取区块的开始高度 end :获取区块的结束高度 Isdetail : 是否需要获取区块的详细信息 pid : peer列表
func (*ReqBlocks) Descriptor
deprecated
func (*ReqBlocks) GetIsDetail ¶
func (*ReqBlocks) ProtoMessage ¶
func (*ReqBlocks) ProtoMessage()
func (*ReqBlocks) ProtoReflect ¶ added in v1.65.3
func (x *ReqBlocks) ProtoReflect() protoreflect.Message
type ReqBytes ¶ added in v1.65.3
type ReqBytes struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ReqBytes) Descriptor
deprecated
added in
v1.65.3
func (*ReqBytes) ProtoMessage ¶ added in v1.65.3
func (*ReqBytes) ProtoMessage()
func (*ReqBytes) ProtoReflect ¶ added in v1.65.3
func (x *ReqBytes) ProtoReflect() protoreflect.Message
type ReqCheckTxsExist ¶ added in v1.65.1
type ReqCheckTxsExist struct {
TxHashes [][]byte `protobuf:"bytes,1,rep,name=txHashes,proto3" json:"txHashes,omitempty"`
// contains filtered or unexported fields
}
指定交易哈希,查找是否存在
func (*ReqCheckTxsExist) Descriptor
deprecated
added in
v1.65.1
func (*ReqCheckTxsExist) Descriptor() ([]byte, []int)
Deprecated: Use ReqCheckTxsExist.ProtoReflect.Descriptor instead.
func (*ReqCheckTxsExist) GetTxHashes ¶ added in v1.65.1
func (x *ReqCheckTxsExist) GetTxHashes() [][]byte
func (*ReqCheckTxsExist) ProtoMessage ¶ added in v1.65.1
func (*ReqCheckTxsExist) ProtoMessage()
func (*ReqCheckTxsExist) ProtoReflect ¶ added in v1.65.3
func (x *ReqCheckTxsExist) ProtoReflect() protoreflect.Message
func (*ReqCheckTxsExist) Reset ¶ added in v1.65.1
func (x *ReqCheckTxsExist) Reset()
func (*ReqCheckTxsExist) String ¶ added in v1.65.1
func (x *ReqCheckTxsExist) String() string
type ReqChunkRecords ¶ added in v1.65.0
type ReqChunkRecords struct {
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
IsDetail bool `protobuf:"varint,3,opt,name=isDetail,proto3" json:"isDetail,omitempty"`
Pid []string `protobuf:"bytes,4,rep,name=pid,proto3" json:"pid,omitempty"`
// contains filtered or unexported fields
}
获取ChunkRecord信息
start : 获取Chunk的开始高度 end :获取Chunk的结束高度 Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部 pid : peer列表
func (*ReqChunkRecords) Descriptor
deprecated
added in
v1.65.0
func (*ReqChunkRecords) Descriptor() ([]byte, []int)
Deprecated: Use ReqChunkRecords.ProtoReflect.Descriptor instead.
func (*ReqChunkRecords) GetEnd ¶ added in v1.65.0
func (x *ReqChunkRecords) GetEnd() int64
func (*ReqChunkRecords) GetIsDetail ¶ added in v1.65.0
func (x *ReqChunkRecords) GetIsDetail() bool
func (*ReqChunkRecords) GetPid ¶ added in v1.65.0
func (x *ReqChunkRecords) GetPid() []string
func (*ReqChunkRecords) GetStart ¶ added in v1.65.0
func (x *ReqChunkRecords) GetStart() int64
func (*ReqChunkRecords) ProtoMessage ¶ added in v1.65.0
func (*ReqChunkRecords) ProtoMessage()
func (*ReqChunkRecords) ProtoReflect ¶ added in v1.65.3
func (x *ReqChunkRecords) ProtoReflect() protoreflect.Message
func (*ReqChunkRecords) Reset ¶ added in v1.65.0
func (x *ReqChunkRecords) Reset()
func (*ReqChunkRecords) String ¶ added in v1.65.0
func (x *ReqChunkRecords) String() string
type ReqDecodeRawTransaction ¶
type ReqDecodeRawTransaction struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
// contains filtered or unexported fields
}
func (*ReqDecodeRawTransaction) Descriptor
deprecated
func (*ReqDecodeRawTransaction) Descriptor() ([]byte, []int)
Deprecated: Use ReqDecodeRawTransaction.ProtoReflect.Descriptor instead.
func (*ReqDecodeRawTransaction) GetTxHex ¶
func (x *ReqDecodeRawTransaction) GetTxHex() string
func (*ReqDecodeRawTransaction) ProtoMessage ¶
func (*ReqDecodeRawTransaction) ProtoMessage()
func (*ReqDecodeRawTransaction) ProtoReflect ¶ added in v1.65.3
func (x *ReqDecodeRawTransaction) ProtoReflect() protoreflect.Message
func (*ReqDecodeRawTransaction) Reset ¶
func (x *ReqDecodeRawTransaction) Reset()
func (*ReqDecodeRawTransaction) String ¶
func (x *ReqDecodeRawTransaction) String() string
type ReqEvmAccountNonce ¶ added in v1.67.4
type ReqEvmAccountNonce struct {
//地址列表
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
func (*ReqEvmAccountNonce) Descriptor
deprecated
added in
v1.67.4
func (*ReqEvmAccountNonce) Descriptor() ([]byte, []int)
Deprecated: Use ReqEvmAccountNonce.ProtoReflect.Descriptor instead.
func (*ReqEvmAccountNonce) GetAddr ¶ added in v1.67.4
func (x *ReqEvmAccountNonce) GetAddr() string
func (*ReqEvmAccountNonce) ProtoMessage ¶ added in v1.67.4
func (*ReqEvmAccountNonce) ProtoMessage()
func (*ReqEvmAccountNonce) ProtoReflect ¶ added in v1.67.4
func (x *ReqEvmAccountNonce) ProtoReflect() protoreflect.Message
func (*ReqEvmAccountNonce) Reset ¶ added in v1.67.4
func (x *ReqEvmAccountNonce) Reset()
func (*ReqEvmAccountNonce) String ¶ added in v1.67.4
func (x *ReqEvmAccountNonce) String() string
type ReqGetAccount ¶ added in v1.65.0
type ReqGetAccount struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
根据label获取账户地址
func (*ReqGetAccount) Descriptor
deprecated
added in
v1.65.0
func (*ReqGetAccount) Descriptor() ([]byte, []int)
Deprecated: Use ReqGetAccount.ProtoReflect.Descriptor instead.
func (*ReqGetAccount) GetLabel ¶ added in v1.65.0
func (x *ReqGetAccount) GetLabel() string
func (*ReqGetAccount) ProtoMessage ¶ added in v1.65.0
func (*ReqGetAccount) ProtoMessage()
func (*ReqGetAccount) ProtoReflect ¶ added in v1.65.3
func (x *ReqGetAccount) ProtoReflect() protoreflect.Message
func (*ReqGetAccount) Reset ¶ added in v1.65.0
func (x *ReqGetAccount) Reset()
func (*ReqGetAccount) String ¶ added in v1.65.0
func (x *ReqGetAccount) String() string
type ReqGetExecBalance ¶
type ReqGetExecBalance struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
StateHash []byte `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Addr []byte `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
ExecAddr []byte `protobuf:"bytes,4,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
Execer string `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
Count int64 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
NextKey []byte `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
// contains filtered or unexported fields
}
查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额
func (*ReqGetExecBalance) Descriptor
deprecated
func (*ReqGetExecBalance) Descriptor() ([]byte, []int)
Deprecated: Use ReqGetExecBalance.ProtoReflect.Descriptor instead.
func (*ReqGetExecBalance) GetAddr ¶
func (x *ReqGetExecBalance) GetAddr() []byte
func (*ReqGetExecBalance) GetCount ¶
func (x *ReqGetExecBalance) GetCount() int64
func (*ReqGetExecBalance) GetExecAddr ¶
func (x *ReqGetExecBalance) GetExecAddr() []byte
func (*ReqGetExecBalance) GetExecer ¶
func (x *ReqGetExecBalance) GetExecer() string
func (*ReqGetExecBalance) GetNextKey ¶
func (x *ReqGetExecBalance) GetNextKey() []byte
func (*ReqGetExecBalance) GetStateHash ¶
func (x *ReqGetExecBalance) GetStateHash() []byte
func (*ReqGetExecBalance) GetSymbol ¶
func (x *ReqGetExecBalance) GetSymbol() string
func (*ReqGetExecBalance) ProtoMessage ¶
func (*ReqGetExecBalance) ProtoMessage()
func (*ReqGetExecBalance) ProtoReflect ¶ added in v1.65.3
func (x *ReqGetExecBalance) ProtoReflect() protoreflect.Message
func (*ReqGetExecBalance) Reset ¶
func (x *ReqGetExecBalance) Reset()
func (*ReqGetExecBalance) String ¶
func (x *ReqGetExecBalance) String() string
type ReqGetMempool ¶
type ReqGetMempool struct {
IsAll bool `protobuf:"varint,1,opt,name=isAll,proto3" json:"isAll,omitempty"`
// contains filtered or unexported fields
}
func (*ReqGetMempool) Descriptor
deprecated
func (*ReqGetMempool) Descriptor() ([]byte, []int)
Deprecated: Use ReqGetMempool.ProtoReflect.Descriptor instead.
func (*ReqGetMempool) GetIsAll ¶
func (x *ReqGetMempool) GetIsAll() bool
func (*ReqGetMempool) ProtoMessage ¶
func (*ReqGetMempool) ProtoMessage()
func (*ReqGetMempool) ProtoReflect ¶ added in v1.65.3
func (x *ReqGetMempool) ProtoReflect() protoreflect.Message
func (*ReqGetMempool) Reset ¶
func (x *ReqGetMempool) Reset()
func (*ReqGetMempool) String ¶
func (x *ReqGetMempool) String() string
type ReqGetTotalCoins ¶
type ReqGetTotalCoins struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
StateHash []byte `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
StartKey []byte `protobuf:"bytes,3,opt,name=startKey,proto3" json:"startKey,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
Execer string `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
// contains filtered or unexported fields
}
查询symbol代币总额
func (*ReqGetTotalCoins) Descriptor
deprecated
func (*ReqGetTotalCoins) Descriptor() ([]byte, []int)
Deprecated: Use ReqGetTotalCoins.ProtoReflect.Descriptor instead.
func (*ReqGetTotalCoins) GetCount ¶
func (x *ReqGetTotalCoins) GetCount() int64
func (*ReqGetTotalCoins) GetExecer ¶
func (x *ReqGetTotalCoins) GetExecer() string
func (*ReqGetTotalCoins) GetStartKey ¶
func (x *ReqGetTotalCoins) GetStartKey() []byte
func (*ReqGetTotalCoins) GetStateHash ¶
func (x *ReqGetTotalCoins) GetStateHash() []byte
func (*ReqGetTotalCoins) GetSymbol ¶
func (x *ReqGetTotalCoins) GetSymbol() string
func (*ReqGetTotalCoins) ProtoMessage ¶
func (*ReqGetTotalCoins) ProtoMessage()
func (*ReqGetTotalCoins) ProtoReflect ¶ added in v1.65.3
func (x *ReqGetTotalCoins) ProtoReflect() protoreflect.Message
func (*ReqGetTotalCoins) Reset ¶
func (x *ReqGetTotalCoins) Reset()
func (*ReqGetTotalCoins) String ¶
func (x *ReqGetTotalCoins) String() string
type ReqGetWalletRecoverAddr ¶ added in v1.65.3
type ReqGetWalletRecoverAddr struct {
CtrPubKey string `protobuf:"bytes,1,opt,name=ctrPubKey,proto3" json:"ctrPubKey,omitempty"`
RecoverPubKeys []string `protobuf:"bytes,2,rep,name=recoverPubKeys,proto3" json:"recoverPubKeys,omitempty"`
RelativeDelayTime int64 `protobuf:"varint,3,opt,name=relativeDelayTime,proto3" json:"relativeDelayTime,omitempty"`
// contains filtered or unexported fields
}
获取钱包找回地址请求
func (*ReqGetWalletRecoverAddr) Descriptor
deprecated
added in
v1.65.3
func (*ReqGetWalletRecoverAddr) Descriptor() ([]byte, []int)
Deprecated: Use ReqGetWalletRecoverAddr.ProtoReflect.Descriptor instead.
func (*ReqGetWalletRecoverAddr) GetCtrPubKey ¶ added in v1.65.3
func (x *ReqGetWalletRecoverAddr) GetCtrPubKey() string
func (*ReqGetWalletRecoverAddr) GetRecoverPubKeys ¶ added in v1.67.4
func (x *ReqGetWalletRecoverAddr) GetRecoverPubKeys() []string
func (*ReqGetWalletRecoverAddr) GetRelativeDelayTime ¶ added in v1.67.4
func (x *ReqGetWalletRecoverAddr) GetRelativeDelayTime() int64
func (*ReqGetWalletRecoverAddr) ProtoMessage ¶ added in v1.65.3
func (*ReqGetWalletRecoverAddr) ProtoMessage()
func (*ReqGetWalletRecoverAddr) ProtoReflect ¶ added in v1.65.3
func (x *ReqGetWalletRecoverAddr) ProtoReflect() protoreflect.Message
func (*ReqGetWalletRecoverAddr) Reset ¶ added in v1.65.3
func (x *ReqGetWalletRecoverAddr) Reset()
func (*ReqGetWalletRecoverAddr) String ¶ added in v1.65.3
func (x *ReqGetWalletRecoverAddr) String() string
type ReqHash ¶
type ReqHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Upgrade bool `protobuf:"varint,2,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
// contains filtered or unexported fields
}
func (*ReqHash) Descriptor
deprecated
func (*ReqHash) GetUpgrade ¶
func (*ReqHash) ProtoMessage ¶
func (*ReqHash) ProtoMessage()
func (*ReqHash) ProtoReflect ¶ added in v1.65.3
func (x *ReqHash) ProtoReflect() protoreflect.Message
type ReqHashes ¶
type ReqHashes struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
// contains filtered or unexported fields
}
func (*ReqHashes) Descriptor
deprecated
func (*ReqHashes) ProtoMessage ¶
func (*ReqHashes) ProtoMessage()
func (*ReqHashes) ProtoReflect ¶ added in v1.65.3
func (x *ReqHashes) ProtoReflect() protoreflect.Message
type ReqHeightByTitle ¶
type ReqHeightByTitle struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
// contains filtered or unexported fields
}
通过指定title以及height翻页获取拥有此title交易的区块高度列表
func (*ReqHeightByTitle) Descriptor
deprecated
func (*ReqHeightByTitle) Descriptor() ([]byte, []int)
Deprecated: Use ReqHeightByTitle.ProtoReflect.Descriptor instead.
func (*ReqHeightByTitle) GetCount ¶
func (x *ReqHeightByTitle) GetCount() int32
func (*ReqHeightByTitle) GetDirection ¶
func (x *ReqHeightByTitle) GetDirection() int32
func (*ReqHeightByTitle) GetHeight ¶
func (x *ReqHeightByTitle) GetHeight() int64
func (*ReqHeightByTitle) GetTitle ¶
func (x *ReqHeightByTitle) GetTitle() string
func (*ReqHeightByTitle) ProtoMessage ¶
func (*ReqHeightByTitle) ProtoMessage()
func (*ReqHeightByTitle) ProtoReflect ¶ added in v1.65.3
func (x *ReqHeightByTitle) ProtoReflect() protoreflect.Message
func (*ReqHeightByTitle) Reset ¶
func (x *ReqHeightByTitle) Reset()
func (*ReqHeightByTitle) String ¶
func (x *ReqHeightByTitle) String() string
type ReqInt ¶
type ReqInt struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*ReqInt) Descriptor
deprecated
func (*ReqInt) ProtoMessage ¶
func (*ReqInt) ProtoMessage()
func (*ReqInt) ProtoReflect ¶ added in v1.65.3
func (x *ReqInt) ProtoReflect() protoreflect.Message
type ReqKey ¶
type ReqKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*ReqKey) Descriptor
deprecated
func (*ReqKey) ProtoMessage ¶
func (*ReqKey) ProtoMessage()
func (*ReqKey) ProtoReflect ¶ added in v1.65.3
func (x *ReqKey) ProtoReflect() protoreflect.Message
type ReqModifyConfig ¶
type ReqModifyConfig struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Op string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Modifier string `protobuf:"bytes,4,opt,name=modifier,proto3" json:"modifier,omitempty"`
// contains filtered or unexported fields
}
func (*ReqModifyConfig) Descriptor
deprecated
func (*ReqModifyConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReqModifyConfig.ProtoReflect.Descriptor instead.
func (*ReqModifyConfig) GetKey ¶
func (x *ReqModifyConfig) GetKey() string
func (*ReqModifyConfig) GetModifier ¶
func (x *ReqModifyConfig) GetModifier() string
func (*ReqModifyConfig) GetOp ¶
func (x *ReqModifyConfig) GetOp() string
func (*ReqModifyConfig) GetValue ¶
func (x *ReqModifyConfig) GetValue() string
func (*ReqModifyConfig) ProtoMessage ¶
func (*ReqModifyConfig) ProtoMessage()
func (*ReqModifyConfig) ProtoReflect ¶ added in v1.65.3
func (x *ReqModifyConfig) ProtoReflect() protoreflect.Message
func (*ReqModifyConfig) Reset ¶
func (x *ReqModifyConfig) Reset()
func (*ReqModifyConfig) String ¶
func (x *ReqModifyConfig) String() string
type ReqMultiStrings ¶ added in v1.66.1
type ReqMultiStrings struct {
Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
// contains filtered or unexported fields
}
func (*ReqMultiStrings) Descriptor
deprecated
added in
v1.66.1
func (*ReqMultiStrings) Descriptor() ([]byte, []int)
Deprecated: Use ReqMultiStrings.ProtoReflect.Descriptor instead.
func (*ReqMultiStrings) GetDatas ¶ added in v1.66.1
func (x *ReqMultiStrings) GetDatas() []string
func (*ReqMultiStrings) ProtoMessage ¶ added in v1.66.1
func (*ReqMultiStrings) ProtoMessage()
func (*ReqMultiStrings) ProtoReflect ¶ added in v1.66.1
func (x *ReqMultiStrings) ProtoReflect() protoreflect.Message
func (*ReqMultiStrings) Reset ¶ added in v1.66.1
func (x *ReqMultiStrings) Reset()
func (*ReqMultiStrings) String ¶ added in v1.66.1
func (x *ReqMultiStrings) String() string
type ReqNewAccount ¶
type ReqNewAccount struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
AddressID int32 `protobuf:"varint,2,opt,name=addressID,proto3" json:"addressID,omitempty"`
// contains filtered or unexported fields
}
func (*ReqNewAccount) Descriptor
deprecated
func (*ReqNewAccount) Descriptor() ([]byte, []int)
Deprecated: Use ReqNewAccount.ProtoReflect.Descriptor instead.
func (*ReqNewAccount) GetAddressID ¶ added in v1.67.1
func (x *ReqNewAccount) GetAddressID() int32
func (*ReqNewAccount) GetLabel ¶
func (x *ReqNewAccount) GetLabel() string
func (*ReqNewAccount) ProtoMessage ¶
func (*ReqNewAccount) ProtoMessage()
func (*ReqNewAccount) ProtoReflect ¶ added in v1.65.3
func (x *ReqNewAccount) ProtoReflect() protoreflect.Message
func (*ReqNewAccount) Reset ¶
func (x *ReqNewAccount) Reset()
func (*ReqNewAccount) String ¶
func (x *ReqNewAccount) String() string
type ReqNil ¶
type ReqNil struct {
// contains filtered or unexported fields
}
func (*ReqNil) Descriptor
deprecated
func (*ReqNil) ProtoMessage ¶
func (*ReqNil) ProtoMessage()
func (*ReqNil) ProtoReflect ¶ added in v1.65.3
func (x *ReqNil) ProtoReflect() protoreflect.Message
type ReqParaTxByHeight ¶
type ReqParaTxByHeight struct {
Items []int64 `protobuf:"varint,1,rep,packed,name=items,proto3" json:"items,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// contains filtered or unexported fields
}
通过高度列表和title获取平行链交易
func (*ReqParaTxByHeight) Descriptor
deprecated
func (*ReqParaTxByHeight) Descriptor() ([]byte, []int)
Deprecated: Use ReqParaTxByHeight.ProtoReflect.Descriptor instead.
func (*ReqParaTxByHeight) GetItems ¶
func (x *ReqParaTxByHeight) GetItems() []int64
func (*ReqParaTxByHeight) GetTitle ¶
func (x *ReqParaTxByHeight) GetTitle() string
func (*ReqParaTxByHeight) ProtoMessage ¶
func (*ReqParaTxByHeight) ProtoMessage()
func (*ReqParaTxByHeight) ProtoReflect ¶ added in v1.65.3
func (x *ReqParaTxByHeight) ProtoReflect() protoreflect.Message
func (*ReqParaTxByHeight) Reset ¶
func (x *ReqParaTxByHeight) Reset()
func (*ReqParaTxByHeight) String ¶
func (x *ReqParaTxByHeight) String() string
type ReqParaTxByTitle ¶
type ReqParaTxByTitle struct {
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
IsSeq bool `protobuf:"varint,4,opt,name=isSeq,proto3" json:"isSeq,omitempty"`
// contains filtered or unexported fields
}
通过seq区间和title请求平行链的交易
func (*ReqParaTxByTitle) Descriptor
deprecated
func (*ReqParaTxByTitle) Descriptor() ([]byte, []int)
Deprecated: Use ReqParaTxByTitle.ProtoReflect.Descriptor instead.
func (*ReqParaTxByTitle) GetEnd ¶
func (x *ReqParaTxByTitle) GetEnd() int64
func (*ReqParaTxByTitle) GetIsSeq ¶
func (x *ReqParaTxByTitle) GetIsSeq() bool
func (*ReqParaTxByTitle) GetStart ¶
func (x *ReqParaTxByTitle) GetStart() int64
func (*ReqParaTxByTitle) GetTitle ¶
func (x *ReqParaTxByTitle) GetTitle() string
func (*ReqParaTxByTitle) ProtoMessage ¶
func (*ReqParaTxByTitle) ProtoMessage()
func (*ReqParaTxByTitle) ProtoReflect ¶ added in v1.65.3
func (x *ReqParaTxByTitle) ProtoReflect() protoreflect.Message
func (*ReqParaTxByTitle) Reset ¶
func (x *ReqParaTxByTitle) Reset()
func (*ReqParaTxByTitle) String ¶
func (x *ReqParaTxByTitle) String() string
type ReqPeers ¶ added in v1.65.1
type ReqPeers struct {
ReferKey []byte `protobuf:"bytes,1,opt,name=referKey,proto3" json:"referKey,omitempty"`
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*ReqPeers) Descriptor
deprecated
added in
v1.65.1
func (*ReqPeers) GetReferKey ¶ added in v1.65.1
func (*ReqPeers) ProtoMessage ¶ added in v1.65.1
func (*ReqPeers) ProtoMessage()
func (*ReqPeers) ProtoReflect ¶ added in v1.65.3
func (x *ReqPeers) ProtoReflect() protoreflect.Message
type ReqPrivkeysFile ¶
type ReqPrivkeysFile struct {
FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
// contains filtered or unexported fields
}
func (*ReqPrivkeysFile) Descriptor
deprecated
func (*ReqPrivkeysFile) Descriptor() ([]byte, []int)
Deprecated: Use ReqPrivkeysFile.ProtoReflect.Descriptor instead.
func (*ReqPrivkeysFile) GetFileName ¶
func (x *ReqPrivkeysFile) GetFileName() string
func (*ReqPrivkeysFile) GetPasswd ¶
func (x *ReqPrivkeysFile) GetPasswd() string
func (*ReqPrivkeysFile) ProtoMessage ¶
func (*ReqPrivkeysFile) ProtoMessage()
func (*ReqPrivkeysFile) ProtoReflect ¶ added in v1.65.3
func (x *ReqPrivkeysFile) ProtoReflect() protoreflect.Message
func (*ReqPrivkeysFile) Reset ¶
func (x *ReqPrivkeysFile) Reset()
func (*ReqPrivkeysFile) String ¶
func (x *ReqPrivkeysFile) String() string
type ReqProperFee ¶
type ReqProperFee struct {
TxCount int32 `protobuf:"varint,1,opt,name=txCount,proto3" json:"txCount,omitempty"`
TxSize int32 `protobuf:"varint,2,opt,name=txSize,proto3" json:"txSize,omitempty"`
// contains filtered or unexported fields
}
func (*ReqProperFee) Descriptor
deprecated
func (*ReqProperFee) Descriptor() ([]byte, []int)
Deprecated: Use ReqProperFee.ProtoReflect.Descriptor instead.
func (*ReqProperFee) GetTxCount ¶
func (x *ReqProperFee) GetTxCount() int32
func (*ReqProperFee) GetTxSize ¶
func (x *ReqProperFee) GetTxSize() int32
func (*ReqProperFee) ProtoMessage ¶
func (*ReqProperFee) ProtoMessage()
func (*ReqProperFee) ProtoReflect ¶ added in v1.65.3
func (x *ReqProperFee) ProtoReflect() protoreflect.Message
func (*ReqProperFee) Reset ¶
func (x *ReqProperFee) Reset()
func (*ReqProperFee) String ¶
func (x *ReqProperFee) String() string
type ReqRandHash ¶
type ReqRandHash struct {
ExecName string `protobuf:"bytes,1,opt,name=execName,proto3" json:"execName,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
BlockNum int64 `protobuf:"varint,3,opt,name=blockNum,proto3" json:"blockNum,omitempty"`
Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*ReqRandHash) Descriptor
deprecated
func (*ReqRandHash) Descriptor() ([]byte, []int)
Deprecated: Use ReqRandHash.ProtoReflect.Descriptor instead.
func (*ReqRandHash) GetBlockNum ¶
func (x *ReqRandHash) GetBlockNum() int64
func (*ReqRandHash) GetExecName ¶
func (x *ReqRandHash) GetExecName() string
func (*ReqRandHash) GetHash ¶
func (x *ReqRandHash) GetHash() []byte
func (*ReqRandHash) GetHeight ¶
func (x *ReqRandHash) GetHeight() int64
func (*ReqRandHash) ProtoMessage ¶
func (*ReqRandHash) ProtoMessage()
func (*ReqRandHash) ProtoReflect ¶ added in v1.65.3
func (x *ReqRandHash) ProtoReflect() protoreflect.Message
func (*ReqRandHash) Reset ¶
func (x *ReqRandHash) Reset()
func (*ReqRandHash) String ¶
func (x *ReqRandHash) String() string
type ReqSignRawTx ¶
type ReqSignRawTx struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Privkey string `protobuf:"bytes,2,opt,name=privkey,proto3" json:"privkey,omitempty"`
TxHex string `protobuf:"bytes,3,opt,name=txHex,proto3" json:"txHex,omitempty"`
Expire string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
Index int32 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
// 签名的模式类型
// 0:普通交易
// 1:隐私交易
// int32 mode = 6;
Token string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
Fee int64 `protobuf:"varint,8,opt,name=fee,proto3" json:"fee,omitempty"`
// bytes newExecer = 9;
NewToAddr string `protobuf:"bytes,10,opt,name=newToAddr,proto3" json:"newToAddr,omitempty"`
AddressID int32 `protobuf:"varint,11,opt,name=addressID,proto3" json:"addressID,omitempty"`
// contains filtered or unexported fields
}
func (*ReqSignRawTx) Descriptor
deprecated
func (*ReqSignRawTx) Descriptor() ([]byte, []int)
Deprecated: Use ReqSignRawTx.ProtoReflect.Descriptor instead.
func (*ReqSignRawTx) GetAddr ¶
func (x *ReqSignRawTx) GetAddr() string
func (*ReqSignRawTx) GetAddressID ¶ added in v1.67.1
func (x *ReqSignRawTx) GetAddressID() int32
func (*ReqSignRawTx) GetExpire ¶
func (x *ReqSignRawTx) GetExpire() string
func (*ReqSignRawTx) GetFee ¶
func (x *ReqSignRawTx) GetFee() int64
func (*ReqSignRawTx) GetIndex ¶
func (x *ReqSignRawTx) GetIndex() int32
func (*ReqSignRawTx) GetNewToAddr ¶
func (x *ReqSignRawTx) GetNewToAddr() string
func (*ReqSignRawTx) GetPrivkey ¶
func (x *ReqSignRawTx) GetPrivkey() string
func (*ReqSignRawTx) GetToken ¶
func (x *ReqSignRawTx) GetToken() string
func (*ReqSignRawTx) GetTxHex ¶
func (x *ReqSignRawTx) GetTxHex() string
func (*ReqSignRawTx) ProtoMessage ¶
func (*ReqSignRawTx) ProtoMessage()
func (*ReqSignRawTx) ProtoReflect ¶ added in v1.65.3
func (x *ReqSignRawTx) ProtoReflect() protoreflect.Message
func (*ReqSignRawTx) Reset ¶
func (x *ReqSignRawTx) Reset()
func (*ReqSignRawTx) String ¶
func (x *ReqSignRawTx) String() string
type ReqSignWalletRecoverTx ¶ added in v1.65.3
type ReqSignWalletRecoverTx struct {
WalletRecoverParam *ReqGetWalletRecoverAddr `protobuf:"bytes,1,opt,name=walletRecoverParam,proto3" json:"walletRecoverParam,omitempty"`
SignAddr string `protobuf:"bytes,2,opt,name=signAddr,proto3" json:"signAddr,omitempty"`
PrivKey string `protobuf:"bytes,3,opt,name=privKey,proto3" json:"privKey,omitempty"`
RawTx string `protobuf:"bytes,4,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
// contains filtered or unexported fields
}
获取钱包找回签名请求
func (*ReqSignWalletRecoverTx) Descriptor
deprecated
added in
v1.65.3
func (*ReqSignWalletRecoverTx) Descriptor() ([]byte, []int)
Deprecated: Use ReqSignWalletRecoverTx.ProtoReflect.Descriptor instead.
func (*ReqSignWalletRecoverTx) GetPrivKey ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) GetPrivKey() string
func (*ReqSignWalletRecoverTx) GetRawTx ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) GetRawTx() string
func (*ReqSignWalletRecoverTx) GetSignAddr ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) GetSignAddr() string
func (*ReqSignWalletRecoverTx) GetWalletRecoverParam ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) GetWalletRecoverParam() *ReqGetWalletRecoverAddr
func (*ReqSignWalletRecoverTx) ProtoMessage ¶ added in v1.65.3
func (*ReqSignWalletRecoverTx) ProtoMessage()
func (*ReqSignWalletRecoverTx) ProtoReflect ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) ProtoReflect() protoreflect.Message
func (*ReqSignWalletRecoverTx) Reset ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) Reset()
func (*ReqSignWalletRecoverTx) String ¶ added in v1.65.3
func (x *ReqSignWalletRecoverTx) String() string
type ReqString ¶
type ReqString struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ReqString) Descriptor
deprecated
func (*ReqString) ProtoMessage ¶
func (*ReqString) ProtoMessage()
func (*ReqString) ProtoReflect ¶ added in v1.65.3
func (x *ReqString) ProtoReflect() protoreflect.Message
type ReqSubscribe ¶ added in v1.66.1
type ReqSubscribe struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 0:代表区块;1:代表区块头信息;2:代表交易回执,4 evm event
Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
FromBlock int64 `protobuf:"varint,3,opt,name=fromBlock,proto3" json:"fromBlock,omitempty"`
ToBlock int64 `protobuf:"varint,4,opt,name=toBlock,proto3" json:"toBlock,omitempty"`
//允许订阅多个类型的交易回执
Contract map[string]bool `` /* 158-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ReqSubscribe) Descriptor
deprecated
added in
v1.66.1
func (*ReqSubscribe) Descriptor() ([]byte, []int)
Deprecated: Use ReqSubscribe.ProtoReflect.Descriptor instead.
func (*ReqSubscribe) GetContract ¶ added in v1.66.1
func (x *ReqSubscribe) GetContract() map[string]bool
func (*ReqSubscribe) GetFromBlock ¶ added in v1.67.5
func (x *ReqSubscribe) GetFromBlock() int64
func (*ReqSubscribe) GetName ¶ added in v1.66.1
func (x *ReqSubscribe) GetName() string
func (*ReqSubscribe) GetToBlock ¶ added in v1.67.5
func (x *ReqSubscribe) GetToBlock() int64
func (*ReqSubscribe) GetType ¶ added in v1.66.1
func (x *ReqSubscribe) GetType() int32
func (*ReqSubscribe) ProtoMessage ¶ added in v1.66.1
func (*ReqSubscribe) ProtoMessage()
func (*ReqSubscribe) ProtoReflect ¶ added in v1.66.1
func (x *ReqSubscribe) ProtoReflect() protoreflect.Message
func (*ReqSubscribe) Reset ¶ added in v1.66.1
func (x *ReqSubscribe) Reset()
func (*ReqSubscribe) String ¶ added in v1.66.1
func (x *ReqSubscribe) String() string
type ReqTokenFinishCreate ¶
type ReqTokenFinishCreate struct {
FinisherAddr string `protobuf:"bytes,1,opt,name=finisher_addr,json=finisherAddr,proto3" json:"finisher_addr,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
OwnerAddr string `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
// contains filtered or unexported fields
}
func (*ReqTokenFinishCreate) Descriptor
deprecated
func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int)
Deprecated: Use ReqTokenFinishCreate.ProtoReflect.Descriptor instead.
func (*ReqTokenFinishCreate) GetFinisherAddr ¶
func (x *ReqTokenFinishCreate) GetFinisherAddr() string
func (*ReqTokenFinishCreate) GetOwnerAddr ¶
func (x *ReqTokenFinishCreate) GetOwnerAddr() string
func (*ReqTokenFinishCreate) GetSymbol ¶
func (x *ReqTokenFinishCreate) GetSymbol() string
func (*ReqTokenFinishCreate) ProtoMessage ¶
func (*ReqTokenFinishCreate) ProtoMessage()
func (*ReqTokenFinishCreate) ProtoReflect ¶ added in v1.65.3
func (x *ReqTokenFinishCreate) ProtoReflect() protoreflect.Message
func (*ReqTokenFinishCreate) Reset ¶
func (x *ReqTokenFinishCreate) Reset()
func (*ReqTokenFinishCreate) String ¶
func (x *ReqTokenFinishCreate) String() string
type ReqTokenPreCreate ¶
type ReqTokenPreCreate struct {
CreatorAddr string `protobuf:"bytes,1,opt,name=creator_addr,json=creatorAddr,proto3" json:"creator_addr,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction,omitempty"`
OwnerAddr string `protobuf:"bytes,5,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
Total int64 `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
Price int64 `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"`
// contains filtered or unexported fields
}
func (*ReqTokenPreCreate) Descriptor
deprecated
func (*ReqTokenPreCreate) Descriptor() ([]byte, []int)
Deprecated: Use ReqTokenPreCreate.ProtoReflect.Descriptor instead.
func (*ReqTokenPreCreate) GetCreatorAddr ¶
func (x *ReqTokenPreCreate) GetCreatorAddr() string
func (*ReqTokenPreCreate) GetIntroduction ¶
func (x *ReqTokenPreCreate) GetIntroduction() string
func (*ReqTokenPreCreate) GetName ¶
func (x *ReqTokenPreCreate) GetName() string
func (*ReqTokenPreCreate) GetOwnerAddr ¶
func (x *ReqTokenPreCreate) GetOwnerAddr() string
func (*ReqTokenPreCreate) GetPrice ¶
func (x *ReqTokenPreCreate) GetPrice() int64
func (*ReqTokenPreCreate) GetSymbol ¶
func (x *ReqTokenPreCreate) GetSymbol() string
func (*ReqTokenPreCreate) GetTotal ¶
func (x *ReqTokenPreCreate) GetTotal() int64
func (*ReqTokenPreCreate) ProtoMessage ¶
func (*ReqTokenPreCreate) ProtoMessage()
func (*ReqTokenPreCreate) ProtoReflect ¶ added in v1.65.3
func (x *ReqTokenPreCreate) ProtoReflect() protoreflect.Message
func (*ReqTokenPreCreate) Reset ¶
func (x *ReqTokenPreCreate) Reset()
func (*ReqTokenPreCreate) String ¶
func (x *ReqTokenPreCreate) String() string
type ReqTokenRevokeCreate ¶
type ReqTokenRevokeCreate struct {
RevokerAddr string `protobuf:"bytes,1,opt,name=revoker_addr,json=revokerAddr,proto3" json:"revoker_addr,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
OwnerAddr string `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
// contains filtered or unexported fields
}
func (*ReqTokenRevokeCreate) Descriptor
deprecated
func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int)
Deprecated: Use ReqTokenRevokeCreate.ProtoReflect.Descriptor instead.
func (*ReqTokenRevokeCreate) GetOwnerAddr ¶
func (x *ReqTokenRevokeCreate) GetOwnerAddr() string
func (*ReqTokenRevokeCreate) GetRevokerAddr ¶
func (x *ReqTokenRevokeCreate) GetRevokerAddr() string
func (*ReqTokenRevokeCreate) GetSymbol ¶
func (x *ReqTokenRevokeCreate) GetSymbol() string
func (*ReqTokenRevokeCreate) ProtoMessage ¶
func (*ReqTokenRevokeCreate) ProtoMessage()
func (*ReqTokenRevokeCreate) ProtoReflect ¶ added in v1.65.3
func (x *ReqTokenRevokeCreate) ProtoReflect() protoreflect.Message
func (*ReqTokenRevokeCreate) Reset ¶
func (x *ReqTokenRevokeCreate) Reset()
func (*ReqTokenRevokeCreate) String ¶
func (x *ReqTokenRevokeCreate) String() string
type ReqTxHashList ¶
type ReqTxHashList struct {
Hashes []string `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
IsShortHash bool `protobuf:"varint,2,opt,name=isShortHash,proto3" json:"isShortHash,omitempty"`
// contains filtered or unexported fields
}
通过交易hash获取交易列表,需要区分是短hash还是全hash值
func (*ReqTxHashList) Descriptor
deprecated
func (*ReqTxHashList) Descriptor() ([]byte, []int)
Deprecated: Use ReqTxHashList.ProtoReflect.Descriptor instead.
func (*ReqTxHashList) GetHashes ¶
func (x *ReqTxHashList) GetHashes() []string
func (*ReqTxHashList) GetIsShortHash ¶
func (x *ReqTxHashList) GetIsShortHash() bool
func (*ReqTxHashList) ProtoMessage ¶
func (*ReqTxHashList) ProtoMessage()
func (*ReqTxHashList) ProtoReflect ¶ added in v1.65.3
func (x *ReqTxHashList) ProtoReflect() protoreflect.Message
func (*ReqTxHashList) Reset ¶
func (x *ReqTxHashList) Reset()
func (*ReqTxHashList) String ¶
func (x *ReqTxHashList) String() string
type ReqTxList ¶
type ReqTxList struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*ReqTxList) Descriptor
deprecated
func (*ReqTxList) ProtoMessage ¶
func (*ReqTxList) ProtoMessage()
func (*ReqTxList) ProtoReflect ¶ added in v1.65.3
func (x *ReqTxList) ProtoReflect() protoreflect.Message
type ReqWalletImportPrivkey ¶
type ReqWalletImportPrivkey struct {
// bitcoin 的私钥格式
Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
AddressID int32 `protobuf:"varint,3,opt,name=addressID,proto3" json:"addressID,omitempty"`
// contains filtered or unexported fields
}
func (*ReqWalletImportPrivkey) Descriptor
deprecated
func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletImportPrivkey.ProtoReflect.Descriptor instead.
func (*ReqWalletImportPrivkey) GetAddressID ¶ added in v1.67.1
func (x *ReqWalletImportPrivkey) GetAddressID() int32
func (*ReqWalletImportPrivkey) GetLabel ¶
func (x *ReqWalletImportPrivkey) GetLabel() string
func (*ReqWalletImportPrivkey) GetPrivkey ¶
func (x *ReqWalletImportPrivkey) GetPrivkey() string
func (*ReqWalletImportPrivkey) ProtoMessage ¶
func (*ReqWalletImportPrivkey) ProtoMessage()
func (*ReqWalletImportPrivkey) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletImportPrivkey) ProtoReflect() protoreflect.Message
func (*ReqWalletImportPrivkey) Reset ¶
func (x *ReqWalletImportPrivkey) Reset()
func (*ReqWalletImportPrivkey) String ¶
func (x *ReqWalletImportPrivkey) String() string
type ReqWalletMergeBalance ¶
type ReqWalletMergeBalance struct {
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
// contains filtered or unexported fields
}
func (*ReqWalletMergeBalance) Descriptor
deprecated
func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletMergeBalance.ProtoReflect.Descriptor instead.
func (*ReqWalletMergeBalance) GetTo ¶
func (x *ReqWalletMergeBalance) GetTo() string
func (*ReqWalletMergeBalance) ProtoMessage ¶
func (*ReqWalletMergeBalance) ProtoMessage()
func (*ReqWalletMergeBalance) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletMergeBalance) ProtoReflect() protoreflect.Message
func (*ReqWalletMergeBalance) Reset ¶
func (x *ReqWalletMergeBalance) Reset()
func (*ReqWalletMergeBalance) String ¶
func (x *ReqWalletMergeBalance) String() string
type ReqWalletSendToAddress ¶
type ReqWalletSendToAddress struct {
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
IsToken bool `protobuf:"varint,5,opt,name=isToken,proto3" json:"isToken,omitempty"`
TokenSymbol string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
// contains filtered or unexported fields
}
发送交易
from : 打出地址 to :接受地址 amount : 转账额度 note :转账备注
func (*ReqWalletSendToAddress) Descriptor
deprecated
func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletSendToAddress.ProtoReflect.Descriptor instead.
func (*ReqWalletSendToAddress) GetAmount ¶
func (x *ReqWalletSendToAddress) GetAmount() int64
func (*ReqWalletSendToAddress) GetFrom ¶
func (x *ReqWalletSendToAddress) GetFrom() string
func (*ReqWalletSendToAddress) GetIsToken ¶
func (x *ReqWalletSendToAddress) GetIsToken() bool
func (*ReqWalletSendToAddress) GetNote ¶
func (x *ReqWalletSendToAddress) GetNote() string
func (*ReqWalletSendToAddress) GetTo ¶
func (x *ReqWalletSendToAddress) GetTo() string
func (*ReqWalletSendToAddress) GetTokenSymbol ¶
func (x *ReqWalletSendToAddress) GetTokenSymbol() string
func (*ReqWalletSendToAddress) ProtoMessage ¶
func (*ReqWalletSendToAddress) ProtoMessage()
func (*ReqWalletSendToAddress) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletSendToAddress) ProtoReflect() protoreflect.Message
func (*ReqWalletSendToAddress) Reset ¶
func (x *ReqWalletSendToAddress) Reset()
func (*ReqWalletSendToAddress) String ¶
func (x *ReqWalletSendToAddress) String() string
type ReqWalletSetFee ¶
type ReqWalletSetFee struct {
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
func (*ReqWalletSetFee) Descriptor
deprecated
func (*ReqWalletSetFee) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletSetFee.ProtoReflect.Descriptor instead.
func (*ReqWalletSetFee) GetAmount ¶
func (x *ReqWalletSetFee) GetAmount() int64
func (*ReqWalletSetFee) ProtoMessage ¶
func (*ReqWalletSetFee) ProtoMessage()
func (*ReqWalletSetFee) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletSetFee) ProtoReflect() protoreflect.Message
func (*ReqWalletSetFee) Reset ¶
func (x *ReqWalletSetFee) Reset()
func (*ReqWalletSetFee) String ¶
func (x *ReqWalletSetFee) String() string
type ReqWalletSetLabel ¶
type ReqWalletSetLabel struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*ReqWalletSetLabel) Descriptor
deprecated
func (*ReqWalletSetLabel) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletSetLabel.ProtoReflect.Descriptor instead.
func (*ReqWalletSetLabel) GetAddr ¶
func (x *ReqWalletSetLabel) GetAddr() string
func (*ReqWalletSetLabel) GetLabel ¶
func (x *ReqWalletSetLabel) GetLabel() string
func (*ReqWalletSetLabel) ProtoMessage ¶
func (*ReqWalletSetLabel) ProtoMessage()
func (*ReqWalletSetLabel) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletSetLabel) ProtoReflect() protoreflect.Message
func (*ReqWalletSetLabel) Reset ¶
func (x *ReqWalletSetLabel) Reset()
func (*ReqWalletSetLabel) String ¶
func (x *ReqWalletSetLabel) String() string
type ReqWalletSetPasswd ¶
type ReqWalletSetPasswd struct {
OldPass string `protobuf:"bytes,1,opt,name=oldPass,proto3" json:"oldPass,omitempty"`
NewPass string `protobuf:"bytes,2,opt,name=newPass,proto3" json:"newPass,omitempty"`
// contains filtered or unexported fields
}
func (*ReqWalletSetPasswd) Descriptor
deprecated
func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletSetPasswd.ProtoReflect.Descriptor instead.
func (*ReqWalletSetPasswd) GetNewPass ¶
func (x *ReqWalletSetPasswd) GetNewPass() string
func (*ReqWalletSetPasswd) GetOldPass ¶
func (x *ReqWalletSetPasswd) GetOldPass() string
func (*ReqWalletSetPasswd) ProtoMessage ¶
func (*ReqWalletSetPasswd) ProtoMessage()
func (*ReqWalletSetPasswd) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletSetPasswd) ProtoReflect() protoreflect.Message
func (*ReqWalletSetPasswd) Reset ¶
func (x *ReqWalletSetPasswd) Reset()
func (*ReqWalletSetPasswd) String ¶
func (x *ReqWalletSetPasswd) String() string
type ReqWalletTransactionList ¶
type ReqWalletTransactionList struct {
FromTx []byte `protobuf:"bytes,1,opt,name=fromTx,proto3" json:"fromTx,omitempty"`
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
// contains filtered or unexported fields
}
获取钱包交易的详细信息
fromTx : []byte( Sprintf("%018d", height*100000 + index),
表示从高度 height 中的 index 开始获取交易列表;
第一次传参为空,获取最新的交易。)
count :获取交易列表的个数。
direction :查找方式;0,上一页;1,下一页。
func (*ReqWalletTransactionList) Descriptor
deprecated
func (*ReqWalletTransactionList) Descriptor() ([]byte, []int)
Deprecated: Use ReqWalletTransactionList.ProtoReflect.Descriptor instead.
func (*ReqWalletTransactionList) GetCount ¶
func (x *ReqWalletTransactionList) GetCount() int32
func (*ReqWalletTransactionList) GetDirection ¶
func (x *ReqWalletTransactionList) GetDirection() int32
func (*ReqWalletTransactionList) GetFromTx ¶
func (x *ReqWalletTransactionList) GetFromTx() []byte
func (*ReqWalletTransactionList) ProtoMessage ¶
func (*ReqWalletTransactionList) ProtoMessage()
func (*ReqWalletTransactionList) ProtoReflect ¶ added in v1.65.3
func (x *ReqWalletTransactionList) ProtoReflect() protoreflect.Message
func (*ReqWalletTransactionList) Reset ¶
func (x *ReqWalletTransactionList) Reset()
func (*ReqWalletTransactionList) String ¶
func (x *ReqWalletTransactionList) String() string
type Request ¶
type Request struct {
// Types that are assignable to Value:
// *Request_Client
// *Request_Preprepare
// *Request_Prepare
// *Request_Commit
// *Request_Checkpoint
// *Request_Viewchange
// *Request_Ack
// *Request_Newview
Value isRequest_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetAck ¶
func (x *Request) GetAck() *RequestAck
func (*Request) GetCheckpoint ¶
func (x *Request) GetCheckpoint() *RequestCheckpoint
func (*Request) GetClient ¶
func (x *Request) GetClient() *RequestClient
func (*Request) GetCommit ¶
func (x *Request) GetCommit() *RequestCommit
func (*Request) GetNewview ¶
func (x *Request) GetNewview() *RequestNewView
func (*Request) GetPrepare ¶
func (x *Request) GetPrepare() *RequestPrepare
func (*Request) GetPreprepare ¶
func (x *Request) GetPreprepare() *RequestPrePrepare
func (*Request) GetViewchange ¶
func (x *Request) GetViewchange() *RequestViewChange
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v1.65.3
func (x *Request) ProtoReflect() protoreflect.Message
type RequestAck ¶
type RequestAck struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Replica uint32 `protobuf:"varint,2,opt,name=replica,proto3" json:"replica,omitempty"`
Viewchanger uint32 `protobuf:"varint,3,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
Digest []byte `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"`
// contains filtered or unexported fields
}
func (*RequestAck) Descriptor
deprecated
func (*RequestAck) Descriptor() ([]byte, []int)
Deprecated: Use RequestAck.ProtoReflect.Descriptor instead.
func (*RequestAck) GetDigest ¶
func (x *RequestAck) GetDigest() []byte
func (*RequestAck) GetReplica ¶
func (x *RequestAck) GetReplica() uint32
func (*RequestAck) GetView ¶
func (x *RequestAck) GetView() uint32
func (*RequestAck) GetViewchanger ¶
func (x *RequestAck) GetViewchanger() uint32
func (*RequestAck) ProtoMessage ¶
func (*RequestAck) ProtoMessage()
func (*RequestAck) ProtoReflect ¶ added in v1.65.3
func (x *RequestAck) ProtoReflect() protoreflect.Message
func (*RequestAck) Reset ¶
func (x *RequestAck) Reset()
func (*RequestAck) String ¶
func (x *RequestAck) String() string
type RequestCheckpoint ¶
type RequestCheckpoint struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
Replica uint32 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"`
// contains filtered or unexported fields
}
func (*RequestCheckpoint) Descriptor
deprecated
func (*RequestCheckpoint) Descriptor() ([]byte, []int)
Deprecated: Use RequestCheckpoint.ProtoReflect.Descriptor instead.
func (*RequestCheckpoint) GetDigest ¶
func (x *RequestCheckpoint) GetDigest() []byte
func (*RequestCheckpoint) GetReplica ¶
func (x *RequestCheckpoint) GetReplica() uint32
func (*RequestCheckpoint) GetSequence ¶
func (x *RequestCheckpoint) GetSequence() uint32
func (*RequestCheckpoint) ProtoMessage ¶
func (*RequestCheckpoint) ProtoMessage()
func (*RequestCheckpoint) ProtoReflect ¶ added in v1.65.3
func (x *RequestCheckpoint) ProtoReflect() protoreflect.Message
func (*RequestCheckpoint) Reset ¶
func (x *RequestCheckpoint) Reset()
func (*RequestCheckpoint) String ¶
func (x *RequestCheckpoint) String() string
type RequestClient ¶
type RequestClient struct {
Op *Operation `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
// contains filtered or unexported fields
}
func (*RequestClient) Descriptor
deprecated
func (*RequestClient) Descriptor() ([]byte, []int)
Deprecated: Use RequestClient.ProtoReflect.Descriptor instead.
func (*RequestClient) GetClient ¶
func (x *RequestClient) GetClient() string
func (*RequestClient) GetOp ¶
func (x *RequestClient) GetOp() *Operation
func (*RequestClient) GetTimestamp ¶
func (x *RequestClient) GetTimestamp() string
func (*RequestClient) ProtoMessage ¶
func (*RequestClient) ProtoMessage()
func (*RequestClient) ProtoReflect ¶ added in v1.65.3
func (x *RequestClient) ProtoReflect() protoreflect.Message
func (*RequestClient) Reset ¶
func (x *RequestClient) Reset()
func (*RequestClient) String ¶
func (x *RequestClient) String() string
type RequestCommit ¶
type RequestCommit struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Replica uint32 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"`
// contains filtered or unexported fields
}
func (*RequestCommit) Descriptor
deprecated
func (*RequestCommit) Descriptor() ([]byte, []int)
Deprecated: Use RequestCommit.ProtoReflect.Descriptor instead.
func (*RequestCommit) GetReplica ¶
func (x *RequestCommit) GetReplica() uint32
func (*RequestCommit) GetSequence ¶
func (x *RequestCommit) GetSequence() uint32
func (*RequestCommit) GetView ¶
func (x *RequestCommit) GetView() uint32
func (*RequestCommit) ProtoMessage ¶
func (*RequestCommit) ProtoMessage()
func (*RequestCommit) ProtoReflect ¶ added in v1.65.3
func (x *RequestCommit) ProtoReflect() protoreflect.Message
func (*RequestCommit) Reset ¶
func (x *RequestCommit) Reset()
func (*RequestCommit) String ¶
func (x *RequestCommit) String() string
type RequestNewView ¶
type RequestNewView struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Viewchanges []*ViewChange `protobuf:"bytes,2,rep,name=viewchanges,proto3" json:"viewchanges,omitempty"`
Summaries []*Summary `protobuf:"bytes,4,rep,name=summaries,proto3" json:"summaries,omitempty"`
Replica uint32 `protobuf:"varint,5,opt,name=replica,proto3" json:"replica,omitempty"`
// contains filtered or unexported fields
}
func (*RequestNewView) Descriptor
deprecated
func (*RequestNewView) Descriptor() ([]byte, []int)
Deprecated: Use RequestNewView.ProtoReflect.Descriptor instead.
func (*RequestNewView) GetReplica ¶
func (x *RequestNewView) GetReplica() uint32
func (*RequestNewView) GetSummaries ¶
func (x *RequestNewView) GetSummaries() []*Summary
func (*RequestNewView) GetView ¶
func (x *RequestNewView) GetView() uint32
func (*RequestNewView) GetViewchanges ¶
func (x *RequestNewView) GetViewchanges() []*ViewChange
func (*RequestNewView) ProtoMessage ¶
func (*RequestNewView) ProtoMessage()
func (*RequestNewView) ProtoReflect ¶ added in v1.65.3
func (x *RequestNewView) ProtoReflect() protoreflect.Message
func (*RequestNewView) Reset ¶
func (x *RequestNewView) Reset()
func (*RequestNewView) String ¶
func (x *RequestNewView) String() string
type RequestPrePrepare ¶
type RequestPrePrepare struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
Replica uint32 `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
// contains filtered or unexported fields
}
func (*RequestPrePrepare) Descriptor
deprecated
func (*RequestPrePrepare) Descriptor() ([]byte, []int)
Deprecated: Use RequestPrePrepare.ProtoReflect.Descriptor instead.
func (*RequestPrePrepare) GetDigest ¶
func (x *RequestPrePrepare) GetDigest() []byte
func (*RequestPrePrepare) GetReplica ¶
func (x *RequestPrePrepare) GetReplica() uint32
func (*RequestPrePrepare) GetSequence ¶
func (x *RequestPrePrepare) GetSequence() uint32
func (*RequestPrePrepare) GetView ¶
func (x *RequestPrePrepare) GetView() uint32
func (*RequestPrePrepare) ProtoMessage ¶
func (*RequestPrePrepare) ProtoMessage()
func (*RequestPrePrepare) ProtoReflect ¶ added in v1.65.3
func (x *RequestPrePrepare) ProtoReflect() protoreflect.Message
func (*RequestPrePrepare) Reset ¶
func (x *RequestPrePrepare) Reset()
func (*RequestPrePrepare) String ¶
func (x *RequestPrePrepare) String() string
type RequestPrepare ¶
type RequestPrepare struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
Replica uint32 `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
// contains filtered or unexported fields
}
func (*RequestPrepare) Descriptor
deprecated
func (*RequestPrepare) Descriptor() ([]byte, []int)
Deprecated: Use RequestPrepare.ProtoReflect.Descriptor instead.
func (*RequestPrepare) GetDigest ¶
func (x *RequestPrepare) GetDigest() []byte
func (*RequestPrepare) GetReplica ¶
func (x *RequestPrepare) GetReplica() uint32
func (*RequestPrepare) GetSequence ¶
func (x *RequestPrepare) GetSequence() uint32
func (*RequestPrepare) GetView ¶
func (x *RequestPrepare) GetView() uint32
func (*RequestPrepare) ProtoMessage ¶
func (*RequestPrepare) ProtoMessage()
func (*RequestPrepare) ProtoReflect ¶ added in v1.65.3
func (x *RequestPrepare) ProtoReflect() protoreflect.Message
func (*RequestPrepare) Reset ¶
func (x *RequestPrepare) Reset()
func (*RequestPrepare) String ¶
func (x *RequestPrepare) String() string
type RequestViewChange ¶
type RequestViewChange struct {
View uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Checkpoints []*Checkpoint `protobuf:"bytes,3,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"`
Preps []*Entry `protobuf:"bytes,4,rep,name=preps,proto3" json:"preps,omitempty"`
Prepreps []*Entry `protobuf:"bytes,5,rep,name=prepreps,proto3" json:"prepreps,omitempty"`
Replica uint32 `protobuf:"varint,6,opt,name=replica,proto3" json:"replica,omitempty"`
// contains filtered or unexported fields
}
func (*RequestViewChange) Descriptor
deprecated
func (*RequestViewChange) Descriptor() ([]byte, []int)
Deprecated: Use RequestViewChange.ProtoReflect.Descriptor instead.
func (*RequestViewChange) GetCheckpoints ¶
func (x *RequestViewChange) GetCheckpoints() []*Checkpoint
func (*RequestViewChange) GetPrepreps ¶
func (x *RequestViewChange) GetPrepreps() []*Entry
func (*RequestViewChange) GetPreps ¶
func (x *RequestViewChange) GetPreps() []*Entry
func (*RequestViewChange) GetReplica ¶
func (x *RequestViewChange) GetReplica() uint32
func (*RequestViewChange) GetSequence ¶
func (x *RequestViewChange) GetSequence() uint32
func (*RequestViewChange) GetView ¶
func (x *RequestViewChange) GetView() uint32
func (*RequestViewChange) ProtoMessage ¶
func (*RequestViewChange) ProtoMessage()
func (*RequestViewChange) ProtoReflect ¶ added in v1.65.3
func (x *RequestViewChange) ProtoReflect() protoreflect.Message
func (*RequestViewChange) Reset ¶
func (x *RequestViewChange) Reset()
func (*RequestViewChange) String ¶
func (x *RequestViewChange) String() string
type Request_Ack ¶
type Request_Ack struct {
Ack *RequestAck `protobuf:"bytes,7,opt,name=ack,proto3,oneof"`
}
type Request_Checkpoint ¶
type Request_Checkpoint struct {
Checkpoint *RequestCheckpoint `protobuf:"bytes,5,opt,name=checkpoint,proto3,oneof"`
}
type Request_Client ¶
type Request_Client struct {
Client *RequestClient `protobuf:"bytes,1,opt,name=client,proto3,oneof"`
}
type Request_Commit ¶
type Request_Commit struct {
Commit *RequestCommit `protobuf:"bytes,4,opt,name=commit,proto3,oneof"`
}
type Request_Newview ¶
type Request_Newview struct {
Newview *RequestNewView `protobuf:"bytes,8,opt,name=newview,proto3,oneof"`
}
type Request_Prepare ¶
type Request_Prepare struct {
Prepare *RequestPrepare `protobuf:"bytes,3,opt,name=prepare,proto3,oneof"`
}
type Request_Preprepare ¶
type Request_Preprepare struct {
Preprepare *RequestPrePrepare `protobuf:"bytes,2,opt,name=preprepare,proto3,oneof"`
}
type Request_Viewchange ¶
type Request_Viewchange struct {
Viewchange *RequestViewChange `protobuf:"bytes,6,opt,name=viewchange,proto3,oneof"`
}
type Result ¶
type Result struct {
Value *Block `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶ added in v1.65.3
func (x *Result) ProtoReflect() protoreflect.Message
type RingSignature ¶
type RingSignature struct {
Items []*RingSignatureItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
环签名类型时,签名字段存储的环签名信息
func (*RingSignature) Descriptor
deprecated
func (*RingSignature) Descriptor() ([]byte, []int)
Deprecated: Use RingSignature.ProtoReflect.Descriptor instead.
func (*RingSignature) GetItems ¶
func (x *RingSignature) GetItems() []*RingSignatureItem
func (*RingSignature) ProtoMessage ¶
func (*RingSignature) ProtoMessage()
func (*RingSignature) ProtoReflect ¶ added in v1.65.3
func (x *RingSignature) ProtoReflect() protoreflect.Message
func (*RingSignature) Reset ¶
func (x *RingSignature) Reset()
func (*RingSignature) String ¶
func (x *RingSignature) String() string
type RingSignatureItem ¶
type RingSignatureItem struct {
Pubkey [][]byte `protobuf:"bytes,1,rep,name=pubkey,proto3" json:"pubkey,omitempty"`
Signature [][]byte `protobuf:"bytes,2,rep,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
环签名中的一组签名数据
func (*RingSignatureItem) Descriptor
deprecated
func (*RingSignatureItem) Descriptor() ([]byte, []int)
Deprecated: Use RingSignatureItem.ProtoReflect.Descriptor instead.
func (*RingSignatureItem) GetPubkey ¶
func (x *RingSignatureItem) GetPubkey() [][]byte
func (*RingSignatureItem) GetSignature ¶
func (x *RingSignatureItem) GetSignature() [][]byte
func (*RingSignatureItem) ProtoMessage ¶
func (*RingSignatureItem) ProtoMessage()
func (*RingSignatureItem) ProtoReflect ¶ added in v1.65.3
func (x *RingSignatureItem) ProtoReflect() protoreflect.Message
func (*RingSignatureItem) Reset ¶
func (x *RingSignatureItem) Reset()
func (*RingSignatureItem) String ¶
func (x *RingSignatureItem) String() string
type SaveSeedByPw ¶
type SaveSeedByPw struct {
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
// contains filtered or unexported fields
}
存储钱包的种子
seed : 钱包种子 passwd :钱包密码
func (*SaveSeedByPw) Descriptor
deprecated
func (*SaveSeedByPw) Descriptor() ([]byte, []int)
Deprecated: Use SaveSeedByPw.ProtoReflect.Descriptor instead.
func (*SaveSeedByPw) GetPasswd ¶
func (x *SaveSeedByPw) GetPasswd() string
func (*SaveSeedByPw) GetSeed ¶
func (x *SaveSeedByPw) GetSeed() string
func (*SaveSeedByPw) ProtoMessage ¶
func (*SaveSeedByPw) ProtoMessage()
func (*SaveSeedByPw) ProtoReflect ¶ added in v1.65.3
func (x *SaveSeedByPw) ProtoReflect() protoreflect.Message
func (*SaveSeedByPw) Reset ¶
func (x *SaveSeedByPw) Reset()
func (*SaveSeedByPw) String ¶
func (x *SaveSeedByPw) String() string
type ServerTime ¶ added in v1.65.1
type ServerTime struct {
CurrentTimestamp int64 `protobuf:"varint,1,opt,name=currentTimestamp,proto3" json:"currentTimestamp,omitempty"`
// contains filtered or unexported fields
}
func (*ServerTime) Descriptor
deprecated
added in
v1.65.1
func (*ServerTime) Descriptor() ([]byte, []int)
Deprecated: Use ServerTime.ProtoReflect.Descriptor instead.
func (*ServerTime) GetCurrentTimestamp ¶ added in v1.65.1
func (x *ServerTime) GetCurrentTimestamp() int64
func (*ServerTime) ProtoMessage ¶ added in v1.65.1
func (*ServerTime) ProtoMessage()
func (*ServerTime) ProtoReflect ¶ added in v1.65.3
func (x *ServerTime) ProtoReflect() protoreflect.Message
func (*ServerTime) Reset ¶ added in v1.65.1
func (x *ServerTime) Reset()
func (*ServerTime) String ¶ added in v1.65.1
func (x *ServerTime) String() string
type SetPeer ¶ added in v1.65.3
type SetPeer struct {
PeerAddr string `protobuf:"bytes,1,opt,name=peerAddr,proto3" json:"peerAddr,omitempty"`
Pid string `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
Seed bool `protobuf:"varint,3,opt,name=seed,proto3" json:"seed,omitempty"`
// contains filtered or unexported fields
}
SetPeer 通过rpc 方式连接指定的节点
func (*SetPeer) Descriptor
deprecated
added in
v1.65.3
func (*SetPeer) GetPeerAddr ¶ added in v1.65.3
func (*SetPeer) ProtoMessage ¶ added in v1.65.3
func (*SetPeer) ProtoMessage()
func (*SetPeer) ProtoReflect ¶ added in v1.65.3
func (x *SetPeer) ProtoReflect() protoreflect.Message
type Signature ¶
type Signature struct {
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
//当ty为5时,格式应该用RingSignature去解析
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
对于一个交易组中的交易,要么全部成功,要么全部失败 这个要好好设计一下 最好交易构成一个链条[prevhash].独立的交易构成链条 只要这个组中有一个执行是出错的,那么就执行不成功 三种签名支持 ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> OnetimeED25519 ty = 5 -> RingBaseonED25519
func (*Signature) Descriptor
deprecated
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶ added in v1.65.3
func (x *Signature) ProtoReflect() protoreflect.Message
type SnowChits ¶ added in v1.69.0
type SnowChits struct {
RequestID uint32 `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
PreferredBlkHash []byte `protobuf:"bytes,3,opt,name=preferredBlkHash,proto3" json:"preferredBlkHash,omitempty"`
AcceptedBlkHash []byte `protobuf:"bytes,4,opt,name=acceptedBlkHash,proto3" json:"acceptedBlkHash,omitempty"`
// contains filtered or unexported fields
}
func (*SnowChits) Descriptor
deprecated
added in
v1.69.0
func (*SnowChits) GetAcceptedBlkHash ¶ added in v1.69.0
func (*SnowChits) GetPeerName ¶ added in v1.69.0
func (*SnowChits) GetPreferredBlkHash ¶ added in v1.69.0
func (*SnowChits) GetRequestID ¶ added in v1.69.0
func (*SnowChits) ProtoMessage ¶ added in v1.69.0
func (*SnowChits) ProtoMessage()
func (*SnowChits) ProtoReflect ¶ added in v1.69.0
func (x *SnowChits) ProtoReflect() protoreflect.Message
type SnowChoice ¶ added in v1.69.0
type SnowChoice struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*SnowChoice) Descriptor
deprecated
added in
v1.69.0
func (*SnowChoice) Descriptor() ([]byte, []int)
Deprecated: Use SnowChoice.ProtoReflect.Descriptor instead.
func (*SnowChoice) GetHash ¶ added in v1.69.0
func (x *SnowChoice) GetHash() []byte
func (*SnowChoice) GetHeight ¶ added in v1.69.0
func (x *SnowChoice) GetHeight() int64
func (*SnowChoice) ProtoMessage ¶ added in v1.69.0
func (*SnowChoice) ProtoMessage()
func (*SnowChoice) ProtoReflect ¶ added in v1.69.0
func (x *SnowChoice) ProtoReflect() protoreflect.Message
func (*SnowChoice) Reset ¶ added in v1.69.0
func (x *SnowChoice) Reset()
func (*SnowChoice) String ¶ added in v1.69.0
func (x *SnowChoice) String() string
type SnowFailedQuery ¶ added in v1.69.0
type SnowFailedQuery struct {
RequestID uint32 `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
// contains filtered or unexported fields
}
func (*SnowFailedQuery) Descriptor
deprecated
added in
v1.69.0
func (*SnowFailedQuery) Descriptor() ([]byte, []int)
Deprecated: Use SnowFailedQuery.ProtoReflect.Descriptor instead.
func (*SnowFailedQuery) GetPeerName ¶ added in v1.69.0
func (x *SnowFailedQuery) GetPeerName() string
func (*SnowFailedQuery) GetRequestID ¶ added in v1.69.0
func (x *SnowFailedQuery) GetRequestID() uint32
func (*SnowFailedQuery) ProtoMessage ¶ added in v1.69.0
func (*SnowFailedQuery) ProtoMessage()
func (*SnowFailedQuery) ProtoReflect ¶ added in v1.69.0
func (x *SnowFailedQuery) ProtoReflect() protoreflect.Message
func (*SnowFailedQuery) Reset ¶ added in v1.69.0
func (x *SnowFailedQuery) Reset()
func (*SnowFailedQuery) String ¶ added in v1.69.0
func (x *SnowFailedQuery) String() string
type SnowGetBlock ¶ added in v1.69.0
type SnowGetBlock struct {
RequestID uint32 `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
// contains filtered or unexported fields
}
func (*SnowGetBlock) Descriptor
deprecated
added in
v1.69.0
func (*SnowGetBlock) Descriptor() ([]byte, []int)
Deprecated: Use SnowGetBlock.ProtoReflect.Descriptor instead.
func (*SnowGetBlock) GetBlockHash ¶ added in v1.69.0
func (x *SnowGetBlock) GetBlockHash() []byte
func (*SnowGetBlock) GetPeerName ¶ added in v1.69.0
func (x *SnowGetBlock) GetPeerName() string
func (*SnowGetBlock) GetRequestID ¶ added in v1.69.0
func (x *SnowGetBlock) GetRequestID() uint32
func (*SnowGetBlock) ProtoMessage ¶ added in v1.69.0
func (*SnowGetBlock) ProtoMessage()
func (*SnowGetBlock) ProtoReflect ¶ added in v1.69.0
func (x *SnowGetBlock) ProtoReflect() protoreflect.Message
func (*SnowGetBlock) Reset ¶ added in v1.69.0
func (x *SnowGetBlock) Reset()
func (*SnowGetBlock) String ¶ added in v1.69.0
func (x *SnowGetBlock) String() string
type SnowPullQuery ¶ added in v1.69.0
type SnowPullQuery struct {
RequestID uint32 `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
// contains filtered or unexported fields
}
func (*SnowPullQuery) Descriptor
deprecated
added in
v1.69.0
func (*SnowPullQuery) Descriptor() ([]byte, []int)
Deprecated: Use SnowPullQuery.ProtoReflect.Descriptor instead.
func (*SnowPullQuery) GetBlockHash ¶ added in v1.69.0
func (x *SnowPullQuery) GetBlockHash() []byte
func (*SnowPullQuery) GetPeerName ¶ added in v1.69.0
func (x *SnowPullQuery) GetPeerName() string
func (*SnowPullQuery) GetRequestID ¶ added in v1.69.0
func (x *SnowPullQuery) GetRequestID() uint32
func (*SnowPullQuery) ProtoMessage ¶ added in v1.69.0
func (*SnowPullQuery) ProtoMessage()
func (*SnowPullQuery) ProtoReflect ¶ added in v1.69.0
func (x *SnowPullQuery) ProtoReflect() protoreflect.Message
func (*SnowPullQuery) Reset ¶ added in v1.69.0
func (x *SnowPullQuery) Reset()
func (*SnowPullQuery) String ¶ added in v1.69.0
func (x *SnowPullQuery) String() string
type SnowPushQuery ¶ added in v1.69.0
type SnowPushQuery struct {
RequestID uint32 `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
BlockData []byte `protobuf:"bytes,3,opt,name=blockData,proto3" json:"blockData,omitempty"`
// contains filtered or unexported fields
}
func (*SnowPushQuery) Descriptor
deprecated
added in
v1.69.0
func (*SnowPushQuery) Descriptor() ([]byte, []int)
Deprecated: Use SnowPushQuery.ProtoReflect.Descriptor instead.
func (*SnowPushQuery) GetBlockData ¶ added in v1.69.0
func (x *SnowPushQuery) GetBlockData() []byte
func (*SnowPushQuery) GetPeerName ¶ added in v1.69.0
func (x *SnowPushQuery) GetPeerName() string
func (*SnowPushQuery) GetRequestID ¶ added in v1.69.0
func (x *SnowPushQuery) GetRequestID() uint32
func (*SnowPushQuery) ProtoMessage ¶ added in v1.69.0
func (*SnowPushQuery) ProtoMessage()
func (*SnowPushQuery) ProtoReflect ¶ added in v1.69.0
func (x *SnowPushQuery) ProtoReflect() protoreflect.Message
func (*SnowPushQuery) Reset ¶ added in v1.69.0
func (x *SnowPushQuery) Reset()
func (*SnowPushQuery) String ¶ added in v1.69.0
func (x *SnowPushQuery) String() string
type SnowPutBlock ¶ added in v1.69.0
type SnowPutBlock struct {
RequestID uint32 `protobuf:"varint,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
BlockData []byte `protobuf:"bytes,4,opt,name=blockData,proto3" json:"blockData,omitempty"`
// contains filtered or unexported fields
}
func (*SnowPutBlock) Descriptor
deprecated
added in
v1.69.0
func (*SnowPutBlock) Descriptor() ([]byte, []int)
Deprecated: Use SnowPutBlock.ProtoReflect.Descriptor instead.
func (*SnowPutBlock) GetBlockData ¶ added in v1.69.0
func (x *SnowPutBlock) GetBlockData() []byte
func (*SnowPutBlock) GetBlockHash ¶ added in v1.69.0
func (x *SnowPutBlock) GetBlockHash() []byte
func (*SnowPutBlock) GetPeerName ¶ added in v1.69.0
func (x *SnowPutBlock) GetPeerName() string
func (*SnowPutBlock) GetRequestID ¶ added in v1.69.0
func (x *SnowPutBlock) GetRequestID() uint32
func (*SnowPutBlock) ProtoMessage ¶ added in v1.69.0
func (*SnowPutBlock) ProtoMessage()
func (*SnowPutBlock) ProtoReflect ¶ added in v1.69.0
func (x *SnowPutBlock) ProtoReflect() protoreflect.Message
func (*SnowPutBlock) Reset ¶ added in v1.69.0
func (x *SnowPutBlock) Reset()
func (*SnowPutBlock) String ¶ added in v1.69.0
func (x *SnowPutBlock) String() string
type Statistical ¶ added in v1.65.3
type Statistical struct {
Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
Nodeinfo *NodeNetInfo `protobuf:"bytes,2,opt,name=nodeinfo,proto3" json:"nodeinfo,omitempty"`
// contains filtered or unexported fields
}
Statistical 用于统计信息的获取
func (*Statistical) Descriptor
deprecated
added in
v1.65.3
func (*Statistical) Descriptor() ([]byte, []int)
Deprecated: Use Statistical.ProtoReflect.Descriptor instead.
func (*Statistical) GetNodeinfo ¶ added in v1.65.3
func (x *Statistical) GetNodeinfo() *NodeNetInfo
func (*Statistical) GetPeers ¶ added in v1.65.3
func (x *Statistical) GetPeers() []*Peer
func (*Statistical) ProtoMessage ¶ added in v1.65.3
func (*Statistical) ProtoMessage()
func (*Statistical) ProtoReflect ¶ added in v1.65.3
func (x *Statistical) ProtoReflect() protoreflect.Message
func (*Statistical) Reset ¶ added in v1.65.3
func (x *Statistical) Reset()
func (*Statistical) String ¶ added in v1.65.3
func (x *Statistical) String() string
type Store ¶
type Store struct {
// 数据存储格式名称,目前支持mavl,kvdb,kvmvcc,mpt
Name string `json:"name,omitempty"`
// 数据存储驱动类别,目前支持leveldb,goleveldb,memdb,gobadgerdb,ssdb,pegasus
Driver string `json:"driver,omitempty"`
// 数据文件存储路径
DbPath string `json:"dbPath,omitempty"`
// Cache大小
DbCache int32 `json:"dbCache,omitempty"`
// 数据库版本
LocalDBVersion string `json:"localdbVersion,omitempty"`
// 数据库版本
StoreDBVersion string `json:"storedbVersion,omitempty"`
}
Store 配置
type StoreDel ¶
type StoreDel struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*StoreDel) Descriptor
deprecated
func (*StoreDel) GetStateHash ¶
func (*StoreDel) ProtoMessage ¶
func (*StoreDel) ProtoMessage()
func (*StoreDel) ProtoReflect ¶ added in v1.65.3
func (x *StoreDel) ProtoReflect() protoreflect.Message
type StoreGet ¶
type StoreGet struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
func (*StoreGet) Descriptor
deprecated
func (*StoreGet) GetStateHash ¶
func (*StoreGet) ProtoMessage ¶
func (*StoreGet) ProtoMessage()
func (*StoreGet) ProtoReflect ¶ added in v1.65.3
func (x *StoreGet) ProtoReflect() protoreflect.Message
type StoreList ¶
type StoreList struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
Start []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
End []byte `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
Suffix []byte `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
Mode int64 `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*StoreList) Descriptor
deprecated
func (*StoreList) GetStateHash ¶
func (*StoreList) ProtoMessage ¶
func (*StoreList) ProtoMessage()
func (*StoreList) ProtoReflect ¶ added in v1.65.3
func (x *StoreList) ProtoReflect() protoreflect.Message
type StoreListReply ¶
type StoreListReply struct {
Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
Suffix []byte `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
Num int64 `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"`
Mode int64 `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
NextKey []byte `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
Keys [][]byte `protobuf:"bytes,8,rep,name=keys,proto3" json:"keys,omitempty"`
Values [][]byte `protobuf:"bytes,9,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*StoreListReply) Descriptor
deprecated
func (*StoreListReply) Descriptor() ([]byte, []int)
Deprecated: Use StoreListReply.ProtoReflect.Descriptor instead.
func (*StoreListReply) GetCount ¶
func (x *StoreListReply) GetCount() int64
func (*StoreListReply) GetEnd ¶
func (x *StoreListReply) GetEnd() []byte
func (*StoreListReply) GetKeys ¶
func (x *StoreListReply) GetKeys() [][]byte
func (*StoreListReply) GetMode ¶
func (x *StoreListReply) GetMode() int64
func (*StoreListReply) GetNextKey ¶
func (x *StoreListReply) GetNextKey() []byte
func (*StoreListReply) GetNum ¶
func (x *StoreListReply) GetNum() int64
func (*StoreListReply) GetStart ¶
func (x *StoreListReply) GetStart() []byte
func (*StoreListReply) GetSuffix ¶
func (x *StoreListReply) GetSuffix() []byte
func (*StoreListReply) GetValues ¶
func (x *StoreListReply) GetValues() [][]byte
func (*StoreListReply) ProtoMessage ¶
func (*StoreListReply) ProtoMessage()
func (*StoreListReply) ProtoReflect ¶ added in v1.65.3
func (x *StoreListReply) ProtoReflect() protoreflect.Message
func (*StoreListReply) Reset ¶
func (x *StoreListReply) Reset()
func (*StoreListReply) String ¶
func (x *StoreListReply) String() string
type StoreNode ¶
type StoreNode struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
LeftHash []byte `protobuf:"bytes,3,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
RightHash []byte `protobuf:"bytes,4,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*StoreNode) Descriptor
deprecated
func (*StoreNode) GetLeftHash ¶
func (*StoreNode) GetRightHash ¶
func (*StoreNode) ProtoMessage ¶
func (*StoreNode) ProtoMessage()
func (*StoreNode) ProtoReflect ¶ added in v1.65.3
func (x *StoreNode) ProtoReflect() protoreflect.Message
type StoreReplyValue ¶
type StoreReplyValue struct {
Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*StoreReplyValue) Descriptor
deprecated
func (*StoreReplyValue) Descriptor() ([]byte, []int)
Deprecated: Use StoreReplyValue.ProtoReflect.Descriptor instead.
func (*StoreReplyValue) GetValues ¶
func (x *StoreReplyValue) GetValues() [][]byte
func (*StoreReplyValue) ProtoMessage ¶
func (*StoreReplyValue) ProtoMessage()
func (*StoreReplyValue) ProtoReflect ¶ added in v1.65.3
func (x *StoreReplyValue) ProtoReflect() protoreflect.Message
func (*StoreReplyValue) Reset ¶
func (x *StoreReplyValue) Reset()
func (*StoreReplyValue) String ¶
func (x *StoreReplyValue) String() string
type StoreSet ¶
type StoreSet struct {
StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
KV []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*StoreSet) Descriptor
deprecated
func (*StoreSet) GetStateHash ¶
func (*StoreSet) ProtoMessage ¶
func (*StoreSet) ProtoMessage()
func (*StoreSet) ProtoReflect ¶ added in v1.65.3
func (x *StoreSet) ProtoReflect() protoreflect.Message
type StoreSetWithSync ¶
type StoreSetWithSync struct {
Storeset *StoreSet `protobuf:"bytes,1,opt,name=storeset,proto3" json:"storeset,omitempty"`
Sync bool `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"`
Upgrade bool `protobuf:"varint,3,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
// contains filtered or unexported fields
}
func (*StoreSetWithSync) Descriptor
deprecated
func (*StoreSetWithSync) Descriptor() ([]byte, []int)
Deprecated: Use StoreSetWithSync.ProtoReflect.Descriptor instead.
func (*StoreSetWithSync) GetStoreset ¶
func (x *StoreSetWithSync) GetStoreset() *StoreSet
func (*StoreSetWithSync) GetSync ¶
func (x *StoreSetWithSync) GetSync() bool
func (*StoreSetWithSync) GetUpgrade ¶
func (x *StoreSetWithSync) GetUpgrade() bool
func (*StoreSetWithSync) ProtoMessage ¶
func (*StoreSetWithSync) ProtoMessage()
func (*StoreSetWithSync) ProtoReflect ¶ added in v1.65.3
func (x *StoreSetWithSync) ProtoReflect() protoreflect.Message
func (*StoreSetWithSync) Reset ¶
func (x *StoreSetWithSync) Reset()
func (*StoreSetWithSync) String ¶
func (x *StoreSetWithSync) String() string
type StoreValuePool ¶
type StoreValuePool struct {
Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
用于存储db Pool数据的Value
func (*StoreValuePool) Descriptor
deprecated
func (*StoreValuePool) Descriptor() ([]byte, []int)
Deprecated: Use StoreValuePool.ProtoReflect.Descriptor instead.
func (*StoreValuePool) GetValues ¶
func (x *StoreValuePool) GetValues() [][]byte
func (*StoreValuePool) ProtoMessage ¶
func (*StoreValuePool) ProtoMessage()
func (*StoreValuePool) ProtoReflect ¶ added in v1.65.3
func (x *StoreValuePool) ProtoReflect() protoreflect.Message
func (*StoreValuePool) Reset ¶
func (x *StoreValuePool) Reset()
func (*StoreValuePool) String ¶
func (x *StoreValuePool) String() string
type StringConfig ¶
type StringConfig struct {
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*StringConfig) Descriptor
deprecated
func (*StringConfig) Descriptor() ([]byte, []int)
Deprecated: Use StringConfig.ProtoReflect.Descriptor instead.
func (*StringConfig) GetValue ¶
func (x *StringConfig) GetValue() string
func (*StringConfig) ProtoMessage ¶
func (*StringConfig) ProtoMessage()
func (*StringConfig) ProtoReflect ¶ added in v1.65.3
func (x *StringConfig) ProtoReflect() protoreflect.Message
func (*StringConfig) Reset ¶
func (x *StringConfig) Reset()
func (*StringConfig) String ¶
func (x *StringConfig) String() string
type SubTopic ¶ added in v1.65.0
type SubTopic struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
// contains filtered or unexported fields
}
func (*SubTopic) Descriptor
deprecated
added in
v1.65.0
func (*SubTopic) ProtoMessage ¶ added in v1.65.0
func (*SubTopic) ProtoMessage()
func (*SubTopic) ProtoReflect ¶ added in v1.65.3
func (x *SubTopic) ProtoReflect() protoreflect.Message
type SubTopicReply ¶ added in v1.65.0
type SubTopicReply struct {
Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*SubTopicReply) Descriptor
deprecated
added in
v1.65.0
func (*SubTopicReply) Descriptor() ([]byte, []int)
Deprecated: Use SubTopicReply.ProtoReflect.Descriptor instead.
func (*SubTopicReply) GetMsg ¶ added in v1.65.0
func (x *SubTopicReply) GetMsg() string
func (*SubTopicReply) GetStatus ¶ added in v1.65.0
func (x *SubTopicReply) GetStatus() bool
func (*SubTopicReply) ProtoMessage ¶ added in v1.65.0
func (*SubTopicReply) ProtoMessage()
func (*SubTopicReply) ProtoReflect ¶ added in v1.65.3
func (x *SubTopicReply) ProtoReflect() protoreflect.Message
func (*SubTopicReply) Reset ¶ added in v1.65.0
func (x *SubTopicReply) Reset()
func (*SubTopicReply) String ¶ added in v1.65.0
func (x *SubTopicReply) String() string
type SubscribeStatus ¶ added in v1.66.1
type SubscribeStatus struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 1:active,2:noactive
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeStatus) Descriptor
deprecated
added in
v1.66.1
func (*SubscribeStatus) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeStatus.ProtoReflect.Descriptor instead.
func (*SubscribeStatus) GetName ¶ added in v1.66.1
func (x *SubscribeStatus) GetName() string
func (*SubscribeStatus) GetStatus ¶ added in v1.66.1
func (x *SubscribeStatus) GetStatus() int32
func (*SubscribeStatus) ProtoMessage ¶ added in v1.66.1
func (*SubscribeStatus) ProtoMessage()
func (*SubscribeStatus) ProtoReflect ¶ added in v1.66.1
func (x *SubscribeStatus) ProtoReflect() protoreflect.Message
func (*SubscribeStatus) Reset ¶ added in v1.66.1
func (x *SubscribeStatus) Reset()
func (*SubscribeStatus) String ¶ added in v1.66.1
func (x *SubscribeStatus) String() string
type Summary ¶
type Summary struct {
Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// contains filtered or unexported fields
}
func (*Summary) Descriptor
deprecated
func (*Summary) GetSequence ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
func (*Summary) ProtoReflect ¶ added in v1.65.3
func (x *Summary) ProtoReflect() protoreflect.Message
type TSSMessage ¶ added in v1.70.0
type TSSMessage struct {
Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*TSSMessage) Descriptor
deprecated
added in
v1.70.0
func (*TSSMessage) Descriptor() ([]byte, []int)
Deprecated: Use TSSMessage.ProtoReflect.Descriptor instead.
func (*TSSMessage) GetMsg ¶ added in v1.70.0
func (x *TSSMessage) GetMsg() []byte
func (*TSSMessage) GetProtocol ¶ added in v1.70.0
func (x *TSSMessage) GetProtocol() string
func (*TSSMessage) ProtoMessage ¶ added in v1.70.0
func (*TSSMessage) ProtoMessage()
func (*TSSMessage) ProtoReflect ¶ added in v1.70.0
func (x *TSSMessage) ProtoReflect() protoreflect.Message
func (*TSSMessage) Reset ¶ added in v1.70.0
func (x *TSSMessage) Reset()
func (*TSSMessage) String ¶ added in v1.70.0
func (x *TSSMessage) String() string
type TimeStatus ¶
type TimeStatus struct {
NtpTime string `protobuf:"bytes,1,opt,name=ntpTime,proto3" json:"ntpTime,omitempty"`
LocalTime string `protobuf:"bytes,2,opt,name=localTime,proto3" json:"localTime,omitempty"`
Diff int64 `protobuf:"varint,3,opt,name=diff,proto3" json:"diff,omitempty"`
// contains filtered or unexported fields
}
func (*TimeStatus) Descriptor
deprecated
func (*TimeStatus) Descriptor() ([]byte, []int)
Deprecated: Use TimeStatus.ProtoReflect.Descriptor instead.
func (*TimeStatus) GetDiff ¶
func (x *TimeStatus) GetDiff() int64
func (*TimeStatus) GetLocalTime ¶
func (x *TimeStatus) GetLocalTime() string
func (*TimeStatus) GetNtpTime ¶
func (x *TimeStatus) GetNtpTime() string
func (*TimeStatus) ProtoMessage ¶
func (*TimeStatus) ProtoMessage()
func (*TimeStatus) ProtoReflect ¶ added in v1.65.3
func (x *TimeStatus) ProtoReflect() protoreflect.Message
func (*TimeStatus) Reset ¶
func (x *TimeStatus) Reset()
func (*TimeStatus) String ¶
func (x *TimeStatus) String() string
type TopicData ¶ added in v1.65.0
type TopicData struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
* p2p 接收topic消息
func (*TopicData) Descriptor
deprecated
added in
v1.65.0
func (*TopicData) ProtoMessage ¶ added in v1.65.0
func (*TopicData) ProtoMessage()
func (*TopicData) ProtoReflect ¶ added in v1.65.3
func (x *TopicData) ProtoReflect() protoreflect.Message
type TopicList ¶ added in v1.65.0
type TopicList struct {
Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
// contains filtered or unexported fields
}
func (*TopicList) Descriptor
deprecated
added in
v1.65.0
func (*TopicList) ProtoMessage ¶ added in v1.65.0
func (*TopicList) ProtoMessage()
func (*TopicList) ProtoReflect ¶ added in v1.65.3
func (x *TopicList) ProtoReflect() protoreflect.Message
type TotalAmount ¶
type TotalAmount struct {
// 统计的总数
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*TotalAmount) Descriptor
deprecated
func (*TotalAmount) Descriptor() ([]byte, []int)
Deprecated: Use TotalAmount.ProtoReflect.Descriptor instead.
func (*TotalAmount) GetTotal ¶
func (x *TotalAmount) GetTotal() int64
func (*TotalAmount) ProtoMessage ¶
func (*TotalAmount) ProtoMessage()
func (*TotalAmount) ProtoReflect ¶ added in v1.65.3
func (x *TotalAmount) ProtoReflect() protoreflect.Message
func (*TotalAmount) Reset ¶
func (x *TotalAmount) Reset()
func (*TotalAmount) String ¶
func (x *TotalAmount) String() string
type TotalFee ¶
type TotalFee struct {
Fee int64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
TxCount int64 `protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
// contains filtered or unexported fields
}
手续费
func (*TotalFee) Descriptor
deprecated
func (*TotalFee) GetTxCount ¶
func (*TotalFee) ProtoMessage ¶
func (*TotalFee) ProtoMessage()
func (*TotalFee) ProtoReflect ¶ added in v1.65.3
func (x *TotalFee) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct {
Execer []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
Signature *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
Fee int64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
Expire int64 `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"`
//随机ID,可以防止payload 相同的时候,交易重复
Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
//对方地址,如果没有对方地址,可以为空
To string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"`
GroupCount int32 `protobuf:"varint,8,opt,name=groupCount,proto3" json:"groupCount,omitempty"`
Header []byte `protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"`
Next []byte `protobuf:"bytes,10,opt,name=next,proto3" json:"next,omitempty"`
ChainID int32 `protobuf:"varint,11,opt,name=chainID,proto3" json:"chainID,omitempty"`
// contains filtered or unexported fields
}
func CacheToTxs ¶
func CacheToTxs(caches []*TransactionCache) (txs []*Transaction)
CacheToTxs 从缓存中获取交易信息
func CallCreateTransaction ¶
func CallCreateTransaction(execName, action string, param Message) (*Transaction, error)
CallCreateTransaction 创建一个交易
func CloneTx ¶ added in v1.65.3
func CloneTx(tx *Transaction) *Transaction
CloneTx clone tx 这里要避免用 tmp := *tx 这样就会读 可能被 proto 其他线程修改的 size 字段 proto buffer 字段发生更改之后,一定要修改这里,否则可能引起严重的bug
func CreateFormatTx ¶
func CreateFormatTx(c *Chain33Config, execName string, payload []byte) (*Transaction, error)
CreateFormatTx 构造交易信息
func FormatTx ¶
func FormatTx(c *Chain33Config, execName string, tx *Transaction) (*Transaction, error)
FormatTx 格式化tx交易
func FormatTxExt ¶ added in v1.65.3
func FormatTxExt(chainID int32, isPara bool, minFee int64, execName string, tx *Transaction) (*Transaction, error)
FormatTxExt 根据输入参数格式化tx
func TransactionSort ¶
func TransactionSort(rawtxs []*Transaction) []*Transaction
TransactionSort 对主链以及平行链交易分类 构造一个map用于临时存储各个子链的交易, 按照title分类,主链交易的title设置成main 并对map按照title进行排序,不然每次遍历map顺序会不一致
func (*Transaction) ActionName ¶
func (tx *Transaction) ActionName() string
ActionName 获取tx交易的Actionname
func (*Transaction) Amount ¶
func (tx *Transaction) Amount() (int64, error)
Amount 解析tx的payload获取amount值
func (*Transaction) Check ¶
func (tx *Transaction) Check(cfg *Chain33Config, height, minfee, maxFee int64) error
Check 交易检测
func (*Transaction) CheckSign ¶
func (tx *Transaction) CheckSign(blockHeight int64) bool
CheckSign tx 有些时候是一个交易组
func (*Transaction) Clone ¶
func (tx *Transaction) Clone() *Transaction
Clone copytx := proto.Clone(tx).(*Transaction) too slow
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) FullHash ¶
func (tx *Transaction) FullHash() []byte
FullHash 交易的fullhash包含交易的签名信息
func (*Transaction) GetChainID ¶ added in v1.65.1
func (x *Transaction) GetChainID() int32
func (*Transaction) GetEthTxHash ¶ added in v1.67.5
func (tx *Transaction) GetEthTxHash() []byte
GetEthTxHash 获取eth 兼容交易的交易哈希
func (*Transaction) GetExecer ¶
func (x *Transaction) GetExecer() []byte
func (*Transaction) GetExpire ¶
func (x *Transaction) GetExpire() int64
func (*Transaction) GetFee ¶
func (x *Transaction) GetFee() int64
func (*Transaction) GetGroupCount ¶
func (x *Transaction) GetGroupCount() int32
func (*Transaction) GetHeader ¶
func (x *Transaction) GetHeader() []byte
func (*Transaction) GetNext ¶
func (x *Transaction) GetNext() []byte
func (*Transaction) GetNonce ¶
func (x *Transaction) GetNonce() int64
func (*Transaction) GetPayload ¶
func (x *Transaction) GetPayload() []byte
func (*Transaction) GetRealFee ¶
func (tx *Transaction) GetRealFee(minFee int64) (int64, error)
GetRealFee 获取交易真实费用
func (*Transaction) GetRealToAddr ¶
func (tx *Transaction) GetRealToAddr() string
GetRealToAddr 解析tx的payload获取real to值
func (*Transaction) GetSignature ¶
func (x *Transaction) GetSignature() *Signature
func (*Transaction) GetTo ¶
func (x *Transaction) GetTo() string
func (*Transaction) GetTxGroup ¶
func (tx *Transaction) GetTxGroup() (*Transactions, error)
GetTxGroup 交易组装成交易组格式
func (*Transaction) GetViewFromToAddr ¶
func (tx *Transaction) GetViewFromToAddr() (string, string)
GetViewFromToAddr 解析tx的payload获取view from to 值
func (*Transaction) Hash ¶
func (tx *Transaction) Hash() []byte
Hash 交易的hash不包含header的值,引入tx group的概念后,做了修改
func (*Transaction) IsExpire ¶
func (tx *Transaction) IsExpire(cfg *Chain33Config, height, blocktime int64) bool
IsExpire 交易是否过期
func (*Transaction) IsWithdraw ¶
func (tx *Transaction) IsWithdraw(coinExec string) bool
IsWithdraw 判断交易是withdraw交易,需要做from和to地址的swap,方便上层客户理解
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶ added in v1.65.3
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) SetExpire ¶
func (tx *Transaction) SetExpire(cfg *Chain33Config, expire time.Duration)
SetExpire 设置交易过期时间
func (*Transaction) SetRealFee ¶
func (tx *Transaction) SetRealFee(minFee int64) error
SetRealFee 设置交易真实费用
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionCache ¶
type TransactionCache struct {
*Transaction
// contains filtered or unexported fields
}
TransactionCache 交易缓存结构
func NewTransactionCache ¶
func NewTransactionCache(tx *Transaction) *TransactionCache
NewTransactionCache new交易缓存
func TxCacheGet ¶
func TxCacheGet(tx *Transaction) (*TransactionCache, bool)
TxCacheGet 某些交易的cache 加入缓存中,防止重复进行解析或者计算
func TxsToCache ¶
func TxsToCache(txs []*Transaction) (caches []*TransactionCache)
TxsToCache 缓存交易信息
func (*TransactionCache) Check ¶
func (tx *TransactionCache) Check(cfg *Chain33Config, height, minfee, maxFee int64) error
Check 交易缓存中交易组合费用的检测
func (*TransactionCache) CheckSign ¶
func (tx *TransactionCache) CheckSign(blockHeight int64) bool
CheckSign 检测签名
func (*TransactionCache) GetPayloadValue ¶
func (tx *TransactionCache) GetPayloadValue() (plname string, payload reflect.Value, plerr error)
GetPayloadValue 设置payload 的cache
func (*TransactionCache) GetTotalFee ¶
func (tx *TransactionCache) GetTotalFee(minFee int64) (int64, error)
GetTotalFee 获取交易真实费用
func (*TransactionCache) GetTxGroup ¶
func (tx *TransactionCache) GetTxGroup() (*Transactions, error)
GetTxGroup 获取交易组
func (*TransactionCache) SetPayloadValue ¶
func (tx *TransactionCache) SetPayloadValue(plname string, payload reflect.Value, plerr error)
SetPayloadValue 设置payload 的cache
type TransactionDetail ¶
type TransactionDetail struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
Receipt *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
Proofs [][]byte `protobuf:"bytes,3,rep,name=proofs,proto3" json:"proofs,omitempty"`
Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
Blocktime int64 `protobuf:"varint,6,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
Amount int64 `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
Fromaddr string `protobuf:"bytes,8,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
ActionName string `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
Assets []*Asset `protobuf:"bytes,10,rep,name=assets,proto3" json:"assets,omitempty"`
TxProofs []*TxProof `protobuf:"bytes,11,rep,name=txProofs,proto3" json:"txProofs,omitempty"`
FullHash []byte `protobuf:"bytes,12,opt,name=fullHash,proto3" json:"fullHash,omitempty"`
// contains filtered or unexported fields
}
func (*TransactionDetail) Descriptor
deprecated
func (*TransactionDetail) Descriptor() ([]byte, []int)
Deprecated: Use TransactionDetail.ProtoReflect.Descriptor instead.
func (*TransactionDetail) GetActionName ¶
func (x *TransactionDetail) GetActionName() string
func (*TransactionDetail) GetAmount ¶
func (x *TransactionDetail) GetAmount() int64
func (*TransactionDetail) GetAssets ¶
func (x *TransactionDetail) GetAssets() []*Asset
func (*TransactionDetail) GetBlocktime ¶
func (x *TransactionDetail) GetBlocktime() int64
func (*TransactionDetail) GetFromaddr ¶
func (x *TransactionDetail) GetFromaddr() string
func (*TransactionDetail) GetFullHash ¶
func (x *TransactionDetail) GetFullHash() []byte
func (*TransactionDetail) GetHeight ¶
func (x *TransactionDetail) GetHeight() int64
func (*TransactionDetail) GetIndex ¶
func (x *TransactionDetail) GetIndex() int64
func (*TransactionDetail) GetProofs ¶
func (x *TransactionDetail) GetProofs() [][]byte
func (*TransactionDetail) GetReceipt ¶
func (x *TransactionDetail) GetReceipt() *ReceiptData
func (*TransactionDetail) GetTx ¶
func (x *TransactionDetail) GetTx() *Transaction
func (*TransactionDetail) GetTxProofs ¶
func (x *TransactionDetail) GetTxProofs() []*TxProof
func (*TransactionDetail) ProtoMessage ¶
func (*TransactionDetail) ProtoMessage()
func (*TransactionDetail) ProtoReflect ¶ added in v1.65.3
func (x *TransactionDetail) ProtoReflect() protoreflect.Message
func (*TransactionDetail) Reset ¶
func (x *TransactionDetail) Reset()
func (*TransactionDetail) String ¶
func (x *TransactionDetail) String() string
type TransactionDetails ¶
type TransactionDetails struct {
Txs []*TransactionDetail `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
func (*TransactionDetails) Descriptor
deprecated
func (*TransactionDetails) Descriptor() ([]byte, []int)
Deprecated: Use TransactionDetails.ProtoReflect.Descriptor instead.
func (*TransactionDetails) GetTxs ¶
func (x *TransactionDetails) GetTxs() []*TransactionDetail
func (*TransactionDetails) ProtoMessage ¶
func (*TransactionDetails) ProtoMessage()
func (*TransactionDetails) ProtoReflect ¶ added in v1.65.3
func (x *TransactionDetails) ProtoReflect() protoreflect.Message
func (*TransactionDetails) Reset ¶
func (x *TransactionDetails) Reset()
func (*TransactionDetails) String ¶
func (x *TransactionDetails) String() string
type Transactions ¶
type Transactions struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
// contains filtered or unexported fields
}
func CreateTxGroup ¶
func CreateTxGroup(txs []*Transaction, feeRate int64) (*Transactions, error)
CreateTxGroup 创建组交易, feeRate传入交易费率, 建议通过系统GetProperFee获取
func (*Transactions) Check ¶
func (txgroup *Transactions) Check(cfg *Chain33Config, height, minfee, maxFee int64) error
Check height == 0 的时候,不做检查
func (*Transactions) CheckSign ¶
func (txgroup *Transactions) CheckSign(blockHeight int64) bool
CheckSign 检测交易组的签名
func (*Transactions) CheckWithFork ¶
func (txgroup *Transactions) CheckWithFork(cfg *Chain33Config, checkFork, paraFork bool, height, minfee, maxFee int64) error
CheckWithFork 和fork 无关的有个检查函数
func (*Transactions) Descriptor
deprecated
func (*Transactions) Descriptor() ([]byte, []int)
Deprecated: Use Transactions.ProtoReflect.Descriptor instead.
func (*Transactions) GetTxGroup ¶
func (txgroup *Transactions) GetTxGroup() *Transactions
GetTxGroup 获取交易组
func (*Transactions) GetTxs ¶
func (x *Transactions) GetTxs() []*Transaction
func (*Transactions) IsExpire ¶
func (txgroup *Transactions) IsExpire(cfg *Chain33Config, height, blocktime int64) bool
IsExpire 交易是否过期
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) ProtoReflect ¶ added in v1.65.3
func (x *Transactions) ProtoReflect() protoreflect.Message
func (*Transactions) RebuiltGroup ¶
func (txgroup *Transactions) RebuiltGroup()
RebuiltGroup 交易内容有变化时需要重新构建交易组
func (*Transactions) Reset ¶
func (x *Transactions) Reset()
func (*Transactions) SetExpire ¶
func (txgroup *Transactions) SetExpire(cfg *Chain33Config, n int, expire time.Duration)
SetExpire 设置交易组中交易的过期时间
func (*Transactions) String ¶
func (x *Transactions) String() string
func (*Transactions) Tx ¶
func (txgroup *Transactions) Tx() *Transaction
Tx 这比用于检查的交易,包含了所有的交易。 主要是为了兼容原来的设计
type TxDetail ¶
type TxDetail struct {
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Tx *Transaction `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
Receipt *ReceiptData `protobuf:"bytes,3,opt,name=receipt,proto3" json:"receipt,omitempty"`
Proofs [][]byte `protobuf:"bytes,4,rep,name=proofs,proto3" json:"proofs,omitempty"`
// contains filtered or unexported fields
}
交易的详情: index:本交易在block中索引值,用于proof的证明 tx:本交易内容 receipt:本交易在主链的执行回执 proofs:本交易hash在block中merkel中的路径
func (*TxDetail) Descriptor
deprecated
func (*TxDetail) GetReceipt ¶
func (x *TxDetail) GetReceipt() *ReceiptData
func (*TxDetail) GetTx ¶
func (x *TxDetail) GetTx() *Transaction
func (*TxDetail) ProtoMessage ¶
func (*TxDetail) ProtoMessage()
func (*TxDetail) ProtoReflect ¶ added in v1.65.3
func (x *TxDetail) ProtoReflect() protoreflect.Message
type TxGroup ¶
type TxGroup interface {
Tx() *Transaction
GetTxGroup() (*Transactions, error)
CheckSign(blockHeight int64) bool
}
TxGroup 交易组的接口,Transactions 和 Transaction 都符合这个接口
type TxHash ¶
type TxHash struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*TxHash) Descriptor
deprecated
func (*TxHash) ProtoMessage ¶
func (*TxHash) ProtoMessage()
func (*TxHash) ProtoReflect ¶ added in v1.65.3
func (x *TxHash) ProtoReflect() protoreflect.Message
type TxHashList ¶
type TxHashList struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Expire []int64 `protobuf:"varint,3,rep,packed,name=expire,proto3" json:"expire,omitempty"`
// contains filtered or unexported fields
}
func (*TxHashList) Descriptor
deprecated
func (*TxHashList) Descriptor() ([]byte, []int)
Deprecated: Use TxHashList.ProtoReflect.Descriptor instead.
func (*TxHashList) GetCount ¶
func (x *TxHashList) GetCount() int64
func (*TxHashList) GetExpire ¶
func (x *TxHashList) GetExpire() []int64
func (*TxHashList) GetHashes ¶
func (x *TxHashList) GetHashes() [][]byte
func (*TxHashList) ProtoMessage ¶
func (*TxHashList) ProtoMessage()
func (*TxHashList) ProtoReflect ¶ added in v1.65.3
func (x *TxHashList) ProtoReflect() protoreflect.Message
func (*TxHashList) Reset ¶
func (x *TxHashList) Reset()
func (*TxHashList) String ¶
func (x *TxHashList) String() string
type TxHashWithReceiptType ¶ added in v1.65.1
type TxHashWithReceiptType struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Ty int32 `protobuf:"varint,2,opt,name=ty,proto3" json:"ty,omitempty"`
// contains filtered or unexported fields
}
func (*TxHashWithReceiptType) Descriptor
deprecated
added in
v1.65.1
func (*TxHashWithReceiptType) Descriptor() ([]byte, []int)
Deprecated: Use TxHashWithReceiptType.ProtoReflect.Descriptor instead.
func (*TxHashWithReceiptType) GetHash ¶ added in v1.65.1
func (x *TxHashWithReceiptType) GetHash() []byte
func (*TxHashWithReceiptType) GetTy ¶ added in v1.65.1
func (x *TxHashWithReceiptType) GetTy() int32
func (*TxHashWithReceiptType) ProtoMessage ¶ added in v1.65.1
func (*TxHashWithReceiptType) ProtoMessage()
func (*TxHashWithReceiptType) ProtoReflect ¶ added in v1.65.3
func (x *TxHashWithReceiptType) ProtoReflect() protoreflect.Message
func (*TxHashWithReceiptType) Reset ¶ added in v1.65.1
func (x *TxHashWithReceiptType) Reset()
func (*TxHashWithReceiptType) String ¶ added in v1.65.1
func (x *TxHashWithReceiptType) String() string
type TxProof ¶
type TxProof struct {
Proofs [][]byte `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
RootHash []byte `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
// contains filtered or unexported fields
}
使用多层merkle树之后的proof证明结构体
func (*TxProof) Descriptor
deprecated
func (*TxProof) GetRootHash ¶
func (*TxProof) ProtoMessage ¶
func (*TxProof) ProtoMessage()
func (*TxProof) ProtoReflect ¶ added in v1.65.3
func (x *TxProof) ProtoReflect() protoreflect.Message
type TxReceipts4Subscribe ¶ added in v1.65.0
type TxReceipts4Subscribe struct {
TxReceipts []*TxReceipts4SubscribePerBlk `protobuf:"bytes,1,rep,name=txReceipts,proto3" json:"txReceipts,omitempty"`
// contains filtered or unexported fields
}
func (*TxReceipts4Subscribe) Descriptor
deprecated
added in
v1.65.0
func (*TxReceipts4Subscribe) Descriptor() ([]byte, []int)
Deprecated: Use TxReceipts4Subscribe.ProtoReflect.Descriptor instead.
func (*TxReceipts4Subscribe) GetTxReceipts ¶ added in v1.65.0
func (x *TxReceipts4Subscribe) GetTxReceipts() []*TxReceipts4SubscribePerBlk
func (*TxReceipts4Subscribe) ProtoMessage ¶ added in v1.65.0
func (*TxReceipts4Subscribe) ProtoMessage()
func (*TxReceipts4Subscribe) ProtoReflect ¶ added in v1.65.3
func (x *TxReceipts4Subscribe) ProtoReflect() protoreflect.Message
func (*TxReceipts4Subscribe) Reset ¶ added in v1.65.0
func (x *TxReceipts4Subscribe) Reset()
func (*TxReceipts4Subscribe) String ¶ added in v1.65.0
func (x *TxReceipts4Subscribe) String() string
type TxReceipts4SubscribePerBlk ¶ added in v1.65.0
type TxReceipts4SubscribePerBlk struct {
Tx []*Transaction `protobuf:"bytes,1,rep,name=tx,proto3" json:"tx,omitempty"`
ReceiptData []*ReceiptData `protobuf:"bytes,2,rep,name=receiptData,proto3" json:"receiptData,omitempty"`
// repeated KeyValue KV = 3;
Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
BlockHash []byte `protobuf:"bytes,5,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
ParentHash []byte `protobuf:"bytes,6,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
PreviousHash []byte `protobuf:"bytes,7,opt,name=previousHash,proto3" json:"previousHash,omitempty"`
AddDelType int32 `protobuf:"varint,8,opt,name=addDelType,proto3" json:"addDelType,omitempty"`
SeqNum int64 `protobuf:"varint,9,opt,name=seqNum,proto3" json:"seqNum,omitempty"`
// contains filtered or unexported fields
}
func (*TxReceipts4SubscribePerBlk) Descriptor
deprecated
added in
v1.65.0
func (*TxReceipts4SubscribePerBlk) Descriptor() ([]byte, []int)
Deprecated: Use TxReceipts4SubscribePerBlk.ProtoReflect.Descriptor instead.
func (*TxReceipts4SubscribePerBlk) GetAddDelType ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetAddDelType() int32
func (*TxReceipts4SubscribePerBlk) GetBlockHash ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetBlockHash() []byte
func (*TxReceipts4SubscribePerBlk) GetHeight ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetHeight() int64
func (*TxReceipts4SubscribePerBlk) GetParentHash ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetParentHash() []byte
func (*TxReceipts4SubscribePerBlk) GetPreviousHash ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetPreviousHash() []byte
func (*TxReceipts4SubscribePerBlk) GetReceiptData ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetReceiptData() []*ReceiptData
func (*TxReceipts4SubscribePerBlk) GetSeqNum ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetSeqNum() int64
func (*TxReceipts4SubscribePerBlk) GetTx ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) GetTx() []*Transaction
func (*TxReceipts4SubscribePerBlk) ProtoMessage ¶ added in v1.65.0
func (*TxReceipts4SubscribePerBlk) ProtoMessage()
func (*TxReceipts4SubscribePerBlk) ProtoReflect ¶ added in v1.65.3
func (x *TxReceipts4SubscribePerBlk) ProtoReflect() protoreflect.Message
func (*TxReceipts4SubscribePerBlk) Reset ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) Reset()
func (*TxReceipts4SubscribePerBlk) String ¶ added in v1.65.0
func (x *TxReceipts4SubscribePerBlk) String() string
type TxResult ¶
type TxResult struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Tx *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
Receiptdate *ReceiptData `protobuf:"bytes,4,opt,name=receiptdate,proto3" json:"receiptdate,omitempty"`
Blocktime int64 `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
ActionName string `protobuf:"bytes,6,opt,name=actionName,proto3" json:"actionName,omitempty"`
// contains filtered or unexported fields
}
func (*TxResult) Descriptor
deprecated
func (*TxResult) GetActionName ¶
func (*TxResult) GetBlocktime ¶
func (*TxResult) GetReceiptdate ¶
func (x *TxResult) GetReceiptdate() *ReceiptData
func (*TxResult) GetTx ¶
func (x *TxResult) GetTx() *Transaction
func (*TxResult) ProtoMessage ¶
func (*TxResult) ProtoMessage()
func (*TxResult) ProtoReflect ¶ added in v1.65.3
func (x *TxResult) ProtoReflect() protoreflect.Message
type TxResultPerBlock ¶ added in v1.65.1
type TxResultPerBlock struct {
Items []*TxHashWithReceiptType `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
ParentHash []byte `protobuf:"bytes,4,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
AddDelType int32 `protobuf:"varint,5,opt,name=addDelType,proto3" json:"addDelType,omitempty"`
SeqNum int64 `protobuf:"varint,6,opt,name=seqNum,proto3" json:"seqNum,omitempty"`
// contains filtered or unexported fields
}
func (*TxResultPerBlock) Descriptor
deprecated
added in
v1.65.1
func (*TxResultPerBlock) Descriptor() ([]byte, []int)
Deprecated: Use TxResultPerBlock.ProtoReflect.Descriptor instead.
func (*TxResultPerBlock) GetAddDelType ¶ added in v1.65.1
func (x *TxResultPerBlock) GetAddDelType() int32
func (*TxResultPerBlock) GetBlockHash ¶ added in v1.65.1
func (x *TxResultPerBlock) GetBlockHash() []byte
func (*TxResultPerBlock) GetHeight ¶ added in v1.65.1
func (x *TxResultPerBlock) GetHeight() int64
func (*TxResultPerBlock) GetItems ¶ added in v1.65.1
func (x *TxResultPerBlock) GetItems() []*TxHashWithReceiptType
func (*TxResultPerBlock) GetParentHash ¶ added in v1.65.1
func (x *TxResultPerBlock) GetParentHash() []byte
func (*TxResultPerBlock) GetSeqNum ¶ added in v1.65.1
func (x *TxResultPerBlock) GetSeqNum() int64
func (*TxResultPerBlock) ProtoMessage ¶ added in v1.65.1
func (*TxResultPerBlock) ProtoMessage()
func (*TxResultPerBlock) ProtoReflect ¶ added in v1.65.3
func (x *TxResultPerBlock) ProtoReflect() protoreflect.Message
func (*TxResultPerBlock) Reset ¶ added in v1.65.1
func (x *TxResultPerBlock) Reset()
func (*TxResultPerBlock) String ¶ added in v1.65.1
func (x *TxResultPerBlock) String() string
type TxResultSeqs ¶ added in v1.65.1
type TxResultSeqs struct {
Items []*TxResultPerBlock `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*TxResultSeqs) Descriptor
deprecated
added in
v1.65.1
func (*TxResultSeqs) Descriptor() ([]byte, []int)
Deprecated: Use TxResultSeqs.ProtoReflect.Descriptor instead.
func (*TxResultSeqs) GetItems ¶ added in v1.65.1
func (x *TxResultSeqs) GetItems() []*TxResultPerBlock
func (*TxResultSeqs) ProtoMessage ¶ added in v1.65.1
func (*TxResultSeqs) ProtoMessage()
func (*TxResultSeqs) ProtoReflect ¶ added in v1.65.3
func (x *TxResultSeqs) ProtoReflect() protoreflect.Message
func (*TxResultSeqs) Reset ¶ added in v1.65.1
func (x *TxResultSeqs) Reset()
func (*TxResultSeqs) String ¶ added in v1.65.1
func (x *TxResultSeqs) String() string
type UnimplementedChain33Server ¶
type UnimplementedChain33Server struct {
}
UnimplementedChain33Server can be embedded to have forward compatible implementations.
func (*UnimplementedChain33Server) AddPushSubscribe ¶ added in v1.66.1
func (*UnimplementedChain33Server) AddPushSubscribe(context.Context, *PushSubscribeReq) (*ReplySubscribePush, error)
func (*UnimplementedChain33Server) CloseQueue ¶
func (*UnimplementedChain33Server) ConvertExectoAddr ¶ added in v1.66.1
func (*UnimplementedChain33Server) ConvertExectoAddr(context.Context, *ReqString) (*ReplyString, error)
func (*UnimplementedChain33Server) CreateNoBalanceTransaction ¶
func (*UnimplementedChain33Server) CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, error)
func (*UnimplementedChain33Server) CreateNoBalanceTxs ¶
func (*UnimplementedChain33Server) CreateNoBalanceTxs(context.Context, *NoBalanceTxs) (*ReplySignRawTx, error)
func (*UnimplementedChain33Server) CreateRawTransaction ¶
func (*UnimplementedChain33Server) CreateRawTxGroup ¶
func (*UnimplementedChain33Server) CreateRawTxGroup(context.Context, *CreateTransactionGroup) (*UnsignTx, error)
func (*UnimplementedChain33Server) CreateTransaction ¶
func (*UnimplementedChain33Server) CreateTransaction(context.Context, *CreateTxIn) (*UnsignTx, error)
func (*UnimplementedChain33Server) DumpPrivkey ¶
func (*UnimplementedChain33Server) DumpPrivkey(context.Context, *ReqString) (*ReplyString, error)
func (*UnimplementedChain33Server) DumpPrivkeysFile ¶
func (*UnimplementedChain33Server) DumpPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
func (*UnimplementedChain33Server) ExecWallet ¶
func (*UnimplementedChain33Server) ExecWallet(context.Context, *ChainExecutor) (*Reply, error)
func (*UnimplementedChain33Server) GenSeed ¶
func (*UnimplementedChain33Server) GenSeed(context.Context, *GenSeedLang) (*ReplySeed, error)
func (*UnimplementedChain33Server) GetAccount ¶ added in v1.65.0
func (*UnimplementedChain33Server) GetAccount(context.Context, *ReqGetAccount) (*WalletAccount, error)
func (*UnimplementedChain33Server) GetAccounts ¶
func (*UnimplementedChain33Server) GetAccounts(context.Context, *ReqNil) (*WalletAccounts, error)
func (*UnimplementedChain33Server) GetAddrOverview ¶
func (*UnimplementedChain33Server) GetAddrOverview(context.Context, *ReqAddr) (*AddrOverview, error)
func (*UnimplementedChain33Server) GetAddressDrivers ¶ added in v1.67.1
func (*UnimplementedChain33Server) GetAddressDrivers(context.Context, *ReqNil) (*AddressDrivers, error)
func (*UnimplementedChain33Server) GetAllExecBalance ¶
func (*UnimplementedChain33Server) GetAllExecBalance(context.Context, *ReqAllExecBalance) (*AllExecBalance, error)
func (*UnimplementedChain33Server) GetBalance ¶
func (*UnimplementedChain33Server) GetBalance(context.Context, *ReqBalance) (*Accounts, error)
func (*UnimplementedChain33Server) GetBlockByHashes ¶
func (*UnimplementedChain33Server) GetBlockByHashes(context.Context, *ReqHashes) (*BlockDetails, error)
func (*UnimplementedChain33Server) GetBlockBySeq ¶
func (*UnimplementedChain33Server) GetBlockHash ¶
func (*UnimplementedChain33Server) GetBlockOverview ¶
func (*UnimplementedChain33Server) GetBlockOverview(context.Context, *ReqHash) (*BlockOverview, error)
func (*UnimplementedChain33Server) GetBlockSequences ¶ added in v1.66.1
func (*UnimplementedChain33Server) GetBlockSequences(context.Context, *ReqBlocks) (*BlockSequences, error)
func (*UnimplementedChain33Server) GetChainConfig ¶ added in v1.65.3
func (*UnimplementedChain33Server) GetChainConfig(context.Context, *ReqNil) (*ChainConfigInfo, error)
func (*UnimplementedChain33Server) GetCoinSymbol ¶ added in v1.66.1
func (*UnimplementedChain33Server) GetCoinSymbol(context.Context, *ReqNil) (*ReplyString, error)
func (*UnimplementedChain33Server) GetCryptoList ¶ added in v1.65.3
func (*UnimplementedChain33Server) GetCryptoList(context.Context, *ReqNil) (*CryptoList, error)
func (*UnimplementedChain33Server) GetFatalFailure ¶
func (*UnimplementedChain33Server) GetFinalizedBlock ¶ added in v1.69.0
func (*UnimplementedChain33Server) GetFinalizedBlock(context.Context, *ReqNil) (*SnowChoice, error)
func (*UnimplementedChain33Server) GetHeaders ¶
func (*UnimplementedChain33Server) GetHexTxByHash ¶
func (*UnimplementedChain33Server) GetLastBlockSequence ¶
func (*UnimplementedChain33Server) GetLastHeader ¶
func (*UnimplementedChain33Server) GetLastMemPool ¶
func (*UnimplementedChain33Server) GetLastMemPool(context.Context, *ReqNil) (*ReplyTxList, error)
func (*UnimplementedChain33Server) GetMemPool ¶
func (*UnimplementedChain33Server) GetMemPool(context.Context, *ReqGetMempool) (*ReplyTxList, error)
func (*UnimplementedChain33Server) GetParaTxByHeight ¶
func (*UnimplementedChain33Server) GetParaTxByHeight(context.Context, *ReqParaTxByHeight) (*ParaTxDetails, error)
func (*UnimplementedChain33Server) GetParaTxByTitle ¶
func (*UnimplementedChain33Server) GetParaTxByTitle(context.Context, *ReqParaTxByTitle) (*ParaTxDetails, error)
func (*UnimplementedChain33Server) GetPeerInfo ¶
func (*UnimplementedChain33Server) GetPeerInfo(context.Context, *P2PGetPeerReq) (*PeerList, error)
func (*UnimplementedChain33Server) GetProperFee ¶
func (*UnimplementedChain33Server) GetProperFee(context.Context, *ReqProperFee) (*ReplyProperFee, error)
func (*UnimplementedChain33Server) GetPushSeqLastNum ¶ added in v1.66.1
func (*UnimplementedChain33Server) GetSeed ¶
func (*UnimplementedChain33Server) GetSeed(context.Context, *GetSeedByPw) (*ReplySeed, error)
func (*UnimplementedChain33Server) GetSequenceByHash ¶
func (*UnimplementedChain33Server) GetServerTime ¶ added in v1.65.1
func (*UnimplementedChain33Server) GetServerTime(context.Context, *ReqNil) (*ServerTime, error)
func (*UnimplementedChain33Server) GetTransactionByAddr ¶
func (*UnimplementedChain33Server) GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)
func (*UnimplementedChain33Server) GetTransactionByHashes ¶
func (*UnimplementedChain33Server) GetTransactionByHashes(context.Context, *ReqHashes) (*TransactionDetails, error)
func (*UnimplementedChain33Server) GetWalletRecoverAddress ¶ added in v1.65.3
func (*UnimplementedChain33Server) GetWalletRecoverAddress(context.Context, *ReqGetWalletRecoverAddr) (*ReplyString, error)
func (*UnimplementedChain33Server) GetWalletStatus ¶
func (*UnimplementedChain33Server) GetWalletStatus(context.Context, *ReqNil) (*WalletStatus, error)
func (*UnimplementedChain33Server) ImportPrivkey ¶
func (*UnimplementedChain33Server) ImportPrivkey(context.Context, *ReqWalletImportPrivkey) (*WalletAccount, error)
func (*UnimplementedChain33Server) ImportPrivkeysFile ¶
func (*UnimplementedChain33Server) ImportPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
func (*UnimplementedChain33Server) IsNtpClockSync ¶
func (*UnimplementedChain33Server) ListPushes ¶ added in v1.66.1
func (*UnimplementedChain33Server) ListPushes(context.Context, *ReqNil) (*PushSubscribes, error)
func (*UnimplementedChain33Server) LoadParaTxByTitle ¶
func (*UnimplementedChain33Server) LoadParaTxByTitle(context.Context, *ReqHeightByTitle) (*ReplyHeightByTitle, error)
func (*UnimplementedChain33Server) MergeBalance ¶
func (*UnimplementedChain33Server) MergeBalance(context.Context, *ReqWalletMergeBalance) (*ReplyHashes, error)
func (*UnimplementedChain33Server) NetInfo ¶
func (*UnimplementedChain33Server) NetInfo(context.Context, *P2PGetNetInfoReq) (*NodeNetInfo, error)
func (*UnimplementedChain33Server) NewAccount ¶
func (*UnimplementedChain33Server) NewAccount(context.Context, *ReqNewAccount) (*WalletAccount, error)
func (*UnimplementedChain33Server) QueryChain ¶
func (*UnimplementedChain33Server) QueryChain(context.Context, *ChainExecutor) (*Reply, error)
func (*UnimplementedChain33Server) QueryConsensus ¶
func (*UnimplementedChain33Server) QueryConsensus(context.Context, *ChainExecutor) (*Reply, error)
func (*UnimplementedChain33Server) QueryRandNum ¶
func (*UnimplementedChain33Server) QueryRandNum(context.Context, *ReqRandHash) (*ReplyHash, error)
func (*UnimplementedChain33Server) QueryTransaction ¶
func (*UnimplementedChain33Server) QueryTransaction(context.Context, *ReqHash) (*TransactionDetail, error)
func (*UnimplementedChain33Server) ReWriteTx ¶ added in v1.66.1
func (*UnimplementedChain33Server) ReWriteTx(context.Context, *ReWriteRawTx) (*UnsignTx, error)
func (*UnimplementedChain33Server) SaveSeed ¶
func (*UnimplementedChain33Server) SaveSeed(context.Context, *SaveSeedByPw) (*Reply, error)
func (*UnimplementedChain33Server) SendDelayTransaction ¶ added in v1.65.3
func (*UnimplementedChain33Server) SendToAddress ¶
func (*UnimplementedChain33Server) SendToAddress(context.Context, *ReqWalletSendToAddress) (*ReplyHash, error)
func (*UnimplementedChain33Server) SendTransaction ¶
func (*UnimplementedChain33Server) SendTransaction(context.Context, *Transaction) (*Reply, error)
func (*UnimplementedChain33Server) SendTransactionSync ¶ added in v1.65.1
func (*UnimplementedChain33Server) SendTransactionSync(context.Context, *Transaction) (*Reply, error)
func (*UnimplementedChain33Server) SendTransactions ¶ added in v1.65.3
func (*UnimplementedChain33Server) SendTransactions(context.Context, *Transactions) (*Replies, error)
func (*UnimplementedChain33Server) SetLabl ¶
func (*UnimplementedChain33Server) SetLabl(context.Context, *ReqWalletSetLabel) (*WalletAccount, error)
func (*UnimplementedChain33Server) SetPasswd ¶
func (*UnimplementedChain33Server) SetPasswd(context.Context, *ReqWalletSetPasswd) (*Reply, error)
func (*UnimplementedChain33Server) SetTxFee ¶
func (*UnimplementedChain33Server) SetTxFee(context.Context, *ReqWalletSetFee) (*Reply, error)
func (*UnimplementedChain33Server) SignRawTx ¶
func (*UnimplementedChain33Server) SignRawTx(context.Context, *ReqSignRawTx) (*ReplySignRawTx, error)
func (*UnimplementedChain33Server) SignWalletRecoverTx ¶ added in v1.65.3
func (*UnimplementedChain33Server) SignWalletRecoverTx(context.Context, *ReqSignWalletRecoverTx) (*ReplySignRawTx, error)
func (*UnimplementedChain33Server) SubEvent ¶ added in v1.66.1
func (*UnimplementedChain33Server) SubEvent(*ReqSubscribe, Chain33_SubEventServer) error
func (*UnimplementedChain33Server) UnLock ¶
func (*UnimplementedChain33Server) UnLock(context.Context, *WalletUnLock) (*Reply, error)
func (*UnimplementedChain33Server) UnSubEvent ¶ added in v1.68.0
func (*UnimplementedChain33Server) Version ¶
func (*UnimplementedChain33Server) Version(context.Context, *ReqNil) (*VersionInfo, error)
func (*UnimplementedChain33Server) WalletTransactionList ¶
func (*UnimplementedChain33Server) WalletTransactionList(context.Context, *ReqWalletTransactionList) (*WalletTxDetails, error)
type UnimplementedP2PgserviceServer ¶
type UnimplementedP2PgserviceServer struct {
}
UnimplementedP2PgserviceServer can be embedded to have forward compatible implementations.
func (*UnimplementedP2PgserviceServer) BroadCastBlock ¶
func (*UnimplementedP2PgserviceServer) BroadCastTx ¶
func (*UnimplementedP2PgserviceServer) CollectInPeers ¶
func (*UnimplementedP2PgserviceServer) CollectInPeers2 ¶
func (*UnimplementedP2PgserviceServer) CollectInPeers2(context.Context, *P2PPing) (*PeersReply, error)
func (*UnimplementedP2PgserviceServer) GetAddr ¶
func (*UnimplementedP2PgserviceServer) GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error)
func (*UnimplementedP2PgserviceServer) GetAddrList ¶
func (*UnimplementedP2PgserviceServer) GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error)
func (*UnimplementedP2PgserviceServer) GetBlocks ¶
func (*UnimplementedP2PgserviceServer) GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error)
func (*UnimplementedP2PgserviceServer) GetData ¶
func (*UnimplementedP2PgserviceServer) GetData(*P2PGetData, P2Pgservice_GetDataServer) error
func (*UnimplementedP2PgserviceServer) GetHeaders ¶
func (*UnimplementedP2PgserviceServer) GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error)
func (*UnimplementedP2PgserviceServer) GetMemPool ¶
func (*UnimplementedP2PgserviceServer) GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error)
func (*UnimplementedP2PgserviceServer) GetPeerInfo ¶
func (*UnimplementedP2PgserviceServer) GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error)
func (*UnimplementedP2PgserviceServer) ServerStreamRead ¶
func (*UnimplementedP2PgserviceServer) ServerStreamRead(P2Pgservice_ServerStreamReadServer) error
func (*UnimplementedP2PgserviceServer) ServerStreamSend ¶
func (*UnimplementedP2PgserviceServer) ServerStreamSend(*P2PPing, P2Pgservice_ServerStreamSendServer) error
func (*UnimplementedP2PgserviceServer) SoftVersion ¶
func (*UnimplementedP2PgserviceServer) Version ¶
func (*UnimplementedP2PgserviceServer) Version(context.Context, *P2PVersion) (*P2PVerAck, error)
func (*UnimplementedP2PgserviceServer) Version2 ¶
func (*UnimplementedP2PgserviceServer) Version2(context.Context, *P2PVersion) (*P2PVersion, error)
type UnsignTx ¶
type UnsignTx struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*UnsignTx) Descriptor
deprecated
func (*UnsignTx) ProtoMessage ¶
func (*UnsignTx) ProtoMessage()
func (*UnsignTx) ProtoReflect ¶ added in v1.65.3
func (x *UnsignTx) ProtoReflect() protoreflect.Message
type UpgradeMeta ¶
type UpgradeMeta struct {
Starting bool `protobuf:"varint,1,opt,name=starting,proto3" json:"starting,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}
func (*UpgradeMeta) Descriptor
deprecated
func (*UpgradeMeta) Descriptor() ([]byte, []int)
Deprecated: Use UpgradeMeta.ProtoReflect.Descriptor instead.
func (*UpgradeMeta) GetHeight ¶
func (x *UpgradeMeta) GetHeight() int64
func (*UpgradeMeta) GetStarting ¶
func (x *UpgradeMeta) GetStarting() bool
func (*UpgradeMeta) GetVersion ¶
func (x *UpgradeMeta) GetVersion() string
func (*UpgradeMeta) ProtoMessage ¶
func (*UpgradeMeta) ProtoMessage()
func (*UpgradeMeta) ProtoReflect ¶ added in v1.65.3
func (x *UpgradeMeta) ProtoReflect() protoreflect.Message
func (*UpgradeMeta) Reset ¶
func (x *UpgradeMeta) Reset()
func (*UpgradeMeta) String ¶
func (x *UpgradeMeta) String() string
type UserWrite ¶
type UserWrite struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*UserWrite) Descriptor
deprecated
func (*UserWrite) GetContent ¶
func (*UserWrite) ProtoMessage ¶
func (*UserWrite) ProtoMessage()
func (*UserWrite) ProtoReflect ¶ added in v1.65.3
func (x *UserWrite) ProtoReflect() protoreflect.Message
type VersionInfo ¶
type VersionInfo struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
Chain33 string `protobuf:"bytes,3,opt,name=chain33,proto3" json:"chain33,omitempty"`
LocalDb string `protobuf:"bytes,4,opt,name=localDb,proto3" json:"localDb,omitempty"`
ChainID int32 `protobuf:"varint,5,opt,name=chainID,proto3" json:"chainID,omitempty"`
// contains filtered or unexported fields
}
* 当前软件版本信息
func (*VersionInfo) Descriptor
deprecated
func (*VersionInfo) Descriptor() ([]byte, []int)
Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead.
func (*VersionInfo) GetApp ¶
func (x *VersionInfo) GetApp() string
func (*VersionInfo) GetChain33 ¶
func (x *VersionInfo) GetChain33() string
func (*VersionInfo) GetChainID ¶ added in v1.65.1
func (x *VersionInfo) GetChainID() int32
func (*VersionInfo) GetLocalDb ¶
func (x *VersionInfo) GetLocalDb() string
func (*VersionInfo) GetTitle ¶
func (x *VersionInfo) GetTitle() string
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) ProtoReflect ¶ added in v1.65.3
func (x *VersionInfo) ProtoReflect() protoreflect.Message
func (*VersionInfo) Reset ¶
func (x *VersionInfo) Reset()
func (*VersionInfo) String ¶
func (x *VersionInfo) String() string
type Versions ¶
type Versions struct {
P2Pversion int32 `protobuf:"varint,1,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
Softversion string `protobuf:"bytes,2,opt,name=softversion,proto3" json:"softversion,omitempty"`
Peername string `protobuf:"bytes,3,opt,name=peername,proto3" json:"peername,omitempty"`
// contains filtered or unexported fields
}
* p2p 协议和软件版本
func (*Versions) Descriptor
deprecated
func (*Versions) GetP2Pversion ¶
func (*Versions) GetPeername ¶
func (*Versions) GetSoftversion ¶
func (*Versions) ProtoMessage ¶
func (*Versions) ProtoMessage()
func (*Versions) ProtoReflect ¶ added in v1.65.3
func (x *Versions) ProtoReflect() protoreflect.Message
type ViewChange ¶
type ViewChange struct {
Viewchanger uint32 `protobuf:"varint,1,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// contains filtered or unexported fields
}
func (*ViewChange) Descriptor
deprecated
func (*ViewChange) Descriptor() ([]byte, []int)
Deprecated: Use ViewChange.ProtoReflect.Descriptor instead.
func (*ViewChange) GetDigest ¶
func (x *ViewChange) GetDigest() []byte
func (*ViewChange) GetViewchanger ¶
func (x *ViewChange) GetViewchanger() uint32
func (*ViewChange) ProtoMessage ¶
func (*ViewChange) ProtoMessage()
func (*ViewChange) ProtoReflect ¶ added in v1.65.3
func (x *ViewChange) ProtoReflect() protoreflect.Message
func (*ViewChange) Reset ¶
func (x *ViewChange) Reset()
func (*ViewChange) String ¶
func (x *ViewChange) String() string
type Wallet ¶
type Wallet struct {
// 交易发送最低手续费,单位0.00000001BTY(1e-8),默认100000,即0.001BTY
MinFee int64 `json:"minFee,omitempty"`
// walletdb驱动名
Driver string `json:"driver,omitempty"`
// walletdb路径
DbPath string `json:"dbPath,omitempty"`
// walletdb缓存大小
DbCache int32 `json:"dbCache,omitempty"`
// 钱包发送交易签名方式
SignType string `json:"signType,omitempty"`
CoinType string `json:"coinType,omitempty"`
}
Wallet 配置
type WalletAccount ¶
type WalletAccount struct {
Acc *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*WalletAccount) Descriptor
deprecated
func (*WalletAccount) Descriptor() ([]byte, []int)
Deprecated: Use WalletAccount.ProtoReflect.Descriptor instead.
func (*WalletAccount) GetAcc ¶
func (x *WalletAccount) GetAcc() *Account
func (*WalletAccount) GetLabel ¶
func (x *WalletAccount) GetLabel() string
func (*WalletAccount) ProtoMessage ¶
func (*WalletAccount) ProtoMessage()
func (*WalletAccount) ProtoReflect ¶ added in v1.65.3
func (x *WalletAccount) ProtoReflect() protoreflect.Message
func (*WalletAccount) Reset ¶
func (x *WalletAccount) Reset()
func (*WalletAccount) String ¶
func (x *WalletAccount) String() string
type WalletAccountStore ¶
type WalletAccountStore struct {
Privkey string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
TimeStamp string `protobuf:"bytes,4,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
// contains filtered or unexported fields
}
钱包模块存贮的账户信息
privkey : 账户地址对应的私钥 label :账户地址对应的标签 addr :账户地址 timeStamp :创建账户时的时标
func (*WalletAccountStore) Descriptor
deprecated
func (*WalletAccountStore) Descriptor() ([]byte, []int)
Deprecated: Use WalletAccountStore.ProtoReflect.Descriptor instead.
func (*WalletAccountStore) GetAddr ¶
func (x *WalletAccountStore) GetAddr() string
func (*WalletAccountStore) GetLabel ¶
func (x *WalletAccountStore) GetLabel() string
func (*WalletAccountStore) GetPrivkey ¶
func (x *WalletAccountStore) GetPrivkey() string
func (*WalletAccountStore) GetTimeStamp ¶
func (x *WalletAccountStore) GetTimeStamp() string
func (*WalletAccountStore) ProtoMessage ¶
func (*WalletAccountStore) ProtoMessage()
func (*WalletAccountStore) ProtoReflect ¶ added in v1.65.3
func (x *WalletAccountStore) ProtoReflect() protoreflect.Message
func (*WalletAccountStore) Reset ¶
func (x *WalletAccountStore) Reset()
func (*WalletAccountStore) String ¶
func (x *WalletAccountStore) String() string
type WalletAccounts ¶
type WalletAccounts struct {
Wallets []*WalletAccount `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
// contains filtered or unexported fields
}
func (*WalletAccounts) Descriptor
deprecated
func (*WalletAccounts) Descriptor() ([]byte, []int)
Deprecated: Use WalletAccounts.ProtoReflect.Descriptor instead.
func (*WalletAccounts) GetWallets ¶
func (x *WalletAccounts) GetWallets() []*WalletAccount
func (*WalletAccounts) ProtoMessage ¶
func (*WalletAccounts) ProtoMessage()
func (*WalletAccounts) ProtoReflect ¶ added in v1.65.3
func (x *WalletAccounts) ProtoReflect() protoreflect.Message
func (*WalletAccounts) Reset ¶
func (x *WalletAccounts) Reset()
func (*WalletAccounts) String ¶
func (x *WalletAccounts) String() string
type WalletPwHash ¶
type WalletPwHash struct {
PwHash []byte `protobuf:"bytes,1,opt,name=pwHash,proto3" json:"pwHash,omitempty"`
Randstr string `protobuf:"bytes,2,opt,name=randstr,proto3" json:"randstr,omitempty"`
// contains filtered or unexported fields
}
钱包模块通过一个随机值对钱包密码加密
pwHash : 对钱包密码和一个随机值组合进行哈希计算 randstr :对钱包密码加密的一个随机值
func (*WalletPwHash) Descriptor
deprecated
func (*WalletPwHash) Descriptor() ([]byte, []int)
Deprecated: Use WalletPwHash.ProtoReflect.Descriptor instead.
func (*WalletPwHash) GetPwHash ¶
func (x *WalletPwHash) GetPwHash() []byte
func (*WalletPwHash) GetRandstr ¶
func (x *WalletPwHash) GetRandstr() string
func (*WalletPwHash) ProtoMessage ¶
func (*WalletPwHash) ProtoMessage()
func (*WalletPwHash) ProtoReflect ¶ added in v1.65.3
func (x *WalletPwHash) ProtoReflect() protoreflect.Message
func (*WalletPwHash) Reset ¶
func (x *WalletPwHash) Reset()
func (*WalletPwHash) String ¶
func (x *WalletPwHash) String() string
type WalletStatus ¶
type WalletStatus struct {
IsWalletLock bool `protobuf:"varint,1,opt,name=isWalletLock,proto3" json:"isWalletLock,omitempty"`
IsAutoMining bool `protobuf:"varint,2,opt,name=isAutoMining,proto3" json:"isAutoMining,omitempty"`
IsHasSeed bool `protobuf:"varint,3,opt,name=isHasSeed,proto3" json:"isHasSeed,omitempty"`
IsTicketLock bool `protobuf:"varint,4,opt,name=isTicketLock,proto3" json:"isTicketLock,omitempty"`
// contains filtered or unexported fields
}
钱包当前的状态
isWalletLock : 钱包是否锁状态,true锁定,false解锁 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿 isHasSeed : 钱包是否有种子,true已有,false没有 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
func (*WalletStatus) Descriptor
deprecated
func (*WalletStatus) Descriptor() ([]byte, []int)
Deprecated: Use WalletStatus.ProtoReflect.Descriptor instead.
func (*WalletStatus) GetIsAutoMining ¶
func (x *WalletStatus) GetIsAutoMining() bool
func (*WalletStatus) GetIsHasSeed ¶
func (x *WalletStatus) GetIsHasSeed() bool
func (*WalletStatus) GetIsTicketLock ¶
func (x *WalletStatus) GetIsTicketLock() bool
func (*WalletStatus) GetIsWalletLock ¶
func (x *WalletStatus) GetIsWalletLock() bool
func (*WalletStatus) ProtoMessage ¶
func (*WalletStatus) ProtoMessage()
func (*WalletStatus) ProtoReflect ¶ added in v1.65.3
func (x *WalletStatus) ProtoReflect() protoreflect.Message
func (*WalletStatus) Reset ¶
func (x *WalletStatus) Reset()
func (*WalletStatus) String ¶
func (x *WalletStatus) String() string
type WalletTxDetail ¶
type WalletTxDetail struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
Receipt *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
Blocktime int64 `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
Fromaddr string `protobuf:"bytes,7,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
Txhash []byte `protobuf:"bytes,8,opt,name=txhash,proto3" json:"txhash,omitempty"`
ActionName string `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
Payload []byte `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
钱包模块存贮的tx交易详细信息
tx : tx交易信息 receipt :交易收据信息 height :交易所在的区块高度 index :交易所在区块中的索引 blocktime :交易所在区块的时标 amount :交易量 fromaddr :交易打出地址 txhash : 交易对应的哈希值 actionName :交易对应的函数调用 payload: 保存额外的一些信息,主要是给插件使用
func (*WalletTxDetail) Descriptor
deprecated
func (*WalletTxDetail) Descriptor() ([]byte, []int)
Deprecated: Use WalletTxDetail.ProtoReflect.Descriptor instead.
func (*WalletTxDetail) GetActionName ¶
func (x *WalletTxDetail) GetActionName() string
func (*WalletTxDetail) GetAmount ¶
func (x *WalletTxDetail) GetAmount() int64
func (*WalletTxDetail) GetBlocktime ¶
func (x *WalletTxDetail) GetBlocktime() int64
func (*WalletTxDetail) GetFromaddr ¶
func (x *WalletTxDetail) GetFromaddr() string
func (*WalletTxDetail) GetHeight ¶
func (x *WalletTxDetail) GetHeight() int64
func (*WalletTxDetail) GetIndex ¶
func (x *WalletTxDetail) GetIndex() int64
func (*WalletTxDetail) GetPayload ¶
func (x *WalletTxDetail) GetPayload() []byte
func (*WalletTxDetail) GetReceipt ¶
func (x *WalletTxDetail) GetReceipt() *ReceiptData
func (*WalletTxDetail) GetTx ¶
func (x *WalletTxDetail) GetTx() *Transaction
func (*WalletTxDetail) GetTxhash ¶
func (x *WalletTxDetail) GetTxhash() []byte
func (*WalletTxDetail) ProtoMessage ¶
func (*WalletTxDetail) ProtoMessage()
func (*WalletTxDetail) ProtoReflect ¶ added in v1.65.3
func (x *WalletTxDetail) ProtoReflect() protoreflect.Message
func (*WalletTxDetail) Reset ¶
func (x *WalletTxDetail) Reset()
func (*WalletTxDetail) String ¶
func (x *WalletTxDetail) String() string
type WalletTxDetails ¶
type WalletTxDetails struct {
TxDetails []*WalletTxDetail `protobuf:"bytes,1,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
// contains filtered or unexported fields
}
func (*WalletTxDetails) Descriptor
deprecated
func (*WalletTxDetails) Descriptor() ([]byte, []int)
Deprecated: Use WalletTxDetails.ProtoReflect.Descriptor instead.
func (*WalletTxDetails) GetTxDetails ¶
func (x *WalletTxDetails) GetTxDetails() []*WalletTxDetail
func (*WalletTxDetails) ProtoMessage ¶
func (*WalletTxDetails) ProtoMessage()
func (*WalletTxDetails) ProtoReflect ¶ added in v1.65.3
func (x *WalletTxDetails) ProtoReflect() protoreflect.Message
func (*WalletTxDetails) Reset ¶
func (x *WalletTxDetails) Reset()
func (*WalletTxDetails) String ¶
func (x *WalletTxDetails) String() string
type WalletUnLock ¶
type WalletUnLock struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
WalletOrTicket bool `protobuf:"varint,3,opt,name=walletOrTicket,proto3" json:"walletOrTicket,omitempty"`
// contains filtered or unexported fields
}
钱包解锁
passwd : 钱包密码 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
func (*WalletUnLock) Descriptor
deprecated
func (*WalletUnLock) Descriptor() ([]byte, []int)
Deprecated: Use WalletUnLock.ProtoReflect.Descriptor instead.
func (*WalletUnLock) GetPasswd ¶
func (x *WalletUnLock) GetPasswd() string
func (*WalletUnLock) GetTimeout ¶
func (x *WalletUnLock) GetTimeout() int64
func (*WalletUnLock) GetWalletOrTicket ¶
func (x *WalletUnLock) GetWalletOrTicket() bool
func (*WalletUnLock) ProtoMessage ¶
func (*WalletUnLock) ProtoMessage()
func (*WalletUnLock) ProtoReflect ¶ added in v1.65.3
func (x *WalletUnLock) ProtoReflect() protoreflect.Message
func (*WalletUnLock) Reset ¶
func (x *WalletUnLock) Reset()
func (*WalletUnLock) String ¶
func (x *WalletUnLock) String() string
Source Files
¶
- account.pb.go
- account_blacklist.go
- block.go
- blockchain.pb.go
- cfg.go
- common.pb.go
- config.go
- config_mver.go
- const.go
- db.pb.go
- defaultcfg.go
- doc.go
- error.go
- event.go
- evm_event.pb.go
- executor.go
- executor.pb.go
- fork.go
- localkv.go
- p2p.pb.go
- p2pnext.pb.go
- pbft.pb.go
- push_tx_receipt.pb.go
- reflect.go
- rpc.pb.go
- sign.go
- snowman.pb.go
- statistic.pb.go
- time.go
- transaction.pb.go
- tx.go
- types.go
- wallet.pb.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package chaincfg 实现chain33的基础配置相关功能
|
Package chaincfg 实现chain33的基础配置相关功能 |
|
Package jsonpb provides functionality to marshal and unmarshal between a protocol buffer message and JSON.
|
Package jsonpb provides functionality to marshal and unmarshal between a protocol buffer message and JSON. |