types

package
v0.0.0-...-9259d71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2018 License: BSD-2-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
const (
	UserKeyX = "user."
	ParaKeyX = "user.p."
	NoneX    = "none"
)
View Source
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"
)
View Source
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

View Source
const (
	PrivacyTypePublic2Privacy = iota + 1
	PrivacyTypePrivacy2Privacy
	PrivacyTypePrivacy2Public
)

创建隐私交易的类型定义

View Source
const (
	TyLogReserved = 0
	TyLogErr      = 1
	TyLogFee      = 2
	//coins
	TyLogTransfer        = 3
	TyLogGenesis         = 4
	TyLogDeposit         = 5
	TyLogExecTransfer    = 6
	TyLogExecWithdraw    = 7
	TyLogExecDeposit     = 8
	TyLogExecFrozen      = 9
	TyLogExecActive      = 10
	TyLogGenesisTransfer = 11
	TyLogGenesisDeposit  = 12
)

log type

View Source
const (
	ExecErr  = 0
	ExecPack = 1
	ExecOk   = 2
)

exec type

View Source
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
	//wallet event
	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
	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
	//exec
	EventBlockChainQuery = 212
	EventConsensusQuery  = 213
)

event

View Source
const MaxHeight = 10000000000000000

出于forks 过程安全的考虑,比如代码更新,出现了新的fork,旧的链只要不明确指定 fork的高度,那么默认fork高度为 MaxHeight 也就是新的代码默认不会被启用,知道使用的人明确指定了fork的高度

View Source
const Size_1K_shiftlen uint = 10

Variables

View Source
var (
	AllowUserExec = [][]byte{ExecerNone}
	//这里又限制了一次,因为挖矿的合约不会太多,所以这里配置死了,如果要扩展,需要改这里的代码
	AllowDepositExec = [][]byte{[]byte("ticket")}
	EmptyValue       = []byte("FFFFFFFFemptyBVBiCj5jvE15pEiwro8TQRGnJSNsJF") //这字符串表示数据库中的空值

)

区块链共识相关的参数,重要参数不要随便修改

View Source
var (
	UserKey    = []byte(UserKeyX)
	ParaKey    = []byte(ParaKeyX)
	ExecerNone = []byte(NoneX)
)
View Source
var (
	//addr:1Cbo5u8V5F3ubWBv9L6qu9wWxKuD3qBVpi,这里只是作为测试用,后面需要修改为系统账户
	ViewPubFee  = "0x0f7b661757fe8471c0b853b09bf526b19537a2f91254494d19874a04119415e8"
	SpendPubFee = "0x64204db5a521771eeeddee59c25aaae6bebe796d564effb6ba11352418002ee3"
	ViewPrivFee = "0x0f7b661757fe8471c0b853b09bf526b19537a2f91254494d19874a04119415e8"
)
View Source
var (
	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")
	ErrChannelFull             = errors.New("ErrChannelFull")
	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")

	ErrStartBigThanEnd            = errors.New("ErrStartBigThanEnd")
	ErrToAddrNotSameToExecAddr    = errors.New("ErrToAddrNotSameToExecAddr")
	ErrTypeAsset                  = errors.New("ErrTypeAsset")
	ErrEmpty                      = errors.New("ErrEmpty")
	ErrSendSameToRecv             = errors.New("ErrSendSameToRecv")
	ErrExecNameNotAllow           = errors.New("ErrExecNameNotAllow")
	ErrLocalDBPerfix              = errors.New("ErrLocalDBPerfix")
	ErrTimeout                    = errors.New("ErrTimeout")
	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")

	// 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")
	ErrIsClosed               = errors.New("ErrIsClosed")
	ErrDecode                 = errors.New("ErrDecode")
	ErrNotRollBack            = errors.New("ErrNotRollBack")
	ErrPeerInfoIsNil          = errors.New("ErrPeerInfoIsNil")
	//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")

	//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")

	//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")
)
View Source
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:")
)
View Source
var ConfigPrefix = "mavl-config-"
View Source
var Debug = false
View Source
var EnableTxGroupParaFork = false

默认情况下不开启fork

View Source
var ExpireBound int64 = 1000000000 // 交易过期分界线,小于expireBound比较height,大于expireBound比较blockTime
View Source
var HighAllowPackHeight int64 = 90

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 这个区间的交易不要重复就好了

View Source
var LowAllowPackHeight int64 = 30
View Source
var ManagePrefix = "mavl-"
View Source
var NtpHosts = []string{
	"time.windows.com:123",
	"ntp.ubuntu.com:123",
	"pool.ntp.org:123",
	"cn.pool.ntp.org:123",
	"time.apple.com:123",
}
View Source
var TxHeightFlag int64 = 1 << 62

标记是一个时间还是一个 TxHeight

Functions

func BuildQueryType

func BuildQueryType(prefix string, methods map[string]reflect.Method) (map[string]reflect.Method, map[string]reflect.Type)

func CalcAddrTxsCountKey

func CalcAddrTxsCountKey(addr string) []byte

存储地址参与的交易数量。add时加一,del时减一

func CalcTxAddrDirHashKey

func CalcTxAddrDirHashKey(addr string, flag int32, heightindex string) []byte

用于存储地址相关的hash列表,key=TxAddrHash:addr:flag:height*100000 + index 地址下面某个分类的交易

func CalcTxAddrHashKey

func CalcTxAddrHashKey(addr string, heightindex string) []byte

用于存储地址相关的hash列表,key=TxAddrHash:addr:height*100000 + index 地址下面所有的交易

func CalcTxKey

func CalcTxKey(hash []byte) []byte

CalcTxKey local db中保存交易的方法

func CalcTxShortKey

func CalcTxShortKey(hash []byte) []byte

func CallCreateTx

func CallCreateTx(execName, action string, param Message) ([]byte, error)

func CallExecNewTx

func CallExecNewTx(execName, action string, param interface{}) ([]byte, error)

重构完成后删除

func CheckAmount

func CheckAmount(amount int64) bool

func CheckSign

func CheckSign(data []byte, execer string, sign *Signature) bool

func ConfigKey

func ConfigKey(key string) string

原来实现有bug, 但生成的key在状态树里, 不可修改 mavl-config–{key}  key 前面两个-

func Decode

func Decode(data []byte, msg proto.Message) error

func DecodeLog

func DecodeLog(execer []byte, ty int64, data []byte) (interface{}, error)

func Encode

func Encode(data proto.Message) []byte

func ExecName

func ExecName(name string) string

func FindExecer

func FindExecer(key []byte) (execer []byte, err error)

func FlatConfig

func FlatConfig(conf map[string]interface{}) map[string]interface{}

func FormatTxEncode

func FormatTxEncode(execName string, tx *Transaction) ([]byte, error)

func G

func G(key string) (value interface{}, err error)

func GInt

func GInt(name string) int64

func GStr

func GStr(name string) string

func GetActionValue

func GetActionValue(action interface{}, funclist map[string]reflect.Method) (string, int32, reflect.Value)

func GetDappFork

func GetDappFork(dapp, fork string) int64

func GetEventName

func GetEventName(event int) string

func GetExecKey

func GetExecKey(key []byte) (string, bool)

func GetFork

func GetFork(fork string) int64

func GetFundAddr

func GetFundAddr() string

func GetLocalDBKeyList

func GetLocalDBKeyList() [][]byte

func GetLogName

func GetLogName(execer []byte, ty int64) string

通过反射,解析日志

func GetParaExec

func GetParaExec(execer []byte) []byte

func GetParaName

func GetParaName() string

func GetRealExecName

func GetRealExecName(execer []byte) []byte

func GetSignName

func GetSignName(execer string, signType int) string

func GetSignType

func GetSignType(execer string, name string) int

func GetTitle

func GetTitle() string

func GetTxHeight

func GetTxHeight(valid int64, height int64) int64

func GetTxTimeInterval

func GetTxTimeInterval() time.Duration

GetTxTimeInterval 获取交易有效期

func HasConf

func HasConf(key string) bool

func HasFork

func HasFork(fork string) bool

func Init

func Init(t string, cfg *Config)

func InitCfg

func InitCfg(path string) (*Config, *ConfigSubModule)

func InitCfgString

func InitCfgString(cfgstring string) (*Config, *ConfigSubModule)

func IsAllowExecName

func IsAllowExecName(name []byte, execer []byte) bool

默认的allow 规则->根据 GetRealExecName 来判断 name 必须大于3 小于 100

func IsDappFork

func IsDappFork(height int64, dapp, fork string) bool

func IsEnable

func IsEnable(name string) bool

func IsEnableFork

func IsEnableFork(height int64, fork string, enable bool) bool

func IsFork

func IsFork(height int64, fork string) bool

func IsLocal

func IsLocal() bool

func IsNil

func IsNil(a interface{}) (ok bool)

判断所有的空值

func IsNilP

func IsNilP(a interface{}) bool

空指针或者接口

func IsOK

func IsOK(list []reflect.Value, n int) bool

func IsPara

func IsPara() bool

func IsParaExecName

func IsParaExecName(name string) bool

func IsTestNet

func IsTestNet() bool

func JsonToPB

func JsonToPB(data []byte, msg proto.Message) error

func ListActionMethod

func ListActionMethod(action interface{}, funclist []interface{}) map[string]reflect.Method

func ListMethod

func ListMethod(action interface{}) map[string]reflect.Method

func ListMethodByType

func ListMethodByType(typ reflect.Type) map[string]reflect.Method

func ListType

func ListType(tys []interface{}) map[string]reflect.Type

func MG

func MG(key string, height int64) (value interface{}, err error)

func MGInt

func MGInt(name string, height int64) int64

func MGStr

func MGStr(name string, height int64) string

func MIsEnable

func MIsEnable(name string, height int64) bool

func ManaeKeyWithHeigh

func ManaeKeyWithHeigh(key string, height int64) string

func ManageKey

func ManageKey(key string) string

func MergeConfig

func MergeConfig(conf map[string]interface{}, def map[string]interface{}) string

func MustDecode

