relay_chain

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRequest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRequest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRequest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthResponse        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowResponse          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupResponse = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type BeginCrossChainRequest

type BeginCrossChainRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 跨链Id,可以由网关生成
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 跨链名称
	CrossChainName string `protobuf:"bytes,3,opt,name=cross_chain_name,json=crossChainName,proto3" json:"cross_chain_name,omitempty"`
	// 跨链标记
	CrossChainFlag string `protobuf:"bytes,4,opt,name=cross_chain_flag,json=crossChainFlag,proto3" json:"cross_chain_flag,omitempty"`
	// 跨链信息
	CrossChainMsg []*common.CrossChainMsg `protobuf:"bytes,5,rep,name=cross_chain_msg,json=crossChainMsg,proto3" json:"cross_chain_msg,omitempty"`
	// 跨链首笔交易内容
	TxContent *common.TxContent `protobuf:"bytes,6,opt,name=tx_content,json=txContent,proto3" json:"tx_content,omitempty"`
	// 发起跨链网关的id
	From string `protobuf:"bytes,7,opt,name=from,proto3" json:"from,omitempty"`
	// timeout, s
	Timeout int64 `protobuf:"varint,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// confirm数据
	ConfirmInfo *common.ConfirmInfo `protobuf:"bytes,9,opt,name=confirm_info,json=confirmInfo,proto3" json:"confirm_info,omitempty"`
	// cancel数据
	CancelInfo *common.CancelInfo `protobuf:"bytes,10,opt,name=cancel_info,json=cancelInfo,proto3" json:"cancel_info,omitempty"`
	// 跨链类型
	CrossType common.CrossType `protobuf:"varint,11,opt,name=cross_type,json=crossType,proto3,enum=common.CrossType" json:"cross_type,omitempty"`
}

跨链网关向中继网关发送跨链请求

func (*BeginCrossChainRequest) Descriptor

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

func (*BeginCrossChainRequest) GetCancelInfo

func (m *BeginCrossChainRequest) GetCancelInfo() *common.CancelInfo

func (*BeginCrossChainRequest) GetConfirmInfo

func (m *BeginCrossChainRequest) GetConfirmInfo() *common.ConfirmInfo

func (*BeginCrossChainRequest) GetCrossChainFlag

func (m *BeginCrossChainRequest) GetCrossChainFlag() string

func (*BeginCrossChainRequest) GetCrossChainId

func (m *BeginCrossChainRequest) GetCrossChainId() string

func (*BeginCrossChainRequest) GetCrossChainMsg

func (m *BeginCrossChainRequest) GetCrossChainMsg() []*common.CrossChainMsg

func (*BeginCrossChainRequest) GetCrossChainName

func (m *BeginCrossChainRequest) GetCrossChainName() string

func (*BeginCrossChainRequest) GetCrossType

func (m *BeginCrossChainRequest) GetCrossType() common.CrossType

func (*BeginCrossChainRequest) GetFrom

func (m *BeginCrossChainRequest) GetFrom() string

func (*BeginCrossChainRequest) GetTimeout

func (m *BeginCrossChainRequest) GetTimeout() int64

func (*BeginCrossChainRequest) GetTxContent

func (m *BeginCrossChainRequest) GetTxContent() *common.TxContent

func (*BeginCrossChainRequest) GetVersion

func (m *BeginCrossChainRequest) GetVersion() common.Version

func (*BeginCrossChainRequest) Marshal

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

func (*BeginCrossChainRequest) MarshalTo

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

func (*BeginCrossChainRequest) MarshalToSizedBuffer

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

func (*BeginCrossChainRequest) ProtoMessage

func (*BeginCrossChainRequest) ProtoMessage()

func (*BeginCrossChainRequest) Reset

func (m *BeginCrossChainRequest) Reset()

func (*BeginCrossChainRequest) Size

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

func (*BeginCrossChainRequest) String

func (m *BeginCrossChainRequest) String() string

func (*BeginCrossChainRequest) Unmarshal

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

func (*BeginCrossChainRequest) XXX_DiscardUnknown

func (m *BeginCrossChainRequest) XXX_DiscardUnknown()

func (*BeginCrossChainRequest) XXX_Marshal

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

func (*BeginCrossChainRequest) XXX_Merge

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

func (*BeginCrossChainRequest) XXX_Size

func (m *BeginCrossChainRequest) XXX_Size() int

func (*BeginCrossChainRequest) XXX_Unmarshal

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

type BeginCrossChainResponse

type BeginCrossChainResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 跨链Id
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

跨链网关向中继网关发送跨链请求返回

func (*BeginCrossChainResponse) Descriptor

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

func (*BeginCrossChainResponse) GetCode

func (m *BeginCrossChainResponse) GetCode() common.Code

func (*BeginCrossChainResponse) GetCrossChainId

func (m *BeginCrossChainResponse) GetCrossChainId() string

func (*BeginCrossChainResponse) GetMessage

func (m *BeginCrossChainResponse) GetMessage() string

func (*BeginCrossChainResponse) Marshal

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

func (*BeginCrossChainResponse) MarshalTo

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

func (*BeginCrossChainResponse) MarshalToSizedBuffer

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

func (*BeginCrossChainResponse) ProtoMessage

func (*BeginCrossChainResponse) ProtoMessage()

func (*BeginCrossChainResponse) Reset

func (m *BeginCrossChainResponse) Reset()

func (*BeginCrossChainResponse) Size

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

func (*BeginCrossChainResponse) String

func (m *BeginCrossChainResponse) String() string

func (*BeginCrossChainResponse) Unmarshal

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

func (*BeginCrossChainResponse) XXX_DiscardUnknown

func (m *BeginCrossChainResponse) XXX_DiscardUnknown()

func (*BeginCrossChainResponse) XXX_Marshal

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

func (*BeginCrossChainResponse) XXX_Merge

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

func (*BeginCrossChainResponse) XXX_Size

func (m *BeginCrossChainResponse) XXX_Size() int

func (*BeginCrossChainResponse) XXX_Unmarshal

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

type GatewayRegisterRequest

type GatewayRegisterRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 网关信息
	GatewayInfo *common.GatewayInfo `protobuf:"bytes,2,opt,name=gateway_info,json=gatewayInfo,proto3" json:"gateway_info,omitempty"`
}

网关注册

func (*GatewayRegisterRequest) Descriptor

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

func (*GatewayRegisterRequest) GetGatewayInfo

func (m *GatewayRegisterRequest) GetGatewayInfo() *common.GatewayInfo

func (*GatewayRegisterRequest) GetVersion

func (m *GatewayRegisterRequest) GetVersion() common.Version

func (*GatewayRegisterRequest) Marshal

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

func (*GatewayRegisterRequest) MarshalTo

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

func (*GatewayRegisterRequest) MarshalToSizedBuffer

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

func (*GatewayRegisterRequest) ProtoMessage

func (*GatewayRegisterRequest) ProtoMessage()

func (*GatewayRegisterRequest) Reset

func (m *GatewayRegisterRequest) Reset()

func (*GatewayRegisterRequest) Size

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

func (*GatewayRegisterRequest) String

func (m *GatewayRegisterRequest) String() string

func (*GatewayRegisterRequest) Unmarshal

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

func (*GatewayRegisterRequest) XXX_DiscardUnknown

func (m *GatewayRegisterRequest) XXX_DiscardUnknown()

func (*GatewayRegisterRequest) XXX_Marshal

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

func (*GatewayRegisterRequest) XXX_Merge

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

func (*GatewayRegisterRequest) XXX_Size

func (m *GatewayRegisterRequest) XXX_Size() int

func (*GatewayRegisterRequest) XXX_Unmarshal

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

type GatewayRegisterResponse

type GatewayRegisterResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 跨链网关Id
	GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

网关注册

func (*GatewayRegisterResponse) Descriptor

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

func (*GatewayRegisterResponse) GetCode

func (m *GatewayRegisterResponse) GetCode() common.Code

func (*GatewayRegisterResponse) GetGatewayId

func (m *GatewayRegisterResponse) GetGatewayId() string

func (*GatewayRegisterResponse) GetMessage

func (m *GatewayRegisterResponse) GetMessage() string

func (*GatewayRegisterResponse) Marshal

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

func (*GatewayRegisterResponse) MarshalTo

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

func (*GatewayRegisterResponse) MarshalToSizedBuffer

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

func (*GatewayRegisterResponse) ProtoMessage

func (*GatewayRegisterResponse) ProtoMessage()

func (*GatewayRegisterResponse) Reset

func (m *GatewayRegisterResponse) Reset()

func (*GatewayRegisterResponse) Size

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

func (*GatewayRegisterResponse) String

func (m *GatewayRegisterResponse) String() string

func (*GatewayRegisterResponse) Unmarshal

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

func (*GatewayRegisterResponse) XXX_DiscardUnknown

func (m *GatewayRegisterResponse) XXX_DiscardUnknown()

func (*GatewayRegisterResponse) XXX_Marshal

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

func (*GatewayRegisterResponse) XXX_Merge

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

func (*GatewayRegisterResponse) XXX_Size

func (m *GatewayRegisterResponse) XXX_Size() int

func (*GatewayRegisterResponse) XXX_Unmarshal

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

type GatewayUpdateRequest

type GatewayUpdateRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 网关信息
	GatewayInfo *common.GatewayInfo `protobuf:"bytes,2,opt,name=gateway_info,json=gatewayInfo,proto3" json:"gateway_info,omitempty"`
}

网关更新

func (*GatewayUpdateRequest) Descriptor

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

func (*GatewayUpdateRequest) GetGatewayInfo

func (m *GatewayUpdateRequest) GetGatewayInfo() *common.GatewayInfo

func (*GatewayUpdateRequest) GetVersion

func (m *GatewayUpdateRequest) GetVersion() common.Version

func (*GatewayUpdateRequest) Marshal

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

func (*GatewayUpdateRequest) MarshalTo

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

func (*GatewayUpdateRequest) MarshalToSizedBuffer

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

func (*GatewayUpdateRequest) ProtoMessage

func (*GatewayUpdateRequest) ProtoMessage()

func (*GatewayUpdateRequest) Reset

func (m *GatewayUpdateRequest) Reset()

func (*GatewayUpdateRequest) Size

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

func (*GatewayUpdateRequest) String

func (m *GatewayUpdateRequest) String() string

func (*GatewayUpdateRequest) Unmarshal

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

func (*GatewayUpdateRequest) XXX_DiscardUnknown

func (m *GatewayUpdateRequest) XXX_DiscardUnknown()

func (*GatewayUpdateRequest) XXX_Marshal

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

func (*GatewayUpdateRequest) XXX_Merge

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

func (*GatewayUpdateRequest) XXX_Size

func (m *GatewayUpdateRequest) XXX_Size() int

func (*GatewayUpdateRequest) XXX_Unmarshal

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

type GatewayUpdateResponse

type GatewayUpdateResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 跨链Id
	GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}

网关更新

func (*GatewayUpdateResponse) Descriptor

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

func (*GatewayUpdateResponse) GetCode

func (m *GatewayUpdateResponse) GetCode() common.Code

func (*GatewayUpdateResponse) GetGatewayId

func (m *GatewayUpdateResponse) GetGatewayId() string

func (*GatewayUpdateResponse) GetMessage

func (m *GatewayUpdateResponse) GetMessage() string

func (*GatewayUpdateResponse) Marshal

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

func (*GatewayUpdateResponse) MarshalTo

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

func (*GatewayUpdateResponse) MarshalToSizedBuffer

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

func (*GatewayUpdateResponse) ProtoMessage

func (*GatewayUpdateResponse) ProtoMessage()

func (*GatewayUpdateResponse) Reset

func (m *GatewayUpdateResponse) Reset()

func (*GatewayUpdateResponse) Size

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

func (*GatewayUpdateResponse) String

func (m *GatewayUpdateResponse) String() string

func (*GatewayUpdateResponse) Unmarshal

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

func (*GatewayUpdateResponse) XXX_DiscardUnknown

func (m *GatewayUpdateResponse) XXX_DiscardUnknown()

func (*GatewayUpdateResponse) XXX_Marshal

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

func (*GatewayUpdateResponse) XXX_Merge

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

func (*GatewayUpdateResponse) XXX_Size

func (m *GatewayUpdateResponse) XXX_Size() int

func (*GatewayUpdateResponse) XXX_Unmarshal

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

type InitContractRequest

type InitContractRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 合约名,spv合约参数和名称是固定好的,不需要传,格式为"spv[gatewayId][chainRid]"
	ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// 版本号
	ContractVersion string `protobuf:"bytes,3,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	// bytecode base64
	ByteCode []byte `protobuf:"bytes,4,opt,name=byte_code,json=byteCode,proto3" json:"byte_code,omitempty"`
	// runtimeType
	RuntimeType common.ChainmakerRuntimeType `` /* 129-byte string literal not displayed */
	// 初始化参数
	KeyValuePairs []*common.ContractKeyValuePair `protobuf:"bytes,6,rep,name=key_value_pairs,json=keyValuePairs,proto3" json:"key_value_pairs,omitempty"`
	// 网关id
	GatewayId string `protobuf:"bytes,7,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// 链资源id
	ChainRid string `protobuf:"bytes,8,opt,name=chain_rid,json=chainRid,proto3" json:"chain_rid,omitempty"`
}

创建具有同步区块头、交易验证功能的spv合约的请求

func (*InitContractRequest) Descriptor

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

func (*InitContractRequest) GetByteCode

func (m *InitContractRequest) GetByteCode() []byte

func (*InitContractRequest) GetChainRid

func (m *InitContractRequest) GetChainRid() string

func (*InitContractRequest) GetContractName

func (m *InitContractRequest) GetContractName() string

func (*InitContractRequest) GetContractVersion

func (m *InitContractRequest) GetContractVersion() string

func (*InitContractRequest) GetGatewayId

func (m *InitContractRequest) GetGatewayId() string

func (*InitContractRequest) GetKeyValuePairs

func (m *InitContractRequest) GetKeyValuePairs() []*common.ContractKeyValuePair

func (*InitContractRequest) GetRuntimeType

func (m *InitContractRequest) GetRuntimeType() common.ChainmakerRuntimeType

func (*InitContractRequest) GetVersion

func (m *InitContractRequest) GetVersion() common.Version

func (*InitContractRequest) Marshal

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

func (*InitContractRequest) MarshalTo

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

func (*InitContractRequest) MarshalToSizedBuffer

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

func (*InitContractRequest) ProtoMessage

func (*InitContractRequest) ProtoMessage()

func (*InitContractRequest) Reset

func (m *InitContractRequest) Reset()

func (*InitContractRequest) Size

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

func (*InitContractRequest) String

func (m *InitContractRequest) String() string

func (*InitContractRequest) Unmarshal

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

func (*InitContractRequest) XXX_DiscardUnknown

func (m *InitContractRequest) XXX_DiscardUnknown()

func (*InitContractRequest) XXX_Marshal

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

func (*InitContractRequest) XXX_Merge

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

func (*InitContractRequest) XXX_Size

func (m *InitContractRequest) XXX_Size() int

func (*InitContractRequest) XXX_Unmarshal

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

type InitContractResponse

type InitContractResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

安装区块头同步和spv验证合约

func (*InitContractResponse) Descriptor

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

func (*InitContractResponse) GetCode

func (m *InitContractResponse) GetCode() common.Code

func (*InitContractResponse) GetMessage

func (m *InitContractResponse) GetMessage() string

func (*InitContractResponse) Marshal

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

func (*InitContractResponse) MarshalTo

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

func (*InitContractResponse) MarshalToSizedBuffer

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

func (*InitContractResponse) ProtoMessage

func (*InitContractResponse) ProtoMessage()

func (*InitContractResponse) Reset

func (m *InitContractResponse) Reset()

func (*InitContractResponse) Size

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

func (*InitContractResponse) String

func (m *InitContractResponse) String() string

func (*InitContractResponse) Unmarshal

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

func (*InitContractResponse) XXX_DiscardUnknown

func (m *InitContractResponse) XXX_DiscardUnknown()

func (*InitContractResponse) XXX_Marshal

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

func (*InitContractResponse) XXX_Merge

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

func (*InitContractResponse) XXX_Size

func (m *InitContractResponse) XXX_Size() int

func (*InitContractResponse) XXX_Unmarshal

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

type QueryCrossChainRequest

type QueryCrossChainRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 跨链id(可选)
	CrossChainId string `protobuf:"bytes,2,opt,name=cross_chain_id,json=crossChainId,proto3" json:"cross_chain_id,omitempty"`
	// 每页多少数据(可选)
	PageSize uint64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 第几页(可选)
	PageNumber uint64 `protobuf:"varint,4,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
}

