pb

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 25 Imported by: 63

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthArg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowArg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupArg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthBlock        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBlock          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthBroker        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBroker          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBroker = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthChain        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChain          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChain = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthIbtp        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIbtp          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIbtp = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNetwork        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNetwork          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNetwork = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthReceipt        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowReceipt          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupReceipt = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTransaction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTransaction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
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,
}
View Source
var GetBlockRequest_Type_name = map[int32]string{
	0: "HEIGHT",
	1: "HASH",
}
View Source
var GetBlockRequest_Type_value = map[string]int32{
	"HEIGHT": 0,
	"HASH":   1,
}
View Source
var IBTP_Type_name = map[int32]string{
	0: "INTERCHAIN",
	1: "RECEIPT",
	2: "CONFIRM",
}
View Source
var IBTP_Type_value = map[string]int32{
	"INTERCHAIN": 0,
	"RECEIPT":    1,
	"CONFIRM":    2,
}
View Source
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",
}
View Source
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,
}
View Source
var Receipt_Status_name = map[int32]string{
	0: "SUCCESS",
	1: "FAILED",
}
View Source
var Receipt_Status_value = map[string]int32{
	"SUCCESS": 0,
	"FAILED":  1,
}
View Source
var SubscriptionRequest_Type_name = map[int32]string{
	0: "BLOCK",
	1: "EVENT",
	2: "INTERCHAIN_TX",
	3: "BLOCK_HEADER",
}
View Source
var SubscriptionRequest_Type_value = map[string]int32{
	"BLOCK":         0,
	"EVENT":         1,
	"INTERCHAIN_TX": 2,
	"BLOCK_HEADER":  3,
}
View Source
var TransactionData_Type_name = map[int32]string{
	0: "NORMAL",
	1: "INVOKE",
	2: "UPDATE",
	3: "FREEZE",
	4: "UNFREEZE",
}
View Source
var TransactionData_Type_value = map[string]int32{
	"NORMAL":   0,
	"INVOKE":   1,
	"UPDATE":   2,
	"FREEZE":   3,
	"UNFREEZE": 4,
}
View Source
var TransactionData_VMType_name = map[int32]string{
	0: "BVM",
	1: "XVM",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Address) GetAddress

func (m *Address) GetAddress() string

func (*Address) Marshal

func (m *Address) Marshal() (dAtA []byte, err error)

func (*Address) MarshalTo

func (m *Address) MarshalTo(dAtA []byte) (int, error)

func (*Address) MarshalToSizedBuffer

func (m *Address) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) Size

func (m *Address) Size() (n int)

func (*Address) String

func (m *Address) String() string

func (*Address) Unmarshal

func (m *Address) Unmarshal(dAtA []byte) error

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

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

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

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

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 Bytes

func Bytes(content []byte) *Arg

func Int32

func Int32(i int32) *Arg

func Int64

func Int64(i int64) *Arg

func String

func String(content string) *Arg

func Uint32

func Uint32(i uint32) *Arg

func Uint64

func Uint64(i uint64) *Arg

func (*Arg) Descriptor

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

func (*Arg) GetIsArray

func (m *Arg) GetIsArray() bool

func (*Arg) GetType

func (m *Arg) GetType() Arg_Type

func (*Arg) GetValue

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

func (*Arg) Marshal

func (m *Arg) Marshal() (dAtA []byte, err error)

func (*Arg) MarshalTo

func (m *Arg) MarshalTo(dAtA []byte) (int, error)

func (*Arg) MarshalToSizedBuffer

func (m *Arg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Arg) ProtoMessage

func (*Arg) ProtoMessage()

func (*Arg) Reset

func (m *Arg) Reset()

func (*Arg) Size

func (m *Arg) Size() (n int)

func (*Arg) String

func (m *Arg) String() string

func (*Arg) Unmarshal

func (m *Arg) Unmarshal(dAtA []byte) error

func (*Arg) XXX_DiscardUnknown

func (m *Arg) XXX_DiscardUnknown()