func MustDecode(data []byte, v interface{})

func Now

func Now() time.Time

func PBToJson

func PBToJson(r Message) ([]byte, error)

func RegisterChain33Server

func RegisterChain33Server(s *grpc.Server, srv Chain33Server)

func RegisterDappFork

func RegisterDappFork(dapp, fork string, height int64)

func RegisterP2PgserviceServer

func RegisterP2PgserviceServer(s *grpc.Server, srv P2PgserviceServer)

func RegistorExecutor

func RegistorExecutor(exec string, util ExecutorType)

func S

func S(key string, value interface{})

func SetDappFork

func SetDappFork(title, dapp, fork string, height int64)

func SetMinFee

func SetMinFee(fee int64)

func SetTestNetFork

func SetTestNetFork()

bityuan test net fork

func SetTimeDelta

func SetTimeDelta(dt int64)

realtime - localtime 超过60s 不做修正 为了系统的安全,我们只做小范围时间错误的修复

func Since

func Since(t time.Time) time.Duration

func Size

func Size(data proto.Message) int

func StatisticFlag

func StatisticFlag() []byte

func StatisticTicketInfoKey

func StatisticTicketInfoKey(ticketId string) []byte

func StatisticTicketInfoOrderKey

func StatisticTicketInfoOrderKey(minerAddr string, createTime int64, ticketId string) []byte

func StatisticTicketKey

func StatisticTicketKey(minerAddr string) []byte

func TotalFeeKey

func TotalFeeKey(hash []byte) []byte

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) Descriptor() ([]byte, []int)

func (*Account) GetAddr

func (m *Account) GetAddr() string

func (*Account) GetBalance

func (m *Account) GetBalance() int64

func (*Account) GetCurrency

func (m *Account) GetCurrency() int32

func (*Account) GetFrozen

func (m *Account) GetFrozen() int64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Account) XXX_Merge

func (m *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

func (m *Account) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Accounts) GetAcc

func (m *Accounts) GetAcc() []*Account

func (*Accounts) ProtoMessage

func (*Accounts) ProtoMessage()

func (*Accounts) Reset

func (m *Accounts) Reset()

func (*Accounts) String

func (m *Accounts) String() string

func (*Accounts) XXX_DiscardUnknown

func (m *Accounts) XXX_DiscardUnknown()

func (*Accounts) XXX_Marshal

func (m *Accounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Accounts) XXX_Merge

func (m *Accounts) XXX_Merge(src proto.Message)

func (*Accounts) XXX_Size

func (m *Accounts) XXX_Size() int

func (*Accounts) XXX_Unmarshal

func (m *Accounts) XXX_Unmarshal(b []byte) error

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 Amounter

type Amounter interface {
	GetAmount() int64
}

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) Descriptor() ([]byte, []int)

func (*Asset) GetAmount

func (m *Asset) GetAmount() int64

func (*Asset) GetExec

func (m *Asset) GetExec() string

func (*Asset) GetSymbol

func (m *Asset) GetSymbol() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

func (*Asset) XXX_DiscardUnknown

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal

func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Asset) XXX_Merge

func (m *Asset) XXX_Merge(src proto.Message)

func (*Asset) XXX_Size

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal

func (m *Asset) XXX_Unmarshal(b []byte) error

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                 string   `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() string

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                 string   `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() string

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                 string   `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() string

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"`
	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解释

func (*Block) CheckSign

func (block *Block) CheckSign() bool

func (*Block) Descriptor

func (*Block) Descriptor() ([]byte, []int)

func (*Block) GetBlockTime

func (m *Block) GetBlockTime() int64

func (*Block) GetDifficulty

func (m *Block) GetDifficulty() uint32

func (*Block) GetHeader

func (block *Block) GetHeader() *Header

func (*Block) GetHeight

func (m *Block) GetHeight() int64

func (*Block) GetParentHash

func (m *Block) GetParentHash() []byte

func (*Block) GetSignature

func (m *Block) GetSignature() *Signature

func (*Block) GetStateHash

func (m *Block) GetStateHash() []byte

func (*Block) GetTxHash

func (m *Block) GetTxHash() []byte

func (*Block) GetTxs

func (m *Block) GetTxs() []*Transaction

func (*Block) GetVersion

func (m *Block) GetVersion() int64

func (*Block) Hash

func (block *Block) Hash() []byte

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

func (block *Block) Size() int

func (*Block) String

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*BlockBody) GetReceipts

func (m *BlockBody) GetReceipts() []*ReceiptData

func (*BlockBody) GetTxs

func (m *BlockBody) GetTxs() []*Transaction

func (*BlockBody) ProtoMessage

func (*BlockBody) ProtoMessage()

func (*BlockBody) Reset

func (m *BlockBody) Reset()

func (*BlockBody) String

func (m *BlockBody) String() string

func (*BlockBody) XXX_DiscardUnknown

func (m *BlockBody) XXX_DiscardUnknown()

func (*BlockBody) XXX_Marshal

func (m *BlockBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockBody) XXX_Merge

func (m *BlockBody) XXX_Merge(src proto.Message)

func (*BlockBody) XXX_Size

func (m *BlockBody) XXX_Size() int

func (*BlockBody) XXX_Unmarshal

func (m *BlockBody) XXX_Unmarshal(b []byte) error

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"`
}

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) Descriptor() ([]byte, []int)

func (*BlockPid) GetBlock

func (m *BlockPid) GetBlock() *Block

func (*BlockPid) GetPid

func (m *BlockPid) GetPid() string

func (*BlockPid) ProtoMessage

func (*BlockPid) ProtoMessage()

func (*BlockPid) Reset

func (m *BlockPid) Reset()

func (*BlockPid) String

func (m *BlockPid) String() string

func (*BlockPid) XXX_DiscardUnknown

func (m *BlockPid) XXX_DiscardUnknown()

func (*BlockPid) XXX_Marshal

func (m *BlockPid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockPid) XXX_Merge

func (m *BlockPid) XXX_Merge(src proto.Message)

func (*BlockPid) XXX_Size

func (m *BlockPid) XXX_Size() int

func (*BlockPid) XXX_Unmarshal

func (m *BlockPid) 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) Descriptor() ([]byte, []int)

func (*Blocks) GetItems

func (m *Blocks) GetItems() []*Block

func (*Blocks) ProtoMessage

func (*Blocks) ProtoMessage()

func (*Blocks) Reset

func (m *Blocks) Reset()

func (*Blocks) String

func (m *Blocks) String() string

func (*Blocks) XXX_DiscardUnknown

func (m *Blocks) XXX_DiscardUnknown()

func (*Blocks) XXX_Marshal

func (m *Blocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Blocks) XXX_Merge

func (m *Blocks) XXX_Merge(src proto.Message)

func (*Blocks) XXX_Size

func (m *Blocks) XXX_Size() int

func (*Blocks) XXX_Unmarshal

func (m *Blocks) XXX_Unmarshal(b []byte) error

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) (*Reply, 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)
	//获取指定区间的block加载序列号信息
	GetBlockSequences(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*BlockSequences, error)
	//通过block hash 获取对应的blocks信息
	GetBlockByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*BlockDetails, error)
	//关闭chain33
	CloseQueue(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取地址所以合约下的余额
	GetAllExecBalance(ctx context.Context, in *ReqAddr, 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)
}

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) (*Reply, 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)
	//获取指定区间的block加载序列号信息
	GetBlockSequences(context.Context, *ReqBlocks) (*BlockSequences, error)
	//通过block hash 获取对应的blocks信息
	GetBlockByHashes(context.Context, *ReqHashes) (*BlockDetails, error)
	//关闭chain33
	CloseQueue(context.Context, *ReqNil) (*Reply, error)
	//获取地址所以合约下的余额
	GetAllExecBalance(context.Context, *ReqAddr) (*AllExecBalance, error)
	//签名交易
	SignRawTx(context.Context, *ReqSignRawTx) (*ReplySignRawTx, error)
	CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, 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
}

func GetP

func GetP(height 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
}

func Conf

func Conf(prefix string) *ConfQuery

func ConfSub

func ConfSub(name string) *ConfQuery

func (*ConfQuery) G

func (query *ConfQuery) G(key string) (interface{}, error)

func (*ConfQuery) GInt

func (query *ConfQuery) GInt(key string) int64

func (*ConfQuery) GStr

func (query *ConfQuery) GStr(key string) string

func (*ConfQuery) GStrList

func (query *ConfQuery) GStrList(key string) []string

func (*ConfQuery) IsEnable

func (query *ConfQuery) IsEnable(key string) bool

func (*ConfQuery) MG

func (query *ConfQuery) MG(key string, height int64) (interface{}, error)

func (*ConfQuery) MGInt

func (query *ConfQuery) MGInt(key string, height int64) int64

func (*ConfQuery) MGStr

func (query *ConfQuery) MGStr(key string, height int64) string

func (*ConfQuery) MGStrList

func (query *ConfQuery) MGStrList(key string, height int64) []string

func (*ConfQuery) MIsEnable

func (query *ConfQuery) MIsEnable(key string, height int64) bool

type Config