查询跨链信息

func (*QueryCrossChainRequest) Descriptor

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

func (*QueryCrossChainRequest) GetCrossChainId

func (m *QueryCrossChainRequest) GetCrossChainId() string

func (*QueryCrossChainRequest) GetPageNumber

func (m *QueryCrossChainRequest) GetPageNumber() uint64

func (*QueryCrossChainRequest) GetPageSize

func (m *QueryCrossChainRequest) GetPageSize() uint64

func (*QueryCrossChainRequest) GetVersion

func (m *QueryCrossChainRequest) GetVersion() common.Version

func (*QueryCrossChainRequest) Marshal

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

func (*QueryCrossChainRequest) MarshalTo

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

func (*QueryCrossChainRequest) MarshalToSizedBuffer

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

func (*QueryCrossChainRequest) ProtoMessage

func (*QueryCrossChainRequest) ProtoMessage()

func (*QueryCrossChainRequest) Reset

func (m *QueryCrossChainRequest) Reset()

func (*QueryCrossChainRequest) Size

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

func (*QueryCrossChainRequest) String

func (m *QueryCrossChainRequest) String() string

func (*QueryCrossChainRequest) Unmarshal

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

func (*QueryCrossChainRequest) XXX_DiscardUnknown

func (m *QueryCrossChainRequest) XXX_DiscardUnknown()

