Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type Class
- func (*Class) Descriptor() ([]byte, []int)
- func (m *Class) GetData() *types.Any
- func (m *Class) GetDescription() string
- func (m *Class) GetId() string
- func (m *Class) GetName() string
- func (m *Class) GetSymbol() string
- func (m *Class) GetUri() string
- func (m *Class) GetUriHash() string
- func (m *Class) Marshal() (dAtA []byte, err error)
- func (m *Class) MarshalTo(dAtA []byte) (int, error)
- func (m *Class) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Class) ProtoMessage()
- func (m *Class) Reset()
- func (m *Class) Size() (n int)
- func (m *Class) String() string
- func (m *Class) Unmarshal(dAtA []byte) error
- func (m *Class) XXX_DiscardUnknown()
- func (m *Class) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Class) XXX_Merge(src proto.Message)
- func (m *Class) XXX_Size() int
- func (m *Class) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetClasses() []*Class
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBatchMintNFT
- func (*MsgBatchMintNFT) Descriptor() ([]byte, []int)
- func (m *MsgBatchMintNFT) GetCreator() string
- func (m *MsgBatchMintNFT) GetNft() []MsgBatchNFT
- func (m *MsgBatchMintNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgBatchMintNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBatchMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBatchMintNFT) ProtoMessage()
- func (m *MsgBatchMintNFT) Reset()
- func (m *MsgBatchMintNFT) Size() (n int)
- func (m *MsgBatchMintNFT) String() string
- func (m *MsgBatchMintNFT) Unmarshal(dAtA []byte) error
- func (m *MsgBatchMintNFT) XXX_DiscardUnknown()
- func (m *MsgBatchMintNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBatchMintNFT) XXX_Merge(src proto.Message)
- func (m *MsgBatchMintNFT) XXX_Size() int
- func (m *MsgBatchMintNFT) XXX_Unmarshal(b []byte) error
- type MsgBatchMintNFTResponse
- func (*MsgBatchMintNFTResponse) Descriptor() ([]byte, []int)
- func (m *MsgBatchMintNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBatchMintNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBatchMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBatchMintNFTResponse) ProtoMessage()
- func (m *MsgBatchMintNFTResponse) Reset()
- func (m *MsgBatchMintNFTResponse) Size() (n int)
- func (m *MsgBatchMintNFTResponse) String() string
- func (m *MsgBatchMintNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBatchMintNFTResponse) XXX_DiscardUnknown()
- func (m *MsgBatchMintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBatchMintNFTResponse) XXX_Merge(src proto.Message)
- func (m *MsgBatchMintNFTResponse) XXX_Size() int
- func (m *MsgBatchMintNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgBatchNFT
- func (*MsgBatchNFT) Descriptor() ([]byte, []int)
- func (m *MsgBatchNFT) GetId() string
- func (m *MsgBatchNFT) GetUri() string
- func (m *MsgBatchNFT) GetUriHash() string
- func (m *MsgBatchNFT) GetUsn() string
- func (m *MsgBatchNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgBatchNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBatchNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBatchNFT) ProtoMessage()
- func (m *MsgBatchNFT) Reset()
- func (m *MsgBatchNFT) Size() (n int)
- func (m *MsgBatchNFT) String() string
- func (m *MsgBatchNFT) Unmarshal(dAtA []byte) error
- func (m *MsgBatchNFT) XXX_DiscardUnknown()
- func (m *MsgBatchNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBatchNFT) XXX_Merge(src proto.Message)
- func (m *MsgBatchNFT) XXX_Size() int
- func (m *MsgBatchNFT) XXX_Unmarshal(b []byte) error
- type MsgBatchTransferNFT
- func (*MsgBatchTransferNFT) Descriptor() ([]byte, []int)
- func (m *MsgBatchTransferNFT) GetIds() []string
- func (m *MsgBatchTransferNFT) GetReceiver() string
- func (m *MsgBatchTransferNFT) GetSender() string
- func (m *MsgBatchTransferNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgBatchTransferNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBatchTransferNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBatchTransferNFT) ProtoMessage()
- func (m *MsgBatchTransferNFT) Reset()
- func (m *MsgBatchTransferNFT) Size() (n int)
- func (m *MsgBatchTransferNFT) String() string
- func (m *MsgBatchTransferNFT) Unmarshal(dAtA []byte) error
- func (m *MsgBatchTransferNFT) XXX_DiscardUnknown()
- func (m *MsgBatchTransferNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBatchTransferNFT) XXX_Merge(src proto.Message)
- func (m *MsgBatchTransferNFT) XXX_Size() int
- func (m *MsgBatchTransferNFT) XXX_Unmarshal(b []byte) error
- type MsgBatchTransferNFTResponse
- func (*MsgBatchTransferNFTResponse) Descriptor() ([]byte, []int)
- func (m *MsgBatchTransferNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBatchTransferNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBatchTransferNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBatchTransferNFTResponse) ProtoMessage()
- func (m *MsgBatchTransferNFTResponse) Reset()
- func (m *MsgBatchTransferNFTResponse) Size() (n int)
- func (m *MsgBatchTransferNFTResponse) String() string
- func (m *MsgBatchTransferNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBatchTransferNFTResponse) XXX_DiscardUnknown()
- func (m *MsgBatchTransferNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBatchTransferNFTResponse) XXX_Merge(src proto.Message)
- func (m *MsgBatchTransferNFTResponse) XXX_Size() int
- func (m *MsgBatchTransferNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMintNFT
- func (*MsgMintNFT) Descriptor() ([]byte, []int)
- func (m *MsgMintNFT) GetCreator() string
- func (m *MsgMintNFT) GetId() string
- func (m *MsgMintNFT) GetUri() string
- func (m *MsgMintNFT) GetUriHash() string
- func (m *MsgMintNFT) GetUsn() string
- 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 (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 MsgMintNFTResponse
- func (*MsgMintNFTResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintNFTResponse) GetId() string
- func (m *MsgMintNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintNFTResponse) ProtoMessage()
- func (m *MsgMintNFTResponse) Reset()
- func (m *MsgMintNFTResponse) Size() (n int)
- func (m *MsgMintNFTResponse) String() string
- func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintNFTResponse) XXX_DiscardUnknown()
- func (m *MsgMintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintNFTResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintNFTResponse) XXX_Size() int
- func (m *MsgMintNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransferNFT
- func (*MsgTransferNFT) Descriptor() ([]byte, []int)
- func (m *MsgTransferNFT) GetId() string
- func (m *MsgTransferNFT) GetReceiver() string
- func (m *MsgTransferNFT) GetSender() string
- func (m *MsgTransferNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferNFT) ProtoMessage()
- func (m *MsgTransferNFT) Reset()
- func (m *MsgTransferNFT) Size() (n int)
- func (m *MsgTransferNFT) String() string
- func (m *MsgTransferNFT) Unmarshal(dAtA []byte) error
- func (m *MsgTransferNFT) XXX_DiscardUnknown()
- func (m *MsgTransferNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferNFT) XXX_Merge(src proto.Message)
- func (m *MsgTransferNFT) XXX_Size() int
- func (m *MsgTransferNFT) XXX_Unmarshal(b []byte) error
- type MsgTransferNFTResponse
- func (*MsgTransferNFTResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferNFTResponse) ProtoMessage()
- func (m *MsgTransferNFTResponse) Reset()
- func (m *MsgTransferNFTResponse) Size() (n int)
- func (m *MsgTransferNFTResponse) String() string
- func (m *MsgTransferNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferNFTResponse) XXX_DiscardUnknown()
- func (m *MsgTransferNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferNFTResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferNFTResponse) XXX_Size() int
- func (m *MsgTransferNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateNFT
- func (*MsgUpdateNFT) Descriptor() ([]byte, []int)
- func (m *MsgUpdateNFT) GetEditor() string
- func (m *MsgUpdateNFT) GetId() string
- func (m *MsgUpdateNFT) GetNftData() *NFTData
- func (m *MsgUpdateNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateNFT) ProtoMessage()
- func (m *MsgUpdateNFT) Reset()
- func (m *MsgUpdateNFT) Size() (n int)
- func (m *MsgUpdateNFT) String() string
- func (m *MsgUpdateNFT) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateNFT) XXX_DiscardUnknown()
- func (m *MsgUpdateNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateNFT) XXX_Merge(src proto.Message)
- func (m *MsgUpdateNFT) XXX_Size() int
- func (m *MsgUpdateNFT) XXX_Unmarshal(b []byte) error
- type MsgUpdateNFTResponse
- func (*MsgUpdateNFTResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateNFTResponse) GetNft() *NFT
- func (m *MsgUpdateNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateNFTResponse) ProtoMessage()
- func (m *MsgUpdateNFTResponse) Reset()
- func (m *MsgUpdateNFTResponse) Size() (n int)
- func (m *MsgUpdateNFTResponse) String() string
- func (m *MsgUpdateNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateNFTResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateNFTResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateNFTResponse) XXX_Size() int
- func (m *MsgUpdateNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateUriHash
- func (*MsgUpdateUriHash) Descriptor() ([]byte, []int)
- func (m *MsgUpdateUriHash) GetEditor() string
- func (m *MsgUpdateUriHash) GetId() string
- func (m *MsgUpdateUriHash) GetUriHash() string
- func (m *MsgUpdateUriHash) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateUriHash) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateUriHash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateUriHash) ProtoMessage()
- func (m *MsgUpdateUriHash) Reset()
- func (m *MsgUpdateUriHash) Size() (n int)
- func (m *MsgUpdateUriHash) String() string
- func (m *MsgUpdateUriHash) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateUriHash) XXX_DiscardUnknown()
- func (m *MsgUpdateUriHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateUriHash) XXX_Merge(src proto.Message)
- func (m *MsgUpdateUriHash) XXX_Size() int
- func (m *MsgUpdateUriHash) XXX_Unmarshal(b []byte) error
- type MsgUpdateUriHashResponse
- func (*MsgUpdateUriHashResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateUriHashResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateUriHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateUriHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateUriHashResponse) ProtoMessage()
- func (m *MsgUpdateUriHashResponse) Reset()
- func (m *MsgUpdateUriHashResponse) Size() (n int)
- func (m *MsgUpdateUriHashResponse) String() string
- func (m *MsgUpdateUriHashResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateUriHashResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateUriHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateUriHashResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateUriHashResponse) XXX_Size() int
- func (m *MsgUpdateUriHashResponse) XXX_Unmarshal(b []byte) error
- type NFT
- func (*NFT) Descriptor() ([]byte, []int)
- func (m *NFT) GetClassId() string
- func (m *NFT) GetData() *types.Any
- func (m *NFT) GetId() string
- func (m *NFT) GetUri() string
- func (m *NFT) GetUriHash() string
- func (m *NFT) Marshal() (dAtA []byte, err error)
- func (m *NFT) MarshalTo(dAtA []byte) (int, error)
- func (m *NFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NFT) ProtoMessage()
- func (m *NFT) Reset()
- func (m *NFT) Size() (n int)
- func (m *NFT) String() string
- func (m *NFT) Unmarshal(dAtA []byte) error
- func (m *NFT) XXX_DiscardUnknown()
- func (m *NFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NFT) XXX_Merge(src proto.Message)
- func (m *NFT) XXX_Size() int
- func (m *NFT) XXX_Unmarshal(b []byte) error
- type NFTData
- func (*NFTData) Descriptor() ([]byte, []int)
- func (m *NFTData) GetUsn() string
- func (m *NFTData) Marshal() (dAtA []byte, err error)
- func (m *NFTData) MarshalTo(dAtA []byte) (int, error)
- func (m *NFTData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NFTData) ProtoMessage()
- func (m *NFTData) Reset()
- func (m *NFTData) Size() (n int)
- func (m *NFTData) String() string
- func (m *NFTData) Unmarshal(dAtA []byte) error
- func (m *NFTData) XXX_DiscardUnknown()
- func (m *NFTData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NFTData) XXX_Merge(src proto.Message)
- func (m *NFTData) XXX_Size() int
- func (m *NFTData) XXX_Unmarshal(b []byte) error
- type NftKeeper
- type QueryClient
- type QueryGetNFTByAddressRequest
- func (*QueryGetNFTByAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetNFTByAddressRequest) GetAddress() string
- func (m *QueryGetNFTByAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetNFTByAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetNFTByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetNFTByAddressRequest) ProtoMessage()
- func (m *QueryGetNFTByAddressRequest) Reset()
- func (m *QueryGetNFTByAddressRequest) Size() (n int)
- func (m *QueryGetNFTByAddressRequest) String() string
- func (m *QueryGetNFTByAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetNFTByAddressRequest) XXX_DiscardUnknown()
- func (m *QueryGetNFTByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetNFTByAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetNFTByAddressRequest) XXX_Size() int
- func (m *QueryGetNFTByAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryGetNFTByAddressResponse
- func (*QueryGetNFTByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetNFTByAddressResponse) GetNft() []NFT
- func (m *QueryGetNFTByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetNFTByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetNFTByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetNFTByAddressResponse) ProtoMessage()
- func (m *QueryGetNFTByAddressResponse) Reset()
- func (m *QueryGetNFTByAddressResponse) Size() (n int)
- func (m *QueryGetNFTByAddressResponse) String() string
- func (m *QueryGetNFTByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetNFTByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryGetNFTByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetNFTByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetNFTByAddressResponse) XXX_Size() int
- func (m *QueryGetNFTByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryGetNFTRequest
- func (*QueryGetNFTRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetNFTRequest) GetId() string
- func (m *QueryGetNFTRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetNFTRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetNFTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetNFTRequest) ProtoMessage()
- func (m *QueryGetNFTRequest) Reset()
- func (m *QueryGetNFTRequest) Size() (n int)
- func (m *QueryGetNFTRequest) String() string
- func (m *QueryGetNFTRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetNFTRequest) XXX_DiscardUnknown()
- func (m *QueryGetNFTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetNFTRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetNFTRequest) XXX_Size() int
- func (m *QueryGetNFTRequest) XXX_Unmarshal(b []byte) error
- type QueryGetNFTResponse
- func (*QueryGetNFTResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetNFTResponse) GetNft() NFT
- func (m *QueryGetNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetNFTResponse) ProtoMessage()
- func (m *QueryGetNFTResponse) Reset()
- func (m *QueryGetNFTResponse) Size() (n int)
- func (m *QueryGetNFTResponse) String() string
- func (m *QueryGetNFTResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetNFTResponse) XXX_DiscardUnknown()
- func (m *QueryGetNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetNFTResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetNFTResponse) XXX_Size() int
- func (m *QueryGetNFTResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BatchMintNFT(ctx context.Context, req *MsgBatchMintNFT) (*MsgBatchMintNFTResponse, error)
- func (*UnimplementedMsgServer) BatchTransferNFT(ctx context.Context, req *MsgBatchTransferNFT) (*MsgBatchTransferNFTResponse, error)
- func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MsgMintNFTResponse, error)
- func (*UnimplementedMsgServer) TransferNFT(ctx context.Context, req *MsgTransferNFT) (*MsgTransferNFTResponse, error)
- func (*UnimplementedMsgServer) UpdateNFT(ctx context.Context, req *MsgUpdateNFT) (*MsgUpdateNFTResponse, error)
- func (*UnimplementedMsgServer) UpdateUriHash(ctx context.Context, req *MsgUpdateUriHash) (*MsgUpdateUriHashResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "obit" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_obit" // OBTClass defines the namespace for OBADA NFTs OBTClass = "OBT" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthClass = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClass = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClass = fmt.Errorf("proto: unexpected end of group") )
var ( // Amino legacy codec Amino = codec.NewLegacyAmino() // ModuleCdc proto codec ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthNft = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNft = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNft = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
RegisterCodec registers concrete types on the Amino codec
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers implementations for the module-specific
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type Class ¶
type Class 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"` // data is the app specific metadata of the NFT class. Optional Data *types.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` }
Class defines the class of the nft type.
func (*Class) Descriptor ¶
func (*Class) GetDescription ¶
func (*Class) GetUriHash ¶
func (*Class) ProtoMessage ¶
func (*Class) ProtoMessage()
func (*Class) XXX_DiscardUnknown ¶
func (m *Class) XXX_DiscardUnknown()
func (*Class) XXX_Marshal ¶
func (*Class) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { // class defines the class of the nft type. Classes []*Class `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` }
GenesisState defines the obit module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetClasses ¶
func (m *GenesisState) GetClasses() []*Class
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBatchMintNFT ¶ added in v0.1.0
type MsgBatchMintNFT struct { // Bech32 address of creator Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Collection of NFTs to be minted Nft []MsgBatchNFT `protobuf:"bytes,2,rep,name=nft,proto3" json:"nft"` }
MsgBatchMintNFT
func (*MsgBatchMintNFT) Descriptor ¶ added in v0.1.0
func (*MsgBatchMintNFT) Descriptor() ([]byte, []int)
func (*MsgBatchMintNFT) GetCreator ¶ added in v0.1.0
func (m *MsgBatchMintNFT) GetCreator() string
func (*MsgBatchMintNFT) GetNft ¶ added in v0.1.0
func (m *MsgBatchMintNFT) GetNft() []MsgBatchNFT
func (*MsgBatchMintNFT) Marshal ¶ added in v0.1.0
func (m *MsgBatchMintNFT) Marshal() (dAtA []byte, err error)
func (*MsgBatchMintNFT) MarshalTo ¶ added in v0.1.0
func (m *MsgBatchMintNFT) MarshalTo(dAtA []byte) (int, error)
func (*MsgBatchMintNFT) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *MsgBatchMintNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBatchMintNFT) ProtoMessage ¶ added in v0.1.0
func (*MsgBatchMintNFT) ProtoMessage()
func (*MsgBatchMintNFT) Reset ¶ added in v0.1.0
func (m *MsgBatchMintNFT) Reset()
func (*MsgBatchMintNFT) Size ¶ added in v0.1.0
func (m *MsgBatchMintNFT) Size() (n int)
func (*MsgBatchMintNFT) String ¶ added in v0.1.0
func (m *MsgBatchMintNFT) String() string
func (*MsgBatchMintNFT) Unmarshal ¶ added in v0.1.0
func (m *MsgBatchMintNFT) Unmarshal(dAtA []byte) error
func (*MsgBatchMintNFT) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *MsgBatchMintNFT) XXX_DiscardUnknown()
func (*MsgBatchMintNFT) XXX_Marshal ¶ added in v0.1.0
func (m *MsgBatchMintNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBatchMintNFT) XXX_Merge ¶ added in v0.1.0
func (m *MsgBatchMintNFT) XXX_Merge(src proto.Message)
func (*MsgBatchMintNFT) XXX_Size ¶ added in v0.1.0
func (m *MsgBatchMintNFT) XXX_Size() int
func (*MsgBatchMintNFT) XXX_Unmarshal ¶ added in v0.1.0
func (m *MsgBatchMintNFT) XXX_Unmarshal(b []byte) error
type MsgBatchMintNFTResponse ¶ added in v0.1.0
type MsgBatchMintNFTResponse struct { }
MsgBulkMintNFTResponse success bulk minting response
func (*MsgBatchMintNFTResponse) Descriptor ¶ added in v0.1.0
func (*MsgBatchMintNFTResponse) Descriptor() ([]byte, []int)
func (*MsgBatchMintNFTResponse) Marshal ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) Marshal() (dAtA []byte, err error)
func (*MsgBatchMintNFTResponse) MarshalTo ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBatchMintNFTResponse) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBatchMintNFTResponse) ProtoMessage ¶ added in v0.1.0
func (*MsgBatchMintNFTResponse) ProtoMessage()
func (*MsgBatchMintNFTResponse) Reset ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) Reset()
func (*MsgBatchMintNFTResponse) Size ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) Size() (n int)
func (*MsgBatchMintNFTResponse) String ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) String() string
func (*MsgBatchMintNFTResponse) Unmarshal ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) Unmarshal(dAtA []byte) error
func (*MsgBatchMintNFTResponse) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) XXX_DiscardUnknown()
func (*MsgBatchMintNFTResponse) XXX_Marshal ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBatchMintNFTResponse) XXX_Merge ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) XXX_Merge(src proto.Message)
func (*MsgBatchMintNFTResponse) XXX_Size ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) XXX_Size() int
func (*MsgBatchMintNFTResponse) XXX_Unmarshal ¶ added in v0.1.0
func (m *MsgBatchMintNFTResponse) XXX_Unmarshal(b []byte) error
type MsgBatchNFT ¶ added in v0.1.0
type MsgBatchNFT struct { // DID is the unique identification of nft Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Reference to the document Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // DID document metadata checksum UriHash string `protobuf:"bytes,3,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` // usn is the universal serial number of asset Usn string `protobuf:"bytes,4,opt,name=usn,proto3" json:"usn,omitempty"` }
MsgMintNFT handles obit information
func (*MsgBatchNFT) Descriptor ¶ added in v0.1.0
func (*MsgBatchNFT) Descriptor() ([]byte, []int)
func (*MsgBatchNFT) GetId ¶ added in v0.1.0
func (m *MsgBatchNFT) GetId() string
func (*MsgBatchNFT) GetUri ¶ added in v0.1.0
func (m *MsgBatchNFT) GetUri() string
func (*MsgBatchNFT) GetUriHash ¶ added in v0.1.0
func (m *MsgBatchNFT) GetUriHash() string
func (*MsgBatchNFT) GetUsn ¶ added in v0.1.0
func (m *MsgBatchNFT) GetUsn() string
func (*MsgBatchNFT) Marshal ¶ added in v0.1.0
func (m *MsgBatchNFT) Marshal() (dAtA []byte, err error)
func (*MsgBatchNFT) MarshalTo ¶ added in v0.1.0
func (m *MsgBatchNFT) MarshalTo(dAtA []byte) (int, error)
func (*MsgBatchNFT) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *MsgBatchNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBatchNFT) ProtoMessage ¶ added in v0.1.0
func (*MsgBatchNFT) ProtoMessage()
func (*MsgBatchNFT) Reset ¶ added in v0.1.0
func (m *MsgBatchNFT) Reset()
func (*MsgBatchNFT) Size ¶ added in v0.1.0
func (m *MsgBatchNFT) Size() (n int)
func (*MsgBatchNFT) String ¶ added in v0.1.0
func (m *MsgBatchNFT) String() string
func (*MsgBatchNFT) Unmarshal ¶ added in v0.1.0
func (m *MsgBatchNFT) Unmarshal(dAtA []byte) error
func (*MsgBatchNFT) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *MsgBatchNFT) XXX_DiscardUnknown()
func (*MsgBatchNFT) XXX_Marshal ¶ added in v0.1.0
func (m *MsgBatchNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBatchNFT) XXX_Merge ¶ added in v0.1.0
func (m *MsgBatchNFT) XXX_Merge(src proto.Message)
func (*MsgBatchNFT) XXX_Size ¶ added in v0.1.0
func (m *MsgBatchNFT) XXX_Size() int
func (*MsgBatchNFT) XXX_Unmarshal ¶ added in v0.1.0
func (m *MsgBatchNFT) XXX_Unmarshal(b []byte) error
type MsgBatchTransferNFT ¶ added in v0.1.0
type MsgBatchTransferNFT struct { // sender is the address of the owner of nft Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // receiver is the receiver address of nft Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // Collection of NFTs to be minted Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"` }
MsgBatchTransferNFT
func (*MsgBatchTransferNFT) Descriptor ¶ added in v0.1.0
func (*MsgBatchTransferNFT) Descriptor() ([]byte, []int)
func (*MsgBatchTransferNFT) GetIds ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) GetIds() []string
func (*MsgBatchTransferNFT) GetReceiver ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) GetReceiver() string
func (*MsgBatchTransferNFT) GetSender ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) GetSender() string
func (*MsgBatchTransferNFT) Marshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) Marshal() (dAtA []byte, err error)
func (*MsgBatchTransferNFT) MarshalTo ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) MarshalTo(dAtA []byte) (int, error)
func (*MsgBatchTransferNFT) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBatchTransferNFT) ProtoMessage ¶ added in v0.1.0
func (*MsgBatchTransferNFT) ProtoMessage()
func (*MsgBatchTransferNFT) Reset ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) Reset()
func (*MsgBatchTransferNFT) Size ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) Size() (n int)
func (*MsgBatchTransferNFT) String ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) String() string
func (*MsgBatchTransferNFT) Unmarshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) Unmarshal(dAtA []byte) error
func (*MsgBatchTransferNFT) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) XXX_DiscardUnknown()
func (*MsgBatchTransferNFT) XXX_Marshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBatchTransferNFT) XXX_Merge ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) XXX_Merge(src proto.Message)
func (*MsgBatchTransferNFT) XXX_Size ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) XXX_Size() int
func (*MsgBatchTransferNFT) XXX_Unmarshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFT) XXX_Unmarshal(b []byte) error
type MsgBatchTransferNFTResponse ¶ added in v0.1.0
type MsgBatchTransferNFTResponse struct { }
MsgBatchTransferNFTResponse defines the Msg response type.
func (*MsgBatchTransferNFTResponse) Descriptor ¶ added in v0.1.0
func (*MsgBatchTransferNFTResponse) Descriptor() ([]byte, []int)
func (*MsgBatchTransferNFTResponse) Marshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) Marshal() (dAtA []byte, err error)
func (*MsgBatchTransferNFTResponse) MarshalTo ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBatchTransferNFTResponse) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBatchTransferNFTResponse) ProtoMessage ¶ added in v0.1.0
func (*MsgBatchTransferNFTResponse) ProtoMessage()
func (*MsgBatchTransferNFTResponse) Reset ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) Reset()
func (*MsgBatchTransferNFTResponse) Size ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) Size() (n int)
func (*MsgBatchTransferNFTResponse) String ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) String() string
func (*MsgBatchTransferNFTResponse) Unmarshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) Unmarshal(dAtA []byte) error
func (*MsgBatchTransferNFTResponse) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) XXX_DiscardUnknown()
func (*MsgBatchTransferNFTResponse) XXX_Marshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBatchTransferNFTResponse) XXX_Merge ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) XXX_Merge(src proto.Message)
func (*MsgBatchTransferNFTResponse) XXX_Size ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) XXX_Size() int
func (*MsgBatchTransferNFTResponse) XXX_Unmarshal ¶ added in v0.1.0
func (m *MsgBatchTransferNFTResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // UpdateNFT updates NFT properties (definition will come in future) UpdateNFT(ctx context.Context, in *MsgUpdateNFT, opts ...grpc.CallOption) (*MsgUpdateNFTResponse, error) // UpdateUriHash updates URI hash for existing NFT UpdateUriHash(ctx context.Context, in *MsgUpdateUriHash, opts ...grpc.CallOption) (*MsgUpdateUriHashResponse, error) // MintNFT mint a new OBADA NFT (Obit) MintNFT(ctx context.Context, in *MsgMintNFT, opts ...grpc.CallOption) (*MsgMintNFTResponse, error) // BatchMintNFT mint many NFTs BatchMintNFT(ctx context.Context, in *MsgBatchMintNFT, opts ...grpc.CallOption) (*MsgBatchMintNFTResponse, error) // TransferNFT send NFT to the new owner address TransferNFT(ctx context.Context, in *MsgTransferNFT, opts ...grpc.CallOption) (*MsgTransferNFTResponse, error) // BatchTransferNFT transfer a batch NFTs BatchTransferNFT(ctx context.Context, in *MsgBatchTransferNFT, opts ...grpc.CallOption) (*MsgBatchTransferNFTResponse, 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 MsgMintNFT ¶
type MsgMintNFT struct { // Bech32 address of creator Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // DID is the unique identification of nft Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Reference to the document Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // uri_hash did document metadata checksum UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` // usn is the universal serial number of asset Usn string `protobuf:"bytes,5,opt,name=usn,proto3" json:"usn,omitempty"` }
MsgMintNFT handles obit information
func (*MsgMintNFT) Descriptor ¶
func (*MsgMintNFT) Descriptor() ([]byte, []int)
func (*MsgMintNFT) GetCreator ¶
func (m *MsgMintNFT) GetCreator() string
func (*MsgMintNFT) GetId ¶
func (m *MsgMintNFT) GetId() string
func (*MsgMintNFT) GetUri ¶
func (m *MsgMintNFT) GetUri() string
func (*MsgMintNFT) GetUriHash ¶
func (m *MsgMintNFT) GetUriHash() string
func (*MsgMintNFT) GetUsn ¶
func (m *MsgMintNFT) GetUsn() string
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) 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 MsgMintNFTResponse ¶
type MsgMintNFTResponse struct { // DID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgMintNFTResponse success minting response
func (*MsgMintNFTResponse) Descriptor ¶
func (*MsgMintNFTResponse) Descriptor() ([]byte, []int)
func (*MsgMintNFTResponse) GetId ¶
func (m *MsgMintNFTResponse) GetId() string
func (*MsgMintNFTResponse) Marshal ¶
func (m *MsgMintNFTResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintNFTResponse) MarshalTo ¶
func (m *MsgMintNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintNFTResponse) MarshalToSizedBuffer ¶
func (m *MsgMintNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintNFTResponse) ProtoMessage ¶
func (*MsgMintNFTResponse) ProtoMessage()
func (*MsgMintNFTResponse) Reset ¶
func (m *MsgMintNFTResponse) Reset()
func (*MsgMintNFTResponse) Size ¶
func (m *MsgMintNFTResponse) Size() (n int)
func (*MsgMintNFTResponse) String ¶
func (m *MsgMintNFTResponse) String() string
func (*MsgMintNFTResponse) Unmarshal ¶
func (m *MsgMintNFTResponse) Unmarshal(dAtA []byte) error
func (*MsgMintNFTResponse) XXX_DiscardUnknown ¶
func (m *MsgMintNFTResponse) XXX_DiscardUnknown()
func (*MsgMintNFTResponse) XXX_Marshal ¶
func (m *MsgMintNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintNFTResponse) XXX_Merge ¶
func (m *MsgMintNFTResponse) XXX_Merge(src proto.Message)
func (*MsgMintNFTResponse) XXX_Size ¶
func (m *MsgMintNFTResponse) XXX_Size() int
func (*MsgMintNFTResponse) XXX_Unmarshal ¶
func (m *MsgMintNFTResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // UpdateNFT updates NFT properties (definition will come in future) UpdateNFT(context.Context, *MsgUpdateNFT) (*MsgUpdateNFTResponse, error) // UpdateUriHash updates URI hash for existing NFT UpdateUriHash(context.Context, *MsgUpdateUriHash) (*MsgUpdateUriHashResponse, error) // MintNFT mint a new OBADA NFT (Obit) MintNFT(context.Context, *MsgMintNFT) (*MsgMintNFTResponse, error) // BatchMintNFT mint many NFTs BatchMintNFT(context.Context, *MsgBatchMintNFT) (*MsgBatchMintNFTResponse, error) // TransferNFT send NFT to the new owner address TransferNFT(context.Context, *MsgTransferNFT) (*MsgTransferNFTResponse, error) // BatchTransferNFT transfer a batch NFTs BatchTransferNFT(context.Context, *MsgBatchTransferNFT) (*MsgBatchTransferNFTResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransferNFT ¶
type MsgTransferNFT struct { // did defines the unique identification of nft Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // sender is the address of the owner of nft Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` // receiver is the receiver address of nft Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` }
MsgTransferNFT represents a message to send a nft from one account to another account.
func (*MsgTransferNFT) Descriptor ¶
func (*MsgTransferNFT) Descriptor() ([]byte, []int)
func (*MsgTransferNFT) GetId ¶
func (m *MsgTransferNFT) GetId() string
func (*MsgTransferNFT) GetReceiver ¶
func (m *MsgTransferNFT) GetReceiver() string
func (*MsgTransferNFT) GetSender ¶
func (m *MsgTransferNFT) GetSender() string
func (*MsgTransferNFT) Marshal ¶
func (m *MsgTransferNFT) Marshal() (dAtA []byte, err error)
func (*MsgTransferNFT) MarshalToSizedBuffer ¶
func (m *MsgTransferNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferNFT) ProtoMessage ¶
func (*MsgTransferNFT) ProtoMessage()
func (*MsgTransferNFT) Reset ¶
func (m *MsgTransferNFT) Reset()
func (*MsgTransferNFT) Size ¶
func (m *MsgTransferNFT) Size() (n int)
func (*MsgTransferNFT) String ¶
func (m *MsgTransferNFT) String() string
func (*MsgTransferNFT) Unmarshal ¶
func (m *MsgTransferNFT) Unmarshal(dAtA []byte) error
func (*MsgTransferNFT) XXX_DiscardUnknown ¶
func (m *MsgTransferNFT) XXX_DiscardUnknown()
func (*MsgTransferNFT) XXX_Marshal ¶
func (m *MsgTransferNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferNFT) XXX_Merge ¶
func (m *MsgTransferNFT) XXX_Merge(src proto.Message)
func (*MsgTransferNFT) XXX_Size ¶
func (m *MsgTransferNFT) XXX_Size() int
func (*MsgTransferNFT) XXX_Unmarshal ¶
func (m *MsgTransferNFT) XXX_Unmarshal(b []byte) error
type MsgTransferNFTResponse ¶
type MsgTransferNFTResponse struct { }
MsgTransferNFTResponse defines the Msg/Send response type.
func (*MsgTransferNFTResponse) Descriptor ¶
func (*MsgTransferNFTResponse) Descriptor() ([]byte, []int)
func (*MsgTransferNFTResponse) Marshal ¶
func (m *MsgTransferNFTResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferNFTResponse) MarshalTo ¶
func (m *MsgTransferNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferNFTResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferNFTResponse) ProtoMessage ¶
func (*MsgTransferNFTResponse) ProtoMessage()
func (*MsgTransferNFTResponse) Reset ¶
func (m *MsgTransferNFTResponse) Reset()
func (*MsgTransferNFTResponse) Size ¶
func (m *MsgTransferNFTResponse) Size() (n int)
func (*MsgTransferNFTResponse) String ¶
func (m *MsgTransferNFTResponse) String() string
func (*MsgTransferNFTResponse) Unmarshal ¶
func (m *MsgTransferNFTResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferNFTResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferNFTResponse) XXX_DiscardUnknown()
func (*MsgTransferNFTResponse) XXX_Marshal ¶
func (m *MsgTransferNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferNFTResponse) XXX_Merge ¶
func (m *MsgTransferNFTResponse) XXX_Merge(src proto.Message)
func (*MsgTransferNFTResponse) XXX_Size ¶
func (m *MsgTransferNFTResponse) XXX_Size() int
func (*MsgTransferNFTResponse) XXX_Unmarshal ¶
func (m *MsgTransferNFTResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateNFT ¶
type MsgUpdateNFT struct { // did defines the unique identification of nft Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // editor is the address of the editor of nft metadata Editor string `protobuf:"bytes,2,opt,name=editor,proto3" json:"editor,omitempty"` // NFTData represent NFT metadata NftData *NFTData `protobuf:"bytes,3,opt,name=nft_data,json=nftData,proto3" json:"nft_data,omitempty"` }
MsgUpdateNFT
func (*MsgUpdateNFT) Descriptor ¶
func (*MsgUpdateNFT) Descriptor() ([]byte, []int)
func (*MsgUpdateNFT) GetEditor ¶
func (m *MsgUpdateNFT) GetEditor() string
func (*MsgUpdateNFT) GetId ¶
func (m *MsgUpdateNFT) GetId() string
func (*MsgUpdateNFT) GetNftData ¶ added in v0.1.0
func (m *MsgUpdateNFT) GetNftData() *NFTData
func (*MsgUpdateNFT) Marshal ¶
func (m *MsgUpdateNFT) Marshal() (dAtA []byte, err error)
func (*MsgUpdateNFT) MarshalToSizedBuffer ¶
func (m *MsgUpdateNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateNFT) ProtoMessage ¶
func (*MsgUpdateNFT) ProtoMessage()
func (*MsgUpdateNFT) Reset ¶
func (m *MsgUpdateNFT) Reset()
func (*MsgUpdateNFT) Size ¶
func (m *MsgUpdateNFT) Size() (n int)
func (*MsgUpdateNFT) String ¶
func (m *MsgUpdateNFT) String() string
func (*MsgUpdateNFT) Unmarshal ¶
func (m *MsgUpdateNFT) Unmarshal(dAtA []byte) error
func (*MsgUpdateNFT) XXX_DiscardUnknown ¶
func (m *MsgUpdateNFT) XXX_DiscardUnknown()
func (*MsgUpdateNFT) XXX_Marshal ¶
func (m *MsgUpdateNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateNFT) XXX_Merge ¶
func (m *MsgUpdateNFT) XXX_Merge(src proto.Message)
func (*MsgUpdateNFT) XXX_Size ¶
func (m *MsgUpdateNFT) XXX_Size() int
func (*MsgUpdateNFT) XXX_Unmarshal ¶
func (m *MsgUpdateNFT) XXX_Unmarshal(b []byte) error
type MsgUpdateNFTResponse ¶
type MsgUpdateNFTResponse struct { // OBADA NFT Nft *NFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft,omitempty"` }
MsgUpdateNFTResponse
func (*MsgUpdateNFTResponse) Descriptor ¶
func (*MsgUpdateNFTResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateNFTResponse) GetNft ¶ added in v0.1.0
func (m *MsgUpdateNFTResponse) GetNft() *NFT
func (*MsgUpdateNFTResponse) Marshal ¶
func (m *MsgUpdateNFTResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateNFTResponse) MarshalTo ¶
func (m *MsgUpdateNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateNFTResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateNFTResponse) ProtoMessage ¶
func (*MsgUpdateNFTResponse) ProtoMessage()
func (*MsgUpdateNFTResponse) Reset ¶
func (m *MsgUpdateNFTResponse) Reset()
func (*MsgUpdateNFTResponse) Size ¶
func (m *MsgUpdateNFTResponse) Size() (n int)
func (*MsgUpdateNFTResponse) String ¶
func (m *MsgUpdateNFTResponse) String() string
func (*MsgUpdateNFTResponse) Unmarshal ¶
func (m *MsgUpdateNFTResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateNFTResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateNFTResponse) XXX_DiscardUnknown()
func (*MsgUpdateNFTResponse) XXX_Marshal ¶
func (m *MsgUpdateNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateNFTResponse) XXX_Merge ¶
func (m *MsgUpdateNFTResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateNFTResponse) XXX_Size ¶
func (m *MsgUpdateNFTResponse) XXX_Size() int
func (*MsgUpdateNFTResponse) XXX_Unmarshal ¶
func (m *MsgUpdateNFTResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateUriHash ¶
type MsgUpdateUriHash struct { // editor is the address of the editor of nft metadata Editor string `protobuf:"bytes,1,opt,name=editor,proto3" json:"editor,omitempty"` // id stores DID Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // uri_hash did document metadata checksum UriHash string `protobuf:"bytes,3,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` }
MsgUpdateUriChecksum
func (*MsgUpdateUriHash) Descriptor ¶
func (*MsgUpdateUriHash) Descriptor() ([]byte, []int)
func (*MsgUpdateUriHash) GetEditor ¶
func (m *MsgUpdateUriHash) GetEditor() string
func (*MsgUpdateUriHash) GetId ¶
func (m *MsgUpdateUriHash) GetId() string
func (*MsgUpdateUriHash) GetUriHash ¶
func (m *MsgUpdateUriHash) GetUriHash() string
func (*MsgUpdateUriHash) Marshal ¶
func (m *MsgUpdateUriHash) Marshal() (dAtA []byte, err error)
func (*MsgUpdateUriHash) MarshalToSizedBuffer ¶
func (m *MsgUpdateUriHash) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateUriHash) ProtoMessage ¶
func (*MsgUpdateUriHash) ProtoMessage()
func (*MsgUpdateUriHash) Reset ¶
func (m *MsgUpdateUriHash) Reset()
func (*MsgUpdateUriHash) Size ¶
func (m *MsgUpdateUriHash) Size() (n int)
func (*MsgUpdateUriHash) String ¶
func (m *MsgUpdateUriHash) String() string
func (*MsgUpdateUriHash) Unmarshal ¶
func (m *MsgUpdateUriHash) Unmarshal(dAtA []byte) error
func (*MsgUpdateUriHash) XXX_DiscardUnknown ¶
func (m *MsgUpdateUriHash) XXX_DiscardUnknown()
func (*MsgUpdateUriHash) XXX_Marshal ¶
func (m *MsgUpdateUriHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateUriHash) XXX_Merge ¶
func (m *MsgUpdateUriHash) XXX_Merge(src proto.Message)
func (*MsgUpdateUriHash) XXX_Size ¶
func (m *MsgUpdateUriHash) XXX_Size() int
func (*MsgUpdateUriHash) XXX_Unmarshal ¶
func (m *MsgUpdateUriHash) XXX_Unmarshal(b []byte) error
type MsgUpdateUriHashResponse ¶
type MsgUpdateUriHashResponse struct { }
MsgUpdateUriHashResponse
func (*MsgUpdateUriHashResponse) Descriptor ¶
func (*MsgUpdateUriHashResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateUriHashResponse) Marshal ¶
func (m *MsgUpdateUriHashResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateUriHashResponse) MarshalTo ¶
func (m *MsgUpdateUriHashResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateUriHashResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateUriHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateUriHashResponse) ProtoMessage ¶
func (*MsgUpdateUriHashResponse) ProtoMessage()
func (*MsgUpdateUriHashResponse) Reset ¶
func (m *MsgUpdateUriHashResponse) Reset()
func (*MsgUpdateUriHashResponse) Size ¶
func (m *MsgUpdateUriHashResponse) Size() (n int)
func (*MsgUpdateUriHashResponse) String ¶
func (m *MsgUpdateUriHashResponse) String() string
func (*MsgUpdateUriHashResponse) Unmarshal ¶
func (m *MsgUpdateUriHashResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateUriHashResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateUriHashResponse) XXX_DiscardUnknown()
func (*MsgUpdateUriHashResponse) XXX_Marshal ¶
func (m *MsgUpdateUriHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateUriHashResponse) XXX_Merge ¶
func (m *MsgUpdateUriHashResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateUriHashResponse) XXX_Size ¶
func (m *MsgUpdateUriHashResponse) XXX_Size() int
func (*MsgUpdateUriHashResponse) XXX_Unmarshal ¶
func (m *MsgUpdateUriHashResponse) XXX_Unmarshal(b []byte) error
type NFT ¶
type NFT struct { // NFT namespace ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // NFT ID (DID) Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // NFT URI Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // NFT URI hash UriHash string `protobuf:"bytes,4,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` // NFT data Data *types.Any `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` }
NFT is the struct that contains all the metadata of an NFT
func (*NFT) Descriptor ¶
func (*NFT) GetClassId ¶
func (*NFT) GetUriHash ¶
func (*NFT) ProtoMessage ¶
func (*NFT) ProtoMessage()
func (*NFT) XXX_DiscardUnknown ¶
func (m *NFT) XXX_DiscardUnknown()
func (*NFT) XXX_Unmarshal ¶
type NFTData ¶
type NFTData struct { // Universal Serial Number Usn string `protobuf:"bytes,1,opt,name=usn,proto3" json:"usn,omitempty"` }
NFTData is the struct that contains all the metadata of an NFT
func (*NFTData) Descriptor ¶
func (*NFTData) MarshalToSizedBuffer ¶
func (*NFTData) ProtoMessage ¶
func (*NFTData) ProtoMessage()
func (*NFTData) XXX_DiscardUnknown ¶
func (m *NFTData) XXX_DiscardUnknown()
func (*NFTData) XXX_Marshal ¶
func (*NFTData) XXX_Unmarshal ¶
type NftKeeper ¶
type NftKeeper interface { // Methods imported from nft should be defined here Update(ctx context.Context, token nft.NFT) error // BatchUpdate defines a method for updating a batch of exist nfts // Note: When the upper module uses this method, it needs to authenticate nft BatchUpdate(ctx context.Context, tokens []nft.NFT) error // GetOwner returns the owner of the specified NFT GetOwner(ctx context.Context, classID, nftID string) sdk.AccAddress // Mint mints a new NFT Mint(ctx context.Context, token nft.NFT, receiver sdk.AccAddress) error // BatchMint defines a method for minting a batch of nfts BatchMint(ctx context.Context, tokens []nft.NFT, receiver sdk.AccAddress) error // Burn burns a NFT Transfer(ctx context.Context, classID string, nftID string, receiver sdk.AccAddress) error // BatchTransfer defines a method for sending a batch of nfts from one account to another account from a specific classID. // Note: When the upper module uses this method, it needs to authenticate nft BatchTransfer(ctx context.Context, classID string, nftIDs []string, receiver sdk.AccAddress, ) error // GetNFTs returns all NFTs GetNFTsOfClassByOwner(ctx context.Context, classID string, owner sdk.AccAddress) (nfts []nft.NFT) // GetNFT returns the specified NFT GetNFT(ctx context.Context, classID, nftID string) (nft.NFT, bool) // GetClass returns the specified class SaveClass(ctx context.Context, class nft.Class) error // GetClass returns the specified class GetClasses(ctx context.Context) (classes []*nft.Class) // HasClass returns whether the specified class exists HasClass(ctx context.Context, classID string) bool }
NftKeeper defines the expected nft keeper
type QueryClient ¶
type QueryClient interface { // QueryGetAllNFTByAddressRequest returns a list of NFTs ownerd by given // address GetNFTByAddress(ctx context.Context, in *QueryGetNFTByAddressRequest, opts ...grpc.CallOption) (*QueryGetNFTByAddressResponse, error) // GetNft returns single NFT by DID GetNFT(ctx context.Context, in *QueryGetNFTRequest, opts ...grpc.CallOption) (*QueryGetNFTResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetNFTByAddressRequest ¶
type QueryGetNFTByAddressRequest struct { // Bech32 address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryGetNFTByAddressRequest is the request type for the Query.GetNFTByAddress
func (*QueryGetNFTByAddressRequest) Descriptor ¶
func (*QueryGetNFTByAddressRequest) Descriptor() ([]byte, []int)
func (*QueryGetNFTByAddressRequest) GetAddress ¶
func (m *QueryGetNFTByAddressRequest) GetAddress() string
func (*QueryGetNFTByAddressRequest) Marshal ¶
func (m *QueryGetNFTByAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetNFTByAddressRequest) MarshalTo ¶
func (m *QueryGetNFTByAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetNFTByAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryGetNFTByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetNFTByAddressRequest) ProtoMessage ¶
func (*QueryGetNFTByAddressRequest) ProtoMessage()
func (*QueryGetNFTByAddressRequest) Reset ¶
func (m *QueryGetNFTByAddressRequest) Reset()
func (*QueryGetNFTByAddressRequest) Size ¶
func (m *QueryGetNFTByAddressRequest) Size() (n int)
func (*QueryGetNFTByAddressRequest) String ¶
func (m *QueryGetNFTByAddressRequest) String() string
func (*QueryGetNFTByAddressRequest) Unmarshal ¶
func (m *QueryGetNFTByAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryGetNFTByAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryGetNFTByAddressRequest) XXX_DiscardUnknown()
func (*QueryGetNFTByAddressRequest) XXX_Marshal ¶
func (m *QueryGetNFTByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetNFTByAddressRequest) XXX_Merge ¶
func (m *QueryGetNFTByAddressRequest) XXX_Merge(src proto.Message)
func (*QueryGetNFTByAddressRequest) XXX_Size ¶
func (m *QueryGetNFTByAddressRequest) XXX_Size() int
func (*QueryGetNFTByAddressRequest) XXX_Unmarshal ¶
func (m *QueryGetNFTByAddressRequest) XXX_Unmarshal(b []byte) error
type QueryGetNFTByAddressResponse ¶
type QueryGetNFTByAddressResponse struct { // List of NFTs owned by the given address Nft []NFT `protobuf:"bytes,1,rep,name=nft,proto3" json:"nft"` }
QueryGetNFTByAddressResponse is the response type for the Query.GetNFTByAddress
func (*QueryGetNFTByAddressResponse) Descriptor ¶
func (*QueryGetNFTByAddressResponse) Descriptor() ([]byte, []int)
func (*QueryGetNFTByAddressResponse) GetNft ¶ added in v0.1.0
func (m *QueryGetNFTByAddressResponse) GetNft() []NFT
func (*QueryGetNFTByAddressResponse) Marshal ¶
func (m *QueryGetNFTByAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetNFTByAddressResponse) MarshalTo ¶
func (m *QueryGetNFTByAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetNFTByAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryGetNFTByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetNFTByAddressResponse) ProtoMessage ¶
func (*QueryGetNFTByAddressResponse) ProtoMessage()
func (*QueryGetNFTByAddressResponse) Reset ¶
func (m *QueryGetNFTByAddressResponse) Reset()
func (*QueryGetNFTByAddressResponse) Size ¶
func (m *QueryGetNFTByAddressResponse) Size() (n int)
func (*QueryGetNFTByAddressResponse) String ¶
func (m *QueryGetNFTByAddressResponse) String() string
func (*QueryGetNFTByAddressResponse) Unmarshal ¶
func (m *QueryGetNFTByAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryGetNFTByAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryGetNFTByAddressResponse) XXX_DiscardUnknown()
func (*QueryGetNFTByAddressResponse) XXX_Marshal ¶
func (m *QueryGetNFTByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetNFTByAddressResponse) XXX_Merge ¶
func (m *QueryGetNFTByAddressResponse) XXX_Merge(src proto.Message)
func (*QueryGetNFTByAddressResponse) XXX_Size ¶
func (m *QueryGetNFTByAddressResponse) XXX_Size() int
func (*QueryGetNFTByAddressResponse) XXX_Unmarshal ¶
func (m *QueryGetNFTByAddressResponse) XXX_Unmarshal(b []byte) error
type QueryGetNFTRequest ¶
type QueryGetNFTRequest struct { // NFT ID (DID) Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` }
QueryGetNFTRequest is the request type for the Query.GetNFT method.
func (*QueryGetNFTRequest) Descriptor ¶
func (*QueryGetNFTRequest) Descriptor() ([]byte, []int)
func (*QueryGetNFTRequest) GetId ¶
func (m *QueryGetNFTRequest) GetId() string
func (*QueryGetNFTRequest) Marshal ¶
func (m *QueryGetNFTRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetNFTRequest) MarshalTo ¶
func (m *QueryGetNFTRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetNFTRequest) MarshalToSizedBuffer ¶
func (m *QueryGetNFTRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetNFTRequest) ProtoMessage ¶
func (*QueryGetNFTRequest) ProtoMessage()
func (*QueryGetNFTRequest) Reset ¶
func (m *QueryGetNFTRequest) Reset()
func (*QueryGetNFTRequest) Size ¶
func (m *QueryGetNFTRequest) Size() (n int)
func (*QueryGetNFTRequest) String ¶
func (m *QueryGetNFTRequest) String() string
func (*QueryGetNFTRequest) Unmarshal ¶
func (m *QueryGetNFTRequest) Unmarshal(dAtA []byte) error
func (*QueryGetNFTRequest) XXX_DiscardUnknown ¶
func (m *QueryGetNFTRequest) XXX_DiscardUnknown()
func (*QueryGetNFTRequest) XXX_Marshal ¶
func (m *QueryGetNFTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetNFTRequest) XXX_Merge ¶
func (m *QueryGetNFTRequest) XXX_Merge(src proto.Message)
func (*QueryGetNFTRequest) XXX_Size ¶
func (m *QueryGetNFTRequest) XXX_Size() int
func (*QueryGetNFTRequest) XXX_Unmarshal ¶
func (m *QueryGetNFTRequest) XXX_Unmarshal(b []byte) error
type QueryGetNFTResponse ¶ added in v0.1.0
type QueryGetNFTResponse struct { // NFT with the given ID Nft NFT `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft"` }
QueryGetNFTResponse is the response type for the Query.GetNFT method.
func (*QueryGetNFTResponse) Descriptor ¶ added in v0.1.0
func (*QueryGetNFTResponse) Descriptor() ([]byte, []int)
func (*QueryGetNFTResponse) GetNft ¶ added in v0.1.0
func (m *QueryGetNFTResponse) GetNft() NFT
func (*QueryGetNFTResponse) Marshal ¶ added in v0.1.0
func (m *QueryGetNFTResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetNFTResponse) MarshalTo ¶ added in v0.1.0
func (m *QueryGetNFTResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetNFTResponse) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *QueryGetNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetNFTResponse) ProtoMessage ¶ added in v0.1.0
func (*QueryGetNFTResponse) ProtoMessage()
func (*QueryGetNFTResponse) Reset ¶ added in v0.1.0
func (m *QueryGetNFTResponse) Reset()
func (*QueryGetNFTResponse) Size ¶ added in v0.1.0
func (m *QueryGetNFTResponse) Size() (n int)
func (*QueryGetNFTResponse) String ¶ added in v0.1.0
func (m *QueryGetNFTResponse) String() string
func (*QueryGetNFTResponse) Unmarshal ¶ added in v0.1.0
func (m *QueryGetNFTResponse) Unmarshal(dAtA []byte) error
func (*QueryGetNFTResponse) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *QueryGetNFTResponse) XXX_DiscardUnknown()
func (*QueryGetNFTResponse) XXX_Marshal ¶ added in v0.1.0
func (m *QueryGetNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetNFTResponse) XXX_Merge ¶ added in v0.1.0
func (m *QueryGetNFTResponse) XXX_Merge(src proto.Message)
func (*QueryGetNFTResponse) XXX_Size ¶ added in v0.1.0
func (m *QueryGetNFTResponse) XXX_Size() int
func (*QueryGetNFTResponse) XXX_Unmarshal ¶ added in v0.1.0
func (m *QueryGetNFTResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // QueryGetAllNFTByAddressRequest returns a list of NFTs ownerd by given // address GetNFTByAddress(context.Context, *QueryGetNFTByAddressRequest) (*QueryGetNFTByAddressResponse, error) // GetNft returns single NFT by DID GetNFT(context.Context, *QueryGetNFTRequest) (*QueryGetNFTResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BatchMintNFT ¶ added in v0.1.0
func (*UnimplementedMsgServer) BatchMintNFT(ctx context.Context, req *MsgBatchMintNFT) (*MsgBatchMintNFTResponse, error)
func (*UnimplementedMsgServer) BatchTransferNFT ¶ added in v0.1.0
func (*UnimplementedMsgServer) BatchTransferNFT(ctx context.Context, req *MsgBatchTransferNFT) (*MsgBatchTransferNFTResponse, error)
func (*UnimplementedMsgServer) MintNFT ¶
func (*UnimplementedMsgServer) MintNFT(ctx context.Context, req *MsgMintNFT) (*MsgMintNFTResponse, error)
func (*UnimplementedMsgServer) TransferNFT ¶
func (*UnimplementedMsgServer) TransferNFT(ctx context.Context, req *MsgTransferNFT) (*MsgTransferNFTResponse, error)
func (*UnimplementedMsgServer) UpdateNFT ¶
func (*UnimplementedMsgServer) UpdateNFT(ctx context.Context, req *MsgUpdateNFT) (*MsgUpdateNFTResponse, error)
func (*UnimplementedMsgServer) UpdateUriHash ¶
func (*UnimplementedMsgServer) UpdateUriHash(ctx context.Context, req *MsgUpdateUriHash) (*MsgUpdateUriHashResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetNFT ¶
func (*UnimplementedQueryServer) GetNFT(ctx context.Context, req *QueryGetNFTRequest) (*QueryGetNFTResponse, error)
func (*UnimplementedQueryServer) GetNFTByAddress ¶
func (*UnimplementedQueryServer) GetNFTByAddress(ctx context.Context, req *QueryGetNFTByAddressRequest) (*QueryGetNFTByAddressResponse, error)