type Config struct {
	Title      string      `protobuf:"bytes,1,opt,name=title" json:"title,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"`
}

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
}

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"`
	WriteBlockSeconds    int64  `protobuf:"varint,20,opt,name=writeBlockSeconds" json:"writeBlockSeconds,omitempty"`
	ParaRemoteGrpcClient string `protobuf:"bytes,22,opt,name=paraRemoteGrpcClient" json:"paraRemoteGrpcClient,omitempty"`
	StartHeight          int64  `protobuf:"varint,23,opt,name=startHeight" json:"startHeight,omitempty"`
	EmptyBlockInterval   int64  `protobuf:"varint,24,opt,name=emptyBlockInterval" json:"emptyBlockInterval,omitempty"`
	AuthAccount          string `protobuf:"bytes,25,opt,name=authAccount" json:"authAccount,omitempty"`
	WaitBlocks4CommitMsg int32  `protobuf:"varint,26,opt,name=waitBlocks4CommitMsg" json:"waitBlocks4CommitMsg,omitempty"`
}

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                 string   `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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTx) Descriptor

func (*CreateTx) Descriptor() ([]byte, []int)

func (*CreateTx) GetAmount

func (m *CreateTx) GetAmount() int64

func (*CreateTx) GetExecName

func (m *CreateTx) GetExecName() string

func (*CreateTx) GetFee

func (m *CreateTx) GetFee() int64

func (*CreateTx) GetIsToken

func (m *CreateTx) GetIsToken() bool

func (*CreateTx) GetIsWithdraw

func (m *CreateTx) GetIsWithdraw() bool

func (*CreateTx) GetNote

func (m *CreateTx) GetNote() string

func (*CreateTx) GetTo

func (m *CreateTx) GetTo() string

func (*CreateTx) GetTokenSymbol

func (m *CreateTx) GetTokenSymbol() string

func (*CreateTx) ProtoMessage

func (*CreateTx) ProtoMessage()

func (*CreateTx) Reset

func (m *CreateTx) Reset()

func (*CreateTx) String

func (m *CreateTx) String() string

func (*CreateTx) XXX_DiscardUnknown

func (m *CreateTx) XXX_DiscardUnknown()

func (*CreateTx) XXX_Marshal

func (m *CreateTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTx) XXX_Merge

func (m *CreateTx) XXX_Merge(src proto.Message)

func (*CreateTx) XXX_Size

func (m *CreateTx) XXX_Size() int

func (*CreateTx) XXX_Unmarshal

func (m *CreateTx) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Entry) GetDigest

func (m *Entry) GetDigest() []byte

func (*Entry) GetSequence

func (m *Entry) GetSequence() uint32

func (*Entry) GetView

func (m *Entry) GetView() uint32

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) String

func (m *Entry) String() string

func (*Entry) XXX_DiscardUnknown

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal

func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entry) XXX_Merge

func (m *Entry) XXX_Merge(src proto.Message)

func (*Entry) XXX_Size

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal

func (m *Entry) XXX_Unmarshal(b []byte) error

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"`
}

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"`
	Txs                  []*Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,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"`
	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) 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
}

func (*ExecTypeBase) ActionName

func (base *ExecTypeBase) ActionName(tx *Transaction) string

func (*ExecTypeBase) Amount

func (base *ExecTypeBase) Amount(tx *Transaction) (int64, error)

func (*ExecTypeBase) AssertCreate

func (base *ExecTypeBase) AssertCreate(c *CreateTx) (*Transaction, error)

func (*ExecTypeBase) Create

func (base *ExecTypeBase) Create(action string, msg Message) (*Transaction, error)

func (*ExecTypeBase) CreateQuery

func (base *ExecTypeBase) CreateQuery(funcname string, message json.RawMessage) (Message, error)

func (*ExecTypeBase) CreateTransaction

func (base *ExecTypeBase) CreateTransaction(action string, data Message) (tx *Transaction, err error)

func (*ExecTypeBase) CreateTx

func (base *ExecTypeBase) CreateTx(action string, msg json.RawMessage) (*Transaction, error)

重构完成后删除

func (*ExecTypeBase) DecodePayload

func (base *ExecTypeBase) DecodePayload(tx *Transaction) (Message, error)

func (*ExecTypeBase) DecodePayloadValue

func (base *ExecTypeBase) DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)

func (*ExecTypeBase) GetAction

func (base *ExecTypeBase) GetAction(action string) (Message, error)

func (*ExecTypeBase) GetAssets

func (base *ExecTypeBase) GetAssets(tx *Transaction) ([]*Asset, error)

func (*ExecTypeBase) GetChild

func (base *ExecTypeBase) GetChild() ExecutorType

func (*ExecTypeBase) GetCryptoDriver

func (base *ExecTypeBase) GetCryptoDriver(ty int) (string, error)

func (*ExecTypeBase) GetCryptoType

func (base *ExecTypeBase) GetCryptoType(name string) (int, error)

func (*ExecTypeBase) GetExecFuncMap

func (base *ExecTypeBase) GetExecFuncMap() map[string]reflect.Method

func (*ExecTypeBase) GetForks

func (base *ExecTypeBase) GetForks() *Forks

func (*ExecTypeBase) GetFuncMap

func (base *ExecTypeBase) GetFuncMap() map[string]reflect.Method

func (*ExecTypeBase) GetName

func (base *ExecTypeBase) GetName() string

func (*ExecTypeBase) GetRPCFuncMap

func (base *ExecTypeBase) GetRPCFuncMap() map[string]reflect.Method

func (*ExecTypeBase) GetRealToAddr

func (base *ExecTypeBase) GetRealToAddr(tx *Transaction) string

用户看到的ToAddr

func (*ExecTypeBase) GetValueTypeMap

func (base *ExecTypeBase) GetValueTypeMap() map[string]reflect.Type

func (*ExecTypeBase) GetViewFromToAddr

func (base *ExecTypeBase) GetViewFromToAddr(tx *Transaction) (string, string)

用户看到的FromAddr

func (*ExecTypeBase) InitFuncList

func (base *ExecTypeBase) InitFuncList(list map[string]reflect.Method)

func (*ExecTypeBase) IsFork

func (base *ExecTypeBase) IsFork(height int64, key string) bool

func (*ExecTypeBase) QueryToJson

func (base *ExecTypeBase) QueryToJson(funcname string, message Message) ([]byte, error)

func (*ExecTypeBase) SetChild

func (base *ExecTypeBase) SetChild(child ExecutorType)

type ExecTypeGet

type ExecTypeGet interface {
	GetTy() int32
}

type ExecutorAction

type ExecutorAction interface {
	GetTy() int32
}

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)
}

func LoadExecutorType

func LoadExecutorType(execstr string) 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 */
}

type Forks

type Forks struct {
	// contains filtered or unexported fields
}

func (*Forks) Clone

func (f *Forks) Clone(from, to string) error

func (*Forks) CloneMaxHeight

func (f *Forks) CloneMaxHeight(from, to string)

func (*Forks) CloneZero

func (f *Forks) CloneZero(from, to string) error

func (*Forks) GetAll

func (f *Forks) GetAll(title string) map[string]int64

func (*Forks) GetDappFork

func (f *Forks) GetDappFork(title, app string, key string) int64

func (*Forks) GetFork

func (f *Forks) GetFork(title, key string) int64

如果不存在,那么fork高度为0

func (*Forks) HasFork

func (f *Forks) HasFork(title, key string) bool

func (*Forks) IsDappFork

func (f *Forks) IsDappFork(title string, height int64, dapp, fork string) bool

func (*Forks) IsFork

func (f *Forks) IsFork(title string, height int64, fork string) bool

func (*Forks) ReplaceDappFork

func (f *Forks) ReplaceDappFork(title, dapp, key string, height int64)

func (*Forks) ReplaceFork

func (f *Forks) ReplaceFork(title, key string, height int64)

func (*Forks) SetAllFork

func (f *Forks) SetAllFork(title string, height int64)

func (*Forks) SetDappFork

func (f *Forks) SetDappFork(title, dapp, key string, height int64)

func (*Forks) SetFork

func (f *Forks) SetFork(title, key string, height int64)

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) Descriptor() ([]byte, []int)

func (*Genesis) GetIsrun

func (m *Genesis) GetIsrun() bool

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) Reset

func (m *Genesis) Reset()

func (*Genesis) String

func (m *Genesis) String() string

func (*Genesis) XXX_DiscardUnknown

func (m *Genesis) XXX_DiscardUnknown()

func (*Genesis) XXX_Marshal

func (m *Genesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Genesis) XXX_Merge

func (m *Genesis) XXX_Merge(src proto.Message)

func (*Genesis) XXX_Size

func (m *Genesis) XXX_Size() int

func (*Genesis) XXX_Unmarshal

func (m *Genesis) XXX_Unmarshal(b []byte) error

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 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) Descriptor() ([]byte, []int)

func (*Header) GetBlockTime

func (m *Header) GetBlockTime() int64

func (*Header) GetDifficulty

func (m *Header) GetDifficulty() uint32

func (*Header) GetHash

func (m *Header) GetHash() []byte

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetParentHash

func (m *Header) GetParentHash() []byte

func (*Header) GetSignature

func (m *Header) GetSignature() *Signature

func (*Header) GetStateHash

func (m *Header) GetStateHash() []byte

func (*Header) GetTxCount

func (m *Header) GetTxCount() int64

func (*Header) GetTxHash

func (m *Header) GetTxHash() []byte

func (*Header) GetVersion

func (m *Header) GetVersion() int64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge

func (m *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

func (m *Header) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Headers) GetItems

func (m *Headers) GetItems() []*Header

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) Reset

func (m *Headers) Reset()

func (*Headers) String

func (m *Headers) String() string

func (*Headers) XXX_DiscardUnknown

func (m *Headers) XXX_DiscardUnknown()

func (*Headers) XXX_Marshal

func (m *Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Headers) XXX_Merge

func (m *Headers) XXX_Merge(src proto.Message)

func (*Headers) XXX_Size

func (m *Headers) XXX_Size() int

func (*Headers) XXX_Unmarshal

func (m *Headers) XXX_Unmarshal(b []byte) error

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 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) Descriptor() ([]byte, []int)

func (*HexTx) GetTx

func (m *HexTx) GetTx() string

func (*HexTx) ProtoMessage

func (*HexTx) ProtoMessage()

func (*HexTx) Reset

func (m *HexTx) Reset()

func (*HexTx) String

func (m *HexTx) String() string

func (*HexTx) XXX_DiscardUnknown

func (m *HexTx) XXX_DiscardUnknown()

func (*HexTx) XXX_Marshal

func (m *HexTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HexTx) XXX_Merge

func (m *HexTx) XXX_Merge(src proto.Message)

func (*HexTx) XXX_Size

func (m *HexTx) XXX_Size() int

func (*HexTx) XXX_Unmarshal

func (m *HexTx) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*InnerNode) GetHeight

func (m *InnerNode) GetHeight() int32