func (*QueryCrossChainRequest) XXX_Marshal

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

func (*QueryCrossChainRequest) XXX_Merge

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

func (*QueryCrossChainRequest) XXX_Size

func (m *QueryCrossChainRequest) XXX_Size() int

func (*QueryCrossChainRequest) XXX_Unmarshal

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

type QueryCrossChainResponse

type QueryCrossChainResponse struct {
	// 跨链信息列表
	CrossChainInfo []*common.CrossChainInfo `protobuf:"bytes,1,rep,name=cross_chain_info,json=crossChainInfo,proto3" json:"cross_chain_info,omitempty"`
	// 分页信息
	PageInfo *common.PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,3,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
}

查询跨链信息

func (*QueryCrossChainResponse) Descriptor

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

func (*QueryCrossChainResponse) GetCode

func (m *QueryCrossChainResponse) GetCode() common.Code

func (*QueryCrossChainResponse) GetCrossChainInfo

func (m *QueryCrossChainResponse) GetCrossChainInfo() []*common.CrossChainInfo

func (*QueryCrossChainResponse) GetMessage

func (m *QueryCrossChainResponse) GetMessage() string

func (*QueryCrossChainResponse) GetPageInfo

func (m *QueryCrossChainResponse) GetPageInfo() *common.PageInfo

