types

package
v1.66.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: BSD-3-Clause Imports: 41 Imported by: 1,164

Documentation

Overview

Package types 实现了chain33基础结构体、接口、常量等的定义

Index

Constants

View Source
const (
	ShowPrecisionNum int64 = 4      //cli命令显示保留4位
	MaxCoin          int64 = 1e9    // 1e17/1e8
	MaxFloatCharNum  int   = 15     //float64最大可精确表示15个字符的浮点数,小数点占一位,小数点位置不确定,不好确定最大值
	MaxTxSize              = 100000 //100K
	MaxTxGroupSize   int32 = 20
	MaxBlockSize           = 20000000 //20M
	MaxTxsPerBlock         = 100000
	MaxTokenBalance  int64 = 900 * 1e8 * DefaultCoinPrecision //缺省900亿,小数位精度为1e8, 900*1e16 大约为int64最大可表示范围
	DefaultMinFee    int64 = 1e5
)

coin conversation

View Source
const (
	UserKeyX = "user."
	ParaKeyX = "user.p."
	NoneX    = "none"
)

UserKeyX 用户自定义执行器前缀字符串

View Source
const (
	DefaultCoinsExec     = "coins"
	DefaultCoinsSymbol   = "bty"
	DefaultCoinPrecision = int64(1e8)
)

DefaultCoinsSymbol 默认的主币名称

View Source
const (
	BTY                          = "BTY"
	MinerAction                  = "miner"
	AirDropMinIndex       uint32 = 100000000         //通过钱包的seed生成一个空投地址,最小index索引
	AirDropMaxIndex       uint32 = 101000000         //通过钱包的seed生成一个空投地址,最大index索引
	MaxBlockCountPerTime  int64  = 1000              //从数据库中一次性获取block的最大数 1000个
	MaxBlockSizePerTime          = 100 * 1024 * 1024 //从数据库中一次性获取block的最大size100M
	AddBlock              int64  = 1
	DelBlock              int64  = 2
	MainChainName                = "main"
	MaxHeaderCountPerTime int64  = 10000 //从数据库中一次性获取header的最大数 10000个
	AutonomyCfgKey               = "autonomyExec"
)

基本全局常量定义

View Source
const (
	Invalid   = 0
	SECP256K1 = secp256k1.ID
	ED25519   = ed25519.ID
	SM2       = sm2.ID
)

ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> onetimeed25519 ty = 5 -> RingBaseonED25519 ty = 1+offset(1<<8) -> secp256r1 ty = 2+offset(1<<8) -> sm2

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

log type

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
	EventWalletAccountList    = 38
	EventWalletAccount        = 40
	EventWalletExecutor       = 42
	EventStoreDel             = 47
	EventReplyHashes          = 49
	EventTransactionDetails   = 53
	EventBroadcastAddBlock    = 54
	EventGetBlockOverview     = 55
	EventGetAddrOverview      = 56
	EventReplyBlockOverview   = 57
	EventReplyAddrOverview    = 58
	EventGetBlockHash         = 59
	EventBlockHash            = 60
	EventGetLastMempool       = 61
	EventMinerStart           = 63
	EventMinerStop            = 64
	EventWalletTickets        = 65
	EventStoreMemSet          = 66
	EventStoreRollback        = 67
	EventStoreCommit          = 68
	EventCheckBlock           = 69
	//seed
	EventReplyGenSeed = 71
	EventReplyGetSeed = 74
	EventDelBlock     = 75
	//local store
	EventLocalGet                = 76
	EventLocalReplyValue         = 77
	EventLocalList               = 78
	EventLocalSet                = 79
	EventCheckTx                 = 81
	EventReceiptCheckTx          = 82
	EventReplyQuery              = 84
	EventSubscribePush           = 85
	EventFetchBlockHeaders       = 86
	EventAddBlockHeaders         = 87
	EventReplyWalletStatus       = 89
	EventGetLastBlock            = 90
	EventBlock                   = 91
	EventGetTicketCount          = 92
	EventReplyGetTicketCount     = 93
	EventReplyPrivkey            = 95
	EventIsSync                  = 96
	EventReplyIsSync             = 97
	EventCloseTickets            = 98
	EventGetAddrTxs              = 99
	EventReplyAddrTxs            = 100
	EventIsNtpClockSync          = 101
	EventReplyIsNtpClockSync     = 102
	EventDelTxList               = 103
	EventStoreGetTotalCoins      = 104
	EventGetTotalCoinsReply      = 105
	EventQueryTotalFee           = 106
	EventReplySignRawTx          = 108
	EventSyncBlock               = 109
	EventGetNetInfo              = 110
	EventReplyNetInfo            = 111
	EventReplyFatalFailure       = 114
	EventBindMiner               = 115
	EventReplyBindMiner          = 116
	EventDecodeRawTx             = 117
	EventReplyDecodeRawTx        = 118
	EventGetLastBlockSequence    = 119
	EventReplyLastBlockSequence  = 120
	EventGetBlockSequences       = 121
	EventReplyBlockSequences     = 122
	EventGetBlockByHashes        = 123
	EventReplyBlockDetailsBySeqs = 124
	EventDelParaChainBlockDetail = 125
	EventAddParaChainBlockDetail = 126
	EventGetSeqByHash            = 127
	EventLocalPrefixCount        = 128
	EventStoreList               = 130
	EventStoreListReply          = 131
	EventListPushes              = 132
	EventGetPushLastNum          = 133
	EventGetBlockBySeq           = 134

	EventLocalBegin    = 135
	EventLocalCommit   = 136
	EventLocalRollback = 137
	EventLocalNew      = 138
	EventLocalClose    = 139

	//mempool
	EventGetProperFee   = 140
	EventReplyProperFee = 141

	EventReExecBlock  = 142
	EventTxListByHash = 143
	//exec
	EventBlockChainQuery = 212
	EventConsensusQuery  = 213
	EventUpgrade         = 214

	// BlockChain 接收的事件
	EventGetLastBlockMainSequence   = 300
	EventReplyLastBlockMainSequence = 301
	EventGetMainSeqByHash           = 302
	EventReplyMainSeqByHash         = 303
	//其他模块读写blockchain db事件
	EventSetValueByKey = 304
	EventGetValueByKey = 305
	//通过平行链title获取平行链的交易
	EventGetParaTxByTitle   = 306
	EventReplyParaTxByTitle = 307

	//获取拥有此title交易的区块高度
	EventGetHeightByTitle   = 308
	EventReplyHeightByTitle = 309

	//通过区块高度列表+title获取平行链交易
	EventGetParaTxByTitleAndHeight = 310
	//比较当前区块和新广播的区块最优区块
	EventCmpBestBlock       = 311
	EventReplySubscribePush = 312

	// 通知其它节点进行数据归档存储
	EventNotifyStoreChunk = 313
	// 获取chunkBlock数据
	EventGetChunkBlock = 314

	// 添加addChunkBlock
	EventAddChunkBlock = 315
	// 获取chunkBody数据
	EventGetChunkBlockBody = 316
	// 获取ChunkRecord
	EventGetChunkRecord = 317
	// 添加ChunkRecord
	EventAddChunkRecord = 318

	//p2p 其他接收事件
	EventSubTopic       = 350
	EventPubTopicMsg    = 351
	EventFetchTopics    = 352
	EventRemoveTopic    = 353
	EventReceiveSubData = 355
	EventNetProtocols   = 356

	//检测mempool是否存在该交易
	EventCheckTxsExist = 357
	//delete para blocks
	EventDeleteParaBlocks = 358

	//添加延时交易
	EventAddDelayTx = 359

	//添加节点到黑名单
	EventAddBlacklist = 360
	//删除节点中的黑名单
	EventDelBlacklist = 361
	//获取黑名单列表
	EventShowBlacklist = 362

	// 连接指定的节点
	EventDialPeer = 363
	//断开指定的节点
	EventClosePeer = 364

	EventPushBlock       = 365
	EventPushBlockHeader = 366
	EventPushTxReceipt   = 367
	EventPushTxResult    = 368
	EventPushEVM         = 369
)

event

View Source
const MaxHeight = 10000000000000000

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

View Source
const Size1Kshiftlen uint = 10

Size1Kshiftlen tx消息大小1k

Variables

View Source
var (
	AllowUserExec = [][]byte{ExecerNone}
	EmptyValue    = []byte("FFFFFFFFemptyBVBiCj5jvE15pEiwro8TQRGnJSNsJF") //这字符串表示数据库中的空值

)

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

View Source
var (
	UserKey    = []byte(UserKeyX)
	ParaKey    = []byte(ParaKeyX)
	ExecerNone = []byte(NoneX)
)

UserKeyX 用户自定义执行器前缀byte类型

View Source
var (
	ErrSequenceNotMatch        = errors.New("ErrSequenceNotMatch")
	ErrSequenceTooBig          = errors.New("ErrSequenceTooBig")
	ErrTooManySeqCB            = errors.New("ErrTooManySeqCB")
	ErrPushSeqPostData         = errors.New("ErrPushSeqPostData")
	ErrMethodReturnType        = errors.New("ErrMethodReturnType")
	ErrMethodNotFound          = errors.New("ErrMethodNotFound")
	ErrExecBlockNil            = errors.New("ErrExecBlockNil")
	ErrNotAllow                = errors.New("ErrNotAllow")
	ErrCanOnlyDelTopVersion    = errors.New("ErrCanOnlyDelTopVersion")
	ErrPrevVersion             = errors.New("ErrPrevVersion")
	ErrNoExecerInMavlKey       = errors.New("ErrNoExecerInMavlKey")
	ErrMavlKeyNotStartWithMavl = errors.New("ErrMavlKeyNotStartWithMavl")
	ErrNotFound                = errors.New("ErrNotFound")
	ErrBlockExec               = errors.New("ErrBlockExec")
	ErrCheckStateHash          = errors.New("ErrCheckStateHash")
	ErrCheckTxHash             = errors.New("ErrCheckTxHash")
	ErrReRunGenesis            = errors.New("ErrReRunGenesis")
	ErrActionNotSupport        = errors.New("ErrActionNotSupport")
	ErrQueryNotSupport         = errors.New("ErrQueryNotSupport")
	ErrAmount                  = errors.New("ErrAmount")
	ErrMinerIsStared           = errors.New("ErrMinerIsStared")
	ErrMinerNotStared          = errors.New("ErrMinerNotStared")
	ErrMinerNotClosed          = errors.New("ErrMinerNotClosed")
	ErrNoPeer                  = errors.New("ErrNoPeer")
	ErrExecNameNotMatch        = errors.New("ErrExecNameNotMatch")
	ErrChannelClosed           = errors.New("ErrChannelClosed")
	ErrNotMinered              = errors.New("ErrNotMinered")
	ErrFromAddr                = errors.New("ErrFromAddr")
	ErrBlockHeight             = errors.New("ErrBlockHeight")
	ErrBlockTime               = errors.New("ErrBlockTime")
	ErrCoinBaseExecer          = errors.New("ErrCoinBaseExecer")
	ErrCoinBaseTxType          = errors.New("ErrCoinBaseTxType")
	ErrCoinBaseExecErr         = errors.New("ErrCoinBaseExecErr")
	ErrCoinBaseTarget          = errors.New("ErrCoinBaseTarget")
	ErrCoinbaseReward          = errors.New("ErrCoinbaseReward")
	ErrNotAllowDeposit         = errors.New("ErrNotAllowDeposit")
	ErrCoinBaseIndex           = errors.New("ErrCoinBaseIndex")
	ErrCoinBaseTicketStatus    = errors.New("ErrCoinBaseTicketStatus")
	ErrBlockNotFound           = errors.New("ErrBlockNotFound")
	ErrLogType                 = errors.New("ErrLogType")
	ErrNilTransaction          = errors.New("ErrNilTransaction")
	ErrCacheOverFlow           = errors.New("ErrCacheOverFlow")
	ErrInvalidParam            = errors.New("ErrInvalidParam")
	ErrInvalidExpire           = errors.New("ErrInvalidExpire")
	ErrInvalidAddress          = errors.New("ErrInvalidAddress")
	ErrNotInited               = errors.New("ErrNotInited")

	ErrStartBigThanEnd            = errors.New("ErrStartBigThanEnd")
	ErrToAddrNotSameToExecAddr    = errors.New("ErrToAddrNotSameToExecAddr")
	ErrTypeAsset                  = errors.New("ErrTypeAsset")
	ErrEmpty                      = errors.New("ErrEmpty")
	ErrIsClosed                   = errors.New("ErrIsClosed")
	ErrSendSameToRecv             = errors.New("ErrSendSameToRecv")
	ErrExecNameNotAllow           = errors.New("ErrExecNameNotAllow")
	ErrExecNotFound               = errors.New("ErrExecNotFound")
	ErrLocalDBPerfix              = errors.New("ErrLocalDBPerfix")
	ErrBlockHeaderDifficulty      = errors.New("ErrBlockHeaderDifficulty")
	ErrNoTx                       = errors.New("ErrNoTx")
	ErrTxExist                    = errors.New("ErrTxExist")
	ErrManyTx                     = errors.New("ErrManyTx")
	ErrDupTx                      = errors.New("ErrDupTx")
	ErrMemFull                    = errors.New("ErrMemFull")
	ErrNoBalance                  = errors.New("ErrNoBalance")
	ErrBalanceLessThanTenTimesFee = errors.New("ErrBalanceLessThanTenTimesFee")
	ErrTxExpire                   = errors.New("ErrTxExpire")
	ErrHeaderNotSet               = errors.New("ErrHeaderNotSet")
	ErrSign                       = errors.New("ErrSign")
	ErrCertificate                = errors.New("ErrCertificate")
	ErrFeeTooLow                  = errors.New("ErrFeeTooLow")
	ErrEmptyTx                    = errors.New("ErrEmptyTx")
	ErrTxFeeTooLow                = errors.New("ErrTxFeeTooLow")
	ErrTxFeeTooHigh               = errors.New("ErrTxFeeTooHigh")
	ErrTxMsgSizeTooBig            = errors.New("ErrTxMsgSizeTooBig")
	ErrFutureBlock                = errors.New("ErrFutureBlock")
	ErrHashNotFound               = errors.New("ErrHashNotFound")
	ErrTxDup                      = errors.New("ErrTxDup")
	ErrNotSync                    = errors.New("ErrNotSync")
	ErrSize                       = errors.New("ErrSize")

	// ErrHashNotExist BlockChain Error Types
	ErrHashNotExist           = errors.New("ErrHashNotExist")
	ErrHeightNotExist         = errors.New("ErrHeightNotExist")
	ErrTxNotExist             = errors.New("ErrTxNotExist")
	ErrAddrNotExist           = errors.New("ErrAddrNotExist")
	ErrStartHeight            = errors.New("ErrStartHeight")
	ErrEndLessThanStartHeight = errors.New("ErrEndLessThanStartHeight")
	ErrClientNotBindQueue     = errors.New("ErrClientNotBindQueue")
	ErrContinueBack           = errors.New("ErrContinueBack")
	ErrUnmarshal              = errors.New("ErrUnmarshal")
	ErrMarshal                = errors.New("ErrMarshal")
	ErrBlockExist             = errors.New("ErrBlockExist")
	ErrParentBlockNoExist     = errors.New("ErrParentBlockNoExist")
	ErrBlockHeightNoMatch     = errors.New("ErrBlockHeightNoEqual")
	ErrParentTdNoExist        = errors.New("ErrParentTdNoExist")
	ErrBlockHashNoMatch       = errors.New("ErrBlockHashNoMatch")
	ErrDecode                 = errors.New("ErrDecode")
	ErrNotRollBack            = errors.New("ErrNotRollBack")
	ErrPeerInfoIsNil          = errors.New("ErrPeerInfoIsNil")
	//ErrWalletIsLocked wallet
	ErrWalletIsLocked       = errors.New("ErrWalletIsLocked")
	ErrSaveSeedFirst        = errors.New("ErrSaveSeedFirst")
	ErrUnLockFirst          = errors.New("ErrUnLockFirst")
	ErrLabelHasUsed         = errors.New("ErrLabelHasUsed")
	ErrPrivkeyExist         = errors.New("ErrPrivkeyExist")
	ErrPrivkey              = errors.New("ErrPrivkey")
	ErrInsufficientBalance  = errors.New("ErrInsufficientBalance")
	ErrInsufficientTokenBal = errors.New("ErrInsufficientTokenBalance")
	ErrInsuffSellOrder      = errors.New("ErrInsufficientSellOrder2buy")
	ErrVerifyOldpasswdFail  = errors.New("ErrVerifyOldpasswdFail")
	ErrInputPassword        = errors.New("ErrInputPassword")
	ErrSeedlang             = errors.New("ErrSeedlang")
	ErrSeedNotExist         = errors.New("ErrSeedNotExist")
	ErrSubPubKeyVerifyFail  = errors.New("ErrSubPubKeyVerifyFail")
	ErrLabelNotExist        = errors.New("ErrLabelNotExist")
	ErrAccountNotExist      = errors.New("ErrAccountNotExist")
	ErrSeedExist            = errors.New("ErrSeedExist")
	ErrNotSupport           = errors.New("ErrNotSupport")
	ErrSeedWordNum          = errors.New("ErrSeedWordNum")
	ErrPubKeyLen            = errors.New("ErrPublicKeyLen")
	ErrPrivateKeyLen        = errors.New("ErrPrivateKeyLen")
	ErrSeedWord             = errors.New("ErrSeedWord")
	ErrNoPrivKeyOrAddr      = errors.New("ErrNoPrivKeyOrAddr")
	ErrNewWalletFromSeed    = errors.New("ErrNewWalletFromSeed")
	ErrNewKeyPair           = errors.New("ErrNewKeyPair")
	ErrPrivkeyToPub         = errors.New("ErrPrivkeyToPub")

	ErrOnlyTicketUnLocked = errors.New("ErrOnlyTicketUnLocked")
	ErrNewCrypto          = errors.New("ErrNewCrypto")
	ErrFromHex            = errors.New("ErrFromHex")
	ErrPrivKeyFromBytes   = errors.New("ErrFromHex")
	ErrParentHash         = errors.New("ErrParentHash")
	ErrInvalidPassWord    = errors.New("ErrInvalidPassWord")
	//ErrPing p2p模块错误类型
	ErrPing       = errors.New("ErrPingSignature")
	ErrVersion    = errors.New("ErrVersionNoSupport")
	ErrStreamPing = errors.New("ErrStreamPing")
	ErrPeerStop   = errors.New("ErrPeerStop")
	ErrP2PChannel = errors.New("ErrIllegalP2PChannel")

	ErrBlockSize                  = errors.New("ErrBlockSize")
	ErrTxGroupIndex               = errors.New("ErrTxGroupIndex")
	ErrTxGroupFormat              = errors.New("ErrTxGroupFormat")
	ErrTxGroupCountLessThanTwo    = errors.New("ErrTxGroupCountLessThanTwo")
	ErrTxGroupHeader              = errors.New("ErrTxGroupHeader")
	ErrTxGroupNext                = errors.New("ErrTxGroupNext")
	ErrTxGroupCountBigThanMaxSize = errors.New("ErrTxGroupCountBigThanMaxSize")
	ErrTxGroupEmpty               = errors.New("ErrTxGroupEmpty")
	ErrTxGroupCount               = errors.New("ErrTxGroupCount")
	ErrTxGroupFeeNotZero          = errors.New("ErrTxGroupFeeNotZero")
	ErrNomalTx                    = errors.New("ErrNomalTx")
	ErrUnknowDriver               = errors.New("ErrUnknowDriver")
	ErrUnRegistedDriver           = errors.New("ErrUnRegistedDriver")
	ErrSymbolNameNotAllow         = errors.New("ErrSymbolNameNotAllow")
	ErrTxGroupNotSupport          = errors.New("ErrTxGroupNotSupport")
	ErrNotAllowKey                = errors.New("ErrNotAllowKey")
	ErrNotAllowMemSetKey          = errors.New("ErrNotAllowMemSetKey")
	ErrNotAllowMemSetLocalKey     = errors.New("ErrNotAllowMemSetLocalKey")
	ErrDataBaseDamage             = errors.New("ErrDataBaseDamage")
	ErrGetStateDB                 = errors.New("ErrGetStateDB")
	ErrIndex                      = errors.New("ErrIndex")
	ErrTxGroupParaCount           = errors.New("ErrTxGroupParaCount")
	ErrTxGroupParaMainMixed       = errors.New("ErrTxGroupParaMainMixed")

	//ErrInvalidMainnetRPCAddr rpc模块的错误类型
	ErrInvalidMainnetRPCAddr = errors.New("ErrInvalidMainnetRPCAddr")

	ErrDBFlag      = errors.New("ErrDBFlag")
	ErrLocalPrefix = errors.New("ErrLocalPrefix")
	ErrLocalKeyLen = errors.New("ErrLocalKeyLen")
	//ErrNotSetInTransaction 必须set 在 事务 中
	ErrNotSetInTransaction = errors.New("can not set kvs not in transaction")
	ErrLocalDBTxDupOpen    = errors.New("ErrLocalDBTxDupOpen")

	ErrCloneForkFrom      = errors.New("ErrCloneForkFrom")
	ErrCloneForkToExist   = errors.New("ErrCloneForkToExist")
	ErrQueryThistIsNotSet = errors.New("ErrQueryThistIsNotSet")

	ErrHeightLessZero      = errors.New("ErrHeightLessZero")
	ErrHeightOverflow      = errors.New("ErrHeightOverflow")
	ErrRecordBlockSequence = errors.New("ErrRecordBlockSequence")
	ErrExecPanic           = errors.New("ErrExecPanic")

	ErrDisableWrite = errors.New("ErrDisableWrite")
	ErrDisableRead  = errors.New("ErrDisableRead")

	ErrConsensusHashErr   = errors.New("ErrConsensusHashErr")
	ErrMaxCountPerTime    = errors.New("ErrMaxCountPerTime")
	ErrInValidFileHeader  = errors.New("ErrInValidFileHeader")
	ErrFileExists         = errors.New("ErrFileExists")
	ErrSubscriberExist    = errors.New("ErrSubscriberExist")
	ErrTooManySubscriber  = errors.New("ErrTooManySubscriber")
	ErrPushNotSupport     = errors.New("ErrPushNotSupport")
	ErrNotAllowModifyPush = errors.New("ErrNotAllowModifyPush")
	ErrTxReceiptReduced   = errors.New("ErrTxReceiptReduced")
	ErrPushNotSubscribed  = errors.New("ErrPushNotSubscribed")
	ErrTxChainID          = errors.New("ErrTxChainID")
	ErrTimeout            = errors.New("ErrTimeout")
)

chain33定义的错误类型

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:")
	TxFeeAddrDirHash       = []byte("TxFeeAddrDirHash:")
	AddrTxsCount           = []byte("AddrTxsCount:")
	ConsensusParaTxsPrefix = []byte("LODBP:Consensus:Para:")            //存贮para共识模块从主链拉取的平行链交易
	FlagReduceLocaldb      = []byte("FLAG:ReduceLocaldb")               // 精简版localdb标记
	ReduceLocaldbHeight    = append(FlagReduceLocaldb, []byte(":H")...) // 精简版localdb高度
)

定义key值

View Source
var ConfigPrefix = "mavl-config-"

ConfigPrefix 配置前缀key

View Source
var Debug = false

Debug 调试开关

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

ExpireBound 交易过期边界值

View Source
var File_account_proto protoreflect.FileDescriptor
View Source
var File_blockchain_proto protoreflect.FileDescriptor
View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_evm_event_proto protoreflect.FileDescriptor
View Source
var File_executor_proto protoreflect.FileDescriptor
View Source
var File_p2pnext_proto protoreflect.FileDescriptor
View Source
var File_push_tx_receipt_proto protoreflect.FileDescriptor
View Source
var File_statistic_proto protoreflect.FileDescriptor
View Source
var File_transaction_proto protoreflect.FileDescriptor
View Source
var File_wallet_proto protoreflect.FileDescriptor
View Source
var HighAllowPackHeight int64 = 600

HighAllowPackHeight txHeight打包上限高度 eg: currentHeight = 10000 某交易的expire=TxHeightFlag+ currentHeight + 10, 则TxHeight=10010 打包的区块高度必须满足, Height >= TxHeight - LowAllowPackHeight && Height <= TxHeight + HighAllowPackHeight 那么交易可以打包的范围是: 10010 - 100 = 9910 , 10010 + 200 = 10210 (9910,10210) 注意,这两个条件必须同时满足. 关于交易查重: 也就是说,两笔相同的交易必然有相同的expire,即TxHeight相同,以及对应的打包区间一致,只能被打包在这个区间(9910,10210)。 那么检查交易重复的时候,我只要检查 9910 - currentHeight 这个区间的交易是否有重复

View Source
var LowAllowPackHeight int64 = 200

LowAllowPackHeight 允许打包的low区块高度

View Source
var ManagePrefix = "mavl-"

ManagePrefix 超级管理员账户配置前缀key

View Source
var MaxAllowPackInterval int64 = 5000

MaxAllowPackInterval 允许打包的最大区间值

View Source
var NtpHosts = []string{
	"ntp.aliyun.com:123",
	"time1.cloud.tencent.com:123",
	"time.ustc.edu.cn:123",
	"cn.ntp.org.cn:123",
	"time.apple.com:123",
}

NtpHosts ntp hosts

View Source
var QueryFunc = NewQueryData("Query_")

QueryFunc support query

SystemLog 系统log日志

View Source
var TxHeightFlag int64 = 1 << 62

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

Functions

func AssertConfig

func AssertConfig(check interface{})

AssertConfig ...

func BuildQueryType

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

BuildQueryType 构建查询方法

func Bytes2Str added in v1.65.0

func Bytes2Str(b []byte) string

Bytes2Str 高效字节数组转字符串 相比普通直接转化,性能提升35倍,提升程度和转换的byte长度线性相关,且不存在内存开销 需要注意b的修改会导致最终string的变更,比较适合临时变量转换,不适合

func CalcAddrTxsCountKey

func CalcAddrTxsCountKey(addr string) []byte

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

func CalcConsensusParaTxsKey

func CalcConsensusParaTxsKey(key []byte) []byte

CalcConsensusParaTxsKey 平行链localdb中保存的平行链title对应的交易

func CalcLocalPrefix

func CalcLocalPrefix(execer []byte) []byte

CalcLocalPrefix 计算localdb key

func CalcRollbackKey

func CalcRollbackKey(execer []byte, hash []byte) []byte

CalcRollbackKey 计算回滚的key

func CalcStatePrefix

func CalcStatePrefix(execer []byte) []byte

CalcStatePrefix 计算localdb key

func CalcTxAddrDirHashKey

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

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

func CalcTxAddrHashKey

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

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

func CalcTxFeeAddrDirHashKey added in v1.65.3

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

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

func CalcTxShortHash

func CalcTxShortHash(hash []byte) string

CalcTxShortHash 取txhash的前指定字节,目前默认5

func CalcTxShortKey

func CalcTxShortKey(hash []byte) []byte

CalcTxShortKey local db中保存交易的方法

func CallCreateTx

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

CallCreateTx 构造交易信息

func CallCreateTxJSON

func CallCreateTxJSON(c *Chain33Config, execName, action string, param json.RawMessage) ([]byte, error)

CallCreateTxJSON create tx by json

func CallExecNewTx

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

CallExecNewTx 重构完成后删除

func CheckAmount

func CheckAmount(amount, coinPrecision int64) bool

CheckAmount 检测转账金额

func CheckConsensusParaTxsKey

func CheckConsensusParaTxsKey(key []byte) bool

CheckConsensusParaTxsKey 检测para共识模块需要操作的平行链交易的key值

func CheckSign

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

CheckSign 检测签名

func Clone

func Clone(data proto.Message) proto.Message

Clone 克隆

func ConfigKey

func ConfigKey(key string) string

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

func Decode

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

Decode 解码

func DecodeLog

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

DecodeLog 解析log信息

func Encode

func Encode(data proto.Message) []byte

Encode encode msg

func EncodeWithBuffer added in v1.65.3

func EncodeWithBuffer(data proto.Message, buf *proto.Buffer) []byte

EncodeWithBuffer encode with input buffer

func FindExecer

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

FindExecer 查找执行器

func FlatConfig

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

FlatConfig Flat配置

func FormatAmount2FixPrecisionDisplay added in v1.65.3

func FormatAmount2FixPrecisionDisplay(amount, coinPrecision int64) string

FormatAmount2FixPrecisionDisplay 将传输、计算的amount值按配置精度格式化成浮点显示值,不设缺省精度

func FormatAmount2FloatDisplay added in v1.65.3

func FormatAmount2FloatDisplay(amount, coinPrecision int64, round bool) string

FormatAmount2FloatDisplay 将传输、计算的amount值按精度格式化成浮点显示值,支持精度可配置 strconv.FormatFloat(float64(amount/types.Int1E4)/types.Float1E4, 'f', 4, 64) 的方法在amount很大的时候会丢失精度 比如在9001234567812345678时候,float64 最大精度只能在900123456781234的大小,decimal处理可以完整保持精度 在coinPrecision支持可配时候,对不同精度统一处理,而不是限定在1e4 round:是否需要对小数后四位值圆整,以912345678为例,912345678/1e8=9.1235, 非圆整例子:(912345678/1e4)/float(1e4)

func FormatFloatDisplay2Value added in v1.65.3

func FormatFloatDisplay2Value(amount float64, coinPrecision int64) (int64, error)

FormatFloatDisplay2Value 将显示、输入的float amount值按精度格式化成计算值,小数点后精度只保留4位 浮点数算上浮点能精确表达最大16位长的数字(1234567.12345678),考虑到16个9会被表示为1e16,这里限制最多15个字符 本函数然后小数位只精确到4位,后面补0

func FormatTxEncode

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

FormatTxEncode 对交易信息编码成byte类型

func FreeTx added in v1.65.3

func FreeTx(txs ...*Transaction)

FreeTx free tx object

func GetActionValue

func GetActionValue(action interface{}, funclist map[string]reflect.Method) (vname string, vty int32, v reflect.Value, err error)

GetActionValue 获取执行器的action value

func GetDefaultCfgstring

func GetDefaultCfgstring() string

GetDefaultCfgstring ...

func GetEventName

func GetEventName(event int) string

GetEventName 获取时间name通过事件id

func GetExecKey

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

GetExecKey 获取执行器key

func GetExecName added in v1.65.3

func GetExecName(exec, paraName string) string

GetExecName 根据paraName 获取exec name

func GetLocalDBKeyList

func GetLocalDBKeyList() [][]byte

GetLocalDBKeyList 获取localdb的key列表

func GetLogName

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

GetLogName 通过反射,解析日志

func GetParaExecName

func GetParaExecName(execer []byte) []byte

GetParaExecName 获取平行链上的执行器

func GetParaExecTitleName

func GetParaExecTitleName(exec string) (string, bool)

GetParaExecTitleName 如果是平行链执行器,获取对应title

func GetRealExecName

func GetRealExecName(execer []byte) []byte

GetRealExecName 获取真实的执行器name

func GetSignName

func GetSignName(execer string, signType int) string

GetSignName 获取签名类型

func GetSignType

func GetSignType(execer string, name string) int

GetSignType 获取签名类型

func GetTxHeight

func GetTxHeight(cfg *Chain33Config, valid int64, height int64) int64

GetTxHeight 获取交易高度

func GetTxTimeInterval

func GetTxTimeInterval() time.Duration

GetTxTimeInterval 获取交易有效期

func InitCfg

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

InitCfg 初始化配置

func InitCfgString

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

InitCfgString 初始化配置

func IsAllowExecName

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

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

func IsAssetsTransfer

func IsAssetsTransfer(payload interface{}) bool

IsAssetsTransfer 是否是资产转移相关的交易

func IsNil

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

IsNil 判断所有的空值

func IsNilP

func IsNilP(a interface{}) bool

IsNilP 空指针或者接口

func IsOK

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

IsOK 是否存在

func IsParaExecName

func IsParaExecName(exec string) bool

IsParaExecName 是否平行链执行器

func IsSpecificParaExecName

func IsSpecificParaExecName(title, exec string) bool

IsSpecificParaExecName 是否是某一个平行链的执行器

func JSONToPB

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

JSONToPB JSON格式转换成protobuffer格式

func JSONToPBUTF8

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

JSONToPBUTF8 默认解码utf8的字符串成bytes

func ListActionMethod

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

ListActionMethod list action的所有的方法

func ListMethod

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

ListMethod list Method

func ListMethodByType

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

ListMethodByType list Method 通过type类型

func ListType

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

ListType list type

func ManageKey

func ManageKey(key string) string

ManageKey 超级管理员账户key

func MergeCfg

func MergeCfg(cfgstring, cfgdefault string) string

MergeCfg ...

func MergeConfig

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

MergeConfig Merge配置

func ModifySubConfig

func ModifySubConfig(sub []byte, key string, value interface{}) ([]byte, error)

ModifySubConfig json data modify

func MustDecode

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

MustDecode 数据是否已经编码

func MustPBToJSON

func MustPBToJSON(req Message) []byte

MustPBToJSON panic when error

func Now

func Now() time.Time

Now 获取当前时间戳

func PBToJSON

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

PBToJSON 消息类型转换

func PBToJSONUTF8

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

PBToJSONUTF8 消息类型转换

func ParseExpire

func ParseExpire(expire string) (int64, error)

ParseExpire parse expire to int from during or height

func ReadFile

func ReadFile(path string) string

ReadFile ...

func RegExec

func RegExec(name string, create Create)

RegExec ...

func RegExecInit

func RegExecInit(cfg *Chain33Config)

RegExecInit ...

func RegFork

func RegFork(name string, create Create)

RegFork Reg 注册每个模块的自动初始化函数

func RegForkInit

func RegForkInit(cfg *Chain33Config)

RegForkInit ...

func RegisterChain33Server

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

func RegisterP2PgserviceServer

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

func RegistorExecutor

func RegistorExecutor(exec string, util ExecutorType)

RegistorExecutor 注册执行器

func SetCliSysParam

func SetCliSysParam(title string, cfg *Chain33Config)

SetCliSysParam ...

func SetTimeDelta

func SetTimeDelta(dt int64)

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

func Since

func Since(t time.Time) time.Duration

Since Since时间

func Size

func Size(data proto.Message) int

Size 消息大小

func StatisticFlag

func StatisticFlag() []byte

StatisticFlag 用于记录统计的key

func Str2Bytes added in v1.65.0

func Str2Bytes(s string) []byte

Str2Bytes 高效字符串转字节数组 相比普通直接转化,性能提升13倍, 提升程度和转换的byte长度线性相关,且不存在内存开销 需要注意不能修改转换后的byte数组,本质上是修改了底层string,将会panic

func TotalFeeKey

func TotalFeeKey(hash []byte) []byte

TotalFeeKey 统计所有费用的key

func TxCacheSet

func TxCacheSet(tx *Transaction, txc *TransactionCache)

TxCacheSet 设置 cache

func VerifySignature added in v1.65.1

func VerifySignature(cfg *Chain33Config, block *Block, txs []*Transaction) bool

VerifySignature 验证区块和交易的签名,支持指定需要验证的交易

Types

type Account

type Account struct {

	// coins标识,目前只有0 一个值
	Currency int32 `protobuf:"varint,1,opt,name=currency,proto3" json:"currency,omitempty"`
	//账户可用余额
	Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	//账户冻结余额
	Frozen int64 `protobuf:"varint,3,opt,name=frozen,proto3" json:"frozen,omitempty"`
	//账户的地址
	Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

Account 的信息

func CloneAccount added in v1.65.3

func CloneAccount(acc *Account) *Account

CloneAccount copy account

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAddr

func (x *Account) GetAddr() string

func (*Account) GetBalance

func (x *Account) GetBalance() int64

func (*Account) GetCurrency

func (x *Account) GetCurrency() int32

func (*Account) GetFrozen

func (x *Account) GetFrozen() int64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect added in v1.65.3

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountInfo added in v1.65.3

type AccountInfo struct {

	//账户地址
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//账户私钥
	PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	//账户公钥
	PubKey string `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	//账户助记词
	Seed string `protobuf:"bytes,4,opt,name=seed,proto3" json:"seed,omitempty"`
	// contains filtered or unexported fields
}

AccountInfo account 的信息

func (*AccountInfo) Descriptor deprecated added in v1.65.3

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

Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.

func (*AccountInfo) GetAddr added in v1.65.3

func (x *AccountInfo) GetAddr() string

func (*AccountInfo) GetPrivateKey added in v1.65.3

func (x *AccountInfo) GetPrivateKey() string

func (*AccountInfo) GetPubKey added in v1.65.3

func (x *AccountInfo) GetPubKey() string

func (*AccountInfo) GetSeed added in v1.65.3

func (x *AccountInfo) GetSeed() string

func (*AccountInfo) ProtoMessage added in v1.65.3

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) ProtoReflect added in v1.65.3

func (x *AccountInfo) ProtoReflect() protoreflect.Message

func (*AccountInfo) Reset added in v1.65.3

func (x *AccountInfo) Reset()

func (*AccountInfo) String added in v1.65.3

func (x *AccountInfo) String() string

type Accounts

type Accounts struct {
	Acc []*Account `protobuf:"bytes,1,rep,name=acc,proto3" json:"acc,omitempty"`
	// contains filtered or unexported fields
}

Account 的列表

func (*Accounts) Descriptor deprecated

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

Deprecated: Use Accounts.ProtoReflect.Descriptor instead.

func (*Accounts) GetAcc

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

func (*Accounts) ProtoMessage

func (*Accounts) ProtoMessage()

func (*Accounts) ProtoReflect added in v1.65.3

func (x *Accounts) ProtoReflect() protoreflect.Message

func (*Accounts) Reset

func (x *Accounts) Reset()

func (*Accounts) String

func (x *Accounts) String() string

type AddrOverview

type AddrOverview struct {
	Reciver int64 `protobuf:"varint,1,opt,name=reciver,proto3" json:"reciver,omitempty"`
	Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	TxCount int64 `protobuf:"varint,3,opt,name=txCount,proto3" json:"txCount,omitempty"`
	// contains filtered or unexported fields
}

func (*AddrOverview) Descriptor deprecated

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

Deprecated: Use AddrOverview.ProtoReflect.Descriptor instead.

func (*AddrOverview) GetBalance

func (x *AddrOverview) GetBalance() int64

func (*AddrOverview) GetReciver

func (x *AddrOverview) GetReciver() int64

func (*AddrOverview) GetTxCount

func (x *AddrOverview) GetTxCount() int64

func (*AddrOverview) ProtoMessage

func (*AddrOverview) ProtoMessage()

func (*AddrOverview) ProtoReflect added in v1.65.3

func (x *AddrOverview) ProtoReflect() protoreflect.Message

func (*AddrOverview) Reset

func (x *AddrOverview) Reset()

func (*AddrOverview) String

func (x *AddrOverview) String() string

type AddrTxFeeInfo added in v1.65.3

type AddrTxFeeInfo struct {
	FromAddr string `protobuf:"bytes,1,opt,name=fromAddr,proto3" json:"fromAddr,omitempty"`
	ToAddr   string `protobuf:"bytes,2,opt,name=toAddr,proto3" json:"toAddr,omitempty"`
	TxHash   string `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
	Exec     string `protobuf:"bytes,4,opt,name=exec,proto3" json:"exec,omitempty"`
	Fee      int64  `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
	Height   int64  `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	Index    int64  `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"`
	TxStatus int32  `protobuf:"varint,8,opt,name=txStatus,proto3" json:"txStatus,omitempty"`
	// contains filtered or unexported fields
}

根据Addr查询和此Addr相关的交易费交易记录

func (*AddrTxFeeInfo) Descriptor deprecated added in v1.65.3

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

Deprecated: Use AddrTxFeeInfo.ProtoReflect.Descriptor instead.

func (*AddrTxFeeInfo) GetExec added in v1.65.3

func (x *AddrTxFeeInfo) GetExec() string

func (*AddrTxFeeInfo) GetFee added in v1.65.3

func (x *AddrTxFeeInfo) GetFee() int64

func (*AddrTxFeeInfo) GetFromAddr added in v1.65.3

func (x *AddrTxFeeInfo) GetFromAddr() string

func (*AddrTxFeeInfo) GetHeight added in v1.65.3

func (x *AddrTxFeeInfo) GetHeight() int64

func (*AddrTxFeeInfo) GetIndex added in v1.65.3

func (x *AddrTxFeeInfo) GetIndex() int64

func (*AddrTxFeeInfo) GetToAddr added in v1.65.3

func (x *AddrTxFeeInfo) GetToAddr() string

func (*AddrTxFeeInfo) GetTxHash added in v1.65.3

func (x *AddrTxFeeInfo) GetTxHash() string

func (*AddrTxFeeInfo) GetTxStatus added in v1.65.3

func (x *AddrTxFeeInfo) GetTxStatus() int32

func (*AddrTxFeeInfo) ProtoMessage added in v1.65.3

func (*AddrTxFeeInfo) ProtoMessage()

func (*AddrTxFeeInfo) ProtoReflect added in v1.65.3

func (x *AddrTxFeeInfo) ProtoReflect() protoreflect.Message

func (*AddrTxFeeInfo) Reset added in v1.65.3

func (x *AddrTxFeeInfo) Reset()

func (*AddrTxFeeInfo) String added in v1.65.3

func (x *AddrTxFeeInfo) String() string

type AddrTxFeeInfos added in v1.65.3

type AddrTxFeeInfos struct {
	TxInfos []*AddrTxFeeInfo `protobuf:"bytes,1,rep,name=txInfos,proto3" json:"txInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*AddrTxFeeInfos) Descriptor deprecated added in v1.65.3

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

Deprecated: Use AddrTxFeeInfos.ProtoReflect.Descriptor instead.

func (*AddrTxFeeInfos) GetTxInfos added in v1.65.3

func (x *AddrTxFeeInfos) GetTxInfos() []*AddrTxFeeInfo

func (*AddrTxFeeInfos) ProtoMessage added in v1.65.3

func (*AddrTxFeeInfos) ProtoMessage()

func (*AddrTxFeeInfos) ProtoReflect added in v1.65.3

func (x *AddrTxFeeInfos) ProtoReflect() protoreflect.Message

func (*AddrTxFeeInfos) Reset added in v1.65.3

func (x *AddrTxFeeInfos) Reset()

func (*AddrTxFeeInfos) String added in v1.65.3

func (x *AddrTxFeeInfos) String() string

type AllExecBalance

type AllExecBalance struct {
	Addr        string         `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	ExecAccount []*ExecAccount `protobuf:"bytes,2,rep,name=ExecAccount,proto3" json:"ExecAccount,omitempty"`
	// contains filtered or unexported fields
}

func (*AllExecBalance) Descriptor deprecated

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

Deprecated: Use AllExecBalance.ProtoReflect.Descriptor instead.

func (*AllExecBalance) GetAddr

func (x *AllExecBalance) GetAddr() string

func (*AllExecBalance) GetExecAccount

func (x *AllExecBalance) GetExecAccount() []*ExecAccount

func (*AllExecBalance) ProtoMessage

func (*AllExecBalance) ProtoMessage()

func (*AllExecBalance) ProtoReflect added in v1.65.3

func (x *AllExecBalance) ProtoReflect() protoreflect.Message

func (*AllExecBalance) Reset

func (x *AllExecBalance) Reset()

func (*AllExecBalance) String

func (x *AllExecBalance) String() string

type Amounter

type Amounter interface {
	GetAmount() int64
}

Amounter 转账金额

type ArrayConfig

type ArrayConfig struct {
	Value []string `protobuf:"bytes,3,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

配置修改部分

func (*ArrayConfig) Descriptor deprecated

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

Deprecated: Use ArrayConfig.ProtoReflect.Descriptor instead.

func (*ArrayConfig) GetValue

func (x *ArrayConfig) GetValue() []string

func (*ArrayConfig) ProtoMessage

func (*ArrayConfig) ProtoMessage()

func (*ArrayConfig) ProtoReflect added in v1.65.3

func (x *ArrayConfig) ProtoReflect() protoreflect.Message

func (*ArrayConfig) Reset

func (x *ArrayConfig) Reset()

func (*ArrayConfig) String

func (x *ArrayConfig) String() string

type Asset

type Asset struct {
	Exec   string `protobuf:"bytes,1,opt,name=exec,proto3" json:"exec,omitempty"`
	Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Amount int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Asset) Descriptor deprecated

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetAmount

func (x *Asset) GetAmount() int64

func (*Asset) GetExec

func (x *Asset) GetExec() string

func (*Asset) GetSymbol

func (x *Asset) GetSymbol() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect added in v1.65.3

func (x *Asset) ProtoReflect() protoreflect.Message

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type AssetsGenesis

type AssetsGenesis struct {
	Amount        int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	// contains filtered or unexported fields
}

assert transfer struct

func (*AssetsGenesis) Descriptor deprecated

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

Deprecated: Use AssetsGenesis.ProtoReflect.Descriptor instead.

func (*AssetsGenesis) GetAmount

func (x *AssetsGenesis) GetAmount() int64

func (*AssetsGenesis) GetReturnAddress

func (x *AssetsGenesis) GetReturnAddress() string

func (*AssetsGenesis) ProtoMessage

func (*AssetsGenesis) ProtoMessage()

func (*AssetsGenesis) ProtoReflect added in v1.65.3

func (x *AssetsGenesis) ProtoReflect() protoreflect.Message

func (*AssetsGenesis) Reset

func (x *AssetsGenesis) Reset()

func (*AssetsGenesis) String

func (x *AssetsGenesis) String() string

type AssetsTransfer

type AssetsTransfer struct {
	Cointoken string `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
	Amount    int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Note      []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	To        string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetsTransfer) Descriptor deprecated

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

Deprecated: Use AssetsTransfer.ProtoReflect.Descriptor instead.

func (*AssetsTransfer) GetAmount

func (x *AssetsTransfer) GetAmount() int64

func (*AssetsTransfer) GetCointoken

func (x *AssetsTransfer) GetCointoken() string

func (*AssetsTransfer) GetNote

func (x *AssetsTransfer) GetNote() []byte

func (*AssetsTransfer) GetTo

func (x *AssetsTransfer) GetTo() string

func (*AssetsTransfer) ProtoMessage

func (*AssetsTransfer) ProtoMessage()

func (*AssetsTransfer) ProtoReflect added in v1.65.3

func (x *AssetsTransfer) ProtoReflect() protoreflect.Message

func (*AssetsTransfer) Reset

func (x *AssetsTransfer) Reset()

func (*AssetsTransfer) String

func (x *AssetsTransfer) String() string

type AssetsTransferToExec

type AssetsTransferToExec struct {
	Cointoken string `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
	Amount    int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Note      []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	ExecName  string `protobuf:"bytes,4,opt,name=execName,proto3" json:"execName,omitempty"`
	To        string `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetsTransferToExec) Descriptor deprecated

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

Deprecated: Use AssetsTransferToExec.ProtoReflect.Descriptor instead.

func (*AssetsTransferToExec) GetAmount

func (x *AssetsTransferToExec) GetAmount() int64

func (*AssetsTransferToExec) GetCointoken

func (x *AssetsTransferToExec) GetCointoken() string

func (*AssetsTransferToExec) GetExecName

func (x *AssetsTransferToExec) GetExecName() string

func (*AssetsTransferToExec) GetNote

func (x *AssetsTransferToExec) GetNote() []byte

func (*AssetsTransferToExec) GetTo

func (x *AssetsTransferToExec) GetTo() string

func (*AssetsTransferToExec) ProtoMessage

func (*AssetsTransferToExec) ProtoMessage()

func (*AssetsTransferToExec) ProtoReflect added in v1.65.3

func (x *AssetsTransferToExec) ProtoReflect() protoreflect.Message

func (*AssetsTransferToExec) Reset

func (x *AssetsTransferToExec) Reset()

func (*AssetsTransferToExec) String

func (x *AssetsTransferToExec) String() string

type AssetsWithdraw

type AssetsWithdraw struct {
	Cointoken string `protobuf:"bytes,1,opt,name=cointoken,proto3" json:"cointoken,omitempty"`
	Amount    int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Note      []byte `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	ExecName  string `protobuf:"bytes,4,opt,name=execName,proto3" json:"execName,omitempty"`
	To        string `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetsWithdraw) Descriptor deprecated

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

Deprecated: Use AssetsWithdraw.ProtoReflect.Descriptor instead.

func (*AssetsWithdraw) GetAmount

func (x *AssetsWithdraw) GetAmount() int64

func (*AssetsWithdraw) GetCointoken

func (x *AssetsWithdraw) GetCointoken() string

func (*AssetsWithdraw) GetExecName

func (x *AssetsWithdraw) GetExecName() string

func (*AssetsWithdraw) GetNote

func (x *AssetsWithdraw) GetNote() []byte

func (*AssetsWithdraw) GetTo

func (x *AssetsWithdraw) GetTo() string

func (*AssetsWithdraw) ProtoMessage

func (*AssetsWithdraw) ProtoMessage()

func (*AssetsWithdraw) ProtoReflect added in v1.65.3

func (x *AssetsWithdraw) ProtoReflect() protoreflect.Message

func (*AssetsWithdraw) Reset

func (x *AssetsWithdraw) Reset()

func (*AssetsWithdraw) String

func (x *AssetsWithdraw) String() string

type BlackInfo added in v1.65.3

type BlackInfo struct {

	//节点名称,pid
	PeerName string `protobuf:"bytes,1,opt,name=peerName,proto3" json:"peerName,omitempty"`
	// 节点的IP地址
	RemoteAddr string `protobuf:"bytes,2,opt,name=remoteAddr,proto3" json:"remoteAddr,omitempty"`
	//生命周期,剩余解除的时间
	Lifetime int64 `protobuf:"varint,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
	// contains filtered or unexported fields
}

func (*BlackInfo) Descriptor deprecated added in v1.65.3

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

Deprecated: Use BlackInfo.ProtoReflect.Descriptor instead.

func (*BlackInfo) GetLifetime added in v1.65.3

func (x *BlackInfo) GetLifetime() int64

func (*BlackInfo) GetPeerName added in v1.65.3

func (x *BlackInfo) GetPeerName() string

func (*BlackInfo) GetRemoteAddr added in v1.65.3

func (x *BlackInfo) GetRemoteAddr() string

func (*BlackInfo) ProtoMessage added in v1.65.3

func (*BlackInfo) ProtoMessage()

func (*BlackInfo) ProtoReflect added in v1.65.3

func (x *BlackInfo) ProtoReflect() protoreflect.Message

func (*BlackInfo) Reset added in v1.65.3

func (x *BlackInfo) Reset()

func (*BlackInfo) String added in v1.65.3

func (x *BlackInfo) String() string

type BlackPeer added in v1.65.3

type BlackPeer struct {
	PeerAddr string `protobuf:"bytes,1,opt,name=peerAddr,proto3" json:"peerAddr,omitempty"`
	PeerName string `protobuf:"bytes,2,opt,name=peerName,proto3" json:"peerName,omitempty"`
	Lifetime string `protobuf:"bytes,3,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
	// contains filtered or unexported fields
}

func (*BlackPeer) Descriptor deprecated added in v1.65.3

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

Deprecated: Use BlackPeer.ProtoReflect.Descriptor instead.

func (*BlackPeer) GetLifetime added in v1.65.3

func (x *BlackPeer) GetLifetime() string

func (*BlackPeer) GetPeerAddr added in v1.65.3

func (x *BlackPeer) GetPeerAddr() string

func (*BlackPeer) GetPeerName added in v1.65.3

func (x *BlackPeer) GetPeerName() string

func (*BlackPeer) ProtoMessage added in v1.65.3

func (*BlackPeer) ProtoMessage()

func (*BlackPeer) ProtoReflect added in v1.65.3

func (x *BlackPeer) ProtoReflect() protoreflect.Message

func (*BlackPeer) Reset added in v1.65.3

func (x *BlackPeer) Reset()

func (*BlackPeer) String added in v1.65.3

func (x *BlackPeer) String() string

type Blacklist added in v1.65.3

type Blacklist struct {
	Blackinfo []*BlackInfo `protobuf:"bytes,1,rep,name=blackinfo,proto3" json:"blackinfo,omitempty"`
	// contains filtered or unexported fields
}

func (*Blacklist) Descriptor deprecated added in v1.65.3

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

Deprecated: Use Blacklist.ProtoReflect.Descriptor instead.

func (*Blacklist) GetBlackinfo added in v1.65.3

func (x *Blacklist) GetBlackinfo() []*BlackInfo

func (*Blacklist) ProtoMessage added in v1.65.3

func (*Blacklist) ProtoMessage()

func (*Blacklist) ProtoReflect added in v1.65.3

func (x *Blacklist) ProtoReflect() protoreflect.Message

func (*Blacklist) Reset added in v1.65.3

func (x *Blacklist) Reset()

func (*Blacklist) String added in v1.65.3

func (x *Blacklist) String() string

type Block

type Block struct {
	Version    int64          `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	ParentHash []byte         `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	TxHash     []byte         `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
	StateHash  []byte         `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Height     int64          `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	BlockTime  int64          `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	Difficulty uint32         `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	MainHash   []byte         `protobuf:"bytes,12,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
	MainHeight int64          `protobuf:"varint,13,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
	Signature  *Signature     `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	Txs        []*Transaction `protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}
参考Header解释

mainHash 平行链上使用的字段,代表这个区块的主链hash

func (*Block) CheckSign

func (block *Block) CheckSign(cfg *Chain33Config) bool

CheckSign 检测block的签名,以及交易的签名

func (*Block) Clone

func (b *Block) Clone() *Block

Clone Block 浅拷贝(所有的types.Message 进行了拷贝)

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBlockTime

func (x *Block) GetBlockTime() int64

func (*Block) GetDifficulty

func (x *Block) GetDifficulty() uint32

func (*Block) GetHeader

func (block *Block) GetHeader(cfg *Chain33Config) *Header

GetHeader 获取block的Header信息

func (*Block) GetHeight

func (x *Block) GetHeight() int64

func (*Block) GetMainHash

func (x *Block) GetMainHash() []byte

func (*Block) GetMainHeight

func (x *Block) GetMainHeight() int64

func (*Block) GetParentHash

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

func (*Block) GetSignature

func (x *Block) GetSignature() *Signature

func (*Block) GetStateHash

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

func (*Block) GetTxHash

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

func (*Block) GetTxs

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

func (*Block) GetVersion

func (x *Block) GetVersion() int64

func (*Block) Hash

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

Hash 获取block的hash值

func (*Block) HashByForkHeight

func (block *Block) HashByForkHeight(forkheight int64) []byte

HashByForkHeight hash 通过自己设置的fork 高度计算 hash

func (*Block) HashNew

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

HashNew 新版本的Hash

func (*Block) HashOld

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

HashOld 老版本的hash

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect added in v1.65.3

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) SetHeader added in v1.66.1

func (block *Block) SetHeader(header *Header)

SetHeader 设置header, 注意相关字段必须和GetHeader一致, 一起维护

func (*Block) Size

func (block *Block) Size() int

Size 获取block的Size

func (*Block) String

func (x *Block) String() string

type BlockBody

type BlockBody struct {
	Txs        []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	Receipts   []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
	MainHash   []byte         `protobuf:"bytes,3,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
	MainHeight int64          `protobuf:"varint,4,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
	Hash       []byte         `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
	Height     int64          `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

区块体信息

txs : 区块上所有交易列表
receipts :区块上所有交易的收据信息列表
mainHash : 主链区块hash,平行链使用
mainHeight :主链区块高度,平行链使用
hash : 本链区块hash
height :本链区块高度

func (*BlockBody) Clone

func (b *BlockBody) Clone() *BlockBody

Clone BlockBody 浅拷贝(所有的types.Message 进行了拷贝)

func (*BlockBody) Descriptor deprecated

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

Deprecated: Use BlockBody.ProtoReflect.Descriptor instead.

func (*BlockBody) GetHash

func (x *BlockBody) GetHash() []byte

func (*BlockBody) GetHeight

func (x *BlockBody) GetHeight() int64

func (*BlockBody) GetMainHash

func (x *BlockBody) GetMainHash() []byte

func (*BlockBody) GetMainHeight

func (x *BlockBody) GetMainHeight() int64

func (*BlockBody) GetReceipts

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

func (*BlockBody) GetTxs

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

func (*BlockBody) ProtoMessage

func (*BlockBody) ProtoMessage()

func (*BlockBody) ProtoReflect added in v1.65.3

func (x *BlockBody) ProtoReflect() protoreflect.Message

func (*BlockBody) Reset

func (x *BlockBody) Reset()

func (*BlockBody) String

func (x *BlockBody) String() string

type BlockBodys added in v1.65.0

type BlockBodys struct {
	Items []*BlockBody `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

BlockBodys

func (*BlockBodys) Descriptor deprecated added in v1.65.0

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

Deprecated: Use BlockBodys.ProtoReflect.Descriptor instead.

func (*BlockBodys) GetItems added in v1.65.0

func (x *BlockBodys) GetItems() []*BlockBody

func (*BlockBodys) ProtoMessage added in v1.65.0

func (*BlockBodys) ProtoMessage()

func (*BlockBodys) ProtoReflect added in v1.65.3

func (x *BlockBodys) ProtoReflect() protoreflect.Message

func (*BlockBodys) Reset added in v1.65.0

func (x *BlockBodys) Reset()

func (*BlockBodys) String added in v1.65.0

func (x *BlockBodys) String() string

type BlockChain

type BlockChain struct {
	// 分片存储中每个大块包含的区块数
	ChunkblockNum int64 `json:"chunkblockNum,omitempty"`
	// blockchain模块保留的区块数,这些区块暂不参与分片
	ReservedBlockNum int64 `json:"reservedBlockNum,omitempty"`
	// 缓存区块的个数
	DefCacheSize int64 `json:"defCacheSize,omitempty"`
	// 同步区块时一次最多申请获取的区块个数
	MaxFetchBlockNum int64 `json:"maxFetchBlockNum,omitempty"`
	// 向对端节点请求同步区块的时间间隔
	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
	BatchBlockNum  int64 `json:"batchBlockNum,omitempty"`
	// 使用的数据库类型
	Driver string `json:"driver,omitempty"`
	// 数据库文件目录
	DbPath string `json:"dbPath,omitempty"`
	// 数据库缓存大小
	DbCache             int32 `json:"dbCache,omitempty"`
	IsStrongConsistency bool  `json:"isStrongConsistency,omitempty"`
	// 是否为单节点
	SingleMode bool `json:"singleMode,omitempty"`
	// 同步区块批量写数据库时,是否需要立即写磁盘,非固态硬盘的电脑可以设置为false,以提高性能
	Batchsync bool `json:"batchsync,omitempty"`
	// 是否记录添加或者删除区块的序列,若节点作为主链节点,为平行链节点提供服务,需要设置为true
	IsRecordBlockSequence bool `json:"isRecordBlockSequence,omitempty"`
	// 是否为平行链节点
	IsParaChain        bool `json:"isParaChain,omitempty"`
	EnableTxQuickIndex bool `json:"enableTxQuickIndex,omitempty"`
	// 升级storedb是否重新执行localdb
	EnableReExecLocal bool `json:"enableReExecLocal,omitempty"`
	// 关闭ExecLocal,不会影响ExecLocalSameTime的合约
	DisableExecLocal bool `json:"disableExecLocal,omitempty"`
	// 区块回退
	RollbackBlock int64 `json:"rollbackBlock,omitempty"`
	// 回退是否保存区块
	RollbackSave bool `json:"rollbackSave,omitempty"`
	// 最新区块上链超时时间,单位秒。
	OnChainTimeout int64 `json:"onChainTimeout,omitempty"`
	// 使能精简localdb
	EnableReduceLocaldb bool `json:"enableReduceLocaldb,omitempty"`
	// 关闭分片存储,默认开启分片存储为false;平行链不需要分片需要修改此默认参数为true
	DisableShard bool `protobuf:"varint,19,opt,name=disableShard" json:"disableShard,omitempty"`
	// 使能从P2pStore中获取数据
	EnableFetchP2pstore bool `json:"enableFetchP2pstore,omitempty"`
	// 使能注册推送区块、区块头或交易回执
	EnablePushSubscribe bool `json:"EnablePushSubscribe,omitempty"`
	// 当前活跃区块的缓存数量
	MaxActiveBlockNum int `json:"maxActiveBlockNum,omitempty"`
	// 当前活跃区块的缓存大小M为单位
	MaxActiveBlockSize int `json:"maxActiveBlockSize,omitempty"`

	//HighAllowPackHeight 允许打包的High区块高度
	HighAllowPackHeight int64 `json:"highAllowPackHeight,omitempty"`

	//LowAllowPackHeight 允许打包的low区块高度
	LowAllowPackHeight int64 `json:"lowAllowPackHeight,omitempty"`
	//关闭blockchain 区块广播
	DisableBlockBroadcast bool `json:"disableBlockBroadcast,omitempty"`
	//关闭本地和ntp server的时钟偏移检查
	DisableClockDriftCheck bool `json:"disableClockDriftCheck,omitempty"`
}

BlockChain 配置

type BlockDetail

type BlockDetail struct {
	Block          *Block         `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Receipts       []*ReceiptData `protobuf:"bytes,2,rep,name=receipts,proto3" json:"receipts,omitempty"`
	KV             []*KeyValue    `protobuf:"bytes,3,rep,name=KV,proto3" json:"KV,omitempty"`
	PrevStatusHash []byte         `protobuf:"bytes,4,opt,name=prevStatusHash,proto3" json:"prevStatusHash,omitempty"`
	// contains filtered or unexported fields
}

区块详细信息

block : 区块信息
receipts :区块上所有交易的收据信息列表

func (*BlockDetail) Clone

func (b *BlockDetail) Clone() *BlockDetail

Clone 浅拷贝: BlockDetail

func (*BlockDetail) Descriptor deprecated

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

Deprecated: Use BlockDetail.ProtoReflect.Descriptor instead.

func (*BlockDetail) FilterParaTxsByTitle

func (blockDetail *BlockDetail) FilterParaTxsByTitle(cfg *Chain33Config, title string) *ParaTxDetail

FilterParaTxsByTitle 过滤指定title的平行链交易 1,单笔平行连交易 2,交易组中的平行连交易,需要将整个交易组都过滤出来 目前暂时不返回单个交易的proof证明路径, 后面会将平行链的交易组装到一起,构成一个子roothash。会返回子roothash的proof证明路径

func (*BlockDetail) GetBlock

func (x *BlockDetail) GetBlock() *Block

func (*BlockDetail) GetKV

func (x *BlockDetail) GetKV() []*KeyValue

func (*BlockDetail) GetPrevStatusHash

func (x *BlockDetail) GetPrevStatusHash() []byte

func (*BlockDetail) GetReceipts

func (x *BlockDetail) GetReceipts() []*ReceiptData

func (*BlockDetail) ProtoMessage

func (*BlockDetail) ProtoMessage()

func (*BlockDetail) ProtoReflect added in v1.65.3

func (x *BlockDetail) ProtoReflect() protoreflect.Message

func (*BlockDetail) Reset

func (x *BlockDetail) Reset()

func (*BlockDetail) Size

func (blockDetail *BlockDetail) Size() int

Size 获取blockDetail的Size

func (*BlockDetail) String

func (x *BlockDetail) String() string

type BlockDetails

type BlockDetails struct {
	Items []*BlockDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

resp

func (*BlockDetails) Descriptor deprecated

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

Deprecated: Use BlockDetails.ProtoReflect.Descriptor instead.

func (*BlockDetails) GetItems

func (x *BlockDetails) GetItems() []*BlockDetail

func (*BlockDetails) ProtoMessage

func (*BlockDetails) ProtoMessage()

func (*BlockDetails) ProtoReflect added in v1.65.3

func (x *BlockDetails) ProtoReflect() protoreflect.Message

func (*BlockDetails) Reset

func (x *BlockDetails) Reset()

func (*BlockDetails) String

func (x *BlockDetails) String() string

type BlockInfo

type BlockInfo struct {
	Height int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash   []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

title平行链交易所在主链区块的信息

func (*BlockInfo) Descriptor deprecated

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

Deprecated: Use BlockInfo.ProtoReflect.Descriptor instead.

func (*BlockInfo) GetHash

func (x *BlockInfo) GetHash() []byte

func (*BlockInfo) GetHeight

func (x *BlockInfo) GetHeight() int64

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) ProtoReflect added in v1.65.3

func (x *BlockInfo) ProtoReflect() protoreflect.Message

func (*BlockInfo) Reset

func (x *BlockInfo) Reset()

func (*BlockInfo) String

func (x *BlockInfo) String() string

type BlockOverview

type BlockOverview struct {
	Head     *Header  `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"`
	TxCount  int64    `protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
	TxHashes [][]byte `protobuf:"bytes,3,rep,name=txHashes,proto3" json:"txHashes,omitempty"`
	// contains filtered or unexported fields
}

区块视图

head : 区块头信息
txCount :区块上交易个数
txHashes : 区块上交易的哈希列表

func (*BlockOverview) Descriptor deprecated

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

Deprecated: Use BlockOverview.ProtoReflect.Descriptor instead.

func (*BlockOverview) GetHead

func (x *BlockOverview) GetHead() *Header

func (*BlockOverview) GetTxCount

func (x *BlockOverview) GetTxCount() int64

func (*BlockOverview) GetTxHashes

func (x *BlockOverview) GetTxHashes() [][]byte

func (*BlockOverview) ProtoMessage

func (*BlockOverview) ProtoMessage()

func (*BlockOverview) ProtoReflect added in v1.65.3

func (x *BlockOverview) ProtoReflect() protoreflect.Message

func (*BlockOverview) Reset

func (x *BlockOverview) Reset()

func (*BlockOverview) String

func (x *BlockOverview) String() string

type BlockPid

type BlockPid struct {
	Pid   string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
	Block *Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

节点ID以及对应的Block

func (*BlockPid) Descriptor deprecated

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

Deprecated: Use BlockPid.ProtoReflect.Descriptor instead.

func (*BlockPid) GetBlock

func (x *BlockPid) GetBlock() *Block

func (*BlockPid) GetPid

func (x *BlockPid) GetPid() string

func (*BlockPid) ProtoMessage

func (*BlockPid) ProtoMessage()

func (*BlockPid) ProtoReflect added in v1.65.3

func (x *BlockPid) ProtoReflect() protoreflect.Message

func (*BlockPid) Reset

func (x *BlockPid) Reset()

func (*BlockPid) String

func (x *BlockPid) String() string

type BlockReceipt

type BlockReceipt struct {
	Receipts []*ReceiptData `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
	Hash     []byte         `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Height   int64          `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

区块回执

receipts :区块上所有交易的收据信息列表
hash : 本链区块hash
height :本链区块高度

func (*BlockReceipt) Descriptor deprecated

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

Deprecated: Use BlockReceipt.ProtoReflect.Descriptor instead.

func (*BlockReceipt) GetHash

func (x *BlockReceipt) GetHash() []byte

func (*BlockReceipt) GetHeight

func (x *BlockReceipt) GetHeight() int64

func (*BlockReceipt) GetReceipts

func (x *BlockReceipt) GetReceipts() []*ReceiptData

func (*BlockReceipt) ProtoMessage

func (*BlockReceipt) ProtoMessage()

func (*BlockReceipt) ProtoReflect added in v1.65.3

func (x *BlockReceipt) ProtoReflect() protoreflect.Message

func (*BlockReceipt) Reset

func (x *BlockReceipt) Reset()

func (*BlockReceipt) String

func (x *BlockReceipt) String() string

type BlockSeq

type BlockSeq struct {
	Num    int64          `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Seq    *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Detail *BlockDetail   `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockSeq) Descriptor deprecated

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

Deprecated: Use BlockSeq.ProtoReflect.Descriptor instead.

func (*BlockSeq) GetDetail

func (x *BlockSeq) GetDetail() *BlockDetail

func (*BlockSeq) GetNum

func (x *BlockSeq) GetNum() int64

func (*BlockSeq) GetSeq

func (x *BlockSeq) GetSeq() *BlockSequence

func (*BlockSeq) ProtoMessage

func (*BlockSeq) ProtoMessage()

func (*BlockSeq) ProtoReflect added in v1.65.3

func (x *BlockSeq) ProtoReflect() protoreflect.Message

func (*BlockSeq) Reset

func (x *BlockSeq) Reset()

func (*BlockSeq) String

func (x *BlockSeq) String() string

type BlockSeqs

type BlockSeqs struct {
	Seqs []*BlockSeq `protobuf:"bytes,1,rep,name=seqs,proto3" json:"seqs,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockSeqs) Descriptor deprecated

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

Deprecated: Use BlockSeqs.ProtoReflect.Descriptor instead.

func (*BlockSeqs) GetSeqs

func (x *BlockSeqs) GetSeqs() []*BlockSeq

func (*BlockSeqs) ProtoMessage

func (*BlockSeqs) ProtoMessage()

func (*BlockSeqs) ProtoReflect added in v1.65.3

func (x *BlockSeqs) ProtoReflect() protoreflect.Message

func (*BlockSeqs) Reset

func (x *BlockSeqs) Reset()

func (*BlockSeqs) String

func (x *BlockSeqs) String() string

type BlockSequence

type BlockSequence struct {
	Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Type int64  `protobuf:"varint,2,opt,name=Type,proto3" json:"Type,omitempty"`
	// contains filtered or unexported fields
}

通过block hash记录block的操作类型及add/del:1/2

func (*BlockSequence) Descriptor deprecated

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

Deprecated: Use BlockSequence.ProtoReflect.Descriptor instead.

func (*BlockSequence) GetHash

func (x *BlockSequence) GetHash() []byte

func (*BlockSequence) GetType

func (x *BlockSequence) GetType() int64

func (*BlockSequence) ProtoMessage

func (*BlockSequence) ProtoMessage()

func (*BlockSequence) ProtoReflect added in v1.65.3

func (x *BlockSequence) ProtoReflect() protoreflect.Message

func (*BlockSequence) Reset

func (x *BlockSequence) Reset()

func (*BlockSequence) String

func (x *BlockSequence) String() string

type BlockSequences

type BlockSequences struct {
	Items []*BlockSequence `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

resp

func (*BlockSequences) Descriptor deprecated

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

Deprecated: Use BlockSequences.ProtoReflect.Descriptor instead.

func (*BlockSequences) GetItems

func (x *BlockSequences) GetItems() []*BlockSequence

func (*BlockSequences) ProtoMessage

func (*BlockSequences) ProtoMessage()

func (*BlockSequences) ProtoReflect added in v1.65.3

func (x *BlockSequences) ProtoReflect() protoreflect.Message

func (*BlockSequences) Reset

func (x *BlockSequences) Reset()

func (*BlockSequences) String

func (x *BlockSequences) String() string

type Blocks

type Blocks struct {
	Items []*Block `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Blocks) Descriptor deprecated

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

Deprecated: Use Blocks.ProtoReflect.Descriptor instead.

func (*Blocks) GetItems

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

func (*Blocks) ProtoMessage

func (*Blocks) ProtoMessage()

func (*Blocks) ProtoReflect added in v1.65.3

func (x *Blocks) ProtoReflect() protoreflect.Message

func (*Blocks) Reset

func (x *Blocks) Reset()

func (*Blocks) String

func (x *Blocks) String() string

type BroadCastData

type BroadCastData struct {

	// Types that are assignable to Value:
	//	*BroadCastData_Tx
	//	*BroadCastData_Block
	//	*BroadCastData_Ping
	//	*BroadCastData_Version
	//	*BroadCastData_LtTx
	//	*BroadCastData_LtBlock
	//	*BroadCastData_Query
	//	*BroadCastData_BlockRep
	Value isBroadCastData_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

* p2p 广播数据协议

func (*BroadCastData) Descriptor deprecated

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

Deprecated: Use BroadCastData.ProtoReflect.Descriptor instead.

func (*BroadCastData) GetBlock

func (x *BroadCastData) GetBlock() *P2PBlock

func (*BroadCastData) GetBlockRep

func (x *BroadCastData) GetBlockRep() *P2PBlockTxReply

func (*BroadCastData) GetLtBlock

func (x *BroadCastData) GetLtBlock() *LightBlock

func (*BroadCastData) GetLtTx

func (x *BroadCastData) GetLtTx() *LightTx

func (*BroadCastData) GetPing

func (x *BroadCastData) GetPing() *P2PPing

func (*BroadCastData) GetQuery

func (x *BroadCastData) GetQuery() *P2PQueryData

func (*BroadCastData) GetTx

func (x *BroadCastData) GetTx() *P2PTx

func (*BroadCastData) GetValue

func (m *BroadCastData) GetValue() isBroadCastData_Value

func (*BroadCastData) GetVersion

func (x *BroadCastData) GetVersion() *Versions

func (*BroadCastData) ProtoMessage

func (*BroadCastData) ProtoMessage()

func (*BroadCastData) ProtoReflect added in v1.65.3

func (x *BroadCastData) ProtoReflect() protoreflect.Message

func (*BroadCastData) Reset

func (x *BroadCastData) Reset()

func (*BroadCastData) String

func (x *BroadCastData) String() string

type BroadCastData_Block

type BroadCastData_Block struct {
	Block *P2PBlock `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}

type BroadCastData_BlockRep

type BroadCastData_BlockRep struct {
	BlockRep *P2PBlockTxReply `protobuf:"bytes,8,opt,name=blockRep,proto3,oneof"`
}

type BroadCastData_LtBlock

type BroadCastData_LtBlock struct {
	LtBlock *LightBlock `protobuf:"bytes,6,opt,name=ltBlock,proto3,oneof"`
}

type BroadCastData_LtTx

type BroadCastData_LtTx struct {
	LtTx *LightTx `protobuf:"bytes,5,opt,name=ltTx,proto3,oneof"`
}

type BroadCastData_Ping

type BroadCastData_Ping struct {
	Ping *P2PPing `protobuf:"bytes,3,opt,name=ping,proto3,oneof"`
}

type BroadCastData_Query

type BroadCastData_Query struct {
	Query *P2PQueryData `protobuf:"bytes,7,opt,name=query,proto3,oneof"`
}

type BroadCastData_Tx

type BroadCastData_Tx struct {
	Tx *P2PTx `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}

type BroadCastData_Version

type BroadCastData_Version struct {
	Version *Versions `protobuf:"bytes,4,opt,name=version,proto3,oneof"`
}

type Chain33Client

type Chain33Client interface {
	// chain33 对外提供服务的接口
	//区块链接口
	GetBlocks(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*Reply, error)
	//获取最新的区块头
	GetLastHeader(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Header, error)
	//交易接口
	CreateRawTransaction(ctx context.Context, in *CreateTx, opts ...grpc.CallOption) (*UnsignTx, error)
	CreateRawTxGroup(ctx context.Context, in *CreateTransactionGroup, opts ...grpc.CallOption) (*UnsignTx, error)
	// 根据哈希查询交易
	QueryTransaction(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*TransactionDetail, error)
	// 发送交易&&根据哈希查询交易
	SendTransactionSync(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*Reply, error)
	// 发送交易
	SendTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*Reply, error)
	// 批量发送交易
	SendTransactions(ctx context.Context, in *Transactions, opts ...grpc.CallOption) (*Replies, error)
	//通过地址获取交易信息
	GetTransactionByAddr(ctx context.Context, in *ReqAddr, opts ...grpc.CallOption) (*ReplyTxInfos, error)
	//通过哈希数组获取对应的交易
	GetTransactionByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*TransactionDetails, error)
	//缓存接口
	GetMemPool(ctx context.Context, in *ReqGetMempool, opts ...grpc.CallOption) (*ReplyTxList, error)
	//钱包接口
	//获取钱包账户信息
	GetAccounts(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletAccounts, error)
	//根据账户lable信息获取账户地址
	GetAccount(ctx context.Context, in *ReqGetAccount, opts ...grpc.CallOption) (*WalletAccount, error)
	//创建钱包账户
	NewAccount(ctx context.Context, in *ReqNewAccount, opts ...grpc.CallOption) (*WalletAccount, error)
	//获取钱包的交易列表
	WalletTransactionList(ctx context.Context, in *ReqWalletTransactionList, opts ...grpc.CallOption) (*WalletTxDetails, error)
	//导入钱包私钥
	ImportPrivkey(ctx context.Context, in *ReqWalletImportPrivkey, opts ...grpc.CallOption) (*WalletAccount, error)
	// 发送交易
	SendToAddress(ctx context.Context, in *ReqWalletSendToAddress, opts ...grpc.CallOption) (*ReplyHash, error)
	//设置交易手续费
	SetTxFee(ctx context.Context, in *ReqWalletSetFee, opts ...grpc.CallOption) (*Reply, error)
	//设置标签
	SetLabl(ctx context.Context, in *ReqWalletSetLabel, opts ...grpc.CallOption) (*WalletAccount, error)
	//合并钱包余额
	MergeBalance(ctx context.Context, in *ReqWalletMergeBalance, opts ...grpc.CallOption) (*ReplyHashes, error)
	//设置钱包密码
	SetPasswd(ctx context.Context, in *ReqWalletSetPasswd, opts ...grpc.CallOption) (*Reply, error)
	//给钱包上锁
	Lock(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//给钱包解锁
	UnLock(ctx context.Context, in *WalletUnLock, opts ...grpc.CallOption) (*Reply, error)
	//获取最新的Mempool
	GetLastMemPool(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ReplyTxList, error)
	//获取最新的ProperFee
	GetProperFee(ctx context.Context, in *ReqProperFee, opts ...grpc.CallOption) (*ReplyProperFee, error)
	// 获取钱包状态
	GetWalletStatus(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*WalletStatus, error)
	//区块浏览器接口
	///
	GetBlockOverview(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*BlockOverview, error)
	GetAddrOverview(ctx context.Context, in *ReqAddr, opts ...grpc.CallOption) (*AddrOverview, error)
	GetBlockHash(ctx context.Context, in *ReqInt, opts ...grpc.CallOption) (*ReplyHash, error)
	// seed
	// 创建seed
	GenSeed(ctx context.Context, in *GenSeedLang, opts ...grpc.CallOption) (*ReplySeed, error)
	//获取seed
	GetSeed(ctx context.Context, in *GetSeedByPw, opts ...grpc.CallOption) (*ReplySeed, error)
	//保存seed
	SaveSeed(ctx context.Context, in *SaveSeedByPw, opts ...grpc.CallOption) (*Reply, error)
	// Balance Query
	//获取余额
	GetBalance(ctx context.Context, in *ReqBalance, opts ...grpc.CallOption) (*Accounts, error)
	QueryChain(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
	ExecWallet(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
	QueryConsensus(ctx context.Context, in *ChainExecutor, opts ...grpc.CallOption) (*Reply, error)
	CreateTransaction(ctx context.Context, in *CreateTxIn, opts ...grpc.CallOption) (*UnsignTx, error)
	//获取交易的十六进制编码
	GetHexTxByHash(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*HexTx, error)
	// 导出私钥
	DumpPrivkey(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*ReplyString, error)
	// 导出全部私钥到文件
	DumpPrivkeysFile(ctx context.Context, in *ReqPrivkeysFile, opts ...grpc.CallOption) (*Reply, error)
	// 从文件中批量导入私钥
	ImportPrivkeysFile(ctx context.Context, in *ReqPrivkeysFile, opts ...grpc.CallOption) (*Reply, error)
	//获取程序版本
	Version(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*VersionInfo, error)
	//是否同步
	IsSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取当前节点连接的其他节点信息
	GetPeerInfo(ctx context.Context, in *P2PGetPeerReq, opts ...grpc.CallOption) (*PeerList, error)
	//获取当前节点的网络信息
	NetInfo(ctx context.Context, in *P2PGetNetInfoReq, opts ...grpc.CallOption) (*NodeNetInfo, error)
	// ntpclock是否同步
	IsNtpClockSync(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取系统致命故障信息
	GetFatalFailure(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Int32, error)
	GetLastBlockSequence(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Int64, error)
	// get add block's sequence by hash
	GetSequenceByHash(ctx context.Context, in *ReqHash, opts ...grpc.CallOption) (*Int64, error)
	//通过block hash 获取对应的blocks信息
	GetBlockByHashes(ctx context.Context, in *ReqHashes, opts ...grpc.CallOption) (*BlockDetails, error)
	//通过block seq 获取对应的blocks hash 信息
	GetBlockBySeq(ctx context.Context, in *Int64, opts ...grpc.CallOption) (*BlockSeq, error)
	//关闭chain33
	CloseQueue(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*Reply, error)
	//获取地址所以合约下的余额
	GetAllExecBalance(ctx context.Context, in *ReqAllExecBalance, opts ...grpc.CallOption) (*AllExecBalance, error)
	//签名交易
	SignRawTx(ctx context.Context, in *ReqSignRawTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	CreateNoBalanceTransaction(ctx context.Context, in *NoBalanceTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	// 获取随机HASH
	QueryRandNum(ctx context.Context, in *ReqRandHash, opts ...grpc.CallOption) (*ReplyHash, error)
	// 获取是否达到fork高度
	GetFork(ctx context.Context, in *ReqKey, opts ...grpc.CallOption) (*Int64, error)
	CreateNoBalanceTxs(ctx context.Context, in *NoBalanceTxs, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	//通过seq以及title获取对应平行连的交易
	GetParaTxByTitle(ctx context.Context, in *ReqParaTxByTitle, opts ...grpc.CallOption) (*ParaTxDetails, error)
	//获取拥有此title交易的区块高度
	LoadParaTxByTitle(ctx context.Context, in *ReqHeightByTitle, opts ...grpc.CallOption) (*ReplyHeightByTitle, error)
	//通过区块高度列表+title获取平行链交易
	GetParaTxByHeight(ctx context.Context, in *ReqParaTxByHeight, opts ...grpc.CallOption) (*ParaTxDetails, error)
	//获取区块头信息
	GetHeaders(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*Headers, error)
	// get server time
	GetServerTime(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ServerTime, error)
	// 获取加密算法列表,用于签名等
	GetCryptoList(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*CryptoList, error)
	// 发送延时交易
	SendDelayTransaction(ctx context.Context, in *DelayTx, opts ...grpc.CallOption) (*Reply, error)
	// 获取钱包找回地址
	GetWalletRecoverAddress(ctx context.Context, in *ReqGetWalletRecoverAddr, opts ...grpc.CallOption) (*ReplyString, error)
	// 钱包找回交易签名
	SignWalletRecoverTx(ctx context.Context, in *ReqSignWalletRecoverTx, opts ...grpc.CallOption) (*ReplySignRawTx, error)
	// 获取节点配置信息
	GetChainConfig(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ChainConfigInfo, error)
	//根据执行期名称创建对应的地址
	ConvertExectoAddr(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*ReplyString, error)
	// get coin symbol
	GetCoinSymbol(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*ReplyString, error)
	// ReWriteRawTx
	ReWriteTx(ctx context.Context, in *ReWriteRawTx, opts ...grpc.CallOption) (*UnsignTx, error)
	// GetBlockSequences
	GetBlockSequences(ctx context.Context, in *ReqBlocks, opts ...grpc.CallOption) (*BlockSequences, error)
	//兼容jrpc订阅接口
	AddPushSubscribe(ctx context.Context, in *PushSubscribeReq, opts ...grpc.CallOption) (*ReplySubscribePush, error)
	ListPushes(ctx context.Context, in *ReqNil, opts ...grpc.CallOption) (*PushSubscribes, error)
	GetPushSeqLastNum(ctx context.Context, in *ReqString, opts ...grpc.CallOption) (*Int64, error)
	//发送订阅的数据到客户端
	SubEvent(ctx context.Context, in *ReqSubscribe, opts ...grpc.CallOption) (Chain33_SubEventClient, error)
}

Chain33Client is the client API for Chain33 service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChain33Client

func NewChain33Client(cc grpc.ClientConnInterface) Chain33Client

type Chain33Config

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

Chain33Config ...

func GetCliSysParam

func GetCliSysParam(title string) *Chain33Config

GetCliSysParam ...

func NewChain33Config

func NewChain33Config(cfgstring string) *Chain33Config

NewChain33Config ...

func NewChain33ConfigNoInit

func NewChain33ConfigNoInit(cfgstring string) *Chain33Config

NewChain33ConfigNoInit ...

func (*Chain33Config) CalcTxKey

func (c *Chain33Config) CalcTxKey(hash []byte) []byte

CalcTxKey local db中保存交易的方法

func (*Chain33Config) CalcTxKeyValue

func (c *Chain33Config) CalcTxKeyValue(txr *TxResult) []byte

CalcTxKeyValue 保存local db中保存交易的方法

func (*Chain33Config) DisableCheckFork added in v1.65.3

func (c *Chain33Config) DisableCheckFork(d bool)

DisableCheckFork ...

func (*Chain33Config) ExecName

func (c *Chain33Config) ExecName(name string) string

ExecName 执行器name

func (*Chain33Config) G

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

G 获取ChainConfig中的配置

func (*Chain33Config) GInt

func (c *Chain33Config) GInt(name string) int64

GInt 解析ChainConfig配置

func (*Chain33Config) GStr

func (c *Chain33Config) GStr(name string) string

GStr 获取ChainConfig中的字符串格式

func (*Chain33Config) GetChainID added in v1.65.1

func (c *Chain33Config) GetChainID() int32

GetChainID 获取链ID,提供给其他模块使用

func (*Chain33Config) GetCoinExec added in v1.65.3

func (c *Chain33Config) GetCoinExec() string

GetCoinExec 获取 coin symbol

func (*Chain33Config) GetCoinPrecision added in v1.65.3

func (c *Chain33Config) GetCoinPrecision() int64

GetCoinPrecision 获取 coin 精度,缺省小数点后8位, 1e8

func (*Chain33Config) GetCoinSymbol

func (c *Chain33Config) GetCoinSymbol() string

GetCoinSymbol 获取 coin symbol

func (*Chain33Config) GetDappFork

func (c *Chain33Config) GetDappFork(dapp, fork string) int64

GetDappFork 获取dapp fork高度

func (*Chain33Config) GetFork

func (c *Chain33Config) GetFork(fork string) int64

GetFork 获取系统fork高度

func (*Chain33Config) GetForks

func (c *Chain33Config) GetForks() (map[string]int64, error)

GetForks ...

func (*Chain33Config) GetFundAddr

func (c *Chain33Config) GetFundAddr() string

GetFundAddr 获取基金账户地址

func (*Chain33Config) GetMaxTxFee

func (c *Chain33Config) GetMaxTxFee() int64

GetMaxTxFee get max transaction fee

func (*Chain33Config) GetMaxTxFeeRate

func (c *Chain33Config) GetMaxTxFeeRate() int64

GetMaxTxFeeRate get max transaction fee rate

func (*Chain33Config) GetMinTxFeeRate

func (c *Chain33Config) GetMinTxFeeRate() int64

GetMinTxFeeRate get min transaction fee rate

func (*Chain33Config) GetMinerExecs

func (c *Chain33Config) GetMinerExecs() []string

GetMinerExecs 获取挖矿的合约名单

func (*Chain33Config) GetModuleConfig

func (c *Chain33Config) GetModuleConfig() *Config

GetModuleConfig ...

func (*Chain33Config) GetP

func (c *Chain33Config) GetP(height int64) *ChainParam

GetP 获取ChainParam

func (*Chain33Config) GetParaExec

func (c *Chain33Config) GetParaExec(execer []byte) []byte

GetParaExec 获取平行链执行

func (*Chain33Config) GetParaName

func (c *Chain33Config) GetParaName() string

GetParaName 获取平行链name

func (*Chain33Config) GetSubConfig

func (c *Chain33Config) GetSubConfig() *ConfigSubModule

GetSubConfig ...

func (*Chain33Config) GetTitle

func (c *Chain33Config) GetTitle() string

GetTitle 获取title

func (*Chain33Config) GetTokenPrecision added in v1.65.3

func (c *Chain33Config) GetTokenPrecision() int64

GetTokenPrecision 获取 token 精度,缺省小数点后8位, 1e8

func (*Chain33Config) HasConf

func (c *Chain33Config) HasConf(key string) bool

HasConf 解析chainConfig配置

func (*Chain33Config) HasFork

func (c *Chain33Config) HasFork(fork string) bool

HasFork 是否有系统fork

func (*Chain33Config) IsDappFork

func (c *Chain33Config) IsDappFork(height int64, dapp, fork string) bool

IsDappFork 是否dapp fork高度

func (*Chain33Config) IsEnable

func (c *Chain33Config) IsEnable(name string) bool

IsEnable 解析ChainConfig配置

func (*Chain33Config) IsEnableFork

func (c *Chain33Config) IsEnableFork(height int64, fork string, enable bool) bool

IsEnableFork 是否使能了fork

func (*Chain33Config) IsFork

func (c *Chain33Config) IsFork(height int64, fork string) bool

IsFork 是否系统 fork高度

func (*Chain33Config) IsLocal

func (c *Chain33Config) IsLocal() bool

IsLocal 是否locak title

func (*Chain33Config) IsMyParaExecName

func (c *Chain33Config) IsMyParaExecName(exec string) bool

IsMyParaExecName 是否是我的para链的执行器

func (*Chain33Config) IsPara

func (c *Chain33Config) IsPara() bool

IsPara 是否平行链

func (*Chain33Config) IsTestNet

func (c *Chain33Config) IsTestNet() bool

IsTestNet 是否测试链

func (*Chain33Config) MG

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

MG 获取mver config中的配置

func (*Chain33Config) MGInt

func (c *Chain33Config) MGInt(name string, height int64) int64

MGInt 解析mver config 配置

func (*Chain33Config) MGStr

func (c *Chain33Config) MGStr(name string, height int64) string

MGStr 获取mver config 中的字符串格式

func (*Chain33Config) MIsEnable

func (c *Chain33Config) MIsEnable(name string, height int64) bool

MIsEnable 解析mver config 配置

func (*Chain33Config) RegisterDappFork

func (c *Chain33Config) RegisterDappFork(dapp, fork string, height int64)

RegisterDappFork 注册dapp fork高度

func (*Chain33Config) S

func (c *Chain33Config) S(key string, value interface{})

S 设置chainConfig配置

func (*Chain33Config) SetDappFork

func (c *Chain33Config) SetDappFork(dapp, fork string, height int64)

SetDappFork 设置dapp fork高度

func (*Chain33Config) SetMinFee

func (c *Chain33Config) SetMinFee(fee int64)

SetMinFee 设置最小费用

func (*Chain33Config) SetTitleOnlyForTest

func (c *Chain33Config) SetTitleOnlyForTest(ti string)

SetTitleOnlyForTest set title only for test use

func (*Chain33Config) SetTxFeeConfig

func (c *Chain33Config) SetTxFeeConfig(minTxFeeRate, maxTxFeeRate, maxTxFee int64)

SetTxFeeConfig 设置交易费相关配置

type Chain33Server

type Chain33Server interface {
	// chain33 对外提供服务的接口
	//区块链接口
	GetBlocks(context.Context, *ReqBlocks) (*Reply, error)
	//获取最新的区块头
	GetLastHeader(context.Context, *ReqNil) (*Header, error)
	//交易接口
	CreateRawTransaction(context.Context, *CreateTx) (*UnsignTx, error)
	CreateRawTxGroup(context.Context, *CreateTransactionGroup) (*UnsignTx, error)
	// 根据哈希查询交易
	QueryTransaction(context.Context, *ReqHash) (*TransactionDetail, error)
	// 发送交易&&根据哈希查询交易
	SendTransactionSync(context.Context, *Transaction) (*Reply, error)
	// 发送交易
	SendTransaction(context.Context, *Transaction) (*Reply, error)
	// 批量发送交易
	SendTransactions(context.Context, *Transactions) (*Replies, error)
	//通过地址获取交易信息
	GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)
	//通过哈希数组获取对应的交易
	GetTransactionByHashes(context.Context, *ReqHashes) (*TransactionDetails, error)
	//缓存接口
	GetMemPool(context.Context, *ReqGetMempool) (*ReplyTxList, error)
	//钱包接口
	//获取钱包账户信息
	GetAccounts(context.Context, *ReqNil) (*WalletAccounts, error)
	//根据账户lable信息获取账户地址
	GetAccount(context.Context, *ReqGetAccount) (*WalletAccount, error)
	//创建钱包账户
	NewAccount(context.Context, *ReqNewAccount) (*WalletAccount, error)
	//获取钱包的交易列表
	WalletTransactionList(context.Context, *ReqWalletTransactionList) (*WalletTxDetails, error)
	//导入钱包私钥
	ImportPrivkey(context.Context, *ReqWalletImportPrivkey) (*WalletAccount, error)
	// 发送交易
	SendToAddress(context.Context, *ReqWalletSendToAddress) (*ReplyHash, error)
	//设置交易手续费
	SetTxFee(context.Context, *ReqWalletSetFee) (*Reply, error)
	//设置标签
	SetLabl(context.Context, *ReqWalletSetLabel) (*WalletAccount, error)
	//合并钱包余额
	MergeBalance(context.Context, *ReqWalletMergeBalance) (*ReplyHashes, error)
	//设置钱包密码
	SetPasswd(context.Context, *ReqWalletSetPasswd) (*Reply, error)
	//给钱包上锁
	Lock(context.Context, *ReqNil) (*Reply, error)
	//给钱包解锁
	UnLock(context.Context, *WalletUnLock) (*Reply, error)
	//获取最新的Mempool
	GetLastMemPool(context.Context, *ReqNil) (*ReplyTxList, error)
	//获取最新的ProperFee
	GetProperFee(context.Context, *ReqProperFee) (*ReplyProperFee, error)
	// 获取钱包状态
	GetWalletStatus(context.Context, *ReqNil) (*WalletStatus, error)
	//区块浏览器接口
	///
	GetBlockOverview(context.Context, *ReqHash) (*BlockOverview, error)
	GetAddrOverview(context.Context, *ReqAddr) (*AddrOverview, error)
	GetBlockHash(context.Context, *ReqInt) (*ReplyHash, error)
	// seed
	// 创建seed
	GenSeed(context.Context, *GenSeedLang) (*ReplySeed, error)
	//获取seed
	GetSeed(context.Context, *GetSeedByPw) (*ReplySeed, error)
	//保存seed
	SaveSeed(context.Context, *SaveSeedByPw) (*Reply, error)
	// Balance Query
	//获取余额
	GetBalance(context.Context, *ReqBalance) (*Accounts, error)
	QueryChain(context.Context, *ChainExecutor) (*Reply, error)
	ExecWallet(context.Context, *ChainExecutor) (*Reply, error)
	QueryConsensus(context.Context, *ChainExecutor) (*Reply, error)
	CreateTransaction(context.Context, *CreateTxIn) (*UnsignTx, error)
	//获取交易的十六进制编码
	GetHexTxByHash(context.Context, *ReqHash) (*HexTx, error)
	// 导出私钥
	DumpPrivkey(context.Context, *ReqString) (*ReplyString, error)
	// 导出全部私钥到文件
	DumpPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
	// 从文件中批量导入私钥
	ImportPrivkeysFile(context.Context, *ReqPrivkeysFile) (*Reply, error)
	//获取程序版本
	Version(context.Context, *ReqNil) (*VersionInfo, error)
	//是否同步
	IsSync(context.Context, *ReqNil) (*Reply, error)
	//获取当前节点连接的其他节点信息
	GetPeerInfo(context.Context, *P2PGetPeerReq) (*PeerList, error)
	//获取当前节点的网络信息
	NetInfo(context.Context, *P2PGetNetInfoReq) (*NodeNetInfo, error)
	// ntpclock是否同步
	IsNtpClockSync(context.Context, *ReqNil) (*Reply, error)
	//获取系统致命故障信息
	GetFatalFailure(context.Context, *ReqNil) (*Int32, error)
	GetLastBlockSequence(context.Context, *ReqNil) (*Int64, error)
	// get add block's sequence by hash
	GetSequenceByHash(context.Context, *ReqHash) (*Int64, error)
	//通过block hash 获取对应的blocks信息
	GetBlockByHashes(context.Context, *ReqHashes) (*BlockDetails, error)
	//通过block seq 获取对应的blocks hash 信息
	GetBlockBySeq(context.Context, *Int64) (*BlockSeq, error)
	//关闭chain33
	CloseQueue(context.Context, *ReqNil) (*Reply, error)
	//获取地址所以合约下的余额
	GetAllExecBalance(context.Context, *ReqAllExecBalance) (*AllExecBalance, error)
	//签名交易
	SignRawTx(context.Context, *ReqSignRawTx) (*ReplySignRawTx, error)
	CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, error)
	// 获取随机HASH
	QueryRandNum(context.Context, *ReqRandHash) (*ReplyHash, error)
	// 获取是否达到fork高度
	GetFork(context.Context, *ReqKey) (*Int64, error)
	CreateNoBalanceTxs(context.Context, *NoBalanceTxs) (*ReplySignRawTx, error)
	//通过seq以及title获取对应平行连的交易
	GetParaTxByTitle(context.Context, *ReqParaTxByTitle) (*ParaTxDetails, error)
	//获取拥有此title交易的区块高度
	LoadParaTxByTitle(context.Context, *ReqHeightByTitle) (*ReplyHeightByTitle, error)
	//通过区块高度列表+title获取平行链交易
	GetParaTxByHeight(context.Context, *ReqParaTxByHeight) (*ParaTxDetails, error)
	//获取区块头信息
	GetHeaders(context.Context, *ReqBlocks) (*Headers, error)
	// get server time
	GetServerTime(context.Context, *ReqNil) (*ServerTime, error)
	// 获取加密算法列表,用于签名等
	GetCryptoList(context.Context, *ReqNil) (*CryptoList, error)
	// 发送延时交易
	SendDelayTransaction(context.Context, *DelayTx) (*Reply, error)
	// 获取钱包找回地址
	GetWalletRecoverAddress(context.Context, *ReqGetWalletRecoverAddr) (*ReplyString, error)
	// 钱包找回交易签名
	SignWalletRecoverTx(context.Context, *ReqSignWalletRecoverTx) (*ReplySignRawTx, error)
	// 获取节点配置信息
	GetChainConfig(context.Context, *ReqNil) (*ChainConfigInfo, error)
	//根据执行期名称创建对应的地址
	ConvertExectoAddr(context.Context, *ReqString) (*ReplyString, error)
	// get coin symbol
	GetCoinSymbol(context.Context, *ReqNil) (*ReplyString, error)
	// ReWriteRawTx
	ReWriteTx(context.Context, *ReWriteRawTx) (*UnsignTx, error)
	// GetBlockSequences
	GetBlockSequences(context.Context, *ReqBlocks) (*BlockSequences, error)
	//兼容jrpc订阅接口
	AddPushSubscribe(context.Context, *PushSubscribeReq) (*ReplySubscribePush, error)
	ListPushes(context.Context, *ReqNil) (*PushSubscribes, error)
	GetPushSeqLastNum(context.Context, *ReqString) (*Int64, error)
	//发送订阅的数据到客户端
	SubEvent(*ReqSubscribe, Chain33_SubEventServer) error
}

Chain33Server is the server API for Chain33 service.

type Chain33_SubEventClient added in v1.66.1

type Chain33_SubEventClient interface {
	Recv() (*PushData, error)
	grpc.ClientStream
}

type Chain33_SubEventServer added in v1.66.1

type Chain33_SubEventServer interface {
	Send(*PushData) error
	grpc.ServerStream
}

type ChainConfigInfo added in v1.65.3

type ChainConfigInfo struct {
	Title          string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	CoinExec       string `protobuf:"bytes,2,opt,name=coinExec,proto3" json:"coinExec,omitempty"`
	CoinSymbol     string `protobuf:"bytes,3,opt,name=coinSymbol,proto3" json:"coinSymbol,omitempty"`
	CoinPrecision  int64  `protobuf:"varint,4,opt,name=coinPrecision,proto3" json:"coinPrecision,omitempty"`
	TokenPrecision int64  `protobuf:"varint,5,opt,name=tokenPrecision,proto3" json:"tokenPrecision,omitempty"`
	ChainID        int32  `protobuf:"varint,6,opt,name=chainID,proto3" json:"chainID,omitempty"`
	MaxTxFee       int64  `protobuf:"varint,7,opt,name=maxTxFee,proto3" json:"maxTxFee,omitempty"`
	MinTxFeeRate   int64  `protobuf:"varint,8,opt,name=minTxFeeRate,proto3" json:"minTxFeeRate,omitempty"`
	MaxTxFeeRate   int64  `protobuf:"varint,9,opt,name=maxTxFeeRate,proto3" json:"maxTxFeeRate,omitempty"`
	IsPara         bool   `protobuf:"varint,10,opt,name=isPara,proto3" json:"isPara,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainConfigInfo) Descriptor deprecated added in v1.65.3

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

Deprecated: Use ChainConfigInfo.ProtoReflect.Descriptor instead.

func (*ChainConfigInfo) GetChainID added in v1.65.3

func (x *ChainConfigInfo) GetChainID() int32

func (*ChainConfigInfo) GetCoinExec added in v1.65.3

func (x *ChainConfigInfo) GetCoinExec() string

func (*ChainConfigInfo) GetCoinPrecision added in v1.65.3

func (x *ChainConfigInfo) GetCoinPrecision() int64

func (*ChainConfigInfo) GetCoinSymbol added in v1.65.3

func (x *ChainConfigInfo) GetCoinSymbol() string

func (*ChainConfigInfo) GetIsPara added in v1.65.3

func (x *ChainConfigInfo) GetIsPara() bool

func (*ChainConfigInfo) GetMaxTxFee added in v1.65.3

func (x *ChainConfigInfo) GetMaxTxFee() int64

func (*ChainConfigInfo) GetMaxTxFeeRate added in v1.65.3

func (x *ChainConfigInfo) GetMaxTxFeeRate() int64

func (*ChainConfigInfo) GetMinTxFeeRate added in v1.65.3

func (x *ChainConfigInfo) GetMinTxFeeRate() int64

func (*ChainConfigInfo) GetTitle added in v1.65.3

func (x *ChainConfigInfo) GetTitle() string

func (*ChainConfigInfo) GetTokenPrecision added in v1.65.3

func (x *ChainConfigInfo) GetTokenPrecision() int64

func (*ChainConfigInfo) ProtoMessage added in v1.65.3

func (*ChainConfigInfo) ProtoMessage()

func (*ChainConfigInfo) ProtoReflect added in v1.65.3

func (x *ChainConfigInfo) ProtoReflect() protoreflect.Message

func (*ChainConfigInfo) Reset added in v1.65.3

func (x *ChainConfigInfo) Reset()

func (*ChainConfigInfo) String added in v1.65.3

func (x *ChainConfigInfo) String() string

type ChainExecutor

type ChainExecutor struct {
	Driver    string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	FuncName  string `protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
	StateHash []byte `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Param     []byte `protobuf:"bytes,4,opt,name=param,proto3" json:"param,omitempty"`
	//扩展字段,用于额外的用途
	Extra []byte `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainExecutor) Descriptor deprecated

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

Deprecated: Use ChainExecutor.ProtoReflect.Descriptor instead.

func (*ChainExecutor) GetDriver

func (x *ChainExecutor) GetDriver() string

func (*ChainExecutor) GetExtra

func (x *ChainExecutor) GetExtra() []byte

func (*ChainExecutor) GetFuncName

func (x *ChainExecutor) GetFuncName() string

func (*ChainExecutor) GetParam

func (x *ChainExecutor) GetParam() []byte

func (*ChainExecutor) GetStateHash

func (x *ChainExecutor) GetStateHash() []byte

func (*ChainExecutor) ProtoMessage

func (*ChainExecutor) ProtoMessage()

func (*ChainExecutor) ProtoReflect added in v1.65.3

func (x *ChainExecutor) ProtoReflect() protoreflect.Message

func (*ChainExecutor) Reset

func (x *ChainExecutor) Reset()

func (*ChainExecutor) String

func (x *ChainExecutor) String() string

type ChainParam

type ChainParam struct {
	MaxTxNumber  int64
	PowLimitBits uint32
}

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"`
	// contains filtered or unexported fields
}

区块链状态

currentHeight : 区块最新高度
mempoolSize :内存池大小
msgQueueSize : 消息队列大小

func (*ChainStatus) Descriptor deprecated

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

Deprecated: Use ChainStatus.ProtoReflect.Descriptor instead.

func (*ChainStatus) GetCurrentHeight

func (x *ChainStatus) GetCurrentHeight() int64

func (*ChainStatus) GetMempoolSize

func (x *ChainStatus) GetMempoolSize() int64

func (*ChainStatus) GetMsgQueueSize

func (x *ChainStatus) GetMsgQueueSize() int64

func (*ChainStatus) ProtoMessage

func (*ChainStatus) ProtoMessage()

func (*ChainStatus) ProtoReflect added in v1.65.3

func (x *ChainStatus) ProtoReflect() protoreflect.Message

func (*ChainStatus) Reset

func (x *ChainStatus) Reset()

func (*ChainStatus) String

func (x *ChainStatus) String() string

type Checkpoint

type Checkpoint struct {
	Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest   []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*Checkpoint) Descriptor deprecated

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

Deprecated: Use Checkpoint.ProtoReflect.Descriptor instead.

func (*Checkpoint) GetDigest

func (x *Checkpoint) GetDigest() []byte

func (*Checkpoint) GetSequence

func (x *Checkpoint) GetSequence() uint32

func (*Checkpoint) ProtoMessage

func (*Checkpoint) ProtoMessage()

func (*Checkpoint) ProtoReflect added in v1.65.3

func (x *Checkpoint) ProtoReflect() protoreflect.Message

func (*Checkpoint) Reset

func (x *Checkpoint) Reset()

func (*Checkpoint) String

func (x *Checkpoint) String() string

type ChildChain

type ChildChain struct {
	Title      string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	StartIndex int32  `protobuf:"varint,2,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	ChildHash  []byte `protobuf:"bytes,3,opt,name=childHash,proto3" json:"childHash,omitempty"`
	TxCount    int32  `protobuf:"varint,4,opt,name=txCount,proto3" json:"txCount,omitempty"`
	// contains filtered or unexported fields
}

记录平行链第一笔交易的index,以及平行链的roothash title:子链名字,主链的默认是main startIndex:子链第一笔交易的索引 childHash:子链的根hash txCount:子链交易的数量

func (*ChildChain) Descriptor deprecated

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

Deprecated: Use ChildChain.ProtoReflect.Descriptor instead.

func (*ChildChain) GetChildHash

func (x *ChildChain) GetChildHash() []byte

func (*ChildChain) GetStartIndex

func (x *ChildChain) GetStartIndex() int32

func (*ChildChain) GetTitle

func (x *ChildChain) GetTitle() string

func (*ChildChain) GetTxCount

func (x *ChildChain) GetTxCount() int32

func (*ChildChain) ProtoMessage

func (*ChildChain) ProtoMessage()

func (*ChildChain) ProtoReflect added in v1.65.3

func (x *ChildChain) ProtoReflect() protoreflect.Message

func (*ChildChain) Reset

func (x *ChildChain) Reset()

func (*ChildChain) String

func (x *ChildChain) String() string

type ChunkInfo added in v1.65.0

type ChunkInfo struct {
	ChunkNum  int64  `protobuf:"varint,1,opt,name=chunkNum,proto3" json:"chunkNum,omitempty"`
	ChunkHash []byte `protobuf:"bytes,2,opt,name=chunkHash,proto3" json:"chunkHash,omitempty"`
	Start     int64  `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End       int64  `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

ChunkInfo用于记录chunk的信息

func (*ChunkInfo) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ChunkInfo.ProtoReflect.Descriptor instead.

func (*ChunkInfo) GetChunkHash added in v1.65.0

func (x *ChunkInfo) GetChunkHash() []byte

func (*ChunkInfo) GetChunkNum added in v1.65.0

func (x *ChunkInfo) GetChunkNum() int64

func (*ChunkInfo) GetEnd added in v1.65.0

func (x *ChunkInfo) GetEnd() int64

func (*ChunkInfo) GetStart added in v1.65.0

func (x *ChunkInfo) GetStart() int64

func (*ChunkInfo) ProtoMessage added in v1.65.0

func (*ChunkInfo) ProtoMessage()

func (*ChunkInfo) ProtoReflect added in v1.65.3

func (x *ChunkInfo) ProtoReflect() protoreflect.Message

func (*ChunkInfo) Reset added in v1.65.0

func (x *ChunkInfo) Reset()

func (*ChunkInfo) String added in v1.65.0

func (x *ChunkInfo) String() string

type ChunkInfoList added in v1.65.0

type ChunkInfoList struct {
	Items []*ChunkInfoMsg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunkInfoList) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ChunkInfoList.ProtoReflect.Descriptor instead.

func (*ChunkInfoList) GetItems added in v1.65.0

func (x *ChunkInfoList) GetItems() []*ChunkInfoMsg

func (*ChunkInfoList) ProtoMessage added in v1.65.0

func (*ChunkInfoList) ProtoMessage()

func (*ChunkInfoList) ProtoReflect added in v1.65.3

func (x *ChunkInfoList) ProtoReflect() protoreflect.Message

func (*ChunkInfoList) Reset added in v1.65.0

func (x *ChunkInfoList) Reset()

func (*ChunkInfoList) String added in v1.65.0

func (x *ChunkInfoList) String() string

type ChunkInfoMsg added in v1.65.0

type ChunkInfoMsg struct {
	ChunkHash []byte `protobuf:"bytes,1,opt,name=chunkHash,proto3" json:"chunkHash,omitempty"`
	Start     int64  `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	End       int64  `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

ChunkInfoMsg 用于消息传递

func (*ChunkInfoMsg) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ChunkInfoMsg.ProtoReflect.Descriptor instead.

func (*ChunkInfoMsg) GetChunkHash added in v1.65.0

func (x *ChunkInfoMsg) GetChunkHash() []byte

func (*ChunkInfoMsg) GetEnd added in v1.65.0

func (x *ChunkInfoMsg) GetEnd() int64

func (*ChunkInfoMsg) GetStart added in v1.65.0

func (x *ChunkInfoMsg) GetStart() int64

func (*ChunkInfoMsg) ProtoMessage added in v1.65.0

func (*ChunkInfoMsg) ProtoMessage()

func (*ChunkInfoMsg) ProtoReflect added in v1.65.3

func (x *ChunkInfoMsg) ProtoReflect() protoreflect.Message

func (*ChunkInfoMsg) Reset added in v1.65.0

func (x *ChunkInfoMsg) Reset()

func (*ChunkInfoMsg) String added in v1.65.0

func (x *ChunkInfoMsg) String() string

type ChunkProvider added in v1.65.3

type ChunkProvider struct {
	ChunkHash []byte      `protobuf:"bytes,1,opt,name=chunkHash,proto3" json:"chunkHash,omitempty"`
	PeerInfos []*PeerInfo `protobuf:"bytes,2,rep,name=peerInfos,proto3" json:"peerInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*ChunkProvider) Descriptor deprecated added in v1.65.3

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

Deprecated: Use ChunkProvider.ProtoReflect.Descriptor instead.

func (*ChunkProvider) GetChunkHash added in v1.65.3

func (x *ChunkProvider) GetChunkHash() []byte

func (*ChunkProvider) GetPeerInfos added in v1.65.3

func (x *ChunkProvider) GetPeerInfos() []*PeerInfo

func (*ChunkProvider) ProtoMessage added in v1.65.3

func (*ChunkProvider) ProtoMessage()

func (*ChunkProvider) ProtoReflect added in v1.65.3

func (x *ChunkProvider) ProtoReflect() protoreflect.Message

func (*ChunkProvider) Reset added in v1.65.3

func (x *ChunkProvider) Reset()

func (*ChunkProvider) String added in v1.65.3

func (x *ChunkProvider) String() string

type ChunkRecords added in v1.65.0

type ChunkRecords struct {
	Infos []*ChunkInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
	// contains filtered or unexported fields
}

ChunkRecords

func (*ChunkRecords) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ChunkRecords.ProtoReflect.Descriptor instead.

func (*ChunkRecords) GetInfos added in v1.65.0

func (x *ChunkRecords) GetInfos() []*ChunkInfo

func (*ChunkRecords) ProtoMessage added in v1.65.0

func (*ChunkRecords) ProtoMessage()

func (*ChunkRecords) ProtoReflect added in v1.65.3

func (x *ChunkRecords) ProtoReflect() protoreflect.Message

func (*ChunkRecords) Reset added in v1.65.0

func (x *ChunkRecords) Reset()

func (*ChunkRecords) String added in v1.65.0

func (x *ChunkRecords) String() string

type ClientReply

type ClientReply struct {
	View      uint32  `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Timestamp string  `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Client    string  `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	Replica   uint32  `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
	Result    *Result `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientReply) Descriptor deprecated

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

Deprecated: Use ClientReply.ProtoReflect.Descriptor instead.

func (*ClientReply) GetClient

func (x *ClientReply) GetClient() string

func (*ClientReply) GetReplica

func (x *ClientReply) GetReplica() uint32

func (*ClientReply) GetResult

func (x *ClientReply) GetResult() *Result

func (*ClientReply) GetTimestamp

func (x *ClientReply) GetTimestamp() string

func (*ClientReply) GetView

func (x *ClientReply) GetView() uint32

func (*ClientReply) ProtoMessage

func (*ClientReply) ProtoMessage()

func (*ClientReply) ProtoReflect added in v1.65.3

func (x *ClientReply) ProtoReflect() protoreflect.Message

func (*ClientReply) Reset

func (x *ClientReply) Reset()

func (*ClientReply) String

func (x *ClientReply) String() string

type CmpBlock

type CmpBlock struct {
	Block   *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	CmpHash []byte `protobuf:"bytes,2,opt,name=cmpHash,proto3" json:"cmpHash,omitempty"`
	// contains filtered or unexported fields
}

用于比较最优区块的消息结构

func (*CmpBlock) Descriptor deprecated

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

Deprecated: Use CmpBlock.ProtoReflect.Descriptor instead.

func (*CmpBlock) GetBlock

func (x *CmpBlock) GetBlock() *Block

func (*CmpBlock) GetCmpHash

func (x *CmpBlock) GetCmpHash() []byte

func (*CmpBlock) ProtoMessage

func (*CmpBlock) ProtoMessage()

func (*CmpBlock) ProtoReflect added in v1.65.3

func (x *CmpBlock) ProtoReflect() protoreflect.Message

func (*CmpBlock) Reset

func (x *CmpBlock) Reset()

func (*CmpBlock) String

func (x *CmpBlock) String() string

type ConfQuery

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

ConfQuery 结构体

func Conf

func Conf(cfg *Chain33Config, prefix string) *ConfQuery

Conf 配置

func ConfSub

func ConfSub(cfg *Chain33Config, name string) *ConfQuery

ConfSub 子模块配置

func (*ConfQuery) G

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

G 获取指定key的配置信息

func (*ConfQuery) GInt

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

GInt 解析int类型

func (*ConfQuery) GStr

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

GStr 解析string类型

func (*ConfQuery) GStrList

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

GStrList 解析字符串列表

func (*ConfQuery) IsEnable

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

IsEnable 解析bool类型

func (*ConfQuery) MG

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

MG 解析mversion

func (*ConfQuery) MGInt

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

MGInt 解析mversion int类型配置

func (*ConfQuery) MGStr

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

MGStr 解析mversion string类型配置

func (*ConfQuery) MGStrList

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

MGStrList 解析mversion string list类型配置

func (*ConfQuery) MIsEnable

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

MIsEnable 解析mversion bool类型配置

type Config

type Config struct {
	Title            string         `json:"title,omitempty"`
	Version          string         `json:"version,omitempty"`
	Log              *Log           `json:"log,omitempty"`
	Store            *Store         `json:"store,omitempty"`
	Consensus        *Consensus     `json:"consensus,omitempty"`
	Mempool          *Mempool       `json:"memPool,omitempty"`
	BlockChain       *BlockChain    `json:"blockChain,omitempty"`
	Wallet           *Wallet        `json:"wallet,omitempty"`
	P2P              *P2P           `json:"p2p,omitempty"`
	RPC              *RPC           `json:"rpc,omitempty"`
	Exec             *Exec          `json:"exec,omitempty"`
	TestNet          bool           `json:"testNet,omitempty"`
	FixTime          bool           `json:"fixTime,omitempty"`
	TxHeight         bool           `json:"txHeight,omitempty"`
	Pprof            *Pprof         `json:"pprof,omitempty"`
	Fork             *ForkList      `json:"fork,omitempty"`
	Health           *HealthCheck   `json:"health,omitempty"`
	CoinExec         string         `json:"coinExec,omitempty"`
	CoinSymbol       string         `json:"coinSymbol,omitempty"`
	CoinPrecision    int64          `json:"coinPrecision,omitempty"`
	TokenPrecision   int64          `json:"tokenPrecision,omitempty"`
	DisableForkCheck bool           `json:"disableForkCheck,omitempty"`
	EnableParaFork   bool           `json:"enableParaFork,omitempty"`
	Metrics          *Metrics       `json:"metrics,omitempty"`
	ChainID          int32          `json:"chainID,omitempty"`
	AddrVer          byte           `json:"addrVer,omitempty"`
	Crypto           *crypto.Config `json:"crypto,omitempty"`
	NtpHosts         []string       `json:"ntpHosts,omitempty"`
}

Config 配置信息

type ConfigItem

type ConfigItem struct {
	Key  string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// Types that are assignable to Value:
	//	*ConfigItem_Arr
	//	*ConfigItem_Str
	//	*ConfigItem_Int
	Value isConfigItem_Value `protobuf_oneof:"value"`
	Ty    int32              `protobuf:"varint,11,opt,name=Ty,proto3" json:"Ty,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigItem) Descriptor deprecated

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

Deprecated: Use ConfigItem.ProtoReflect.Descriptor instead.

func (*ConfigItem) GetAddr

func (x *ConfigItem) GetAddr() string

func (*ConfigItem) GetArr

func (x *ConfigItem) GetArr() *ArrayConfig

func (*ConfigItem) GetInt

func (x *ConfigItem) GetInt() *Int32Config

func (*ConfigItem) GetKey

func (x *ConfigItem) GetKey() string

func (*ConfigItem) GetStr

func (x *ConfigItem) GetStr() *StringConfig

func (*ConfigItem) GetTy

func (x *ConfigItem) GetTy() int32

func (*ConfigItem) GetValue

func (m *ConfigItem) GetValue() isConfigItem_Value

func (*ConfigItem) ProtoMessage

func (*ConfigItem) ProtoMessage()

func (*ConfigItem) ProtoReflect added in v1.65.3

func (x *ConfigItem) ProtoReflect() protoreflect.Message

func (*ConfigItem) Reset

func (x *ConfigItem) Reset()

func (*ConfigItem) String

func (x *ConfigItem) String() string

type ConfigItem_Arr

type ConfigItem_Arr struct {
	Arr *ArrayConfig `protobuf:"bytes,3,opt,name=arr,proto3,oneof"`
}

type ConfigItem_Int

type ConfigItem_Int struct {
	Int *Int32Config `protobuf:"bytes,5,opt,name=int,proto3,oneof"`
}

type ConfigItem_Str

type ConfigItem_Str struct {
	Str *StringConfig `protobuf:"bytes,4,opt,name=str,proto3,oneof"`
}

type ConfigSubModule

type ConfigSubModule struct {
	Store     map[string][]byte
	Exec      map[string][]byte
	Consensus map[string][]byte
	Wallet    map[string][]byte
	Mempool   map[string][]byte
	Metrics   map[string][]byte
	P2P       map[string][]byte
	Crypto    map[string][]byte
}

ConfigSubModule 子模块的配置

type Consensus

type Consensus struct {
	// 共识名称 :solo, ticket, raft, tendermint, para
	Name string `json:"name,omitempty"`
	// 创世区块时间(UTC时间)
	GenesisBlockTime int64 `json:"genesisBlockTime,omitempty"`
	// 是否开启挖矿,开启挖矿才能创建区块
	Minerstart bool `json:"minerstart,omitempty"`
	// 创世交易地址
	Genesis     string `json:"genesis,omitempty"`
	HotkeyAddr  string `json:"hotkeyAddr,omitempty"`
	ForceMining bool   `json:"forceMining,omitempty"`
	// 配置挖矿的合约名单
	MinerExecs []string `json:"minerExecs,omitempty"`
	// 最优区块选择
	EnableBestBlockCmp bool `json:"enableBestBlockCmp,omitempty"`
	// 不回滚的共识设为true
	NoneRollback bool `json:"noneRollback,omitempty"`
}

Consensus 配置

type Create

type Create func(cfg *Chain33Config)

Create ...

type CreateTransactionGroup

type CreateTransactionGroup struct {
	Txs []string `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTransactionGroup) Descriptor deprecated

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

Deprecated: Use CreateTransactionGroup.ProtoReflect.Descriptor instead.

func (*CreateTransactionGroup) GetTxs

func (x *CreateTransactionGroup) GetTxs() []string

func (*CreateTransactionGroup) ProtoMessage

func (*CreateTransactionGroup) ProtoMessage()

func (*CreateTransactionGroup) ProtoReflect added in v1.65.3

func (x *CreateTransactionGroup) ProtoReflect() protoreflect.Message

func (*CreateTransactionGroup) Reset

func (x *CreateTransactionGroup) Reset()

func (*CreateTransactionGroup) String

func (x *CreateTransactionGroup) String() string

type CreateTx

type CreateTx struct {
	To          string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Amount      int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Fee         int64  `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
	Note        []byte `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	IsWithdraw  bool   `protobuf:"varint,5,opt,name=isWithdraw,proto3" json:"isWithdraw,omitempty"`
	IsToken     bool   `protobuf:"varint,6,opt,name=isToken,proto3" json:"isToken,omitempty"`
	TokenSymbol string `protobuf:"bytes,7,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	ExecName    string `protobuf:"bytes,8,opt,name=execName,proto3" json:"execName,omitempty"`
	Execer      string `protobuf:"bytes,9,opt,name=execer,proto3" json:"execer,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTx) Descriptor deprecated

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

Deprecated: Use CreateTx.ProtoReflect.Descriptor instead.

func (*CreateTx) GetAmount

func (x *CreateTx) GetAmount() int64

func (*CreateTx) GetExecName

func (x *CreateTx) GetExecName() string

func (*CreateTx) GetExecer

func (x *CreateTx) GetExecer() string

func (*CreateTx) GetFee

func (x *CreateTx) GetFee() int64

func (*CreateTx) GetIsToken

func (x *CreateTx) GetIsToken() bool

func (*CreateTx) GetIsWithdraw

func (x *CreateTx) GetIsWithdraw() bool

func (*CreateTx) GetNote

func (x *CreateTx) GetNote() []byte

func (*CreateTx) GetTo

func (x *CreateTx) GetTo() string

func (*CreateTx) GetTokenSymbol

func (x *CreateTx) GetTokenSymbol() string

func (*CreateTx) ProtoMessage

func (*CreateTx) ProtoMessage()

func (*CreateTx) ProtoReflect added in v1.65.3

func (x *CreateTx) ProtoReflect() protoreflect.Message

func (*CreateTx) Reset

func (x *CreateTx) Reset()

func (*CreateTx) String

func (x *CreateTx) String() string

type CreateTxIn

type CreateTxIn struct {
	Execer     []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	ActionName string `protobuf:"bytes,2,opt,name=actionName,proto3" json:"actionName,omitempty"`
	Payload    []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTxIn) Descriptor deprecated

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

Deprecated: Use CreateTxIn.ProtoReflect.Descriptor instead.

func (*CreateTxIn) GetActionName

func (x *CreateTxIn) GetActionName() string

func (*CreateTxIn) GetExecer

func (x *CreateTxIn) GetExecer() []byte

func (*CreateTxIn) GetPayload

func (x *CreateTxIn) GetPayload() []byte

func (*CreateTxIn) ProtoMessage

func (*CreateTxIn) ProtoMessage()

func (*CreateTxIn) ProtoReflect added in v1.65.3

func (x *CreateTxIn) ProtoReflect() protoreflect.Message

func (*CreateTxIn) Reset

func (x *CreateTxIn) Reset()

func (*CreateTxIn) String

func (x *CreateTxIn) String() string

type Crypto added in v1.65.3

type Crypto struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TypeID int32  `protobuf:"varint,2,opt,name=typeID,proto3" json:"typeID,omitempty"`
	// contains filtered or unexported fields
}

数字签名加密算法类型

func (*Crypto) Descriptor deprecated added in v1.65.3

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

Deprecated: Use Crypto.ProtoReflect.Descriptor instead.

func (*Crypto) GetName added in v1.65.3

func (x *Crypto) GetName() string

func (*Crypto) GetTypeID added in v1.65.3

func (x *Crypto) GetTypeID() int32

func (*Crypto) ProtoMessage added in v1.65.3

func (*Crypto) ProtoMessage()

func (*Crypto) ProtoReflect added in v1.65.3

func (x *Crypto) ProtoReflect() protoreflect.Message

func (*Crypto) Reset added in v1.65.3

func (x *Crypto) Reset()

func (*Crypto) String added in v1.65.3

func (x *Crypto) String() string

type CryptoList added in v1.65.3

type CryptoList struct {
	Cryptos []*Crypto `protobuf:"bytes,1,rep,name=cryptos,proto3" json:"cryptos,omitempty"`
	// contains filtered or unexported fields
}

func (*CryptoList) Descriptor deprecated added in v1.65.3

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

Deprecated: Use CryptoList.ProtoReflect.Descriptor instead.

func (*CryptoList) GetCryptos added in v1.65.3

func (x *CryptoList) GetCryptos() []*Crypto

func (*CryptoList) ProtoMessage added in v1.65.3

func (*CryptoList) ProtoMessage()

func (*CryptoList) ProtoReflect added in v1.65.3

func (x *CryptoList) ProtoReflect() protoreflect.Message

func (*CryptoList) Reset added in v1.65.3

func (x *CryptoList) Reset()

func (*CryptoList) String added in v1.65.3

func (x *CryptoList) String() string

type DelayTx added in v1.65.3

type DelayTx struct {
	Tx           *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	EndDelayTime int64        `protobuf:"varint,2,opt,name=endDelayTime,proto3" json:"endDelayTime,omitempty"`
	// contains filtered or unexported fields
}

延时交易

func (*DelayTx) Descriptor deprecated added in v1.65.3

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

Deprecated: Use DelayTx.ProtoReflect.Descriptor instead.

func (*DelayTx) GetEndDelayTime added in v1.65.3

func (x *DelayTx) GetEndDelayTime() int64

func (*DelayTx) GetTx added in v1.65.3

func (x *DelayTx) GetTx() *Transaction

func (*DelayTx) ProtoMessage added in v1.65.3

func (*DelayTx) ProtoMessage()

func (*DelayTx) ProtoReflect added in v1.65.3

func (x *DelayTx) ProtoReflect() protoreflect.Message

func (*DelayTx) Reset added in v1.65.3

func (x *DelayTx) Reset()

func (*DelayTx) String added in v1.65.3

func (x *DelayTx) String() string

type EVMContractAction4Chain33 added in v1.65.3

type EVMContractAction4Chain33 struct {

	// 转账金额
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// 消耗限制,默认为Transaction.Fee
	GasLimit uint64 `protobuf:"varint,2,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"`
	// gas价格,默认为1
	GasPrice uint32 `protobuf:"varint,3,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	// 合约数据
	Code []byte `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
	//交易参数
	Para []byte `protobuf:"bytes,5,opt,name=para,proto3" json:"para,omitempty"`
	// 合约别名,方便识别
	Alias string `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"`
	// 交易备注
	Note string `protobuf:"bytes,7,opt,name=note,proto3" json:"note,omitempty"`
	// 调用合约地址
	ContractAddr string `protobuf:"bytes,8,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"`
	// contains filtered or unexported fields
}

创建/调用合约的请求结构

func (*EVMContractAction4Chain33) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EVMContractAction4Chain33.ProtoReflect.Descriptor instead.

func (*EVMContractAction4Chain33) GetAlias added in v1.65.3

func (x *EVMContractAction4Chain33) GetAlias() string

func (*EVMContractAction4Chain33) GetAmount added in v1.65.3

func (x *EVMContractAction4Chain33) GetAmount() uint64

func (*EVMContractAction4Chain33) GetCode added in v1.65.3

func (x *EVMContractAction4Chain33) GetCode() []byte

func (*EVMContractAction4Chain33) GetContractAddr added in v1.65.3

func (x *EVMContractAction4Chain33) GetContractAddr() string

func (*EVMContractAction4Chain33) GetGasLimit added in v1.65.3

func (x *EVMContractAction4Chain33) GetGasLimit() uint64

func (*EVMContractAction4Chain33) GetGasPrice added in v1.65.3

func (x *EVMContractAction4Chain33) GetGasPrice() uint32

func (*EVMContractAction4Chain33) GetNote added in v1.65.3

func (x *EVMContractAction4Chain33) GetNote() string

func (*EVMContractAction4Chain33) GetPara added in v1.65.3

func (x *EVMContractAction4Chain33) GetPara() []byte

func (*EVMContractAction4Chain33) ProtoMessage added in v1.65.3

func (*EVMContractAction4Chain33) ProtoMessage()

func (*EVMContractAction4Chain33) ProtoReflect added in v1.65.3

func (*EVMContractAction4Chain33) Reset added in v1.65.3

func (x *EVMContractAction4Chain33) Reset()

func (*EVMContractAction4Chain33) String added in v1.65.3

func (x *EVMContractAction4Chain33) String() string

type EVMLog added in v1.65.3

type EVMLog struct {
	Topic [][]byte `protobuf:"bytes,1,rep,name=topic,proto3" json:"topic,omitempty"`
	Data  []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

一条evm event log数据

func (*EVMLog) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EVMLog.ProtoReflect.Descriptor instead.

func (*EVMLog) GetData added in v1.65.3

func (x *EVMLog) GetData() []byte

func (*EVMLog) GetTopic added in v1.65.3

func (x *EVMLog) GetTopic() [][]byte

func (*EVMLog) ProtoMessage added in v1.65.3

func (*EVMLog) ProtoMessage()

func (*EVMLog) ProtoReflect added in v1.65.3

func (x *EVMLog) ProtoReflect() protoreflect.Message

func (*EVMLog) Reset added in v1.65.3

func (x *EVMLog) Reset()

func (*EVMLog) String added in v1.65.3

func (x *EVMLog) String() string

type EVMLogsPerTx added in v1.65.3

type EVMLogsPerTx struct {
	Logs []*EVMLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

多条evm event log数据

func (*EVMLogsPerTx) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EVMLogsPerTx.ProtoReflect.Descriptor instead.

func (*EVMLogsPerTx) GetLogs added in v1.65.3

func (x *EVMLogsPerTx) GetLogs() []*EVMLog

func (*EVMLogsPerTx) ProtoMessage added in v1.65.3

func (*EVMLogsPerTx) ProtoMessage()

func (*EVMLogsPerTx) ProtoReflect added in v1.65.3

func (x *EVMLogsPerTx) ProtoReflect() protoreflect.Message

func (*EVMLogsPerTx) Reset added in v1.65.3

func (x *EVMLogsPerTx) Reset()

func (*EVMLogsPerTx) String added in v1.65.3

func (x *EVMLogsPerTx) String() string

type EVMTxAndLogs added in v1.65.3

type EVMTxAndLogs struct {
	Tx        *Transaction  `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	LogsPerTx *EVMLogsPerTx `protobuf:"bytes,2,opt,name=logsPerTx,proto3" json:"logsPerTx,omitempty"`
	// contains filtered or unexported fields
}

func (*EVMTxAndLogs) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EVMTxAndLogs.ProtoReflect.Descriptor instead.

func (*EVMTxAndLogs) GetLogsPerTx added in v1.65.3

func (x *EVMTxAndLogs) GetLogsPerTx() *EVMLogsPerTx

func (*EVMTxAndLogs) GetTx added in v1.65.3

func (x *EVMTxAndLogs) GetTx() *Transaction

func (*EVMTxAndLogs) ProtoMessage added in v1.65.3

func (*EVMTxAndLogs) ProtoMessage()

func (*EVMTxAndLogs) ProtoReflect added in v1.65.3

func (x *EVMTxAndLogs) ProtoReflect() protoreflect.Message

func (*EVMTxAndLogs) Reset added in v1.65.3

func (x *EVMTxAndLogs) Reset()

func (*EVMTxAndLogs) String added in v1.65.3

func (x *EVMTxAndLogs) String() string

type EVMTxLogPerBlk added in v1.65.3

type EVMTxLogPerBlk struct {
	TxAndLogs    []*EVMTxAndLogs `protobuf:"bytes,1,rep,name=txAndLogs,proto3" json:"txAndLogs,omitempty"`
	Height       int64           `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	BlockHash    []byte          `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	ParentHash   []byte          `protobuf:"bytes,4,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	PreviousHash []byte          `protobuf:"bytes,5,opt,name=previousHash,proto3" json:"previousHash,omitempty"`
	AddDelType   int32           `protobuf:"varint,6,opt,name=addDelType,proto3" json:"addDelType,omitempty"`
	SeqNum       int64           `protobuf:"varint,7,opt,name=seqNum,proto3" json:"seqNum,omitempty"`
	// contains filtered or unexported fields
}

一个块中包含的多条evm event log数据

func (*EVMTxLogPerBlk) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EVMTxLogPerBlk.ProtoReflect.Descriptor instead.

func (*EVMTxLogPerBlk) GetAddDelType added in v1.65.3

func (x *EVMTxLogPerBlk) GetAddDelType() int32

func (*EVMTxLogPerBlk) GetBlockHash added in v1.65.3

func (x *EVMTxLogPerBlk) GetBlockHash() []byte

func (*EVMTxLogPerBlk) GetHeight added in v1.65.3

func (x *EVMTxLogPerBlk) GetHeight() int64

func (*EVMTxLogPerBlk) GetParentHash added in v1.65.3

func (x *EVMTxLogPerBlk) GetParentHash() []byte

func (*EVMTxLogPerBlk) GetPreviousHash added in v1.65.3

func (x *EVMTxLogPerBlk) GetPreviousHash() []byte

func (*EVMTxLogPerBlk) GetSeqNum added in v1.65.3

func (x *EVMTxLogPerBlk) GetSeqNum() int64

func (*EVMTxLogPerBlk) GetTxAndLogs added in v1.65.3

func (x *EVMTxLogPerBlk) GetTxAndLogs() []*EVMTxAndLogs

func (*EVMTxLogPerBlk) ProtoMessage added in v1.65.3

func (*EVMTxLogPerBlk) ProtoMessage()

func (*EVMTxLogPerBlk) ProtoReflect added in v1.65.3

func (x *EVMTxLogPerBlk) ProtoReflect() protoreflect.Message

func (*EVMTxLogPerBlk) Reset added in v1.65.3

func (x *EVMTxLogPerBlk) Reset()

func (*EVMTxLogPerBlk) String added in v1.65.3

func (x *EVMTxLogPerBlk) String() string

type EVMTxLogsInBlks added in v1.65.3

type EVMTxLogsInBlks struct {
	Logs4EVMPerBlk []*EVMTxLogPerBlk `protobuf:"bytes,1,rep,name=logs4EVMPerBlk,proto3" json:"logs4EVMPerBlk,omitempty"`
	// contains filtered or unexported fields
}

多个块中包含的多条evm event log数据

func (*EVMTxLogsInBlks) Descriptor deprecated added in v1.65.3

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

Deprecated: Use EVMTxLogsInBlks.ProtoReflect.Descriptor instead.

func (*EVMTxLogsInBlks) GetLogs4EVMPerBlk added in v1.65.3

func (x *EVMTxLogsInBlks) GetLogs4EVMPerBlk() []*EVMTxLogPerBlk

func (*EVMTxLogsInBlks) ProtoMessage added in v1.65.3

func (*EVMTxLogsInBlks) ProtoMessage()

func (*EVMTxLogsInBlks) ProtoReflect added in v1.65.3

func (x *EVMTxLogsInBlks) ProtoReflect() protoreflect.Message

func (*EVMTxLogsInBlks) Reset added in v1.65.3

func (x *EVMTxLogsInBlks) Reset()

func (*EVMTxLogsInBlks) String added in v1.65.3

func (x *EVMTxLogsInBlks) String() string

type EndBlock

type EndBlock struct {
	Height int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash   []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

存储block高度和hash

func (*EndBlock) Descriptor deprecated

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

Deprecated: Use EndBlock.ProtoReflect.Descriptor instead.

func (*EndBlock) GetHash

func (x *EndBlock) GetHash() []byte

func (*EndBlock) GetHeight

func (x *EndBlock) GetHeight() int64

func (*EndBlock) ProtoMessage

func (*EndBlock) ProtoMessage()

func (*EndBlock) ProtoReflect added in v1.65.3

func (x *EndBlock) ProtoReflect() protoreflect.Message

func (*EndBlock) Reset

func (x *EndBlock) Reset()

func (*EndBlock) String

func (x *EndBlock) String() string

type Entry

type Entry struct {
	Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest   []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	View     uint32 `protobuf:"varint,3,opt,name=view,proto3" json:"view,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetDigest

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

func (*Entry) GetSequence

func (x *Entry) GetSequence() uint32

func (*Entry) GetView

func (x *Entry) GetView() uint32

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect added in v1.65.3

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type Exec

type Exec struct {
	// 是否开启stat插件
	EnableStat bool `json:"enableStat,omitempty"`
	// 是否开启MVCC插件
	EnableMVCC       bool     `json:"enableMVCC,omitempty"`
	DisableAddrIndex bool     `json:"disableAddrIndex,omitempty"`
	Alias            []string `json:"alias,omitempty"`
	// 是否保存token交易信息
	SaveTokenTxList    bool `json:"saveTokenTxList,omitempty"`
	EnableAddrFeeIndex bool `json:"enableAddrFeeIndex,omitempty"`
	DisableTxIndex     bool `json:"disableTxIndex,omitempty"`
	DisableFeeIndex    bool `json:"disableFeeIndex,omitempty"`
	DisableTxDupCheck  bool `json:"disableTxDupCheck,omitempty"`
	DisableExecLocal   bool `json:"disableExecLocal,omitempty"`
}

Exec 配置

type ExecAccount

type ExecAccount struct {
	Execer  string   `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	Account *Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecAccount) Descriptor deprecated

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

Deprecated: Use ExecAccount.ProtoReflect.Descriptor instead.

func (*ExecAccount) GetAccount

func (x *ExecAccount) GetAccount() *Account

func (*ExecAccount) GetExecer

func (x *ExecAccount) GetExecer() string

func (*ExecAccount) ProtoMessage

func (*ExecAccount) ProtoMessage()

func (*ExecAccount) ProtoReflect added in v1.65.3

func (x *ExecAccount) ProtoReflect() protoreflect.Message

func (*ExecAccount) Reset

func (x *ExecAccount) Reset()

func (*ExecAccount) String

func (x *ExecAccount) String() string

type ExecBalanceItem

type ExecBalanceItem struct {
	ExecAddr []byte `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
	Frozen   int64  `protobuf:"varint,2,opt,name=frozen,proto3" json:"frozen,omitempty"`
	Active   int64  `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecBalanceItem) Descriptor deprecated

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

Deprecated: Use ExecBalanceItem.ProtoReflect.Descriptor instead.

func (*ExecBalanceItem) GetActive

func (x *ExecBalanceItem) GetActive() int64

func (*ExecBalanceItem) GetExecAddr

func (x *ExecBalanceItem) GetExecAddr() []byte

func (*ExecBalanceItem) GetFrozen

func (x *ExecBalanceItem) GetFrozen() int64

func (*ExecBalanceItem) ProtoMessage

func (*ExecBalanceItem) ProtoMessage()

func (*ExecBalanceItem) ProtoReflect added in v1.65.3

func (x *ExecBalanceItem) ProtoReflect() protoreflect.Message

func (*ExecBalanceItem) Reset

func (x *ExecBalanceItem) Reset()

func (*ExecBalanceItem) String

func (x *ExecBalanceItem) String() string

type ExecTxList

type ExecTxList struct {
	StateHash  []byte         `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	ParentHash []byte         `protobuf:"bytes,7,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	MainHash   []byte         `protobuf:"bytes,8,opt,name=mainHash,proto3" json:"mainHash,omitempty"`
	MainHeight int64          `protobuf:"varint,9,opt,name=mainHeight,proto3" json:"mainHeight,omitempty"`
	BlockTime  int64          `protobuf:"varint,3,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	Height     int64          `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Difficulty uint64         `protobuf:"varint,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	IsMempool  bool           `protobuf:"varint,6,opt,name=isMempool,proto3" json:"isMempool,omitempty"`
	Txs        []*Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecTxList) Descriptor deprecated

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

Deprecated: Use ExecTxList.ProtoReflect.Descriptor instead.

func (*ExecTxList) GetBlockTime

func (x *ExecTxList) GetBlockTime() int64

func (*ExecTxList) GetDifficulty

func (x *ExecTxList) GetDifficulty() uint64

func (*ExecTxList) GetHeight

func (x *ExecTxList) GetHeight() int64

func (*ExecTxList) GetIsMempool

func (x *ExecTxList) GetIsMempool() bool

func (*ExecTxList) GetMainHash

func (x *ExecTxList) GetMainHash() []byte

func (*ExecTxList) GetMainHeight

func (x *ExecTxList) GetMainHeight() int64

func (*ExecTxList) GetParentHash

func (x *ExecTxList) GetParentHash() []byte

func (*ExecTxList) GetStateHash

func (x *ExecTxList) GetStateHash() []byte

func (*ExecTxList) GetTxs

func (x *ExecTxList) GetTxs() []*Transaction

func (*ExecTxList) ProtoMessage

func (*ExecTxList) ProtoMessage()

func (*ExecTxList) ProtoReflect added in v1.65.3

func (x *ExecTxList) ProtoReflect() protoreflect.Message

func (*ExecTxList) Reset

func (x *ExecTxList) Reset()

func (*ExecTxList) String

func (x *ExecTxList) String() string

type ExecTypeBase

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

ExecTypeBase 执行类型

func (*ExecTypeBase) ActionName

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

ActionName 获取交易中payload的action name

func (*ExecTypeBase) Amount

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

Amount 获取tx交易中的转账金额

func (*ExecTypeBase) AssertCreate

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

AssertCreate 构造assets资产交易

func (*ExecTypeBase) Create

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

Create 构造tx交易

func (*ExecTypeBase) CreateQuery

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

CreateQuery Query接口查询

func (*ExecTypeBase) CreateTransaction

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

CreateTransaction 构造Transaction

func (*ExecTypeBase) CreateTx

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

CreateTx 通过json rpc 创建交易

func (*ExecTypeBase) DecodePayload

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

DecodePayload 解析tx交易中的payload

func (*ExecTypeBase) DecodePayloadValue

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

DecodePayloadValue 解析tx交易中的payload具体Value值

func (*ExecTypeBase) GetAction

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

GetAction 获取action

func (*ExecTypeBase) GetAssets

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

GetAssets 获取资产信息

func (*ExecTypeBase) GetChild

func (base *ExecTypeBase) GetChild() ExecutorType

GetChild 获取子执行器

func (*ExecTypeBase) GetConfig

func (base *ExecTypeBase) GetConfig() *Chain33Config

GetConfig ...

func (*ExecTypeBase) GetCryptoDriver

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

GetCryptoDriver 获取Crypto驱动

func (*ExecTypeBase) GetCryptoType

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

GetCryptoType 获取Crypto类型

func (*ExecTypeBase) GetExecFuncMap

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

GetExecFuncMap 获取执行交易的接口列表

func (*ExecTypeBase) GetForks

func (base *ExecTypeBase) GetForks() *Forks

GetForks 获取fork信息

func (*ExecTypeBase) GetFuncMap

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

GetFuncMap 获取函数列表

func (*ExecTypeBase) GetName

func (base *ExecTypeBase) GetName() string

GetName 获取name

func (*ExecTypeBase) GetRPCFuncMap

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

GetRPCFuncMap 获取rpc的接口列表

func (*ExecTypeBase) GetRealToAddr

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

GetRealToAddr 用户看到的ToAddr

func (*ExecTypeBase) GetViewFromToAddr

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

GetViewFromToAddr 用户看到的FromAddr

func (*ExecTypeBase) InitFuncList

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

InitFuncList 初始化函数列表

func (*ExecTypeBase) IsFork

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

IsFork 是否fork高度

func (*ExecTypeBase) QueryToJSON

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

QueryToJSON 转换成json格式

func (*ExecTypeBase) SetChild

func (base *ExecTypeBase) SetChild(child ExecutorType)

SetChild 设置子执行器

func (*ExecTypeBase) SetConfig

func (base *ExecTypeBase) SetConfig(cfg *Chain33Config)

SetConfig ...

type ExecutorType

type ExecutorType interface {
	//获取交易真正的to addr
	GetRealToAddr(tx *Transaction) string
	GetCryptoDriver(ty int) (string, error)
	GetCryptoType(name string) (int, error)
	//给用户显示的from 和 to
	GetViewFromToAddr(tx *Transaction) (string, string)
	ActionName(tx *Transaction) string
	//新版本使用create接口,createTx 重构以后就废弃
	GetAction(action string) (Message, error)
	InitFuncList(list map[string]reflect.Method)
	Create(action string, message Message) (*Transaction, error)
	CreateTx(action string, message json.RawMessage) (*Transaction, error)
	CreateQuery(funcname string, message json.RawMessage) (Message, error)
	AssertCreate(createTx *CreateTx) (*Transaction, error)
	QueryToJSON(funcname string, message Message) ([]byte, error)
	Amount(tx *Transaction) (int64, error)
	DecodePayload(tx *Transaction) (Message, error)
	DecodePayloadValue(tx *Transaction) (string, reflect.Value, error)
	//write for executor
	GetPayload() Message
	GetChild() ExecutorType
	GetName() string
	//exec result of receipt log
	GetLogMap() map[int64]*LogInfo
	GetForks() *Forks
	IsFork(height int64, key string) bool
	//actionType -> name map
	GetTypeMap() map[string]int32
	//action function list map
	GetFuncMap() map[string]reflect.Method
	GetRPCFuncMap() map[string]reflect.Method
	GetExecFuncMap() map[string]reflect.Method
	CreateTransaction(action string, data Message) (*Transaction, error)
	// collect assets the tx deal with
	GetAssets(tx *Transaction) ([]*Asset, error)

	// about chain33Config
	GetConfig() *Chain33Config
	SetConfig(cfg *Chain33Config)
}

ExecutorType 执行器接口

func LoadExecutorType

func LoadExecutorType(execstr string) ExecutorType

LoadExecutorType 加载执行器

type FetchTopicList added in v1.65.0

type FetchTopicList struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchTopicList) Descriptor deprecated added in v1.65.0

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

Deprecated: Use FetchTopicList.ProtoReflect.Descriptor instead.

func (*FetchTopicList) GetModule added in v1.65.0

func (x *FetchTopicList) GetModule() string

func (*FetchTopicList) ProtoMessage added in v1.65.0

func (*FetchTopicList) ProtoMessage()

func (*FetchTopicList) ProtoReflect added in v1.65.3

func (x *FetchTopicList) ProtoReflect() protoreflect.Message

func (*FetchTopicList) Reset added in v1.65.0

func (x *FetchTopicList) Reset()

func (*FetchTopicList) String added in v1.65.0

func (x *FetchTopicList) String() string

type FileHeader

type FileHeader struct {
	StartHeight int64  `protobuf:"varint,1,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	Driver      string `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"`
	Title       string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	TestNet     bool   `protobuf:"varint,4,opt,name=testNet,proto3" json:"testNet,omitempty"`
	// contains filtered or unexported fields
}

导出block文件头信息

func (*FileHeader) Descriptor deprecated

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

Deprecated: Use FileHeader.ProtoReflect.Descriptor instead.

func (*FileHeader) GetDriver

func (x *FileHeader) GetDriver() string

func (*FileHeader) GetStartHeight

func (x *FileHeader) GetStartHeight() int64

func (*FileHeader) GetTestNet

func (x *FileHeader) GetTestNet() bool

func (*FileHeader) GetTitle

func (x *FileHeader) GetTitle() string

func (*FileHeader) ProtoMessage

func (*FileHeader) ProtoMessage()

func (*FileHeader) ProtoReflect added in v1.65.3

func (x *FileHeader) ProtoReflect() protoreflect.Message

func (*FileHeader) Reset

func (x *FileHeader) Reset()

func (*FileHeader) String

func (x *FileHeader) String() string

type ForkList

type ForkList struct {
	System map[string]int64
	Sub    map[string]map[string]int64
}

ForkList fork列表配置

type Forks

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

Forks fork分叉结构体

func (*Forks) GetAll

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

GetAll 获取所有fork信息

func (*Forks) GetDappFork

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

GetDappFork 获取dapp fork信息

func (*Forks) GetFork

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

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

func (*Forks) HasFork

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

HasFork fork信息是否存在

func (*Forks) IsDappFork

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

IsDappFork 是否dapp fork高度

func (*Forks) IsFork

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

IsFork 是否fork高度

func (*Forks) ReplaceDappFork

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

ReplaceDappFork 替换dapp的fork信息

func (*Forks) ReplaceFork

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

ReplaceFork 替换fork信息

func (*Forks) SetAllFork

func (f *Forks) SetAllFork(height int64)

SetAllFork 设置所有fork的高度

func (*Forks) SetDappFork

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

SetDappFork 设置dapp的fork信息

func (*Forks) SetFork

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

SetFork 设置fork信息

func (*Forks) SetTestNetFork

func (f *Forks) SetTestNetFork()

SetTestNetFork bityuan test net fork

type GenSeedLang

type GenSeedLang struct {
	Lang int32 `protobuf:"varint,1,opt,name=lang,proto3" json:"lang,omitempty"`
	// contains filtered or unexported fields
}

func (*GenSeedLang) Descriptor deprecated

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

Deprecated: Use GenSeedLang.ProtoReflect.Descriptor instead.

func (*GenSeedLang) GetLang

func (x *GenSeedLang) GetLang() int32

func (*GenSeedLang) ProtoMessage

func (*GenSeedLang) ProtoMessage()

func (*GenSeedLang) ProtoReflect added in v1.65.3

func (x *GenSeedLang) ProtoReflect() protoreflect.Message

func (*GenSeedLang) Reset

func (x *GenSeedLang) Reset()

func (*GenSeedLang) String

func (x *GenSeedLang) String() string

type Genesis

type Genesis struct {
	Isrun bool `protobuf:"varint,1,opt,name=isrun,proto3" json:"isrun,omitempty"`
	// contains filtered or unexported fields
}

func (*Genesis) Descriptor deprecated

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

Deprecated: Use Genesis.ProtoReflect.Descriptor instead.

func (*Genesis) GetIsrun

func (x *Genesis) GetIsrun() bool

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) ProtoReflect added in v1.65.3

func (x *Genesis) ProtoReflect() protoreflect.Message

func (*Genesis) Reset

func (x *Genesis) Reset()

func (*Genesis) String

func (x *Genesis) String() string

type GetSeedByPw

type GetSeedByPw struct {
	Passwd string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSeedByPw) Descriptor deprecated

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

Deprecated: Use GetSeedByPw.ProtoReflect.Descriptor instead.

func (*GetSeedByPw) GetPasswd

func (x *GetSeedByPw) GetPasswd() string

func (*GetSeedByPw) ProtoMessage

func (*GetSeedByPw) ProtoMessage()

func (*GetSeedByPw) ProtoReflect added in v1.65.3

func (x *GetSeedByPw) ProtoReflect() protoreflect.Message

func (*GetSeedByPw) Reset

func (x *GetSeedByPw) Reset()

func (*GetSeedByPw) String

func (x *GetSeedByPw) String() string

type HashList added in v1.65.1

type HashList struct {
	Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*HashList) Descriptor deprecated added in v1.65.1

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

Deprecated: Use HashList.ProtoReflect.Descriptor instead.

func (*HashList) GetHashes added in v1.65.1

func (x *HashList) GetHashes() [][]byte

func (*HashList) ProtoMessage added in v1.65.1

func (*HashList) ProtoMessage()

func (*HashList) ProtoReflect added in v1.65.3

func (x *HashList) ProtoReflect() protoreflect.Message

func (*HashList) Reset added in v1.65.1

func (x *HashList) Reset()

func (*HashList) String added in v1.65.1

func (x *HashList) String() string
type Header struct {
	Version    int64      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	ParentHash []byte     `protobuf:"bytes,2,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	TxHash     []byte     `protobuf:"bytes,3,opt,name=txHash,proto3" json:"txHash,omitempty"`
	StateHash  []byte     `protobuf:"bytes,4,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Height     int64      `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	BlockTime  int64      `protobuf:"varint,6,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	TxCount    int64      `protobuf:"varint,9,opt,name=txCount,proto3" json:"txCount,omitempty"`
	Hash       []byte     `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
	Difficulty uint32     `protobuf:"varint,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	Signature  *Signature `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

区块头信息

version : 版本信息
parentHash :父哈希
txHash : 交易根哈希
stateHash :状态哈希
height : 区块高度
blockTime :区块产生时的时标
txCount : 区块上所有交易个数
difficulty :区块难度系数,
signature :交易签名

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetBlockTime

func (x *Header) GetBlockTime() int64

func (*Header) GetDifficulty

func (x *Header) GetDifficulty() uint32

func (*Header) GetHash

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

func (*Header) GetHeight

func (x *Header) GetHeight() int64

func (*Header) GetParentHash

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

func (*Header) GetSignature

func (x *Header) GetSignature() *Signature

func (*Header) GetStateHash

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

func (*Header) GetTxCount

func (x *Header) GetTxCount() int64

func (*Header) GetTxHash

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

func (*Header) GetVersion

func (x *Header) GetVersion() int64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect added in v1.65.3

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) Size

func (header *Header) Size() int

Size 获取header的Size

func (*Header) String

func (x *Header) String() string

type HeaderSeq

type HeaderSeq struct {
	Num    int64          `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Seq    *BlockSequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq,omitempty"`
	Header *Header        `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

通过seq获取区块的header信息

func (*HeaderSeq) Descriptor deprecated

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

Deprecated: Use HeaderSeq.ProtoReflect.Descriptor instead.

func (*HeaderSeq) GetHeader

func (x *HeaderSeq) GetHeader() *Header

func (*HeaderSeq) GetNum

func (x *HeaderSeq) GetNum() int64

func (*HeaderSeq) GetSeq

func (x *HeaderSeq) GetSeq() *BlockSequence

func (*HeaderSeq) ProtoMessage

func (*HeaderSeq) ProtoMessage()

func (*HeaderSeq) ProtoReflect added in v1.65.3

func (x *HeaderSeq) ProtoReflect() protoreflect.Message

func (*HeaderSeq) Reset

func (x *HeaderSeq) Reset()

func (*HeaderSeq) String

func (x *HeaderSeq) String() string

type HeaderSeqs

type HeaderSeqs struct {
	Seqs []*HeaderSeq `protobuf:"bytes,1,rep,name=seqs,proto3" json:"seqs,omitempty"`
	// contains filtered or unexported fields
}

批量推送区块的header信息

func (*HeaderSeqs) Descriptor deprecated

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

Deprecated: Use HeaderSeqs.ProtoReflect.Descriptor instead.

func (*HeaderSeqs) GetSeqs

func (x *HeaderSeqs) GetSeqs() []*HeaderSeq

func (*HeaderSeqs) ProtoMessage

func (*HeaderSeqs) ProtoMessage()

func (*HeaderSeqs) ProtoReflect added in v1.65.3

func (x *HeaderSeqs) ProtoReflect() protoreflect.Message

func (*HeaderSeqs) Reset

func (x *HeaderSeqs) Reset()

func (*HeaderSeqs) String

func (x *HeaderSeqs) String() string

type Headers

type Headers struct {
	Items []*Header `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

resp

func (*Headers) Descriptor deprecated

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

Deprecated: Use Headers.ProtoReflect.Descriptor instead.

func (*Headers) GetItems

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

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) ProtoReflect added in v1.65.3

func (x *Headers) ProtoReflect() protoreflect.Message

func (*Headers) Reset

func (x *Headers) Reset()

func (*Headers) String

func (x *Headers) String() string

type HeadersPid

type HeadersPid struct {
	Pid     string   `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
	Headers *Headers `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*HeadersPid) Descriptor deprecated

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

Deprecated: Use HeadersPid.ProtoReflect.Descriptor instead.

func (*HeadersPid) GetHeaders

func (x *HeadersPid) GetHeaders() *Headers

func (*HeadersPid) GetPid

func (x *HeadersPid) GetPid() string

func (*HeadersPid) ProtoMessage

func (*HeadersPid) ProtoMessage()

func (*HeadersPid) ProtoReflect added in v1.65.3

func (x *HeadersPid) ProtoReflect() protoreflect.Message

func (*HeadersPid) Reset

func (x *HeadersPid) Reset()

func (*HeadersPid) String

func (x *HeadersPid) String() string

type HealthCheck

type HealthCheck struct {
	ListenAddr     string `json:"listenAddr,omitempty"`
	CheckInterval  uint32 `json:"checkInterval,omitempty"`
	UnSyncMaxTimes uint32 `json:"unSyncMaxTimes,omitempty"`
}

HealthCheck 配置

type HeightPara

type HeightPara struct {
	Height         int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Title          string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Hash           []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	ChildHash      []byte `protobuf:"bytes,4,opt,name=childHash,proto3" json:"childHash,omitempty"`
	StartIndex     int32  `protobuf:"varint,5,opt,name=startIndex,proto3" json:"startIndex,omitempty"`
	ChildHashIndex uint32 `protobuf:"varint,6,opt,name=childHashIndex,proto3" json:"childHashIndex,omitempty"`
	TxCount        int32  `protobuf:"varint,7,opt,name=txCount,proto3" json:"txCount,omitempty"`
	// contains filtered or unexported fields
}

记录本平行链所在区块的信息以及子根hash值 childHash:平行链子roothash值 startIndex:此平行链的第一笔交易的index索引值 childHashIndex:此平行链子roothash在本区块中的索引值 txCount:此平行链交易的个数

func (*HeightPara) Descriptor deprecated

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

Deprecated: Use HeightPara.ProtoReflect.Descriptor instead.

func (*HeightPara) GetChildHash

func (x *HeightPara) GetChildHash() []byte

func (*HeightPara) GetChildHashIndex

func (x *HeightPara) GetChildHashIndex() uint32

func (*HeightPara) GetHash

func (x *HeightPara) GetHash() []byte

func (*HeightPara) GetHeight

func (x *HeightPara) GetHeight() int64

func (*HeightPara) GetStartIndex

func (x *HeightPara) GetStartIndex() int32

func (*HeightPara) GetTitle

func (x *HeightPara) GetTitle() string

func (*HeightPara) GetTxCount

func (x *HeightPara) GetTxCount() int32

func (*HeightPara) ProtoMessage

func (*HeightPara) ProtoMessage()

func (*HeightPara) ProtoReflect added in v1.65.3

func (x *HeightPara) ProtoReflect() protoreflect.Message

func (*HeightPara) Reset

func (x *HeightPara) Reset()

func (*HeightPara) String

func (x *HeightPara) String() string

type HeightParas

type HeightParas struct {
	Items []*HeightPara `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*HeightParas) Descriptor deprecated

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

Deprecated: Use HeightParas.ProtoReflect.Descriptor instead.

func (*HeightParas) GetItems

func (x *HeightParas) GetItems() []*HeightPara

func (*HeightParas) ProtoMessage

func (*HeightParas) ProtoMessage()

func (*HeightParas) ProtoReflect added in v1.65.3

func (x *HeightParas) ProtoReflect() protoreflect.Message

func (*HeightParas) Reset

func (x *HeightParas) Reset()

func (*HeightParas) String

func (x *HeightParas) String() string

type HexTx

type HexTx struct {
	Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*HexTx) Descriptor deprecated

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

Deprecated: Use HexTx.ProtoReflect.Descriptor instead.

func (*HexTx) GetTx

func (x *HexTx) GetTx() string

func (*HexTx) ProtoMessage

func (*HexTx) ProtoMessage()

func (*HexTx) ProtoReflect added in v1.65.3

func (x *HexTx) ProtoReflect() protoreflect.Message

func (*HexTx) Reset

func (x *HexTx) Reset()

func (*HexTx) String

func (x *HexTx) String() string

type HistoryCertStore

type HistoryCertStore struct {
	Rootcerts         [][]byte `protobuf:"bytes,1,rep,name=rootcerts,proto3" json:"rootcerts,omitempty"`
	IntermediateCerts [][]byte `protobuf:"bytes,2,rep,name=intermediateCerts,proto3" json:"intermediateCerts,omitempty"`
	RevocationList    [][]byte `protobuf:"bytes,3,rep,name=revocationList,proto3" json:"revocationList,omitempty"`
	CurHeigth         int64    `protobuf:"varint,4,opt,name=curHeigth,proto3" json:"curHeigth,omitempty"`
	NxtHeight         int64    `protobuf:"varint,5,opt,name=nxtHeight,proto3" json:"nxtHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*HistoryCertStore) Descriptor deprecated

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

Deprecated: Use HistoryCertStore.ProtoReflect.Descriptor instead.

func (*HistoryCertStore) GetCurHeigth

func (x *HistoryCertStore) GetCurHeigth() int64

func (*HistoryCertStore) GetIntermediateCerts

func (x *HistoryCertStore) GetIntermediateCerts() [][]byte

func (*HistoryCertStore) GetNxtHeight

func (x *HistoryCertStore) GetNxtHeight() int64

func (*HistoryCertStore) GetRevocationList

func (x *HistoryCertStore) GetRevocationList() [][]byte

func (*HistoryCertStore) GetRootcerts

func (x *HistoryCertStore) GetRootcerts() [][]byte

func (*HistoryCertStore) ProtoMessage

func (*HistoryCertStore) ProtoMessage()

func (*HistoryCertStore) ProtoReflect added in v1.65.3

func (x *HistoryCertStore) ProtoReflect() protoreflect.Message

func (*HistoryCertStore) Reset

func (x *HistoryCertStore) Reset()

func (*HistoryCertStore) String

func (x *HistoryCertStore) String() string

type InnerNode

type InnerNode struct {
	LeftHash  []byte `protobuf:"bytes,1,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
	RightHash []byte `protobuf:"bytes,2,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
	Height    int32  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Size      int32  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*InnerNode) Descriptor deprecated

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

Deprecated: Use InnerNode.ProtoReflect.Descriptor instead.

func (*InnerNode) GetHeight

func (x *InnerNode) GetHeight() int32

func (*InnerNode) GetLeftHash

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

func (*InnerNode) GetRightHash

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

func (*InnerNode) GetSize

func (x *InnerNode) GetSize() int32

func (*InnerNode) Hash

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

Hash 计算中间节点的hash

func (*InnerNode) ProtoMessage

func (*InnerNode) ProtoMessage()

func (*InnerNode) ProtoReflect added in v1.65.3

func (x *InnerNode) ProtoReflect() protoreflect.Message

func (*InnerNode) Reset

func (x *InnerNode) Reset()

func (*InnerNode) String

func (x *InnerNode) String() string

type Int32

type Int32 struct {
	Data int32 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32) Descriptor deprecated

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

Deprecated: Use Int32.ProtoReflect.Descriptor instead.

func (*Int32) GetData

func (x *Int32) GetData() int32

func (*Int32) ProtoMessage

func (*Int32) ProtoMessage()

func (*Int32) ProtoReflect added in v1.65.3

func (x *Int32) ProtoReflect() protoreflect.Message

func (*Int32) Reset

func (x *Int32) Reset()

func (*Int32) String

func (x *Int32) String() string

type Int32Config

type Int32Config struct {
	Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32Config) Descriptor deprecated

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

Deprecated: Use Int32Config.ProtoReflect.Descriptor instead.

func (*Int32Config) GetValue

func (x *Int32Config) GetValue() int32

func (*Int32Config) ProtoMessage

func (*Int32Config) ProtoMessage()

func (*Int32Config) ProtoReflect added in v1.65.3

func (x *Int32Config) ProtoReflect() protoreflect.Message

func (*Int32Config) Reset

func (x *Int32Config) Reset()

func (*Int32Config) String

func (x *Int32Config) String() string

type Int64

type Int64 struct {
	Data int64 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64) Descriptor deprecated

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

Deprecated: Use Int64.ProtoReflect.Descriptor instead.

func (*Int64) GetData

func (x *Int64) GetData() int64

func (*Int64) ProtoMessage

func (*Int64) ProtoMessage()

func (*Int64) ProtoReflect added in v1.65.3

func (x *Int64) ProtoReflect() protoreflect.Message

func (*Int64) Reset

func (x *Int64) Reset()

func (*Int64) String

func (x *Int64) String() string

type InvData

type InvData struct {

	// Types that are assignable to Value:
	//	*InvData_Tx
	//	*InvData_Block
	Value isInvData_Value `protobuf_oneof:"value"`
	Ty    int32           `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

* inv 请求协议

func (*InvData) Descriptor deprecated

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

Deprecated: Use InvData.ProtoReflect.Descriptor instead.

func (*InvData) GetBlock

func (x *InvData) GetBlock() *Block

func (*InvData) GetTx

func (x *InvData) GetTx() *Transaction

func (*InvData) GetTy

func (x *InvData) GetTy() int32

func (*InvData) GetValue

func (m *InvData) GetValue() isInvData_Value

func (*InvData) ProtoMessage

func (*InvData) ProtoMessage()

func (*InvData) ProtoReflect added in v1.65.3

func (x *InvData) ProtoReflect() protoreflect.Message

func (*InvData) Reset

func (x *InvData) Reset()

func (*InvData) String

func (x *InvData) String() string

type InvData_Block

type InvData_Block struct {
	Block *Block `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}

type InvData_Tx

type InvData_Tx struct {
	Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3,oneof"`
}

type InvDatas

type InvDatas struct {
	Items []*InvData `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

* inv 返回数据

func (*InvDatas) Descriptor deprecated

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

Deprecated: Use InvDatas.ProtoReflect.Descriptor instead.

func (*InvDatas) GetItems

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

func (*InvDatas) ProtoMessage

func (*InvDatas) ProtoMessage()

func (*InvDatas) ProtoReflect added in v1.65.3

func (x *InvDatas) ProtoReflect() protoreflect.Message

func (*InvDatas) Reset

func (x *InvDatas) Reset()

func (*InvDatas) String

func (x *InvDatas) String() string

type Inventory

type Inventory struct {

	//类型,数据类型,MSG_TX MSG_BLOCK
	Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	///哈希
	Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	//高度
	Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

ty=MSG_TX MSG_BLOCK

func (*Inventory) Descriptor deprecated

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

Deprecated: Use Inventory.ProtoReflect.Descriptor instead.

func (*Inventory) GetHash

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

func (*Inventory) GetHeight

func (x *Inventory) GetHeight() int64

func (*Inventory) GetTy

func (x *Inventory) GetTy() int32

func (*Inventory) ProtoMessage

func (*Inventory) ProtoMessage()

func (*Inventory) ProtoReflect added in v1.65.3

func (x *Inventory) ProtoReflect() protoreflect.Message

func (*Inventory) Reset

func (x *Inventory) Reset()

func (*Inventory) String

func (x *Inventory) String() string

type IsCaughtUp

type IsCaughtUp struct {
	Iscaughtup bool `protobuf:"varint,1,opt,name=Iscaughtup,proto3" json:"Iscaughtup,omitempty"`
	// contains filtered or unexported fields
}

区块追赶主链状态,用于判断本节点区块是否已经同步好

func (*IsCaughtUp) Descriptor deprecated

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

Deprecated: Use IsCaughtUp.ProtoReflect.Descriptor instead.

func (*IsCaughtUp) GetIscaughtup

func (x *IsCaughtUp) GetIscaughtup() bool

func (*IsCaughtUp) ProtoMessage

func (*IsCaughtUp) ProtoMessage()

func (*IsCaughtUp) ProtoReflect added in v1.65.3

func (x *IsCaughtUp) ProtoReflect() protoreflect.Message

func (*IsCaughtUp) Reset

func (x *IsCaughtUp) Reset()

func (*IsCaughtUp) String

func (x *IsCaughtUp) String() string

type IsNtpClockSync

type IsNtpClockSync struct {
	Isntpclocksync bool `protobuf:"varint,1,opt,name=isntpclocksync,proto3" json:"isntpclocksync,omitempty"`
	// contains filtered or unexported fields
}

ntp时钟状态

func (*IsNtpClockSync) Descriptor deprecated

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

Deprecated: Use IsNtpClockSync.ProtoReflect.Descriptor instead.

func (*IsNtpClockSync) GetIsntpclocksync

func (x *IsNtpClockSync) GetIsntpclocksync() bool

func (*IsNtpClockSync) ProtoMessage

func (*IsNtpClockSync) ProtoMessage()

func (*IsNtpClockSync) ProtoReflect added in v1.65.3

func (x *IsNtpClockSync) ProtoReflect() protoreflect.Message

func (*IsNtpClockSync) Reset

func (x *IsNtpClockSync) Reset()

func (*IsNtpClockSync) String

func (x *IsNtpClockSync) String() string

type IterateRangeByStateHash

type IterateRangeByStateHash struct {
	StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Start     []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End       []byte `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	Count     int64  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

迭代查询symbol代币总额

func (*IterateRangeByStateHash) Descriptor deprecated

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

Deprecated: Use IterateRangeByStateHash.ProtoReflect.Descriptor instead.

func (*IterateRangeByStateHash) GetCount

func (x *IterateRangeByStateHash) GetCount() int64

func (*IterateRangeByStateHash) GetEnd

func (x *IterateRangeByStateHash) GetEnd() []byte

func (*IterateRangeByStateHash) GetStart

func (x *IterateRangeByStateHash) GetStart() []byte

func (*IterateRangeByStateHash) GetStateHash

func (x *IterateRangeByStateHash) GetStateHash() []byte

func (*IterateRangeByStateHash) ProtoMessage

func (*IterateRangeByStateHash) ProtoMessage()

func (*IterateRangeByStateHash) ProtoReflect added in v1.65.3

func (x *IterateRangeByStateHash) ProtoReflect() protoreflect.Message

func (*IterateRangeByStateHash) Reset

func (x *IterateRangeByStateHash) Reset()

func (*IterateRangeByStateHash) String

func (x *IterateRangeByStateHash) String() string

type KeyValue

type KeyValue struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func FlagKV

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

FlagKV 获取kv对

func (*KeyValue) Clone

func (kv *KeyValue) Clone() *KeyValue

Clone KeyValue

func (*KeyValue) Descriptor deprecated

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

Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.

func (*KeyValue) GetKey

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

func (*KeyValue) GetValue

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

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) ProtoReflect added in v1.65.3

func (x *KeyValue) ProtoReflect() protoreflect.Message

func (*KeyValue) Reset

func (x *KeyValue) Reset()

func (*KeyValue) String

func (x *KeyValue) String() string

type LeafNode

type LeafNode struct {
	Key    []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value  []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Height int32  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Size   int32  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

merkle avl tree

func (*LeafNode) Descriptor deprecated

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

Deprecated: Use LeafNode.ProtoReflect.Descriptor instead.

func (*LeafNode) GetHeight

func (x *LeafNode) GetHeight() int32

func (*LeafNode) GetKey

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

func (*LeafNode) GetSize

func (x *LeafNode) GetSize() int32

func (*LeafNode) GetValue

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

func (*LeafNode) Hash

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

Hash 计算叶子节点的hash

func (*LeafNode) ProtoMessage

func (*LeafNode) ProtoMessage()

func (*LeafNode) ProtoReflect added in v1.65.3

func (x *LeafNode) ProtoReflect() protoreflect.Message

func (*LeafNode) Reset

func (x *LeafNode) Reset()

func (*LeafNode) String

func (x *LeafNode) String() string

type LightBlock

type LightBlock struct {
	Size      int64        `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Header    *Header      `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	MinerTx   *Transaction `protobuf:"bytes,3,opt,name=minerTx,proto3" json:"minerTx,omitempty"`
	STxHashes []string     `protobuf:"bytes,4,rep,name=sTxHashes,proto3" json:"sTxHashes,omitempty"`
	// contains filtered or unexported fields
}

* p2p 轻量级区块, 广播交易短哈希列表

func (*LightBlock) Descriptor deprecated

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

Deprecated: Use LightBlock.ProtoReflect.Descriptor instead.

func (*LightBlock) GetHeader

func (x *LightBlock) GetHeader() *Header

func (*LightBlock) GetMinerTx

func (x *LightBlock) GetMinerTx() *Transaction

func (*LightBlock) GetSTxHashes

func (x *LightBlock) GetSTxHashes() []string

func (*LightBlock) GetSize

func (x *LightBlock) GetSize() int64

func (*LightBlock) ProtoMessage

func (*LightBlock) ProtoMessage()

func (*LightBlock) ProtoReflect added in v1.65.3

func (x *LightBlock) ProtoReflect() protoreflect.Message

func (*LightBlock) Reset

func (x *LightBlock) Reset()

func (*LightBlock) String

func (x *LightBlock) String() string

type LightTx

type LightTx struct {
	TxHash []byte    `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	Route  *P2PRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
	// contains filtered or unexported fields
}

轻量级交易广播

func (*LightTx) Descriptor deprecated

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

Deprecated: Use LightTx.ProtoReflect.Descriptor instead.

func (*LightTx) GetRoute

func (x *LightTx) GetRoute() *P2PRoute

func (*LightTx) GetTxHash

func (x *LightTx) GetTxHash() []byte

func (*LightTx) ProtoMessage

func (*LightTx) ProtoMessage()

func (*LightTx) ProtoReflect added in v1.65.3

func (x *LightTx) ProtoReflect() protoreflect.Message

func (*LightTx) Reset

func (x *LightTx) Reset()

func (*LightTx) String

func (x *LightTx) String() string

type LocalDBGet

type LocalDBGet struct {
	Keys [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	Txid int64    `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalDBGet) Descriptor deprecated

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

Deprecated: Use LocalDBGet.ProtoReflect.Descriptor instead.

func (*LocalDBGet) GetKeys

func (x *LocalDBGet) GetKeys() [][]byte

func (*LocalDBGet) GetTxid

func (x *LocalDBGet) GetTxid() int64

func (*LocalDBGet) ProtoMessage

func (*LocalDBGet) ProtoMessage()

func (*LocalDBGet) ProtoReflect added in v1.65.3

func (x *LocalDBGet) ProtoReflect() protoreflect.Message

func (*LocalDBGet) Reset

func (x *LocalDBGet) Reset()

func (*LocalDBGet) String

func (x *LocalDBGet) String() string

type LocalDBList

type LocalDBList struct {
	Prefix    []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Key       []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Direction int32  `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
	Count     int32  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Txid      int64  `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalDBList) Descriptor deprecated

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

Deprecated: Use LocalDBList.ProtoReflect.Descriptor instead.

func (*LocalDBList) GetCount

func (x *LocalDBList) GetCount() int32

func (*LocalDBList) GetDirection

func (x *LocalDBList) GetDirection() int32

func (*LocalDBList) GetKey

func (x *LocalDBList) GetKey() []byte

func (*LocalDBList) GetPrefix

func (x *LocalDBList) GetPrefix() []byte

func (*LocalDBList) GetTxid

func (x *LocalDBList) GetTxid() int64

func (*LocalDBList) ProtoMessage

func (*LocalDBList) ProtoMessage()

func (*LocalDBList) ProtoReflect added in v1.65.3

func (x *LocalDBList) ProtoReflect() protoreflect.Message

func (*LocalDBList) Reset

func (x *LocalDBList) Reset()

func (*LocalDBList) String

func (x *LocalDBList) String() string

type LocalDBSet

type LocalDBSet struct {
	KV   []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
	Txid int64       `protobuf:"varint,5,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalDBSet) Descriptor deprecated

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

Deprecated: Use LocalDBSet.ProtoReflect.Descriptor instead.

func (*LocalDBSet) GetKV

func (x *LocalDBSet) GetKV() []*KeyValue

func (*LocalDBSet) GetTxid

func (x *LocalDBSet) GetTxid() int64

func (*LocalDBSet) ProtoMessage

func (*LocalDBSet) ProtoMessage()

func (*LocalDBSet) ProtoReflect added in v1.65.3

func (x *LocalDBSet) ProtoReflect() protoreflect.Message

func (*LocalDBSet) Reset

func (x *LocalDBSet) Reset()

func (*LocalDBSet) String

func (x *LocalDBSet) String() string

type LocalReplyValue

type LocalReplyValue struct {
	Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalReplyValue) Descriptor deprecated

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

Deprecated: Use LocalReplyValue.ProtoReflect.Descriptor instead.

func (*LocalReplyValue) GetValues

func (x *LocalReplyValue) GetValues() [][]byte

func (*LocalReplyValue) ProtoMessage

func (*LocalReplyValue) ProtoMessage()

func (*LocalReplyValue) ProtoReflect added in v1.65.3

func (x *LocalReplyValue) ProtoReflect() protoreflect.Message

func (*LocalReplyValue) Reset

func (x *LocalReplyValue) Reset()

func (*LocalReplyValue) String

func (x *LocalReplyValue) String() string

type Log

type Log struct {
	// 日志级别,支持debug(dbug)/info/warn/error(eror)/crit
	Loglevel        string `json:"loglevel,omitempty"`
	LogConsoleLevel string `json:"logConsoleLevel,omitempty"`
	// 日志文件名,可带目录,所有生成的日志文件都放到此目录下
	LogFile string `json:"logFile,omitempty"`
	// 单个日志文件的最大值(单位:兆)
	MaxFileSize uint32 `json:"maxFileSize,omitempty"`
	// 最多保存的历史日志文件个数
	MaxBackups uint32 `json:"maxBackups,omitempty"`
	// 最多保存的历史日志消息(单位:天)
	MaxAge uint32 `json:"maxAge,omitempty"`
	// 日志文件名是否使用本地事件(否则使用UTC时间)
	LocalTime bool `json:"localTime,omitempty"`
	// 历史日志文件是否压缩(压缩格式为gz)
	Compress bool `json:"compress,omitempty"`
	// 是否打印调用源文件和行号
	CallerFile bool `json:"callerFile,omitempty"`
	// 是否打印调用方法
	CallerFunction bool `json:"callerFunction,omitempty"`
}

Log 日志配置

type LogErr

type LogErr []byte

LogErr log错误信息

type LogInfo

type LogInfo struct {
	Ty   reflect.Type
	Name string
}

LogInfo loginfo信息

type LogReserved

type LogReserved []byte

LogReserved LogReserved信息

type LogType

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

LogType 结构体类型

func LoadLog

func LoadLog(execer []byte, ty int64) LogType

LoadLog 加载log类型

type MAVLProof

type MAVLProof struct {
	LeafHash   []byte       `protobuf:"bytes,1,opt,name=leafHash,proto3" json:"leafHash,omitempty"`
	InnerNodes []*InnerNode `protobuf:"bytes,2,rep,name=innerNodes,proto3" json:"innerNodes,omitempty"`
	RootHash   []byte       `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	// contains filtered or unexported fields
}

func (*MAVLProof) Descriptor deprecated

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

Deprecated: Use MAVLProof.ProtoReflect.Descriptor instead.

func (*MAVLProof) GetInnerNodes

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

func (*MAVLProof) GetLeafHash

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

func (*MAVLProof) GetRootHash

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

func (*MAVLProof) ProtoMessage

func (*MAVLProof) ProtoMessage()

func (*MAVLProof) ProtoReflect added in v1.65.3

func (x *MAVLProof) ProtoReflect() protoreflect.Message

func (*MAVLProof) Reset

func (x *MAVLProof) Reset()

func (*MAVLProof) String

func (x *MAVLProof) String() string

type Mempool

type Mempool struct {
	// mempool队列名称,可配,timeline,score,price
	Name string `json:"name,omitempty"`
	// mempool缓存容量大小,默认10240
	PoolCacheSize int64 `json:"poolCacheSize,omitempty"`
	ForceAccept   bool  `json:"forceAccept,omitempty"`
	// 每个账户在mempool中得最大交易数量,默认100
	MaxTxNumPerAccount int64 `json:"maxTxNumPerAccount,omitempty"`
	MaxTxLast          int64 `json:"maxTxLast,omitempty"`
	IsLevelFee         bool  `json:"isLevelFee,omitempty"`
	// 最小单元交易费,这个没有默认值,必填,一般是100000
	MinTxFeeRate int64 `json:"minTxFeeRate,omitempty"`
	// 最大单元交易费, 默认1e7
	MaxTxFeeRate int64 `json:"maxTxFeeRate,omitempty"`
	// 单笔最大交易费, 默认1e9
	MaxTxFee int64 `json:"maxTxFee,omitempty"`
	// 目前execCheck效率较低,支持关闭交易execCheck,提升性能
	DisableExecCheck bool `json:"disableExecCheck,omitempty"`
}

Mempool 配置

type MempoolSize

type MempoolSize struct {
	Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*MempoolSize) Descriptor deprecated

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

Deprecated: Use MempoolSize.ProtoReflect.Descriptor instead.

func (*MempoolSize) GetSize

func (x *MempoolSize) GetSize() int64

func (*MempoolSize) ProtoMessage

func (*MempoolSize) ProtoMessage()

func (*MempoolSize) ProtoReflect added in v1.65.3

func (x *MempoolSize) ProtoReflect() protoreflect.Message

func (*MempoolSize) Reset

func (x *MempoolSize) Reset()

func (*MempoolSize) String

func (x *MempoolSize) String() string

type Message

type Message proto.Message

Message 声明proto.Message

func CallQueryFunc

func CallQueryFunc(this reflect.Value, f reflect.Method, in Message) (reply Message, err error)

CallQueryFunc 获取查询接口函数

type MessageAddrList

type MessageAddrList struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PAddrList `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageAddrList) Descriptor deprecated

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

Deprecated: Use MessageAddrList.ProtoReflect.Descriptor instead.

func (*MessageAddrList) GetMessage

func (x *MessageAddrList) GetMessage() *P2PAddrList

func (*MessageAddrList) GetMessageData

func (x *MessageAddrList) GetMessageData() *MessageComm

func (*MessageAddrList) ProtoMessage

func (*MessageAddrList) ProtoMessage()

func (*MessageAddrList) ProtoReflect added in v1.65.3

func (x *MessageAddrList) ProtoReflect() protoreflect.Message

func (*MessageAddrList) Reset

func (x *MessageAddrList) Reset()

func (*MessageAddrList) String

func (x *MessageAddrList) String() string

type MessageAddrReq

type MessageAddrReq struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PGetAddr  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageAddrReq) Descriptor deprecated

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

Deprecated: Use MessageAddrReq.ProtoReflect.Descriptor instead.

func (*MessageAddrReq) GetMessage

func (x *MessageAddrReq) GetMessage() *P2PGetAddr

func (*MessageAddrReq) GetMessageData

func (x *MessageAddrReq) GetMessageData() *MessageComm

func (*MessageAddrReq) ProtoMessage

func (*MessageAddrReq) ProtoMessage()

func (*MessageAddrReq) ProtoReflect added in v1.65.3

func (x *MessageAddrReq) ProtoReflect() protoreflect.Message

func (*MessageAddrReq) Reset

func (x *MessageAddrReq) Reset()

func (*MessageAddrReq) String

func (x *MessageAddrReq) String() string

type MessageAddrResp

type MessageAddrResp struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PAddr     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageAddrResp) Descriptor deprecated

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

Deprecated: Use MessageAddrResp.ProtoReflect.Descriptor instead.

func (*MessageAddrResp) GetMessage

func (x *MessageAddrResp) GetMessage() *P2PAddr

func (*MessageAddrResp) GetMessageData

func (x *MessageAddrResp) GetMessageData() *MessageComm

func (*MessageAddrResp) ProtoMessage

func (*MessageAddrResp) ProtoMessage()

func (*MessageAddrResp) ProtoReflect added in v1.65.3

func (x *MessageAddrResp) ProtoReflect() protoreflect.Message

func (*MessageAddrResp) Reset

func (x *MessageAddrResp) Reset()

func (*MessageAddrResp) String

func (x *MessageAddrResp) String() string

type MessageBroadCast

type MessageBroadCast struct {
	Common  *MessageComm   `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	Message *BroadCastData `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageBroadCast) Descriptor deprecated

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

Deprecated: Use MessageBroadCast.ProtoReflect.Descriptor instead.

func (*MessageBroadCast) GetCommon

func (x *MessageBroadCast) GetCommon() *MessageComm

func (*MessageBroadCast) GetMessage

func (x *MessageBroadCast) GetMessage() *BroadCastData

func (*MessageBroadCast) ProtoMessage

func (*MessageBroadCast) ProtoMessage()

func (*MessageBroadCast) ProtoReflect added in v1.65.3

func (x *MessageBroadCast) ProtoReflect() protoreflect.Message

func (*MessageBroadCast) Reset

func (x *MessageBroadCast) Reset()

func (*MessageBroadCast) String

func (x *MessageBroadCast) String() string

type MessageComm

type MessageComm struct {

	// shared between all requests
	Version    string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`       // client version
	Timestamp  int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`  // unix time
	Id         string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`                 // allows requesters to use request data when processing a response
	Gossip     bool   `protobuf:"varint,4,opt,name=gossip,proto3" json:"gossip,omitempty"`        // true to have receiver peer gossip the message to neighbors
	NodeId     string `protobuf:"bytes,5,opt,name=nodeId,proto3" json:"nodeId,omitempty"`         // id of node that created the message (not the peer that may have sent it). =base58(multihash(nodePubKey))
	NodePubKey []byte `protobuf:"bytes,6,opt,name=nodePubKey,proto3" json:"nodePubKey,omitempty"` // Authoring node Secp256k1 public key (32bytes) - protobufs serielized
	Sign       []byte `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"`             // signature of message data + method specific data by message authoring node.
	// contains filtered or unexported fields
}

func (*MessageComm) Descriptor deprecated

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

Deprecated: Use MessageComm.ProtoReflect.Descriptor instead.

func (*MessageComm) GetGossip

func (x *MessageComm) GetGossip() bool

func (*MessageComm) GetId

func (x *MessageComm) GetId() string

func (*MessageComm) GetNodeId

func (x *MessageComm) GetNodeId() string

func (*MessageComm) GetNodePubKey

func (x *MessageComm) GetNodePubKey() []byte

func (*MessageComm) GetSign

func (x *MessageComm) GetSign() []byte

func (*MessageComm) GetTimestamp

func (x *MessageComm) GetTimestamp() int64

func (*MessageComm) GetVersion

func (x *MessageComm) GetVersion() string

func (*MessageComm) ProtoMessage

func (*MessageComm) ProtoMessage()

func (*MessageComm) ProtoReflect added in v1.65.3

func (x *MessageComm) ProtoReflect() protoreflect.Message

func (*MessageComm) Reset

func (x *MessageComm) Reset()

func (*MessageComm) String

func (x *MessageComm) String() string

type MessageExternalNetReq

type MessageExternalNetReq struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageExternalNetReq) Descriptor deprecated

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

Deprecated: Use MessageExternalNetReq.ProtoReflect.Descriptor instead.

func (*MessageExternalNetReq) GetMessageData

func (x *MessageExternalNetReq) GetMessageData() *MessageComm

func (*MessageExternalNetReq) ProtoMessage

func (*MessageExternalNetReq) ProtoMessage()

func (*MessageExternalNetReq) ProtoReflect added in v1.65.3

func (x *MessageExternalNetReq) ProtoReflect() protoreflect.Message

func (*MessageExternalNetReq) Reset

func (x *MessageExternalNetReq) Reset()

func (*MessageExternalNetReq) String

func (x *MessageExternalNetReq) String() string

type MessageExternalNetResp

type MessageExternalNetResp struct {
	MessageData *MessageComm     `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PExternalInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageExternalNetResp) Descriptor deprecated

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

Deprecated: Use MessageExternalNetResp.ProtoReflect.Descriptor instead.

func (*MessageExternalNetResp) GetMessage

func (x *MessageExternalNetResp) GetMessage() *P2PExternalInfo

func (*MessageExternalNetResp) GetMessageData

func (x *MessageExternalNetResp) GetMessageData() *MessageComm

func (*MessageExternalNetResp) ProtoMessage

func (*MessageExternalNetResp) ProtoMessage()

func (*MessageExternalNetResp) ProtoReflect added in v1.65.3

func (x *MessageExternalNetResp) ProtoReflect() protoreflect.Message

func (*MessageExternalNetResp) Reset

func (x *MessageExternalNetResp) Reset()

func (*MessageExternalNetResp) String

func (x *MessageExternalNetResp) String() string

type MessageGetBlocksReq

type MessageGetBlocksReq struct {
	MessageData *MessageComm  `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PGetBlocks `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageGetBlocksReq) Descriptor deprecated

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

Deprecated: Use MessageGetBlocksReq.ProtoReflect.Descriptor instead.

func (*MessageGetBlocksReq) GetMessage

func (x *MessageGetBlocksReq) GetMessage() *P2PGetBlocks

func (*MessageGetBlocksReq) GetMessageData

func (x *MessageGetBlocksReq) GetMessageData() *MessageComm

func (*MessageGetBlocksReq) ProtoMessage

func (*MessageGetBlocksReq) ProtoMessage()

func (*MessageGetBlocksReq) ProtoReflect added in v1.65.3

func (x *MessageGetBlocksReq) ProtoReflect() protoreflect.Message

func (*MessageGetBlocksReq) Reset

func (x *MessageGetBlocksReq) Reset()

func (*MessageGetBlocksReq) String

func (x *MessageGetBlocksReq) String() string

type MessageGetBlocksResp

type MessageGetBlocksResp struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *InvDatas    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageGetBlocksResp) Descriptor deprecated

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

Deprecated: Use MessageGetBlocksResp.ProtoReflect.Descriptor instead.

func (*MessageGetBlocksResp) GetMessage

func (x *MessageGetBlocksResp) GetMessage() *InvDatas

func (*MessageGetBlocksResp) GetMessageData

func (x *MessageGetBlocksResp) GetMessageData() *MessageComm

func (*MessageGetBlocksResp) ProtoMessage

func (*MessageGetBlocksResp) ProtoMessage()

func (*MessageGetBlocksResp) ProtoReflect added in v1.65.3

func (x *MessageGetBlocksResp) ProtoReflect() protoreflect.Message

func (*MessageGetBlocksResp) Reset

func (x *MessageGetBlocksResp) Reset()

func (*MessageGetBlocksResp) String

func (x *MessageGetBlocksResp) String() string

type MessageGetMempoolReq

type MessageGetMempoolReq struct {
	MessageData *MessageComm   `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PGetMempool `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageGetMempoolReq) Descriptor deprecated

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

Deprecated: Use MessageGetMempoolReq.ProtoReflect.Descriptor instead.

func (*MessageGetMempoolReq) GetMessage

func (x *MessageGetMempoolReq) GetMessage() *P2PGetMempool

func (*MessageGetMempoolReq) GetMessageData

func (x *MessageGetMempoolReq) GetMessageData() *MessageComm

func (*MessageGetMempoolReq) ProtoMessage

func (*MessageGetMempoolReq) ProtoMessage()

func (*MessageGetMempoolReq) ProtoReflect added in v1.65.3

func (x *MessageGetMempoolReq) ProtoReflect() protoreflect.Message

func (*MessageGetMempoolReq) Reset

func (x *MessageGetMempoolReq) Reset()

func (*MessageGetMempoolReq) String

func (x *MessageGetMempoolReq) String() string

type MessageHeaderReq

type MessageHeaderReq struct {
	MessageData *MessageComm   `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PGetHeaders `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageHeaderReq) Descriptor deprecated

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

Deprecated: Use MessageHeaderReq.ProtoReflect.Descriptor instead.

func (*MessageHeaderReq) GetMessage

func (x *MessageHeaderReq) GetMessage() *P2PGetHeaders

func (*MessageHeaderReq) GetMessageData

func (x *MessageHeaderReq) GetMessageData() *MessageComm

func (*MessageHeaderReq) ProtoMessage

func (*MessageHeaderReq) ProtoMessage()

func (*MessageHeaderReq) ProtoReflect added in v1.65.3

func (x *MessageHeaderReq) ProtoReflect() protoreflect.Message

func (*MessageHeaderReq) Reset

func (x *MessageHeaderReq) Reset()

func (*MessageHeaderReq) String

func (x *MessageHeaderReq) String() string

type MessageHeaderResp

type MessageHeaderResp struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PHeaders  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageHeaderResp) Descriptor deprecated

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

Deprecated: Use MessageHeaderResp.ProtoReflect.Descriptor instead.

func (*MessageHeaderResp) GetMessage

func (x *MessageHeaderResp) GetMessage() *P2PHeaders

func (*MessageHeaderResp) GetMessageData

func (x *MessageHeaderResp) GetMessageData() *MessageComm

func (*MessageHeaderResp) ProtoMessage

func (*MessageHeaderResp) ProtoMessage()

func (*MessageHeaderResp) ProtoReflect added in v1.65.3

func (x *MessageHeaderResp) ProtoReflect() protoreflect.Message

func (*MessageHeaderResp) Reset

func (x *MessageHeaderResp) Reset()

func (*MessageHeaderResp) String

func (x *MessageHeaderResp) String() string

type MessageInvDataReq

type MessageInvDataReq struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *InvData     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageInvDataReq) Descriptor deprecated

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

Deprecated: Use MessageInvDataReq.ProtoReflect.Descriptor instead.

func (*MessageInvDataReq) GetMessage

func (x *MessageInvDataReq) GetMessage() *InvData

func (*MessageInvDataReq) GetMessageData

func (x *MessageInvDataReq) GetMessageData() *MessageComm

func (*MessageInvDataReq) ProtoMessage

func (*MessageInvDataReq) ProtoMessage()

func (*MessageInvDataReq) ProtoReflect added in v1.65.3

func (x *MessageInvDataReq) ProtoReflect() protoreflect.Message

func (*MessageInvDataReq) Reset

func (x *MessageInvDataReq) Reset()

func (*MessageInvDataReq) String

func (x *MessageInvDataReq) String() string

type MessageNetInfo

type MessageNetInfo struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *NodeNetInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageNetInfo) Descriptor deprecated

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

Deprecated: Use MessageNetInfo.ProtoReflect.Descriptor instead.

func (*MessageNetInfo) GetMessage

func (x *MessageNetInfo) GetMessage() *NodeNetInfo

func (*MessageNetInfo) GetMessageData

func (x *MessageNetInfo) GetMessageData() *MessageComm

func (*MessageNetInfo) ProtoMessage

func (*MessageNetInfo) ProtoMessage()

func (*MessageNetInfo) ProtoReflect added in v1.65.3

func (x *MessageNetInfo) ProtoReflect() protoreflect.Message

func (*MessageNetInfo) Reset

func (x *MessageNetInfo) Reset()

func (*MessageNetInfo) String

func (x *MessageNetInfo) String() string

type MessageP2PVersionReq

type MessageP2PVersionReq struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PVersion  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageP2PVersionReq) Descriptor deprecated

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

Deprecated: Use MessageP2PVersionReq.ProtoReflect.Descriptor instead.

func (*MessageP2PVersionReq) GetMessage

func (x *MessageP2PVersionReq) GetMessage() *P2PVersion

func (*MessageP2PVersionReq) GetMessageData

func (x *MessageP2PVersionReq) GetMessageData() *MessageComm

func (*MessageP2PVersionReq) ProtoMessage

func (*MessageP2PVersionReq) ProtoMessage()

func (*MessageP2PVersionReq) ProtoReflect added in v1.65.3

func (x *MessageP2PVersionReq) ProtoReflect() protoreflect.Message

func (*MessageP2PVersionReq) Reset

func (x *MessageP2PVersionReq) Reset()

func (*MessageP2PVersionReq) String

func (x *MessageP2PVersionReq) String() string

type MessageP2PVersionResp

type MessageP2PVersionResp struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PVersion  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageP2PVersionResp) Descriptor deprecated

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

Deprecated: Use MessageP2PVersionResp.ProtoReflect.Descriptor instead.

func (*MessageP2PVersionResp) GetMessage

func (x *MessageP2PVersionResp) GetMessage() *P2PVersion

func (*MessageP2PVersionResp) GetMessageData

func (x *MessageP2PVersionResp) GetMessageData() *MessageComm

func (*MessageP2PVersionResp) ProtoMessage

func (*MessageP2PVersionResp) ProtoMessage()

func (*MessageP2PVersionResp) ProtoReflect added in v1.65.3

func (x *MessageP2PVersionResp) ProtoReflect() protoreflect.Message

func (*MessageP2PVersionResp) Reset

func (x *MessageP2PVersionResp) Reset()

func (*MessageP2PVersionResp) String

func (x *MessageP2PVersionResp) String() string

type MessagePeerInfoReq

type MessagePeerInfoReq struct {

	/// p2p版本
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	// contains filtered or unexported fields
}

* 请求获取远程节点的节点信息

func (*MessagePeerInfoReq) Descriptor deprecated

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

Deprecated: Use MessagePeerInfoReq.ProtoReflect.Descriptor instead.

func (*MessagePeerInfoReq) GetMessageData

func (x *MessagePeerInfoReq) GetMessageData() *MessageComm

func (*MessagePeerInfoReq) ProtoMessage

func (*MessagePeerInfoReq) ProtoMessage()

func (*MessagePeerInfoReq) ProtoReflect added in v1.65.3

func (x *MessagePeerInfoReq) ProtoReflect() protoreflect.Message

func (*MessagePeerInfoReq) Reset

func (x *MessagePeerInfoReq) Reset()

func (*MessagePeerInfoReq) String

func (x *MessagePeerInfoReq) String() string

type MessagePeerInfoResp

type MessagePeerInfoResp struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PPeerInfo `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagePeerInfoResp) Descriptor deprecated

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

Deprecated: Use MessagePeerInfoResp.ProtoReflect.Descriptor instead.

func (*MessagePeerInfoResp) GetMessage

func (x *MessagePeerInfoResp) GetMessage() *P2PPeerInfo

func (*MessagePeerInfoResp) GetMessageData

func (x *MessagePeerInfoResp) GetMessageData() *MessageComm

func (*MessagePeerInfoResp) ProtoMessage

func (*MessagePeerInfoResp) ProtoMessage()

func (*MessagePeerInfoResp) ProtoReflect added in v1.65.3

func (x *MessagePeerInfoResp) ProtoReflect() protoreflect.Message

func (*MessagePeerInfoResp) Reset

func (x *MessagePeerInfoResp) Reset()

func (*MessagePeerInfoResp) String

func (x *MessagePeerInfoResp) String() string

type MessagePeerList

type MessagePeerList struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *PeerList    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagePeerList) Descriptor deprecated

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

Deprecated: Use MessagePeerList.ProtoReflect.Descriptor instead.

func (*MessagePeerList) GetMessage

func (x *MessagePeerList) GetMessage() *PeerList

func (*MessagePeerList) GetMessageData

func (x *MessagePeerList) GetMessageData() *MessageComm

func (*MessagePeerList) ProtoMessage

func (*MessagePeerList) ProtoMessage()

func (*MessagePeerList) ProtoReflect added in v1.65.3

func (x *MessagePeerList) ProtoReflect() protoreflect.Message

func (*MessagePeerList) Reset

func (x *MessagePeerList) Reset()

func (*MessagePeerList) String

func (x *MessagePeerList) String() string

type MessagePeersReply

type MessagePeersReply struct {
	Common     *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	PeersReply *PeersReply  `protobuf:"bytes,2,opt,name=peersReply,proto3" json:"peersReply,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagePeersReply) Descriptor deprecated

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

Deprecated: Use MessagePeersReply.ProtoReflect.Descriptor instead.

func (*MessagePeersReply) GetCommon

func (x *MessagePeersReply) GetCommon() *MessageComm

func (*MessagePeersReply) GetPeersReply

func (x *MessagePeersReply) GetPeersReply() *PeersReply

func (*MessagePeersReply) ProtoMessage

func (*MessagePeersReply) ProtoMessage()

func (*MessagePeersReply) ProtoReflect added in v1.65.3

func (x *MessagePeersReply) ProtoReflect() protoreflect.Message

func (*MessagePeersReply) Reset

func (x *MessagePeersReply) Reset()

func (*MessagePeersReply) String

func (x *MessagePeersReply) String() string

type MessagePingReq

type MessagePingReq struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PPing     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagePingReq) Descriptor deprecated

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

Deprecated: Use MessagePingReq.ProtoReflect.Descriptor instead.

func (*MessagePingReq) GetMessage

func (x *MessagePingReq) GetMessage() *P2PPing

func (*MessagePingReq) GetMessageData

func (x *MessagePingReq) GetMessageData() *MessageComm

func (*MessagePingReq) ProtoMessage

func (*MessagePingReq) ProtoMessage()

func (*MessagePingReq) ProtoReflect added in v1.65.3

func (x *MessagePingReq) ProtoReflect() protoreflect.Message

func (*MessagePingReq) Reset

func (x *MessagePingReq) Reset()

func (*MessagePingReq) String

func (x *MessagePingReq) String() string

type MessagePingResp

type MessagePingResp struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *P2PPong     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessagePingResp) Descriptor deprecated

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

Deprecated: Use MessagePingResp.ProtoReflect.Descriptor instead.

func (*MessagePingResp) GetMessage

func (x *MessagePingResp) GetMessage() *P2PPong

func (*MessagePingResp) GetMessageData

func (x *MessagePingResp) GetMessageData() *MessageComm

func (*MessagePingResp) ProtoMessage

func (*MessagePingResp) ProtoMessage()

func (*MessagePingResp) ProtoReflect added in v1.65.3

func (x *MessagePingResp) ProtoReflect() protoreflect.Message

func (*MessagePingResp) Reset

func (x *MessagePingResp) Reset()

func (*MessagePingResp) String

func (x *MessagePingResp) String() string

type MessageUtil

type MessageUtil struct {
	Common *MessageComm `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	// Types that are assignable to Value:
	//	*MessageUtil_PeerInfo
	//	*MessageUtil_Version
	//	*MessageUtil_VersionAck
	//	*MessageUtil_External
	//	*MessageUtil_Getblocks
	//	*MessageUtil_Invdatas
	Value isMessageUtil_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*MessageUtil) Descriptor deprecated

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

Deprecated: Use MessageUtil.ProtoReflect.Descriptor instead.

func (*MessageUtil) GetCommon

func (x *MessageUtil) GetCommon() *MessageComm

func (*MessageUtil) GetExternal

func (x *MessageUtil) GetExternal() *P2PExternalInfo

func (*MessageUtil) GetGetblocks

func (x *MessageUtil) GetGetblocks() *P2PGetBlocks

func (*MessageUtil) GetInvdatas

func (x *MessageUtil) GetInvdatas() *InvDatas

func (*MessageUtil) GetPeerInfo

func (x *MessageUtil) GetPeerInfo() *P2PPeerInfo

func (*MessageUtil) GetValue

func (m *MessageUtil) GetValue() isMessageUtil_Value

func (*MessageUtil) GetVersion

func (x *MessageUtil) GetVersion() *P2PVersion

func (*MessageUtil) GetVersionAck

func (x *MessageUtil) GetVersionAck() *P2PVerAck

func (*MessageUtil) ProtoMessage

func (*MessageUtil) ProtoMessage()

func (*MessageUtil) ProtoReflect added in v1.65.3

func (x *MessageUtil) ProtoReflect() protoreflect.Message

func (*MessageUtil) Reset

func (x *MessageUtil) Reset()

func (*MessageUtil) String

func (x *MessageUtil) String() string

type MessageUtil_External

type MessageUtil_External struct {
	External *P2PExternalInfo `protobuf:"bytes,5,opt,name=external,proto3,oneof"`
}

type MessageUtil_Getblocks

type MessageUtil_Getblocks struct {
	Getblocks *P2PGetBlocks `protobuf:"bytes,6,opt,name=getblocks,proto3,oneof"`
}

type MessageUtil_Invdatas

type MessageUtil_Invdatas struct {
	Invdatas *InvDatas `protobuf:"bytes,7,opt,name=invdatas,proto3,oneof"`
}

type MessageUtil_PeerInfo

type MessageUtil_PeerInfo struct {
	PeerInfo *P2PPeerInfo `protobuf:"bytes,2,opt,name=peerInfo,proto3,oneof"`
}

type MessageUtil_Version

type MessageUtil_Version struct {
	Version *P2PVersion `protobuf:"bytes,3,opt,name=version,proto3,oneof"`
}

type MessageUtil_VersionAck

type MessageUtil_VersionAck struct {
	VersionAck *P2PVerAck `protobuf:"bytes,4,opt,name=versionAck,proto3,oneof"`
}

type MessageVersion

type MessageVersion struct {
	MessageData *MessageComm `protobuf:"bytes,1,opt,name=messageData,proto3" json:"messageData,omitempty"`
	Message     *Versions    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageVersion) Descriptor deprecated

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

Deprecated: Use MessageVersion.ProtoReflect.Descriptor instead.

func (*MessageVersion) GetMessage

func (x *MessageVersion) GetMessage() *Versions

func (*MessageVersion) GetMessageData

func (x *MessageVersion) GetMessageData() *MessageComm

func (*MessageVersion) ProtoMessage

func (*MessageVersion) ProtoMessage()

func (*MessageVersion) ProtoReflect added in v1.65.3

func (x *MessageVersion) ProtoReflect() protoreflect.Message

func (*MessageVersion) Reset

func (x *MessageVersion) Reset()

func (*MessageVersion) String

func (x *MessageVersion) String() string

type Metrics

type Metrics struct {
	EnableMetrics bool   `json:"enableMetrics,omitempty"`
	DataEmitMode  string `json:"dataEmitMode,omitempty"`
	Duration      int64  `json:"duration,omitempty"`
	URL           string `json:"url,omitempty"`
	DatabaseName  string `json:"databaseName,omitempty"`
	Username      string `json:"username,omitempty"`
	Password      string `json:"password,omitempty"`
	Namespace     string `json:"namespace,omitempty"`
}

Metrics 相关测量配置信息

type ModifyConfig

type ModifyConfig struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Op    string `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"`
	Addr  string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*ModifyConfig) Descriptor deprecated

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

Deprecated: Use ModifyConfig.ProtoReflect.Descriptor instead.

func (*ModifyConfig) GetAddr

func (x *ModifyConfig) GetAddr() string

func (*ModifyConfig) GetKey

func (x *ModifyConfig) GetKey() string

func (*ModifyConfig) GetOp

func (x *ModifyConfig) GetOp() string

func (*ModifyConfig) GetValue

func (x *ModifyConfig) GetValue() string

func (*ModifyConfig) ProtoMessage

func (*ModifyConfig) ProtoMessage()

func (*ModifyConfig) ProtoReflect added in v1.65.3

func (x *ModifyConfig) ProtoReflect() protoreflect.Message

func (*ModifyConfig) Reset

func (x *ModifyConfig) Reset()

func (*ModifyConfig) String

func (x *ModifyConfig) String() string

type NetProtocolInfos added in v1.65.0

type NetProtocolInfos struct {
	Protoinfo []*ProtocolInfo `protobuf:"bytes,1,rep,name=protoinfo,proto3" json:"protoinfo,omitempty"`
	// contains filtered or unexported fields
}

* dht protos 网络带宽信息

func (*NetProtocolInfos) Descriptor deprecated added in v1.65.0

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

Deprecated: Use NetProtocolInfos.ProtoReflect.Descriptor instead.

func (*NetProtocolInfos) GetProtoinfo added in v1.65.0

func (x *NetProtocolInfos) GetProtoinfo() []*ProtocolInfo

func (*NetProtocolInfos) ProtoMessage added in v1.65.0

func (*NetProtocolInfos) ProtoMessage()

func (*NetProtocolInfos) ProtoReflect added in v1.65.3

func (x *NetProtocolInfos) ProtoReflect() protoreflect.Message

func (*NetProtocolInfos) Reset added in v1.65.0

func (x *NetProtocolInfos) Reset()

func (*NetProtocolInfos) String added in v1.65.0

func (x *NetProtocolInfos) String() string

type NoBalanceTx

type NoBalanceTx struct {
	TxHex   string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	PayAddr string `protobuf:"bytes,2,opt,name=payAddr,proto3" json:"payAddr,omitempty"`
	Privkey string `protobuf:"bytes,3,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Expire  string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	// contains filtered or unexported fields
}

payAddr 可以支持 1. 地址 2. 私钥

func (*NoBalanceTx) Descriptor deprecated

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

Deprecated: Use NoBalanceTx.ProtoReflect.Descriptor instead.

func (*NoBalanceTx) GetExpire

func (x *NoBalanceTx) GetExpire() string

func (*NoBalanceTx) GetPayAddr

func (x *NoBalanceTx) GetPayAddr() string

func (*NoBalanceTx) GetPrivkey

func (x *NoBalanceTx) GetPrivkey() string

func (*NoBalanceTx) GetTxHex

func (x *NoBalanceTx) GetTxHex() string

func (*NoBalanceTx) ProtoMessage

func (*NoBalanceTx) ProtoMessage()

func (*NoBalanceTx) ProtoReflect added in v1.65.3

func (x *NoBalanceTx) ProtoReflect() protoreflect.Message

func (*NoBalanceTx) Reset

func (x *NoBalanceTx) Reset()

func (*NoBalanceTx) String

func (x *NoBalanceTx) String() string

type NoBalanceTxs

type NoBalanceTxs struct {
	TxHexs  []string `protobuf:"bytes,1,rep,name=txHexs,proto3" json:"txHexs,omitempty"`
	PayAddr string   `protobuf:"bytes,2,opt,name=payAddr,proto3" json:"payAddr,omitempty"`
	Privkey string   `protobuf:"bytes,3,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Expire  string   `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	// contains filtered or unexported fields
}

支持构造多笔nobalance的交易 payAddr 可以支持 1. 地址 2. 私钥

func (*NoBalanceTxs) Descriptor deprecated

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

Deprecated: Use NoBalanceTxs.ProtoReflect.Descriptor instead.

func (*NoBalanceTxs) GetExpire

func (x *NoBalanceTxs) GetExpire() string

func (*NoBalanceTxs) GetPayAddr

func (x *NoBalanceTxs) GetPayAddr() string

func (*NoBalanceTxs) GetPrivkey

func (x *NoBalanceTxs) GetPrivkey() string

func (*NoBalanceTxs) GetTxHexs

func (x *NoBalanceTxs) GetTxHexs() []string

func (*NoBalanceTxs) ProtoMessage

func (*NoBalanceTxs) ProtoMessage()

func (*NoBalanceTxs) ProtoReflect added in v1.65.3

func (x *NoBalanceTxs) ProtoReflect() protoreflect.Message

func (*NoBalanceTxs) Reset

func (x *NoBalanceTxs) Reset()

func (*NoBalanceTxs) String

func (x *NoBalanceTxs) String() string

type NodeInfo added in v1.65.1

type NodeInfo struct {
	Answer bool  `protobuf:"varint,1,opt,name=answer,proto3" json:"answer,omitempty"`
	Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated added in v1.65.1

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

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetAnswer added in v1.65.1

func (x *NodeInfo) GetAnswer() bool

func (*NodeInfo) GetHeight added in v1.65.1

func (x *NodeInfo) GetHeight() int64

func (*NodeInfo) ProtoMessage added in v1.65.1

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect added in v1.65.3

func (x *NodeInfo) ProtoReflect() protoreflect.Message

func (*NodeInfo) Reset added in v1.65.1

func (x *NodeInfo) Reset()

func (*NodeInfo) String added in v1.65.1

func (x *NodeInfo) String() string

type NodeNetInfo

type NodeNetInfo struct {
	Externaladdr string `protobuf:"bytes,1,opt,name=externaladdr,proto3" json:"externaladdr,omitempty"`
	Localaddr    string `protobuf:"bytes,2,opt,name=localaddr,proto3" json:"localaddr,omitempty"`
	Service      bool   `protobuf:"varint,3,opt,name=service,proto3" json:"service,omitempty"`
	Outbounds    int32  `protobuf:"varint,4,opt,name=outbounds,proto3" json:"outbounds,omitempty"`
	Inbounds     int32  `protobuf:"varint,5,opt,name=inbounds,proto3" json:"inbounds,omitempty"`
	Routingtable int32  `protobuf:"varint,6,opt,name=routingtable,proto3" json:"routingtable,omitempty"`
	Peerstore    int32  `protobuf:"varint,7,opt,name=peerstore,proto3" json:"peerstore,omitempty"`
	Ratein       string `protobuf:"bytes,8,opt,name=ratein,proto3" json:"ratein,omitempty"`
	Rateout      string `protobuf:"bytes,9,opt,name=rateout,proto3" json:"rateout,omitempty"`
	Ratetotal    string `protobuf:"bytes,10,opt,name=ratetotal,proto3" json:"ratetotal,omitempty"`
	// contains filtered or unexported fields
}

* 当前节点的网络信息

func (*NodeNetInfo) Descriptor deprecated

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

Deprecated: Use NodeNetInfo.ProtoReflect.Descriptor instead.

func (*NodeNetInfo) GetExternaladdr

func (x *NodeNetInfo) GetExternaladdr() string

func (*NodeNetInfo) GetInbounds

func (x *NodeNetInfo) GetInbounds() int32

func (*NodeNetInfo) GetLocaladdr

func (x *NodeNetInfo) GetLocaladdr() string

func (*NodeNetInfo) GetOutbounds

func (x *NodeNetInfo) GetOutbounds() int32

func (*NodeNetInfo) GetPeerstore added in v1.65.0

func (x *NodeNetInfo) GetPeerstore() int32

func (*NodeNetInfo) GetRatein added in v1.65.0

func (x *NodeNetInfo) GetRatein() string

func (*NodeNetInfo) GetRateout added in v1.65.0

func (x *NodeNetInfo) GetRateout() string

func (*NodeNetInfo) GetRatetotal added in v1.65.0

func (x *NodeNetInfo) GetRatetotal() string

func (*NodeNetInfo) GetRoutingtable added in v1.65.0

func (x *NodeNetInfo) GetRoutingtable() int32

func (*NodeNetInfo) GetService

func (x *NodeNetInfo) GetService() bool

func (*NodeNetInfo) ProtoMessage

func (*NodeNetInfo) ProtoMessage()

func (*NodeNetInfo) ProtoReflect added in v1.65.3

func (x *NodeNetInfo) ProtoReflect() protoreflect.Message

func (*NodeNetInfo) Reset

func (x *NodeNetInfo) Reset()

func (*NodeNetInfo) String

func (x *NodeNetInfo) String() string

type Operation

type Operation struct {
	Value *Block `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetValue

func (x *Operation) GetValue() *Block

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect added in v1.65.3

func (x *Operation) ProtoReflect() protoreflect.Message

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type P2P

type P2P struct {
	// 使用的数据库类型
	Driver string `json:"driver,omitempty"`
	// 数据库文件目录
	DbPath string `json:"dbPath,omitempty"`
	// 数据库缓存大小
	DbCache int32 `json:"dbCache,omitempty"`
	// GRPC请求日志文件
	GrpcLogFile string `json:"grpcLogFile,omitempty"`
	// 是否启动P2P服务
	Enable bool `json:"enable,omitempty"`
	//是否等待Pid
	WaitPid bool `json:"waitPid,omitempty"`
	//指定p2p类型, 支持gossip, dht
	Types []string `json:"types,omitempty"`
}

P2P 配置

type P2PAddr

type P2PAddr struct {
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	///对方节点返回的其他节点信息
	Addrlist []string `protobuf:"bytes,2,rep,name=addrlist,proto3" json:"addrlist,omitempty"`
	// contains filtered or unexported fields
}

* 返回请求地址列表的社保

func (*P2PAddr) Descriptor deprecated

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

Deprecated: Use P2PAddr.ProtoReflect.Descriptor instead.

func (*P2PAddr) GetAddrlist

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

func (*P2PAddr) GetNonce

func (x *P2PAddr) GetNonce() int64

func (*P2PAddr) ProtoMessage

func (*P2PAddr) ProtoMessage()

func (*P2PAddr) ProtoReflect added in v1.65.3

func (x *P2PAddr) ProtoReflect() protoreflect.Message

func (*P2PAddr) Reset

func (x *P2PAddr) Reset()

func (*P2PAddr) String

func (x *P2PAddr) String() string

type P2PAddrList

type P2PAddrList struct {
	Nonce    int64          `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Peerinfo []*P2PPeerInfo `protobuf:"bytes,2,rep,name=peerinfo,proto3" json:"peerinfo,omitempty"`
	// contains filtered or unexported fields
}

func (*P2PAddrList) Descriptor deprecated

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

Deprecated: Use P2PAddrList.ProtoReflect.Descriptor instead.

func (*P2PAddrList) GetNonce

func (x *P2PAddrList) GetNonce() int64

func (*P2PAddrList) GetPeerinfo

func (x *P2PAddrList) GetPeerinfo() []*P2PPeerInfo

func (*P2PAddrList) ProtoMessage

func (*P2PAddrList) ProtoMessage()

func (*P2PAddrList) ProtoReflect added in v1.65.3

func (x *P2PAddrList) ProtoReflect() protoreflect.Message

func (*P2PAddrList) Reset

func (x *P2PAddrList) Reset()

func (*P2PAddrList) String

func (x *P2PAddrList) String() string

type P2PBlock

type P2PBlock struct {
	Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

* p2p 发送区块协议

func (*P2PBlock) Descriptor deprecated

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

Deprecated: Use P2PBlock.ProtoReflect.Descriptor instead.

func (*P2PBlock) GetBlock

func (x *P2PBlock) GetBlock() *Block

func (*P2PBlock) ProtoMessage

func (*P2PBlock) ProtoMessage()

func (*P2PBlock) ProtoReflect added in v1.65.3

func (x *P2PBlock) ProtoReflect() protoreflect.Message

func (*P2PBlock) Reset

func (x *P2PBlock) Reset()

func (*P2PBlock) String

func (x *P2PBlock) String() string

type P2PBlockTxReply

type P2PBlockTxReply struct {
	BlockHash string         `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	TxIndices []int32        `protobuf:"varint,2,rep,packed,name=txIndices,proto3" json:"txIndices,omitempty"`
	Txs       []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

区块交易数据返回

func (*P2PBlockTxReply) Descriptor deprecated

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

Deprecated: Use P2PBlockTxReply.ProtoReflect.Descriptor instead.

func (*P2PBlockTxReply) GetBlockHash

func (x *P2PBlockTxReply) GetBlockHash() string

func (*P2PBlockTxReply) GetTxIndices

func (x *P2PBlockTxReply) GetTxIndices() []int32

func (*P2PBlockTxReply) GetTxs

func (x *P2PBlockTxReply) GetTxs() []*Transaction

func (*P2PBlockTxReply) ProtoMessage

func (*P2PBlockTxReply) ProtoMessage()

func (*P2PBlockTxReply) ProtoReflect added in v1.65.3

func (x *P2PBlockTxReply) ProtoReflect() protoreflect.Message

func (*P2PBlockTxReply) Reset

func (x *P2PBlockTxReply) Reset()

func (*P2PBlockTxReply) String

func (x *P2PBlockTxReply) String() string

type P2PBlockTxReq

type P2PBlockTxReq struct {
	BlockHash string  `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	TxIndices []int32 `protobuf:"varint,2,rep,packed,name=txIndices,proto3" json:"txIndices,omitempty"`
	// contains filtered or unexported fields
}

请求区块内交易数据

func (*P2PBlockTxReq) Descriptor deprecated

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

Deprecated: Use P2PBlockTxReq.ProtoReflect.Descriptor instead.

func (*P2PBlockTxReq) GetBlockHash

func (x *P2PBlockTxReq) GetBlockHash() string

func (*P2PBlockTxReq) GetTxIndices

func (x *P2PBlockTxReq) GetTxIndices() []int32

func (*P2PBlockTxReq) ProtoMessage

func (*P2PBlockTxReq) ProtoMessage()

func (*P2PBlockTxReq) ProtoReflect added in v1.65.3

func (x *P2PBlockTxReq) ProtoReflect() protoreflect.Message

func (*P2PBlockTxReq) Reset

func (x *P2PBlockTxReq) Reset()

func (*P2PBlockTxReq) String

func (x *P2PBlockTxReq) String() string

type P2PExternalInfo

type P2PExternalInfo struct {

	///节点的外网地址
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//节点是否在外网
	Isoutside bool `protobuf:"varint,2,opt,name=isoutside,proto3" json:"isoutside,omitempty"`
	// contains filtered or unexported fields
}

* 节点外网信息

func (*P2PExternalInfo) Descriptor deprecated

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

Deprecated: Use P2PExternalInfo.ProtoReflect.Descriptor instead.

func (*P2PExternalInfo) GetAddr

func (x *P2PExternalInfo) GetAddr() string

func (*P2PExternalInfo) GetIsoutside

func (x *P2PExternalInfo) GetIsoutside() bool

func (*P2PExternalInfo) ProtoMessage

func (*P2PExternalInfo) ProtoMessage()

func (*P2PExternalInfo) ProtoReflect added in v1.65.3

func (x *P2PExternalInfo) ProtoReflect() protoreflect.Message

func (*P2PExternalInfo) Reset

func (x *P2PExternalInfo) Reset()

func (*P2PExternalInfo) String

func (x *P2PExternalInfo) String() string

type P2PGetAddr

type P2PGetAddr struct {
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

* 获取对方节点所连接的其他节点地址的请求包

func (*P2PGetAddr) Descriptor deprecated

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

Deprecated: Use P2PGetAddr.ProtoReflect.Descriptor instead.

func (*P2PGetAddr) GetNonce

func (x *P2PGetAddr) GetNonce() int64

func (*P2PGetAddr) ProtoMessage

func (*P2PGetAddr) ProtoMessage()

func (*P2PGetAddr) ProtoReflect added in v1.65.3

func (x *P2PGetAddr) ProtoReflect() protoreflect.Message

func (*P2PGetAddr) Reset

func (x *P2PGetAddr) Reset()

func (*P2PGetAddr) String

func (x *P2PGetAddr) String() string

type P2PGetBlocks

type P2PGetBlocks struct {
	Version     int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	StartHeight int64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	EndHeight   int64 `protobuf:"varint,3,opt,name=endHeight,proto3" json:"endHeight,omitempty"`
	// contains filtered or unexported fields
}

* 获取区间区块

func (*P2PGetBlocks) Descriptor deprecated

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

Deprecated: Use P2PGetBlocks.ProtoReflect.Descriptor instead.

func (*P2PGetBlocks) GetEndHeight

func (x *P2PGetBlocks) GetEndHeight() int64

func (*P2PGetBlocks) GetStartHeight

func (x *P2PGetBlocks) GetStartHeight() int64

func (*P2PGetBlocks) GetVersion

func (x *P2PGetBlocks) GetVersion() int32

func (*P2PGetBlocks) ProtoMessage

func (*P2PGetBlocks) ProtoMessage()

func (*P2PGetBlocks) ProtoReflect added in v1.65.3

func (x *P2PGetBlocks) ProtoReflect() protoreflect.Message

func (*P2PGetBlocks) Reset

func (x *P2PGetBlocks) Reset()

func (*P2PGetBlocks) String

func (x *P2PGetBlocks) String() string

type P2PGetData

type P2PGetData struct {

	/// p2p版本
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	/// invs 数组
	Invs []*Inventory `protobuf:"bytes,2,rep,name=invs,proto3" json:"invs,omitempty"`
	// contains filtered or unexported fields
}

* 通过invs 下载数据

func (*P2PGetData) Descriptor deprecated

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

Deprecated: Use P2PGetData.ProtoReflect.Descriptor instead.

func (*P2PGetData) GetInvs

func (x *P2PGetData) GetInvs() []*Inventory

func (*P2PGetData) GetVersion

func (x *P2PGetData) GetVersion() int32

func (*P2PGetData) ProtoMessage

func (*P2PGetData) ProtoMessage()

func (*P2PGetData) ProtoReflect added in v1.65.3

func (x *P2PGetData) ProtoReflect() protoreflect.Message

func (*P2PGetData) Reset

func (x *P2PGetData) Reset()

func (*P2PGetData) String

func (x *P2PGetData) String() string

type P2PGetHeaders

type P2PGetHeaders struct {
	Version     int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	StartHeight int64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	EndHeight   int64 `protobuf:"varint,3,opt,name=endHeight,proto3" json:"endHeight,omitempty"`
	// contains filtered or unexported fields
}

* p2p 获取区块区间头部信息协议

func (*P2PGetHeaders) Descriptor deprecated

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

Deprecated: Use P2PGetHeaders.ProtoReflect.Descriptor instead.

func (*P2PGetHeaders) GetEndHeight

func (x *P2PGetHeaders) GetEndHeight() int64

func (*P2PGetHeaders) GetStartHeight

func (x *P2PGetHeaders) GetStartHeight() int64

func (*P2PGetHeaders) GetVersion

func (x *P2PGetHeaders) GetVersion() int32

func (*P2PGetHeaders) ProtoMessage

func (*P2PGetHeaders) ProtoMessage()

func (*P2PGetHeaders) ProtoReflect added in v1.65.3

func (x *P2PGetHeaders) ProtoReflect() protoreflect.Message

func (*P2PGetHeaders) Reset

func (x *P2PGetHeaders) Reset()

func (*P2PGetHeaders) String

func (x *P2PGetHeaders) String() string

type P2PGetMempool

type P2PGetMempool struct {
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

* 获取mempool

func (*P2PGetMempool) Descriptor deprecated

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

Deprecated: Use P2PGetMempool.ProtoReflect.Descriptor instead.

func (*P2PGetMempool) GetVersion

func (x *P2PGetMempool) GetVersion() int32

func (*P2PGetMempool) ProtoMessage

func (*P2PGetMempool) ProtoMessage()

func (*P2PGetMempool) ProtoReflect added in v1.65.3

func (x *P2PGetMempool) ProtoReflect() protoreflect.Message

func (*P2PGetMempool) Reset

func (x *P2PGetMempool) Reset()

func (*P2PGetMempool) String

func (x *P2PGetMempool) String() string

type P2PGetNetInfoReq

type P2PGetNetInfoReq struct {
	P2PType string `protobuf:"bytes,1,opt,name=p2pType,proto3" json:"p2pType,omitempty"`
	// contains filtered or unexported fields
}

* p2p get net info req

func (*P2PGetNetInfoReq) Descriptor deprecated

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

Deprecated: Use P2PGetNetInfoReq.ProtoReflect.Descriptor instead.

func (*P2PGetNetInfoReq) GetP2PType

func (x *P2PGetNetInfoReq) GetP2PType() string

func (*P2PGetNetInfoReq) ProtoMessage

func (*P2PGetNetInfoReq) ProtoMessage()

func (*P2PGetNetInfoReq) ProtoReflect added in v1.65.3

func (x *P2PGetNetInfoReq) ProtoReflect() protoreflect.Message

func (*P2PGetNetInfoReq) Reset

func (x *P2PGetNetInfoReq) Reset()

func (*P2PGetNetInfoReq) String

func (x *P2PGetNetInfoReq) String() string

type P2PGetPeerInfo

type P2PGetPeerInfo struct {

	/// p2p版本
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

* 请求获取远程节点的节点信息

func (*P2PGetPeerInfo) Descriptor deprecated

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

Deprecated: Use P2PGetPeerInfo.ProtoReflect.Descriptor instead.

func (*P2PGetPeerInfo) GetVersion

func (x *P2PGetPeerInfo) GetVersion() int32

func (*P2PGetPeerInfo) ProtoMessage

func (*P2PGetPeerInfo) ProtoMessage()

func (*P2PGetPeerInfo) ProtoReflect added in v1.65.3

func (x *P2PGetPeerInfo) ProtoReflect() protoreflect.Message

func (*P2PGetPeerInfo) Reset

func (x *P2PGetPeerInfo) Reset()

func (*P2PGetPeerInfo) String

func (x *P2PGetPeerInfo) String() string

type P2PGetPeerReq

type P2PGetPeerReq struct {
	P2PType string `protobuf:"bytes,1,opt,name=p2pType,proto3" json:"p2pType,omitempty"`
	// contains filtered or unexported fields
}

* p2p get peer req

func (*P2PGetPeerReq) Descriptor deprecated

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

Deprecated: Use P2PGetPeerReq.ProtoReflect.Descriptor instead.

func (*P2PGetPeerReq) GetP2PType

func (x *P2PGetPeerReq) GetP2PType() string

func (*P2PGetPeerReq) ProtoMessage

func (*P2PGetPeerReq) ProtoMessage()

func (*P2PGetPeerReq) ProtoReflect added in v1.65.3

func (x *P2PGetPeerReq) ProtoReflect() protoreflect.Message

func (*P2PGetPeerReq) Reset

func (x *P2PGetPeerReq) Reset()

func (*P2PGetPeerReq) String

func (x *P2PGetPeerReq) String() string

type P2PHeaders

type P2PHeaders struct {
	Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

* p2p 区块头传输协议

func (*P2PHeaders) Descriptor deprecated

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

Deprecated: Use P2PHeaders.ProtoReflect.Descriptor instead.

func (*P2PHeaders) GetHeaders

func (x *P2PHeaders) GetHeaders() []*Header

func (*P2PHeaders) ProtoMessage

func (*P2PHeaders) ProtoMessage()

func (*P2PHeaders) ProtoReflect added in v1.65.3

func (x *P2PHeaders) ProtoReflect() protoreflect.Message

func (*P2PHeaders) Reset

func (x *P2PHeaders) Reset()

func (*P2PHeaders) String

func (x *P2PHeaders) String() string

type P2PInv

type P2PInv struct {
	Invs []*Inventory `protobuf:"bytes,1,rep,name=invs,proto3" json:"invs,omitempty"`
	// contains filtered or unexported fields
}

func (*P2PInv) Descriptor deprecated

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

Deprecated: Use P2PInv.ProtoReflect.Descriptor instead.

func (*P2PInv) GetInvs

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

func (*P2PInv) ProtoMessage

func (*P2PInv) ProtoMessage()

func (*P2PInv) ProtoReflect added in v1.65.3

func (x *P2PInv) ProtoReflect() protoreflect.Message

func (*P2PInv) Reset

func (x *P2PInv) Reset()

func (*P2PInv) String

func (x *P2PInv) String() string

type P2PMessageHeaders added in v1.65.0

type P2PMessageHeaders struct {

	// shared between all requests
	Version   string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`      // client version
	Timestamp int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // unix time
	Id        int64  `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`               // allows requesters to use request data when processing a response
	Sign      []byte `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`            // signature of message data + method specific data by message authoring node.
	// contains filtered or unexported fields
}

func (*P2PMessageHeaders) Descriptor deprecated added in v1.65.0

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

Deprecated: Use P2PMessageHeaders.ProtoReflect.Descriptor instead.

func (*P2PMessageHeaders) GetId added in v1.65.0

func (x *P2PMessageHeaders) GetId() int64

func (*P2PMessageHeaders) GetSign added in v1.65.0

func (x *P2PMessageHeaders) GetSign() []byte

func (*P2PMessageHeaders) GetTimestamp added in v1.65.0

func (x *P2PMessageHeaders) GetTimestamp() int64

func (*P2PMessageHeaders) GetVersion added in v1.65.0

func (x *P2PMessageHeaders) GetVersion() string

func (*P2PMessageHeaders) ProtoMessage added in v1.65.0

func (*P2PMessageHeaders) ProtoMessage()

func (*P2PMessageHeaders) ProtoReflect added in v1.65.3

func (x *P2PMessageHeaders) ProtoReflect() protoreflect.Message

func (*P2PMessageHeaders) Reset added in v1.65.0

func (x *P2PMessageHeaders) Reset()

func (*P2PMessageHeaders) String added in v1.65.0

func (x *P2PMessageHeaders) String() string

type P2PPeerInfo

type P2PPeerInfo struct {

	///节点的IP地址
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	///节点的外网端口
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	///节点的名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	/// mempool 的大小
	MempoolSize int32 `protobuf:"varint,4,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
	///节点当前高度头部数据
	Header         *Header `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
	Version        string  `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	LocalDBVersion string  `protobuf:"bytes,7,opt,name=localDBVersion,proto3" json:"localDBVersion,omitempty"`
	StoreDBVersion string  `protobuf:"bytes,8,opt,name=storeDBVersion,proto3" json:"storeDBVersion,omitempty"`
	RunningTime    string  `protobuf:"bytes,9,opt,name=runningTime,proto3" json:"runningTime,omitempty"`
	FullNode       bool    `protobuf:"varint,10,opt,name=fullNode,proto3" json:"fullNode,omitempty"`
	Blocked        bool    `protobuf:"varint,11,opt,name=blocked,proto3" json:"blocked,omitempty"`
	// contains filtered or unexported fields
}

* 节点信息

func (*P2PPeerInfo) Descriptor deprecated

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

Deprecated: Use P2PPeerInfo.ProtoReflect.Descriptor instead.

func (*P2PPeerInfo) GetAddr

func (x *P2PPeerInfo) GetAddr() string

func (*P2PPeerInfo) GetBlocked added in v1.65.3

func (x *P2PPeerInfo) GetBlocked() bool

func (*P2PPeerInfo) GetFullNode added in v1.65.3

func (x *P2PPeerInfo) GetFullNode() bool

func (*P2PPeerInfo) GetHeader

func (x *P2PPeerInfo) GetHeader() *Header

func (*P2PPeerInfo) GetLocalDBVersion added in v1.65.0

func (x *P2PPeerInfo) GetLocalDBVersion() string

func (*P2PPeerInfo) GetMempoolSize

func (x *P2PPeerInfo) GetMempoolSize() int32

func (*P2PPeerInfo) GetName

func (x *P2PPeerInfo) GetName() string

func (*P2PPeerInfo) GetPort

func (x *P2PPeerInfo) GetPort() int32

func (*P2PPeerInfo) GetRunningTime added in v1.65.3

func (x *P2PPeerInfo) GetRunningTime() string

func (*P2PPeerInfo) GetStoreDBVersion added in v1.65.0

func (x *P2PPeerInfo) GetStoreDBVersion() string

func (*P2PPeerInfo) GetVersion added in v1.65.0

func (x *P2PPeerInfo) GetVersion() string

func (*P2PPeerInfo) ProtoMessage

func (*P2PPeerInfo) ProtoMessage()

func (*P2PPeerInfo) ProtoReflect added in v1.65.3

func (x *P2PPeerInfo) ProtoReflect() protoreflect.Message

func (*P2PPeerInfo) Reset

func (x *P2PPeerInfo) Reset()

func (*P2PPeerInfo) String

func (x *P2PPeerInfo) String() string

type P2PPing

type P2PPing struct {

	///随机数
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	///节点的外网地址
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	///节点的外网端口
	Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	//签名
	Sign *Signature `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

* P2P 心跳包

func (*P2PPing) Descriptor deprecated

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

Deprecated: Use P2PPing.ProtoReflect.Descriptor instead.

func (*P2PPing) GetAddr

func (x *P2PPing) GetAddr() string

func (*P2PPing) GetNonce

func (x *P2PPing) GetNonce() int64

func (*P2PPing) GetPort

func (x *P2PPing) GetPort() int32

func (*P2PPing) GetSign

func (x *P2PPing) GetSign() *Signature

func (*P2PPing) ProtoMessage

func (*P2PPing) ProtoMessage()

func (*P2PPing) ProtoReflect added in v1.65.3

func (x *P2PPing) ProtoReflect() protoreflect.Message

func (*P2PPing) Reset

func (x *P2PPing) Reset()

func (*P2PPing) String

func (x *P2PPing) String() string

type P2PPong

type P2PPong struct {
	Nonce int64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

* 心跳返回包

func (*P2PPong) Descriptor deprecated

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

Deprecated: Use P2PPong.ProtoReflect.Descriptor instead.

func (*P2PPong) GetNonce

func (x *P2PPong) GetNonce() int64

func (*P2PPong) ProtoMessage

func (*P2PPong) ProtoMessage()

func (*P2PPong) ProtoReflect added in v1.65.3

func (x *P2PPong) ProtoReflect() protoreflect.Message

func (*P2PPong) Reset

func (x *P2PPong) Reset()

func (*P2PPong) String

func (x *P2PPong) String() string

type P2PQueryData

type P2PQueryData struct {

	// Types that are assignable to Value:
	//	*P2PQueryData_TxReq
	//	*P2PQueryData_BlockTxReq
	Value isP2PQueryData_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

节点收到区块或交易hash, 当在本地不存在时,需要请求重发完整交易或区块 采用统一结构减少消息类型

func (*P2PQueryData) Descriptor deprecated

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

Deprecated: Use P2PQueryData.ProtoReflect.Descriptor instead.

func (*P2PQueryData) GetBlockTxReq

func (x *P2PQueryData) GetBlockTxReq() *P2PBlockTxReq

func (*P2PQueryData) GetTxReq

func (x *P2PQueryData) GetTxReq() *P2PTxReq

func (*P2PQueryData) GetValue

func (m *P2PQueryData) GetValue() isP2PQueryData_Value

func (*P2PQueryData) ProtoMessage

func (*P2PQueryData) ProtoMessage()

func (*P2PQueryData) ProtoReflect added in v1.65.3

func (x *P2PQueryData) ProtoReflect() protoreflect.Message

func (*P2PQueryData) Reset

func (x *P2PQueryData) Reset()

func (*P2PQueryData) String

func (x *P2PQueryData) String() string

type P2PQueryData_BlockTxReq

type P2PQueryData_BlockTxReq struct {
	BlockTxReq *P2PBlockTxReq `protobuf:"bytes,2,opt,name=blockTxReq,proto3,oneof"`
}

type P2PQueryData_TxReq

type P2PQueryData_TxReq struct {
	TxReq *P2PTxReq `protobuf:"bytes,1,opt,name=txReq,proto3,oneof"`
}

type P2PRequest added in v1.65.0

type P2PRequest struct {
	Headers *P2PMessageHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"`
	// Types that are assignable to Request:
	//	*P2PRequest_ReqChunkRecords
	//	*P2PRequest_ChunkInfoMsg
	//	*P2PRequest_ChunkInfoList
	//	*P2PRequest_ReqBlocks
	//	*P2PRequest_ReqPeers
	//	*P2PRequest_Pid
	//	*P2PRequest_PeerInfo
	//	*P2PRequest_Provider
	Request isP2PRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*P2PRequest) Descriptor deprecated added in v1.65.0

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

Deprecated: Use P2PRequest.ProtoReflect.Descriptor instead.

func (*P2PRequest) GetChunkInfoList added in v1.65.0

func (x *P2PRequest) GetChunkInfoList() *ChunkInfoList

func (*P2PRequest) GetChunkInfoMsg added in v1.65.0

func (x *P2PRequest) GetChunkInfoMsg() *ChunkInfoMsg

func (*P2PRequest) GetHeaders added in v1.65.0

func (x *P2PRequest) GetHeaders() *P2PMessageHeaders

func (*P2PRequest) GetPeerInfo added in v1.65.3

func (x *P2PRequest) GetPeerInfo() *PeerInfo

func (*P2PRequest) GetPid added in v1.65.3

func (x *P2PRequest) GetPid() string

func (*P2PRequest) GetProvider added in v1.65.3

func (x *P2PRequest) GetProvider() *ChunkProvider

func (*P2PRequest) GetReqBlocks added in v1.65.0

func (x *P2PRequest) GetReqBlocks() *ReqBlocks

func (*P2PRequest) GetReqChunkRecords added in v1.65.0

func (x *P2PRequest) GetReqChunkRecords() *ReqChunkRecords

func (*P2PRequest) GetReqPeers added in v1.65.1

func (x *P2PRequest) GetReqPeers() *ReqPeers

func (*P2PRequest) GetRequest added in v1.65.0

func (m *P2PRequest) GetRequest() isP2PRequest_Request

func (*P2PRequest) ProtoMessage added in v1.65.0

func (*P2PRequest) ProtoMessage()

func (*P2PRequest) ProtoReflect added in v1.65.3

func (x *P2PRequest) ProtoReflect() protoreflect.Message

func (*P2PRequest) Reset added in v1.65.0

func (x *P2PRequest) Reset()

func (*P2PRequest) String added in v1.65.0

func (x *P2PRequest) String() string

type P2PRequest_ChunkInfoList added in v1.65.0

type P2PRequest_ChunkInfoList struct {
	ChunkInfoList *ChunkInfoList `protobuf:"bytes,4,opt,name=chunkInfoList,proto3,oneof"`
}

type P2PRequest_ChunkInfoMsg added in v1.65.0

type P2PRequest_ChunkInfoMsg struct {
	ChunkInfoMsg *ChunkInfoMsg `protobuf:"bytes,3,opt,name=chunkInfoMsg,proto3,oneof"`
}

type P2PRequest_PeerInfo added in v1.65.3

type P2PRequest_PeerInfo struct {
	PeerInfo *PeerInfo `protobuf:"bytes,8,opt,name=peerInfo,proto3,oneof"`
}

type P2PRequest_Pid added in v1.65.3

type P2PRequest_Pid struct {
	Pid string `protobuf:"bytes,7,opt,name=pid,proto3,oneof"`
}

type P2PRequest_Provider added in v1.65.3

type P2PRequest_Provider struct {
	Provider *ChunkProvider `protobuf:"bytes,9,opt,name=provider,proto3,oneof"`
}

type P2PRequest_ReqBlocks added in v1.65.0

type P2PRequest_ReqBlocks struct {
	ReqBlocks *ReqBlocks `protobuf:"bytes,5,opt,name=reqBlocks,proto3,oneof"`
}

type P2PRequest_ReqChunkRecords added in v1.65.0

type P2PRequest_ReqChunkRecords struct {
	ReqChunkRecords *ReqChunkRecords `protobuf:"bytes,2,opt,name=reqChunkRecords,proto3,oneof"`
}

type P2PRequest_ReqPeers added in v1.65.1

type P2PRequest_ReqPeers struct {
	//新的协议可以继续添加request类型
	ReqPeers *ReqPeers `protobuf:"bytes,6,opt,name=reqPeers,proto3,oneof"`
}

type P2PResponse added in v1.65.0

type P2PResponse struct {
	Headers     *P2PMessageHeaders `protobuf:"bytes,1,opt,name=headers,proto3" json:"headers,omitempty"`
	Error       string             `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	CloserPeers []*PeerInfo        `protobuf:"bytes,3,rep,name=closerPeers,proto3" json:"closerPeers,omitempty"`
	// Types that are assignable to Response:
	//	*P2PResponse_BlockBody
	//	*P2PResponse_BlockHeaders
	//	*P2PResponse_ChunkRecords
	//	*P2PResponse_NodeInfo
	//	*P2PResponse_PeerInfo
	//	*P2PResponse_PeerInfos
	Response isP2PResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*P2PResponse) Descriptor deprecated added in v1.65.0

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

Deprecated: Use P2PResponse.ProtoReflect.Descriptor instead.

func (*P2PResponse) GetBlockBody added in v1.65.0

func (x *P2PResponse) GetBlockBody() *BlockBody

func (*P2PResponse) GetBlockHeaders added in v1.65.0

func (x *P2PResponse) GetBlockHeaders() *Headers

func (*P2PResponse) GetChunkRecords added in v1.65.0

func (x *P2PResponse) GetChunkRecords() *ChunkRecords

func (*P2PResponse) GetCloserPeers added in v1.65.0

func (x *P2PResponse) GetCloserPeers() []*PeerInfo

func (*P2PResponse) GetError added in v1.65.0

func (x *P2PResponse) GetError() string

func (*P2PResponse) GetHeaders added in v1.65.0

func (x *P2PResponse) GetHeaders() *P2PMessageHeaders

func (*P2PResponse) GetNodeInfo added in v1.65.1

func (x *P2PResponse) GetNodeInfo() *NodeInfo

func (*P2PResponse) GetPeerInfo added in v1.65.3

func (x *P2PResponse) GetPeerInfo() *PeerInfo

func (*P2PResponse) GetPeerInfos added in v1.65.3

func (x *P2PResponse) GetPeerInfos() *PeerInfoList

func (*P2PResponse) GetResponse added in v1.65.0

func (m *P2PResponse) GetResponse() isP2PResponse_Response

func (*P2PResponse) ProtoMessage added in v1.65.0

func (*P2PResponse) ProtoMessage()

func (*P2PResponse) ProtoReflect added in v1.65.3

func (x *P2PResponse) ProtoReflect() protoreflect.Message

func (*P2PResponse) Reset added in v1.65.0

func (x *P2PResponse) Reset()

func (*P2PResponse) String added in v1.65.0

func (x *P2PResponse) String() string

type P2PResponse_BlockBody added in v1.65.0

type P2PResponse_BlockBody struct {
	BlockBody *BlockBody `protobuf:"bytes,5,opt,name=blockBody,proto3,oneof"`
}

type P2PResponse_BlockHeaders added in v1.65.0

type P2PResponse_BlockHeaders struct {
	BlockHeaders *Headers `protobuf:"bytes,6,opt,name=blockHeaders,proto3,oneof"`
}

type P2PResponse_ChunkRecords added in v1.65.0

type P2PResponse_ChunkRecords struct {
	ChunkRecords *ChunkRecords `protobuf:"bytes,7,opt,name=chunkRecords,proto3,oneof"`
}

type P2PResponse_NodeInfo added in v1.65.1

type P2PResponse_NodeInfo struct {
	//新的协议可以继续添加response类型
	NodeInfo *NodeInfo `protobuf:"bytes,8,opt,name=nodeInfo,proto3,oneof"`
}

type P2PResponse_PeerInfo added in v1.65.3

type P2PResponse_PeerInfo struct {
	PeerInfo *PeerInfo `protobuf:"bytes,9,opt,name=peerInfo,proto3,oneof"`
}

type P2PResponse_PeerInfos added in v1.65.3

type P2PResponse_PeerInfos struct {
	PeerInfos *PeerInfoList `protobuf:"bytes,10,opt,name=peerInfos,proto3,oneof"`
}

type P2PRoute

type P2PRoute struct {
	TTL int32 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
	// contains filtered or unexported fields
}

func (*P2PRoute) Descriptor deprecated

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

Deprecated: Use P2PRoute.ProtoReflect.Descriptor instead.

func (*P2PRoute) GetTTL

func (x *P2PRoute) GetTTL() int32

func (*P2PRoute) ProtoMessage

func (*P2PRoute) ProtoMessage()

func (*P2PRoute) ProtoReflect added in v1.65.3

func (x *P2PRoute) ProtoReflect() protoreflect.Message

func (*P2PRoute) Reset

func (x *P2PRoute) Reset()

func (*P2PRoute) String

func (x *P2PRoute) String() string

type P2PTx

type P2PTx struct {
	Tx    *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Route *P2PRoute    `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
	// contains filtered or unexported fields
}

* p2p 发送交易协议

func (*P2PTx) Descriptor deprecated

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

Deprecated: Use P2PTx.ProtoReflect.Descriptor instead.

func (*P2PTx) GetRoute

func (x *P2PTx) GetRoute() *P2PRoute

func (*P2PTx) GetTx

func (x *P2PTx) GetTx() *Transaction

func (*P2PTx) ProtoMessage

func (*P2PTx) ProtoMessage()

func (*P2PTx) ProtoReflect added in v1.65.3

func (x *P2PTx) ProtoReflect() protoreflect.Message

func (*P2PTx) Reset

func (x *P2PTx) Reset()

func (*P2PTx) String

func (x *P2PTx) String() string

type P2PTxReq

type P2PTxReq struct {
	TxHash []byte `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
	// contains filtered or unexported fields
}

请求完整交易数据

func (*P2PTxReq) Descriptor deprecated

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

Deprecated: Use P2PTxReq.ProtoReflect.Descriptor instead.

func (*P2PTxReq) GetTxHash

func (x *P2PTxReq) GetTxHash() []byte

func (*P2PTxReq) ProtoMessage

func (*P2PTxReq) ProtoMessage()

func (*P2PTxReq) ProtoReflect added in v1.65.3

func (x *P2PTxReq) ProtoReflect() protoreflect.Message

func (*P2PTxReq) Reset

func (x *P2PTxReq) Reset()

func (*P2PTxReq) String

func (x *P2PTxReq) String() string

type P2PVerAck

type P2PVerAck struct {
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
	Nonce   int64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

* P2P 版本返回

func (*P2PVerAck) Descriptor deprecated

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

Deprecated: Use P2PVerAck.ProtoReflect.Descriptor instead.

func (*P2PVerAck) GetNonce

func (x *P2PVerAck) GetNonce() int64

func (*P2PVerAck) GetService

func (x *P2PVerAck) GetService() int64

func (*P2PVerAck) GetVersion

func (x *P2PVerAck) GetVersion() int32

func (*P2PVerAck) ProtoMessage

func (*P2PVerAck) ProtoMessage()

func (*P2PVerAck) ProtoReflect added in v1.65.3

func (x *P2PVerAck) ProtoReflect() protoreflect.Message

func (*P2PVerAck) Reset

func (x *P2PVerAck) Reset()

func (*P2PVerAck) String

func (x *P2PVerAck) String() string

type P2PVersion

type P2PVersion struct {

	///当前版本
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	///服务类型
	Service int64 `protobuf:"varint,2,opt,name=service,proto3" json:"service,omitempty"`
	///时间戳
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	///数据包的目的地址
	AddrRecv string `protobuf:"bytes,4,opt,name=addrRecv,proto3" json:"addrRecv,omitempty"`
	///数据发送的源地址
	AddrFrom string `protobuf:"bytes,5,opt,name=addrFrom,proto3" json:"addrFrom,omitempty"`
	///随机数
	Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	///用户代理
	UserAgent string `protobuf:"bytes,7,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
	///当前节点的高度
	StartHeight int64 `protobuf:"varint,8,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	// contains filtered or unexported fields
}

* p2p节点间发送版本数据结构

func (*P2PVersion) Descriptor deprecated

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

Deprecated: Use P2PVersion.ProtoReflect.Descriptor instead.

func (*P2PVersion) GetAddrFrom

func (x *P2PVersion) GetAddrFrom() string

func (*P2PVersion) GetAddrRecv

func (x *P2PVersion) GetAddrRecv() string

func (*P2PVersion) GetNonce

func (x *P2PVersion) GetNonce() int64

func (*P2PVersion) GetService

func (x *P2PVersion) GetService() int64

func (*P2PVersion) GetStartHeight

func (x *P2PVersion) GetStartHeight() int64

func (*P2PVersion) GetTimestamp

func (x *P2PVersion) GetTimestamp() int64

func (*P2PVersion) GetUserAgent

func (x *P2PVersion) GetUserAgent() string

func (*P2PVersion) GetVersion

func (x *P2PVersion) GetVersion() int32

func (*P2PVersion) ProtoMessage

func (*P2PVersion) ProtoMessage()

func (*P2PVersion) ProtoReflect added in v1.65.3

func (x *P2PVersion) ProtoReflect() protoreflect.Message

func (*P2PVersion) Reset

func (x *P2PVersion) Reset()

func (*P2PVersion) String

func (x *P2PVersion) String() string

type P2PgserviceClient

type P2PgserviceClient interface {
	//广播交易
	BroadCastTx(ctx context.Context, in *P2PTx, opts ...grpc.CallOption) (*Reply, error)
	//广播区块
	BroadCastBlock(ctx context.Context, in *P2PBlock, opts ...grpc.CallOption) (*Reply, error)
	// PING
	Ping(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*P2PPong, error)
	//获取地址
	GetAddr(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddr, error)
	GetAddrList(ctx context.Context, in *P2PGetAddr, opts ...grpc.CallOption) (*P2PAddrList, error)
	//版本
	Version(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVerAck, error)
	//获取p2p协议的版本号
	Version2(ctx context.Context, in *P2PVersion, opts ...grpc.CallOption) (*P2PVersion, error)
	//获取软件的版本号
	SoftVersion(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*Reply, error)
	//获取区块,最高200
	GetBlocks(ctx context.Context, in *P2PGetBlocks, opts ...grpc.CallOption) (*P2PInv, error)
	//获取mempool
	GetMemPool(ctx context.Context, in *P2PGetMempool, opts ...grpc.CallOption) (*P2PInv, error)
	//获取数据
	GetData(ctx context.Context, in *P2PGetData, opts ...grpc.CallOption) (P2Pgservice_GetDataClient, error)
	//获取头部
	GetHeaders(ctx context.Context, in *P2PGetHeaders, opts ...grpc.CallOption) (*P2PHeaders, error)
	//获取 peerinfo
	GetPeerInfo(ctx context.Context, in *P2PGetPeerInfo, opts ...grpc.CallOption) (*P2PPeerInfo, error)
	// grpc server 读客户端发送来的数据
	ServerStreamRead(ctx context.Context, opts ...grpc.CallOption) (P2Pgservice_ServerStreamReadClient, error)
	// grpc server 发送数据给客户端
	ServerStreamSend(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (P2Pgservice_ServerStreamSendClient, error)
	// grpc 收集inpeers
	CollectInPeers(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeerList, error)
	CollectInPeers2(ctx context.Context, in *P2PPing, opts ...grpc.CallOption) (*PeersReply, error)
}

P2PgserviceClient is the client API for P2Pgservice service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type P2PgserviceServer

type P2PgserviceServer interface {
	//广播交易
	BroadCastTx(context.Context, *P2PTx) (*Reply, error)
	//广播区块
	BroadCastBlock(context.Context, *P2PBlock) (*Reply, error)
	// PING
	Ping(context.Context, *P2PPing) (*P2PPong, error)
	//获取地址
	GetAddr(context.Context, *P2PGetAddr) (*P2PAddr, error)
	GetAddrList(context.Context, *P2PGetAddr) (*P2PAddrList, error)
	//版本
	Version(context.Context, *P2PVersion) (*P2PVerAck, error)
	//获取p2p协议的版本号
	Version2(context.Context, *P2PVersion) (*P2PVersion, error)
	//获取软件的版本号
	SoftVersion(context.Context, *P2PPing) (*Reply, error)
	//获取区块,最高200
	GetBlocks(context.Context, *P2PGetBlocks) (*P2PInv, error)
	//获取mempool
	GetMemPool(context.Context, *P2PGetMempool) (*P2PInv, error)
	//获取数据
	GetData(*P2PGetData, P2Pgservice_GetDataServer) error
	//获取头部
	GetHeaders(context.Context, *P2PGetHeaders) (*P2PHeaders, error)
	//获取 peerinfo
	GetPeerInfo(context.Context, *P2PGetPeerInfo) (*P2PPeerInfo, error)
	// grpc server 读客户端发送来的数据
	ServerStreamRead(P2Pgservice_ServerStreamReadServer) error
	// grpc server 发送数据给客户端
	ServerStreamSend(*P2PPing, P2Pgservice_ServerStreamSendServer) error
	// grpc 收集inpeers
	CollectInPeers(context.Context, *P2PPing) (*PeerList, error)
	CollectInPeers2(context.Context, *P2PPing) (*PeersReply, error)
}

P2PgserviceServer is the server API for P2Pgservice service.

type P2Pgservice_GetDataClient

type P2Pgservice_GetDataClient interface {
	Recv() (*InvDatas, error)
	grpc.ClientStream
}

type P2Pgservice_GetDataServer

type P2Pgservice_GetDataServer interface {
	Send(*InvDatas) error
	grpc.ServerStream
}

type P2Pgservice_ServerStreamReadClient

type P2Pgservice_ServerStreamReadClient interface {
	Send(*BroadCastData) error
	CloseAndRecv() (*ReqNil, error)
	grpc.ClientStream
}

type P2Pgservice_ServerStreamReadServer

type P2Pgservice_ServerStreamReadServer interface {
	SendAndClose(*ReqNil) error
	Recv() (*BroadCastData, error)
	grpc.ServerStream
}

type P2Pgservice_ServerStreamSendClient

type P2Pgservice_ServerStreamSendClient interface {
	Recv() (*BroadCastData, error)
	grpc.ClientStream
}

type P2Pgservice_ServerStreamSendServer

type P2Pgservice_ServerStreamSendServer interface {
	Send(*BroadCastData) error
	grpc.ServerStream
}

type ParaChainBlockDetail

type ParaChainBlockDetail struct {
	Blockdetail *BlockDetail `protobuf:"bytes,1,opt,name=blockdetail,proto3" json:"blockdetail,omitempty"`
	Sequence    int64        `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	IsSync      bool         `protobuf:"varint,3,opt,name=isSync,proto3" json:"isSync,omitempty"`
	// contains filtered or unexported fields
}

平行链区块详细信息

	 blockdetail : 区块详细信息
	 sequence :区块序列号
  isSync:写数据库时是否需要刷盘

func (*ParaChainBlockDetail) Descriptor deprecated

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

Deprecated: Use ParaChainBlockDetail.ProtoReflect.Descriptor instead.

func (*ParaChainBlockDetail) GetBlockdetail

func (x *ParaChainBlockDetail) GetBlockdetail() *BlockDetail

func (*ParaChainBlockDetail) GetIsSync

func (x *ParaChainBlockDetail) GetIsSync() bool

func (*ParaChainBlockDetail) GetSequence

func (x *ParaChainBlockDetail) GetSequence() int64

func (*ParaChainBlockDetail) ProtoMessage

func (*ParaChainBlockDetail) ProtoMessage()

func (*ParaChainBlockDetail) ProtoReflect added in v1.65.3

func (x *ParaChainBlockDetail) ProtoReflect() protoreflect.Message

func (*ParaChainBlockDetail) Reset

func (x *ParaChainBlockDetail) Reset()

func (*ParaChainBlockDetail) String

func (x *ParaChainBlockDetail) String() string

type ParaCrossTx

type ParaCrossTx interface {
	IsParaCrossTx() bool
}

ParaCrossTx 平行跨链交易

type ParaTxDetail

type ParaTxDetail struct {
	Type      int64       `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	Header    *Header     `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	TxDetails []*TxDetail `protobuf:"bytes,3,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
	ChildHash []byte      `protobuf:"bytes,4,opt,name=childHash,proto3" json:"childHash,omitempty"`
	Index     uint32      `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	Proofs    [][]byte    `protobuf:"bytes,6,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// contains filtered or unexported fields
}

type:平行链交易所在区块add/del操作,方便平行链回滚 header:平行链交易所在区块头信息 txDetails:本区块中指定title平行链的所有交易 proofs:对应平行链子roothash的存在证明路径 childHash:此平行链交易的子roothash index:对应平行链子roothash在整个区块中的索引

func (*ParaTxDetail) Descriptor deprecated

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

Deprecated: Use ParaTxDetail.ProtoReflect.Descriptor instead.

func (*ParaTxDetail) GetChildHash

func (x *ParaTxDetail) GetChildHash() []byte

func (*ParaTxDetail) GetHeader

func (x *ParaTxDetail) GetHeader() *Header

func (*ParaTxDetail) GetIndex

func (x *ParaTxDetail) GetIndex() uint32

func (*ParaTxDetail) GetProofs

func (x *ParaTxDetail) GetProofs() [][]byte

func (*ParaTxDetail) GetTxDetails

func (x *ParaTxDetail) GetTxDetails() []*TxDetail

func (*ParaTxDetail) GetType

func (x *ParaTxDetail) GetType() int64

func (*ParaTxDetail) ProtoMessage

func (*ParaTxDetail) ProtoMessage()

func (*ParaTxDetail) ProtoReflect added in v1.65.3

func (x *ParaTxDetail) ProtoReflect() protoreflect.Message

func (*ParaTxDetail) Reset

func (x *ParaTxDetail) Reset()

func (*ParaTxDetail) Size

func (paraTxDetail *ParaTxDetail) Size() int

Size 获取paraTxDetail的Size

func (*ParaTxDetail) String

func (x *ParaTxDetail) String() string

type ParaTxDetails

type ParaTxDetails struct {
	Items []*ParaTxDetail `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

定义para交易结构

func (*ParaTxDetails) Descriptor deprecated

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

Deprecated: Use ParaTxDetails.ProtoReflect.Descriptor instead.

func (*ParaTxDetails) GetItems

func (x *ParaTxDetails) GetItems() []*ParaTxDetail

func (*ParaTxDetails) ProtoMessage

func (*ParaTxDetails) ProtoMessage()

func (*ParaTxDetails) ProtoReflect added in v1.65.3

func (x *ParaTxDetails) ProtoReflect() protoreflect.Message

func (*ParaTxDetails) Reset

func (x *ParaTxDetails) Reset()

func (*ParaTxDetails) String

func (x *ParaTxDetails) String() string

type Peer

type Peer struct {
	Addr           string  `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Port           int32   `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Name           string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Self           bool    `protobuf:"varint,4,opt,name=self,proto3" json:"self,omitempty"`
	MempoolSize    int32   `protobuf:"varint,5,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
	Header         *Header `protobuf:"bytes,6,opt,name=header,proto3" json:"header,omitempty"`
	Version        string  `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	LocalDBVersion string  `protobuf:"bytes,8,opt,name=localDBVersion,proto3" json:"localDBVersion,omitempty"`
	StoreDBVersion string  `protobuf:"bytes,9,opt,name=storeDBVersion,proto3" json:"storeDBVersion,omitempty"`
	RunningTime    string  `protobuf:"bytes,10,opt,name=runningTime,proto3" json:"runningTime,omitempty"`
	FullNode       bool    `protobuf:"varint,11,opt,name=fullNode,proto3" json:"fullNode,omitempty"`
	Blocked        bool    `protobuf:"varint,12,opt,name=blocked,proto3" json:"blocked,omitempty"`
	// contains filtered or unexported fields
}

* peer 信息

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAddr

func (x *Peer) GetAddr() string

func (*Peer) GetBlocked added in v1.65.3

func (x *Peer) GetBlocked() bool

func (*Peer) GetFullNode added in v1.65.3

func (x *Peer) GetFullNode() bool

func (*Peer) GetHeader

func (x *Peer) GetHeader() *Header

func (*Peer) GetLocalDBVersion added in v1.65.0

func (x *Peer) GetLocalDBVersion() string

func (*Peer) GetMempoolSize

func (x *Peer) GetMempoolSize() int32

func (*Peer) GetName

func (x *Peer) GetName() string

func (*Peer) GetPort

func (x *Peer) GetPort() int32

func (*Peer) GetRunningTime added in v1.65.3

func (x *Peer) GetRunningTime() string

func (*Peer) GetSelf

func (x *Peer) GetSelf() bool

func (*Peer) GetStoreDBVersion added in v1.65.0

func (x *Peer) GetStoreDBVersion() string

func (*Peer) GetVersion added in v1.65.0

func (x *Peer) GetVersion() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect added in v1.65.3

func (x *Peer) ProtoReflect() protoreflect.Message

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type PeerInfo added in v1.65.0

type PeerInfo struct {
	ID        []byte   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	MultiAddr [][]byte `protobuf:"bytes,2,rep,name=MultiAddr,proto3" json:"MultiAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*PeerInfo) Descriptor deprecated added in v1.65.0

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

Deprecated: Use PeerInfo.ProtoReflect.Descriptor instead.

func (*PeerInfo) GetID added in v1.65.0

func (x *PeerInfo) GetID() []byte

func (*PeerInfo) GetMultiAddr added in v1.65.0

func (x *PeerInfo) GetMultiAddr() [][]byte

func (*PeerInfo) ProtoMessage added in v1.65.0

func (*PeerInfo) ProtoMessage()

func (*PeerInfo) ProtoReflect added in v1.65.3

func (x *PeerInfo) ProtoReflect() protoreflect.Message

func (*PeerInfo) Reset added in v1.65.0

func (x *PeerInfo) Reset()

func (*PeerInfo) String added in v1.65.0

func (x *PeerInfo) String() string

type PeerInfoList added in v1.65.3

type PeerInfoList struct {
	PeerInfos []*PeerInfo `protobuf:"bytes,1,rep,name=peerInfos,proto3" json:"peerInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*PeerInfoList) Descriptor deprecated added in v1.65.3

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

Deprecated: Use PeerInfoList.ProtoReflect.Descriptor instead.

func (*PeerInfoList) GetPeerInfos added in v1.65.3

func (x *PeerInfoList) GetPeerInfos() []*PeerInfo

func (*PeerInfoList) ProtoMessage added in v1.65.3

func (*PeerInfoList) ProtoMessage()

func (*PeerInfoList) ProtoReflect added in v1.65.3

func (x *PeerInfoList) ProtoReflect() protoreflect.Message

func (*PeerInfoList) Reset added in v1.65.3

func (x *PeerInfoList) Reset()

func (*PeerInfoList) String added in v1.65.3

func (x *PeerInfoList) String() string

type PeerList

type PeerList struct {
	Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

* peer 列表

func (*PeerList) Descriptor deprecated

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

Deprecated: Use PeerList.ProtoReflect.Descriptor instead.

func (*PeerList) GetPeers

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

func (*PeerList) ProtoMessage

func (*PeerList) ProtoMessage()

func (*PeerList) ProtoReflect added in v1.65.3

func (x *PeerList) ProtoReflect() protoreflect.Message

func (*PeerList) Reset

func (x *PeerList) Reset()

func (*PeerList) String

func (x *PeerList) String() string

type PeerPubSubMsg added in v1.66.1

type PeerPubSubMsg struct {
	MsgID    int32  `protobuf:"varint,1,opt,name=msgID,proto3" json:"msgID,omitempty"`
	ProtoMsg []byte `protobuf:"bytes,2,opt,name=protoMsg,proto3" json:"protoMsg,omitempty"`
	// contains filtered or unexported fields
}

dht pub sub 通信数据

func (*PeerPubSubMsg) Descriptor deprecated added in v1.66.1

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

Deprecated: Use PeerPubSubMsg.ProtoReflect.Descriptor instead.

func (*PeerPubSubMsg) GetMsgID added in v1.66.1

func (x *PeerPubSubMsg) GetMsgID() int32

func (*PeerPubSubMsg) GetProtoMsg added in v1.66.1

func (x *PeerPubSubMsg) GetProtoMsg() []byte

func (*PeerPubSubMsg) ProtoMessage added in v1.66.1

func (*PeerPubSubMsg) ProtoMessage()

func (*PeerPubSubMsg) ProtoReflect added in v1.66.1

func (x *PeerPubSubMsg) ProtoReflect() protoreflect.Message

func (*PeerPubSubMsg) Reset added in v1.66.1

func (x *PeerPubSubMsg) Reset()

func (*PeerPubSubMsg) String added in v1.66.1

func (x *PeerPubSubMsg) String() string

type PeersInfo

type PeersInfo struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ip          string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	Port        int32  `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	Softversion string `protobuf:"bytes,4,opt,name=softversion,proto3" json:"softversion,omitempty"`
	P2Pversion  int32  `protobuf:"varint,5,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
	// contains filtered or unexported fields
}

func (*PeersInfo) Descriptor deprecated

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

Deprecated: Use PeersInfo.ProtoReflect.Descriptor instead.

func (*PeersInfo) GetIp

func (x *PeersInfo) GetIp() string

func (*PeersInfo) GetName

func (x *PeersInfo) GetName() string

func (*PeersInfo) GetP2Pversion

func (x *PeersInfo) GetP2Pversion() int32

func (*PeersInfo) GetPort

func (x *PeersInfo) GetPort() int32

func (*PeersInfo) GetSoftversion

func (x *PeersInfo) GetSoftversion() string

func (*PeersInfo) ProtoMessage

func (*PeersInfo) ProtoMessage()

func (*PeersInfo) ProtoReflect added in v1.65.3

func (x *PeersInfo) ProtoReflect() protoreflect.Message

func (*PeersInfo) Reset

func (x *PeersInfo) Reset()

func (*PeersInfo) String

func (x *PeersInfo) String() string

type PeersReply

type PeersReply struct {
	Peers []*PeersInfo `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

func (*PeersReply) Descriptor deprecated

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

Deprecated: Use PeersReply.ProtoReflect.Descriptor instead.

func (*PeersReply) GetPeers

func (x *PeersReply) GetPeers() []*PeersInfo

func (*PeersReply) ProtoMessage

func (*PeersReply) ProtoMessage()

func (*PeersReply) ProtoReflect added in v1.65.3

func (x *PeersReply) ProtoReflect() protoreflect.Message

func (*PeersReply) Reset

func (x *PeersReply) Reset()

func (*PeersReply) String

func (x *PeersReply) String() string

type Pprof

type Pprof struct {
	ListenAddr string `json:"listenAddr,omitempty"`
}

Pprof 配置

type ProtocolInfo added in v1.65.0

type ProtocolInfo struct {
	Protocol  string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Ratein    string `protobuf:"bytes,2,opt,name=ratein,proto3" json:"ratein,omitempty"`
	Rateout   string `protobuf:"bytes,3,opt,name=rateout,proto3" json:"rateout,omitempty"`
	Ratetotal string `protobuf:"bytes,4,opt,name=ratetotal,proto3" json:"ratetotal,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtocolInfo) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ProtocolInfo.ProtoReflect.Descriptor instead.

func (*ProtocolInfo) GetProtocol added in v1.65.0

func (x *ProtocolInfo) GetProtocol() string

func (*ProtocolInfo) GetRatein added in v1.65.0

func (x *ProtocolInfo) GetRatein() string

func (*ProtocolInfo) GetRateout added in v1.65.0

func (x *ProtocolInfo) GetRateout() string

func (*ProtocolInfo) GetRatetotal added in v1.65.0

func (x *ProtocolInfo) GetRatetotal() string

func (*ProtocolInfo) ProtoMessage added in v1.65.0

func (*ProtocolInfo) ProtoMessage()

func (*ProtocolInfo) ProtoReflect added in v1.65.3

func (x *ProtocolInfo) ProtoReflect() protoreflect.Message

func (*ProtocolInfo) Reset added in v1.65.0

func (x *ProtocolInfo) Reset()

func (*ProtocolInfo) String added in v1.65.0

func (x *ProtocolInfo) String() string

type PruneData

type PruneData struct {

	// 该叶子节点的所有父hash
	Hashs [][]byte `protobuf:"bytes,1,rep,name=hashs,proto3" json:"hashs,omitempty"`
	// contains filtered or unexported fields
}

func (*PruneData) Descriptor deprecated

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

Deprecated: Use PruneData.ProtoReflect.Descriptor instead.

func (*PruneData) GetHashs

func (x *PruneData) GetHashs() [][]byte

func (*PruneData) ProtoMessage

func (*PruneData) ProtoMessage()

func (*PruneData) ProtoReflect added in v1.65.3

func (x *PruneData) ProtoReflect() protoreflect.Message

func (*PruneData) Reset

func (x *PruneData) Reset()

func (*PruneData) String

func (x *PruneData) String() string

type PublishTopicMsg added in v1.65.0

type PublishTopicMsg struct {
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Msg   []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishTopicMsg) Descriptor deprecated added in v1.65.0

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

Deprecated: Use PublishTopicMsg.ProtoReflect.Descriptor instead.

func (*PublishTopicMsg) GetMsg added in v1.65.0

func (x *PublishTopicMsg) GetMsg() []byte

func (*PublishTopicMsg) GetTopic added in v1.65.0

func (x *PublishTopicMsg) GetTopic() string

func (*PublishTopicMsg) ProtoMessage added in v1.65.0

func (*PublishTopicMsg) ProtoMessage()

func (*PublishTopicMsg) ProtoReflect added in v1.65.3

func (x *PublishTopicMsg) ProtoReflect() protoreflect.Message

func (*PublishTopicMsg) Reset added in v1.65.0

func (x *PublishTopicMsg) Reset()

func (*PublishTopicMsg) String added in v1.65.0

func (x *PublishTopicMsg) String() string

type PublishTopicMsgReply added in v1.65.0

type PublishTopicMsgReply struct {
	Topic  string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Status bool   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Msg    string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishTopicMsgReply) Descriptor deprecated added in v1.65.0

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

Deprecated: Use PublishTopicMsgReply.ProtoReflect.Descriptor instead.

func (*PublishTopicMsgReply) GetMsg added in v1.65.0

func (x *PublishTopicMsgReply) GetMsg() string

func (*PublishTopicMsgReply) GetStatus added in v1.65.0

func (x *PublishTopicMsgReply) GetStatus() bool

func (*PublishTopicMsgReply) GetTopic added in v1.65.0

func (x *PublishTopicMsgReply) GetTopic() string

func (*PublishTopicMsgReply) ProtoMessage added in v1.65.0

func (*PublishTopicMsgReply) ProtoMessage()

func (*PublishTopicMsgReply) ProtoReflect added in v1.65.3

func (x *PublishTopicMsgReply) ProtoReflect() protoreflect.Message

func (*PublishTopicMsgReply) Reset added in v1.65.0

func (x *PublishTopicMsgReply) Reset()

func (*PublishTopicMsgReply) String added in v1.65.0

func (x *PublishTopicMsgReply) String() string

type PushData added in v1.66.1

type PushData struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Value:
	//	*PushData_BlockSeqs
	//	*PushData_HeaderSeqs
	//	*PushData_TxReceipts
	//	*PushData_TxResult
	//	*PushData_EvmLogs
	Value isPushData_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*PushData) Descriptor deprecated added in v1.66.1

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

Deprecated: Use PushData.ProtoReflect.Descriptor instead.

func (*PushData) GetBlockSeqs added in v1.66.1

func (x *PushData) GetBlockSeqs() *BlockSeqs

func (*PushData) GetEvmLogs added in v1.66.1

func (x *PushData) GetEvmLogs() *EVMTxLogsInBlks

func (*PushData) GetHeaderSeqs added in v1.66.1

func (x *PushData) GetHeaderSeqs() *HeaderSeqs

func (*PushData) GetName added in v1.66.1

func (x *PushData) GetName() string

func (*PushData) GetTxReceipts added in v1.66.1

func (x *PushData) GetTxReceipts() *TxReceipts4Subscribe

func (*PushData) GetTxResult added in v1.66.1

func (x *PushData) GetTxResult() *TxResultSeqs

func (*PushData) GetValue added in v1.66.1

func (m *PushData) GetValue() isPushData_Value

func (*PushData) ProtoMessage added in v1.66.1

func (*PushData) ProtoMessage()

func (*PushData) ProtoReflect added in v1.66.1

func (x *PushData) ProtoReflect() protoreflect.Message

func (*PushData) Reset added in v1.66.1

func (x *PushData) Reset()

func (*PushData) String added in v1.66.1

func (x *PushData) String() string

type PushData_BlockSeqs added in v1.66.1

type PushData_BlockSeqs struct {
	BlockSeqs *BlockSeqs `protobuf:"bytes,2,opt,name=blockSeqs,proto3,oneof"`
}

type PushData_EvmLogs added in v1.66.1

type PushData_EvmLogs struct {
	EvmLogs *EVMTxLogsInBlks `protobuf:"bytes,6,opt,name=evmLogs,proto3,oneof"`
}

type PushData_HeaderSeqs added in v1.66.1

type PushData_HeaderSeqs struct {
	HeaderSeqs *HeaderSeqs `protobuf:"bytes,3,opt,name=headerSeqs,proto3,oneof"`
}

type PushData_TxReceipts added in v1.66.1

type PushData_TxReceipts struct {
	TxReceipts *TxReceipts4Subscribe `protobuf:"bytes,4,opt,name=txReceipts,proto3,oneof"`
}

type PushData_TxResult added in v1.66.1

type PushData_TxResult struct {
	TxResult *TxResultSeqs `protobuf:"bytes,5,opt,name=txResult,proto3,oneof"`
}

type PushSubscribeReq added in v1.65.0

type PushSubscribeReq struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	URL           string `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"`
	Encode        string `protobuf:"bytes,3,opt,name=encode,proto3" json:"encode,omitempty"`
	LastSequence  int64  `protobuf:"varint,4,opt,name=lastSequence,proto3" json:"lastSequence,omitempty"`
	LastHeight    int64  `protobuf:"varint,5,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"`
	LastBlockHash string `protobuf:"bytes,6,opt,name=lastBlockHash,proto3" json:"lastBlockHash,omitempty"`
	// 0:代表区块;1:代表区块头信息;2:代表交易回执
	Type int32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"`
	//允许订阅多个类型的交易回执
	Contract map[string]bool `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PushSubscribeReq) Descriptor deprecated added in v1.65.0

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

Deprecated: Use PushSubscribeReq.ProtoReflect.Descriptor instead.

func (*PushSubscribeReq) GetContract added in v1.65.0

func (x *PushSubscribeReq) GetContract() map[string]bool

func (*PushSubscribeReq) GetEncode added in v1.65.0

func (x *PushSubscribeReq) GetEncode() string

func (*PushSubscribeReq) GetLastBlockHash added in v1.65.0

func (x *PushSubscribeReq) GetLastBlockHash() string

func (*PushSubscribeReq) GetLastHeight added in v1.65.0

func (x *PushSubscribeReq) GetLastHeight() int64

func (*PushSubscribeReq) GetLastSequence added in v1.65.0

func (x *PushSubscribeReq) GetLastSequence() int64

func (*PushSubscribeReq) GetName added in v1.65.0

func (x *PushSubscribeReq) GetName() string

func (*PushSubscribeReq) GetType added in v1.65.0

func (x *PushSubscribeReq) GetType() int32

func (*PushSubscribeReq) GetURL added in v1.65.0

func (x *PushSubscribeReq) GetURL() string

func (*PushSubscribeReq) ProtoMessage added in v1.65.0

func (*PushSubscribeReq) ProtoMessage()

func (*PushSubscribeReq) ProtoReflect added in v1.65.3

func (x *PushSubscribeReq) ProtoReflect() protoreflect.Message

func (*PushSubscribeReq) Reset added in v1.65.0

func (x *PushSubscribeReq) Reset()

func (*PushSubscribeReq) String added in v1.65.0

func (x *PushSubscribeReq) String() string

type PushSubscribes added in v1.65.0

type PushSubscribes struct {
	Pushes []*PushSubscribeReq `protobuf:"bytes,1,rep,name=pushes,proto3" json:"pushes,omitempty"`
	// contains filtered or unexported fields
}

func (*PushSubscribes) Descriptor deprecated added in v1.65.0

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

Deprecated: Use PushSubscribes.ProtoReflect.Descriptor instead.

func (*PushSubscribes) GetPushes added in v1.65.0

func (x *PushSubscribes) GetPushes() []*PushSubscribeReq

func (*PushSubscribes) ProtoMessage added in v1.65.0

func (*PushSubscribes) ProtoMessage()

func (*PushSubscribes) ProtoReflect added in v1.65.3

func (x *PushSubscribes) ProtoReflect() protoreflect.Message

func (*PushSubscribes) Reset added in v1.65.0

func (x *PushSubscribes) Reset()

func (*PushSubscribes) String added in v1.65.0

func (x *PushSubscribes) String() string

type PushWithStatus added in v1.65.0

type PushWithStatus struct {
	Push *PushSubscribeReq `protobuf:"bytes,1,opt,name=push,proto3" json:"push,omitempty"`
	// 1:active,2:noactive
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PushWithStatus) Descriptor deprecated added in v1.65.0

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

Deprecated: Use PushWithStatus.ProtoReflect.Descriptor instead.

func (*PushWithStatus) GetPush added in v1.65.0

func (x *PushWithStatus) GetPush() *PushSubscribeReq

func (*PushWithStatus) GetStatus added in v1.65.0

func (x *PushWithStatus) GetStatus() int32

func (*PushWithStatus) ProtoMessage added in v1.65.0

func (*PushWithStatus) ProtoMessage()

func (*PushWithStatus) ProtoReflect added in v1.65.3

func (x *PushWithStatus) ProtoReflect() protoreflect.Message

func (*PushWithStatus) Reset added in v1.65.0

func (x *PushWithStatus) Reset()

func (*PushWithStatus) String added in v1.65.0

func (x *PushWithStatus) String() string

type Query

type Query struct {
	Execer   []byte `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	FuncName string `protobuf:"bytes,2,opt,name=funcName,proto3" json:"funcName,omitempty"`
	Payload  []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetExecer

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

func (*Query) GetFuncName

func (x *Query) GetFuncName() string

func (*Query) GetPayload

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

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect added in v1.65.3

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type QueryData

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

QueryData 查询结构体

func NewQueryData

func NewQueryData(prefix string) *QueryData

NewQueryData new一个新的QueryData

func (*QueryData) Call

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

Call 查询函数回调

func (*QueryData) Decode

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

Decode 编码

func (*QueryData) DecodeJSON

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

DecodeJSON 编码成json格式

func (*QueryData) GetFunc

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

GetFunc 获取函数

func (*QueryData) GetType

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

GetType 获取类型

func (*QueryData) Register

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

Register 注册

func (*QueryData) SetThis

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

SetThis 设置

type RPC

type RPC struct {
	// jrpc绑定地址
	JrpcBindAddr string `json:"jrpcBindAddr,omitempty"`
	// grpc绑定地址
	GrpcBindAddr string `json:"grpcBindAddr,omitempty"`
	// 白名单列表,允许访问的IP地址,默认是“*”,允许所有IP访问
	Whitlist  []string `json:"whitlist,omitempty"`
	Whitelist []string `json:"whitelist,omitempty"`
	// jrpc方法请求白名单,默认是“*”,允许访问所有RPC方法
	JrpcFuncWhitelist []string `json:"jrpcFuncWhitelist,omitempty"`
	// grpc方法请求白名单,默认是“*”,允许访问所有RPC方法
	GrpcFuncWhitelist []string `json:"grpcFuncWhitelist,omitempty"`
	// jrpc方法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
	JrpcFuncBlacklist []string `json:"jrpcFuncBlacklist,omitempty"`
	// grpc方法请求黑名单,禁止调用黑名单里配置的rpc方法,一般和白名单配合使用,默认是空
	GrpcFuncBlacklist []string `json:"grpcFuncBlacklist,omitempty"`
	// 是否开启https
	EnableTLS   bool `json:"enableTLS,omitempty"`
	EnableTrace bool `json:"enableTrace,omitempty"`
	// 证书文件,证书和私钥文件可以用cli工具生成
	CertFile string `json:"certFile,omitempty"`
	// 私钥文件
	KeyFile string `json:"keyFile,omitempty"`
	//basic auth 用户名
	JrpcUserName string `json:"jrpcUserName,omitempty"`
	//basic auth 用户密码
	JrpcUserPasswd string `json:"jrpcUserPasswd,omitempty"`
}

RPC 配置

type ReWriteRawTx

type ReWriteRawTx struct {
	Tx string `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// bytes  execer = 2;
	To     string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Expire string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	Fee    int64  `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
	Index  int32  `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*ReWriteRawTx) Descriptor deprecated

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

Deprecated: Use ReWriteRawTx.ProtoReflect.Descriptor instead.

func (*ReWriteRawTx) GetExpire

func (x *ReWriteRawTx) GetExpire() string

func (*ReWriteRawTx) GetFee

func (x *ReWriteRawTx) GetFee() int64

func (*ReWriteRawTx) GetIndex

func (x *ReWriteRawTx) GetIndex() int32

func (*ReWriteRawTx) GetTo

func (x *ReWriteRawTx) GetTo() string

func (*ReWriteRawTx) GetTx

func (x *ReWriteRawTx) GetTx() string

func (*ReWriteRawTx) ProtoMessage

func (*ReWriteRawTx) ProtoMessage()

func (*ReWriteRawTx) ProtoReflect added in v1.65.3

func (x *ReWriteRawTx) ProtoReflect() protoreflect.Message

func (*ReWriteRawTx) Reset

func (x *ReWriteRawTx) Reset()

func (*ReWriteRawTx) String

func (x *ReWriteRawTx) String() string

type Receipt

type Receipt struct {
	Ty   int32         `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	KV   []*KeyValue   `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
	Logs []*ReceiptLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

ty = 0 -> error Receipt ty = 1 -> CutFee //cut fee ,bug exec not ok ty = 2 -> exec ok

func NewErrReceipt

func NewErrReceipt(err error) *Receipt

NewErrReceipt new一个新的Receipt

func (*Receipt) Descriptor deprecated

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

Deprecated: Use Receipt.ProtoReflect.Descriptor instead.

func (*Receipt) GetKV

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

func (*Receipt) GetLogs

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

func (*Receipt) GetTy

func (x *Receipt) GetTy() int32

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) ProtoReflect added in v1.65.3

func (x *Receipt) ProtoReflect() protoreflect.Message

func (*Receipt) Reset

func (x *Receipt) Reset()

func (*Receipt) String

func (x *Receipt) String() string

type ReceiptAccountBurn

type ReceiptAccountBurn struct {
	Prev    *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptAccountBurn) Descriptor deprecated

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

Deprecated: Use ReceiptAccountBurn.ProtoReflect.Descriptor instead.

func (*ReceiptAccountBurn) GetCurrent

func (x *ReceiptAccountBurn) GetCurrent() *Account

func (*ReceiptAccountBurn) GetPrev

func (x *ReceiptAccountBurn) GetPrev() *Account

func (*ReceiptAccountBurn) ProtoMessage

func (*ReceiptAccountBurn) ProtoMessage()

func (*ReceiptAccountBurn) ProtoReflect added in v1.65.3

func (x *ReceiptAccountBurn) ProtoReflect() protoreflect.Message

func (*ReceiptAccountBurn) Reset

func (x *ReceiptAccountBurn) Reset()

func (*ReceiptAccountBurn) String

func (x *ReceiptAccountBurn) String() string

type ReceiptAccountMint

type ReceiptAccountMint struct {

	//铸币前
	Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	//铸币后
	Current *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

铸币账户余额增加

func (*ReceiptAccountMint) Descriptor deprecated

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

Deprecated: Use ReceiptAccountMint.ProtoReflect.Descriptor instead.

func (*ReceiptAccountMint) GetCurrent

func (x *ReceiptAccountMint) GetCurrent() *Account

func (*ReceiptAccountMint) GetPrev

func (x *ReceiptAccountMint) GetPrev() *Account

func (*ReceiptAccountMint) ProtoMessage

func (*ReceiptAccountMint) ProtoMessage()

func (*ReceiptAccountMint) ProtoReflect added in v1.65.3

func (x *ReceiptAccountMint) ProtoReflect() protoreflect.Message

func (*ReceiptAccountMint) Reset

func (x *ReceiptAccountMint) Reset()

func (*ReceiptAccountMint) String

func (x *ReceiptAccountMint) String() string

type ReceiptAccountTransfer

type ReceiptAccountTransfer struct {

	//转移前
	Prev *Account `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	//转移后
	Current *Account `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

账户余额改变的一个交易回报(coins内)

func (*ReceiptAccountTransfer) Descriptor deprecated

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

Deprecated: Use ReceiptAccountTransfer.ProtoReflect.Descriptor instead.

func (*ReceiptAccountTransfer) GetCurrent

func (x *ReceiptAccountTransfer) GetCurrent() *Account

func (*ReceiptAccountTransfer) GetPrev

func (x *ReceiptAccountTransfer) GetPrev() *Account

func (*ReceiptAccountTransfer) ProtoMessage

func (*ReceiptAccountTransfer) ProtoMessage()

func (*ReceiptAccountTransfer) ProtoReflect added in v1.65.3

func (x *ReceiptAccountTransfer) ProtoReflect() protoreflect.Message

func (*ReceiptAccountTransfer) Reset

func (x *ReceiptAccountTransfer) Reset()

func (*ReceiptAccountTransfer) String

func (x *ReceiptAccountTransfer) String() string

type ReceiptCheckTxList

type ReceiptCheckTxList struct {
	Errs []string `protobuf:"bytes,1,rep,name=errs,proto3" json:"errs,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptCheckTxList) Descriptor deprecated

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

Deprecated: Use ReceiptCheckTxList.ProtoReflect.Descriptor instead.

func (*ReceiptCheckTxList) GetErrs

func (x *ReceiptCheckTxList) GetErrs() []string

func (*ReceiptCheckTxList) ProtoMessage

func (*ReceiptCheckTxList) ProtoMessage()

func (*ReceiptCheckTxList) ProtoReflect added in v1.65.3

func (x *ReceiptCheckTxList) ProtoReflect() protoreflect.Message

func (*ReceiptCheckTxList) Reset

func (x *ReceiptCheckTxList) Reset()

func (*ReceiptCheckTxList) String

func (x *ReceiptCheckTxList) String() string

type ReceiptConfig

type ReceiptConfig struct {
	Prev    *ConfigItem `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *ConfigItem `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptConfig) Descriptor deprecated

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

Deprecated: Use ReceiptConfig.ProtoReflect.Descriptor instead.

func (*ReceiptConfig) GetCurrent

func (x *ReceiptConfig) GetCurrent() *ConfigItem

func (*ReceiptConfig) GetPrev

func (x *ReceiptConfig) GetPrev() *ConfigItem

func (*ReceiptConfig) ProtoMessage

func (*ReceiptConfig) ProtoMessage()

func (*ReceiptConfig) ProtoReflect added in v1.65.3

func (x *ReceiptConfig) ProtoReflect() protoreflect.Message

func (*ReceiptConfig) Reset

func (x *ReceiptConfig) Reset()

func (*ReceiptConfig) String

func (x *ReceiptConfig) String() string

type ReceiptData

type ReceiptData struct {
	Ty   int32         `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Logs []*ReceiptLog `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func CloneReceipts added in v1.65.3

func CloneReceipts(b []*ReceiptData) []*ReceiptData

CloneReceipts 浅拷贝交易回报

func (*ReceiptData) Clone

func (r *ReceiptData) Clone() *ReceiptData

Clone 浅拷贝ReceiptData

func (*ReceiptData) DecodeReceiptLog

func (r *ReceiptData) DecodeReceiptLog(execer []byte) (*ReceiptDataResult, error)

DecodeReceiptLog 编码回执数据

func (*ReceiptData) Descriptor deprecated

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

Deprecated: Use ReceiptData.ProtoReflect.Descriptor instead.

func (*ReceiptData) GetLogs

func (x *ReceiptData) GetLogs() []*ReceiptLog

func (*ReceiptData) GetTy

func (x *ReceiptData) GetTy() int32

func (*ReceiptData) OutputReceiptDetails

func (r *ReceiptData) OutputReceiptDetails(execer []byte, logger log.Logger)

OutputReceiptDetails 输出回执数据详情

func (*ReceiptData) ProtoMessage

func (*ReceiptData) ProtoMessage()

func (*ReceiptData) ProtoReflect added in v1.65.3

func (x *ReceiptData) ProtoReflect() protoreflect.Message

func (*ReceiptData) Reset

func (x *ReceiptData) Reset()

func (*ReceiptData) String

func (x *ReceiptData) String() string

type ReceiptDataResult

type ReceiptDataResult struct {
	Ty     int32               `json:"ty"`
	TyName string              `json:"tyname"`
	Logs   []*ReceiptLogResult `json:"logs"`
}

ReceiptDataResult 回执数据

type ReceiptExecAccountTransfer

type ReceiptExecAccountTransfer struct {

	//合约地址
	ExecAddr string `protobuf:"bytes,1,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
	//转移前
	Prev *Account `protobuf:"bytes,2,opt,name=prev,proto3" json:"prev,omitempty"`
	//转移后
	Current *Account `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

账户余额改变的一个交易回报(合约内)

func (*ReceiptExecAccountTransfer) Descriptor deprecated

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

Deprecated: Use ReceiptExecAccountTransfer.ProtoReflect.Descriptor instead.

func (*ReceiptExecAccountTransfer) GetCurrent

func (x *ReceiptExecAccountTransfer) GetCurrent() *Account

func (*ReceiptExecAccountTransfer) GetExecAddr

func (x *ReceiptExecAccountTransfer) GetExecAddr() string

func (*ReceiptExecAccountTransfer) GetPrev

func (x *ReceiptExecAccountTransfer) GetPrev() *Account

func (*ReceiptExecAccountTransfer) ProtoMessage

func (*ReceiptExecAccountTransfer) ProtoMessage()

func (*ReceiptExecAccountTransfer) ProtoReflect added in v1.65.3

func (*ReceiptExecAccountTransfer) Reset

func (x *ReceiptExecAccountTransfer) Reset()

func (*ReceiptExecAccountTransfer) String

func (x *ReceiptExecAccountTransfer) String() string

type ReceiptLog

type ReceiptLog struct {
	Ty  int32  `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Log []byte `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptLog) Clone

func (r *ReceiptLog) Clone() *ReceiptLog

Clone 浅拷贝 receiptLog

func (*ReceiptLog) Descriptor deprecated

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

Deprecated: Use ReceiptLog.ProtoReflect.Descriptor instead.

func (*ReceiptLog) GetLog

func (x *ReceiptLog) GetLog() []byte

func (*ReceiptLog) GetTy

func (x *ReceiptLog) GetTy() int32

func (*ReceiptLog) ProtoMessage

func (*ReceiptLog) ProtoMessage()

func (*ReceiptLog) ProtoReflect added in v1.65.3

func (x *ReceiptLog) ProtoReflect() protoreflect.Message

func (*ReceiptLog) Reset

func (x *ReceiptLog) Reset()

func (*ReceiptLog) String

func (x *ReceiptLog) String() string

type ReceiptLogResult

type ReceiptLogResult struct {
	Ty     int32       `json:"ty"`
	TyName string      `json:"tyname"`
	Log    interface{} `json:"log"`
	RawLog string      `json:"rawlog"`
}

ReceiptLogResult 回执log数据

type Receipts

type Receipts struct {
	Receipts []*Receipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipts) Descriptor deprecated

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

Deprecated: Use Receipts.ProtoReflect.Descriptor instead.

func (*Receipts) GetReceipts

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

func (*Receipts) ProtoMessage

func (*Receipts) ProtoMessage()

func (*Receipts) ProtoReflect added in v1.65.3

func (x *Receipts) ProtoReflect() protoreflect.Message

func (*Receipts) Reset

func (x *Receipts) Reset()

func (*Receipts) String

func (x *Receipts) String() string

type RemoveTopic added in v1.65.0

type RemoveTopic struct {
	Topic  string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveTopic) Descriptor deprecated added in v1.65.0

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

Deprecated: Use RemoveTopic.ProtoReflect.Descriptor instead.

func (*RemoveTopic) GetModule added in v1.65.0

func (x *RemoveTopic) GetModule() string

func (*RemoveTopic) GetTopic added in v1.65.0

func (x *RemoveTopic) GetTopic() string

func (*RemoveTopic) ProtoMessage added in v1.65.0

func (*RemoveTopic) ProtoMessage()

func (*RemoveTopic) ProtoReflect added in v1.65.3

func (x *RemoveTopic) ProtoReflect() protoreflect.Message

func (*RemoveTopic) Reset added in v1.65.0

func (x *RemoveTopic) Reset()

func (*RemoveTopic) String added in v1.65.0

func (x *RemoveTopic) String() string

type RemoveTopicReply added in v1.65.0

type RemoveTopicReply struct {
	Topic  string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Status bool   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Msg    string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveTopicReply) Descriptor deprecated added in v1.65.0

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

Deprecated: Use RemoveTopicReply.ProtoReflect.Descriptor instead.

func (*RemoveTopicReply) GetMsg added in v1.65.0

func (x *RemoveTopicReply) GetMsg() string

func (*RemoveTopicReply) GetStatus added in v1.65.0

func (x *RemoveTopicReply) GetStatus() bool

func (*RemoveTopicReply) GetTopic added in v1.65.0

func (x *RemoveTopicReply) GetTopic() string

func (*RemoveTopicReply) ProtoMessage added in v1.65.0

func (*RemoveTopicReply) ProtoMessage()

func (*RemoveTopicReply) ProtoReflect added in v1.65.3

func (x *RemoveTopicReply) ProtoReflect() protoreflect.Message

func (*RemoveTopicReply) Reset added in v1.65.0

func (x *RemoveTopicReply) Reset()

func (*RemoveTopicReply) String added in v1.65.0

func (x *RemoveTopicReply) String() string

type Replies added in v1.65.3

type Replies struct {
	ReplyList []*Reply `protobuf:"bytes,1,rep,name=replyList,proto3" json:"replyList,omitempty"`
	// contains filtered or unexported fields
}

批量发送交易返回结构

func (*Replies) Descriptor deprecated added in v1.65.3

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

Deprecated: Use Replies.ProtoReflect.Descriptor instead.

func (*Replies) GetReplyList added in v1.65.3

func (x *Replies) GetReplyList() []*Reply

func (*Replies) ProtoMessage added in v1.65.3

func (*Replies) ProtoMessage()

func (*Replies) ProtoReflect added in v1.65.3

func (x *Replies) ProtoReflect() protoreflect.Message

func (*Replies) Reset added in v1.65.3

func (x *Replies) Reset()

func (*Replies) String added in v1.65.3

func (x *Replies) String() string

type Reply

type Reply struct {
	IsOk bool   `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
	Msg  []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetIsOk

func (x *Reply) GetIsOk() bool

func (*Reply) GetMsg

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

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect added in v1.65.3

func (x *Reply) ProtoReflect() protoreflect.Message

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

type ReplyBlockHeight

type ReplyBlockHeight struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyBlockHeight) Descriptor deprecated

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

Deprecated: Use ReplyBlockHeight.ProtoReflect.Descriptor instead.

func (*ReplyBlockHeight) GetHeight

func (x *ReplyBlockHeight) GetHeight() int64

func (*ReplyBlockHeight) ProtoMessage

func (*ReplyBlockHeight) ProtoMessage()

func (*ReplyBlockHeight) ProtoReflect added in v1.65.3

func (x *ReplyBlockHeight) ProtoReflect() protoreflect.Message

func (*ReplyBlockHeight) Reset

func (x *ReplyBlockHeight) Reset()

func (*ReplyBlockHeight) String

func (x *ReplyBlockHeight) String() string

type ReplyCheckTxsExist added in v1.65.1

type ReplyCheckTxsExist struct {

	//对应请求序列存在标识数组,存在则true,否则false
	ExistFlags []bool `protobuf:"varint,1,rep,packed,name=existFlags,proto3" json:"existFlags,omitempty"`
	//存在情况的总个数
	ExistCount uint32 `protobuf:"varint,2,opt,name=existCount,proto3" json:"existCount,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyCheckTxsExist) Descriptor deprecated added in v1.65.1

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

Deprecated: Use ReplyCheckTxsExist.ProtoReflect.Descriptor instead.

func (*ReplyCheckTxsExist) GetExistCount added in v1.65.1

func (x *ReplyCheckTxsExist) GetExistCount() uint32

func (*ReplyCheckTxsExist) GetExistFlags added in v1.65.1

func (x *ReplyCheckTxsExist) GetExistFlags() []bool

func (*ReplyCheckTxsExist) ProtoMessage added in v1.65.1

func (*ReplyCheckTxsExist) ProtoMessage()

func (*ReplyCheckTxsExist) ProtoReflect added in v1.65.3

func (x *ReplyCheckTxsExist) ProtoReflect() protoreflect.Message

func (*ReplyCheckTxsExist) Reset added in v1.65.1

func (x *ReplyCheckTxsExist) Reset()

func (*ReplyCheckTxsExist) String added in v1.65.1

func (x *ReplyCheckTxsExist) String() string

type ReplyConfig

type ReplyConfig struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyConfig) Descriptor deprecated

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

Deprecated: Use ReplyConfig.ProtoReflect.Descriptor instead.

func (*ReplyConfig) GetKey

func (x *ReplyConfig) GetKey() string

func (*ReplyConfig) GetValue

func (x *ReplyConfig) GetValue() string

func (*ReplyConfig) ProtoMessage

func (*ReplyConfig) ProtoMessage()

func (*ReplyConfig) ProtoReflect added in v1.65.3

func (x *ReplyConfig) ProtoReflect() protoreflect.Message

func (*ReplyConfig) Reset

func (x *ReplyConfig) Reset()

func (*ReplyConfig) String

func (x *ReplyConfig) String() string

type ReplyGetExecBalance

type ReplyGetExecBalance struct {
	Amount       int64              `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	AmountFrozen int64              `protobuf:"varint,2,opt,name=amountFrozen,proto3" json:"amountFrozen,omitempty"`
	AmountActive int64              `protobuf:"varint,3,opt,name=amountActive,proto3" json:"amountActive,omitempty"`
	NextKey      []byte             `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	Items        []*ExecBalanceItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

查询symbol在合约中的代币总额应答

func (*ReplyGetExecBalance) AddItem

func (t *ReplyGetExecBalance) AddItem(execAddr, value []byte)

AddItem 添加item

func (*ReplyGetExecBalance) Descriptor deprecated

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

Deprecated: Use ReplyGetExecBalance.ProtoReflect.Descriptor instead.

func (*ReplyGetExecBalance) GetAmount

func (x *ReplyGetExecBalance) GetAmount() int64

func (*ReplyGetExecBalance) GetAmountActive

func (x *ReplyGetExecBalance) GetAmountActive() int64

func (*ReplyGetExecBalance) GetAmountFrozen

func (x *ReplyGetExecBalance) GetAmountFrozen() int64

func (*ReplyGetExecBalance) GetItems

func (x *ReplyGetExecBalance) GetItems() []*ExecBalanceItem

func (*ReplyGetExecBalance) GetNextKey

func (x *ReplyGetExecBalance) GetNextKey() []byte

func (*ReplyGetExecBalance) ProtoMessage

func (*ReplyGetExecBalance) ProtoMessage()

func (*ReplyGetExecBalance) ProtoReflect added in v1.65.3

func (x *ReplyGetExecBalance) ProtoReflect() protoreflect.Message

func (*ReplyGetExecBalance) Reset

func (x *ReplyGetExecBalance) Reset()

func (*ReplyGetExecBalance) String

func (x *ReplyGetExecBalance) String() string

type ReplyGetTotalCoins

type ReplyGetTotalCoins struct {
	Count   int64  `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Num     int64  `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
	Amount  int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	NextKey []byte `protobuf:"bytes,4,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	// contains filtered or unexported fields
}

查询symbol代币总额应答

func (*ReplyGetTotalCoins) Descriptor deprecated

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

Deprecated: Use ReplyGetTotalCoins.ProtoReflect.Descriptor instead.

func (*ReplyGetTotalCoins) GetAmount

func (x *ReplyGetTotalCoins) GetAmount() int64

func (*ReplyGetTotalCoins) GetCount

func (x *ReplyGetTotalCoins) GetCount() int64

func (*ReplyGetTotalCoins) GetNextKey

func (x *ReplyGetTotalCoins) GetNextKey() []byte

func (*ReplyGetTotalCoins) GetNum

func (x *ReplyGetTotalCoins) GetNum() int64

func (*ReplyGetTotalCoins) IterateRangeByStateHash

func (t *ReplyGetTotalCoins) IterateRangeByStateHash(key, value []byte) bool

IterateRangeByStateHash 迭代查找

func (*ReplyGetTotalCoins) ProtoMessage

func (*ReplyGetTotalCoins) ProtoMessage()

func (*ReplyGetTotalCoins) ProtoReflect added in v1.65.3

func (x *ReplyGetTotalCoins) ProtoReflect() protoreflect.Message

func (*ReplyGetTotalCoins) Reset

func (x *ReplyGetTotalCoins) Reset()

func (*ReplyGetTotalCoins) String

func (x *ReplyGetTotalCoins) String() string

type ReplyHash

type ReplyHash struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyHash) Descriptor deprecated

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

Deprecated: Use ReplyHash.ProtoReflect.Descriptor instead.

func (*ReplyHash) GetHash

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

func (*ReplyHash) ProtoMessage

func (*ReplyHash) ProtoMessage()

func (*ReplyHash) ProtoReflect added in v1.65.3

func (x *ReplyHash) ProtoReflect() protoreflect.Message

func (*ReplyHash) Reset

func (x *ReplyHash) Reset()

func (*ReplyHash) String

func (x *ReplyHash) String() string

type ReplyHashes

type ReplyHashes struct {
	Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyHashes) Descriptor deprecated

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

Deprecated: Use ReplyHashes.ProtoReflect.Descriptor instead.

func (*ReplyHashes) GetHashes

func (x *ReplyHashes) GetHashes() [][]byte

func (*ReplyHashes) Hash added in v1.65.0

func (hashes *ReplyHashes) Hash() []byte

Hash 计算hash

func (*ReplyHashes) ProtoMessage

func (*ReplyHashes) ProtoMessage()

func (*ReplyHashes) ProtoReflect added in v1.65.3

func (x *ReplyHashes) ProtoReflect() protoreflect.Message

func (*ReplyHashes) Reset

func (x *ReplyHashes) Reset()

func (*ReplyHashes) String

func (x *ReplyHashes) String() string

type ReplyHeightByTitle

type ReplyHeightByTitle struct {
	Title string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Items []*BlockInfo `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyHeightByTitle) Descriptor deprecated

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

Deprecated: Use ReplyHeightByTitle.ProtoReflect.Descriptor instead.

func (*ReplyHeightByTitle) GetItems

func (x *ReplyHeightByTitle) GetItems() []*BlockInfo

func (*ReplyHeightByTitle) GetTitle

func (x *ReplyHeightByTitle) GetTitle() string

func (*ReplyHeightByTitle) ProtoMessage

func (*ReplyHeightByTitle) ProtoMessage()

func (*ReplyHeightByTitle) ProtoReflect added in v1.65.3

func (x *ReplyHeightByTitle) ProtoReflect() protoreflect.Message

func (*ReplyHeightByTitle) Reset

func (x *ReplyHeightByTitle) Reset()

func (*ReplyHeightByTitle) String

func (x *ReplyHeightByTitle) String() string

type ReplyProperFee

type ReplyProperFee struct {
	ProperFee int64 `protobuf:"varint,1,opt,name=properFee,proto3" json:"properFee,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyProperFee) Descriptor deprecated

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

Deprecated: Use ReplyProperFee.ProtoReflect.Descriptor instead.

func (*ReplyProperFee) GetProperFee

func (x *ReplyProperFee) GetProperFee() int64

func (*ReplyProperFee) ProtoMessage

func (*ReplyProperFee) ProtoMessage()

func (*ReplyProperFee) ProtoReflect added in v1.65.3

func (x *ReplyProperFee) ProtoReflect() protoreflect.Message

func (*ReplyProperFee) Reset

func (x *ReplyProperFee) Reset()

func (*ReplyProperFee) String

func (x *ReplyProperFee) String() string

type ReplySeed

type ReplySeed struct {
	Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplySeed) Descriptor deprecated

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

Deprecated: Use ReplySeed.ProtoReflect.Descriptor instead.

func (*ReplySeed) GetSeed

func (x *ReplySeed) GetSeed() string

func (*ReplySeed) ProtoMessage

func (*ReplySeed) ProtoMessage()

func (*ReplySeed) ProtoReflect added in v1.65.3

func (x *ReplySeed) ProtoReflect() protoreflect.Message

func (*ReplySeed) Reset

func (x *ReplySeed) Reset()

func (*ReplySeed) String

func (x *ReplySeed) String() string

type ReplySignRawTx

type ReplySignRawTx struct {
	TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplySignRawTx) Descriptor deprecated

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

Deprecated: Use ReplySignRawTx.ProtoReflect.Descriptor instead.

func (*ReplySignRawTx) GetTxHex

func (x *ReplySignRawTx) GetTxHex() string

func (*ReplySignRawTx) ProtoMessage

func (*ReplySignRawTx) ProtoMessage()

func (*ReplySignRawTx) ProtoReflect added in v1.65.3

func (x *ReplySignRawTx) ProtoReflect() protoreflect.Message

func (*ReplySignRawTx) Reset

func (x *ReplySignRawTx) Reset()

func (*ReplySignRawTx) String

func (x *ReplySignRawTx) String() string

type ReplyString

type ReplyString struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyString) Descriptor deprecated

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

Deprecated: Use ReplyString.ProtoReflect.Descriptor instead.

func (*ReplyString) GetData

func (x *ReplyString) GetData() string

func (*ReplyString) ProtoMessage

func (*ReplyString) ProtoMessage()

func (*ReplyString) ProtoReflect added in v1.65.3

func (x *ReplyString) ProtoReflect() protoreflect.Message

func (*ReplyString) Reset

func (x *ReplyString) Reset()

func (*ReplyString) String

func (x *ReplyString) String() string

type ReplyStrings

type ReplyStrings struct {
	Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyStrings) Descriptor deprecated

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

Deprecated: Use ReplyStrings.ProtoReflect.Descriptor instead.

func (*ReplyStrings) GetDatas

func (x *ReplyStrings) GetDatas() []string

func (*ReplyStrings) ProtoMessage

func (*ReplyStrings) ProtoMessage()

func (*ReplyStrings) ProtoReflect added in v1.65.3

func (x *ReplyStrings) ProtoReflect() protoreflect.Message

func (*ReplyStrings) Reset

func (x *ReplyStrings) Reset()

func (*ReplyStrings) String

func (x *ReplyStrings) String() string

type ReplySubscribePush added in v1.65.0

type ReplySubscribePush struct {
	IsOk bool   `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplySubscribePush) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ReplySubscribePush.ProtoReflect.Descriptor instead.

func (*ReplySubscribePush) GetIsOk added in v1.65.0

func (x *ReplySubscribePush) GetIsOk() bool

func (*ReplySubscribePush) GetMsg added in v1.65.0

func (x *ReplySubscribePush) GetMsg() string

func (*ReplySubscribePush) ProtoMessage added in v1.65.0

func (*ReplySubscribePush) ProtoMessage()

func (*ReplySubscribePush) ProtoReflect added in v1.65.3

func (x *ReplySubscribePush) ProtoReflect() protoreflect.Message

func (*ReplySubscribePush) Reset added in v1.65.0

func (x *ReplySubscribePush) Reset()

func (*ReplySubscribePush) String added in v1.65.0

func (x *ReplySubscribePush) String() string

type ReplyTxInfo

type ReplyTxInfo struct {
	Hash   []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Height int64    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Index  int64    `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	Assets []*Asset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyTxInfo) Descriptor deprecated

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

Deprecated: Use ReplyTxInfo.ProtoReflect.Descriptor instead.

func (*ReplyTxInfo) GetAssets

func (x *ReplyTxInfo) GetAssets() []*Asset

func (*ReplyTxInfo) GetHash

func (x *ReplyTxInfo) GetHash() []byte

func (*ReplyTxInfo) GetHeight

func (x *ReplyTxInfo) GetHeight() int64

func (*ReplyTxInfo) GetIndex

func (x *ReplyTxInfo) GetIndex() int64

func (*ReplyTxInfo) ProtoMessage

func (*ReplyTxInfo) ProtoMessage()

func (*ReplyTxInfo) ProtoReflect added in v1.65.3

func (x *ReplyTxInfo) ProtoReflect() protoreflect.Message

func (*ReplyTxInfo) Reset

func (x *ReplyTxInfo) Reset()

func (*ReplyTxInfo) String

func (x *ReplyTxInfo) String() string

type ReplyTxInfos

type ReplyTxInfos struct {
	TxInfos []*ReplyTxInfo `protobuf:"bytes,1,rep,name=txInfos,proto3" json:"txInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyTxInfos) Descriptor deprecated

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

Deprecated: Use ReplyTxInfos.ProtoReflect.Descriptor instead.

func (*ReplyTxInfos) GetTxInfos

func (x *ReplyTxInfos) GetTxInfos() []*ReplyTxInfo

func (*ReplyTxInfos) ProtoMessage

func (*ReplyTxInfos) ProtoMessage()

func (*ReplyTxInfos) ProtoReflect added in v1.65.3

func (x *ReplyTxInfos) ProtoReflect() protoreflect.Message

func (*ReplyTxInfos) Reset

func (x *ReplyTxInfos) Reset()

func (*ReplyTxInfos) String

func (x *ReplyTxInfos) String() string

type ReplyTxList

type ReplyTxList struct {
	Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplyTxList) Descriptor deprecated

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

Deprecated: Use ReplyTxList.ProtoReflect.Descriptor instead.

func (*ReplyTxList) GetTxs

func (x *ReplyTxList) GetTxs() []*Transaction

func (*ReplyTxList) ProtoMessage

func (*ReplyTxList) ProtoMessage()

func (*ReplyTxList) ProtoReflect added in v1.65.3

func (x *ReplyTxList) ProtoReflect() protoreflect.Message

func (*ReplyTxList) Reset

func (x *ReplyTxList) Reset()

func (*ReplyTxList) String

func (x *ReplyTxList) String() string

type ReportErrEvent

type ReportErrEvent struct {
	Frommodule string `protobuf:"bytes,1,opt,name=frommodule,proto3" json:"frommodule,omitempty"`
	Tomodule   string `protobuf:"bytes,2,opt,name=tomodule,proto3" json:"tomodule,omitempty"`
	Error      string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportErrEvent) Descriptor deprecated

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

Deprecated: Use ReportErrEvent.ProtoReflect.Descriptor instead.

func (*ReportErrEvent) GetError

func (x *ReportErrEvent) GetError() string

func (*ReportErrEvent) GetFrommodule

func (x *ReportErrEvent) GetFrommodule() string

func (*ReportErrEvent) GetTomodule

func (x *ReportErrEvent) GetTomodule() string

func (*ReportErrEvent) ProtoMessage

func (*ReportErrEvent) ProtoMessage()

func (*ReportErrEvent) ProtoReflect added in v1.65.3

func (x *ReportErrEvent) ProtoReflect() protoreflect.Message

func (*ReportErrEvent) Reset

func (x *ReportErrEvent) Reset()

func (*ReportErrEvent) String

func (x *ReportErrEvent) String() string

type ReqAccountList

type ReqAccountList struct {
	WithoutBalance bool `protobuf:"varint,1,opt,name=withoutBalance,proto3" json:"withoutBalance,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqAccountList) Descriptor deprecated

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

Deprecated: Use ReqAccountList.ProtoReflect.Descriptor instead.

func (*ReqAccountList) GetWithoutBalance

func (x *ReqAccountList) GetWithoutBalance() bool

func (*ReqAccountList) ProtoMessage

func (*ReqAccountList) ProtoMessage()

func (*ReqAccountList) ProtoReflect added in v1.65.3

func (x *ReqAccountList) ProtoReflect() protoreflect.Message

func (*ReqAccountList) Reset

func (x *ReqAccountList) Reset()

func (*ReqAccountList) String

func (x *ReqAccountList) String() string

type ReqAddr

type ReqAddr struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//表示取所有/from/to/其他的hash列表
	Flag      int32 `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"`
	Count     int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	// height start
	Height    int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Index     int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	HeightEnd int64 `protobuf:"varint,7,opt,name=heightEnd,proto3" json:"heightEnd,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqAddr) Descriptor deprecated

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

Deprecated: Use ReqAddr.ProtoReflect.Descriptor instead.

func (*ReqAddr) GetAddr

func (x *ReqAddr) GetAddr() string

func (*ReqAddr) GetCount

func (x *ReqAddr) GetCount() int32

func (*ReqAddr) GetDirection

func (x *ReqAddr) GetDirection() int32

func (*ReqAddr) GetFlag

func (x *ReqAddr) GetFlag() int32

func (*ReqAddr) GetHeight

func (x *ReqAddr) GetHeight() int64

func (*ReqAddr) GetHeightEnd added in v1.65.3

func (x *ReqAddr) GetHeightEnd() int64

func (*ReqAddr) GetIndex

func (x *ReqAddr) GetIndex() int64

func (*ReqAddr) ProtoMessage

func (*ReqAddr) ProtoMessage()

func (*ReqAddr) ProtoReflect added in v1.65.3

func (x *ReqAddr) ProtoReflect() protoreflect.Message

func (*ReqAddr) Reset

func (x *ReqAddr) Reset()

func (*ReqAddr) String

func (x *ReqAddr) String() string

type ReqAddrs

type ReqAddrs struct {
	Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqAddrs) Descriptor deprecated

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

Deprecated: Use ReqAddrs.ProtoReflect.Descriptor instead.

func (*ReqAddrs) GetAddrs

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

func (*ReqAddrs) ProtoMessage

func (*ReqAddrs) ProtoMessage()

func (*ReqAddrs) ProtoReflect added in v1.65.3

func (x *ReqAddrs) ProtoReflect() protoreflect.Message

func (*ReqAddrs) Reset

func (x *ReqAddrs) Reset()

func (*ReqAddrs) String

func (x *ReqAddrs) String() string

type ReqAllExecBalance

type ReqAllExecBalance struct {

	//地址列表
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//执行器名称
	Execer      string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
	StateHash   string `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	AssetExec   string `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
	AssetSymbol string `protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqAllExecBalance) Descriptor deprecated

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

Deprecated: Use ReqAllExecBalance.ProtoReflect.Descriptor instead.

func (*ReqAllExecBalance) GetAddr

func (x *ReqAllExecBalance) GetAddr() string

func (*ReqAllExecBalance) GetAssetExec

func (x *ReqAllExecBalance) GetAssetExec() string

func (*ReqAllExecBalance) GetAssetSymbol

func (x *ReqAllExecBalance) GetAssetSymbol() string

func (*ReqAllExecBalance) GetExecer

func (x *ReqAllExecBalance) GetExecer() string

func (*ReqAllExecBalance) GetStateHash

func (x *ReqAllExecBalance) GetStateHash() string

func (*ReqAllExecBalance) ProtoMessage

func (*ReqAllExecBalance) ProtoMessage()

func (*ReqAllExecBalance) ProtoReflect added in v1.65.3

func (x *ReqAllExecBalance) ProtoReflect() protoreflect.Message

func (*ReqAllExecBalance) Reset

func (x *ReqAllExecBalance) Reset()

func (*ReqAllExecBalance) String

func (x *ReqAllExecBalance) String() string

type ReqBalance

type ReqBalance struct {

	//地址列表
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	//执行器名称
	Execer      string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
	StateHash   string `protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	AssetExec   string `protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
	AssetSymbol string `protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
	// contains filtered or unexported fields
}

查询一个地址列表在某个执行器中余额

func (*ReqBalance) Descriptor deprecated

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

Deprecated: Use ReqBalance.ProtoReflect.Descriptor instead.

func (*ReqBalance) GetAddresses

func (x *ReqBalance) GetAddresses() []string

func (*ReqBalance) GetAssetExec

func (x *ReqBalance) GetAssetExec() string

func (*ReqBalance) GetAssetSymbol

func (x *ReqBalance) GetAssetSymbol() string

func (*ReqBalance) GetExecer

func (x *ReqBalance) GetExecer() string

func (*ReqBalance) GetStateHash

func (x *ReqBalance) GetStateHash() string

func (*ReqBalance) ProtoMessage

func (*ReqBalance) ProtoMessage()

func (*ReqBalance) ProtoReflect added in v1.65.3

func (x *ReqBalance) ProtoReflect() protoreflect.Message

func (*ReqBalance) Reset

func (x *ReqBalance) Reset()

func (*ReqBalance) String

func (x *ReqBalance) String() string

type ReqBlocks

type ReqBlocks struct {
	Start    int64    `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End      int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	IsDetail bool     `protobuf:"varint,3,opt,name=isDetail,proto3" json:"isDetail,omitempty"`
	Pid      []string `protobuf:"bytes,4,rep,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

获取区块信息

start : 获取区块的开始高度
end :获取区块的结束高度
Isdetail : 是否需要获取区块的详细信息
pid : peer列表

func (*ReqBlocks) Descriptor deprecated

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

Deprecated: Use ReqBlocks.ProtoReflect.Descriptor instead.

func (*ReqBlocks) GetEnd

func (x *ReqBlocks) GetEnd() int64

func (*ReqBlocks) GetIsDetail

func (x *ReqBlocks) GetIsDetail() bool

func (*ReqBlocks) GetPid

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

func (*ReqBlocks) GetStart

func (x *ReqBlocks) GetStart() int64

func (*ReqBlocks) ProtoMessage

func (*ReqBlocks) ProtoMessage()

func (*ReqBlocks) ProtoReflect added in v1.65.3

func (x *ReqBlocks) ProtoReflect() protoreflect.Message

func (*ReqBlocks) Reset

func (x *ReqBlocks) Reset()

func (*ReqBlocks) String

func (x *ReqBlocks) String() string

type ReqBytes added in v1.65.3

type ReqBytes struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqBytes) Descriptor deprecated added in v1.65.3

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

Deprecated: Use ReqBytes.ProtoReflect.Descriptor instead.

func (*ReqBytes) GetData added in v1.65.3

func (x *ReqBytes) GetData() []byte

func (*ReqBytes) ProtoMessage added in v1.65.3

func (*ReqBytes) ProtoMessage()

func (*ReqBytes) ProtoReflect added in v1.65.3

func (x *ReqBytes) ProtoReflect() protoreflect.Message

func (*ReqBytes) Reset added in v1.65.3

func (x *ReqBytes) Reset()

func (*ReqBytes) String added in v1.65.3

func (x *ReqBytes) String() string

type ReqCheckTxsExist added in v1.65.1

type ReqCheckTxsExist struct {
	TxHashes [][]byte `protobuf:"bytes,1,rep,name=txHashes,proto3" json:"txHashes,omitempty"`
	// contains filtered or unexported fields
}

指定交易哈希,查找是否存在

func (*ReqCheckTxsExist) Descriptor deprecated added in v1.65.1

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

Deprecated: Use ReqCheckTxsExist.ProtoReflect.Descriptor instead.

func (*ReqCheckTxsExist) GetTxHashes added in v1.65.1

func (x *ReqCheckTxsExist) GetTxHashes() [][]byte

func (*ReqCheckTxsExist) ProtoMessage added in v1.65.1

func (*ReqCheckTxsExist) ProtoMessage()

func (*ReqCheckTxsExist) ProtoReflect added in v1.65.3

func (x *ReqCheckTxsExist) ProtoReflect() protoreflect.Message

func (*ReqCheckTxsExist) Reset added in v1.65.1

func (x *ReqCheckTxsExist) Reset()

func (*ReqCheckTxsExist) String added in v1.65.1

func (x *ReqCheckTxsExist) String() string

type ReqChunkRecords added in v1.65.0

type ReqChunkRecords struct {
	Start    int64    `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End      int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	IsDetail bool     `protobuf:"varint,3,opt,name=isDetail,proto3" json:"isDetail,omitempty"`
	Pid      []string `protobuf:"bytes,4,rep,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

获取ChunkRecord信息

start : 获取Chunk的开始高度
end :获取Chunk的结束高度
Isdetail : 是否需要获取所有Chunk Record 信息,false时候获取到chunkNum--->chunkhash的KV对,true获取全部
pid : peer列表

func (*ReqChunkRecords) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ReqChunkRecords.ProtoReflect.Descriptor instead.

func (*ReqChunkRecords) GetEnd added in v1.65.0

func (x *ReqChunkRecords) GetEnd() int64

func (*ReqChunkRecords) GetIsDetail added in v1.65.0

func (x *ReqChunkRecords) GetIsDetail() bool

func (*ReqChunkRecords) GetPid added in v1.65.0

func (x *ReqChunkRecords) GetPid() []string

func (*ReqChunkRecords) GetStart added in v1.65.0

func (x *ReqChunkRecords) GetStart() int64

func (*ReqChunkRecords) ProtoMessage added in v1.65.0

func (*ReqChunkRecords) ProtoMessage()

func (*ReqChunkRecords) ProtoReflect added in v1.65.3

func (x *ReqChunkRecords) ProtoReflect() protoreflect.Message

func (*ReqChunkRecords) Reset added in v1.65.0

func (x *ReqChunkRecords) Reset()

func (*ReqChunkRecords) String added in v1.65.0

func (x *ReqChunkRecords) String() string

type ReqDecodeRawTransaction

type ReqDecodeRawTransaction struct {
	TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqDecodeRawTransaction) Descriptor deprecated

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

Deprecated: Use ReqDecodeRawTransaction.ProtoReflect.Descriptor instead.

func (*ReqDecodeRawTransaction) GetTxHex

func (x *ReqDecodeRawTransaction) GetTxHex() string

func (*ReqDecodeRawTransaction) ProtoMessage

func (*ReqDecodeRawTransaction) ProtoMessage()

func (*ReqDecodeRawTransaction) ProtoReflect added in v1.65.3

func (x *ReqDecodeRawTransaction) ProtoReflect() protoreflect.Message

func (*ReqDecodeRawTransaction) Reset

func (x *ReqDecodeRawTransaction) Reset()

func (*ReqDecodeRawTransaction) String

func (x *ReqDecodeRawTransaction) String() string

type ReqGetAccount added in v1.65.0

type ReqGetAccount struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

根据label获取账户地址

func (*ReqGetAccount) Descriptor deprecated added in v1.65.0

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

Deprecated: Use ReqGetAccount.ProtoReflect.Descriptor instead.

func (*ReqGetAccount) GetLabel added in v1.65.0

func (x *ReqGetAccount) GetLabel() string

func (*ReqGetAccount) ProtoMessage added in v1.65.0

func (*ReqGetAccount) ProtoMessage()

func (*ReqGetAccount) ProtoReflect added in v1.65.3

func (x *ReqGetAccount) ProtoReflect() protoreflect.Message

func (*ReqGetAccount) Reset added in v1.65.0

func (x *ReqGetAccount) Reset()

func (*ReqGetAccount) String added in v1.65.0

func (x *ReqGetAccount) String() string

type ReqGetExecBalance

type ReqGetExecBalance struct {
	Symbol    string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	StateHash []byte `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Addr      []byte `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	ExecAddr  []byte `protobuf:"bytes,4,opt,name=execAddr,proto3" json:"execAddr,omitempty"`
	Execer    string `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
	Count     int64  `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
	NextKey   []byte `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	// contains filtered or unexported fields
}

查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额

func (*ReqGetExecBalance) Descriptor deprecated

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

Deprecated: Use ReqGetExecBalance.ProtoReflect.Descriptor instead.

func (*ReqGetExecBalance) GetAddr

func (x *ReqGetExecBalance) GetAddr() []byte

func (*ReqGetExecBalance) GetCount

func (x *ReqGetExecBalance) GetCount() int64

func (*ReqGetExecBalance) GetExecAddr

func (x *ReqGetExecBalance) GetExecAddr() []byte

func (*ReqGetExecBalance) GetExecer

func (x *ReqGetExecBalance) GetExecer() string

func (*ReqGetExecBalance) GetNextKey

func (x *ReqGetExecBalance) GetNextKey() []byte

func (*ReqGetExecBalance) GetStateHash

func (x *ReqGetExecBalance) GetStateHash() []byte

func (*ReqGetExecBalance) GetSymbol

func (x *ReqGetExecBalance) GetSymbol() string

func (*ReqGetExecBalance) ProtoMessage

func (*ReqGetExecBalance) ProtoMessage()

func (*ReqGetExecBalance) ProtoReflect added in v1.65.3

func (x *ReqGetExecBalance) ProtoReflect() protoreflect.Message

func (*ReqGetExecBalance) Reset

func (x *ReqGetExecBalance) Reset()

func (*ReqGetExecBalance) String

func (x *ReqGetExecBalance) String() string

type ReqGetMempool

type ReqGetMempool struct {
	IsAll bool `protobuf:"varint,1,opt,name=isAll,proto3" json:"isAll,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqGetMempool) Descriptor deprecated

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

Deprecated: Use ReqGetMempool.ProtoReflect.Descriptor instead.

func (*ReqGetMempool) GetIsAll

func (x *ReqGetMempool) GetIsAll() bool

func (*ReqGetMempool) ProtoMessage

func (*ReqGetMempool) ProtoMessage()

func (*ReqGetMempool) ProtoReflect added in v1.65.3

func (x *ReqGetMempool) ProtoReflect() protoreflect.Message

func (*ReqGetMempool) Reset

func (x *ReqGetMempool) Reset()

func (*ReqGetMempool) String

func (x *ReqGetMempool) String() string

type ReqGetTotalCoins

type ReqGetTotalCoins struct {
	Symbol    string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	StateHash []byte `protobuf:"bytes,2,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	StartKey  []byte `protobuf:"bytes,3,opt,name=startKey,proto3" json:"startKey,omitempty"`
	Count     int64  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Execer    string `protobuf:"bytes,5,opt,name=execer,proto3" json:"execer,omitempty"`
	// contains filtered or unexported fields
}

查询symbol代币总额

func (*ReqGetTotalCoins) Descriptor deprecated

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

Deprecated: Use ReqGetTotalCoins.ProtoReflect.Descriptor instead.

func (*ReqGetTotalCoins) GetCount

func (x *ReqGetTotalCoins) GetCount() int64

func (*ReqGetTotalCoins) GetExecer

func (x *ReqGetTotalCoins) GetExecer() string

func (*ReqGetTotalCoins) GetStartKey

func (x *ReqGetTotalCoins) GetStartKey() []byte

func (*ReqGetTotalCoins) GetStateHash

func (x *ReqGetTotalCoins) GetStateHash() []byte

func (*ReqGetTotalCoins) GetSymbol

func (x *ReqGetTotalCoins) GetSymbol() string

func (*ReqGetTotalCoins) ProtoMessage

func (*ReqGetTotalCoins) ProtoMessage()

func (*ReqGetTotalCoins) ProtoReflect added in v1.65.3

func (x *ReqGetTotalCoins) ProtoReflect() protoreflect.Message

func (*ReqGetTotalCoins) Reset

func (x *ReqGetTotalCoins) Reset()

func (*ReqGetTotalCoins) String

func (x *ReqGetTotalCoins) String() string

type ReqGetWalletRecoverAddr added in v1.65.3

type ReqGetWalletRecoverAddr struct {
	CtrPubKey           string `protobuf:"bytes,1,opt,name=ctrPubKey,proto3" json:"ctrPubKey,omitempty"`
	RecoverPubKey       string `protobuf:"bytes,2,opt,name=recoverPubKey,proto3" json:"recoverPubKey,omitempty"`
	RelativeDelayHeight int64  `protobuf:"varint,3,opt,name=relativeDelayHeight,proto3" json:"relativeDelayHeight,omitempty"`
	// contains filtered or unexported fields
}

获取钱包找回地址请求

func (*ReqGetWalletRecoverAddr) Descriptor deprecated added in v1.65.3

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

Deprecated: Use ReqGetWalletRecoverAddr.ProtoReflect.Descriptor instead.

func (*ReqGetWalletRecoverAddr) GetCtrPubKey added in v1.65.3

func (x *ReqGetWalletRecoverAddr) GetCtrPubKey() string

func (*ReqGetWalletRecoverAddr) GetRecoverPubKey added in v1.65.3

func (x *ReqGetWalletRecoverAddr) GetRecoverPubKey() string

func (*ReqGetWalletRecoverAddr) GetRelativeDelayHeight added in v1.65.3

func (x *ReqGetWalletRecoverAddr) GetRelativeDelayHeight() int64

func (*ReqGetWalletRecoverAddr) ProtoMessage added in v1.65.3

func (*ReqGetWalletRecoverAddr) ProtoMessage()

func (*ReqGetWalletRecoverAddr) ProtoReflect added in v1.65.3

func (x *ReqGetWalletRecoverAddr) ProtoReflect() protoreflect.Message

func (*ReqGetWalletRecoverAddr) Reset added in v1.65.3

func (x *ReqGetWalletRecoverAddr) Reset()

func (*ReqGetWalletRecoverAddr) String added in v1.65.3

func (x *ReqGetWalletRecoverAddr) String() string

type ReqHash

type ReqHash struct {
	Hash    []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Upgrade bool   `protobuf:"varint,2,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqHash) Descriptor deprecated

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

Deprecated: Use ReqHash.ProtoReflect.Descriptor instead.

func (*ReqHash) GetHash

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

func (*ReqHash) GetUpgrade

func (x *ReqHash) GetUpgrade() bool

func (*ReqHash) ProtoMessage

func (*ReqHash) ProtoMessage()

func (*ReqHash) ProtoReflect added in v1.65.3

func (x *ReqHash) ProtoReflect() protoreflect.Message

func (*ReqHash) Reset

func (x *ReqHash) Reset()

func (*ReqHash) String

func (x *ReqHash) String() string

type ReqHashes

type ReqHashes struct {
	Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqHashes) Descriptor deprecated

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

Deprecated: Use ReqHashes.ProtoReflect.Descriptor instead.

func (*ReqHashes) GetHashes

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

func (*ReqHashes) ProtoMessage

func (*ReqHashes) ProtoMessage()

func (*ReqHashes) ProtoReflect added in v1.65.3

func (x *ReqHashes) ProtoReflect() protoreflect.Message

func (*ReqHashes) Reset

func (x *ReqHashes) Reset()

func (*ReqHashes) String

func (x *ReqHashes) String() string

type ReqHeightByTitle

type ReqHeightByTitle struct {
	Height    int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Title     string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Count     int32  `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Direction int32  `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

通过指定title以及height翻页获取拥有此title交易的区块高度列表

func (*ReqHeightByTitle) Descriptor deprecated

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

Deprecated: Use ReqHeightByTitle.ProtoReflect.Descriptor instead.

func (*ReqHeightByTitle) GetCount

func (x *ReqHeightByTitle) GetCount() int32

func (*ReqHeightByTitle) GetDirection

func (x *ReqHeightByTitle) GetDirection() int32

func (*ReqHeightByTitle) GetHeight

func (x *ReqHeightByTitle) GetHeight() int64

func (*ReqHeightByTitle) GetTitle

func (x *ReqHeightByTitle) GetTitle() string

func (*ReqHeightByTitle) ProtoMessage

func (*ReqHeightByTitle) ProtoMessage()

func (*ReqHeightByTitle) ProtoReflect added in v1.65.3

func (x *ReqHeightByTitle) ProtoReflect() protoreflect.Message

func (*ReqHeightByTitle) Reset

func (x *ReqHeightByTitle) Reset()

func (*ReqHeightByTitle) String

func (x *ReqHeightByTitle) String() string

type ReqInt

type ReqInt struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqInt) Descriptor deprecated

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

Deprecated: Use ReqInt.ProtoReflect.Descriptor instead.

func (*ReqInt) GetHeight

func (x *ReqInt) GetHeight() int64

func (*ReqInt) ProtoMessage

func (*ReqInt) ProtoMessage()

func (*ReqInt) ProtoReflect added in v1.65.3

func (x *ReqInt) ProtoReflect() protoreflect.Message

func (*ReqInt) Reset

func (x *ReqInt) Reset()

func (*ReqInt) String

func (x *ReqInt) String() string

type ReqKey

type ReqKey struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqKey) Descriptor deprecated

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

Deprecated: Use ReqKey.ProtoReflect.Descriptor instead.

func (*ReqKey) GetKey

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

func (*ReqKey) ProtoMessage

func (*ReqKey) ProtoMessage()

func (*ReqKey) ProtoReflect added in v1.65.3

func (x *ReqKey) ProtoReflect() protoreflect.Message

func (*ReqKey) Reset

func (x *ReqKey) Reset()

func (*ReqKey) String

func (x *ReqKey) String() string

type ReqModifyConfig

type ReqModifyConfig struct {
	Key      string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Op       string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
	Value    string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Modifier string `protobuf:"bytes,4,opt,name=modifier,proto3" json:"modifier,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqModifyConfig) Descriptor deprecated

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

Deprecated: Use ReqModifyConfig.ProtoReflect.Descriptor instead.

func (*ReqModifyConfig) GetKey

func (x *ReqModifyConfig) GetKey() string

func (*ReqModifyConfig) GetModifier

func (x *ReqModifyConfig) GetModifier() string

func (*ReqModifyConfig) GetOp

func (x *ReqModifyConfig) GetOp() string

func (*ReqModifyConfig) GetValue

func (x *ReqModifyConfig) GetValue() string

func (*ReqModifyConfig) ProtoMessage

func (*ReqModifyConfig) ProtoMessage()

func (*ReqModifyConfig) ProtoReflect added in v1.65.3

func (x *ReqModifyConfig) ProtoReflect() protoreflect.Message

func (*ReqModifyConfig) Reset

func (x *ReqModifyConfig) Reset()

func (*ReqModifyConfig) String

func (x *ReqModifyConfig) String() string

type ReqMultiStrings added in v1.66.1

type ReqMultiStrings struct {
	Datas []string `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqMultiStrings) Descriptor deprecated added in v1.66.1

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

Deprecated: Use ReqMultiStrings.ProtoReflect.Descriptor instead.

func (*ReqMultiStrings) GetDatas added in v1.66.1

func (x *ReqMultiStrings) GetDatas() []string

func (*ReqMultiStrings) ProtoMessage added in v1.66.1

func (*ReqMultiStrings) ProtoMessage()

func (*ReqMultiStrings) ProtoReflect added in v1.66.1

func (x *ReqMultiStrings) ProtoReflect() protoreflect.Message

func (*ReqMultiStrings) Reset added in v1.66.1

func (x *ReqMultiStrings) Reset()

func (*ReqMultiStrings) String added in v1.66.1

func (x *ReqMultiStrings) String() string

type ReqNewAccount

type ReqNewAccount struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqNewAccount) Descriptor deprecated

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

Deprecated: Use ReqNewAccount.ProtoReflect.Descriptor instead.

func (*ReqNewAccount) GetLabel

func (x *ReqNewAccount) GetLabel() string

func (*ReqNewAccount) ProtoMessage

func (*ReqNewAccount) ProtoMessage()

func (*ReqNewAccount) ProtoReflect added in v1.65.3

func (x *ReqNewAccount) ProtoReflect() protoreflect.Message

func (*ReqNewAccount) Reset

func (x *ReqNewAccount) Reset()

func (*ReqNewAccount) String

func (x *ReqNewAccount) String() string

type ReqNil

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

func (*ReqNil) Descriptor deprecated

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

Deprecated: Use ReqNil.ProtoReflect.Descriptor instead.

func (*ReqNil) ProtoMessage

func (*ReqNil) ProtoMessage()

func (*ReqNil) ProtoReflect added in v1.65.3

func (x *ReqNil) ProtoReflect() protoreflect.Message

func (*ReqNil) Reset

func (x *ReqNil) Reset()

func (*ReqNil) String

func (x *ReqNil) String() string

type ReqParaTxByHeight

type ReqParaTxByHeight struct {
	Items []int64 `protobuf:"varint,1,rep,packed,name=items,proto3" json:"items,omitempty"`
	Title string  `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

通过高度列表和title获取平行链交易

func (*ReqParaTxByHeight) Descriptor deprecated

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

Deprecated: Use ReqParaTxByHeight.ProtoReflect.Descriptor instead.

func (*ReqParaTxByHeight) GetItems

func (x *ReqParaTxByHeight) GetItems() []int64

func (*ReqParaTxByHeight) GetTitle

func (x *ReqParaTxByHeight) GetTitle() string

func (*ReqParaTxByHeight) ProtoMessage

func (*ReqParaTxByHeight) ProtoMessage()

func (*ReqParaTxByHeight) ProtoReflect added in v1.65.3

func (x *ReqParaTxByHeight) ProtoReflect() protoreflect.Message

func (*ReqParaTxByHeight) Reset

func (x *ReqParaTxByHeight) Reset()

func (*ReqParaTxByHeight) String

func (x *ReqParaTxByHeight) String() string

type ReqParaTxByTitle

type ReqParaTxByTitle struct {
	Start int64  `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End   int64  `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	IsSeq bool   `protobuf:"varint,4,opt,name=isSeq,proto3" json:"isSeq,omitempty"`
	// contains filtered or unexported fields
}

通过seq区间和title请求平行链的交易

func (*ReqParaTxByTitle) Descriptor deprecated

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

Deprecated: Use ReqParaTxByTitle.ProtoReflect.Descriptor instead.

func (*ReqParaTxByTitle) GetEnd

func (x *ReqParaTxByTitle) GetEnd() int64

func (*ReqParaTxByTitle) GetIsSeq

func (x *ReqParaTxByTitle) GetIsSeq() bool

func (*ReqParaTxByTitle) GetStart

func (x *ReqParaTxByTitle) GetStart() int64

func (*ReqParaTxByTitle) GetTitle

func (x *ReqParaTxByTitle) GetTitle() string

func (*ReqParaTxByTitle) ProtoMessage

func (*ReqParaTxByTitle) ProtoMessage()

func (*ReqParaTxByTitle) ProtoReflect added in v1.65.3

func (x *ReqParaTxByTitle) ProtoReflect() protoreflect.Message

func (*ReqParaTxByTitle) Reset

func (x *ReqParaTxByTitle) Reset()

func (*ReqParaTxByTitle) String

func (x *ReqParaTxByTitle) String() string

type ReqPeers added in v1.65.1

type ReqPeers struct {
	ReferKey []byte `protobuf:"bytes,1,opt,name=referKey,proto3" json:"referKey,omitempty"`
	Count    int32  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqPeers) Descriptor deprecated added in v1.65.1

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

Deprecated: Use ReqPeers.ProtoReflect.Descriptor instead.

func (*ReqPeers) GetCount added in v1.65.1

func (x *ReqPeers) GetCount() int32

func (*ReqPeers) GetReferKey added in v1.65.1

func (x *ReqPeers) GetReferKey() []byte

func (*ReqPeers) ProtoMessage added in v1.65.1

func (*ReqPeers) ProtoMessage()

func (*ReqPeers) ProtoReflect added in v1.65.3

func (x *ReqPeers) ProtoReflect() protoreflect.Message

func (*ReqPeers) Reset added in v1.65.1

func (x *ReqPeers) Reset()

func (*ReqPeers) String added in v1.65.1

func (x *ReqPeers) String() string

type ReqPrivkeysFile

type ReqPrivkeysFile struct {
	FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	Passwd   string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqPrivkeysFile) Descriptor deprecated

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

Deprecated: Use ReqPrivkeysFile.ProtoReflect.Descriptor instead.

func (*ReqPrivkeysFile) GetFileName

func (x *ReqPrivkeysFile) GetFileName() string

func (*ReqPrivkeysFile) GetPasswd

func (x *ReqPrivkeysFile) GetPasswd() string

func (*ReqPrivkeysFile) ProtoMessage

func (*ReqPrivkeysFile) ProtoMessage()

func (*ReqPrivkeysFile) ProtoReflect added in v1.65.3

func (x *ReqPrivkeysFile) ProtoReflect() protoreflect.Message

func (*ReqPrivkeysFile) Reset

func (x *ReqPrivkeysFile) Reset()

func (*ReqPrivkeysFile) String

func (x *ReqPrivkeysFile) String() string

type ReqProperFee

type ReqProperFee struct {
	TxCount int32 `protobuf:"varint,1,opt,name=txCount,proto3" json:"txCount,omitempty"`
	TxSize  int32 `protobuf:"varint,2,opt,name=txSize,proto3" json:"txSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqProperFee) Descriptor deprecated

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

Deprecated: Use ReqProperFee.ProtoReflect.Descriptor instead.

func (*ReqProperFee) GetTxCount

func (x *ReqProperFee) GetTxCount() int32

func (*ReqProperFee) GetTxSize

func (x *ReqProperFee) GetTxSize() int32

func (*ReqProperFee) ProtoMessage

func (*ReqProperFee) ProtoMessage()

func (*ReqProperFee) ProtoReflect added in v1.65.3

func (x *ReqProperFee) ProtoReflect() protoreflect.Message

func (*ReqProperFee) Reset

func (x *ReqProperFee) Reset()

func (*ReqProperFee) String

func (x *ReqProperFee) String() string

type ReqRandHash

type ReqRandHash struct {
	ExecName string `protobuf:"bytes,1,opt,name=execName,proto3" json:"execName,omitempty"`
	Height   int64  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	BlockNum int64  `protobuf:"varint,3,opt,name=blockNum,proto3" json:"blockNum,omitempty"`
	Hash     []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqRandHash) Descriptor deprecated

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

Deprecated: Use ReqRandHash.ProtoReflect.Descriptor instead.

func (*ReqRandHash) GetBlockNum

func (x *ReqRandHash) GetBlockNum() int64

func (*ReqRandHash) GetExecName

func (x *ReqRandHash) GetExecName() string

func (*ReqRandHash) GetHash

func (x *ReqRandHash) GetHash() []byte

func (*ReqRandHash) GetHeight

func (x *ReqRandHash) GetHeight() int64

func (*ReqRandHash) ProtoMessage

func (*ReqRandHash) ProtoMessage()

func (*ReqRandHash) ProtoReflect added in v1.65.3

func (x *ReqRandHash) ProtoReflect() protoreflect.Message

func (*ReqRandHash) Reset

func (x *ReqRandHash) Reset()

func (*ReqRandHash) String

func (x *ReqRandHash) String() string

type ReqSignRawTx

type ReqSignRawTx struct {
	Addr    string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Privkey string `protobuf:"bytes,2,opt,name=privkey,proto3" json:"privkey,omitempty"`
	TxHex   string `protobuf:"bytes,3,opt,name=txHex,proto3" json:"txHex,omitempty"`
	Expire  string `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"`
	Index   int32  `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	// 签名的模式类型
	// 0:普通交易
	// 1:隐私交易
	// int32  mode  = 6;
	Token string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
	Fee   int64  `protobuf:"varint,8,opt,name=fee,proto3" json:"fee,omitempty"`
	// bytes  newExecer = 9;
	NewToAddr string `protobuf:"bytes,10,opt,name=newToAddr,proto3" json:"newToAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqSignRawTx) Descriptor deprecated

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

Deprecated: Use ReqSignRawTx.ProtoReflect.Descriptor instead.

func (*ReqSignRawTx) GetAddr

func (x *ReqSignRawTx) GetAddr() string

func (*ReqSignRawTx) GetExpire

func (x *ReqSignRawTx) GetExpire() string

func (*ReqSignRawTx) GetFee

func (x *ReqSignRawTx) GetFee() int64

func (*ReqSignRawTx) GetIndex

func (x *ReqSignRawTx) GetIndex() int32

func (*ReqSignRawTx) GetNewToAddr

func (x *ReqSignRawTx) GetNewToAddr() string

func (*ReqSignRawTx) GetPrivkey

func (x *ReqSignRawTx) GetPrivkey() string

func (*ReqSignRawTx) GetToken

func (x *ReqSignRawTx) GetToken() string

func (*ReqSignRawTx) GetTxHex

func (x *ReqSignRawTx) GetTxHex() string

func (*ReqSignRawTx) ProtoMessage

func (*ReqSignRawTx) ProtoMessage()

func (*ReqSignRawTx) ProtoReflect added in v1.65.3

func (x *ReqSignRawTx) ProtoReflect() protoreflect.Message

func (*ReqSignRawTx) Reset

func (x *ReqSignRawTx) Reset()

func (*ReqSignRawTx) String

func (x *ReqSignRawTx) String() string

type ReqSignWalletRecoverTx added in v1.65.3

type ReqSignWalletRecoverTx struct {
	WalletRecoverParam *ReqGetWalletRecoverAddr `protobuf:"bytes,1,opt,name=walletRecoverParam,proto3" json:"walletRecoverParam,omitempty"`
	SignAddr           string                   `protobuf:"bytes,2,opt,name=signAddr,proto3" json:"signAddr,omitempty"`
	PrivKey            string                   `protobuf:"bytes,3,opt,name=privKey,proto3" json:"privKey,omitempty"`
	RawTx              string                   `protobuf:"bytes,4,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
	// contains filtered or unexported fields
}

获取钱包找回签名请求

func (*ReqSignWalletRecoverTx) Descriptor deprecated added in v1.65.3

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

Deprecated: Use ReqSignWalletRecoverTx.ProtoReflect.Descriptor instead.

func (*ReqSignWalletRecoverTx) GetPrivKey added in v1.65.3

func (x *ReqSignWalletRecoverTx) GetPrivKey() string

func (*ReqSignWalletRecoverTx) GetRawTx added in v1.65.3

func (x *ReqSignWalletRecoverTx) GetRawTx() string

func (*ReqSignWalletRecoverTx) GetSignAddr added in v1.65.3

func (x *ReqSignWalletRecoverTx) GetSignAddr() string

func (*ReqSignWalletRecoverTx) GetWalletRecoverParam added in v1.65.3

func (x *ReqSignWalletRecoverTx) GetWalletRecoverParam() *ReqGetWalletRecoverAddr

func (*ReqSignWalletRecoverTx) ProtoMessage added in v1.65.3

func (*ReqSignWalletRecoverTx) ProtoMessage()

func (*ReqSignWalletRecoverTx) ProtoReflect added in v1.65.3

func (x *ReqSignWalletRecoverTx) ProtoReflect() protoreflect.Message

func (*ReqSignWalletRecoverTx) Reset added in v1.65.3

func (x *ReqSignWalletRecoverTx) Reset()

func (*ReqSignWalletRecoverTx) String added in v1.65.3

func (x *ReqSignWalletRecoverTx) String() string

type ReqString

type ReqString struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqString) Descriptor deprecated

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

Deprecated: Use ReqString.ProtoReflect.Descriptor instead.

func (*ReqString) GetData

func (x *ReqString) GetData() string

func (*ReqString) ProtoMessage

func (*ReqString) ProtoMessage()

func (*ReqString) ProtoReflect added in v1.65.3

func (x *ReqString) ProtoReflect() protoreflect.Message

func (*ReqString) Reset

func (x *ReqString) Reset()

func (*ReqString) String

func (x *ReqString) String() string

type ReqSubscribe added in v1.66.1

type ReqSubscribe struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 0:代表区块;1:代表区块头信息;2:代表交易回执
	Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	//允许订阅多个类型的交易回执
	Contract map[string]bool `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ReqSubscribe) Descriptor deprecated added in v1.66.1

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

Deprecated: Use ReqSubscribe.ProtoReflect.Descriptor instead.

func (*ReqSubscribe) GetContract added in v1.66.1

func (x *ReqSubscribe) GetContract() map[string]bool

func (*ReqSubscribe) GetName added in v1.66.1

func (x *ReqSubscribe) GetName() string

func (*ReqSubscribe) GetType added in v1.66.1

func (x *ReqSubscribe) GetType() int32

func (*ReqSubscribe) ProtoMessage added in v1.66.1

func (*ReqSubscribe) ProtoMessage()

func (*ReqSubscribe) ProtoReflect added in v1.66.1

func (x *ReqSubscribe) ProtoReflect() protoreflect.Message

func (*ReqSubscribe) Reset added in v1.66.1

func (x *ReqSubscribe) Reset()

func (*ReqSubscribe) String added in v1.66.1

func (x *ReqSubscribe) String() string

type ReqTokenFinishCreate

type ReqTokenFinishCreate struct {
	FinisherAddr string `protobuf:"bytes,1,opt,name=finisher_addr,json=finisherAddr,proto3" json:"finisher_addr,omitempty"`
	Symbol       string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	OwnerAddr    string `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqTokenFinishCreate) Descriptor deprecated

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

Deprecated: Use ReqTokenFinishCreate.ProtoReflect.Descriptor instead.

func (*ReqTokenFinishCreate) GetFinisherAddr

func (x *ReqTokenFinishCreate) GetFinisherAddr() string

func (*ReqTokenFinishCreate) GetOwnerAddr

func (x *ReqTokenFinishCreate) GetOwnerAddr() string

func (*ReqTokenFinishCreate) GetSymbol

func (x *ReqTokenFinishCreate) GetSymbol() string

func (*ReqTokenFinishCreate) ProtoMessage

func (*ReqTokenFinishCreate) ProtoMessage()

func (*ReqTokenFinishCreate) ProtoReflect added in v1.65.3

func (x *ReqTokenFinishCreate) ProtoReflect() protoreflect.Message

func (*ReqTokenFinishCreate) Reset

func (x *ReqTokenFinishCreate) Reset()

func (*ReqTokenFinishCreate) String

func (x *ReqTokenFinishCreate) String() string

type ReqTokenPreCreate

type ReqTokenPreCreate struct {
	CreatorAddr  string `protobuf:"bytes,1,opt,name=creator_addr,json=creatorAddr,proto3" json:"creator_addr,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Symbol       string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Introduction string `protobuf:"bytes,4,opt,name=introduction,proto3" json:"introduction,omitempty"`
	OwnerAddr    string `protobuf:"bytes,5,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
	Total        int64  `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	Price        int64  `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqTokenPreCreate) Descriptor deprecated

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

Deprecated: Use ReqTokenPreCreate.ProtoReflect.Descriptor instead.

func (*ReqTokenPreCreate) GetCreatorAddr

func (x *ReqTokenPreCreate) GetCreatorAddr() string

func (*ReqTokenPreCreate) GetIntroduction

func (x *ReqTokenPreCreate) GetIntroduction() string

func (*ReqTokenPreCreate) GetName

func (x *ReqTokenPreCreate) GetName() string

func (*ReqTokenPreCreate) GetOwnerAddr

func (x *ReqTokenPreCreate) GetOwnerAddr() string

func (*ReqTokenPreCreate) GetPrice

func (x *ReqTokenPreCreate) GetPrice() int64

func (*ReqTokenPreCreate) GetSymbol

func (x *ReqTokenPreCreate) GetSymbol() string

func (*ReqTokenPreCreate) GetTotal

func (x *ReqTokenPreCreate) GetTotal() int64

func (*ReqTokenPreCreate) ProtoMessage

func (*ReqTokenPreCreate) ProtoMessage()

func (*ReqTokenPreCreate) ProtoReflect added in v1.65.3

func (x *ReqTokenPreCreate) ProtoReflect() protoreflect.Message

func (*ReqTokenPreCreate) Reset

func (x *ReqTokenPreCreate) Reset()

func (*ReqTokenPreCreate) String

func (x *ReqTokenPreCreate) String() string

type ReqTokenRevokeCreate

type ReqTokenRevokeCreate struct {
	RevokerAddr string `protobuf:"bytes,1,opt,name=revoker_addr,json=revokerAddr,proto3" json:"revoker_addr,omitempty"`
	Symbol      string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	OwnerAddr   string `protobuf:"bytes,3,opt,name=owner_addr,json=ownerAddr,proto3" json:"owner_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqTokenRevokeCreate) Descriptor deprecated

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

Deprecated: Use ReqTokenRevokeCreate.ProtoReflect.Descriptor instead.

func (*ReqTokenRevokeCreate) GetOwnerAddr

func (x *ReqTokenRevokeCreate) GetOwnerAddr() string

func (*ReqTokenRevokeCreate) GetRevokerAddr

func (x *ReqTokenRevokeCreate) GetRevokerAddr() string

func (*ReqTokenRevokeCreate) GetSymbol

func (x *ReqTokenRevokeCreate) GetSymbol() string

func (*ReqTokenRevokeCreate) ProtoMessage

func (*ReqTokenRevokeCreate) ProtoMessage()

func (*ReqTokenRevokeCreate) ProtoReflect added in v1.65.3

func (x *ReqTokenRevokeCreate) ProtoReflect() protoreflect.Message

func (*ReqTokenRevokeCreate) Reset

func (x *ReqTokenRevokeCreate) Reset()

func (*ReqTokenRevokeCreate) String

func (x *ReqTokenRevokeCreate) String() string

type ReqTxHashList

type ReqTxHashList struct {
	Hashes      []string `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	IsShortHash bool     `protobuf:"varint,2,opt,name=isShortHash,proto3" json:"isShortHash,omitempty"`
	// contains filtered or unexported fields
}

通过交易hash获取交易列表,需要区分是短hash还是全hash值

func (*ReqTxHashList) Descriptor deprecated

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

Deprecated: Use ReqTxHashList.ProtoReflect.Descriptor instead.

func (*ReqTxHashList) GetHashes

func (x *ReqTxHashList) GetHashes() []string

func (*ReqTxHashList) GetIsShortHash

func (x *ReqTxHashList) GetIsShortHash() bool

func (*ReqTxHashList) ProtoMessage

func (*ReqTxHashList) ProtoMessage()

func (*ReqTxHashList) ProtoReflect added in v1.65.3

func (x *ReqTxHashList) ProtoReflect() protoreflect.Message

func (*ReqTxHashList) Reset

func (x *ReqTxHashList) Reset()

func (*ReqTxHashList) String

func (x *ReqTxHashList) String() string

type ReqTxList

type ReqTxList struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqTxList) Descriptor deprecated

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

Deprecated: Use ReqTxList.ProtoReflect.Descriptor instead.

func (*ReqTxList) GetCount

func (x *ReqTxList) GetCount() int64

func (*ReqTxList) ProtoMessage

func (*ReqTxList) ProtoMessage()

func (*ReqTxList) ProtoReflect added in v1.65.3

func (x *ReqTxList) ProtoReflect() protoreflect.Message

func (*ReqTxList) Reset

func (x *ReqTxList) Reset()

func (*ReqTxList) String

func (x *ReqTxList) String() string

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"`
	// contains filtered or unexported fields
}

func (*ReqWalletImportPrivkey) Descriptor deprecated

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

Deprecated: Use ReqWalletImportPrivkey.ProtoReflect.Descriptor instead.

func (*ReqWalletImportPrivkey) GetLabel

func (x *ReqWalletImportPrivkey) GetLabel() string

func (*ReqWalletImportPrivkey) GetPrivkey

func (x *ReqWalletImportPrivkey) GetPrivkey() string

func (*ReqWalletImportPrivkey) ProtoMessage

func (*ReqWalletImportPrivkey) ProtoMessage()

func (*ReqWalletImportPrivkey) ProtoReflect added in v1.65.3

func (x *ReqWalletImportPrivkey) ProtoReflect() protoreflect.Message

func (*ReqWalletImportPrivkey) Reset

func (x *ReqWalletImportPrivkey) Reset()

func (*ReqWalletImportPrivkey) String

func (x *ReqWalletImportPrivkey) String() string

type ReqWalletMergeBalance

type ReqWalletMergeBalance struct {
	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqWalletMergeBalance) Descriptor deprecated

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

Deprecated: Use ReqWalletMergeBalance.ProtoReflect.Descriptor instead.

func (*ReqWalletMergeBalance) GetTo

func (x *ReqWalletMergeBalance) GetTo() string

func (*ReqWalletMergeBalance) ProtoMessage

func (*ReqWalletMergeBalance) ProtoMessage()

func (*ReqWalletMergeBalance) ProtoReflect added in v1.65.3

func (x *ReqWalletMergeBalance) ProtoReflect() protoreflect.Message

func (*ReqWalletMergeBalance) Reset

func (x *ReqWalletMergeBalance) Reset()

func (*ReqWalletMergeBalance) String

func (x *ReqWalletMergeBalance) String() string

type ReqWalletSendToAddress

type ReqWalletSendToAddress struct {
	From        string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To          string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount      int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Note        string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	IsToken     bool   `protobuf:"varint,5,opt,name=isToken,proto3" json:"isToken,omitempty"`
	TokenSymbol string `protobuf:"bytes,6,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	// contains filtered or unexported fields
}

发送交易

from : 打出地址
to :接受地址
amount : 转账额度
note :转账备注

func (*ReqWalletSendToAddress) Descriptor deprecated

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

Deprecated: Use ReqWalletSendToAddress.ProtoReflect.Descriptor instead.

func (*ReqWalletSendToAddress) GetAmount

func (x *ReqWalletSendToAddress) GetAmount() int64

func (*ReqWalletSendToAddress) GetFrom

func (x *ReqWalletSendToAddress) GetFrom() string

func (*ReqWalletSendToAddress) GetIsToken

func (x *ReqWalletSendToAddress) GetIsToken() bool

func (*ReqWalletSendToAddress) GetNote

func (x *ReqWalletSendToAddress) GetNote() string

func (*ReqWalletSendToAddress) GetTo

func (x *ReqWalletSendToAddress) GetTo() string

func (*ReqWalletSendToAddress) GetTokenSymbol

func (x *ReqWalletSendToAddress) GetTokenSymbol() string

func (*ReqWalletSendToAddress) ProtoMessage

func (*ReqWalletSendToAddress) ProtoMessage()

func (*ReqWalletSendToAddress) ProtoReflect added in v1.65.3

func (x *ReqWalletSendToAddress) ProtoReflect() protoreflect.Message

func (*ReqWalletSendToAddress) Reset

func (x *ReqWalletSendToAddress) Reset()

func (*ReqWalletSendToAddress) String

func (x *ReqWalletSendToAddress) String() string

type ReqWalletSetFee

type ReqWalletSetFee struct {
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqWalletSetFee) Descriptor deprecated

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

Deprecated: Use ReqWalletSetFee.ProtoReflect.Descriptor instead.

func (*ReqWalletSetFee) GetAmount

func (x *ReqWalletSetFee) GetAmount() int64

func (*ReqWalletSetFee) ProtoMessage

func (*ReqWalletSetFee) ProtoMessage()

func (*ReqWalletSetFee) ProtoReflect added in v1.65.3

func (x *ReqWalletSetFee) ProtoReflect() protoreflect.Message

func (*ReqWalletSetFee) Reset

func (x *ReqWalletSetFee) Reset()

func (*ReqWalletSetFee) String

func (x *ReqWalletSetFee) String() string

type ReqWalletSetLabel

type ReqWalletSetLabel struct {
	Addr  string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqWalletSetLabel) Descriptor deprecated

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

Deprecated: Use ReqWalletSetLabel.ProtoReflect.Descriptor instead.

func (*ReqWalletSetLabel) GetAddr

func (x *ReqWalletSetLabel) GetAddr() string

func (*ReqWalletSetLabel) GetLabel

func (x *ReqWalletSetLabel) GetLabel() string

func (*ReqWalletSetLabel) ProtoMessage

func (*ReqWalletSetLabel) ProtoMessage()

func (*ReqWalletSetLabel) ProtoReflect added in v1.65.3

func (x *ReqWalletSetLabel) ProtoReflect() protoreflect.Message

func (*ReqWalletSetLabel) Reset

func (x *ReqWalletSetLabel) Reset()

func (*ReqWalletSetLabel) String

func (x *ReqWalletSetLabel) String() string

type ReqWalletSetPasswd

type ReqWalletSetPasswd struct {
	OldPass string `protobuf:"bytes,1,opt,name=oldPass,proto3" json:"oldPass,omitempty"`
	NewPass string `protobuf:"bytes,2,opt,name=newPass,proto3" json:"newPass,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqWalletSetPasswd) Descriptor deprecated

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

Deprecated: Use ReqWalletSetPasswd.ProtoReflect.Descriptor instead.

func (*ReqWalletSetPasswd) GetNewPass

func (x *ReqWalletSetPasswd) GetNewPass() string

func (*ReqWalletSetPasswd) GetOldPass

func (x *ReqWalletSetPasswd) GetOldPass() string

func (*ReqWalletSetPasswd) ProtoMessage

func (*ReqWalletSetPasswd) ProtoMessage()

func (*ReqWalletSetPasswd) ProtoReflect added in v1.65.3

func (x *ReqWalletSetPasswd) ProtoReflect() protoreflect.Message

func (*ReqWalletSetPasswd) Reset

func (x *ReqWalletSetPasswd) Reset()

func (*ReqWalletSetPasswd) String

func (x *ReqWalletSetPasswd) String() string

type ReqWalletTransactionList

type ReqWalletTransactionList struct {
	FromTx    []byte `protobuf:"bytes,1,opt,name=fromTx,proto3" json:"fromTx,omitempty"`
	Count     int32  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Direction int32  `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

获取钱包交易的详细信息

 fromTx : []byte( Sprintf("%018d", height*100000 + index),
			表示从高度 height 中的 index 开始获取交易列表;
		    第一次传参为空,获取最新的交易。)
 count :获取交易列表的个数。
 direction :查找方式;0,上一页;1,下一页。

func (*ReqWalletTransactionList) Descriptor deprecated

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

Deprecated: Use ReqWalletTransactionList.ProtoReflect.Descriptor instead.

func (*ReqWalletTransactionList) GetCount

func (x *ReqWalletTransactionList) GetCount() int32

func (*ReqWalletTransactionList) GetDirection

func (x *ReqWalletTransactionList) GetDirection() int32

func (*ReqWalletTransactionList) GetFromTx

func (x *ReqWalletTransactionList) GetFromTx() []byte

func (*ReqWalletTransactionList) ProtoMessage

func (*ReqWalletTransactionList) ProtoMessage()

func (*ReqWalletTransactionList) ProtoReflect added in v1.65.3

func (x *ReqWalletTransactionList) ProtoReflect() protoreflect.Message

func (*ReqWalletTransactionList) Reset

func (x *ReqWalletTransactionList) Reset()

func (*ReqWalletTransactionList) String

func (x *ReqWalletTransactionList) String() string

type Request

type Request struct {

	// Types that are assignable to Value:
	//	*Request_Client
	//	*Request_Preprepare
	//	*Request_Prepare
	//	*Request_Commit
	//	*Request_Checkpoint
	//	*Request_Viewchange
	//	*Request_Ack
	//	*Request_Newview
	Value isRequest_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAck

func (x *Request) GetAck() *RequestAck

func (*Request) GetCheckpoint

func (x *Request) GetCheckpoint() *RequestCheckpoint

func (*Request) GetClient

func (x *Request) GetClient() *RequestClient

func (*Request) GetCommit

func (x *Request) GetCommit() *RequestCommit

func (*Request) GetNewview

func (x *Request) GetNewview() *RequestNewView

func (*Request) GetPrepare

func (x *Request) GetPrepare() *RequestPrepare

func (*Request) GetPreprepare

func (x *Request) GetPreprepare() *RequestPrePrepare

func (*Request) GetValue

func (m *Request) GetValue() isRequest_Value

func (*Request) GetViewchange

func (x *Request) GetViewchange() *RequestViewChange

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect added in v1.65.3

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type RequestAck

type RequestAck struct {
	View        uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Replica     uint32 `protobuf:"varint,2,opt,name=replica,proto3" json:"replica,omitempty"`
	Viewchanger uint32 `protobuf:"varint,3,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
	Digest      []byte `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestAck) Descriptor deprecated

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

Deprecated: Use RequestAck.ProtoReflect.Descriptor instead.

func (*RequestAck) GetDigest

func (x *RequestAck) GetDigest() []byte

func (*RequestAck) GetReplica

func (x *RequestAck) GetReplica() uint32

func (*RequestAck) GetView

func (x *RequestAck) GetView() uint32

func (*RequestAck) GetViewchanger

func (x *RequestAck) GetViewchanger() uint32

func (*RequestAck) ProtoMessage

func (*RequestAck) ProtoMessage()

func (*RequestAck) ProtoReflect added in v1.65.3

func (x *RequestAck) ProtoReflect() protoreflect.Message

func (*RequestAck) Reset

func (x *RequestAck) Reset()

func (*RequestAck) String

func (x *RequestAck) String() string

type RequestCheckpoint

type RequestCheckpoint struct {
	Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest   []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	Replica  uint32 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestCheckpoint) Descriptor deprecated

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

Deprecated: Use RequestCheckpoint.ProtoReflect.Descriptor instead.

func (*RequestCheckpoint) GetDigest

func (x *RequestCheckpoint) GetDigest() []byte

func (*RequestCheckpoint) GetReplica

func (x *RequestCheckpoint) GetReplica() uint32

func (*RequestCheckpoint) GetSequence

func (x *RequestCheckpoint) GetSequence() uint32

func (*RequestCheckpoint) ProtoMessage

func (*RequestCheckpoint) ProtoMessage()

func (*RequestCheckpoint) ProtoReflect added in v1.65.3

func (x *RequestCheckpoint) ProtoReflect() protoreflect.Message

func (*RequestCheckpoint) Reset

func (x *RequestCheckpoint) Reset()

func (*RequestCheckpoint) String

func (x *RequestCheckpoint) String() string

type RequestClient

type RequestClient struct {
	Op        *Operation `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
	Timestamp string     `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Client    string     `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestClient) Descriptor deprecated

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

Deprecated: Use RequestClient.ProtoReflect.Descriptor instead.

func (*RequestClient) GetClient

func (x *RequestClient) GetClient() string

func (*RequestClient) GetOp

func (x *RequestClient) GetOp() *Operation

func (*RequestClient) GetTimestamp

func (x *RequestClient) GetTimestamp() string

func (*RequestClient) ProtoMessage

func (*RequestClient) ProtoMessage()

func (*RequestClient) ProtoReflect added in v1.65.3

func (x *RequestClient) ProtoReflect() protoreflect.Message

func (*RequestClient) Reset

func (x *RequestClient) Reset()

func (*RequestClient) String

func (x *RequestClient) String() string

type RequestCommit

type RequestCommit struct {
	View     uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Replica  uint32 `protobuf:"varint,3,opt,name=replica,proto3" json:"replica,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestCommit) Descriptor deprecated

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

Deprecated: Use RequestCommit.ProtoReflect.Descriptor instead.

func (*RequestCommit) GetReplica

func (x *RequestCommit) GetReplica() uint32

func (*RequestCommit) GetSequence

func (x *RequestCommit) GetSequence() uint32

func (*RequestCommit) GetView

func (x *RequestCommit) GetView() uint32

func (*RequestCommit) ProtoMessage

func (*RequestCommit) ProtoMessage()

func (*RequestCommit) ProtoReflect added in v1.65.3

func (x *RequestCommit) ProtoReflect() protoreflect.Message

func (*RequestCommit) Reset

func (x *RequestCommit) Reset()

func (*RequestCommit) String

func (x *RequestCommit) String() string

type RequestNewView

type RequestNewView struct {
	View        uint32        `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Viewchanges []*ViewChange `protobuf:"bytes,2,rep,name=viewchanges,proto3" json:"viewchanges,omitempty"`
	Summaries   []*Summary    `protobuf:"bytes,4,rep,name=summaries,proto3" json:"summaries,omitempty"`
	Replica     uint32        `protobuf:"varint,5,opt,name=replica,proto3" json:"replica,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestNewView) Descriptor deprecated

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

Deprecated: Use RequestNewView.ProtoReflect.Descriptor instead.

func (*RequestNewView) GetReplica

func (x *RequestNewView) GetReplica() uint32

func (*RequestNewView) GetSummaries

func (x *RequestNewView) GetSummaries() []*Summary

func (*RequestNewView) GetView

func (x *RequestNewView) GetView() uint32

func (*RequestNewView) GetViewchanges

func (x *RequestNewView) GetViewchanges() []*ViewChange

func (*RequestNewView) ProtoMessage

func (*RequestNewView) ProtoMessage()

func (*RequestNewView) ProtoReflect added in v1.65.3

func (x *RequestNewView) ProtoReflect() protoreflect.Message

func (*RequestNewView) Reset

func (x *RequestNewView) Reset()

func (*RequestNewView) String

func (x *RequestNewView) String() string

type RequestPrePrepare

type RequestPrePrepare struct {
	View     uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest   []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	Replica  uint32 `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestPrePrepare) Descriptor deprecated

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

Deprecated: Use RequestPrePrepare.ProtoReflect.Descriptor instead.

func (*RequestPrePrepare) GetDigest

func (x *RequestPrePrepare) GetDigest() []byte

func (*RequestPrePrepare) GetReplica

func (x *RequestPrePrepare) GetReplica() uint32

func (*RequestPrePrepare) GetSequence

func (x *RequestPrePrepare) GetSequence() uint32

func (*RequestPrePrepare) GetView

func (x *RequestPrePrepare) GetView() uint32

func (*RequestPrePrepare) ProtoMessage

func (*RequestPrePrepare) ProtoMessage()

func (*RequestPrePrepare) ProtoReflect added in v1.65.3

func (x *RequestPrePrepare) ProtoReflect() protoreflect.Message

func (*RequestPrePrepare) Reset

func (x *RequestPrePrepare) Reset()

func (*RequestPrePrepare) String

func (x *RequestPrePrepare) String() string

type RequestPrepare

type RequestPrepare struct {
	View     uint32 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence uint32 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest   []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	Replica  uint32 `protobuf:"varint,4,opt,name=replica,proto3" json:"replica,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestPrepare) Descriptor deprecated

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

Deprecated: Use RequestPrepare.ProtoReflect.Descriptor instead.

func (*RequestPrepare) GetDigest

func (x *RequestPrepare) GetDigest() []byte

func (*RequestPrepare) GetReplica

func (x *RequestPrepare) GetReplica() uint32

func (*RequestPrepare) GetSequence

func (x *RequestPrepare) GetSequence() uint32

func (*RequestPrepare) GetView

func (x *RequestPrepare) GetView() uint32

func (*RequestPrepare) ProtoMessage

func (*RequestPrepare) ProtoMessage()

func (*RequestPrepare) ProtoReflect added in v1.65.3

func (x *RequestPrepare) ProtoReflect() protoreflect.Message

func (*RequestPrepare) Reset

func (x *RequestPrepare) Reset()

func (*RequestPrepare) String

func (x *RequestPrepare) String() string

type RequestViewChange

type RequestViewChange struct {
	View        uint32        `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
	Sequence    uint32        `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Checkpoints []*Checkpoint `protobuf:"bytes,3,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"`
	Preps       []*Entry      `protobuf:"bytes,4,rep,name=preps,proto3" json:"preps,omitempty"`
	Prepreps    []*Entry      `protobuf:"bytes,5,rep,name=prepreps,proto3" json:"prepreps,omitempty"`
	Replica     uint32        `protobuf:"varint,6,opt,name=replica,proto3" json:"replica,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestViewChange) Descriptor deprecated

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

Deprecated: Use RequestViewChange.ProtoReflect.Descriptor instead.

func (*RequestViewChange) GetCheckpoints

func (x *RequestViewChange) GetCheckpoints() []*Checkpoint

func (*RequestViewChange) GetPrepreps

func (x *RequestViewChange) GetPrepreps() []*Entry

func (*RequestViewChange) GetPreps

func (x *RequestViewChange) GetPreps() []*Entry

func (*RequestViewChange) GetReplica

func (x *RequestViewChange) GetReplica() uint32

func (*RequestViewChange) GetSequence

func (x *RequestViewChange) GetSequence() uint32

func (*RequestViewChange) GetView

func (x *RequestViewChange) GetView() uint32

func (*RequestViewChange) ProtoMessage

func (*RequestViewChange) ProtoMessage()

func (*RequestViewChange) ProtoReflect added in v1.65.3

func (x *RequestViewChange) ProtoReflect() protoreflect.Message

func (*RequestViewChange) Reset

func (x *RequestViewChange) Reset()

func (*RequestViewChange) String

func (x *RequestViewChange) String() string

type Request_Ack

type Request_Ack struct {
	Ack *RequestAck `protobuf:"bytes,7,opt,name=ack,proto3,oneof"`
}

type Request_Checkpoint

type Request_Checkpoint struct {
	Checkpoint *RequestCheckpoint `protobuf:"bytes,5,opt,name=checkpoint,proto3,oneof"`
}

type Request_Client

type Request_Client struct {
	Client *RequestClient `protobuf:"bytes,1,opt,name=client,proto3,oneof"`
}

type Request_Commit

type Request_Commit struct {
	Commit *RequestCommit `protobuf:"bytes,4,opt,name=commit,proto3,oneof"`
}

type Request_Newview

type Request_Newview struct {
	Newview *RequestNewView `protobuf:"bytes,8,opt,name=newview,proto3,oneof"`
}

type Request_Prepare

type Request_Prepare struct {
	Prepare *RequestPrepare `protobuf:"bytes,3,opt,name=prepare,proto3,oneof"`
}

type Request_Preprepare

type Request_Preprepare struct {
	Preprepare *RequestPrePrepare `protobuf:"bytes,2,opt,name=preprepare,proto3,oneof"`
}

type Request_Viewchange

type Request_Viewchange struct {
	Viewchange *RequestViewChange `protobuf:"bytes,6,opt,name=viewchange,proto3,oneof"`
}

type Result

type Result struct {
	Value *Block `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetValue

func (x *Result) GetValue() *Block

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect added in v1.65.3

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type RingSignature

type RingSignature struct {
	Items []*RingSignatureItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

环签名类型时,签名字段存储的环签名信息

func (*RingSignature) Descriptor deprecated

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

Deprecated: Use RingSignature.ProtoReflect.Descriptor instead.

func (*RingSignature) GetItems

func (x *RingSignature) GetItems() []*RingSignatureItem

func (*RingSignature) ProtoMessage

func (*RingSignature) ProtoMessage()

func (*RingSignature) ProtoReflect added in v1.65.3

func (x *RingSignature) ProtoReflect() protoreflect.Message

func (*RingSignature) Reset

func (x *RingSignature) Reset()

func (*RingSignature) String

func (x *RingSignature) String() string

type RingSignatureItem

type RingSignatureItem struct {
	Pubkey    [][]byte `protobuf:"bytes,1,rep,name=pubkey,proto3" json:"pubkey,omitempty"`
	Signature [][]byte `protobuf:"bytes,2,rep,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

环签名中的一组签名数据

func (*RingSignatureItem) Descriptor deprecated

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

Deprecated: Use RingSignatureItem.ProtoReflect.Descriptor instead.

func (*RingSignatureItem) GetPubkey

func (x *RingSignatureItem) GetPubkey() [][]byte

func (*RingSignatureItem) GetSignature

func (x *RingSignatureItem) GetSignature() [][]byte

func (*RingSignatureItem) ProtoMessage

func (*RingSignatureItem) ProtoMessage()

func (*RingSignatureItem) ProtoReflect added in v1.65.3

func (x *RingSignatureItem) ProtoReflect() protoreflect.Message

func (*RingSignatureItem) Reset

func (x *RingSignatureItem) Reset()

func (*RingSignatureItem) String

func (x *RingSignatureItem) String() string

type SaveSeedByPw

type SaveSeedByPw struct {
	Seed   string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	// contains filtered or unexported fields
}

存储钱包的种子

seed : 钱包种子
passwd :钱包密码

func (*SaveSeedByPw) Descriptor deprecated

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

Deprecated: Use SaveSeedByPw.ProtoReflect.Descriptor instead.

func (*SaveSeedByPw) GetPasswd

func (x *SaveSeedByPw) GetPasswd() string

func (*SaveSeedByPw) GetSeed

func (x *SaveSeedByPw) GetSeed() string

func (*SaveSeedByPw) ProtoMessage

func (*SaveSeedByPw) ProtoMessage()

func (*SaveSeedByPw) ProtoReflect added in v1.65.3

func (x *SaveSeedByPw) ProtoReflect() protoreflect.Message

func (*SaveSeedByPw) Reset

func (x *SaveSeedByPw) Reset()

func (*SaveSeedByPw) String

func (x *SaveSeedByPw) String() string

type ServerTime added in v1.65.1

type ServerTime struct {
	CurrentTimestamp int64 `protobuf:"varint,1,opt,name=currentTimestamp,proto3" json:"currentTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerTime) Descriptor deprecated added in v1.65.1

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

Deprecated: Use ServerTime.ProtoReflect.Descriptor instead.

func (*ServerTime) GetCurrentTimestamp added in v1.65.1

func (x *ServerTime) GetCurrentTimestamp() int64

func (*ServerTime) ProtoMessage added in v1.65.1

func (*ServerTime) ProtoMessage()

func (*ServerTime) ProtoReflect added in v1.65.3

func (x *ServerTime) ProtoReflect() protoreflect.Message

func (*ServerTime) Reset added in v1.65.1

func (x *ServerTime) Reset()

func (*ServerTime) String added in v1.65.1

func (x *ServerTime) String() string

type SetPeer added in v1.65.3

type SetPeer struct {
	PeerAddr string `protobuf:"bytes,1,opt,name=peerAddr,proto3" json:"peerAddr,omitempty"`
	Pid      string `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
	Seed     bool   `protobuf:"varint,3,opt,name=seed,proto3" json:"seed,omitempty"`
	// contains filtered or unexported fields
}

SetPeer 通过rpc 方式连接指定的节点

func (*SetPeer) Descriptor deprecated added in v1.65.3

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

Deprecated: Use SetPeer.ProtoReflect.Descriptor instead.

func (*SetPeer) GetPeerAddr added in v1.65.3

func (x *SetPeer) GetPeerAddr() string

func (*SetPeer) GetPid added in v1.65.3

func (x *SetPeer) GetPid() string

func (*SetPeer) GetSeed added in v1.65.3

func (x *SetPeer) GetSeed() bool

func (*SetPeer) ProtoMessage added in v1.65.3

func (*SetPeer) ProtoMessage()

func (*SetPeer) ProtoReflect added in v1.65.3

func (x *SetPeer) ProtoReflect() protoreflect.Message

func (*SetPeer) Reset added in v1.65.3

func (x *SetPeer) Reset()

func (*SetPeer) String added in v1.65.3

func (x *SetPeer) String() string

type Signature

type Signature struct {
	Ty     int32  `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	//当ty为5时,格式应该用RingSignature去解析
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

对于一个交易组中的交易,要么全部成功,要么全部失败 这个要好好设计一下 最好交易构成一个链条[prevhash].独立的交易构成链条 只要这个组中有一个执行是出错的,那么就执行不成功 三种签名支持 ty = 1 -> secp256k1 ty = 2 -> ed25519 ty = 3 -> sm2 ty = 4 -> OnetimeED25519 ty = 5 -> RingBaseonED25519

func (*Signature) Clone

func (sig *Signature) Clone() *Signature

Clone 添加一个浅拷贝函数

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetPubkey

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

func (*Signature) GetSignature

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

func (*Signature) GetTy

func (x *Signature) GetTy() int32

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect added in v1.65.3

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Statistical added in v1.65.3

type Statistical struct {
	Peers    []*Peer      `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	Nodeinfo *NodeNetInfo `protobuf:"bytes,2,opt,name=nodeinfo,proto3" json:"nodeinfo,omitempty"`
	// contains filtered or unexported fields
}

Statistical 用于统计信息的获取

func (*Statistical) Descriptor deprecated added in v1.65.3

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

Deprecated: Use Statistical.ProtoReflect.Descriptor instead.

func (*Statistical) GetNodeinfo added in v1.65.3

func (x *Statistical) GetNodeinfo() *NodeNetInfo

func (*Statistical) GetPeers added in v1.65.3

func (x *Statistical) GetPeers() []*Peer

func (*Statistical) ProtoMessage added in v1.65.3

func (*Statistical) ProtoMessage()

func (*Statistical) ProtoReflect added in v1.65.3

func (x *Statistical) ProtoReflect() protoreflect.Message

func (*Statistical) Reset added in v1.65.3

func (x *Statistical) Reset()

func (*Statistical) String added in v1.65.3

func (x *Statistical) String() string

type Store

type Store struct {
	// 数据存储格式名称,目前支持mavl,kvdb,kvmvcc,mpt
	Name string `json:"name,omitempty"`
	// 数据存储驱动类别,目前支持leveldb,goleveldb,memdb,gobadgerdb,ssdb,pegasus
	Driver string `json:"driver,omitempty"`
	// 数据文件存储路径
	DbPath string `json:"dbPath,omitempty"`
	// Cache大小
	DbCache int32 `json:"dbCache,omitempty"`
	// 数据库版本
	LocalDBVersion string `json:"localdbVersion,omitempty"`
	// 数据库版本
	StoreDBVersion string `json:"storedbVersion,omitempty"`
}

Store 配置

type StoreDel

type StoreDel struct {
	StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Height    int64  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreDel) Descriptor deprecated

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

Deprecated: Use StoreDel.ProtoReflect.Descriptor instead.

func (*StoreDel) GetHeight

func (x *StoreDel) GetHeight() int64

func (*StoreDel) GetStateHash

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

func (*StoreDel) ProtoMessage

func (*StoreDel) ProtoMessage()

func (*StoreDel) ProtoReflect added in v1.65.3

func (x *StoreDel) ProtoReflect() protoreflect.Message

func (*StoreDel) Reset

func (x *StoreDel) Reset()

func (*StoreDel) String

func (x *StoreDel) String() string

type StoreGet

type StoreGet struct {
	StateHash []byte   `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Keys      [][]byte `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreGet) Descriptor deprecated

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

Deprecated: Use StoreGet.ProtoReflect.Descriptor instead.

func (*StoreGet) GetKeys

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

func (*StoreGet) GetStateHash

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

func (*StoreGet) ProtoMessage

func (*StoreGet) ProtoMessage()

func (*StoreGet) ProtoReflect added in v1.65.3

func (x *StoreGet) ProtoReflect() protoreflect.Message

func (*StoreGet) Reset

func (x *StoreGet) Reset()

func (*StoreGet) String

func (x *StoreGet) String() string

type StoreList

type StoreList struct {
	StateHash []byte `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	Start     []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End       []byte `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	Suffix    []byte `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Count     int64  `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	Mode      int64  `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreList) Descriptor deprecated

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

Deprecated: Use StoreList.ProtoReflect.Descriptor instead.

func (*StoreList) GetCount

func (x *StoreList) GetCount() int64

func (*StoreList) GetEnd

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

func (*StoreList) GetMode

func (x *StoreList) GetMode() int64

func (*StoreList) GetStart

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

func (*StoreList) GetStateHash

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

func (*StoreList) GetSuffix

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

func (*StoreList) ProtoMessage

func (*StoreList) ProtoMessage()

func (*StoreList) ProtoReflect added in v1.65.3

func (x *StoreList) ProtoReflect() protoreflect.Message

func (*StoreList) Reset

func (x *StoreList) Reset()

func (*StoreList) String

func (x *StoreList) String() string

type StoreListReply

type StoreListReply struct {
	Start   []byte   `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End     []byte   `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	Suffix  []byte   `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Count   int64    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Num     int64    `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"`
	Mode    int64    `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
	NextKey []byte   `protobuf:"bytes,7,opt,name=nextKey,proto3" json:"nextKey,omitempty"`
	Keys    [][]byte `protobuf:"bytes,8,rep,name=keys,proto3" json:"keys,omitempty"`
	Values  [][]byte `protobuf:"bytes,9,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreListReply) Descriptor deprecated

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

Deprecated: Use StoreListReply.ProtoReflect.Descriptor instead.

func (*StoreListReply) GetCount

func (x *StoreListReply) GetCount() int64

func (*StoreListReply) GetEnd

func (x *StoreListReply) GetEnd() []byte

func (*StoreListReply) GetKeys

func (x *StoreListReply) GetKeys() [][]byte

func (*StoreListReply) GetMode

func (x *StoreListReply) GetMode() int64

func (*StoreListReply) GetNextKey

func (x *StoreListReply) GetNextKey() []byte

func (*StoreListReply) GetNum

func (x *StoreListReply) GetNum() int64

func (*StoreListReply) GetStart

func (x *StoreListReply) GetStart() []byte

func (*StoreListReply) GetSuffix

func (x *StoreListReply) GetSuffix() []byte

func (*StoreListReply) GetValues

func (x *StoreListReply) GetValues() [][]byte

func (*StoreListReply) ProtoMessage

func (*StoreListReply) ProtoMessage()

func (*StoreListReply) ProtoReflect added in v1.65.3

func (x *StoreListReply) ProtoReflect() protoreflect.Message

func (*StoreListReply) Reset

func (x *StoreListReply) Reset()

func (*StoreListReply) String

func (x *StoreListReply) String() string

type StoreNode

type StoreNode struct {
	Key       []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value     []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	LeftHash  []byte `protobuf:"bytes,3,opt,name=leftHash,proto3" json:"leftHash,omitempty"`
	RightHash []byte `protobuf:"bytes,4,opt,name=rightHash,proto3" json:"rightHash,omitempty"`
	Height    int32  `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Size      int32  `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreNode) Descriptor deprecated

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

Deprecated: Use StoreNode.ProtoReflect.Descriptor instead.

func (*StoreNode) GetHeight

func (x *StoreNode) GetHeight() int32

func (*StoreNode) GetKey

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

func (*StoreNode) GetLeftHash

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

func (*StoreNode) GetRightHash

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

func (*StoreNode) GetSize

func (x *StoreNode) GetSize() int32

func (*StoreNode) GetValue

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

func (*StoreNode) ProtoMessage

func (*StoreNode) ProtoMessage()

func (*StoreNode) ProtoReflect added in v1.65.3

func (x *StoreNode) ProtoReflect() protoreflect.Message

func (*StoreNode) Reset

func (x *StoreNode) Reset()

func (*StoreNode) String

func (x *StoreNode) String() string

type StoreReplyValue

type StoreReplyValue struct {
	Values [][]byte `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreReplyValue) Descriptor deprecated

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

Deprecated: Use StoreReplyValue.ProtoReflect.Descriptor instead.

func (*StoreReplyValue) GetValues

func (x *StoreReplyValue) GetValues() [][]byte

func (*StoreReplyValue) ProtoMessage

func (*StoreReplyValue) ProtoMessage()

func (*StoreReplyValue) ProtoReflect added in v1.65.3

func (x *StoreReplyValue) ProtoReflect() protoreflect.Message

func (*StoreReplyValue) Reset

func (x *StoreReplyValue) Reset()

func (*StoreReplyValue) String

func (x *StoreReplyValue) String() string

type StoreSet

type StoreSet struct {
	StateHash []byte      `protobuf:"bytes,1,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
	KV        []*KeyValue `protobuf:"bytes,2,rep,name=KV,proto3" json:"KV,omitempty"`
	Height    int64       `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreSet) Descriptor deprecated

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

Deprecated: Use StoreSet.ProtoReflect.Descriptor instead.

func (*StoreSet) GetHeight

func (x *StoreSet) GetHeight() int64

func (*StoreSet) GetKV

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

func (*StoreSet) GetStateHash

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

func (*StoreSet) ProtoMessage

func (*StoreSet) ProtoMessage()

func (*StoreSet) ProtoReflect added in v1.65.3

func (x *StoreSet) ProtoReflect() protoreflect.Message

func (*StoreSet) Reset

func (x *StoreSet) Reset()

func (*StoreSet) String

func (x *StoreSet) String() string

type StoreSetWithSync

type StoreSetWithSync struct {
	Storeset *StoreSet `protobuf:"bytes,1,opt,name=storeset,proto3" json:"storeset,omitempty"`
	Sync     bool      `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"`
	Upgrade  bool      `protobuf:"varint,3,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreSetWithSync) Descriptor deprecated

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

Deprecated: Use StoreSetWithSync.ProtoReflect.Descriptor instead.

func (*StoreSetWithSync) GetStoreset

func (x *StoreSetWithSync) GetStoreset() *StoreSet

func (*StoreSetWithSync) GetSync

func (x *StoreSetWithSync) GetSync() bool

func (*StoreSetWithSync) GetUpgrade

func (x *StoreSetWithSync) GetUpgrade() bool

func (*StoreSetWithSync) ProtoMessage

func (*StoreSetWithSync) ProtoMessage()

func (*StoreSetWithSync) ProtoReflect added in v1.65.3

func (x *StoreSetWithSync) ProtoReflect() protoreflect.Message

func (*StoreSetWithSync) Reset

func (x *StoreSetWithSync) Reset()

func (*StoreSetWithSync) String

func (x *StoreSetWithSync) String() string

type StoreValuePool

type StoreValuePool struct {
	Values [][]byte `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

用于存储db Pool数据的Value

func (*StoreValuePool) Descriptor deprecated

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

Deprecated: Use StoreValuePool.ProtoReflect.Descriptor instead.

func (*StoreValuePool) GetValues

func (x *StoreValuePool) GetValues() [][]byte

func (*StoreValuePool) ProtoMessage

func (*StoreValuePool) ProtoMessage()

func (*StoreValuePool) ProtoReflect added in v1.65.3

func (x *StoreValuePool) ProtoReflect() protoreflect.Message

func (*StoreValuePool) Reset

func (x *StoreValuePool) Reset()

func (*StoreValuePool) String

func (x *StoreValuePool) String() string

type StringConfig

type StringConfig struct {
	Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StringConfig) Descriptor deprecated

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

Deprecated: Use StringConfig.ProtoReflect.Descriptor instead.

func (*StringConfig) GetValue

func (x *StringConfig) GetValue() string

func (*StringConfig) ProtoMessage

func (*StringConfig) ProtoMessage()

func (*StringConfig) ProtoReflect added in v1.65.3

func (x *StringConfig) ProtoReflect() protoreflect.Message

func (*StringConfig) Reset

func (x *StringConfig) Reset()

func (*StringConfig) String

func (x *StringConfig) String() string

type SubTopic added in v1.65.0

type SubTopic struct {
	Topic  string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

func (*SubTopic) Descriptor deprecated added in v1.65.0

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

Deprecated: Use SubTopic.ProtoReflect.Descriptor instead.

func (*SubTopic) GetModule added in v1.65.0

func (x *SubTopic) GetModule() string

func (*SubTopic) GetTopic added in v1.65.0

func (x *SubTopic) GetTopic() string

func (*SubTopic) ProtoMessage added in v1.65.0

func (*SubTopic) ProtoMessage()

func (*SubTopic) ProtoReflect added in v1.65.3

func (x *SubTopic) ProtoReflect() protoreflect.Message

func (*SubTopic) Reset added in v1.65.0

func (x *SubTopic) Reset()

func (*SubTopic) String added in v1.65.0

func (x *SubTopic) String() string

type SubTopicReply added in v1.65.0

type SubTopicReply struct {
	Status bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*SubTopicReply) Descriptor deprecated added in v1.65.0

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

Deprecated: Use SubTopicReply.ProtoReflect.Descriptor instead.

func (*SubTopicReply) GetMsg added in v1.65.0

func (x *SubTopicReply) GetMsg() string

func (*SubTopicReply) GetStatus added in v1.65.0

func (x *SubTopicReply) GetStatus() bool

func (*SubTopicReply) ProtoMessage added in v1.65.0

func (*SubTopicReply) ProtoMessage()

func (*SubTopicReply) ProtoReflect added in v1.65.3

func (x *SubTopicReply) ProtoReflect() protoreflect.Message

func (*SubTopicReply) Reset added in v1.65.0

func (x *SubTopicReply) Reset()

func (*SubTopicReply) String added in v1.65.0

func (x *SubTopicReply) String() string

type SubscribeStatus added in v1.66.1

type SubscribeStatus struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 1:active,2:noactive
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeStatus) Descriptor deprecated added in v1.66.1

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

Deprecated: Use SubscribeStatus.ProtoReflect.Descriptor instead.

func (*SubscribeStatus) GetName added in v1.66.1

func (x *SubscribeStatus) GetName() string

func (*SubscribeStatus) GetStatus added in v1.66.1

func (x *SubscribeStatus) GetStatus() int32

func (*SubscribeStatus) ProtoMessage added in v1.66.1

func (*SubscribeStatus) ProtoMessage()

func (*SubscribeStatus) ProtoReflect added in v1.66.1

func (x *SubscribeStatus) ProtoReflect() protoreflect.Message

func (*SubscribeStatus) Reset added in v1.66.1

func (x *SubscribeStatus) Reset()

func (*SubscribeStatus) String added in v1.66.1

func (x *SubscribeStatus) String() string

type Summary

type Summary struct {
	Sequence uint32 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Digest   []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*Summary) Descriptor deprecated

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

Deprecated: Use Summary.ProtoReflect.Descriptor instead.

func (*Summary) GetDigest

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

func (*Summary) GetSequence

func (x *Summary) GetSequence() uint32

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) ProtoReflect added in v1.65.3

func (x *Summary) ProtoReflect() protoreflect.Message

func (*Summary) Reset

func (x *Summary) Reset()

func (*Summary) String

func (x *Summary) String() string

type TimeStatus

type TimeStatus struct {
	NtpTime   string `protobuf:"bytes,1,opt,name=ntpTime,proto3" json:"ntpTime,omitempty"`
	LocalTime string `protobuf:"bytes,2,opt,name=localTime,proto3" json:"localTime,omitempty"`
	Diff      int64  `protobuf:"varint,3,opt,name=diff,proto3" json:"diff,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeStatus) Descriptor deprecated

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

Deprecated: Use TimeStatus.ProtoReflect.Descriptor instead.

func (*TimeStatus) GetDiff

func (x *TimeStatus) GetDiff() int64

func (*TimeStatus) GetLocalTime

func (x *TimeStatus) GetLocalTime() string

func (*TimeStatus) GetNtpTime

func (x *TimeStatus) GetNtpTime() string

func (*TimeStatus) ProtoMessage

func (*TimeStatus) ProtoMessage()

func (*TimeStatus) ProtoReflect added in v1.65.3

func (x *TimeStatus) ProtoReflect() protoreflect.Message

func (*TimeStatus) Reset

func (x *TimeStatus) Reset()

func (*TimeStatus) String

func (x *TimeStatus) String() string

type TopicData added in v1.65.0

type TopicData struct {
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	From  string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Data  []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

* p2p 接收topic消息

func (*TopicData) Descriptor deprecated added in v1.65.0

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

Deprecated: Use TopicData.ProtoReflect.Descriptor instead.

func (*TopicData) GetData added in v1.65.0

func (x *TopicData) GetData() []byte

func (*TopicData) GetFrom added in v1.65.0

func (x *TopicData) GetFrom() string

func (*TopicData) GetTopic added in v1.65.0

func (x *TopicData) GetTopic() string

func (*TopicData) ProtoMessage added in v1.65.0

func (*TopicData) ProtoMessage()

func (*TopicData) ProtoReflect added in v1.65.3

func (x *TopicData) ProtoReflect() protoreflect.Message

func (*TopicData) Reset added in v1.65.0

func (x *TopicData) Reset()

func (*TopicData) String added in v1.65.0

func (x *TopicData) String() string

type TopicList added in v1.65.0

type TopicList struct {
	Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

func (*TopicList) Descriptor deprecated added in v1.65.0

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

Deprecated: Use TopicList.ProtoReflect.Descriptor instead.

func (*TopicList) GetTopics added in v1.65.0

func (x *TopicList) GetTopics() []string

func (*TopicList) ProtoMessage added in v1.65.0

func (*TopicList) ProtoMessage()

func (*TopicList) ProtoReflect added in v1.65.3

func (x *TopicList) ProtoReflect() protoreflect.Message

func (*TopicList) Reset added in v1.65.0

func (x *TopicList) Reset()

func (*TopicList) String added in v1.65.0

func (x *TopicList) String() string

type TotalAmount

type TotalAmount struct {

	// 统计的总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*TotalAmount) Descriptor deprecated

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

Deprecated: Use TotalAmount.ProtoReflect.Descriptor instead.

func (*TotalAmount) GetTotal

func (x *TotalAmount) GetTotal() int64

func (*TotalAmount) ProtoMessage

func (*TotalAmount) ProtoMessage()

func (*TotalAmount) ProtoReflect added in v1.65.3

func (x *TotalAmount) ProtoReflect() protoreflect.Message

func (*TotalAmount) Reset

func (x *TotalAmount) Reset()

func (*TotalAmount) String

func (x *TotalAmount) String() string

type TotalFee

type TotalFee struct {
	Fee     int64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
	TxCount int64 `protobuf:"varint,2,opt,name=txCount,proto3" json:"txCount,omitempty"`
	// contains filtered or unexported fields
}

手续费

func (*TotalFee) Descriptor deprecated

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

Deprecated: Use TotalFee.ProtoReflect.Descriptor instead.

func (*TotalFee) GetFee

func (x *TotalFee) GetFee() int64

func (*TotalFee) GetTxCount

func (x *TotalFee) GetTxCount() int64

func (*TotalFee) ProtoMessage

func (*TotalFee) ProtoMessage()

func (*TotalFee) ProtoReflect added in v1.65.3

func (x *TotalFee) ProtoReflect() protoreflect.Message

func (*TotalFee) Reset

func (x *TotalFee) Reset()

func (*TotalFee) String

func (x *TotalFee) String() string

type Transaction

type Transaction struct {
	Execer    []byte     `protobuf:"bytes,1,opt,name=execer,proto3" json:"execer,omitempty"`
	Payload   []byte     `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	Signature *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	Fee       int64      `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
	Expire    int64      `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"`
	//随机ID,可以防止payload 相同的时候,交易重复
	Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	//对方地址,如果没有对方地址,可以为空
	To         string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"`
	GroupCount int32  `protobuf:"varint,8,opt,name=groupCount,proto3" json:"groupCount,omitempty"`
	Header     []byte `protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"`
	Next       []byte `protobuf:"bytes,10,opt,name=next,proto3" json:"next,omitempty"`
	ChainID    int32  `protobuf:"varint,11,opt,name=chainID,proto3" json:"chainID,omitempty"`
	// contains filtered or unexported fields
}

func CacheToTxs

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

CacheToTxs 从缓存中获取交易信息

func CallCreateTransaction

func CallCreateTransaction(execName, action string, param Message) (*Transaction, error)

CallCreateTransaction 创建一个交易

func CloneTx added in v1.65.3

func CloneTx(tx *Transaction) *Transaction

CloneTx clone tx 这里要避免用 tmp := *tx 这样就会读 可能被 proto 其他线程修改的 size 字段 proto buffer 字段发生更改之后,一定要修改这里,否则可能引起严重的bug

func CreateFormatTx

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

CreateFormatTx 构造交易信息

func FormatTx

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

FormatTx 格式化tx交易

func FormatTxExt added in v1.65.3

func FormatTxExt(chainID int32, isPara bool, minFee int64, execName string, tx *Transaction) (*Transaction, error)

FormatTxExt 根据输入参数格式化tx

func NewTx added in v1.65.3

func NewTx() *Transaction

NewTx new tx object

func TransactionSort

func TransactionSort(rawtxs []*Transaction) []*Transaction

TransactionSort 对主链以及平行链交易分类 构造一个map用于临时存储各个子链的交易, 按照title分类,主链交易的title设置成main 并对map按照title进行排序,不然每次遍历map顺序会不一致

func (*Transaction) ActionName

func (tx *Transaction) ActionName() string

ActionName 获取tx交易的Actionname

func (*Transaction) Amount

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

Amount 解析tx的payload获取amount值

func (*Transaction) Assets

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

Assets 获取交易中的资产

func (*Transaction) Check

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

Check 交易检测

func (*Transaction) CheckSign

func (tx *Transaction) CheckSign(blockHeight int64) bool

CheckSign tx 有些时候是一个交易组

func (*Transaction) Clone

func (tx *Transaction) Clone() *Transaction

Clone copytx := proto.Clone(tx).(*Transaction) too slow

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) From

func (tx *Transaction) From() string

From 交易from地址

func (*Transaction) FullHash

func (tx *Transaction) FullHash() []byte

FullHash 交易的fullhash包含交易的签名信息

func (*Transaction) GetChainID added in v1.65.1

func (x *Transaction) GetChainID() int32

func (*Transaction) GetExecer

func (x *Transaction) GetExecer() []byte

func (*Transaction) GetExpire

func (x *Transaction) GetExpire() int64

func (*Transaction) GetFee

func (x *Transaction) GetFee() int64

func (*Transaction) GetGroupCount

func (x *Transaction) GetGroupCount() int32

func (*Transaction) GetHeader

func (x *Transaction) GetHeader() []byte

func (*Transaction) GetNext

func (x *Transaction) GetNext() []byte

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() int64

func (*Transaction) GetPayload

func (x *Transaction) GetPayload() []byte

func (*Transaction) GetRealFee

func (tx *Transaction) GetRealFee(minFee int64) (int64, error)

GetRealFee 获取交易真实费用

func (*Transaction) GetRealToAddr

func (tx *Transaction) GetRealToAddr() string

GetRealToAddr 解析tx的payload获取real to值

func (*Transaction) GetSignature

func (x *Transaction) GetSignature() *Signature

func (*Transaction) GetTo

func (x *Transaction) GetTo() string

func (*Transaction) GetTxFee

func (tx *Transaction) GetTxFee() int64

GetTxFee 获取交易的费用,区分单笔交易和交易组

func (*Transaction) GetTxGroup

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

GetTxGroup 交易组装成交易组格式

func (*Transaction) GetViewFromToAddr

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

GetViewFromToAddr 解析tx的payload获取view from to 值

func (*Transaction) Hash

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

Hash 交易的hash不包含header的值,引入tx group的概念后,做了修改

func (*Transaction) IsExpire

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

IsExpire 交易是否过期

func (*Transaction) IsWithdraw

func (tx *Transaction) IsWithdraw(coinExec string) bool

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

func (*Transaction) JSON

func (tx *Transaction) JSON() string

JSON Transaction交易信息转成json结构体

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect added in v1.65.3

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) SetExpire

func (tx *Transaction) SetExpire(cfg *Chain33Config, expire time.Duration)

SetExpire 设置交易过期时间

func (*Transaction) SetRealFee

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

SetRealFee 设置交易真实费用

func (*Transaction) Sign

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

Sign 交易签名

func (*Transaction) Size

func (tx *Transaction) Size() int

Size 交易大小

func (*Transaction) String

func (x *Transaction) String() string

func (*Transaction) Tx

func (tx *Transaction) Tx() *Transaction

Tx 交易详情

type TransactionCache

type TransactionCache struct {
	*Transaction
	// contains filtered or unexported fields
}

TransactionCache 交易缓存结构

func NewTransactionCache

func NewTransactionCache(tx *Transaction) *TransactionCache

NewTransactionCache new交易缓存

func TxCacheGet

func TxCacheGet(tx *Transaction) (*TransactionCache, bool)

TxCacheGet 某些交易的cache 加入缓存中,防止重复进行解析或者计算

func TxsToCache

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

TxsToCache 缓存交易信息

func (*TransactionCache) Check

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

Check 交易缓存中交易组合费用的检测

func (*TransactionCache) CheckSign

func (tx *TransactionCache) CheckSign(blockHeight int64) bool

CheckSign 检测签名

func (*TransactionCache) GetPayloadValue

func (tx *TransactionCache) GetPayloadValue() (plname string, payload reflect.Value, plerr error)

GetPayloadValue 设置payload 的cache

func (*TransactionCache) GetTotalFee

func (tx *TransactionCache) GetTotalFee(minFee int64) (int64, error)

GetTotalFee 获取交易真实费用

func (*TransactionCache) GetTxGroup

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

GetTxGroup 获取交易组

func (*TransactionCache) Hash

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

Hash 交易hash

func (*TransactionCache) SetPayloadValue

func (tx *TransactionCache) SetPayloadValue(plname string, payload reflect.Value, plerr error)

SetPayloadValue 设置payload 的cache

func (*TransactionCache) Size

func (tx *TransactionCache) Size() int

Size 交易缓存的大小

func (*TransactionCache) Tx

func (tx *TransactionCache) Tx() *Transaction

Tx 交易缓存中tx信息

type TransactionDetail

type TransactionDetail struct {
	Tx         *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Receipt    *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Proofs     [][]byte     `protobuf:"bytes,3,rep,name=proofs,proto3" json:"proofs,omitempty"`
	Height     int64        `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Index      int64        `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
	Blocktime  int64        `protobuf:"varint,6,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	Amount     int64        `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
	Fromaddr   string       `protobuf:"bytes,8,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
	ActionName string       `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
	Assets     []*Asset     `protobuf:"bytes,10,rep,name=assets,proto3" json:"assets,omitempty"`
	TxProofs   []*TxProof   `protobuf:"bytes,11,rep,name=txProofs,proto3" json:"txProofs,omitempty"`
	FullHash   []byte       `protobuf:"bytes,12,opt,name=fullHash,proto3" json:"fullHash,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionDetail) Descriptor deprecated

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

Deprecated: Use TransactionDetail.ProtoReflect.Descriptor instead.

func (*TransactionDetail) GetActionName

func (x *TransactionDetail) GetActionName() string

func (*TransactionDetail) GetAmount

func (x *TransactionDetail) GetAmount() int64

func (*TransactionDetail) GetAssets

func (x *TransactionDetail) GetAssets() []*Asset

func (*TransactionDetail) GetBlocktime

func (x *TransactionDetail) GetBlocktime() int64

func (*TransactionDetail) GetFromaddr

func (x *TransactionDetail) GetFromaddr() string

func (*TransactionDetail) GetFullHash

func (x *TransactionDetail) GetFullHash() []byte

func (*TransactionDetail) GetHeight

func (x *TransactionDetail) GetHeight() int64

func (*TransactionDetail) GetIndex

func (x *TransactionDetail) GetIndex() int64

func (*TransactionDetail) GetProofs

func (x *TransactionDetail) GetProofs() [][]byte

func (*TransactionDetail) GetReceipt

func (x *TransactionDetail) GetReceipt() *ReceiptData

func (*TransactionDetail) GetTx

func (x *TransactionDetail) GetTx() *Transaction

func (*TransactionDetail) GetTxProofs

func (x *TransactionDetail) GetTxProofs() []*TxProof

func (*TransactionDetail) ProtoMessage

func (*TransactionDetail) ProtoMessage()

func (*TransactionDetail) ProtoReflect added in v1.65.3

func (x *TransactionDetail) ProtoReflect() protoreflect.Message

func (*TransactionDetail) Reset

func (x *TransactionDetail) Reset()

func (*TransactionDetail) String

func (x *TransactionDetail) String() string

type TransactionDetails

type TransactionDetails struct {
	Txs []*TransactionDetail `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionDetails) Descriptor deprecated

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

Deprecated: Use TransactionDetails.ProtoReflect.Descriptor instead.

func (*TransactionDetails) GetTxs

func (x *TransactionDetails) GetTxs() []*TransactionDetail

func (*TransactionDetails) ProtoMessage

func (*TransactionDetails) ProtoMessage()

func (*TransactionDetails) ProtoReflect added in v1.65.3

func (x *TransactionDetails) ProtoReflect() protoreflect.Message

func (*TransactionDetails) Reset

func (x *TransactionDetails) Reset()

func (*TransactionDetails) String

func (x *TransactionDetails) String() string

type Transactions

type Transactions struct {
	Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func CreateTxGroup

func CreateTxGroup(txs []*Transaction, feeRate int64) (*Transactions, error)

CreateTxGroup 创建组交易, feeRate传入交易费率, 建议通过系统GetProperFee获取

func (*Transactions) Check

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

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

func (*Transactions) CheckSign

func (txgroup *Transactions) CheckSign(blockHeight int64) bool

CheckSign 检测交易组的签名

func (*Transactions) CheckWithFork

func (txgroup *Transactions) CheckWithFork(cfg *Chain33Config, checkFork, paraFork bool, height, minfee, maxFee int64) error

CheckWithFork 和fork 无关的有个检查函数

func (*Transactions) Descriptor deprecated

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

Deprecated: Use Transactions.ProtoReflect.Descriptor instead.

func (*Transactions) GetTxGroup

func (txgroup *Transactions) GetTxGroup() *Transactions

GetTxGroup 获取交易组

func (*Transactions) GetTxs

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

func (*Transactions) IsExpire

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

IsExpire 交易是否过期

func (*Transactions) ProtoMessage

func (*Transactions) ProtoMessage()

func (*Transactions) ProtoReflect added in v1.65.3

func (x *Transactions) ProtoReflect() protoreflect.Message

func (*Transactions) RebuiltGroup

func (txgroup *Transactions) RebuiltGroup()

RebuiltGroup 交易内容有变化时需要重新构建交易组

func (*Transactions) Reset

func (x *Transactions) Reset()

func (*Transactions) SetExpire

func (txgroup *Transactions) SetExpire(cfg *Chain33Config, n int, expire time.Duration)

SetExpire 设置交易组中交易的过期时间

func (*Transactions) SignN

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

SignN 对交易组的第n笔交易签名

func (*Transactions) String

func (x *Transactions) String() string

func (*Transactions) Tx

func (txgroup *Transactions) Tx() *Transaction

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

type TxDetail

type TxDetail struct {
	Index   uint32       `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Tx      *Transaction `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"`
	Receipt *ReceiptData `protobuf:"bytes,3,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Proofs  [][]byte     `protobuf:"bytes,4,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// contains filtered or unexported fields
}

交易的详情: index:本交易在block中索引值,用于proof的证明 tx:本交易内容 receipt:本交易在主链的执行回执 proofs:本交易hash在block中merkel中的路径

func (*TxDetail) Descriptor deprecated

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

Deprecated: Use TxDetail.ProtoReflect.Descriptor instead.

func (*TxDetail) GetIndex

func (x *TxDetail) GetIndex() uint32

func (*TxDetail) GetProofs

func (x *TxDetail) GetProofs() [][]byte

func (*TxDetail) GetReceipt

func (x *TxDetail) GetReceipt() *ReceiptData

func (*TxDetail) GetTx

func (x *TxDetail) GetTx() *Transaction

func (*TxDetail) ProtoMessage

func (*TxDetail) ProtoMessage()

func (*TxDetail) ProtoReflect added in v1.65.3

func (x *TxDetail) ProtoReflect() protoreflect.Message

func (*TxDetail) Reset

func (x *TxDetail) Reset()

func (*TxDetail) String

func (x *TxDetail) String() string

type TxGroup

type TxGroup interface {
	Tx() *Transaction
	GetTxGroup() (*Transactions, error)
	CheckSign(blockHeight int64) bool
}

TxGroup 交易组的接口,Transactions 和 Transaction 都符合这个接口

type TxHash

type TxHash struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*TxHash) Descriptor deprecated

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

Deprecated: Use TxHash.ProtoReflect.Descriptor instead.

func (*TxHash) GetHash

func (x *TxHash) GetHash() string

func (*TxHash) ProtoMessage

func (*TxHash) ProtoMessage()

func (*TxHash) ProtoReflect added in v1.65.3

func (x *TxHash) ProtoReflect() protoreflect.Message

func (*TxHash) Reset

func (x *TxHash) Reset()

func (*TxHash) String

func (x *TxHash) String() string

type TxHashList

type TxHashList struct {
	Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	Count  int64    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Expire []int64  `protobuf:"varint,3,rep,packed,name=expire,proto3" json:"expire,omitempty"`
	// contains filtered or unexported fields
}

func (*TxHashList) Descriptor deprecated

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

Deprecated: Use TxHashList.ProtoReflect.Descriptor instead.

func (*TxHashList) GetCount

func (x *TxHashList) GetCount() int64

func (*TxHashList) GetExpire

func (x *TxHashList) GetExpire() []int64

func (*TxHashList) GetHashes

func (x *TxHashList) GetHashes() [][]byte

func (*TxHashList) ProtoMessage

func (*TxHashList) ProtoMessage()

func (*TxHashList) ProtoReflect added in v1.65.3

func (x *TxHashList) ProtoReflect() protoreflect.Message

func (*TxHashList) Reset

func (x *TxHashList) Reset()

func (*TxHashList) String

func (x *TxHashList) String() string

type TxHashWithReceiptType added in v1.65.1

type TxHashWithReceiptType struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Ty   int32  `protobuf:"varint,2,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*TxHashWithReceiptType) Descriptor deprecated added in v1.65.1

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

Deprecated: Use TxHashWithReceiptType.ProtoReflect.Descriptor instead.

func (*TxHashWithReceiptType) GetHash added in v1.65.1

func (x *TxHashWithReceiptType) GetHash() []byte

func (*TxHashWithReceiptType) GetTy added in v1.65.1

func (x *TxHashWithReceiptType) GetTy() int32

func (*TxHashWithReceiptType) ProtoMessage added in v1.65.1

func (*TxHashWithReceiptType) ProtoMessage()

func (*TxHashWithReceiptType) ProtoReflect added in v1.65.3

func (x *TxHashWithReceiptType) ProtoReflect() protoreflect.Message

func (*TxHashWithReceiptType) Reset added in v1.65.1

func (x *TxHashWithReceiptType) Reset()

func (*TxHashWithReceiptType) String added in v1.65.1

func (x *TxHashWithReceiptType) String() string

type TxProof

type TxProof struct {
	Proofs   [][]byte `protobuf:"bytes,1,rep,name=proofs,proto3" json:"proofs,omitempty"`
	Index    uint32   `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	RootHash []byte   `protobuf:"bytes,3,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	// contains filtered or unexported fields
}

使用多层merkle树之后的proof证明结构体

func (*TxProof) Descriptor deprecated

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

Deprecated: Use TxProof.ProtoReflect.Descriptor instead.

func (*TxProof) GetIndex

func (x *TxProof) GetIndex() uint32

func (*TxProof) GetProofs

func (x *TxProof) GetProofs() [][]byte

func (*TxProof) GetRootHash

func (x *TxProof) GetRootHash() []byte

func (*TxProof) ProtoMessage

func (*TxProof) ProtoMessage()

func (*TxProof) ProtoReflect added in v1.65.3

func (x *TxProof) ProtoReflect() protoreflect.Message

func (*TxProof) Reset

func (x *TxProof) Reset()

func (*TxProof) String

func (x *TxProof) String() string

type TxReceipts4Subscribe added in v1.65.0

type TxReceipts4Subscribe struct {
	TxReceipts []*TxReceipts4SubscribePerBlk `protobuf:"bytes,1,rep,name=txReceipts,proto3" json:"txReceipts,omitempty"`
	// contains filtered or unexported fields
}

func (*TxReceipts4Subscribe) Descriptor deprecated added in v1.65.0

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

Deprecated: Use TxReceipts4Subscribe.ProtoReflect.Descriptor instead.

func (*TxReceipts4Subscribe) GetTxReceipts added in v1.65.0

func (x *TxReceipts4Subscribe) GetTxReceipts() []*TxReceipts4SubscribePerBlk

func (*TxReceipts4Subscribe) ProtoMessage added in v1.65.0

func (*TxReceipts4Subscribe) ProtoMessage()

func (*TxReceipts4Subscribe) ProtoReflect added in v1.65.3

func (x *TxReceipts4Subscribe) ProtoReflect() protoreflect.Message

func (*TxReceipts4Subscribe) Reset added in v1.65.0

func (x *TxReceipts4Subscribe) Reset()

func (*TxReceipts4Subscribe) String added in v1.65.0

func (x *TxReceipts4Subscribe) String() string

type TxReceipts4SubscribePerBlk added in v1.65.0

type TxReceipts4SubscribePerBlk struct {
	Tx          []*Transaction `protobuf:"bytes,1,rep,name=tx,proto3" json:"tx,omitempty"`
	ReceiptData []*ReceiptData `protobuf:"bytes,2,rep,name=receiptData,proto3" json:"receiptData,omitempty"`
	// repeated KeyValue    KV          = 3;
	Height       int64  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	BlockHash    []byte `protobuf:"bytes,5,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	ParentHash   []byte `protobuf:"bytes,6,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	PreviousHash []byte `protobuf:"bytes,7,opt,name=previousHash,proto3" json:"previousHash,omitempty"`
	AddDelType   int32  `protobuf:"varint,8,opt,name=addDelType,proto3" json:"addDelType,omitempty"`
	SeqNum       int64  `protobuf:"varint,9,opt,name=seqNum,proto3" json:"seqNum,omitempty"`
	// contains filtered or unexported fields
}

func (*TxReceipts4SubscribePerBlk) Descriptor deprecated added in v1.65.0

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

Deprecated: Use TxReceipts4SubscribePerBlk.ProtoReflect.Descriptor instead.

func (*TxReceipts4SubscribePerBlk) GetAddDelType added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetAddDelType() int32

func (*TxReceipts4SubscribePerBlk) GetBlockHash added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetBlockHash() []byte

func (*TxReceipts4SubscribePerBlk) GetHeight added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetHeight() int64

func (*TxReceipts4SubscribePerBlk) GetParentHash added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetParentHash() []byte

func (*TxReceipts4SubscribePerBlk) GetPreviousHash added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetPreviousHash() []byte

func (*TxReceipts4SubscribePerBlk) GetReceiptData added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetReceiptData() []*ReceiptData

func (*TxReceipts4SubscribePerBlk) GetSeqNum added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) GetSeqNum() int64

func (*TxReceipts4SubscribePerBlk) GetTx added in v1.65.0

func (*TxReceipts4SubscribePerBlk) ProtoMessage added in v1.65.0

func (*TxReceipts4SubscribePerBlk) ProtoMessage()

func (*TxReceipts4SubscribePerBlk) ProtoReflect added in v1.65.3

func (*TxReceipts4SubscribePerBlk) Reset added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) Reset()

func (*TxReceipts4SubscribePerBlk) String added in v1.65.0

func (x *TxReceipts4SubscribePerBlk) String() string

type TxResult

type TxResult struct {
	Height      int64        `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Index       int32        `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Tx          *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	Receiptdate *ReceiptData `protobuf:"bytes,4,opt,name=receiptdate,proto3" json:"receiptdate,omitempty"`
	Blocktime   int64        `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	ActionName  string       `protobuf:"bytes,6,opt,name=actionName,proto3" json:"actionName,omitempty"`
	// contains filtered or unexported fields
}

func (*TxResult) Descriptor deprecated

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

Deprecated: Use TxResult.ProtoReflect.Descriptor instead.

func (*TxResult) GetActionName

func (x *TxResult) GetActionName() string

func (*TxResult) GetBlocktime

func (x *TxResult) GetBlocktime() int64

func (*TxResult) GetHeight

func (x *TxResult) GetHeight() int64

func (*TxResult) GetIndex

func (x *TxResult) GetIndex() int32

func (*TxResult) GetReceiptdate

func (x *TxResult) GetReceiptdate() *ReceiptData

func (*TxResult) GetTx

func (x *TxResult) GetTx() *Transaction

func (*TxResult) ProtoMessage

func (*TxResult) ProtoMessage()

func (*TxResult) ProtoReflect added in v1.65.3

func (x *TxResult) ProtoReflect() protoreflect.Message

func (*TxResult) Reset

func (x *TxResult) Reset()

func (*TxResult) String

func (x *TxResult) String() string

type TxResultPerBlock added in v1.65.1

type TxResultPerBlock struct {
	Items      []*TxHashWithReceiptType `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Height     int64                    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	BlockHash  []byte                   `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	ParentHash []byte                   `protobuf:"bytes,4,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	AddDelType int32                    `protobuf:"varint,5,opt,name=addDelType,proto3" json:"addDelType,omitempty"`
	SeqNum     int64                    `protobuf:"varint,6,opt,name=seqNum,proto3" json:"seqNum,omitempty"`
	// contains filtered or unexported fields
}

func (*TxResultPerBlock) Descriptor deprecated added in v1.65.1

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

Deprecated: Use TxResultPerBlock.ProtoReflect.Descriptor instead.

func (*TxResultPerBlock) GetAddDelType added in v1.65.1

func (x *TxResultPerBlock) GetAddDelType() int32

func (*TxResultPerBlock) GetBlockHash added in v1.65.1

func (x *TxResultPerBlock) GetBlockHash() []byte

func (*TxResultPerBlock) GetHeight added in v1.65.1

func (x *TxResultPerBlock) GetHeight() int64

func (*TxResultPerBlock) GetItems added in v1.65.1

func (x *TxResultPerBlock) GetItems() []*TxHashWithReceiptType

func (*TxResultPerBlock) GetParentHash added in v1.65.1

func (x *TxResultPerBlock) GetParentHash() []byte

func (*TxResultPerBlock) GetSeqNum added in v1.65.1

func (x *TxResultPerBlock) GetSeqNum() int64

func (*TxResultPerBlock) ProtoMessage added in v1.65.1

func (*TxResultPerBlock) ProtoMessage()

func (*TxResultPerBlock) ProtoReflect added in v1.65.3

func (x *TxResultPerBlock) ProtoReflect() protoreflect.Message

func (*TxResultPerBlock) Reset added in v1.65.1

func (x *TxResultPerBlock) Reset()

func (*TxResultPerBlock) String added in v1.65.1

func (x *TxResultPerBlock) String() string

type TxResultSeqs added in v1.65.1

type TxResultSeqs struct {
	Items []*TxResultPerBlock `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*TxResultSeqs) Descriptor deprecated added in v1.65.1

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

Deprecated: Use TxResultSeqs.ProtoReflect.Descriptor instead.

func (*TxResultSeqs) GetItems added in v1.65.1

func (x *TxResultSeqs) GetItems() []*TxResultPerBlock

func (*TxResultSeqs) ProtoMessage added in v1.65.1

func (*TxResultSeqs) ProtoMessage()

func (*TxResultSeqs) ProtoReflect added in v1.65.3

func (x *TxResultSeqs) ProtoReflect() protoreflect.Message

func (*TxResultSeqs) Reset added in v1.65.1

func (x *TxResultSeqs) Reset()

func (*TxResultSeqs) String added in v1.65.1

func (x *TxResultSeqs) String() string

type UnimplementedChain33Server

type UnimplementedChain33Server struct {
}

UnimplementedChain33Server can be embedded to have forward compatible implementations.

func (*UnimplementedChain33Server) AddPushSubscribe added in v1.66.1

func (*UnimplementedChain33Server) CloseQueue

func (*UnimplementedChain33Server) ConvertExectoAddr added in v1.66.1

func (*UnimplementedChain33Server) CreateNoBalanceTransaction

func (*UnimplementedChain33Server) CreateNoBalanceTransaction(context.Context, *NoBalanceTx) (*ReplySignRawTx, error)

func (*UnimplementedChain33Server) CreateNoBalanceTxs

func (*UnimplementedChain33Server) CreateRawTransaction

func (*UnimplementedChain33Server) CreateRawTransaction(context.Context, *CreateTx) (*UnsignTx, error)

func (*UnimplementedChain33Server) CreateRawTxGroup

func (*UnimplementedChain33Server) CreateTransaction

func (*UnimplementedChain33Server) DumpPrivkey

func (*UnimplementedChain33Server) DumpPrivkeysFile

func (*UnimplementedChain33Server) ExecWallet

func (*UnimplementedChain33Server) GenSeed

func (*UnimplementedChain33Server) GetAccount added in v1.65.0

func (*UnimplementedChain33Server) GetAccounts

func (*UnimplementedChain33Server) GetAddrOverview

func (*UnimplementedChain33Server) GetAllExecBalance

func (*UnimplementedChain33Server) GetBalance

func (*UnimplementedChain33Server) GetBlockByHashes

func (*UnimplementedChain33Server) GetBlockBySeq

func (*UnimplementedChain33Server) GetBlockHash

func (*UnimplementedChain33Server) GetBlockOverview

func (*UnimplementedChain33Server) GetBlockSequences added in v1.66.1

func (*UnimplementedChain33Server) GetBlocks

func (*UnimplementedChain33Server) GetChainConfig added in v1.65.3

func (*UnimplementedChain33Server) GetCoinSymbol added in v1.66.1

func (*UnimplementedChain33Server) GetCryptoList added in v1.65.3

func (*UnimplementedChain33Server) GetFatalFailure

func (*UnimplementedChain33Server) GetFatalFailure(context.Context, *ReqNil) (*Int32, error)

func (*UnimplementedChain33Server) GetFork

func (*UnimplementedChain33Server) GetHeaders

func (*UnimplementedChain33Server) GetHexTxByHash

func (*UnimplementedChain33Server) GetLastBlockSequence

func (*UnimplementedChain33Server) GetLastBlockSequence(context.Context, *ReqNil) (*Int64, error)

func (*UnimplementedChain33Server) GetLastHeader

func (*UnimplementedChain33Server) GetLastMemPool

func (*UnimplementedChain33Server) GetMemPool

func (*UnimplementedChain33Server) GetParaTxByHeight

func (*UnimplementedChain33Server) GetParaTxByTitle

func (*UnimplementedChain33Server) GetPeerInfo

func (*UnimplementedChain33Server) GetProperFee

func (*UnimplementedChain33Server) GetPushSeqLastNum added in v1.66.1

func (*UnimplementedChain33Server) GetPushSeqLastNum(context.Context, *ReqString) (*Int64, error)

func (*UnimplementedChain33Server) GetSeed

func (*UnimplementedChain33Server) GetSequenceByHash

func (*UnimplementedChain33Server) GetSequenceByHash(context.Context, *ReqHash) (*Int64, error)

func (*UnimplementedChain33Server) GetServerTime added in v1.65.1

func (*UnimplementedChain33Server) GetTransactionByAddr

func (*UnimplementedChain33Server) GetTransactionByAddr(context.Context, *ReqAddr) (*ReplyTxInfos, error)

func (*UnimplementedChain33Server) GetTransactionByHashes

func (*UnimplementedChain33Server) GetWalletRecoverAddress added in v1.65.3

func (*UnimplementedChain33Server) GetWalletStatus

func (*UnimplementedChain33Server) ImportPrivkey

func (*UnimplementedChain33Server) ImportPrivkeysFile

func (*UnimplementedChain33Server) IsNtpClockSync

func (*UnimplementedChain33Server) IsSync

func (*UnimplementedChain33Server) ListPushes added in v1.66.1

func (*UnimplementedChain33Server) LoadParaTxByTitle

func (*UnimplementedChain33Server) Lock

func (*UnimplementedChain33Server) MergeBalance

func (*UnimplementedChain33Server) NetInfo

func (*UnimplementedChain33Server) NewAccount

func (*UnimplementedChain33Server) QueryChain

func (*UnimplementedChain33Server) QueryConsensus

func (*UnimplementedChain33Server) QueryRandNum

func (*UnimplementedChain33Server) QueryTransaction

func (*UnimplementedChain33Server) ReWriteTx added in v1.66.1

func (*UnimplementedChain33Server) SaveSeed

func (*UnimplementedChain33Server) SendDelayTransaction added in v1.65.3

func (*UnimplementedChain33Server) SendDelayTransaction(context.Context, *DelayTx) (*Reply, error)

func (*UnimplementedChain33Server) SendToAddress

func (*UnimplementedChain33Server) SendTransaction

func (*UnimplementedChain33Server) SendTransactionSync added in v1.65.1

func (*UnimplementedChain33Server) SendTransactionSync(context.Context, *Transaction) (*Reply, error)

func (*UnimplementedChain33Server) SendTransactions added in v1.65.3

func (*UnimplementedChain33Server) SetLabl

func (*UnimplementedChain33Server) SetPasswd

func (*UnimplementedChain33Server) SetTxFee

func (*UnimplementedChain33Server) SignRawTx

func (*UnimplementedChain33Server) SignWalletRecoverTx added in v1.65.3

func (*UnimplementedChain33Server) SubEvent added in v1.66.1

func (*UnimplementedChain33Server) UnLock

func (*UnimplementedChain33Server) Version

func (*UnimplementedChain33Server) WalletTransactionList

type UnimplementedP2PgserviceServer

type UnimplementedP2PgserviceServer struct {
}

UnimplementedP2PgserviceServer can be embedded to have forward compatible implementations.

func (*UnimplementedP2PgserviceServer) BroadCastBlock

func (*UnimplementedP2PgserviceServer) BroadCastTx

func (*UnimplementedP2PgserviceServer) CollectInPeers

func (*UnimplementedP2PgserviceServer) CollectInPeers2

func (*UnimplementedP2PgserviceServer) GetAddr

func (*UnimplementedP2PgserviceServer) GetAddrList

func (*UnimplementedP2PgserviceServer) GetBlocks

func (*UnimplementedP2PgserviceServer) GetData

func (*UnimplementedP2PgserviceServer) GetHeaders

func (*UnimplementedP2PgserviceServer) GetMemPool

func (*UnimplementedP2PgserviceServer) GetPeerInfo

func (*UnimplementedP2PgserviceServer) Ping

func (*UnimplementedP2PgserviceServer) ServerStreamRead

func (*UnimplementedP2PgserviceServer) ServerStreamSend

func (*UnimplementedP2PgserviceServer) SoftVersion

func (*UnimplementedP2PgserviceServer) Version

func (*UnimplementedP2PgserviceServer) Version2

type UnsignTx

type UnsignTx struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsignTx) Descriptor deprecated

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

Deprecated: Use UnsignTx.ProtoReflect.Descriptor instead.

func (*UnsignTx) GetData

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

func (*UnsignTx) ProtoMessage

func (*UnsignTx) ProtoMessage()

func (*UnsignTx) ProtoReflect added in v1.65.3

func (x *UnsignTx) ProtoReflect() protoreflect.Message

func (*UnsignTx) Reset

func (x *UnsignTx) Reset()

func (*UnsignTx) String

func (x *UnsignTx) String() string

type UpgradeMeta

type UpgradeMeta struct {
	Starting bool   `protobuf:"varint,1,opt,name=starting,proto3" json:"starting,omitempty"`
	Version  string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Height   int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*UpgradeMeta) Descriptor deprecated

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

Deprecated: Use UpgradeMeta.ProtoReflect.Descriptor instead.

func (*UpgradeMeta) GetHeight

func (x *UpgradeMeta) GetHeight() int64

func (*UpgradeMeta) GetStarting

func (x *UpgradeMeta) GetStarting() bool

func (*UpgradeMeta) GetVersion

func (x *UpgradeMeta) GetVersion() string

func (*UpgradeMeta) ProtoMessage

func (*UpgradeMeta) ProtoMessage()

func (*UpgradeMeta) ProtoReflect added in v1.65.3

func (x *UpgradeMeta) ProtoReflect() protoreflect.Message

func (*UpgradeMeta) Reset

func (x *UpgradeMeta) Reset()

func (*UpgradeMeta) String

func (x *UpgradeMeta) String() string

type UserWrite

type UserWrite struct {
	Topic   string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*UserWrite) Descriptor deprecated

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

Deprecated: Use UserWrite.ProtoReflect.Descriptor instead.

func (*UserWrite) GetContent

func (x *UserWrite) GetContent() string

func (*UserWrite) GetTopic

func (x *UserWrite) GetTopic() string

func (*UserWrite) ProtoMessage

func (*UserWrite) ProtoMessage()

func (*UserWrite) ProtoReflect added in v1.65.3

func (x *UserWrite) ProtoReflect() protoreflect.Message

func (*UserWrite) Reset

func (x *UserWrite) Reset()

func (*UserWrite) String

func (x *UserWrite) String() string

type VersionInfo

type VersionInfo struct {
	Title   string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	App     string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	Chain33 string `protobuf:"bytes,3,opt,name=chain33,proto3" json:"chain33,omitempty"`
	LocalDb string `protobuf:"bytes,4,opt,name=localDb,proto3" json:"localDb,omitempty"`
	ChainID int32  `protobuf:"varint,5,opt,name=chainID,proto3" json:"chainID,omitempty"`
	// contains filtered or unexported fields
}

* 当前软件版本信息

func (*VersionInfo) Descriptor deprecated

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

Deprecated: Use VersionInfo.ProtoReflect.Descriptor instead.

func (*VersionInfo) GetApp

func (x *VersionInfo) GetApp() string

func (*VersionInfo) GetChain33

func (x *VersionInfo) GetChain33() string

func (*VersionInfo) GetChainID added in v1.65.1

func (x *VersionInfo) GetChainID() int32

func (*VersionInfo) GetLocalDb

func (x *VersionInfo) GetLocalDb() string

func (*VersionInfo) GetTitle

func (x *VersionInfo) GetTitle() string

func (*VersionInfo) ProtoMessage

func (*VersionInfo) ProtoMessage()

func (*VersionInfo) ProtoReflect added in v1.65.3

func (x *VersionInfo) ProtoReflect() protoreflect.Message

func (*VersionInfo) Reset

func (x *VersionInfo) Reset()

func (*VersionInfo) String

func (x *VersionInfo) String() string

type Versions

type Versions struct {
	P2Pversion  int32  `protobuf:"varint,1,opt,name=p2pversion,proto3" json:"p2pversion,omitempty"`
	Softversion string `protobuf:"bytes,2,opt,name=softversion,proto3" json:"softversion,omitempty"`
	Peername    string `protobuf:"bytes,3,opt,name=peername,proto3" json:"peername,omitempty"`
	// contains filtered or unexported fields
}

* p2p 协议和软件版本

func (*Versions) Descriptor deprecated

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

Deprecated: Use Versions.ProtoReflect.Descriptor instead.

func (*Versions) GetP2Pversion

func (x *Versions) GetP2Pversion() int32

func (*Versions) GetPeername

func (x *Versions) GetPeername() string

func (*Versions) GetSoftversion

func (x *Versions) GetSoftversion() string

func (*Versions) ProtoMessage

func (*Versions) ProtoMessage()

func (*Versions) ProtoReflect added in v1.65.3

func (x *Versions) ProtoReflect() protoreflect.Message

func (*Versions) Reset

func (x *Versions) Reset()

func (*Versions) String

func (x *Versions) String() string

type ViewChange

type ViewChange struct {
	Viewchanger uint32 `protobuf:"varint,1,opt,name=viewchanger,proto3" json:"viewchanger,omitempty"`
	Digest      []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*ViewChange) Descriptor deprecated

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

Deprecated: Use ViewChange.ProtoReflect.Descriptor instead.

func (*ViewChange) GetDigest

func (x *ViewChange) GetDigest() []byte

func (*ViewChange) GetViewchanger

func (x *ViewChange) GetViewchanger() uint32

func (*ViewChange) ProtoMessage

func (*ViewChange) ProtoMessage()

func (*ViewChange) ProtoReflect added in v1.65.3

func (x *ViewChange) ProtoReflect() protoreflect.Message

func (*ViewChange) Reset

func (x *ViewChange) Reset()

func (*ViewChange) String

func (x *ViewChange) String() string

type Wallet

type Wallet struct {
	// 交易发送最低手续费,单位0.00000001BTY(1e-8),默认100000,即0.001BTY
	MinFee int64 `json:"minFee,omitempty"`
	// walletdb驱动名
	Driver string `json:"driver,omitempty"`
	// walletdb路径
	DbPath string `json:"dbPath,omitempty"`
	// walletdb缓存大小
	DbCache int32 `json:"dbCache,omitempty"`
	// 钱包发送交易签名方式
	SignType string `json:"signType,omitempty"`
	CoinType string `json:"coinType,omitempty"`
}

Wallet 配置

type WalletAccount

type WalletAccount struct {
	Acc   *Account `protobuf:"bytes,1,opt,name=acc,proto3" json:"acc,omitempty"`
	Label string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletAccount) Descriptor deprecated

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

Deprecated: Use WalletAccount.ProtoReflect.Descriptor instead.

func (*WalletAccount) GetAcc

func (x *WalletAccount) GetAcc() *Account

func (*WalletAccount) GetLabel

func (x *WalletAccount) GetLabel() string

func (*WalletAccount) ProtoMessage

func (*WalletAccount) ProtoMessage()

func (*WalletAccount) ProtoReflect added in v1.65.3

func (x *WalletAccount) ProtoReflect() protoreflect.Message

func (*WalletAccount) Reset

func (x *WalletAccount) Reset()

func (*WalletAccount) String

func (x *WalletAccount) String() string

type WalletAccountStore

type WalletAccountStore struct {
	Privkey   string `protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
	Label     string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Addr      string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	TimeStamp string `protobuf:"bytes,4,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	// contains filtered or unexported fields
}

钱包模块存贮的账户信息

privkey : 账户地址对应的私钥
label :账户地址对应的标签
addr :账户地址
timeStamp :创建账户时的时标

func (*WalletAccountStore) Descriptor deprecated

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

Deprecated: Use WalletAccountStore.ProtoReflect.Descriptor instead.

func (*WalletAccountStore) GetAddr

func (x *WalletAccountStore) GetAddr() string

func (*WalletAccountStore) GetLabel

func (x *WalletAccountStore) GetLabel() string

func (*WalletAccountStore) GetPrivkey

func (x *WalletAccountStore) GetPrivkey() string

func (*WalletAccountStore) GetTimeStamp

func (x *WalletAccountStore) GetTimeStamp() string

func (*WalletAccountStore) ProtoMessage

func (*WalletAccountStore) ProtoMessage()

func (*WalletAccountStore) ProtoReflect added in v1.65.3

func (x *WalletAccountStore) ProtoReflect() protoreflect.Message

func (*WalletAccountStore) Reset

func (x *WalletAccountStore) Reset()

func (*WalletAccountStore) String

func (x *WalletAccountStore) String() string

type WalletAccounts

type WalletAccounts struct {
	Wallets []*WalletAccount `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletAccounts) Descriptor deprecated

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

Deprecated: Use WalletAccounts.ProtoReflect.Descriptor instead.

func (*WalletAccounts) GetWallets

func (x *WalletAccounts) GetWallets() []*WalletAccount

func (*WalletAccounts) ProtoMessage

func (*WalletAccounts) ProtoMessage()

func (*WalletAccounts) ProtoReflect added in v1.65.3

func (x *WalletAccounts) ProtoReflect() protoreflect.Message

func (*WalletAccounts) Reset

func (x *WalletAccounts) Reset()

func (*WalletAccounts) String

func (x *WalletAccounts) String() string

type WalletPwHash

type WalletPwHash struct {
	PwHash  []byte `protobuf:"bytes,1,opt,name=pwHash,proto3" json:"pwHash,omitempty"`
	Randstr string `protobuf:"bytes,2,opt,name=randstr,proto3" json:"randstr,omitempty"`
	// contains filtered or unexported fields
}

钱包模块通过一个随机值对钱包密码加密

pwHash : 对钱包密码和一个随机值组合进行哈希计算
randstr :对钱包密码加密的一个随机值

func (*WalletPwHash) Descriptor deprecated

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

Deprecated: Use WalletPwHash.ProtoReflect.Descriptor instead.

func (*WalletPwHash) GetPwHash

func (x *WalletPwHash) GetPwHash() []byte

func (*WalletPwHash) GetRandstr

func (x *WalletPwHash) GetRandstr() string

func (*WalletPwHash) ProtoMessage

func (*WalletPwHash) ProtoMessage()

func (*WalletPwHash) ProtoReflect added in v1.65.3

func (x *WalletPwHash) ProtoReflect() protoreflect.Message

func (*WalletPwHash) Reset

func (x *WalletPwHash) Reset()

func (*WalletPwHash) String

func (x *WalletPwHash) String() string

type WalletStatus

type WalletStatus struct {
	IsWalletLock bool `protobuf:"varint,1,opt,name=isWalletLock,proto3" json:"isWalletLock,omitempty"`
	IsAutoMining bool `protobuf:"varint,2,opt,name=isAutoMining,proto3" json:"isAutoMining,omitempty"`
	IsHasSeed    bool `protobuf:"varint,3,opt,name=isHasSeed,proto3" json:"isHasSeed,omitempty"`
	IsTicketLock bool `protobuf:"varint,4,opt,name=isTicketLock,proto3" json:"isTicketLock,omitempty"`
	// contains filtered or unexported fields
}

钱包当前的状态

isWalletLock : 钱包是否锁状态,true锁定,false解锁
isAutoMining :钱包是否开启挖矿功能,true开启挖矿,false关闭挖矿
isHasSeed : 钱包是否有种子,true已有,false没有
isTicketLock :钱包挖矿买票锁状态,true锁定,false解锁,只能用于挖矿转账

func (*WalletStatus) Descriptor deprecated

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

Deprecated: Use WalletStatus.ProtoReflect.Descriptor instead.

func (*WalletStatus) GetIsAutoMining

func (x *WalletStatus) GetIsAutoMining() bool

func (*WalletStatus) GetIsHasSeed

func (x *WalletStatus) GetIsHasSeed() bool

func (*WalletStatus) GetIsTicketLock

func (x *WalletStatus) GetIsTicketLock() bool

func (*WalletStatus) GetIsWalletLock

func (x *WalletStatus) GetIsWalletLock() bool

func (*WalletStatus) ProtoMessage

func (*WalletStatus) ProtoMessage()

func (*WalletStatus) ProtoReflect added in v1.65.3

func (x *WalletStatus) ProtoReflect() protoreflect.Message

func (*WalletStatus) Reset

func (x *WalletStatus) Reset()

func (*WalletStatus) String

func (x *WalletStatus) String() string

type WalletTxDetail

type WalletTxDetail struct {
	Tx         *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Receipt    *ReceiptData `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Height     int64        `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Index      int64        `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Blocktime  int64        `protobuf:"varint,5,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	Amount     int64        `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
	Fromaddr   string       `protobuf:"bytes,7,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
	Txhash     []byte       `protobuf:"bytes,8,opt,name=txhash,proto3" json:"txhash,omitempty"`
	ActionName string       `protobuf:"bytes,9,opt,name=actionName,proto3" json:"actionName,omitempty"`
	Payload    []byte       `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

钱包模块存贮的tx交易详细信息

	 tx : tx交易信息
	 receipt :交易收据信息
	 height :交易所在的区块高度
	 index :交易所在区块中的索引
	 blocktime :交易所在区块的时标
	 amount :交易量
	 fromaddr :交易打出地址
	 txhash : 交易对应的哈希值
	 actionName  :交易对应的函数调用
  payload: 保存额外的一些信息,主要是给插件使用

func (*WalletTxDetail) Descriptor deprecated

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

Deprecated: Use WalletTxDetail.ProtoReflect.Descriptor instead.

func (*WalletTxDetail) GetActionName

func (x *WalletTxDetail) GetActionName() string

func (*WalletTxDetail) GetAmount

func (x *WalletTxDetail) GetAmount() int64

func (*WalletTxDetail) GetBlocktime

func (x *WalletTxDetail) GetBlocktime() int64

func (*WalletTxDetail) GetFromaddr

func (x *WalletTxDetail) GetFromaddr() string

func (*WalletTxDetail) GetHeight

func (x *WalletTxDetail) GetHeight() int64

func (*WalletTxDetail) GetIndex

func (x *WalletTxDetail) GetIndex() int64

func (*WalletTxDetail) GetPayload

func (x *WalletTxDetail) GetPayload() []byte

func (*WalletTxDetail) GetReceipt

func (x *WalletTxDetail) GetReceipt() *ReceiptData

func (*WalletTxDetail) GetTx

func (x *WalletTxDetail) GetTx() *Transaction

func (*WalletTxDetail) GetTxhash

func (x *WalletTxDetail) GetTxhash() []byte

func (*WalletTxDetail) ProtoMessage

func (*WalletTxDetail) ProtoMessage()

func (*WalletTxDetail) ProtoReflect added in v1.65.3

func (x *WalletTxDetail) ProtoReflect() protoreflect.Message

func (*WalletTxDetail) Reset

func (x *WalletTxDetail) Reset()

func (*WalletTxDetail) String

func (x *WalletTxDetail) String() string

type WalletTxDetails

type WalletTxDetails struct {
	TxDetails []*WalletTxDetail `protobuf:"bytes,1,rep,name=txDetails,proto3" json:"txDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletTxDetails) Descriptor deprecated

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

Deprecated: Use WalletTxDetails.ProtoReflect.Descriptor instead.

func (*WalletTxDetails) GetTxDetails

func (x *WalletTxDetails) GetTxDetails() []*WalletTxDetail

func (*WalletTxDetails) ProtoMessage

func (*WalletTxDetails) ProtoMessage()

func (*WalletTxDetails) ProtoReflect added in v1.65.3

func (x *WalletTxDetails) ProtoReflect() protoreflect.Message

func (*WalletTxDetails) Reset

func (x *WalletTxDetails) Reset()

func (*WalletTxDetails) String

func (x *WalletTxDetails) String() string

type WalletUnLock

type WalletUnLock struct {
	Passwd         string `protobuf:"bytes,1,opt,name=passwd,proto3" json:"passwd,omitempty"`
	Timeout        int64  `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	WalletOrTicket bool   `protobuf:"varint,3,opt,name=walletOrTicket,proto3" json:"walletOrTicket,omitempty"`
	// contains filtered or unexported fields
}

钱包解锁

passwd : 钱包密码
timeout :钱包解锁时间,0,一直解锁,非0值,超时之后继续锁定
walletOrTicket :解锁整个钱包还是只解锁挖矿买票功能,1只解锁挖矿买票,0解锁整个钱包

func (*WalletUnLock) Descriptor deprecated

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

Deprecated: Use WalletUnLock.ProtoReflect.Descriptor instead.

func (*WalletUnLock) GetPasswd

func (x *WalletUnLock) GetPasswd() string

func (*WalletUnLock) GetTimeout

func (x *WalletUnLock) GetTimeout() int64

func (*WalletUnLock) GetWalletOrTicket

func (x *WalletUnLock) GetWalletOrTicket() bool

func (*WalletUnLock) ProtoMessage

func (*WalletUnLock) ProtoMessage()

func (*WalletUnLock) ProtoReflect added in v1.65.3

func (x *WalletUnLock) ProtoReflect() protoreflect.Message

func (*WalletUnLock) Reset

func (x *WalletUnLock) Reset()

func (*WalletUnLock) String

func (x *WalletUnLock) String() string

Directories

Path Synopsis
Package chaincfg 实现chain33的基础配置相关功能
Package chaincfg 实现chain33的基础配置相关功能
Package jsonpb provides functionality to marshal and unmarshal between a protocol buffer message and JSON.
Package jsonpb provides functionality to marshal and unmarshal between a protocol buffer message and JSON.

Jump to

Keyboard shortcuts

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