Documentation ¶
Index ¶
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type ClassTrace
- func (*ClassTrace) Descriptor() ([]byte, []int)
- func (m *ClassTrace) GetBaseClass() string
- func (m *ClassTrace) GetPath() string
- func (m *ClassTrace) Marshal() (dAtA []byte, err error)
- func (m *ClassTrace) MarshalTo(dAtA []byte) (int, error)
- func (m *ClassTrace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClassTrace) ProtoMessage()
- func (m *ClassTrace) Reset()
- func (m *ClassTrace) Size() (n int)
- func (m *ClassTrace) String() string
- func (m *ClassTrace) Unmarshal(dAtA []byte) error
- func (m *ClassTrace) XXX_DiscardUnknown()
- func (m *ClassTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClassTrace) XXX_Merge(src proto.Message)
- func (m *ClassTrace) XXX_Size() int
- func (m *ClassTrace) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMtTransfer
- func (*MsgMtTransfer) Descriptor() ([]byte, []int)
- func (msg MsgMtTransfer) GetSignBytes() []byte
- func (msg MsgMtTransfer) GetSigners() []sdk.AccAddress
- func (m *MsgMtTransfer) Marshal() (dAtA []byte, err error)
- func (m *MsgMtTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMtTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMtTransfer) ProtoMessage()
- func (m *MsgMtTransfer) Reset()
- func (msg MsgMtTransfer) Route() string
- func (m *MsgMtTransfer) Size() (n int)
- func (m *MsgMtTransfer) String() string
- func (msg MsgMtTransfer) Type() string
- func (m *MsgMtTransfer) Unmarshal(dAtA []byte) error
- func (msg MsgMtTransfer) ValidateBasic() error
- func (m *MsgMtTransfer) XXX_DiscardUnknown()
- func (m *MsgMtTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMtTransfer) XXX_Merge(src proto.Message)
- func (m *MsgMtTransfer) XXX_Size() int
- func (m *MsgMtTransfer) XXX_Unmarshal(b []byte) error
- type MsgMtTransferResponse
- func (*MsgMtTransferResponse) Descriptor() ([]byte, []int)
- func (m *MsgMtTransferResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMtTransferResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMtTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMtTransferResponse) ProtoMessage()
- func (m *MsgMtTransferResponse) Reset()
- func (m *MsgMtTransferResponse) Size() (n int)
- func (m *MsgMtTransferResponse) String() string
- func (m *MsgMtTransferResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMtTransferResponse) XXX_DiscardUnknown()
- func (m *MsgMtTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMtTransferResponse) XXX_Merge(src proto.Message)
- func (m *MsgMtTransferResponse) XXX_Size() int
- func (m *MsgMtTransferResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MultiTokenPacketData
- func (*MultiTokenPacketData) Descriptor() ([]byte, []int)
- func (m *MultiTokenPacketData) GetAmount() uint64
- func (m *MultiTokenPacketData) GetAwayFromOrigin() bool
- func (m *MultiTokenPacketData) GetClass() string
- func (m *MultiTokenPacketData) GetData() []byte
- func (m *MultiTokenPacketData) GetDestContract() string
- func (m *MultiTokenPacketData) GetId() string
- func (m *MultiTokenPacketData) GetReceiver() string
- func (m *MultiTokenPacketData) GetSender() string
- func (m *MultiTokenPacketData) Marshal() (dAtA []byte, err error)
- func (m *MultiTokenPacketData) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiTokenPacketData) ProtoMessage()
- func (m *MultiTokenPacketData) Reset()
- func (m *MultiTokenPacketData) Size() (n int)
- func (m *MultiTokenPacketData) String() string
- func (m *MultiTokenPacketData) Unmarshal(dAtA []byte) error
- func (m *MultiTokenPacketData) XXX_DiscardUnknown()
- func (m *MultiTokenPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiTokenPacketData) XXX_Merge(src proto.Message)
- func (m *MultiTokenPacketData) XXX_Size() int
- func (m *MultiTokenPacketData) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMtTransfer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMtTransfer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMtTransfer = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterMsgServer ¶
Types ¶
type ClassTrace ¶
type ClassTrace struct { // path defines the chain of sourceChain/destChain // identifiers used for tracing the source of the Non fungible token. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // base class of the relayed non fungible token. BaseClass string `protobuf:"bytes,2,opt,name=base_class,json=baseClass,proto3" json:"base_class,omitempty"` }
ClassTrace contains the base class for Multi Token and the source tracing information path.
func (*ClassTrace) Descriptor ¶
func (*ClassTrace) Descriptor() ([]byte, []int)
func (*ClassTrace) GetBaseClass ¶
func (m *ClassTrace) GetBaseClass() string
func (*ClassTrace) GetPath ¶
func (m *ClassTrace) GetPath() string
func (*ClassTrace) Marshal ¶
func (m *ClassTrace) Marshal() (dAtA []byte, err error)
func (*ClassTrace) MarshalToSizedBuffer ¶
func (m *ClassTrace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClassTrace) ProtoMessage ¶
func (*ClassTrace) ProtoMessage()
func (*ClassTrace) Reset ¶
func (m *ClassTrace) Reset()
func (*ClassTrace) Size ¶
func (m *ClassTrace) Size() (n int)
func (*ClassTrace) String ¶
func (m *ClassTrace) String() string
func (*ClassTrace) Unmarshal ¶
func (m *ClassTrace) Unmarshal(dAtA []byte) error
func (*ClassTrace) XXX_DiscardUnknown ¶
func (m *ClassTrace) XXX_DiscardUnknown()
func (*ClassTrace) XXX_Marshal ¶
func (m *ClassTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClassTrace) XXX_Merge ¶
func (m *ClassTrace) XXX_Merge(src proto.Message)
func (*ClassTrace) XXX_Size ¶
func (m *ClassTrace) XXX_Size() int
func (*ClassTrace) XXX_Unmarshal ¶
func (m *ClassTrace) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // MtTransfer defines a rpc handler method for MsgMtTransfer. MtTransfer(ctx context.Context, in *MsgMtTransfer, opts ...grpc.CallOption) (*MsgMtTransferResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgMtTransfer ¶
type MsgMtTransfer struct { // the class to which the mt to be transferred belongs Class string `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"` // the mt id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // the mt sender Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` // the mt receiver Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` // target chain of transmission DestChain string `protobuf:"bytes,5,opt,name=dest_chain,json=destChain,proto3" json:"dest_chain,omitempty"` // relay chain during transmission RealayChain string `protobuf:"bytes,6,opt,name=realay_chain,json=realayChain,proto3" json:"realay_chain,omitempty"` // the destination contract address to receive the nft DestContract string `protobuf:"bytes,7,opt,name=dest_contract,json=destContract,proto3" json:"dest_contract,omitempty"` // the amount defined by MT outside the chain Amount uint64 `protobuf:"varint,8,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*MsgMtTransfer) Descriptor ¶
func (*MsgMtTransfer) Descriptor() ([]byte, []int)
func (MsgMtTransfer) GetSignBytes ¶
func (msg MsgMtTransfer) GetSignBytes() []byte
GetSignBytes implements sdk.Msg.
func (MsgMtTransfer) GetSigners ¶
func (msg MsgMtTransfer) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgMtTransfer) Marshal ¶
func (m *MsgMtTransfer) Marshal() (dAtA []byte, err error)
func (*MsgMtTransfer) MarshalToSizedBuffer ¶
func (m *MsgMtTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMtTransfer) ProtoMessage ¶
func (*MsgMtTransfer) ProtoMessage()
func (*MsgMtTransfer) Reset ¶
func (m *MsgMtTransfer) Reset()
func (*MsgMtTransfer) Size ¶
func (m *MsgMtTransfer) Size() (n int)
func (*MsgMtTransfer) String ¶
func (m *MsgMtTransfer) String() string
func (*MsgMtTransfer) Unmarshal ¶
func (m *MsgMtTransfer) Unmarshal(dAtA []byte) error
func (MsgMtTransfer) ValidateBasic ¶
func (msg MsgMtTransfer) ValidateBasic() error
ValidateBasic Implements Msg.
func (*MsgMtTransfer) XXX_DiscardUnknown ¶
func (m *MsgMtTransfer) XXX_DiscardUnknown()
func (*MsgMtTransfer) XXX_Marshal ¶
func (m *MsgMtTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMtTransfer) XXX_Merge ¶
func (m *MsgMtTransfer) XXX_Merge(src proto.Message)
func (*MsgMtTransfer) XXX_Size ¶
func (m *MsgMtTransfer) XXX_Size() int
func (*MsgMtTransfer) XXX_Unmarshal ¶
func (m *MsgMtTransfer) XXX_Unmarshal(b []byte) error
type MsgMtTransferResponse ¶
type MsgMtTransferResponse struct { }
MsgMtTransferResponse defines the Msg/MtTransfer response type.
func (*MsgMtTransferResponse) Descriptor ¶
func (*MsgMtTransferResponse) Descriptor() ([]byte, []int)
func (*MsgMtTransferResponse) Marshal ¶
func (m *MsgMtTransferResponse) Marshal() (dAtA []byte, err error)
func (*MsgMtTransferResponse) MarshalTo ¶
func (m *MsgMtTransferResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMtTransferResponse) MarshalToSizedBuffer ¶
func (m *MsgMtTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMtTransferResponse) ProtoMessage ¶
func (*MsgMtTransferResponse) ProtoMessage()
func (*MsgMtTransferResponse) Reset ¶
func (m *MsgMtTransferResponse) Reset()
func (*MsgMtTransferResponse) Size ¶
func (m *MsgMtTransferResponse) Size() (n int)
func (*MsgMtTransferResponse) String ¶
func (m *MsgMtTransferResponse) String() string
func (*MsgMtTransferResponse) Unmarshal ¶
func (m *MsgMtTransferResponse) Unmarshal(dAtA []byte) error
func (*MsgMtTransferResponse) XXX_DiscardUnknown ¶
func (m *MsgMtTransferResponse) XXX_DiscardUnknown()
func (*MsgMtTransferResponse) XXX_Marshal ¶
func (m *MsgMtTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMtTransferResponse) XXX_Merge ¶
func (m *MsgMtTransferResponse) XXX_Merge(src proto.Message)
func (*MsgMtTransferResponse) XXX_Size ¶
func (m *MsgMtTransferResponse) XXX_Size() int
func (*MsgMtTransferResponse) XXX_Unmarshal ¶
func (m *MsgMtTransferResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // MtTransfer defines a rpc handler method for MsgMtTransfer. MtTransfer(context.Context, *MsgMtTransfer) (*MsgMtTransferResponse, error) }
MsgServer is the server API for Msg service.
type MultiTokenPacketData ¶
type MultiTokenPacketData struct { // the class to which the Mt to be transferred belongs Class string `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"` // the mt id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // the address defined by MT outside the chain Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // the mt sender Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` // the mt receiver Receiver string `protobuf:"bytes,5,opt,name=receiver,proto3" json:"receiver,omitempty"` // identify whether it is far away from the source chain AwayFromOrigin bool `protobuf:"varint,6,opt,name=away_from_origin,json=awayFromOrigin,proto3" json:"away_from_origin,omitempty"` // the destination contract address to receive the nft DestContract string `protobuf:"bytes,7,opt,name=dest_contract,json=destContract,proto3" json:"dest_contract,omitempty"` // the amount defined by MT outside the chain Amount uint64 `protobuf:"varint,8,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*MultiTokenPacketData) Descriptor ¶
func (*MultiTokenPacketData) Descriptor() ([]byte, []int)
func (*MultiTokenPacketData) GetAmount ¶
func (m *MultiTokenPacketData) GetAmount() uint64
func (*MultiTokenPacketData) GetAwayFromOrigin ¶
func (m *MultiTokenPacketData) GetAwayFromOrigin() bool
func (*MultiTokenPacketData) GetClass ¶
func (m *MultiTokenPacketData) GetClass() string
func (*MultiTokenPacketData) GetData ¶
func (m *MultiTokenPacketData) GetData() []byte
func (*MultiTokenPacketData) GetDestContract ¶
func (m *MultiTokenPacketData) GetDestContract() string
func (*MultiTokenPacketData) GetId ¶
func (m *MultiTokenPacketData) GetId() string
func (*MultiTokenPacketData) GetReceiver ¶
func (m *MultiTokenPacketData) GetReceiver() string
func (*MultiTokenPacketData) GetSender ¶
func (m *MultiTokenPacketData) GetSender() string
func (*MultiTokenPacketData) Marshal ¶
func (m *MultiTokenPacketData) Marshal() (dAtA []byte, err error)
func (*MultiTokenPacketData) MarshalTo ¶
func (m *MultiTokenPacketData) MarshalTo(dAtA []byte) (int, error)
func (*MultiTokenPacketData) MarshalToSizedBuffer ¶
func (m *MultiTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiTokenPacketData) ProtoMessage ¶
func (*MultiTokenPacketData) ProtoMessage()
func (*MultiTokenPacketData) Reset ¶
func (m *MultiTokenPacketData) Reset()
func (*MultiTokenPacketData) Size ¶
func (m *MultiTokenPacketData) Size() (n int)
func (*MultiTokenPacketData) String ¶
func (m *MultiTokenPacketData) String() string
func (*MultiTokenPacketData) Unmarshal ¶
func (m *MultiTokenPacketData) Unmarshal(dAtA []byte) error
func (*MultiTokenPacketData) XXX_DiscardUnknown ¶
func (m *MultiTokenPacketData) XXX_DiscardUnknown()
func (*MultiTokenPacketData) XXX_Marshal ¶
func (m *MultiTokenPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiTokenPacketData) XXX_Merge ¶
func (m *MultiTokenPacketData) XXX_Merge(src proto.Message)
func (*MultiTokenPacketData) XXX_Size ¶
func (m *MultiTokenPacketData) XXX_Size() int
func (*MultiTokenPacketData) XXX_Unmarshal ¶
func (m *MultiTokenPacketData) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) MtTransfer ¶
func (*UnimplementedMsgServer) MtTransfer(ctx context.Context, req *MsgMtTransfer) (*MsgMtTransferResponse, error)
Click to show internal directories.
Click to hide internal directories.