func (*QueryCrossChainResponse) Marshal

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

func (*QueryCrossChainResponse) MarshalTo

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

func (*QueryCrossChainResponse) MarshalToSizedBuffer

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

func (*QueryCrossChainResponse) ProtoMessage

func (*QueryCrossChainResponse) ProtoMessage()

func (*QueryCrossChainResponse) Reset

func (m *QueryCrossChainResponse) Reset()

func (*QueryCrossChainResponse) Size

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

func (*QueryCrossChainResponse) String

func (m *QueryCrossChainResponse) String() string

func (*QueryCrossChainResponse) Unmarshal

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

func (*QueryCrossChainResponse) XXX_DiscardUnknown

func (m *QueryCrossChainResponse) XXX_DiscardUnknown()

func (*QueryCrossChainResponse) XXX_Marshal

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

func (*QueryCrossChainResponse) XXX_Merge

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

func (*QueryCrossChainResponse) XXX_Size

func (m *QueryCrossChainResponse) XXX_Size() int

func (*QueryCrossChainResponse) XXX_Unmarshal

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

type QueryGatewayRequest

type QueryGatewayRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 网关id(可选)
	GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// 每页多少数据(可选)
	PageSize uint64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 第几页(可选)
	PageNumber uint64 `protobuf:"varint,4,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
}

查询网关信息

func (*QueryGatewayRequest) Descriptor

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

func (*QueryGatewayRequest) GetGatewayId

func (m *QueryGatewayRequest) GetGatewayId() string

func (*QueryGatewayRequest) GetPageNumber

func (m *QueryGatewayRequest) GetPageNumber() uint64

func (*QueryGatewayRequest) GetPageSize

func (m *QueryGatewayRequest) GetPageSize() uint64

func (*QueryGatewayRequest) GetVersion

func (m *QueryGatewayRequest) GetVersion() common.Version

func (*QueryGatewayRequest) Marshal

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

func (*QueryGatewayRequest) MarshalTo

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

func (*QueryGatewayRequest) MarshalToSizedBuffer

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

func (*QueryGatewayRequest) ProtoMessage

func (*QueryGatewayRequest) ProtoMessage()

func (*QueryGatewayRequest) Reset

func (m *QueryGatewayRequest) Reset()

func (*QueryGatewayRequest) Size

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

func (*QueryGatewayRequest) String

func (m *QueryGatewayRequest) String() string

func (*QueryGatewayRequest) Unmarshal

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

func (*QueryGatewayRequest) XXX_DiscardUnknown

func (m *QueryGatewayRequest) XXX_DiscardUnknown()

func (*QueryGatewayRequest) XXX_Marshal

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

func (*QueryGatewayRequest) XXX_Merge

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

func (*QueryGatewayRequest) XXX_Size

func (m *QueryGatewayRequest) XXX_Size() int

func (*QueryGatewayRequest) XXX_Unmarshal

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

type QueryGatewayResponse

type QueryGatewayResponse struct {
	// 网关信息列表
	GatewayInfo []*common.GatewayInfo `protobuf:"bytes,1,rep,name=gateway_info,json=gatewayInfo,proto3" json:"gateway_info,omitempty"`
	// 分页信息
	PageInfo *common.PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// 执行结果code
	Code common.Code `protobuf:"varint,3,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
}