func (*Arg) XXX_Marshal

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

func (*Arg) XXX_Merge

func (m *Arg) XXX_Merge(src proto.Message)

func (*Arg) XXX_Size

func (m *Arg) XXX_Size() int

func (*Arg) XXX_Unmarshal

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

type Arg_Type

type Arg_Type int32
const (
	Arg_I32    Arg_Type = 0
	Arg_I64    Arg_Type = 1
	Arg_U32    Arg_Type = 2
	Arg_U64    Arg_Type = 3
	Arg_F32    Arg_Type = 4
	Arg_F64    Arg_Type = 5
	Arg_String Arg_Type = 6
	Arg_Bytes  Arg_Type = 7
	Arg_Bool   Arg_Type = 8
)

func (Arg_Type) EnumDescriptor

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

func (Arg_Type) String

func (x Arg_Type) String() string

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) Descriptor() ([]byte, []int)

func (*Block) GetBlockHeader

func (m *Block) GetBlockHeader() *BlockHeader

func (*Block) GetExtra

func (m *Block) GetExtra() []byte

func (*Block) GetSignature

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

func (*Block) GetTransactions

func (m *Block) GetTransactions() []*Transaction

func (*Block) Hash

func (m *Block) Hash() types.Hash

func (*Block) Height

func (m *Block) Height() uint64

func (*Block) Marshal

func (m *Block) Marshal() (dAtA []byte, err error)

func (*Block) MarshalTo

func (m *Block) MarshalTo(dAtA []byte) (int, error)

func (*Block) MarshalToSizedBuffer

func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

func (m *Block) Size() (n int)

func (*Block) String

func (m *Block) String() string

func (*Block) Unmarshal

func (m *Block) Unmarshal(dAtA []byte) error

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

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

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

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

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

func (m *BlockHeader) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*ChainMeta) GetHeight

func (m *ChainMeta) GetHeight() uint64

func (*ChainMeta) GetInterchainTxCount

func (m *ChainMeta) GetInterchainTxCount() uint64

func (*ChainMeta) Marshal

func (m *ChainMeta) Marshal() (dAtA []byte, err error)

func (*ChainMeta) MarshalTo

func (m *ChainMeta) MarshalTo(dAtA []byte) (int, error)

func (*ChainMeta) MarshalToSizedBuffer

func (m *ChainMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainMeta) ProtoMessage

func (*ChainMeta) ProtoMessage()

func (*ChainMeta) Reset

func (m *ChainMeta) Reset()

func (*ChainMeta) Size

func (m *ChainMeta) Size() (n int)

func (*ChainMeta) String

func (m *ChainMeta) String() string

func (*ChainMeta) Unmarshal

func (m *ChainMeta) Unmarshal(dAtA []byte) error

func (*ChainMeta) XXX_DiscardUnknown

func (m *ChainMeta) XXX_DiscardUnknown()

func (*ChainMeta) XXX_Marshal

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

func (*ChainMeta) XXX_Merge

func (m *ChainMeta) XXX_Merge(src proto.Message)

func (*ChainMeta) XXX_Size

func (m *ChainMeta) XXX_Size() int

func (*ChainMeta) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Event) GetData

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

func (*Event) GetInterchain

func (m *Event) GetInterchain() bool

func (*Event) Marshal

func (m *Event) Marshal() (dAtA []byte, err error)

func (*Event) MarshalTo

func (m *Event) MarshalTo(dAtA []byte) (int, error)

func (*Event) MarshalToSizedBuffer

func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

func (m *Event) Size() (n int)

func (*Event) String

func (m *Event) String() string

func (*Event) Unmarshal

func (m *Event) Unmarshal(dAtA []byte) error

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

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 (*GetBlockRequest) GetValue

func (m *GetBlockRequest) GetValue() string

func (*GetBlockRequest) Marshal

func (m *GetBlockRequest) Marshal() (dAtA []byte, err error)

func (*GetBlockRequest) MarshalTo

