types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 26 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "nft"

	// 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_nft"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// NftKeyPrefix is the prefix to retrieve all Nft
	NftKeyPrefix = "Nft/value/"
)

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNft        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNft          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNft = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = 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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/nft module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NftKey

func NftKey(
	index string,
) []byte

NftKey returns the store key to retrieve a Nft from the index fields

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

type AccountKeeper interface {
}

type BankKeeper

type BankKeeper interface {
}

type GenesisState

type GenesisState struct {
	NftList []Nft `protobuf:"bytes,1,rep,name=nftList,proto3" json:"nftList"`
}

GenesisState defines the nft 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) GetNftList

func (m *GenesisState) GetNftList() []Nft

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

type MsgClient interface {
	CreateNft(ctx context.Context, in *MsgCreateNft, opts ...grpc.CallOption) (*MsgCreateNftResponse, 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 MsgCreateNft

type MsgCreateNft struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	MediaUrl   string `protobuf:"bytes,2,opt,name=mediaUrl,proto3" json:"mediaUrl,omitempty"`
	Owner      string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	OrgId      string `protobuf:"bytes,4,opt,name=orgId,proto3" json:"orgId,omitempty"`
	OrgOwner   string `protobuf:"bytes,5,opt,name=orgOwner,proto3" json:"orgOwner,omitempty"`
	OrgChain   string `protobuf:"bytes,6,opt,name=orgChain,proto3" json:"orgChain,omitempty"`
	OrgAddress string `protobuf:"bytes,7,opt,name=orgAddress,proto3" json:"orgAddress,omitempty"`
	OrgNounce  string `protobuf:"bytes,8,opt,name=orgNounce,proto3" json:"orgNounce,omitempty"`
}

func NewMsgCreateNft

func NewMsgCreateNft(creator string, name string, description string, mediaUrl string, owner string, orgId string, orgOwner string, orgChain string) *MsgCreateNft

func (*MsgCreateNft) Descriptor

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

func (*MsgCreateNft) GetCreator

func (m *MsgCreateNft) GetCreator() string

func (*MsgCreateNft) GetMediaUrl

func (m *MsgCreateNft) GetMediaUrl() string

func (*MsgCreateNft) GetOrgAddress

func (m *MsgCreateNft) GetOrgAddress() string

func (*MsgCreateNft) GetOrgChain

func (m *MsgCreateNft) GetOrgChain() string

func (*MsgCreateNft) GetOrgId

func (m *MsgCreateNft) GetOrgId() string

func (*MsgCreateNft) GetOrgNounce

func (m *MsgCreateNft) GetOrgNounce() string

func (*MsgCreateNft) GetOrgOwner

func (m *MsgCreateNft) GetOrgOwner() string

func (*MsgCreateNft) GetOwner

func (m *MsgCreateNft) GetOwner() string

func (*MsgCreateNft) GetSignBytes

func (msg *MsgCreateNft) GetSignBytes() []byte

func (*MsgCreateNft) GetSigners

func (msg *MsgCreateNft) GetSigners() []sdk.AccAddress

func (*MsgCreateNft) Marshal

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

func (*MsgCreateNft) MarshalTo

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

func (*MsgCreateNft) MarshalToSizedBuffer

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

func (*MsgCreateNft) ProtoMessage

func (*MsgCreateNft) ProtoMessage()

func (*MsgCreateNft) Reset

func (m *MsgCreateNft) Reset()

func (*MsgCreateNft) Route

func (msg *MsgCreateNft) Route() string

func (*MsgCreateNft) Size

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

func (*MsgCreateNft) String

func (m *MsgCreateNft) String() string

func (*MsgCreateNft) Type

func (msg *MsgCreateNft) Type() string

func (*MsgCreateNft) Unmarshal

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

func (*MsgCreateNft) ValidateBasic

func (msg *MsgCreateNft) ValidateBasic() error

func (*MsgCreateNft) XXX_DiscardUnknown

func (m *MsgCreateNft) XXX_DiscardUnknown()

func (*MsgCreateNft) XXX_Marshal

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

func (*MsgCreateNft) XXX_Merge

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

func (*MsgCreateNft) XXX_Size

func (m *MsgCreateNft) XXX_Size() int

func (*MsgCreateNft) XXX_Unmarshal

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

type MsgCreateNftResponse

type MsgCreateNftResponse struct {
}

func (*MsgCreateNftResponse) Descriptor

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

func (*MsgCreateNftResponse) Marshal

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

func (*MsgCreateNftResponse) MarshalTo

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

func (*MsgCreateNftResponse) MarshalToSizedBuffer

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

func (*MsgCreateNftResponse) ProtoMessage

func (*MsgCreateNftResponse) ProtoMessage()

func (*MsgCreateNftResponse) Reset

func (m *MsgCreateNftResponse) Reset()

func (*MsgCreateNftResponse) Size

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

func (*MsgCreateNftResponse) String

func (m *MsgCreateNftResponse) String() string

func (*MsgCreateNftResponse) Unmarshal

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

func (*MsgCreateNftResponse) XXX_DiscardUnknown

func (m *MsgCreateNftResponse) XXX_DiscardUnknown()

func (*MsgCreateNftResponse) XXX_Marshal

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

func (*MsgCreateNftResponse) XXX_Merge

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

func (*MsgCreateNftResponse) XXX_Size

func (m *MsgCreateNftResponse) XXX_Size() int

func (*MsgCreateNftResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateNft(context.Context, *MsgCreateNft) (*MsgCreateNftResponse, error)
}

MsgServer is the server API for Msg service.

type Nft

type Nft struct {
	Index      string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	MediaUrl   string `protobuf:"bytes,2,opt,name=mediaUrl,proto3" json:"mediaUrl,omitempty"`
	Owner      string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	OrgId      string `protobuf:"bytes,4,opt,name=orgId,proto3" json:"orgId,omitempty"`
	OrgOwner   string `protobuf:"bytes,5,opt,name=orgOwner,proto3" json:"orgOwner,omitempty"`
	OrgChain   string `protobuf:"bytes,6,opt,name=orgChain,proto3" json:"orgChain,omitempty"`
	OrgAddress string `protobuf:"bytes,7,opt,name=orgAddress,proto3" json:"orgAddress,omitempty"`
}

func (*Nft) Descriptor

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

func (*Nft) GetIndex

func (m *Nft) GetIndex() string

func (*Nft) GetMediaUrl

func (m *Nft) GetMediaUrl() string

func (*Nft) GetOrgAddress

func (m *Nft) GetOrgAddress() string

func (*Nft) GetOrgChain

func (m *Nft) GetOrgChain() string

func (*Nft) GetOrgId

func (m *Nft) GetOrgId() string

func (*Nft) GetOrgOwner

func (m *Nft) GetOrgOwner() string

func (*Nft) GetOwner

func (m *Nft) GetOwner() string

func (*Nft) Marshal

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

func (*Nft) MarshalTo

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

func (*Nft) MarshalToSizedBuffer

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

func (*Nft) ProtoMessage

func (*Nft) ProtoMessage()

func (*Nft) Reset

func (m *Nft) Reset()

func (*Nft) Size

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

func (*Nft) String

func (m *Nft) String() string

func (*Nft) Unmarshal

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

func (*Nft) XXX_DiscardUnknown

func (m *Nft) XXX_DiscardUnknown()

func (*Nft) XXX_Marshal

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

func (*Nft) XXX_Merge

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

func (*Nft) XXX_Size

func (m *Nft) XXX_Size() int

func (*Nft) XXX_Unmarshal

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

type QueryAllNftRequest

type QueryAllNftRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNftRequest) Descriptor

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