查询网关信息

func (*QueryGatewayResponse) Descriptor

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

func (*QueryGatewayResponse) GetCode

func (m *QueryGatewayResponse) GetCode() common.Code

func (*QueryGatewayResponse) GetGatewayInfo

func (m *QueryGatewayResponse) GetGatewayInfo() []*common.GatewayInfo

func (*QueryGatewayResponse) GetMessage

func (m *QueryGatewayResponse) GetMessage() string

func (*QueryGatewayResponse) GetPageInfo

func (m *QueryGatewayResponse) GetPageInfo() *common.PageInfo

func (*QueryGatewayResponse) Marshal

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

func (*QueryGatewayResponse) MarshalTo

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

func (*QueryGatewayResponse) MarshalToSizedBuffer

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

func (*QueryGatewayResponse) ProtoMessage

func (*QueryGatewayResponse) ProtoMessage()

func (*QueryGatewayResponse) Reset

func (m *QueryGatewayResponse) Reset()

func (*QueryGatewayResponse) Size

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

func (*QueryGatewayResponse) String

func (m *QueryGatewayResponse) String() string

func (*QueryGatewayResponse) Unmarshal

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

func (*QueryGatewayResponse) XXX_DiscardUnknown

func (m *QueryGatewayResponse) XXX_DiscardUnknown()

