protocol

package
v0.0.0-...-0cb4c35 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Limit_name = map[int32]string{
		0:   "UNKNOWN",
		100: "SIGNATURE",
	}
	Limit_value = map[string]int32{
		"UNKNOWN":   0,
		"SIGNATURE": 100,
	}
)

Enum value maps for Limit.

View Source
var (
	Operation_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "CREATE_ACCOUNT",
		2: "ISSUE_ASSET",
		3: "PAY_ASSET",
		4: "SET_METADATA",
		5: "SET_SIGNER_WEIGHT",
		6: "SET_THRESHOLD",
		7: "PAY_COIN",
		8: "LOG",
		9: "SET_PRIVILEGE",
	}
	Operation_Type_value = map[string]int32{
		"UNKNOWN":           0,
		"CREATE_ACCOUNT":    1,
		"ISSUE_ASSET":       2,
		"PAY_ASSET":         3,
		"SET_METADATA":      4,
		"SET_SIGNER_WEIGHT": 5,
		"SET_THRESHOLD":     6,
		"PAY_COIN":          7,
		"LOG":               8,
		"SET_PRIVILEGE":     9,
	}
)

Enum value maps for Operation_Type.

View Source
var (
	Transaction_Limit_name = map[int32]string{
		0:    "UNKNOWN",
		1000: "OPERATIONS",
	}
	Transaction_Limit_value = map[string]int32{
		"UNKNOWN":    0,
		"OPERATIONS": 1000,
	}
)

Enum value maps for Transaction_Limit.

View Source
var (
	Signer_Limit_name = map[int32]string{
		0:   "SIGNER_NONE",
		100: "SIGNER",
	}
	Signer_Limit_value = map[string]int32{
		"SIGNER_NONE": 0,
		"SIGNER":      100,
	}
)

Enum value maps for Signer_Limit.

View Source
var (
	Trigger_TransactionType_name = map[int32]string{
		0: "NORMAL_TRANSACTION",
		1: "CONTRACT_TRANSACTION",
	}
	Trigger_TransactionType_value = map[string]int32{
		"NORMAL_TRANSACTION":   0,
		"CONTRACT_TRANSACTION": 1,
	}
)

Enum value maps for Trigger_TransactionType.

View Source
var (
	Contract_ContractType_name = map[int32]string{
		0: "JAVASCRIPT",
	}
	Contract_ContractType_value = map[string]int32{
		"JAVASCRIPT": 0,
	}
)

Enum value maps for Contract_ContractType.

View Source
var (
	ERRORCODE_name = map[int32]string{
		0:   "ERRCODE_SUCCESS",
		1:   "ERRCODE_INTERNAL_ERROR",
		2:   "ERRCODE_INVALID_PARAMETER",
		3:   "ERRCODE_ALREADY_EXIST",
		4:   "ERRCODE_NOT_EXIST",
		5:   "ERRCODE_TX_TIMEOUT",
		6:   "ERRCODE_ACCESS_DENIED",
		7:   "ERRCODE_MATH_OVERFLOW",
		20:  "ERRCODE_EXPR_CONDITION_RESULT_FALSE",
		21:  "ERRCODE_EXPR_CONDITION_SYNTAX_ERROR",
		90:  "ERRCODE_INVALID_PUBKEY",
		91:  "ERRCODE_INVALID_PRIKEY",
		92:  "ERRCODE_ASSET_INVALID",
		93:  "ERRCODE_INVALID_SIGNATURE",
		94:  "ERRCODE_INVALID_ADDRESS",
		97:  "ERRCODE_MISSING_OPERATIONS",
		98:  "ERRCODE_TOO_MANY_OPERATIONS",
		99:  "ERRCODE_BAD_SEQUENCE",
		100: "ERRCODE_ACCOUNT_LOW_RESERVE",
		101: "ERRCODE_ACCOUNT_SOURCEDEST_EQUAL",
		102: "ERRCODE_ACCOUNT_DEST_EXIST",
		103: "ERRCODE_ACCOUNT_NOT_EXIST",
		104: "ERRCODE_ACCOUNT_ASSET_LOW_RESERVE",
		105: "ERRCODE_ACCOUNT_ASSET_AMOUNT_TOO_LARGE",
		106: "ERRCODE_ACCOUNT_INIT_LOW_RESERVE",
		111: "ERRCODE_FEE_NOT_ENOUGH",
		112: "ERRCODE_FEE_INVALID",
		114: "ERRCODE_OUT_OF_TXCACHE",
		120: "ERRCODE_WEIGHT_NOT_VALID",
		121: "ERRCODE_THRESHOLD_NOT_VALID",
		144: "ERRCODE_INVALID_DATAVERSION",
		146: "ERRCODE_TX_SIZE_TOO_BIG",
		151: "ERRCODE_CONTRACT_EXECUTE_FAIL",
		152: "ERRCODE_CONTRACT_SYNTAX_ERROR",
		153: "ERRCODE_CONTRACT_TOO_MANY_RECURSION",
		154: "ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS",
		155: "ERRCODE_CONTRACT_EXECUTE_EXPIRED",
		160: "ERRCODE_TX_INSERT_QUEUE_FAIL",
	}
	ERRORCODE_value = map[string]int32{
		"ERRCODE_SUCCESS":                        0,
		"ERRCODE_INTERNAL_ERROR":                 1,
		"ERRCODE_INVALID_PARAMETER":              2,
		"ERRCODE_ALREADY_EXIST":                  3,
		"ERRCODE_NOT_EXIST":                      4,
		"ERRCODE_TX_TIMEOUT":                     5,
		"ERRCODE_ACCESS_DENIED":                  6,
		"ERRCODE_MATH_OVERFLOW":                  7,
		"ERRCODE_EXPR_CONDITION_RESULT_FALSE":    20,
		"ERRCODE_EXPR_CONDITION_SYNTAX_ERROR":    21,
		"ERRCODE_INVALID_PUBKEY":                 90,
		"ERRCODE_INVALID_PRIKEY":                 91,
		"ERRCODE_ASSET_INVALID":                  92,
		"ERRCODE_INVALID_SIGNATURE":              93,
		"ERRCODE_INVALID_ADDRESS":                94,
		"ERRCODE_MISSING_OPERATIONS":             97,
		"ERRCODE_TOO_MANY_OPERATIONS":            98,
		"ERRCODE_BAD_SEQUENCE":                   99,
		"ERRCODE_ACCOUNT_LOW_RESERVE":            100,
		"ERRCODE_ACCOUNT_SOURCEDEST_EQUAL":       101,
		"ERRCODE_ACCOUNT_DEST_EXIST":             102,
		"ERRCODE_ACCOUNT_NOT_EXIST":              103,
		"ERRCODE_ACCOUNT_ASSET_LOW_RESERVE":      104,
		"ERRCODE_ACCOUNT_ASSET_AMOUNT_TOO_LARGE": 105,
		"ERRCODE_ACCOUNT_INIT_LOW_RESERVE":       106,
		"ERRCODE_FEE_NOT_ENOUGH":                 111,
		"ERRCODE_FEE_INVALID":                    112,
		"ERRCODE_OUT_OF_TXCACHE":                 114,
		"ERRCODE_WEIGHT_NOT_VALID":               120,
		"ERRCODE_THRESHOLD_NOT_VALID":            121,
		"ERRCODE_INVALID_DATAVERSION":            144,
		"ERRCODE_TX_SIZE_TOO_BIG":                146,
		"ERRCODE_CONTRACT_EXECUTE_FAIL":          151,
		"ERRCODE_CONTRACT_SYNTAX_ERROR":          152,
		"ERRCODE_CONTRACT_TOO_MANY_RECURSION":    153,
		"ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS": 154,
		"ERRCODE_CONTRACT_EXECUTE_EXPIRED":       155,
		"ERRCODE_TX_INSERT_QUEUE_FAIL":           160,
	}
)

Enum value maps for ERRORCODE.

View Source
var (
	PbftMessageType_name = map[int32]string{
		0: "PBFT_TYPE_PREPREPARE",
		1: "PBFT_TYPE_PREPARE",
		2: "PBFT_TYPE_COMMIT",
		3: "PBFT_TYPE_VIEWCHANGE",
		4: "PBFT_TYPE_NEWVIEW",
		5: "PBFT_TYPE_VIEWCHANG_WITH_RAWVALUE",
	}
	PbftMessageType_value = map[string]int32{
		"PBFT_TYPE_PREPREPARE":              0,
		"PBFT_TYPE_PREPARE":                 1,
		"PBFT_TYPE_COMMIT":                  2,
		"PBFT_TYPE_VIEWCHANGE":              3,
		"PBFT_TYPE_NEWVIEW":                 4,
		"PBFT_TYPE_VIEWCHANG_WITH_RAWVALUE": 5,
	}
)

Enum value maps for PbftMessageType.

View Source
var (
	PbftValueType_name = map[int32]string{
		0: "PBFT_VALUE_TX",
		1: "PBFT_VALUE_TXSET",
	}
	PbftValueType_value = map[string]int32{
		"PBFT_VALUE_TX":    0,
		"PBFT_VALUE_TXSET": 1,
	}
)

Enum value maps for PbftValueType.

View Source
var (
	FeeConfig_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "GAS_PRICE",
		2: "BASE_RESERVE",
	}
	FeeConfig_Type_value = map[string]int32{
		"UNKNOWN":      0,
		"GAS_PRICE":    1,
		"BASE_RESERVE": 2,
	}
)

Enum value maps for FeeConfig_Type.

View Source
var (
	CHILDTYPE_name = map[int32]string{
		0: "NONE",
		1: "INNER",
		2: "LEAF",
	}
	CHILDTYPE_value = map[string]int32{
		"NONE":  0,
		"INNER": 1,
		"LEAF":  2,
	}
)

Enum value maps for CHILDTYPE.

View Source
var (
	OVERLAY_MESSAGE_TYPE_name = map[int32]string{
		0: "OVERLAY_MSGTYPE_NONE",
		1: "OVERLAY_MSGTYPE_PING",
		2: "OVERLAY_MSGTYPE_HELLO",
		3: "OVERLAY_MSGTYPE_PEERS",
		4: "OVERLAY_MSGTYPE_TRANSACTION",
		5: "OVERLAY_MSGTYPE_LEDGERS",
		6: "OVERLAY_MSGTYPE_PBFT",
		7: "OVERLAY_MSGTYPE_LEDGER_UPGRADE_NOTIFY",
	}
	OVERLAY_MESSAGE_TYPE_value = map[string]int32{
		"OVERLAY_MSGTYPE_NONE":                  0,
		"OVERLAY_MSGTYPE_PING":                  1,
		"OVERLAY_MSGTYPE_HELLO":                 2,
		"OVERLAY_MSGTYPE_PEERS":                 3,
		"OVERLAY_MSGTYPE_TRANSACTION":           4,
		"OVERLAY_MSGTYPE_LEDGERS":               5,
		"OVERLAY_MSGTYPE_PBFT":                  6,
		"OVERLAY_MSGTYPE_LEDGER_UPGRADE_NOTIFY": 7,
	}
)

Enum value maps for OVERLAY_MESSAGE_TYPE.

View Source
var (
	ChainMessageType_name = map[int32]string{
		0:  "CHAIN_TYPE_NONE",
		10: "CHAIN_HELLO",
		11: "CHAIN_TX_STATUS",
		12: "CHAIN_PEER_ONLINE",
		13: "CHAIN_PEER_OFFLINE",
		14: "CHAIN_PEER_MESSAGE",
		15: "CHAIN_SUBMITTRANSACTION",
		16: "CHAIN_LEDGER_HEADER",
		17: "CHAIN_CONTRACT_LOG",
		18: "CHAIN_LEDGER_TXS",
		19: "CHAIN_SUBSCRIBE_TX",
		20: "CHAIN_TX_ENV_STORE",
	}
	ChainMessageType_value = map[string]int32{
		"CHAIN_TYPE_NONE":         0,
		"CHAIN_HELLO":             10,
		"CHAIN_TX_STATUS":         11,
		"CHAIN_PEER_ONLINE":       12,
		"CHAIN_PEER_OFFLINE":      13,
		"CHAIN_PEER_MESSAGE":      14,
		"CHAIN_SUBMITTRANSACTION": 15,
		"CHAIN_LEDGER_HEADER":     16,
		"CHAIN_CONTRACT_LOG":      17,
		"CHAIN_LEDGER_TXS":        18,
		"CHAIN_SUBSCRIBE_TX":      19,
		"CHAIN_TX_ENV_STORE":      20,
	}
)

Enum value maps for ChainMessageType.

View Source
var (
	Ledgers_SyncCode_name = map[int32]string{
		0: "OK",
		1: "OUT_OF_SYNC",
		2: "OUT_OF_LEDGERS",
		3: "BUSY",
		4: "REFUSE",
		5: "INTERNAL",
	}
	Ledgers_SyncCode_value = map[string]int32{
		"OK":             0,
		"OUT_OF_SYNC":    1,
		"OUT_OF_LEDGERS": 2,
		"BUSY":           3,
		"REFUSE":         4,
		"INTERNAL":       5,
	}
)

Enum value maps for Ledgers_SyncCode.

