Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDevAndGrantAccount() (sdk.AccAddress, error)
- func KeyPrefix(p string) []byte
- func MintedBlockKey(height int64) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetMintedBlocks() MintedBlock
- func (m *GenesisState) GetParams() Params
- 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 MintedBlock
- func (*MintedBlock) Descriptor() ([]byte, []int)
- func (m *MintedBlock) GetDenom() string
- func (m *MintedBlock) GetHeight() int64
- func (m *MintedBlock) GetMinted() int64
- func (m *MintedBlock) Marshal() (dAtA []byte, err error)
- func (m *MintedBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *MintedBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintedBlock) ProtoMessage()
- func (m *MintedBlock) Reset()
- func (m *MintedBlock) Size() (n int)
- func (m *MintedBlock) String() string
- func (m *MintedBlock) Unmarshal(dAtA []byte) error
- func (m *MintedBlock) XXX_DiscardUnknown()
- func (m *MintedBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintedBlock) XXX_Merge(src proto.Message)
- func (m *MintedBlock) XXX_Size() int
- func (m *MintedBlock) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDevGrantsRatio() int64
- func (m *Params) GetMintDecrease() int64
- func (m *Params) GetMintDenom() string
- func (m *Params) GetStakerRatio() int64
- func (m *Params) GetStorageProviderRatio() int64
- func (m *Params) GetStorageStipendAddress() string
- func (m *Params) GetTokensPerBlock() int64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryInflation
- func (*QueryInflation) Descriptor() ([]byte, []int)
- func (m *QueryInflation) Marshal() (dAtA []byte, err error)
- func (m *QueryInflation) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInflation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInflation) ProtoMessage()
- func (m *QueryInflation) Reset()
- func (m *QueryInflation) Size() (n int)
- func (m *QueryInflation) String() string
- func (m *QueryInflation) Unmarshal(dAtA []byte) error
- func (m *QueryInflation) XXX_DiscardUnknown()
- func (m *QueryInflation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInflation) XXX_Merge(src proto.Message)
- func (m *QueryInflation) XXX_Size() int
- func (m *QueryInflation) XXX_Unmarshal(b []byte) error
- type QueryInflationResponse
- func (*QueryInflationResponse) Descriptor() ([]byte, []int)
- func (m *QueryInflationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInflationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInflationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInflationResponse) ProtoMessage()
- func (m *QueryInflationResponse) Reset()
- func (m *QueryInflationResponse) Size() (n int)
- func (m *QueryInflationResponse) String() string
- func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInflationResponse) XXX_DiscardUnknown()
- func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInflationResponse) XXX_Merge(src proto.Message)
- func (m *QueryInflationResponse) XXX_Size() int
- func (m *QueryInflationResponse) XXX_Unmarshal(b []byte) error
- type QueryParams
- func (*QueryParams) Descriptor() ([]byte, []int)
- func (m *QueryParams) Marshal() (dAtA []byte, err error)
- func (m *QueryParams) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParams) ProtoMessage()
- func (m *QueryParams) Reset()
- func (m *QueryParams) Size() (n int)
- func (m *QueryParams) String() string
- func (m *QueryParams) Unmarshal(dAtA []byte) error
- func (m *QueryParams) XXX_DiscardUnknown()
- func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParams) XXX_Merge(src proto.Message)
- func (m *QueryParams) XXX_Size() int
- func (m *QueryParams) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeMint = ModuleName AttributeKeyBondedRatio = "bonded_ratio" AttributeKeyInflation = "inflation" AttributeKeyAnnualProvisions = "annual_provisions" )
Minting module event types
const ( // ModuleName defines the module name ModuleName = "jklmint" // 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_jklmint" // Query endpoints supported by the minting querier QueryParameters = "parameters" QueryInflationKey = "inflation" LastBlockMinted = "last_block_minted" DevGrantsPool = "dev_grant_pool" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
DevelopmentAndGrants = "dev_and_grants"
)
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
var ( ErrCannotParseFloat = sdkerrors.Register(ModuleName, 1101, "cannot parse float") ErrZeroDivision = sdkerrors.Register(ModuleName, 1102, "cannot use zero value for division") )
x/jklmint module sentinel errors
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 ( ErrInvalidLengthMintedBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMintedBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMintedBlock = fmt.Errorf("proto: unexpected end of group") )
var ( KeyMintDenom = []byte("MintDenom") KeyTokensPerBlock = []byte("TokensPerBlock") KeyDevGrants = []byte("DevGrants") KeyStakerRatio = []byte("StakerRatio") KeyMintIncrease = []byte("MintIncrease") KeyStorageStipend = []byte("StorageStipend") KeyProviderRatio = []byte("ProviderRatio") // TODO: Determine the default value DefaultMintDenom = "ujkl" DefaultTokensPerBlock = int64(4_200_000) DefaultDevGrants = int64(8) DefaultStakerRatio = int64(80) DefaultMintDecrease = int64(6) DefaultStorageStipend = "jkl18dtaqkj3cdazn4rpgqdc3acz98cp5yz30erp95" DefaultProviderRatio = int64(12) )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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 MinterKey = []byte{0x00}
Functions ¶
func GetDevAndGrantAccount ¶
func GetDevAndGrantAccount() (sdk.AccAddress, error)
func MintedBlockKey ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetModuleAddress(moduleName string) sdk.AccAddress }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule( ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins, ) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error GetSupply(ctx sdk.Context, denom string) sdk.Coin }
BankKeeper defines the expected interface needed to retrieve account balances.
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` MintedBlocks MintedBlock `protobuf:"bytes,2,opt,name=minted_blocks,json=mintedBlocks,proto3" json:"minted_blocks"` }
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetMintedBlocks ¶
func (m *GenesisState) GetMintedBlocks() MintedBlock
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MintedBlock ¶
type MintedBlock struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Minted int64 `protobuf:"varint,2,opt,name=minted,proto3" json:"minted,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` }
func (*MintedBlock) Descriptor ¶
func (*MintedBlock) Descriptor() ([]byte, []int)
func (*MintedBlock) GetDenom ¶
func (m *MintedBlock) GetDenom() string
func (*MintedBlock) GetHeight ¶
func (m *MintedBlock) GetHeight() int64
func (*MintedBlock) GetMinted ¶
func (m *MintedBlock) GetMinted() int64
func (*MintedBlock) Marshal ¶
func (m *MintedBlock) Marshal() (dAtA []byte, err error)
func (*MintedBlock) MarshalToSizedBuffer ¶
func (m *MintedBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintedBlock) ProtoMessage ¶
func (*MintedBlock) ProtoMessage()
func (*MintedBlock) Reset ¶
func (m *MintedBlock) Reset()
func (*MintedBlock) Size ¶
func (m *MintedBlock) Size() (n int)
func (*MintedBlock) String ¶
func (m *MintedBlock) String() string
func (*MintedBlock) Unmarshal ¶
func (m *MintedBlock) Unmarshal(dAtA []byte) error
func (*MintedBlock) XXX_DiscardUnknown ¶
func (m *MintedBlock) XXX_DiscardUnknown()
func (*MintedBlock) XXX_Marshal ¶
func (m *MintedBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintedBlock) XXX_Merge ¶
func (m *MintedBlock) XXX_Merge(src proto.Message)
func (*MintedBlock) XXX_Size ¶
func (m *MintedBlock) XXX_Size() int
func (*MintedBlock) XXX_Unmarshal ¶
func (m *MintedBlock) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
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 Params ¶
type Params struct { MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty" yaml:"mint_denom"` DevGrantsRatio int64 `` /* 130-byte string literal not displayed */ StakerRatio int64 `protobuf:"varint,3,opt,name=staker_ratio,json=stakerRatio,proto3" json:"staker_ratio,omitempty" yaml:"staker_ratio"` TokensPerBlock int64 `` /* 130-byte string literal not displayed */ MintDecrease int64 `protobuf:"varint,5,opt,name=mint_decrease,json=mintDecrease,proto3" json:"mint_decrease,omitempty" yaml:"mint_decrease"` StorageStipendAddress string `` /* 157-byte string literal not displayed */ StorageProviderRatio int64 `` /* 154-byte string literal not displayed */ }
func NewParams ¶
func NewParams( mintDenom string, devGrants int64, tokensPerBlock int64, stakerRatio int64, mintDecrease int64, storageStipendAddress string, storageProviderRatio int64, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetDevGrantsRatio ¶
func (*Params) GetMintDecrease ¶
func (*Params) GetMintDenom ¶
func (*Params) GetStakerRatio ¶
func (*Params) GetStorageProviderRatio ¶
func (*Params) GetStorageStipendAddress ¶
func (*Params) GetTokensPerBlock ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Inflation returns the current minting inflation value. Inflation(ctx context.Context, in *QueryInflation, opts ...grpc.CallOption) (*QueryInflationResponse, 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 QueryInflation ¶
type QueryInflation struct { }
func (*QueryInflation) Descriptor ¶
func (*QueryInflation) Descriptor() ([]byte, []int)
func (*QueryInflation) Marshal ¶
func (m *QueryInflation) Marshal() (dAtA []byte, err error)
func (*QueryInflation) MarshalToSizedBuffer ¶
func (m *QueryInflation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInflation) ProtoMessage ¶
func (*QueryInflation) ProtoMessage()
func (*QueryInflation) Reset ¶
func (m *QueryInflation) Reset()
func (*QueryInflation) Size ¶
func (m *QueryInflation) Size() (n int)
func (*QueryInflation) String ¶
func (m *QueryInflation) String() string
func (*QueryInflation) Unmarshal ¶
func (m *QueryInflation) Unmarshal(dAtA []byte) error
func (*QueryInflation) XXX_DiscardUnknown ¶
func (m *QueryInflation) XXX_DiscardUnknown()
func (*QueryInflation) XXX_Marshal ¶
func (m *QueryInflation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInflation) XXX_Merge ¶
func (m *QueryInflation) XXX_Merge(src proto.Message)
func (*QueryInflation) XXX_Size ¶
func (m *QueryInflation) XXX_Size() int
func (*QueryInflation) XXX_Unmarshal ¶
func (m *QueryInflation) XXX_Unmarshal(b []byte) error
type QueryInflationResponse ¶
type QueryInflationResponse struct {
Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"`
}
func (*QueryInflationResponse) Descriptor ¶
func (*QueryInflationResponse) Descriptor() ([]byte, []int)
func (*QueryInflationResponse) Marshal ¶
func (m *QueryInflationResponse) Marshal() (dAtA []byte, err error)
func (*QueryInflationResponse) MarshalTo ¶
func (m *QueryInflationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInflationResponse) MarshalToSizedBuffer ¶
func (m *QueryInflationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInflationResponse) ProtoMessage ¶
func (*QueryInflationResponse) ProtoMessage()
func (*QueryInflationResponse) Reset ¶
func (m *QueryInflationResponse) Reset()
func (*QueryInflationResponse) Size ¶
func (m *QueryInflationResponse) Size() (n int)
func (*QueryInflationResponse) String ¶
func (m *QueryInflationResponse) String() string
func (*QueryInflationResponse) Unmarshal ¶
func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error
func (*QueryInflationResponse) XXX_DiscardUnknown ¶
func (m *QueryInflationResponse) XXX_DiscardUnknown()
func (*QueryInflationResponse) XXX_Marshal ¶
func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInflationResponse) XXX_Merge ¶
func (m *QueryInflationResponse) XXX_Merge(src proto.Message)
func (*QueryInflationResponse) XXX_Size ¶
func (m *QueryInflationResponse) XXX_Size() int
func (*QueryInflationResponse) XXX_Unmarshal ¶
func (m *QueryInflationResponse) XXX_Unmarshal(b []byte) error
type QueryParams ¶
type QueryParams struct { }
func (*QueryParams) Descriptor ¶
func (*QueryParams) Descriptor() ([]byte, []int)
func (*QueryParams) Marshal ¶
func (m *QueryParams) Marshal() (dAtA []byte, err error)
func (*QueryParams) MarshalToSizedBuffer ¶
func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParams) ProtoMessage ¶
func (*QueryParams) ProtoMessage()
func (*QueryParams) Reset ¶
func (m *QueryParams) Reset()
func (*QueryParams) Size ¶
func (m *QueryParams) Size() (n int)
func (*QueryParams) String ¶
func (m *QueryParams) String() string
func (*QueryParams) Unmarshal ¶
func (m *QueryParams) Unmarshal(dAtA []byte) error
func (*QueryParams) XXX_DiscardUnknown ¶
func (m *QueryParams) XXX_DiscardUnknown()
func (*QueryParams) XXX_Marshal ¶
func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParams) XXX_Merge ¶
func (m *QueryParams) XXX_Merge(src proto.Message)
func (*QueryParams) XXX_Size ¶
func (m *QueryParams) XXX_Size() int
func (*QueryParams) XXX_Unmarshal ¶
func (m *QueryParams) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { Params(context.Context, *QueryParams) (*QueryParamsResponse, error) // Inflation returns the current minting inflation value. Inflation(context.Context, *QueryInflation) (*QueryInflationResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Inflation ¶
func (*UnimplementedQueryServer) Inflation(ctx context.Context, req *QueryInflation) (*QueryInflationResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)