func (*QueryGatewayResponse) XXX_Marshal

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

func (*QueryGatewayResponse) XXX_Merge

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

func (*QueryGatewayResponse) XXX_Size

func (m *QueryGatewayResponse) XXX_Size() int

func (*QueryGatewayResponse) XXX_Unmarshal

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

type SyncBlockHeaderRequest

type SyncBlockHeaderRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 区块头与网关Id
	GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// 链id
	ChainRid string `protobuf:"bytes,3,opt,name=chain_rid,json=chainRid,proto3" json:"chain_rid,omitempty"`
	// 区块高度
	BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 区块头内容
	BlockHeader []byte `protobuf:"bytes,5,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"`
}

向中继网关发送同步区块请求

func (*SyncBlockHeaderRequest) Descriptor

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

func (*SyncBlockHeaderRequest) GetBlockHeader

func (m *SyncBlockHeaderRequest) GetBlockHeader() []byte

func (*SyncBlockHeaderRequest) GetBlockHeight

func (m *SyncBlockHeaderRequest) GetBlockHeight() uint64

func (*SyncBlockHeaderRequest) GetChainRid

func (m *SyncBlockHeaderRequest) GetChainRid() string

func (*SyncBlockHeaderRequest) GetGatewayId

func (m *SyncBlockHeaderRequest) GetGatewayId() string