func (m *GetBlockRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetBlocksRequest) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*IBTP) GetExtra

func (m *IBTP) GetExtra() []byte

func (*IBTP) GetFrom

func (m *IBTP) GetFrom() string

func (*IBTP) GetIndex

func (m *IBTP) GetIndex() uint64

func (*IBTP) GetPayload

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

func (*IBTP) GetProof

func (m *IBTP) GetProof() []byte

func (*IBTP) GetTimestamp

func (m *IBTP) GetTimestamp() int64

func (*IBTP) GetTo

func (m *IBTP) GetTo() string

func (*IBTP) GetType

func (m *IBTP) GetType() IBTP_Type

func (*IBTP) GetVersion

func (m *IBTP) GetVersion() string

func (*IBTP) ID

func (m *IBTP) ID() string

func (*IBTP) Marshal

func (m *IBTP) Marshal() (dAtA []byte, err error)

func (*IBTP) MarshalTo

func (m *IBTP) MarshalTo(dAtA []byte) (int, error)

func (*IBTP) MarshalToSizedBuffer

func (m *IBTP) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IBTP) ProtoMessage

func (*IBTP) ProtoMessage()

func (*IBTP) Reset

func (m *IBTP) Reset()

func (*IBTP) Size

func (m *IBTP) Size() (n int)

func (*IBTP) String

func (m *IBTP) String() string

func (*IBTP) Unmarshal

func (m *IBTP) Unmarshal(dAtA []byte) error

func (*IBTP) XXX_DiscardUnknown

func (m *IBTP) XXX_DiscardUnknown()

func (*IBTP) XXX_Marshal

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

func (*IBTP) XXX_Merge

func (m *IBTP) XXX_Merge(src proto.Message)

func (*IBTP) XXX_Size

func (m *IBTP) XXX_Size() int

func (*IBTP) XXX_Unmarshal

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

type IBTP_Type

type IBTP_Type int32
const (
	IBTP_INTERCHAIN IBTP_Type = 0
	IBTP_RECEIPT    IBTP_Type = 1
	IBTP_CONFIRM    IBTP_Type = 2
)

func (IBTP_Type) EnumDescriptor

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

func (IBTP_Type) String

func (x IBTP_Type) String() string

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

func (m *InvokePayload) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MerkleWrapper) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MerkleWrappers) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Message) GetData

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

func (*Message) GetType

func (m *Message) GetType() Message_Type

func (*Message) GetVersion

func (m *Message) GetVersion() []byte

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Payload) GetArgs

func (m *Payload) GetArgs() [][]byte

func (*Payload) GetCallback

func (m *Payload) GetCallback() string

func (*Payload) GetDstContractId

func (m *Payload) GetDstContractId() string

func (*Payload) GetFunc

func (m *Payload) GetFunc() string

func (*Payload) GetSrcContractId

func (m *Payload) GetSrcContractId() string

func (*Payload) Marshal

func (m *Payload) Marshal() (dAtA []byte, err error)

func (*Payload) MarshalTo

func (m *Payload) MarshalTo(dAtA []byte) (int, error)

func (*Payload) MarshalToSizedBuffer

func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) Size

func (m *Payload) Size() (n int)

func (*Payload) String

func (m *Payload) String() string

func (*Payload) Unmarshal

func (m *Payload) Unmarshal(dAtA []byte) error

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

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

func (*Payload) XXX_Merge

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Receipt) GetEvents

func (m *Receipt) GetEvents() []*Event

func (*Receipt) GetRet

func (m *Receipt) GetRet() []byte

func (*Receipt) GetStatus

func (m *Receipt) GetStatus() Receipt_Status

func (*Receipt) GetVersion

func (m *Receipt) GetVersion() []byte

func (*Receipt) Hash

func (r *Receipt) Hash() types.Hash

func (*Receipt) IsSuccess

func (r *Receipt) IsSuccess() bool

func (*Receipt) Marshal

func (m *Receipt) Marshal() (dAtA []byte, err error)

