Documentation ¶
Overview ¶
Package auction is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 BankKeeper
- type EventReserve
- func (*EventReserve) Descriptor() ([]byte, []int)
- func (m *EventReserve) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *EventReserve) GetName() string
- func (m *EventReserve) GetOwner() string
- func (m *EventReserve) GetResolve() string
- func (m *EventReserve) Marshal() (dAtA []byte, err error)
- func (m *EventReserve) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReserve) ProtoMessage()
- func (m *EventReserve) Reset()
- func (m *EventReserve) Size() (n int)
- func (m *EventReserve) String() string
- func (m *EventReserve) Unmarshal(dAtA []byte) error
- func (m *EventReserve) XXX_DiscardUnknown()
- func (m *EventReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReserve) XXX_Merge(src proto.Message)
- func (m *EventReserve) XXX_Size() int
- func (m *EventReserve) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 MsgBid
- func (*MsgBid) Descriptor() ([]byte, []int)
- func (m *MsgBid) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgBid) GetName() string
- func (m *MsgBid) GetOwner() string
- func (m *MsgBid) GetResolveAddress() string
- func (m *MsgBid) Marshal() (dAtA []byte, err error)
- func (m *MsgBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBid) ProtoMessage()
- func (m *MsgBid) Reset()
- func (m *MsgBid) Size() (n int)
- func (m *MsgBid) String() string
- func (m *MsgBid) Unmarshal(dAtA []byte) error
- func (m *MsgBid) XXX_DiscardUnknown()
- func (m *MsgBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBid) XXX_Merge(src proto.Message)
- func (m *MsgBid) XXX_Size() int
- func (m *MsgBid) XXX_Unmarshal(b []byte) error
- type MsgBidResponse
- func (*MsgBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBidResponse) ProtoMessage()
- func (m *MsgBidResponse) Reset()
- func (m *MsgBidResponse) Size() (n int)
- func (m *MsgBidResponse) String() string
- func (m *MsgBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBidResponse) XXX_DiscardUnknown()
- func (m *MsgBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBidResponse) XXX_Merge(src proto.Message)
- func (m *MsgBidResponse) XXX_Size() int
- func (m *MsgBidResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Name
- func (*Name) Descriptor() ([]byte, []int)
- func (m *Name) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Name) GetName() string
- func (m *Name) GetOwner() string
- func (m *Name) GetResolveAddress() string
- func (m *Name) Marshal() (dAtA []byte, err error)
- func (m *Name) MarshalTo(dAtA []byte) (int, error)
- func (m *Name) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Name) ProtoMessage()
- func (m *Name) Reset()
- func (m *Name) Size() (n int)
- func (m *Name) String() string
- func (m *Name) Unmarshal(dAtA []byte) error
- func (m *Name) XXX_DiscardUnknown()
- func (m *Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Name) XXX_Merge(src proto.Message)
- func (m *Name) XXX_Size() int
- func (m *Name) XXX_Unmarshal(b []byte) error
- type NameCollection
- func (*NameCollection) Descriptor() ([]byte, []int)
- func (m *NameCollection) GetNames() []*Name
- func (m *NameCollection) GetOwner() string
- func (m *NameCollection) Marshal() (dAtA []byte, err error)
- func (m *NameCollection) MarshalTo(dAtA []byte) (int, error)
- func (m *NameCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NameCollection) ProtoMessage()
- func (m *NameCollection) Reset()
- func (m *NameCollection) Size() (n int)
- func (m *NameCollection) String() string
- func (m *NameCollection) Unmarshal(dAtA []byte) error
- func (m *NameCollection) XXX_DiscardUnknown()
- func (m *NameCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NameCollection) XXX_Merge(src proto.Message)
- func (m *NameCollection) XXX_Size() int
- func (m *NameCollection) XXX_Unmarshal(b []byte) error
- type Owner
- func (*Owner) Descriptor() ([]byte, []int)
- func (m *Owner) GetName() string
- func (m *Owner) GetOwnerAddress() string
- func (m *Owner) Marshal() (dAtA []byte, err error)
- func (m *Owner) MarshalTo(dAtA []byte) (int, error)
- func (m *Owner) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Owner) ProtoMessage()
- func (m *Owner) Reset()
- func (m *Owner) Size() (n int)
- func (m *Owner) String() string
- func (m *Owner) Unmarshal(dAtA []byte) error
- func (m *Owner) XXX_DiscardUnknown()
- func (m *Owner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Owner) XXX_Merge(src proto.Message)
- func (m *Owner) XXX_Size() int
- func (m *Owner) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryNameRequest
- func (*QueryNameRequest) Descriptor() ([]byte, []int)
- func (m *QueryNameRequest) GetName() string
- func (m *QueryNameRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNameRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNameRequest) ProtoMessage()
- func (m *QueryNameRequest) Reset()
- func (m *QueryNameRequest) Size() (n int)
- func (m *QueryNameRequest) String() string
- func (m *QueryNameRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNameRequest) XXX_DiscardUnknown()
- func (m *QueryNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNameRequest) XXX_Merge(src proto.Message)
- func (m *QueryNameRequest) XXX_Size() int
- func (m *QueryNameRequest) XXX_Unmarshal(b []byte) error
- type QueryNameResponse
- func (*QueryNameResponse) Descriptor() ([]byte, []int)
- func (m *QueryNameResponse) GetName() *Name
- func (m *QueryNameResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNameResponse) ProtoMessage()
- func (m *QueryNameResponse) Reset()
- func (m *QueryNameResponse) Size() (n int)
- func (m *QueryNameResponse) String() string
- func (m *QueryNameResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNameResponse) XXX_DiscardUnknown()
- func (m *QueryNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNameResponse) XXX_Merge(src proto.Message)
- func (m *QueryNameResponse) XXX_Size() int
- func (m *QueryNameResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( ModuleName = "auction" StoreKey = ModuleName )
Variables ¶
var ( ErrNameReserved = errors.Register(ModuleName, 1, "name already reserved") ErrEmptyName = errors.Register(ModuleName, 2, "name cannot be empty") )
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( FlagValKey = "val-key" FlagRunProvider = "run-provider" )
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 ( NamesKey = collections.NewPrefix(0) OwnersKey = collections.NewPrefix(1) )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the interfaces types with the interface registry.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
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 BankKeeper ¶
type BankKeeper interface { GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the contract needed to be fulfilled for banking and supply dependencies.
type EventReserve ¶
type EventReserve struct { // name is the human readable reserved address Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // owner is the bech32 address of the name's owner Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // resolve is the bech32 address the name resolves to Resolve string `protobuf:"bytes,3,opt,name=resolve,proto3" json:"resolve,omitempty"` // receiver is the receiver address of nft Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
EventReserve is emitted on Msg/Reserve
func (*EventReserve) Descriptor ¶
func (*EventReserve) Descriptor() ([]byte, []int)
func (*EventReserve) GetAmount ¶
func (m *EventReserve) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*EventReserve) GetName ¶
func (m *EventReserve) GetName() string
func (*EventReserve) GetOwner ¶
func (m *EventReserve) GetOwner() string
func (*EventReserve) GetResolve ¶
func (m *EventReserve) GetResolve() string
func (*EventReserve) Marshal ¶
func (m *EventReserve) Marshal() (dAtA []byte, err error)
func (*EventReserve) MarshalToSizedBuffer ¶
func (m *EventReserve) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReserve) ProtoMessage ¶
func (*EventReserve) ProtoMessage()
func (*EventReserve) Reset ¶
func (m *EventReserve) Reset()
func (*EventReserve) Size ¶
func (m *EventReserve) Size() (n int)
func (*EventReserve) String ¶
func (m *EventReserve) String() string
func (*EventReserve) Unmarshal ¶
func (m *EventReserve) Unmarshal(dAtA []byte) error
func (*EventReserve) XXX_DiscardUnknown ¶
func (m *EventReserve) XXX_DiscardUnknown()
func (*EventReserve) XXX_Marshal ¶
func (m *EventReserve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReserve) XXX_Merge ¶
func (m *EventReserve) XXX_Merge(src proto.Message)
func (*EventReserve) XXX_Size ¶
func (m *EventReserve) XXX_Size() int
func (*EventReserve) XXX_Unmarshal ¶
func (m *EventReserve) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { }
GenesisState defines the nameservice module's genesis state.
func NewGenesisState ¶
func NewGenesisState() *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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
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 MsgBid ¶
type MsgBid struct { // name defines the human readable address Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // resolveAddress defines the bech32 address to resolve to ResolveAddress string `protobuf:"bytes,2,opt,name=resolve_address,json=resolveAddress,proto3" json:"resolve_address,omitempty"` // owner is the address of the owner of listing Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` // price is the last price paid for listing Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgReserve represents a message to purchase a nameservice.
func (*MsgBid) Descriptor ¶
func (*MsgBid) GetAmount ¶
func (m *MsgBid) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgBid) GetResolveAddress ¶
func (*MsgBid) MarshalToSizedBuffer ¶
func (*MsgBid) ProtoMessage ¶
func (*MsgBid) ProtoMessage()
func (*MsgBid) XXX_DiscardUnknown ¶
func (m *MsgBid) XXX_DiscardUnknown()
func (*MsgBid) XXX_Marshal ¶
func (*MsgBid) XXX_Unmarshal ¶
type MsgBidResponse ¶
type MsgBidResponse struct { }
MsgSendResponse defines the Msg/Reserve response type.
func (*MsgBidResponse) Descriptor ¶
func (*MsgBidResponse) Descriptor() ([]byte, []int)
func (*MsgBidResponse) Marshal ¶
func (m *MsgBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgBidResponse) MarshalToSizedBuffer ¶
func (m *MsgBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBidResponse) ProtoMessage ¶
func (*MsgBidResponse) ProtoMessage()
func (*MsgBidResponse) Reset ¶
func (m *MsgBidResponse) Reset()
func (*MsgBidResponse) Size ¶
func (m *MsgBidResponse) Size() (n int)
func (*MsgBidResponse) String ¶
func (m *MsgBidResponse) String() string
func (*MsgBidResponse) Unmarshal ¶
func (m *MsgBidResponse) Unmarshal(dAtA []byte) error
func (*MsgBidResponse) XXX_DiscardUnknown ¶
func (m *MsgBidResponse) XXX_DiscardUnknown()
func (*MsgBidResponse) XXX_Marshal ¶
func (m *MsgBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBidResponse) XXX_Merge ¶
func (m *MsgBidResponse) XXX_Merge(src proto.Message)
func (*MsgBidResponse) XXX_Size ¶
func (m *MsgBidResponse) XXX_Size() int
func (*MsgBidResponse) XXX_Unmarshal ¶
func (m *MsgBidResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Reserve defines a method to buy a nameservice with an associated bech32 // address to resolve to. Bid(ctx context.Context, in *MsgBid, opts ...grpc.CallOption) (*MsgBidResponse, 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 MsgServer ¶
type MsgServer interface { // Reserve defines a method to buy a nameservice with an associated bech32 // address to resolve to. Bid(context.Context, *MsgBid) (*MsgBidResponse, error) }
MsgServer is the server API for Msg service.
type Name ¶
type Name struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // Bech32 Address to Resolve ResolveAddress string `protobuf:"bytes,3,opt,name=resolve_address,json=resolveAddress,proto3" json:"resolve_address,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
Name defines the properties of a name in the name service auction system.
func (*Name) Descriptor ¶
func (*Name) GetAmount ¶
func (m *Name) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*Name) GetResolveAddress ¶
func (*Name) ProtoMessage ¶
func (*Name) ProtoMessage()
func (*Name) XXX_DiscardUnknown ¶
func (m *Name) XXX_DiscardUnknown()
func (*Name) XXX_Unmarshal ¶
type NameCollection ¶
type NameCollection struct { // owner is the owner address of the following nft Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // names is a all names of the same owner Names []*Name `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` }
Entry define all names owned by an account
func (*NameCollection) Descriptor ¶
func (*NameCollection) Descriptor() ([]byte, []int)
func (*NameCollection) GetNames ¶
func (m *NameCollection) GetNames() []*Name
func (*NameCollection) GetOwner ¶
func (m *NameCollection) GetOwner() string
func (*NameCollection) Marshal ¶
func (m *NameCollection) Marshal() (dAtA []byte, err error)
func (*NameCollection) MarshalToSizedBuffer ¶
func (m *NameCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NameCollection) ProtoMessage ¶
func (*NameCollection) ProtoMessage()
func (*NameCollection) Reset ¶
func (m *NameCollection) Reset()
func (*NameCollection) Size ¶
func (m *NameCollection) Size() (n int)
func (*NameCollection) String ¶
func (m *NameCollection) String() string
func (*NameCollection) Unmarshal ¶
func (m *NameCollection) Unmarshal(dAtA []byte) error
func (*NameCollection) XXX_DiscardUnknown ¶
func (m *NameCollection) XXX_DiscardUnknown()
func (*NameCollection) XXX_Marshal ¶
func (m *NameCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NameCollection) XXX_Merge ¶
func (m *NameCollection) XXX_Merge(src proto.Message)
func (*NameCollection) XXX_Size ¶
func (m *NameCollection) XXX_Size() int
func (*NameCollection) XXX_Unmarshal ¶
func (m *NameCollection) XXX_Unmarshal(b []byte) error
type Owner ¶
type Owner struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Bech32 Address of Owner OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` }
Owner defines the properties of an owner in the name service auction system.
func (*Owner) Descriptor ¶
func (*Owner) GetOwnerAddress ¶
func (*Owner) ProtoMessage ¶
func (*Owner) ProtoMessage()
func (*Owner) XXX_DiscardUnknown ¶
func (m *Owner) XXX_DiscardUnknown()
func (*Owner) XXX_Marshal ¶
func (*Owner) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Name is a method that takes a QueryNameRequest and returns a QueryNameResponse. Name(ctx context.Context, in *QueryNameRequest, opts ...grpc.CallOption) (*QueryNameResponse, 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 QueryNameRequest ¶
type QueryNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
QueryNameRequest is the request type for the Query/Names RPC method
func (*QueryNameRequest) Descriptor ¶
func (*QueryNameRequest) Descriptor() ([]byte, []int)
func (*QueryNameRequest) GetName ¶
func (m *QueryNameRequest) GetName() string
func (*QueryNameRequest) Marshal ¶
func (m *QueryNameRequest) Marshal() (dAtA []byte, err error)
func (*QueryNameRequest) MarshalToSizedBuffer ¶
func (m *QueryNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNameRequest) ProtoMessage ¶
func (*QueryNameRequest) ProtoMessage()
func (*QueryNameRequest) Reset ¶
func (m *QueryNameRequest) Reset()
func (*QueryNameRequest) Size ¶
func (m *QueryNameRequest) Size() (n int)
func (*QueryNameRequest) String ¶
func (m *QueryNameRequest) String() string
func (*QueryNameRequest) Unmarshal ¶
func (m *QueryNameRequest) Unmarshal(dAtA []byte) error
func (*QueryNameRequest) XXX_DiscardUnknown ¶
func (m *QueryNameRequest) XXX_DiscardUnknown()
func (*QueryNameRequest) XXX_Marshal ¶
func (m *QueryNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNameRequest) XXX_Merge ¶
func (m *QueryNameRequest) XXX_Merge(src proto.Message)
func (*QueryNameRequest) XXX_Size ¶
func (m *QueryNameRequest) XXX_Size() int
func (*QueryNameRequest) XXX_Unmarshal ¶
func (m *QueryNameRequest) XXX_Unmarshal(b []byte) error
type QueryNameResponse ¶
type QueryNameResponse struct {
Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
QueryNameResponse is the response type for the Query/Names RPC method
func (*QueryNameResponse) Descriptor ¶
func (*QueryNameResponse) Descriptor() ([]byte, []int)
func (*QueryNameResponse) GetName ¶
func (m *QueryNameResponse) GetName() *Name
func (*QueryNameResponse) Marshal ¶
func (m *QueryNameResponse) Marshal() (dAtA []byte, err error)
func (*QueryNameResponse) MarshalTo ¶
func (m *QueryNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNameResponse) MarshalToSizedBuffer ¶
func (m *QueryNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNameResponse) ProtoMessage ¶
func (*QueryNameResponse) ProtoMessage()
func (*QueryNameResponse) Reset ¶
func (m *QueryNameResponse) Reset()
func (*QueryNameResponse) Size ¶
func (m *QueryNameResponse) Size() (n int)
func (*QueryNameResponse) String ¶
func (m *QueryNameResponse) String() string
func (*QueryNameResponse) Unmarshal ¶
func (m *QueryNameResponse) Unmarshal(dAtA []byte) error
func (*QueryNameResponse) XXX_DiscardUnknown ¶
func (m *QueryNameResponse) XXX_DiscardUnknown()
func (*QueryNameResponse) XXX_Marshal ¶
func (m *QueryNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNameResponse) XXX_Merge ¶
func (m *QueryNameResponse) XXX_Merge(src proto.Message)
func (*QueryNameResponse) XXX_Size ¶
func (m *QueryNameResponse) XXX_Size() int
func (*QueryNameResponse) XXX_Unmarshal ¶
func (m *QueryNameResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Name is a method that takes a QueryNameRequest and returns a QueryNameResponse. Name(context.Context, *QueryNameRequest) (*QueryNameResponse, 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) Bid ¶
func (*UnimplementedMsgServer) Bid(ctx context.Context, req *MsgBid) (*MsgBidResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Name ¶
func (*UnimplementedQueryServer) Name(ctx context.Context, req *QueryNameRequest) (*QueryNameResponse, error)