func (*InnerNode) GetLeftHash

func (m *InnerNode) GetLeftHash() []byte

func (*InnerNode) GetRightHash

func (m *InnerNode) GetRightHash() []byte

func (*InnerNode) GetSize

func (m *InnerNode) GetSize() int32

func (*InnerNode) Hash

func (innernode *InnerNode) Hash() []byte

func (*InnerNode) ProtoMessage

func (*InnerNode) ProtoMessage()

func (*InnerNode) Reset

func (m *InnerNode) Reset()

func (*InnerNode) String

func (m *InnerNode) String() string

func (*InnerNode) XXX_DiscardUnknown

func (m *InnerNode) XXX_DiscardUnknown()

func (*InnerNode) XXX_Marshal

func (m *InnerNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InnerNode) XXX_Merge

func (m *InnerNode) XXX_Merge(src proto.Message)

func (*InnerNode) XXX_Size

func (m *InnerNode) XXX_Size() int

func (*InnerNode) XXX_Unmarshal

func (m *InnerNode) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Int32) GetData

func (m *Int32) GetData() int32

func (*Int32) ProtoMessage

func (*Int32) ProtoMessage()

func (*Int32) Reset

func (m *Int32) Reset()

func (*Int32) String

func (m *Int32) String() string

func (*Int32) XXX_DiscardUnknown

func (m *Int32) XXX_DiscardUnknown()

func (*Int32) XXX_Marshal

func (m *Int32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int32) XXX_Merge

func (m *Int32) XXX_Merge(src proto.Message)

func (*Int32) XXX_Size

func (m *Int32) XXX_Size() int

func (*Int32) XXX_Unmarshal

func (m *Int32) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Int64) GetData

func (m *Int64) GetData() int64

func (*Int64) ProtoMessage

func (*Int64) ProtoMessage()

func (*Int64) Reset

func (m *Int64) Reset()

func (*Int64) String

func (m *Int64) String() string

func (*Int64) XXX_DiscardUnknown

func (m *Int64) XXX_DiscardUnknown()

func (*Int64) XXX_Marshal

func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64) XXX_Merge

func (m *Int64) XXX_Merge(src proto.Message)

func (*Int64) XXX_Size

func (m *Int64) XXX_Size() int

func (*Int64) XXX_Unmarshal

func (m *Int64) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*InvData) GetBlock

func (m *InvData) GetBlock() *Block

func (*InvData) GetTx

func (m *InvData) GetTx() *Transaction

func (*InvData) GetTy

func (m *InvData) GetTy() int32

func (*InvData) GetValue

func (m *InvData) GetValue() isInvData_Value

func (*InvData) ProtoMessage

func (*InvData) ProtoMessage()

func (*InvData) Reset

func (m *InvData) Reset()

func (*InvData) String

func (m *InvData) String() string

func (*InvData) XXX_DiscardUnknown

func (m *InvData) XXX_DiscardUnknown()

func (*InvData) XXX_Marshal

func (m *InvData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvData) XXX_Merge

func (m *InvData) XXX_Merge(src proto.Message)

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_Size

func (m *InvData) XXX_Size() int

func (*InvData) XXX_Unmarshal

func (m *InvData) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*InvDatas) GetItems

func (m *InvDatas) GetItems() []*InvData

func (*InvDatas) ProtoMessage

func (*InvDatas) ProtoMessage()

func (*InvDatas) Reset

func (m *InvDatas) Reset()

func (*InvDatas) String

func (m *InvDatas) String() string

func (*InvDatas) XXX_DiscardUnknown

func (m *InvDatas) XXX_DiscardUnknown()

func (*InvDatas) XXX_Marshal

func (m *InvDatas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvDatas) XXX_Merge

func (m *InvDatas) XXX_Merge(src proto.Message)

func (*InvDatas) XXX_Size

func (m *InvDatas) XXX_Size() int

func (*InvDatas) XXX_Unmarshal

func (m *InvDatas) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Inventory) GetHash

func (m *Inventory) GetHash() []byte

func (*Inventory) GetHeight

func (m *Inventory) GetHeight() int64

func (*Inventory) GetTy

func (m *Inventory) GetTy() int32

func (*Inventory) ProtoMessage

func (*Inventory) ProtoMessage()

func (*Inventory) Reset

func (m *Inventory) Reset()

func (*Inventory) String

func (m *Inventory) String() string

func (*Inventory) XXX_DiscardUnknown

func (m *Inventory) XXX_DiscardUnknown()

func (*Inventory) XXX_Marshal

func (m *Inventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Inventory) XXX_Merge

func (m *Inventory) XXX_Merge(src proto.Message)

func (*Inventory) XXX_Size

func (m *Inventory) XXX_Size() int

func (*Inventory) XXX_Unmarshal

func (m *Inventory) XXX_Unmarshal(b []byte) error

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 FlagKV

func FlagKV(key []byte, value int64) *KeyValue

func (*KeyValue) Descriptor

func (*KeyValue) Descriptor() ([]byte, []int)

func (*KeyValue) GetKey

func (m *KeyValue) GetKey() []byte

func (*KeyValue) GetValue

func (m *KeyValue) GetValue() []byte

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset

func (m *KeyValue) Reset()

func (*KeyValue) String

func (m *KeyValue) String() string

func (*KeyValue) XXX_DiscardUnknown

func (m *KeyValue) XXX_DiscardUnknown()

func (*KeyValue) XXX_Marshal

func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValue) XXX_Merge

func (m *KeyValue) XXX_Merge(src proto.Message)

func (*KeyValue) XXX_Size

func (m *KeyValue) XXX_Size() int

func (*KeyValue) XXX_Unmarshal

func (m *KeyValue) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*LeafNode) GetHeight

func (m *LeafNode) GetHeight() int32

func (*LeafNode) GetKey

func (m *LeafNode) GetKey() []byte

func (*LeafNode) GetSize

func (m *LeafNode) GetSize() int32

func (*LeafNode) GetValue

func (m *LeafNode) GetValue() []byte

func (*LeafNode) Hash

func (leafnode *LeafNode) Hash() []byte

func (*LeafNode) ProtoMessage

func (*LeafNode) ProtoMessage()

func (*LeafNode) Reset

func (m *LeafNode) Reset()

func (*LeafNode) String

func (m *LeafNode) String() string

func (*LeafNode) XXX_DiscardUnknown

func (m *LeafNode) XXX_DiscardUnknown()

func (*LeafNode) XXX_Marshal

func (m *LeafNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeafNode) XXX_Merge

func (m *LeafNode) XXX_Merge(src proto.Message)

func (*LeafNode) XXX_Size

func (m *LeafNode) XXX_Size() int

func (*LeafNode) XXX_Unmarshal

func (m *LeafNode) XXX_Unmarshal(b []byte) error

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"`
}

type LogErr

type LogErr []byte

type LogInfo

type LogInfo struct {
	Ty   reflect.Type
	Name string
}

type LogReserved

type LogReserved []byte

type LogType

type LogType interface {
	Name() string
	Decode([]byte) (interface{}, error)
	Json([]byte) ([]byte, error)
}

func LoadLog

func LoadLog(execer []byte, ty int64) 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) Descriptor() ([]byte, []int)

func (*MAVLProof) GetInnerNodes

func (m *MAVLProof) GetInnerNodes() []*InnerNode

func (*MAVLProof) GetLeafHash

func (m *MAVLProof) GetLeafHash() []byte

func (*MAVLProof) GetRootHash

func (m *MAVLProof) GetRootHash() []byte

func (*MAVLProof) ProtoMessage

func (*MAVLProof) ProtoMessage()

func (*MAVLProof) Reset

func (m *MAVLProof) Reset()

func (*MAVLProof) String

func (m *MAVLProof) String() string

func (*MAVLProof) XXX_DiscardUnknown

func (m *MAVLProof) XXX_DiscardUnknown()

func (*MAVLProof) XXX_Marshal

func (m *MAVLProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MAVLProof) XXX_Merge

func (m *MAVLProof) XXX_Merge(src proto.Message)

func (*MAVLProof) XXX_Size

func (m *MAVLProof) XXX_Size() int

func (*MAVLProof) XXX_Unmarshal

func (m *MAVLProof) XXX_Unmarshal(b []byte) error

type MemPool

type MemPool struct {
	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"`
}

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 Message

type Message proto.Message

func CallQueryFunc

func CallQueryFunc(this reflect.Value, f reflect.Method, in Message) (reply Message, err 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) Descriptor() ([]byte, []int)

func (*Operation) GetValue

func (m *Operation) GetValue() *Block

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) Reset

func (m *Operation) Reset()

func (*Operation) String

func (m *Operation) String() string

func (*Operation) XXX_DiscardUnknown

func (m *Operation) XXX_DiscardUnknown()

func (*Operation) XXX_Marshal

func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Operation) XXX_Merge

func (m *Operation) XXX_Merge(src proto.Message)

func (*Operation) XXX_Size

func (m *Operation) XXX_Size() int

func (*Operation) XXX_Unmarshal

func (m *Operation) XXX_Unmarshal(b []byte) error

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"`
	VerMix          int32    `protobuf:"varint,12,opt,name=verMix" json:"verMix,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"`
}

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) Descriptor() ([]byte, []int)

func (*P2PAddr) GetAddrlist

func (m *P2PAddr) GetAddrlist() []string

func (*P2PAddr) GetNonce

func (m *P2PAddr) GetNonce() int64

func (*P2PAddr) ProtoMessage

func (*P2PAddr) ProtoMessage()

func (*P2PAddr) Reset

func (m *P2PAddr) Reset()

func (*P2PAddr) String

func (m *P2PAddr) String() string

func (*P2PAddr) XXX_DiscardUnknown

func (m *P2PAddr) XXX_DiscardUnknown()

func (*P2PAddr) XXX_Marshal

func (m *P2PAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PAddr) XXX_Merge

func (m *P2PAddr) XXX_Merge(src proto.Message)

func (*P2PAddr) XXX_Size

func (m *P2PAddr) XXX_Size() int

