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 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 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 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 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) 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) 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) SetDappFork(dapp, 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
- 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