types

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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
)
View Source
const (
	TypeMsgMint      = "mint"
	TypeMsgFaucetKey = "faucet_key"
)

msg types

Variables

View Source
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")
)
View Source
var (
	ErrInvalidLengthFaucet        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFaucet          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFaucet = 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 (

	// FaucetStoreKey is the key used to store the default faucet key
	FaucetStoreKey = []byte("DefaultFaucetStoreKey")
)
View Source
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 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 (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
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule 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 DenomConfig added in v0.6.0

type DenomConfig struct {
	Amount         int64
	BurnBeforeMint bool
}

DenomConfig holds configuration for each individual denom minting

type FaucetKey

type FaucetKey struct {
	Armor string `protobuf:"bytes,1,opt,name=armor,proto3" json:"armor,omitempty"`
}

func NewFaucetKey

func NewFaucetKey(armor string) FaucetKey

NewFaucetKey create a instance

func (*FaucetKey) Descriptor

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

func (*FaucetKey) GetArmor

func (m *FaucetKey) GetArmor() string

func (*FaucetKey) Marshal

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

func (*FaucetKey) MarshalTo

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

func (*FaucetKey) MarshalToSizedBuffer

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

func (*FaucetKey) ProtoMessage

func (*FaucetKey) ProtoMessage()

func (*FaucetKey) Reset

func (m *FaucetKey) Reset()

func (*FaucetKey) Size

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

func (*FaucetKey) String

func (m *FaucetKey) String() string

func (*FaucetKey) Unmarshal

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

func (*FaucetKey) XXX_DiscardUnknown

func (m *FaucetKey) XXX_DiscardUnknown()

func (*FaucetKey) XXX_Marshal

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

func (*FaucetKey) XXX_Merge

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

func (*FaucetKey) XXX_Size

func (m *FaucetKey) XXX_Size() int

func (*FaucetKey) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Mining) GetLastTime

func (m *Mining) GetLastTime() int64

func (*Mining) GetMinter

func (m *Mining) GetMinter() string

func (*Mining) GetTotal

func (m *Mining) GetTotal() types.Coin

func (*Mining) Marshal

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

func (*Mining) MarshalTo

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

func (*Mining) MarshalToSizedBuffer

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

func (*Mining) ProtoMessage

func (*Mining) ProtoMessage()

func (*Mining) Reset

func (m *Mining) Reset()

func (*Mining) Size

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

func (*Mining) String

func (m *Mining) String() string

func (*Mining) Unmarshal

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

func (*Mining) XXX_DiscardUnknown

func (m *Mining) XXX_DiscardUnknown()

func (*Mining) XXX_Marshal

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

func (*Mining) XXX_Merge

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

func (*Mining) XXX_Size

func (m *Mining) XXX_Size() int

func (*Mining) XXX_Unmarshal

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

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) MarshalTo

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

func (msg MsgFaucetKey) Type() string

Type should return the action

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) Descriptor() ([]byte, []int)

func (*MsgMint) Equal

func (this *MsgMint) Equal(that interface{}) bool

func (*MsgMint) GetDenom

func (m *MsgMint) GetDenom() string

func (*MsgMint) GetMinter

func (m *MsgMint) GetMinter() string

func (*MsgMint) GetSender

func (m *MsgMint) GetSender() string

func (MsgMint) GetSignBytes

func (msg MsgMint) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgMint) GetSigners

func (msg MsgMint) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgMint) GetTime

func (m *MsgMint) GetTime() int64

func (*MsgMint) Marshal

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

func (*MsgMint) MarshalTo

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

func (*MsgMint) MarshalToSizedBuffer

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

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (MsgMint) Route

func (msg MsgMint) Route() string

Route should return the name of the module

func (*MsgMint) Size

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

func (*MsgMint) String

func (m *MsgMint) String() string

func (MsgMint) Type

func (msg MsgMint) Type() string

Type should return the action

func (*MsgMint) Unmarshal

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

func (MsgMint) ValidateBasic

func (msg MsgMint) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

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

func (*MsgMint) XXX_Merge

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

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

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

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) MarshalTo

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

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
}

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) Mint

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FaucetKey

Jump to

Keyboard shortcuts

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