func (*P2PAddr) XXX_Unmarshal

func (m *P2PAddr) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*P2PBlock) GetBlock

func (m *P2PBlock) GetBlock() *Block

func (*P2PBlock) ProtoMessage

func (*P2PBlock) ProtoMessage()

func (*P2PBlock) Reset

func (m *P2PBlock) Reset()

func (*P2PBlock) String

func (m *P2PBlock) String() string

func (*P2PBlock) XXX_DiscardUnknown

func (m *P2PBlock) XXX_DiscardUnknown()

func (*P2PBlock) XXX_Marshal

func (m *P2PBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PBlock) XXX_Merge

func (m *P2PBlock) XXX_Merge(src proto.Message)

func (*P2PBlock) XXX_Size

func (m *P2PBlock) XXX_Size() int

func (*P2PBlock) XXX_Unmarshal

func (m *P2PBlock) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*P2PInv) GetInvs

func (m *P2PInv) GetInvs() []*Inventory

func (*P2PInv) ProtoMessage

func (*P2PInv) ProtoMessage()

func (*P2PInv) Reset

func (m *P2PInv) Reset()

func (*P2PInv) String

func (m *P2PInv) String() string

func (*P2PInv) XXX_DiscardUnknown

func (m *P2PInv) XXX_DiscardUnknown()

func (*P2PInv) XXX_Marshal

func (m *P2PInv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PInv) XXX_Merge

func (m *P2PInv) XXX_Merge(src proto.Message)

func (*P2PInv) XXX_Size

func (m *P2PInv) XXX_Size() int

func (*P2PInv) XXX_Unmarshal

func (m *P2PInv) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*P2PPing) GetAddr

func (m *P2PPing) GetAddr() string

func (*P2PPing) GetNonce

func (m *P2PPing) GetNonce() int64

func (*P2PPing) GetPort

func (m *P2PPing) GetPort() int32

func (*P2PPing) GetSign

func (m *P2PPing) GetSign() *Signature

func (*P2PPing) ProtoMessage

func (*P2PPing) ProtoMessage()

func (*P2PPing) Reset

func (m *P2PPing) Reset()

func (*P2PPing) String

func (m *P2PPing) String() string

func (*P2PPing) XXX_DiscardUnknown

func (m *P2PPing) XXX_DiscardUnknown()

func (*P2PPing) XXX_Marshal

func (m *P2PPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PPing) XXX_Merge

func (m *P2PPing) XXX_Merge(src proto.Message)

func (*P2PPing) XXX_Size

func (m *P2PPing) XXX_Size() int

func (*P2PPing) XXX_Unmarshal

func (m *P2PPing) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*P2PPong) GetNonce

func (m *P2PPong) GetNonce() int64

func (*P2PPong) ProtoMessage

func (*P2PPong) ProtoMessage()

func (*P2PPong) Reset

func (m *P2PPong) Reset()

func (*P2PPong) String

func (m *P2PPong) String() string

func (*P2PPong) XXX_DiscardUnknown

func (m *P2PPong) XXX_DiscardUnknown()

func (*P2PPong) XXX_Marshal

func (m *P2PPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PPong) XXX_Merge

func (m *P2PPong) XXX_Merge(src proto.Message)

func (*P2PPong) XXX_Size

func (m *P2PPong) XXX_Size() int

func (*P2PPong) XXX_Unmarshal

func (m *P2PPong) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*P2PTx) GetTx

func (m *P2PTx) GetTx() *Transaction

func (*P2PTx) ProtoMessage

func (*P2PTx) ProtoMessage()

func (*P2PTx) Reset

func (m *P2PTx) Reset()

func (*P2PTx) String

func (m *P2PTx) String() string

func (*P2PTx) XXX_DiscardUnknown

func (m *P2PTx) XXX_DiscardUnknown()

func (*P2PTx) XXX_Marshal

func (m *P2PTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PTx) XXX_Merge

func (m *P2PTx) XXX_Merge(src proto.Message)

func (*P2PTx) XXX_Size

func (m *P2PTx) XXX_Size() int

func (*P2PTx) XXX_Unmarshal

func (m *P2PTx) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*P2PVerAck) GetNonce

func (m *P2PVerAck) GetNonce() int64

func (*P2PVerAck) GetService

func (m *P2PVerAck) GetService() int64

func (*P2PVerAck) GetVersion

func (m *P2PVerAck) GetVersion() int32

func (*P2PVerAck) ProtoMessage

func (*P2PVerAck) ProtoMessage()

func (*P2PVerAck) Reset

func (m *P2PVerAck) Reset()

func (*P2PVerAck) String

func (m *P2PVerAck) String() string

func (*P2PVerAck) XXX_DiscardUnknown

func (m *P2PVerAck) XXX_DiscardUnknown()

func (*P2PVerAck) XXX_Marshal

func (m *P2PVerAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PVerAck) XXX_Merge

func (m *P2PVerAck) XXX_Merge(src proto.Message)

func (*P2PVerAck) XXX_Size

func (m *P2PVerAck) XXX_Size() int

func (*P2PVerAck) XXX_Unmarshal

func (m *P2PVerAck) XXX_Unmarshal(b []byte) error

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 ParaCrossTx

type ParaCrossTx interface {
	IsParaCrossTx() bool
}

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) Descriptor() ([]byte, []int)

func (*Peer) GetAddr

func (m *Peer) GetAddr() string

func (*Peer) GetHeader

func (m *Peer) GetHeader() *Header

func (*Peer) GetMempoolSize

func (m *Peer) GetMempoolSize() int32

func (*Peer) GetName

func (m *Peer) GetName() string

func (*Peer) GetPort

func (m *Peer) GetPort() int32

func (*Peer) GetSelf

func (m *Peer) GetSelf() bool

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peer) XXX_Merge

func (m *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

func (m *Peer) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*PeerList) GetPeers

func (m *PeerList) GetPeers() []*Peer

func (*PeerList) ProtoMessage

func (*PeerList) ProtoMessage()

func (*PeerList) Reset

func (m *PeerList) Reset()

func (*PeerList) String

func (m *PeerList) String() string

func (*PeerList) XXX_DiscardUnknown

func (m *PeerList) XXX_DiscardUnknown()

func (*PeerList) XXX_Marshal

func (m *PeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerList) XXX_Merge

func (m *PeerList) XXX_Merge(src proto.Message)

func (*PeerList) XXX_Size

func (m *PeerList) XXX_Size() int

func (*PeerList) XXX_Unmarshal

func (m *PeerList) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*PeersInfo) GetIp

func (m *PeersInfo) GetIp() string

func (*PeersInfo) GetName

func (m *PeersInfo) GetName() string

func (*PeersInfo) GetP2Pversion

func (m *PeersInfo) GetP2Pversion() int32

func (*PeersInfo) GetPort

func (m *PeersInfo) GetPort() int32

func (*PeersInfo) GetSoftversion

func (m *PeersInfo) GetSoftversion() string

func (*PeersInfo) ProtoMessage

func (*PeersInfo) ProtoMessage()

func (*PeersInfo) Reset

func (m *PeersInfo) Reset()

func (*PeersInfo) String

func (m *PeersInfo) String() string

func (*PeersInfo) XXX_DiscardUnknown

func (m *PeersInfo) XXX_DiscardUnknown()

func (*PeersInfo) XXX_Marshal

func (m *PeersInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeersInfo) XXX_Merge

func (m *PeersInfo) XXX_Merge(src proto.Message)

func (*PeersInfo) XXX_Size

func (m *PeersInfo) XXX_Size() int

func (*PeersInfo) XXX_Unmarshal

func (m *PeersInfo) XXX_Unmarshal(b []byte) error

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"`
}

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) Descriptor() ([]byte, []int)

func (*PrivacyKV) GetPrivacyKVToken

func (m *PrivacyKV) GetPrivacyKVToken() []*PrivacyKVToken

func (*PrivacyKV) ProtoMessage

func (*PrivacyKV) ProtoMessage()

func (*PrivacyKV) Reset

func (m *PrivacyKV) Reset()

func (*PrivacyKV) String

func (m *PrivacyKV) String() string

func (*PrivacyKV) XXX_DiscardUnknown

func (m *PrivacyKV) XXX_DiscardUnknown()

func (*PrivacyKV) XXX_Marshal

func (m *PrivacyKV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrivacyKV) XXX_Merge

func (m *PrivacyKV) XXX_Merge(src proto.Message)

func (*PrivacyKV) XXX_Size

func (m *PrivacyKV) XXX_Size() int

func (*PrivacyKV) XXX_Unmarshal

