iproto

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnknownProtoMsgType is an unknown message type that is not expected
	UnknownProtoMsgType uint32 = 0
	// MsgTxProtoMsgType is for transactions broadcasted within the network
	MsgTxProtoMsgType uint32 = 1
	// MsgBlockProtoMsgType is for blocks broadcasted within the network
	MsgBlockProtoMsgType uint32 = 2
	// MsgBlockSyncReqType is for requests among peers to sync blocks
	MsgBlockSyncReqType uint32 = 3
	// MsgBlockSyncDataType is the response to messages of type MsgBlockSyncReqType
	MsgBlockSyncDataType uint32 = 4
	// MsgActionType is the action message
	MsgActionType uint32 = 5
	// MsgConsensusType is for consensus message
	MsgConsensusType uint32 = 6
	// TestPayloadType is a test payload message type
	TestPayloadType uint32 = 10001
)
View Source
const (
	MagicBroadcastMsgHeader uint32 = 4689
)

Magic header to identify IoTex traffic

Variables

View Source
var ConsensusPb_ConsensusMessageType_name = map[int32]string{
	0: "PROPOSAL",
	1: "ENDORSEMENT",
}
View Source
var ConsensusPb_ConsensusMessageType_value = map[string]int32{
	"PROPOSAL":    0,
	"ENDORSEMENT": 1,
}
View Source
var Endorsement_ConsensusVoteTopic_name = map[int32]string{
	0: "PROPOSAL",
	1: "LOCK",
	2: "COMMIT",
}
View Source
var Endorsement_ConsensusVoteTopic_value = map[string]int32{
	"PROPOSAL": 0,
	"LOCK":     1,
	"COMMIT":   2,
}
View Source
var RewardType_name = map[int32]string{
	0: "Block",
	1: "Epoch",
}
View Source
var RewardType_value = map[string]int32{
	"Block": 0,
	"Epoch": 1,
}

Functions

func GetTypeFromProtoMsg

func GetTypeFromProtoMsg(msg proto.Message) (uint32, error)

GetTypeFromProtoMsg retrieves the proto message type

func TypifyProtoMsg

func TypifyProtoMsg(tp uint32, msg []byte) (proto.Message, error)

TypifyProtoMsg unmarshal a proto message based on the given MessageType

Types

type AccountPb

