Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry codectypes.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 BankKeeper
- type FaucetKey
- func (*FaucetKey) Descriptor() ([]byte, []int)
- func (m *FaucetKey) GetArmor() string
- func (m *FaucetKey) Marshal() (dAtA []byte, err error)
- func (m *FaucetKey) MarshalTo(dAtA []byte) (int, error)
- func (m *FaucetKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FaucetKey) ProtoMessage()
- func (m *FaucetKey) Reset()
- func (m *FaucetKey) Size() (n int)
- func (m *FaucetKey) String() string
- func (m *FaucetKey) Unmarshal(dAtA []byte) error
- func (m *FaucetKey) XXX_DiscardUnknown()
- func (m *FaucetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaucetKey) XXX_Merge(src proto.Message)
- func (m *FaucetKey) XXX_Size() int
- func (m *FaucetKey) XXX_Unmarshal(b []byte) error
- type Mining
- func (*Mining) Descriptor() ([]byte, []int)
- func (m *Mining) GetLastTime() int64
- func (m *Mining) GetMinter() string
- func (m *Mining) GetTotal() types.Coin
- func (m *Mining) Marshal() (dAtA []byte, err error)
- func (m *Mining) MarshalTo(dAtA []byte) (int, error)
- func (m *Mining) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Mining) ProtoMessage()
- func (m *Mining) Reset()
- func (m *Mining) Size() (n int)
- func (m *Mining) String() string
- func (m *Mining) Unmarshal(dAtA []byte) error
- func (m *Mining) XXX_DiscardUnknown()
- func (m *Mining) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mining) XXX_Merge(src proto.Message)
- func (m *Mining) XXX_Size() int
- func (m *Mining) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgFaucetKey
- func (*MsgFaucetKey) Descriptor() ([]byte, []int)
- func (this *MsgFaucetKey) Equal(that interface{}) bool
- func (m *MsgFaucetKey) GetArmor() string
- func (m *MsgFaucetKey) GetSender() string
- func (msg MsgFaucetKey) GetSignBytes() []byte
- func (msg MsgFaucetKey) GetSigners() []sdk.AccAddress
- func (m *MsgFaucetKey) Marshal() (dAtA []byte, err error)
- func (m *MsgFaucetKey) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFaucetKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFaucetKey) ProtoMessage()
- func (m *MsgFaucetKey) Reset()
- func (msg MsgFaucetKey) Route() string
- func (m *MsgFaucetKey) Size() (n int)
- func (m *MsgFaucetKey) String() string
- func (msg MsgFaucetKey) Type() string
- func (m *MsgFaucetKey) Unmarshal(dAtA []byte) error
- func (msg MsgFaucetKey) ValidateBasic() error
- func (m *MsgFaucetKey) XXX_DiscardUnknown()
- func (m *MsgFaucetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFaucetKey) XXX_Merge(src proto.Message)
- func (m *MsgFaucetKey) XXX_Size() int
- func (m *MsgFaucetKey) XXX_Unmarshal(b []byte) error
- type MsgFaucetKeyResponse
- func (*MsgFaucetKeyResponse) Descriptor() ([]byte, []int)
- func (m *MsgFaucetKeyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFaucetKeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFaucetKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFaucetKeyResponse) ProtoMessage()
- func (m *MsgFaucetKeyResponse) Reset()
- func (m *MsgFaucetKeyResponse) Size() (n int)
- func (m *MsgFaucetKeyResponse) String() string
- func (m *MsgFaucetKeyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFaucetKeyResponse) XXX_DiscardUnknown()
- func (m *MsgFaucetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFaucetKeyResponse) XXX_Merge(src proto.Message)
- func (m *MsgFaucetKeyResponse) XXX_Size() int
- func (m *MsgFaucetKeyResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (this *MsgMint) Equal(that interface{}) bool
- func (m *MsgMint) GetDenom() string
- func (m *MsgMint) GetMinter() string
- func (m *MsgMint) GetSender() string
- func (msg MsgMint) GetSignBytes() []byte
- func (msg MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) GetTime() int64
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryFaucetKeyRequest
- func (*QueryFaucetKeyRequest) Descriptor() ([]byte, []int)
- func (m *QueryFaucetKeyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFaucetKeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFaucetKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFaucetKeyRequest) ProtoMessage()
- func (m *QueryFaucetKeyRequest) Reset()
- func (m *QueryFaucetKeyRequest) Size() (n int)
- func (m *QueryFaucetKeyRequest) String() string
- func (m *QueryFaucetKeyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFaucetKeyRequest) XXX_DiscardUnknown()
- func (m *QueryFaucetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFaucetKeyRequest) XXX_Merge(src proto.Message)
- func (m *QueryFaucetKeyRequest) XXX_Size() int
- func (m *QueryFaucetKeyRequest) XXX_Unmarshal(b []byte) error
- type QueryFaucetKeyResponse
- func (*QueryFaucetKeyResponse) Descriptor() ([]byte, []int)
- func (m *QueryFaucetKeyResponse) GetFaucetKey() FaucetKey
- func (m *QueryFaucetKeyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFaucetKeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFaucetKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFaucetKeyResponse) ProtoMessage()
- func (m *QueryFaucetKeyResponse) Reset()
- func (m *QueryFaucetKeyResponse) Size() (n int)
- func (m *QueryFaucetKeyResponse) String() string
- func (m *QueryFaucetKeyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFaucetKeyResponse) XXX_DiscardUnknown()
- func (m *QueryFaucetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFaucetKeyResponse) XXX_Merge(src proto.Message)
- func (m *QueryFaucetKeyResponse) XXX_Size() int
- func (m *QueryFaucetKeyResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the name of the module ModuleName = "faucet" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierKey to be used for querierer msgs QuerierKey = ModuleName )
const ( TypeMsgMint = "mint" TypeMsgFaucetKey = "faucet_key" )
msg types
Variables ¶
var ( // ErrWithdrawTooOften withdraw too often ErrWithdrawTooOften = sdkerrors.Register(ModuleName, 100, "Each address can withdraw only once") // ErrFaucetKeyEmpty empty key ErrFaucetKeyEmpty = sdkerrors.Register(ModuleName, 101, "Armor should not be empty") // ErrFaucetKeyExisted key already exists ErrFaucetKeyExisted = sdkerrors.Register(ModuleName, 102, "Faucet key existed") // ErrInvalidCoinAmount invalid coin amount ErrInvalidCoinAmount = sdkerrors.Register(ModuleName, 103, "Invalid coin amount") // ErrKeyNotFound is not on store ErrKeyNotFound = sdkerrors.Register(ModuleName, 104, "Key not found") )
var ( ErrInvalidLengthFaucet = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFaucet = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFaucet = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // FaucetStoreKey is the key used to store the default faucet key FaucetStoreKey = []byte("DefaultFaucetStoreKey") )
var ( // ModuleCdc references the global x/faucet module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding. ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the faucet module interfaces to protobuf Any.
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶
type BankKeeper interface { MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount( ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error GetSupply(ctx sdk.Context) (supply exported.SupplyI) }
BankKeeper is required for mining coin
type FaucetKey ¶
type FaucetKey struct {
Armor string `protobuf:"bytes,1,opt,name=armor,proto3" json:"armor,omitempty"`
}
func (*FaucetKey) Descriptor ¶
func (*FaucetKey) MarshalToSizedBuffer ¶
func (*FaucetKey) ProtoMessage ¶
func (*FaucetKey) ProtoMessage()
func (*FaucetKey) XXX_DiscardUnknown ¶
func (m *FaucetKey) XXX_DiscardUnknown()
func (*FaucetKey) XXX_Marshal ¶
func (*FaucetKey) XXX_Unmarshal ¶
type Mining ¶
type Mining struct { Minter string `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty" yaml:"minter"` LastTime int64 `protobuf:"varint,2,opt,name=last_time,json=lastTime,proto3" json:"last_time" yaml:"last_time"` Total types.Coin `protobuf:"bytes,3,opt,name=total,proto3" json:"total"` }
func NewMining ¶
func NewMining(minter sdk.AccAddress, coin sdk.Coin) Mining
NewMining returns a new Mining
func (*Mining) Descriptor ¶
func (*Mining) GetLastTime ¶
func (*Mining) MarshalToSizedBuffer ¶
func (*Mining) ProtoMessage ¶
func (*Mining) ProtoMessage()
func (*Mining) XXX_DiscardUnknown ¶
func (m *Mining) XXX_DiscardUnknown()
func (*Mining) XXX_Marshal ¶
func (*Mining) XXX_Unmarshal ¶
type MsgClient ¶
type MsgClient interface { // Mint defines a method for minting coins Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) // FaucetKey defines a method for publishing a faucet key FaucetKey(ctx context.Context, in *MsgFaucetKey, opts ...grpc.CallOption) (*MsgFaucetKeyResponse, 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 MsgFaucetKey ¶
type MsgFaucetKey struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"` Armor string `protobuf:"bytes,2,opt,name=armor,proto3" json:"armor" yaml:"armor"` }
func NewMsgFaucetKey ¶
func NewMsgFaucetKey(sender sdk.AccAddress, armor string) *MsgFaucetKey
NewMsgFaucetKey is a constructor function for MsgFaucetKey
func (*MsgFaucetKey) Descriptor ¶
func (*MsgFaucetKey) Descriptor() ([]byte, []int)
func (*MsgFaucetKey) Equal ¶
func (this *MsgFaucetKey) Equal(that interface{}) bool
func (*MsgFaucetKey) GetArmor ¶
func (m *MsgFaucetKey) GetArmor() string
func (*MsgFaucetKey) GetSender ¶
func (m *MsgFaucetKey) GetSender() string
func (MsgFaucetKey) GetSignBytes ¶
func (msg MsgFaucetKey) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgFaucetKey) GetSigners ¶
func (msg MsgFaucetKey) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgFaucetKey) Marshal ¶
func (m *MsgFaucetKey) Marshal() (dAtA []byte, err error)
func (*MsgFaucetKey) MarshalToSizedBuffer ¶
func (m *MsgFaucetKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFaucetKey) ProtoMessage ¶
func (*MsgFaucetKey) ProtoMessage()
func (*MsgFaucetKey) Reset ¶
func (m *MsgFaucetKey) Reset()
func (MsgFaucetKey) Route ¶
func (msg MsgFaucetKey) Route() string
Route should return the name of the module
func (*MsgFaucetKey) Size ¶
func (m *MsgFaucetKey) Size() (n int)
func (*MsgFaucetKey) String ¶
func (m *MsgFaucetKey) String() string
func (*MsgFaucetKey) Unmarshal ¶
func (m *MsgFaucetKey) Unmarshal(dAtA []byte) error
func (MsgFaucetKey) ValidateBasic ¶
func (msg MsgFaucetKey) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgFaucetKey) XXX_DiscardUnknown ¶
func (m *MsgFaucetKey) XXX_DiscardUnknown()
func (*MsgFaucetKey) XXX_Marshal ¶
func (m *MsgFaucetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFaucetKey) XXX_Merge ¶
func (m *MsgFaucetKey) XXX_Merge(src proto.Message)
func (*MsgFaucetKey) XXX_Size ¶
func (m *MsgFaucetKey) XXX_Size() int
func (*MsgFaucetKey) XXX_Unmarshal ¶
func (m *MsgFaucetKey) XXX_Unmarshal(b []byte) error
type MsgFaucetKeyResponse ¶
type MsgFaucetKeyResponse struct { }
func (*MsgFaucetKeyResponse) Descriptor ¶
func (*MsgFaucetKeyResponse) Descriptor() ([]byte, []int)
func (*MsgFaucetKeyResponse) Marshal ¶
func (m *MsgFaucetKeyResponse) Marshal() (dAtA []byte, err error)
func (*MsgFaucetKeyResponse) MarshalTo ¶
func (m *MsgFaucetKeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFaucetKeyResponse) MarshalToSizedBuffer ¶
func (m *MsgFaucetKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFaucetKeyResponse) ProtoMessage ¶
func (*MsgFaucetKeyResponse) ProtoMessage()
func (*MsgFaucetKeyResponse) Reset ¶
func (m *MsgFaucetKeyResponse) Reset()
func (*MsgFaucetKeyResponse) Size ¶
func (m *MsgFaucetKeyResponse) Size() (n int)
func (*MsgFaucetKeyResponse) String ¶
func (m *MsgFaucetKeyResponse) String() string
func (*MsgFaucetKeyResponse) Unmarshal ¶
func (m *MsgFaucetKeyResponse) Unmarshal(dAtA []byte) error
func (*MsgFaucetKeyResponse) XXX_DiscardUnknown ¶
func (m *MsgFaucetKeyResponse) XXX_DiscardUnknown()
func (*MsgFaucetKeyResponse) XXX_Marshal ¶
func (m *MsgFaucetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFaucetKeyResponse) XXX_Merge ¶
func (m *MsgFaucetKeyResponse) XXX_Merge(src proto.Message)
func (*MsgFaucetKeyResponse) XXX_Size ¶
func (m *MsgFaucetKeyResponse) XXX_Size() int
func (*MsgFaucetKeyResponse) XXX_Unmarshal ¶
func (m *MsgFaucetKeyResponse) XXX_Unmarshal(b []byte) error
type MsgMint ¶
type MsgMint struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"` Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter" yaml:"minter"` Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time" yaml:"time"` Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom" yaml:"denom"` }
func NewMsgMint ¶
func NewMsgMint(sender sdk.AccAddress, minter sdk.AccAddress, mTime int64, denom string) *MsgMint
NewMsgMint is a constructor function for NewMsgMint
func (*MsgMint) Descriptor ¶
func (MsgMint) GetSignBytes ¶
GetSignBytes encodes the message for signing
func (MsgMint) GetSigners ¶
func (msg MsgMint) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (MsgMint) ValidateBasic ¶
ValidateBasic runs stateless checks on the message
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Mint defines a method for minting coins Mint(context.Context, *MsgMint) (*MsgMintResponse, error) // FaucetKey defines a method for publishing a faucet key FaucetKey(context.Context, *MsgFaucetKey) (*MsgFaucetKeyResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface {
FaucetKey(ctx context.Context, in *QueryFaucetKeyRequest, opts ...grpc.CallOption) (*QueryFaucetKeyResponse, 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 QueryFaucetKeyRequest ¶
type QueryFaucetKeyRequest struct { }
func (*QueryFaucetKeyRequest) Descriptor ¶
func (*QueryFaucetKeyRequest) Descriptor() ([]byte, []int)
func (*QueryFaucetKeyRequest) Marshal ¶
func (m *QueryFaucetKeyRequest) Marshal() (dAtA []byte, err error)
func (*QueryFaucetKeyRequest) MarshalTo ¶
func (m *QueryFaucetKeyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFaucetKeyRequest) MarshalToSizedBuffer ¶
func (m *QueryFaucetKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFaucetKeyRequest) ProtoMessage ¶
func (*QueryFaucetKeyRequest) ProtoMessage()
func (*QueryFaucetKeyRequest) Reset ¶
func (m *QueryFaucetKeyRequest) Reset()
func (*QueryFaucetKeyRequest) Size ¶
func (m *QueryFaucetKeyRequest) Size() (n int)
func (*QueryFaucetKeyRequest) String ¶
func (m *QueryFaucetKeyRequest) String() string
func (*QueryFaucetKeyRequest) Unmarshal ¶
func (m *QueryFaucetKeyRequest) Unmarshal(dAtA []byte) error
func (*QueryFaucetKeyRequest) XXX_DiscardUnknown ¶
func (m *QueryFaucetKeyRequest) XXX_DiscardUnknown()
func (*QueryFaucetKeyRequest) XXX_Marshal ¶
func (m *QueryFaucetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFaucetKeyRequest) XXX_Merge ¶
func (m *QueryFaucetKeyRequest) XXX_Merge(src proto.Message)
func (*QueryFaucetKeyRequest) XXX_Size ¶
func (m *QueryFaucetKeyRequest) XXX_Size() int
func (*QueryFaucetKeyRequest) XXX_Unmarshal ¶
func (m *QueryFaucetKeyRequest) XXX_Unmarshal(b []byte) error
type QueryFaucetKeyResponse ¶
type QueryFaucetKeyResponse struct {
FaucetKey FaucetKey `protobuf:"bytes,1,opt,name=faucet_key,json=faucetKey,proto3" json:"faucet_key"`
}
func (*QueryFaucetKeyResponse) Descriptor ¶
func (*QueryFaucetKeyResponse) Descriptor() ([]byte, []int)
func (*QueryFaucetKeyResponse) GetFaucetKey ¶
func (m *QueryFaucetKeyResponse) GetFaucetKey() FaucetKey
func (*QueryFaucetKeyResponse) Marshal ¶
func (m *QueryFaucetKeyResponse) Marshal() (dAtA []byte, err error)
func (*QueryFaucetKeyResponse) MarshalTo ¶
func (m *QueryFaucetKeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFaucetKeyResponse) MarshalToSizedBuffer ¶
func (m *QueryFaucetKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFaucetKeyResponse) ProtoMessage ¶
func (*QueryFaucetKeyResponse) ProtoMessage()
func (*QueryFaucetKeyResponse) Reset ¶
func (m *QueryFaucetKeyResponse) Reset()
func (*QueryFaucetKeyResponse) Size ¶
func (m *QueryFaucetKeyResponse) Size() (n int)
func (*QueryFaucetKeyResponse) String ¶
func (m *QueryFaucetKeyResponse) String() string
func (*QueryFaucetKeyResponse) Unmarshal ¶
func (m *QueryFaucetKeyResponse) Unmarshal(dAtA []byte) error
func (*QueryFaucetKeyResponse) XXX_DiscardUnknown ¶
func (m *QueryFaucetKeyResponse) XXX_DiscardUnknown()
func (*QueryFaucetKeyResponse) XXX_Marshal ¶
func (m *QueryFaucetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFaucetKeyResponse) XXX_Merge ¶
func (m *QueryFaucetKeyResponse) XXX_Merge(src proto.Message)
func (*QueryFaucetKeyResponse) XXX_Size ¶
func (m *QueryFaucetKeyResponse) XXX_Size() int
func (*QueryFaucetKeyResponse) XXX_Unmarshal ¶
func (m *QueryFaucetKeyResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
FaucetKey(context.Context, *QueryFaucetKeyRequest) (*QueryFaucetKeyResponse, error)
}
QueryServer is the server API for Query service.
type StakingKeeper ¶
StakingKeeper is required for getting Denom
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) FaucetKey ¶
func (*UnimplementedMsgServer) FaucetKey(ctx context.Context, req *MsgFaucetKey) (*MsgFaucetKeyResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) FaucetKey ¶
func (*UnimplementedQueryServer) FaucetKey(ctx context.Context, req *QueryFaucetKeyRequest) (*QueryFaucetKeyResponse, error)