func (m *PrivacyKV) XXX_Unmarshal(b []byte) error

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 {
	// 对应keyHash下的区块高度
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// hash+prefix的长度
	Lenth                int32    `protobuf:"varint,2,opt,name=lenth,proto3" json:"lenth,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PruneData) Descriptor

func (*PruneData) Descriptor() ([]byte, []int)

func (*PruneData) GetHeight

func (m *PruneData) GetHeight() int64

func (*PruneData) GetLenth

func (m *PruneData) GetLenth() int32

func (*PruneData) ProtoMessage

func (*PruneData) ProtoMessage()

func (*PruneData) Reset

func (m *PruneData) Reset()

func (*PruneData) String

func (m *PruneData) String() string

func (*PruneData) XXX_DiscardUnknown

func (m *PruneData) XXX_DiscardUnknown()

func (*PruneData) XXX_Marshal

func (m *PruneData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PruneData) XXX_Merge

func (m *PruneData) XXX_Merge(src proto.Message)

func (*PruneData) XXX_Size

func (m *PruneData) XXX_Size() int

func (*PruneData) XXX_Unmarshal

func (m *PruneData) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Query) GetExecer

func (m *Query) GetExecer() []byte

func (*Query) GetFuncName

func (m *Query) GetFuncName() string

func (*Query) GetPayload

func (m *Query) GetPayload() []byte

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) Reset

func (m *Query) Reset()

func (*Query) String

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal

func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Query) XXX_Merge

func (m *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_Size

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal

func (m *Query) XXX_Unmarshal(b []byte) error

type Query4Cli

type Query4Cli struct {
	Execer   string      `json:"execer"`
	FuncName string      `json:"funcName"`
	Payload  interface{} `json:"payload"`
}

type QueryData

type QueryData struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewQueryData

func NewQueryData(prefix string) *QueryData

func (*QueryData) Call

func (q *QueryData) Call(driver, name string, in Message) (reply Message, err error)

func (*QueryData) Decode

func (q *QueryData) Decode(driver, name string, in []byte) (reply Message, err error)

func (*QueryData) DecodeJson

func (q *QueryData) DecodeJson(driver, name string, in json.Marshaler) (reply Message, err error)

func (*QueryData) GetFunc

func (q *QueryData) GetFunc(driver, name string) (reflect.Method, error)

func (*QueryData) GetType

func (q *QueryData) GetType(driver, name string) (reflect.Type, error)

func (*QueryData) Register

func (q *QueryData) Register(key string, obj interface{})

func (*QueryData) SetThis

func (q *QueryData) SetThis(key string, this reflect.Value)

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 NewErrReceipt

func NewErrReceipt(err error) *Receipt

func (*Receipt) Descriptor

func (*Receipt) Descriptor() ([]byte, []int)

func (*Receipt) GetKV

func (m *Receipt) GetKV() []*KeyValue

func (*Receipt) GetLogs

func (m *Receipt) GetLogs() []*ReceiptLog

func (*Receipt) GetTy

func (m *Receipt) GetTy() int32

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) Reset

func (m *Receipt) Reset()

func (*Receipt) String

func (m *Receipt) String() string

func (*Receipt) XXX_DiscardUnknown

func (m *Receipt) XXX_DiscardUnknown()

func (*Receipt) XXX_Marshal

func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Receipt) XXX_Merge

func (m *Receipt) XXX_Merge(src proto.Message)

func (*Receipt) XXX_Size

func (m *Receipt) XXX_Size() int

func (*Receipt) XXX_Unmarshal

func (m *Receipt) XXX_Unmarshal(b []byte) error

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)

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)

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"`
}

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"`
}

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) Descriptor() ([]byte, []int)

func (*Receipts) GetReceipts

func (m *Receipts) GetReceipts() []*Receipt

func (*Receipts) ProtoMessage

func (*Receipts) ProtoMessage()

func (*Receipts) Reset

func (m *Receipts) Reset()

func (*Receipts) String

func (m *Receipts) String() string

func (*Receipts) XXX_DiscardUnknown

func (m *Receipts) XXX_DiscardUnknown()

func (*Receipts) XXX_Marshal

func (m *Receipts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Receipts) XXX_Merge

func (m *Receipts) XXX_Merge(src proto.Message)

func (*Receipts) XXX_Size

func (m *Receipts) XXX_Size() int

func (*Receipts) XXX_Unmarshal

func (m *Receipts) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Reply) GetIsOk

func (m *Reply) GetIsOk() bool

func (*Reply) GetMsg

func (m *Reply) GetMsg() []byte

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

func (*Reply) XXX_DiscardUnknown

func (m *Reply) XXX_DiscardUnknown()

func (*Reply) XXX_Marshal

func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reply) XXX_Merge

func (m *Reply) XXX_Merge(src proto.Message)

func (*Reply) XXX_Size

func (m *Reply) XXX_Size() int

func (*Reply) XXX_Unmarshal

func (m *Reply) XXX_Unmarshal(b []byte) error

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)

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

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) Descriptor() ([]byte, []int)

func (*ReplyHash) GetHash

func (m *ReplyHash) GetHash() []byte

func (*ReplyHash) ProtoMessage

func (*ReplyHash) ProtoMessage()

func (*ReplyHash) Reset

func (m *ReplyHash) Reset()

func (*ReplyHash) String

func (m *ReplyHash) String() string

func (*ReplyHash) XXX_DiscardUnknown

func (m *ReplyHash) XXX_DiscardUnknown()

func (*ReplyHash) XXX_Marshal

func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplyHash) XXX_Merge

func (m *ReplyHash) XXX_Merge(src proto.Message)

func (*ReplyHash) XXX_Size

func (m *ReplyHash) XXX_Size() int

func (*ReplyHash) XXX_Unmarshal

func (m *ReplyHash) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReplySeed) GetSeed

func (m *ReplySeed) GetSeed() string

func (*ReplySeed) ProtoMessage

func (*ReplySeed) ProtoMessage()

func (*ReplySeed) Reset

func (m *ReplySeed) Reset()

func (*ReplySeed) String

func (m *ReplySeed) String() string

func (*ReplySeed) XXX_DiscardUnknown

func (m *ReplySeed) XXX_DiscardUnknown()

func (*ReplySeed) XXX_Marshal

func (m *ReplySeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplySeed) XXX_Merge

func (m *ReplySeed) XXX_Merge(src proto.Message)

func (*ReplySeed) XXX_Size

func (m *ReplySeed) XXX_Size() int

func (*ReplySeed) XXX_Unmarshal

func (m *ReplySeed) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqAddr) GetAddr

func (m *ReqAddr) GetAddr() string

func (*ReqAddr) GetCount

func (m *ReqAddr) GetCount() int32

func (*ReqAddr) GetDirection

func (m *ReqAddr) GetDirection() int32

func (*ReqAddr) GetFlag

func (m *ReqAddr) GetFlag() int32

func (*ReqAddr) GetHeight

func (m *ReqAddr) GetHeight() int64

func (*ReqAddr) GetIndex

func (m *ReqAddr) GetIndex() int64

func (*ReqAddr) ProtoMessage

func (*ReqAddr) ProtoMessage()

func (*ReqAddr) Reset

func (m *ReqAddr) Reset()

func (*ReqAddr) String

func (m *ReqAddr) String() string

func (*ReqAddr) XXX_DiscardUnknown

func (m *ReqAddr) XXX_DiscardUnknown()

func (*ReqAddr) XXX_Marshal

func (m *ReqAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqAddr) XXX_Merge

func (m *ReqAddr) XXX_Merge(src proto.Message)

func (*ReqAddr) XXX_Size

func (m *ReqAddr) XXX_Size() int

func (*ReqAddr) XXX_Unmarshal

func (m *ReqAddr) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqAddrs) GetAddrs

func (m *ReqAddrs) GetAddrs() []string

func (*ReqAddrs) ProtoMessage

func (*ReqAddrs) ProtoMessage()

func (*ReqAddrs) Reset

func (m *ReqAddrs) Reset()

func (*ReqAddrs) String

func (m *ReqAddrs) String() string

func (*ReqAddrs) XXX_DiscardUnknown

func (m *ReqAddrs) XXX_DiscardUnknown()

func (*ReqAddrs) XXX_Marshal

func (m *ReqAddrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqAddrs) XXX_Merge

func (m *ReqAddrs) XXX_Merge(src proto.Message)

func (*ReqAddrs) XXX_Size

func (m *ReqAddrs) XXX_Size() int

func (*ReqAddrs) XXX_Unmarshal

func (m *ReqAddrs) 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"`
	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) 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) Descriptor() ([]byte, []int)

func (*ReqBlocks) GetEnd

func (m *ReqBlocks) GetEnd() int64

func (*ReqBlocks) GetIsDetail

func (m *ReqBlocks) GetIsDetail() bool

func (*ReqBlocks) GetPid

func (m *ReqBlocks) GetPid() []string

func (*ReqBlocks) GetStart

func (m *ReqBlocks) GetStart() int64

func (*ReqBlocks) ProtoMessage

func (*ReqBlocks) ProtoMessage()

func (*ReqBlocks) Reset

func (m *ReqBlocks) Reset()

func (*ReqBlocks) String

func (m *ReqBlocks) String() string

func (*ReqBlocks) XXX_DiscardUnknown

func (m *ReqBlocks) XXX_DiscardUnknown()

func (*ReqBlocks) XXX_Marshal

func (m *ReqBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqBlocks) XXX_Merge

func (m *ReqBlocks) XXX_Merge(src proto.Message)

func (*ReqBlocks) XXX_Size

func (m *ReqBlocks) XXX_Size() int

func (*ReqBlocks) XXX_Unmarshal

func (m *ReqBlocks) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqHash) GetHash

func (m *ReqHash) GetHash() []byte

func (*ReqHash) ProtoMessage

func (*ReqHash) ProtoMessage()

func (*ReqHash) Reset

func (m *ReqHash) Reset()

func (*ReqHash) String

func (m *ReqHash) String() string

func (*ReqHash) XXX_DiscardUnknown

func (m *ReqHash) XXX_DiscardUnknown()

func (*ReqHash) XXX_Marshal

func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqHash) XXX_Merge

func (m *ReqHash) XXX_Merge(src proto.Message)

func (*ReqHash) XXX_Size

func (m *ReqHash) XXX_Size() int

func (*ReqHash) XXX_Unmarshal

func (m *ReqHash) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqHashes) GetHashes

func (m *ReqHashes) GetHashes() [][]byte

func (*ReqHashes) ProtoMessage

func (*ReqHashes) ProtoMessage()

func (*ReqHashes) Reset

func (m *ReqHashes) Reset()

func (*ReqHashes) String

func (m *ReqHashes) String() string

func (*ReqHashes) XXX_DiscardUnknown

func (m *ReqHashes) XXX_DiscardUnknown()

func (*ReqHashes) XXX_Marshal

func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqHashes) XXX_Merge

func (m *ReqHashes) XXX_Merge(src proto.Message)

func (*ReqHashes) XXX_Size

func (m *ReqHashes) XXX_Size() int

func (*ReqHashes) XXX_Unmarshal

func (m *ReqHashes) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqInt) GetHeight

func (m *ReqInt) GetHeight() int64

func (*ReqInt) ProtoMessage

func (*ReqInt) ProtoMessage()

func (*ReqInt) Reset

func (m *ReqInt) Reset()

func (*ReqInt) String

func (m *ReqInt) String() string

func (*ReqInt) XXX_DiscardUnknown

