Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterChainBrokerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterChainBrokerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChainBrokerClient) error
- func RegisterChainBrokerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterChainBrokerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChainBrokerServer) error
- func RegisterChainBrokerServer(s *grpc.Server, srv ChainBrokerServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetAddress() string
- func (m *Address) Marshal() (dAtA []byte, err error)
- func (m *Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) Size() (n int)
- func (m *Address) String() string
- func (m *Address) Unmarshal(dAtA []byte) error
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type Arg
- func (*Arg) Descriptor() ([]byte, []int)
- func (m *Arg) GetIsArray() bool
- func (m *Arg) GetType() Arg_Type
- func (m *Arg) GetValue() []byte
- func (m *Arg) Marshal() (dAtA []byte, err error)
- func (m *Arg) MarshalTo(dAtA []byte) (int, error)
- func (m *Arg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Arg) ProtoMessage()
- func (m *Arg) Reset()
- func (m *Arg) Size() (n int)
- func (m *Arg) String() string
- func (m *Arg) Unmarshal(dAtA []byte) error
- func (m *Arg) XXX_DiscardUnknown()
- func (m *Arg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Arg) XXX_Merge(src proto.Message)
- func (m *Arg) XXX_Size() int
- func (m *Arg) XXX_Unmarshal(b []byte) error
- type Arg_Type
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetBlockHeader() *BlockHeader
- func (m *Block) GetExtra() []byte
- func (m *Block) GetSignature() []byte
- func (m *Block) GetTransactions() []*Transaction
- func (m *Block) Hash() types.Hash
- func (m *Block) Height() uint64
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetInterchainIndex() []byte
- func (m *BlockHeader) GetNumber() uint64
- func (m *BlockHeader) GetTimestamp() int64
- func (m *BlockHeader) GetVersion() []byte
- func (m *BlockHeader) Marshal() (dAtA []byte, err error)
- func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) Size() (n int)
- func (m *BlockHeader) String() string
- func (m *BlockHeader) Unmarshal(dAtA []byte) error
- func (m *BlockHeader) XXX_DiscardUnknown()
- func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockHeader) XXX_Merge(src proto.Message)
- func (m *BlockHeader) XXX_Size() int
- func (m *BlockHeader) XXX_Unmarshal(b []byte) error
- type ChainBrokerClient
- type ChainBrokerServer
- type ChainBroker_GetMerkleWrapperClient
- type ChainBroker_GetMerkleWrapperServer
- type ChainBroker_SubscribeClient
- type ChainBroker_SubscribeServer
- type ChainBroker_SyncMerkleWrapperClient
- type ChainBroker_SyncMerkleWrapperServer
- type ChainMeta
- func (*ChainMeta) Descriptor() ([]byte, []int)
- func (m *ChainMeta) GetHeight() uint64
- func (m *ChainMeta) GetInterchainTxCount() uint64
- func (m *ChainMeta) Marshal() (dAtA []byte, err error)
- func (m *ChainMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainMeta) ProtoMessage()
- func (m *ChainMeta) Reset()
- func (m *ChainMeta) Size() (n int)
- func (m *ChainMeta) String() string
- func (m *ChainMeta) Unmarshal(dAtA []byte) error
- func (m *ChainMeta) XXX_DiscardUnknown()
- func (m *ChainMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainMeta) XXX_Merge(src proto.Message)
- func (m *ChainMeta) XXX_Size() int
- func (m *ChainMeta) XXX_Unmarshal(b []byte) error
- type CrosschainTransactionExtra
- func (*CrosschainTransactionExtra) Descriptor() ([]byte, []int)
- func (m *CrosschainTransactionExtra) GetIndex() uint64
- func (m *CrosschainTransactionExtra) GetRet() []byte
- func (m *CrosschainTransactionExtra) GetStatus() bool
- func (m *CrosschainTransactionExtra) Marshal() (dAtA []byte, err error)
- func (m *CrosschainTransactionExtra) MarshalTo(dAtA []byte) (int, error)
- func (m *CrosschainTransactionExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CrosschainTransactionExtra) ProtoMessage()
- func (m *CrosschainTransactionExtra) Reset()
- func (m *CrosschainTransactionExtra) Size() (n int)
- func (m *CrosschainTransactionExtra) String() string
- func (m *CrosschainTransactionExtra) Unmarshal(dAtA []byte) error
- func (m *CrosschainTransactionExtra) XXX_DiscardUnknown()
- func (m *CrosschainTransactionExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrosschainTransactionExtra) XXX_Merge(src proto.Message)
- func (m *CrosschainTransactionExtra) XXX_Size() int
- func (m *CrosschainTransactionExtra) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetData() []byte
- func (m *Event) GetInterchain() bool
- func (m *Event) Marshal() (dAtA []byte, err error)
- func (m *Event) MarshalTo(dAtA []byte) (int, error)
- func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) Size() (n int)
- func (m *Event) String() string
- func (m *Event) Unmarshal(dAtA []byte) error
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type GetBlockRequest
- func (*GetBlockRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockRequest) GetType() GetBlockRequest_Type
- func (m *GetBlockRequest) GetValue() string
- func (m *GetBlockRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBlockRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlockRequest) ProtoMessage()
- func (m *GetBlockRequest) Reset()
- func (m *GetBlockRequest) Size() (n int)
- func (m *GetBlockRequest) String() string
- func (m *GetBlockRequest) Unmarshal(dAtA []byte) error
- func (m *GetBlockRequest) XXX_DiscardUnknown()
- func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlockRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockRequest) XXX_Size() int
- func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error
- type GetBlockRequest_Type
- type GetBlocksRequest
- func (*GetBlocksRequest) Descriptor() ([]byte, []int)
- func (m *GetBlocksRequest) GetLength() uint64
- func (m *GetBlocksRequest) GetOffset() uint64
- func (m *GetBlocksRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBlocksRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlocksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlocksRequest) ProtoMessage()
- func (m *GetBlocksRequest) Reset()
- func (m *GetBlocksRequest) Size() (n int)
- func (m *GetBlocksRequest) String() string
- func (m *GetBlocksRequest) Unmarshal(dAtA []byte) error
- func (m *GetBlocksRequest) XXX_DiscardUnknown()
- func (m *GetBlocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlocksRequest) XXX_Merge(src proto.Message)
- func (m *GetBlocksRequest) XXX_Size() int
- func (m *GetBlocksRequest) XXX_Unmarshal(b []byte) error
- type GetBlocksResponse
- func (*GetBlocksResponse) Descriptor() ([]byte, []int)
- func (m *GetBlocksResponse) GetBlocks() []*Block
- func (m *GetBlocksResponse) Marshal() (dAtA []byte, err error)
- func (m *GetBlocksResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBlocksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBlocksResponse) ProtoMessage()
- func (m *GetBlocksResponse) Reset()
- func (m *GetBlocksResponse) Size() (n int)
- func (m *GetBlocksResponse) String() string
- func (m *GetBlocksResponse) Unmarshal(dAtA []byte) error
- func (m *GetBlocksResponse) XXX_DiscardUnknown()
- func (m *GetBlocksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBlocksResponse) XXX_Merge(src proto.Message)
- func (m *GetBlocksResponse) XXX_Size() int
- func (m *GetBlocksResponse) XXX_Unmarshal(b []byte) error
- type GetMerkleWrapperRequest
- func (*GetMerkleWrapperRequest) Descriptor() ([]byte, []int)
- func (m *GetMerkleWrapperRequest) GetBegin() uint64
- func (m *GetMerkleWrapperRequest) GetEnd() uint64
- func (m *GetMerkleWrapperRequest) GetPid() string
- func (m *GetMerkleWrapperRequest) Marshal() (dAtA []byte, err error)
- func (m *GetMerkleWrapperRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetMerkleWrapperRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetMerkleWrapperRequest) ProtoMessage()
- func (m *GetMerkleWrapperRequest) Reset()
- func (m *GetMerkleWrapperRequest) Size() (n int)
- func (m *GetMerkleWrapperRequest) String() string
- func (m *GetMerkleWrapperRequest) Unmarshal(dAtA []byte) error
- func (m *GetMerkleWrapperRequest) XXX_DiscardUnknown()
- func (m *GetMerkleWrapperRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMerkleWrapperRequest) XXX_Merge(src proto.Message)
- func (m *GetMerkleWrapperRequest) XXX_Size() int
- func (m *GetMerkleWrapperRequest) XXX_Unmarshal(b []byte) error
- type GetTransactionResponse
- func (*GetTransactionResponse) Descriptor() ([]byte, []int)
- func (m *GetTransactionResponse) GetTx() *Transaction
- func (m *GetTransactionResponse) GetTxMeta() *TransactionMeta
- func (m *GetTransactionResponse) Marshal() (dAtA []byte, err error)
- func (m *GetTransactionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetTransactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetTransactionResponse) ProtoMessage()
- func (m *GetTransactionResponse) Reset()
- func (m *GetTransactionResponse) Size() (n int)
- func (m *GetTransactionResponse) String() string
- func (m *GetTransactionResponse) Unmarshal(dAtA []byte) error
- func (m *GetTransactionResponse) XXX_DiscardUnknown()
- func (m *GetTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTransactionResponse) XXX_Merge(src proto.Message)
- func (m *GetTransactionResponse) XXX_Size() int
- func (m *GetTransactionResponse) XXX_Unmarshal(b []byte) error
- type IBTP
- func (*IBTP) Descriptor() ([]byte, []int)
- func (m *IBTP) GetExtra() []byte
- func (m *IBTP) GetFrom() string
- func (m *IBTP) GetIndex() uint64
- func (m *IBTP) GetPayload() []byte
- func (m *IBTP) GetProof() []byte
- func (m *IBTP) GetTimestamp() int64
- func (m *IBTP) GetTo() string
- func (m *IBTP) GetType() IBTP_Type
- func (m *IBTP) GetVersion() string
- func (m *IBTP) ID() string
- func (m *IBTP) Marshal() (dAtA []byte, err error)
- func (m *IBTP) MarshalTo(dAtA []byte) (int, error)
- func (m *IBTP) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IBTP) ProtoMessage()
- func (m *IBTP) Reset()
- func (m *IBTP) Size() (n int)
- func (m *IBTP) String() string
- func (m *IBTP) Unmarshal(dAtA []byte) error
- func (m *IBTP) XXX_DiscardUnknown()
- func (m *IBTP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBTP) XXX_Merge(src proto.Message)
- func (m *IBTP) XXX_Size() int
- func (m *IBTP) XXX_Unmarshal(b []byte) error
- type IBTP_Type
- type InvokePayload
- func (*InvokePayload) Descriptor() ([]byte, []int)
- func (m *InvokePayload) GetArgs() []*Arg
- func (m *InvokePayload) GetMethod() string
- func (m *InvokePayload) Marshal() (dAtA []byte, err error)
- func (m *InvokePayload) MarshalTo(dAtA []byte) (int, error)
- func (m *InvokePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InvokePayload) ProtoMessage()
- func (m *InvokePayload) Reset()
- func (m *InvokePayload) Size() (n int)
- func (m *InvokePayload) String() string
- func (m *InvokePayload) Unmarshal(dAtA []byte) error
- func (m *InvokePayload) XXX_DiscardUnknown()
- func (m *InvokePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InvokePayload) XXX_Merge(src proto.Message)
- func (m *InvokePayload) XXX_Size() int
- func (m *InvokePayload) XXX_Unmarshal(b []byte) error
- type MerkleWrapper
- func (*MerkleWrapper) Descriptor() ([]byte, []int)
- func (m *MerkleWrapper) GetBlockHeader() *BlockHeader
- func (m *MerkleWrapper) GetSignatures() map[string][]byte
- func (m *MerkleWrapper) GetTransactions() []*Transaction
- func (m *MerkleWrapper) Marshal() (dAtA []byte, err error)
- func (m *MerkleWrapper) MarshalTo(dAtA []byte) (int, error)
- func (m *MerkleWrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MerkleWrapper) ProtoMessage()
- func (m *MerkleWrapper) Reset()
- func (w *MerkleWrapper) SignHash() types.Hash
- func (m *MerkleWrapper) Size() (n int)
- func (m *MerkleWrapper) String() string
- func (m *MerkleWrapper) Unmarshal(dAtA []byte) error
- func (m *MerkleWrapper) VerifyMerkleWrapper() (bool, error)
- func (m *MerkleWrapper) XXX_DiscardUnknown()
- func (m *MerkleWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerkleWrapper) XXX_Merge(src proto.Message)
- func (m *MerkleWrapper) XXX_Size() int
- func (m *MerkleWrapper) XXX_Unmarshal(b []byte) error
- type MerkleWrappers
- func (*MerkleWrappers) Descriptor() ([]byte, []int)
- func (m *MerkleWrappers) GetMerkles() []*MerkleWrapper
- func (m *MerkleWrappers) Marshal() (dAtA []byte, err error)
- func (m *MerkleWrappers) MarshalTo(dAtA []byte) (int, error)
- func (m *MerkleWrappers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MerkleWrappers) ProtoMessage()
- func (m *MerkleWrappers) Reset()
- func (m *MerkleWrappers) Size() (n int)
- func (m *MerkleWrappers) String() string
- func (m *MerkleWrappers) Unmarshal(dAtA []byte) error
- func (m *MerkleWrappers) XXX_DiscardUnknown()
- func (m *MerkleWrappers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerkleWrappers) XXX_Merge(src proto.Message)
- func (m *MerkleWrappers) XXX_Size() int
- func (m *MerkleWrappers) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetData() []byte
- func (m *Message) GetType() Message_Type
- func (m *Message) GetVersion() []byte
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_Type
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetArgs() [][]byte
- func (m *Payload) GetCallback() string
- func (m *Payload) GetDstContractId() string
- func (m *Payload) GetFunc() string
- func (m *Payload) GetSrcContractId() string
- func (m *Payload) Marshal() (dAtA []byte, err error)
- func (m *Payload) MarshalTo(dAtA []byte) (int, error)
- func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) Size() (n int)
- func (m *Payload) String() string
- func (m *Payload) Unmarshal(dAtA []byte) error
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payload) XXX_Merge(src proto.Message)
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
- type Receipt
- func (*Receipt) Descriptor() ([]byte, []int)
- func (m *Receipt) GetEvents() []*Event
- func (m *Receipt) GetRet() []byte
- func (m *Receipt) GetStatus() Receipt_Status
- func (m *Receipt) GetVersion() []byte
- func (r *Receipt) Hash() types.Hash
- func (r *Receipt) IsSuccess() bool
- func (m *Receipt) Marshal() (dAtA []byte, err error)
- func (m *Receipt) MarshalTo(dAtA []byte) (int, error)
- func (m *Receipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Receipt) ProtoMessage()
- func (m *Receipt) Reset()
- func (m *Receipt) Size() (n int)
- func (m *Receipt) String() string
- func (m *Receipt) Unmarshal(dAtA []byte) error
- func (m *Receipt) XXX_DiscardUnknown()
- func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Receipt) XXX_Merge(src proto.Message)
- func (m *Receipt) XXX_Size() int
- func (m *Receipt) XXX_Unmarshal(b []byte) error
- type Receipt_Status
- type Receipts
- func (*Receipts) Descriptor() ([]byte, []int)
- func (m *Receipts) GetReceipts() []*Receipt
- func (m *Receipts) Marshal() (dAtA []byte, err error)
- func (m *Receipts) MarshalTo(dAtA []byte) (int, error)
- func (m *Receipts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Receipts) ProtoMessage()
- func (m *Receipts) Reset()
- func (m *Receipts) Size() (n int)
- func (m *Receipts) String() string
- func (m *Receipts) Unmarshal(dAtA []byte) error
- func (m *Receipts) XXX_DiscardUnknown()
- func (m *Receipts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Receipts) XXX_Merge(src proto.Message)
- func (m *Receipts) XXX_Size() int
- func (m *Receipts) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() []byte
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type SendTransactionRequest
- func (*SendTransactionRequest) Descriptor() ([]byte, []int)
- func (m *SendTransactionRequest) GetData() *TransactionData
- func (m *SendTransactionRequest) GetExtra() []byte
- func (m *SendTransactionRequest) GetNonce() int64
- func (m *SendTransactionRequest) GetSignature() []byte
- func (m *SendTransactionRequest) GetTimestamp() int64
- func (m *SendTransactionRequest) GetVersion() []byte
- func (m *SendTransactionRequest) Marshal() (dAtA []byte, err error)
- func (m *SendTransactionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SendTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendTransactionRequest) ProtoMessage()
- func (m *SendTransactionRequest) Reset()
- func (m *SendTransactionRequest) Size() (n int)
- func (m *SendTransactionRequest) String() string
- func (m *SendTransactionRequest) Unmarshal(dAtA []byte) error
- func (m *SendTransactionRequest) XXX_DiscardUnknown()
- func (m *SendTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendTransactionRequest) XXX_Merge(src proto.Message)
- func (m *SendTransactionRequest) XXX_Size() int
- func (m *SendTransactionRequest) XXX_Unmarshal(b []byte) error
- type SubscriptionRequest
- func (*SubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *SubscriptionRequest) GetType() SubscriptionRequest_Type
- func (m *SubscriptionRequest) Marshal() (dAtA []byte, err error)
- func (m *SubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscriptionRequest) ProtoMessage()
- func (m *SubscriptionRequest) Reset()
- func (m *SubscriptionRequest) Size() (n int)
- func (m *SubscriptionRequest) String() string
- func (m *SubscriptionRequest) Unmarshal(dAtA []byte) error
- func (m *SubscriptionRequest) XXX_DiscardUnknown()
- func (m *SubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *SubscriptionRequest) XXX_Size() int
- func (m *SubscriptionRequest) XXX_Unmarshal(b []byte) error
- type SubscriptionRequest_Type
- type SyncMerkleWrapperRequest
- func (*SyncMerkleWrapperRequest) Descriptor() ([]byte, []int)
- func (m *SyncMerkleWrapperRequest) GetAppchainId() string
- func (m *SyncMerkleWrapperRequest) Marshal() (dAtA []byte, err error)
- func (m *SyncMerkleWrapperRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SyncMerkleWrapperRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SyncMerkleWrapperRequest) ProtoMessage()
- func (m *SyncMerkleWrapperRequest) Reset()
- func (m *SyncMerkleWrapperRequest) Size() (n int)
- func (m *SyncMerkleWrapperRequest) String() string
- func (m *SyncMerkleWrapperRequest) Unmarshal(dAtA []byte) error
- func (m *SyncMerkleWrapperRequest) XXX_DiscardUnknown()
- func (m *SyncMerkleWrapperRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncMerkleWrapperRequest) XXX_Merge(src proto.Message)
- func (m *SyncMerkleWrapperRequest) XXX_Size() int
- func (m *SyncMerkleWrapperRequest) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetCrosschainExtra() (*CrosschainTransactionExtra, error)
- func (m *Transaction) GetData() *TransactionData
- func (m *Transaction) GetExtra() []byte
- func (m *Transaction) GetIBTP() (*IBTP, error)
- func (m *Transaction) GetNonce() int64
- func (m *Transaction) GetSignature() []byte
- func (m *Transaction) GetTimestamp() int64
- func (m *Transaction) GetVersion() []byte
- func (m *Transaction) Hash() types.Hash
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Sign(key crypto.PrivateKey) error
- func (m *Transaction) SignHash() types.Hash
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type TransactionData
- func (*TransactionData) Descriptor() ([]byte, []int)
- func (m *TransactionData) GetAmount() uint64
- func (m *TransactionData) GetExtra() []byte
- func (m *TransactionData) GetPayload() []byte
- func (m *TransactionData) GetType() TransactionData_Type
- func (m *TransactionData) GetVmType() TransactionData_VMType
- func (m *TransactionData) Marshal() (dAtA []byte, err error)
- func (m *TransactionData) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionData) ProtoMessage()
- func (m *TransactionData) Reset()
- func (m *TransactionData) Size() (n int)
- func (m *TransactionData) String() string
- func (m *TransactionData) Unmarshal(dAtA []byte) error
- func (m *TransactionData) XXX_DiscardUnknown()
- func (m *TransactionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionData) XXX_Merge(src proto.Message)
- func (m *TransactionData) XXX_Size() int
- func (m *TransactionData) XXX_Unmarshal(b []byte) error
- type TransactionData_Type
- type TransactionData_VMType
- type TransactionHash
- type TransactionHashMsg
- func (*TransactionHashMsg) Descriptor() ([]byte, []int)
- func (m *TransactionHashMsg) GetTxHash() string
- func (m *TransactionHashMsg) Marshal() (dAtA []byte, err error)
- func (m *TransactionHashMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionHashMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionHashMsg) ProtoMessage()
- func (m *TransactionHashMsg) Reset()
- func (m *TransactionHashMsg) Size() (n int)
- func (m *TransactionHashMsg) String() string
- func (m *TransactionHashMsg) Unmarshal(dAtA []byte) error
- func (m *TransactionHashMsg) XXX_DiscardUnknown()
- func (m *TransactionHashMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionHashMsg) XXX_Merge(src proto.Message)
- func (m *TransactionHashMsg) XXX_Size() int
- func (m *TransactionHashMsg) XXX_Unmarshal(b []byte) error
- type TransactionMeta
- func (*TransactionMeta) Descriptor() ([]byte, []int)
- func (m *TransactionMeta) GetBlockHash() []byte
- func (m *TransactionMeta) GetBlockHeight() uint64
- func (m *TransactionMeta) GetIndex() uint64
- func (m *TransactionMeta) Marshal() (dAtA []byte, err error)
- func (m *TransactionMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionMeta) ProtoMessage()
- func (m *TransactionMeta) Reset()
- func (m *TransactionMeta) Size() (n int)
- func (m *TransactionMeta) String() string
- func (m *TransactionMeta) Unmarshal(dAtA []byte) error
- func (m *TransactionMeta) XXX_DiscardUnknown()
- func (m *TransactionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionMeta) XXX_Merge(src proto.Message)
- func (m *TransactionMeta) XXX_Size() int
- func (m *TransactionMeta) XXX_Unmarshal(b []byte) error
- type TransactionSlice
- func (*TransactionSlice) Descriptor() ([]byte, []int)
- func (m *TransactionSlice) GetHeight() uint64
- func (m *TransactionSlice) GetTxs() []*Transaction
- func (m *TransactionSlice) Marshal() (dAtA []byte, err error)
- func (m *TransactionSlice) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionSlice) ProtoMessage()
- func (m *TransactionSlice) Reset()
- func (m *TransactionSlice) Size() (n int)
- func (m *TransactionSlice) String() string
- func (m *TransactionSlice) Unmarshal(dAtA []byte) error
- func (m *TransactionSlice) XXX_DiscardUnknown()
- func (m *TransactionSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionSlice) XXX_Merge(src proto.Message)
- func (m *TransactionSlice) XXX_Size() int
- func (m *TransactionSlice) XXX_Unmarshal(b []byte) error
- type TransactionTracingMeta
- func (*TransactionTracingMeta) Descriptor() ([]byte, []int)
- func (m *TransactionTracingMeta) GetConfirmHash() []byte
- func (m *TransactionTracingMeta) GetReceiptHash() []byte
- func (m *TransactionTracingMeta) Marshal() (dAtA []byte, err error)
- func (m *TransactionTracingMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionTracingMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionTracingMeta) ProtoMessage()
- func (m *TransactionTracingMeta) Reset()
- func (m *TransactionTracingMeta) Size() (n int)
- func (m *TransactionTracingMeta) String() string
- func (m *TransactionTracingMeta) Unmarshal(dAtA []byte) error
- func (m *TransactionTracingMeta) XXX_DiscardUnknown()
- func (m *TransactionTracingMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionTracingMeta) XXX_Merge(src proto.Message)
- func (m *TransactionTracingMeta) XXX_Size() int
- func (m *TransactionTracingMeta) XXX_Unmarshal(b []byte) error
- type Transactions
- func (*Transactions) Descriptor() ([]byte, []int)
- func (m *Transactions) GetTransactions() []*Transaction
- func (m *Transactions) Marshal() (dAtA []byte, err error)
- func (m *Transactions) MarshalTo(dAtA []byte) (int, error)
- func (m *Transactions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Transactions) ProtoMessage()
- func (m *Transactions) Reset()
- func (m *Transactions) Size() (n int)
- func (m *Transactions) String() string
- func (m *Transactions) Unmarshal(dAtA []byte) error
- func (m *Transactions) XXX_DiscardUnknown()
- func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transactions) XXX_Merge(src proto.Message)
- func (m *Transactions) XXX_Size() int
- func (m *Transactions) XXX_Unmarshal(b []byte) error
- type UnimplementedChainBrokerServer
- func (*UnimplementedChainBrokerServer) GetAccountBalance(ctx context.Context, req *Address) (*Response, error)
- func (*UnimplementedChainBrokerServer) GetBlock(ctx context.Context, req *GetBlockRequest) (*Block, error)
- func (*UnimplementedChainBrokerServer) GetBlocks(ctx context.Context, req *GetBlocksRequest) (*GetBlocksResponse, error)
- func (*UnimplementedChainBrokerServer) GetChainMeta(ctx context.Context, req *Request) (*ChainMeta, error)
- func (*UnimplementedChainBrokerServer) GetChainStatus(ctx context.Context, req *Request) (*Response, error)
- func (*UnimplementedChainBrokerServer) GetMerkleWrapper(req *GetMerkleWrapperRequest, srv ChainBroker_GetMerkleWrapperServer) error
- func (*UnimplementedChainBrokerServer) GetNetworkMeta(ctx context.Context, req *Request) (*Response, error)
- func (*UnimplementedChainBrokerServer) GetReceipt(ctx context.Context, req *TransactionHashMsg) (*Receipt, error)
- func (*UnimplementedChainBrokerServer) GetTransaction(ctx context.Context, req *TransactionHashMsg) (*GetTransactionResponse, error)
- func (*UnimplementedChainBrokerServer) SendTransaction(ctx context.Context, req *SendTransactionRequest) (*TransactionHashMsg, error)
- func (*UnimplementedChainBrokerServer) Subscribe(req *SubscriptionRequest, srv ChainBroker_SubscribeServer) error
- func (*UnimplementedChainBrokerServer) SyncMerkleWrapper(req *SyncMerkleWrapperRequest, srv ChainBroker_SyncMerkleWrapperServer) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthArg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowArg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupArg = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthBroker = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBroker = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBroker = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthChain = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowChain = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupChain = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthIbtp = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIbtp = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIbtp = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthNetwork = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNetwork = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNetwork = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthReceipt = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowReceipt = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupReceipt = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTransaction = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTransaction = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group") )
var Arg_Type_name = map[int32]string{
0: "I32",
1: "I64",
2: "U32",
3: "U64",
4: "F32",
5: "F64",
6: "String",
7: "Bytes",
8: "Bool",
}
var Arg_Type_value = map[string]int32{
"I32": 0,
"I64": 1,
"U32": 2,
"U64": 3,
"F32": 4,
"F64": 5,
"String": 6,
"Bytes": 7,
"Bool": 8,
}
var GetBlockRequest_Type_name = map[int32]string{
0: "HEIGHT",
1: "HASH",
}
var GetBlockRequest_Type_value = map[string]int32{
"HEIGHT": 0,
"HASH": 1,
}
var IBTP_Type_name = map[int32]string{
0: "INTERCHAIN",
1: "RECEIPT",
2: "CONFIRM",
}
var IBTP_Type_value = map[string]int32{
"INTERCHAIN": 0,
"RECEIPT": 1,
"CONFIRM": 2,
}
var Message_Type_name = map[int32]string{
0: "GET_BLOCK",
1: "GET_BLOCK_ACK",
2: "CONSENSUS",
3: "FETCH_CERT",
4: "FETCH_CERT_ACK",
5: "FETCH_BLOCK_SIGN",
6: "FETCH_BLOCK_SIGN_ACK",
}
var Message_Type_value = map[string]int32{
"GET_BLOCK": 0,
"GET_BLOCK_ACK": 1,
"CONSENSUS": 2,
"FETCH_CERT": 3,
"FETCH_CERT_ACK": 4,
"FETCH_BLOCK_SIGN": 5,
"FETCH_BLOCK_SIGN_ACK": 6,
}
var Receipt_Status_name = map[int32]string{
0: "SUCCESS",
1: "FAILED",
}
var Receipt_Status_value = map[string]int32{
"SUCCESS": 0,
"FAILED": 1,
}
var SubscriptionRequest_Type_name = map[int32]string{
0: "BLOCK",
1: "EVENT",
2: "INTERCHAIN_TX",
3: "BLOCK_HEADER",
}
var SubscriptionRequest_Type_value = map[string]int32{
"BLOCK": 0,
"EVENT": 1,
"INTERCHAIN_TX": 2,
"BLOCK_HEADER": 3,
}
var TransactionData_Type_name = map[int32]string{
0: "NORMAL",
1: "INVOKE",
2: "UPDATE",
3: "FREEZE",
4: "UNFREEZE",
}
var TransactionData_Type_value = map[string]int32{
"NORMAL": 0,
"INVOKE": 1,
"UPDATE": 2,
"FREEZE": 3,
"UNFREEZE": 4,
}
var TransactionData_VMType_name = map[int32]string{
0: "BVM",
1: "XVM",
}
var TransactionData_VMType_value = map[string]int32{
"BVM": 0,
"XVM": 1,
}
Functions ¶
func RegisterChainBrokerHandler ¶
func RegisterChainBrokerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterChainBrokerHandler registers the http handlers for service ChainBroker to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterChainBrokerHandlerClient ¶
func RegisterChainBrokerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChainBrokerClient) error
RegisterChainBrokerHandlerClient registers the http handlers for service ChainBroker to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChainBrokerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChainBrokerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChainBrokerClient" to call the correct interceptors.
func RegisterChainBrokerHandlerFromEndpoint ¶
func RegisterChainBrokerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterChainBrokerHandlerFromEndpoint is same as RegisterChainBrokerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterChainBrokerHandlerServer ¶
func RegisterChainBrokerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChainBrokerServer) error
RegisterChainBrokerHandlerServer registers the http handlers for service ChainBroker to "mux". UnaryRPC :call ChainBrokerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterChainBrokerServer ¶
func RegisterChainBrokerServer(s *grpc.Server, srv ChainBrokerServer)
Types ¶
type Address ¶
type Address struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Address) Descriptor ¶
func (*Address) GetAddress ¶
func (*Address) MarshalToSizedBuffer ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type Arg ¶
type Arg struct { Type Arg_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.Arg_Type" json:"type,omitempty"` IsArray bool `protobuf:"varint,2,opt,name=is_array,json=isArray,proto3" json:"is_array,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 (*Arg) Descriptor ¶
func (*Arg) GetIsArray ¶
func (*Arg) ProtoMessage ¶
func (*Arg) ProtoMessage()
func (*Arg) XXX_DiscardUnknown ¶
func (m *Arg) XXX_DiscardUnknown()
func (*Arg) XXX_Unmarshal ¶
type Block ¶
type Block struct { BlockHeader *BlockHeader `protobuf:"bytes,1,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` BlockHash github_com_meshplus_bitxhub_kit_types.Hash `` /* 132-byte string literal not displayed */ Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` Extra []byte `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶
func (*Block) GetBlockHeader ¶
func (m *Block) GetBlockHeader() *BlockHeader
func (*Block) GetSignature ¶
func (*Block) GetTransactions ¶
func (m *Block) GetTransactions() []*Transaction
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockHeader ¶
type BlockHeader struct { Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` StateRoot github_com_meshplus_bitxhub_kit_types.Hash `` /* 132-byte string literal not displayed */ TxRoot github_com_meshplus_bitxhub_kit_types.Hash `protobuf:"bytes,3,opt,name=tx_root,json=txRoot,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Hash" json:"tx_root"` ReceiptRoot github_com_meshplus_bitxhub_kit_types.Hash `` /* 138-byte string literal not displayed */ ParentHash github_com_meshplus_bitxhub_kit_types.Hash `` /* 135-byte string literal not displayed */ Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Version []byte `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` InterchainIndex []byte `protobuf:"bytes,8,opt,name=interchain_index,json=interchainIndex,proto3" json:"interchain_index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetInterchainIndex ¶
func (m *BlockHeader) GetInterchainIndex() []byte
func (*BlockHeader) GetNumber ¶
func (m *BlockHeader) GetNumber() uint64
func (*BlockHeader) GetTimestamp ¶
func (m *BlockHeader) GetTimestamp() int64
func (*BlockHeader) GetVersion ¶
func (m *BlockHeader) GetVersion() []byte
func (*BlockHeader) Marshal ¶
func (m *BlockHeader) Marshal() (dAtA []byte, err error)
func (*BlockHeader) MarshalToSizedBuffer ¶
func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) Size ¶
func (m *BlockHeader) Size() (n int)
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
func (*BlockHeader) Unmarshal ¶
func (m *BlockHeader) Unmarshal(dAtA []byte) error
func (*BlockHeader) XXX_DiscardUnknown ¶
func (m *BlockHeader) XXX_DiscardUnknown()
func (*BlockHeader) XXX_Marshal ¶
func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeader) XXX_Merge ¶
func (m *BlockHeader) XXX_Merge(src proto.Message)
func (*BlockHeader) XXX_Size ¶
func (m *BlockHeader) XXX_Size() int
func (*BlockHeader) XXX_Unmarshal ¶
func (m *BlockHeader) XXX_Unmarshal(b []byte) error
type ChainBrokerClient ¶
type ChainBrokerClient interface { Subscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (ChainBroker_SubscribeClient, error) // Pier sync merkle wrapper meta from bitxhub // Request includes the appchain id // Response includes MerkleWrapper struct SyncMerkleWrapper(ctx context.Context, in *SyncMerkleWrapperRequest, opts ...grpc.CallOption) (ChainBroker_SyncMerkleWrapperClient, error) GetMerkleWrapper(ctx context.Context, in *GetMerkleWrapperRequest, opts ...grpc.CallOption) (ChainBroker_GetMerkleWrapperClient, error) SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*TransactionHashMsg, error) GetTransaction(ctx context.Context, in *TransactionHashMsg, opts ...grpc.CallOption) (*GetTransactionResponse, error) GetReceipt(ctx context.Context, in *TransactionHashMsg, opts ...grpc.CallOption) (*Receipt, error) GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*Block, error) GetBlocks(ctx context.Context, in *GetBlocksRequest, opts ...grpc.CallOption) (*GetBlocksResponse, error) GetChainMeta(ctx context.Context, in *Request, opts ...grpc.CallOption) (*ChainMeta, error) GetChainStatus(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) GetNetworkMeta(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) GetAccountBalance(ctx context.Context, in *Address, opts ...grpc.CallOption) (*Response, error) }
ChainBrokerClient is the client API for ChainBroker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChainBrokerClient ¶
func NewChainBrokerClient(cc *grpc.ClientConn) ChainBrokerClient
type ChainBrokerServer ¶
type ChainBrokerServer interface { Subscribe(*SubscriptionRequest, ChainBroker_SubscribeServer) error // Pier sync merkle wrapper meta from bitxhub // Request includes the appchain id // Response includes MerkleWrapper struct SyncMerkleWrapper(*SyncMerkleWrapperRequest, ChainBroker_SyncMerkleWrapperServer) error GetMerkleWrapper(*GetMerkleWrapperRequest, ChainBroker_GetMerkleWrapperServer) error SendTransaction(context.Context, *SendTransactionRequest) (*TransactionHashMsg, error) GetTransaction(context.Context, *TransactionHashMsg) (*GetTransactionResponse, error) GetReceipt(context.Context, *TransactionHashMsg) (*Receipt, error) GetBlock(context.Context, *GetBlockRequest) (*Block, error) GetBlocks(context.Context, *GetBlocksRequest) (*GetBlocksResponse, error) GetChainMeta(context.Context, *Request) (*ChainMeta, error) GetChainStatus(context.Context, *Request) (*Response, error) GetNetworkMeta(context.Context, *Request) (*Response, error) GetAccountBalance(context.Context, *Address) (*Response, error) }
ChainBrokerServer is the server API for ChainBroker service.
type ChainBroker_GetMerkleWrapperClient ¶
type ChainBroker_GetMerkleWrapperClient interface { Recv() (*Response, error) grpc.ClientStream }
type ChainBroker_GetMerkleWrapperServer ¶
type ChainBroker_GetMerkleWrapperServer interface { Send(*Response) error grpc.ServerStream }
type ChainBroker_SubscribeClient ¶
type ChainBroker_SubscribeClient interface { Recv() (*Response, error) grpc.ClientStream }
type ChainBroker_SubscribeServer ¶
type ChainBroker_SubscribeServer interface { Send(*Response) error grpc.ServerStream }
type ChainBroker_SyncMerkleWrapperClient ¶
type ChainBroker_SyncMerkleWrapperClient interface { Recv() (*Response, error) grpc.ClientStream }
type ChainBroker_SyncMerkleWrapperServer ¶
type ChainBroker_SyncMerkleWrapperServer interface { Send(*Response) error grpc.ServerStream }
type ChainMeta ¶
type ChainMeta struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` BlockHash github_com_meshplus_bitxhub_kit_types.Hash `` /* 132-byte string literal not displayed */ InterchainTxCount uint64 `protobuf:"varint,3,opt,name=interchain_tx_count,json=interchainTxCount,proto3" json:"interchain_tx_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainMeta) Descriptor ¶
func (*ChainMeta) GetInterchainTxCount ¶
func (*ChainMeta) MarshalToSizedBuffer ¶
func (*ChainMeta) ProtoMessage ¶
func (*ChainMeta) ProtoMessage()
func (*ChainMeta) XXX_DiscardUnknown ¶
func (m *ChainMeta) XXX_DiscardUnknown()
func (*ChainMeta) XXX_Marshal ¶
func (*ChainMeta) XXX_Unmarshal ¶
type CrosschainTransactionExtra ¶
type CrosschainTransactionExtra struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Ret []byte `protobuf:"bytes,3,opt,name=ret,proto3" json:"ret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrosschainTransactionExtra) Descriptor ¶
func (*CrosschainTransactionExtra) Descriptor() ([]byte, []int)
func (*CrosschainTransactionExtra) GetIndex ¶
func (m *CrosschainTransactionExtra) GetIndex() uint64
func (*CrosschainTransactionExtra) GetRet ¶
func (m *CrosschainTransactionExtra) GetRet() []byte
func (*CrosschainTransactionExtra) GetStatus ¶
func (m *CrosschainTransactionExtra) GetStatus() bool
func (*CrosschainTransactionExtra) Marshal ¶
func (m *CrosschainTransactionExtra) Marshal() (dAtA []byte, err error)
func (*CrosschainTransactionExtra) MarshalTo ¶
func (m *CrosschainTransactionExtra) MarshalTo(dAtA []byte) (int, error)
func (*CrosschainTransactionExtra) MarshalToSizedBuffer ¶
func (m *CrosschainTransactionExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CrosschainTransactionExtra) ProtoMessage ¶
func (*CrosschainTransactionExtra) ProtoMessage()
func (*CrosschainTransactionExtra) Reset ¶
func (m *CrosschainTransactionExtra) Reset()
func (*CrosschainTransactionExtra) Size ¶
func (m *CrosschainTransactionExtra) Size() (n int)
func (*CrosschainTransactionExtra) String ¶
func (m *CrosschainTransactionExtra) String() string
func (*CrosschainTransactionExtra) Unmarshal ¶
func (m *CrosschainTransactionExtra) Unmarshal(dAtA []byte) error
func (*CrosschainTransactionExtra) XXX_DiscardUnknown ¶
func (m *CrosschainTransactionExtra) XXX_DiscardUnknown()
func (*CrosschainTransactionExtra) XXX_Marshal ¶
func (m *CrosschainTransactionExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrosschainTransactionExtra) XXX_Merge ¶
func (m *CrosschainTransactionExtra) XXX_Merge(src proto.Message)
func (*CrosschainTransactionExtra) XXX_Size ¶
func (m *CrosschainTransactionExtra) XXX_Size() int
func (*CrosschainTransactionExtra) XXX_Unmarshal ¶
func (m *CrosschainTransactionExtra) XXX_Unmarshal(b []byte) error
type Event ¶
type Event struct { // Transaction Hash TxHash github_com_meshplus_bitxhub_kit_types.Hash `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Hash" json:"tx_hash"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // The interchain flag used by interchain contract Interchain bool `protobuf:"varint,3,opt,name=interchain,proto3" json:"interchain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetInterchain ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type GetBlockRequest ¶
type GetBlockRequest struct { Type GetBlockRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.GetBlockRequest_Type" json:"type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockRequest) Descriptor ¶
func (*GetBlockRequest) Descriptor() ([]byte, []int)
func (*GetBlockRequest) GetType ¶
func (m *GetBlockRequest) GetType() GetBlockRequest_Type
func (*GetBlockRequest) GetValue ¶
func (m *GetBlockRequest) GetValue() string
func (*GetBlockRequest) Marshal ¶
func (m *GetBlockRequest) Marshal() (dAtA []byte, err error)
func (*GetBlockRequest) MarshalToSizedBuffer ¶
func (m *GetBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) Reset ¶
func (m *GetBlockRequest) Reset()
func (*GetBlockRequest) Size ¶
func (m *GetBlockRequest) Size() (n int)
func (*GetBlockRequest) String ¶
func (m *GetBlockRequest) String() string
func (*GetBlockRequest) Unmarshal ¶
func (m *GetBlockRequest) Unmarshal(dAtA []byte) error
func (*GetBlockRequest) XXX_DiscardUnknown ¶
func (m *GetBlockRequest) XXX_DiscardUnknown()
func (*GetBlockRequest) XXX_Marshal ¶
func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockRequest) XXX_Merge ¶
func (m *GetBlockRequest) XXX_Merge(src proto.Message)
func (*GetBlockRequest) XXX_Size ¶
func (m *GetBlockRequest) XXX_Size() int
func (*GetBlockRequest) XXX_Unmarshal ¶
func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error
type GetBlockRequest_Type ¶
type GetBlockRequest_Type int32
const ( GetBlockRequest_HEIGHT GetBlockRequest_Type = 0 GetBlockRequest_HASH GetBlockRequest_Type = 1 )
func (GetBlockRequest_Type) EnumDescriptor ¶
func (GetBlockRequest_Type) EnumDescriptor() ([]byte, []int)
func (GetBlockRequest_Type) String ¶
func (x GetBlockRequest_Type) String() string
type GetBlocksRequest ¶
type GetBlocksRequest struct { Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Length uint64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlocksRequest) Descriptor ¶
func (*GetBlocksRequest) Descriptor() ([]byte, []int)
func (*GetBlocksRequest) GetLength ¶
func (m *GetBlocksRequest) GetLength() uint64
func (*GetBlocksRequest) GetOffset ¶
func (m *GetBlocksRequest) GetOffset() uint64
func (*GetBlocksRequest) Marshal ¶
func (m *GetBlocksRequest) Marshal() (dAtA []byte, err error)
func (*GetBlocksRequest) MarshalToSizedBuffer ¶
func (m *GetBlocksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlocksRequest) ProtoMessage ¶
func (*GetBlocksRequest) ProtoMessage()
func (*GetBlocksRequest) Reset ¶
func (m *GetBlocksRequest) Reset()
func (*GetBlocksRequest) Size ¶
func (m *GetBlocksRequest) Size() (n int)
func (*GetBlocksRequest) String ¶
func (m *GetBlocksRequest) String() string
func (*GetBlocksRequest) Unmarshal ¶
func (m *GetBlocksRequest) Unmarshal(dAtA []byte) error
func (*GetBlocksRequest) XXX_DiscardUnknown ¶
func (m *GetBlocksRequest) XXX_DiscardUnknown()
func (*GetBlocksRequest) XXX_Marshal ¶
func (m *GetBlocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlocksRequest) XXX_Merge ¶
func (m *GetBlocksRequest) XXX_Merge(src proto.Message)
func (*GetBlocksRequest) XXX_Size ¶
func (m *GetBlocksRequest) XXX_Size() int
func (*GetBlocksRequest) XXX_Unmarshal ¶
func (m *GetBlocksRequest) XXX_Unmarshal(b []byte) error
type GetBlocksResponse ¶
type GetBlocksResponse struct { Blocks []*Block `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlocksResponse) Descriptor ¶
func (*GetBlocksResponse) Descriptor() ([]byte, []int)
func (*GetBlocksResponse) GetBlocks ¶
func (m *GetBlocksResponse) GetBlocks() []*Block
func (*GetBlocksResponse) Marshal ¶
func (m *GetBlocksResponse) Marshal() (dAtA []byte, err error)
func (*GetBlocksResponse) MarshalTo ¶
func (m *GetBlocksResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetBlocksResponse) MarshalToSizedBuffer ¶
func (m *GetBlocksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBlocksResponse) ProtoMessage ¶
func (*GetBlocksResponse) ProtoMessage()
func (*GetBlocksResponse) Reset ¶
func (m *GetBlocksResponse) Reset()
func (*GetBlocksResponse) Size ¶
func (m *GetBlocksResponse) Size() (n int)
func (*GetBlocksResponse) String ¶
func (m *GetBlocksResponse) String() string
func (*GetBlocksResponse) Unmarshal ¶
func (m *GetBlocksResponse) Unmarshal(dAtA []byte) error
func (*GetBlocksResponse) XXX_DiscardUnknown ¶
func (m *GetBlocksResponse) XXX_DiscardUnknown()
func (*GetBlocksResponse) XXX_Marshal ¶
func (m *GetBlocksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlocksResponse) XXX_Merge ¶
func (m *GetBlocksResponse) XXX_Merge(src proto.Message)
func (*GetBlocksResponse) XXX_Size ¶
func (m *GetBlocksResponse) XXX_Size() int
func (*GetBlocksResponse) XXX_Unmarshal ¶
func (m *GetBlocksResponse) XXX_Unmarshal(b []byte) error
type GetMerkleWrapperRequest ¶
type GetMerkleWrapperRequest struct { Begin uint64 `protobuf:"varint,1,opt,name=begin,proto3" json:"begin,omitempty"` End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` Pid string `protobuf:"bytes,3,opt,name=pid,proto3" json:"pid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMerkleWrapperRequest) Descriptor ¶
func (*GetMerkleWrapperRequest) Descriptor() ([]byte, []int)
func (*GetMerkleWrapperRequest) GetBegin ¶
func (m *GetMerkleWrapperRequest) GetBegin() uint64
func (*GetMerkleWrapperRequest) GetEnd ¶
func (m *GetMerkleWrapperRequest) GetEnd() uint64
func (*GetMerkleWrapperRequest) GetPid ¶
func (m *GetMerkleWrapperRequest) GetPid() string
func (*GetMerkleWrapperRequest) Marshal ¶
func (m *GetMerkleWrapperRequest) Marshal() (dAtA []byte, err error)
func (*GetMerkleWrapperRequest) MarshalTo ¶
func (m *GetMerkleWrapperRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetMerkleWrapperRequest) MarshalToSizedBuffer ¶
func (m *GetMerkleWrapperRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetMerkleWrapperRequest) ProtoMessage ¶
func (*GetMerkleWrapperRequest) ProtoMessage()
func (*GetMerkleWrapperRequest) Reset ¶
func (m *GetMerkleWrapperRequest) Reset()
func (*GetMerkleWrapperRequest) Size ¶
func (m *GetMerkleWrapperRequest) Size() (n int)
func (*GetMerkleWrapperRequest) String ¶
func (m *GetMerkleWrapperRequest) String() string
func (*GetMerkleWrapperRequest) Unmarshal ¶
func (m *GetMerkleWrapperRequest) Unmarshal(dAtA []byte) error
func (*GetMerkleWrapperRequest) XXX_DiscardUnknown ¶
func (m *GetMerkleWrapperRequest) XXX_DiscardUnknown()
func (*GetMerkleWrapperRequest) XXX_Marshal ¶
func (m *GetMerkleWrapperRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMerkleWrapperRequest) XXX_Merge ¶
func (m *GetMerkleWrapperRequest) XXX_Merge(src proto.Message)
func (*GetMerkleWrapperRequest) XXX_Size ¶
func (m *GetMerkleWrapperRequest) XXX_Size() int
func (*GetMerkleWrapperRequest) XXX_Unmarshal ¶
func (m *GetMerkleWrapperRequest) XXX_Unmarshal(b []byte) error
type GetTransactionResponse ¶
type GetTransactionResponse struct { Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` TxMeta *TransactionMeta `protobuf:"bytes,2,opt,name=tx_meta,json=txMeta,proto3" json:"tx_meta,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionResponse) Descriptor ¶
func (*GetTransactionResponse) Descriptor() ([]byte, []int)
func (*GetTransactionResponse) GetTx ¶
func (m *GetTransactionResponse) GetTx() *Transaction
func (*GetTransactionResponse) GetTxMeta ¶
func (m *GetTransactionResponse) GetTxMeta() *TransactionMeta
func (*GetTransactionResponse) Marshal ¶
func (m *GetTransactionResponse) Marshal() (dAtA []byte, err error)
func (*GetTransactionResponse) MarshalTo ¶
func (m *GetTransactionResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetTransactionResponse) MarshalToSizedBuffer ¶
func (m *GetTransactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetTransactionResponse) ProtoMessage ¶
func (*GetTransactionResponse) ProtoMessage()
func (*GetTransactionResponse) Reset ¶
func (m *GetTransactionResponse) Reset()
func (*GetTransactionResponse) Size ¶
func (m *GetTransactionResponse) Size() (n int)
func (*GetTransactionResponse) String ¶
func (m *GetTransactionResponse) String() string
func (*GetTransactionResponse) Unmarshal ¶
func (m *GetTransactionResponse) Unmarshal(dAtA []byte) error
func (*GetTransactionResponse) XXX_DiscardUnknown ¶
func (m *GetTransactionResponse) XXX_DiscardUnknown()
func (*GetTransactionResponse) XXX_Marshal ¶
func (m *GetTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionResponse) XXX_Merge ¶
func (m *GetTransactionResponse) XXX_Merge(src proto.Message)
func (*GetTransactionResponse) XXX_Size ¶
func (m *GetTransactionResponse) XXX_Size() int
func (*GetTransactionResponse) XXX_Unmarshal ¶
func (m *GetTransactionResponse) XXX_Unmarshal(b []byte) error
type IBTP ¶
type IBTP struct { // ID of sending chain From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // ID of receiving chain To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // Index of inter-chain transaction Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` // inter-chain transaction type Type IBTP_Type `protobuf:"varint,4,opt,name=type,proto3,enum=pb.IBTP_Type" json:"type,omitempty"` // Timestamp of inter-chain events Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Proof of inter-chain transactions Proof []byte `protobuf:"bytes,6,opt,name=proof,proto3" json:"proof,omitempty"` // Encoded content used by inter-chain Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"` // Message version Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` // Self-defined fields used by app-chain Extra []byte `protobuf:"bytes,9,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Inter-blockchain Transfer Protocol
func (*IBTP) Descriptor ¶
func (*IBTP) GetPayload ¶
func (*IBTP) GetTimestamp ¶
func (*IBTP) GetVersion ¶
func (*IBTP) ProtoMessage ¶
func (*IBTP) ProtoMessage()
func (*IBTP) XXX_DiscardUnknown ¶
func (m *IBTP) XXX_DiscardUnknown()
func (*IBTP) XXX_Unmarshal ¶
type InvokePayload ¶
type InvokePayload struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Args []*Arg `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InvokePayload) Descriptor ¶
func (*InvokePayload) Descriptor() ([]byte, []int)
func (*InvokePayload) GetArgs ¶
func (m *InvokePayload) GetArgs() []*Arg
func (*InvokePayload) GetMethod ¶
func (m *InvokePayload) GetMethod() string
func (*InvokePayload) Marshal ¶
func (m *InvokePayload) Marshal() (dAtA []byte, err error)
func (*InvokePayload) MarshalToSizedBuffer ¶
func (m *InvokePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InvokePayload) ProtoMessage ¶
func (*InvokePayload) ProtoMessage()
func (*InvokePayload) Reset ¶
func (m *InvokePayload) Reset()
func (*InvokePayload) Size ¶
func (m *InvokePayload) Size() (n int)
func (*InvokePayload) String ¶
func (m *InvokePayload) String() string
func (*InvokePayload) Unmarshal ¶
func (m *InvokePayload) Unmarshal(dAtA []byte) error
func (*InvokePayload) XXX_DiscardUnknown ¶
func (m *InvokePayload) XXX_DiscardUnknown()
func (*InvokePayload) XXX_Marshal ¶
func (m *InvokePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InvokePayload) XXX_Merge ¶
func (m *InvokePayload) XXX_Merge(src proto.Message)
func (*InvokePayload) XXX_Size ¶
func (m *InvokePayload) XXX_Size() int
func (*InvokePayload) XXX_Unmarshal ¶
func (m *InvokePayload) XXX_Unmarshal(b []byte) error
type MerkleWrapper ¶
type MerkleWrapper struct { BlockHeader *BlockHeader `protobuf:"bytes,1,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` TransactionHashes []github_com_meshplus_bitxhub_kit_types.Hash `` /* 156-byte string literal not displayed */ Transactions []*Transaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` BlockHash github_com_meshplus_bitxhub_kit_types.Hash `` /* 132-byte string literal not displayed */ Signatures map[string][]byte `` /* 161-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerkleWrapper) Descriptor ¶
func (*MerkleWrapper) Descriptor() ([]byte, []int)
func (*MerkleWrapper) GetBlockHeader ¶
func (m *MerkleWrapper) GetBlockHeader() *BlockHeader
func (*MerkleWrapper) GetSignatures ¶
func (m *MerkleWrapper) GetSignatures() map[string][]byte
func (*MerkleWrapper) GetTransactions ¶
func (m *MerkleWrapper) GetTransactions() []*Transaction
func (*MerkleWrapper) Marshal ¶
func (m *MerkleWrapper) Marshal() (dAtA []byte, err error)
func (*MerkleWrapper) MarshalToSizedBuffer ¶
func (m *MerkleWrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MerkleWrapper) ProtoMessage ¶
func (*MerkleWrapper) ProtoMessage()
func (*MerkleWrapper) Reset ¶
func (m *MerkleWrapper) Reset()
func (*MerkleWrapper) SignHash ¶
func (w *MerkleWrapper) SignHash() types.Hash
func (*MerkleWrapper) Size ¶
func (m *MerkleWrapper) Size() (n int)
func (*MerkleWrapper) String ¶
func (m *MerkleWrapper) String() string
func (*MerkleWrapper) Unmarshal ¶
func (m *MerkleWrapper) Unmarshal(dAtA []byte) error
func (*MerkleWrapper) VerifyMerkleWrapper ¶
func (m *MerkleWrapper) VerifyMerkleWrapper() (bool, error)
Verify that MerkleWrapper is valid: Related transactions in MerkleWrapper can be verified by merkle existence
func (*MerkleWrapper) XXX_DiscardUnknown ¶
func (m *MerkleWrapper) XXX_DiscardUnknown()
func (*MerkleWrapper) XXX_Marshal ¶
func (m *MerkleWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerkleWrapper) XXX_Merge ¶
func (m *MerkleWrapper) XXX_Merge(src proto.Message)
func (*MerkleWrapper) XXX_Size ¶
func (m *MerkleWrapper) XXX_Size() int
func (*MerkleWrapper) XXX_Unmarshal ¶
func (m *MerkleWrapper) XXX_Unmarshal(b []byte) error
type MerkleWrappers ¶
type MerkleWrappers struct { Merkles []*MerkleWrapper `protobuf:"bytes,1,rep,name=merkles,proto3" json:"merkles,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerkleWrappers) Descriptor ¶
func (*MerkleWrappers) Descriptor() ([]byte, []int)
func (*MerkleWrappers) GetMerkles ¶
func (m *MerkleWrappers) GetMerkles() []*MerkleWrapper
func (*MerkleWrappers) Marshal ¶
func (m *MerkleWrappers) Marshal() (dAtA []byte, err error)
func (*MerkleWrappers) MarshalToSizedBuffer ¶
func (m *MerkleWrappers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MerkleWrappers) ProtoMessage ¶
func (*MerkleWrappers) ProtoMessage()
func (*MerkleWrappers) Reset ¶
func (m *MerkleWrappers) Reset()
func (*MerkleWrappers) Size ¶
func (m *MerkleWrappers) Size() (n int)
func (*MerkleWrappers) String ¶
func (m *MerkleWrappers) String() string
func (*MerkleWrappers) Unmarshal ¶
func (m *MerkleWrappers) Unmarshal(dAtA []byte) error
func (*MerkleWrappers) XXX_DiscardUnknown ¶
func (m *MerkleWrappers) XXX_DiscardUnknown()
func (*MerkleWrappers) XXX_Marshal ¶
func (m *MerkleWrappers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerkleWrappers) XXX_Merge ¶
func (m *MerkleWrappers) XXX_Merge(src proto.Message)
func (*MerkleWrappers) XXX_Size ¶
func (m *MerkleWrappers) XXX_Size() int
func (*MerkleWrappers) XXX_Unmarshal ¶
func (m *MerkleWrappers) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { Type Message_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.Message_Type" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` Version []byte `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetType ¶
func (m *Message) GetType() Message_Type
func (*Message) GetVersion ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Message_Type ¶
type Message_Type int32
const ( Message_GET_BLOCK Message_Type = 0 Message_GET_BLOCK_ACK Message_Type = 1 Message_CONSENSUS Message_Type = 2 Message_FETCH_CERT Message_Type = 3 Message_FETCH_CERT_ACK Message_Type = 4 Message_FETCH_BLOCK_SIGN Message_Type = 5 Message_FETCH_BLOCK_SIGN_ACK Message_Type = 6 )
func (Message_Type) EnumDescriptor ¶
func (Message_Type) EnumDescriptor() ([]byte, []int)
func (Message_Type) String ¶
func (x Message_Type) String() string
type Payload ¶
type Payload struct { SrcContractId string `protobuf:"bytes,1,opt,name=src_contract_id,json=srcContractId,proto3" json:"src_contract_id,omitempty"` DstContractId string `protobuf:"bytes,2,opt,name=dst_contract_id,json=dstContractId,proto3" json:"dst_contract_id,omitempty"` Func string `protobuf:"bytes,3,opt,name=func,proto3" json:"func,omitempty"` Args [][]byte `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"` Callback string `protobuf:"bytes,5,opt,name=callback,proto3" json:"callback,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Payload) Descriptor ¶
func (*Payload) GetCallback ¶
func (*Payload) GetDstContractId ¶
func (*Payload) GetSrcContractId ¶
func (*Payload) MarshalToSizedBuffer ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) XXX_DiscardUnknown ¶
func (m *Payload) XXX_DiscardUnknown()
func (*Payload) XXX_Marshal ¶
func (*Payload) XXX_Unmarshal ¶
type Receipt ¶
type Receipt struct { Version []byte `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` TxHash github_com_meshplus_bitxhub_kit_types.Hash `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Hash" json:"tx_hash"` Ret []byte `protobuf:"bytes,3,opt,name=ret,proto3" json:"ret,omitempty"` Status Receipt_Status `protobuf:"varint,4,opt,name=status,proto3,enum=pb.Receipt_Status" json:"status,omitempty"` Events []*Event `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Receipt) Descriptor ¶
func (*Receipt) GetStatus ¶
func (m *Receipt) GetStatus() Receipt_Status
func (*Receipt) GetVersion ¶
func (*Receipt) MarshalToSizedBuffer ¶
func (*Receipt) ProtoMessage ¶
func (*Receipt) ProtoMessage()
func (*Receipt) XXX_DiscardUnknown ¶
func (m *Receipt) XXX_DiscardUnknown()
func (*Receipt) XXX_Marshal ¶
func (*Receipt) XXX_Unmarshal ¶
type Receipt_Status ¶
type Receipt_Status int32
const ( Receipt_SUCCESS Receipt_Status = 0 Receipt_FAILED Receipt_Status = 1 )
func (Receipt_Status) EnumDescriptor ¶
func (Receipt_Status) EnumDescriptor() ([]byte, []int)
func (Receipt_Status) String ¶
func (x Receipt_Status) String() string
type Receipts ¶
type Receipts struct { Receipts []*Receipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Receipts) Descriptor ¶
func (*Receipts) GetReceipts ¶
func (*Receipts) MarshalToSizedBuffer ¶
func (*Receipts) ProtoMessage ¶
func (*Receipts) ProtoMessage()
func (*Receipts) XXX_DiscardUnknown ¶
func (m *Receipts) XXX_DiscardUnknown()
func (*Receipts) XXX_Marshal ¶
func (*Receipts) XXX_Unmarshal ¶
type Request ¶
type Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) MarshalToSizedBuffer ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type SendTransactionRequest ¶
type SendTransactionRequest struct { Version []byte `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` From github_com_meshplus_bitxhub_kit_types.Address `protobuf:"bytes,2,opt,name=from,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Address" json:"from"` To github_com_meshplus_bitxhub_kit_types.Address `protobuf:"bytes,3,opt,name=to,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Address" json:"to"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data *TransactionData `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` Nonce int64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` Signature []byte `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` Extra []byte `protobuf:"bytes,9,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendTransactionRequest) Descriptor ¶
func (*SendTransactionRequest) Descriptor() ([]byte, []int)
func (*SendTransactionRequest) GetData ¶
func (m *SendTransactionRequest) GetData() *TransactionData
func (*SendTransactionRequest) GetExtra ¶
func (m *SendTransactionRequest) GetExtra() []byte
func (*SendTransactionRequest) GetNonce ¶
func (m *SendTransactionRequest) GetNonce() int64
func (*SendTransactionRequest) GetSignature ¶
func (m *SendTransactionRequest) GetSignature() []byte
func (*SendTransactionRequest) GetTimestamp ¶
func (m *SendTransactionRequest) GetTimestamp() int64
func (*SendTransactionRequest) GetVersion ¶
func (m *SendTransactionRequest) GetVersion() []byte
func (*SendTransactionRequest) Marshal ¶
func (m *SendTransactionRequest) Marshal() (dAtA []byte, err error)
func (*SendTransactionRequest) MarshalTo ¶
func (m *SendTransactionRequest) MarshalTo(dAtA []byte) (int, error)
func (*SendTransactionRequest) MarshalToSizedBuffer ¶
func (m *SendTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SendTransactionRequest) ProtoMessage ¶
func (*SendTransactionRequest) ProtoMessage()
func (*SendTransactionRequest) Reset ¶
func (m *SendTransactionRequest) Reset()
func (*SendTransactionRequest) Size ¶
func (m *SendTransactionRequest) Size() (n int)
func (*SendTransactionRequest) String ¶
func (m *SendTransactionRequest) String() string
func (*SendTransactionRequest) Unmarshal ¶
func (m *SendTransactionRequest) Unmarshal(dAtA []byte) error
func (*SendTransactionRequest) XXX_DiscardUnknown ¶
func (m *SendTransactionRequest) XXX_DiscardUnknown()
func (*SendTransactionRequest) XXX_Marshal ¶
func (m *SendTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendTransactionRequest) XXX_Merge ¶
func (m *SendTransactionRequest) XXX_Merge(src proto.Message)
func (*SendTransactionRequest) XXX_Size ¶
func (m *SendTransactionRequest) XXX_Size() int
func (*SendTransactionRequest) XXX_Unmarshal ¶
func (m *SendTransactionRequest) XXX_Unmarshal(b []byte) error
type SubscriptionRequest ¶
type SubscriptionRequest struct { Type SubscriptionRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SubscriptionRequest_Type" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscriptionRequest) Descriptor ¶
func (*SubscriptionRequest) Descriptor() ([]byte, []int)
func (*SubscriptionRequest) GetType ¶
func (m *SubscriptionRequest) GetType() SubscriptionRequest_Type
func (*SubscriptionRequest) Marshal ¶
func (m *SubscriptionRequest) Marshal() (dAtA []byte, err error)
func (*SubscriptionRequest) MarshalTo ¶
func (m *SubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
func (*SubscriptionRequest) MarshalToSizedBuffer ¶
func (m *SubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubscriptionRequest) ProtoMessage ¶
func (*SubscriptionRequest) ProtoMessage()
func (*SubscriptionRequest) Reset ¶
func (m *SubscriptionRequest) Reset()
func (*SubscriptionRequest) Size ¶
func (m *SubscriptionRequest) Size() (n int)
func (*SubscriptionRequest) String ¶
func (m *SubscriptionRequest) String() string
func (*SubscriptionRequest) Unmarshal ¶
func (m *SubscriptionRequest) Unmarshal(dAtA []byte) error
func (*SubscriptionRequest) XXX_DiscardUnknown ¶
func (m *SubscriptionRequest) XXX_DiscardUnknown()
func (*SubscriptionRequest) XXX_Marshal ¶
func (m *SubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscriptionRequest) XXX_Merge ¶
func (m *SubscriptionRequest) XXX_Merge(src proto.Message)
func (*SubscriptionRequest) XXX_Size ¶
func (m *SubscriptionRequest) XXX_Size() int
func (*SubscriptionRequest) XXX_Unmarshal ¶
func (m *SubscriptionRequest) XXX_Unmarshal(b []byte) error
type SubscriptionRequest_Type ¶
type SubscriptionRequest_Type int32
const ( SubscriptionRequest_BLOCK SubscriptionRequest_Type = 0 SubscriptionRequest_EVENT SubscriptionRequest_Type = 1 SubscriptionRequest_INTERCHAIN_TX SubscriptionRequest_Type = 2 SubscriptionRequest_BLOCK_HEADER SubscriptionRequest_Type = 3 )
func (SubscriptionRequest_Type) EnumDescriptor ¶
func (SubscriptionRequest_Type) EnumDescriptor() ([]byte, []int)
func (SubscriptionRequest_Type) String ¶
func (x SubscriptionRequest_Type) String() string
type SyncMerkleWrapperRequest ¶
type SyncMerkleWrapperRequest struct { AppchainId string `protobuf:"bytes,1,opt,name=appchain_id,json=appchainId,proto3" json:"appchain_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SyncMerkleWrapperRequest) Descriptor ¶
func (*SyncMerkleWrapperRequest) Descriptor() ([]byte, []int)
func (*SyncMerkleWrapperRequest) GetAppchainId ¶
func (m *SyncMerkleWrapperRequest) GetAppchainId() string
func (*SyncMerkleWrapperRequest) Marshal ¶
func (m *SyncMerkleWrapperRequest) Marshal() (dAtA []byte, err error)
func (*SyncMerkleWrapperRequest) MarshalTo ¶
func (m *SyncMerkleWrapperRequest) MarshalTo(dAtA []byte) (int, error)
func (*SyncMerkleWrapperRequest) MarshalToSizedBuffer ¶
func (m *SyncMerkleWrapperRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SyncMerkleWrapperRequest) ProtoMessage ¶
func (*SyncMerkleWrapperRequest) ProtoMessage()
func (*SyncMerkleWrapperRequest) Reset ¶
func (m *SyncMerkleWrapperRequest) Reset()
func (*SyncMerkleWrapperRequest) Size ¶
func (m *SyncMerkleWrapperRequest) Size() (n int)
func (*SyncMerkleWrapperRequest) String ¶
func (m *SyncMerkleWrapperRequest) String() string
func (*SyncMerkleWrapperRequest) Unmarshal ¶
func (m *SyncMerkleWrapperRequest) Unmarshal(dAtA []byte) error
func (*SyncMerkleWrapperRequest) XXX_DiscardUnknown ¶
func (m *SyncMerkleWrapperRequest) XXX_DiscardUnknown()
func (*SyncMerkleWrapperRequest) XXX_Marshal ¶
func (m *SyncMerkleWrapperRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncMerkleWrapperRequest) XXX_Merge ¶
func (m *SyncMerkleWrapperRequest) XXX_Merge(src proto.Message)
func (*SyncMerkleWrapperRequest) XXX_Size ¶
func (m *SyncMerkleWrapperRequest) XXX_Size() int
func (*SyncMerkleWrapperRequest) XXX_Unmarshal ¶
func (m *SyncMerkleWrapperRequest) XXX_Unmarshal(b []byte) error
type Transaction ¶
type Transaction struct { Version []byte `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` From github_com_meshplus_bitxhub_kit_types.Address `protobuf:"bytes,2,opt,name=from,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Address" json:"from"` To github_com_meshplus_bitxhub_kit_types.Address `protobuf:"bytes,3,opt,name=to,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Address" json:"to"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TransactionHash github_com_meshplus_bitxhub_kit_types.Hash `` /* 150-byte string literal not displayed */ Data *TransactionData `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` Nonce int64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` Signature []byte `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` Extra []byte `protobuf:"bytes,9,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetCrosschainExtra ¶
func (m *Transaction) GetCrosschainExtra() (*CrosschainTransactionExtra, error)
func (*Transaction) GetData ¶
func (m *Transaction) GetData() *TransactionData
func (*Transaction) GetExtra ¶
func (m *Transaction) GetExtra() []byte
func (*Transaction) GetIBTP ¶
func (m *Transaction) GetIBTP() (*IBTP, error)
func (*Transaction) GetNonce ¶
func (m *Transaction) GetNonce() int64
func (*Transaction) GetSignature ¶
func (m *Transaction) GetSignature() []byte
func (*Transaction) GetTimestamp ¶
func (m *Transaction) GetTimestamp() int64
func (*Transaction) GetVersion ¶
func (m *Transaction) GetVersion() []byte
func (*Transaction) Hash ¶
func (m *Transaction) Hash() types.Hash
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) MarshalToSizedBuffer ¶
func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Sign ¶
func (m *Transaction) Sign(key crypto.PrivateKey) error
func (*Transaction) SignHash ¶
func (m *Transaction) SignHash() types.Hash
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type TransactionData ¶
type TransactionData struct { Type TransactionData_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pb.TransactionData_Type" json:"type,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` VmType TransactionData_VMType `protobuf:"varint,3,opt,name=vm_type,json=vmType,proto3,enum=pb.TransactionData_VMType" json:"vm_type,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` Extra []byte `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionData) Descriptor ¶
func (*TransactionData) Descriptor() ([]byte, []int)
func (*TransactionData) GetAmount ¶
func (m *TransactionData) GetAmount() uint64
func (*TransactionData) GetExtra ¶
func (m *TransactionData) GetExtra() []byte
func (*TransactionData) GetPayload ¶
func (m *TransactionData) GetPayload() []byte
func (*TransactionData) GetType ¶
func (m *TransactionData) GetType() TransactionData_Type
func (*TransactionData) GetVmType ¶
func (m *TransactionData) GetVmType() TransactionData_VMType
func (*TransactionData) Marshal ¶
func (m *TransactionData) Marshal() (dAtA []byte, err error)
func (*TransactionData) MarshalToSizedBuffer ¶
func (m *TransactionData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionData) ProtoMessage ¶
func (*TransactionData) ProtoMessage()
func (*TransactionData) Reset ¶
func (m *TransactionData) Reset()
func (*TransactionData) Size ¶
func (m *TransactionData) Size() (n int)
func (*TransactionData) String ¶
func (m *TransactionData) String() string
func (*TransactionData) Unmarshal ¶
func (m *TransactionData) Unmarshal(dAtA []byte) error
func (*TransactionData) XXX_DiscardUnknown ¶
func (m *TransactionData) XXX_DiscardUnknown()
func (*TransactionData) XXX_Marshal ¶
func (m *TransactionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionData) XXX_Merge ¶
func (m *TransactionData) XXX_Merge(src proto.Message)
func (*TransactionData) XXX_Size ¶
func (m *TransactionData) XXX_Size() int
func (*TransactionData) XXX_Unmarshal ¶
func (m *TransactionData) XXX_Unmarshal(b []byte) error
type TransactionData_Type ¶
type TransactionData_Type int32
const ( TransactionData_NORMAL TransactionData_Type = 0 TransactionData_INVOKE TransactionData_Type = 1 TransactionData_UPDATE TransactionData_Type = 2 TransactionData_FREEZE TransactionData_Type = 3 TransactionData_UNFREEZE TransactionData_Type = 4 )
func (TransactionData_Type) EnumDescriptor ¶
func (TransactionData_Type) EnumDescriptor() ([]byte, []int)
func (TransactionData_Type) String ¶
func (x TransactionData_Type) String() string
type TransactionData_VMType ¶
type TransactionData_VMType int32
const ( TransactionData_BVM TransactionData_VMType = 0 TransactionData_XVM TransactionData_VMType = 1 )
func (TransactionData_VMType) EnumDescriptor ¶
func (TransactionData_VMType) EnumDescriptor() ([]byte, []int)
func (TransactionData_VMType) String ¶
func (x TransactionData_VMType) String() string
type TransactionHash ¶
type TransactionHash []byte
func (TransactionHash) CalculateHash ¶
func (t TransactionHash) CalculateHash() ([]byte, error)
CalculateHash hashes the values of a TestContent
type TransactionHashMsg ¶
type TransactionHashMsg struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionHashMsg) Descriptor ¶
func (*TransactionHashMsg) Descriptor() ([]byte, []int)
func (*TransactionHashMsg) GetTxHash ¶
func (m *TransactionHashMsg) GetTxHash() string
func (*TransactionHashMsg) Marshal ¶
func (m *TransactionHashMsg) Marshal() (dAtA []byte, err error)
func (*TransactionHashMsg) MarshalTo ¶
func (m *TransactionHashMsg) MarshalTo(dAtA []byte) (int, error)
func (*TransactionHashMsg) MarshalToSizedBuffer ¶
func (m *TransactionHashMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionHashMsg) ProtoMessage ¶
func (*TransactionHashMsg) ProtoMessage()
func (*TransactionHashMsg) Reset ¶
func (m *TransactionHashMsg) Reset()
func (*TransactionHashMsg) Size ¶
func (m *TransactionHashMsg) Size() (n int)
func (*TransactionHashMsg) String ¶
func (m *TransactionHashMsg) String() string
func (*TransactionHashMsg) Unmarshal ¶
func (m *TransactionHashMsg) Unmarshal(dAtA []byte) error
func (*TransactionHashMsg) XXX_DiscardUnknown ¶
func (m *TransactionHashMsg) XXX_DiscardUnknown()
func (*TransactionHashMsg) XXX_Marshal ¶
func (m *TransactionHashMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionHashMsg) XXX_Merge ¶
func (m *TransactionHashMsg) XXX_Merge(src proto.Message)
func (*TransactionHashMsg) XXX_Size ¶
func (m *TransactionHashMsg) XXX_Size() int
func (*TransactionHashMsg) XXX_Unmarshal ¶
func (m *TransactionHashMsg) XXX_Unmarshal(b []byte) error
type TransactionMeta ¶
type TransactionMeta struct { BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,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 (*TransactionMeta) Descriptor ¶
func (*TransactionMeta) Descriptor() ([]byte, []int)
func (*TransactionMeta) GetBlockHash ¶
func (m *TransactionMeta) GetBlockHash() []byte
func (*TransactionMeta) GetBlockHeight ¶
func (m *TransactionMeta) GetBlockHeight() uint64
func (*TransactionMeta) GetIndex ¶
func (m *TransactionMeta) GetIndex() uint64
func (*TransactionMeta) Marshal ¶
func (m *TransactionMeta) Marshal() (dAtA []byte, err error)
func (*TransactionMeta) MarshalToSizedBuffer ¶
func (m *TransactionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionMeta) ProtoMessage ¶
func (*TransactionMeta) ProtoMessage()
func (*TransactionMeta) Reset ¶
func (m *TransactionMeta) Reset()
func (*TransactionMeta) Size ¶
func (m *TransactionMeta) Size() (n int)
func (*TransactionMeta) String ¶
func (m *TransactionMeta) String() string
func (*TransactionMeta) Unmarshal ¶
func (m *TransactionMeta) Unmarshal(dAtA []byte) error
func (*TransactionMeta) XXX_DiscardUnknown ¶
func (m *TransactionMeta) XXX_DiscardUnknown()
func (*TransactionMeta) XXX_Marshal ¶
func (m *TransactionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionMeta) XXX_Merge ¶
func (m *TransactionMeta) XXX_Merge(src proto.Message)
func (*TransactionMeta) XXX_Size ¶
func (m *TransactionMeta) XXX_Size() int
func (*TransactionMeta) XXX_Unmarshal ¶
func (m *TransactionMeta) XXX_Unmarshal(b []byte) error
type TransactionSlice ¶
type TransactionSlice struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Txs []*Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionSlice) Descriptor ¶
func (*TransactionSlice) Descriptor() ([]byte, []int)
func (*TransactionSlice) GetHeight ¶
func (m *TransactionSlice) GetHeight() uint64
func (*TransactionSlice) GetTxs ¶
func (m *TransactionSlice) GetTxs() []*Transaction
func (*TransactionSlice) Marshal ¶
func (m *TransactionSlice) Marshal() (dAtA []byte, err error)
func (*TransactionSlice) MarshalToSizedBuffer ¶
func (m *TransactionSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionSlice) ProtoMessage ¶
func (*TransactionSlice) ProtoMessage()
func (*TransactionSlice) Reset ¶
func (m *TransactionSlice) Reset()
func (*TransactionSlice) Size ¶
func (m *TransactionSlice) Size() (n int)
func (*TransactionSlice) String ¶
func (m *TransactionSlice) String() string
func (*TransactionSlice) Unmarshal ¶
func (m *TransactionSlice) Unmarshal(dAtA []byte) error
func (*TransactionSlice) XXX_DiscardUnknown ¶
func (m *TransactionSlice) XXX_DiscardUnknown()
func (*TransactionSlice) XXX_Marshal ¶
func (m *TransactionSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionSlice) XXX_Merge ¶
func (m *TransactionSlice) XXX_Merge(src proto.Message)
func (*TransactionSlice) XXX_Size ¶
func (m *TransactionSlice) XXX_Size() int
func (*TransactionSlice) XXX_Unmarshal ¶
func (m *TransactionSlice) XXX_Unmarshal(b []byte) error
type TransactionTracingMeta ¶
type TransactionTracingMeta struct { ReceiptHash []byte `protobuf:"bytes,1,opt,name=receipt_hash,json=receiptHash,proto3" json:"receipt_hash,omitempty"` ConfirmHash []byte `protobuf:"bytes,2,opt,name=confirm_hash,json=confirmHash,proto3" json:"confirm_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionTracingMeta) Descriptor ¶
func (*TransactionTracingMeta) Descriptor() ([]byte, []int)
func (*TransactionTracingMeta) GetConfirmHash ¶
func (m *TransactionTracingMeta) GetConfirmHash() []byte
func (*TransactionTracingMeta) GetReceiptHash ¶
func (m *TransactionTracingMeta) GetReceiptHash() []byte
func (*TransactionTracingMeta) Marshal ¶
func (m *TransactionTracingMeta) Marshal() (dAtA []byte, err error)
func (*TransactionTracingMeta) MarshalTo ¶
func (m *TransactionTracingMeta) MarshalTo(dAtA []byte) (int, error)
func (*TransactionTracingMeta) MarshalToSizedBuffer ¶
func (m *TransactionTracingMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionTracingMeta) ProtoMessage ¶
func (*TransactionTracingMeta) ProtoMessage()
func (*TransactionTracingMeta) Reset ¶
func (m *TransactionTracingMeta) Reset()
func (*TransactionTracingMeta) Size ¶
func (m *TransactionTracingMeta) Size() (n int)
func (*TransactionTracingMeta) String ¶
func (m *TransactionTracingMeta) String() string
func (*TransactionTracingMeta) Unmarshal ¶
func (m *TransactionTracingMeta) Unmarshal(dAtA []byte) error
func (*TransactionTracingMeta) XXX_DiscardUnknown ¶
func (m *TransactionTracingMeta) XXX_DiscardUnknown()
func (*TransactionTracingMeta) XXX_Marshal ¶
func (m *TransactionTracingMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionTracingMeta) XXX_Merge ¶
func (m *TransactionTracingMeta) XXX_Merge(src proto.Message)
func (*TransactionTracingMeta) XXX_Size ¶
func (m *TransactionTracingMeta) XXX_Size() int
func (*TransactionTracingMeta) XXX_Unmarshal ¶
func (m *TransactionTracingMeta) XXX_Unmarshal(b []byte) error
type Transactions ¶
type Transactions struct { Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Transactions) Descriptor ¶
func (*Transactions) Descriptor() ([]byte, []int)
func (*Transactions) GetTransactions ¶
func (m *Transactions) GetTransactions() []*Transaction
func (*Transactions) Marshal ¶
func (m *Transactions) Marshal() (dAtA []byte, err error)
func (*Transactions) MarshalToSizedBuffer ¶
func (m *Transactions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) Reset ¶
func (m *Transactions) Reset()
func (*Transactions) Size ¶
func (m *Transactions) Size() (n int)
func (*Transactions) String ¶
func (m *Transactions) String() string
func (*Transactions) Unmarshal ¶
func (m *Transactions) Unmarshal(dAtA []byte) error
func (*Transactions) XXX_DiscardUnknown ¶
func (m *Transactions) XXX_DiscardUnknown()
func (*Transactions) XXX_Marshal ¶
func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transactions) XXX_Merge ¶
func (m *Transactions) XXX_Merge(src proto.Message)
func (*Transactions) XXX_Size ¶
func (m *Transactions) XXX_Size() int
func (*Transactions) XXX_Unmarshal ¶
func (m *Transactions) XXX_Unmarshal(b []byte) error
type UnimplementedChainBrokerServer ¶
type UnimplementedChainBrokerServer struct { }
UnimplementedChainBrokerServer can be embedded to have forward compatible implementations.
func (*UnimplementedChainBrokerServer) GetAccountBalance ¶
func (*UnimplementedChainBrokerServer) GetBlock ¶
func (*UnimplementedChainBrokerServer) GetBlock(ctx context.Context, req *GetBlockRequest) (*Block, error)
func (*UnimplementedChainBrokerServer) GetBlocks ¶
func (*UnimplementedChainBrokerServer) GetBlocks(ctx context.Context, req *GetBlocksRequest) (*GetBlocksResponse, error)
func (*UnimplementedChainBrokerServer) GetChainMeta ¶
func (*UnimplementedChainBrokerServer) GetChainStatus ¶
func (*UnimplementedChainBrokerServer) GetMerkleWrapper ¶
func (*UnimplementedChainBrokerServer) GetMerkleWrapper(req *GetMerkleWrapperRequest, srv ChainBroker_GetMerkleWrapperServer) error
func (*UnimplementedChainBrokerServer) GetNetworkMeta ¶
func (*UnimplementedChainBrokerServer) GetReceipt ¶
func (*UnimplementedChainBrokerServer) GetReceipt(ctx context.Context, req *TransactionHashMsg) (*Receipt, error)
func (*UnimplementedChainBrokerServer) GetTransaction ¶
func (*UnimplementedChainBrokerServer) GetTransaction(ctx context.Context, req *TransactionHashMsg) (*GetTransactionResponse, error)
func (*UnimplementedChainBrokerServer) SendTransaction ¶
func (*UnimplementedChainBrokerServer) SendTransaction(ctx context.Context, req *SendTransactionRequest) (*TransactionHashMsg, error)
func (*UnimplementedChainBrokerServer) Subscribe ¶
func (*UnimplementedChainBrokerServer) Subscribe(req *SubscriptionRequest, srv ChainBroker_SubscribeServer) error
func (*UnimplementedChainBrokerServer) SyncMerkleWrapper ¶
func (*UnimplementedChainBrokerServer) SyncMerkleWrapper(req *SyncMerkleWrapperRequest, srv ChainBroker_SyncMerkleWrapperServer) error