func (*SyncBlockHeaderRequest) GetVersion

func (m *SyncBlockHeaderRequest) GetVersion() common.Version

func (*SyncBlockHeaderRequest) Marshal

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

func (*SyncBlockHeaderRequest) MarshalTo

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

func (*SyncBlockHeaderRequest) MarshalToSizedBuffer

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

func (*SyncBlockHeaderRequest) ProtoMessage

func (*SyncBlockHeaderRequest) ProtoMessage()

func (*SyncBlockHeaderRequest) Reset

func (m *SyncBlockHeaderRequest) Reset()

func (*SyncBlockHeaderRequest) Size

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

func (*SyncBlockHeaderRequest) String

func (m *SyncBlockHeaderRequest) String() string

func (*SyncBlockHeaderRequest) Unmarshal

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

func (*SyncBlockHeaderRequest) XXX_DiscardUnknown

func (m *SyncBlockHeaderRequest) XXX_DiscardUnknown()

func (*SyncBlockHeaderRequest) XXX_Marshal

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

func (*SyncBlockHeaderRequest) XXX_Merge

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

func (*SyncBlockHeaderRequest) XXX_Size

func (m *SyncBlockHeaderRequest) XXX_Size() int

func (*SyncBlockHeaderRequest) XXX_Unmarshal

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

type SyncBlockHeaderResponse

type SyncBlockHeaderResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

向中继网关发送同步区块请求返回

func (*SyncBlockHeaderResponse) Descriptor

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

func (*SyncBlockHeaderResponse) GetCode

func (m *SyncBlockHeaderResponse) GetCode() common.Code

func (*SyncBlockHeaderResponse) GetMessage

func (m *SyncBlockHeaderResponse) GetMessage() string

func (*SyncBlockHeaderResponse) Marshal

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

func (*SyncBlockHeaderResponse) MarshalTo

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

func (*SyncBlockHeaderResponse) MarshalToSizedBuffer

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

func (*SyncBlockHeaderResponse) ProtoMessage

func (*SyncBlockHeaderResponse) ProtoMessage()

func (*SyncBlockHeaderResponse) Reset

func (m *SyncBlockHeaderResponse) Reset()

func (*SyncBlockHeaderResponse) Size

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

func (*SyncBlockHeaderResponse) String

func (m *SyncBlockHeaderResponse) String() string

func (*SyncBlockHeaderResponse) Unmarshal

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

func (*SyncBlockHeaderResponse) XXX_DiscardUnknown

func (m *SyncBlockHeaderResponse) XXX_DiscardUnknown()

func (*SyncBlockHeaderResponse) XXX_Marshal

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

func (*SyncBlockHeaderResponse) XXX_Merge

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

func (*SyncBlockHeaderResponse) XXX_Size

func (m *SyncBlockHeaderResponse) XXX_Size() int

func (*SyncBlockHeaderResponse) XXX_Unmarshal

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

type UpdateContractRequest