func (m *ReqInt) XXX_DiscardUnknown()

func (*ReqInt) XXX_Marshal

func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqInt) XXX_Merge

func (m *ReqInt) XXX_Merge(src proto.Message)

func (*ReqInt) XXX_Size

func (m *ReqInt) XXX_Size() int

func (*ReqInt) XXX_Unmarshal

func (m *ReqInt) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqKey) GetKey

func (m *ReqKey) GetKey() []byte

func (*ReqKey) ProtoMessage

func (*ReqKey) ProtoMessage()

func (*ReqKey) Reset

func (m *ReqKey) Reset()

func (*ReqKey) String

func (m *ReqKey) String() string

func (*ReqKey) XXX_DiscardUnknown

func (m *ReqKey) XXX_DiscardUnknown()

func (*ReqKey) XXX_Marshal

func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqKey) XXX_Merge

func (m *ReqKey) XXX_Merge(src proto.Message)

func (*ReqKey) XXX_Size

func (m *ReqKey) XXX_Size() int

func (*ReqKey) XXX_Unmarshal

func (m *ReqKey) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqNil) ProtoMessage

func (*ReqNil) ProtoMessage()

func (*ReqNil) Reset

func (m *ReqNil) Reset()

func (*ReqNil) String

func (m *ReqNil) String() string

func (*ReqNil) XXX_DiscardUnknown

func (m *ReqNil) XXX_DiscardUnknown()

func (*ReqNil) XXX_Marshal

func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqNil) XXX_Merge

func (m *ReqNil) XXX_Merge(src proto.Message)

func (*ReqNil) XXX_Size

func (m *ReqNil) XXX_Size() int

func (*ReqNil) XXX_Unmarshal

func (m *ReqNil) XXX_Unmarshal(b []byte) error

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 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"`
	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) GetIndex

func (m *ReqSignRawTx) GetIndex() int32

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) Descriptor() ([]byte, []int)

func (*ReqString) GetData

func (m *ReqString) GetData() string

func (*ReqString) ProtoMessage

func (*ReqString) ProtoMessage()

func (*ReqString) Reset

func (m *ReqString) Reset()

func (*ReqString) String

func (m *ReqString) String() string

func (*ReqString) XXX_DiscardUnknown

func (m *ReqString) XXX_DiscardUnknown()

func (*ReqString) XXX_Marshal

func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqString) XXX_Merge

func (m *ReqString) XXX_Merge(src proto.Message)

func (*ReqString) XXX_Size

func (m *ReqString) XXX_Size() int

func (*ReqString) XXX_Unmarshal

func (m *ReqString) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqTxList) GetCount

func (m *ReqTxList) GetCount() int64

func (*ReqTxList) ProtoMessage

func (*ReqTxList) ProtoMessage()

func (*ReqTxList) Reset

func (m *ReqTxList) Reset()

func (*ReqTxList) String

func (m *ReqTxList) String() string

func (*ReqTxList) XXX_DiscardUnknown

func (m *ReqTxList) XXX_DiscardUnknown()

func (*ReqTxList) XXX_Marshal

func (m *ReqTxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqTxList) XXX_Merge

func (m *ReqTxList) XXX_Merge(src proto.Message)

func (*ReqTxList) XXX_Size

func (m *ReqTxList) XXX_Size() int

func (*ReqTxList) XXX_Unmarshal

func (m *ReqTxList) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

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) GetValue

func (m *Request) GetValue() isRequest_Value

func (*Request) GetViewchange

func (m *Request) GetViewchange() *RequestViewChange

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

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_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Result) GetValue

func (m *Result) GetValue() *Block

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

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 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"`
	MainnetJrpcAddr   string   `protobuf:"bytes,9,opt,name=mainnetJrpcAddr" json:"mainnetJrpcAddr,omitempty"`
}

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) Descriptor() ([]byte, []int)

func (*Signature) GetPubkey

func (m *Signature) GetPubkey() []byte

func (*Signature) GetSignature

func (m *Signature) GetSignature() []byte

func (*Signature) GetTy

func (m *Signature) GetTy() int32

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signature) XXX_Merge

func (m *Signature) XXX_Merge(src proto.Message)

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

func (m *Signature) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*SignedTx) GetPubkey

func (m *SignedTx) GetPubkey() []byte

func (*SignedTx) GetSign

func (m *SignedTx) GetSign() []byte

func (*SignedTx) GetTy

func (m *SignedTx) GetTy() int32

func (*SignedTx) GetUnsign

func (m *SignedTx) GetUnsign() []byte

func (*SignedTx) ProtoMessage

func (*SignedTx) ProtoMessage()

func (*SignedTx) Reset

func (m *SignedTx) Reset()

func (*SignedTx) String

func (m *SignedTx) String() string

func (*SignedTx) XXX_DiscardUnknown

func (m *SignedTx) XXX_DiscardUnknown()

func (*SignedTx) XXX_Marshal

func (m *SignedTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedTx) XXX_Merge

func (m *SignedTx) XXX_Merge(src proto.Message)

func (*SignedTx) XXX_Size

func (m *SignedTx) XXX_Size() int

func (*SignedTx) XXX_Unmarshal

func (m *SignedTx) XXX_Unmarshal(b []byte) error

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"`
}

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) Descriptor() ([]byte, []int)

func (*StoreDel) GetHeight

func (m *StoreDel) GetHeight() int64

func (*StoreDel) GetStateHash

func (m *StoreDel) GetStateHash() []byte

func (*StoreDel) ProtoMessage

func (*StoreDel) ProtoMessage()

func (*StoreDel) Reset

func (m *StoreDel) Reset()

func (*StoreDel) String

func (m *StoreDel) String() string

func (*StoreDel) XXX_DiscardUnknown

func (m *StoreDel) XXX_DiscardUnknown()

func (*StoreDel) XXX_Marshal

func (m *StoreDel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreDel) XXX_Merge

func (m *StoreDel) XXX_Merge(src proto.Message)

func (*StoreDel) XXX_Size

func (m *StoreDel) XXX_Size() int

func (*StoreDel) XXX_Unmarshal

func (m *StoreDel) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*StoreGet) GetKeys

func (m *StoreGet) GetKeys() [][]byte

func (*StoreGet) GetStateHash

func (m *StoreGet) GetStateHash() []byte

func (*StoreGet) ProtoMessage

func (*StoreGet) ProtoMessage()

func (*StoreGet) Reset

func (m *StoreGet) Reset()

func (*StoreGet) String

func (m *StoreGet) String() string

func (*StoreGet) XXX_DiscardUnknown

func (m *StoreGet) XXX_DiscardUnknown()

func (*StoreGet) XXX_Marshal

func (m *StoreGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreGet) XXX_Merge

func (m *StoreGet) XXX_Merge(src proto.Message)

func (*StoreGet) XXX_Size

func (m *StoreGet) XXX_Size() int

func (*StoreGet) XXX_Unmarshal

func (m *StoreGet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*StoreList) GetCount

func (m *StoreList) GetCount() int64

func (*StoreList) GetEnd

func (m *StoreList) GetEnd() []byte

func (*StoreList) GetMode

func (m *StoreList) GetMode() int64

func (*StoreList) GetStart

func (m *StoreList) GetStart() []byte

func (*StoreList) GetStateHash

func (m *StoreList) GetStateHash() []byte

func (*StoreList) GetSuffix

func (m *StoreList) GetSuffix() []byte

func (*StoreList) ProtoMessage

func (*StoreList) ProtoMessage()

func (*StoreList) Reset

func (m *StoreList) Reset()

func (*StoreList) String

func (m *StoreList) String() string

func (*StoreList) XXX_DiscardUnknown

func (m *StoreList) XXX_DiscardUnknown()

func (*StoreList) XXX_Marshal

func (m *StoreList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreList) XXX_Merge

func (m *StoreList) XXX_Merge(src proto.Message)

func (*StoreList) XXX_Size

func (m *StoreList) XXX_Size() int

func (*StoreList) XXX_Unmarshal

