Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type MintNFTResponse
- func (*MintNFTResponse) Descriptor() ([]byte, []int)
- func (m *MintNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MintNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintNFTResponse) ProtoMessage()
- func (m *MintNFTResponse) Reset()
- func (m *MintNFTResponse) Size() (n int)
- func (m *MintNFTResponse) String() string
- func (m *MintNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MintNFTResponse) XXX_DiscardUnknown()
- func (m *MintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintNFTResponse) XXX_Merge(src proto.Message)
- func (m *MintNFTResponse) XXX_Size() int
- func (m *MintNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgIssueClass
- func (*MsgIssueClass) Descriptor() ([]byte, []int)
- func (msg MsgIssueClass) GetSigners() []sdk.AccAddress
- func (m *MsgIssueClass) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueClass) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueClass) ProtoMessage()
- func (m *MsgIssueClass) Reset()
- func (m *MsgIssueClass) Size() (n int)
- func (m *MsgIssueClass) String() string
- func (m *MsgIssueClass) Unmarshal(dAtA []byte) error
- func (msg MsgIssueClass) ValidateBasic() error
- func (m *MsgIssueClass) XXX_DiscardUnknown()
- func (m *MsgIssueClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueClass) XXX_Merge(src proto.Message)
- func (m *MsgIssueClass) XXX_Size() int
- func (m *MsgIssueClass) XXX_Unmarshal(b []byte) error
- type MsgIssueClassResponse
- func (*MsgIssueClassResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueClassResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueClassResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueClassResponse) ProtoMessage()
- func (m *MsgIssueClassResponse) Reset()
- func (m *MsgIssueClassResponse) Size() (n int)
- func (m *MsgIssueClassResponse) String() string
- func (m *MsgIssueClassResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueClassResponse) XXX_DiscardUnknown()
- func (m *MsgIssueClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueClassResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueClassResponse) XXX_Size() int
- func (m *MsgIssueClassResponse) XXX_Unmarshal(b []byte) error
- type MsgMintNFT
- func (*MsgMintNFT) Descriptor() ([]byte, []int)
- func (msg MsgMintNFT) GetSigners() []sdk.AccAddress
- func (m *MsgMintNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgMintNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintNFT) ProtoMessage()
- func (m *MsgMintNFT) Reset()
- func (m *MsgMintNFT) Size() (n int)
- func (m *MsgMintNFT) String() string
- func (m *MsgMintNFT) Unmarshal(dAtA []byte) error
- func (msg MsgMintNFT) ValidateBasic() error
- func (m *MsgMintNFT) XXX_DiscardUnknown()
- func (m *MsgMintNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintNFT) XXX_Merge(src proto.Message)
- func (m *MsgMintNFT) XXX_Size() int
- func (m *MsgMintNFT) XXX_Unmarshal(b []byte) error
- type MsgServer
- type UnimplementedMsgServer
Constants ¶
View Source
const ( // ModuleName module name ModuleName = "nft" // StoreKey is the default store key for nft StoreKey = ModuleName // RouterKey is the message route for nft RouterKey = ModuleName )
Variables ¶
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterMsgServer ¶
Types ¶
type MintNFTResponse ¶
type MintNFTResponse struct { }
MintNFTResponse defines the response for Msg/MintNFT
func (*MintNFTResponse) Descriptor ¶
func (*MintNFTResponse) Descriptor() ([]byte, []int)
func (*MintNFTResponse) Marshal ¶
func (m *MintNFTResponse) Marshal() (dAtA []byte, err error)
func (*MintNFTResponse) MarshalToSizedBuffer ¶
func (m *MintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintNFTResponse) ProtoMessage ¶
func (*MintNFTResponse) ProtoMessage()
func (*MintNFTResponse) Reset ¶
func (m *MintNFTResponse) Reset()
func (*MintNFTResponse) Size ¶
func (m *MintNFTResponse) Size() (n int)
func (*MintNFTResponse) String ¶
func (m *MintNFTResponse) String() string
func (*MintNFTResponse) Unmarshal ¶
func (m *MintNFTResponse) Unmarshal(dAtA []byte) error
func (*MintNFTResponse) XXX_DiscardUnknown ¶
func (m *MintNFTResponse) XXX_DiscardUnknown()
func (*MintNFTResponse) XXX_Marshal ¶
func (m *MintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintNFTResponse) XXX_Merge ¶
func (m *MintNFTResponse) XXX_Merge(src proto.Message)
func (*MintNFTResponse) XXX_Size ¶
func (m *MintNFTResponse) XXX_Size() int
func (*MintNFTResponse) XXX_Unmarshal ¶
func (m *MintNFTResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Register defines a rpc handler for MsgIssueClass IssueClass(ctx context.Context, in *MsgIssueClass, opts ...grpc.CallOption) (*MsgIssueClassResponse, error) // MintNFT defines a rpc handler for MsgMintNFT MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MintNFTResponse, 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 MsgIssueClass ¶
type MsgIssueClass struct { // id defines the unique identifier of the NFT classification, similar to the // contract address of ERC721 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // name defines the human-readable name of the NFT classification. Optional Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // symbol is an abbreviated name for nft classification. Optional Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` // description is a brief description of nft classification. Optional Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // uri for the class metadata stored off chain. It can define schema for Class // and NFT `Data` attributes. Optional Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` // uri_hash is a hash of the document pointed by uri. Optional UriHash string `protobuf:"bytes,6,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` Issuer string `protobuf:"bytes,7,opt,name=issuer,proto3" json:"issuer,omitempty"` }
MsgIssueClass defines the payload for Msg/IssueClass
func (*MsgIssueClass) Descriptor ¶
func (*MsgIssueClass) Descriptor() ([]byte, []int)
func (MsgIssueClass) GetSigners ¶
func (msg MsgIssueClass) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgIssueClass) Marshal ¶
func (m *MsgIssueClass) Marshal() (dAtA []byte, err error)
func (*MsgIssueClass) MarshalToSizedBuffer ¶
func (m *MsgIssueClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueClass) ProtoMessage ¶
func (*MsgIssueClass) ProtoMessage()
func (*MsgIssueClass) Reset ¶
func (m *MsgIssueClass) Reset()
func (*MsgIssueClass) Size ¶
func (m *MsgIssueClass) Size() (n int)
func (*MsgIssueClass) String ¶
func (m *MsgIssueClass) String() string
func (*MsgIssueClass) Unmarshal ¶
func (m *MsgIssueClass) Unmarshal(dAtA []byte) error
func (MsgIssueClass) ValidateBasic ¶
func (msg MsgIssueClass) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgIssueClass) XXX_DiscardUnknown ¶
func (m *MsgIssueClass) XXX_DiscardUnknown()
func (*MsgIssueClass) XXX_Marshal ¶
func (m *MsgIssueClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueClass) XXX_Merge ¶
func (m *MsgIssueClass) XXX_Merge(src proto.Message)
func (*MsgIssueClass) XXX_Size ¶
func (m *MsgIssueClass) XXX_Size() int
func (*MsgIssueClass) XXX_Unmarshal ¶
func (m *MsgIssueClass) XXX_Unmarshal(b []byte) error
type MsgIssueClassResponse ¶
type MsgIssueClassResponse struct { }
MsgIssueClassResponse defines the response for Msg/MsgIssueClass
func (*MsgIssueClassResponse) Descriptor ¶
func (*MsgIssueClassResponse) Descriptor() ([]byte, []int)
func (*MsgIssueClassResponse) Marshal ¶
func (m *MsgIssueClassResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueClassResponse) MarshalTo ¶
func (m *MsgIssueClassResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueClassResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueClassResponse) ProtoMessage ¶
func (*MsgIssueClassResponse) ProtoMessage()
func (*MsgIssueClassResponse) Reset ¶
func (m *MsgIssueClassResponse) Reset()
func (*MsgIssueClassResponse) Size ¶
func (m *MsgIssueClassResponse) Size() (n int)
func (*MsgIssueClassResponse) String ¶
func (m *MsgIssueClassResponse) String() string
func (*MsgIssueClassResponse) Unmarshal ¶
func (m *MsgIssueClassResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueClassResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueClassResponse) XXX_DiscardUnknown()
func (*MsgIssueClassResponse) XXX_Marshal ¶
func (m *MsgIssueClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueClassResponse) XXX_Merge ¶
func (m *MsgIssueClassResponse) XXX_Merge(src proto.Message)
func (*MsgIssueClassResponse) XXX_Size ¶
func (m *MsgIssueClassResponse) XXX_Size() int
func (*MsgIssueClassResponse) XXX_Unmarshal ¶
func (m *MsgIssueClassResponse) XXX_Unmarshal(b []byte) error
type MsgMintNFT ¶
type MsgMintNFT struct { // class_id associated with the NFT, similar to the contract address of ERC721 ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // id is a unique identifier of the NFT Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // uri for the NFT metadata stored off chain Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // uri_hash is a hash of the document pointed by uri UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` // minter is a minter of the NFT Minter string `protobuf:"bytes,5,opt,name=minter,proto3" json:"minter,omitempty"` // receiver is a receiver of the NFT, optional Receiver string `protobuf:"bytes,6,opt,name=receiver,proto3" json:"receiver,omitempty"` }
MsgMintNFT defines the payload for Msg/MintNFT
func (*MsgMintNFT) Descriptor ¶
func (*MsgMintNFT) Descriptor() ([]byte, []int)
func (MsgMintNFT) GetSigners ¶
func (msg MsgMintNFT) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgMintNFT) Marshal ¶
func (m *MsgMintNFT) Marshal() (dAtA []byte, err error)
func (*MsgMintNFT) MarshalToSizedBuffer ¶
func (m *MsgMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintNFT) ProtoMessage ¶
func (*MsgMintNFT) ProtoMessage()
func (*MsgMintNFT) Reset ¶
func (m *MsgMintNFT) Reset()
func (*MsgMintNFT) Size ¶
func (m *MsgMintNFT) Size() (n int)
func (*MsgMintNFT) String ¶
func (m *MsgMintNFT) String() string
func (*MsgMintNFT) Unmarshal ¶
func (m *MsgMintNFT) Unmarshal(dAtA []byte) error
func (MsgMintNFT) ValidateBasic ¶
func (msg MsgMintNFT) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgMintNFT) XXX_DiscardUnknown ¶
func (m *MsgMintNFT) XXX_DiscardUnknown()
func (*MsgMintNFT) XXX_Marshal ¶
func (m *MsgMintNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintNFT) XXX_Merge ¶
func (m *MsgMintNFT) XXX_Merge(src proto.Message)
func (*MsgMintNFT) XXX_Size ¶
func (m *MsgMintNFT) XXX_Size() int
func (*MsgMintNFT) XXX_Unmarshal ¶
func (m *MsgMintNFT) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Register defines a rpc handler for MsgIssueClass IssueClass(context.Context, *MsgIssueClass) (*MsgIssueClassResponse, error) // MintNFT defines a rpc handler for MsgMintNFT MintNFT(context.Context, *MsgMintNFT) (*MintNFTResponse, error) }
MsgServer is the server API for Msg service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) IssueClass ¶
func (*UnimplementedMsgServer) IssueClass(ctx context.Context, req *MsgIssueClass) (*MsgIssueClassResponse, error)
func (*UnimplementedMsgServer) MintNFT ¶
func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MintNFTResponse, error)
Click to show internal directories.
Click to hide internal directories.