Documentation
¶
Overview ¶
Package types 实现了chain33基础结构体、接口、常量等的定义
Index ¶
- Constants
- Variables
- func BuildQueryType(prefix string, methods map[string]reflect.Method) (map[string]reflect.Method, map[string]reflect.Type)
- func CalcAddrTxsCountKey(addr string) []byte
- func CalcTxAddrDirHashKey(addr string, flag int32, heightindex string) []byte
- func CalcTxAddrHashKey(addr string, heightindex string) []byte
- func CalcTxKey(hash []byte) []byte
- func CalcTxShortKey(hash []byte) []byte
- func CallCreateTx(execName, action string, param Message) ([]byte, error)
- func CallCreateTxJSON(execName, action string, param json.RawMessage) ([]byte, error)
- func CallExecNewTx(execName, action string, param interface{}) ([]byte, error)
- func CheckAmount(amount int64) bool
- func CheckSign(data []byte, execer string, sign *Signature) bool
- 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 ExecName(name string) string
- func FindExecer(key []byte) (execer []byte, err error)
- func FlatConfig(conf map[string]interface{}) map[string]interface{}
- func FormatTxEncode(execName string, tx *Transaction) ([]byte, error)
- func G(key string) (value interface{}, err error)
- func GInt(name string) int64
- func GStr(name string) string
- func GetActionValue(action interface{}, funclist map[string]reflect.Method) (string, int32, reflect.Value)
- func GetDappFork(dapp, fork string) int64
- func GetEventName(event int) string
- func GetExecKey(key []byte) (string, bool)
- func GetFork(fork string) int64
- func GetFundAddr() string
- func GetLocalDBKeyList() [][]byte
- func GetLogName(execer []byte, ty int64) string
- func GetParaExec(execer []byte) []byte
- func GetParaExecName(execer []byte) []byte
- func GetParaName() string
- func GetRealExecName(execer []byte) []byte
- func GetSignName(execer string, signType int) string
- func GetSignType(execer string, name string) int
- func GetTitle() string
- func GetTxHeight(valid int64, height int64) int64
- func GetTxTimeInterval() time.Duration
- func HasConf(key string) bool
- func HasFork(fork string) bool
- func Init(t string, cfg *Config)
- 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 IsDappFork(height int64, dapp, fork string) bool
- func IsEnable(name string) bool
- func IsEnableFork(height int64, fork string, enable bool) bool
- func IsFork(height int64, fork string) bool
- func IsLocal() bool
- func IsMyParaExecName(exec string) bool
- func IsNil(a interface{}) (ok bool)
- func IsNilP(a interface{}) bool
- func IsOK(list []reflect.Value, n int) bool
- func IsPara() bool
- func IsParaExecName(exec string) bool
- func IsTestNet() 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 MG(key string, height int64) (value interface{}, err error)
- func MGInt(name string, height int64) int64
- func MGStr(name string, height int64) string
- func MIsEnable(name string, height int64) bool
- func ManaeKeyWithHeigh(key string, height int64) string
- func ManageKey(key 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 RegisterChain33Server(s *grpc.Server, srv Chain33Server)
- func RegisterDappFork(dapp, fork string, height int64)
- func RegisterP2PgserviceServer(s *grpc.Server, srv P2PgserviceServer)
- func RegistorExecutor(exec string, util ExecutorType)
- func S(key string, value interface{})
- func SetDappFork(title, dapp, fork string, height int64)
- func SetMinFee(fee int64)
- func SetTestNetFork()
- func SetTimeDelta(dt int64)
- func SetTitleOnlyForTest(ti string)
- func Since(t time.Time) time.Duration
- func Size(data proto.Message) int
- func StatisticFlag() []byte
- func StatisticTicketInfoKey(ticketID string) []byte
- func StatisticTicketInfoOrderKey(minerAddr string, createTime int64, ticketID string) []byte
- func StatisticTicketKey(minerAddr string) []byte
- func TotalFeeKey(hash []byte) []byte
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetAddr() string
- func (m *Account) GetBalance() int64
- func (m *Account) GetCurrency() int32
- func (m *Account) GetFrozen() int64
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type Accounts
- func (*Accounts) Descriptor() ([]byte, []int)
- func (m *Accounts) GetAcc() []*Account
- func (*Accounts) ProtoMessage()
- func (m *Accounts) Reset()
- func (m *Accounts) String() string
- func (m *Accounts) XXX_DiscardUnknown()
- func (m *Accounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Accounts) XXX_Merge(src proto.Message)
- func (m *Accounts) XXX_Size() int
- func (m *Accounts) XXX_Unmarshal(b []byte) error
- type AddrOverview
- func (*AddrOverview) Descriptor() ([]byte, []int)
- func (m *AddrOverview) GetBalance() int64
- func (m *AddrOverview) GetReciver() int64
- func (m *AddrOverview) GetTxCount() int64
- func (*AddrOverview) ProtoMessage()
- func (m *AddrOverview) Reset()
- func (m *AddrOverview) String() string
- func (m *AddrOverview) XXX_DiscardUnknown()
- func (m *AddrOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddrOverview) XXX_Merge(src proto.Message)
- func (m *AddrOverview) XXX_Size() int
- func (m *AddrOverview) XXX_Unmarshal(b []byte) error
- type AllExecBalance
- func (*AllExecBalance) Descriptor() ([]byte, []int)
- func (m *AllExecBalance) GetAddr() string
- func (m *AllExecBalance) GetExecAccount() []*ExecAccount
- func (*AllExecBalance) ProtoMessage()
- func (m *AllExecBalance) Reset()
- func (m *AllExecBalance) String() string
- func (m *AllExecBalance) XXX_DiscardUnknown()
- func (m *AllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllExecBalance) XXX_Merge(src proto.Message)
- func (m *AllExecBalance) XXX_Size() int
- func (m *AllExecBalance) XXX_Unmarshal(b []byte) error
- type Amounter
- type ArrayConfig
- func (*ArrayConfig) Descriptor() ([]byte, []int)
- func (m *ArrayConfig) GetValue() []string
- func (*ArrayConfig) ProtoMessage()
- func (m *ArrayConfig) Reset()
- func (m *ArrayConfig) String() string
- func (m *ArrayConfig) XXX_DiscardUnknown()
- func (m *ArrayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArrayConfig) XXX_Merge(src proto.Message)
- func (m *ArrayConfig) XXX_Size() int
- func (m *ArrayConfig) XXX_Unmarshal(b []byte) error
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (m *Asset) GetAmount() int64
- func (m *Asset) GetExec() string
- func (m *Asset) GetSymbol() string
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) String() string
- func (m *Asset) XXX_DiscardUnknown()
- func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset) XXX_Merge(src proto.Message)
- func (m *Asset) XXX_Size() int
- func (m *Asset) XXX_Unmarshal(b []byte) error
- type AssetsGenesis
- func (*AssetsGenesis) Descriptor() ([]byte, []int)
- func (m *AssetsGenesis) GetAmount() int64
- func (m *AssetsGenesis) GetReturnAddress() string
- func (*AssetsGenesis) ProtoMessage()
- func (m *AssetsGenesis) Reset()
- func (m *AssetsGenesis) String() string
- func (m *AssetsGenesis) XXX_DiscardUnknown()
- func (m *AssetsGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetsGenesis) XXX_Merge(src proto.Message)
- func (m *AssetsGenesis) XXX_Size() int
- func (m *AssetsGenesis) XXX_Unmarshal(b []byte) error
- type AssetsTransfer
- func (*AssetsTransfer) Descriptor() ([]byte, []int)
- func (m *AssetsTransfer) GetAmount() int64
- func (m *AssetsTransfer) GetCointoken() string
- func (m *AssetsTransfer) GetNote() []byte
- func (m *AssetsTransfer) GetTo() string
- func (*AssetsTransfer) ProtoMessage()
- func (m *AssetsTransfer) Reset()
- func (m *AssetsTransfer) String() string
- func (m *AssetsTransfer) XXX_DiscardUnknown()
- func (m *AssetsTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetsTransfer) XXX_Merge(src proto.Message)
- func (m *AssetsTransfer) XXX_Size() int
- func (m *AssetsTransfer) XXX_Unmarshal(b []byte) error
- type AssetsTransferToExec
- func (*AssetsTransferToExec) Descriptor() ([]byte, []int)
- func (m *AssetsTransferToExec) GetAmount() int64
- func (m *AssetsTransferToExec) GetCointoken() string
- func (m *AssetsTransferToExec) GetExecName() string
- func (m *AssetsTransferToExec) GetNote() []byte
- func (m *AssetsTransferToExec) GetTo() string
- func (*AssetsTransferToExec) ProtoMessage()
- func (m *AssetsTransferToExec) Reset()
- func (m *AssetsTransferToExec) String() string
- func (m *AssetsTransferToExec) XXX_DiscardUnknown()
- func (m *AssetsTransferToExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetsTransferToExec) XXX_Merge(src proto.Message)
- func (m *AssetsTransferToExec) XXX_Size() int
- func (m *AssetsTransferToExec) XXX_Unmarshal(b []byte) error
- type AssetsWithdraw
- func (*AssetsWithdraw) Descriptor() ([]byte, []int)
- func (m *AssetsWithdraw) GetAmount() int64
- func (m *AssetsWithdraw) GetCointoken() string
- func (m *AssetsWithdraw) GetExecName() string
- func (m *AssetsWithdraw) GetNote() []byte
- func (m *AssetsWithdraw) GetTo() string
- func (*AssetsWithdraw) ProtoMessage()
- func (m *AssetsWithdraw) Reset()
- func (m *AssetsWithdraw) String() string
- func (m *AssetsWithdraw) XXX_DiscardUnknown()
- func (m *AssetsWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetsWithdraw) XXX_Merge(src proto.Message)
- func (m *AssetsWithdraw) XXX_Size() int
- func (m *AssetsWithdraw) XXX_Unmarshal(b []byte) error
- type Block
- func (block *Block) CheckSign() bool
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetBlockTime() int64
- func (m *Block) GetDifficulty() uint32
- func (block *Block) GetHeader() *Header
- func (m *Block) GetHeight() int64
- func (m *Block) GetMainHash() []byte
- func (m *Block) GetMainHeight() int64
- func (m *Block) GetParentHash() []byte
- func (m *Block) GetSignature() *Signature
- func (m *Block) GetStateHash() []byte
- func (m *Block) GetTxHash() []byte
- func (m *Block) GetTxs() []*Transaction
- func (m *Block) GetVersion() int64
- func (block *Block) Hash() []byte
- func (block *Block) HashByForkHeight(forkheight int64) []byte
- func (block *Block) HashNew() []byte
- func (block *Block) HashOld() []byte
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (block *Block) Size() int
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockBody
- func (*BlockBody) Descriptor() ([]byte, []int)
- func (m *BlockBody) GetReceipts() []*ReceiptData
- func (m *BlockBody) GetTxs() []*Transaction
- func (*BlockBody) ProtoMessage()
- func (m *BlockBody) Reset()
- func (m *BlockBody) String() string
- func (m *BlockBody) XXX_DiscardUnknown()
- func (m *BlockBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockBody) XXX_Merge(src proto.Message)
- func (m *BlockBody) XXX_Size() int
- func (m *BlockBody) XXX_Unmarshal(b []byte) error
- type BlockChain
- type BlockDetail
- func (*BlockDetail) Descriptor() ([]byte, []int)
- func (m *BlockDetail) GetBlock() *Block
- func (m *BlockDetail) GetKV() []*KeyValue
- func (m *BlockDetail) GetPrevStatusHash() []byte
- func (m *BlockDetail) GetReceipts() []*ReceiptData
- func (*BlockDetail) ProtoMessage()
- func (m *BlockDetail) Reset()
- func (m *BlockDetail) String() string
- func (m *BlockDetail) XXX_DiscardUnknown()
- func (m *BlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockDetail) XXX_Merge(src proto.Message)
- func (m *BlockDetail) XXX_Size() int
- func (m *BlockDetail) XXX_Unmarshal(b []byte) error
- type BlockDetails
- func (*BlockDetails) Descriptor() ([]byte, []int)
- func (m *BlockDetails) GetItems() []*BlockDetail
- func (*BlockDetails) ProtoMessage()
- func (m *BlockDetails) Reset()
- func (m *BlockDetails) String() string
- func (m *BlockDetails) XXX_DiscardUnknown()
- func (m *BlockDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockDetails) XXX_Merge(src proto.Message)
- func (m *BlockDetails) XXX_Size() int
- func (m *BlockDetails) XXX_Unmarshal(b []byte) error
- type BlockOverview
- func (*BlockOverview) Descriptor() ([]byte, []int)
- func (m *BlockOverview) GetHead() *Header
- func (m *BlockOverview) GetTxCount() int64
- func (m *BlockOverview) GetTxHashes() [][]byte
- func (*BlockOverview) ProtoMessage()
- func (m *BlockOverview) Reset()
- func (m *BlockOverview) String() string
- func (m *BlockOverview) XXX_DiscardUnknown()
- func (m *BlockOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockOverview) XXX_Merge(src proto.Message)
- func (m *BlockOverview) XXX_Size() int
- func (m *BlockOverview) XXX_Unmarshal(b []byte) error
- type BlockPid
- func (*BlockPid) Descriptor() ([]byte, []int)
- func (m *BlockPid) GetBlock() *Block
- func (m *BlockPid) GetPid() string
- func (*BlockPid) ProtoMessage()
- func (m *BlockPid) Reset()
- func (m *BlockPid) String() string
- func (m *BlockPid) XXX_DiscardUnknown()
- func (m *BlockPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockPid) XXX_Merge(src proto.Message)
- func (m *BlockPid) XXX_Size() int
- func (m *BlockPid) XXX_Unmarshal(b []byte) error
- type BlockSeq
- func (*BlockSeq) Descriptor() ([]byte, []int)
- func (m *BlockSeq) GetDetail() *BlockDetail
- func (m *BlockSeq) GetNum() int64
- func (m *BlockSeq) GetSeq() *BlockSequence
- func (*BlockSeq) ProtoMessage()
- func (m *BlockSeq) Reset()
- func (m *BlockSeq) String() string
- func (m *BlockSeq) XXX_DiscardUnknown()
- func (m *BlockSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSeq) XXX_Merge(src proto.Message)
- func (m *BlockSeq) XXX_Size() int
- func (m *BlockSeq) XXX_Unmarshal(b []byte) error
- type BlockSeqCB
- func (*BlockSeqCB) Descriptor() ([]byte, []int)
- func (m *BlockSeqCB) GetEncode() string
- func (m *BlockSeqCB) GetName() string
- func (m *BlockSeqCB) GetURL() string
- func (*BlockSeqCB) ProtoMessage()
- func (m *BlockSeqCB) Reset()
- func (m *BlockSeqCB) String() string
- func (m *BlockSeqCB) XXX_DiscardUnknown()
- func (m *BlockSeqCB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSeqCB) XXX_Merge(src proto.Message)
- func (m *BlockSeqCB) XXX_Size() int
- func (m *BlockSeqCB) XXX_Unmarshal(b []byte) error
- type BlockSeqCBs
- func (*BlockSeqCBs) Descriptor() ([]byte, []int)
- func (m *BlockSeqCBs) GetItems() []*BlockSeqCB
- func (*BlockSeqCBs) ProtoMessage()
- func (m *BlockSeqCBs) Reset()
- func (m *BlockSeqCBs) String() string
- func (m *BlockSeqCBs) XXX_DiscardUnknown()
- func (m *BlockSeqCBs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSeqCBs) XXX_Merge(src proto.Message)
- func (m *BlockSeqCBs) XXX_Size() int
- func (m *BlockSeqCBs) XXX_Unmarshal(b []byte) error
- type BlockSequence
- func (*BlockSequence) Descriptor() ([]byte, []int)
- func (m *BlockSequence) GetHash() []byte
- func (m *BlockSequence) GetType() int64
- func (*BlockSequence) ProtoMessage()
- func (m *BlockSequence) Reset()
- func (m *BlockSequence) String() string
- func (m *BlockSequence) XXX_DiscardUnknown()
- func (m *BlockSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSequence) XXX_Merge(src proto.Message)
- func (m *BlockSequence) XXX_Size() int
- func (m *BlockSequence) XXX_Unmarshal(b []byte) error
- type BlockSequences
- func (*BlockSequences) Descriptor() ([]byte, []int)
- func (m *BlockSequences) GetItems() []*BlockSequence
- func (*BlockSequences) ProtoMessage()
- func (m *BlockSequences) Reset()
- func (m *BlockSequences) String() string
- func (m *BlockSequences) XXX_DiscardUnknown()
- func (m *BlockSequences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSequences) XXX_Merge(src proto.Message)
- func (m *BlockSequences) XXX_Size() int
- func (m *BlockSequences) XXX_Unmarshal(b []byte) error
- type Blocks
- func (*Blocks) Descriptor() ([]byte, []int)
- func (m *Blocks) GetItems() []*Block
- func (*Blocks) ProtoMessage()
- func (m *Blocks) Reset()
- func (m *Blocks) String() string
- func (m *Blocks) XXX_DiscardUnknown()
- func (m *Blocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Blocks) XXX_Merge(src proto.Message)
- func (m *Blocks) XXX_Size() int
- func (m *Blocks) XXX_Unmarshal(b []byte) error
- type BroadCastData
- func (*BroadCastData) Descriptor() ([]byte, []int)
- func (m *BroadCastData) GetBlock() *P2PBlock
- func (m *BroadCastData) GetPing() *P2PPing
- func (m *BroadCastData) GetTx() *P2PTx
- func (m *BroadCastData) GetValue() isBroadCastData_Value
- func (m *BroadCastData) GetVersion() *Versions
- func (*BroadCastData) ProtoMessage()
- func (m *BroadCastData) Reset()
- func (m *BroadCastData) String() string
- func (m *BroadCastData) XXX_DiscardUnknown()
- func (m *BroadCastData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadCastData) XXX_Merge(src proto.Message)
- func (*BroadCastData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *BroadCastData) XXX_Size() int
- func (m *BroadCastData) XXX_Unmarshal(b []byte) error
- type BroadCastData_Block
- type BroadCastData_Ping
- type BroadCastData_Tx
- type BroadCastData_Version
- type Chain33Client
- type Chain33Server
- type ChainExecutor
- func (*ChainExecutor) Descriptor() ([]byte, []int)
- func (m *ChainExecutor) GetDriver() string
- func (m *ChainExecutor) GetExtra() []byte
- func (m *ChainExecutor) GetFuncName() string
- func (m *ChainExecutor) GetParam() []byte
- func (m *ChainExecutor) GetStateHash() []byte
- func (*ChainExecutor) ProtoMessage()
- func (m *ChainExecutor) Reset()
- func (m *ChainExecutor) String() string
- func (m *ChainExecutor) XXX_DiscardUnknown()
- func (m *ChainExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainExecutor) XXX_Merge(src proto.Message)
- func (m *ChainExecutor) XXX_Size() int
- func (m *ChainExecutor) XXX_Unmarshal(b []byte) error
- type ChainParam
- type ChainStatus
- func (*ChainStatus) Descriptor() ([]byte, []int)
- func (m *ChainStatus) GetCurrentHeight() int64
- func (m *ChainStatus) GetMempoolSize() int64
- func (m *ChainStatus) GetMsgQueueSize() int64
- func (*ChainStatus) ProtoMessage()
- func (m *ChainStatus) Reset()
- func (m *ChainStatus) String() string
- func (m *ChainStatus) XXX_DiscardUnknown()
- func (m *ChainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainStatus) XXX_Merge(src proto.Message)
- func (m *ChainStatus) XXX_Size() int
- func (m *ChainStatus) XXX_Unmarshal(b []byte) error
- type Checkpoint
- func (*Checkpoint) Descriptor() ([]byte, []int)
- func (m *Checkpoint) GetDigest() []byte
- func (m *Checkpoint) GetSequence() uint32
- func (*Checkpoint) ProtoMessage()
- func (m *Checkpoint) Reset()
- func (m *Checkpoint) String() string
- func (m *Checkpoint) XXX_DiscardUnknown()
- func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Checkpoint) XXX_Merge(src proto.Message)
- func (m *Checkpoint) XXX_Size() int
- func (m *Checkpoint) XXX_Unmarshal(b []byte) error
- type ClientReply
- func (*ClientReply) Descriptor() ([]byte, []int)
- func (m *ClientReply) GetClient() string
- func (m *ClientReply) GetReplica() uint32
- func (m *ClientReply) GetResult() *Result
- func (m *ClientReply) GetTimestamp() string
- func (m *ClientReply) GetView() uint32
- func (*ClientReply) ProtoMessage()
- func (m *ClientReply) Reset()
- func (m *ClientReply) String() string
- func (m *ClientReply) XXX_DiscardUnknown()
- func (m *ClientReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientReply) XXX_Merge(src proto.Message)
- func (m *ClientReply) XXX_Size() int
- func (m *ClientReply) XXX_Unmarshal(b []byte) error
- 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)
- func (m *ConfigItem) GetAddr() string
- func (m *ConfigItem) GetArr() *ArrayConfig
- func (m *ConfigItem) GetInt() *Int32Config
- func (m *ConfigItem) GetKey() string
- func (m *ConfigItem) GetStr() *StringConfig
- func (m *ConfigItem) GetTy() int32
- func (m *ConfigItem) GetValue() isConfigItem_Value
- func (*ConfigItem) ProtoMessage()
- func (m *ConfigItem) Reset()
- func (m *ConfigItem) String() string
- func (m *ConfigItem) XXX_DiscardUnknown()
- func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigItem) XXX_Merge(src proto.Message)
- func (*ConfigItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *ConfigItem) XXX_Size() int
- func (m *ConfigItem) XXX_Unmarshal(b []byte) error
- type ConfigItem_Arr
- type ConfigItem_Int
- type ConfigItem_Str
- type ConfigSubModule
- type Consensus
- type CreateTransactionGroup
- func (*CreateTransactionGroup) Descriptor() ([]byte, []int)
- func (m *CreateTransactionGroup) GetTxs() []string
- func (*CreateTransactionGroup) ProtoMessage()
- func (m *CreateTransactionGroup) Reset()
- func (m *CreateTransactionGroup) String() string
- func (m *CreateTransactionGroup) XXX_DiscardUnknown()
- func (m *CreateTransactionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTransactionGroup) XXX_Merge(src proto.Message)
- func (m *CreateTransactionGroup) XXX_Size() int
- func (m *CreateTransactionGroup) XXX_Unmarshal(b []byte) error
- type CreateTx
- func (*CreateTx) Descriptor() ([]byte, []int)
- func (m *CreateTx) GetAmount() int64
- func (m *CreateTx) GetExecName() string
- func (m *CreateTx) GetExecer() string
- func (m *CreateTx) GetFee() int64
- func (m *CreateTx) GetIsToken() bool
- func (m *CreateTx) GetIsWithdraw() bool
- func (m *CreateTx) GetNote() []byte
- func (m *CreateTx) GetTo() string
- func (m *CreateTx) GetTokenSymbol() string
- func (*CreateTx) ProtoMessage()
- func (m *CreateTx) Reset()
- func (m *CreateTx) String() string
- func (m *CreateTx) XXX_DiscardUnknown()
- func (m *CreateTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTx) XXX_Merge(src proto.Message)
- func (m *CreateTx) XXX_Size() int
- func (m *CreateTx) XXX_Unmarshal(b []byte) error
- type CreateTxIn
- func (*CreateTxIn) Descriptor() ([]byte, []int)
- func (m *CreateTxIn) GetActionName() string
- func (m *CreateTxIn) GetExecer() []byte
- func (m *CreateTxIn) GetPayload() []byte
- func (*CreateTxIn) ProtoMessage()
- func (m *CreateTxIn) Reset()
- func (m *CreateTxIn) String() string
- func (m *CreateTxIn) XXX_DiscardUnknown()
- func (m *CreateTxIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTxIn) XXX_Merge(src proto.Message)
- func (m *CreateTxIn) XXX_Size() int
- func (m *CreateTxIn) XXX_Unmarshal(b []byte) error
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)
- func (m *Entry) GetDigest() []byte
- func (m *Entry) GetSequence() uint32
- func (m *Entry) GetView() uint32
- func (*Entry) ProtoMessage()
- func (m *Entry) Reset()
- func (m *Entry) String() string
- func (m *Entry) XXX_DiscardUnknown()
- func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entry) XXX_Merge(src proto.Message)
- func (m *Entry) XXX_Size() int
- func (m *Entry) XXX_Unmarshal(b []byte) error
- type Exec
- type ExecAccount
- func (*ExecAccount) Descriptor() ([]byte, []int)
- func (m *ExecAccount) GetAccount() *Account
- func (m *ExecAccount) GetExecer() string
- func (*ExecAccount) ProtoMessage()
- func (m *ExecAccount) Reset()
- func (m *ExecAccount) String() string
- func (m *ExecAccount) XXX_DiscardUnknown()
- func (m *ExecAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecAccount) XXX_Merge(src proto.Message)
- func (m *ExecAccount) XXX_Size() int
- func (m *ExecAccount) XXX_Unmarshal(b []byte) error
- type ExecBalanceItem
- func (*ExecBalanceItem) Descriptor() ([]byte, []int)
- func (m *ExecBalanceItem) GetActive() int64
- func (m *ExecBalanceItem) GetExecAddr() []byte
- func (m *ExecBalanceItem) GetFrozen() int64
- func (*ExecBalanceItem) ProtoMessage()
- func (m *ExecBalanceItem) Reset()
- func (m *ExecBalanceItem) String() string
- func (m *ExecBalanceItem) XXX_DiscardUnknown()
- func (m *ExecBalanceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecBalanceItem) XXX_Merge(src proto.Message)
- func (m *ExecBalanceItem) XXX_Size() int
- func (m *ExecBalanceItem) XXX_Unmarshal(b []byte) error
- type ExecTxList
- func (*ExecTxList) Descriptor() ([]byte, []int)
- func (m *ExecTxList) GetBlockTime() int64
- func (m *ExecTxList) GetDifficulty() uint64
- func (m *ExecTxList) GetHeight() int64
- func (m *ExecTxList) GetIsMempool() bool
- func (m *ExecTxList) GetMainHash() []byte
- func (m *ExecTxList) GetMainHeight() int64
- func (m *ExecTxList) GetParentHash() []byte
- func (m *ExecTxList) GetStateHash() []byte
- func (m *ExecTxList) GetTxs() []*Transaction
- func (*ExecTxList) ProtoMessage()
- func (m *ExecTxList) Reset()
- func (m *ExecTxList) String() string
- func (m *ExecTxList) XXX_DiscardUnknown()
- func (m *ExecTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecTxList) XXX_Merge(src proto.Message)
- func (m *ExecTxList) XXX_Size() int
- func (m *ExecTxList) XXX_Unmarshal(b []byte) error
- 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) 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) GetValueTypeMap() map[string]reflect.Type
- 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)
- type ExecutorType
- type ForkList
- type Forks
- func (f *Forks) Clone(from, to string) error
- func (f *Forks) CloneMaxHeight(from, to string)
- func (f *Forks) CloneZero(from, to string) error
- func (f *Forks) GetAll(title string) map[string]int64
- func (f *Forks) GetDappFork(title, app string, key string) int64
- func (f *Forks) GetFork(title, key string) int64
- func (f *Forks) HasFork(title, key string) bool
- func (f *Forks) IsDappFork(title string, height int64, dapp, fork string) bool
- func (f *Forks) IsFork(title string, height int64, fork string) bool
- func (f *Forks) ReplaceDappFork(title, dapp, key string, height int64)
- func (f *Forks) ReplaceFork(title, key string, height int64)
- func (f *Forks) SetAllFork(title string, height int64)
- func (f *Forks) SetDappFork(title, dapp, key string, height int64)
- func (f *Forks) SetFork(title, key string, height int64)
- type GenSeedLang
- func (*GenSeedLang) Descriptor() ([]byte, []int)
- func (m *GenSeedLang) GetLang() int32
- func (*GenSeedLang) ProtoMessage()
- func (m *GenSeedLang) Reset()
- func (m *GenSeedLang) String() string
- func (m *GenSeedLang) XXX_DiscardUnknown()
- func (m *GenSeedLang) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenSeedLang) XXX_Merge(src proto.Message)
- func (m *GenSeedLang) XXX_Size() int
- func (m *GenSeedLang) XXX_Unmarshal(b []byte) error
- type Genesis
- func (*Genesis) Descriptor() ([]byte, []int)
- func (m *Genesis) GetIsrun() bool
- func (*Genesis) ProtoMessage()
- func (m *Genesis) Reset()
- func (m *Genesis) String() string
- func (m *Genesis) XXX_DiscardUnknown()
- func (m *Genesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Genesis) XXX_Merge(src proto.Message)
- func (m *Genesis) XXX_Size() int
- func (m *Genesis) XXX_Unmarshal(b []byte) error
- type GetSeedByPw
- func (*GetSeedByPw) Descriptor() ([]byte, []int)
- func (m *GetSeedByPw) GetPasswd() string
- func (*GetSeedByPw) ProtoMessage()
- func (m *GetSeedByPw) Reset()
- func (m *GetSeedByPw) String() string
- func (m *GetSeedByPw) XXX_DiscardUnknown()
- func (m *GetSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSeedByPw) XXX_Merge(src proto.Message)
- func (m *GetSeedByPw) XXX_Size() int
- func (m *GetSeedByPw) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetBlockTime() int64
- func (m *Header) GetDifficulty() uint32
- func (m *Header) GetHash() []byte
- func (m *Header) GetHeight() int64
- func (m *Header) GetParentHash() []byte
- func (m *Header) GetSignature() *Signature
- func (m *Header) GetStateHash() []byte
- func (m *Header) GetTxCount() int64
- func (m *Header) GetTxHash() []byte
- func (m *Header) GetVersion() int64
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Headers
- func (*Headers) Descriptor() ([]byte, []int)
- func (m *Headers) GetItems() []*Header
- func (*Headers) ProtoMessage()
- func (m *Headers) Reset()
- func (m *Headers) String() string
- func (m *Headers) XXX_DiscardUnknown()
- func (m *Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Headers) XXX_Merge(src proto.Message)
- func (m *Headers) XXX_Size() int
- func (m *Headers) XXX_Unmarshal(b []byte) error
- type HeadersPid
- func (*HeadersPid) Descriptor() ([]byte, []int)
- func (m *HeadersPid) GetHeaders() *Headers
- func (m *HeadersPid) GetPid() string
- func (*HeadersPid) ProtoMessage()
- func (m *HeadersPid) Reset()
- func (m *HeadersPid) String() string
- func (m *HeadersPid) XXX_DiscardUnknown()
- func (m *HeadersPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeadersPid) XXX_Merge(src proto.Message)
- func (m *HeadersPid) XXX_Size() int
- func (m *HeadersPid) XXX_Unmarshal(b []byte) error
- type HealthCheck
- type HexTx
- func (*HexTx) Descriptor() ([]byte, []int)
- func (m *HexTx) GetTx() string
- func (*HexTx) ProtoMessage()
- func (m *HexTx) Reset()
- func (m *HexTx) String() string
- func (m *HexTx) XXX_DiscardUnknown()
- func (m *HexTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HexTx) XXX_Merge(src proto.Message)
- func (m *HexTx) XXX_Size() int
- func (m *HexTx) XXX_Unmarshal(b []byte) error
- type HistoryCertStore
- func (*HistoryCertStore) Descriptor() ([]byte, []int)
- func (m *HistoryCertStore) GetCurHeigth() int64
- func (m *HistoryCertStore) GetIntermediateCerts() [][]byte
- func (m *HistoryCertStore) GetNxtHeight() int64
- func (m *HistoryCertStore) GetRevocationList() [][]byte
- func (m *HistoryCertStore) GetRootcerts() [][]byte
- func (*HistoryCertStore) ProtoMessage()
- func (m *HistoryCertStore) Reset()
- func (m *HistoryCertStore) String() string
- func (m *HistoryCertStore) XXX_DiscardUnknown()
- func (m *HistoryCertStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoryCertStore) XXX_Merge(src proto.Message)
- func (m *HistoryCertStore) XXX_Size() int
- func (m *HistoryCertStore) XXX_Unmarshal(b []byte) error
- type InnerNode
- func (*InnerNode) Descriptor() ([]byte, []int)
- func (m *InnerNode) GetHeight() int32
- func (m *InnerNode) GetLeftHash() []byte
- func (m *InnerNode) GetRightHash() []byte
- func (m *InnerNode) GetSize() int32
- func (innernode *InnerNode) Hash() []byte
- func (*InnerNode) ProtoMessage()
- func (m *InnerNode) Reset()
- func (m *InnerNode) String() string
- func (m *InnerNode) XXX_DiscardUnknown()
- func (m *InnerNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InnerNode) XXX_Merge(src proto.Message)
- func (m *InnerNode) XXX_Size() int
- func (m *InnerNode) XXX_Unmarshal(b []byte) error
- type Int32
- func (*Int32) Descriptor() ([]byte, []int)
- func (m *Int32) GetData() int32
- func (*Int32) ProtoMessage()
- func (m *Int32) Reset()
- func (m *Int32) String() string
- func (m *Int32) XXX_DiscardUnknown()
- func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Int32) XXX_Merge(src proto.Message)
- func (m *Int32) XXX_Size() int
- func (m *Int32) XXX_Unmarshal(b []byte) error
- type Int32Config
- func (*Int32Config) Descriptor() ([]byte, []int)
- func (m *Int32Config) GetValue() int32
- func (*Int32Config) ProtoMessage()
- func (m *Int32Config) Reset()
- func (m *Int32Config) String() string
- func (m *Int32Config) XXX_DiscardUnknown()
- func (m *Int32Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Int32Config) XXX_Merge(src proto.Message)
- func (m *Int32Config) XXX_Size() int
- func (m *Int32Config) XXX_Unmarshal(b []byte) error
- type Int64
- func (*Int64) Descriptor() ([]byte, []int)
- func (m *Int64) GetData() int64
- func (*Int64) ProtoMessage()
- func (m *Int64) Reset()
- func (m *Int64) String() string
- func (m *Int64) XXX_DiscardUnknown()
- func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Int64) XXX_Merge(src proto.Message)
- func (m *Int64) XXX_Size() int
- func (m *Int64) XXX_Unmarshal(b []byte) error
- type InvData
- func (*InvData) Descriptor() ([]byte, []int)
- func (m *InvData) GetBlock() *Block
- func (m *InvData) GetTx() *Transaction
- func (m *InvData) GetTy() int32
- func (m *InvData) GetValue() isInvData_Value
- func (*InvData) ProtoMessage()
- func (m *InvData) Reset()
- func (m *InvData) String() string
- func (m *InvData) XXX_DiscardUnknown()
- func (m *InvData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InvData) XXX_Merge(src proto.Message)
- func (*InvData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *InvData) XXX_Size() int
- func (m *InvData) XXX_Unmarshal(b []byte) error
- type InvData_Block
- type InvData_Tx
- type InvDatas
- func (*InvDatas) Descriptor() ([]byte, []int)
- func (m *InvDatas) GetItems() []*InvData
- func (*InvDatas) ProtoMessage()
- func (m *InvDatas) Reset()
- func (m *InvDatas) String() string
- func (m *InvDatas) XXX_DiscardUnknown()
- func (m *InvDatas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InvDatas) XXX_Merge(src proto.Message)
- func (m *InvDatas) XXX_Size() int
- func (m *InvDatas) XXX_Unmarshal(b []byte) error
- type Inventory
- func (*Inventory) Descriptor() ([]byte, []int)
- func (m *Inventory) GetHash() []byte
- func (m *Inventory) GetHeight() int64
- func (m *Inventory) GetTy() int32
- func (*Inventory) ProtoMessage()
- func (m *Inventory) Reset()
- func (m *Inventory) String() string
- func (m *Inventory) XXX_DiscardUnknown()
- func (m *Inventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Inventory) XXX_Merge(src proto.Message)
- func (m *Inventory) XXX_Size() int
- func (m *Inventory) XXX_Unmarshal(b []byte) error
- type IsCaughtUp
- func (*IsCaughtUp) Descriptor() ([]byte, []int)
- func (m *IsCaughtUp) GetIscaughtup() bool
- func (*IsCaughtUp) ProtoMessage()
- func (m *IsCaughtUp) Reset()
- func (m *IsCaughtUp) String() string
- func (m *IsCaughtUp) XXX_DiscardUnknown()
- func (m *IsCaughtUp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsCaughtUp) XXX_Merge(src proto.Message)
- func (m *IsCaughtUp) XXX_Size() int
- func (m *IsCaughtUp) XXX_Unmarshal(b []byte) error
- type IsNtpClockSync
- func (*IsNtpClockSync) Descriptor() ([]byte, []int)
- func (m *IsNtpClockSync) GetIsntpclocksync() bool
- func (*IsNtpClockSync) ProtoMessage()
- func (m *IsNtpClockSync) Reset()
- func (m *IsNtpClockSync) String() string
- func (m *IsNtpClockSync) XXX_DiscardUnknown()
- func (m *IsNtpClockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsNtpClockSync) XXX_Merge(src proto.Message)
- func (m *IsNtpClockSync) XXX_Size() int
- func (m *IsNtpClockSync) XXX_Unmarshal(b []byte) error
- type IterateRangeByStateHash
- func (*IterateRangeByStateHash) Descriptor() ([]byte, []int)
- func (m *IterateRangeByStateHash) GetCount() int64
- func (m *IterateRangeByStateHash) GetEnd() []byte
- func (m *IterateRangeByStateHash) GetStart() []byte
- func (m *IterateRangeByStateHash) GetStateHash() []byte
- func (*IterateRangeByStateHash) ProtoMessage()
- func (m *IterateRangeByStateHash) Reset()
- func (m *IterateRangeByStateHash) String() string
- func (m *IterateRangeByStateHash) XXX_DiscardUnknown()
- func (m *IterateRangeByStateHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IterateRangeByStateHash) XXX_Merge(src proto.Message)
- func (m *IterateRangeByStateHash) XXX_Size() int
- func (m *IterateRangeByStateHash) XXX_Unmarshal(b []byte) error
- type KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)
- func (m *KeyValue) GetKey() []byte
- func (m *KeyValue) GetValue() []byte
- func (*KeyValue) ProtoMessage()
- func (m *KeyValue) Reset()
- func (m *KeyValue) String() string
- func (m *KeyValue) XXX_DiscardUnknown()
- func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValue) XXX_Merge(src proto.Message)
- func (m *KeyValue) XXX_Size() int
- func (m *KeyValue) XXX_Unmarshal(b []byte) error
- type LeafNode
- func (*LeafNode) Descriptor() ([]byte, []int)
- func (m *LeafNode) GetHeight() int32
- func (m *LeafNode) GetKey() []byte
- func (m *LeafNode) GetSize() int32
- func (m *LeafNode) GetValue() []byte
- func (leafnode *LeafNode) Hash() []byte
- func (*LeafNode) ProtoMessage()
- func (m *LeafNode) Reset()
- func (m *LeafNode) String() string
- func (m *LeafNode) XXX_DiscardUnknown()
- func (m *LeafNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeafNode) XXX_Merge(src proto.Message)
- func (m *LeafNode) XXX_Size() int
- func (m *LeafNode) XXX_Unmarshal(b []byte) error
- type LocalDBGet
- func (*LocalDBGet) Descriptor() ([]byte, []int)
- func (m *LocalDBGet) GetKeys() [][]byte
- func (*LocalDBGet) ProtoMessage()
- func (m *LocalDBGet) Reset()
- func (m *LocalDBGet) String() string
- func (m *LocalDBGet) XXX_DiscardUnknown()
- func (m *LocalDBGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalDBGet) XXX_Merge(src proto.Message)
- func (m *LocalDBGet) XXX_Size() int
- func (m *LocalDBGet) XXX_Unmarshal(b []byte) error
- type LocalDBList
- func (*LocalDBList) Descriptor() ([]byte, []int)
- func (m *LocalDBList) GetCount() int32
- func (m *LocalDBList) GetDirection() int32
- func (m *LocalDBList) GetKey() []byte
- func (m *LocalDBList) GetPrefix() []byte
- func (*LocalDBList) ProtoMessage()
- func (m *LocalDBList) Reset()
- func (m *LocalDBList) String() string
- func (m *LocalDBList) XXX_DiscardUnknown()
- func (m *LocalDBList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalDBList) XXX_Merge(src proto.Message)
- func (m *LocalDBList) XXX_Size() int
- func (m *LocalDBList) XXX_Unmarshal(b []byte) error
- type LocalDBSet
- func (*LocalDBSet) Descriptor() ([]byte, []int)
- func (m *LocalDBSet) GetKV() []*KeyValue
- func (*LocalDBSet) ProtoMessage()
- func (m *LocalDBSet) Reset()
- func (m *LocalDBSet) String() string
- func (m *LocalDBSet) XXX_DiscardUnknown()
- func (m *LocalDBSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalDBSet) XXX_Merge(src proto.Message)
- func (m *LocalDBSet) XXX_Size() int
- func (m *LocalDBSet) XXX_Unmarshal(b []byte) error
- type LocalReplyValue
- func (*LocalReplyValue) Descriptor() ([]byte, []int)
- func (m *LocalReplyValue) GetValues() [][]byte
- func (*LocalReplyValue) ProtoMessage()
- func (m *LocalReplyValue) Reset()
- func (m *LocalReplyValue) String() string
- func (m *LocalReplyValue) XXX_DiscardUnknown()
- func (m *LocalReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalReplyValue) XXX_Merge(src proto.Message)
- func (m *LocalReplyValue) XXX_Size() int
- func (m *LocalReplyValue) XXX_Unmarshal(b []byte) error
- type Log
- type LogErr
- type LogInfo
- type LogReserved
- type LogType
- type MAVLProof
- func (*MAVLProof) Descriptor() ([]byte, []int)
- func (m *MAVLProof) GetInnerNodes() []*InnerNode
- func (m *MAVLProof) GetLeafHash() []byte
- func (m *MAVLProof) GetRootHash() []byte
- func (*MAVLProof) ProtoMessage()
- func (m *MAVLProof) Reset()
- func (m *MAVLProof) String() string
- func (m *MAVLProof) XXX_DiscardUnknown()
- func (m *MAVLProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MAVLProof) XXX_Merge(src proto.Message)
- func (m *MAVLProof) XXX_Size() int
- func (m *MAVLProof) XXX_Unmarshal(b []byte) error
- type Mempool
- type MempoolSize
- func (*MempoolSize) Descriptor() ([]byte, []int)
- func (m *MempoolSize) GetSize() int64
- func (*MempoolSize) ProtoMessage()
- func (m *MempoolSize) Reset()
- func (m *MempoolSize) String() string
- func (m *MempoolSize) XXX_DiscardUnknown()
- func (m *MempoolSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MempoolSize) XXX_Merge(src proto.Message)
- func (m *MempoolSize) XXX_Size() int
- func (m *MempoolSize) XXX_Unmarshal(b []byte) error
- type Message
- type ModifyConfig
- func (*ModifyConfig) Descriptor() ([]byte, []int)
- func (m *ModifyConfig) GetAddr() string
- func (m *ModifyConfig) GetKey() string
- func (m *ModifyConfig) GetOp() string
- func (m *ModifyConfig) GetValue() string
- func (*ModifyConfig) ProtoMessage()
- func (m *ModifyConfig) Reset()
- func (m *ModifyConfig) String() string
- func (m *ModifyConfig) XXX_DiscardUnknown()
- func (m *ModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModifyConfig) XXX_Merge(src proto.Message)
- func (m *ModifyConfig) XXX_Size() int
- func (m *ModifyConfig) XXX_Unmarshal(b []byte) error
- type NoBalanceTx
- func (*NoBalanceTx) Descriptor() ([]byte, []int)
- func (m *NoBalanceTx) GetExpire() string
- func (m *NoBalanceTx) GetPayAddr() string
- func (m *NoBalanceTx) GetPrivkey() string
- func (m *NoBalanceTx) GetTxHex() string
- func (*NoBalanceTx) ProtoMessage()
- func (m *NoBalanceTx) Reset()
- func (m *NoBalanceTx) String() string
- func (m *NoBalanceTx) XXX_DiscardUnknown()
- func (m *NoBalanceTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NoBalanceTx) XXX_Merge(src proto.Message)
- func (m *NoBalanceTx) XXX_Size() int
- func (m *NoBalanceTx) XXX_Unmarshal(b []byte) error
- type NodeNetInfo
- func (*NodeNetInfo) Descriptor() ([]byte, []int)
- func (m *NodeNetInfo) GetExternaladdr() string
- func (m *NodeNetInfo) GetInbounds() int32
- func (m *NodeNetInfo) GetLocaladdr() string
- func (m *NodeNetInfo) GetOutbounds() int32
- func (m *NodeNetInfo) GetService() bool
- func (*NodeNetInfo) ProtoMessage()
- func (m *NodeNetInfo) Reset()
- func (m *NodeNetInfo) String() string
- func (m *NodeNetInfo) XXX_DiscardUnknown()
- func (m *NodeNetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeNetInfo) XXX_Merge(src proto.Message)
- func (m *NodeNetInfo) XXX_Size() int
- func (m *NodeNetInfo) XXX_Unmarshal(b []byte) error
- type Operation
- func (*Operation) Descriptor() ([]byte, []int)
- func (m *Operation) GetValue() *Block
- func (*Operation) ProtoMessage()
- func (m *Operation) Reset()
- func (m *Operation) String() string
- func (m *Operation) XXX_DiscardUnknown()
- func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Operation) XXX_Merge(src proto.Message)
- func (m *Operation) XXX_Size() int
- func (m *Operation) XXX_Unmarshal(b []byte) error
- type P2P
- type P2PAddr
- func (*P2PAddr) Descriptor() ([]byte, []int)
- func (m *P2PAddr) GetAddrlist() []string
- func (m *P2PAddr) GetNonce() int64
- func (*P2PAddr) ProtoMessage()
- func (m *P2PAddr) Reset()
- func (m *P2PAddr) String() string
- func (m *P2PAddr) XXX_DiscardUnknown()
- func (m *P2PAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PAddr) XXX_Merge(src proto.Message)
- func (m *P2PAddr) XXX_Size() int
- func (m *P2PAddr) XXX_Unmarshal(b []byte) error
- type P2PAddrList
- func (*P2PAddrList) Descriptor() ([]byte, []int)
- func (m *P2PAddrList) GetNonce() int64
- func (m *P2PAddrList) GetPeerinfo() []*P2PPeerInfo
- func (*P2PAddrList) ProtoMessage()
- func (m *P2PAddrList) Reset()
- func (m *P2PAddrList) String() string
- func (m *P2PAddrList) XXX_DiscardUnknown()
- func (m *P2PAddrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PAddrList) XXX_Merge(src proto.Message)
- func (m *P2PAddrList) XXX_Size() int
- func (m *P2PAddrList) XXX_Unmarshal(b []byte) error
- type P2PBlock
- func (*P2PBlock) Descriptor() ([]byte, []int)
- func (m *P2PBlock) GetBlock() *Block
- func (*P2PBlock) ProtoMessage()
- func (m *P2PBlock) Reset()
- func (m *P2PBlock) String() string
- func (m *P2PBlock) XXX_DiscardUnknown()
- func (m *P2PBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PBlock) XXX_Merge(src proto.Message)
- func (m *P2PBlock) XXX_Size() int
- func (m *P2PBlock) XXX_Unmarshal(b []byte) error
- type P2PExternalInfo
- func (*P2PExternalInfo) Descriptor() ([]byte, []int)
- func (m *P2PExternalInfo) GetAddr() string
- func (m *P2PExternalInfo) GetIsoutside() bool
- func (*P2PExternalInfo) ProtoMessage()
- func (m *P2PExternalInfo) Reset()
- func (m *P2PExternalInfo) String() string
- func (m *P2PExternalInfo) XXX_DiscardUnknown()
- func (m *P2PExternalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PExternalInfo) XXX_Merge(src proto.Message)
- func (m *P2PExternalInfo) XXX_Size() int
- func (m *P2PExternalInfo) XXX_Unmarshal(b []byte) error
- type P2PGetAddr
- func (*P2PGetAddr) Descriptor() ([]byte, []int)
- func (m *P2PGetAddr) GetNonce() int64
- func (*P2PGetAddr) ProtoMessage()
- func (m *P2PGetAddr) Reset()
- func (m *P2PGetAddr) String() string
- func (m *P2PGetAddr) XXX_DiscardUnknown()
- func (m *P2PGetAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PGetAddr) XXX_Merge(src proto.Message)
- func (m *P2PGetAddr) XXX_Size() int
- func (m *P2PGetAddr) XXX_Unmarshal(b []byte) error
- type P2PGetBlocks
- func (*P2PGetBlocks) Descriptor() ([]byte, []int)
- func (m *P2PGetBlocks) GetEndHeight() int64
- func (m *P2PGetBlocks) GetStartHeight() int64
- func (m *P2PGetBlocks) GetVersion() int32
- func (*P2PGetBlocks) ProtoMessage()
- func (m *P2PGetBlocks) Reset()
- func (m *P2PGetBlocks) String() string
- func (m *P2PGetBlocks) XXX_DiscardUnknown()
- func (m *P2PGetBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PGetBlocks) XXX_Merge(src proto.Message)
- func (m *P2PGetBlocks) XXX_Size() int
- func (m *P2PGetBlocks) XXX_Unmarshal(b []byte) error
- type P2PGetData
- func (*P2PGetData) Descriptor() ([]byte, []int)
- func (m *P2PGetData) GetInvs() []*Inventory
- func (m *P2PGetData) GetVersion() int32
- func (*P2PGetData) ProtoMessage()
- func (m *P2PGetData) Reset()
- func (m *P2PGetData) String() string
- func (m *P2PGetData) XXX_DiscardUnknown()
- func (m *P2PGetData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PGetData) XXX_Merge(src proto.Message)
- func (m *P2PGetData) XXX_Size() int
- func (m *P2PGetData) XXX_Unmarshal(b []byte) error
- type P2PGetHeaders
- func (*P2PGetHeaders) Descriptor() ([]byte, []int)
- func (m *P2PGetHeaders) GetEndHeight() int64
- func (m *P2PGetHeaders) GetStartHeight() int64
- func (m *P2PGetHeaders) GetVersion() int32
- func (*P2PGetHeaders) ProtoMessage()
- func (m *P2PGetHeaders) Reset()
- func (m *P2PGetHeaders) String() string
- func (m *P2PGetHeaders) XXX_DiscardUnknown()
- func (m *P2PGetHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PGetHeaders) XXX_Merge(src proto.Message)
- func (m *P2PGetHeaders) XXX_Size() int
- func (m *P2PGetHeaders) XXX_Unmarshal(b []byte) error
- type P2PGetMempool
- func (*P2PGetMempool) Descriptor() ([]byte, []int)
- func (m *P2PGetMempool) GetVersion() int32
- func (*P2PGetMempool) ProtoMessage()
- func (m *P2PGetMempool) Reset()
- func (m *P2PGetMempool) String() string
- func (m *P2PGetMempool) XXX_DiscardUnknown()
- func (m *P2PGetMempool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PGetMempool) XXX_Merge(src proto.Message)
- func (m *P2PGetMempool) XXX_Size() int
- func (m *P2PGetMempool) XXX_Unmarshal(b []byte) error
- type P2PGetPeerInfo
- func (*P2PGetPeerInfo) Descriptor() ([]byte, []int)
- func (m *P2PGetPeerInfo) GetVersion() int32
- func (*P2PGetPeerInfo) ProtoMessage()
- func (m *P2PGetPeerInfo) Reset()
- func (m *P2PGetPeerInfo) String() string
- func (m *P2PGetPeerInfo) XXX_DiscardUnknown()
- func (m *P2PGetPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PGetPeerInfo) XXX_Merge(src proto.Message)
- func (m *P2PGetPeerInfo) XXX_Size() int
- func (m *P2PGetPeerInfo) XXX_Unmarshal(b []byte) error
- type P2PHeaders
- func (*P2PHeaders) Descriptor() ([]byte, []int)
- func (m *P2PHeaders) GetHeaders() []*Header
- func (*P2PHeaders) ProtoMessage()
- func (m *P2PHeaders) Reset()
- func (m *P2PHeaders) String() string
- func (m *P2PHeaders) XXX_DiscardUnknown()
- func (m *P2PHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PHeaders) XXX_Merge(src proto.Message)
- func (m *P2PHeaders) XXX_Size() int
- func (m *P2PHeaders) XXX_Unmarshal(b []byte) error
- type P2PInv
- func (*P2PInv) Descriptor() ([]byte, []int)
- func (m *P2PInv) GetInvs() []*Inventory
- func (*P2PInv) ProtoMessage()
- func (m *P2PInv) Reset()
- func (m *P2PInv) String() string
- func (m *P2PInv) XXX_DiscardUnknown()
- func (m *P2PInv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PInv) XXX_Merge(src proto.Message)
- func (m *P2PInv) XXX_Size() int
- func (m *P2PInv) XXX_Unmarshal(b []byte) error
- type P2PPeerInfo
- func (*P2PPeerInfo) Descriptor() ([]byte, []int)
- func (m *P2PPeerInfo) GetAddr() string
- func (m *P2PPeerInfo) GetHeader() *Header
- func (m *P2PPeerInfo) GetMempoolSize() int32
- func (m *P2PPeerInfo) GetName() string
- func (m *P2PPeerInfo) GetPort() int32
- func (*P2PPeerInfo) ProtoMessage()
- func (m *P2PPeerInfo) Reset()
- func (m *P2PPeerInfo) String() string
- func (m *P2PPeerInfo) XXX_DiscardUnknown()
- func (m *P2PPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PPeerInfo) XXX_Merge(src proto.Message)
- func (m *P2PPeerInfo) XXX_Size() int
- func (m *P2PPeerInfo) XXX_Unmarshal(b []byte) error
- type P2PPing
- func (*P2PPing) Descriptor() ([]byte, []int)
- func (m *P2PPing) GetAddr() string
- func (m *P2PPing) GetNonce() int64
- func (m *P2PPing) GetPort() int32
- func (m *P2PPing) GetSign() *Signature
- func (*P2PPing) ProtoMessage()
- func (m *P2PPing) Reset()
- func (m *P2PPing) String() string
- func (m *P2PPing) XXX_DiscardUnknown()
- func (m *P2PPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PPing) XXX_Merge(src proto.Message)
- func (m *P2PPing) XXX_Size() int
- func (m *P2PPing) XXX_Unmarshal(b []byte) error
- type P2PPong
- func (*P2PPong) Descriptor() ([]byte, []int)
- func (m *P2PPong) GetNonce() int64
- func (*P2PPong) ProtoMessage()
- func (m *P2PPong) Reset()
- func (m *P2PPong) String() string
- func (m *P2PPong) XXX_DiscardUnknown()
- func (m *P2PPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PPong) XXX_Merge(src proto.Message)
- func (m *P2PPong) XXX_Size() int
- func (m *P2PPong) XXX_Unmarshal(b []byte) error
- type P2PTx
- func (*P2PTx) Descriptor() ([]byte, []int)
- func (m *P2PTx) GetTx() *Transaction
- func (*P2PTx) ProtoMessage()
- func (m *P2PTx) Reset()
- func (m *P2PTx) String() string
- func (m *P2PTx) XXX_DiscardUnknown()
- func (m *P2PTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PTx) XXX_Merge(src proto.Message)
- func (m *P2PTx) XXX_Size() int
- func (m *P2PTx) XXX_Unmarshal(b []byte) error
- type P2PVerAck
- func (*P2PVerAck) Descriptor() ([]byte, []int)
- func (m *P2PVerAck) GetNonce() int64
- func (m *P2PVerAck) GetService() int64
- func (m *P2PVerAck) GetVersion() int32
- func (*P2PVerAck) ProtoMessage()
- func (m *P2PVerAck) Reset()
- func (m *P2PVerAck) String() string
- func (m *P2PVerAck) XXX_DiscardUnknown()
- func (m *P2PVerAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PVerAck) XXX_Merge(src proto.Message)
- func (m *P2PVerAck) XXX_Size() int
- func (m *P2PVerAck) XXX_Unmarshal(b []byte) error
- type P2PVersion
- func (*P2PVersion) Descriptor() ([]byte, []int)
- func (m *P2PVersion) GetAddrFrom() string
- func (m *P2PVersion) GetAddrRecv() string
- func (m *P2PVersion) GetNonce() int64
- func (m *P2PVersion) GetService() int64
- func (m *P2PVersion) GetStartHeight() int64
- func (m *P2PVersion) GetTimestamp() int64
- func (m *P2PVersion) GetUserAgent() string
- func (m *P2PVersion) GetVersion() int32
- func (*P2PVersion) ProtoMessage()
- func (m *P2PVersion) Reset()
- func (m *P2PVersion) String() string
- func (m *P2PVersion) XXX_DiscardUnknown()
- func (m *P2PVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PVersion) XXX_Merge(src proto.Message)
- func (m *P2PVersion) XXX_Size() int
- func (m *P2PVersion) XXX_Unmarshal(b []byte) error
- 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)
- func (m *ParaChainBlockDetail) GetBlockdetail() *BlockDetail
- func (m *ParaChainBlockDetail) GetSequence() int64
- func (*ParaChainBlockDetail) ProtoMessage()
- func (m *ParaChainBlockDetail) Reset()
- func (m *ParaChainBlockDetail) String() string
- func (m *ParaChainBlockDetail) XXX_DiscardUnknown()
- func (m *ParaChainBlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParaChainBlockDetail) XXX_Merge(src proto.Message)
- func (m *ParaChainBlockDetail) XXX_Size() int
- func (m *ParaChainBlockDetail) XXX_Unmarshal(b []byte) error
- type ParaCrossTx
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetAddr() string
- func (m *Peer) GetHeader() *Header
- func (m *Peer) GetMempoolSize() int32
- func (m *Peer) GetName() string
- func (m *Peer) GetPort() int32
- func (m *Peer) GetSelf() bool
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type PeerList
- func (*PeerList) Descriptor() ([]byte, []int)
- func (m *PeerList) GetPeers() []*Peer
- func (*PeerList) ProtoMessage()
- func (m *PeerList) Reset()
- func (m *PeerList) String() string
- func (m *PeerList) XXX_DiscardUnknown()
- func (m *PeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerList) XXX_Merge(src proto.Message)
- func (m *PeerList) XXX_Size() int
- func (m *PeerList) XXX_Unmarshal(b []byte) error
- type PeersInfo
- func (*PeersInfo) Descriptor() ([]byte, []int)
- func (m *PeersInfo) GetIp() string
- func (m *PeersInfo) GetName() string
- func (m *PeersInfo) GetP2Pversion() int32
- func (m *PeersInfo) GetPort() int32
- func (m *PeersInfo) GetSoftversion() string
- func (*PeersInfo) ProtoMessage()
- func (m *PeersInfo) Reset()
- func (m *PeersInfo) String() string
- func (m *PeersInfo) XXX_DiscardUnknown()
- func (m *PeersInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeersInfo) XXX_Merge(src proto.Message)
- func (m *PeersInfo) XXX_Size() int
- func (m *PeersInfo) XXX_Unmarshal(b []byte) error
- type PeersReply
- func (*PeersReply) Descriptor() ([]byte, []int)
- func (m *PeersReply) GetPeers() []*PeersInfo
- func (*PeersReply) ProtoMessage()
- func (m *PeersReply) Reset()
- func (m *PeersReply) String() string
- func (m *PeersReply) XXX_DiscardUnknown()
- func (m *PeersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeersReply) XXX_Merge(src proto.Message)
- func (m *PeersReply) XXX_Size() int
- func (m *PeersReply) XXX_Unmarshal(b []byte) error
- type Pprof
- type PrivacyKV
- func (*PrivacyKV) Descriptor() ([]byte, []int)
- func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken
- func (*PrivacyKV) ProtoMessage()
- func (m *PrivacyKV) Reset()
- func (m *PrivacyKV) String() string
- func (m *PrivacyKV) XXX_DiscardUnknown()
- func (m *PrivacyKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrivacyKV) XXX_Merge(src proto.Message)
- func (m *PrivacyKV) XXX_Size() int
- func (m *PrivacyKV) XXX_Unmarshal(b []byte) error
- type PrivacyKVToken
- func (*PrivacyKVToken) Descriptor() ([]byte, []int)
- func (m *PrivacyKVToken) GetKV() []*KeyValue
- func (m *PrivacyKVToken) GetToken() string
- func (m *PrivacyKVToken) GetTxIndex() int32
- func (m *PrivacyKVToken) GetTxhash() []byte
- func (*PrivacyKVToken) ProtoMessage()
- func (m *PrivacyKVToken) Reset()
- func (m *PrivacyKVToken) String() string
- func (m *PrivacyKVToken) XXX_DiscardUnknown()
- func (m *PrivacyKVToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrivacyKVToken) XXX_Merge(src proto.Message)
- func (m *PrivacyKVToken) XXX_Size() int
- func (m *PrivacyKVToken) XXX_Unmarshal(b []byte) error
- type PruneData
- func (*PruneData) Descriptor() ([]byte, []int)
- func (m *PruneData) GetHashs() [][]byte
- func (*PruneData) ProtoMessage()
- func (m *PruneData) Reset()
- func (m *PruneData) String() string
- func (m *PruneData) XXX_DiscardUnknown()
- func (m *PruneData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PruneData) XXX_Merge(src proto.Message)
- func (m *PruneData) XXX_Size() int
- func (m *PruneData) XXX_Unmarshal(b []byte) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetExecer() []byte
- func (m *Query) GetFuncName() string
- func (m *Query) GetPayload() []byte
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- 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)
- func (m *ReWriteRawTx) GetExpire() string
- func (m *ReWriteRawTx) GetFee() int64
- func (m *ReWriteRawTx) GetTo() string
- func (m *ReWriteRawTx) GetTx() string
- func (*ReWriteRawTx) ProtoMessage()
- func (m *ReWriteRawTx) Reset()
- func (m *ReWriteRawTx) String() string
- func (m *ReWriteRawTx) XXX_DiscardUnknown()
- func (m *ReWriteRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReWriteRawTx) XXX_Merge(src proto.Message)
- func (m *ReWriteRawTx) XXX_Size() int
- func (m *ReWriteRawTx) XXX_Unmarshal(b []byte) error
- type Receipt
- func (*Receipt) Descriptor() ([]byte, []int)
- func (m *Receipt) GetKV() []*KeyValue
- func (m *Receipt) GetLogs() []*ReceiptLog
- func (m *Receipt) GetTy() int32
- func (*Receipt) ProtoMessage()
- func (m *Receipt) Reset()
- func (m *Receipt) String() string
- func (m *Receipt) XXX_DiscardUnknown()
- func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Receipt) XXX_Merge(src proto.Message)
- func (m *Receipt) XXX_Size() int
- func (m *Receipt) XXX_Unmarshal(b []byte) error
- type ReceiptAccountTransfer
- func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int)
- func (m *ReceiptAccountTransfer) GetCurrent() *Account
- func (m *ReceiptAccountTransfer) GetPrev() *Account
- func (*ReceiptAccountTransfer) ProtoMessage()
- func (m *ReceiptAccountTransfer) Reset()
- func (m *ReceiptAccountTransfer) String() string
- func (m *ReceiptAccountTransfer) XXX_DiscardUnknown()
- func (m *ReceiptAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptAccountTransfer) XXX_Merge(src proto.Message)
- func (m *ReceiptAccountTransfer) XXX_Size() int
- func (m *ReceiptAccountTransfer) XXX_Unmarshal(b []byte) error
- type ReceiptCheckTxList
- func (*ReceiptCheckTxList) Descriptor() ([]byte, []int)
- func (m *ReceiptCheckTxList) GetErrs() []string
- func (*ReceiptCheckTxList) ProtoMessage()
- func (m *ReceiptCheckTxList) Reset()
- func (m *ReceiptCheckTxList) String() string
- func (m *ReceiptCheckTxList) XXX_DiscardUnknown()
- func (m *ReceiptCheckTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptCheckTxList) XXX_Merge(src proto.Message)
- func (m *ReceiptCheckTxList) XXX_Size() int
- func (m *ReceiptCheckTxList) XXX_Unmarshal(b []byte) error
- type ReceiptConfig
- func (*ReceiptConfig) Descriptor() ([]byte, []int)
- func (m *ReceiptConfig) GetCurrent() *ConfigItem
- func (m *ReceiptConfig) GetPrev() *ConfigItem
- func (*ReceiptConfig) ProtoMessage()
- func (m *ReceiptConfig) Reset()
- func (m *ReceiptConfig) String() string
- func (m *ReceiptConfig) XXX_DiscardUnknown()
- func (m *ReceiptConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptConfig) XXX_Merge(src proto.Message)
- func (m *ReceiptConfig) XXX_Size() int
- func (m *ReceiptConfig) XXX_Unmarshal(b []byte) error
- type ReceiptData
- func (r *ReceiptData) DecodeReceiptLog(execer []byte) (*ReceiptDataResult, error)
- func (*ReceiptData) Descriptor() ([]byte, []int)
- func (m *ReceiptData) GetLogs() []*ReceiptLog
- func (m *ReceiptData) GetTy() int32
- func (r *ReceiptData) OutputReceiptDetails(execer []byte, logger log.Logger)
- func (*ReceiptData) ProtoMessage()
- func (m *ReceiptData) Reset()
- func (m *ReceiptData) String() string
- func (m *ReceiptData) XXX_DiscardUnknown()
- func (m *ReceiptData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptData) XXX_Merge(src proto.Message)
- func (m *ReceiptData) XXX_Size() int
- func (m *ReceiptData) XXX_Unmarshal(b []byte) error
- type ReceiptDataResult
- type ReceiptExecAccountTransfer
- func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int)
- func (m *ReceiptExecAccountTransfer) GetCurrent() *Account
- func (m *ReceiptExecAccountTransfer) GetExecAddr() string
- func (m *ReceiptExecAccountTransfer) GetPrev() *Account
- func (*ReceiptExecAccountTransfer) ProtoMessage()
- func (m *ReceiptExecAccountTransfer) Reset()
- func (m *ReceiptExecAccountTransfer) String() string
- func (m *ReceiptExecAccountTransfer) XXX_DiscardUnknown()
- func (m *ReceiptExecAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptExecAccountTransfer) XXX_Merge(src proto.Message)
- func (m *ReceiptExecAccountTransfer) XXX_Size() int
- func (m *ReceiptExecAccountTransfer) XXX_Unmarshal(b []byte) error
- type ReceiptLog
- func (*ReceiptLog) Descriptor() ([]byte, []int)
- func (m *ReceiptLog) GetLog() []byte
- func (m *ReceiptLog) GetTy() int32
- func (*ReceiptLog) ProtoMessage()
- func (m *ReceiptLog) Reset()
- func (m *ReceiptLog) String() string
- func (m *ReceiptLog) XXX_DiscardUnknown()
- func (m *ReceiptLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptLog) XXX_Merge(src proto.Message)
- func (m *ReceiptLog) XXX_Size() int
- func (m *ReceiptLog) XXX_Unmarshal(b []byte) error
- type ReceiptLogResult
- type Receipts
- func (*Receipts) Descriptor() ([]byte, []int)
- func (m *Receipts) GetReceipts() []*Receipt
- func (*Receipts) ProtoMessage()
- func (m *Receipts) Reset()
- func (m *Receipts) String() string
- func (m *Receipts) XXX_DiscardUnknown()
- func (m *Receipts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Receipts) XXX_Merge(src proto.Message)
- func (m *Receipts) XXX_Size() int
- func (m *Receipts) XXX_Unmarshal(b []byte) error
- type ReceiptsAndPrivacyKV
- func (*ReceiptsAndPrivacyKV) Descriptor() ([]byte, []int)
- func (m *ReceiptsAndPrivacyKV) GetPrivacyKV() *PrivacyKV
- func (m *ReceiptsAndPrivacyKV) GetReceipts() *Receipts
- func (*ReceiptsAndPrivacyKV) ProtoMessage()
- func (m *ReceiptsAndPrivacyKV) Reset()
- func (m *ReceiptsAndPrivacyKV) String() string
- func (m *ReceiptsAndPrivacyKV) XXX_DiscardUnknown()
- func (m *ReceiptsAndPrivacyKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptsAndPrivacyKV) XXX_Merge(src proto.Message)
- func (m *ReceiptsAndPrivacyKV) XXX_Size() int
- func (m *ReceiptsAndPrivacyKV) XXX_Unmarshal(b []byte) error
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetIsOk() bool
- func (m *Reply) GetMsg() []byte
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type ReplyBlockHeight
- func (*ReplyBlockHeight) Descriptor() ([]byte, []int)
- func (m *ReplyBlockHeight) GetHeight() int64
- func (*ReplyBlockHeight) ProtoMessage()
- func (m *ReplyBlockHeight) Reset()
- func (m *ReplyBlockHeight) String() string
- func (m *ReplyBlockHeight) XXX_DiscardUnknown()
- func (m *ReplyBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyBlockHeight) XXX_Merge(src proto.Message)
- func (m *ReplyBlockHeight) XXX_Size() int
- func (m *ReplyBlockHeight) XXX_Unmarshal(b []byte) error
- type ReplyConfig
- func (*ReplyConfig) Descriptor() ([]byte, []int)
- func (m *ReplyConfig) GetKey() string
- func (m *ReplyConfig) GetValue() string
- func (*ReplyConfig) ProtoMessage()
- func (m *ReplyConfig) Reset()
- func (m *ReplyConfig) String() string
- func (m *ReplyConfig) XXX_DiscardUnknown()
- func (m *ReplyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyConfig) XXX_Merge(src proto.Message)
- func (m *ReplyConfig) XXX_Size() int
- func (m *ReplyConfig) XXX_Unmarshal(b []byte) error
- type ReplyGetExecBalance
- func (t *ReplyGetExecBalance) AddItem(execAddr, value []byte)
- func (*ReplyGetExecBalance) Descriptor() ([]byte, []int)
- func (m *ReplyGetExecBalance) GetAmount() int64
- func (m *ReplyGetExecBalance) GetAmountActive() int64
- func (m *ReplyGetExecBalance) GetAmountFrozen() int64
- func (m *ReplyGetExecBalance) GetItems() []*ExecBalanceItem
- func (m *ReplyGetExecBalance) GetNextKey() []byte
- func (*ReplyGetExecBalance) ProtoMessage()
- func (m *ReplyGetExecBalance) Reset()
- func (m *ReplyGetExecBalance) String() string
- func (m *ReplyGetExecBalance) XXX_DiscardUnknown()
- func (m *ReplyGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyGetExecBalance) XXX_Merge(src proto.Message)
- func (m *ReplyGetExecBalance) XXX_Size() int
- func (m *ReplyGetExecBalance) XXX_Unmarshal(b []byte) error
- type ReplyGetTotalCoins
- func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int)
- func (m *ReplyGetTotalCoins) GetAmount() int64
- func (m *ReplyGetTotalCoins) GetCount() int64
- func (m *ReplyGetTotalCoins) GetNextKey() []byte
- func (m *ReplyGetTotalCoins) GetNum() int64
- func (t *ReplyGetTotalCoins) IterateRangeByStateHash(key, value []byte) bool
- func (*ReplyGetTotalCoins) ProtoMessage()
- func (m *ReplyGetTotalCoins) Reset()
- func (m *ReplyGetTotalCoins) String() string
- func (m *ReplyGetTotalCoins) XXX_DiscardUnknown()
- func (m *ReplyGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyGetTotalCoins) XXX_Merge(src proto.Message)
- func (m *ReplyGetTotalCoins) XXX_Size() int
- func (m *ReplyGetTotalCoins) XXX_Unmarshal(b []byte) error
- type ReplyHash
- func (*ReplyHash) Descriptor() ([]byte, []int)
- func (m *ReplyHash) GetHash() []byte
- func (*ReplyHash) ProtoMessage()
- func (m *ReplyHash) Reset()
- func (m *ReplyHash) String() string
- func (m *ReplyHash) XXX_DiscardUnknown()
- func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyHash) XXX_Merge(src proto.Message)
- func (m *ReplyHash) XXX_Size() int
- func (m *ReplyHash) XXX_Unmarshal(b []byte) error
- type ReplyHashes
- func (*ReplyHashes) Descriptor() ([]byte, []int)
- func (m *ReplyHashes) GetHashes() [][]byte
- func (*ReplyHashes) ProtoMessage()
- func (m *ReplyHashes) Reset()
- func (m *ReplyHashes) String() string
- func (m *ReplyHashes) XXX_DiscardUnknown()
- func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyHashes) XXX_Merge(src proto.Message)
- func (m *ReplyHashes) XXX_Size() int
- func (m *ReplyHashes) XXX_Unmarshal(b []byte) error
- type ReplySeed
- func (*ReplySeed) Descriptor() ([]byte, []int)
- func (m *ReplySeed) GetSeed() string
- func (*ReplySeed) ProtoMessage()
- func (m *ReplySeed) Reset()
- func (m *ReplySeed) String() string
- func (m *ReplySeed) XXX_DiscardUnknown()
- func (m *ReplySeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplySeed) XXX_Merge(src proto.Message)
- func (m *ReplySeed) XXX_Size() int
- func (m *ReplySeed) XXX_Unmarshal(b []byte) error
- type ReplySignRawTx
- func (*ReplySignRawTx) Descriptor() ([]byte, []int)
- func (m *ReplySignRawTx) GetTxHex() string
- func (*ReplySignRawTx) ProtoMessage()
- func (m *ReplySignRawTx) Reset()
- func (m *ReplySignRawTx) String() string
- func (m *ReplySignRawTx) XXX_DiscardUnknown()
- func (m *ReplySignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplySignRawTx) XXX_Merge(src proto.Message)
- func (m *ReplySignRawTx) XXX_Size() int
- func (m *ReplySignRawTx) XXX_Unmarshal(b []byte) error
- type ReplyString
- func (*ReplyString) Descriptor() ([]byte, []int)
- func (m *ReplyString) GetData() string
- func (*ReplyString) ProtoMessage()
- func (m *ReplyString) Reset()
- func (m *ReplyString) String() string
- func (m *ReplyString) XXX_DiscardUnknown()
- func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyString) XXX_Merge(src proto.Message)
- func (m *ReplyString) XXX_Size() int
- func (m *ReplyString) XXX_Unmarshal(b []byte) error
- type ReplyStrings
- func (*ReplyStrings) Descriptor() ([]byte, []int)
- func (m *ReplyStrings) GetDatas() []string
- func (*ReplyStrings) ProtoMessage()
- func (m *ReplyStrings) Reset()
- func (m *ReplyStrings) String() string
- func (m *ReplyStrings) XXX_DiscardUnknown()
- func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyStrings) XXX_Merge(src proto.Message)
- func (m *ReplyStrings) XXX_Size() int
- func (m *ReplyStrings) XXX_Unmarshal(b []byte) error
- type ReplyTxInfo
- func (*ReplyTxInfo) Descriptor() ([]byte, []int)
- func (m *ReplyTxInfo) GetAssets() []*Asset
- func (m *ReplyTxInfo) GetHash() []byte
- func (m *ReplyTxInfo) GetHeight() int64
- func (m *ReplyTxInfo) GetIndex() int64
- func (*ReplyTxInfo) ProtoMessage()
- func (m *ReplyTxInfo) Reset()
- func (m *ReplyTxInfo) String() string
- func (m *ReplyTxInfo) XXX_DiscardUnknown()
- func (m *ReplyTxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyTxInfo) XXX_Merge(src proto.Message)
- func (m *ReplyTxInfo) XXX_Size() int
- func (m *ReplyTxInfo) XXX_Unmarshal(b []byte) error
- type ReplyTxInfos
- func (*ReplyTxInfos) Descriptor() ([]byte, []int)
- func (m *ReplyTxInfos) GetTxInfos() []*ReplyTxInfo
- func (*ReplyTxInfos) ProtoMessage()
- func (m *ReplyTxInfos) Reset()
- func (m *ReplyTxInfos) String() string
- func (m *ReplyTxInfos) XXX_DiscardUnknown()
- func (m *ReplyTxInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyTxInfos) XXX_Merge(src proto.Message)
- func (m *ReplyTxInfos) XXX_Size() int
- func (m *ReplyTxInfos) XXX_Unmarshal(b []byte) error
- type ReplyTxList
- func (*ReplyTxList) Descriptor() ([]byte, []int)
- func (m *ReplyTxList) GetTxs() []*Transaction
- func (*ReplyTxList) ProtoMessage()
- func (m *ReplyTxList) Reset()
- func (m *ReplyTxList) String() string
- func (m *ReplyTxList) XXX_DiscardUnknown()
- func (m *ReplyTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyTxList) XXX_Merge(src proto.Message)
- func (m *ReplyTxList) XXX_Size() int
- func (m *ReplyTxList) XXX_Unmarshal(b []byte) error
- type ReportErrEvent
- func (*ReportErrEvent) Descriptor() ([]byte, []int)
- func (m *ReportErrEvent) GetError() string
- func (m *ReportErrEvent) GetFrommodule() string
- func (m *ReportErrEvent) GetTomodule() string
- func (*ReportErrEvent) ProtoMessage()
- func (m *ReportErrEvent) Reset()
- func (m *ReportErrEvent) String() string
- func (m *ReportErrEvent) XXX_DiscardUnknown()
- func (m *ReportErrEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportErrEvent) XXX_Merge(src proto.Message)
- func (m *ReportErrEvent) XXX_Size() int
- func (m *ReportErrEvent) XXX_Unmarshal(b []byte) error
- type ReqAccountList
- func (*ReqAccountList) Descriptor() ([]byte, []int)
- func (m *ReqAccountList) GetWithoutBalance() bool
- func (*ReqAccountList) ProtoMessage()
- func (m *ReqAccountList) Reset()
- func (m *ReqAccountList) String() string
- func (m *ReqAccountList) XXX_DiscardUnknown()
- func (m *ReqAccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqAccountList) XXX_Merge(src proto.Message)
- func (m *ReqAccountList) XXX_Size() int
- func (m *ReqAccountList) XXX_Unmarshal(b []byte) error
- type ReqAddr
- func (*ReqAddr) Descriptor() ([]byte, []int)
- func (m *ReqAddr) GetAddr() string
- func (m *ReqAddr) GetCount() int32
- func (m *ReqAddr) GetDirection() int32
- func (m *ReqAddr) GetFlag() int32
- func (m *ReqAddr) GetHeight() int64
- func (m *ReqAddr) GetIndex() int64
- func (*ReqAddr) ProtoMessage()
- func (m *ReqAddr) Reset()
- func (m *ReqAddr) String() string
- func (m *ReqAddr) XXX_DiscardUnknown()
- func (m *ReqAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqAddr) XXX_Merge(src proto.Message)
- func (m *ReqAddr) XXX_Size() int
- func (m *ReqAddr) XXX_Unmarshal(b []byte) error
- type ReqAddrs
- func (*ReqAddrs) Descriptor() ([]byte, []int)
- func (m *ReqAddrs) GetAddrs() []string
- func (*ReqAddrs) ProtoMessage()
- func (m *ReqAddrs) Reset()
- func (m *ReqAddrs) String() string
- func (m *ReqAddrs) XXX_DiscardUnknown()
- func (m *ReqAddrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqAddrs) XXX_Merge(src proto.Message)
- func (m *ReqAddrs) XXX_Size() int
- func (m *ReqAddrs) XXX_Unmarshal(b []byte) error
- type ReqAllExecBalance
- func (*ReqAllExecBalance) Descriptor() ([]byte, []int)
- func (m *ReqAllExecBalance) GetAddr() string
- func (m *ReqAllExecBalance) GetAssetExec() string
- func (m *ReqAllExecBalance) GetAssetSymbol() string
- func (m *ReqAllExecBalance) GetExecer() string
- func (m *ReqAllExecBalance) GetStateHash() string
- func (*ReqAllExecBalance) ProtoMessage()
- func (m *ReqAllExecBalance) Reset()
- func (m *ReqAllExecBalance) String() string
- func (m *ReqAllExecBalance) XXX_DiscardUnknown()
- func (m *ReqAllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqAllExecBalance) XXX_Merge(src proto.Message)
- func (m *ReqAllExecBalance) XXX_Size() int
- func (m *ReqAllExecBalance) XXX_Unmarshal(b []byte) error
- type ReqBalance
- func (*ReqBalance) Descriptor() ([]byte, []int)
- func (m *ReqBalance) GetAddresses() []string
- func (m *ReqBalance) GetAssetExec() string
- func (m *ReqBalance) GetAssetSymbol() string
- func (m *ReqBalance) GetExecer() string
- func (m *ReqBalance) GetStateHash() string
- func (*ReqBalance) ProtoMessage()
- func (m *ReqBalance) Reset()
- func (m *ReqBalance) String() string
- func (m *ReqBalance) XXX_DiscardUnknown()
- func (m *ReqBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqBalance) XXX_Merge(src proto.Message)
- func (m *ReqBalance) XXX_Size() int
- func (m *ReqBalance) XXX_Unmarshal(b []byte) error
- type ReqBlocks
- func (*ReqBlocks) Descriptor() ([]byte, []int)
- func (m *ReqBlocks) GetEnd() int64
- func (m *ReqBlocks) GetIsDetail() bool
- func (m *ReqBlocks) GetPid() []string
- func (m *ReqBlocks) GetStart() int64
- func (*ReqBlocks) ProtoMessage()
- func (m *ReqBlocks) Reset()
- func (m *ReqBlocks) String() string
- func (m *ReqBlocks) XXX_DiscardUnknown()
- func (m *ReqBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqBlocks) XXX_Merge(src proto.Message)
- func (m *ReqBlocks) XXX_Size() int
- func (m *ReqBlocks) XXX_Unmarshal(b []byte) error
- type ReqCreateTransaction
- func (*ReqCreateTransaction) Descriptor() ([]byte, []int)
- func (m *ReqCreateTransaction) GetAmount() int64
- func (m *ReqCreateTransaction) GetExpire() int64
- func (m *ReqCreateTransaction) GetFrom() string
- func (m *ReqCreateTransaction) GetMixcount() int32
- func (m *ReqCreateTransaction) GetNote() string
- func (m *ReqCreateTransaction) GetPubkeypair() string
- func (m *ReqCreateTransaction) GetTo() string
- func (m *ReqCreateTransaction) GetTokenname() string
- func (m *ReqCreateTransaction) GetType() int32
- func (*ReqCreateTransaction) ProtoMessage()
- func (m *ReqCreateTransaction) Reset()
- func (m *ReqCreateTransaction) String() string
- func (m *ReqCreateTransaction) XXX_DiscardUnknown()
- func (m *ReqCreateTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqCreateTransaction) XXX_Merge(src proto.Message)
- func (m *ReqCreateTransaction) XXX_Size() int
- func (m *ReqCreateTransaction) XXX_Unmarshal(b []byte) error
- type ReqDecodeRawTransaction
- func (*ReqDecodeRawTransaction) Descriptor() ([]byte, []int)
- func (m *ReqDecodeRawTransaction) GetTxHex() string
- func (*ReqDecodeRawTransaction) ProtoMessage()
- func (m *ReqDecodeRawTransaction) Reset()
- func (m *ReqDecodeRawTransaction) String() string
- func (m *ReqDecodeRawTransaction) XXX_DiscardUnknown()
- func (m *ReqDecodeRawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqDecodeRawTransaction) XXX_Merge(src proto.Message)
- func (m *ReqDecodeRawTransaction) XXX_Size() int
- func (m *ReqDecodeRawTransaction) XXX_Unmarshal(b []byte) error
- type ReqGetExecBalance
- func (*ReqGetExecBalance) Descriptor() ([]byte, []int)
- func (m *ReqGetExecBalance) GetAddr() []byte
- func (m *ReqGetExecBalance) GetCount() int64
- func (m *ReqGetExecBalance) GetExecAddr() []byte
- func (m *ReqGetExecBalance) GetExecer() string
- func (m *ReqGetExecBalance) GetNextKey() []byte
- func (m *ReqGetExecBalance) GetStateHash() []byte
- func (m *ReqGetExecBalance) GetSymbol() string
- func (*ReqGetExecBalance) ProtoMessage()
- func (m *ReqGetExecBalance) Reset()
- func (m *ReqGetExecBalance) String() string
- func (m *ReqGetExecBalance) XXX_DiscardUnknown()
- func (m *ReqGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqGetExecBalance) XXX_Merge(src proto.Message)
- func (m *ReqGetExecBalance) XXX_Size() int
- func (m *ReqGetExecBalance) XXX_Unmarshal(b []byte) error
- type ReqGetTotalCoins
- func (*ReqGetTotalCoins) Descriptor() ([]byte, []int)
- func (m *ReqGetTotalCoins) GetCount() int64
- func (m *ReqGetTotalCoins) GetExecer() string
- func (m *ReqGetTotalCoins) GetStartKey() []byte
- func (m *ReqGetTotalCoins) GetStateHash() []byte
- func (m *ReqGetTotalCoins) GetSymbol() string
- func (*ReqGetTotalCoins) ProtoMessage()
- func (m *ReqGetTotalCoins) Reset()
- func (m *ReqGetTotalCoins) String() string
- func (m *ReqGetTotalCoins) XXX_DiscardUnknown()
- func (m *ReqGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqGetTotalCoins) XXX_Merge(src proto.Message)
- func (m *ReqGetTotalCoins) XXX_Size() int
- func (m *ReqGetTotalCoins) XXX_Unmarshal(b []byte) error
- type ReqHash
- func (*ReqHash) Descriptor() ([]byte, []int)
- func (m *ReqHash) GetHash() []byte
- func (*ReqHash) ProtoMessage()
- func (m *ReqHash) Reset()
- func (m *ReqHash) String() string
- func (m *ReqHash) XXX_DiscardUnknown()
- func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqHash) XXX_Merge(src proto.Message)
- func (m *ReqHash) XXX_Size() int
- func (m *ReqHash) XXX_Unmarshal(b []byte) error
- type ReqHashes
- func (*ReqHashes) Descriptor() ([]byte, []int)
- func (m *ReqHashes) GetHashes() [][]byte
- func (*ReqHashes) ProtoMessage()
- func (m *ReqHashes) Reset()
- func (m *ReqHashes) String() string
- func (m *ReqHashes) XXX_DiscardUnknown()
- func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqHashes) XXX_Merge(src proto.Message)
- func (m *ReqHashes) XXX_Size() int
- func (m *ReqHashes) XXX_Unmarshal(b []byte) error
- type ReqInt
- func (*ReqInt) Descriptor() ([]byte, []int)
- func (m *ReqInt) GetHeight() int64
- func (*ReqInt) ProtoMessage()
- func (m *ReqInt) Reset()
- func (m *ReqInt) String() string
- func (m *ReqInt) XXX_DiscardUnknown()
- func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqInt) XXX_Merge(src proto.Message)
- func (m *ReqInt) XXX_Size() int
- func (m *ReqInt) XXX_Unmarshal(b []byte) error
- type ReqKey
- func (*ReqKey) Descriptor() ([]byte, []int)
- func (m *ReqKey) GetKey() []byte
- func (*ReqKey) ProtoMessage()
- func (m *ReqKey) Reset()
- func (m *ReqKey) String() string
- func (m *ReqKey) XXX_DiscardUnknown()
- func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqKey) XXX_Merge(src proto.Message)
- func (m *ReqKey) XXX_Size() int
- func (m *ReqKey) XXX_Unmarshal(b []byte) error
- type ReqModifyConfig
- func (*ReqModifyConfig) Descriptor() ([]byte, []int)
- func (m *ReqModifyConfig) GetKey() string
- func (m *ReqModifyConfig) GetModifier() string
- func (m *ReqModifyConfig) GetOp() string
- func (m *ReqModifyConfig) GetValue() string
- func (*ReqModifyConfig) ProtoMessage()
- func (m *ReqModifyConfig) Reset()
- func (m *ReqModifyConfig) String() string
- func (m *ReqModifyConfig) XXX_DiscardUnknown()
- func (m *ReqModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqModifyConfig) XXX_Merge(src proto.Message)
- func (m *ReqModifyConfig) XXX_Size() int
- func (m *ReqModifyConfig) XXX_Unmarshal(b []byte) error
- type ReqNewAccount
- func (*ReqNewAccount) Descriptor() ([]byte, []int)
- func (m *ReqNewAccount) GetLabel() string
- func (*ReqNewAccount) ProtoMessage()
- func (m *ReqNewAccount) Reset()
- func (m *ReqNewAccount) String() string
- func (m *ReqNewAccount) XXX_DiscardUnknown()
- func (m *ReqNewAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqNewAccount) XXX_Merge(src proto.Message)
- func (m *ReqNewAccount) XXX_Size() int
- func (m *ReqNewAccount) XXX_Unmarshal(b []byte) error
- type ReqNil
- func (*ReqNil) Descriptor() ([]byte, []int)
- func (*ReqNil) ProtoMessage()
- func (m *ReqNil) Reset()
- func (m *ReqNil) String() string
- func (m *ReqNil) XXX_DiscardUnknown()
- func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqNil) XXX_Merge(src proto.Message)
- func (m *ReqNil) XXX_Size() int
- func (m *ReqNil) XXX_Unmarshal(b []byte) error
- type ReqPrivacy
- func (*ReqPrivacy) Descriptor() ([]byte, []int)
- func (m *ReqPrivacy) GetCount() int32
- func (m *ReqPrivacy) GetDirection() int32
- func (m *ReqPrivacy) GetHeight() int64
- func (*ReqPrivacy) ProtoMessage()
- func (m *ReqPrivacy) Reset()
- func (m *ReqPrivacy) String() string
- func (m *ReqPrivacy) XXX_DiscardUnknown()
- func (m *ReqPrivacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqPrivacy) XXX_Merge(src proto.Message)
- func (m *ReqPrivacy) XXX_Size() int
- func (m *ReqPrivacy) XXX_Unmarshal(b []byte) error
- type ReqRandHash
- func (*ReqRandHash) Descriptor() ([]byte, []int)
- func (m *ReqRandHash) GetBlockNum() int64
- func (m *ReqRandHash) GetExecName() string
- func (m *ReqRandHash) GetHash() []byte
- func (m *ReqRandHash) GetHeight() int64
- func (*ReqRandHash) ProtoMessage()
- func (m *ReqRandHash) Reset()
- func (m *ReqRandHash) String() string
- func (m *ReqRandHash) XXX_DiscardUnknown()
- func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqRandHash) XXX_Merge(src proto.Message)
- func (m *ReqRandHash) XXX_Size() int
- func (m *ReqRandHash) XXX_Unmarshal(b []byte) error
- type ReqSignRawTx
- func (*ReqSignRawTx) Descriptor() ([]byte, []int)
- func (m *ReqSignRawTx) GetAddr() string
- func (m *ReqSignRawTx) GetExpire() string
- func (m *ReqSignRawTx) GetFee() int64
- func (m *ReqSignRawTx) GetIndex() int32
- func (m *ReqSignRawTx) GetNewToAddr() string
- func (m *ReqSignRawTx) GetPrivkey() string
- func (m *ReqSignRawTx) GetToken() string
- func (m *ReqSignRawTx) GetTxHex() string
- func (*ReqSignRawTx) ProtoMessage()
- func (m *ReqSignRawTx) Reset()
- func (m *ReqSignRawTx) String() string
- func (m *ReqSignRawTx) XXX_DiscardUnknown()
- func (m *ReqSignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqSignRawTx) XXX_Merge(src proto.Message)
- func (m *ReqSignRawTx) XXX_Size() int
- func (m *ReqSignRawTx) XXX_Unmarshal(b []byte) error
- type ReqString
- func (*ReqString) Descriptor() ([]byte, []int)
- func (m *ReqString) GetData() string
- func (*ReqString) ProtoMessage()
- func (m *ReqString) Reset()
- func (m *ReqString) String() string
- func (m *ReqString) XXX_DiscardUnknown()
- func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqString) XXX_Merge(src proto.Message)
- func (m *ReqString) XXX_Size() int
- func (m *ReqString) XXX_Unmarshal(b []byte) error
- type ReqTokenFinishCreate
- func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int)
- func (m *ReqTokenFinishCreate) GetFinisherAddr() string
- func (m *ReqTokenFinishCreate) GetOwnerAddr() string
- func (m *ReqTokenFinishCreate) GetSymbol() string
- func (*ReqTokenFinishCreate) ProtoMessage()
- func (m *ReqTokenFinishCreate) Reset()
- func (m *ReqTokenFinishCreate) String() string
- func (m *ReqTokenFinishCreate) XXX_DiscardUnknown()
- func (m *ReqTokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenFinishCreate) XXX_Merge(src proto.Message)
- func (m *ReqTokenFinishCreate) XXX_Size() int
- func (m *ReqTokenFinishCreate) XXX_Unmarshal(b []byte) error
- type ReqTokenPreCreate
- func (*ReqTokenPreCreate) Descriptor() ([]byte, []int)
- func (m *ReqTokenPreCreate) GetCreatorAddr() string
- func (m *ReqTokenPreCreate) GetIntroduction() string
- func (m *ReqTokenPreCreate) GetName() string
- func (m *ReqTokenPreCreate) GetOwnerAddr() string
- func (m *ReqTokenPreCreate) GetPrice() int64
- func (m *ReqTokenPreCreate) GetSymbol() string
- func (m *ReqTokenPreCreate) GetTotal() int64
- func (*ReqTokenPreCreate) ProtoMessage()
- func (m *ReqTokenPreCreate) Reset()
- func (m *ReqTokenPreCreate) String() string
- func (m *ReqTokenPreCreate) XXX_DiscardUnknown()
- func (m *ReqTokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenPreCreate) XXX_Merge(src proto.Message)
- func (m *ReqTokenPreCreate) XXX_Size() int
- func (m *ReqTokenPreCreate) XXX_Unmarshal(b []byte) error
- type ReqTokenRevokeCreate
- func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int)
- func (m *ReqTokenRevokeCreate) GetOwnerAddr() string
- func (m *ReqTokenRevokeCreate) GetRevokerAddr() string
- func (m *ReqTokenRevokeCreate) GetSymbol() string
- func (*ReqTokenRevokeCreate) ProtoMessage()
- func (m *ReqTokenRevokeCreate) Reset()
- func (m *ReqTokenRevokeCreate) String() string
- func (m *ReqTokenRevokeCreate) XXX_DiscardUnknown()
- func (m *ReqTokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTokenRevokeCreate) XXX_Merge(src proto.Message)
- func (m *ReqTokenRevokeCreate) XXX_Size() int
- func (m *ReqTokenRevokeCreate) XXX_Unmarshal(b []byte) error
- type ReqTxList
- func (*ReqTxList) Descriptor() ([]byte, []int)
- func (m *ReqTxList) GetCount() int64
- func (*ReqTxList) ProtoMessage()
- func (m *ReqTxList) Reset()
- func (m *ReqTxList) String() string
- func (m *ReqTxList) XXX_DiscardUnknown()
- func (m *ReqTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqTxList) XXX_Merge(src proto.Message)
- func (m *ReqTxList) XXX_Size() int
- func (m *ReqTxList) XXX_Unmarshal(b []byte) error
- type ReqWalletImportPrivkey
- func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int)
- func (m *ReqWalletImportPrivkey) GetLabel() string
- func (m *ReqWalletImportPrivkey) GetPrivkey() string
- func (*ReqWalletImportPrivkey) ProtoMessage()
- func (m *ReqWalletImportPrivkey) Reset()
- func (m *ReqWalletImportPrivkey) String() string
- func (m *ReqWalletImportPrivkey) XXX_DiscardUnknown()
- func (m *ReqWalletImportPrivkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletImportPrivkey) XXX_Merge(src proto.Message)
- func (m *ReqWalletImportPrivkey) XXX_Size() int
- func (m *ReqWalletImportPrivkey) XXX_Unmarshal(b []byte) error
- type ReqWalletMergeBalance
- func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int)
- func (m *ReqWalletMergeBalance) GetTo() string
- func (*ReqWalletMergeBalance) ProtoMessage()
- func (m *ReqWalletMergeBalance) Reset()
- func (m *ReqWalletMergeBalance) String() string
- func (m *ReqWalletMergeBalance) XXX_DiscardUnknown()
- func (m *ReqWalletMergeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletMergeBalance) XXX_Merge(src proto.Message)
- func (m *ReqWalletMergeBalance) XXX_Size() int
- func (m *ReqWalletMergeBalance) XXX_Unmarshal(b []byte) error
- type ReqWalletSendToAddress
- func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int)
- func (m *ReqWalletSendToAddress) GetAmount() int64
- func (m *ReqWalletSendToAddress) GetFrom() string
- func (m *ReqWalletSendToAddress) GetIsToken() bool
- func (m *ReqWalletSendToAddress) GetNote() string
- func (m *ReqWalletSendToAddress) GetTo() string
- func (m *ReqWalletSendToAddress) GetTokenSymbol() string
- func (*ReqWalletSendToAddress) ProtoMessage()
- func (m *ReqWalletSendToAddress) Reset()
- func (m *ReqWalletSendToAddress) String() string
- func (m *ReqWalletSendToAddress) XXX_DiscardUnknown()
- func (m *ReqWalletSendToAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletSendToAddress) XXX_Merge(src proto.Message)
- func (m *ReqWalletSendToAddress) XXX_Size() int
- func (m *ReqWalletSendToAddress) XXX_Unmarshal(b []byte) error
- type ReqWalletSetFee
- func (*ReqWalletSetFee) Descriptor() ([]byte, []int)
- func (m *ReqWalletSetFee) GetAmount() int64
- func (*ReqWalletSetFee) ProtoMessage()
- func (m *ReqWalletSetFee) Reset()
- func (m *ReqWalletSetFee) String() string
- func (m *ReqWalletSetFee) XXX_DiscardUnknown()
- func (m *ReqWalletSetFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletSetFee) XXX_Merge(src proto.Message)
- func (m *ReqWalletSetFee) XXX_Size() int
- func (m *ReqWalletSetFee) XXX_Unmarshal(b []byte) error
- type ReqWalletSetLabel
- func (*ReqWalletSetLabel) Descriptor() ([]byte, []int)
- func (m *ReqWalletSetLabel) GetAddr() string
- func (m *ReqWalletSetLabel) GetLabel() string
- func (*ReqWalletSetLabel) ProtoMessage()
- func (m *ReqWalletSetLabel) Reset()
- func (m *ReqWalletSetLabel) String() string
- func (m *ReqWalletSetLabel) XXX_DiscardUnknown()
- func (m *ReqWalletSetLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletSetLabel) XXX_Merge(src proto.Message)
- func (m *ReqWalletSetLabel) XXX_Size() int
- func (m *ReqWalletSetLabel) XXX_Unmarshal(b []byte) error
- type ReqWalletSetPasswd
- func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int)
- func (m *ReqWalletSetPasswd) GetNewPass() string
- func (m *ReqWalletSetPasswd) GetOldPass() string
- func (*ReqWalletSetPasswd) ProtoMessage()
- func (m *ReqWalletSetPasswd) Reset()
- func (m *ReqWalletSetPasswd) String() string
- func (m *ReqWalletSetPasswd) XXX_DiscardUnknown()
- func (m *ReqWalletSetPasswd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletSetPasswd) XXX_Merge(src proto.Message)
- func (m *ReqWalletSetPasswd) XXX_Size() int
- func (m *ReqWalletSetPasswd) XXX_Unmarshal(b []byte) error
- type ReqWalletTransactionList
- func (*ReqWalletTransactionList) Descriptor() ([]byte, []int)
- func (m *ReqWalletTransactionList) GetCount() int32
- func (m *ReqWalletTransactionList) GetDirection() int32
- func (m *ReqWalletTransactionList) GetFromTx() []byte
- func (*ReqWalletTransactionList) ProtoMessage()
- func (m *ReqWalletTransactionList) Reset()
- func (m *ReqWalletTransactionList) String() string
- func (m *ReqWalletTransactionList) XXX_DiscardUnknown()
- func (m *ReqWalletTransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqWalletTransactionList) XXX_Merge(src proto.Message)
- func (m *ReqWalletTransactionList) XXX_Size() int
- func (m *ReqWalletTransactionList) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetAck() *RequestAck
- func (m *Request) GetCheckpoint() *RequestCheckpoint
- func (m *Request) GetClient() *RequestClient
- func (m *Request) GetCommit() *RequestCommit
- func (m *Request) GetNewview() *RequestNewView
- func (m *Request) GetPrepare() *RequestPrepare
- func (m *Request) GetPreprepare() *RequestPrePrepare
- func (m *Request) GetValue() isRequest_Value
- func (m *Request) GetViewchange() *RequestViewChange
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type RequestAck
- func (*RequestAck) Descriptor() ([]byte, []int)
- func (m *RequestAck) GetDigest() []byte
- func (m *RequestAck) GetReplica() uint32
- func (m *RequestAck) GetView() uint32
- func (m *RequestAck) GetViewchanger() uint32
- func (*RequestAck) ProtoMessage()
- func (m *RequestAck) Reset()
- func (m *RequestAck) String() string
- func (m *RequestAck) XXX_DiscardUnknown()
- func (m *RequestAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestAck) XXX_Merge(src proto.Message)
- func (m *RequestAck) XXX_Size() int
- func (m *RequestAck) XXX_Unmarshal(b []byte) error
- type RequestCheckpoint
- func (*RequestCheckpoint) Descriptor() ([]byte, []int)
- func (m *RequestCheckpoint) GetDigest() []byte
- func (m *RequestCheckpoint) GetReplica() uint32
- func (m *RequestCheckpoint) GetSequence() uint32
- func (*RequestCheckpoint) ProtoMessage()
- func (m *RequestCheckpoint) Reset()
- func (m *RequestCheckpoint) String() string
- func (m *RequestCheckpoint) XXX_DiscardUnknown()
- func (m *RequestCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestCheckpoint) XXX_Merge(src proto.Message)
- func (m *RequestCheckpoint) XXX_Size() int
- func (m *RequestCheckpoint) XXX_Unmarshal(b []byte) error
- type RequestClient
- func (*RequestClient) Descriptor() ([]byte, []int)
- func (m *RequestClient) GetClient() string
- func (m *RequestClient) GetOp() *Operation
- func (m *RequestClient) GetTimestamp() string
- func (*RequestClient) ProtoMessage()
- func (m *RequestClient) Reset()
- func (m *RequestClient) String() string
- func (m *RequestClient) XXX_DiscardUnknown()
- func (m *RequestClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestClient) XXX_Merge(src proto.Message)
- func (m *RequestClient) XXX_Size() int
- func (m *RequestClient) XXX_Unmarshal(b []byte) error
- type RequestCommit
- func (*RequestCommit) Descriptor() ([]byte, []int)
- func (m *RequestCommit) GetReplica() uint32
- func (m *RequestCommit) GetSequence() uint32
- func (m *RequestCommit) GetView() uint32
- func (*RequestCommit) ProtoMessage()
- func (m *RequestCommit) Reset()
- func (m *RequestCommit) String() string
- func (m *RequestCommit) XXX_DiscardUnknown()
- func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestCommit) XXX_Merge(src proto.Message)
- func (m *RequestCommit) XXX_Size() int
- func (m *RequestCommit) XXX_Unmarshal(b []byte) error
- type RequestNewView
- func (*RequestNewView) Descriptor() ([]byte, []int)
- func (m *RequestNewView) GetReplica() uint32
- func (m *RequestNewView) GetSummaries() []*Summary
- func (m *RequestNewView) GetView() uint32
- func (m *RequestNewView) GetViewchanges() []*ViewChange
- func (*RequestNewView) ProtoMessage()
- func (m *RequestNewView) Reset()
- func (m *RequestNewView) String() string
- func (m *RequestNewView) XXX_DiscardUnknown()
- func (m *RequestNewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestNewView) XXX_Merge(src proto.Message)
- func (m *RequestNewView) XXX_Size() int
- func (m *RequestNewView) XXX_Unmarshal(b []byte) error
- type RequestPrePrepare
- func (*RequestPrePrepare) Descriptor() ([]byte, []int)
- func (m *RequestPrePrepare) GetDigest() []byte
- func (m *RequestPrePrepare) GetReplica() uint32
- func (m *RequestPrePrepare) GetSequence() uint32
- func (m *RequestPrePrepare) GetView() uint32
- func (*RequestPrePrepare) ProtoMessage()
- func (m *RequestPrePrepare) Reset()
- func (m *RequestPrePrepare) String() string
- func (m *RequestPrePrepare) XXX_DiscardUnknown()
- func (m *RequestPrePrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestPrePrepare) XXX_Merge(src proto.Message)
- func (m *RequestPrePrepare) XXX_Size() int
- func (m *RequestPrePrepare) XXX_Unmarshal(b []byte) error
- type RequestPrepare
- func (*RequestPrepare) Descriptor() ([]byte, []int)
- func (m *RequestPrepare) GetDigest() []byte
- func (m *RequestPrepare) GetReplica() uint32
- func (m *RequestPrepare) GetSequence() uint32
- func (m *RequestPrepare) GetView() uint32
- func (*RequestPrepare) ProtoMessage()
- func (m *RequestPrepare) Reset()
- func (m *RequestPrepare) String() string
- func (m *RequestPrepare) XXX_DiscardUnknown()
- func (m *RequestPrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestPrepare) XXX_Merge(src proto.Message)
- func (m *RequestPrepare) XXX_Size() int
- func (m *RequestPrepare) XXX_Unmarshal(b []byte) error
- type RequestViewChange
- func (*RequestViewChange) Descriptor() ([]byte, []int)
- func (m *RequestViewChange) GetCheckpoints() []*Checkpoint
- func (m *RequestViewChange) GetPrepreps() []*Entry
- func (m *RequestViewChange) GetPreps() []*Entry
- func (m *RequestViewChange) GetReplica() uint32
- func (m *RequestViewChange) GetSequence() uint32
- func (m *RequestViewChange) GetView() uint32
- func (*RequestViewChange) ProtoMessage()
- func (m *RequestViewChange) Reset()
- func (m *RequestViewChange) String() string
- func (m *RequestViewChange) XXX_DiscardUnknown()
- func (m *RequestViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestViewChange) XXX_Merge(src proto.Message)
- func (m *RequestViewChange) XXX_Size() int
- func (m *RequestViewChange) XXX_Unmarshal(b []byte) error
- 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
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetValue() *Block
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) String() string
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type RingSignature
- func (*RingSignature) Descriptor() ([]byte, []int)
- func (m *RingSignature) GetItems() []*RingSignatureItem
- func (*RingSignature) ProtoMessage()
- func (m *RingSignature) Reset()
- func (m *RingSignature) String() string
- func (m *RingSignature) XXX_DiscardUnknown()
- func (m *RingSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RingSignature) XXX_Merge(src proto.Message)
- func (m *RingSignature) XXX_Size() int
- func (m *RingSignature) XXX_Unmarshal(b []byte) error
- type RingSignatureItem
- func (*RingSignatureItem) Descriptor() ([]byte, []int)
- func (m *RingSignatureItem) GetPubkey() [][]byte
- func (m *RingSignatureItem) GetSignature() [][]byte
- func (*RingSignatureItem) ProtoMessage()
- func (m *RingSignatureItem) Reset()
- func (m *RingSignatureItem) String() string
- func (m *RingSignatureItem) XXX_DiscardUnknown()
- func (m *RingSignatureItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RingSignatureItem) XXX_Merge(src proto.Message)
- func (m *RingSignatureItem) XXX_Size() int
- func (m *RingSignatureItem) XXX_Unmarshal(b []byte) error
- type SaveSeedByPw
- func (*SaveSeedByPw) Descriptor() ([]byte, []int)
- func (m *SaveSeedByPw) GetPasswd() string
- func (m *SaveSeedByPw) GetSeed() string
- func (*SaveSeedByPw) ProtoMessage()
- func (m *SaveSeedByPw) Reset()
- func (m *SaveSeedByPw) String() string
- func (m *SaveSeedByPw) XXX_DiscardUnknown()
- func (m *SaveSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SaveSeedByPw) XXX_Merge(src proto.Message)
- func (m *SaveSeedByPw) XXX_Size() int
- func (m *SaveSeedByPw) XXX_Unmarshal(b []byte) error
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetPubkey() []byte
- func (m *Signature) GetSignature() []byte
- func (m *Signature) GetTy() int32
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) String() string
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
- type SignedTx
- func (*SignedTx) Descriptor() ([]byte, []int)
- func (m *SignedTx) GetPubkey() []byte
- func (m *SignedTx) GetSign() []byte
- func (m *SignedTx) GetTy() int32
- func (m *SignedTx) GetUnsign() []byte
- func (*SignedTx) ProtoMessage()
- func (m *SignedTx) Reset()
- func (m *SignedTx) String() string
- func (m *SignedTx) XXX_DiscardUnknown()
- func (m *SignedTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedTx) XXX_Merge(src proto.Message)
- func (m *SignedTx) XXX_Size() int
- func (m *SignedTx) XXX_Unmarshal(b []byte) error
- type Store
- type StoreDel
- func (*StoreDel) Descriptor() ([]byte, []int)
- func (m *StoreDel) GetHeight() int64
- func (m *StoreDel) GetStateHash() []byte
- func (*StoreDel) ProtoMessage()
- func (m *StoreDel) Reset()
- func (m *StoreDel) String() string
- func (m *StoreDel) XXX_DiscardUnknown()
- func (m *StoreDel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreDel) XXX_Merge(src proto.Message)
- func (m *StoreDel) XXX_Size() int
- func (m *StoreDel) XXX_Unmarshal(b []byte) error
- type StoreGet
- func (*StoreGet) Descriptor() ([]byte, []int)
- func (m *StoreGet) GetKeys() [][]byte
- func (m *StoreGet) GetStateHash() []byte
- func (*StoreGet) ProtoMessage()
- func (m *StoreGet) Reset()
- func (m *StoreGet) String() string
- func (m *StoreGet) XXX_DiscardUnknown()
- func (m *StoreGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreGet) XXX_Merge(src proto.Message)
- func (m *StoreGet) XXX_Size() int
- func (m *StoreGet) XXX_Unmarshal(b []byte) error
- type StoreList
- func (*StoreList) Descriptor() ([]byte, []int)
- func (m *StoreList) GetCount() int64
- func (m *StoreList) GetEnd() []byte
- func (m *StoreList) GetMode() int64
- func (m *StoreList) GetStart() []byte
- func (m *StoreList) GetStateHash() []byte
- func (m *StoreList) GetSuffix() []byte
- func (*StoreList) ProtoMessage()
- func (m *StoreList) Reset()
- func (m *StoreList) String() string
- func (m *StoreList) XXX_DiscardUnknown()
- func (m *StoreList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreList) XXX_Merge(src proto.Message)
- func (m *StoreList) XXX_Size() int
- func (m *StoreList) XXX_Unmarshal(b []byte) error
- type StoreListReply
- func (*StoreListReply) Descriptor() ([]byte, []int)
- func (m *StoreListReply) GetCount() int64
- func (m *StoreListReply) GetEnd() []byte
- func (m *StoreListReply) GetKeys() [][]byte
- func (m *StoreListReply) GetMode() int64
- func (m *StoreListReply) GetNextKey() []byte
- func (m *StoreListReply) GetNum() int64
- func (m *StoreListReply) GetStart() []byte
- func (m *StoreListReply) GetSuffix() []byte
- func (m *StoreListReply) GetValues() [][]byte
- func (*StoreListReply) ProtoMessage()
- func (m *StoreListReply) Reset()
- func (m *StoreListReply) String() string
- func (m *StoreListReply) XXX_DiscardUnknown()
- func (m *StoreListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreListReply) XXX_Merge(src proto.Message)
- func (m *StoreListReply) XXX_Size() int
- func (m *StoreListReply) XXX_Unmarshal(b []byte) error
- type StoreNode
- func (*StoreNode) Descriptor() ([]byte, []int)
- func (m *StoreNode) GetHeight() int32
- func (m *StoreNode) GetKey() []byte
- func (m *StoreNode) GetLeftHash() []byte
- func (m *StoreNode) GetRightHash() []byte
- func (m *StoreNode) GetSize() int32
- func (m *StoreNode) GetValue() []byte
- func (*StoreNode) ProtoMessage()
- func (m *StoreNode) Reset()
- func (m *StoreNode) String() string
- func (m *StoreNode) XXX_DiscardUnknown()
- func (m *StoreNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreNode) XXX_Merge(src proto.Message)
- func (m *StoreNode) XXX_Size() int
- func (m *StoreNode) XXX_Unmarshal(b []byte) error
- type StoreReplyValue
- func (*StoreReplyValue) Descriptor() ([]byte, []int)
- func (m *StoreReplyValue) GetValues() [][]byte
- func (*StoreReplyValue) ProtoMessage()
- func (m *StoreReplyValue) Reset()
- func (m *StoreReplyValue) String() string
- func (m *StoreReplyValue) XXX_DiscardUnknown()
- func (m *StoreReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreReplyValue) XXX_Merge(src proto.Message)
- func (m *StoreReplyValue) XXX_Size() int
- func (m *StoreReplyValue) XXX_Unmarshal(b []byte) error
- type StoreSet
- func (*StoreSet) Descriptor() ([]byte, []int)
- func (m *StoreSet) GetHeight() int64
- func (m *StoreSet) GetKV() []*KeyValue
- func (m *StoreSet) GetStateHash() []byte
- func (*StoreSet) ProtoMessage()
- func (m *StoreSet) Reset()
- func (m *StoreSet) String() string
- func (m *StoreSet) XXX_DiscardUnknown()
- func (m *StoreSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreSet) XXX_Merge(src proto.Message)
- func (m *StoreSet) XXX_Size() int
- func (m *StoreSet) XXX_Unmarshal(b []byte) error
- type StoreSetWithSync
- func (*StoreSetWithSync) Descriptor() ([]byte, []int)
- func (m *StoreSetWithSync) GetStoreset() *StoreSet
- func (m *StoreSetWithSync) GetSync() bool
- func (*StoreSetWithSync) ProtoMessage()
- func (m *StoreSetWithSync) Reset()
- func (m *StoreSetWithSync) String() string
- func (m *StoreSetWithSync) XXX_DiscardUnknown()
- func (m *StoreSetWithSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreSetWithSync) XXX_Merge(src proto.Message)
- func (m *StoreSetWithSync) XXX_Size() int
- func (m *StoreSetWithSync) XXX_Unmarshal(b []byte) error
- type StoreValuePool
- func (*StoreValuePool) Descriptor() ([]byte, []int)
- func (m *StoreValuePool) GetValues() [][]byte
- func (*StoreValuePool) ProtoMessage()
- func (m *StoreValuePool) Reset()
- func (m *StoreValuePool) String() string
- func (m *StoreValuePool) XXX_DiscardUnknown()
- func (m *StoreValuePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreValuePool) XXX_Merge(src proto.Message)
- func (m *StoreValuePool) XXX_Size() int
- func (m *StoreValuePool) XXX_Unmarshal(b []byte) error
- type StringConfig
- func (*StringConfig) Descriptor() ([]byte, []int)
- func (m *StringConfig) GetValue() string
- func (*StringConfig) ProtoMessage()
- func (m *StringConfig) Reset()
- func (m *StringConfig) String() string
- func (m *StringConfig) XXX_DiscardUnknown()
- func (m *StringConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringConfig) XXX_Merge(src proto.Message)
- func (m *StringConfig) XXX_Size() int
- func (m *StringConfig) XXX_Unmarshal(b []byte) error
- type Summary
- func (*Summary) Descriptor() ([]byte, []int)
- func (m *Summary) GetDigest() []byte
- func (m *Summary) GetSequence() uint32
- func (*Summary) ProtoMessage()
- func (m *Summary) Reset()
- func (m *Summary) String() string
- func (m *Summary) XXX_DiscardUnknown()
- func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Summary) XXX_Merge(src proto.Message)
- func (m *Summary) XXX_Size() int
- func (m *Summary) XXX_Unmarshal(b []byte) error
- type TicketMinerInfo
- func (*TicketMinerInfo) Descriptor() ([]byte, []int)
- func (m *TicketMinerInfo) GetCloseTime() int64
- func (m *TicketMinerInfo) GetCreateTime() int64
- func (m *TicketMinerInfo) GetIsGenesis() bool
- func (m *TicketMinerInfo) GetMinerAddress() string
- func (m *TicketMinerInfo) GetMinerTime() int64
- func (m *TicketMinerInfo) GetMinerValue() int64
- func (m *TicketMinerInfo) GetPrevStatus() int32
- func (m *TicketMinerInfo) GetStatus() int32
- func (m *TicketMinerInfo) GetTicketId() string
- func (*TicketMinerInfo) ProtoMessage()
- func (m *TicketMinerInfo) Reset()
- func (m *TicketMinerInfo) String() string
- func (m *TicketMinerInfo) XXX_DiscardUnknown()
- func (m *TicketMinerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketMinerInfo) XXX_Merge(src proto.Message)
- func (m *TicketMinerInfo) XXX_Size() int
- func (m *TicketMinerInfo) XXX_Unmarshal(b []byte) error
- type TicketStatistic
- func (*TicketStatistic) Descriptor() ([]byte, []int)
- func (m *TicketStatistic) GetCurrentOpenCount() int64
- func (m *TicketStatistic) GetTotalCancleCount() int64
- func (m *TicketStatistic) GetTotalMinerCount() int64
- func (*TicketStatistic) ProtoMessage()
- func (m *TicketStatistic) Reset()
- func (m *TicketStatistic) String() string
- func (m *TicketStatistic) XXX_DiscardUnknown()
- func (m *TicketStatistic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketStatistic) XXX_Merge(src proto.Message)
- func (m *TicketStatistic) XXX_Size() int
- func (m *TicketStatistic) XXX_Unmarshal(b []byte) error
- type TimeStatus
- func (*TimeStatus) Descriptor() ([]byte, []int)
- func (m *TimeStatus) GetDiff() int64
- func (m *TimeStatus) GetLocalTime() string
- func (m *TimeStatus) GetNtpTime() string
- func (*TimeStatus) ProtoMessage()
- func (m *TimeStatus) Reset()
- func (m *TimeStatus) String() string
- func (m *TimeStatus) XXX_DiscardUnknown()
- func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeStatus) XXX_Merge(src proto.Message)
- func (m *TimeStatus) XXX_Size() int
- func (m *TimeStatus) XXX_Unmarshal(b []byte) error
- type TotalAmount
- func (*TotalAmount) Descriptor() ([]byte, []int)
- func (m *TotalAmount) GetTotal() int64
- func (*TotalAmount) ProtoMessage()
- func (m *TotalAmount) Reset()
- func (m *TotalAmount) String() string
- func (m *TotalAmount) XXX_DiscardUnknown()
- func (m *TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TotalAmount) XXX_Merge(src proto.Message)
- func (m *TotalAmount) XXX_Size() int
- func (m *TotalAmount) XXX_Unmarshal(b []byte) error
- type TotalFee
- func (*TotalFee) Descriptor() ([]byte, []int)
- func (m *TotalFee) GetFee() int64
- func (m *TotalFee) GetTxCount() int64
- func (*TotalFee) ProtoMessage()
- func (m *TotalFee) Reset()
- func (m *TotalFee) String() string
- func (m *TotalFee) XXX_DiscardUnknown()
- func (m *TotalFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TotalFee) XXX_Merge(src proto.Message)
- func (m *TotalFee) XXX_Size() int
- func (m *TotalFee) XXX_Unmarshal(b []byte) error
- type Transaction
- func (tx *Transaction) ActionName() string
- func (tx *Transaction) Amount() (int64, error)
- func (tx *Transaction) Assets() ([]*Asset, error)
- func (tx *Transaction) Check(height, minfee int64) error
- func (tx *Transaction) CheckSign() bool
- func (*Transaction) Descriptor() ([]byte, []int)
- func (tx *Transaction) From() string
- func (m *Transaction) GetExecer() []byte
- func (m *Transaction) GetExpire() int64
- func (m *Transaction) GetFee() int64
- func (m *Transaction) GetGroupCount() int32
- func (m *Transaction) GetHeader() []byte
- func (m *Transaction) GetNext() []byte
- func (m *Transaction) GetNonce() int64
- func (m *Transaction) GetPayload() []byte
- func (tx *Transaction) GetRealFee(minFee int64) (int64, error)
- func (tx *Transaction) GetRealToAddr() string
- func (m *Transaction) GetSignature() *Signature
- func (m *Transaction) GetTo() string
- func (tx *Transaction) GetTxGroup() (*Transactions, error)
- func (tx *Transaction) GetViewFromToAddr() (string, string)
- func (tx *Transaction) Hash() []byte
- func (tx *Transaction) HashSign() []byte
- func (tx *Transaction) IsExpire(height, blocktime int64) bool
- func (tx *Transaction) IsWithdraw() bool
- func (tx *Transaction) JSON() string
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (tx *Transaction) SetExpire(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 (m *Transaction) String() string
- func (tx *Transaction) Tx() *Transaction
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type TransactionCache
- type TransactionDetail
- func (*TransactionDetail) Descriptor() ([]byte, []int)
- func (m *TransactionDetail) GetActionName() string
- func (m *TransactionDetail) GetAmount() int64
- func (m *TransactionDetail) GetAssets() []*Asset
- func (m *TransactionDetail) GetBlocktime() int64
- func (m *TransactionDetail) GetFromaddr() string
- func (m *TransactionDetail) GetHeight() int64
- func (m *TransactionDetail) GetIndex() int64
- func (m *TransactionDetail) GetProofs() [][]byte
- func (m *TransactionDetail) GetReceipt() *ReceiptData
- func (m *TransactionDetail) GetTx() *Transaction
- func (*TransactionDetail) ProtoMessage()
- func (m *TransactionDetail) Reset()
- func (m *TransactionDetail) String() string
- func (m *TransactionDetail) XXX_DiscardUnknown()
- func (m *TransactionDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionDetail) XXX_Merge(src proto.Message)
- func (m *TransactionDetail) XXX_Size() int
- func (m *TransactionDetail) XXX_Unmarshal(b []byte) error
- type TransactionDetails
- func (*TransactionDetails) Descriptor() ([]byte, []int)
- func (m *TransactionDetails) GetTxs() []*TransactionDetail
- func (*TransactionDetails) ProtoMessage()
- func (m *TransactionDetails) Reset()
- func (m *TransactionDetails) String() string
- func (m *TransactionDetails) XXX_DiscardUnknown()
- func (m *TransactionDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionDetails) XXX_Merge(src proto.Message)
- func (m *TransactionDetails) XXX_Size() int
- func (m *TransactionDetails) XXX_Unmarshal(b []byte) error
- type Transactions
- func (txgroup *Transactions) Check(height int64, minfee int64) error
- func (txgroup *Transactions) CheckSign() bool
- func (*Transactions) Descriptor() ([]byte, []int)
- func (txgroup *Transactions) GetTxGroup() *Transactions
- func (m *Transactions) GetTxs() []*Transaction
- func (txgroup *Transactions) IsExpire(height, blocktime int64) bool
- func (*Transactions) ProtoMessage()
- func (m *Transactions) Reset()
- func (txgroup *Transactions) SignN(n int, ty int32, priv crypto.PrivKey) error
- func (m *Transactions) String() string
- func (txgroup *Transactions) Tx() *Transaction
- func (m *Transactions) XXX_DiscardUnknown()
- func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transactions) XXX_Merge(src proto.Message)
- func (m *Transactions) XXX_Size() int
- func (m *Transactions) XXX_Unmarshal(b []byte) error
- type TxGroup
- type TxHash
- func (*TxHash) Descriptor() ([]byte, []int)
- func (m *TxHash) GetHash() string
- func (*TxHash) ProtoMessage()
- func (m *TxHash) Reset()
- func (m *TxHash) String() string
- func (m *TxHash) XXX_DiscardUnknown()
- func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxHash) XXX_Merge(src proto.Message)
- func (m *TxHash) XXX_Size() int
- func (m *TxHash) XXX_Unmarshal(b []byte) error
- type TxHashList
- func (*TxHashList) Descriptor() ([]byte, []int)
- func (m *TxHashList) GetCount() int64
- func (m *TxHashList) GetExpire() []int64
- func (m *TxHashList) GetHashes() [][]byte
- func (*TxHashList) ProtoMessage()
- func (m *TxHashList) Reset()
- func (m *TxHashList) String() string
- func (m *TxHashList) XXX_DiscardUnknown()
- func (m *TxHashList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxHashList) XXX_Merge(src proto.Message)
- func (m *TxHashList) XXX_Size() int
- func (m *TxHashList) XXX_Unmarshal(b []byte) error
- type TxResult
- func (*TxResult) Descriptor() ([]byte, []int)
- func (m *TxResult) GetActionName() string
- func (m *TxResult) GetBlocktime() int64
- func (m *TxResult) GetHeight() int64
- func (m *TxResult) GetIndex() int32
- func (m *TxResult) GetReceiptdate() *ReceiptData
- func (m *TxResult) GetTx() *Transaction
- func (*TxResult) ProtoMessage()
- func (m *TxResult) Reset()
- func (m *TxResult) String() string
- func (m *TxResult) XXX_DiscardUnknown()
- func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxResult) XXX_Merge(src proto.Message)
- func (m *TxResult) XXX_Size() int
- func (m *TxResult) XXX_Unmarshal(b []byte) error
- type UnsignTx
- func (*UnsignTx) Descriptor() ([]byte, []int)
- func (m *UnsignTx) GetData() []byte
- func (*UnsignTx) ProtoMessage()
- func (m *UnsignTx) Reset()
- func (m *UnsignTx) String() string
- func (m *UnsignTx) XXX_DiscardUnknown()
- func (m *UnsignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnsignTx) XXX_Merge(src proto.Message)
- func (m *UnsignTx) XXX_Size() int
- func (m *UnsignTx) XXX_Unmarshal(b []byte) error
- type UpgradeMeta
- func (*UpgradeMeta) Descriptor() ([]byte, []int)
- func (m *UpgradeMeta) GetHeight() int64
- func (m *UpgradeMeta) GetIndexing() bool
- func (m *UpgradeMeta) GetVersion() string
- func (*UpgradeMeta) ProtoMessage()
- func (m *UpgradeMeta) Reset()
- func (m *UpgradeMeta) String() string
- func (m *UpgradeMeta) XXX_DiscardUnknown()
- func (m *UpgradeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpgradeMeta) XXX_Merge(src proto.Message)
- func (m *UpgradeMeta) XXX_Size() int
- func (m *UpgradeMeta) XXX_Unmarshal(b []byte) error
- type UserWrite
- func (*UserWrite) Descriptor() ([]byte, []int)
- func (m *UserWrite) GetContent() string
- func (m *UserWrite) GetTopic() string
- func (*UserWrite) ProtoMessage()
- func (m *UserWrite) Reset()
- func (m *UserWrite) String() string
- func (m *UserWrite) XXX_DiscardUnknown()
- func (m *UserWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserWrite) XXX_Merge(src proto.Message)
- func (m *UserWrite) XXX_Size() int
- func (m *UserWrite) XXX_Unmarshal(b []byte) error
- type VersionInfo
- func (*VersionInfo) Descriptor() ([]byte, []int)
- func (m *VersionInfo) GetApp() string
- func (m *VersionInfo) GetChain33() string
- func (m *VersionInfo) GetLocalDb() string
- func (m *VersionInfo) GetTitle() string
- func (*VersionInfo) ProtoMessage()
- func (m *VersionInfo) Reset()
- func (m *VersionInfo) String() string
- func (m *VersionInfo) XXX_DiscardUnknown()
- func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionInfo) XXX_Merge(src proto.Message)
- func (m *VersionInfo) XXX_Size() int
- func (m *VersionInfo) XXX_Unmarshal(b []byte) error
- type Versions
- func (*Versions) Descriptor() ([]byte, []int)
- func (m *Versions) GetP2Pversion() int32
- func (m *Versions) GetPeername() string
- func (m *Versions) GetSoftversion() string
- func (*Versions) ProtoMessage()
- func (m *Versions) Reset()
- func (m *Versions) String() string
- func (m *Versions) XXX_DiscardUnknown()
- func (m *Versions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Versions) XXX_Merge(src proto.Message)
- func (m *Versions) XXX_Size() int
- func (m *Versions) XXX_Unmarshal(b []byte) error
- type ViewChange
- func (*ViewChange) Descriptor() ([]byte, []int)
- func (m *ViewChange) GetDigest() []byte
- func (m *ViewChange) GetViewchanger() uint32
- func (*ViewChange) ProtoMessage()
- func (m *ViewChange) Reset()
- func (m *ViewChange) String() string
- func (m *ViewChange) XXX_DiscardUnknown()
- func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ViewChange) XXX_Merge(src proto.Message)
- func (m *ViewChange) XXX_Size() int
- func (m *ViewChange) XXX_Unmarshal(b []byte) error
- type Wallet
- type WalletAccount
- func (*WalletAccount) Descriptor() ([]byte, []int)
- func (m *WalletAccount) GetAcc() *Account
- func (m *WalletAccount) GetLabel() string
- func (*WalletAccount) ProtoMessage()
- func (m *WalletAccount) Reset()
- func (m *WalletAccount) String() string
- func (m *WalletAccount) XXX_DiscardUnknown()
- func (m *WalletAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletAccount) XXX_Merge(src proto.Message)
- func (m *WalletAccount) XXX_Size() int
- func (m *WalletAccount) XXX_Unmarshal(b []byte) error
- type WalletAccountStore
- func (*WalletAccountStore) Descriptor() ([]byte, []int)
- func (m *WalletAccountStore) GetAddr() string
- func (m *WalletAccountStore) GetLabel() string
- func (m *WalletAccountStore) GetPrivkey() string
- func (m *WalletAccountStore) GetTimeStamp() string
- func (*WalletAccountStore) ProtoMessage()
- func (m *WalletAccountStore) Reset()
- func (m *WalletAccountStore) String() string
- func (m *WalletAccountStore) XXX_DiscardUnknown()
- func (m *WalletAccountStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletAccountStore) XXX_Merge(src proto.Message)
- func (m *WalletAccountStore) XXX_Size() int
- func (m *WalletAccountStore) XXX_Unmarshal(b []byte) error
- type WalletAccounts
- func (*WalletAccounts) Descriptor() ([]byte, []int)
- func (m *WalletAccounts) GetWallets() []*WalletAccount
- func (*WalletAccounts) ProtoMessage()
- func (m *WalletAccounts) Reset()
- func (m *WalletAccounts) String() string
- func (m *WalletAccounts) XXX_DiscardUnknown()
- func (m *WalletAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletAccounts) XXX_Merge(src proto.Message)
- func (m *WalletAccounts) XXX_Size() int
- func (m *WalletAccounts) XXX_Unmarshal(b []byte) error
- type WalletPwHash
- func (*WalletPwHash) Descriptor() ([]byte, []int)
- func (m *WalletPwHash) GetPwHash() []byte
- func (m *WalletPwHash) GetRandstr() string
- func (*WalletPwHash) ProtoMessage()
- func (m *WalletPwHash) Reset()
- func (m *WalletPwHash) String() string
- func (m *WalletPwHash) XXX_DiscardUnknown()
- func (m *WalletPwHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletPwHash) XXX_Merge(src proto.Message)
- func (m *WalletPwHash) XXX_Size() int
- func (m *WalletPwHash) XXX_Unmarshal(b []byte) error
- type WalletStatus
- func (*WalletStatus) Descriptor() ([]byte, []int)
- func (m *WalletStatus) GetIsAutoMining() bool
- func (m *WalletStatus) GetIsHasSeed() bool
- func (m *WalletStatus) GetIsTicketLock() bool
- func (m *WalletStatus) GetIsWalletLock() bool
- func (*WalletStatus) ProtoMessage()
- func (m *WalletStatus) Reset()
- func (m *WalletStatus) String() string
- func (m *WalletStatus) XXX_DiscardUnknown()
- func (m *WalletStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletStatus) XXX_Merge(src proto.Message)
- func (m *WalletStatus) XXX_Size() int
- func (m *WalletStatus) XXX_Unmarshal(b []byte) error
- type WalletTxDetail
- func (*WalletTxDetail) Descriptor() ([]byte, []int)
- func (m *WalletTxDetail) GetActionName() string
- func (m *WalletTxDetail) GetAmount() int64
- func (m *WalletTxDetail) GetBlocktime() int64
- func (m *WalletTxDetail) GetFromaddr() string
- func (m *WalletTxDetail) GetHeight() int64
- func (m *WalletTxDetail) GetIndex() int64
- func (m *WalletTxDetail) GetPayload() []byte
- func (m *WalletTxDetail) GetReceipt() *ReceiptData
- func (m *WalletTxDetail) GetTx() *Transaction
- func (m *WalletTxDetail) GetTxhash() []byte
- func (*WalletTxDetail) ProtoMessage()
- func (m *WalletTxDetail) Reset()
- func (m *WalletTxDetail) String() string
- func (m *WalletTxDetail) XXX_DiscardUnknown()
- func (m *WalletTxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletTxDetail) XXX_Merge(src proto.Message)
- func (m *WalletTxDetail) XXX_Size() int
- func (m *WalletTxDetail) XXX_Unmarshal(b []byte) error
- type WalletTxDetails
- func (*WalletTxDetails) Descriptor() ([]byte, []int)
- func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail
- func (*WalletTxDetails) ProtoMessage()
- func (m *WalletTxDetails) Reset()
- func (m *WalletTxDetails) String() string
- func (m *WalletTxDetails) XXX_DiscardUnknown()
- func (m *WalletTxDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletTxDetails) XXX_Merge(src proto.Message)
- func (m *WalletTxDetails) XXX_Size() int
- func (m *WalletTxDetails) XXX_Unmarshal(b []byte) error
- type WalletUnLock
- func (*WalletUnLock) Descriptor() ([]byte, []int)
- func (m *WalletUnLock) GetPasswd() string
- func (m *WalletUnLock) GetTimeout() int64
- func (m *WalletUnLock) GetWalletOrTicket() bool
- func (*WalletUnLock) ProtoMessage()
- func (m *WalletUnLock) Reset()
- func (m *WalletUnLock) String() string
- func (m *WalletUnLock) XXX_DiscardUnknown()
- func (m *WalletUnLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletUnLock) XXX_Merge(src proto.Message)
- func (m *WalletUnLock) XXX_Size() int
- func (m *WalletUnLock) XXX_Unmarshal(b []byte) error
Constants ¶
const ( Coin int64 = 1e8 MaxCoin int64 = 1e17 MaxTxSize = 100000 //100K MaxTxGroupSize int32 = 20 MaxBlockSize = 20000000 //20M MaxTxsPerBlock = 100000 TokenPrecision int64 = 1e8 MaxTokenBalance int64 = 900 * 1e8 * TokenPrecision //900亿 )
coin conversation
const ( UserKeyX = "user." ParaKeyX = "user.p." NoneX = "none" )
UserKeyX 用户自定义执行器前缀字符串
const ( InputPrecision float64 = 1e4 Multiple1E4 int64 = 1e4 BTY = "BTY" BTYDustThreshold = Coin ConfirmedHeight = 12 UTXOCacheCount = 256 SignatureSize = (4 + 33 + 65) PrivacyMaturityDegree = 12 TxGroupMaxCount = 20 MinerAction = "miner" Int1E4 int64 = 10000 Float1E4 float64 = 10000.0 )
基本全局常量定义
const ( Invalid = 0 SECP256K1 = 1 ED25519 = 2 SM2 = 3 )
ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> onetimeed25519 ty = 5 -> RingBaseonED25519 ty = 1+offset(1<<8) ->auth_ecdsa ty = 2+offset(1<<8) -> auth_sm2
const ( PrivacyTypePublic2Privacy = iota + 1 PrivacyTypePrivacy2Privacy PrivacyTypePrivacy2Public )
创建隐私交易的类型定义
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 )
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 EventWalletGetAccountList = 37 EventWalletAccountList = 38 EventNewAccount = 39 EventWalletAccount = 40 EventWalletTransactionList = 41 EventWalletExecutor = 42 EventWalletImportPrivkey = 43 EventWalletSendToAddress = 44 EventWalletSetFee = 45 EventWalletSetLabel = 46 EventStoreDel = 47 EventWalletMergeBalance = 48 EventReplyHashes = 49 EventWalletSetPasswd = 50 EventWalletLock = 51 EventWalletUnLock = 52 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 EventGenSeed = 70 EventReplyGenSeed = 71 EventSaveSeed = 72 EventGetSeed = 73 EventReplyGetSeed = 74 EventDelBlock = 75 //local store EventLocalGet = 76 EventLocalReplyValue = 77 EventLocalList = 78 EventLocalSet = 79 EventGetWalletStatus = 80 EventCheckTx = 81 EventReceiptCheckTx = 82 EventReplyQuery = 84 EventAddBlockSeqCB = 85 EventFetchBlockHeaders = 86 EventAddBlockHeaders = 87 EventReplyWalletStatus = 89 EventGetLastBlock = 90 EventBlock = 91 EventGetTicketCount = 92 EventReplyGetTicketCount = 93 EventDumpPrivkey = 94 EventReplyPrivkey = 95 EventIsSync = 96 EventReplyIsSync = 97 EventCloseTickets = 98 EventGetAddrTxs = 99 EventReplyAddrTxs = 100 EventIsNtpClockSync = 101 EventReplyIsNtpClockSync = 102 EventDelTxList = 103 EventStoreGetTotalCoins = 104 EventGetTotalCoinsReply = 105 EventQueryTotalFee = 106 EventSignRawTx = 107 EventReplySignRawTx = 108 EventSyncBlock = 109 EventGetNetInfo = 110 EventReplyNetInfo = 111 EventErrToFront = 112 EventFatalFailure = 113 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 EventWalletCreateTx = 129 EventStoreList = 130 EventStoreListReply = 131 EventListBlockSeqCB = 132 EventGetSeqCBLastNum = 133 EventGetBlockBySeq = 134 //exec EventBlockChainQuery = 212 EventConsensusQuery = 213 )
event
const MaxHeight = 10000000000000000
MaxHeight 出于forks 过程安全的考虑,比如代码更新,出现了新的fork,旧的链只要不明确指定 fork的高度,那么默认fork高度为 MaxHeight 也就是新的代码默认不会被启用,知道使用的人明确指定了fork的高度
const Size1Kshiftlen uint = 10
Size1Kshiftlen tx消息大小1k
Variables ¶
var ( AllowUserExec = [][]byte{ExecerNone} //AllowDepositExec 这里又限制了一次,因为挖矿的合约不会太多,所以这里配置死了,如果要扩展,需要改这里的代码 AllowDepositExec = [][]byte{[]byte("ticket")} EmptyValue = []byte("FFFFFFFFemptyBVBiCj5jvE15pEiwro8TQRGnJSNsJF") //这字符串表示数据库中的空值 )
区块链共识相关的参数,重要参数不要随便修改
var ( UserKey = []byte(UserKeyX) ParaKey = []byte(ParaKeyX) ExecerNone = []byte(NoneX) )
UserKeyX 用户自定义执行器前缀byte类型
var ( //ViewPubFee 公钥 //addr:1Cbo5u8V5F3ubWBv9L6qu9wWxKuD3qBVpi,这里只是作为测试用,后面需要修改为系统账户 ViewPubFee = "0x0f7b661757fe8471c0b853b09bf526b19537a2f91254494d19874a04119415e8" SpendPubFee = "0x64204db5a521771eeeddee59c25aaae6bebe796d564effb6ba11352418002ee3" ViewPrivFee = "0x0f7b661757fe8471c0b853b09bf526b19537a2f91254494d19874a04119415e8" )
全局账户私钥/公钥
var ( 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") ErrInvalidParam = errors.New("ErrInvalidParam") ErrInvalidAddress = errors.New("ErrInvalidAddress") ErrNotInited = errors.New("ErrNotInited") 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") ErrFeeTooLow = errors.New("ErrFeeTooLow") ErrEmptyTx = errors.New("ErrEmptyTx") ErrTxFeeTooLow = errors.New("ErrTxFeeTooLow") 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") 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") //ErrPing p2p模块错误类型 ErrPing = errors.New("ErrPingSignature") ErrVersion = errors.New("ErrVersionNoSupport") ErrStreamPing = errors.New("ErrStreamPing") ErrPeerStop = errors.New("ErrPeerStop") 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") ErrDataBaseDamage = errors.New("ErrDataBaseDamage") ErrIndex = errors.New("ErrIndex") ErrTxGroupParaCount = errors.New("ErrTxGroupParaCount") //ErrInvalidMainnetRPCAddr rpc模块的错误类型 ErrInvalidMainnetRPCAddr = errors.New("ErrInvalidMainnetRPCAddr") ErrDBFlag = errors.New("ErrDBFlag") ErrLocalPrefix = errors.New("ErrLocalPrefix") ErrLocalKeyLen = errors.New("ErrLocalKeyLen") ErrCloneForkFrom = errors.New("ErrCloneForkFrom") ErrCloneForkToExist = errors.New("ErrCloneForkToExist") ErrQueryThistIsNotSet = errors.New("ErrQueryThistIsNotSet") ErrHeightLessZero = errors.New("ErrHeightLessZero") ErrHeightOverflow = errors.New("ErrHeightOverflow") ErrRecordBlockSequence = errors.New("ErrRecordBlockSequence") )
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:") AddrTxsCount = []byte("AddrTxsCount:") )
定义key值
var ConfigPrefix = "mavl-config-"
ConfigPrefix 配置前缀key
var Debug = false
Debug 调试开关
var EnableTxGroupParaFork = false
EnableTxGroupParaFork 默认情况下不开启fork
var ExpireBound int64 = 1000000000 // 交易过期分界线,小于expireBound比较height,大于expireBound比较blockTime
ExpireBound 交易过期边界值
var HighAllowPackHeight int64 = 90
HighAllowPackHeight eg: current Height is 10000 TxHeight is 10010 => Height <= TxHeight + HighAllowPackHeight => Height >= TxHeight - LowAllowPackHeight 那么交易可以打包的范围是: 10010 - 100 = 9910 , 10010 + 200 = 10210 (9910,10210) 可以合法的打包交易 注意,这两个条件必须同时满足. 关于交易去重复: 也就是说,另外一笔相同的交易,只能被打包在这个区间(9910,10210)。 那么检查交易重复的时候,我只要检查 9910 - currentHeight 这个区间的交易不要重复就好了
var LowAllowPackHeight int64 = 30
LowAllowPackHeight 允许打包的low区块高度
var ManagePrefix = "mavl-"
ManagePrefix 超级管理员账户配置前缀key
var NtpHosts = []string{
"time.windows.com:123",
"ntp.ubuntu.com:123",
"pool.ntp.org:123",
"cn.pool.ntp.org:123",
"time.apple.com:123",
}
NtpHosts ntp hosts
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"}, }
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 CalcAddrTxsCountKey ¶
CalcAddrTxsCountKey 存储地址参与的交易数量。add时加一,del时减一
func CalcTxAddrDirHashKey ¶
CalcTxAddrDirHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:flag:height*100000 + index 地址下面某个分类的交易
func CalcTxAddrHashKey ¶
CalcTxAddrHashKey 用于存储地址相关的hash列表,key=TxAddrHash:addr:height*100000 + index 地址下面所有的交易
func CallCreateTx ¶
CallCreateTx 构造交易信息
func CallCreateTxJSON ¶
func CallCreateTxJSON(execName, action string, param json.RawMessage) ([]byte, error)
CallCreateTxJSON create tx by json
func CallExecNewTx ¶
CallExecNewTx 重构完成后删除
func FlatConfig ¶
FlatConfig Flat配置
func FormatTxEncode ¶
func FormatTxEncode(execName string, tx *Transaction) ([]byte, error)
FormatTxEncode 对交易信息编码成byte类型
func GetActionValue ¶
func GetActionValue(action interface{}, funclist map[string]reflect.Method) (string, int32, reflect.Value)
GetActionValue 获取执行器的action value
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 IsEnableFork ¶
IsEnableFork 是否使能了fork
func JSONToPBUTF8 ¶
JSONToPBUTF8 默认解码utf8的字符串成bytes
func ListActionMethod ¶
ListActionMethod list action的所有的方法
func ListMethod ¶
ListMethod list Method
func ListMethodByType ¶
ListMethodByType list Method 通过type类型
func ManaeKeyWithHeigh ¶
ManaeKeyWithHeigh 超级管理员账户key
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 RegisterDappFork ¶
RegisterDappFork 注册dapp fork高度
func RegisterP2PgserviceServer ¶
func RegisterP2PgserviceServer(s *grpc.Server, srv P2PgserviceServer)
func RegistorExecutor ¶
func RegistorExecutor(exec string, util ExecutorType)
RegistorExecutor 注册执行器
func SetDappFork ¶
SetDappFork 设置dapp fork高度
func SetTimeDelta ¶
func SetTimeDelta(dt int64)
SetTimeDelta realtime - localtime 超过60s 不做修正 为了系统的安全,我们只做小范围时间错误的修复
func SetTitleOnlyForTest ¶
func SetTitleOnlyForTest(ti string)
SetTitleOnlyForTest set title only for test use
func StatisticTicketInfoKey ¶
StatisticTicketInfoKey 统计ticket的key
func StatisticTicketInfoOrderKey ¶
StatisticTicketInfoOrderKey 统计ticket的key
func StatisticTicketKey ¶
StatisticTicketKey 统计ticket的key
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Account 的信息
func (*Account) Descriptor ¶
func (*Account) GetBalance ¶
func (*Account) GetCurrency ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type Accounts ¶
type Accounts struct {
Acc []*Account `protobuf:"bytes,1,rep,name=acc,proto3" json:"acc,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Account 的列表
func (*Accounts) Descriptor ¶
func (*Accounts) ProtoMessage ¶
func (*Accounts) ProtoMessage()
func (*Accounts) XXX_DiscardUnknown ¶
func (m *Accounts) XXX_DiscardUnknown()
func (*Accounts) XXX_Marshal ¶
func (*Accounts) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AddrOverview) Descriptor ¶
func (*AddrOverview) Descriptor() ([]byte, []int)
func (*AddrOverview) GetBalance ¶
func (m *AddrOverview) GetBalance() int64
func (*AddrOverview) GetReciver ¶
func (m *AddrOverview) GetReciver() int64
func (*AddrOverview) GetTxCount ¶
func (m *AddrOverview) GetTxCount() int64
func (*AddrOverview) ProtoMessage ¶
func (*AddrOverview) ProtoMessage()
func (*AddrOverview) Reset ¶
func (m *AddrOverview) Reset()
func (*AddrOverview) String ¶
func (m *AddrOverview) String() string
func (*AddrOverview) XXX_DiscardUnknown ¶
func (m *AddrOverview) XXX_DiscardUnknown()
func (*AddrOverview) XXX_Marshal ¶
func (m *AddrOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddrOverview) XXX_Merge ¶
func (m *AddrOverview) XXX_Merge(src proto.Message)
func (*AddrOverview) XXX_Size ¶
func (m *AddrOverview) XXX_Size() int
func (*AddrOverview) XXX_Unmarshal ¶
func (m *AddrOverview) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AllExecBalance) Descriptor ¶
func (*AllExecBalance) Descriptor() ([]byte, []int)
func (*AllExecBalance) GetAddr ¶
func (m *AllExecBalance) GetAddr() string
func (*AllExecBalance) GetExecAccount ¶
func (m *AllExecBalance) GetExecAccount() []*ExecAccount
func (*AllExecBalance) ProtoMessage ¶
func (*AllExecBalance) ProtoMessage()
func (*AllExecBalance) Reset ¶
func (m *AllExecBalance) Reset()
func (*AllExecBalance) String ¶
func (m *AllExecBalance) String() string
func (*AllExecBalance) XXX_DiscardUnknown ¶
func (m *AllExecBalance) XXX_DiscardUnknown()
func (*AllExecBalance) XXX_Marshal ¶
func (m *AllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllExecBalance) XXX_Merge ¶
func (m *AllExecBalance) XXX_Merge(src proto.Message)
func (*AllExecBalance) XXX_Size ¶
func (m *AllExecBalance) XXX_Size() int
func (*AllExecBalance) XXX_Unmarshal ¶
func (m *AllExecBalance) XXX_Unmarshal(b []byte) error
type ArrayConfig ¶
type ArrayConfig struct {
Value []string `protobuf:"bytes,3,rep,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
配置修改部分
func (*ArrayConfig) Descriptor ¶
func (*ArrayConfig) Descriptor() ([]byte, []int)
func (*ArrayConfig) GetValue ¶
func (m *ArrayConfig) GetValue() []string
func (*ArrayConfig) ProtoMessage ¶
func (*ArrayConfig) ProtoMessage()
func (*ArrayConfig) Reset ¶
func (m *ArrayConfig) Reset()
func (*ArrayConfig) String ¶
func (m *ArrayConfig) String() string
func (*ArrayConfig) XXX_DiscardUnknown ¶
func (m *ArrayConfig) XXX_DiscardUnknown()
func (*ArrayConfig) XXX_Marshal ¶
func (m *ArrayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArrayConfig) XXX_Merge ¶
func (m *ArrayConfig) XXX_Merge(src proto.Message)
func (*ArrayConfig) XXX_Size ¶
func (m *ArrayConfig) XXX_Size() int
func (*ArrayConfig) XXX_Unmarshal ¶
func (m *ArrayConfig) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Asset) Descriptor ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) XXX_DiscardUnknown ¶
func (m *Asset) XXX_DiscardUnknown()
func (*Asset) XXX_Marshal ¶
func (*Asset) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
assert transfer struct
func (*AssetsGenesis) Descriptor ¶
func (*AssetsGenesis) Descriptor() ([]byte, []int)
func (*AssetsGenesis) GetAmount ¶
func (m *AssetsGenesis) GetAmount() int64
func (*AssetsGenesis) GetReturnAddress ¶
func (m *AssetsGenesis) GetReturnAddress() string
func (*AssetsGenesis) ProtoMessage ¶
func (*AssetsGenesis) ProtoMessage()
func (*AssetsGenesis) Reset ¶
func (m *AssetsGenesis) Reset()
func (*AssetsGenesis) String ¶
func (m *AssetsGenesis) String() string
func (*AssetsGenesis) XXX_DiscardUnknown ¶
func (m *AssetsGenesis) XXX_DiscardUnknown()
func (*AssetsGenesis) XXX_Marshal ¶
func (m *AssetsGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetsGenesis) XXX_Merge ¶
func (m *AssetsGenesis) XXX_Merge(src proto.Message)
func (*AssetsGenesis) XXX_Size ¶
func (m *AssetsGenesis) XXX_Size() int
func (*AssetsGenesis) XXX_Unmarshal ¶
func (m *AssetsGenesis) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AssetsTransfer) Descriptor ¶
func (*AssetsTransfer) Descriptor() ([]byte, []int)
func (*AssetsTransfer) GetAmount ¶
func (m *AssetsTransfer) GetAmount() int64
func (*AssetsTransfer) GetCointoken ¶
func (m *AssetsTransfer) GetCointoken() string
func (*AssetsTransfer) GetNote ¶
func (m *AssetsTransfer) GetNote() []byte
func (*AssetsTransfer) GetTo ¶
func (m *AssetsTransfer) GetTo() string
func (*AssetsTransfer) ProtoMessage ¶
func (*AssetsTransfer) ProtoMessage()
func (*AssetsTransfer) Reset ¶
func (m *AssetsTransfer) Reset()
func (*AssetsTransfer) String ¶
func (m *AssetsTransfer) String() string
func (*AssetsTransfer) XXX_DiscardUnknown ¶
func (m *AssetsTransfer) XXX_DiscardUnknown()
func (*AssetsTransfer) XXX_Marshal ¶
func (m *AssetsTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetsTransfer) XXX_Merge ¶
func (m *AssetsTransfer) XXX_Merge(src proto.Message)
func (*AssetsTransfer) XXX_Size ¶
func (m *AssetsTransfer) XXX_Size() int
func (*AssetsTransfer) XXX_Unmarshal ¶
func (m *AssetsTransfer) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AssetsTransferToExec) Descriptor ¶
func (*AssetsTransferToExec) Descriptor() ([]byte, []int)
func (*AssetsTransferToExec) GetAmount ¶
func (m *AssetsTransferToExec) GetAmount() int64
func (*AssetsTransferToExec) GetCointoken ¶
func (m *AssetsTransferToExec) GetCointoken() string
func (*AssetsTransferToExec) GetExecName ¶
func (m *AssetsTransferToExec) GetExecName() string
func (*AssetsTransferToExec) GetNote ¶
func (m *AssetsTransferToExec) GetNote() []byte
func (*AssetsTransferToExec) GetTo ¶
func (m *AssetsTransferToExec) GetTo() string
func (*AssetsTransferToExec) ProtoMessage ¶
func (*AssetsTransferToExec) ProtoMessage()
func (*AssetsTransferToExec) Reset ¶
func (m *AssetsTransferToExec) Reset()
func (*AssetsTransferToExec) String ¶
func (m *AssetsTransferToExec) String() string
func (*AssetsTransferToExec) XXX_DiscardUnknown ¶
func (m *AssetsTransferToExec) XXX_DiscardUnknown()
func (*AssetsTransferToExec) XXX_Marshal ¶
func (m *AssetsTransferToExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetsTransferToExec) XXX_Merge ¶
func (m *AssetsTransferToExec) XXX_Merge(src proto.Message)
func (*AssetsTransferToExec) XXX_Size ¶
func (m *AssetsTransferToExec) XXX_Size() int
func (*AssetsTransferToExec) XXX_Unmarshal ¶
func (m *AssetsTransferToExec) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AssetsWithdraw) Descriptor ¶
func (*AssetsWithdraw) Descriptor() ([]byte, []int)
func (*AssetsWithdraw) GetAmount ¶
func (m *AssetsWithdraw) GetAmount() int64
func (*AssetsWithdraw) GetCointoken ¶
func (m *AssetsWithdraw) GetCointoken() string
func (*AssetsWithdraw) GetExecName ¶
func (m *AssetsWithdraw) GetExecName() string
func (*AssetsWithdraw) GetNote ¶
func (m *AssetsWithdraw) GetNote() []byte
func (*AssetsWithdraw) GetTo ¶
func (m *AssetsWithdraw) GetTo() string
func (*AssetsWithdraw) ProtoMessage ¶
func (*AssetsWithdraw) ProtoMessage()
func (*AssetsWithdraw) Reset ¶
func (m *AssetsWithdraw) Reset()
func (*AssetsWithdraw) String ¶
func (m *AssetsWithdraw) String() string
func (*AssetsWithdraw) XXX_DiscardUnknown ¶
func (m *AssetsWithdraw) XXX_DiscardUnknown()
func (*AssetsWithdraw) XXX_Marshal ¶
func (m *AssetsWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetsWithdraw) XXX_Merge ¶
func (m *AssetsWithdraw) XXX_Merge(src proto.Message)
func (*AssetsWithdraw) XXX_Size ¶
func (m *AssetsWithdraw) XXX_Size() int
func (*AssetsWithdraw) XXX_Unmarshal ¶
func (m *AssetsWithdraw) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
参考Header解释
mainHash 平行链上使用的字段,代表这个区块的主链hash
func (*Block) Descriptor ¶
func (*Block) GetBlockTime ¶
func (*Block) GetDifficulty ¶
func (*Block) GetMainHash ¶
func (*Block) GetMainHeight ¶
func (*Block) GetParentHash ¶
func (*Block) GetSignature ¶
func (*Block) GetStateHash ¶
func (*Block) GetTxs ¶
func (m *Block) GetTxs() []*Transaction
func (*Block) GetVersion ¶
func (*Block) HashByForkHeight ¶
HashByForkHeight hash 通过自己设置的fork 高度计算 hash
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
区块体信息
txs : 区块上所有交易列表 receipts :区块上所有交易的收据信息列表
func (*BlockBody) Descriptor ¶
func (*BlockBody) GetReceipts ¶
func (m *BlockBody) GetReceipts() []*ReceiptData
func (*BlockBody) GetTxs ¶
func (m *BlockBody) GetTxs() []*Transaction
func (*BlockBody) ProtoMessage ¶
func (*BlockBody) ProtoMessage()
func (*BlockBody) XXX_DiscardUnknown ¶
func (m *BlockBody) XXX_DiscardUnknown()
func (*BlockBody) XXX_Marshal ¶
func (*BlockBody) XXX_Unmarshal ¶
type BlockChain ¶
type BlockChain struct {
DefCacheSize int64 `protobuf:"varint,1,opt,name=defCacheSize" json:"defCacheSize,omitempty"`
MaxFetchBlockNum int64 `protobuf:"varint,2,opt,name=maxFetchBlockNum" json:"maxFetchBlockNum,omitempty"`
TimeoutSeconds int64 `protobuf:"varint,3,opt,name=timeoutSeconds" json:"timeoutSeconds,omitempty"`
BatchBlockNum int64 `protobuf:"varint,4,opt,name=batchBlockNum" json:"batchBlockNum,omitempty"`
Driver string `protobuf:"bytes,5,opt,name=driver" json:"driver,omitempty"`
DbPath string `protobuf:"bytes,6,opt,name=dbPath" json:"dbPath,omitempty"`
DbCache int32 `protobuf:"varint,7,opt,name=dbCache" json:"dbCache,omitempty"`
IsStrongConsistency bool `protobuf:"varint,8,opt,name=isStrongConsistency" json:"isStrongConsistency,omitempty"`
SingleMode bool `protobuf:"varint,9,opt,name=singleMode" json:"singleMode,omitempty"`
Batchsync bool `protobuf:"varint,10,opt,name=batchsync" json:"batchsync,omitempty"`
IsRecordBlockSequence bool `protobuf:"varint,11,opt,name=isRecordBlockSequence" json:"isRecordBlockSequence,omitempty"`
IsParaChain bool `protobuf:"varint,12,opt,name=isParaChain" json:"isParaChain,omitempty"`
EnableTxQuickIndex bool `protobuf:"varint,13,opt,name=enableTxQuickIndex" json:"enableTxQuickIndex,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
区块详细信息
block : 区块信息 receipts :区块上所有交易的收据信息列表
func (*BlockDetail) Descriptor ¶
func (*BlockDetail) Descriptor() ([]byte, []int)
func (*BlockDetail) GetBlock ¶
func (m *BlockDetail) GetBlock() *Block
func (*BlockDetail) GetKV ¶
func (m *BlockDetail) GetKV() []*KeyValue
func (*BlockDetail) GetPrevStatusHash ¶
func (m *BlockDetail) GetPrevStatusHash() []byte
func (*BlockDetail) GetReceipts ¶
func (m *BlockDetail) GetReceipts() []*ReceiptData
func (*BlockDetail) ProtoMessage ¶
func (*BlockDetail) ProtoMessage()
func (*BlockDetail) Reset ¶
func (m *BlockDetail) Reset()
func (*BlockDetail) String ¶
func (m *BlockDetail) String() string
func (*BlockDetail) XXX_DiscardUnknown ¶
func (m *BlockDetail) XXX_DiscardUnknown()
func (*BlockDetail) XXX_Marshal ¶
func (m *BlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockDetail) XXX_Merge ¶
func (m *BlockDetail) XXX_Merge(src proto.Message)
func (*BlockDetail) XXX_Size ¶
func (m *BlockDetail) XXX_Size() int
func (*BlockDetail) XXX_Unmarshal ¶
func (m *BlockDetail) XXX_Unmarshal(b []byte) error
type BlockDetails ¶
type BlockDetails struct {
Items []*BlockDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
resp
func (*BlockDetails) Descriptor ¶
func (*BlockDetails) Descriptor() ([]byte, []int)
func (*BlockDetails) GetItems ¶
func (m *BlockDetails) GetItems() []*BlockDetail
func (*BlockDetails) ProtoMessage ¶
func (*BlockDetails) ProtoMessage()
func (*BlockDetails) Reset ¶
func (m *BlockDetails) Reset()
func (*BlockDetails) String ¶
func (m *BlockDetails) String() string
func (*BlockDetails) XXX_DiscardUnknown ¶
func (m *BlockDetails) XXX_DiscardUnknown()
func (*BlockDetails) XXX_Marshal ¶
func (m *BlockDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockDetails) XXX_Merge ¶
func (m *BlockDetails) XXX_Merge(src proto.Message)
func (*BlockDetails) XXX_Size ¶
func (m *BlockDetails) XXX_Size() int
func (*BlockDetails) XXX_Unmarshal ¶
func (m *BlockDetails) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
区块视图
head : 区块头信息 txCount :区块上交易个数 txHashes : 区块上交易的哈希列表
func (*BlockOverview) Descriptor ¶
func (*BlockOverview) Descriptor() ([]byte, []int)
func (*BlockOverview) GetHead ¶
func (m *BlockOverview) GetHead() *Header
func (*BlockOverview) GetTxCount ¶
func (m *BlockOverview) GetTxCount() int64
func (*BlockOverview) GetTxHashes ¶
func (m *BlockOverview) GetTxHashes() [][]byte
func (*BlockOverview) ProtoMessage ¶
func (*BlockOverview) ProtoMessage()
func (*BlockOverview) Reset ¶
func (m *BlockOverview) Reset()
func (*BlockOverview) String ¶
func (m *BlockOverview) String() string
func (*BlockOverview) XXX_DiscardUnknown ¶
func (m *BlockOverview) XXX_DiscardUnknown()
func (*BlockOverview) XXX_Marshal ¶
func (m *BlockOverview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockOverview) XXX_Merge ¶
func (m *BlockOverview) XXX_Merge(src proto.Message)
func (*BlockOverview) XXX_Size ¶
func (m *BlockOverview) XXX_Size() int
func (*BlockOverview) XXX_Unmarshal ¶
func (m *BlockOverview) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
节点ID以及对应的Block
func (*BlockPid) Descriptor ¶
func (*BlockPid) ProtoMessage ¶
func (*BlockPid) ProtoMessage()
func (*BlockPid) XXX_DiscardUnknown ¶
func (m *BlockPid) XXX_DiscardUnknown()
func (*BlockPid) XXX_Marshal ¶
func (*BlockPid) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*BlockSeq) Descriptor ¶
func (*BlockSeq) GetDetail ¶
func (m *BlockSeq) GetDetail() *BlockDetail
func (*BlockSeq) GetSeq ¶
func (m *BlockSeq) GetSeq() *BlockSequence
func (*BlockSeq) ProtoMessage ¶
func (*BlockSeq) ProtoMessage()
func (*BlockSeq) XXX_DiscardUnknown ¶
func (m *BlockSeq) XXX_DiscardUnknown()
func (*BlockSeq) XXX_Marshal ¶
func (*BlockSeq) XXX_Unmarshal ¶
type BlockSeqCB ¶
type BlockSeqCB 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*BlockSeqCB) Descriptor ¶
func (*BlockSeqCB) Descriptor() ([]byte, []int)
func (*BlockSeqCB) GetEncode ¶
func (m *BlockSeqCB) GetEncode() string
func (*BlockSeqCB) GetName ¶
func (m *BlockSeqCB) GetName() string
func (*BlockSeqCB) GetURL ¶
func (m *BlockSeqCB) GetURL() string
func (*BlockSeqCB) ProtoMessage ¶
func (*BlockSeqCB) ProtoMessage()
func (*BlockSeqCB) Reset ¶
func (m *BlockSeqCB) Reset()
func (*BlockSeqCB) String ¶
func (m *BlockSeqCB) String() string
func (*BlockSeqCB) XXX_DiscardUnknown ¶
func (m *BlockSeqCB) XXX_DiscardUnknown()
func (*BlockSeqCB) XXX_Marshal ¶
func (m *BlockSeqCB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockSeqCB) XXX_Merge ¶
func (m *BlockSeqCB) XXX_Merge(src proto.Message)
func (*BlockSeqCB) XXX_Size ¶
func (m *BlockSeqCB) XXX_Size() int
func (*BlockSeqCB) XXX_Unmarshal ¶
func (m *BlockSeqCB) XXX_Unmarshal(b []byte) error
type BlockSeqCBs ¶
type BlockSeqCBs struct {
Items []*BlockSeqCB `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*BlockSeqCBs) Descriptor ¶
func (*BlockSeqCBs) Descriptor() ([]byte, []int)
func (*BlockSeqCBs) GetItems ¶
func (m *BlockSeqCBs) GetItems() []*BlockSeqCB
func (*BlockSeqCBs) ProtoMessage ¶
func (*BlockSeqCBs) ProtoMessage()
func (*BlockSeqCBs) Reset ¶
func (m *BlockSeqCBs) Reset()
func (*BlockSeqCBs) String ¶
func (m *BlockSeqCBs) String() string
func (*BlockSeqCBs) XXX_DiscardUnknown ¶
func (m *BlockSeqCBs) XXX_DiscardUnknown()
func (*BlockSeqCBs) XXX_Marshal ¶
func (m *BlockSeqCBs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockSeqCBs) XXX_Merge ¶
func (m *BlockSeqCBs) XXX_Merge(src proto.Message)
func (*BlockSeqCBs) XXX_Size ¶
func (m *BlockSeqCBs) XXX_Size() int
func (*BlockSeqCBs) XXX_Unmarshal ¶
func (m *BlockSeqCBs) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
通过block hash记录block的操作类型及add/del:1/2
func (*BlockSequence) Descriptor ¶
func (*BlockSequence) Descriptor() ([]byte, []int)
func (*BlockSequence) GetHash ¶
func (m *BlockSequence) GetHash() []byte
func (*BlockSequence) GetType ¶
func (m *BlockSequence) GetType() int64
func (*BlockSequence) ProtoMessage ¶
func (*BlockSequence) ProtoMessage()
func (*BlockSequence) Reset ¶
func (m *BlockSequence) Reset()
func (*BlockSequence) String ¶
func (m *BlockSequence) String() string
func (*BlockSequence) XXX_DiscardUnknown ¶
func (m *BlockSequence) XXX_DiscardUnknown()
func (*BlockSequence) XXX_Marshal ¶
func (m *BlockSequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockSequence) XXX_Merge ¶
func (m *BlockSequence) XXX_Merge(src proto.Message)
func (*BlockSequence) XXX_Size ¶
func (m *BlockSequence) XXX_Size() int
func (*BlockSequence) XXX_Unmarshal ¶
func (m *BlockSequence) XXX_Unmarshal(b []byte) error
type BlockSequences ¶
type BlockSequences struct {
Items []*BlockSequence `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
resp
func (*BlockSequences) Descriptor ¶
func (*BlockSequences) Descriptor() ([]byte, []int)
func (*BlockSequences) GetItems ¶
func (m *BlockSequences) GetItems() []*BlockSequence
func (*BlockSequences) ProtoMessage ¶
func (*BlockSequences) ProtoMessage()
func (*BlockSequences) Reset ¶
func (m *BlockSequences) Reset()
func (*BlockSequences) String ¶
func (m *BlockSequences) String() string
func (*BlockSequences) XXX_DiscardUnknown ¶
func (m *BlockSequences) XXX_DiscardUnknown()
func (*BlockSequences) XXX_Marshal ¶
func (m *BlockSequences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockSequences) XXX_Merge ¶
func (m *BlockSequences) XXX_Merge(src proto.Message)
func (*BlockSequences) XXX_Size ¶
func (m *BlockSequences) XXX_Size() int
func (*BlockSequences) XXX_Unmarshal ¶
func (m *BlockSequences) XXX_Unmarshal(b []byte) error
type Blocks ¶
type Blocks struct {
Items []*Block `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Blocks) Descriptor ¶
func (*Blocks) ProtoMessage ¶
func (*Blocks) ProtoMessage()
func (*Blocks) XXX_DiscardUnknown ¶
func (m *Blocks) XXX_DiscardUnknown()
func (*Blocks) XXX_Marshal ¶
func (*Blocks) XXX_Unmarshal ¶
type BroadCastData ¶
type BroadCastData struct {
// Types that are valid to be assigned to Value:
// *BroadCastData_Tx
// *BroadCastData_Block
// *BroadCastData_Ping
// *BroadCastData_Version
Value isBroadCastData_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p 广播数据协议
func (*BroadCastData) Descriptor ¶
func (*BroadCastData) Descriptor() ([]byte, []int)
func (*BroadCastData) GetBlock ¶
func (m *BroadCastData) GetBlock() *P2PBlock
func (*BroadCastData) GetPing ¶
func (m *BroadCastData) GetPing() *P2PPing
func (*BroadCastData) GetTx ¶
func (m *BroadCastData) GetTx() *P2PTx
func (*BroadCastData) GetValue ¶
func (m *BroadCastData) GetValue() isBroadCastData_Value
func (*BroadCastData) GetVersion ¶
func (m *BroadCastData) GetVersion() *Versions
func (*BroadCastData) ProtoMessage ¶
func (*BroadCastData) ProtoMessage()
func (*BroadCastData) Reset ¶
func (m *BroadCastData) Reset()
func (*BroadCastData) String ¶
func (m *BroadCastData) String() string
func (*BroadCastData) XXX_DiscardUnknown ¶
func (m *BroadCastData) XXX_DiscardUnknown()
func (*BroadCastData) XXX_Marshal ¶
func (m *BroadCastData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BroadCastData) XXX_Merge ¶
func (m *BroadCastData) XXX_Merge(src proto.Message)
func (*BroadCastData) XXX_OneofFuncs ¶
func (*BroadCastData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*BroadCastData) XXX_Size ¶
func (m *BroadCastData) XXX_Size() int
func (*BroadCastData) XXX_Unmarshal ¶
func (m *BroadCastData) XXX_Unmarshal(b []byte) error
type BroadCastData_Block ¶
type BroadCastData_Block struct {
Block *P2PBlock `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}
type BroadCastData_Ping ¶
type BroadCastData_Ping struct {
Ping *P2PPing `protobuf:"bytes,3,opt,name=ping,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)
//发送签名后交易
SendRawTransaction(ctx context.Context, in *SignedTx, opts ...grpc.CallOption) (*Reply, error)
// 根据哈希查询交易
QueryTransaction(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*TransactionDetail, error)
// 发送交易
SendTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*Reply, 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 *ReqNil, opts ...grpc.CallOption) (*ReplyTxList, error)
//钱包接口
//获取钱包账户信息
GetAccounts(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletAccounts, 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)
//获取当前节点连接的其他节点信息
GetPeerInfo(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*PeerList, error)
//获取最新的Mempool
GetLastMemPool(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ReplyTxList, 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)
//获取程序版本
Version(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*VersionInfo, error)
//是否同步
IsSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
// ntpclock是否同步
IsNtpClockSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
//获取当前节点的网络信息
NetInfo(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*NodeNetInfo, 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)
}
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.ClientConn) Chain33Client
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)
//发送签名后交易
SendRawTransaction(context.Context, *SignedTx) (*Reply, error)
// 根据哈希查询交易
QueryTransaction(context.Context, *ReqHash) (*TransactionDetail, error)
// 发送交易
SendTransaction(context.Context, *Transaction) (*Reply, error)
//通过地址获取交易信息
GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)
//通过哈希数组获取对应的交易
GetTransactionByHashes(context.Context, *ReqHashes) (*TransactionDetails, error)
//缓存接口
GetMemPool(context.Context, *ReqNil) (*ReplyTxList, error)
//钱包接口
//获取钱包账户信息
GetAccounts(context.Context, *ReqNil) (*WalletAccounts, 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)
//获取当前节点连接的其他节点信息
GetPeerInfo(context.Context, *ReqNil) (*PeerList, error)
//获取最新的Mempool
GetLastMemPool(context.Context, *ReqNil) (*ReplyTxList, 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)
//获取程序版本
Version(context.Context, *ReqNil) (*VersionInfo, error)
//是否同步
IsSync(context.Context, *ReqNil) (*Reply, error)
// ntpclock是否同步
IsNtpClockSync(context.Context, *ReqNil) (*Reply, error)
//获取当前节点的网络信息
NetInfo(context.Context, *ReqNil) (*NodeNetInfo, 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)
}
Chain33Server is the server API for Chain33 service.
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ChainExecutor) Descriptor ¶
func (*ChainExecutor) Descriptor() ([]byte, []int)
func (*ChainExecutor) GetDriver ¶
func (m *ChainExecutor) GetDriver() string
func (*ChainExecutor) GetExtra ¶
func (m *ChainExecutor) GetExtra() []byte
func (*ChainExecutor) GetFuncName ¶
func (m *ChainExecutor) GetFuncName() string
func (*ChainExecutor) GetParam ¶
func (m *ChainExecutor) GetParam() []byte
func (*ChainExecutor) GetStateHash ¶
func (m *ChainExecutor) GetStateHash() []byte
func (*ChainExecutor) ProtoMessage ¶
func (*ChainExecutor) ProtoMessage()
func (*ChainExecutor) Reset ¶
func (m *ChainExecutor) Reset()
func (*ChainExecutor) String ¶
func (m *ChainExecutor) String() string
func (*ChainExecutor) XXX_DiscardUnknown ¶
func (m *ChainExecutor) XXX_DiscardUnknown()
func (*ChainExecutor) XXX_Marshal ¶
func (m *ChainExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainExecutor) XXX_Merge ¶
func (m *ChainExecutor) XXX_Merge(src proto.Message)
func (*ChainExecutor) XXX_Size ¶
func (m *ChainExecutor) XXX_Size() int
func (*ChainExecutor) XXX_Unmarshal ¶
func (m *ChainExecutor) XXX_Unmarshal(b []byte) error
type ChainParam ¶
type ChainParam struct {
CoinDevFund int64
CoinReward int64
FutureBlockTime int64
TicketPrice int64
TicketFrozenTime int64
TicketWithdrawTime int64
TicketMinerWaitTime int64
MaxTxNumber int64
PowLimitBits uint32
TargetTimespan time.Duration
TargetTimePerBlock time.Duration
RetargetAdjustmentFactor int64
}
ChainParam 结构体
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
区块链状态
currentHeight : 区块最新高度 mempoolSize :内存池大小 msgQueueSize : 消息队列大小
func (*ChainStatus) Descriptor ¶
func (*ChainStatus) Descriptor() ([]byte, []int)
func (*ChainStatus) GetCurrentHeight ¶
func (m *ChainStatus) GetCurrentHeight() int64
func (*ChainStatus) GetMempoolSize ¶
func (m *ChainStatus) GetMempoolSize() int64
func (*ChainStatus) GetMsgQueueSize ¶
func (m *ChainStatus) GetMsgQueueSize() int64
func (*ChainStatus) ProtoMessage ¶
func (*ChainStatus) ProtoMessage()
func (*ChainStatus) Reset ¶
func (m *ChainStatus) Reset()
func (*ChainStatus) String ¶
func (m *ChainStatus) String() string
func (*ChainStatus) XXX_DiscardUnknown ¶
func (m *ChainStatus) XXX_DiscardUnknown()
func (*ChainStatus) XXX_Marshal ¶
func (m *ChainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainStatus) XXX_Merge ¶
func (m *ChainStatus) XXX_Merge(src proto.Message)
func (*ChainStatus) XXX_Size ¶
func (m *ChainStatus) XXX_Size() int
func (*ChainStatus) XXX_Unmarshal ¶
func (m *ChainStatus) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Checkpoint) Descriptor ¶
func (*Checkpoint) Descriptor() ([]byte, []int)
func (*Checkpoint) GetDigest ¶
func (m *Checkpoint) GetDigest() []byte
func (*Checkpoint) GetSequence ¶
func (m *Checkpoint) GetSequence() uint32
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) Reset ¶
func (m *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (m *Checkpoint) String() string
func (*Checkpoint) XXX_DiscardUnknown ¶
func (m *Checkpoint) XXX_DiscardUnknown()
func (*Checkpoint) XXX_Marshal ¶
func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Checkpoint) XXX_Merge ¶
func (m *Checkpoint) XXX_Merge(src proto.Message)
func (*Checkpoint) XXX_Size ¶
func (m *Checkpoint) XXX_Size() int
func (*Checkpoint) XXX_Unmarshal ¶
func (m *Checkpoint) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ClientReply) Descriptor ¶
func (*ClientReply) Descriptor() ([]byte, []int)
func (*ClientReply) GetClient ¶
func (m *ClientReply) GetClient() string
func (*ClientReply) GetReplica ¶
func (m *ClientReply) GetReplica() uint32
func (*ClientReply) GetResult ¶
func (m *ClientReply) GetResult() *Result
func (*ClientReply) GetTimestamp ¶
func (m *ClientReply) GetTimestamp() string
func (*ClientReply) GetView ¶
func (m *ClientReply) GetView() uint32
func (*ClientReply) ProtoMessage ¶
func (*ClientReply) ProtoMessage()
func (*ClientReply) Reset ¶
func (m *ClientReply) Reset()
func (*ClientReply) String ¶
func (m *ClientReply) String() string
func (*ClientReply) XXX_DiscardUnknown ¶
func (m *ClientReply) XXX_DiscardUnknown()
func (*ClientReply) XXX_Marshal ¶
func (m *ClientReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientReply) XXX_Merge ¶
func (m *ClientReply) XXX_Merge(src proto.Message)
func (*ClientReply) XXX_Size ¶
func (m *ClientReply) XXX_Size() int
func (*ClientReply) XXX_Unmarshal ¶
func (m *ClientReply) XXX_Unmarshal(b []byte) error
type ConfQuery ¶
type ConfQuery struct {
// contains filtered or unexported fields
}
ConfQuery 结构体
type Config ¶
type Config struct {
Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
Log *Log `protobuf:"bytes,2,opt,name=log" json:"log,omitempty"`
Store *Store `protobuf:"bytes,3,opt,name=store" json:"store,omitempty"`
Consensus *Consensus `protobuf:"bytes,5,opt,name=consensus" json:"consensus,omitempty"`
Mempool *Mempool `protobuf:"bytes,6,opt,name=mempool" json:"memPool,omitempty"`
BlockChain *BlockChain `protobuf:"bytes,7,opt,name=blockChain" json:"blockChain,omitempty"`
Wallet *Wallet `protobuf:"bytes,8,opt,name=wallet" json:"wallet,omitempty"`
P2P *P2P `protobuf:"bytes,9,opt,name=p2p" json:"p2p,omitempty"`
RPC *RPC `protobuf:"bytes,10,opt,name=rpc" json:"rpc,omitempty"`
Exec *Exec `protobuf:"bytes,11,opt,name=exec" json:"exec,omitempty"`
TestNet bool `protobuf:"varint,12,opt,name=testNet" json:"testNet,omitempty"`
FixTime bool `protobuf:"varint,13,opt,name=fixTime" json:"fixTime,omitempty"`
Pprof *Pprof `protobuf:"bytes,14,opt,name=pprof" json:"pprof,omitempty"`
Fork *ForkList `protobuf:"bytes,15,opt,name=fork" json:"fork,omitempty"`
Health *HealthCheck `protobuf:"bytes,16,opt,name=health" json:"health,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 valid to be assigned 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ConfigItem) Descriptor ¶
func (*ConfigItem) Descriptor() ([]byte, []int)
func (*ConfigItem) GetAddr ¶
func (m *ConfigItem) GetAddr() string
func (*ConfigItem) GetArr ¶
func (m *ConfigItem) GetArr() *ArrayConfig
func (*ConfigItem) GetInt ¶
func (m *ConfigItem) GetInt() *Int32Config
func (*ConfigItem) GetKey ¶
func (m *ConfigItem) GetKey() string
func (*ConfigItem) GetStr ¶
func (m *ConfigItem) GetStr() *StringConfig
func (*ConfigItem) GetTy ¶
func (m *ConfigItem) GetTy() int32
func (*ConfigItem) GetValue ¶
func (m *ConfigItem) GetValue() isConfigItem_Value
func (*ConfigItem) ProtoMessage ¶
func (*ConfigItem) ProtoMessage()
func (*ConfigItem) Reset ¶
func (m *ConfigItem) Reset()
func (*ConfigItem) String ¶
func (m *ConfigItem) String() string
func (*ConfigItem) XXX_DiscardUnknown ¶
func (m *ConfigItem) XXX_DiscardUnknown()
func (*ConfigItem) XXX_Marshal ¶
func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigItem) XXX_Merge ¶
func (m *ConfigItem) XXX_Merge(src proto.Message)
func (*ConfigItem) XXX_OneofFuncs ¶
func (*ConfigItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*ConfigItem) XXX_Size ¶
func (m *ConfigItem) XXX_Size() int
func (*ConfigItem) XXX_Unmarshal ¶
func (m *ConfigItem) XXX_Unmarshal(b []byte) error
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
}
ConfigSubModule 子模块的配置
type Consensus ¶
type Consensus struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
GenesisBlockTime int64 `protobuf:"varint,2,opt,name=genesisBlockTime" json:"genesisBlockTime,omitempty"`
Minerstart bool `protobuf:"varint,3,opt,name=minerstart" json:"minerstart,omitempty"`
Genesis string `protobuf:"bytes,4,opt,name=genesis" json:"genesis,omitempty"`
HotkeyAddr string `protobuf:"bytes,5,opt,name=hotkeyAddr" json:"hotkeyAddr,omitempty"`
ForceMining bool `protobuf:"varint,6,opt,name=forceMining" json:"forceMining,omitempty"`
}
Consensus 配置
type CreateTransactionGroup ¶
type CreateTransactionGroup struct {
Txs []string `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CreateTransactionGroup) Descriptor ¶
func (*CreateTransactionGroup) Descriptor() ([]byte, []int)
func (*CreateTransactionGroup) GetTxs ¶
func (m *CreateTransactionGroup) GetTxs() []string
func (*CreateTransactionGroup) ProtoMessage ¶
func (*CreateTransactionGroup) ProtoMessage()
func (*CreateTransactionGroup) Reset ¶
func (m *CreateTransactionGroup) Reset()
func (*CreateTransactionGroup) String ¶
func (m *CreateTransactionGroup) String() string
func (*CreateTransactionGroup) XXX_DiscardUnknown ¶
func (m *CreateTransactionGroup) XXX_DiscardUnknown()
func (*CreateTransactionGroup) XXX_Marshal ¶
func (m *CreateTransactionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTransactionGroup) XXX_Merge ¶
func (m *CreateTransactionGroup) XXX_Merge(src proto.Message)
func (*CreateTransactionGroup) XXX_Size ¶
func (m *CreateTransactionGroup) XXX_Size() int
func (*CreateTransactionGroup) XXX_Unmarshal ¶
func (m *CreateTransactionGroup) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CreateTx) Descriptor ¶
func (*CreateTx) GetExecName ¶
func (*CreateTx) GetIsToken ¶
func (*CreateTx) GetIsWithdraw ¶
func (*CreateTx) GetTokenSymbol ¶
func (*CreateTx) ProtoMessage ¶
func (*CreateTx) ProtoMessage()
func (*CreateTx) XXX_DiscardUnknown ¶
func (m *CreateTx) XXX_DiscardUnknown()
func (*CreateTx) XXX_Marshal ¶
func (*CreateTx) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CreateTxIn) Descriptor ¶
func (*CreateTxIn) Descriptor() ([]byte, []int)
func (*CreateTxIn) GetActionName ¶
func (m *CreateTxIn) GetActionName() string
func (*CreateTxIn) GetExecer ¶
func (m *CreateTxIn) GetExecer() []byte
func (*CreateTxIn) GetPayload ¶
func (m *CreateTxIn) GetPayload() []byte
func (*CreateTxIn) ProtoMessage ¶
func (*CreateTxIn) ProtoMessage()
func (*CreateTxIn) Reset ¶
func (m *CreateTxIn) Reset()
func (*CreateTxIn) String ¶
func (m *CreateTxIn) String() string
func (*CreateTxIn) XXX_DiscardUnknown ¶
func (m *CreateTxIn) XXX_DiscardUnknown()
func (*CreateTxIn) XXX_Marshal ¶
func (m *CreateTxIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTxIn) XXX_Merge ¶
func (m *CreateTxIn) XXX_Merge(src proto.Message)
func (*CreateTxIn) XXX_Size ¶
func (m *CreateTxIn) XXX_Size() int
func (*CreateTxIn) XXX_Unmarshal ¶
func (m *CreateTxIn) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Entry) Descriptor ¶
func (*Entry) GetSequence ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) XXX_DiscardUnknown ¶
func (m *Entry) XXX_DiscardUnknown()
func (*Entry) XXX_Marshal ¶
func (*Entry) XXX_Unmarshal ¶
type Exec ¶
type Exec struct {
MinExecFee int64 `protobuf:"varint,1,opt,name=minExecFee" json:"minExecFee,omitempty"`
IsFree bool `protobuf:"varint,2,opt,name=isFree" json:"isFree,omitempty"`
EnableStat bool `protobuf:"varint,3,opt,name=enableStat" json:"enableStat,omitempty"`
EnableMVCC bool `protobuf:"varint,4,opt,name=enableMVCC" json:"enableMVCC,omitempty"`
DisableAddrIndex bool `protobuf:"varint,7,opt,name=disableAddrIndex" json:"disableAddrIndex,omitempty"`
Alias []string `protobuf:"bytes,5,rep,name=alias" json:"alias,omitempty"`
SaveTokenTxList bool `protobuf:"varint,6,opt,name=saveTokenTxList" json:"saveTokenTxList,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ExecAccount) Descriptor ¶
func (*ExecAccount) Descriptor() ([]byte, []int)
func (*ExecAccount) GetAccount ¶
func (m *ExecAccount) GetAccount() *Account
func (*ExecAccount) GetExecer ¶
func (m *ExecAccount) GetExecer() string
func (*ExecAccount) ProtoMessage ¶
func (*ExecAccount) ProtoMessage()
func (*ExecAccount) Reset ¶
func (m *ExecAccount) Reset()
func (*ExecAccount) String ¶
func (m *ExecAccount) String() string
func (*ExecAccount) XXX_DiscardUnknown ¶
func (m *ExecAccount) XXX_DiscardUnknown()
func (*ExecAccount) XXX_Marshal ¶
func (m *ExecAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecAccount) XXX_Merge ¶
func (m *ExecAccount) XXX_Merge(src proto.Message)
func (*ExecAccount) XXX_Size ¶
func (m *ExecAccount) XXX_Size() int
func (*ExecAccount) XXX_Unmarshal ¶
func (m *ExecAccount) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ExecBalanceItem) Descriptor ¶
func (*ExecBalanceItem) Descriptor() ([]byte, []int)
func (*ExecBalanceItem) GetActive ¶
func (m *ExecBalanceItem) GetActive() int64
func (*ExecBalanceItem) GetExecAddr ¶
func (m *ExecBalanceItem) GetExecAddr() []byte
func (*ExecBalanceItem) GetFrozen ¶
func (m *ExecBalanceItem) GetFrozen() int64
func (*ExecBalanceItem) ProtoMessage ¶
func (*ExecBalanceItem) ProtoMessage()
func (*ExecBalanceItem) Reset ¶
func (m *ExecBalanceItem) Reset()
func (*ExecBalanceItem) String ¶
func (m *ExecBalanceItem) String() string
func (*ExecBalanceItem) XXX_DiscardUnknown ¶
func (m *ExecBalanceItem) XXX_DiscardUnknown()
func (*ExecBalanceItem) XXX_Marshal ¶
func (m *ExecBalanceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecBalanceItem) XXX_Merge ¶
func (m *ExecBalanceItem) XXX_Merge(src proto.Message)
func (*ExecBalanceItem) XXX_Size ¶
func (m *ExecBalanceItem) XXX_Size() int
func (*ExecBalanceItem) XXX_Unmarshal ¶
func (m *ExecBalanceItem) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ExecTxList) Descriptor ¶
func (*ExecTxList) Descriptor() ([]byte, []int)
func (*ExecTxList) GetBlockTime ¶
func (m *ExecTxList) GetBlockTime() int64
func (*ExecTxList) GetDifficulty ¶
func (m *ExecTxList) GetDifficulty() uint64
func (*ExecTxList) GetHeight ¶
func (m *ExecTxList) GetHeight() int64
func (*ExecTxList) GetIsMempool ¶
func (m *ExecTxList) GetIsMempool() bool
func (*ExecTxList) GetMainHash ¶
func (m *ExecTxList) GetMainHash() []byte
func (*ExecTxList) GetMainHeight ¶
func (m *ExecTxList) GetMainHeight() int64
func (*ExecTxList) GetParentHash ¶
func (m *ExecTxList) GetParentHash() []byte
func (*ExecTxList) GetStateHash ¶
func (m *ExecTxList) GetStateHash() []byte
func (*ExecTxList) GetTxs ¶
func (m *ExecTxList) GetTxs() []*Transaction
func (*ExecTxList) ProtoMessage ¶
func (*ExecTxList) ProtoMessage()
func (*ExecTxList) Reset ¶
func (m *ExecTxList) Reset()
func (*ExecTxList) String ¶
func (m *ExecTxList) String() string
func (*ExecTxList) XXX_DiscardUnknown ¶
func (m *ExecTxList) XXX_DiscardUnknown()
func (*ExecTxList) XXX_Marshal ¶
func (m *ExecTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecTxList) XXX_Merge ¶
func (m *ExecTxList) XXX_Merge(src proto.Message)
func (*ExecTxList) XXX_Size ¶
func (m *ExecTxList) XXX_Size() int
func (*ExecTxList) XXX_Unmarshal ¶
func (m *ExecTxList) XXX_Unmarshal(b []byte) error
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) GetValueTypeMap ¶
func (base *ExecTypeBase) GetValueTypeMap() map[string]reflect.Type
GetValueTypeMap 获取执行函数
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 设置子执行器
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
GetValueTypeMap() map[string]reflect.Type
//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)
}
ExecutorType 执行器接口
type ForkList ¶
type ForkList struct {
System map[string]int64 `` /* 133-byte string literal not displayed */
Sub map[string]map[string]int64 `` /* 127-byte string literal not displayed */
}
ForkList fork列表配置
type Forks ¶
type Forks struct {
// contains filtered or unexported fields
}
Forks fork分叉结构体
func (*Forks) CloneMaxHeight ¶
CloneMaxHeight fork信息拷贝并设置所有fork高度MaxHeight
func (*Forks) GetDappFork ¶
GetDappFork 获取dapp fork信息
func (*Forks) IsDappFork ¶
IsDappFork 是否dapp fork高度
func (*Forks) ReplaceDappFork ¶
ReplaceDappFork 替换dapp的fork信息
func (*Forks) ReplaceFork ¶
ReplaceFork 替换fork信息
func (*Forks) SetAllFork ¶
SetAllFork 设置所有fork的高度
func (*Forks) SetDappFork ¶
SetDappFork 设置dapp的fork信息
type GenSeedLang ¶
type GenSeedLang struct {
Lang int32 `protobuf:"varint,1,opt,name=lang,proto3" json:"lang,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GenSeedLang) Descriptor ¶
func (*GenSeedLang) Descriptor() ([]byte, []int)
func (*GenSeedLang) GetLang ¶
func (m *GenSeedLang) GetLang() int32
func (*GenSeedLang) ProtoMessage ¶
func (*GenSeedLang) ProtoMessage()
func (*GenSeedLang) Reset ¶
func (m *GenSeedLang) Reset()
func (*GenSeedLang) String ¶
func (m *GenSeedLang) String() string
func (*GenSeedLang) XXX_DiscardUnknown ¶
func (m *GenSeedLang) XXX_DiscardUnknown()
func (*GenSeedLang) XXX_Marshal ¶
func (m *GenSeedLang) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenSeedLang) XXX_Merge ¶
func (m *GenSeedLang) XXX_Merge(src proto.Message)
func (*GenSeedLang) XXX_Size ¶
func (m *GenSeedLang) XXX_Size() int
func (*GenSeedLang) XXX_Unmarshal ¶
func (m *GenSeedLang) XXX_Unmarshal(b []byte) error
type Genesis ¶
type Genesis struct {
Isrun bool `protobuf:"varint,1,opt,name=isrun,proto3" json:"isrun,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Genesis) Descriptor ¶
func (*Genesis) ProtoMessage ¶
func (*Genesis) ProtoMessage()
func (*Genesis) XXX_DiscardUnknown ¶
func (m *Genesis) XXX_DiscardUnknown()
func (*Genesis) XXX_Marshal ¶
func (*Genesis) XXX_Unmarshal ¶
type GetSeedByPw ¶
type GetSeedByPw struct {
Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetSeedByPw) Descriptor ¶
func (*GetSeedByPw) Descriptor() ([]byte, []int)
func (*GetSeedByPw) GetPasswd ¶
func (m *GetSeedByPw) GetPasswd() string
func (*GetSeedByPw) ProtoMessage ¶
func (*GetSeedByPw) ProtoMessage()
func (*GetSeedByPw) Reset ¶
func (m *GetSeedByPw) Reset()
func (*GetSeedByPw) String ¶
func (m *GetSeedByPw) String() string
func (*GetSeedByPw) XXX_DiscardUnknown ¶
func (m *GetSeedByPw) XXX_DiscardUnknown()
func (*GetSeedByPw) XXX_Marshal ¶
func (m *GetSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSeedByPw) XXX_Merge ¶
func (m *GetSeedByPw) XXX_Merge(src proto.Message)
func (*GetSeedByPw) XXX_Size ¶
func (m *GetSeedByPw) XXX_Size() int
func (*GetSeedByPw) XXX_Unmarshal ¶
func (m *GetSeedByPw) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
区块头信息
version : 版本信息 parentHash :父哈希 txHash : 交易根哈希 stateHash :状态哈希 height : 区块高度 blockTime :区块产生时的时标 txCount : 区块上所有交易个数 difficulty :区块难度系数, signature :交易签名
func (*Header) Descriptor ¶
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) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type Headers ¶
type Headers struct {
Items []*Header `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
resp
func (*Headers) Descriptor ¶
func (*Headers) ProtoMessage ¶
func (*Headers) ProtoMessage()
func (*Headers) XXX_DiscardUnknown ¶
func (m *Headers) XXX_DiscardUnknown()
func (*Headers) XXX_Marshal ¶
func (*Headers) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*HeadersPid) Descriptor ¶
func (*HeadersPid) Descriptor() ([]byte, []int)
func (*HeadersPid) GetHeaders ¶
func (m *HeadersPid) GetHeaders() *Headers
func (*HeadersPid) GetPid ¶
func (m *HeadersPid) GetPid() string
func (*HeadersPid) ProtoMessage ¶
func (*HeadersPid) ProtoMessage()
func (*HeadersPid) Reset ¶
func (m *HeadersPid) Reset()
func (*HeadersPid) String ¶
func (m *HeadersPid) String() string
func (*HeadersPid) XXX_DiscardUnknown ¶
func (m *HeadersPid) XXX_DiscardUnknown()
func (*HeadersPid) XXX_Marshal ¶
func (m *HeadersPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeadersPid) XXX_Merge ¶
func (m *HeadersPid) XXX_Merge(src proto.Message)
func (*HeadersPid) XXX_Size ¶
func (m *HeadersPid) XXX_Size() int
func (*HeadersPid) XXX_Unmarshal ¶
func (m *HeadersPid) XXX_Unmarshal(b []byte) error
type HealthCheck ¶
type HealthCheck struct {
ListenAddr string `protobuf:"bytes,1,opt,name=listenAddr" json:"listenAddr,omitempty"`
CheckInterval uint32 `protobuf:"varint,2,opt,name=checkInterval" json:"checkInterval,omitempty"`
UnSyncMaxTimes uint32 `protobuf:"varint,3,opt,name=unSyncMaxTimes" json:"unSyncMaxTimes,omitempty"`
}
HealthCheck 配置
type HexTx ¶
type HexTx struct {
Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*HexTx) Descriptor ¶
func (*HexTx) ProtoMessage ¶
func (*HexTx) ProtoMessage()
func (*HexTx) XXX_DiscardUnknown ¶
func (m *HexTx) XXX_DiscardUnknown()
func (*HexTx) XXX_Marshal ¶
func (*HexTx) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*HistoryCertStore) Descriptor ¶
func (*HistoryCertStore) Descriptor() ([]byte, []int)
func (*HistoryCertStore) GetCurHeigth ¶
func (m *HistoryCertStore) GetCurHeigth() int64
func (*HistoryCertStore) GetIntermediateCerts ¶
func (m *HistoryCertStore) GetIntermediateCerts() [][]byte
func (*HistoryCertStore) GetNxtHeight ¶
func (m *HistoryCertStore) GetNxtHeight() int64
func (*HistoryCertStore) GetRevocationList ¶
func (m *HistoryCertStore) GetRevocationList() [][]byte
func (*HistoryCertStore) GetRootcerts ¶
func (m *HistoryCertStore) GetRootcerts() [][]byte
func (*HistoryCertStore) ProtoMessage ¶
func (*HistoryCertStore) ProtoMessage()
func (*HistoryCertStore) Reset ¶
func (m *HistoryCertStore) Reset()
func (*HistoryCertStore) String ¶
func (m *HistoryCertStore) String() string
func (*HistoryCertStore) XXX_DiscardUnknown ¶
func (m *HistoryCertStore) XXX_DiscardUnknown()
func (*HistoryCertStore) XXX_Marshal ¶
func (m *HistoryCertStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoryCertStore) XXX_Merge ¶
func (m *HistoryCertStore) XXX_Merge(src proto.Message)
func (*HistoryCertStore) XXX_Size ¶
func (m *HistoryCertStore) XXX_Size() int
func (*HistoryCertStore) XXX_Unmarshal ¶
func (m *HistoryCertStore) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*InnerNode) Descriptor ¶
func (*InnerNode) GetLeftHash ¶
func (*InnerNode) GetRightHash ¶
func (*InnerNode) ProtoMessage ¶
func (*InnerNode) ProtoMessage()
func (*InnerNode) XXX_DiscardUnknown ¶
func (m *InnerNode) XXX_DiscardUnknown()
func (*InnerNode) XXX_Marshal ¶
func (*InnerNode) XXX_Unmarshal ¶
type Int32 ¶
type Int32 struct {
Data int32 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Int32) Descriptor ¶
func (*Int32) ProtoMessage ¶
func (*Int32) ProtoMessage()
func (*Int32) XXX_DiscardUnknown ¶
func (m *Int32) XXX_DiscardUnknown()
func (*Int32) XXX_Marshal ¶
func (*Int32) XXX_Unmarshal ¶
type Int32Config ¶
type Int32Config struct {
Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Int32Config) Descriptor ¶
func (*Int32Config) Descriptor() ([]byte, []int)
func (*Int32Config) GetValue ¶
func (m *Int32Config) GetValue() int32
func (*Int32Config) ProtoMessage ¶
func (*Int32Config) ProtoMessage()
func (*Int32Config) Reset ¶
func (m *Int32Config) Reset()
func (*Int32Config) String ¶
func (m *Int32Config) String() string
func (*Int32Config) XXX_DiscardUnknown ¶
func (m *Int32Config) XXX_DiscardUnknown()
func (*Int32Config) XXX_Marshal ¶
func (m *Int32Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Int32Config) XXX_Merge ¶
func (m *Int32Config) XXX_Merge(src proto.Message)
func (*Int32Config) XXX_Size ¶
func (m *Int32Config) XXX_Size() int
func (*Int32Config) XXX_Unmarshal ¶
func (m *Int32Config) XXX_Unmarshal(b []byte) error
type Int64 ¶
type Int64 struct {
Data int64 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Int64) Descriptor ¶
func (*Int64) ProtoMessage ¶
func (*Int64) ProtoMessage()
func (*Int64) XXX_DiscardUnknown ¶
func (m *Int64) XXX_DiscardUnknown()
func (*Int64) XXX_Marshal ¶
func (*Int64) XXX_Unmarshal ¶
type InvData ¶
type InvData struct {
// Types that are valid to be assigned to Value:
// *InvData_Tx
// *InvData_Block
Value isInvData_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* inv 请求协议
func (*InvData) Descriptor ¶
func (*InvData) GetTx ¶
func (m *InvData) GetTx() *Transaction
func (*InvData) ProtoMessage ¶
func (*InvData) ProtoMessage()
func (*InvData) XXX_DiscardUnknown ¶
func (m *InvData) XXX_DiscardUnknown()
func (*InvData) XXX_Marshal ¶
func (*InvData) XXX_OneofFuncs ¶
func (*InvData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*InvData) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* inv 返回数据
func (*InvDatas) Descriptor ¶
func (*InvDatas) ProtoMessage ¶
func (*InvDatas) ProtoMessage()
func (*InvDatas) XXX_DiscardUnknown ¶
func (m *InvDatas) XXX_DiscardUnknown()
func (*InvDatas) XXX_Marshal ¶
func (*InvDatas) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
ty=MSG_TX MSG_BLOCK
func (*Inventory) Descriptor ¶
func (*Inventory) ProtoMessage ¶
func (*Inventory) ProtoMessage()
func (*Inventory) XXX_DiscardUnknown ¶
func (m *Inventory) XXX_DiscardUnknown()
func (*Inventory) XXX_Marshal ¶
func (*Inventory) XXX_Unmarshal ¶
type IsCaughtUp ¶
type IsCaughtUp struct {
Iscaughtup bool `protobuf:"varint,1,opt,name=Iscaughtup,proto3" json:"Iscaughtup,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
区块追赶主链状态,用于判断本节点区块是否已经同步好
func (*IsCaughtUp) Descriptor ¶
func (*IsCaughtUp) Descriptor() ([]byte, []int)
func (*IsCaughtUp) GetIscaughtup ¶
func (m *IsCaughtUp) GetIscaughtup() bool
func (*IsCaughtUp) ProtoMessage ¶
func (*IsCaughtUp) ProtoMessage()
func (*IsCaughtUp) Reset ¶
func (m *IsCaughtUp) Reset()
func (*IsCaughtUp) String ¶
func (m *IsCaughtUp) String() string
func (*IsCaughtUp) XXX_DiscardUnknown ¶
func (m *IsCaughtUp) XXX_DiscardUnknown()
func (*IsCaughtUp) XXX_Marshal ¶
func (m *IsCaughtUp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsCaughtUp) XXX_Merge ¶
func (m *IsCaughtUp) XXX_Merge(src proto.Message)
func (*IsCaughtUp) XXX_Size ¶
func (m *IsCaughtUp) XXX_Size() int
func (*IsCaughtUp) XXX_Unmarshal ¶
func (m *IsCaughtUp) XXX_Unmarshal(b []byte) error
type IsNtpClockSync ¶
type IsNtpClockSync struct {
Isntpclocksync bool `protobuf:"varint,1,opt,name=isntpclocksync,proto3" json:"isntpclocksync,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
ntp时钟状态
func (*IsNtpClockSync) Descriptor ¶
func (*IsNtpClockSync) Descriptor() ([]byte, []int)
func (*IsNtpClockSync) GetIsntpclocksync ¶
func (m *IsNtpClockSync) GetIsntpclocksync() bool
func (*IsNtpClockSync) ProtoMessage ¶
func (*IsNtpClockSync) ProtoMessage()
func (*IsNtpClockSync) Reset ¶
func (m *IsNtpClockSync) Reset()
func (*IsNtpClockSync) String ¶
func (m *IsNtpClockSync) String() string
func (*IsNtpClockSync) XXX_DiscardUnknown ¶
func (m *IsNtpClockSync) XXX_DiscardUnknown()
func (*IsNtpClockSync) XXX_Marshal ¶
func (m *IsNtpClockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsNtpClockSync) XXX_Merge ¶
func (m *IsNtpClockSync) XXX_Merge(src proto.Message)
func (*IsNtpClockSync) XXX_Size ¶
func (m *IsNtpClockSync) XXX_Size() int
func (*IsNtpClockSync) XXX_Unmarshal ¶
func (m *IsNtpClockSync) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
迭代查询symbol代币总额
func (*IterateRangeByStateHash) Descriptor ¶
func (*IterateRangeByStateHash) Descriptor() ([]byte, []int)
func (*IterateRangeByStateHash) GetCount ¶
func (m *IterateRangeByStateHash) GetCount() int64
func (*IterateRangeByStateHash) GetEnd ¶
func (m *IterateRangeByStateHash) GetEnd() []byte
func (*IterateRangeByStateHash) GetStart ¶
func (m *IterateRangeByStateHash) GetStart() []byte
func (*IterateRangeByStateHash) GetStateHash ¶
func (m *IterateRangeByStateHash) GetStateHash() []byte
func (*IterateRangeByStateHash) ProtoMessage ¶
func (*IterateRangeByStateHash) ProtoMessage()
func (*IterateRangeByStateHash) Reset ¶
func (m *IterateRangeByStateHash) Reset()
func (*IterateRangeByStateHash) String ¶
func (m *IterateRangeByStateHash) String() string
func (*IterateRangeByStateHash) XXX_DiscardUnknown ¶
func (m *IterateRangeByStateHash) XXX_DiscardUnknown()
func (*IterateRangeByStateHash) XXX_Marshal ¶
func (m *IterateRangeByStateHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IterateRangeByStateHash) XXX_Merge ¶
func (m *IterateRangeByStateHash) XXX_Merge(src proto.Message)
func (*IterateRangeByStateHash) XXX_Size ¶
func (m *IterateRangeByStateHash) XXX_Size() int
func (*IterateRangeByStateHash) XXX_Unmarshal ¶
func (m *IterateRangeByStateHash) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*KeyValue) Descriptor ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) XXX_DiscardUnknown ¶
func (m *KeyValue) XXX_DiscardUnknown()
func (*KeyValue) XXX_Marshal ¶
func (*KeyValue) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
merkle avl tree
func (*LeafNode) Descriptor ¶
func (*LeafNode) ProtoMessage ¶
func (*LeafNode) ProtoMessage()
func (*LeafNode) XXX_DiscardUnknown ¶
func (m *LeafNode) XXX_DiscardUnknown()
func (*LeafNode) XXX_Marshal ¶
func (*LeafNode) XXX_Unmarshal ¶
type LocalDBGet ¶
type LocalDBGet struct {
Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LocalDBGet) Descriptor ¶
func (*LocalDBGet) Descriptor() ([]byte, []int)
func (*LocalDBGet) GetKeys ¶
func (m *LocalDBGet) GetKeys() [][]byte
func (*LocalDBGet) ProtoMessage ¶
func (*LocalDBGet) ProtoMessage()
func (*LocalDBGet) Reset ¶
func (m *LocalDBGet) Reset()
func (*LocalDBGet) String ¶
func (m *LocalDBGet) String() string
func (*LocalDBGet) XXX_DiscardUnknown ¶
func (m *LocalDBGet) XXX_DiscardUnknown()
func (*LocalDBGet) XXX_Marshal ¶
func (m *LocalDBGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalDBGet) XXX_Merge ¶
func (m *LocalDBGet) XXX_Merge(src proto.Message)
func (*LocalDBGet) XXX_Size ¶
func (m *LocalDBGet) XXX_Size() int
func (*LocalDBGet) XXX_Unmarshal ¶
func (m *LocalDBGet) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LocalDBList) Descriptor ¶
func (*LocalDBList) Descriptor() ([]byte, []int)
func (*LocalDBList) GetCount ¶
func (m *LocalDBList) GetCount() int32
func (*LocalDBList) GetDirection ¶
func (m *LocalDBList) GetDirection() int32
func (*LocalDBList) GetKey ¶
func (m *LocalDBList) GetKey() []byte
func (*LocalDBList) GetPrefix ¶
func (m *LocalDBList) GetPrefix() []byte
func (*LocalDBList) ProtoMessage ¶
func (*LocalDBList) ProtoMessage()
func (*LocalDBList) Reset ¶
func (m *LocalDBList) Reset()
func (*LocalDBList) String ¶
func (m *LocalDBList) String() string
func (*LocalDBList) XXX_DiscardUnknown ¶
func (m *LocalDBList) XXX_DiscardUnknown()
func (*LocalDBList) XXX_Marshal ¶
func (m *LocalDBList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalDBList) XXX_Merge ¶
func (m *LocalDBList) XXX_Merge(src proto.Message)
func (*LocalDBList) XXX_Size ¶
func (m *LocalDBList) XXX_Size() int
func (*LocalDBList) XXX_Unmarshal ¶
func (m *LocalDBList) XXX_Unmarshal(b []byte) error
type LocalDBSet ¶
type LocalDBSet struct {
KV []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LocalDBSet) Descriptor ¶
func (*LocalDBSet) Descriptor() ([]byte, []int)
func (*LocalDBSet) GetKV ¶
func (m *LocalDBSet) GetKV() []*KeyValue
func (*LocalDBSet) ProtoMessage ¶
func (*LocalDBSet) ProtoMessage()
func (*LocalDBSet) Reset ¶
func (m *LocalDBSet) Reset()
func (*LocalDBSet) String ¶
func (m *LocalDBSet) String() string
func (*LocalDBSet) XXX_DiscardUnknown ¶
func (m *LocalDBSet) XXX_DiscardUnknown()
func (*LocalDBSet) XXX_Marshal ¶
func (m *LocalDBSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalDBSet) XXX_Merge ¶
func (m *LocalDBSet) XXX_Merge(src proto.Message)
func (*LocalDBSet) XXX_Size ¶
func (m *LocalDBSet) XXX_Size() int
func (*LocalDBSet) XXX_Unmarshal ¶
func (m *LocalDBSet) XXX_Unmarshal(b []byte) error
type LocalReplyValue ¶
type LocalReplyValue struct {
Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LocalReplyValue) Descriptor ¶
func (*LocalReplyValue) Descriptor() ([]byte, []int)
func (*LocalReplyValue) GetValues ¶
func (m *LocalReplyValue) GetValues() [][]byte
func (*LocalReplyValue) ProtoMessage ¶
func (*LocalReplyValue) ProtoMessage()
func (*LocalReplyValue) Reset ¶
func (m *LocalReplyValue) Reset()
func (*LocalReplyValue) String ¶
func (m *LocalReplyValue) String() string
func (*LocalReplyValue) XXX_DiscardUnknown ¶
func (m *LocalReplyValue) XXX_DiscardUnknown()
func (*LocalReplyValue) XXX_Marshal ¶
func (m *LocalReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalReplyValue) XXX_Merge ¶
func (m *LocalReplyValue) XXX_Merge(src proto.Message)
func (*LocalReplyValue) XXX_Size ¶
func (m *LocalReplyValue) XXX_Size() int
func (*LocalReplyValue) XXX_Unmarshal ¶
func (m *LocalReplyValue) XXX_Unmarshal(b []byte) error
type Log ¶
type Log struct {
// 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
Loglevel string `protobuf:"bytes,1,opt,name=loglevel" json:"loglevel,omitempty"`
LogConsoleLevel string `protobuf:"bytes,2,opt,name=logConsoleLevel" json:"logConsoleLevel,omitempty"`
// 日志文件名,可带目录,所有生成的日志文件都放到此目录下
LogFile string `protobuf:"bytes,3,opt,name=logFile" json:"logFile,omitempty"`
// 单个日志文件的最大值(单位:兆)
MaxFileSize uint32 `protobuf:"varint,4,opt,name=maxFileSize" json:"maxFileSize,omitempty"`
// 最多保存的历史日志文件个数
MaxBackups uint32 `protobuf:"varint,5,opt,name=maxBackups" json:"maxBackups,omitempty"`
// 最多保存的历史日志消息(单位:天)
MaxAge uint32 `protobuf:"varint,6,opt,name=maxAge" json:"maxAge,omitempty"`
// 日志文件名是否使用本地事件(否则使用UTC时间)
LocalTime bool `protobuf:"varint,7,opt,name=localTime" json:"localTime,omitempty"`
// 历史日志文件是否压缩(压缩格式为gz)
Compress bool `protobuf:"varint,8,opt,name=compress" json:"compress,omitempty"`
// 是否打印调用源文件和行号
CallerFile bool `protobuf:"varint,9,opt,name=callerFile" json:"callerFile,omitempty"`
// 是否打印调用方法
CallerFunction bool `protobuf:"varint,10,opt,name=callerFunction" 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MAVLProof) Descriptor ¶
func (*MAVLProof) GetInnerNodes ¶
func (*MAVLProof) GetLeafHash ¶
func (*MAVLProof) GetRootHash ¶
func (*MAVLProof) ProtoMessage ¶
func (*MAVLProof) ProtoMessage()
func (*MAVLProof) XXX_DiscardUnknown ¶
func (m *MAVLProof) XXX_DiscardUnknown()
func (*MAVLProof) XXX_Marshal ¶
func (*MAVLProof) XXX_Unmarshal ¶
type Mempool ¶
type Mempool struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
PoolCacheSize int64 `protobuf:"varint,1,opt,name=poolCacheSize" json:"poolCacheSize,omitempty"`
MinTxFee int64 `protobuf:"varint,2,opt,name=minTxFee" json:"minTxFee,omitempty"`
ForceAccept bool `protobuf:"varint,3,opt,name=forceAccept" json:"forceAccept,omitempty"`
MaxTxNumPerAccount int64 `protobuf:"varint,4,opt,name=maxTxNumPerAccount" json:"maxTxNumPerAccount,omitempty"`
MaxTxLast int64 `protobuf:"varint,4,opt,name=maxTxLast" json:"maxTxLast,omitempty"`
}
Mempool 配置
type MempoolSize ¶
type MempoolSize struct {
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MempoolSize) Descriptor ¶
func (*MempoolSize) Descriptor() ([]byte, []int)
func (*MempoolSize) GetSize ¶
func (m *MempoolSize) GetSize() int64
func (*MempoolSize) ProtoMessage ¶
func (*MempoolSize) ProtoMessage()
func (*MempoolSize) Reset ¶
func (m *MempoolSize) Reset()
func (*MempoolSize) String ¶
func (m *MempoolSize) String() string
func (*MempoolSize) XXX_DiscardUnknown ¶
func (m *MempoolSize) XXX_DiscardUnknown()
func (*MempoolSize) XXX_Marshal ¶
func (m *MempoolSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MempoolSize) XXX_Merge ¶
func (m *MempoolSize) XXX_Merge(src proto.Message)
func (*MempoolSize) XXX_Size ¶
func (m *MempoolSize) XXX_Size() int
func (*MempoolSize) XXX_Unmarshal ¶
func (m *MempoolSize) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ModifyConfig) Descriptor ¶
func (*ModifyConfig) Descriptor() ([]byte, []int)
func (*ModifyConfig) GetAddr ¶
func (m *ModifyConfig) GetAddr() string
func (*ModifyConfig) GetKey ¶
func (m *ModifyConfig) GetKey() string
func (*ModifyConfig) GetOp ¶
func (m *ModifyConfig) GetOp() string
func (*ModifyConfig) GetValue ¶
func (m *ModifyConfig) GetValue() string
func (*ModifyConfig) ProtoMessage ¶
func (*ModifyConfig) ProtoMessage()
func (*ModifyConfig) Reset ¶
func (m *ModifyConfig) Reset()
func (*ModifyConfig) String ¶
func (m *ModifyConfig) String() string
func (*ModifyConfig) XXX_DiscardUnknown ¶
func (m *ModifyConfig) XXX_DiscardUnknown()
func (*ModifyConfig) XXX_Marshal ¶
func (m *ModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModifyConfig) XXX_Merge ¶
func (m *ModifyConfig) XXX_Merge(src proto.Message)
func (*ModifyConfig) XXX_Size ¶
func (m *ModifyConfig) XXX_Size() int
func (*ModifyConfig) XXX_Unmarshal ¶
func (m *ModifyConfig) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
payAddr 可以支持 1. 地址 2. 私钥
func (*NoBalanceTx) Descriptor ¶
func (*NoBalanceTx) Descriptor() ([]byte, []int)
func (*NoBalanceTx) GetExpire ¶
func (m *NoBalanceTx) GetExpire() string
func (*NoBalanceTx) GetPayAddr ¶
func (m *NoBalanceTx) GetPayAddr() string
func (*NoBalanceTx) GetPrivkey ¶
func (m *NoBalanceTx) GetPrivkey() string
func (*NoBalanceTx) GetTxHex ¶
func (m *NoBalanceTx) GetTxHex() string
func (*NoBalanceTx) ProtoMessage ¶
func (*NoBalanceTx) ProtoMessage()
func (*NoBalanceTx) Reset ¶
func (m *NoBalanceTx) Reset()
func (*NoBalanceTx) String ¶
func (m *NoBalanceTx) String() string
func (*NoBalanceTx) XXX_DiscardUnknown ¶
func (m *NoBalanceTx) XXX_DiscardUnknown()
func (*NoBalanceTx) XXX_Marshal ¶
func (m *NoBalanceTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NoBalanceTx) XXX_Merge ¶
func (m *NoBalanceTx) XXX_Merge(src proto.Message)
func (*NoBalanceTx) XXX_Size ¶
func (m *NoBalanceTx) XXX_Size() int
func (*NoBalanceTx) XXX_Unmarshal ¶
func (m *NoBalanceTx) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 当前节点的网络信息
func (*NodeNetInfo) Descriptor ¶
func (*NodeNetInfo) Descriptor() ([]byte, []int)
func (*NodeNetInfo) GetExternaladdr ¶
func (m *NodeNetInfo) GetExternaladdr() string
func (*NodeNetInfo) GetInbounds ¶
func (m *NodeNetInfo) GetInbounds() int32
func (*NodeNetInfo) GetLocaladdr ¶
func (m *NodeNetInfo) GetLocaladdr() string
func (*NodeNetInfo) GetOutbounds ¶
func (m *NodeNetInfo) GetOutbounds() int32
func (*NodeNetInfo) GetService ¶
func (m *NodeNetInfo) GetService() bool
func (*NodeNetInfo) ProtoMessage ¶
func (*NodeNetInfo) ProtoMessage()
func (*NodeNetInfo) Reset ¶
func (m *NodeNetInfo) Reset()
func (*NodeNetInfo) String ¶
func (m *NodeNetInfo) String() string
func (*NodeNetInfo) XXX_DiscardUnknown ¶
func (m *NodeNetInfo) XXX_DiscardUnknown()
func (*NodeNetInfo) XXX_Marshal ¶
func (m *NodeNetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeNetInfo) XXX_Merge ¶
func (m *NodeNetInfo) XXX_Merge(src proto.Message)
func (*NodeNetInfo) XXX_Size ¶
func (m *NodeNetInfo) XXX_Size() int
func (*NodeNetInfo) XXX_Unmarshal ¶
func (m *NodeNetInfo) XXX_Unmarshal(b []byte) error
type Operation ¶
type Operation struct {
Value *Block `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Operation) Descriptor ¶
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) XXX_DiscardUnknown ¶
func (m *Operation) XXX_DiscardUnknown()
func (*Operation) XXX_Marshal ¶
func (*Operation) XXX_Unmarshal ¶
type P2P ¶
type P2P struct {
Port int32 `protobuf:"varint,1,opt,name=port" json:"port,omitempty"`
Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"`
DbPath string `protobuf:"bytes,3,opt,name=dbPath" json:"dbPath,omitempty"`
DbCache int32 `protobuf:"varint,4,opt,name=dbCache" json:"dbCache,omitempty"`
GrpcLogFile string `protobuf:"bytes,5,opt,name=grpcLogFile" json:"grpcLogFile,omitempty"`
IsSeed bool `protobuf:"varint,6,opt,name=isSeed" json:"isSeed,omitempty"`
ServerStart bool `protobuf:"varint,7,opt,name=serverStart" json:"serverStart,omitempty"`
Seeds []string `protobuf:"bytes,8,rep,name=seeds" json:"seeds,omitempty"`
Enable bool `protobuf:"varint,9,opt,name=enable" json:"enable,omitempty"`
MsgCacheSize int32 `protobuf:"varint,10,opt,name=msgCacheSize" json:"msgCacheSize,omitempty"`
Version int32 `protobuf:"varint,11,opt,name=version" json:"version,omitempty"`
VerMin int32 `protobuf:"varint,12,opt,name=verMin" json:"verMin,omitempty"`
VerMax int32 `protobuf:"varint,13,opt,name=verMax" json:"verMax,omitempty"`
InnerSeedEnable bool `protobuf:"varint,14,opt,name=innerSeedEnable" json:"innerSeedEnable,omitempty"`
InnerBounds int32 `protobuf:"varint,15,opt,name=innerBounds" json:"innerBounds,omitempty"`
UseGithub bool `protobuf:"varint,16,opt,name=useGithub" json:"useGithub,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 返回请求地址列表的社保
func (*P2PAddr) Descriptor ¶
func (*P2PAddr) GetAddrlist ¶
func (*P2PAddr) ProtoMessage ¶
func (*P2PAddr) ProtoMessage()
func (*P2PAddr) XXX_DiscardUnknown ¶
func (m *P2PAddr) XXX_DiscardUnknown()
func (*P2PAddr) XXX_Marshal ¶
func (*P2PAddr) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*P2PAddrList) Descriptor ¶
func (*P2PAddrList) Descriptor() ([]byte, []int)
func (*P2PAddrList) GetNonce ¶
func (m *P2PAddrList) GetNonce() int64
func (*P2PAddrList) GetPeerinfo ¶
func (m *P2PAddrList) GetPeerinfo() []*P2PPeerInfo
func (*P2PAddrList) ProtoMessage ¶
func (*P2PAddrList) ProtoMessage()
func (*P2PAddrList) Reset ¶
func (m *P2PAddrList) Reset()
func (*P2PAddrList) String ¶
func (m *P2PAddrList) String() string
func (*P2PAddrList) XXX_DiscardUnknown ¶
func (m *P2PAddrList) XXX_DiscardUnknown()
func (*P2PAddrList) XXX_Marshal ¶
func (m *P2PAddrList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PAddrList) XXX_Merge ¶
func (m *P2PAddrList) XXX_Merge(src proto.Message)
func (*P2PAddrList) XXX_Size ¶
func (m *P2PAddrList) XXX_Size() int
func (*P2PAddrList) XXX_Unmarshal ¶
func (m *P2PAddrList) XXX_Unmarshal(b []byte) error
type P2PBlock ¶
type P2PBlock struct {
Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p 发送区块协议
func (*P2PBlock) Descriptor ¶
func (*P2PBlock) ProtoMessage ¶
func (*P2PBlock) ProtoMessage()
func (*P2PBlock) XXX_DiscardUnknown ¶
func (m *P2PBlock) XXX_DiscardUnknown()
func (*P2PBlock) XXX_Marshal ¶
func (*P2PBlock) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 节点外网信息
func (*P2PExternalInfo) Descriptor ¶
func (*P2PExternalInfo) Descriptor() ([]byte, []int)
func (*P2PExternalInfo) GetAddr ¶
func (m *P2PExternalInfo) GetAddr() string
func (*P2PExternalInfo) GetIsoutside ¶
func (m *P2PExternalInfo) GetIsoutside() bool
func (*P2PExternalInfo) ProtoMessage ¶
func (*P2PExternalInfo) ProtoMessage()
func (*P2PExternalInfo) Reset ¶
func (m *P2PExternalInfo) Reset()
func (*P2PExternalInfo) String ¶
func (m *P2PExternalInfo) String() string
func (*P2PExternalInfo) XXX_DiscardUnknown ¶
func (m *P2PExternalInfo) XXX_DiscardUnknown()
func (*P2PExternalInfo) XXX_Marshal ¶
func (m *P2PExternalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PExternalInfo) XXX_Merge ¶
func (m *P2PExternalInfo) XXX_Merge(src proto.Message)
func (*P2PExternalInfo) XXX_Size ¶
func (m *P2PExternalInfo) XXX_Size() int
func (*P2PExternalInfo) XXX_Unmarshal ¶
func (m *P2PExternalInfo) XXX_Unmarshal(b []byte) error
type P2PGetAddr ¶
type P2PGetAddr struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 获取对方节点所连接的其他节点地址的请求包
func (*P2PGetAddr) Descriptor ¶
func (*P2PGetAddr) Descriptor() ([]byte, []int)
func (*P2PGetAddr) GetNonce ¶
func (m *P2PGetAddr) GetNonce() int64
func (*P2PGetAddr) ProtoMessage ¶
func (*P2PGetAddr) ProtoMessage()
func (*P2PGetAddr) Reset ¶
func (m *P2PGetAddr) Reset()
func (*P2PGetAddr) String ¶
func (m *P2PGetAddr) String() string
func (*P2PGetAddr) XXX_DiscardUnknown ¶
func (m *P2PGetAddr) XXX_DiscardUnknown()
func (*P2PGetAddr) XXX_Marshal ¶
func (m *P2PGetAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PGetAddr) XXX_Merge ¶
func (m *P2PGetAddr) XXX_Merge(src proto.Message)
func (*P2PGetAddr) XXX_Size ¶
func (m *P2PGetAddr) XXX_Size() int
func (*P2PGetAddr) XXX_Unmarshal ¶
func (m *P2PGetAddr) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 获取区间区块
func (*P2PGetBlocks) Descriptor ¶
func (*P2PGetBlocks) Descriptor() ([]byte, []int)
func (*P2PGetBlocks) GetEndHeight ¶
func (m *P2PGetBlocks) GetEndHeight() int64
func (*P2PGetBlocks) GetStartHeight ¶
func (m *P2PGetBlocks) GetStartHeight() int64
func (*P2PGetBlocks) GetVersion ¶
func (m *P2PGetBlocks) GetVersion() int32
func (*P2PGetBlocks) ProtoMessage ¶
func (*P2PGetBlocks) ProtoMessage()
func (*P2PGetBlocks) Reset ¶
func (m *P2PGetBlocks) Reset()
func (*P2PGetBlocks) String ¶
func (m *P2PGetBlocks) String() string
func (*P2PGetBlocks) XXX_DiscardUnknown ¶
func (m *P2PGetBlocks) XXX_DiscardUnknown()
func (*P2PGetBlocks) XXX_Marshal ¶
func (m *P2PGetBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PGetBlocks) XXX_Merge ¶
func (m *P2PGetBlocks) XXX_Merge(src proto.Message)
func (*P2PGetBlocks) XXX_Size ¶
func (m *P2PGetBlocks) XXX_Size() int
func (*P2PGetBlocks) XXX_Unmarshal ¶
func (m *P2PGetBlocks) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 通过invs 下载数据
func (*P2PGetData) Descriptor ¶
func (*P2PGetData) Descriptor() ([]byte, []int)
func (*P2PGetData) GetInvs ¶
func (m *P2PGetData) GetInvs() []*Inventory
func (*P2PGetData) GetVersion ¶
func (m *P2PGetData) GetVersion() int32
func (*P2PGetData) ProtoMessage ¶
func (*P2PGetData) ProtoMessage()
func (*P2PGetData) Reset ¶
func (m *P2PGetData) Reset()
func (*P2PGetData) String ¶
func (m *P2PGetData) String() string
func (*P2PGetData) XXX_DiscardUnknown ¶
func (m *P2PGetData) XXX_DiscardUnknown()
func (*P2PGetData) XXX_Marshal ¶
func (m *P2PGetData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PGetData) XXX_Merge ¶
func (m *P2PGetData) XXX_Merge(src proto.Message)
func (*P2PGetData) XXX_Size ¶
func (m *P2PGetData) XXX_Size() int
func (*P2PGetData) XXX_Unmarshal ¶
func (m *P2PGetData) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p 获取区块区间头部信息协议
func (*P2PGetHeaders) Descriptor ¶
func (*P2PGetHeaders) Descriptor() ([]byte, []int)
func (*P2PGetHeaders) GetEndHeight ¶
func (m *P2PGetHeaders) GetEndHeight() int64
func (*P2PGetHeaders) GetStartHeight ¶
func (m *P2PGetHeaders) GetStartHeight() int64
func (*P2PGetHeaders) GetVersion ¶
func (m *P2PGetHeaders) GetVersion() int32
func (*P2PGetHeaders) ProtoMessage ¶
func (*P2PGetHeaders) ProtoMessage()
func (*P2PGetHeaders) Reset ¶
func (m *P2PGetHeaders) Reset()
func (*P2PGetHeaders) String ¶
func (m *P2PGetHeaders) String() string
func (*P2PGetHeaders) XXX_DiscardUnknown ¶
func (m *P2PGetHeaders) XXX_DiscardUnknown()
func (*P2PGetHeaders) XXX_Marshal ¶
func (m *P2PGetHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PGetHeaders) XXX_Merge ¶
func (m *P2PGetHeaders) XXX_Merge(src proto.Message)
func (*P2PGetHeaders) XXX_Size ¶
func (m *P2PGetHeaders) XXX_Size() int
func (*P2PGetHeaders) XXX_Unmarshal ¶
func (m *P2PGetHeaders) XXX_Unmarshal(b []byte) error
type P2PGetMempool ¶
type P2PGetMempool struct {
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 获取mempool
func (*P2PGetMempool) Descriptor ¶
func (*P2PGetMempool) Descriptor() ([]byte, []int)
func (*P2PGetMempool) GetVersion ¶
func (m *P2PGetMempool) GetVersion() int32
func (*P2PGetMempool) ProtoMessage ¶
func (*P2PGetMempool) ProtoMessage()
func (*P2PGetMempool) Reset ¶
func (m *P2PGetMempool) Reset()
func (*P2PGetMempool) String ¶
func (m *P2PGetMempool) String() string
func (*P2PGetMempool) XXX_DiscardUnknown ¶
func (m *P2PGetMempool) XXX_DiscardUnknown()
func (*P2PGetMempool) XXX_Marshal ¶
func (m *P2PGetMempool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PGetMempool) XXX_Merge ¶
func (m *P2PGetMempool) XXX_Merge(src proto.Message)
func (*P2PGetMempool) XXX_Size ¶
func (m *P2PGetMempool) XXX_Size() int
func (*P2PGetMempool) XXX_Unmarshal ¶
func (m *P2PGetMempool) XXX_Unmarshal(b []byte) error
type P2PGetPeerInfo ¶
type P2PGetPeerInfo struct {
/// p2p版本
Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 请求获取远程节点的节点信息
func (*P2PGetPeerInfo) Descriptor ¶
func (*P2PGetPeerInfo) Descriptor() ([]byte, []int)
func (*P2PGetPeerInfo) GetVersion ¶
func (m *P2PGetPeerInfo) GetVersion() int32
func (*P2PGetPeerInfo) ProtoMessage ¶
func (*P2PGetPeerInfo) ProtoMessage()
func (*P2PGetPeerInfo) Reset ¶
func (m *P2PGetPeerInfo) Reset()
func (*P2PGetPeerInfo) String ¶
func (m *P2PGetPeerInfo) String() string
func (*P2PGetPeerInfo) XXX_DiscardUnknown ¶
func (m *P2PGetPeerInfo) XXX_DiscardUnknown()
func (*P2PGetPeerInfo) XXX_Marshal ¶
func (m *P2PGetPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PGetPeerInfo) XXX_Merge ¶
func (m *P2PGetPeerInfo) XXX_Merge(src proto.Message)
func (*P2PGetPeerInfo) XXX_Size ¶
func (m *P2PGetPeerInfo) XXX_Size() int
func (*P2PGetPeerInfo) XXX_Unmarshal ¶
func (m *P2PGetPeerInfo) XXX_Unmarshal(b []byte) error
type P2PHeaders ¶
type P2PHeaders struct {
Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p 区块头传输协议
func (*P2PHeaders) Descriptor ¶
func (*P2PHeaders) Descriptor() ([]byte, []int)
func (*P2PHeaders) GetHeaders ¶
func (m *P2PHeaders) GetHeaders() []*Header
func (*P2PHeaders) ProtoMessage ¶
func (*P2PHeaders) ProtoMessage()
func (*P2PHeaders) Reset ¶
func (m *P2PHeaders) Reset()
func (*P2PHeaders) String ¶
func (m *P2PHeaders) String() string
func (*P2PHeaders) XXX_DiscardUnknown ¶
func (m *P2PHeaders) XXX_DiscardUnknown()
func (*P2PHeaders) XXX_Marshal ¶
func (m *P2PHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PHeaders) XXX_Merge ¶
func (m *P2PHeaders) XXX_Merge(src proto.Message)
func (*P2PHeaders) XXX_Size ¶
func (m *P2PHeaders) XXX_Size() int
func (*P2PHeaders) XXX_Unmarshal ¶
func (m *P2PHeaders) XXX_Unmarshal(b []byte) error
type P2PInv ¶
type P2PInv struct {
Invs []*Inventory `protobuf:"bytes,1,rep,name=invs,proto3" json:"invs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*P2PInv) Descriptor ¶
func (*P2PInv) ProtoMessage ¶
func (*P2PInv) ProtoMessage()
func (*P2PInv) XXX_DiscardUnknown ¶
func (m *P2PInv) XXX_DiscardUnknown()
func (*P2PInv) XXX_Marshal ¶
func (*P2PInv) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 节点信息
func (*P2PPeerInfo) Descriptor ¶
func (*P2PPeerInfo) Descriptor() ([]byte, []int)
func (*P2PPeerInfo) GetAddr ¶
func (m *P2PPeerInfo) GetAddr() string
func (*P2PPeerInfo) GetHeader ¶
func (m *P2PPeerInfo) GetHeader() *Header
func (*P2PPeerInfo) GetMempoolSize ¶
func (m *P2PPeerInfo) GetMempoolSize() int32
func (*P2PPeerInfo) GetName ¶
func (m *P2PPeerInfo) GetName() string
func (*P2PPeerInfo) GetPort ¶
func (m *P2PPeerInfo) GetPort() int32
func (*P2PPeerInfo) ProtoMessage ¶
func (*P2PPeerInfo) ProtoMessage()
func (*P2PPeerInfo) Reset ¶
func (m *P2PPeerInfo) Reset()
func (*P2PPeerInfo) String ¶
func (m *P2PPeerInfo) String() string
func (*P2PPeerInfo) XXX_DiscardUnknown ¶
func (m *P2PPeerInfo) XXX_DiscardUnknown()
func (*P2PPeerInfo) XXX_Marshal ¶
func (m *P2PPeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PPeerInfo) XXX_Merge ¶
func (m *P2PPeerInfo) XXX_Merge(src proto.Message)
func (*P2PPeerInfo) XXX_Size ¶
func (m *P2PPeerInfo) XXX_Size() int
func (*P2PPeerInfo) XXX_Unmarshal ¶
func (m *P2PPeerInfo) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* P2P 心跳包
func (*P2PPing) Descriptor ¶
func (*P2PPing) ProtoMessage ¶
func (*P2PPing) ProtoMessage()
func (*P2PPing) XXX_DiscardUnknown ¶
func (m *P2PPing) XXX_DiscardUnknown()
func (*P2PPing) XXX_Marshal ¶
func (*P2PPing) XXX_Unmarshal ¶
type P2PPong ¶
type P2PPong struct {
Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 心跳返回包
func (*P2PPong) Descriptor ¶
func (*P2PPong) ProtoMessage ¶
func (*P2PPong) ProtoMessage()
func (*P2PPong) XXX_DiscardUnknown ¶
func (m *P2PPong) XXX_DiscardUnknown()
func (*P2PPong) XXX_Marshal ¶
func (*P2PPong) XXX_Unmarshal ¶
type P2PTx ¶
type P2PTx struct {
Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p 发送交易协议
func (*P2PTx) Descriptor ¶
func (*P2PTx) GetTx ¶
func (m *P2PTx) GetTx() *Transaction
func (*P2PTx) ProtoMessage ¶
func (*P2PTx) ProtoMessage()
func (*P2PTx) XXX_DiscardUnknown ¶
func (m *P2PTx) XXX_DiscardUnknown()
func (*P2PTx) XXX_Marshal ¶
func (*P2PTx) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* P2P 版本返回
func (*P2PVerAck) Descriptor ¶
func (*P2PVerAck) GetService ¶
func (*P2PVerAck) GetVersion ¶
func (*P2PVerAck) ProtoMessage ¶
func (*P2PVerAck) ProtoMessage()
func (*P2PVerAck) XXX_DiscardUnknown ¶
func (m *P2PVerAck) XXX_DiscardUnknown()
func (*P2PVerAck) XXX_Marshal ¶
func (*P2PVerAck) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p节点间发送版本数据结构
func (*P2PVersion) Descriptor ¶
func (*P2PVersion) Descriptor() ([]byte, []int)
func (*P2PVersion) GetAddrFrom ¶
func (m *P2PVersion) GetAddrFrom() string
func (*P2PVersion) GetAddrRecv ¶
func (m *P2PVersion) GetAddrRecv() string
func (*P2PVersion) GetNonce ¶
func (m *P2PVersion) GetNonce() int64
func (*P2PVersion) GetService ¶
func (m *P2PVersion) GetService() int64
func (*P2PVersion) GetStartHeight ¶
func (m *P2PVersion) GetStartHeight() int64
func (*P2PVersion) GetTimestamp ¶
func (m *P2PVersion) GetTimestamp() int64
func (*P2PVersion) GetUserAgent ¶
func (m *P2PVersion) GetUserAgent() string
func (*P2PVersion) GetVersion ¶
func (m *P2PVersion) GetVersion() int32
func (*P2PVersion) ProtoMessage ¶
func (*P2PVersion) ProtoMessage()
func (*P2PVersion) Reset ¶
func (m *P2PVersion) Reset()
func (*P2PVersion) String ¶
func (m *P2PVersion) String() string
func (*P2PVersion) XXX_DiscardUnknown ¶
func (m *P2PVersion) XXX_DiscardUnknown()
func (*P2PVersion) XXX_Marshal ¶
func (m *P2PVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PVersion) XXX_Merge ¶
func (m *P2PVersion) XXX_Merge(src proto.Message)
func (*P2PVersion) XXX_Size ¶
func (m *P2PVersion) XXX_Size() int
func (*P2PVersion) XXX_Unmarshal ¶
func (m *P2PVersion) XXX_Unmarshal(b []byte) error
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.ClientConn) 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
平行链区块详细信息
blockdetail : 区块详细信息 sequence :区块序列号
func (*ParaChainBlockDetail) Descriptor ¶
func (*ParaChainBlockDetail) Descriptor() ([]byte, []int)
func (*ParaChainBlockDetail) GetBlockdetail ¶
func (m *ParaChainBlockDetail) GetBlockdetail() *BlockDetail
func (*ParaChainBlockDetail) GetSequence ¶
func (m *ParaChainBlockDetail) GetSequence() int64
func (*ParaChainBlockDetail) ProtoMessage ¶
func (*ParaChainBlockDetail) ProtoMessage()
func (*ParaChainBlockDetail) Reset ¶
func (m *ParaChainBlockDetail) Reset()
func (*ParaChainBlockDetail) String ¶
func (m *ParaChainBlockDetail) String() string
func (*ParaChainBlockDetail) XXX_DiscardUnknown ¶
func (m *ParaChainBlockDetail) XXX_DiscardUnknown()
func (*ParaChainBlockDetail) XXX_Marshal ¶
func (m *ParaChainBlockDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParaChainBlockDetail) XXX_Merge ¶
func (m *ParaChainBlockDetail) XXX_Merge(src proto.Message)
func (*ParaChainBlockDetail) XXX_Size ¶
func (m *ParaChainBlockDetail) XXX_Size() int
func (*ParaChainBlockDetail) XXX_Unmarshal ¶
func (m *ParaChainBlockDetail) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* peer 信息
func (*Peer) Descriptor ¶
func (*Peer) GetMempoolSize ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type PeerList ¶
type PeerList struct {
Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* peer 列表
func (*PeerList) Descriptor ¶
func (*PeerList) ProtoMessage ¶
func (*PeerList) ProtoMessage()
func (*PeerList) XXX_DiscardUnknown ¶
func (m *PeerList) XXX_DiscardUnknown()
func (*PeerList) XXX_Marshal ¶
func (*PeerList) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PeersInfo) Descriptor ¶
func (*PeersInfo) GetP2Pversion ¶
func (*PeersInfo) GetSoftversion ¶
func (*PeersInfo) ProtoMessage ¶
func (*PeersInfo) ProtoMessage()
func (*PeersInfo) XXX_DiscardUnknown ¶
func (m *PeersInfo) XXX_DiscardUnknown()
func (*PeersInfo) XXX_Marshal ¶
func (*PeersInfo) XXX_Unmarshal ¶
type PeersReply ¶
type PeersReply struct {
Peers []*PeersInfo `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PeersReply) Descriptor ¶
func (*PeersReply) Descriptor() ([]byte, []int)
func (*PeersReply) GetPeers ¶
func (m *PeersReply) GetPeers() []*PeersInfo
func (*PeersReply) ProtoMessage ¶
func (*PeersReply) ProtoMessage()
func (*PeersReply) Reset ¶
func (m *PeersReply) Reset()
func (*PeersReply) String ¶
func (m *PeersReply) String() string
func (*PeersReply) XXX_DiscardUnknown ¶
func (m *PeersReply) XXX_DiscardUnknown()
func (*PeersReply) XXX_Marshal ¶
func (m *PeersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeersReply) XXX_Merge ¶
func (m *PeersReply) XXX_Merge(src proto.Message)
func (*PeersReply) XXX_Size ¶
func (m *PeersReply) XXX_Size() int
func (*PeersReply) XXX_Unmarshal ¶
func (m *PeersReply) XXX_Unmarshal(b []byte) error
type Pprof ¶
type Pprof struct {
ListenAddr string `protobuf:"bytes,1,opt,name=listenAddr" json:"listenAddr,omitempty"`
}
Pprof 配置
type PrivacyKV ¶
type PrivacyKV struct {
PrivacyKVToken []*PrivacyKVToken `protobuf:"bytes,1,rep,name=privacyKVToken,proto3" json:"privacyKVToken,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PrivacyKV) Descriptor ¶
func (*PrivacyKV) GetPrivacyKVToken ¶
func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken
func (*PrivacyKV) ProtoMessage ¶
func (*PrivacyKV) ProtoMessage()
func (*PrivacyKV) XXX_DiscardUnknown ¶
func (m *PrivacyKV) XXX_DiscardUnknown()
func (*PrivacyKV) XXX_Marshal ¶
func (*PrivacyKV) XXX_Unmarshal ¶
type PrivacyKVToken ¶
type PrivacyKVToken struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
TxIndex int32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
Txhash []byte `protobuf:"bytes,3,opt,name=txhash,proto3" json:"txhash,omitempty"`
KV []*KeyValue `protobuf:"bytes,4,rep,name=KV,proto3" json:"KV,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PrivacyKVToken) Descriptor ¶
func (*PrivacyKVToken) Descriptor() ([]byte, []int)
func (*PrivacyKVToken) GetKV ¶
func (m *PrivacyKVToken) GetKV() []*KeyValue
func (*PrivacyKVToken) GetToken ¶
func (m *PrivacyKVToken) GetToken() string
func (*PrivacyKVToken) GetTxIndex ¶
func (m *PrivacyKVToken) GetTxIndex() int32
func (*PrivacyKVToken) GetTxhash ¶
func (m *PrivacyKVToken) GetTxhash() []byte
func (*PrivacyKVToken) ProtoMessage ¶
func (*PrivacyKVToken) ProtoMessage()
func (*PrivacyKVToken) Reset ¶
func (m *PrivacyKVToken) Reset()
func (*PrivacyKVToken) String ¶
func (m *PrivacyKVToken) String() string
func (*PrivacyKVToken) XXX_DiscardUnknown ¶
func (m *PrivacyKVToken) XXX_DiscardUnknown()
func (*PrivacyKVToken) XXX_Marshal ¶
func (m *PrivacyKVToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivacyKVToken) XXX_Merge ¶
func (m *PrivacyKVToken) XXX_Merge(src proto.Message)
func (*PrivacyKVToken) XXX_Size ¶
func (m *PrivacyKVToken) XXX_Size() int
func (*PrivacyKVToken) XXX_Unmarshal ¶
func (m *PrivacyKVToken) XXX_Unmarshal(b []byte) error
type PruneData ¶
type PruneData struct {
// 该叶子节点的所有父hash
Hashs [][]byte `protobuf:"bytes,1,rep,name=hashs,proto3" json:"hashs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PruneData) Descriptor ¶
func (*PruneData) ProtoMessage ¶
func (*PruneData) ProtoMessage()
func (*PruneData) XXX_DiscardUnknown ¶
func (m *PruneData) XXX_DiscardUnknown()
func (*PruneData) XXX_Marshal ¶
func (*PruneData) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Query) Descriptor ¶
func (*Query) GetFuncName ¶
func (*Query) GetPayload ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
type QueryData ¶
QueryData 查询结构体
func (*QueryData) DecodeJSON ¶
DecodeJSON 编码成json格式
type RPC ¶
type RPC struct {
JrpcBindAddr string `protobuf:"bytes,1,opt,name=jrpcBindAddr" json:"jrpcBindAddr,omitempty"`
GrpcBindAddr string `protobuf:"bytes,2,opt,name=grpcBindAddr" json:"grpcBindAddr,omitempty"`
Whitlist []string `protobuf:"bytes,3,rep,name=whitlist" json:"whitlist,omitempty"`
Whitelist []string `protobuf:"bytes,4,rep,name=whitelist" json:"whitelist,omitempty"`
JrpcFuncWhitelist []string `protobuf:"bytes,5,rep,name=jrpcFuncWhitelist" json:"jrpcFuncWhitelist,omitempty"`
GrpcFuncWhitelist []string `protobuf:"bytes,6,rep,name=grpcFuncWhitelist" json:"grpcFuncWhitelist,omitempty"`
JrpcFuncBlacklist []string `protobuf:"bytes,7,rep,name=jrpcFuncBlacklist" json:"jrpcFuncBlacklist,omitempty"`
GrpcFuncBlacklist []string `protobuf:"bytes,8,rep,name=grpcFuncBlacklist" json:"grpcFuncBlacklist,omitempty"`
EnableTLS bool `protobuf:"varint,10,opt,name=enableTLS" json:"enableTLS,omitempty"`
EnableTrace bool `protobuf:"varint,10,opt,name=enableTrace" json:"enableTrace,omitempty"`
CertFile string `protobuf:"varint,11,opt,name=certFile" json:"certFile,omitempty"`
KeyFile string `protobuf:"varint,12,opt,name=keyFile" json:"keyFile,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReWriteRawTx) Descriptor ¶
func (*ReWriteRawTx) Descriptor() ([]byte, []int)
func (*ReWriteRawTx) GetExpire ¶
func (m *ReWriteRawTx) GetExpire() string
func (*ReWriteRawTx) GetFee ¶
func (m *ReWriteRawTx) GetFee() int64
func (*ReWriteRawTx) GetTo ¶
func (m *ReWriteRawTx) GetTo() string
func (*ReWriteRawTx) GetTx ¶
func (m *ReWriteRawTx) GetTx() string
func (*ReWriteRawTx) ProtoMessage ¶
func (*ReWriteRawTx) ProtoMessage()
func (*ReWriteRawTx) Reset ¶
func (m *ReWriteRawTx) Reset()
func (*ReWriteRawTx) String ¶
func (m *ReWriteRawTx) String() string
func (*ReWriteRawTx) XXX_DiscardUnknown ¶
func (m *ReWriteRawTx) XXX_DiscardUnknown()
func (*ReWriteRawTx) XXX_Marshal ¶
func (m *ReWriteRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReWriteRawTx) XXX_Merge ¶
func (m *ReWriteRawTx) XXX_Merge(src proto.Message)
func (*ReWriteRawTx) XXX_Size ¶
func (m *ReWriteRawTx) XXX_Size() int
func (*ReWriteRawTx) XXX_Unmarshal ¶
func (m *ReWriteRawTx) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
ty = 0 -> error Receipt ty = 1 -> CutFee //cut fee ,bug exec not ok ty = 2 -> exec ok
func (*Receipt) Descriptor ¶
func (*Receipt) GetLogs ¶
func (m *Receipt) GetLogs() []*ReceiptLog
func (*Receipt) ProtoMessage ¶
func (*Receipt) ProtoMessage()
func (*Receipt) XXX_DiscardUnknown ¶
func (m *Receipt) XXX_DiscardUnknown()
func (*Receipt) XXX_Marshal ¶
func (*Receipt) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
账户余额改变的一个交易回报(coins内)
func (*ReceiptAccountTransfer) Descriptor ¶
func (*ReceiptAccountTransfer) Descriptor() ([]byte, []int)
func (*ReceiptAccountTransfer) GetCurrent ¶
func (m *ReceiptAccountTransfer) GetCurrent() *Account
func (*ReceiptAccountTransfer) GetPrev ¶
func (m *ReceiptAccountTransfer) GetPrev() *Account
func (*ReceiptAccountTransfer) ProtoMessage ¶
func (*ReceiptAccountTransfer) ProtoMessage()
func (*ReceiptAccountTransfer) Reset ¶
func (m *ReceiptAccountTransfer) Reset()
func (*ReceiptAccountTransfer) String ¶
func (m *ReceiptAccountTransfer) String() string
func (*ReceiptAccountTransfer) XXX_DiscardUnknown ¶
func (m *ReceiptAccountTransfer) XXX_DiscardUnknown()
func (*ReceiptAccountTransfer) XXX_Marshal ¶
func (m *ReceiptAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptAccountTransfer) XXX_Merge ¶
func (m *ReceiptAccountTransfer) XXX_Merge(src proto.Message)
func (*ReceiptAccountTransfer) XXX_Size ¶
func (m *ReceiptAccountTransfer) XXX_Size() int
func (*ReceiptAccountTransfer) XXX_Unmarshal ¶
func (m *ReceiptAccountTransfer) XXX_Unmarshal(b []byte) error
type ReceiptCheckTxList ¶
type ReceiptCheckTxList struct {
Errs []string `protobuf:"bytes,1,rep,name=errs,proto3" json:"errs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReceiptCheckTxList) Descriptor ¶
func (*ReceiptCheckTxList) Descriptor() ([]byte, []int)
func (*ReceiptCheckTxList) GetErrs ¶
func (m *ReceiptCheckTxList) GetErrs() []string
func (*ReceiptCheckTxList) ProtoMessage ¶
func (*ReceiptCheckTxList) ProtoMessage()
func (*ReceiptCheckTxList) Reset ¶
func (m *ReceiptCheckTxList) Reset()
func (*ReceiptCheckTxList) String ¶
func (m *ReceiptCheckTxList) String() string
func (*ReceiptCheckTxList) XXX_DiscardUnknown ¶
func (m *ReceiptCheckTxList) XXX_DiscardUnknown()
func (*ReceiptCheckTxList) XXX_Marshal ¶
func (m *ReceiptCheckTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptCheckTxList) XXX_Merge ¶
func (m *ReceiptCheckTxList) XXX_Merge(src proto.Message)
func (*ReceiptCheckTxList) XXX_Size ¶
func (m *ReceiptCheckTxList) XXX_Size() int
func (*ReceiptCheckTxList) XXX_Unmarshal ¶
func (m *ReceiptCheckTxList) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReceiptConfig) Descriptor ¶
func (*ReceiptConfig) Descriptor() ([]byte, []int)
func (*ReceiptConfig) GetCurrent ¶
func (m *ReceiptConfig) GetCurrent() *ConfigItem
func (*ReceiptConfig) GetPrev ¶
func (m *ReceiptConfig) GetPrev() *ConfigItem
func (*ReceiptConfig) ProtoMessage ¶
func (*ReceiptConfig) ProtoMessage()
func (*ReceiptConfig) Reset ¶
func (m *ReceiptConfig) Reset()
func (*ReceiptConfig) String ¶
func (m *ReceiptConfig) String() string
func (*ReceiptConfig) XXX_DiscardUnknown ¶
func (m *ReceiptConfig) XXX_DiscardUnknown()
func (*ReceiptConfig) XXX_Marshal ¶
func (m *ReceiptConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptConfig) XXX_Merge ¶
func (m *ReceiptConfig) XXX_Merge(src proto.Message)
func (*ReceiptConfig) XXX_Size ¶
func (m *ReceiptConfig) XXX_Size() int
func (*ReceiptConfig) XXX_Unmarshal ¶
func (m *ReceiptConfig) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReceiptData) DecodeReceiptLog ¶
func (r *ReceiptData) DecodeReceiptLog(execer []byte) (*ReceiptDataResult, error)
DecodeReceiptLog 编码回执数据
func (*ReceiptData) Descriptor ¶
func (*ReceiptData) Descriptor() ([]byte, []int)
func (*ReceiptData) GetLogs ¶
func (m *ReceiptData) GetLogs() []*ReceiptLog
func (*ReceiptData) GetTy ¶
func (m *ReceiptData) GetTy() int32
func (*ReceiptData) OutputReceiptDetails ¶
func (r *ReceiptData) OutputReceiptDetails(execer []byte, logger log.Logger)
OutputReceiptDetails 输出回执数据详情
func (*ReceiptData) ProtoMessage ¶
func (*ReceiptData) ProtoMessage()
func (*ReceiptData) Reset ¶
func (m *ReceiptData) Reset()
func (*ReceiptData) String ¶
func (m *ReceiptData) String() string
func (*ReceiptData) XXX_DiscardUnknown ¶
func (m *ReceiptData) XXX_DiscardUnknown()
func (*ReceiptData) XXX_Marshal ¶
func (m *ReceiptData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptData) XXX_Merge ¶
func (m *ReceiptData) XXX_Merge(src proto.Message)
func (*ReceiptData) XXX_Size ¶
func (m *ReceiptData) XXX_Size() int
func (*ReceiptData) XXX_Unmarshal ¶
func (m *ReceiptData) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
账户余额改变的一个交易回报(合约内)
func (*ReceiptExecAccountTransfer) Descriptor ¶
func (*ReceiptExecAccountTransfer) Descriptor() ([]byte, []int)
func (*ReceiptExecAccountTransfer) GetCurrent ¶
func (m *ReceiptExecAccountTransfer) GetCurrent() *Account
func (*ReceiptExecAccountTransfer) GetExecAddr ¶
func (m *ReceiptExecAccountTransfer) GetExecAddr() string
func (*ReceiptExecAccountTransfer) GetPrev ¶
func (m *ReceiptExecAccountTransfer) GetPrev() *Account
func (*ReceiptExecAccountTransfer) ProtoMessage ¶
func (*ReceiptExecAccountTransfer) ProtoMessage()
func (*ReceiptExecAccountTransfer) Reset ¶
func (m *ReceiptExecAccountTransfer) Reset()
func (*ReceiptExecAccountTransfer) String ¶
func (m *ReceiptExecAccountTransfer) String() string
func (*ReceiptExecAccountTransfer) XXX_DiscardUnknown ¶
func (m *ReceiptExecAccountTransfer) XXX_DiscardUnknown()
func (*ReceiptExecAccountTransfer) XXX_Marshal ¶
func (m *ReceiptExecAccountTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptExecAccountTransfer) XXX_Merge ¶
func (m *ReceiptExecAccountTransfer) XXX_Merge(src proto.Message)
func (*ReceiptExecAccountTransfer) XXX_Size ¶
func (m *ReceiptExecAccountTransfer) XXX_Size() int
func (*ReceiptExecAccountTransfer) XXX_Unmarshal ¶
func (m *ReceiptExecAccountTransfer) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReceiptLog) Descriptor ¶
func (*ReceiptLog) Descriptor() ([]byte, []int)
func (*ReceiptLog) GetLog ¶
func (m *ReceiptLog) GetLog() []byte
func (*ReceiptLog) GetTy ¶
func (m *ReceiptLog) GetTy() int32
func (*ReceiptLog) ProtoMessage ¶
func (*ReceiptLog) ProtoMessage()
func (*ReceiptLog) Reset ¶
func (m *ReceiptLog) Reset()
func (*ReceiptLog) String ¶
func (m *ReceiptLog) String() string
func (*ReceiptLog) XXX_DiscardUnknown ¶
func (m *ReceiptLog) XXX_DiscardUnknown()
func (*ReceiptLog) XXX_Marshal ¶
func (m *ReceiptLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptLog) XXX_Merge ¶
func (m *ReceiptLog) XXX_Merge(src proto.Message)
func (*ReceiptLog) XXX_Size ¶
func (m *ReceiptLog) XXX_Size() int
func (*ReceiptLog) XXX_Unmarshal ¶
func (m *ReceiptLog) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Receipts) Descriptor ¶
func (*Receipts) GetReceipts ¶
func (*Receipts) ProtoMessage ¶
func (*Receipts) ProtoMessage()
func (*Receipts) XXX_DiscardUnknown ¶
func (m *Receipts) XXX_DiscardUnknown()
func (*Receipts) XXX_Marshal ¶
func (*Receipts) XXX_Unmarshal ¶
type ReceiptsAndPrivacyKV ¶
type ReceiptsAndPrivacyKV struct {
Receipts *Receipts `protobuf:"bytes,1,opt,name=receipts,proto3" json:"receipts,omitempty"`
PrivacyKV *PrivacyKV `protobuf:"bytes,2,opt,name=privacyKV,proto3" json:"privacyKV,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReceiptsAndPrivacyKV) Descriptor ¶
func (*ReceiptsAndPrivacyKV) Descriptor() ([]byte, []int)
func (*ReceiptsAndPrivacyKV) GetPrivacyKV ¶
func (m *ReceiptsAndPrivacyKV) GetPrivacyKV() *PrivacyKV
func (*ReceiptsAndPrivacyKV) GetReceipts ¶
func (m *ReceiptsAndPrivacyKV) GetReceipts() *Receipts
func (*ReceiptsAndPrivacyKV) ProtoMessage ¶
func (*ReceiptsAndPrivacyKV) ProtoMessage()
func (*ReceiptsAndPrivacyKV) Reset ¶
func (m *ReceiptsAndPrivacyKV) Reset()
func (*ReceiptsAndPrivacyKV) String ¶
func (m *ReceiptsAndPrivacyKV) String() string
func (*ReceiptsAndPrivacyKV) XXX_DiscardUnknown ¶
func (m *ReceiptsAndPrivacyKV) XXX_DiscardUnknown()
func (*ReceiptsAndPrivacyKV) XXX_Marshal ¶
func (m *ReceiptsAndPrivacyKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptsAndPrivacyKV) XXX_Merge ¶
func (m *ReceiptsAndPrivacyKV) XXX_Merge(src proto.Message)
func (*ReceiptsAndPrivacyKV) XXX_Size ¶
func (m *ReceiptsAndPrivacyKV) XXX_Size() int
func (*ReceiptsAndPrivacyKV) XXX_Unmarshal ¶
func (m *ReceiptsAndPrivacyKV) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Reply) Descriptor ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type ReplyBlockHeight ¶
type ReplyBlockHeight struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyBlockHeight) Descriptor ¶
func (*ReplyBlockHeight) Descriptor() ([]byte, []int)
func (*ReplyBlockHeight) GetHeight ¶
func (m *ReplyBlockHeight) GetHeight() int64
func (*ReplyBlockHeight) ProtoMessage ¶
func (*ReplyBlockHeight) ProtoMessage()
func (*ReplyBlockHeight) Reset ¶
func (m *ReplyBlockHeight) Reset()
func (*ReplyBlockHeight) String ¶
func (m *ReplyBlockHeight) String() string
func (*ReplyBlockHeight) XXX_DiscardUnknown ¶
func (m *ReplyBlockHeight) XXX_DiscardUnknown()
func (*ReplyBlockHeight) XXX_Marshal ¶
func (m *ReplyBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyBlockHeight) XXX_Merge ¶
func (m *ReplyBlockHeight) XXX_Merge(src proto.Message)
func (*ReplyBlockHeight) XXX_Size ¶
func (m *ReplyBlockHeight) XXX_Size() int
func (*ReplyBlockHeight) XXX_Unmarshal ¶
func (m *ReplyBlockHeight) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyConfig) Descriptor ¶
func (*ReplyConfig) Descriptor() ([]byte, []int)
func (*ReplyConfig) GetKey ¶
func (m *ReplyConfig) GetKey() string
func (*ReplyConfig) GetValue ¶
func (m *ReplyConfig) GetValue() string
func (*ReplyConfig) ProtoMessage ¶
func (*ReplyConfig) ProtoMessage()
func (*ReplyConfig) Reset ¶
func (m *ReplyConfig) Reset()
func (*ReplyConfig) String ¶
func (m *ReplyConfig) String() string
func (*ReplyConfig) XXX_DiscardUnknown ¶
func (m *ReplyConfig) XXX_DiscardUnknown()
func (*ReplyConfig) XXX_Marshal ¶
func (m *ReplyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyConfig) XXX_Merge ¶
func (m *ReplyConfig) XXX_Merge(src proto.Message)
func (*ReplyConfig) XXX_Size ¶
func (m *ReplyConfig) XXX_Size() int
func (*ReplyConfig) XXX_Unmarshal ¶
func (m *ReplyConfig) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
查询symbol在合约中的代币总额应答
func (*ReplyGetExecBalance) AddItem ¶
func (t *ReplyGetExecBalance) AddItem(execAddr, value []byte)
AddItem 添加item
func (*ReplyGetExecBalance) Descriptor ¶
func (*ReplyGetExecBalance) Descriptor() ([]byte, []int)
func (*ReplyGetExecBalance) GetAmount ¶
func (m *ReplyGetExecBalance) GetAmount() int64
func (*ReplyGetExecBalance) GetAmountActive ¶
func (m *ReplyGetExecBalance) GetAmountActive() int64
func (*ReplyGetExecBalance) GetAmountFrozen ¶
func (m *ReplyGetExecBalance) GetAmountFrozen() int64
func (*ReplyGetExecBalance) GetItems ¶
func (m *ReplyGetExecBalance) GetItems() []*ExecBalanceItem
func (*ReplyGetExecBalance) GetNextKey ¶
func (m *ReplyGetExecBalance) GetNextKey() []byte
func (*ReplyGetExecBalance) ProtoMessage ¶
func (*ReplyGetExecBalance) ProtoMessage()
func (*ReplyGetExecBalance) Reset ¶
func (m *ReplyGetExecBalance) Reset()
func (*ReplyGetExecBalance) String ¶
func (m *ReplyGetExecBalance) String() string
func (*ReplyGetExecBalance) XXX_DiscardUnknown ¶
func (m *ReplyGetExecBalance) XXX_DiscardUnknown()
func (*ReplyGetExecBalance) XXX_Marshal ¶
func (m *ReplyGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyGetExecBalance) XXX_Merge ¶
func (m *ReplyGetExecBalance) XXX_Merge(src proto.Message)
func (*ReplyGetExecBalance) XXX_Size ¶
func (m *ReplyGetExecBalance) XXX_Size() int
func (*ReplyGetExecBalance) XXX_Unmarshal ¶
func (m *ReplyGetExecBalance) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
查询symbol代币总额应答
func (*ReplyGetTotalCoins) Descriptor ¶
func (*ReplyGetTotalCoins) Descriptor() ([]byte, []int)
func (*ReplyGetTotalCoins) GetAmount ¶
func (m *ReplyGetTotalCoins) GetAmount() int64
func (*ReplyGetTotalCoins) GetCount ¶
func (m *ReplyGetTotalCoins) GetCount() int64
func (*ReplyGetTotalCoins) GetNextKey ¶
func (m *ReplyGetTotalCoins) GetNextKey() []byte
func (*ReplyGetTotalCoins) GetNum ¶
func (m *ReplyGetTotalCoins) GetNum() int64
func (*ReplyGetTotalCoins) IterateRangeByStateHash ¶
func (t *ReplyGetTotalCoins) IterateRangeByStateHash(key, value []byte) bool
IterateRangeByStateHash 迭代查找
func (*ReplyGetTotalCoins) ProtoMessage ¶
func (*ReplyGetTotalCoins) ProtoMessage()
func (*ReplyGetTotalCoins) Reset ¶
func (m *ReplyGetTotalCoins) Reset()
func (*ReplyGetTotalCoins) String ¶
func (m *ReplyGetTotalCoins) String() string
func (*ReplyGetTotalCoins) XXX_DiscardUnknown ¶
func (m *ReplyGetTotalCoins) XXX_DiscardUnknown()
func (*ReplyGetTotalCoins) XXX_Marshal ¶
func (m *ReplyGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyGetTotalCoins) XXX_Merge ¶
func (m *ReplyGetTotalCoins) XXX_Merge(src proto.Message)
func (*ReplyGetTotalCoins) XXX_Size ¶
func (m *ReplyGetTotalCoins) XXX_Size() int
func (*ReplyGetTotalCoins) XXX_Unmarshal ¶
func (m *ReplyGetTotalCoins) XXX_Unmarshal(b []byte) error
type ReplyHash ¶
type ReplyHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyHash) Descriptor ¶
func (*ReplyHash) ProtoMessage ¶
func (*ReplyHash) ProtoMessage()
func (*ReplyHash) XXX_DiscardUnknown ¶
func (m *ReplyHash) XXX_DiscardUnknown()
func (*ReplyHash) XXX_Marshal ¶
func (*ReplyHash) XXX_Unmarshal ¶
type ReplyHashes ¶
type ReplyHashes struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyHashes) Descriptor ¶
func (*ReplyHashes) Descriptor() ([]byte, []int)
func (*ReplyHashes) GetHashes ¶
func (m *ReplyHashes) GetHashes() [][]byte
func (*ReplyHashes) ProtoMessage ¶
func (*ReplyHashes) ProtoMessage()
func (*ReplyHashes) Reset ¶
func (m *ReplyHashes) Reset()
func (*ReplyHashes) String ¶
func (m *ReplyHashes) String() string
func (*ReplyHashes) XXX_DiscardUnknown ¶
func (m *ReplyHashes) XXX_DiscardUnknown()
func (*ReplyHashes) XXX_Marshal ¶
func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyHashes) XXX_Merge ¶
func (m *ReplyHashes) XXX_Merge(src proto.Message)
func (*ReplyHashes) XXX_Size ¶
func (m *ReplyHashes) XXX_Size() int
func (*ReplyHashes) XXX_Unmarshal ¶
func (m *ReplyHashes) XXX_Unmarshal(b []byte) error
type ReplySeed ¶
type ReplySeed struct {
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplySeed) Descriptor ¶
func (*ReplySeed) ProtoMessage ¶
func (*ReplySeed) ProtoMessage()
func (*ReplySeed) XXX_DiscardUnknown ¶
func (m *ReplySeed) XXX_DiscardUnknown()
func (*ReplySeed) XXX_Marshal ¶
func (*ReplySeed) XXX_Unmarshal ¶
type ReplySignRawTx ¶
type ReplySignRawTx struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplySignRawTx) Descriptor ¶
func (*ReplySignRawTx) Descriptor() ([]byte, []int)
func (*ReplySignRawTx) GetTxHex ¶
func (m *ReplySignRawTx) GetTxHex() string
func (*ReplySignRawTx) ProtoMessage ¶
func (*ReplySignRawTx) ProtoMessage()
func (*ReplySignRawTx) Reset ¶
func (m *ReplySignRawTx) Reset()
func (*ReplySignRawTx) String ¶
func (m *ReplySignRawTx) String() string
func (*ReplySignRawTx) XXX_DiscardUnknown ¶
func (m *ReplySignRawTx) XXX_DiscardUnknown()
func (*ReplySignRawTx) XXX_Marshal ¶
func (m *ReplySignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplySignRawTx) XXX_Merge ¶
func (m *ReplySignRawTx) XXX_Merge(src proto.Message)
func (*ReplySignRawTx) XXX_Size ¶
func (m *ReplySignRawTx) XXX_Size() int
func (*ReplySignRawTx) XXX_Unmarshal ¶
func (m *ReplySignRawTx) XXX_Unmarshal(b []byte) error
type ReplyString ¶
type ReplyString struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyString) Descriptor ¶
func (*ReplyString) Descriptor() ([]byte, []int)
func (*ReplyString) GetData ¶
func (m *ReplyString) GetData() string
func (*ReplyString) ProtoMessage ¶
func (*ReplyString) ProtoMessage()
func (*ReplyString) Reset ¶
func (m *ReplyString) Reset()
func (*ReplyString) String ¶
func (m *ReplyString) String() string
func (*ReplyString) XXX_DiscardUnknown ¶
func (m *ReplyString) XXX_DiscardUnknown()
func (*ReplyString) XXX_Marshal ¶
func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyString) XXX_Merge ¶
func (m *ReplyString) XXX_Merge(src proto.Message)
func (*ReplyString) XXX_Size ¶
func (m *ReplyString) XXX_Size() int
func (*ReplyString) XXX_Unmarshal ¶
func (m *ReplyString) XXX_Unmarshal(b []byte) error
type ReplyStrings ¶
type ReplyStrings struct {
Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyStrings) Descriptor ¶
func (*ReplyStrings) Descriptor() ([]byte, []int)
func (*ReplyStrings) GetDatas ¶
func (m *ReplyStrings) GetDatas() []string
func (*ReplyStrings) ProtoMessage ¶
func (*ReplyStrings) ProtoMessage()
func (*ReplyStrings) Reset ¶
func (m *ReplyStrings) Reset()
func (*ReplyStrings) String ¶
func (m *ReplyStrings) String() string
func (*ReplyStrings) XXX_DiscardUnknown ¶
func (m *ReplyStrings) XXX_DiscardUnknown()
func (*ReplyStrings) XXX_Marshal ¶
func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyStrings) XXX_Merge ¶
func (m *ReplyStrings) XXX_Merge(src proto.Message)
func (*ReplyStrings) XXX_Size ¶
func (m *ReplyStrings) XXX_Size() int
func (*ReplyStrings) XXX_Unmarshal ¶
func (m *ReplyStrings) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyTxInfo) Descriptor ¶
func (*ReplyTxInfo) Descriptor() ([]byte, []int)
func (*ReplyTxInfo) GetAssets ¶
func (m *ReplyTxInfo) GetAssets() []*Asset
func (*ReplyTxInfo) GetHash ¶
func (m *ReplyTxInfo) GetHash() []byte
func (*ReplyTxInfo) GetHeight ¶
func (m *ReplyTxInfo) GetHeight() int64
func (*ReplyTxInfo) GetIndex ¶
func (m *ReplyTxInfo) GetIndex() int64
func (*ReplyTxInfo) ProtoMessage ¶
func (*ReplyTxInfo) ProtoMessage()
func (*ReplyTxInfo) Reset ¶
func (m *ReplyTxInfo) Reset()
func (*ReplyTxInfo) String ¶
func (m *ReplyTxInfo) String() string
func (*ReplyTxInfo) XXX_DiscardUnknown ¶
func (m *ReplyTxInfo) XXX_DiscardUnknown()
func (*ReplyTxInfo) XXX_Marshal ¶
func (m *ReplyTxInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyTxInfo) XXX_Merge ¶
func (m *ReplyTxInfo) XXX_Merge(src proto.Message)
func (*ReplyTxInfo) XXX_Size ¶
func (m *ReplyTxInfo) XXX_Size() int
func (*ReplyTxInfo) XXX_Unmarshal ¶
func (m *ReplyTxInfo) XXX_Unmarshal(b []byte) error
type ReplyTxInfos ¶
type ReplyTxInfos struct {
TxInfos []*ReplyTxInfo `protobuf:"bytes,1,rep,name=txInfos,proto3" json:"txInfos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyTxInfos) Descriptor ¶
func (*ReplyTxInfos) Descriptor() ([]byte, []int)
func (*ReplyTxInfos) GetTxInfos ¶
func (m *ReplyTxInfos) GetTxInfos() []*ReplyTxInfo
func (*ReplyTxInfos) ProtoMessage ¶
func (*ReplyTxInfos) ProtoMessage()
func (*ReplyTxInfos) Reset ¶
func (m *ReplyTxInfos) Reset()
func (*ReplyTxInfos) String ¶
func (m *ReplyTxInfos) String() string
func (*ReplyTxInfos) XXX_DiscardUnknown ¶
func (m *ReplyTxInfos) XXX_DiscardUnknown()
func (*ReplyTxInfos) XXX_Marshal ¶
func (m *ReplyTxInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyTxInfos) XXX_Merge ¶
func (m *ReplyTxInfos) XXX_Merge(src proto.Message)
func (*ReplyTxInfos) XXX_Size ¶
func (m *ReplyTxInfos) XXX_Size() int
func (*ReplyTxInfos) XXX_Unmarshal ¶
func (m *ReplyTxInfos) XXX_Unmarshal(b []byte) error
type ReplyTxList ¶
type ReplyTxList struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReplyTxList) Descriptor ¶
func (*ReplyTxList) Descriptor() ([]byte, []int)
func (*ReplyTxList) GetTxs ¶
func (m *ReplyTxList) GetTxs() []*Transaction
func (*ReplyTxList) ProtoMessage ¶
func (*ReplyTxList) ProtoMessage()
func (*ReplyTxList) Reset ¶
func (m *ReplyTxList) Reset()
func (*ReplyTxList) String ¶
func (m *ReplyTxList) String() string
func (*ReplyTxList) XXX_DiscardUnknown ¶
func (m *ReplyTxList) XXX_DiscardUnknown()
func (*ReplyTxList) XXX_Marshal ¶
func (m *ReplyTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyTxList) XXX_Merge ¶
func (m *ReplyTxList) XXX_Merge(src proto.Message)
func (*ReplyTxList) XXX_Size ¶
func (m *ReplyTxList) XXX_Size() int
func (*ReplyTxList) XXX_Unmarshal ¶
func (m *ReplyTxList) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReportErrEvent) Descriptor ¶
func (*ReportErrEvent) Descriptor() ([]byte, []int)
func (*ReportErrEvent) GetError ¶
func (m *ReportErrEvent) GetError() string
func (*ReportErrEvent) GetFrommodule ¶
func (m *ReportErrEvent) GetFrommodule() string
func (*ReportErrEvent) GetTomodule ¶
func (m *ReportErrEvent) GetTomodule() string
func (*ReportErrEvent) ProtoMessage ¶
func (*ReportErrEvent) ProtoMessage()
func (*ReportErrEvent) Reset ¶
func (m *ReportErrEvent) Reset()
func (*ReportErrEvent) String ¶
func (m *ReportErrEvent) String() string
func (*ReportErrEvent) XXX_DiscardUnknown ¶
func (m *ReportErrEvent) XXX_DiscardUnknown()
func (*ReportErrEvent) XXX_Marshal ¶
func (m *ReportErrEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReportErrEvent) XXX_Merge ¶
func (m *ReportErrEvent) XXX_Merge(src proto.Message)
func (*ReportErrEvent) XXX_Size ¶
func (m *ReportErrEvent) XXX_Size() int
func (*ReportErrEvent) XXX_Unmarshal ¶
func (m *ReportErrEvent) XXX_Unmarshal(b []byte) error
type ReqAccountList ¶
type ReqAccountList struct {
WithoutBalance bool `protobuf:"varint,1,opt,name=withoutBalance,proto3" json:"withoutBalance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqAccountList) Descriptor ¶
func (*ReqAccountList) Descriptor() ([]byte, []int)
func (*ReqAccountList) GetWithoutBalance ¶
func (m *ReqAccountList) GetWithoutBalance() bool
func (*ReqAccountList) ProtoMessage ¶
func (*ReqAccountList) ProtoMessage()
func (*ReqAccountList) Reset ¶
func (m *ReqAccountList) Reset()
func (*ReqAccountList) String ¶
func (m *ReqAccountList) String() string
func (*ReqAccountList) XXX_DiscardUnknown ¶
func (m *ReqAccountList) XXX_DiscardUnknown()
func (*ReqAccountList) XXX_Marshal ¶
func (m *ReqAccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqAccountList) XXX_Merge ¶
func (m *ReqAccountList) XXX_Merge(src proto.Message)
func (*ReqAccountList) XXX_Size ¶
func (m *ReqAccountList) XXX_Size() int
func (*ReqAccountList) XXX_Unmarshal ¶
func (m *ReqAccountList) XXX_Unmarshal(b []byte) error
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 int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Index int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqAddr) Descriptor ¶
func (*ReqAddr) GetDirection ¶
func (*ReqAddr) ProtoMessage ¶
func (*ReqAddr) ProtoMessage()
func (*ReqAddr) XXX_DiscardUnknown ¶
func (m *ReqAddr) XXX_DiscardUnknown()
func (*ReqAddr) XXX_Marshal ¶
func (*ReqAddr) XXX_Unmarshal ¶
type ReqAddrs ¶
type ReqAddrs struct {
Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqAddrs) Descriptor ¶
func (*ReqAddrs) ProtoMessage ¶
func (*ReqAddrs) ProtoMessage()
func (*ReqAddrs) XXX_DiscardUnknown ¶
func (m *ReqAddrs) XXX_DiscardUnknown()
func (*ReqAddrs) XXX_Marshal ¶
func (*ReqAddrs) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqAllExecBalance) Descriptor ¶
func (*ReqAllExecBalance) Descriptor() ([]byte, []int)
func (*ReqAllExecBalance) GetAddr ¶
func (m *ReqAllExecBalance) GetAddr() string
func (*ReqAllExecBalance) GetAssetExec ¶
func (m *ReqAllExecBalance) GetAssetExec() string
func (*ReqAllExecBalance) GetAssetSymbol ¶
func (m *ReqAllExecBalance) GetAssetSymbol() string
func (*ReqAllExecBalance) GetExecer ¶
func (m *ReqAllExecBalance) GetExecer() string
func (*ReqAllExecBalance) GetStateHash ¶
func (m *ReqAllExecBalance) GetStateHash() string
func (*ReqAllExecBalance) ProtoMessage ¶
func (*ReqAllExecBalance) ProtoMessage()
func (*ReqAllExecBalance) Reset ¶
func (m *ReqAllExecBalance) Reset()
func (*ReqAllExecBalance) String ¶
func (m *ReqAllExecBalance) String() string
func (*ReqAllExecBalance) XXX_DiscardUnknown ¶
func (m *ReqAllExecBalance) XXX_DiscardUnknown()
func (*ReqAllExecBalance) XXX_Marshal ¶
func (m *ReqAllExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqAllExecBalance) XXX_Merge ¶
func (m *ReqAllExecBalance) XXX_Merge(src proto.Message)
func (*ReqAllExecBalance) XXX_Size ¶
func (m *ReqAllExecBalance) XXX_Size() int
func (*ReqAllExecBalance) XXX_Unmarshal ¶
func (m *ReqAllExecBalance) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
查询一个地址列表在某个执行器中余额
func (*ReqBalance) Descriptor ¶
func (*ReqBalance) Descriptor() ([]byte, []int)
func (*ReqBalance) GetAddresses ¶
func (m *ReqBalance) GetAddresses() []string
func (*ReqBalance) GetAssetExec ¶
func (m *ReqBalance) GetAssetExec() string
func (*ReqBalance) GetAssetSymbol ¶
func (m *ReqBalance) GetAssetSymbol() string
func (*ReqBalance) GetExecer ¶
func (m *ReqBalance) GetExecer() string
func (*ReqBalance) GetStateHash ¶
func (m *ReqBalance) GetStateHash() string
func (*ReqBalance) ProtoMessage ¶
func (*ReqBalance) ProtoMessage()
func (*ReqBalance) Reset ¶
func (m *ReqBalance) Reset()
func (*ReqBalance) String ¶
func (m *ReqBalance) String() string
func (*ReqBalance) XXX_DiscardUnknown ¶
func (m *ReqBalance) XXX_DiscardUnknown()
func (*ReqBalance) XXX_Marshal ¶
func (m *ReqBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqBalance) XXX_Merge ¶
func (m *ReqBalance) XXX_Merge(src proto.Message)
func (*ReqBalance) XXX_Size ¶
func (m *ReqBalance) XXX_Size() int
func (*ReqBalance) XXX_Unmarshal ¶
func (m *ReqBalance) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
获取区块信息
start : 获取区块的开始高度 end :获取区块的结束高度 Isdetail : 是否需要获取区块的详细信息 pid : peer列表
func (*ReqBlocks) Descriptor ¶
func (*ReqBlocks) GetIsDetail ¶
func (*ReqBlocks) ProtoMessage ¶
func (*ReqBlocks) ProtoMessage()
func (*ReqBlocks) XXX_DiscardUnknown ¶
func (m *ReqBlocks) XXX_DiscardUnknown()
func (*ReqBlocks) XXX_Marshal ¶
func (*ReqBlocks) XXX_Unmarshal ¶
type ReqCreateTransaction ¶
type ReqCreateTransaction struct {
Tokenname string `protobuf:"bytes,1,opt,name=tokenname,proto3" json:"tokenname,omitempty"`
// 构建交易类型
// 0:普通的交易(暂不支持)
// 1:隐私交易 公开->隐私
// 2:隐私交易 隐私->隐私
// 3:隐私交易 隐私->公开
Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,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"`
// 普通交易的发送方
From string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"`
// 普通交易的接收方
To string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"`
// 隐私交易,接收方的公钥对
Pubkeypair string `protobuf:"bytes,10,opt,name=pubkeypair,proto3" json:"pubkeypair,omitempty"`
Mixcount int32 `protobuf:"varint,11,opt,name=mixcount,proto3" json:"mixcount,omitempty"`
Expire int64 `protobuf:"varint,12,opt,name=expire,proto3" json:"expire,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
某些交易需要存在一些复杂的算法,所以需要请求服务器协助构建交易,返回对应交易哈希值,后续签名可以根据此哈希值进行处理
func (*ReqCreateTransaction) Descriptor ¶
func (*ReqCreateTransaction) Descriptor() ([]byte, []int)
func (*ReqCreateTransaction) GetAmount ¶
func (m *ReqCreateTransaction) GetAmount() int64
func (*ReqCreateTransaction) GetExpire ¶
func (m *ReqCreateTransaction) GetExpire() int64
func (*ReqCreateTransaction) GetFrom ¶
func (m *ReqCreateTransaction) GetFrom() string
func (*ReqCreateTransaction) GetMixcount ¶
func (m *ReqCreateTransaction) GetMixcount() int32
func (*ReqCreateTransaction) GetNote ¶
func (m *ReqCreateTransaction) GetNote() string
func (*ReqCreateTransaction) GetPubkeypair ¶
func (m *ReqCreateTransaction) GetPubkeypair() string
func (*ReqCreateTransaction) GetTo ¶
func (m *ReqCreateTransaction) GetTo() string
func (*ReqCreateTransaction) GetTokenname ¶
func (m *ReqCreateTransaction) GetTokenname() string
func (*ReqCreateTransaction) GetType ¶
func (m *ReqCreateTransaction) GetType() int32
func (*ReqCreateTransaction) ProtoMessage ¶
func (*ReqCreateTransaction) ProtoMessage()
func (*ReqCreateTransaction) Reset ¶
func (m *ReqCreateTransaction) Reset()
func (*ReqCreateTransaction) String ¶
func (m *ReqCreateTransaction) String() string
func (*ReqCreateTransaction) XXX_DiscardUnknown ¶
func (m *ReqCreateTransaction) XXX_DiscardUnknown()
func (*ReqCreateTransaction) XXX_Marshal ¶
func (m *ReqCreateTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqCreateTransaction) XXX_Merge ¶
func (m *ReqCreateTransaction) XXX_Merge(src proto.Message)
func (*ReqCreateTransaction) XXX_Size ¶
func (m *ReqCreateTransaction) XXX_Size() int
func (*ReqCreateTransaction) XXX_Unmarshal ¶
func (m *ReqCreateTransaction) XXX_Unmarshal(b []byte) error
type ReqDecodeRawTransaction ¶
type ReqDecodeRawTransaction struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqDecodeRawTransaction) Descriptor ¶
func (*ReqDecodeRawTransaction) Descriptor() ([]byte, []int)
func (*ReqDecodeRawTransaction) GetTxHex ¶
func (m *ReqDecodeRawTransaction) GetTxHex() string
func (*ReqDecodeRawTransaction) ProtoMessage ¶
func (*ReqDecodeRawTransaction) ProtoMessage()
func (*ReqDecodeRawTransaction) Reset ¶
func (m *ReqDecodeRawTransaction) Reset()
func (*ReqDecodeRawTransaction) String ¶
func (m *ReqDecodeRawTransaction) String() string
func (*ReqDecodeRawTransaction) XXX_DiscardUnknown ¶
func (m *ReqDecodeRawTransaction) XXX_DiscardUnknown()
func (*ReqDecodeRawTransaction) XXX_Marshal ¶
func (m *ReqDecodeRawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqDecodeRawTransaction) XXX_Merge ¶
func (m *ReqDecodeRawTransaction) XXX_Merge(src proto.Message)
func (*ReqDecodeRawTransaction) XXX_Size ¶
func (m *ReqDecodeRawTransaction) XXX_Size() int
func (*ReqDecodeRawTransaction) XXX_Unmarshal ¶
func (m *ReqDecodeRawTransaction) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额
func (*ReqGetExecBalance) Descriptor ¶
func (*ReqGetExecBalance) Descriptor() ([]byte, []int)
func (*ReqGetExecBalance) GetAddr ¶
func (m *ReqGetExecBalance) GetAddr() []byte
func (*ReqGetExecBalance) GetCount ¶
func (m *ReqGetExecBalance) GetCount() int64
func (*ReqGetExecBalance) GetExecAddr ¶
func (m *ReqGetExecBalance) GetExecAddr() []byte
func (*ReqGetExecBalance) GetExecer ¶
func (m *ReqGetExecBalance) GetExecer() string
func (*ReqGetExecBalance) GetNextKey ¶
func (m *ReqGetExecBalance) GetNextKey() []byte
func (*ReqGetExecBalance) GetStateHash ¶
func (m *ReqGetExecBalance) GetStateHash() []byte
func (*ReqGetExecBalance) GetSymbol ¶
func (m *ReqGetExecBalance) GetSymbol() string
func (*ReqGetExecBalance) ProtoMessage ¶
func (*ReqGetExecBalance) ProtoMessage()
func (*ReqGetExecBalance) Reset ¶
func (m *ReqGetExecBalance) Reset()
func (*ReqGetExecBalance) String ¶
func (m *ReqGetExecBalance) String() string
func (*ReqGetExecBalance) XXX_DiscardUnknown ¶
func (m *ReqGetExecBalance) XXX_DiscardUnknown()
func (*ReqGetExecBalance) XXX_Marshal ¶
func (m *ReqGetExecBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqGetExecBalance) XXX_Merge ¶
func (m *ReqGetExecBalance) XXX_Merge(src proto.Message)
func (*ReqGetExecBalance) XXX_Size ¶
func (m *ReqGetExecBalance) XXX_Size() int
func (*ReqGetExecBalance) XXX_Unmarshal ¶
func (m *ReqGetExecBalance) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
查询symbol代币总额
func (*ReqGetTotalCoins) Descriptor ¶
func (*ReqGetTotalCoins) Descriptor() ([]byte, []int)
func (*ReqGetTotalCoins) GetCount ¶
func (m *ReqGetTotalCoins) GetCount() int64
func (*ReqGetTotalCoins) GetExecer ¶
func (m *ReqGetTotalCoins) GetExecer() string
func (*ReqGetTotalCoins) GetStartKey ¶
func (m *ReqGetTotalCoins) GetStartKey() []byte
func (*ReqGetTotalCoins) GetStateHash ¶
func (m *ReqGetTotalCoins) GetStateHash() []byte
func (*ReqGetTotalCoins) GetSymbol ¶
func (m *ReqGetTotalCoins) GetSymbol() string
func (*ReqGetTotalCoins) ProtoMessage ¶
func (*ReqGetTotalCoins) ProtoMessage()
func (*ReqGetTotalCoins) Reset ¶
func (m *ReqGetTotalCoins) Reset()
func (*ReqGetTotalCoins) String ¶
func (m *ReqGetTotalCoins) String() string
func (*ReqGetTotalCoins) XXX_DiscardUnknown ¶
func (m *ReqGetTotalCoins) XXX_DiscardUnknown()
func (*ReqGetTotalCoins) XXX_Marshal ¶
func (m *ReqGetTotalCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqGetTotalCoins) XXX_Merge ¶
func (m *ReqGetTotalCoins) XXX_Merge(src proto.Message)
func (*ReqGetTotalCoins) XXX_Size ¶
func (m *ReqGetTotalCoins) XXX_Size() int
func (*ReqGetTotalCoins) XXX_Unmarshal ¶
func (m *ReqGetTotalCoins) XXX_Unmarshal(b []byte) error
type ReqHash ¶
type ReqHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqHash) Descriptor ¶
func (*ReqHash) ProtoMessage ¶
func (*ReqHash) ProtoMessage()
func (*ReqHash) XXX_DiscardUnknown ¶
func (m *ReqHash) XXX_DiscardUnknown()
func (*ReqHash) XXX_Marshal ¶
func (*ReqHash) XXX_Unmarshal ¶
type ReqHashes ¶
type ReqHashes struct {
Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqHashes) Descriptor ¶
func (*ReqHashes) ProtoMessage ¶
func (*ReqHashes) ProtoMessage()
func (*ReqHashes) XXX_DiscardUnknown ¶
func (m *ReqHashes) XXX_DiscardUnknown()
func (*ReqHashes) XXX_Marshal ¶
func (*ReqHashes) XXX_Unmarshal ¶
type ReqInt ¶
type ReqInt struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqInt) Descriptor ¶
func (*ReqInt) ProtoMessage ¶
func (*ReqInt) ProtoMessage()
func (*ReqInt) XXX_DiscardUnknown ¶
func (m *ReqInt) XXX_DiscardUnknown()
func (*ReqInt) XXX_Marshal ¶
func (*ReqInt) XXX_Unmarshal ¶
type ReqKey ¶
type ReqKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqKey) Descriptor ¶
func (*ReqKey) ProtoMessage ¶
func (*ReqKey) ProtoMessage()
func (*ReqKey) XXX_DiscardUnknown ¶
func (m *ReqKey) XXX_DiscardUnknown()
func (*ReqKey) XXX_Marshal ¶
func (*ReqKey) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqModifyConfig) Descriptor ¶
func (*ReqModifyConfig) Descriptor() ([]byte, []int)
func (*ReqModifyConfig) GetKey ¶
func (m *ReqModifyConfig) GetKey() string
func (*ReqModifyConfig) GetModifier ¶
func (m *ReqModifyConfig) GetModifier() string
func (*ReqModifyConfig) GetOp ¶
func (m *ReqModifyConfig) GetOp() string
func (*ReqModifyConfig) GetValue ¶
func (m *ReqModifyConfig) GetValue() string
func (*ReqModifyConfig) ProtoMessage ¶
func (*ReqModifyConfig) ProtoMessage()
func (*ReqModifyConfig) Reset ¶
func (m *ReqModifyConfig) Reset()
func (*ReqModifyConfig) String ¶
func (m *ReqModifyConfig) String() string
func (*ReqModifyConfig) XXX_DiscardUnknown ¶
func (m *ReqModifyConfig) XXX_DiscardUnknown()
func (*ReqModifyConfig) XXX_Marshal ¶
func (m *ReqModifyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqModifyConfig) XXX_Merge ¶
func (m *ReqModifyConfig) XXX_Merge(src proto.Message)
func (*ReqModifyConfig) XXX_Size ¶
func (m *ReqModifyConfig) XXX_Size() int
func (*ReqModifyConfig) XXX_Unmarshal ¶
func (m *ReqModifyConfig) XXX_Unmarshal(b []byte) error
type ReqNewAccount ¶
type ReqNewAccount struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqNewAccount) Descriptor ¶
func (*ReqNewAccount) Descriptor() ([]byte, []int)
func (*ReqNewAccount) GetLabel ¶
func (m *ReqNewAccount) GetLabel() string
func (*ReqNewAccount) ProtoMessage ¶
func (*ReqNewAccount) ProtoMessage()
func (*ReqNewAccount) Reset ¶
func (m *ReqNewAccount) Reset()
func (*ReqNewAccount) String ¶
func (m *ReqNewAccount) String() string
func (*ReqNewAccount) XXX_DiscardUnknown ¶
func (m *ReqNewAccount) XXX_DiscardUnknown()
func (*ReqNewAccount) XXX_Marshal ¶
func (m *ReqNewAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqNewAccount) XXX_Merge ¶
func (m *ReqNewAccount) XXX_Merge(src proto.Message)
func (*ReqNewAccount) XXX_Size ¶
func (m *ReqNewAccount) XXX_Size() int
func (*ReqNewAccount) XXX_Unmarshal ¶
func (m *ReqNewAccount) XXX_Unmarshal(b []byte) error
type ReqNil ¶
type ReqNil struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqNil) Descriptor ¶
func (*ReqNil) ProtoMessage ¶
func (*ReqNil) ProtoMessage()
func (*ReqNil) XXX_DiscardUnknown ¶
func (m *ReqNil) XXX_DiscardUnknown()
func (*ReqNil) XXX_Marshal ¶
func (*ReqNil) XXX_Unmarshal ¶
type ReqPrivacy ¶
type ReqPrivacy struct {
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Direction int32 `protobuf:"varint,2,opt,name=direction,proto3" json:"direction,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqPrivacy) Descriptor ¶
func (*ReqPrivacy) Descriptor() ([]byte, []int)
func (*ReqPrivacy) GetCount ¶
func (m *ReqPrivacy) GetCount() int32
func (*ReqPrivacy) GetDirection ¶
func (m *ReqPrivacy) GetDirection() int32
func (*ReqPrivacy) GetHeight ¶
func (m *ReqPrivacy) GetHeight() int64
func (*ReqPrivacy) ProtoMessage ¶
func (*ReqPrivacy) ProtoMessage()
func (*ReqPrivacy) Reset ¶
func (m *ReqPrivacy) Reset()
func (*ReqPrivacy) String ¶
func (m *ReqPrivacy) String() string
func (*ReqPrivacy) XXX_DiscardUnknown ¶
func (m *ReqPrivacy) XXX_DiscardUnknown()
func (*ReqPrivacy) XXX_Marshal ¶
func (m *ReqPrivacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqPrivacy) XXX_Merge ¶
func (m *ReqPrivacy) XXX_Merge(src proto.Message)
func (*ReqPrivacy) XXX_Size ¶
func (m *ReqPrivacy) XXX_Size() int
func (*ReqPrivacy) XXX_Unmarshal ¶
func (m *ReqPrivacy) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqRandHash) Descriptor ¶
func (*ReqRandHash) Descriptor() ([]byte, []int)
func (*ReqRandHash) GetBlockNum ¶
func (m *ReqRandHash) GetBlockNum() int64
func (*ReqRandHash) GetExecName ¶
func (m *ReqRandHash) GetExecName() string
func (*ReqRandHash) GetHash ¶
func (m *ReqRandHash) GetHash() []byte
func (*ReqRandHash) GetHeight ¶
func (m *ReqRandHash) GetHeight() int64
func (*ReqRandHash) ProtoMessage ¶
func (*ReqRandHash) ProtoMessage()
func (*ReqRandHash) Reset ¶
func (m *ReqRandHash) Reset()
func (*ReqRandHash) String ¶
func (m *ReqRandHash) String() string
func (*ReqRandHash) XXX_DiscardUnknown ¶
func (m *ReqRandHash) XXX_DiscardUnknown()
func (*ReqRandHash) XXX_Marshal ¶
func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqRandHash) XXX_Merge ¶
func (m *ReqRandHash) XXX_Merge(src proto.Message)
func (*ReqRandHash) XXX_Size ¶
func (m *ReqRandHash) XXX_Size() int
func (*ReqRandHash) XXX_Unmarshal ¶
func (m *ReqRandHash) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqSignRawTx) Descriptor ¶
func (*ReqSignRawTx) Descriptor() ([]byte, []int)
func (*ReqSignRawTx) GetAddr ¶
func (m *ReqSignRawTx) GetAddr() string
func (*ReqSignRawTx) GetExpire ¶
func (m *ReqSignRawTx) GetExpire() string
func (*ReqSignRawTx) GetFee ¶
func (m *ReqSignRawTx) GetFee() int64
func (*ReqSignRawTx) GetIndex ¶
func (m *ReqSignRawTx) GetIndex() int32
func (*ReqSignRawTx) GetNewToAddr ¶
func (m *ReqSignRawTx) GetNewToAddr() string
func (*ReqSignRawTx) GetPrivkey ¶
func (m *ReqSignRawTx) GetPrivkey() string
func (*ReqSignRawTx) GetToken ¶
func (m *ReqSignRawTx) GetToken() string
func (*ReqSignRawTx) GetTxHex ¶
func (m *ReqSignRawTx) GetTxHex() string
func (*ReqSignRawTx) ProtoMessage ¶
func (*ReqSignRawTx) ProtoMessage()
func (*ReqSignRawTx) Reset ¶
func (m *ReqSignRawTx) Reset()
func (*ReqSignRawTx) String ¶
func (m *ReqSignRawTx) String() string
func (*ReqSignRawTx) XXX_DiscardUnknown ¶
func (m *ReqSignRawTx) XXX_DiscardUnknown()
func (*ReqSignRawTx) XXX_Marshal ¶
func (m *ReqSignRawTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqSignRawTx) XXX_Merge ¶
func (m *ReqSignRawTx) XXX_Merge(src proto.Message)
func (*ReqSignRawTx) XXX_Size ¶
func (m *ReqSignRawTx) XXX_Size() int
func (*ReqSignRawTx) XXX_Unmarshal ¶
func (m *ReqSignRawTx) XXX_Unmarshal(b []byte) error
type ReqString ¶
type ReqString struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqString) Descriptor ¶
func (*ReqString) ProtoMessage ¶
func (*ReqString) ProtoMessage()
func (*ReqString) XXX_DiscardUnknown ¶
func (m *ReqString) XXX_DiscardUnknown()
func (*ReqString) XXX_Marshal ¶
func (*ReqString) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqTokenFinishCreate) Descriptor ¶
func (*ReqTokenFinishCreate) Descriptor() ([]byte, []int)
func (*ReqTokenFinishCreate) GetFinisherAddr ¶
func (m *ReqTokenFinishCreate) GetFinisherAddr() string
func (*ReqTokenFinishCreate) GetOwnerAddr ¶
func (m *ReqTokenFinishCreate) GetOwnerAddr() string
func (*ReqTokenFinishCreate) GetSymbol ¶
func (m *ReqTokenFinishCreate) GetSymbol() string
func (*ReqTokenFinishCreate) ProtoMessage ¶
func (*ReqTokenFinishCreate) ProtoMessage()
func (*ReqTokenFinishCreate) Reset ¶
func (m *ReqTokenFinishCreate) Reset()
func (*ReqTokenFinishCreate) String ¶
func (m *ReqTokenFinishCreate) String() string
func (*ReqTokenFinishCreate) XXX_DiscardUnknown ¶
func (m *ReqTokenFinishCreate) XXX_DiscardUnknown()
func (*ReqTokenFinishCreate) XXX_Marshal ¶
func (m *ReqTokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenFinishCreate) XXX_Merge ¶
func (m *ReqTokenFinishCreate) XXX_Merge(src proto.Message)
func (*ReqTokenFinishCreate) XXX_Size ¶
func (m *ReqTokenFinishCreate) XXX_Size() int
func (*ReqTokenFinishCreate) XXX_Unmarshal ¶
func (m *ReqTokenFinishCreate) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqTokenPreCreate) Descriptor ¶
func (*ReqTokenPreCreate) Descriptor() ([]byte, []int)
func (*ReqTokenPreCreate) GetCreatorAddr ¶
func (m *ReqTokenPreCreate) GetCreatorAddr() string
func (*ReqTokenPreCreate) GetIntroduction ¶
func (m *ReqTokenPreCreate) GetIntroduction() string
func (*ReqTokenPreCreate) GetName ¶
func (m *ReqTokenPreCreate) GetName() string
func (*ReqTokenPreCreate) GetOwnerAddr ¶
func (m *ReqTokenPreCreate) GetOwnerAddr() string
func (*ReqTokenPreCreate) GetPrice ¶
func (m *ReqTokenPreCreate) GetPrice() int64
func (*ReqTokenPreCreate) GetSymbol ¶
func (m *ReqTokenPreCreate) GetSymbol() string
func (*ReqTokenPreCreate) GetTotal ¶
func (m *ReqTokenPreCreate) GetTotal() int64
func (*ReqTokenPreCreate) ProtoMessage ¶
func (*ReqTokenPreCreate) ProtoMessage()
func (*ReqTokenPreCreate) Reset ¶
func (m *ReqTokenPreCreate) Reset()
func (*ReqTokenPreCreate) String ¶
func (m *ReqTokenPreCreate) String() string
func (*ReqTokenPreCreate) XXX_DiscardUnknown ¶
func (m *ReqTokenPreCreate) XXX_DiscardUnknown()
func (*ReqTokenPreCreate) XXX_Marshal ¶
func (m *ReqTokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenPreCreate) XXX_Merge ¶
func (m *ReqTokenPreCreate) XXX_Merge(src proto.Message)
func (*ReqTokenPreCreate) XXX_Size ¶
func (m *ReqTokenPreCreate) XXX_Size() int
func (*ReqTokenPreCreate) XXX_Unmarshal ¶
func (m *ReqTokenPreCreate) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqTokenRevokeCreate) Descriptor ¶
func (*ReqTokenRevokeCreate) Descriptor() ([]byte, []int)
func (*ReqTokenRevokeCreate) GetOwnerAddr ¶
func (m *ReqTokenRevokeCreate) GetOwnerAddr() string
func (*ReqTokenRevokeCreate) GetRevokerAddr ¶
func (m *ReqTokenRevokeCreate) GetRevokerAddr() string
func (*ReqTokenRevokeCreate) GetSymbol ¶
func (m *ReqTokenRevokeCreate) GetSymbol() string
func (*ReqTokenRevokeCreate) ProtoMessage ¶
func (*ReqTokenRevokeCreate) ProtoMessage()
func (*ReqTokenRevokeCreate) Reset ¶
func (m *ReqTokenRevokeCreate) Reset()
func (*ReqTokenRevokeCreate) String ¶
func (m *ReqTokenRevokeCreate) String() string
func (*ReqTokenRevokeCreate) XXX_DiscardUnknown ¶
func (m *ReqTokenRevokeCreate) XXX_DiscardUnknown()
func (*ReqTokenRevokeCreate) XXX_Marshal ¶
func (m *ReqTokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqTokenRevokeCreate) XXX_Merge ¶
func (m *ReqTokenRevokeCreate) XXX_Merge(src proto.Message)
func (*ReqTokenRevokeCreate) XXX_Size ¶
func (m *ReqTokenRevokeCreate) XXX_Size() int
func (*ReqTokenRevokeCreate) XXX_Unmarshal ¶
func (m *ReqTokenRevokeCreate) XXX_Unmarshal(b []byte) error
type ReqTxList ¶
type ReqTxList struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqTxList) Descriptor ¶
func (*ReqTxList) ProtoMessage ¶
func (*ReqTxList) ProtoMessage()
func (*ReqTxList) XXX_DiscardUnknown ¶
func (m *ReqTxList) XXX_DiscardUnknown()
func (*ReqTxList) XXX_Marshal ¶
func (*ReqTxList) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqWalletImportPrivkey) Descriptor ¶
func (*ReqWalletImportPrivkey) Descriptor() ([]byte, []int)
func (*ReqWalletImportPrivkey) GetLabel ¶
func (m *ReqWalletImportPrivkey) GetLabel() string
func (*ReqWalletImportPrivkey) GetPrivkey ¶
func (m *ReqWalletImportPrivkey) GetPrivkey() string
func (*ReqWalletImportPrivkey) ProtoMessage ¶
func (*ReqWalletImportPrivkey) ProtoMessage()
func (*ReqWalletImportPrivkey) Reset ¶
func (m *ReqWalletImportPrivkey) Reset()
func (*ReqWalletImportPrivkey) String ¶
func (m *ReqWalletImportPrivkey) String() string
func (*ReqWalletImportPrivkey) XXX_DiscardUnknown ¶
func (m *ReqWalletImportPrivkey) XXX_DiscardUnknown()
func (*ReqWalletImportPrivkey) XXX_Marshal ¶
func (m *ReqWalletImportPrivkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletImportPrivkey) XXX_Merge ¶
func (m *ReqWalletImportPrivkey) XXX_Merge(src proto.Message)
func (*ReqWalletImportPrivkey) XXX_Size ¶
func (m *ReqWalletImportPrivkey) XXX_Size() int
func (*ReqWalletImportPrivkey) XXX_Unmarshal ¶
func (m *ReqWalletImportPrivkey) XXX_Unmarshal(b []byte) error
type ReqWalletMergeBalance ¶
type ReqWalletMergeBalance struct {
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqWalletMergeBalance) Descriptor ¶
func (*ReqWalletMergeBalance) Descriptor() ([]byte, []int)
func (*ReqWalletMergeBalance) GetTo ¶
func (m *ReqWalletMergeBalance) GetTo() string
func (*ReqWalletMergeBalance) ProtoMessage ¶
func (*ReqWalletMergeBalance) ProtoMessage()
func (*ReqWalletMergeBalance) Reset ¶
func (m *ReqWalletMergeBalance) Reset()
func (*ReqWalletMergeBalance) String ¶
func (m *ReqWalletMergeBalance) String() string
func (*ReqWalletMergeBalance) XXX_DiscardUnknown ¶
func (m *ReqWalletMergeBalance) XXX_DiscardUnknown()
func (*ReqWalletMergeBalance) XXX_Marshal ¶
func (m *ReqWalletMergeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletMergeBalance) XXX_Merge ¶
func (m *ReqWalletMergeBalance) XXX_Merge(src proto.Message)
func (*ReqWalletMergeBalance) XXX_Size ¶
func (m *ReqWalletMergeBalance) XXX_Size() int
func (*ReqWalletMergeBalance) XXX_Unmarshal ¶
func (m *ReqWalletMergeBalance) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
发送交易
from : 打出地址 to :接受地址 amount : 转账额度 note :转账备注
func (*ReqWalletSendToAddress) Descriptor ¶
func (*ReqWalletSendToAddress) Descriptor() ([]byte, []int)
func (*ReqWalletSendToAddress) GetAmount ¶
func (m *ReqWalletSendToAddress) GetAmount() int64
func (*ReqWalletSendToAddress) GetFrom ¶
func (m *ReqWalletSendToAddress) GetFrom() string
func (*ReqWalletSendToAddress) GetIsToken ¶
func (m *ReqWalletSendToAddress) GetIsToken() bool
func (*ReqWalletSendToAddress) GetNote ¶
func (m *ReqWalletSendToAddress) GetNote() string
func (*ReqWalletSendToAddress) GetTo ¶
func (m *ReqWalletSendToAddress) GetTo() string
func (*ReqWalletSendToAddress) GetTokenSymbol ¶
func (m *ReqWalletSendToAddress) GetTokenSymbol() string
func (*ReqWalletSendToAddress) ProtoMessage ¶
func (*ReqWalletSendToAddress) ProtoMessage()
func (*ReqWalletSendToAddress) Reset ¶
func (m *ReqWalletSendToAddress) Reset()
func (*ReqWalletSendToAddress) String ¶
func (m *ReqWalletSendToAddress) String() string
func (*ReqWalletSendToAddress) XXX_DiscardUnknown ¶
func (m *ReqWalletSendToAddress) XXX_DiscardUnknown()
func (*ReqWalletSendToAddress) XXX_Marshal ¶
func (m *ReqWalletSendToAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletSendToAddress) XXX_Merge ¶
func (m *ReqWalletSendToAddress) XXX_Merge(src proto.Message)
func (*ReqWalletSendToAddress) XXX_Size ¶
func (m *ReqWalletSendToAddress) XXX_Size() int
func (*ReqWalletSendToAddress) XXX_Unmarshal ¶
func (m *ReqWalletSendToAddress) XXX_Unmarshal(b []byte) error
type ReqWalletSetFee ¶
type ReqWalletSetFee struct {
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqWalletSetFee) Descriptor ¶
func (*ReqWalletSetFee) Descriptor() ([]byte, []int)
func (*ReqWalletSetFee) GetAmount ¶
func (m *ReqWalletSetFee) GetAmount() int64
func (*ReqWalletSetFee) ProtoMessage ¶
func (*ReqWalletSetFee) ProtoMessage()
func (*ReqWalletSetFee) Reset ¶
func (m *ReqWalletSetFee) Reset()
func (*ReqWalletSetFee) String ¶
func (m *ReqWalletSetFee) String() string
func (*ReqWalletSetFee) XXX_DiscardUnknown ¶
func (m *ReqWalletSetFee) XXX_DiscardUnknown()
func (*ReqWalletSetFee) XXX_Marshal ¶
func (m *ReqWalletSetFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletSetFee) XXX_Merge ¶
func (m *ReqWalletSetFee) XXX_Merge(src proto.Message)
func (*ReqWalletSetFee) XXX_Size ¶
func (m *ReqWalletSetFee) XXX_Size() int
func (*ReqWalletSetFee) XXX_Unmarshal ¶
func (m *ReqWalletSetFee) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqWalletSetLabel) Descriptor ¶
func (*ReqWalletSetLabel) Descriptor() ([]byte, []int)
func (*ReqWalletSetLabel) GetAddr ¶
func (m *ReqWalletSetLabel) GetAddr() string
func (*ReqWalletSetLabel) GetLabel ¶
func (m *ReqWalletSetLabel) GetLabel() string
func (*ReqWalletSetLabel) ProtoMessage ¶
func (*ReqWalletSetLabel) ProtoMessage()
func (*ReqWalletSetLabel) Reset ¶
func (m *ReqWalletSetLabel) Reset()
func (*ReqWalletSetLabel) String ¶
func (m *ReqWalletSetLabel) String() string
func (*ReqWalletSetLabel) XXX_DiscardUnknown ¶
func (m *ReqWalletSetLabel) XXX_DiscardUnknown()
func (*ReqWalletSetLabel) XXX_Marshal ¶
func (m *ReqWalletSetLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletSetLabel) XXX_Merge ¶
func (m *ReqWalletSetLabel) XXX_Merge(src proto.Message)
func (*ReqWalletSetLabel) XXX_Size ¶
func (m *ReqWalletSetLabel) XXX_Size() int
func (*ReqWalletSetLabel) XXX_Unmarshal ¶
func (m *ReqWalletSetLabel) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ReqWalletSetPasswd) Descriptor ¶
func (*ReqWalletSetPasswd) Descriptor() ([]byte, []int)
func (*ReqWalletSetPasswd) GetNewPass ¶
func (m *ReqWalletSetPasswd) GetNewPass() string
func (*ReqWalletSetPasswd) GetOldPass ¶
func (m *ReqWalletSetPasswd) GetOldPass() string
func (*ReqWalletSetPasswd) ProtoMessage ¶
func (*ReqWalletSetPasswd) ProtoMessage()
func (*ReqWalletSetPasswd) Reset ¶
func (m *ReqWalletSetPasswd) Reset()
func (*ReqWalletSetPasswd) String ¶
func (m *ReqWalletSetPasswd) String() string
func (*ReqWalletSetPasswd) XXX_DiscardUnknown ¶
func (m *ReqWalletSetPasswd) XXX_DiscardUnknown()
func (*ReqWalletSetPasswd) XXX_Marshal ¶
func (m *ReqWalletSetPasswd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletSetPasswd) XXX_Merge ¶
func (m *ReqWalletSetPasswd) XXX_Merge(src proto.Message)
func (*ReqWalletSetPasswd) XXX_Size ¶
func (m *ReqWalletSetPasswd) XXX_Size() int
func (*ReqWalletSetPasswd) XXX_Unmarshal ¶
func (m *ReqWalletSetPasswd) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
获取钱包交易的详细信息
fromTx : []byte( Sprintf("%018d", height*100000 + index),
表示从高度 height 中的 index 开始获取交易列表;
第一次传参为空,获取最新的交易。)
count :获取交易列表的个数。
direction :查找方式;0,上一页;1,下一页。
func (*ReqWalletTransactionList) Descriptor ¶
func (*ReqWalletTransactionList) Descriptor() ([]byte, []int)
func (*ReqWalletTransactionList) GetCount ¶
func (m *ReqWalletTransactionList) GetCount() int32
func (*ReqWalletTransactionList) GetDirection ¶
func (m *ReqWalletTransactionList) GetDirection() int32
func (*ReqWalletTransactionList) GetFromTx ¶
func (m *ReqWalletTransactionList) GetFromTx() []byte
func (*ReqWalletTransactionList) ProtoMessage ¶
func (*ReqWalletTransactionList) ProtoMessage()
func (*ReqWalletTransactionList) Reset ¶
func (m *ReqWalletTransactionList) Reset()
func (*ReqWalletTransactionList) String ¶
func (m *ReqWalletTransactionList) String() string
func (*ReqWalletTransactionList) XXX_DiscardUnknown ¶
func (m *ReqWalletTransactionList) XXX_DiscardUnknown()
func (*ReqWalletTransactionList) XXX_Marshal ¶
func (m *ReqWalletTransactionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqWalletTransactionList) XXX_Merge ¶
func (m *ReqWalletTransactionList) XXX_Merge(src proto.Message)
func (*ReqWalletTransactionList) XXX_Size ¶
func (m *ReqWalletTransactionList) XXX_Size() int
func (*ReqWalletTransactionList) XXX_Unmarshal ¶
func (m *ReqWalletTransactionList) XXX_Unmarshal(b []byte) error
type Request ¶
type Request struct {
// Types that are valid to be assigned to Value:
// *Request_Client
// *Request_Preprepare
// *Request_Prepare
// *Request_Commit
// *Request_Checkpoint
// *Request_Viewchange
// *Request_Ack
// *Request_Newview
Value isRequest_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Request) Descriptor ¶
func (*Request) GetAck ¶
func (m *Request) GetAck() *RequestAck
func (*Request) GetCheckpoint ¶
func (m *Request) GetCheckpoint() *RequestCheckpoint
func (*Request) GetClient ¶
func (m *Request) GetClient() *RequestClient
func (*Request) GetCommit ¶
func (m *Request) GetCommit() *RequestCommit
func (*Request) GetNewview ¶
func (m *Request) GetNewview() *RequestNewView
func (*Request) GetPrepare ¶
func (m *Request) GetPrepare() *RequestPrepare
func (*Request) GetPreprepare ¶
func (m *Request) GetPreprepare() *RequestPrePrepare
func (*Request) GetViewchange ¶
func (m *Request) GetViewchange() *RequestViewChange
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_OneofFuncs ¶
func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Request) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestAck) Descriptor ¶
func (*RequestAck) Descriptor() ([]byte, []int)
func (*RequestAck) GetDigest ¶
func (m *RequestAck) GetDigest() []byte
func (*RequestAck) GetReplica ¶
func (m *RequestAck) GetReplica() uint32
func (*RequestAck) GetView ¶
func (m *RequestAck) GetView() uint32
func (*RequestAck) GetViewchanger ¶
func (m *RequestAck) GetViewchanger() uint32
func (*RequestAck) ProtoMessage ¶
func (*RequestAck) ProtoMessage()
func (*RequestAck) Reset ¶
func (m *RequestAck) Reset()
func (*RequestAck) String ¶
func (m *RequestAck) String() string
func (*RequestAck) XXX_DiscardUnknown ¶
func (m *RequestAck) XXX_DiscardUnknown()
func (*RequestAck) XXX_Marshal ¶
func (m *RequestAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestAck) XXX_Merge ¶
func (m *RequestAck) XXX_Merge(src proto.Message)
func (*RequestAck) XXX_Size ¶
func (m *RequestAck) XXX_Size() int
func (*RequestAck) XXX_Unmarshal ¶
func (m *RequestAck) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestCheckpoint) Descriptor ¶
func (*RequestCheckpoint) Descriptor() ([]byte, []int)
func (*RequestCheckpoint) GetDigest ¶
func (m *RequestCheckpoint) GetDigest() []byte
func (*RequestCheckpoint) GetReplica ¶
func (m *RequestCheckpoint) GetReplica() uint32
func (*RequestCheckpoint) GetSequence ¶
func (m *RequestCheckpoint) GetSequence() uint32
func (*RequestCheckpoint) ProtoMessage ¶
func (*RequestCheckpoint) ProtoMessage()
func (*RequestCheckpoint) Reset ¶
func (m *RequestCheckpoint) Reset()
func (*RequestCheckpoint) String ¶
func (m *RequestCheckpoint) String() string
func (*RequestCheckpoint) XXX_DiscardUnknown ¶
func (m *RequestCheckpoint) XXX_DiscardUnknown()
func (*RequestCheckpoint) XXX_Marshal ¶
func (m *RequestCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestCheckpoint) XXX_Merge ¶
func (m *RequestCheckpoint) XXX_Merge(src proto.Message)
func (*RequestCheckpoint) XXX_Size ¶
func (m *RequestCheckpoint) XXX_Size() int
func (*RequestCheckpoint) XXX_Unmarshal ¶
func (m *RequestCheckpoint) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestClient) Descriptor ¶
func (*RequestClient) Descriptor() ([]byte, []int)
func (*RequestClient) GetClient ¶
func (m *RequestClient) GetClient() string
func (*RequestClient) GetOp ¶
func (m *RequestClient) GetOp() *Operation
func (*RequestClient) GetTimestamp ¶
func (m *RequestClient) GetTimestamp() string
func (*RequestClient) ProtoMessage ¶
func (*RequestClient) ProtoMessage()
func (*RequestClient) Reset ¶
func (m *RequestClient) Reset()
func (*RequestClient) String ¶
func (m *RequestClient) String() string
func (*RequestClient) XXX_DiscardUnknown ¶
func (m *RequestClient) XXX_DiscardUnknown()
func (*RequestClient) XXX_Marshal ¶
func (m *RequestClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestClient) XXX_Merge ¶
func (m *RequestClient) XXX_Merge(src proto.Message)
func (*RequestClient) XXX_Size ¶
func (m *RequestClient) XXX_Size() int
func (*RequestClient) XXX_Unmarshal ¶
func (m *RequestClient) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestCommit) Descriptor ¶
func (*RequestCommit) Descriptor() ([]byte, []int)
func (*RequestCommit) GetReplica ¶
func (m *RequestCommit) GetReplica() uint32
func (*RequestCommit) GetSequence ¶
func (m *RequestCommit) GetSequence() uint32
func (*RequestCommit) GetView ¶
func (m *RequestCommit) GetView() uint32
func (*RequestCommit) ProtoMessage ¶
func (*RequestCommit) ProtoMessage()
func (*RequestCommit) Reset ¶
func (m *RequestCommit) Reset()
func (*RequestCommit) String ¶
func (m *RequestCommit) String() string
func (*RequestCommit) XXX_DiscardUnknown ¶
func (m *RequestCommit) XXX_DiscardUnknown()
func (*RequestCommit) XXX_Marshal ¶
func (m *RequestCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestCommit) XXX_Merge ¶
func (m *RequestCommit) XXX_Merge(src proto.Message)
func (*RequestCommit) XXX_Size ¶
func (m *RequestCommit) XXX_Size() int
func (*RequestCommit) XXX_Unmarshal ¶
func (m *RequestCommit) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestNewView) Descriptor ¶
func (*RequestNewView) Descriptor() ([]byte, []int)
func (*RequestNewView) GetReplica ¶
func (m *RequestNewView) GetReplica() uint32
func (*RequestNewView) GetSummaries ¶
func (m *RequestNewView) GetSummaries() []*Summary
func (*RequestNewView) GetView ¶
func (m *RequestNewView) GetView() uint32
func (*RequestNewView) GetViewchanges ¶
func (m *RequestNewView) GetViewchanges() []*ViewChange
func (*RequestNewView) ProtoMessage ¶
func (*RequestNewView) ProtoMessage()
func (*RequestNewView) Reset ¶
func (m *RequestNewView) Reset()
func (*RequestNewView) String ¶
func (m *RequestNewView) String() string
func (*RequestNewView) XXX_DiscardUnknown ¶
func (m *RequestNewView) XXX_DiscardUnknown()
func (*RequestNewView) XXX_Marshal ¶
func (m *RequestNewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestNewView) XXX_Merge ¶
func (m *RequestNewView) XXX_Merge(src proto.Message)
func (*RequestNewView) XXX_Size ¶
func (m *RequestNewView) XXX_Size() int
func (*RequestNewView) XXX_Unmarshal ¶
func (m *RequestNewView) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestPrePrepare) Descriptor ¶
func (*RequestPrePrepare) Descriptor() ([]byte, []int)
func (*RequestPrePrepare) GetDigest ¶
func (m *RequestPrePrepare) GetDigest() []byte
func (*RequestPrePrepare) GetReplica ¶
func (m *RequestPrePrepare) GetReplica() uint32
func (*RequestPrePrepare) GetSequence ¶
func (m *RequestPrePrepare) GetSequence() uint32
func (*RequestPrePrepare) GetView ¶
func (m *RequestPrePrepare) GetView() uint32
func (*RequestPrePrepare) ProtoMessage ¶
func (*RequestPrePrepare) ProtoMessage()
func (*RequestPrePrepare) Reset ¶
func (m *RequestPrePrepare) Reset()
func (*RequestPrePrepare) String ¶
func (m *RequestPrePrepare) String() string
func (*RequestPrePrepare) XXX_DiscardUnknown ¶
func (m *RequestPrePrepare) XXX_DiscardUnknown()
func (*RequestPrePrepare) XXX_Marshal ¶
func (m *RequestPrePrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestPrePrepare) XXX_Merge ¶
func (m *RequestPrePrepare) XXX_Merge(src proto.Message)
func (*RequestPrePrepare) XXX_Size ¶
func (m *RequestPrePrepare) XXX_Size() int
func (*RequestPrePrepare) XXX_Unmarshal ¶
func (m *RequestPrePrepare) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestPrepare) Descriptor ¶
func (*RequestPrepare) Descriptor() ([]byte, []int)
func (*RequestPrepare) GetDigest ¶
func (m *RequestPrepare) GetDigest() []byte
func (*RequestPrepare) GetReplica ¶
func (m *RequestPrepare) GetReplica() uint32
func (*RequestPrepare) GetSequence ¶
func (m *RequestPrepare) GetSequence() uint32
func (*RequestPrepare) GetView ¶
func (m *RequestPrepare) GetView() uint32
func (*RequestPrepare) ProtoMessage ¶
func (*RequestPrepare) ProtoMessage()
func (*RequestPrepare) Reset ¶
func (m *RequestPrepare) Reset()
func (*RequestPrepare) String ¶
func (m *RequestPrepare) String() string
func (*RequestPrepare) XXX_DiscardUnknown ¶
func (m *RequestPrepare) XXX_DiscardUnknown()
func (*RequestPrepare) XXX_Marshal ¶
func (m *RequestPrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestPrepare) XXX_Merge ¶
func (m *RequestPrepare) XXX_Merge(src proto.Message)
func (*RequestPrepare) XXX_Size ¶
func (m *RequestPrepare) XXX_Size() int
func (*RequestPrepare) XXX_Unmarshal ¶
func (m *RequestPrepare) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestViewChange) Descriptor ¶
func (*RequestViewChange) Descriptor() ([]byte, []int)
func (*RequestViewChange) GetCheckpoints ¶
func (m *RequestViewChange) GetCheckpoints() []*Checkpoint
func (*RequestViewChange) GetPrepreps ¶
func (m *RequestViewChange) GetPrepreps() []*Entry
func (*RequestViewChange) GetPreps ¶
func (m *RequestViewChange) GetPreps() []*Entry
func (*RequestViewChange) GetReplica ¶
func (m *RequestViewChange) GetReplica() uint32
func (*RequestViewChange) GetSequence ¶
func (m *RequestViewChange) GetSequence() uint32
func (*RequestViewChange) GetView ¶
func (m *RequestViewChange) GetView() uint32
func (*RequestViewChange) ProtoMessage ¶
func (*RequestViewChange) ProtoMessage()
func (*RequestViewChange) Reset ¶
func (m *RequestViewChange) Reset()
func (*RequestViewChange) String ¶
func (m *RequestViewChange) String() string
func (*RequestViewChange) XXX_DiscardUnknown ¶
func (m *RequestViewChange) XXX_DiscardUnknown()
func (*RequestViewChange) XXX_Marshal ¶
func (m *RequestViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestViewChange) XXX_Merge ¶
func (m *RequestViewChange) XXX_Merge(src proto.Message)
func (*RequestViewChange) XXX_Size ¶
func (m *RequestViewChange) XXX_Size() int
func (*RequestViewChange) XXX_Unmarshal ¶
func (m *RequestViewChange) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Result) Descriptor ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type RingSignature ¶
type RingSignature struct {
Items []*RingSignatureItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
环签名类型时,签名字段存储的环签名信息
func (*RingSignature) Descriptor ¶
func (*RingSignature) Descriptor() ([]byte, []int)
func (*RingSignature) GetItems ¶
func (m *RingSignature) GetItems() []*RingSignatureItem
func (*RingSignature) ProtoMessage ¶
func (*RingSignature) ProtoMessage()
func (*RingSignature) Reset ¶
func (m *RingSignature) Reset()
func (*RingSignature) String ¶
func (m *RingSignature) String() string
func (*RingSignature) XXX_DiscardUnknown ¶
func (m *RingSignature) XXX_DiscardUnknown()
func (*RingSignature) XXX_Marshal ¶
func (m *RingSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RingSignature) XXX_Merge ¶
func (m *RingSignature) XXX_Merge(src proto.Message)
func (*RingSignature) XXX_Size ¶
func (m *RingSignature) XXX_Size() int
func (*RingSignature) XXX_Unmarshal ¶
func (m *RingSignature) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
环签名中的一组签名数据
func (*RingSignatureItem) Descriptor ¶
func (*RingSignatureItem) Descriptor() ([]byte, []int)
func (*RingSignatureItem) GetPubkey ¶
func (m *RingSignatureItem) GetPubkey() [][]byte
func (*RingSignatureItem) GetSignature ¶
func (m *RingSignatureItem) GetSignature() [][]byte
func (*RingSignatureItem) ProtoMessage ¶
func (*RingSignatureItem) ProtoMessage()
func (*RingSignatureItem) Reset ¶
func (m *RingSignatureItem) Reset()
func (*RingSignatureItem) String ¶
func (m *RingSignatureItem) String() string
func (*RingSignatureItem) XXX_DiscardUnknown ¶
func (m *RingSignatureItem) XXX_DiscardUnknown()
func (*RingSignatureItem) XXX_Marshal ¶
func (m *RingSignatureItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RingSignatureItem) XXX_Merge ¶
func (m *RingSignatureItem) XXX_Merge(src proto.Message)
func (*RingSignatureItem) XXX_Size ¶
func (m *RingSignatureItem) XXX_Size() int
func (*RingSignatureItem) XXX_Unmarshal ¶
func (m *RingSignatureItem) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
存储钱包的种子
seed : 钱包种子 passwd :钱包密码
func (*SaveSeedByPw) Descriptor ¶
func (*SaveSeedByPw) Descriptor() ([]byte, []int)
func (*SaveSeedByPw) GetPasswd ¶
func (m *SaveSeedByPw) GetPasswd() string
func (*SaveSeedByPw) GetSeed ¶
func (m *SaveSeedByPw) GetSeed() string
func (*SaveSeedByPw) ProtoMessage ¶
func (*SaveSeedByPw) ProtoMessage()
func (*SaveSeedByPw) Reset ¶
func (m *SaveSeedByPw) Reset()
func (*SaveSeedByPw) String ¶
func (m *SaveSeedByPw) String() string
func (*SaveSeedByPw) XXX_DiscardUnknown ¶
func (m *SaveSeedByPw) XXX_DiscardUnknown()
func (*SaveSeedByPw) XXX_Marshal ¶
func (m *SaveSeedByPw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SaveSeedByPw) XXX_Merge ¶
func (m *SaveSeedByPw) XXX_Merge(src proto.Message)
func (*SaveSeedByPw) XXX_Size ¶
func (m *SaveSeedByPw) XXX_Size() int
func (*SaveSeedByPw) XXX_Unmarshal ¶
func (m *SaveSeedByPw) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
对于一个交易组中的交易,要么全部成功,要么全部失败 这个要好好设计一下 最好交易构成一个链条[prevhash].独立的交易构成链条 只要这个组中有一个执行是出错的,那么就执行不成功 三种签名支持 ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> OnetimeED25519 ty = 5 -> RingBaseonED25519
func (*Signature) Descriptor ¶
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶
func (*Signature) XXX_Unmarshal ¶
type SignedTx ¶
type SignedTx struct {
Unsign []byte `protobuf:"bytes,1,opt,name=unsign,proto3" json:"unsign,omitempty"`
Sign []byte `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"`
Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SignedTx) Descriptor ¶
func (*SignedTx) ProtoMessage ¶
func (*SignedTx) ProtoMessage()
func (*SignedTx) XXX_DiscardUnknown ¶
func (m *SignedTx) XXX_DiscardUnknown()
func (*SignedTx) XXX_Marshal ¶
func (*SignedTx) XXX_Unmarshal ¶
type Store ¶
type Store struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"`
DbPath string `protobuf:"bytes,3,opt,name=dbPath" json:"dbPath,omitempty"`
DbCache int32 `protobuf:"varint,4,opt,name=dbCache" json:"dbCache,omitempty"`
LocalDBVersion string `protobuf:"bytes,5,opt,name=localdbVersion" json:"localdbVersion,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreDel) Descriptor ¶
func (*StoreDel) GetStateHash ¶
func (*StoreDel) ProtoMessage ¶
func (*StoreDel) ProtoMessage()
func (*StoreDel) XXX_DiscardUnknown ¶
func (m *StoreDel) XXX_DiscardUnknown()
func (*StoreDel) XXX_Marshal ¶
func (*StoreDel) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreGet) Descriptor ¶
func (*StoreGet) GetStateHash ¶
func (*StoreGet) ProtoMessage ¶
func (*StoreGet) ProtoMessage()
func (*StoreGet) XXX_DiscardUnknown ¶
func (m *StoreGet) XXX_DiscardUnknown()
func (*StoreGet) XXX_Marshal ¶
func (*StoreGet) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreList) Descriptor ¶
func (*StoreList) GetStateHash ¶
func (*StoreList) ProtoMessage ¶
func (*StoreList) ProtoMessage()
func (*StoreList) XXX_DiscardUnknown ¶
func (m *StoreList) XXX_DiscardUnknown()
func (*StoreList) XXX_Marshal ¶
func (*StoreList) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreListReply) Descriptor ¶
func (*StoreListReply) Descriptor() ([]byte, []int)
func (*StoreListReply) GetCount ¶
func (m *StoreListReply) GetCount() int64
func (*StoreListReply) GetEnd ¶
func (m *StoreListReply) GetEnd() []byte
func (*StoreListReply) GetKeys ¶
func (m *StoreListReply) GetKeys() [][]byte
func (*StoreListReply) GetMode ¶
func (m *StoreListReply) GetMode() int64
func (*StoreListReply) GetNextKey ¶
func (m *StoreListReply) GetNextKey() []byte
func (*StoreListReply) GetNum ¶
func (m *StoreListReply) GetNum() int64
func (*StoreListReply) GetStart ¶
func (m *StoreListReply) GetStart() []byte
func (*StoreListReply) GetSuffix ¶
func (m *StoreListReply) GetSuffix() []byte
func (*StoreListReply) GetValues ¶
func (m *StoreListReply) GetValues() [][]byte
func (*StoreListReply) ProtoMessage ¶
func (*StoreListReply) ProtoMessage()
func (*StoreListReply) Reset ¶
func (m *StoreListReply) Reset()
func (*StoreListReply) String ¶
func (m *StoreListReply) String() string
func (*StoreListReply) XXX_DiscardUnknown ¶
func (m *StoreListReply) XXX_DiscardUnknown()
func (*StoreListReply) XXX_Marshal ¶
func (m *StoreListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreListReply) XXX_Merge ¶
func (m *StoreListReply) XXX_Merge(src proto.Message)
func (*StoreListReply) XXX_Size ¶
func (m *StoreListReply) XXX_Size() int
func (*StoreListReply) XXX_Unmarshal ¶
func (m *StoreListReply) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreNode) Descriptor ¶
func (*StoreNode) GetLeftHash ¶
func (*StoreNode) GetRightHash ¶
func (*StoreNode) ProtoMessage ¶
func (*StoreNode) ProtoMessage()
func (*StoreNode) XXX_DiscardUnknown ¶
func (m *StoreNode) XXX_DiscardUnknown()
func (*StoreNode) XXX_Marshal ¶
func (*StoreNode) XXX_Unmarshal ¶
type StoreReplyValue ¶
type StoreReplyValue struct {
Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreReplyValue) Descriptor ¶
func (*StoreReplyValue) Descriptor() ([]byte, []int)
func (*StoreReplyValue) GetValues ¶
func (m *StoreReplyValue) GetValues() [][]byte
func (*StoreReplyValue) ProtoMessage ¶
func (*StoreReplyValue) ProtoMessage()
func (*StoreReplyValue) Reset ¶
func (m *StoreReplyValue) Reset()
func (*StoreReplyValue) String ¶
func (m *StoreReplyValue) String() string
func (*StoreReplyValue) XXX_DiscardUnknown ¶
func (m *StoreReplyValue) XXX_DiscardUnknown()
func (*StoreReplyValue) XXX_Marshal ¶
func (m *StoreReplyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreReplyValue) XXX_Merge ¶
func (m *StoreReplyValue) XXX_Merge(src proto.Message)
func (*StoreReplyValue) XXX_Size ¶
func (m *StoreReplyValue) XXX_Size() int
func (*StoreReplyValue) XXX_Unmarshal ¶
func (m *StoreReplyValue) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreSet) Descriptor ¶
func (*StoreSet) GetStateHash ¶
func (*StoreSet) ProtoMessage ¶
func (*StoreSet) ProtoMessage()
func (*StoreSet) XXX_DiscardUnknown ¶
func (m *StoreSet) XXX_DiscardUnknown()
func (*StoreSet) XXX_Marshal ¶
func (*StoreSet) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StoreSetWithSync) Descriptor ¶
func (*StoreSetWithSync) Descriptor() ([]byte, []int)
func (*StoreSetWithSync) GetStoreset ¶
func (m *StoreSetWithSync) GetStoreset() *StoreSet
func (*StoreSetWithSync) GetSync ¶
func (m *StoreSetWithSync) GetSync() bool
func (*StoreSetWithSync) ProtoMessage ¶
func (*StoreSetWithSync) ProtoMessage()
func (*StoreSetWithSync) Reset ¶
func (m *StoreSetWithSync) Reset()
func (*StoreSetWithSync) String ¶
func (m *StoreSetWithSync) String() string
func (*StoreSetWithSync) XXX_DiscardUnknown ¶
func (m *StoreSetWithSync) XXX_DiscardUnknown()
func (*StoreSetWithSync) XXX_Marshal ¶
func (m *StoreSetWithSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreSetWithSync) XXX_Merge ¶
func (m *StoreSetWithSync) XXX_Merge(src proto.Message)
func (*StoreSetWithSync) XXX_Size ¶
func (m *StoreSetWithSync) XXX_Size() int
func (*StoreSetWithSync) XXX_Unmarshal ¶
func (m *StoreSetWithSync) XXX_Unmarshal(b []byte) error
type StoreValuePool ¶
type StoreValuePool struct {
Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
用于存储db Pool数据的Value
func (*StoreValuePool) Descriptor ¶
func (*StoreValuePool) Descriptor() ([]byte, []int)
func (*StoreValuePool) GetValues ¶
func (m *StoreValuePool) GetValues() [][]byte
func (*StoreValuePool) ProtoMessage ¶
func (*StoreValuePool) ProtoMessage()
func (*StoreValuePool) Reset ¶
func (m *StoreValuePool) Reset()
func (*StoreValuePool) String ¶
func (m *StoreValuePool) String() string
func (*StoreValuePool) XXX_DiscardUnknown ¶
func (m *StoreValuePool) XXX_DiscardUnknown()
func (*StoreValuePool) XXX_Marshal ¶
func (m *StoreValuePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreValuePool) XXX_Merge ¶
func (m *StoreValuePool) XXX_Merge(src proto.Message)
func (*StoreValuePool) XXX_Size ¶
func (m *StoreValuePool) XXX_Size() int
func (*StoreValuePool) XXX_Unmarshal ¶
func (m *StoreValuePool) XXX_Unmarshal(b []byte) error
type StringConfig ¶
type StringConfig struct {
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*StringConfig) Descriptor ¶
func (*StringConfig) Descriptor() ([]byte, []int)
func (*StringConfig) GetValue ¶
func (m *StringConfig) GetValue() string
func (*StringConfig) ProtoMessage ¶
func (*StringConfig) ProtoMessage()
func (*StringConfig) Reset ¶
func (m *StringConfig) Reset()
func (*StringConfig) String ¶
func (m *StringConfig) String() string
func (*StringConfig) XXX_DiscardUnknown ¶
func (m *StringConfig) XXX_DiscardUnknown()
func (*StringConfig) XXX_Marshal ¶
func (m *StringConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringConfig) XXX_Merge ¶
func (m *StringConfig) XXX_Merge(src proto.Message)
func (*StringConfig) XXX_Size ¶
func (m *StringConfig) XXX_Size() int
func (*StringConfig) XXX_Unmarshal ¶
func (m *StringConfig) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Summary) Descriptor ¶
func (*Summary) GetSequence ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
func (*Summary) XXX_DiscardUnknown ¶
func (m *Summary) XXX_DiscardUnknown()
func (*Summary) XXX_Marshal ¶
func (*Summary) XXX_Unmarshal ¶
type TicketMinerInfo ¶
type TicketMinerInfo struct {
TicketId string `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
// 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"`
// genesis 创建的私钥比较特殊
IsGenesis bool `protobuf:"varint,4,opt,name=isGenesis,proto3" json:"isGenesis,omitempty"`
//创建ticket时间
CreateTime int64 `protobuf:"varint,5,opt,name=createTime,proto3" json:"createTime,omitempty"`
// ticket挖矿时间
MinerTime int64 `protobuf:"varint,6,opt,name=minerTime,proto3" json:"minerTime,omitempty"`
//关闭ticket时间
CloseTime int64 `protobuf:"varint,7,opt,name=closeTime,proto3" json:"closeTime,omitempty"`
//挖到的币的数目
MinerValue int64 `protobuf:"varint,8,opt,name=minerValue,proto3" json:"minerValue,omitempty"`
MinerAddress string `protobuf:"bytes,9,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TicketMinerInfo) Descriptor ¶
func (*TicketMinerInfo) Descriptor() ([]byte, []int)
func (*TicketMinerInfo) GetCloseTime ¶
func (m *TicketMinerInfo) GetCloseTime() int64
func (*TicketMinerInfo) GetCreateTime ¶
func (m *TicketMinerInfo) GetCreateTime() int64
func (*TicketMinerInfo) GetIsGenesis ¶
func (m *TicketMinerInfo) GetIsGenesis() bool
func (*TicketMinerInfo) GetMinerAddress ¶
func (m *TicketMinerInfo) GetMinerAddress() string
func (*TicketMinerInfo) GetMinerTime ¶
func (m *TicketMinerInfo) GetMinerTime() int64
func (*TicketMinerInfo) GetMinerValue ¶
func (m *TicketMinerInfo) GetMinerValue() int64
func (*TicketMinerInfo) GetPrevStatus ¶
func (m *TicketMinerInfo) GetPrevStatus() int32
func (*TicketMinerInfo) GetStatus ¶
func (m *TicketMinerInfo) GetStatus() int32
func (*TicketMinerInfo) GetTicketId ¶
func (m *TicketMinerInfo) GetTicketId() string
func (*TicketMinerInfo) ProtoMessage ¶
func (*TicketMinerInfo) ProtoMessage()
func (*TicketMinerInfo) Reset ¶
func (m *TicketMinerInfo) Reset()
func (*TicketMinerInfo) String ¶
func (m *TicketMinerInfo) String() string
func (*TicketMinerInfo) XXX_DiscardUnknown ¶
func (m *TicketMinerInfo) XXX_DiscardUnknown()
func (*TicketMinerInfo) XXX_Marshal ¶
func (m *TicketMinerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketMinerInfo) XXX_Merge ¶
func (m *TicketMinerInfo) XXX_Merge(src proto.Message)
func (*TicketMinerInfo) XXX_Size ¶
func (m *TicketMinerInfo) XXX_Size() int
func (*TicketMinerInfo) XXX_Unmarshal ¶
func (m *TicketMinerInfo) XXX_Unmarshal(b []byte) error
type TicketStatistic ¶
type TicketStatistic struct {
//当前在挖的ticket
CurrentOpenCount int64 `protobuf:"varint,1,opt,name=currentOpenCount,proto3" json:"currentOpenCount,omitempty"`
//一共挖到的ticket
TotalMinerCount int64 `protobuf:"varint,2,opt,name=totalMinerCount,proto3" json:"totalMinerCount,omitempty"`
//一共取消的ticket
TotalCancleCount int64 `protobuf:"varint,3,opt,name=totalCancleCount,proto3" json:"totalCancleCount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TicketStatistic) Descriptor ¶
func (*TicketStatistic) Descriptor() ([]byte, []int)
func (*TicketStatistic) GetCurrentOpenCount ¶
func (m *TicketStatistic) GetCurrentOpenCount() int64
func (*TicketStatistic) GetTotalCancleCount ¶
func (m *TicketStatistic) GetTotalCancleCount() int64
func (*TicketStatistic) GetTotalMinerCount ¶
func (m *TicketStatistic) GetTotalMinerCount() int64
func (*TicketStatistic) ProtoMessage ¶
func (*TicketStatistic) ProtoMessage()
func (*TicketStatistic) Reset ¶
func (m *TicketStatistic) Reset()
func (*TicketStatistic) String ¶
func (m *TicketStatistic) String() string
func (*TicketStatistic) XXX_DiscardUnknown ¶
func (m *TicketStatistic) XXX_DiscardUnknown()
func (*TicketStatistic) XXX_Marshal ¶
func (m *TicketStatistic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketStatistic) XXX_Merge ¶
func (m *TicketStatistic) XXX_Merge(src proto.Message)
func (*TicketStatistic) XXX_Size ¶
func (m *TicketStatistic) XXX_Size() int
func (*TicketStatistic) XXX_Unmarshal ¶
func (m *TicketStatistic) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TimeStatus) Descriptor ¶
func (*TimeStatus) Descriptor() ([]byte, []int)
func (*TimeStatus) GetDiff ¶
func (m *TimeStatus) GetDiff() int64
func (*TimeStatus) GetLocalTime ¶
func (m *TimeStatus) GetLocalTime() string
func (*TimeStatus) GetNtpTime ¶
func (m *TimeStatus) GetNtpTime() string
func (*TimeStatus) ProtoMessage ¶
func (*TimeStatus) ProtoMessage()
func (*TimeStatus) Reset ¶
func (m *TimeStatus) Reset()
func (*TimeStatus) String ¶
func (m *TimeStatus) String() string
func (*TimeStatus) XXX_DiscardUnknown ¶
func (m *TimeStatus) XXX_DiscardUnknown()
func (*TimeStatus) XXX_Marshal ¶
func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimeStatus) XXX_Merge ¶
func (m *TimeStatus) XXX_Merge(src proto.Message)
func (*TimeStatus) XXX_Size ¶
func (m *TimeStatus) XXX_Size() int
func (*TimeStatus) XXX_Unmarshal ¶
func (m *TimeStatus) XXX_Unmarshal(b []byte) error
type TotalAmount ¶
type TotalAmount struct {
// 统计的总数
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TotalAmount) Descriptor ¶
func (*TotalAmount) Descriptor() ([]byte, []int)
func (*TotalAmount) GetTotal ¶
func (m *TotalAmount) GetTotal() int64
func (*TotalAmount) ProtoMessage ¶
func (*TotalAmount) ProtoMessage()
func (*TotalAmount) Reset ¶
func (m *TotalAmount) Reset()
func (*TotalAmount) String ¶
func (m *TotalAmount) String() string
func (*TotalAmount) XXX_DiscardUnknown ¶
func (m *TotalAmount) XXX_DiscardUnknown()
func (*TotalAmount) XXX_Marshal ¶
func (m *TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalAmount) XXX_Merge ¶
func (m *TotalAmount) XXX_Merge(src proto.Message)
func (*TotalAmount) XXX_Size ¶
func (m *TotalAmount) XXX_Size() int
func (*TotalAmount) XXX_Unmarshal ¶
func (m *TotalAmount) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
手续费
func (*TotalFee) Descriptor ¶
func (*TotalFee) GetTxCount ¶
func (*TotalFee) ProtoMessage ¶
func (*TotalFee) ProtoMessage()
func (*TotalFee) XXX_DiscardUnknown ¶
func (m *TotalFee) XXX_DiscardUnknown()
func (*TotalFee) XXX_Marshal ¶
func (*TotalFee) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func CacheToTxs ¶
func CacheToTxs(caches []*TransactionCache) (txs []*Transaction)
CacheToTxs 从缓存中获取交易信息
func CallCreateTransaction ¶
func CallCreateTransaction(execName, action string, param Message) (*Transaction, error)
CallCreateTransaction 创建一个交易
func CreateFormatTx ¶
func CreateFormatTx(execName string, payload []byte) (*Transaction, error)
CreateFormatTx 构造交易信息
func FormatTx ¶
func FormatTx(execName string, tx *Transaction) (*Transaction, error)
FormatTx 格式化tx交易
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) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetExecer ¶
func (m *Transaction) GetExecer() []byte
func (*Transaction) GetExpire ¶
func (m *Transaction) GetExpire() int64
func (*Transaction) GetFee ¶
func (m *Transaction) GetFee() int64
func (*Transaction) GetGroupCount ¶
func (m *Transaction) GetGroupCount() int32
func (*Transaction) GetHeader ¶
func (m *Transaction) GetHeader() []byte
func (*Transaction) GetNext ¶
func (m *Transaction) GetNext() []byte
func (*Transaction) GetNonce ¶
func (m *Transaction) GetNonce() int64
func (*Transaction) GetPayload ¶
func (m *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 (m *Transaction) GetSignature() *Signature
func (*Transaction) GetTo ¶
func (m *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) HashSign ¶
func (tx *Transaction) HashSign() []byte
HashSign hash 不包含签名,用户通过修改签名无法重新发送交易
func (*Transaction) IsExpire ¶
func (tx *Transaction) IsExpire(height, blocktime int64) bool
IsExpire 交易是否过期
func (*Transaction) IsWithdraw ¶
func (tx *Transaction) IsWithdraw() bool
IsWithdraw 判断交易是withdraw交易,需要做from和to地址的swap,方便上层客户理解
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) SetExpire ¶
func (tx *Transaction) SetExpire(expire time.Duration)
SetExpire 设置交易过期时间
func (*Transaction) SetRealFee ¶
func (tx *Transaction) SetRealFee(minFee int64) error
SetRealFee 设置交易真实费用
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type TransactionCache ¶
type TransactionCache struct {
*Transaction
// contains filtered or unexported fields
}
TransactionCache 交易缓存结构
func NewTransactionCache ¶
func NewTransactionCache(tx *Transaction) *TransactionCache
NewTransactionCache new交易缓存
func TxsToCache ¶
func TxsToCache(txs []*Transaction) (caches []*TransactionCache)
TxsToCache 缓存交易信息
func (*TransactionCache) Check ¶
func (tx *TransactionCache) Check(height, minfee int64) error
Check 交易缓存中交易组合费用的检测
func (*TransactionCache) GetTxGroup ¶
func (tx *TransactionCache) GetTxGroup() (*Transactions, error)
GetTxGroup 获取交易组
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TransactionDetail) Descriptor ¶
func (*TransactionDetail) Descriptor() ([]byte, []int)
func (*TransactionDetail) GetActionName ¶
func (m *TransactionDetail) GetActionName() string
func (*TransactionDetail) GetAmount ¶
func (m *TransactionDetail) GetAmount() int64
func (*TransactionDetail) GetAssets ¶
func (m *TransactionDetail) GetAssets() []*Asset
func (*TransactionDetail) GetBlocktime ¶
func (m *TransactionDetail) GetBlocktime() int64
func (*TransactionDetail) GetFromaddr ¶
func (m *TransactionDetail) GetFromaddr() string
func (*TransactionDetail) GetHeight ¶
func (m *TransactionDetail) GetHeight() int64
func (*TransactionDetail) GetIndex ¶
func (m *TransactionDetail) GetIndex() int64
func (*TransactionDetail) GetProofs ¶
func (m *TransactionDetail) GetProofs() [][]byte
func (*TransactionDetail) GetReceipt ¶
func (m *TransactionDetail) GetReceipt() *ReceiptData
func (*TransactionDetail) GetTx ¶
func (m *TransactionDetail) GetTx() *Transaction
func (*TransactionDetail) ProtoMessage ¶
func (*TransactionDetail) ProtoMessage()
func (*TransactionDetail) Reset ¶
func (m *TransactionDetail) Reset()
func (*TransactionDetail) String ¶
func (m *TransactionDetail) String() string
func (*TransactionDetail) XXX_DiscardUnknown ¶
func (m *TransactionDetail) XXX_DiscardUnknown()
func (*TransactionDetail) XXX_Marshal ¶
func (m *TransactionDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionDetail) XXX_Merge ¶
func (m *TransactionDetail) XXX_Merge(src proto.Message)
func (*TransactionDetail) XXX_Size ¶
func (m *TransactionDetail) XXX_Size() int
func (*TransactionDetail) XXX_Unmarshal ¶
func (m *TransactionDetail) XXX_Unmarshal(b []byte) error
type TransactionDetails ¶
type TransactionDetails struct {
Txs []*TransactionDetail `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TransactionDetails) Descriptor ¶
func (*TransactionDetails) Descriptor() ([]byte, []int)
func (*TransactionDetails) GetTxs ¶
func (m *TransactionDetails) GetTxs() []*TransactionDetail
func (*TransactionDetails) ProtoMessage ¶
func (*TransactionDetails) ProtoMessage()
func (*TransactionDetails) Reset ¶
func (m *TransactionDetails) Reset()
func (*TransactionDetails) String ¶
func (m *TransactionDetails) String() string
func (*TransactionDetails) XXX_DiscardUnknown ¶
func (m *TransactionDetails) XXX_DiscardUnknown()
func (*TransactionDetails) XXX_Marshal ¶
func (m *TransactionDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionDetails) XXX_Merge ¶
func (m *TransactionDetails) XXX_Merge(src proto.Message)
func (*TransactionDetails) XXX_Size ¶
func (m *TransactionDetails) XXX_Size() int
func (*TransactionDetails) XXX_Unmarshal ¶
func (m *TransactionDetails) XXX_Unmarshal(b []byte) error
type Transactions ¶
type Transactions struct {
Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func CreateTxGroup ¶
func CreateTxGroup(txs []*Transaction) (*Transactions, error)
CreateTxGroup 创建组交易
func (*Transactions) Check ¶
func (txgroup *Transactions) Check(height int64, minfee int64) error
Check height == 0 的时候,不做检查
func (*Transactions) Descriptor ¶
func (*Transactions) Descriptor() ([]byte, []int)
func (*Transactions) GetTxGroup ¶
func (txgroup *Transactions) GetTxGroup() *Transactions
GetTxGroup 获取交易组
func (*Transactions) GetTxs ¶
func (m *Transactions) GetTxs() []*Transaction
func (*Transactions) IsExpire ¶
func (txgroup *Transactions) IsExpire(height, blocktime int64) bool
IsExpire 交易是否过期
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) Reset ¶
func (m *Transactions) Reset()
func (*Transactions) String ¶
func (m *Transactions) String() string
func (*Transactions) Tx ¶
func (txgroup *Transactions) Tx() *Transaction
Tx 这比用于检查的交易,包含了所有的交易。 主要是为了兼容原来的设计
func (*Transactions) XXX_DiscardUnknown ¶
func (m *Transactions) XXX_DiscardUnknown()
func (*Transactions) XXX_Marshal ¶
func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transactions) XXX_Merge ¶
func (m *Transactions) XXX_Merge(src proto.Message)
func (*Transactions) XXX_Size ¶
func (m *Transactions) XXX_Size() int
func (*Transactions) XXX_Unmarshal ¶
func (m *Transactions) XXX_Unmarshal(b []byte) error
type TxGroup ¶
type TxGroup interface {
Tx() *Transaction
GetTxGroup() (*Transactions, error)
CheckSign() bool
}
TxGroup 交易组的接口,Transactions 和 Transaction 都符合这个接口
type TxHash ¶
type TxHash struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TxHash) Descriptor ¶
func (*TxHash) ProtoMessage ¶
func (*TxHash) ProtoMessage()
func (*TxHash) XXX_DiscardUnknown ¶
func (m *TxHash) XXX_DiscardUnknown()
func (*TxHash) XXX_Marshal ¶
func (*TxHash) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TxHashList) Descriptor ¶
func (*TxHashList) Descriptor() ([]byte, []int)
func (*TxHashList) GetCount ¶
func (m *TxHashList) GetCount() int64
func (*TxHashList) GetExpire ¶
func (m *TxHashList) GetExpire() []int64
func (*TxHashList) GetHashes ¶
func (m *TxHashList) GetHashes() [][]byte
func (*TxHashList) ProtoMessage ¶
func (*TxHashList) ProtoMessage()
func (*TxHashList) Reset ¶
func (m *TxHashList) Reset()
func (*TxHashList) String ¶
func (m *TxHashList) String() string
func (*TxHashList) XXX_DiscardUnknown ¶
func (m *TxHashList) XXX_DiscardUnknown()
func (*TxHashList) XXX_Marshal ¶
func (m *TxHashList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxHashList) XXX_Merge ¶
func (m *TxHashList) XXX_Merge(src proto.Message)
func (*TxHashList) XXX_Size ¶
func (m *TxHashList) XXX_Size() int
func (*TxHashList) XXX_Unmarshal ¶
func (m *TxHashList) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*TxResult) Descriptor ¶
func (*TxResult) GetActionName ¶
func (*TxResult) GetBlocktime ¶
func (*TxResult) GetReceiptdate ¶
func (m *TxResult) GetReceiptdate() *ReceiptData
func (*TxResult) GetTx ¶
func (m *TxResult) GetTx() *Transaction
func (*TxResult) ProtoMessage ¶
func (*TxResult) ProtoMessage()
func (*TxResult) XXX_DiscardUnknown ¶
func (m *TxResult) XXX_DiscardUnknown()
func (*TxResult) XXX_Marshal ¶
func (*TxResult) XXX_Unmarshal ¶
type UnsignTx ¶
type UnsignTx struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UnsignTx) Descriptor ¶
func (*UnsignTx) ProtoMessage ¶
func (*UnsignTx) ProtoMessage()
func (*UnsignTx) XXX_DiscardUnknown ¶
func (m *UnsignTx) XXX_DiscardUnknown()
func (*UnsignTx) XXX_Marshal ¶
func (*UnsignTx) XXX_Unmarshal ¶
type UpgradeMeta ¶
type UpgradeMeta struct {
Indexing bool `protobuf:"varint,1,opt,name=indexing,proto3" json:"indexing,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UpgradeMeta) Descriptor ¶
func (*UpgradeMeta) Descriptor() ([]byte, []int)
func (*UpgradeMeta) GetHeight ¶
func (m *UpgradeMeta) GetHeight() int64
func (*UpgradeMeta) GetIndexing ¶
func (m *UpgradeMeta) GetIndexing() bool
func (*UpgradeMeta) GetVersion ¶
func (m *UpgradeMeta) GetVersion() string
func (*UpgradeMeta) ProtoMessage ¶
func (*UpgradeMeta) ProtoMessage()
func (*UpgradeMeta) Reset ¶
func (m *UpgradeMeta) Reset()
func (*UpgradeMeta) String ¶
func (m *UpgradeMeta) String() string
func (*UpgradeMeta) XXX_DiscardUnknown ¶
func (m *UpgradeMeta) XXX_DiscardUnknown()
func (*UpgradeMeta) XXX_Marshal ¶
func (m *UpgradeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpgradeMeta) XXX_Merge ¶
func (m *UpgradeMeta) XXX_Merge(src proto.Message)
func (*UpgradeMeta) XXX_Size ¶
func (m *UpgradeMeta) XXX_Size() int
func (*UpgradeMeta) XXX_Unmarshal ¶
func (m *UpgradeMeta) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UserWrite) Descriptor ¶
func (*UserWrite) GetContent ¶
func (*UserWrite) ProtoMessage ¶
func (*UserWrite) ProtoMessage()
func (*UserWrite) XXX_DiscardUnknown ¶
func (m *UserWrite) XXX_DiscardUnknown()
func (*UserWrite) XXX_Marshal ¶
func (*UserWrite) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* 当前软件版本信息
func (*VersionInfo) Descriptor ¶
func (*VersionInfo) Descriptor() ([]byte, []int)
func (*VersionInfo) GetApp ¶
func (m *VersionInfo) GetApp() string
func (*VersionInfo) GetChain33 ¶
func (m *VersionInfo) GetChain33() string
func (*VersionInfo) GetLocalDb ¶
func (m *VersionInfo) GetLocalDb() string
func (*VersionInfo) GetTitle ¶
func (m *VersionInfo) GetTitle() string
func (*VersionInfo) ProtoMessage ¶
func (*VersionInfo) ProtoMessage()
func (*VersionInfo) Reset ¶
func (m *VersionInfo) Reset()
func (*VersionInfo) String ¶
func (m *VersionInfo) String() string
func (*VersionInfo) XXX_DiscardUnknown ¶
func (m *VersionInfo) XXX_DiscardUnknown()
func (*VersionInfo) XXX_Marshal ¶
func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionInfo) XXX_Merge ¶
func (m *VersionInfo) XXX_Merge(src proto.Message)
func (*VersionInfo) XXX_Size ¶
func (m *VersionInfo) XXX_Size() int
func (*VersionInfo) XXX_Unmarshal ¶
func (m *VersionInfo) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
* p2p 协议和软件版本
func (*Versions) Descriptor ¶
func (*Versions) GetP2Pversion ¶
func (*Versions) GetPeername ¶
func (*Versions) GetSoftversion ¶
func (*Versions) ProtoMessage ¶
func (*Versions) ProtoMessage()
func (*Versions) XXX_DiscardUnknown ¶
func (m *Versions) XXX_DiscardUnknown()
func (*Versions) XXX_Marshal ¶
func (*Versions) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ViewChange) Descriptor ¶
func (*ViewChange) Descriptor() ([]byte, []int)
func (*ViewChange) GetDigest ¶
func (m *ViewChange) GetDigest() []byte
func (*ViewChange) GetViewchanger ¶
func (m *ViewChange) GetViewchanger() uint32
func (*ViewChange) ProtoMessage ¶
func (*ViewChange) ProtoMessage()
func (*ViewChange) Reset ¶
func (m *ViewChange) Reset()
func (*ViewChange) String ¶
func (m *ViewChange) String() string
func (*ViewChange) XXX_DiscardUnknown ¶
func (m *ViewChange) XXX_DiscardUnknown()
func (*ViewChange) XXX_Marshal ¶
func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ViewChange) XXX_Merge ¶
func (m *ViewChange) XXX_Merge(src proto.Message)
func (*ViewChange) XXX_Size ¶
func (m *ViewChange) XXX_Size() int
func (*ViewChange) XXX_Unmarshal ¶
func (m *ViewChange) XXX_Unmarshal(b []byte) error
type Wallet ¶
type Wallet struct {
MinFee int64 `protobuf:"varint,1,opt,name=minFee" json:"minFee,omitempty"`
Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"`
DbPath string `protobuf:"bytes,3,opt,name=dbPath" json:"dbPath,omitempty"`
DbCache int32 `protobuf:"varint,4,opt,name=dbCache" json:"dbCache,omitempty"`
SignType string `protobuf:"bytes,5,opt,name=signType" json:"signType,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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WalletAccount) Descriptor ¶
func (*WalletAccount) Descriptor() ([]byte, []int)
func (*WalletAccount) GetAcc ¶
func (m *WalletAccount) GetAcc() *Account
func (*WalletAccount) GetLabel ¶
func (m *WalletAccount) GetLabel() string
func (*WalletAccount) ProtoMessage ¶
func (*WalletAccount) ProtoMessage()
func (*WalletAccount) Reset ¶
func (m *WalletAccount) Reset()
func (*WalletAccount) String ¶
func (m *WalletAccount) String() string
func (*WalletAccount) XXX_DiscardUnknown ¶
func (m *WalletAccount) XXX_DiscardUnknown()
func (*WalletAccount) XXX_Marshal ¶
func (m *WalletAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletAccount) XXX_Merge ¶
func (m *WalletAccount) XXX_Merge(src proto.Message)
func (*WalletAccount) XXX_Size ¶
func (m *WalletAccount) XXX_Size() int
func (*WalletAccount) XXX_Unmarshal ¶
func (m *WalletAccount) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
钱包模块存贮的账户信息
privkey : 账户地址对应的私钥 label :账户地址对应的标签 addr :账户地址 timeStamp :创建账户时的时标
func (*WalletAccountStore) Descriptor ¶
func (*WalletAccountStore) Descriptor() ([]byte, []int)
func (*WalletAccountStore) GetAddr ¶
func (m *WalletAccountStore) GetAddr() string
func (*WalletAccountStore) GetLabel ¶
func (m *WalletAccountStore) GetLabel() string
func (*WalletAccountStore) GetPrivkey ¶
func (m *WalletAccountStore) GetPrivkey() string
func (*WalletAccountStore) GetTimeStamp ¶
func (m *WalletAccountStore) GetTimeStamp() string
func (*WalletAccountStore) ProtoMessage ¶
func (*WalletAccountStore) ProtoMessage()
func (*WalletAccountStore) Reset ¶
func (m *WalletAccountStore) Reset()
func (*WalletAccountStore) String ¶
func (m *WalletAccountStore) String() string
func (*WalletAccountStore) XXX_DiscardUnknown ¶
func (m *WalletAccountStore) XXX_DiscardUnknown()
func (*WalletAccountStore) XXX_Marshal ¶
func (m *WalletAccountStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletAccountStore) XXX_Merge ¶
func (m *WalletAccountStore) XXX_Merge(src proto.Message)
func (*WalletAccountStore) XXX_Size ¶
func (m *WalletAccountStore) XXX_Size() int
func (*WalletAccountStore) XXX_Unmarshal ¶
func (m *WalletAccountStore) XXX_Unmarshal(b []byte) error
type WalletAccounts ¶
type WalletAccounts struct {
Wallets []*WalletAccount `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WalletAccounts) Descriptor ¶
func (*WalletAccounts) Descriptor() ([]byte, []int)
func (*WalletAccounts) GetWallets ¶
func (m *WalletAccounts) GetWallets() []*WalletAccount
func (*WalletAccounts) ProtoMessage ¶
func (*WalletAccounts) ProtoMessage()
func (*WalletAccounts) Reset ¶
func (m *WalletAccounts) Reset()
func (*WalletAccounts) String ¶
func (m *WalletAccounts) String() string
func (*WalletAccounts) XXX_DiscardUnknown ¶
func (m *WalletAccounts) XXX_DiscardUnknown()
func (*WalletAccounts) XXX_Marshal ¶
func (m *WalletAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletAccounts) XXX_Merge ¶
func (m *WalletAccounts) XXX_Merge(src proto.Message)
func (*WalletAccounts) XXX_Size ¶
func (m *WalletAccounts) XXX_Size() int
func (*WalletAccounts) XXX_Unmarshal ¶
func (m *WalletAccounts) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
钱包模块通过一个随机值对钱包密码加密
pwHash : 对钱包密码和一个随机值组合进行哈希计算 randstr :对钱包密码加密的一个随机值
func (*WalletPwHash) Descriptor ¶
func (*WalletPwHash) Descriptor() ([]byte, []int)
func (*WalletPwHash) GetPwHash ¶
func (m *WalletPwHash) GetPwHash() []byte
func (*WalletPwHash) GetRandstr ¶
func (m *WalletPwHash) GetRandstr() string
func (*WalletPwHash) ProtoMessage ¶
func (*WalletPwHash) ProtoMessage()
func (*WalletPwHash) Reset ¶
func (m *WalletPwHash) Reset()
func (*WalletPwHash) String ¶
func (m *WalletPwHash) String() string
func (*WalletPwHash) XXX_DiscardUnknown ¶
func (m *WalletPwHash) XXX_DiscardUnknown()
func (*WalletPwHash) XXX_Marshal ¶
func (m *WalletPwHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletPwHash) XXX_Merge ¶
func (m *WalletPwHash) XXX_Merge(src proto.Message)
func (*WalletPwHash) XXX_Size ¶
func (m *WalletPwHash) XXX_Size() int
func (*WalletPwHash) XXX_Unmarshal ¶
func (m *WalletPwHash) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
钱包当前的状态
isWalletLock : 钱包是否锁状态,true锁定,false解锁 isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿 isHasSeed : 钱包是否有种子,true已有,false没有 isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账
func (*WalletStatus) Descriptor ¶
func (*WalletStatus) Descriptor() ([]byte, []int)
func (*WalletStatus) GetIsAutoMining ¶
func (m *WalletStatus) GetIsAutoMining() bool
func (*WalletStatus) GetIsHasSeed ¶
func (m *WalletStatus) GetIsHasSeed() bool
func (*WalletStatus) GetIsTicketLock ¶
func (m *WalletStatus) GetIsTicketLock() bool
func (*WalletStatus) GetIsWalletLock ¶
func (m *WalletStatus) GetIsWalletLock() bool
func (*WalletStatus) ProtoMessage ¶
func (*WalletStatus) ProtoMessage()
func (*WalletStatus) Reset ¶
func (m *WalletStatus) Reset()
func (*WalletStatus) String ¶
func (m *WalletStatus) String() string
func (*WalletStatus) XXX_DiscardUnknown ¶
func (m *WalletStatus) XXX_DiscardUnknown()
func (*WalletStatus) XXX_Marshal ¶
func (m *WalletStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletStatus) XXX_Merge ¶
func (m *WalletStatus) XXX_Merge(src proto.Message)
func (*WalletStatus) XXX_Size ¶
func (m *WalletStatus) XXX_Size() int
func (*WalletStatus) XXX_Unmarshal ¶
func (m *WalletStatus) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
钱包模块存贮的tx交易详细信息
tx : tx交易信息 receipt :交易收据信息 height :交易所在的区块高度 index :交易所在区块中的索引 blocktime :交易所在区块的时标 amount :交易量 fromaddr :交易打出地址 txhash : 交易对应的哈希值 actionName :交易对应的函数调用 payload: 保存额外的一些信息,主要是给插件使用
func (*WalletTxDetail) Descriptor ¶
func (*WalletTxDetail) Descriptor() ([]byte, []int)
func (*WalletTxDetail) GetActionName ¶
func (m *WalletTxDetail) GetActionName() string
func (*WalletTxDetail) GetAmount ¶
func (m *WalletTxDetail) GetAmount() int64
func (*WalletTxDetail) GetBlocktime ¶
func (m *WalletTxDetail) GetBlocktime() int64
func (*WalletTxDetail) GetFromaddr ¶
func (m *WalletTxDetail) GetFromaddr() string
func (*WalletTxDetail) GetHeight ¶
func (m *WalletTxDetail) GetHeight() int64
func (*WalletTxDetail) GetIndex ¶
func (m *WalletTxDetail) GetIndex() int64
func (*WalletTxDetail) GetPayload ¶
func (m *WalletTxDetail) GetPayload() []byte
func (*WalletTxDetail) GetReceipt ¶
func (m *WalletTxDetail) GetReceipt() *ReceiptData
func (*WalletTxDetail) GetTx ¶
func (m *WalletTxDetail) GetTx() *Transaction
func (*WalletTxDetail) GetTxhash ¶
func (m *WalletTxDetail) GetTxhash() []byte
func (*WalletTxDetail) ProtoMessage ¶
func (*WalletTxDetail) ProtoMessage()
func (*WalletTxDetail) Reset ¶
func (m *WalletTxDetail) Reset()
func (*WalletTxDetail) String ¶
func (m *WalletTxDetail) String() string
func (*WalletTxDetail) XXX_DiscardUnknown ¶
func (m *WalletTxDetail) XXX_DiscardUnknown()
func (*WalletTxDetail) XXX_Marshal ¶
func (m *WalletTxDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletTxDetail) XXX_Merge ¶
func (m *WalletTxDetail) XXX_Merge(src proto.Message)
func (*WalletTxDetail) XXX_Size ¶
func (m *WalletTxDetail) XXX_Size() int
func (*WalletTxDetail) XXX_Unmarshal ¶
func (m *WalletTxDetail) XXX_Unmarshal(b []byte) error
type WalletTxDetails ¶
type WalletTxDetails struct {
TxDetails []*WalletTxDetail `protobuf:"bytes,1,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*WalletTxDetails) Descriptor ¶
func (*WalletTxDetails) Descriptor() ([]byte, []int)
func (*WalletTxDetails) GetTxDetails ¶
func (m *WalletTxDetails) GetTxDetails() []*WalletTxDetail
func (*WalletTxDetails) ProtoMessage ¶
func (*WalletTxDetails) ProtoMessage()
func (*WalletTxDetails) Reset ¶
func (m *WalletTxDetails) Reset()
func (*WalletTxDetails) String ¶
func (m *WalletTxDetails) String() string
func (*WalletTxDetails) XXX_DiscardUnknown ¶
func (m *WalletTxDetails) XXX_DiscardUnknown()
func (*WalletTxDetails) XXX_Marshal ¶
func (m *WalletTxDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletTxDetails) XXX_Merge ¶
func (m *WalletTxDetails) XXX_Merge(src proto.Message)
func (*WalletTxDetails) XXX_Size ¶
func (m *WalletTxDetails) XXX_Size() int
func (*WalletTxDetails) XXX_Unmarshal ¶
func (m *WalletTxDetails) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
钱包解锁
passwd : 钱包密码 timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定 walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包
func (*WalletUnLock) Descriptor ¶
func (*WalletUnLock) Descriptor() ([]byte, []int)
func (*WalletUnLock) GetPasswd ¶
func (m *WalletUnLock) GetPasswd() string
func (*WalletUnLock) GetTimeout ¶
func (m *WalletUnLock) GetTimeout() int64
func (*WalletUnLock) GetWalletOrTicket ¶
func (m *WalletUnLock) GetWalletOrTicket() bool
func (*WalletUnLock) ProtoMessage ¶
func (*WalletUnLock) ProtoMessage()
func (*WalletUnLock) Reset ¶
func (m *WalletUnLock) Reset()
func (*WalletUnLock) String ¶
func (m *WalletUnLock) String() string
func (*WalletUnLock) XXX_DiscardUnknown ¶
func (m *WalletUnLock) XXX_DiscardUnknown()
func (*WalletUnLock) XXX_Marshal ¶
func (m *WalletUnLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletUnLock) XXX_Merge ¶
func (m *WalletUnLock) XXX_Merge(src proto.Message)
func (*WalletUnLock) XXX_Size ¶
func (m *WalletUnLock) XXX_Size() int
func (*WalletUnLock) XXX_Unmarshal ¶
func (m *WalletUnLock) XXX_Unmarshal(b []byte) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package chaincfg 实现chain33的基础配置相关功能
|
Package chaincfg 实现chain33的基础配置相关功能 |
|
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON.
|
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON. |