func (m *StoreList) XXX_Unmarshal(b []byte) error

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"`
	ParentHash           []byte   `protobuf:"bytes,7,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StoreNode) Descriptor

func (*StoreNode) Descriptor() ([]byte, []int)

func (*StoreNode) GetHeight

func (m *StoreNode) GetHeight() int32

func (*StoreNode) GetKey

func (m *StoreNode) GetKey() []byte

func (*StoreNode) GetLeftHash

func (m *StoreNode) GetLeftHash() []byte

func (*StoreNode) GetParentHash

func (m *StoreNode) GetParentHash() []byte

func (*StoreNode) GetRightHash

func (m *StoreNode) GetRightHash() []byte

func (*StoreNode) GetSize

func (m *StoreNode) GetSize() int32

func (*StoreNode) GetValue

func (m *StoreNode) GetValue() []byte

func (*StoreNode) ProtoMessage

func (*StoreNode) ProtoMessage()

func (*StoreNode) Reset

func (m *StoreNode) Reset()

func (*StoreNode) String

func (m *StoreNode) String() string

func (*StoreNode) XXX_DiscardUnknown

func (m *StoreNode) XXX_DiscardUnknown()

func (*StoreNode) XXX_Marshal

func (m *StoreNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreNode) XXX_Merge

func (m *StoreNode) XXX_Merge(src proto.Message)

func (*StoreNode) XXX_Size

func (m *StoreNode) XXX_Size() int

func (*StoreNode) XXX_Unmarshal

func (m *StoreNode) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*StoreSet) GetHeight

func (m *StoreSet) GetHeight() int64

func (*StoreSet) GetKV

func (m *StoreSet) GetKV() []*KeyValue

func (*StoreSet) GetStateHash

func (m *StoreSet) GetStateHash() []byte

func (*StoreSet) ProtoMessage

func (*StoreSet) ProtoMessage()

func (*StoreSet) Reset

func (m *StoreSet) Reset()

func (*StoreSet) String

func (m *StoreSet) String() string

func (*StoreSet) XXX_DiscardUnknown

func (m *StoreSet) XXX_DiscardUnknown()

func (*StoreSet) XXX_Marshal

func (m *StoreSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreSet) XXX_Merge

func (m *StoreSet) XXX_Merge(src proto.Message)

func (*StoreSet) XXX_Size

func (m *StoreSet) XXX_Size() int

func (*StoreSet) XXX_Unmarshal

func (m *StoreSet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Summary) GetDigest

func (m *Summary) GetDigest() []byte

func (*Summary) GetSequence

func (m *Summary) GetSequence() uint32

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) Reset

func (m *Summary) Reset()

func (*Summary) String

func (m *Summary) String() string

func (*Summary) XXX_DiscardUnknown

func (m *Summary) XXX_DiscardUnknown()

func (*Summary) XXX_Marshal

func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Summary) XXX_Merge

func (m *Summary) XXX_Merge(src proto.Message)

func (*Summary) XXX_Size

func (m *Summary) XXX_Size() int

func (*Summary) XXX_Unmarshal

func (m *Summary) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*TotalFee) GetFee

func (m *TotalFee) GetFee() int64

func (*TotalFee) GetTxCount

func (m *TotalFee) GetTxCount() int64

func (*TotalFee) ProtoMessage

func (*TotalFee) ProtoMessage()

func (*TotalFee) Reset

func (m *TotalFee) Reset()

func (*TotalFee) String

func (m *TotalFee) String() string

func (*TotalFee) XXX_DiscardUnknown

func (m *TotalFee) XXX_DiscardUnknown()

func (*TotalFee) XXX_Marshal

func (m *TotalFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TotalFee) XXX_Merge

func (m *TotalFee) XXX_Merge(src proto.Message)

func (*TotalFee) XXX_Size

func (m *TotalFee) XXX_Size() int

func (*TotalFee) XXX_Unmarshal

func (m *TotalFee) XXX_Unmarshal(b []byte) error

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)

func CreateFormatTx

func CreateFormatTx(execName string, payload []byte) (*Transaction, error)

func FormatTx

func FormatTx(execName string, tx *Transaction) (*Transaction, error)

func (*Transaction) ActionName

func (tx *Transaction) ActionName() string

获取tx交易的Actionname

func (*Transaction) Amount

func (tx *Transaction) Amount() (int64, error)

解析tx的payload获取amount值

func (*Transaction) Assets

func (tx *Transaction) Assets() ([]*Asset, error)

func (*Transaction) Check

func (tx *Transaction) Check(height, minfee int64) error

func (*Transaction) CheckSign

func (tx *Transaction) CheckSign() bool

tx 有些时候是一个交易组

func (*Transaction) Descriptor

func (*Transaction) Descriptor() ([]byte, []int)

func (*Transaction) From

func (tx *Transaction) From() string

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)

func (*Transaction) GetRealToAddr

func (tx *Transaction) GetRealToAddr() string

解析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)

func (*Transaction) GetViewFromToAddr

func (tx *Transaction) GetViewFromToAddr() (string, string)

解析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

hash 不包含签名,用户通过修改签名无法重新发送交易

func (*Transaction) IsExpire

func (tx *Transaction) IsExpire(height, blocktime int64) bool

func (*Transaction) IsWithdraw

func (tx *Transaction) IsWithdraw() bool

判断交易是withdraw交易,需要做from和to地址的swap,方便上层客户理解

func (*Transaction) Json

func (tx *Transaction) Json() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) SetExpire

func (tx *Transaction) SetExpire(expire time.Duration)

func (*Transaction) SetRealFee

func (tx *Transaction) SetRealFee(minFee int64) error

func (*Transaction) Sign

func (tx *Transaction) Sign(ty int32, priv crypto.PrivKey)

func (*Transaction) Size

func (tx *Transaction) Size() int

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Tx

func (tx *Transaction) Tx() *Transaction

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
}

func NewTransactionCache

func NewTransactionCache(tx *Transaction) *TransactionCache

func TxsToCache

func TxsToCache(txs []*Transaction) (caches []*TransactionCache)

func (*TransactionCache) Check

func (tx *TransactionCache) Check(height, minfee int64) error

func (*TransactionCache) CheckSign

func (tx *TransactionCache) CheckSign() bool

func (*TransactionCache) GetTxGroup

func (tx *TransactionCache) GetTxGroup() (*Transactions, error)

func (*TransactionCache) Hash

func (tx *TransactionCache) Hash() []byte

func (*TransactionCache) Size

func (tx *TransactionCache) Size() int

func (*TransactionCache) Tx

func (tx *TransactionCache) Tx() *Transaction

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)

func (*Transactions) Check

func (txgroup *Transactions) Check(height int64, minfee int64) error

height == 0 的时候,不做检查

func (*Transactions) CheckSign

func (txgroup *Transactions) CheckSign() bool

func (*Transactions) Descriptor

func (*Transactions) Descriptor() ([]byte, []int)

func (*Transactions) GetTxGroup

func (txgroup *Transactions) GetTxGroup() *Transactions

func (*Transactions) GetTxs

func (m *Transactions) GetTxs() []*Transaction

func (*Transactions) IsExpire

func (txgroup *Transactions) IsExpire(height, blocktime int64) bool

func (*Transactions) ProtoMessage

func (*Transactions) ProtoMessage()

func (*Transactions) Reset

func (m *Transactions) Reset()

func (*Transactions) SignN

func (txgroup *Transactions) SignN(n int, ty int32, priv crypto.PrivKey) error

func (*Transactions) String

func (m *Transactions) String() string

func (*Transactions) Tx

func (txgroup *Transactions) Tx() *Transaction

这比用于检查的交易,包含了所有的交易。 主要是为了兼容原来的设计

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
}

交易组的接口,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) Descriptor() ([]byte, []int)

func (*TxHash) GetHash

func (m *TxHash) GetHash() string

func (*TxHash) ProtoMessage

func (*TxHash) ProtoMessage()

func (*TxHash) Reset

func (m *TxHash) Reset()

func (*TxHash) String

func (m *TxHash) String() string

func (*TxHash) XXX_DiscardUnknown

func (m *TxHash) XXX_DiscardUnknown()

func (*TxHash) XXX_Marshal

func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxHash) XXX_Merge

func (m *TxHash) XXX_Merge(src proto.Message)

func (*TxHash) XXX_Size

func (m *TxHash) XXX_Size() int

func (*TxHash) XXX_Unmarshal

func (m *TxHash) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*TxResult) GetActionName

func (m *TxResult) GetActionName() string

func (*TxResult) GetBlocktime

func (m *TxResult) GetBlocktime() int64

func (*TxResult) GetHeight

func (m *TxResult) GetHeight() int64

func (*TxResult) GetIndex

func (m *TxResult) GetIndex() int32

func (*TxResult) GetReceiptdate

func (m *TxResult) GetReceiptdate() *ReceiptData

func (*TxResult) GetTx

func (m *TxResult) GetTx() *Transaction

func (*TxResult) ProtoMessage

func (*TxResult) ProtoMessage()

func (*TxResult) Reset

func (m *TxResult) Reset()

func (*TxResult) String

func (m *TxResult) String() string

func (*TxResult) XXX_DiscardUnknown

func (m *TxResult) XXX_DiscardUnknown()

func (*TxResult) XXX_Marshal

func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxResult) XXX_Merge

func (m *TxResult) XXX_Merge(src proto.Message)

func (*TxResult) XXX_Size

func (m *TxResult) XXX_Size() int

func (*TxResult) XXX_Unmarshal

func (m *TxResult) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*UnsignTx) GetData

func (m *UnsignTx) GetData() []byte

func (*UnsignTx) ProtoMessage

func (*UnsignTx) ProtoMessage()

func (*UnsignTx) Reset

func (m *UnsignTx) Reset()

func (*UnsignTx) String

func (m *UnsignTx) String() string

func (*UnsignTx) XXX_DiscardUnknown

func (m *UnsignTx) XXX_DiscardUnknown()

func (*UnsignTx) XXX_Marshal

func (m *UnsignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnsignTx) XXX_Merge

func (m *UnsignTx) XXX_Merge(src proto.Message)

func (*UnsignTx) XXX_Size

func (m *UnsignTx) XXX_Size() int

func (*UnsignTx) XXX_Unmarshal

func (m *UnsignTx) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*UserWrite) GetContent

func (m *UserWrite) GetContent() string

func (*UserWrite) GetTopic

func (m *UserWrite) GetTopic() string

func (*UserWrite) ProtoMessage

func (*UserWrite) ProtoMessage()

func (*UserWrite) Reset

func (m *UserWrite) Reset()

func (*UserWrite) String

func (m *UserWrite) String() string

func (*UserWrite) XXX_DiscardUnknown

func (m *UserWrite) XXX_DiscardUnknown()

func (*UserWrite) XXX_Marshal

func (m *UserWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserWrite) XXX_Merge

func (m *UserWrite) XXX_Merge(src proto.Message)

func (*UserWrite) XXX_Size

func (m *UserWrite) XXX_Size() int

func (*UserWrite) XXX_Unmarshal

func (m *UserWrite) 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) Descriptor() ([]byte, []int)

func (*Versions) GetP2Pversion

func (m *Versions) GetP2Pversion() int32

func (*Versions) GetPeername

func (m *Versions) GetPeername() string

func (*Versions) GetSoftversion

func (m *Versions) GetSoftversion() string

func (*Versions) ProtoMessage

func (*Versions) ProtoMessage()

func (*Versions) Reset

func (m *Versions) Reset()

func (*Versions) String

func (m *Versions) String() string

func (*Versions) XXX_DiscardUnknown

func (m *Versions) XXX_DiscardUnknown()

func (*Versions) XXX_Marshal

func (m *Versions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Versions) XXX_Merge

func (m *Versions) XXX_Merge(src proto.Message)

func (*Versions) XXX_Size

func (m *Versions) XXX_Size() int

func (*Versions) XXX_Unmarshal

func (m *Versions) XXX_Unmarshal(b []byte) error

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"`
}

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

Directories

Path Synopsis
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON.
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL