iproto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 4 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
	// MsgProposeProtoMsgType is for consensus block propose
	MsgProposeProtoMsgType uint32 = 6
	// MsgEndorseProtoMsgType is for consensus endorse
	MsgEndorseProtoMsgType uint32 = 7
	// 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 EndorsePb_ConsensusVoteTopic_name = map[int32]string{
	0: "PROPOSAL",
	1: "LOCK",
	2: "COMMIT",
}
View Source
var EndorsePb_ConsensusVoteTopic_value = map[string]int32{
	"PROPOSAL": 0,
	"LOCK":     1,
	"COMMIT":   2,
}

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_SecretProposal
	//	*ActionPb_SecretWitness
	//	*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
	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) GetCreateDeposit

func (m *ActionPb) GetCreateDeposit() *CreateDepositPb

func (*ActionPb) GetCreatePlumChain

func (m *ActionPb) GetCreatePlumChain() *CreatePlumChainPb

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

func (m *ActionPb) GetSecretProposal() *SecretProposalPb

func (*ActionPb) GetSecretWitness

func (m *ActionPb) GetSecretWitness() *SecretWitnessPb

func (*ActionPb) GetSender

func (m *ActionPb) GetSender() string

func (*ActionPb) GetSenderPubKey

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

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_CreateDeposit

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

type ActionPb_CreatePlumChain

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

type ActionPb_Execution

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

type ActionPb_PlumChallengeExit

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

type ActionPb_PlumCreateDeposit

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

type ActionPb_PlumFinalizeExit

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

type ActionPb_PlumPutBlock

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

type ActionPb_PlumResponseChallengeExit

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

type ActionPb_PlumSettleDeposit

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

type ActionPb_PlumStartExit

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

type ActionPb_PlumTransfer

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

type ActionPb_PutBlock

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

type ActionPb_SecretProposal

type ActionPb_SecretProposal struct {
	SecretProposal *SecretProposalPb `protobuf:"bytes,13,opt,name=secretProposal,proto3,oneof"`
}

type ActionPb_SecretWitness

type ActionPb_SecretWitness struct {
	SecretWitness *SecretWitnessPb `protobuf:"bytes,14,opt,name=secretWitness,proto3,oneof"`
}

type ActionPb_SettleDeposit

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

type ActionPb_StartSubChain

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

type ActionPb_StopSubChain

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

type ActionPb_TerminatePlumChain

type ActionPb_TerminatePlumChain struct {
	TerminatePlumChain *TerminatePlumChainPb `protobuf:"bytes,21,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 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            uint64   `protobuf:"varint,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"`
	ReceiptRoot          []byte   `protobuf:"bytes,8,opt,name=receiptRoot,proto3" json:"receiptRoot,omitempty"`
	Reserved             []byte   `protobuf:"bytes,9,opt,name=reserved,proto3" json:"reserved,omitempty"`
	Signature            []byte   `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"`
	Pubkey               []byte   `protobuf:"bytes,11,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	DkgID                []byte   `protobuf:"bytes,12,opt,name=dkgID,proto3" json:"dkgID,omitempty"`
	DkgPubkey            []byte   `protobuf:"bytes,13,opt,name=dkgPubkey,proto3" json:"dkgPubkey,omitempty"`
	DkgSignature         []byte   `protobuf:"bytes,14,opt,name=dkgSignature,proto3" json:"dkgSignature,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) GetDkgID

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

func (*BlockHeaderPb) GetDkgPubkey

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

func (*BlockHeaderPb) GetDkgSignature

func (m *BlockHeaderPb) GetDkgSignature() []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() uint64

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

type BranchNodePb struct {
	Index                uint32   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Path                 []byte   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BranchNodePb) Descriptor

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

func (*BranchNodePb) GetIndex

func (m *BranchNodePb) GetIndex() uint32

func (*BranchNodePb) GetPath

func (m *BranchNodePb) GetPath() []byte

func (*BranchNodePb) ProtoMessage

func (*BranchNodePb) ProtoMessage()

func (*BranchNodePb) Reset

func (m *BranchNodePb) Reset()

func (*BranchNodePb) String

func (m *BranchNodePb) String() string

func (*BranchNodePb) XXX_DiscardUnknown

func (m *BranchNodePb) XXX_DiscardUnknown()

func (*BranchNodePb) XXX_Marshal

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

func (*BranchNodePb) XXX_Merge

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

func (*BranchNodePb) XXX_Size

func (m *BranchNodePb) XXX_Size() int

func (*BranchNodePb) XXX_Unmarshal

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

type BranchPb

type BranchPb struct {
	Branches             []*BranchNodePb `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*BranchPb) Descriptor

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

func (*BranchPb) GetBranches

func (m *BranchPb) GetBranches() []*BranchNodePb

func (*BranchPb) ProtoMessage

func (*BranchPb) ProtoMessage()

func (*BranchPb) Reset

func (m *BranchPb) Reset()

func (*BranchPb) String

func (m *BranchPb) String() string

func (*BranchPb) XXX_DiscardUnknown

func (m *BranchPb) XXX_DiscardUnknown()

func (*BranchPb) XXX_Marshal

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

func (*BranchPb) XXX_Merge

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

func (*BranchPb) XXX_Size

func (m *BranchPb) XXX_Size() int

func (*BranchPb) XXX_Unmarshal

func (m *BranchPb) 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 CreateDepositPb

type CreateDepositPb 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"`
	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) 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 EndorsePb

type EndorsePb 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                EndorsePb_ConsensusVoteTopic `protobuf:"varint,4,opt,name=topic,proto3,enum=iproto.EndorsePb_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 (*EndorsePb) Descriptor

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

func (*EndorsePb) GetBlockHash

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

func (*EndorsePb) GetDecision

func (m *EndorsePb) GetDecision() bool

func (*EndorsePb) GetEndorser

func (m *EndorsePb) GetEndorser() string

func (*EndorsePb) GetEndorserPubKey

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

func (*EndorsePb) GetHeight

func (m *EndorsePb) GetHeight() uint64

func (*EndorsePb) GetRound

func (m *EndorsePb) GetRound() uint32

func (*EndorsePb) GetSignature

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

func (*EndorsePb) GetTopic

func (*EndorsePb) ProtoMessage

func (*EndorsePb) ProtoMessage()

func (*EndorsePb) Reset

func (m *EndorsePb) Reset()

func (*EndorsePb) String

func (m *EndorsePb) String() string

func (*EndorsePb) XXX_DiscardUnknown

func (m *EndorsePb) XXX_DiscardUnknown()

func (*EndorsePb) XXX_Marshal

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

func (*EndorsePb) XXX_Merge

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

func (*EndorsePb) XXX_Size

func (m *EndorsePb) XXX_Size() int

func (*EndorsePb) XXX_Unmarshal

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

type EndorsePb_ConsensusVoteTopic

type EndorsePb_ConsensusVoteTopic int32
const (
	EndorsePb_PROPOSAL EndorsePb_ConsensusVoteTopic = 0
	EndorsePb_LOCK     EndorsePb_ConsensusVoteTopic = 1
	EndorsePb_COMMIT   EndorsePb_ConsensusVoteTopic = 2
)

func (EndorsePb_ConsensusVoteTopic) EnumDescriptor

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

func (EndorsePb_ConsensusVoteTopic) String

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         []*EndorsePb `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() []*EndorsePb

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 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 LeafPb

type LeafPb struct {
	Ext                  uint32   `protobuf:"varint,1,opt,name=ext,proto3" json:"ext,omitempty"`
	Path                 []byte   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LeafPb) Descriptor

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

func (*LeafPb) GetExt

func (m *LeafPb) GetExt() uint32

func (*LeafPb) GetPath

func (m *LeafPb) GetPath() []byte

func (*LeafPb) GetValue

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

func (*LeafPb) ProtoMessage

func (*LeafPb) ProtoMessage()

func (*LeafPb) Reset

func (m *LeafPb) Reset()

func (*LeafPb) String

func (m *LeafPb) String() string

func (*LeafPb) XXX_DiscardUnknown

func (m *LeafPb) XXX_DiscardUnknown()

func (*LeafPb) XXX_Marshal

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

func (*LeafPb) XXX_Merge

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

func (*LeafPb) XXX_Size

func (m *LeafPb) XXX_Size() int

func (*LeafPb) XXX_Unmarshal

func (m *LeafPb) 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 NodePb

type NodePb struct {
	// Types that are valid to be assigned to Node:
	//	*NodePb_Branch
	//	*NodePb_Leaf
	Node                 isNodePb_Node `protobuf_oneof:"node"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*NodePb) Descriptor

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

func (*NodePb) GetBranch

func (m *NodePb) GetBranch() *BranchPb

func (*NodePb) GetLeaf

func (m *NodePb) GetLeaf() *LeafPb

func (*NodePb) GetNode

func (m *NodePb) GetNode() isNodePb_Node

func (*NodePb) ProtoMessage

func (*NodePb) ProtoMessage()

func (*NodePb) Reset

func (m *NodePb) Reset()

func (*NodePb) String

func (m *NodePb) String() string

func (*NodePb) XXX_DiscardUnknown

func (m *NodePb) XXX_DiscardUnknown()

func (*NodePb) XXX_Marshal

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

func (*NodePb) XXX_Merge

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

func (*NodePb) XXX_OneofFuncs

func (*NodePb) 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 (*NodePb) XXX_Size

func (m *NodePb) XXX_Size() int

func (*NodePb) XXX_Unmarshal

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

type NodePb_Branch

type NodePb_Branch struct {
	Branch *BranchPb `protobuf:"bytes,2,opt,name=branch,proto3,oneof"`
}

type NodePb_Leaf

type NodePb_Leaf struct {
	Leaf *LeafPb `protobuf:"bytes,3,opt,name=leaf,proto3,oneof"`
}

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 ProposePb

type ProposePb struct {
	Proposer             string          `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	Block                *BlockPb        `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	Round                uint32          `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	LockProof            *EndorsementSet `protobuf:"bytes,4,opt,name=lockProof,proto3" json:"lockProof,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

corresponding to pre-prepare pharse in view change protocol

func (*ProposePb) Descriptor

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

func (*ProposePb) GetBlock

func (m *ProposePb) GetBlock() *BlockPb

func (*ProposePb) GetLockProof

func (m *ProposePb) GetLockProof() *EndorsementSet

func (*ProposePb) GetProposer

func (m *ProposePb) GetProposer() string

func (*ProposePb) GetRound

func (m *ProposePb) GetRound() uint32

func (*ProposePb) ProtoMessage

func (*ProposePb) ProtoMessage()

func (*ProposePb) Reset

func (m *ProposePb) Reset()

func (*ProposePb) String

func (m *ProposePb) String() string

func (*ProposePb) XXX_DiscardUnknown

func (m *ProposePb) XXX_DiscardUnknown()

func (*ProposePb) XXX_Marshal

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

func (*ProposePb) XXX_Merge

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

func (*ProposePb) XXX_Size

func (m *ProposePb) XXX_Size() int

func (*ProposePb) XXX_Unmarshal

func (m *ProposePb) 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                map[string][]byte `` /* 151-byte string literal not displayed */
	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() map[string][]byte

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"`
	Hash                 []byte   `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,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) GetContractAddress

func (m *ReceiptPb) GetContractAddress() string

func (*ReceiptPb) GetGasConsumed

func (m *ReceiptPb) GetGasConsumed() uint64

func (*ReceiptPb) GetHash

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

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 SecretProposalPb

type SecretProposalPb struct {
	Recipient            string   `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Secret               []uint32 `protobuf:"varint,2,rep,packed,name=secret,proto3" json:"secret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecretProposalPb) Descriptor

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

func (*SecretProposalPb) GetRecipient

func (m *SecretProposalPb) GetRecipient() string

func (*SecretProposalPb) GetSecret

func (m *SecretProposalPb) GetSecret() []uint32

func (*SecretProposalPb) ProtoMessage

func (*SecretProposalPb) ProtoMessage()

func (*SecretProposalPb) Reset

func (m *SecretProposalPb) Reset()

func (*SecretProposalPb) String

func (m *SecretProposalPb) String() string

func (*SecretProposalPb) XXX_DiscardUnknown

func (m *SecretProposalPb) XXX_DiscardUnknown()

func (*SecretProposalPb) XXX_Marshal

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

func (*SecretProposalPb) XXX_Merge

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

func (*SecretProposalPb) XXX_Size

func (m *SecretProposalPb) XXX_Size() int

func (*SecretProposalPb) XXX_Unmarshal

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

type SecretWitnessPb

type SecretWitnessPb struct {
	Witness              [][]byte `protobuf:"bytes,1,rep,name=witness,proto3" json:"witness,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecretWitnessPb) Descriptor

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

func (*SecretWitnessPb) GetWitness

func (m *SecretWitnessPb) GetWitness() [][]byte

func (*SecretWitnessPb) ProtoMessage

func (*SecretWitnessPb) ProtoMessage()

func (*SecretWitnessPb) Reset

func (m *SecretWitnessPb) Reset()

func (*SecretWitnessPb) String

func (m *SecretWitnessPb) String() string

func (*SecretWitnessPb) XXX_DiscardUnknown

func (m *SecretWitnessPb) XXX_DiscardUnknown()

func (*SecretWitnessPb) XXX_Marshal

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

func (*SecretWitnessPb) XXX_Merge

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

func (*SecretWitnessPb) XXX_Size

func (m *SecretWitnessPb) XXX_Size() int

func (*SecretWitnessPb) XXX_Unmarshal

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

type SendActionRequest

type SendActionRequest struct {
	Action               *ActionPb `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*SendActionRequest) Descriptor

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

func (*SendActionRequest) GetAction

func (m *SendActionRequest) GetAction() *ActionPb

func (*SendActionRequest) ProtoMessage

func (*SendActionRequest) ProtoMessage()

func (*SendActionRequest) Reset

func (m *SendActionRequest) Reset()

func (*SendActionRequest) String

func (m *SendActionRequest) String() string

func (*SendActionRequest) XXX_DiscardUnknown

func (m *SendActionRequest) XXX_DiscardUnknown()

func (*SendActionRequest) XXX_Marshal

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

func (*SendActionRequest) XXX_Merge

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

func (*SendActionRequest) XXX_Size

func (m *SendActionRequest) XXX_Size() int

func (*SendActionRequest) XXX_Unmarshal

func (m *SendActionRequest) 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"`
	IsCoinbase           bool     `protobuf:"varint,4,opt,name=isCoinbase,proto3" json:"isCoinbase,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) GetIsCoinbase

func (m *TransferPb) GetIsCoinbase() bool

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            uint64   `protobuf:"varint,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() uint64

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