View Source
var (
	ChainTxStatus_TxStatus_name = map[int32]string{
		0: "UNDEFINED",
		1: "CONFIRMED",
		2: "PENDING",
		3: "COMPLETE",
		4: "FAILURE",
		5: "APPLY_FAILURE",
	}
	ChainTxStatus_TxStatus_value = map[string]int32{
		"UNDEFINED":     0,
		"CONFIRMED":     1,
		"PENDING":       2,
		"COMPLETE":      3,
		"FAILURE":       4,
		"APPLY_FAILURE": 5,
	}
)

Enum value maps for ChainTxStatus_TxStatus.

View Source
var File_chain_proto protoreflect.FileDescriptor
View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_consensus_proto protoreflect.FileDescriptor
View Source
var File_merkeltrie_proto protoreflect.FileDescriptor
View Source
var File_overlay_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {
	Address       string            `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Nonce         int64             `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` //Last transaction seq
	Priv          *AccountPrivilege `protobuf:"bytes,3,opt,name=priv,proto3" json:"priv,omitempty"`
	MetadatasHash []byte            `protobuf:"bytes,4,opt,name=metadatas_hash,json=metadatasHash,proto3" json:"metadatas_hash,omitempty"` //metadatas_hash = merklehash(metadatas);
	AssetsHash    []byte            `protobuf:"bytes,5,opt,name=assets_hash,json=assetsHash,proto3" json:"assets_hash,omitempty"`          //assets_hash = merkelhash(assets)
	Contract      *Contract         `protobuf:"bytes,6,opt,name=contract,proto3" json:"contract,omitempty"`
	Balance       int64             `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAddress

func (x *Account) GetAddress() string

func (*Account) GetAssetsHash

func (x *Account) GetAssetsHash() []byte

func (*Account) GetBalance

func (x *Account) GetBalance() int64

func (*Account) GetContract

func (x *Account) GetContract() *Contract

func (*Account) GetMetadatasHash

func (x *Account) GetMetadatasHash() []byte

func (*Account) GetNonce

func (x *Account) GetNonce() int64

func (*Account) GetPriv

func (x *Account) GetPriv() *AccountPrivilege

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountPrivilege

type AccountPrivilege struct {
	MasterWeight int64             `protobuf:"varint,1,opt,name=master_weight,json=masterWeight,proto3" json:"master_weight,omitempty"`
	Signers      []*Signer         `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
	Thresholds   *AccountThreshold `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountPrivilege) Descriptor deprecated

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

Deprecated: Use AccountPrivilege.ProtoReflect.Descriptor instead.

func (*AccountPrivilege) GetMasterWeight

func (x *AccountPrivilege) GetMasterWeight() int64

func (*AccountPrivilege) GetSigners

func (x *AccountPrivilege) GetSigners() []*Signer

func (*AccountPrivilege) GetThresholds

func (x *AccountPrivilege) GetThresholds() *AccountThreshold

func (*AccountPrivilege) ProtoMessage

func (*AccountPrivilege) ProtoMessage()

func (*AccountPrivilege) ProtoReflect

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

func (*AccountPrivilege) Reset

func (x *AccountPrivilege) Reset()

func (*AccountPrivilege) String

func (x *AccountPrivilege) String() string

type AccountThreshold

type AccountThreshold struct {
	TxThreshold    int64                     `protobuf:"varint,1,opt,name=tx_threshold,json=txThreshold,proto3" json:"tx_threshold,omitempty"` //required, [-1,MAX(INT64)] -1: indicates no setting
	TypeThresholds []*OperationTypeThreshold `protobuf:"bytes,2,rep,name=type_thresholds,json=typeThresholds,proto3" json:"type_thresholds,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountThreshold) Descriptor deprecated

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

Deprecated: Use AccountThreshold.ProtoReflect.Descriptor instead.

func (*AccountThreshold) GetTxThreshold

func (x *AccountThreshold) GetTxThreshold() int64

func (*AccountThreshold) GetTypeThresholds

func (x *AccountThreshold) GetTypeThresholds() []*OperationTypeThreshold

func (*AccountThreshold) ProtoMessage

func (*AccountThreshold) ProtoMessage()

func (*AccountThreshold) ProtoReflect

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

func (*AccountThreshold) Reset

func (x *AccountThreshold) Reset()

func (*AccountThreshold) String

func (x *AccountThreshold) String() string

type Asset

type Asset struct {
	Key    *AssetKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Amount int64     `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

payAsset

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

func (x *Asset) GetKey() *AssetKey

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type AssetKey

type AssetKey struct {
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Code   string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Type   int32  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` //0:not limited ammount
	// contains filtered or unexported fields
}

func (*AssetKey) Descriptor deprecated

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

Deprecated: Use AssetKey.ProtoReflect.Descriptor instead.

func (*AssetKey) GetCode

func (x *AssetKey) GetCode() string

func (*AssetKey) GetIssuer

func (x *AssetKey) GetIssuer() string

func (*AssetKey) GetType

func (x *AssetKey) GetType() int32

func (*AssetKey) ProtoMessage

func (*AssetKey) ProtoMessage()

func (*AssetKey) ProtoReflect

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

func (*AssetKey) Reset

func (x *AssetKey) Reset()

func (*AssetKey) String

func (x *AssetKey) String() string

type AssetStore

type AssetStore struct {
	Key    *AssetKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` //Required
	Amount int64     `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetStore) Descriptor deprecated

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

Deprecated: Use AssetStore.ProtoReflect.Descriptor instead.

func (*AssetStore) GetAmount

func (x *AssetStore) GetAmount() int64

func (*AssetStore) GetKey

func (x *AssetStore) GetKey() *AssetKey

func (*AssetStore) ProtoMessage

func (*AssetStore) ProtoMessage()

func (*AssetStore) ProtoReflect

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

func (*AssetStore) Reset

func (x *AssetStore) Reset()

func (*AssetStore) String

func (x *AssetStore) String() string

type CHILDTYPE

type CHILDTYPE int32
const (
	CHILDTYPE_NONE  CHILDTYPE = 0
	CHILDTYPE_INNER CHILDTYPE = 1
	CHILDTYPE_LEAF  CHILDTYPE = 2
)

func (CHILDTYPE) Descriptor

func (CHILDTYPE) Descriptor() protoreflect.EnumDescriptor

func (CHILDTYPE) Enum

func (x CHILDTYPE) Enum() *CHILDTYPE

func (CHILDTYPE) EnumDescriptor deprecated

func (CHILDTYPE) EnumDescriptor() ([]byte, []int)

Deprecated: Use CHILDTYPE.Descriptor instead.

func (CHILDTYPE) Number

func (x CHILDTYPE) Number() protoreflect.EnumNumber

func (CHILDTYPE) String

func (x CHILDTYPE) String() string

func (CHILDTYPE) Type

type ChainContractLog

type ChainContractLog struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Data      string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainContractLog) Descriptor deprecated

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

Deprecated: Use ChainContractLog.ProtoReflect.Descriptor instead.

func (*ChainContractLog) GetData

func (x *ChainContractLog) GetData() string

func (*ChainContractLog) GetSender

func (x *ChainContractLog) GetSender() string

func (*ChainContractLog) GetTimestamp

func (x *ChainContractLog) GetTimestamp() int64

func (*ChainContractLog) ProtoMessage

func (*ChainContractLog) ProtoMessage()

func (*ChainContractLog) ProtoReflect

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

func (*ChainContractLog) Reset

func (x *ChainContractLog) Reset()

func (*ChainContractLog) String

func (x *ChainContractLog) String() string

type ChainHello

type ChainHello struct {
	ApiList   []ChainMessageType `protobuf:"varint,1,rep,packed,name=api_list,json=apiList,proto3,enum=protocol.ChainMessageType" json:"api_list,omitempty"` //By default, enable all apis
	Timestamp int64              `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Register notification events

func (*ChainHello) Descriptor deprecated

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

Deprecated: Use ChainHello.ProtoReflect.Descriptor instead.

func (*ChainHello) GetApiList

func (x *ChainHello) GetApiList() []ChainMessageType

func (*ChainHello) GetTimestamp

func (x *ChainHello) GetTimestamp() int64

func (*ChainHello) ProtoMessage

func (*ChainHello) ProtoMessage()

func (*ChainHello) ProtoReflect

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

func (*ChainHello) Reset

func (x *ChainHello) Reset()

func (*ChainHello) String

func (x *ChainHello) String() string

type ChainMessageType

type ChainMessageType int32

message interfaces for java

const (
	ChainMessageType_CHAIN_TYPE_NONE         ChainMessageType = 0
	ChainMessageType_CHAIN_HELLO             ChainMessageType = 10 // response with CHAIN_STATUS = 2;
	ChainMessageType_CHAIN_TX_STATUS         ChainMessageType = 11
	ChainMessageType_CHAIN_PEER_ONLINE       ChainMessageType = 12
	ChainMessageType_CHAIN_PEER_OFFLINE      ChainMessageType = 13
	ChainMessageType_CHAIN_PEER_MESSAGE      ChainMessageType = 14
	ChainMessageType_CHAIN_SUBMITTRANSACTION ChainMessageType = 15
	ChainMessageType_CHAIN_LEDGER_HEADER     ChainMessageType = 16 //ZTXChain notifies the client ledger(protocol::LedgerHeader) when closed
	ChainMessageType_CHAIN_CONTRACT_LOG      ChainMessageType = 17 // smart contract log
	ChainMessageType_CHAIN_LEDGER_TXS        ChainMessageType = 18
	ChainMessageType_CHAIN_SUBSCRIBE_TX      ChainMessageType = 19 //response with CHAIN_RESPONSE
	ChainMessageType_CHAIN_TX_ENV_STORE      ChainMessageType = 20
)

func (ChainMessageType) Descriptor

func (ChainMessageType) Enum

func (ChainMessageType) EnumDescriptor deprecated

func (ChainMessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChainMessageType.Descriptor instead.

func (ChainMessageType) Number

func (ChainMessageType) String

func (x ChainMessageType) String() string

func (ChainMessageType) Type

type ChainPeerMessage

type ChainPeerMessage struct {
	SrcPeerAddr  string   `protobuf:"bytes,1,opt,name=src_peer_addr,json=srcPeerAddr,proto3" json:"src_peer_addr,omitempty"`
	DesPeerAddrs []string `protobuf:"bytes,2,rep,name=des_peer_addrs,json=desPeerAddrs,proto3" json:"des_peer_addrs,omitempty"`
	Data         []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainPeerMessage) Descriptor deprecated

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

Deprecated: Use ChainPeerMessage.ProtoReflect.Descriptor instead.

func (*ChainPeerMessage) GetData

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

func (*ChainPeerMessage) GetDesPeerAddrs

func (x *ChainPeerMessage) GetDesPeerAddrs() []string

func (*ChainPeerMessage) GetSrcPeerAddr

func (x *ChainPeerMessage) GetSrcPeerAddr() string

func (*ChainPeerMessage) ProtoMessage

func (*ChainPeerMessage) ProtoMessage()

func (*ChainPeerMessage) ProtoReflect

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

func (*ChainPeerMessage) Reset

func (x *ChainPeerMessage) Reset()

func (*ChainPeerMessage) String

func (x *ChainPeerMessage) String() string

type ChainResponse

type ChainResponse struct {
	ErrorCode int32  `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	ErrorDesc string `protobuf:"bytes,2,opt,name=error_desc,json=errorDesc,proto3" json:"error_desc,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainResponse) Descriptor deprecated

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

Deprecated: Use ChainResponse.ProtoReflect.Descriptor instead.

func (*ChainResponse) GetErrorCode

func (x *ChainResponse) GetErrorCode() int32

func (*ChainResponse) GetErrorDesc

func (x *ChainResponse) GetErrorDesc() string

func (*ChainResponse) ProtoMessage

func (*ChainResponse) ProtoMessage()

func (*ChainResponse) ProtoReflect

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

func (*ChainResponse) Reset

func (x *ChainResponse) Reset()

func (*ChainResponse) String

func (x *ChainResponse) String() string

type ChainStatus

type ChainStatus struct {
	SelfAddr        string `protobuf:"bytes,1,opt,name=self_addr,json=selfAddr,proto3" json:"self_addr,omitempty"`
	LedgerVersion   int64  `protobuf:"varint,2,opt,name=ledger_version,json=ledgerVersion,proto3" json:"ledger_version,omitempty"`
	MonitorVersion  int64  `protobuf:"varint,3,opt,name=monitor_version,json=monitorVersion,proto3" json:"monitor_version,omitempty"`
	ZTXChainVersion string `protobuf:"bytes,4,opt,name=ZTXChain_version,json=ZTXChainVersion,proto3" json:"ZTXChain_version,omitempty"`
	Timestamp       int64  `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	NetworkId       int64  `protobuf:"varint,6,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// contains filtered or unexported fields
}

1.ChainHello response 2.async notification from local

func (*ChainStatus) Descriptor deprecated

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

Deprecated: Use ChainStatus.ProtoReflect.Descriptor instead.

func (*ChainStatus) GetLedgerVersion

func (x *ChainStatus) GetLedgerVersion() int64

func (*ChainStatus) GetMonitorVersion

func (x *ChainStatus) GetMonitorVersion() int64

func (*ChainStatus) GetNetworkId

func (x *ChainStatus) GetNetworkId() int64

func (*ChainStatus) GetSelfAddr

func (x *ChainStatus) GetSelfAddr() string

func (*ChainStatus) GetTimestamp

func (x *ChainStatus) GetTimestamp() int64

func (*ChainStatus) GetZTXChainVersion

func (x *ChainStatus) GetZTXChainVersion() string

func (*ChainStatus) ProtoMessage

func (*ChainStatus) ProtoMessage()

func (*ChainStatus) ProtoReflect

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

func (*ChainStatus) Reset

func (x *ChainStatus) Reset()

func (*ChainStatus) String

func (x *ChainStatus) String() string

type ChainSubscribeTx

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

func (*ChainSubscribeTx) Descriptor deprecated

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

Deprecated: Use ChainSubscribeTx.ProtoReflect.Descriptor instead.

func (*ChainSubscribeTx) GetAddress

func (x *ChainSubscribeTx) GetAddress() []string

func (*ChainSubscribeTx) ProtoMessage

func (*ChainSubscribeTx) ProtoMessage()

func (*ChainSubscribeTx) ProtoReflect

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

func (*ChainSubscribeTx) Reset

func (x *ChainSubscribeTx) Reset()

func (*ChainSubscribeTx) String

func (x *ChainSubscribeTx) String() string

type ChainTxStatus

type ChainTxStatus struct {
	Status           ChainTxStatus_TxStatus `protobuf:"varint,1,opt,name=status,proto3,enum=protocol.ChainTxStatus_TxStatus" json:"status,omitempty"`
	TxHash           string                 `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	SourceAddress    string                 `protobuf:"bytes,3,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	SourceAccountSeq int64                  `protobuf:"varint,4,opt,name=source_account_seq,json=sourceAccountSeq,proto3" json:"source_account_seq,omitempty"`
	LedgerSeq        int64                  `protobuf:"varint,5,opt,name=ledger_seq,json=ledgerSeq,proto3" json:"ledger_seq,omitempty"`                         //on which block this tx records
	NewAccountSeq    int64                  `protobuf:"varint,6,opt,name=new_account_seq,json=newAccountSeq,proto3" json:"new_account_seq,omitempty"`           //new account sequence if COMPLETE
	ErrorCode        ERRORCODE              `protobuf:"varint,7,opt,name=error_code,json=errorCode,proto3,enum=protocol.ERRORCODE" json:"error_code,omitempty"` //use it if FAIL
	ErrorDesc        string                 `protobuf:"bytes,8,opt,name=error_desc,json=errorDesc,proto3" json:"error_desc,omitempty"`                          //error desc
	Timestamp        int64                  `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainTxStatus) Descriptor deprecated

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

Deprecated: Use ChainTxStatus.ProtoReflect.Descriptor instead.

func (*ChainTxStatus) GetErrorCode

func (x *ChainTxStatus) GetErrorCode() ERRORCODE

func (*ChainTxStatus) GetErrorDesc

func (x *ChainTxStatus) GetErrorDesc() string

func (*ChainTxStatus) GetLedgerSeq

func (x *ChainTxStatus) GetLedgerSeq() int64

func (*ChainTxStatus) GetNewAccountSeq

func (x *ChainTxStatus) GetNewAccountSeq() int64

func (*ChainTxStatus) GetSourceAccountSeq

func (x *ChainTxStatus) GetSourceAccountSeq() int64

func (*ChainTxStatus) GetSourceAddress

func (x *ChainTxStatus) GetSourceAddress() string

func (*ChainTxStatus) GetStatus

func (x *ChainTxStatus) GetStatus() ChainTxStatus_TxStatus

func (*ChainTxStatus) GetTimestamp

func (x *ChainTxStatus) GetTimestamp() int64

func (*ChainTxStatus) GetTxHash

func (x *ChainTxStatus) GetTxHash() string

func (*ChainTxStatus) ProtoMessage

func (*ChainTxStatus) ProtoMessage()

func (*ChainTxStatus) ProtoReflect

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

func (*ChainTxStatus) Reset

func (x *ChainTxStatus) Reset()

func (*ChainTxStatus) String

func (x *ChainTxStatus) String() string

type ChainTxStatus_TxStatus

type ChainTxStatus_TxStatus int32
const (
	ChainTxStatus_UNDEFINED     ChainTxStatus_TxStatus = 0
	ChainTxStatus_CONFIRMED     ChainTxStatus_TxStatus = 1 // web server will check tx parameters, signatures etc fist, noitfy CONFIRMED if pass
	ChainTxStatus_PENDING       ChainTxStatus_TxStatus = 2 // master will check futher before put it into pending queue
	ChainTxStatus_COMPLETE      ChainTxStatus_TxStatus = 3 // notify if Tx write ledger successfully
	ChainTxStatus_FAILURE       ChainTxStatus_TxStatus = 4 // notify once failed before broadcast and set error_code
	ChainTxStatus_APPLY_FAILURE ChainTxStatus_TxStatus = 5 // notify once failed after apply and set error_code
)

func (ChainTxStatus_TxStatus) Descriptor

func (ChainTxStatus_TxStatus) Enum

func (ChainTxStatus_TxStatus) EnumDescriptor deprecated

func (ChainTxStatus_TxStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChainTxStatus_TxStatus.Descriptor instead.

func (ChainTxStatus_TxStatus) Number

func (ChainTxStatus_TxStatus) String

func (x ChainTxStatus_TxStatus) String() string

func (ChainTxStatus_TxStatus) Type

type Child

type Child struct {
	Sublocation []byte    `protobuf:"bytes,1,opt,name=sublocation,proto3" json:"sublocation,omitempty"`
	Hash        []byte    `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Childtype   CHILDTYPE `protobuf:"varint,3,opt,name=childtype,proto3,enum=protocol.CHILDTYPE" json:"childtype,omitempty"` //int64 count = 4;
	// contains filtered or unexported fields
}

func (*Child) Descriptor deprecated

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

Deprecated: Use Child.ProtoReflect.Descriptor instead.

func (*Child) GetChildtype

func (x *Child) GetChildtype() CHILDTYPE

func (*Child) GetHash

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

func (*Child) GetSublocation

func (x *Child) GetSublocation() []byte

func (*Child) ProtoMessage

func (*Child) ProtoMessage()

func (*Child) ProtoReflect

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

func (*Child) Reset

func (x *Child) Reset()

func (*Child) String

func (x *Child) String() string

type ConsensusValue

type ConsensusValue struct {
	Txset              *TransactionEnvSet        `protobuf:"bytes,1,opt,name=txset,proto3" json:"txset,omitempty"`
	CloseTime          int64                     `protobuf:"varint,2,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"`
	PreviousProof      []byte                    `protobuf:"bytes,3,opt,name=previous_proof,json=previousProof,proto3" json:"previous_proof,omitempty"`
	LedgerSeq          int64                     `protobuf:"varint,4,opt,name=ledger_seq,json=ledgerSeq,proto3" json:"ledger_seq,omitempty"`
	PreviousLedgerHash []byte                    `protobuf:"bytes,5,opt,name=previous_ledger_hash,json=previousLedgerHash,proto3" json:"previous_ledger_hash,omitempty"`
	LedgerUpgrade      *LedgerUpgrade            `protobuf:"bytes,6,opt,name=ledger_upgrade,json=ledgerUpgrade,proto3" json:"ledger_upgrade,omitempty"`
	Validation         *ConsensusValueValidation `protobuf:"bytes,7,opt,name=validation,proto3" json:"validation,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsensusValue) Descriptor deprecated

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

Deprecated: Use ConsensusValue.ProtoReflect.Descriptor instead.

func (*ConsensusValue) GetCloseTime

func (x *ConsensusValue) GetCloseTime() int64

func (*ConsensusValue) GetLedgerSeq

func (x *ConsensusValue) GetLedgerSeq() int64

func (*ConsensusValue) GetLedgerUpgrade

func (x *ConsensusValue) GetLedgerUpgrade() *LedgerUpgrade

func (*ConsensusValue) GetPreviousLedgerHash

func (x *ConsensusValue) GetPreviousLedgerHash() []byte

func (*ConsensusValue) GetPreviousProof

func (x *ConsensusValue) GetPreviousProof() []byte

func (*ConsensusValue) GetTxset

func (x *ConsensusValue) GetTxset() *TransactionEnvSet

func (*ConsensusValue) GetValidation

func (x *ConsensusValue) GetValidation() *ConsensusValueValidation

func (*ConsensusValue) ProtoMessage

func (*ConsensusValue) ProtoMessage()

func (*ConsensusValue) ProtoReflect

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

func (*ConsensusValue) Reset

func (x *ConsensusValue) Reset()

func (*ConsensusValue) String

func (x *ConsensusValue) String() string

type ConsensusValueValidation

type ConsensusValueValidation struct {
	ExpireTxIds []int32 `protobuf:"varint,1,rep,packed,name=expire_tx_ids,json=expireTxIds,proto3" json:"expire_tx_ids,omitempty"` //Contract execution expired
	ErrorTxIds  []int32 `protobuf:"varint,2,rep,packed,name=error_tx_ids,json=errorTxIds,proto3" json:"error_tx_ids,omitempty"`    //May contain other checks
	// contains filtered or unexported fields
}

func (*ConsensusValueValidation) Descriptor deprecated

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

Deprecated: Use ConsensusValueValidation.ProtoReflect.Descriptor instead.

func (*ConsensusValueValidation) GetErrorTxIds

func (x *ConsensusValueValidation) GetErrorTxIds() []int32

func (*ConsensusValueValidation) GetExpireTxIds

func (x *ConsensusValueValidation) GetExpireTxIds() []int32

func (*ConsensusValueValidation) ProtoMessage

func (*ConsensusValueValidation) ProtoMessage()

func (*ConsensusValueValidation) ProtoReflect

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

func (*ConsensusValueValidation) Reset

func (x *ConsensusValueValidation) Reset()

func (*ConsensusValueValidation) String

func (x *ConsensusValueValidation) String() string

type Contract

type Contract struct {
	Type    Contract_ContractType `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.Contract_ContractType" json:"type,omitempty"`
	Payload string                `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Contract) Descriptor deprecated

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

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetPayload

func (x *Contract) GetPayload() string

func (*Contract) GetType

func (x *Contract) GetType() Contract_ContractType

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

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

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type Contract_ContractType

type Contract_ContractType int32
const (
	Contract_JAVASCRIPT Contract_ContractType = 0
)

func (Contract_ContractType) Descriptor

func (Contract_ContractType) Enum

func (Contract_ContractType) EnumDescriptor deprecated

func (Contract_ContractType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Contract_ContractType.Descriptor instead.

func (Contract_ContractType) Number

func (Contract_ContractType) String

func (x Contract_ContractType) String() string

func (Contract_ContractType) Type

type DontHave

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

for dont have

func (*DontHave) Descriptor deprecated

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

Deprecated: Use DontHave.ProtoReflect.Descriptor instead.

func (*DontHave) GetHash

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

func (*DontHave) GetType

func (x *DontHave) GetType() int64

func (*DontHave) ProtoMessage

func (*DontHave) ProtoMessage()

func (*DontHave) ProtoReflect

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

func (*DontHave) Reset

func (x *DontHave) Reset()

func (*DontHave) String

func (x *DontHave) String() string

type ERRORCODE

type ERRORCODE int32
const (
	ERRORCODE_ERRCODE_SUCCESS                        ERRORCODE = 0
	ERRORCODE_ERRCODE_INTERNAL_ERROR                 ERRORCODE = 1
	ERRORCODE_ERRCODE_INVALID_PARAMETER              ERRORCODE = 2
	ERRORCODE_ERRCODE_ALREADY_EXIST                  ERRORCODE = 3
	ERRORCODE_ERRCODE_NOT_EXIST                      ERRORCODE = 4
	ERRORCODE_ERRCODE_TX_TIMEOUT                     ERRORCODE = 5
	ERRORCODE_ERRCODE_ACCESS_DENIED                  ERRORCODE = 6
	ERRORCODE_ERRCODE_MATH_OVERFLOW                  ERRORCODE = 7
	ERRORCODE_ERRCODE_EXPR_CONDITION_RESULT_FALSE    ERRORCODE = 20
	ERRORCODE_ERRCODE_EXPR_CONDITION_SYNTAX_ERROR    ERRORCODE = 21
	ERRORCODE_ERRCODE_INVALID_PUBKEY                 ERRORCODE = 90 // UNUSED
	ERRORCODE_ERRCODE_INVALID_PRIKEY                 ERRORCODE = 91
	ERRORCODE_ERRCODE_ASSET_INVALID                  ERRORCODE = 92
	ERRORCODE_ERRCODE_INVALID_SIGNATURE              ERRORCODE = 93
	ERRORCODE_ERRCODE_INVALID_ADDRESS                ERRORCODE = 94
	ERRORCODE_ERRCODE_MISSING_OPERATIONS             ERRORCODE = 97
	ERRORCODE_ERRCODE_TOO_MANY_OPERATIONS            ERRORCODE = 98
	ERRORCODE_ERRCODE_BAD_SEQUENCE                   ERRORCODE = 99
	ERRORCODE_ERRCODE_ACCOUNT_LOW_RESERVE            ERRORCODE = 100 //ZTXChain LOW RESERVE
	ERRORCODE_ERRCODE_ACCOUNT_SOURCEDEST_EQUAL       ERRORCODE = 101
	ERRORCODE_ERRCODE_ACCOUNT_DEST_EXIST             ERRORCODE = 102
	ERRORCODE_ERRCODE_ACCOUNT_NOT_EXIST              ERRORCODE = 103
	ERRORCODE_ERRCODE_ACCOUNT_ASSET_LOW_RESERVE      ERRORCODE = 104 //IOU LOW RESERVE
	ERRORCODE_ERRCODE_ACCOUNT_ASSET_AMOUNT_TOO_LARGE ERRORCODE = 105
	ERRORCODE_ERRCODE_ACCOUNT_INIT_LOW_RESERVE       ERRORCODE = 106
	ERRORCODE_ERRCODE_FEE_NOT_ENOUGH                 ERRORCODE = 111
	ERRORCODE_ERRCODE_FEE_INVALID                    ERRORCODE = 112
	ERRORCODE_ERRCODE_OUT_OF_TXCACHE                 ERRORCODE = 114
	ERRORCODE_ERRCODE_WEIGHT_NOT_VALID               ERRORCODE = 120
	ERRORCODE_ERRCODE_THRESHOLD_NOT_VALID            ERRORCODE = 121
	ERRORCODE_ERRCODE_INVALID_DATAVERSION            ERRORCODE = 144 //metadata version error
	ERRORCODE_ERRCODE_TX_SIZE_TOO_BIG                ERRORCODE = 146
	ERRORCODE_ERRCODE_CONTRACT_EXECUTE_FAIL          ERRORCODE = 151
	ERRORCODE_ERRCODE_CONTRACT_SYNTAX_ERROR          ERRORCODE = 152
	ERRORCODE_ERRCODE_CONTRACT_TOO_MANY_RECURSION    ERRORCODE = 153
	ERRORCODE_ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS ERRORCODE = 154
	ERRORCODE_ERRCODE_CONTRACT_EXECUTE_EXPIRED       ERRORCODE = 155
	ERRORCODE_ERRCODE_TX_INSERT_QUEUE_FAIL           ERRORCODE = 160
)

func (ERRORCODE) Descriptor

func (ERRORCODE) Descriptor() protoreflect.EnumDescriptor

func (ERRORCODE) Enum

func (x ERRORCODE) Enum() *ERRORCODE

func (ERRORCODE) EnumDescriptor deprecated

func (ERRORCODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use ERRORCODE.Descriptor instead.

func (ERRORCODE) Number

func (x ERRORCODE) Number() protoreflect.EnumNumber

func (ERRORCODE) String

func (x ERRORCODE) String() string

func (ERRORCODE) Type

type EntryList

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

for key value db storage

func (*EntryList) Descriptor deprecated

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

Deprecated: Use EntryList.ProtoReflect.Descriptor instead.

func (*EntryList) GetEntry

func (x *EntryList) GetEntry() [][]byte

func (*EntryList) ProtoMessage

func (*EntryList) ProtoMessage()

func (*EntryList) ProtoReflect

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

func (*EntryList) Reset

func (x *EntryList) Reset()

func (*EntryList) String

func (x *EntryList) String() string

type FeeConfig

type FeeConfig struct {
	GasPrice    int64 `protobuf:"varint,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	BaseReserve int64 `protobuf:"varint,2,opt,name=base_reserve,json=baseReserve,proto3" json:"base_reserve,omitempty"`
	// contains filtered or unexported fields
}

func (*FeeConfig) Descriptor deprecated

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

Deprecated: Use FeeConfig.ProtoReflect.Descriptor instead.

func (*FeeConfig) GetBaseReserve

func (x *FeeConfig) GetBaseReserve() int64

func (*FeeConfig) GetGasPrice

func (x *FeeConfig) GetGasPrice() int64

func (*FeeConfig) ProtoMessage

func (*FeeConfig) ProtoMessage()

func (*FeeConfig) ProtoReflect

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

func (*FeeConfig) Reset

func (x *FeeConfig) Reset()

func (*FeeConfig) String

func (x *FeeConfig) String() string

type FeeConfig_Type

type FeeConfig_Type int32
const (
	FeeConfig_UNKNOWN      FeeConfig_Type = 0
	FeeConfig_GAS_PRICE    FeeConfig_Type = 1
	FeeConfig_BASE_RESERVE FeeConfig_Type = 2
)

func (FeeConfig_Type) Descriptor

func (FeeConfig_Type) Enum

func (x FeeConfig_Type) Enum() *FeeConfig_Type

func (FeeConfig_Type) EnumDescriptor deprecated

func (FeeConfig_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FeeConfig_Type.Descriptor instead.

func (FeeConfig_Type) Number

func (FeeConfig_Type) String

func (x FeeConfig_Type) String() string

func (FeeConfig_Type) Type

type GetLedgers

type GetLedgers struct {
	Begin     int64 `protobuf:"varint,1,opt,name=begin,proto3" json:"begin,omitempty"`
	End       int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ChainId   int64 `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

for getledgers

func (*GetLedgers) Descriptor deprecated

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

Deprecated: Use GetLedgers.ProtoReflect.Descriptor instead.

func (*GetLedgers) GetBegin

func (x *GetLedgers) GetBegin() int64

func (*GetLedgers) GetChainId

func (x *GetLedgers) GetChainId() int64

func (*GetLedgers) GetEnd

func (x *GetLedgers) GetEnd() int64

func (*GetLedgers) GetTimestamp

func (x *GetLedgers) GetTimestamp() int64

func (*GetLedgers) ProtoMessage

func (*GetLedgers) ProtoMessage()

func (*GetLedgers) ProtoReflect

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

func (*GetLedgers) Reset

func (x *GetLedgers) Reset()

func (*GetLedgers) String

func (x *GetLedgers) String() string

type Hello

type Hello struct {
	NetworkId       int64  `protobuf:"varint,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	LedgerVersion   int64  `protobuf:"varint,2,opt,name=ledger_version,json=ledgerVersion,proto3" json:"ledger_version,omitempty"`
	OverlayVersion  int64  `protobuf:"varint,3,opt,name=overlay_version,json=overlayVersion,proto3" json:"overlay_version,omitempty"`
	ZTXChainVersion string `protobuf:"bytes,4,opt,name=ZTXChain_version,json=ZTXChainVersion,proto3" json:"ZTXChain_version,omitempty"`
	ListeningPort   int64  `protobuf:"varint,5,opt,name=listening_port,json=listeningPort,proto3" json:"listening_port,omitempty"`
	NodeAddress     string `protobuf:"bytes,6,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	NodeRand        string `protobuf:"bytes,7,opt,name=node_rand,json=nodeRand,proto3" json:"node_rand,omitempty"`
	License         string `protobuf:"bytes,8,opt,name=license,proto3" json:"license,omitempty"`
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetLedgerVersion

func (x *Hello) GetLedgerVersion() int64

func (*Hello) GetLicense

func (x *Hello) GetLicense() string

func (*Hello) GetListeningPort

func (x *Hello) GetListeningPort() int64

func (*Hello) GetNetworkId

func (x *Hello) GetNetworkId() int64

func (*Hello) GetNodeAddress

func (x *Hello) GetNodeAddress() string

func (*Hello) GetNodeRand

func (x *Hello) GetNodeRand() string

func (*Hello) GetOverlayVersion

func (x *Hello) GetOverlayVersion() int64

func (*Hello) GetZTXChainVersion

func (x *Hello) GetZTXChainVersion() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

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

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type HelloResponse

type HelloResponse struct {
	ErrorCode ERRORCODE `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=protocol.ERRORCODE" json:"error_code,omitempty"`
	ErrorDesc string    `protobuf:"bytes,2,opt,name=error_desc,json=errorDesc,proto3" json:"error_desc,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetErrorCode

func (x *HelloResponse) GetErrorCode() ERRORCODE

func (*HelloResponse) GetErrorDesc

func (x *HelloResponse) GetErrorDesc() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type KeyPair

type KeyPair 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"`
	Version int64  `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyPair) Descriptor deprecated

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

Deprecated: Use KeyPair.ProtoReflect.Descriptor instead.

func (*KeyPair) GetKey

func (x *KeyPair) GetKey() string

func (*KeyPair) GetValue

func (x *KeyPair) GetValue() string

func (*KeyPair) GetVersion

func (x *KeyPair) GetVersion() int64

func (*KeyPair) ProtoMessage

func (*KeyPair) ProtoMessage()

func (*KeyPair) ProtoReflect

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

func (*KeyPair) Reset

func (x *KeyPair) Reset()

func (*KeyPair) String

func (x *KeyPair) String() string

type Ledger

type Ledger struct {
	Header          *LedgerHeader     `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	TransactionEnvs []*TransactionEnv `protobuf:"bytes,2,rep,name=transaction_envs,json=transactionEnvs,proto3" json:"transaction_envs,omitempty"`
	// contains filtered or unexported fields
}

func (*Ledger) Descriptor deprecated

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

Deprecated: Use Ledger.ProtoReflect.Descriptor instead.

func (*Ledger) GetHeader

func (x *Ledger) GetHeader() *LedgerHeader

func (*Ledger) GetTransactionEnvs

func (x *Ledger) GetTransactionEnvs() []*TransactionEnv

func (*Ledger) ProtoMessage

func (*Ledger) ProtoMessage()

func (*Ledger) ProtoReflect

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

func (*Ledger) Reset

func (x *Ledger) Reset()

func (*Ledger) String

func (x *Ledger) String() string

type LedgerHeader

type LedgerHeader struct {
	Seq                int64  `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	Hash               []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	PreviousHash       []byte `protobuf:"bytes,3,opt,name=previous_hash,json=previousHash,proto3" json:"previous_hash,omitempty"`
	AccountTreeHash    []byte `protobuf:"bytes,4,opt,name=account_tree_hash,json=accountTreeHash,proto3" json:"account_tree_hash,omitempty"`
	CloseTime          int64  `protobuf:"varint,5,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"`
	ConsensusValueHash []byte `protobuf:"bytes,6,opt,name=consensus_value_hash,json=consensusValueHash,proto3" json:"consensus_value_hash,omitempty"`
	Version            int64  `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"`
	TxCount            int64  `protobuf:"varint,8,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"`
	ValidatorsHash     []byte `protobuf:"bytes,9,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"` // hash
	Reserve            string `protobuf:"bytes,10,opt,name=reserve,proto3" json:"reserve,omitempty"`
	FeesHash           []byte `protobuf:"bytes,11,opt,name=fees_hash,json=feesHash,proto3" json:"fees_hash,omitempty"`
	ChainId            int64  `protobuf:"varint,12,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LedgerHeader) Descriptor deprecated

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

Deprecated: Use LedgerHeader.ProtoReflect.Descriptor instead.

func (*LedgerHeader) GetAccountTreeHash

func (x *LedgerHeader) GetAccountTreeHash() []byte

func (*LedgerHeader) GetChainId

func (x *LedgerHeader) GetChainId() int64

func (*LedgerHeader) GetCloseTime

func (x *LedgerHeader) GetCloseTime() int64

func (*LedgerHeader) GetConsensusValueHash

func (x *LedgerHeader) GetConsensusValueHash() []byte

func (*LedgerHeader) GetFeesHash

func (x *LedgerHeader) GetFeesHash() []byte

func (*LedgerHeader) GetHash

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

func (*LedgerHeader) GetPreviousHash

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

func (*LedgerHeader) GetReserve

func (x *LedgerHeader) GetReserve() string

func (*LedgerHeader) GetSeq

func (x *LedgerHeader) GetSeq() int64

func (*LedgerHeader) GetTxCount

func (x *LedgerHeader) GetTxCount() int64

func (*LedgerHeader) GetValidatorsHash

func (x *LedgerHeader) GetValidatorsHash() []byte

func (*LedgerHeader) GetVersion

func (x *LedgerHeader) GetVersion() int64

func (*LedgerHeader) ProtoMessage

func (*LedgerHeader) ProtoMessage()

func (*LedgerHeader) ProtoReflect

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

func (*LedgerHeader) Reset

func (x *LedgerHeader) Reset()

func (*LedgerHeader) String

func (x *LedgerHeader) String() string

type LedgerTxs

type LedgerTxs struct {
	Header       *LedgerHeader           `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Txs          []*TransactionEnvResult `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	LedgerLength int64                   `protobuf:"varint,3,opt,name=ledger_length,json=ledgerLength,proto3" json:"ledger_length,omitempty"`
	// contains filtered or unexported fields
}

func (*LedgerTxs) Descriptor deprecated

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

Deprecated: Use LedgerTxs.ProtoReflect.Descriptor instead.

func (*LedgerTxs) GetHeader

func (x *LedgerTxs) GetHeader() *LedgerHeader

func (*LedgerTxs) GetLedgerLength

func (x *LedgerTxs) GetLedgerLength() int64

func (*LedgerTxs) GetTxs

func (x *LedgerTxs) GetTxs() []*TransactionEnvResult

func (*LedgerTxs) ProtoMessage

func (*LedgerTxs) ProtoMessage()

func (*LedgerTxs) ProtoReflect

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

func (*LedgerTxs) Reset

func (x *LedgerTxs) Reset()

func (*LedgerTxs) String

func (x *LedgerTxs) String() string

type LedgerUpgrade

type LedgerUpgrade struct {
	NewLedgerVersion int64    `protobuf:"varint,1,opt,name=new_ledger_version,json=newLedgerVersion,proto3" json:"new_ledger_version,omitempty"` //will be processed as required at verion 2.1.0.0
	NewValidatorList []string `protobuf:"bytes,2,rep,name=new_validator_list,json=newValidatorList,proto3" json:"new_validator_list,omitempty"`  //for hardfork
	DelValidators    []string `protobuf:"bytes,3,rep,name=del_validators,json=delValidators,proto3" json:"del_validators,omitempty"`             //for yinuo v3
	ChainId          int64    `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LedgerUpgrade) Descriptor deprecated

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

Deprecated: Use LedgerUpgrade.ProtoReflect.Descriptor instead.

func (*LedgerUpgrade) GetChainId

func (x *LedgerUpgrade) GetChainId() int64

func (*LedgerUpgrade) GetDelValidators

func (x *LedgerUpgrade) GetDelValidators() []string

func (*LedgerUpgrade) GetNewLedgerVersion

func (x *LedgerUpgrade) GetNewLedgerVersion() int64

func (*LedgerUpgrade) GetNewValidatorList

func (x *LedgerUpgrade) GetNewValidatorList() []string

func (*LedgerUpgrade) ProtoMessage

func (*LedgerUpgrade) ProtoMessage()

func (*LedgerUpgrade) ProtoReflect

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

func (*LedgerUpgrade) Reset

func (x *LedgerUpgrade) Reset()

func (*LedgerUpgrade) String

func (x *LedgerUpgrade) String() string

type LedgerUpgradeNotify

type LedgerUpgradeNotify struct {
	Nonce     int64          `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` //for broadcast
	Upgrade   *LedgerUpgrade `protobuf:"bytes,2,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
	Signature *Signature     `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` //consensus sig
	// contains filtered or unexported fields
}

for ledger upgrade

func (*LedgerUpgradeNotify) Descriptor deprecated

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

Deprecated: Use LedgerUpgradeNotify.ProtoReflect.Descriptor instead.

func (*LedgerUpgradeNotify) GetNonce

func (x *LedgerUpgradeNotify) GetNonce() int64

func (*LedgerUpgradeNotify) GetSignature

func (x *LedgerUpgradeNotify) GetSignature() *Signature

func (*LedgerUpgradeNotify) GetUpgrade

func (x *LedgerUpgradeNotify) GetUpgrade() *LedgerUpgrade

func (*LedgerUpgradeNotify) ProtoMessage

func (*LedgerUpgradeNotify) ProtoMessage()

func (*LedgerUpgradeNotify) ProtoReflect

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

func (*LedgerUpgradeNotify) Reset

func (x *LedgerUpgradeNotify) Reset()

func (*LedgerUpgradeNotify) String

func (x *LedgerUpgradeNotify) String() string

type Ledgers

type Ledgers struct {
	Values   []*ConsensusValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	SyncCode Ledgers_SyncCode  `protobuf:"varint,2,opt,name=sync_code,json=syncCode,proto3,enum=protocol.Ledgers_SyncCode" json:"sync_code,omitempty"`
	MaxSeq   int64             `protobuf:"varint,3,opt,name=max_seq,json=maxSeq,proto3" json:"max_seq,omitempty"`
	Proof    []byte            `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"`
	ChainId  int64             `protobuf:"varint,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

for ledgers

func (*Ledgers) Descriptor deprecated

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

Deprecated: Use Ledgers.ProtoReflect.Descriptor instead.

func (*Ledgers) GetChainId

func (x *Ledgers) GetChainId() int64

func (*Ledgers) GetMaxSeq

func (x *Ledgers) GetMaxSeq() int64

func (*Ledgers) GetProof

func (x *Ledgers) GetProof() []byte

func (*Ledgers) GetSyncCode

func (x *Ledgers) GetSyncCode() Ledgers_SyncCode

func (*Ledgers) GetValues

func (x *Ledgers) GetValues() []*ConsensusValue

func (*Ledgers) ProtoMessage

func (*Ledgers) ProtoMessage()

func (*Ledgers) ProtoReflect

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

func (*Ledgers) Reset

func (x *Ledgers) Reset()

func (*Ledgers) String

func (x *Ledgers) String() string

type Ledgers_SyncCode

type Ledgers_SyncCode int32
const (
	Ledgers_OK             Ledgers_SyncCode = 0 //Success
	Ledgers_OUT_OF_SYNC    Ledgers_SyncCode = 1 //The node itself is not in sync status
	Ledgers_OUT_OF_LEDGERS Ledgers_SyncCode = 2 //Too many requested ledgers
	Ledgers_BUSY           Ledgers_SyncCode = 3 //This node is occupied
	Ledgers_REFUSE         Ledgers_SyncCode = 4 //The node itself is not allow sync
	Ledgers_INTERNAL       Ledgers_SyncCode = 5 //Inner error
)

func (Ledgers_SyncCode) Descriptor

func (Ledgers_SyncCode) Enum

func (Ledgers_SyncCode) EnumDescriptor deprecated

func (Ledgers_SyncCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Ledgers_SyncCode.Descriptor instead.

func (Ledgers_SyncCode) Number

func (Ledgers_SyncCode) String

func (x Ledgers_SyncCode) String() string

func (Ledgers_SyncCode) Type

type Limit

type Limit int32
const (
	Limit_UNKNOWN   Limit = 0
	Limit_SIGNATURE Limit = 100
)

func (Limit) Descriptor

func (Limit) Descriptor() protoreflect.EnumDescriptor

func (Limit) Enum

func (x Limit) Enum() *Limit

func (Limit) EnumDescriptor deprecated

func (Limit) EnumDescriptor() ([]byte, []int)

Deprecated: Use Limit.Descriptor instead.

func (Limit) Number

func (x Limit) Number() protoreflect.EnumNumber

func (Limit) String

func (x Limit) String() string

func (Limit) Type

func (Limit) Type() protoreflect.EnumType

type Node

type Node struct {
	Children []*Child `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetChildren

func (x *Node) GetChildren() []*Child

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type OVERLAY_MESSAGE_TYPE

type OVERLAY_MESSAGE_TYPE int32
const (
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_NONE                  OVERLAY_MESSAGE_TYPE = 0
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_PING                  OVERLAY_MESSAGE_TYPE = 1
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_HELLO                 OVERLAY_MESSAGE_TYPE = 2
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_PEERS                 OVERLAY_MESSAGE_TYPE = 3
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_TRANSACTION           OVERLAY_MESSAGE_TYPE = 4
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_LEDGERS               OVERLAY_MESSAGE_TYPE = 5
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_PBFT                  OVERLAY_MESSAGE_TYPE = 6
	OVERLAY_MESSAGE_TYPE_OVERLAY_MSGTYPE_LEDGER_UPGRADE_NOTIFY OVERLAY_MESSAGE_TYPE = 7 //Broadcast the ledger upgrade status
)

func (OVERLAY_MESSAGE_TYPE) Descriptor

func (OVERLAY_MESSAGE_TYPE) Enum

func (OVERLAY_MESSAGE_TYPE) EnumDescriptor deprecated

func (OVERLAY_MESSAGE_TYPE) EnumDescriptor() ([]byte, []int)

Deprecated: Use OVERLAY_MESSAGE_TYPE.Descriptor instead.

func (OVERLAY_MESSAGE_TYPE) Number

func (OVERLAY_MESSAGE_TYPE) String

func (x OVERLAY_MESSAGE_TYPE) String() string

func (OVERLAY_MESSAGE_TYPE) Type

type Operation

type Operation struct {
	Type          Operation_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.Operation_Type" json:"type,omitempty"`
	SourceAddress string         `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	Metadata      []byte         `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	ExprCondition string         `protobuf:"bytes,4,opt,name=expr_condition,json=exprCondition,proto3" json:"expr_condition,omitempty"`
	//
	CreateAccount   *OperationCreateAccount   `protobuf:"bytes,5,opt,name=create_account,json=createAccount,proto3" json:"create_account,omitempty"`
	IssueAsset      *OperationIssueAsset      `protobuf:"bytes,6,opt,name=issue_asset,json=issueAsset,proto3" json:"issue_asset,omitempty"`
	PayAsset        *OperationPayAsset        `protobuf:"bytes,7,opt,name=pay_asset,json=payAsset,proto3" json:"pay_asset,omitempty"`
	SetMetadata     *OperationSetMetadata     `protobuf:"bytes,9,opt,name=set_metadata,json=setMetadata,proto3" json:"set_metadata,omitempty"`
	SetSignerWeight *OperationSetSignerWeight `protobuf:"bytes,10,opt,name=set_signer_weight,json=setSignerWeight,proto3" json:"set_signer_weight,omitempty"`
	SetThreshold    *OperationSetThreshold    `protobuf:"bytes,11,opt,name=set_threshold,json=setThreshold,proto3" json:"set_threshold,omitempty"`
	PayCoin         *OperationPayCoin         `protobuf:"bytes,12,opt,name=pay_coin,json=payCoin,proto3" json:"pay_coin,omitempty"`
	Log             *OperationLog             `protobuf:"bytes,13,opt,name=log,proto3" json:"log,omitempty"`
	SetPrivilege    *OperationSetPrivilege    `protobuf:"bytes,14,opt,name=set_privilege,json=setPrivilege,proto3" json:"set_privilege,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetCreateAccount

func (x *Operation) GetCreateAccount() *OperationCreateAccount

func (*Operation) GetExprCondition

func (x *Operation) GetExprCondition() string

func (*Operation) GetIssueAsset

func (x *Operation) GetIssueAsset() *OperationIssueAsset

func (*Operation) GetLog

func (x *Operation) GetLog() *OperationLog

func (*Operation) GetMetadata

func (x *Operation) GetMetadata() []byte

func (*Operation) GetPayAsset

func (x *Operation) GetPayAsset() *OperationPayAsset

func (*Operation) GetPayCoin

func (x *Operation) GetPayCoin() *OperationPayCoin

func (*Operation) GetSetMetadata

func (x *Operation) GetSetMetadata() *OperationSetMetadata

func (*Operation) GetSetPrivilege

func (x *Operation) GetSetPrivilege() *OperationSetPrivilege

func (*Operation) GetSetSignerWeight

func (x *Operation) GetSetSignerWeight() *OperationSetSignerWeight

func (*Operation) GetSetThreshold

func (x *Operation) GetSetThreshold() *OperationSetThreshold

func (*Operation) GetSourceAddress

func (x *Operation) GetSourceAddress() string

func (*Operation) GetType

func (x *Operation) GetType() Operation_Type

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

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

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type OperationCreateAccount

type OperationCreateAccount struct {
	DestAddress string            `protobuf:"bytes,1,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
	Contract    *Contract         `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	Priv        *AccountPrivilege `protobuf:"bytes,3,opt,name=priv,proto3" json:"priv,omitempty"`
	Metadatas   []*KeyPair        `protobuf:"bytes,4,rep,name=metadatas,proto3" json:"metadatas,omitempty"`
	InitBalance int64             `protobuf:"varint,5,opt,name=init_balance,json=initBalance,proto3" json:"init_balance,omitempty"`
	InitInput   string            `protobuf:"bytes,6,opt,name=init_input,json=initInput,proto3" json:"init_input,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationCreateAccount) Descriptor deprecated

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

Deprecated: Use OperationCreateAccount.ProtoReflect.Descriptor instead.

func (*OperationCreateAccount) GetContract

func (x *OperationCreateAccount) GetContract() *Contract

func (*OperationCreateAccount) GetDestAddress

func (x *OperationCreateAccount) GetDestAddress() string

func (*OperationCreateAccount) GetInitBalance

func (x *OperationCreateAccount) GetInitBalance() int64

func (*OperationCreateAccount) GetInitInput

func (x *OperationCreateAccount) GetInitInput() string

func (*OperationCreateAccount) GetMetadatas

func (x *OperationCreateAccount) GetMetadatas() []*KeyPair

func (*OperationCreateAccount) GetPriv

func (*OperationCreateAccount) ProtoMessage

func (*OperationCreateAccount) ProtoMessage()

func (*OperationCreateAccount) ProtoReflect

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

func (*OperationCreateAccount) Reset

func (x *OperationCreateAccount) Reset()

func (*OperationCreateAccount) String

func (x *OperationCreateAccount) String() string

type OperationIssueAsset

type OperationIssueAsset struct {
	Code   string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Amount int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationIssueAsset) Descriptor deprecated

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

Deprecated: Use OperationIssueAsset.ProtoReflect.Descriptor instead.

func (*OperationIssueAsset) GetAmount

func (x *OperationIssueAsset) GetAmount() int64

func (*OperationIssueAsset) GetCode

func (x *OperationIssueAsset) GetCode() string

func (*OperationIssueAsset) ProtoMessage

func (*OperationIssueAsset) ProtoMessage()

func (*OperationIssueAsset) ProtoReflect

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

func (*OperationIssueAsset) Reset

func (x *OperationIssueAsset) Reset()

func (*OperationIssueAsset) String

func (x *OperationIssueAsset) String() string

type OperationLog

type OperationLog struct {
	Topic string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Datas []string `protobuf:"bytes,2,rep,name=datas,proto3" json:"datas,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationLog) Descriptor deprecated

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

Deprecated: Use OperationLog.ProtoReflect.Descriptor instead.

func (*OperationLog) GetDatas

func (x *OperationLog) GetDatas() []string

func (*OperationLog) GetTopic

func (x *OperationLog) GetTopic() string

func (*OperationLog) ProtoMessage

func (*OperationLog) ProtoMessage()

func (*OperationLog) ProtoReflect

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

func (*OperationLog) Reset

func (x *OperationLog) Reset()

func (*OperationLog) String

func (x *OperationLog) String() string

type OperationPayAsset

type OperationPayAsset struct {
	DestAddress string `protobuf:"bytes,1,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
	Asset       *Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	Input       string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationPayAsset) Descriptor deprecated

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

Deprecated: Use OperationPayAsset.ProtoReflect.Descriptor instead.

func (*OperationPayAsset) GetAsset

func (x *OperationPayAsset) GetAsset() *Asset

func (*OperationPayAsset) GetDestAddress

func (x *OperationPayAsset) GetDestAddress() string

func (*OperationPayAsset) GetInput

func (x *OperationPayAsset) GetInput() string

func (*OperationPayAsset) ProtoMessage

func (*OperationPayAsset) ProtoMessage()

func (*OperationPayAsset) ProtoReflect

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

func (*OperationPayAsset) Reset

func (x *OperationPayAsset) Reset()

func (*OperationPayAsset) String

func (x *OperationPayAsset) String() string

type OperationPayCoin

type OperationPayCoin struct {
	DestAddress string `protobuf:"bytes,1,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
	Amount      int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Input       string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationPayCoin) Descriptor deprecated

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

Deprecated: Use OperationPayCoin.ProtoReflect.Descriptor instead.

func (*OperationPayCoin) GetAmount

func (x *OperationPayCoin) GetAmount() int64

func (*OperationPayCoin) GetDestAddress

func (x *OperationPayCoin) GetDestAddress() string

func (*OperationPayCoin) GetInput

func (x *OperationPayCoin) GetInput() string

func (*OperationPayCoin) ProtoMessage

func (*OperationPayCoin) ProtoMessage()

func (*OperationPayCoin) ProtoReflect

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

func (*OperationPayCoin) Reset

func (x *OperationPayCoin) Reset()

func (*OperationPayCoin) String

func (x *OperationPayCoin) String() string

type OperationSetMetadata

type OperationSetMetadata 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"`
	Version    int64  `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` //Optional. The version number of metadata. If set, it must be the same as the existing metadata_version of the account.
	DeleteFlag bool   `protobuf:"varint,4,opt,name=delete_flag,json=deleteFlag,proto3" json:"delete_flag,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationSetMetadata) Descriptor deprecated

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

Deprecated: Use OperationSetMetadata.ProtoReflect.Descriptor instead.

func (*OperationSetMetadata) GetDeleteFlag

func (x *OperationSetMetadata) GetDeleteFlag() bool

func (*OperationSetMetadata) GetKey

func (x *OperationSetMetadata) GetKey() string

func (*OperationSetMetadata) GetValue

func (x *OperationSetMetadata) GetValue() string

func (*OperationSetMetadata) GetVersion

func (x *OperationSetMetadata) GetVersion() int64

func (*OperationSetMetadata) ProtoMessage

func (*OperationSetMetadata) ProtoMessage()

func (*OperationSetMetadata) ProtoReflect

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

func (*OperationSetMetadata) Reset

func (x *OperationSetMetadata) Reset()

func (*OperationSetMetadata) String

func (x *OperationSetMetadata) String() string

type OperationSetPrivilege

type OperationSetPrivilege struct {
	MasterWeight   string                    `protobuf:"bytes,1,opt,name=master_weight,json=masterWeight,proto3" json:"master_weight,omitempty"`
	Signers        []*Signer                 `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
	TxThreshold    string                    `protobuf:"bytes,3,opt,name=tx_threshold,json=txThreshold,proto3" json:"tx_threshold,omitempty"`
	TypeThresholds []*OperationTypeThreshold `protobuf:"bytes,4,rep,name=type_thresholds,json=typeThresholds,proto3" json:"type_thresholds,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationSetPrivilege) Descriptor deprecated

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

Deprecated: Use OperationSetPrivilege.ProtoReflect.Descriptor instead.

func (*OperationSetPrivilege) GetMasterWeight

func (x *OperationSetPrivilege) GetMasterWeight() string

func (*OperationSetPrivilege) GetSigners

func (x *OperationSetPrivilege) GetSigners() []*Signer

func (*OperationSetPrivilege) GetTxThreshold

func (x *OperationSetPrivilege) GetTxThreshold() string

func (*OperationSetPrivilege) GetTypeThresholds

func (x *OperationSetPrivilege) GetTypeThresholds() []*OperationTypeThreshold

func (*OperationSetPrivilege) ProtoMessage

func (*OperationSetPrivilege) ProtoMessage()

func (*OperationSetPrivilege) ProtoReflect

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

func (*OperationSetPrivilege) Reset

func (x *OperationSetPrivilege) Reset()

func (*OperationSetPrivilege) String

func (x *OperationSetPrivilege) String() string

type OperationSetSignerWeight

type OperationSetSignerWeight struct {
	MasterWeight int64     `protobuf:"varint,1,opt,name=master_weight,json=masterWeight,proto3" json:"master_weight,omitempty"` //required, [-1,MAX(UINT32)] -1: indicates no setting
	Signers      []*Signer `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`                                //address:weight, if weight is 0, it indicates deleting this signer
	// contains filtered or unexported fields
}

func (*OperationSetSignerWeight) Descriptor deprecated

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

Deprecated: Use OperationSetSignerWeight.ProtoReflect.Descriptor instead.

func (*OperationSetSignerWeight) GetMasterWeight

func (x *OperationSetSignerWeight) GetMasterWeight() int64

func (*OperationSetSignerWeight) GetSigners

func (x *OperationSetSignerWeight) GetSigners() []*Signer

func (*OperationSetSignerWeight) ProtoMessage

func (*OperationSetSignerWeight) ProtoMessage()

func (*OperationSetSignerWeight) ProtoReflect

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

func (*OperationSetSignerWeight) Reset

func (x *OperationSetSignerWeight) Reset()

func (*OperationSetSignerWeight) String

func (x *OperationSetSignerWeight) String() string

type OperationSetThreshold

type OperationSetThreshold struct {
	TxThreshold    int64                     `protobuf:"varint,1,opt,name=tx_threshold,json=txThreshold,proto3" json:"tx_threshold,omitempty"`
	TypeThresholds []*OperationTypeThreshold `protobuf:"bytes,4,rep,name=type_thresholds,json=typeThresholds,proto3" json:"type_thresholds,omitempty"` //type:threshold, threshold:0 indicates deleting this type
	// contains filtered or unexported fields
}

func (*OperationSetThreshold) Descriptor deprecated

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

Deprecated: Use OperationSetThreshold.ProtoReflect.Descriptor instead.

func (*OperationSetThreshold) GetTxThreshold

func (x *OperationSetThreshold) GetTxThreshold() int64

func (*OperationSetThreshold) GetTypeThresholds

func (x *OperationSetThreshold) GetTypeThresholds() []*OperationTypeThreshold

func (*OperationSetThreshold) ProtoMessage

func (*OperationSetThreshold) ProtoMessage()

func (*OperationSetThreshold) ProtoReflect

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

func (*OperationSetThreshold) Reset

func (x *OperationSetThreshold) Reset()

func (*OperationSetThreshold) String

func (x *OperationSetThreshold) String() string

type OperationTypeThreshold

type OperationTypeThreshold struct {
	Type      Operation_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.Operation_Type" json:"type,omitempty"`
	Threshold int64          `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationTypeThreshold) Descriptor deprecated

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

Deprecated: Use OperationTypeThreshold.ProtoReflect.Descriptor instead.

func (*OperationTypeThreshold) GetThreshold

func (x *OperationTypeThreshold) GetThreshold() int64

func (*OperationTypeThreshold) GetType

func (*OperationTypeThreshold) ProtoMessage

func (*OperationTypeThreshold) ProtoMessage()

func (*OperationTypeThreshold) ProtoReflect

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

func (*OperationTypeThreshold) Reset

func (x *OperationTypeThreshold) Reset()

func (*OperationTypeThreshold) String

func (x *OperationTypeThreshold) String() string

type Operation_Type

type Operation_Type int32
const (
	Operation_UNKNOWN           Operation_Type = 0
	Operation_CREATE_ACCOUNT    Operation_Type = 1
	Operation_ISSUE_ASSET       Operation_Type = 2
	Operation_PAY_ASSET         Operation_Type = 3
	Operation_SET_METADATA      Operation_Type = 4
	Operation_SET_SIGNER_WEIGHT Operation_Type = 5
	Operation_SET_THRESHOLD     Operation_Type = 6
	Operation_PAY_COIN          Operation_Type = 7
	Operation_LOG               Operation_Type = 8
	Operation_SET_PRIVILEGE     Operation_Type = 9
)

func (Operation_Type) Descriptor

func (Operation_Type) Enum

func (x Operation_Type) Enum() *Operation_Type

func (Operation_Type) EnumDescriptor deprecated

func (Operation_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation_Type.Descriptor instead.

func (Operation_Type) Number

func (Operation_Type) String

func (x Operation_Type) String() string

func (Operation_Type) Type

type Pbft

type Pbft struct {
	RoundNumber            int64                       `protobuf:"varint,1,opt,name=round_number,json=roundNumber,proto3" json:"round_number,omitempty"` //for sending again
	Type                   PbftMessageType             `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.PbftMessageType" json:"type,omitempty"`
	PrePrepare             *PbftPrePrepare             `protobuf:"bytes,3,opt,name=pre_prepare,json=prePrepare,proto3" json:"pre_prepare,omitempty"`
	Prepare                *PbftPrepare                `protobuf:"bytes,4,opt,name=prepare,proto3" json:"prepare,omitempty"`
	Commit                 *PbftCommit                 `protobuf:"bytes,5,opt,name=commit,proto3" json:"commit,omitempty"`
	ViewChange             *PbftViewChange             `protobuf:"bytes,6,opt,name=view_change,json=viewChange,proto3" json:"view_change,omitempty"`
	NewView                *PbftNewView                `protobuf:"bytes,7,opt,name=new_view,json=newView,proto3" json:"new_view,omitempty"`
	ViewChangeWithRawvalue *PbftViewChangeWithRawValue `` /* 131-byte string literal not displayed */
	ChainId                int64                       `protobuf:"varint,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Pbft) Descriptor deprecated

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

Deprecated: Use Pbft.ProtoReflect.Descriptor instead.

func (*Pbft) GetChainId

func (x *Pbft) GetChainId() int64

func (*Pbft) GetCommit

func (x *Pbft) GetCommit() *PbftCommit

func (*Pbft) GetNewView

func (x *Pbft) GetNewView() *PbftNewView

func (*Pbft) GetPrePrepare

func (x *Pbft) GetPrePrepare() *PbftPrePrepare

func (*Pbft) GetPrepare

func (x *Pbft) GetPrepare() *PbftPrepare

func (*Pbft) GetRoundNumber

func (x *Pbft) GetRoundNumber() int64

func (*Pbft) GetType

func (x *Pbft) GetType() PbftMessageType

func (*Pbft) GetViewChange

func (x *Pbft) GetViewChange() *PbftViewChange

func (*Pbft) GetViewChangeWithRawvalue

func (x *Pbft) GetViewChangeWithRawvalue() *PbftViewChangeWithRawValue

func (*Pbft) ProtoMessage

func (*Pbft) ProtoMessage()

func (*Pbft) ProtoReflect

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

func (*Pbft) Reset

func (x *Pbft) Reset()

func (*Pbft) String

func (x *Pbft) String() string

type PbftCommit

type PbftCommit struct {
	ViewNumber  int64  `protobuf:"varint,1,opt,name=view_number,json=viewNumber,proto3" json:"view_number,omitempty"`
	Sequence    int64  `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	ReplicaId   int64  `protobuf:"varint,3,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	ValueDigest []byte `protobuf:"bytes,4,opt,name=value_digest,json=valueDigest,proto3" json:"value_digest,omitempty"`
	// contains filtered or unexported fields
}

func (*PbftCommit) Descriptor deprecated

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

Deprecated: Use PbftCommit.ProtoReflect.Descriptor instead.

func (*PbftCommit) GetReplicaId

func (x *PbftCommit) GetReplicaId() int64

func (*PbftCommit) GetSequence

func (x *PbftCommit) GetSequence() int64

func (*PbftCommit) GetValueDigest

func (x *PbftCommit) GetValueDigest() []byte

func (*PbftCommit) GetViewNumber

func (x *PbftCommit) GetViewNumber() int64

func (*PbftCommit) ProtoMessage

func (*PbftCommit) ProtoMessage()

func (*PbftCommit) ProtoReflect

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

func (*PbftCommit) Reset

func (x *PbftCommit) Reset()

func (*PbftCommit) String

func (x *PbftCommit) String() string

type PbftEnv

type PbftEnv struct {
	Pbft      *Pbft      `protobuf:"bytes,1,opt,name=pbft,proto3" json:"pbft,omitempty"`
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*PbftEnv) Descriptor deprecated

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

Deprecated: Use PbftEnv.ProtoReflect.Descriptor instead.

func (*PbftEnv) GetPbft

func (x *PbftEnv) GetPbft() *Pbft

func (*PbftEnv) GetSignature

func (x *PbftEnv) GetSignature() *Signature

func (*PbftEnv) ProtoMessage

func (*PbftEnv) ProtoMessage()

func (*PbftEnv) ProtoReflect

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

func (*PbftEnv) Reset

func (x *PbftEnv) Reset()

func (*PbftEnv) String

func (x *PbftEnv) String() string

type PbftMessageType

type PbftMessageType int32
const (
	PbftMessageType_PBFT_TYPE_PREPREPARE              PbftMessageType = 0
	PbftMessageType_PBFT_TYPE_PREPARE                 PbftMessageType = 1
	PbftMessageType_PBFT_TYPE_COMMIT                  PbftMessageType = 2
	PbftMessageType_PBFT_TYPE_VIEWCHANGE              PbftMessageType = 3
	PbftMessageType_PBFT_TYPE_NEWVIEW                 PbftMessageType = 4
	PbftMessageType_PBFT_TYPE_VIEWCHANG_WITH_RAWVALUE PbftMessageType = 5
)

func (PbftMessageType) Descriptor

func (PbftMessageType) Enum

func (x PbftMessageType) Enum() *PbftMessageType

func (PbftMessageType) EnumDescriptor deprecated

func (PbftMessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PbftMessageType.Descriptor instead.

func (PbftMessageType) Number

func (PbftMessageType) String

func (x PbftMessageType) String() string

func (PbftMessageType) Type

type PbftNewView

type PbftNewView struct {
	ViewNumber  int64      `protobuf:"varint,1,opt,name=view_number,json=viewNumber,proto3" json:"view_number,omitempty"` //v+1
	Sequence    int64      `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`                       //sequence
	ReplicaId   int64      `protobuf:"varint,3,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	ViewChanges []*PbftEnv `protobuf:"bytes,4,rep,name=view_changes,json=viewChanges,proto3" json:"view_changes,omitempty"` //V
	PrePrepare  *PbftEnv   `protobuf:"bytes,5,opt,name=pre_prepare,json=prePrepare,proto3" json:"pre_prepare,omitempty"`    //O
	// contains filtered or unexported fields
}

func (*PbftNewView) Descriptor deprecated

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

Deprecated: Use PbftNewView.ProtoReflect.Descriptor instead.

func (*PbftNewView) GetPrePrepare

func (x *PbftNewView) GetPrePrepare() *PbftEnv

func (*PbftNewView) GetReplicaId

func (x *PbftNewView) GetReplicaId() int64

func (*PbftNewView) GetSequence

func (x *PbftNewView) GetSequence() int64

func (*PbftNewView) GetViewChanges

func (x *PbftNewView) GetViewChanges() []*PbftEnv

func (*PbftNewView) GetViewNumber

func (x *PbftNewView) GetViewNumber() int64

func (*PbftNewView) ProtoMessage

func (*PbftNewView) ProtoMessage()

func (*PbftNewView) ProtoReflect

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

func (*PbftNewView) Reset

func (x *PbftNewView) Reset()

func (*PbftNewView) String

func (x *PbftNewView) String() string

type PbftPrePrepare

type PbftPrePrepare struct {
	ViewNumber  int64  `protobuf:"varint,1,opt,name=view_number,json=viewNumber,proto3" json:"view_number,omitempty"`
	Sequence    int64  `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	ReplicaId   int64  `protobuf:"varint,3,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	Value       []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	ValueDigest []byte `protobuf:"bytes,5,opt,name=value_digest,json=valueDigest,proto3" json:"value_digest,omitempty"`
	// contains filtered or unexported fields
}

PBFT protocol

func (*PbftPrePrepare) Descriptor deprecated

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

Deprecated: Use PbftPrePrepare.ProtoReflect.Descriptor instead.

func (*PbftPrePrepare) GetReplicaId

func (x *PbftPrePrepare) GetReplicaId() int64

func (*PbftPrePrepare) GetSequence

func (x *PbftPrePrepare) GetSequence() int64

func (*PbftPrePrepare) GetValue

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

func (*PbftPrePrepare) GetValueDigest

func (x *PbftPrePrepare) GetValueDigest() []byte

func (*PbftPrePrepare) GetViewNumber

func (x *PbftPrePrepare) GetViewNumber() int64

func (*PbftPrePrepare) ProtoMessage

func (*PbftPrePrepare) ProtoMessage()

func (*PbftPrePrepare) ProtoReflect

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

func (*PbftPrePrepare) Reset

func (x *PbftPrePrepare) Reset()

func (*PbftPrePrepare) String

func (x *PbftPrePrepare) String() string

type PbftPrepare

type PbftPrepare struct {
	ViewNumber  int64  `protobuf:"varint,1,opt,name=view_number,json=viewNumber,proto3" json:"view_number,omitempty"`
	Sequence    int64  `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	ReplicaId   int64  `protobuf:"varint,3,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	ValueDigest []byte `protobuf:"bytes,4,opt,name=value_digest,json=valueDigest,proto3" json:"value_digest,omitempty"`
	// contains filtered or unexported fields
}

func (*PbftPrepare) Descriptor deprecated

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

Deprecated: Use PbftPrepare.ProtoReflect.Descriptor instead.

func (*PbftPrepare) GetReplicaId

func (x *PbftPrepare) GetReplicaId() int64

func (*PbftPrepare) GetSequence

func (x *PbftPrepare) GetSequence() int64

func (*PbftPrepare) GetValueDigest

func (x *PbftPrepare) GetValueDigest() []byte

func (*PbftPrepare) GetViewNumber

func (x *PbftPrepare) GetViewNumber() int64

func (*PbftPrepare) ProtoMessage

func (*PbftPrepare) ProtoMessage()

func (*PbftPrepare) ProtoReflect

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

func (*PbftPrepare) Reset

func (x *PbftPrepare) Reset()

func (*PbftPrepare) String

func (x *PbftPrepare) String() string

type PbftPreparedSet

type PbftPreparedSet struct {
	PrePrepare *PbftEnv   `protobuf:"bytes,1,opt,name=pre_prepare,json=prePrepare,proto3" json:"pre_prepare,omitempty"`
	Prepare    []*PbftEnv `protobuf:"bytes,2,rep,name=prepare,proto3" json:"prepare,omitempty"`
	// contains filtered or unexported fields
}

func (*PbftPreparedSet) Descriptor deprecated

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

Deprecated: Use PbftPreparedSet.ProtoReflect.Descriptor instead.

func (*PbftPreparedSet) GetPrePrepare

func (x *PbftPreparedSet) GetPrePrepare() *PbftEnv

func (*PbftPreparedSet) GetPrepare

func (x *PbftPreparedSet) GetPrepare() []*PbftEnv

func (*PbftPreparedSet) ProtoMessage

func (*PbftPreparedSet) ProtoMessage()

func (*PbftPreparedSet) ProtoReflect

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

func (*PbftPreparedSet) Reset

func (x *PbftPreparedSet) Reset()

func (*PbftPreparedSet) String

func (x *PbftPreparedSet) String() string

type PbftProof

type PbftProof struct {
	Commits []*PbftEnv `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	// contains filtered or unexported fields
}

func (*PbftProof) Descriptor deprecated

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

Deprecated: Use PbftProof.ProtoReflect.Descriptor instead.

func (*PbftProof) GetCommits

func (x *PbftProof) GetCommits() []*PbftEnv

func (*PbftProof) ProtoMessage

func (*PbftProof) ProtoMessage()

func (*PbftProof) ProtoReflect

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

func (*PbftProof) Reset

func (x *PbftProof) Reset()

func (*PbftProof) String

func (x *PbftProof) String() string

type PbftValueType

type PbftValueType int32
const (
	PbftValueType_PBFT_VALUE_TX    PbftValueType = 0
	PbftValueType_PBFT_VALUE_TXSET PbftValueType = 1
)

func (PbftValueType) Descriptor

func (PbftValueType) Enum

func (x PbftValueType) Enum() *PbftValueType

func (PbftValueType) EnumDescriptor deprecated

func (PbftValueType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PbftValueType.Descriptor instead.

func (PbftValueType) Number

func (PbftValueType) String

func (x PbftValueType) String() string

func (PbftValueType) Type

type PbftViewChange

type PbftViewChange struct {
	ViewNumber         int64  `protobuf:"varint,1,opt,name=view_number,json=viewNumber,proto3" json:"view_number,omitempty"`                          //v+1
	Sequence           int64  `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`                                                //last execution seq
	PrepredValueDigest []byte `protobuf:"bytes,3,opt,name=prepred_value_digest,json=prepredValueDigest,proto3" json:"prepred_value_digest,omitempty"` //prepared value hash
	ReplicaId          int64  `protobuf:"varint,4,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PbftViewChange) Descriptor deprecated

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

Deprecated: Use PbftViewChange.ProtoReflect.Descriptor instead.

func (*PbftViewChange) GetPrepredValueDigest

func (x *PbftViewChange) GetPrepredValueDigest() []byte

func (*PbftViewChange) GetReplicaId

func (x *PbftViewChange) GetReplicaId() int64

func (*PbftViewChange) GetSequence

func (x *PbftViewChange) GetSequence() int64

func (*PbftViewChange) GetViewNumber

func (x *PbftViewChange) GetViewNumber() int64

func (*PbftViewChange) ProtoMessage

func (*PbftViewChange) ProtoMessage()

func (*PbftViewChange) ProtoReflect

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

func (*PbftViewChange) Reset

func (x *PbftViewChange) Reset()

func (*PbftViewChange) String

func (x *PbftViewChange) String() string

type PbftViewChangeWithRawValue

type PbftViewChangeWithRawValue struct {
	ViewChangeEnv *PbftEnv         `protobuf:"bytes,1,opt,name=view_change_env,json=viewChangeEnv,proto3" json:"view_change_env,omitempty"` // view change env
	PreparedSet   *PbftPreparedSet `protobuf:"bytes,2,opt,name=prepared_set,json=preparedSet,proto3" json:"prepared_set,omitempty"`         //prepared messages larger than n
	// contains filtered or unexported fields
}

func (*PbftViewChangeWithRawValue) Descriptor deprecated

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

Deprecated: Use PbftViewChangeWithRawValue.ProtoReflect.Descriptor instead.

func (*PbftViewChangeWithRawValue) GetPreparedSet

func (x *PbftViewChangeWithRawValue) GetPreparedSet() *PbftPreparedSet

func (*PbftViewChangeWithRawValue) GetViewChangeEnv

func (x *PbftViewChangeWithRawValue) GetViewChangeEnv() *PbftEnv

func (*PbftViewChangeWithRawValue) ProtoMessage

func (*PbftViewChangeWithRawValue) ProtoMessage()

func (*PbftViewChangeWithRawValue) ProtoReflect

func (*PbftViewChangeWithRawValue) Reset

func (x *PbftViewChangeWithRawValue) Reset()

func (*PbftViewChangeWithRawValue) String

func (x *PbftViewChangeWithRawValue) String() string

type Peer

type Peer struct {
	Ip              string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port            int64  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	NumFailures     int64  `protobuf:"varint,3,opt,name=num_failures,json=numFailures,proto3" json:"num_failures,omitempty"`
	NextAttemptTime int64  `protobuf:"varint,4,opt,name=next_attempt_time,json=nextAttemptTime,proto3" json:"next_attempt_time,omitempty"`
	ActiveTime      int64  `protobuf:"varint,5,opt,name=active_time,json=activeTime,proto3" json:"active_time,omitempty"`
	ConnectionId    int64  `protobuf:"varint,6,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	// contains filtered or unexported fields
}

for peers message

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetActiveTime

func (x *Peer) GetActiveTime() int64

func (*Peer) GetConnectionId

func (x *Peer) GetConnectionId() int64

func (*Peer) GetIp

func (x *Peer) GetIp() string

func (*Peer) GetNextAttemptTime

func (x *Peer) GetNextAttemptTime() int64

func (*Peer) GetNumFailures

func (x *Peer) GetNumFailures() int64

func (*Peer) GetPort

func (x *Peer) GetPort() int64

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type Peers

type Peers struct {
	Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

func (*Peers) Descriptor deprecated

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

Deprecated: Use Peers.ProtoReflect.Descriptor instead.

func (*Peers) GetPeers

func (x *Peers) GetPeers() []*Peer

func (*Peers) ProtoMessage

func (*Peers) ProtoMessage()

func (*Peers) ProtoReflect

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

func (*Peers) Reset

func (x *Peers) Reset()

func (*Peers) String

func (x *Peers) String() string

type Ping

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

for ping messsage

func (*Ping) Descriptor deprecated

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetNonce

func (x *Ping) GetNonce() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

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

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type Pong

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

for pong message

func (*Pong) Descriptor deprecated

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetNonce

func (x *Pong) GetNonce() int64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

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

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

type Signature

type Signature struct {
	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	SignData  []byte `protobuf:"bytes,2,opt,name=sign_data,json=signData,proto3" json:"sign_data,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetPublicKey

func (x *Signature) GetPublicKey() string

func (*Signature) GetSignData

func (x *Signature) GetSignData() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Signer

type Signer struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Weight  int64  `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (*Signer) Descriptor deprecated

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

Deprecated: Use Signer.ProtoReflect.Descriptor instead.

func (*Signer) GetAddress

func (x *Signer) GetAddress() string

func (*Signer) GetWeight

func (x *Signer) GetWeight() int64

func (*Signer) ProtoMessage

func (*Signer) ProtoMessage()

func (*Signer) ProtoReflect

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

func (*Signer) Reset

func (x *Signer) Reset()

func (*Signer) String

func (x *Signer) String() string

type Signer_Limit

type Signer_Limit int32
const (
	Signer_SIGNER_NONE Signer_Limit = 0
	Signer_SIGNER      Signer_Limit = 100
)

func (Signer_Limit) Descriptor

func (Signer_Limit) Enum

func (x Signer_Limit) Enum() *Signer_Limit

func (Signer_Limit) EnumDescriptor deprecated

func (Signer_Limit) EnumDescriptor() ([]byte, []int)

Deprecated: Use Signer_Limit.Descriptor instead.

func (Signer_Limit) Number

func (Signer_Limit) String

func (x Signer_Limit) String() string

func (Signer_Limit) Type

type Transaction

type Transaction struct {
	SourceAddress string       `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	Nonce         int64        `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	ExprCondition string       `protobuf:"bytes,3,opt,name=expr_condition,json=exprCondition,proto3" json:"expr_condition,omitempty"`
	Operations    []*Operation `protobuf:"bytes,4,rep,name=operations,proto3" json:"operations,omitempty"`
	Metadata      []byte       `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	FeeLimit      int64        `protobuf:"varint,6,opt,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty"`
	GasPrice      int64        `protobuf:"varint,7,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	CeilLedgerSeq int64        `protobuf:"varint,8,opt,name=ceil_ledger_seq,json=ceilLedgerSeq,proto3" json:"ceil_ledger_seq,omitempty"`
	ChainId       int64        `protobuf:"varint,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetCeilLedgerSeq

func (x *Transaction) GetCeilLedgerSeq() int64

func (*Transaction) GetChainId

func (x *Transaction) GetChainId() int64

func (*Transaction) GetExprCondition

func (x *Transaction) GetExprCondition() string

func (*Transaction) GetFeeLimit

func (x *Transaction) GetFeeLimit() int64

func (*Transaction) GetGasPrice

func (x *Transaction) GetGasPrice() int64

func (*Transaction) GetMetadata

func (x *Transaction) GetMetadata() []byte

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() int64

func (*Transaction) GetOperations

func (x *Transaction) GetOperations() []*Operation

func (*Transaction) GetSourceAddress

func (x *Transaction) GetSourceAddress() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionEnv

type TransactionEnv struct {
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	Signatures  []*Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	Trigger     *Trigger     `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionEnv) Descriptor deprecated

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

Deprecated: Use TransactionEnv.ProtoReflect.Descriptor instead.

func (*TransactionEnv) GetSignatures

func (x *TransactionEnv) GetSignatures() []*Signature

func (*TransactionEnv) GetTransaction

func (x *TransactionEnv) GetTransaction() *Transaction

func (*TransactionEnv) GetTrigger

func (x *TransactionEnv) GetTrigger() *Trigger

func (*TransactionEnv) ProtoMessage

func (*TransactionEnv) ProtoMessage()

func (*TransactionEnv) ProtoReflect

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

func (*TransactionEnv) Reset

func (x *TransactionEnv) Reset()

func (*TransactionEnv) String

func (x *TransactionEnv) String() string

type TransactionEnvResult

type TransactionEnvResult struct {
	TranEnv   *TransactionEnv `protobuf:"bytes,1,opt,name=tran_env,json=tranEnv,proto3" json:"tran_env,omitempty"`
	TxHash    string          `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	ErrorCode ERRORCODE       `protobuf:"varint,3,opt,name=error_code,json=errorCode,proto3,enum=protocol.ERRORCODE" json:"error_code,omitempty"`
	ErrorDesc string          `protobuf:"bytes,4,opt,name=error_desc,json=errorDesc,proto3" json:"error_desc,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionEnvResult) Descriptor deprecated

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

Deprecated: Use TransactionEnvResult.ProtoReflect.Descriptor instead.

func (*TransactionEnvResult) GetErrorCode

func (x *TransactionEnvResult) GetErrorCode() ERRORCODE

func (*TransactionEnvResult) GetErrorDesc

func (x *TransactionEnvResult) GetErrorDesc() string

func (*TransactionEnvResult) GetTranEnv

func (x *TransactionEnvResult) GetTranEnv() *TransactionEnv

func (*TransactionEnvResult) GetTxHash

func (x *TransactionEnvResult) GetTxHash() string

func (*TransactionEnvResult) ProtoMessage

func (*TransactionEnvResult) ProtoMessage()

func (*TransactionEnvResult) ProtoReflect

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

func (*TransactionEnvResult) Reset

func (x *TransactionEnvResult) Reset()

func (*TransactionEnvResult) String

func (x *TransactionEnvResult) String() string

type TransactionEnvSet

type TransactionEnvSet struct {
	Txs []*TransactionEnv `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionEnvSet) Descriptor deprecated

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

Deprecated: Use TransactionEnvSet.ProtoReflect.Descriptor instead.

func (*TransactionEnvSet) GetTxs

func (x *TransactionEnvSet) GetTxs() []*TransactionEnv

func (*TransactionEnvSet) ProtoMessage

func (*TransactionEnvSet) ProtoMessage()

func (*TransactionEnvSet) ProtoReflect

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

func (*TransactionEnvSet) Reset

func (x *TransactionEnvSet) Reset()

func (*TransactionEnvSet) String

func (x *TransactionEnvSet) String() string

type TransactionEnvStore

type TransactionEnvStore struct {
	TransactionEnv *TransactionEnv `protobuf:"bytes,1,opt,name=transaction_env,json=transactionEnv,proto3" json:"transaction_env,omitempty"`
	ErrorCode      int32           `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	ErrorDesc      string          `protobuf:"bytes,3,opt,name=error_desc,json=errorDesc,proto3" json:"error_desc,omitempty"`
	LedgerSeq      int64           `protobuf:"varint,4,opt,name=ledger_seq,json=ledgerSeq,proto3" json:"ledger_seq,omitempty"`
	CloseTime      int64           `protobuf:"varint,5,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"`
	//for notify
	Hash             []byte   `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	ActualFee        int64    `protobuf:"varint,7,opt,name=actual_fee,json=actualFee,proto3" json:"actual_fee,omitempty"`
	ContractTxHashes [][]byte `protobuf:"bytes,8,rep,name=contract_tx_hashes,json=contractTxHashes,proto3" json:"contract_tx_hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionEnvStore) Descriptor deprecated

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

Deprecated: Use TransactionEnvStore.ProtoReflect.Descriptor instead.

func (*TransactionEnvStore) GetActualFee

func (x *TransactionEnvStore) GetActualFee() int64

func (*TransactionEnvStore) GetCloseTime

func (x *TransactionEnvStore) GetCloseTime() int64

func (*TransactionEnvStore) GetContractTxHashes

func (x *TransactionEnvStore) GetContractTxHashes() [][]byte

func (*TransactionEnvStore) GetErrorCode

func (x *TransactionEnvStore) GetErrorCode() int32

func (*TransactionEnvStore) GetErrorDesc

func (x *TransactionEnvStore) GetErrorDesc() string

func (*TransactionEnvStore) GetHash

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

func (*TransactionEnvStore) GetLedgerSeq

func (x *TransactionEnvStore) GetLedgerSeq() int64

func (*TransactionEnvStore) GetTransactionEnv

func (x *TransactionEnvStore) GetTransactionEnv() *TransactionEnv

func (*TransactionEnvStore) ProtoMessage

func (*TransactionEnvStore) ProtoMessage()

func (*TransactionEnvStore) ProtoReflect

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

func (*TransactionEnvStore) Reset

func (x *TransactionEnvStore) Reset()

func (*TransactionEnvStore) String

func (x *TransactionEnvStore) String() string

type Transaction_Limit

type Transaction_Limit int32
const (
	Transaction_UNKNOWN    Transaction_Limit = 0
	Transaction_OPERATIONS Transaction_Limit = 1000
)

func (Transaction_Limit) Descriptor

func (Transaction_Limit) Enum

func (Transaction_Limit) EnumDescriptor deprecated

func (Transaction_Limit) EnumDescriptor() ([]byte, []int)

Deprecated: Use Transaction_Limit.Descriptor instead.

func (Transaction_Limit) Number

func (Transaction_Limit) String

func (x Transaction_Limit) String() string

func (Transaction_Limit) Type

type Trigger

type Trigger struct {
	TransactionType Trigger_TransactionType   ``                                                                                          /* 145-byte string literal not displayed */
	LedgerSeq       int64                     `protobuf:"varint,2,opt,name=ledger_seq,json=ledgerSeq,proto3" json:"ledger_seq,omitempty"` //If it is triggered by a specific block (temporarily not provided)
	Transaction     *Trigger_OperationTrigger `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"`               //If it's a transaction triggered
	// contains filtered or unexported fields
}

func (*Trigger) Descriptor deprecated

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

Deprecated: Use Trigger.ProtoReflect.Descriptor instead.

func (*Trigger) GetLedgerSeq

func (x *Trigger) GetLedgerSeq() int64

func (*Trigger) GetTransaction

func (x *Trigger) GetTransaction() *Trigger_OperationTrigger

func (*Trigger) GetTransactionType

func (x *Trigger) GetTransactionType() Trigger_TransactionType

func (*Trigger) ProtoMessage

func (*Trigger) ProtoMessage()

func (*Trigger) ProtoReflect

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

func (*Trigger) Reset

func (x *Trigger) Reset()

func (*Trigger) String

func (x *Trigger) String() string

type Trigger_OperationTrigger

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

func (*Trigger_OperationTrigger) Descriptor deprecated

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

Deprecated: Use Trigger_OperationTrigger.ProtoReflect.Descriptor instead.

func (*Trigger_OperationTrigger) GetHash

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

func (*Trigger_OperationTrigger) GetIndex

func (x *Trigger_OperationTrigger) GetIndex() int64

func (*Trigger_OperationTrigger) ProtoMessage

func (*Trigger_OperationTrigger) ProtoMessage()

func (*Trigger_OperationTrigger) ProtoReflect

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

func (*Trigger_OperationTrigger) Reset

func (x *Trigger_OperationTrigger) Reset()

func (*Trigger_OperationTrigger) String

func (x *Trigger_OperationTrigger) String() string

type Trigger_TransactionType

type Trigger_TransactionType int32
const (
	Trigger_NORMAL_TRANSACTION   Trigger_TransactionType = 0
	Trigger_CONTRACT_TRANSACTION Trigger_TransactionType = 1
)

func (Trigger_TransactionType) Descriptor

func (Trigger_TransactionType) Enum

func (Trigger_TransactionType) EnumDescriptor deprecated

func (Trigger_TransactionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Trigger_TransactionType.Descriptor instead.

func (Trigger_TransactionType) Number

func (Trigger_TransactionType) String

func (x Trigger_TransactionType) String() string

func (Trigger_TransactionType) Type

type Validator

type Validator struct {
	Address          string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PledgeCoinAmount int64  `protobuf:"varint,2,opt,name=pledge_coin_amount,json=pledgeCoinAmount,proto3" json:"pledge_coin_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*Validator) Descriptor deprecated

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetAddress

func (x *Validator) GetAddress() string

func (*Validator) GetPledgeCoinAmount

func (x *Validator) GetPledgeCoinAmount() int64

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

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

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

type ValidatorSet

type ValidatorSet struct {
	Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorSet) Descriptor deprecated

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

Deprecated: Use ValidatorSet.ProtoReflect.Descriptor instead.

func (*ValidatorSet) GetValidators

func (x *ValidatorSet) GetValidators() []*Validator

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) ProtoReflect

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

func (*ValidatorSet) Reset

func (x *ValidatorSet) Reset()

func (*ValidatorSet) String

func (x *ValidatorSet) String() string

type ValidatorSetV3

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

func (*ValidatorSetV3) Descriptor deprecated

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

Deprecated: Use ValidatorSetV3.ProtoReflect.Descriptor instead.

func (*ValidatorSetV3) GetValidators

func (x *ValidatorSetV3) GetValidators() []string

func (*ValidatorSetV3) ProtoMessage

func (*ValidatorSetV3) ProtoMessage()

func (*ValidatorSetV3) ProtoReflect

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

func (*ValidatorSetV3) Reset

func (x *ValidatorSetV3) Reset()

func (*ValidatorSetV3) String

func (x *ValidatorSetV3) String() string

type WsMessage

type WsMessage struct {
	Type     int64  `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`       //1: ping
	Request  bool   `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` //true :request , false:reponse
	Sequence int64  `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Data     []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*WsMessage) Descriptor deprecated

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

Deprecated: Use WsMessage.ProtoReflect.Descriptor instead.

func (*WsMessage) GetData

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

func (*WsMessage) GetRequest

func (x *WsMessage) GetRequest() bool

func (*WsMessage) GetSequence

func (x *WsMessage) GetSequence() int64

func (*WsMessage) GetType

func (x *WsMessage) GetType() int64

func (*WsMessage) ProtoMessage

func (*WsMessage) ProtoMessage()

func (*WsMessage) ProtoReflect

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

func (*WsMessage) Reset

func (x *WsMessage) Reset()

func (*WsMessage) String

func (x *WsMessage) String() string

Jump to

Keyboard shortcuts

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