func (*QueryAllNftRequest) GetPagination

func (m *QueryAllNftRequest) GetPagination() *query.PageRequest

func (*QueryAllNftRequest) Marshal

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

func (*QueryAllNftRequest) MarshalTo

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

func (*QueryAllNftRequest) MarshalToSizedBuffer

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

func (*QueryAllNftRequest) ProtoMessage

func (*QueryAllNftRequest) ProtoMessage()

func (*QueryAllNftRequest) Reset

func (m *QueryAllNftRequest) Reset()

func (*QueryAllNftRequest) Size

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

func (*QueryAllNftRequest) String

func (m *QueryAllNftRequest) String() string

func (*QueryAllNftRequest) Unmarshal

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

func (*QueryAllNftRequest) XXX_DiscardUnknown

func (m *QueryAllNftRequest) XXX_DiscardUnknown()

func (*QueryAllNftRequest) XXX_Marshal

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

func (*QueryAllNftRequest) XXX_Merge

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

func (*QueryAllNftRequest) XXX_Size

func (m *QueryAllNftRequest) XXX_Size() int

func (*QueryAllNftRequest) XXX_Unmarshal

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

type QueryAllNftResponse

type QueryAllNftResponse struct {
	Nft        []Nft               `protobuf:"bytes,1,rep,name=nft,proto3" json:"nft"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNftResponse) Descriptor

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

func (*QueryAllNftResponse) GetNft

func (m *QueryAllNftResponse) GetNft() []Nft

func (*QueryAllNftResponse) GetPagination

func (m *QueryAllNftResponse) GetPagination() *query.PageResponse

func (*QueryAllNftResponse) Marshal

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

func (*QueryAllNftResponse) MarshalTo

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

func (*QueryAllNftResponse) MarshalToSizedBuffer

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

func (*QueryAllNftResponse) ProtoMessage

func (*QueryAllNftResponse) ProtoMessage()

func (*QueryAllNftResponse) Reset

func (m *QueryAllNftResponse) Reset()

func (*QueryAllNftResponse) Size

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

func (*QueryAllNftResponse) String

func (m *QueryAllNftResponse) String() string

func (*QueryAllNftResponse) Unmarshal

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

func (*QueryAllNftResponse) XXX_DiscardUnknown

func (m *QueryAllNftResponse) XXX_DiscardUnknown()

func (*QueryAllNftResponse) XXX_Marshal

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

func (*QueryAllNftResponse) XXX_Merge

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

func (*QueryAllNftResponse) XXX_Size

func (m *QueryAllNftResponse) XXX_Size() int

func (*QueryAllNftResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a nft by index.
	Nft(ctx context.Context, in *QueryGetNftRequest, opts ...grpc.CallOption) (*QueryGetNftResponse, error)
	// Queries a list of nft items.
	NftAll(ctx context.Context, in *QueryAllNftRequest, opts ...grpc.CallOption) (*QueryAllNftResponse, 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 QueryGetNftRequest

type QueryGetNftRequest struct {
	Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetNftRequest) Descriptor

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

func (*QueryGetNftRequest) GetIndex

func (m *QueryGetNftRequest) GetIndex() 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

type QueryGetNftResponse struct {
	Nft Nft `protobuf:"bytes,1,opt,name=nft,proto3" json:"nft"`
}

func (*QueryGetNftResponse) Descriptor

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

func (*QueryGetNftResponse) GetNft

func (m *QueryGetNftResponse) GetNft() Nft

func (*QueryGetNftResponse) Marshal

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

func (*QueryGetNftResponse) MarshalTo

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

func (*QueryGetNftResponse) MarshalToSizedBuffer

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

func (*QueryGetNftResponse) ProtoMessage

func (*QueryGetNftResponse) ProtoMessage()

func (*QueryGetNftResponse) Reset

func (m *QueryGetNftResponse) Reset()

func (*QueryGetNftResponse) Size

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

func (*QueryGetNftResponse) String

func (m *QueryGetNftResponse) String() string

func (*QueryGetNftResponse) Unmarshal

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

func (*QueryGetNftResponse) XXX_DiscardUnknown

func (m *QueryGetNftResponse) XXX_DiscardUnknown()

func (*QueryGetNftResponse) XXX_Marshal

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

func (*QueryGetNftResponse) XXX_Merge

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

func (*QueryGetNftResponse) XXX_Size

func (m *QueryGetNftResponse) XXX_Size() int

func (*QueryGetNftResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a nft by index.
	Nft(context.Context, *QueryGetNftRequest) (*QueryGetNftResponse, error)
	// Queries a list of nft items.
	NftAll(context.Context, *QueryAllNftRequest) (*QueryAllNftResponse, 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) CreateNft

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Nft

func (*UnimplementedQueryServer) NftAll

Jump to

Keyboard shortcuts

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