type AccountPb struct {
	// used by state-based model
	Nonce                uint64   `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Balance              []byte   `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	Root                 []byte   `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"`
	CodeHash             []byte   `protobuf:"bytes,4,opt,name=codeHash,proto3" json:"codeHash,omitempty"`
	IsCandidate          bool     `protobuf:"varint,5,opt,name=isCandidate,proto3" json:"isCandidate,omitempty"`
	VotingWeight         []byte   `protobuf:"bytes,6,opt,name=votingWeight,proto3" json:"votingWeight,omitempty"`
	Votee                string   `protobuf:"bytes,7,opt,name=votee,proto3" json:"votee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountPb) Descriptor

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

func (*AccountPb) GetBalance

func (m *AccountPb) GetBalance() []byte

func (*AccountPb) GetCodeHash

func (m *AccountPb) GetCodeHash() []byte

func (*AccountPb) GetIsCandidate

func (m *AccountPb) GetIsCandidate() bool

func (*AccountPb) GetNonce

func (m *AccountPb) GetNonce() uint64

func (*AccountPb) GetRoot

func (m *AccountPb) GetRoot() []byte

func (*AccountPb) GetVotee

func (m *AccountPb) GetVotee() string

func (*AccountPb) GetVotingWeight

func (m *AccountPb) GetVotingWeight() []byte

func (*AccountPb) ProtoMessage

func (*AccountPb) ProtoMessage()

func (*AccountPb) Reset

func (m *AccountPb) Reset()

func (*AccountPb) String

func (m *AccountPb) String() string

func (*AccountPb) XXX_DiscardUnknown

func (m *AccountPb) XXX_DiscardUnknown()

func (*AccountPb) XXX_Marshal

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

func (*AccountPb) XXX_Merge

func (dst *AccountPb) XXX_Merge(src proto.Message)

func (*AccountPb) XXX_Size

func (m *AccountPb) XXX_Size() int

func (*AccountPb) XXX_Unmarshal

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

type ActionPb

type ActionPb struct {
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// TODO: we should remove sender address later
	Sender       string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	SenderPubKey []byte `protobuf:"bytes,3,opt,name=senderPubKey,proto3" json:"senderPubKey,omitempty"`
	Nonce        uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	GasLimit     uint64 `protobuf:"varint,5,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"`
	GasPrice     []byte `protobuf:"bytes,6,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	Signature    []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	// Types that are valid to be assigned to Action:
	//	*ActionPb_Transfer
	//	*ActionPb_Vote
	//	*ActionPb_Execution
	//	*ActionPb_StartSubChain
	//	*ActionPb_StopSubChain
	//	*ActionPb_PutBlock
	//	*ActionPb_CreateDeposit
	//	*ActionPb_SettleDeposit
	//	*ActionPb_CreatePlumChain
	//	*ActionPb_TerminatePlumChain
	//	*ActionPb_PlumPutBlock
	//	*ActionPb_PlumCreateDeposit
	//	*ActionPb_PlumStartExit
	//	*ActionPb_PlumChallengeExit
	//	*ActionPb_PlumResponseChallengeExit
	//	*ActionPb_PlumFinalizeExit
	//	*ActionPb_PlumSettleDeposit
	//	*ActionPb_PlumTransfer
	//	*ActionPb_DepositToRewardingFund
	//	*ActionPb_ClaimFromRewardingFund
	//	*ActionPb_SetReward
	//	*ActionPb_GrantReward
	Action               isActionPb_Action `protobuf_oneof:"action"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ActionPb) Descriptor

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

func (*ActionPb) GetAction

func (m *ActionPb) GetAction() isActionPb_Action

func (*ActionPb) GetClaimFromRewardingFund

func (m *ActionPb) GetClaimFromRewardingFund() *ClaimFromRewardingFund

func (*ActionPb) GetCreateDeposit

func (m *ActionPb) GetCreateDeposit() *CreateDepositPb

func (*ActionPb) GetCreatePlumChain

func (m *ActionPb) GetCreatePlumChain() *CreatePlumChainPb

func (*ActionPb) GetDepositToRewardingFund

func (m *ActionPb) GetDepositToRewardingFund() *DepositToRewardingFund

func (*ActionPb) GetExecution

func (m *ActionPb) GetExecution() *ExecutionPb

func (*ActionPb) GetGasLimit

func (m *ActionPb) GetGasLimit() uint64

func (*ActionPb) GetGasPrice

func (m *ActionPb) GetGasPrice() []byte

func (*ActionPb) GetGrantReward

func (m *ActionPb) GetGrantReward() *GrantReward

func (*ActionPb) GetNonce

func (m *ActionPb) GetNonce() uint64

func (*ActionPb) GetPlumChallengeExit

func (m *ActionPb) GetPlumChallengeExit() *PlumChallengeExit

func (*ActionPb) GetPlumCreateDeposit

func (m *ActionPb) GetPlumCreateDeposit() *PlumCreateDepositPb

func (*ActionPb) GetPlumFinalizeExit

func (m *ActionPb) GetPlumFinalizeExit() *PlumFinalizeExit

func (*ActionPb) GetPlumPutBlock

func (m *ActionPb) GetPlumPutBlock() *PlumPutBlockPb

func (*ActionPb) GetPlumResponseChallengeExit

func (m *ActionPb) GetPlumResponseChallengeExit() *PlumResponseChallengeExit

func (*ActionPb) GetPlumSettleDeposit

func (m *ActionPb) GetPlumSettleDeposit() *PlumSettleDepositPb

func (*ActionPb) GetPlumStartExit

func (m *ActionPb) GetPlumStartExit() *PlumStartExitPb

func (*ActionPb) GetPlumTransfer

func (m *ActionPb) GetPlumTransfer() *PlumTransferPb

func (*ActionPb) GetPutBlock

func (m *ActionPb) GetPutBlock() *PutBlockPb

func (*ActionPb) GetSender

func (m *ActionPb) GetSender() string

func (*ActionPb) GetSenderPubKey

func (m *ActionPb) GetSenderPubKey() []byte

func (*ActionPb) GetSetReward

func (m *ActionPb) GetSetReward() *SetReward

func (*ActionPb) GetSettleDeposit

func (m *ActionPb) GetSettleDeposit() *SettleDepositPb

func (*ActionPb) GetSignature

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

func (*ActionPb) GetStartSubChain

func (m *ActionPb) GetStartSubChain() *StartSubChainPb

func (*ActionPb) GetStopSubChain

func (m *ActionPb) GetStopSubChain() *StopSubChainPb

func (*ActionPb) GetTerminatePlumChain

func (m *ActionPb) GetTerminatePlumChain() *TerminatePlumChainPb

func (*ActionPb) GetTransfer

func (m *ActionPb) GetTransfer() *TransferPb

func (*ActionPb) GetVersion

func (m *ActionPb) GetVersion() uint32

func (*ActionPb) GetVote

func (m *ActionPb) GetVote() *VotePb

func (*ActionPb) ProtoMessage

func (*ActionPb) ProtoMessage()

func (*ActionPb) Reset

func (m *ActionPb) Reset()

func (*ActionPb) String

func (m *ActionPb) String() string

func (*ActionPb) XXX_DiscardUnknown

func (m *ActionPb) XXX_DiscardUnknown()

func (*ActionPb) XXX_Marshal

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

func (*ActionPb) XXX_Merge

func (dst *ActionPb) XXX_Merge(src proto.Message)

func (*ActionPb) XXX_OneofFuncs

func (*ActionPb) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ActionPb) XXX_Size

func (m *ActionPb) XXX_Size() int

func (*ActionPb) XXX_Unmarshal

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

type ActionPb_ClaimFromRewardingFund

type ActionPb_ClaimFromRewardingFund struct {
	ClaimFromRewardingFund *ClaimFromRewardingFund `protobuf:"bytes,31,opt,name=claimFromRewardingFund,proto3,oneof"`
}

type ActionPb_CreateDeposit

type ActionPb_CreateDeposit struct {
	CreateDeposit *CreateDepositPb `protobuf:"bytes,16,opt,name=createDeposit,proto3,oneof"`
}

type ActionPb_CreatePlumChain

type ActionPb_CreatePlumChain struct {
	CreatePlumChain *CreatePlumChainPb `protobuf:"bytes,18,opt,name=createPlumChain,proto3,oneof"`
}

type ActionPb_DepositToRewardingFund

type ActionPb_DepositToRewardingFund struct {
	DepositToRewardingFund *DepositToRewardingFund `protobuf:"bytes,30,opt,name=depositToRewardingFund,proto3,oneof"`
}

type ActionPb_Execution

type ActionPb_Execution struct {
	Execution *ExecutionPb `protobuf:"bytes,12,opt,name=execution,proto3,oneof"`
}

type ActionPb_GrantReward

type ActionPb_GrantReward struct {
	GrantReward *GrantReward `protobuf:"bytes,33,opt,name=grantReward,proto3,oneof"`
}

type ActionPb_PlumChallengeExit

type ActionPb_PlumChallengeExit struct {
	PlumChallengeExit *PlumChallengeExit `protobuf:"bytes,23,opt,name=plumChallengeExit,proto3,oneof"`
}

type ActionPb_PlumCreateDeposit

type ActionPb_PlumCreateDeposit struct {
	PlumCreateDeposit *PlumCreateDepositPb `protobuf:"bytes,21,opt,name=plumCreateDeposit,proto3,oneof"`
}

type ActionPb_PlumFinalizeExit

type ActionPb_PlumFinalizeExit struct {
	PlumFinalizeExit *PlumFinalizeExit `protobuf:"bytes,25,opt,name=plumFinalizeExit,proto3,oneof"`
}

type ActionPb_PlumPutBlock

type ActionPb_PlumPutBlock struct {
	PlumPutBlock *PlumPutBlockPb `protobuf:"bytes,20,opt,name=plumPutBlock,proto3,oneof"`
}

type ActionPb_PlumResponseChallengeExit

type ActionPb_PlumResponseChallengeExit struct {
	PlumResponseChallengeExit *PlumResponseChallengeExit `protobuf:"bytes,24,opt,name=plumResponseChallengeExit,proto3,oneof"`
}

type ActionPb_PlumSettleDeposit

type ActionPb_PlumSettleDeposit struct {
	PlumSettleDeposit *PlumSettleDepositPb `protobuf:"bytes,26,opt,name=plumSettleDeposit,proto3,oneof"`
}

type ActionPb_PlumStartExit

type ActionPb_PlumStartExit struct {
	PlumStartExit *PlumStartExitPb `protobuf:"bytes,22,opt,name=plumStartExit,proto3,oneof"`
}

type ActionPb_PlumTransfer

type ActionPb_PlumTransfer struct {
	PlumTransfer *PlumTransferPb `protobuf:"bytes,27,opt,name=plumTransfer,proto3,oneof"`
}

type ActionPb_PutBlock

type ActionPb_PutBlock struct {
	PutBlock *PutBlockPb `protobuf:"bytes,15,opt,name=putBlock,proto3,oneof"`
}

type ActionPb_SetReward

type ActionPb_SetReward struct {
	SetReward *SetReward `protobuf:"bytes,32,opt,name=setReward,proto3,oneof"`
}

type ActionPb_SettleDeposit

type ActionPb_SettleDeposit struct {
	SettleDeposit *SettleDepositPb `protobuf:"bytes,17,opt,name=settleDeposit,proto3,oneof"`
}

type ActionPb_StartSubChain

type ActionPb_StartSubChain struct {
	StartSubChain *StartSubChainPb `protobuf:"bytes,13,opt,name=startSubChain,proto3,oneof"`
}

type ActionPb_StopSubChain

type ActionPb_StopSubChain struct {
	StopSubChain *StopSubChainPb `protobuf:"bytes,14,opt,name=stopSubChain,proto3,oneof"`
}

type ActionPb_TerminatePlumChain

type ActionPb_TerminatePlumChain struct {
	TerminatePlumChain *TerminatePlumChainPb `protobuf:"bytes,19,opt,name=terminatePlumChain,proto3,oneof"`
}

type ActionPb_Transfer

type ActionPb_Transfer struct {
	Transfer *TransferPb `protobuf:"bytes,10,opt,name=transfer,proto3,oneof"`
}

type ActionPb_Vote

type ActionPb_Vote struct {
	Vote *VotePb `protobuf:"bytes,11,opt,name=vote,proto3,oneof"`
}

type BlockContainer

type BlockContainer struct {
	Block                *BlockPb `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

block container used to send old/existing blocks in block sync

func (*BlockContainer) Descriptor

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

func (*BlockContainer) GetBlock

func (m *BlockContainer) GetBlock() *BlockPb

func (*BlockContainer) ProtoMessage

func (*BlockContainer) ProtoMessage()

func (*BlockContainer) Reset

func (m *BlockContainer) Reset()

func (*BlockContainer) String

func (m *BlockContainer) String() string

func (*BlockContainer) XXX_DiscardUnknown

func (m *BlockContainer) XXX_DiscardUnknown()

func (*BlockContainer) XXX_Marshal

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

func (*BlockContainer) XXX_Merge

func (dst *BlockContainer) XXX_Merge(src proto.Message)

func (*BlockContainer) XXX_Size

func (m *BlockContainer) XXX_Size() int

func (*BlockContainer) XXX_Unmarshal

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

type BlockFooterPb

type BlockFooterPb struct {
	CommitTimestamp      int64           `protobuf:"varint,1,opt,name=CommitTimestamp,proto3" json:"CommitTimestamp,omitempty"`
	Endorsements         *EndorsementSet `protobuf:"bytes,2,opt,name=endorsements,proto3" json:"endorsements,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

footer of a block

func (*BlockFooterPb) Descriptor

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

func (*BlockFooterPb) GetCommitTimestamp

func (m *BlockFooterPb) GetCommitTimestamp() int64

func (*BlockFooterPb) GetEndorsements

func (m *BlockFooterPb) GetEndorsements() *EndorsementSet

func (*BlockFooterPb) ProtoMessage

func (*BlockFooterPb) ProtoMessage()

func (*BlockFooterPb) Reset

func (m *BlockFooterPb) Reset()

func (*BlockFooterPb) String

func (m *BlockFooterPb) String() string

func (*BlockFooterPb) XXX_DiscardUnknown

func (m *BlockFooterPb) XXX_DiscardUnknown()

func (*BlockFooterPb) XXX_Marshal

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

func (*BlockFooterPb) XXX_Merge

func (dst *BlockFooterPb) XXX_Merge(src proto.Message)

func (*BlockFooterPb) XXX_Size

func (m *BlockFooterPb) XXX_Size() int

func (*BlockFooterPb) XXX_Unmarshal

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

type BlockHeaderPb

type BlockHeaderPb struct {
	Version              uint32               `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	ChainID              uint32               `protobuf:"varint,2,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Height               uint64               `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	PrevBlockHash        []byte               `protobuf:"bytes,5,opt,name=prevBlockHash,proto3" json:"prevBlockHash,omitempty"`
	TxRoot               []byte               `protobuf:"bytes,6,opt,name=txRoot,proto3" json:"txRoot,omitempty"`
	StateRoot            []byte               `protobuf:"bytes,7,opt,name=stateRoot,proto3" json:"stateRoot,omitempty"`
	DeltaStateDigest     []byte               `protobuf:"bytes,8,opt,name=deltaStateDigest,proto3" json:"deltaStateDigest,omitempty"`
	ReceiptRoot          []byte               `protobuf:"bytes,9,opt,name=receiptRoot,proto3" json:"receiptRoot,omitempty"`
	Reserved             []byte               `protobuf:"bytes,10,opt,name=reserved,proto3" json:"reserved,omitempty"`
	Signature            []byte               `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty"`
	Pubkey               []byte               `protobuf:"bytes,12,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

header of a block

func (*BlockHeaderPb) Descriptor

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

func (*BlockHeaderPb) GetChainID

func (m *BlockHeaderPb) GetChainID() uint32

func (*BlockHeaderPb) GetDeltaStateDigest

func (m *BlockHeaderPb) GetDeltaStateDigest() []byte

func (*BlockHeaderPb) GetHeight

func (m *BlockHeaderPb) GetHeight() uint64

func (*BlockHeaderPb) GetPrevBlockHash

func (m *BlockHeaderPb) GetPrevBlockHash() []byte

func (*BlockHeaderPb) GetPubkey

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

func (*BlockHeaderPb) GetReceiptRoot

func (m *BlockHeaderPb) GetReceiptRoot() []byte

func (*BlockHeaderPb) GetReserved

func (m *BlockHeaderPb) GetReserved() []byte

func (*BlockHeaderPb) GetSignature

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

func (*BlockHeaderPb) GetStateRoot

func (m *BlockHeaderPb) GetStateRoot() []byte

func (*BlockHeaderPb) GetTimestamp

func (m *BlockHeaderPb) GetTimestamp() *timestamp.Timestamp

func (*BlockHeaderPb) GetTxRoot

func (m *BlockHeaderPb) GetTxRoot() []byte

func (*BlockHeaderPb) GetVersion

func (m *BlockHeaderPb) GetVersion() uint32

func (*BlockHeaderPb) ProtoMessage

func (*BlockHeaderPb) ProtoMessage()

func (*BlockHeaderPb) Reset

func (m *BlockHeaderPb) Reset()

func (*BlockHeaderPb) String

func (m *BlockHeaderPb) String() string

func (*BlockHeaderPb) XXX_DiscardUnknown

func (m *BlockHeaderPb) XXX_DiscardUnknown()

func (*BlockHeaderPb) XXX_Marshal

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

func (*BlockHeaderPb) XXX_Merge

func (dst *BlockHeaderPb) XXX_Merge(src proto.Message)

func (*BlockHeaderPb) XXX_Size

func (m *BlockHeaderPb) XXX_Size() int

func (*BlockHeaderPb) XXX_Unmarshal

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

type BlockIndex

type BlockIndex struct {
	Start                uint64   `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End                  uint64   `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	Offset               []uint32 `protobuf:"varint,3,rep,packed,name=offset,proto3" json:"offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

index of block raw data file

func (*BlockIndex) Descriptor

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

func (*BlockIndex) GetEnd

func (m *BlockIndex) GetEnd() uint64

func (*BlockIndex) GetOffset

func (m *BlockIndex) GetOffset() []uint32

func (*BlockIndex) GetStart

func (m *BlockIndex) GetStart() uint64

func (*BlockIndex) ProtoMessage

func (*BlockIndex) ProtoMessage()

func (*BlockIndex) Reset

func (m *BlockIndex) Reset()

func (*BlockIndex) String

func (m *BlockIndex) String() string

func (*BlockIndex) XXX_DiscardUnknown

func (m *BlockIndex) XXX_DiscardUnknown()

func (*BlockIndex) XXX_Marshal

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

func (*BlockIndex) XXX_Merge

func (dst *BlockIndex) XXX_Merge(src proto.Message)

func (*BlockIndex) XXX_Size

func (m *BlockIndex) XXX_Size() int

func (*BlockIndex) XXX_Unmarshal

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

type BlockPb

type BlockPb struct {
	Header               *BlockHeaderPb `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Actions              []*ActionPb    `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	Footer               *BlockFooterPb `protobuf:"bytes,3,opt,name=footer,proto3" json:"footer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

block consists of header followed by transactions hash of current block can be computed from header hence not stored

func (*BlockPb) Descriptor

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

func (*BlockPb) GetActions

func (m *BlockPb) GetActions() []*ActionPb

func (*BlockPb) GetFooter

func (m *BlockPb) GetFooter() *BlockFooterPb

func (*BlockPb) GetHeader

func (m *BlockPb) GetHeader() *BlockHeaderPb

func (*BlockPb) ProtoMessage

func (*BlockPb) ProtoMessage()

func (*BlockPb) Reset

func (m *BlockPb) Reset()

func (*BlockPb) String

func (m *BlockPb) String() string

func (*BlockPb) XXX_DiscardUnknown

func (m *BlockPb) XXX_DiscardUnknown()

func (*BlockPb) XXX_Marshal

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

func (*BlockPb) XXX_Merge

func (dst *BlockPb) XXX_Merge(src proto.Message)

func (*BlockPb) XXX_Size

func (m *BlockPb) XXX_Size() int

func (*BlockPb) XXX_Unmarshal

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

type BlockSync

type BlockSync struct {
	Start                uint64   `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	End                  uint64   `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockSync) Descriptor

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

func (*BlockSync) GetEnd

func (m *BlockSync) GetEnd() uint64

func (*BlockSync) GetStart

func (m *BlockSync) GetStart() uint64

func (*BlockSync) ProtoMessage

func (*BlockSync) ProtoMessage()

func (*BlockSync) Reset

func (m *BlockSync) Reset()

func (*BlockSync) String

func (m *BlockSync) String() string

func (*BlockSync) XXX_DiscardUnknown

func (m *BlockSync) XXX_DiscardUnknown()

func (*BlockSync) XXX_Marshal

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

func (*BlockSync) XXX_Merge

func (dst *BlockSync) XXX_Merge(src proto.Message)

func (*BlockSync) XXX_Size

func (m *BlockSync) XXX_Size() int

func (*BlockSync) XXX_Unmarshal

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

type Candidate

type Candidate struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Votes                []byte   `protobuf:"bytes,2,opt,name=votes,proto3" json:"votes,omitempty"`
	PubKey               []byte   `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	CreationHeight       uint64   `protobuf:"varint,4,opt,name=creationHeight,proto3" json:"creationHeight,omitempty"`
	LastUpdateHeight     uint64   `protobuf:"varint,5,opt,name=lastUpdateHeight,proto3" json:"lastUpdateHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Candidates and list of candidates

func (*Candidate) Descriptor

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

func (*Candidate) GetAddress

func (m *Candidate) GetAddress() string

func (*Candidate) GetCreationHeight

func (m *Candidate) GetCreationHeight() uint64

func (*Candidate) GetLastUpdateHeight

func (m *Candidate) GetLastUpdateHeight() uint64

func (*Candidate) GetPubKey

func (m *Candidate) GetPubKey() []byte

func (*Candidate) GetVotes

func (m *Candidate) GetVotes() []byte

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) Reset

func (m *Candidate) Reset()

func (*Candidate) String

func (m *Candidate) String() string

func (*Candidate) XXX_DiscardUnknown

func (m *Candidate) XXX_DiscardUnknown()

func (*Candidate) XXX_Marshal

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

func (*Candidate) XXX_Merge

func (dst *Candidate) XXX_Merge(src proto.Message)

func (*Candidate) XXX_Size

func (m *Candidate) XXX_Size() int

func (*Candidate) XXX_Unmarshal

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

type CandidateList

type CandidateList struct {
	Candidates           []*Candidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*CandidateList) Descriptor

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

func (*CandidateList) GetCandidates

func (m *CandidateList) GetCandidates() []*Candidate

func (*CandidateList) ProtoMessage

func (*CandidateList) ProtoMessage()

func (*CandidateList) Reset

func (m *CandidateList) Reset()

func (*CandidateList) String

func (m *CandidateList) String() string

func (*CandidateList) XXX_DiscardUnknown

func (m *CandidateList) XXX_DiscardUnknown()

func (*CandidateList) XXX_Marshal

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

func (*CandidateList) XXX_Merge

func (dst *CandidateList) XXX_Merge(src proto.Message)

func (*CandidateList) XXX_Size

func (m *CandidateList) XXX_Size() int

func (*CandidateList) XXX_Unmarshal

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

type ClaimFromRewardingFund

type ClaimFromRewardingFund struct {
	Amount               []byte   `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClaimFromRewardingFund) Descriptor

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

func (*ClaimFromRewardingFund) GetAmount

func (m *ClaimFromRewardingFund) GetAmount() []byte

func (*ClaimFromRewardingFund) GetData

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

func (*ClaimFromRewardingFund) ProtoMessage

func (*ClaimFromRewardingFund) ProtoMessage()

func (*ClaimFromRewardingFund) Reset

func (m *ClaimFromRewardingFund) Reset()

func (*ClaimFromRewardingFund) String

func (m *ClaimFromRewardingFund) String() string

func (*ClaimFromRewardingFund) XXX_DiscardUnknown

func (m *ClaimFromRewardingFund) XXX_DiscardUnknown()

func (*ClaimFromRewardingFund) XXX_Marshal

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

func (*ClaimFromRewardingFund) XXX_Merge

func (dst *ClaimFromRewardingFund) XXX_Merge(src proto.Message)

func (*ClaimFromRewardingFund) XXX_Size

func (m *ClaimFromRewardingFund) XXX_Size() int

func (*ClaimFromRewardingFund) XXX_Unmarshal

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

type ConsensusPb

type ConsensusPb struct {
	Height               uint64                           `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                uint32                           `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type                 ConsensusPb_ConsensusMessageType `protobuf:"varint,3,opt,name=type,proto3,enum=iproto.ConsensusPb_ConsensusMessageType" json:"type,omitempty"`
	Timestamp            *timestamp.Timestamp             `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Data                 []byte                           `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

func (*ConsensusPb) Descriptor

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

func (*ConsensusPb) GetData

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

func (*ConsensusPb) GetHeight

func (m *ConsensusPb) GetHeight() uint64

func (*ConsensusPb) GetRound

func (m *ConsensusPb) GetRound() uint32

func (*ConsensusPb) GetTimestamp

func (m *ConsensusPb) GetTimestamp() *timestamp.Timestamp

func (*ConsensusPb) GetType

func (*ConsensusPb) ProtoMessage

func (*ConsensusPb) ProtoMessage()

func (*ConsensusPb) Reset

func (m *ConsensusPb) Reset()

func (*ConsensusPb) String

func (m *ConsensusPb) String() string

func (*ConsensusPb) XXX_DiscardUnknown

func (m *ConsensusPb) XXX_DiscardUnknown()

func (*ConsensusPb) XXX_Marshal

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

func (*ConsensusPb) XXX_Merge

func (dst *ConsensusPb) XXX_Merge(src proto.Message)

func (*ConsensusPb) XXX_Size

func (m *ConsensusPb) XXX_Size() int

func (*ConsensusPb) XXX_Unmarshal

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

type ConsensusPb_ConsensusMessageType

type ConsensusPb_ConsensusMessageType int32
const (
	ConsensusPb_PROPOSAL    ConsensusPb_ConsensusMessageType = 0
	ConsensusPb_ENDORSEMENT ConsensusPb_ConsensusMessageType = 1
)

func (ConsensusPb_ConsensusMessageType) EnumDescriptor

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

func (ConsensusPb_ConsensusMessageType) String

type CreateDepositPb

type CreateDepositPb struct {
	ChainID              uint32   `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Amount               []byte   `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Recipient            string   `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateDepositPb) Descriptor

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

func (*CreateDepositPb) GetAmount

func (m *CreateDepositPb) GetAmount() []byte

func (*CreateDepositPb) GetChainID

func (m *CreateDepositPb) GetChainID() uint32

func (*CreateDepositPb) GetRecipient

func (m *CreateDepositPb) GetRecipient() string

func (*CreateDepositPb) ProtoMessage

func (*CreateDepositPb) ProtoMessage()

func (*CreateDepositPb) Reset

func (m *CreateDepositPb) Reset()

func (*CreateDepositPb) String

func (m *CreateDepositPb) String() string

func (*CreateDepositPb) XXX_DiscardUnknown

func (m *CreateDepositPb) XXX_DiscardUnknown()

func (*CreateDepositPb) XXX_Marshal

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

func (*CreateDepositPb) XXX_Merge

func (dst *CreateDepositPb) XXX_Merge(src proto.Message)

func (*CreateDepositPb) XXX_Size

func (m *CreateDepositPb) XXX_Size() int

func (*CreateDepositPb) XXX_Unmarshal

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

type CreatePlumChainPb

type CreatePlumChainPb struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

plum main chain APIs

func (*CreatePlumChainPb) Descriptor

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

func (*CreatePlumChainPb) ProtoMessage

func (*CreatePlumChainPb) ProtoMessage()

func (*CreatePlumChainPb) Reset

func (m *CreatePlumChainPb) Reset()

func (*CreatePlumChainPb) String

func (m *CreatePlumChainPb) String() string

func (*CreatePlumChainPb) XXX_DiscardUnknown

func (m *CreatePlumChainPb) XXX_DiscardUnknown()

func (*CreatePlumChainPb) XXX_Marshal

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

func (*CreatePlumChainPb) XXX_Merge

func (dst *CreatePlumChainPb) XXX_Merge(src proto.Message)

func (*CreatePlumChainPb) XXX_Size

func (m *CreatePlumChainPb) XXX_Size() int

func (*CreatePlumChainPb) XXX_Unmarshal

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

type DepositToRewardingFund

type DepositToRewardingFund struct {
	Amount               []byte   `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DepositToRewardingFund) Descriptor

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

func (*DepositToRewardingFund) GetAmount

func (m *DepositToRewardingFund) GetAmount() []byte

func (*DepositToRewardingFund) GetData

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

func (*DepositToRewardingFund) ProtoMessage

func (*DepositToRewardingFund) ProtoMessage()

func (*DepositToRewardingFund) Reset

func (m *DepositToRewardingFund) Reset()

func (*DepositToRewardingFund) String

func (m *DepositToRewardingFund) String() string

func (*DepositToRewardingFund) XXX_DiscardUnknown

func (m *DepositToRewardingFund) XXX_DiscardUnknown()

func (*DepositToRewardingFund) XXX_Marshal

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

func (*DepositToRewardingFund) XXX_Merge

func (dst *DepositToRewardingFund) XXX_Merge(src proto.Message)

func (*DepositToRewardingFund) XXX_Size

func (m *DepositToRewardingFund) XXX_Size() int

func (*DepositToRewardingFund) XXX_Unmarshal

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

type Endorsement

type Endorsement struct {
	Height               uint64                         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                uint32                         `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	BlockHash            []byte                         `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Topic                Endorsement_ConsensusVoteTopic `protobuf:"varint,4,opt,name=topic,proto3,enum=iproto.Endorsement_ConsensusVoteTopic" json:"topic,omitempty"`
	Endorser             string                         `protobuf:"bytes,5,opt,name=endorser,proto3" json:"endorser,omitempty"`
	EndorserPubKey       []byte                         `protobuf:"bytes,6,opt,name=endorserPubKey,proto3" json:"endorserPubKey,omitempty"`
	Decision             bool                           `protobuf:"varint,7,opt,name=decision,proto3" json:"decision,omitempty"`
	Signature            []byte                         `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

corresponding to prepare and pre-prepare phase in view change protocol

func (*Endorsement) Descriptor

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

func (*Endorsement) GetBlockHash

func (m *Endorsement) GetBlockHash() []byte

func (*Endorsement) GetDecision

func (m *Endorsement) GetDecision() bool

func (*Endorsement) GetEndorser

func (m *Endorsement) GetEndorser() string

func (*Endorsement) GetEndorserPubKey

func (m *Endorsement) GetEndorserPubKey() []byte

func (*Endorsement) GetHeight

func (m *Endorsement) GetHeight() uint64

func (*Endorsement) GetRound

func (m *Endorsement) GetRound() uint32

func (*Endorsement) GetSignature

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

func (*Endorsement) GetTopic

func (*Endorsement) ProtoMessage

func (*Endorsement) ProtoMessage()

func (*Endorsement) Reset

func (m *Endorsement) Reset()

func (*Endorsement) String

func (m *Endorsement) String() string

func (*Endorsement) XXX_DiscardUnknown

func (m *Endorsement) XXX_DiscardUnknown()

func (*Endorsement) XXX_Marshal

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

func (*Endorsement) XXX_Merge

func (dst *Endorsement) XXX_Merge(src proto.Message)

func (*Endorsement) XXX_Size

func (m *Endorsement) XXX_Size() int

func (*Endorsement) XXX_Unmarshal

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

type EndorsementSet

type EndorsementSet struct {
	BlockHash            []byte         `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Round                uint32         `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Endorsements         []*Endorsement `protobuf:"bytes,3,rep,name=endorsements,proto3" json:"endorsements,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*EndorsementSet) Descriptor

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

func (*EndorsementSet) GetBlockHash

func (m *EndorsementSet) GetBlockHash() []byte

func (*EndorsementSet) GetEndorsements

func (m *EndorsementSet) GetEndorsements() []*Endorsement

func (*EndorsementSet) GetRound

func (m *EndorsementSet) GetRound() uint32

func (*EndorsementSet) ProtoMessage

func (*EndorsementSet) ProtoMessage()

func (*EndorsementSet) Reset

func (m *EndorsementSet) Reset()

func (*EndorsementSet) String

func (m *EndorsementSet) String() string

func (*EndorsementSet) XXX_DiscardUnknown

func (m *EndorsementSet) XXX_DiscardUnknown()

func (*EndorsementSet) XXX_Marshal

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

func (*EndorsementSet) XXX_Merge

func (dst *EndorsementSet) XXX_Merge(src proto.Message)

func (*EndorsementSet) XXX_Size

func (m *EndorsementSet) XXX_Size() int

func (*EndorsementSet) XXX_Unmarshal

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

type Endorsement_ConsensusVoteTopic

type Endorsement_ConsensusVoteTopic int32
const (
	Endorsement_PROPOSAL Endorsement_ConsensusVoteTopic = 0
	Endorsement_LOCK     Endorsement_ConsensusVoteTopic = 1
	Endorsement_COMMIT   Endorsement_ConsensusVoteTopic = 2
)

func (Endorsement_ConsensusVoteTopic) EnumDescriptor

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

func (Endorsement_ConsensusVoteTopic) String

type ExecutionPb

type ExecutionPb struct {
	Amount               []byte   `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Contract             string   `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	Data                 []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExecutionPb) Descriptor

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

func (*ExecutionPb) GetAmount

func (m *ExecutionPb) GetAmount() []byte

func (*ExecutionPb) GetContract

func (m *ExecutionPb) GetContract() string

func (*ExecutionPb) GetData

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

func (*ExecutionPb) ProtoMessage

func (*ExecutionPb) ProtoMessage()

func (*ExecutionPb) Reset

func (m *ExecutionPb) Reset()

func (*ExecutionPb) String

func (m *ExecutionPb) String() string

func (*ExecutionPb) XXX_DiscardUnknown

func (m *ExecutionPb) XXX_DiscardUnknown()

func (*ExecutionPb) XXX_Marshal

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

func (*ExecutionPb) XXX_Merge

func (dst *ExecutionPb) XXX_Merge(src proto.Message)

func (*ExecutionPb) XXX_Size

func (m *ExecutionPb) XXX_Size() int

func (*ExecutionPb) XXX_Unmarshal

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

type GrantReward

type GrantReward struct {
	Type                 RewardType `protobuf:"varint,1,opt,name=type,proto3,enum=iproto.RewardType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GrantReward) Descriptor

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

func (*GrantReward) GetType

func (m *GrantReward) GetType() RewardType

func (*GrantReward) ProtoMessage

func (*GrantReward) ProtoMessage()

func (*GrantReward) Reset

func (m *GrantReward) Reset()

func (*GrantReward) String

func (m *GrantReward) String() string

func (*GrantReward) XXX_DiscardUnknown

func (m *GrantReward) XXX_DiscardUnknown()

func (*GrantReward) XXX_Marshal

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

func (*GrantReward) XXX_Merge

func (dst *GrantReward) XXX_Merge(src proto.Message)

func (*GrantReward) XXX_Size

func (m *GrantReward) XXX_Size() int

func (*GrantReward) XXX_Unmarshal

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

type LogPb

type LogPb struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Topics               [][]byte `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	Data                 []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	BlockNumber          uint64   `protobuf:"varint,4,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
	TxnHash              []byte   `protobuf:"bytes,5,opt,name=txnHash,proto3" json:"txnHash,omitempty"`
	BlockHash            []byte   `protobuf:"bytes,6,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Index                uint32   `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogPb) Descriptor

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

func (*LogPb) GetAddress

func (m *LogPb) GetAddress() string

func (*LogPb) GetBlockHash

func (m *LogPb) GetBlockHash() []byte

func (*LogPb) GetBlockNumber

func (m *LogPb) GetBlockNumber() uint64

func (*LogPb) GetData

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

func (*LogPb) GetIndex

func (m *LogPb) GetIndex() uint32

func (*LogPb) GetTopics

func (m *LogPb) GetTopics() [][]byte

func (*LogPb) GetTxnHash

func (m *LogPb) GetTxnHash() []byte

func (*LogPb) ProtoMessage

func (*LogPb) ProtoMessage()

func (*LogPb) Reset

func (m *LogPb) Reset()

func (*LogPb) String

func (m *LogPb) String() string

func (*LogPb) XXX_DiscardUnknown

func (m *LogPb) XXX_DiscardUnknown()

func (*LogPb) XXX_Marshal

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

func (*LogPb) XXX_Merge

func (dst *LogPb) XXX_Merge(src proto.Message)

func (*LogPb) XXX_Size

func (m *LogPb) XXX_Size() int

func (*LogPb) XXX_Unmarshal

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

type MerkleRoot

type MerkleRoot struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MerkleRoot) Descriptor

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

func (*MerkleRoot) GetName

func (m *MerkleRoot) GetName() string

func (*MerkleRoot) GetValue

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

func (*MerkleRoot) ProtoMessage

func (*MerkleRoot) ProtoMessage()

func (*MerkleRoot) Reset

func (m *MerkleRoot) Reset()

func (*MerkleRoot) String

func (m *MerkleRoot) String() string

func (*MerkleRoot) XXX_DiscardUnknown

func (m *MerkleRoot) XXX_DiscardUnknown()

func (*MerkleRoot) XXX_Marshal

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

func (*MerkleRoot) XXX_Merge

func (dst *MerkleRoot) XXX_Merge(src proto.Message)

func (*MerkleRoot) XXX_Size

func (m *MerkleRoot) XXX_Size() int

func (*MerkleRoot) XXX_Unmarshal

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

type PlumChallengeExit

type PlumChallengeExit struct {
	SubChainAddress              string   `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	CoinID                       uint64   `protobuf:"varint,2,opt,name=coinID,proto3" json:"coinID,omitempty"`
	ChallengeTransfer            []byte   `protobuf:"bytes,3,opt,name=challengeTransfer,proto3" json:"challengeTransfer,omitempty"`
	ChallengeTransferBlockProof  []byte   `protobuf:"bytes,4,opt,name=challengeTransferBlockProof,proto3" json:"challengeTransferBlockProof,omitempty"`
	ChallengeTransferBlockHeight uint64   `protobuf:"varint,5,opt,name=challengeTransferBlockHeight,proto3" json:"challengeTransferBlockHeight,omitempty"`
	XXX_NoUnkeyedLiteral         struct{} `json:"-"`
	XXX_unrecognized             []byte   `json:"-"`
	XXX_sizecache                int32    `json:"-"`
}

func (*PlumChallengeExit) Descriptor

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

func (*PlumChallengeExit) GetChallengeTransfer

func (m *PlumChallengeExit) GetChallengeTransfer() []byte

func (*PlumChallengeExit) GetChallengeTransferBlockHeight

func (m *PlumChallengeExit) GetChallengeTransferBlockHeight() uint64

func (*PlumChallengeExit) GetChallengeTransferBlockProof

func (m *PlumChallengeExit) GetChallengeTransferBlockProof() []byte

func (*PlumChallengeExit) GetCoinID

func (m *PlumChallengeExit) GetCoinID() uint64

func (*PlumChallengeExit) GetSubChainAddress

func (m *PlumChallengeExit) GetSubChainAddress() string

func (*PlumChallengeExit) ProtoMessage

func (*PlumChallengeExit) ProtoMessage()

func (*PlumChallengeExit) Reset

func (m *PlumChallengeExit) Reset()

func (*PlumChallengeExit) String

func (m *PlumChallengeExit) String() string

func (*PlumChallengeExit) XXX_DiscardUnknown

func (m *PlumChallengeExit) XXX_DiscardUnknown()

func (*PlumChallengeExit) XXX_Marshal

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

func (*PlumChallengeExit) XXX_Merge

func (dst *PlumChallengeExit) XXX_Merge(src proto.Message)

func (*PlumChallengeExit) XXX_Size

func (m *PlumChallengeExit) XXX_Size() int

func (*PlumChallengeExit) XXX_Unmarshal

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

type PlumCreateDepositPb

type PlumCreateDepositPb struct {
	SubChainAddress      string   `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	Amount               []byte   `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Recipient            string   `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlumCreateDepositPb) Descriptor

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

func (*PlumCreateDepositPb) GetAmount

func (m *PlumCreateDepositPb) GetAmount() []byte

func (*PlumCreateDepositPb) GetRecipient

func (m *PlumCreateDepositPb) GetRecipient() string

func (*PlumCreateDepositPb) GetSubChainAddress

func (m *PlumCreateDepositPb) GetSubChainAddress() string

func (*PlumCreateDepositPb) ProtoMessage

func (*PlumCreateDepositPb) ProtoMessage()

func (*PlumCreateDepositPb) Reset

func (m *PlumCreateDepositPb) Reset()

func (*PlumCreateDepositPb) String

func (m *PlumCreateDepositPb) String() string

func (*PlumCreateDepositPb) XXX_DiscardUnknown

func (m *PlumCreateDepositPb) XXX_DiscardUnknown()

func (*PlumCreateDepositPb) XXX_Marshal

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

func (*PlumCreateDepositPb) XXX_Merge

func (dst *PlumCreateDepositPb) XXX_Merge(src proto.Message)

func (*PlumCreateDepositPb) XXX_Size

func (m *PlumCreateDepositPb) XXX_Size() int

func (*PlumCreateDepositPb) XXX_Unmarshal

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

type PlumFinalizeExit

type PlumFinalizeExit struct {
	SubChainAddress      string   `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	CoinID               uint64   `protobuf:"varint,2,opt,name=coinID,proto3" json:"coinID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlumFinalizeExit) Descriptor

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

func (*PlumFinalizeExit) GetCoinID

func (m *PlumFinalizeExit) GetCoinID() uint64

func (*PlumFinalizeExit) GetSubChainAddress

func (m *PlumFinalizeExit) GetSubChainAddress() string

func (*PlumFinalizeExit) ProtoMessage

func (*PlumFinalizeExit) ProtoMessage()

func (*PlumFinalizeExit) Reset

func (m *PlumFinalizeExit) Reset()

func (*PlumFinalizeExit) String

func (m *PlumFinalizeExit) String() string

func (*PlumFinalizeExit) XXX_DiscardUnknown

func (m *PlumFinalizeExit) XXX_DiscardUnknown()

func (*PlumFinalizeExit) XXX_Marshal

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

func (*PlumFinalizeExit) XXX_Merge

func (dst *PlumFinalizeExit) XXX_Merge(src proto.Message)

func (*PlumFinalizeExit) XXX_Size

func (m *PlumFinalizeExit) XXX_Size() int

func (*PlumFinalizeExit) XXX_Unmarshal

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

type PlumPutBlockPb

type PlumPutBlockPb struct {
	SubChainAddress      string            `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	Height               uint64            `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Roots                map[string][]byte `` /* 151-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*PlumPutBlockPb) Descriptor

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

func (*PlumPutBlockPb) GetHeight

func (m *PlumPutBlockPb) GetHeight() uint64

func (*PlumPutBlockPb) GetRoots

func (m *PlumPutBlockPb) GetRoots() map[string][]byte

func (*PlumPutBlockPb) GetSubChainAddress

func (m *PlumPutBlockPb) GetSubChainAddress() string

func (*PlumPutBlockPb) ProtoMessage

func (*PlumPutBlockPb) ProtoMessage()

func (*PlumPutBlockPb) Reset

func (m *PlumPutBlockPb) Reset()

func (*PlumPutBlockPb) String

func (m *PlumPutBlockPb) String() string

func (*PlumPutBlockPb) XXX_DiscardUnknown

func (m *PlumPutBlockPb) XXX_DiscardUnknown()

func (*PlumPutBlockPb) XXX_Marshal

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

func (*PlumPutBlockPb) XXX_Merge

func (dst *PlumPutBlockPb) XXX_Merge(src proto.Message)

func (*PlumPutBlockPb) XXX_Size

func (m *PlumPutBlockPb) XXX_Size() int

func (*PlumPutBlockPb) XXX_Unmarshal

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

type PlumResponseChallengeExit

type PlumResponseChallengeExit struct {
	SubChainAddress             string   `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	CoinID                      uint64   `protobuf:"varint,2,opt,name=coinID,proto3" json:"coinID,omitempty"`
	ChallengeTransfer           []byte   `protobuf:"bytes,3,opt,name=challengeTransfer,proto3" json:"challengeTransfer,omitempty"`
	ResponseTransfer            []byte   `protobuf:"bytes,4,opt,name=responseTransfer,proto3" json:"responseTransfer,omitempty"`
	ResponseTransferBlockProof  []byte   `protobuf:"bytes,5,opt,name=responseTransferBlockProof,proto3" json:"responseTransferBlockProof,omitempty"`
	PreviousTransferBlockHeight uint64   `protobuf:"varint,6,opt,name=previousTransferBlockHeight,proto3" json:"previousTransferBlockHeight,omitempty"`
	XXX_NoUnkeyedLiteral        struct{} `json:"-"`
	XXX_unrecognized            []byte   `json:"-"`
	XXX_sizecache               int32    `json:"-"`
}

func (*PlumResponseChallengeExit) Descriptor

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

func (*PlumResponseChallengeExit) GetChallengeTransfer

func (m *PlumResponseChallengeExit) GetChallengeTransfer() []byte

func (*PlumResponseChallengeExit) GetCoinID

func (m *PlumResponseChallengeExit) GetCoinID() uint64

func (*PlumResponseChallengeExit) GetPreviousTransferBlockHeight

func (m *PlumResponseChallengeExit) GetPreviousTransferBlockHeight() uint64

func (*PlumResponseChallengeExit) GetResponseTransfer

func (m *PlumResponseChallengeExit) GetResponseTransfer() []byte

func (*PlumResponseChallengeExit) GetResponseTransferBlockProof

func (m *PlumResponseChallengeExit) GetResponseTransferBlockProof() []byte

func (*PlumResponseChallengeExit) GetSubChainAddress

func (m *PlumResponseChallengeExit) GetSubChainAddress() string

func (*PlumResponseChallengeExit) ProtoMessage

func (*PlumResponseChallengeExit) ProtoMessage()

func (*PlumResponseChallengeExit) Reset

func (m *PlumResponseChallengeExit) Reset()

func (*PlumResponseChallengeExit) String

func (m *PlumResponseChallengeExit) String() string

func (*PlumResponseChallengeExit) XXX_DiscardUnknown

func (m *PlumResponseChallengeExit) XXX_DiscardUnknown()

func (*PlumResponseChallengeExit) XXX_Marshal

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

func (*PlumResponseChallengeExit) XXX_Merge

func (dst *PlumResponseChallengeExit) XXX_Merge(src proto.Message)

func (*PlumResponseChallengeExit) XXX_Size

func (m *PlumResponseChallengeExit) XXX_Size() int

func (*PlumResponseChallengeExit) XXX_Unmarshal

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

type PlumSettleDepositPb

type PlumSettleDepositPb struct {
	CoinID               uint64   `protobuf:"varint,1,opt,name=coinID,proto3" json:"coinID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

plum sub chain APIs

func (*PlumSettleDepositPb) Descriptor

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

func (*PlumSettleDepositPb) GetCoinID

func (m *PlumSettleDepositPb) GetCoinID() uint64

func (*PlumSettleDepositPb) ProtoMessage

func (*PlumSettleDepositPb) ProtoMessage()

func (*PlumSettleDepositPb) Reset

func (m *PlumSettleDepositPb) Reset()

func (*PlumSettleDepositPb) String

func (m *PlumSettleDepositPb) String() string

func (*PlumSettleDepositPb) XXX_DiscardUnknown

func (m *PlumSettleDepositPb) XXX_DiscardUnknown()

func (*PlumSettleDepositPb) XXX_Marshal

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

func (*PlumSettleDepositPb) XXX_Merge

func (dst *PlumSettleDepositPb) XXX_Merge(src proto.Message)

func (*PlumSettleDepositPb) XXX_Size

func (m *PlumSettleDepositPb) XXX_Size() int

func (*PlumSettleDepositPb) XXX_Unmarshal

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

type PlumStartExitPb

type PlumStartExitPb struct {
	SubChainAddress             string   `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	PreviousTransfer            []byte   `protobuf:"bytes,2,opt,name=previousTransfer,proto3" json:"previousTransfer,omitempty"`
	PreviousTransferBlockProof  []byte   `protobuf:"bytes,3,opt,name=previousTransferBlockProof,proto3" json:"previousTransferBlockProof,omitempty"`
	PreviousTransferBlockHeight uint64   `protobuf:"varint,4,opt,name=previousTransferBlockHeight,proto3" json:"previousTransferBlockHeight,omitempty"`
	ExitTransfer                []byte   `protobuf:"bytes,5,opt,name=exitTransfer,proto3" json:"exitTransfer,omitempty"`
	ExitTransferBlockProof      []byte   `protobuf:"bytes,6,opt,name=exitTransferBlockProof,proto3" json:"exitTransferBlockProof,omitempty"`
	ExitTransferBlockHeight     uint64   `protobuf:"varint,7,opt,name=exitTransferBlockHeight,proto3" json:"exitTransferBlockHeight,omitempty"`
	XXX_NoUnkeyedLiteral        struct{} `json:"-"`
	XXX_unrecognized            []byte   `json:"-"`
	XXX_sizecache               int32    `json:"-"`
}

func (*PlumStartExitPb) Descriptor

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

func (*PlumStartExitPb) GetExitTransfer

func (m *PlumStartExitPb) GetExitTransfer() []byte

func (*PlumStartExitPb) GetExitTransferBlockHeight

func (m *PlumStartExitPb) GetExitTransferBlockHeight() uint64

func (*PlumStartExitPb) GetExitTransferBlockProof

func (m *PlumStartExitPb) GetExitTransferBlockProof() []byte

func (*PlumStartExitPb) GetPreviousTransfer

func (m *PlumStartExitPb) GetPreviousTransfer() []byte

func (*PlumStartExitPb) GetPreviousTransferBlockHeight

func (m *PlumStartExitPb) GetPreviousTransferBlockHeight() uint64

func (*PlumStartExitPb) GetPreviousTransferBlockProof

func (m *PlumStartExitPb) GetPreviousTransferBlockProof() []byte

func (*PlumStartExitPb) GetSubChainAddress

func (m *PlumStartExitPb) GetSubChainAddress() string

func (*PlumStartExitPb) ProtoMessage

func (*PlumStartExitPb) ProtoMessage()

func (*PlumStartExitPb) Reset

func (m *PlumStartExitPb) Reset()

func (*PlumStartExitPb) String

func (m *PlumStartExitPb) String() string

func (*PlumStartExitPb) XXX_DiscardUnknown

func (m *PlumStartExitPb) XXX_DiscardUnknown()

func (*PlumStartExitPb) XXX_Marshal

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

func (*PlumStartExitPb) XXX_Merge

func (dst *PlumStartExitPb) XXX_Merge(src proto.Message)

func (*PlumStartExitPb) XXX_Size

func (m *PlumStartExitPb) XXX_Size() int

func (*PlumStartExitPb) XXX_Unmarshal

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

type PlumTransferPb

type PlumTransferPb struct {
	CoinID               uint64   `protobuf:"varint,1,opt,name=coinID,proto3" json:"coinID,omitempty"`
	Denomination         []byte   `protobuf:"bytes,2,opt,name=denomination,proto3" json:"denomination,omitempty"`
	Owner                string   `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	Recipient            string   `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlumTransferPb) Descriptor

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

func (*PlumTransferPb) GetCoinID

func (m *PlumTransferPb) GetCoinID() uint64

func (*PlumTransferPb) GetDenomination

func (m *PlumTransferPb) GetDenomination() []byte

func (*PlumTransferPb) GetOwner

func (m *PlumTransferPb) GetOwner() string

func (*PlumTransferPb) GetRecipient

func (m *PlumTransferPb) GetRecipient() string

func (*PlumTransferPb) ProtoMessage

func (*PlumTransferPb) ProtoMessage()

func (*PlumTransferPb) Reset

func (m *PlumTransferPb) Reset()

func (*PlumTransferPb) String

func (m *PlumTransferPb) String() string

func (*PlumTransferPb) XXX_DiscardUnknown

func (m *PlumTransferPb) XXX_DiscardUnknown()

func (*PlumTransferPb) XXX_Marshal

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

func (*PlumTransferPb) XXX_Merge

func (dst *PlumTransferPb) XXX_Merge(src proto.Message)

func (*PlumTransferPb) XXX_Size

func (m *PlumTransferPb) XXX_Size() int

func (*PlumTransferPb) XXX_Unmarshal

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

type PutBlockPb

type PutBlockPb struct {
	SubChainAddress      string        `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	Height               uint64        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Roots                []*MerkleRoot `protobuf:"bytes,3,rep,name=roots,proto3" json:"roots,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*PutBlockPb) Descriptor

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

func (*PutBlockPb) GetHeight

func (m *PutBlockPb) GetHeight() uint64

func (*PutBlockPb) GetRoots

func (m *PutBlockPb) GetRoots() []*MerkleRoot

func (*PutBlockPb) GetSubChainAddress

func (m *PutBlockPb) GetSubChainAddress() string

func (*PutBlockPb) ProtoMessage

func (*PutBlockPb) ProtoMessage()

func (*PutBlockPb) Reset

func (m *PutBlockPb) Reset()

func (*PutBlockPb) String

func (m *PutBlockPb) String() string

func (*PutBlockPb) XXX_DiscardUnknown

func (m *PutBlockPb) XXX_DiscardUnknown()

func (*PutBlockPb) XXX_Marshal

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

func (*PutBlockPb) XXX_Merge

func (dst *PutBlockPb) XXX_Merge(src proto.Message)

func (*PutBlockPb) XXX_Size

func (m *PutBlockPb) XXX_Size() int

func (*PutBlockPb) XXX_Unmarshal

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

type ReceiptPb

type ReceiptPb struct {
	ReturnValue          []byte   `protobuf:"bytes,1,opt,name=returnValue,proto3" json:"returnValue,omitempty"`
	Status               uint64   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	ActHash              []byte   `protobuf:"bytes,3,opt,name=actHash,proto3" json:"actHash,omitempty"`
	GasConsumed          uint64   `protobuf:"varint,4,opt,name=gasConsumed,proto3" json:"gasConsumed,omitempty"`
	ContractAddress      string   `protobuf:"bytes,5,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"`
	Logs                 []*LogPb `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReceiptPb) Descriptor

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

func (*ReceiptPb) GetActHash

func (m *ReceiptPb) GetActHash() []byte

func (*ReceiptPb) GetContractAddress

func (m *ReceiptPb) GetContractAddress() string

func (*ReceiptPb) GetGasConsumed

func (m *ReceiptPb) GetGasConsumed() uint64

func (*ReceiptPb) GetLogs

func (m *ReceiptPb) GetLogs() []*LogPb

func (*ReceiptPb) GetReturnValue

func (m *ReceiptPb) GetReturnValue() []byte

func (*ReceiptPb) GetStatus

func (m *ReceiptPb) GetStatus() uint64

func (*ReceiptPb) ProtoMessage

func (*ReceiptPb) ProtoMessage()

func (*ReceiptPb) Reset

func (m *ReceiptPb) Reset()

func (*ReceiptPb) String

func (m *ReceiptPb) String() string

func (*ReceiptPb) XXX_DiscardUnknown

func (m *ReceiptPb) XXX_DiscardUnknown()

func (*ReceiptPb) XXX_Marshal

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

func (*ReceiptPb) XXX_Merge

func (dst *ReceiptPb) XXX_Merge(src proto.Message)

func (*ReceiptPb) XXX_Size

func (m *ReceiptPb) XXX_Size() int

func (*ReceiptPb) XXX_Unmarshal

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

type Receipts

type Receipts struct {
	Receipts             []*ReceiptPb `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Receipts consists of a collection of recepit

func (*Receipts) Descriptor

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

func (*Receipts) GetReceipts

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

func (*Receipts) ProtoMessage

func (*Receipts) ProtoMessage()

func (*Receipts) Reset

func (m *Receipts) Reset()

func (*Receipts) String

func (m *Receipts) String() string

func (*Receipts) XXX_DiscardUnknown

func (m *Receipts) XXX_DiscardUnknown()

func (*Receipts) XXX_Marshal

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

func (*Receipts) XXX_Merge

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

func (*Receipts) XXX_Size

func (m *Receipts) XXX_Size() int

func (*Receipts) XXX_Unmarshal

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

type RewardType

type RewardType int32
const (
	RewardType_Block RewardType = 0
	RewardType_Epoch RewardType = 1
)

func (RewardType) EnumDescriptor

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

func (RewardType) String

func (x RewardType) String() string

type SetReward

type SetReward struct {
	Amount               []byte     `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Data                 []byte     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Type                 RewardType `protobuf:"varint,3,opt,name=type,proto3,enum=iproto.RewardType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*SetReward) Descriptor

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

func (*SetReward) GetAmount

func (m *SetReward) GetAmount() []byte

func (*SetReward) GetData

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

func (*SetReward) GetType

func (m *SetReward) GetType() RewardType

func (*SetReward) ProtoMessage

func (*SetReward) ProtoMessage()

func (*SetReward) Reset

func (m *SetReward) Reset()

func (*SetReward) String

func (m *SetReward) String() string

func (*SetReward) XXX_DiscardUnknown

func (m *SetReward) XXX_DiscardUnknown()

func (*SetReward) XXX_Marshal

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

func (*SetReward) XXX_Merge

func (dst *SetReward) XXX_Merge(src proto.Message)

func (*SetReward) XXX_Size

func (m *SetReward) XXX_Size() int

func (*SetReward) XXX_Unmarshal

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

type SettleDepositPb

type SettleDepositPb struct {
	Amount               []byte   `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Recipient            string   `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Index                uint64   `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SettleDepositPb) Descriptor

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

func (*SettleDepositPb) GetAmount

func (m *SettleDepositPb) GetAmount() []byte

func (*SettleDepositPb) GetIndex

func (m *SettleDepositPb) GetIndex() uint64

func (*SettleDepositPb) GetRecipient

func (m *SettleDepositPb) GetRecipient() string

func (*SettleDepositPb) ProtoMessage

func (*SettleDepositPb) ProtoMessage()

func (*SettleDepositPb) Reset

func (m *SettleDepositPb) Reset()

func (*SettleDepositPb) String

func (m *SettleDepositPb) String() string

func (*SettleDepositPb) XXX_DiscardUnknown

func (m *SettleDepositPb) XXX_DiscardUnknown()

func (*SettleDepositPb) XXX_Marshal

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

func (*SettleDepositPb) XXX_Merge

func (dst *SettleDepositPb) XXX_Merge(src proto.Message)

func (*SettleDepositPb) XXX_Size

func (m *SettleDepositPb) XXX_Size() int

func (*SettleDepositPb) XXX_Unmarshal

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

type StartSubChainPb

type StartSubChainPb struct {
	// TODO: chainID chould be assigned by system and returned via a receipt
	ChainID              uint32   `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	SecurityDeposit      []byte   `protobuf:"bytes,2,opt,name=securityDeposit,proto3" json:"securityDeposit,omitempty"`
	OperationDeposit     []byte   `protobuf:"bytes,3,opt,name=operationDeposit,proto3" json:"operationDeposit,omitempty"`
	StartHeight          uint64   `protobuf:"varint,4,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	ParentHeightOffset   uint64   `protobuf:"varint,5,opt,name=parentHeightOffset,proto3" json:"parentHeightOffset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StartSubChainPb) Descriptor

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

func (*StartSubChainPb) GetChainID

func (m *StartSubChainPb) GetChainID() uint32

func (*StartSubChainPb) GetOperationDeposit

func (m *StartSubChainPb) GetOperationDeposit() []byte

func (*StartSubChainPb) GetParentHeightOffset

func (m *StartSubChainPb) GetParentHeightOffset() uint64

func (*StartSubChainPb) GetSecurityDeposit

func (m *StartSubChainPb) GetSecurityDeposit() []byte

func (*StartSubChainPb) GetStartHeight

func (m *StartSubChainPb) GetStartHeight() uint64

func (*StartSubChainPb) ProtoMessage

func (*StartSubChainPb) ProtoMessage()

func (*StartSubChainPb) Reset

func (m *StartSubChainPb) Reset()

func (*StartSubChainPb) String

func (m *StartSubChainPb) String() string

func (*StartSubChainPb) XXX_DiscardUnknown

func (m *StartSubChainPb) XXX_DiscardUnknown()

func (*StartSubChainPb) XXX_Marshal

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

func (*StartSubChainPb) XXX_Merge

func (dst *StartSubChainPb) XXX_Merge(src proto.Message)

func (*StartSubChainPb) XXX_Size

func (m *StartSubChainPb) XXX_Size() int

func (*StartSubChainPb) XXX_Unmarshal

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

type StopSubChainPb

type StopSubChainPb struct {
	ChainID              uint32   `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	StopHeight           uint64   `protobuf:"varint,2,opt,name=stopHeight,proto3" json:"stopHeight,omitempty"`
	SubChainAddress      string   `protobuf:"bytes,3,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StopSubChainPb) Descriptor

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

func (*StopSubChainPb) GetChainID

func (m *StopSubChainPb) GetChainID() uint32

func (*StopSubChainPb) GetStopHeight

func (m *StopSubChainPb) GetStopHeight() uint64

func (*StopSubChainPb) GetSubChainAddress

func (m *StopSubChainPb) GetSubChainAddress() string

func (*StopSubChainPb) ProtoMessage

func (*StopSubChainPb) ProtoMessage()

func (*StopSubChainPb) Reset

func (m *StopSubChainPb) Reset()

func (*StopSubChainPb) String

func (m *StopSubChainPb) String() string

func (*StopSubChainPb) XXX_DiscardUnknown

func (m *StopSubChainPb) XXX_DiscardUnknown()

func (*StopSubChainPb) XXX_Marshal

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

func (*StopSubChainPb) XXX_Merge

func (dst *StopSubChainPb) XXX_Merge(src proto.Message)

func (*StopSubChainPb) XXX_Size

func (m *StopSubChainPb) XXX_Size() int

func (*StopSubChainPb) XXX_Unmarshal

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

type TerminatePlumChainPb

type TerminatePlumChainPb struct {
	SubChainAddress      string   `protobuf:"bytes,1,opt,name=subChainAddress,proto3" json:"subChainAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TerminatePlumChainPb) Descriptor

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

func (*TerminatePlumChainPb) GetSubChainAddress

func (m *TerminatePlumChainPb) GetSubChainAddress() string

func (*TerminatePlumChainPb) ProtoMessage

func (*TerminatePlumChainPb) ProtoMessage()

func (*TerminatePlumChainPb) Reset

func (m *TerminatePlumChainPb) Reset()

func (*TerminatePlumChainPb) String

func (m *TerminatePlumChainPb) String() string

func (*TerminatePlumChainPb) XXX_DiscardUnknown

func (m *TerminatePlumChainPb) XXX_DiscardUnknown()

func (*TerminatePlumChainPb) XXX_Marshal

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

func (*TerminatePlumChainPb) XXX_Merge

func (dst *TerminatePlumChainPb) XXX_Merge(src proto.Message)

func (*TerminatePlumChainPb) XXX_Size

func (m *TerminatePlumChainPb) XXX_Size() int

func (*TerminatePlumChainPb) XXX_Unmarshal

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

type TestPayload

type TestPayload struct {
	MsgBody              []byte   `protobuf:"bytes,1,opt,name=msg_body,json=msgBody,proto3" json:"msg_body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

////////////////////////////////////////////////////////////////////////////////////////////////// BELOW ARE DEFINITIONS FOR TEST-ONLY MESSAGES! //////////////////////////////////////////////////////////////////////////////////////////////////

func (*TestPayload) Descriptor

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

func (*TestPayload) GetMsgBody

func (m *TestPayload) GetMsgBody() []byte

func (*TestPayload) ProtoMessage

func (*TestPayload) ProtoMessage()

func (*TestPayload) Reset

func (m *TestPayload) Reset()

func (*TestPayload) String

func (m *TestPayload) String() string

func (*TestPayload) XXX_DiscardUnknown

func (m *TestPayload) XXX_DiscardUnknown()

func (*TestPayload) XXX_Marshal

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

func (*TestPayload) XXX_Merge

func (dst *TestPayload) XXX_Merge(src proto.Message)

func (*TestPayload) XXX_Size

func (m *TestPayload) XXX_Size() int

func (*TestPayload) XXX_Unmarshal

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

type TransferPb

type TransferPb struct {
	// used by state-based model
	Amount               []byte   `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Recipient            string   `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransferPb) Descriptor

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

func (*TransferPb) GetAmount

func (m *TransferPb) GetAmount() []byte

func (*TransferPb) GetPayload

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

func (*TransferPb) GetRecipient

func (m *TransferPb) GetRecipient() string

func (*TransferPb) ProtoMessage

func (*TransferPb) ProtoMessage()

func (*TransferPb) Reset

func (m *TransferPb) Reset()

func (*TransferPb) String

func (m *TransferPb) String() string

func (*TransferPb) XXX_DiscardUnknown

func (m *TransferPb) XXX_DiscardUnknown()

func (*TransferPb) XXX_Marshal

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

func (*TransferPb) XXX_Merge

func (dst *TransferPb) XXX_Merge(src proto.Message)

func (*TransferPb) XXX_Size

func (m *TransferPb) XXX_Size() int

func (*TransferPb) XXX_Unmarshal

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

type VotePb

type VotePb struct {
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	VoteeAddress         string               `protobuf:"bytes,2,opt,name=voteeAddress,proto3" json:"voteeAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*VotePb) Descriptor

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

func (*VotePb) GetTimestamp

func (m *VotePb) GetTimestamp() *timestamp.Timestamp

func (*VotePb) GetVoteeAddress

func (m *VotePb) GetVoteeAddress() string

func (*VotePb) ProtoMessage

func (*VotePb) ProtoMessage()

func (*VotePb) Reset

func (m *VotePb) Reset()

func (*VotePb) String

func (m *VotePb) String() string

func (*VotePb) XXX_DiscardUnknown

func (m *VotePb) XXX_DiscardUnknown()

func (*VotePb) XXX_Marshal

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

func (*VotePb) XXX_Merge

func (dst *VotePb) XXX_Merge(src proto.Message)

func (*VotePb) XXX_Size

func (m *VotePb) XXX_Size() int

func (*VotePb) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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