type UpdateContractRequest struct {
	// 请求消息版本
	Version common.Version `protobuf:"varint,1,opt,name=version,proto3,enum=common.Version" json:"version,omitempty"`
	// 合约名
	ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// 版本号
	ContractVersion string `protobuf:"bytes,3,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	// bytecode
	ByteCode []byte `protobuf:"bytes,4,opt,name=byte_code,json=byteCode,proto3" json:"byte_code,omitempty"`
	// runtimeType
	RuntimeType common.ChainmakerRuntimeType `` /* 129-byte string literal not displayed */
	// 初始化参数
	KeyValuePairs []*common.ContractKeyValuePair `protobuf:"bytes,6,rep,name=key_value_pairs,json=keyValuePairs,proto3" json:"key_value_pairs,omitempty"`
	// 网关id
	GatewayId string `protobuf:"bytes,7,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// 链资源id
	ChainRid string `protobuf:"bytes,8,opt,name=chain_rid,json=chainRid,proto3" json:"chain_rid,omitempty"`
}

更新具有同步区块头、交易验证功能的spv合约的请求

func (*UpdateContractRequest) Descriptor

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

func (*UpdateContractRequest) GetByteCode

func (m *UpdateContractRequest) GetByteCode() []byte

func (*UpdateContractRequest) GetChainRid

func (m *UpdateContractRequest) GetChainRid() string

func (*UpdateContractRequest) GetContractName

func (m *UpdateContractRequest) GetContractName() string

func (*UpdateContractRequest) GetContractVersion

func (m *UpdateContractRequest) GetContractVersion() string

func (*UpdateContractRequest) GetGatewayId

func (m *UpdateContractRequest) GetGatewayId() string

func (*UpdateContractRequest) GetKeyValuePairs

func (m *UpdateContractRequest) GetKeyValuePairs() []*common.ContractKeyValuePair

func (*UpdateContractRequest) GetRuntimeType

func (*UpdateContractRequest) GetVersion

func (m *UpdateContractRequest) GetVersion() common.Version

func (*UpdateContractRequest) Marshal

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

func (*UpdateContractRequest) MarshalTo

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

func (*UpdateContractRequest) MarshalToSizedBuffer

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

func (*UpdateContractRequest) ProtoMessage

func (*UpdateContractRequest) ProtoMessage()

func (*UpdateContractRequest) Reset

func (m *UpdateContractRequest) Reset()

func (*UpdateContractRequest) Size

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

func (*UpdateContractRequest) String

func (m *UpdateContractRequest) String() string

func (*UpdateContractRequest) Unmarshal

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

func (*UpdateContractRequest) XXX_DiscardUnknown

func (m *UpdateContractRequest) XXX_DiscardUnknown()

func (*UpdateContractRequest) XXX_Marshal

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

func (*UpdateContractRequest) XXX_Merge

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

func (*UpdateContractRequest) XXX_Size

func (m *UpdateContractRequest) XXX_Size() int

func (*UpdateContractRequest) XXX_Unmarshal

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

type UpdateContractResponse

type UpdateContractResponse struct {
	// 执行结果code
	Code common.Code `protobuf:"varint,1,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"`
	// 返回消息内容
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

升级区块头同步和spv验证合约

func (*UpdateContractResponse) Descriptor

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

func (*UpdateContractResponse) GetCode

func (m *UpdateContractResponse) GetCode() common.Code

func (*UpdateContractResponse) GetMessage

func (m *UpdateContractResponse) GetMessage() string

func (*UpdateContractResponse) Marshal

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

func (*UpdateContractResponse) MarshalTo

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

func (*UpdateContractResponse) MarshalToSizedBuffer

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

func (*UpdateContractResponse) ProtoMessage

func (*UpdateContractResponse) ProtoMessage()

func (*UpdateContractResponse) Reset

func (m *UpdateContractResponse) Reset()

func (*UpdateContractResponse) Size

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

func (*UpdateContractResponse) String

func (m *UpdateContractResponse) String() string

func (*UpdateContractResponse) Unmarshal

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

func (*UpdateContractResponse) XXX_DiscardUnknown

func (m *UpdateContractResponse) XXX_DiscardUnknown()

func (*UpdateContractResponse) XXX_Marshal

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

func (*UpdateContractResponse) XXX_Merge

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

func (*UpdateContractResponse) XXX_Size

func (m *UpdateContractResponse) XXX_Size() int

func (*UpdateContractResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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