func (*Receipt) MarshalTo

func (m *Receipt) MarshalTo(dAtA []byte) (int, error)

func (*Receipt) MarshalToSizedBuffer

func (m *Receipt) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) Reset

func (m *Receipt) Reset()

func (*Receipt) Size

func (m *Receipt) Size() (n int)

func (*Receipt) String

func (m *Receipt) String() string

func (*Receipt) Unmarshal

func (m *Receipt) Unmarshal(dAtA []byte) error

func (*Receipt) XXX_DiscardUnknown

func (m *Receipt) XXX_DiscardUnknown()

func (*Receipt) XXX_Marshal

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

func (*Receipt) XXX_Merge

func (m *Receipt) XXX_Merge(src proto.Message)

func (*Receipt) XXX_Size

func (m *Receipt) XXX_Size() int

func (*Receipt) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Receipts) GetReceipts

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

func (*Receipts) Marshal

func (m *Receipts) Marshal() (dAtA []byte, err error)

func (*Receipts) MarshalTo

func (m *Receipts) MarshalTo(dAtA []byte) (int, error)

func (*Receipts) MarshalToSizedBuffer

func (m *Receipts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Receipts) ProtoMessage

func (*Receipts) ProtoMessage()

func (*Receipts) Reset

func (m *Receipts) Reset()

func (*Receipts) Size

func (m *Receipts) Size() (n int)

func (*Receipts) String

func (m *Receipts) String() string

func (*Receipts) Unmarshal

func (m *Receipts) Unmarshal(dAtA []byte) error

func (*Receipts) XXX_DiscardUnknown

func (m *Receipts) XXX_DiscardUnknown()

func (*Receipts) XXX_Marshal

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

func (*Receipts) XXX_Merge

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

func (*Receipts) XXX_Size

func (m *Receipts) XXX_Size() int

func (*Receipts) XXX_Unmarshal

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

type Request

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

func (*Request) Descriptor

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

func (*Request) Marshal

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) MarshalToSizedBuffer

func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(dAtA []byte) error

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Response) GetData

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

func (*Response) Marshal

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) MarshalToSizedBuffer

func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(dAtA []byte) error

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

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 (*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 (*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) MarshalTo

func (m *Transaction) MarshalTo(dAtA []byte) (int, 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 (*TransactionData) GetVmType

func (m *TransactionData) GetVmType() TransactionData_VMType

func (*TransactionData) Marshal

func (m *TransactionData) Marshal() (dAtA []byte, err error)

func (*TransactionData) MarshalTo

func (m *TransactionData) MarshalTo(dAtA []byte) (int, 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

func (TransactionHash) Equals

func (t TransactionHash) Equals(other mt.Content) (bool, error)

Equals tests for equality of two Contents

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

func (m *TransactionMeta) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *TransactionSlice) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Transactions) MarshalTo(dAtA []byte) (int, 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) GetAccountBalance(ctx context.Context, req *Address) (*Response, error)

func (*UnimplementedChainBrokerServer) GetBlock

func (*UnimplementedChainBrokerServer) GetBlocks

func (*UnimplementedChainBrokerServer) GetChainMeta

func (*UnimplementedChainBrokerServer) GetChainStatus

func (*UnimplementedChainBrokerServer) GetChainStatus(ctx context.Context, req *Request) (*Response, error)

func (*UnimplementedChainBrokerServer) GetMerkleWrapper

func (*UnimplementedChainBrokerServer) GetNetworkMeta

func (*UnimplementedChainBrokerServer) GetNetworkMeta(ctx context.Context, req *Request) (*Response, error)

func (*UnimplementedChainBrokerServer) GetReceipt

func (*UnimplementedChainBrokerServer) GetTransaction

func (*UnimplementedChainBrokerServer) SendTransaction

func (*UnimplementedChainBrokerServer) Subscribe

func (*UnimplementedChainBrokerServer) SyncMerkleWrapper

Jump to

Keyboard shortcuts

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