Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(_ codectypes.InterfaceRegistry)
- 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 DistrKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableCoinomics() bool
- func (m *Params) GetMintDenom() string
- 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 (m *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 QueryMaxSupplyRequest
- func (*QueryMaxSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryMaxSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxSupplyRequest) ProtoMessage()
- func (m *QueryMaxSupplyRequest) Reset()
- func (m *QueryMaxSupplyRequest) Size() (n int)
- func (m *QueryMaxSupplyRequest) String() string
- func (m *QueryMaxSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMaxSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryMaxSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryMaxSupplyRequest) XXX_Size() int
- func (m *QueryMaxSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryMaxSupplyResponse
- func (*QueryMaxSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryMaxSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxSupplyResponse) ProtoMessage()
- func (m *QueryMaxSupplyResponse) Reset()
- func (m *QueryMaxSupplyResponse) Size() (n int)
- func (m *QueryMaxSupplyResponse) String() string
- func (m *QueryMaxSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMaxSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryMaxSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryMaxSupplyResponse) XXX_Size() int
- func (m *QueryMaxSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) 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 QueryRewardCoefficientRequest
- func (*QueryRewardCoefficientRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardCoefficientRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardCoefficientRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardCoefficientRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardCoefficientRequest) ProtoMessage()
- func (m *QueryRewardCoefficientRequest) Reset()
- func (m *QueryRewardCoefficientRequest) Size() (n int)
- func (m *QueryRewardCoefficientRequest) String() string
- func (m *QueryRewardCoefficientRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardCoefficientRequest) XXX_DiscardUnknown()
- func (m *QueryRewardCoefficientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardCoefficientRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardCoefficientRequest) XXX_Size() int
- func (m *QueryRewardCoefficientRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardCoefficientResponse
- func (*QueryRewardCoefficientResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardCoefficientResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardCoefficientResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardCoefficientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardCoefficientResponse) ProtoMessage()
- func (m *QueryRewardCoefficientResponse) Reset()
- func (m *QueryRewardCoefficientResponse) Size() (n int)
- func (m *QueryRewardCoefficientResponse) String() string
- func (m *QueryRewardCoefficientResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardCoefficientResponse) XXX_DiscardUnknown()
- func (m *QueryRewardCoefficientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardCoefficientResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardCoefficientResponse) XXX_Size() int
- func (m *QueryRewardCoefficientResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) MaxSupply(ctx context.Context, req *QueryMaxSupplyRequest) (*QueryMaxSupplyResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) RewardCoefficient(ctx context.Context, req *QueryRewardCoefficientRequest) (*QueryRewardCoefficientResponse, error)
Constants ¶
const ( EventTypeMint = ModuleName AttributeEraNumber = "era_number" )
Module event types
const ( // module name ModuleName = "coinomics" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for message routing RouterKey = ModuleName )
constants
Variables ¶
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 ( KeyPrefixPrevBlockTS = []byte{prefixPrevBlockTS} KeyPrefixMaxSupply = []byte{prefixMaxSupply} )
KVStore key prefixes
var ( ParamStoreKeyMintDenom = []byte("ParamStoreKeyMintDenom") ParamStoreKeyEnableCoinomics = []byte("ParamStoreKeyEnableCoinomics") ParamStoreKeyRewardCoefficient = []byte("ParamStoreKeyRewardCoefficient") )
Parameter store keys
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 DefaultMintDenom = "aISLM"
var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
ModuleCdc references the global incentives module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.
The actual codec used for serialization should be provided to modules/incentives and defined at the application level.
var ParamsKey = []byte{0x00}
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
func RegisterInterfaces ¶
func RegisterInterfaces(_ codectypes.InterfaceRegistry)
RegisterInterfaces register implementations
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 { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI GetAccount(sdk.Context, sdk.AccAddress) types.AccountI SetAccount(sdk.Context, types.AccountI) }
AccountKeeper defines the contract required for account APIs.
type BankKeeper ¶
type BankKeeper interface { GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error HasSupply(ctx sdk.Context, denom string) bool GetSupply(ctx sdk.Context, denom string) sdk.Coin }
BankKeeper defines the contract needed to be fulfilled for banking and supply dependencies.
type DistrKeeper ¶
type DistrKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistrKeeper defines the contract needed to be fulfilled for distribution keeper
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // prev block block ts PrevBlockTs cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=prev_block_ts,json=prevBlockTs,proto3,customtype=cosmossdk.io/math.Int" json:"prev_block_ts"` // max supply MaxSupply github_com_cosmos_cosmos_sdk_types.Coin `` /* 147-byte string literal not displayed */ }
GenesisState defines the inflation module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState( params Params, maxSupply sdk.Coin, ) GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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) 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 Params ¶
type Params struct { // type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // parameter to enable coinmoics EnableCoinomics bool `protobuf:"varint,2,opt,name=enable_coinomics,json=enableCoinomics,proto3" json:"enable_coinomics,omitempty"` // current staking reward coefficient RewardCoefficient github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */ }
Params holds parameters for the coinomics module.
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) GetEnableCoinomics ¶
func (*Params) GetMintDenom ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements 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 { // MaxSupply retrieves total coins of all eras and when mint ended. MaxSupply(ctx context.Context, in *QueryMaxSupplyRequest, opts ...grpc.CallOption) (*QueryMaxSupplyResponse, error) // InflationRewardCoefficientRate APY rate for staking rewards RewardCoefficient(ctx context.Context, in *QueryRewardCoefficientRequest, opts ...grpc.CallOption) (*QueryRewardCoefficientResponse, error) // Params retrieves coinomics moudle params. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryMaxSupplyRequest ¶
type QueryMaxSupplyRequest struct { }
func (*QueryMaxSupplyRequest) Descriptor ¶
func (*QueryMaxSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryMaxSupplyRequest) Marshal ¶
func (m *QueryMaxSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryMaxSupplyRequest) MarshalTo ¶
func (m *QueryMaxSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxSupplyRequest) MarshalToSizedBuffer ¶
func (m *QueryMaxSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxSupplyRequest) ProtoMessage ¶
func (*QueryMaxSupplyRequest) ProtoMessage()
func (*QueryMaxSupplyRequest) Reset ¶
func (m *QueryMaxSupplyRequest) Reset()
func (*QueryMaxSupplyRequest) Size ¶
func (m *QueryMaxSupplyRequest) Size() (n int)
func (*QueryMaxSupplyRequest) String ¶
func (m *QueryMaxSupplyRequest) String() string
func (*QueryMaxSupplyRequest) Unmarshal ¶
func (m *QueryMaxSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryMaxSupplyRequest) XXX_DiscardUnknown ¶
func (m *QueryMaxSupplyRequest) XXX_DiscardUnknown()
func (*QueryMaxSupplyRequest) XXX_Marshal ¶
func (m *QueryMaxSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxSupplyRequest) XXX_Merge ¶
func (m *QueryMaxSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryMaxSupplyRequest) XXX_Size ¶
func (m *QueryMaxSupplyRequest) XXX_Size() int
func (*QueryMaxSupplyRequest) XXX_Unmarshal ¶
func (m *QueryMaxSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryMaxSupplyResponse ¶
type QueryMaxSupplyResponse struct {
MaxSupply github_com_cosmos_cosmos_sdk_types.Coin `` /* 129-byte string literal not displayed */
}
func (*QueryMaxSupplyResponse) Descriptor ¶
func (*QueryMaxSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryMaxSupplyResponse) Marshal ¶
func (m *QueryMaxSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryMaxSupplyResponse) MarshalTo ¶
func (m *QueryMaxSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxSupplyResponse) MarshalToSizedBuffer ¶
func (m *QueryMaxSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxSupplyResponse) ProtoMessage ¶
func (*QueryMaxSupplyResponse) ProtoMessage()
func (*QueryMaxSupplyResponse) Reset ¶
func (m *QueryMaxSupplyResponse) Reset()
func (*QueryMaxSupplyResponse) Size ¶
func (m *QueryMaxSupplyResponse) Size() (n int)
func (*QueryMaxSupplyResponse) String ¶
func (m *QueryMaxSupplyResponse) String() string
func (*QueryMaxSupplyResponse) Unmarshal ¶
func (m *QueryMaxSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryMaxSupplyResponse) XXX_DiscardUnknown ¶
func (m *QueryMaxSupplyResponse) XXX_DiscardUnknown()
func (*QueryMaxSupplyResponse) XXX_Marshal ¶
func (m *QueryMaxSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxSupplyResponse) XXX_Merge ¶
func (m *QueryMaxSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryMaxSupplyResponse) XXX_Size ¶
func (m *QueryMaxSupplyResponse) XXX_Size() int
func (*QueryMaxSupplyResponse) XXX_Unmarshal ¶
func (m *QueryMaxSupplyResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. 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 QueryRewardCoefficientRequest ¶ added in v1.6.4
type QueryRewardCoefficientRequest struct { }
func (*QueryRewardCoefficientRequest) Descriptor ¶ added in v1.6.4
func (*QueryRewardCoefficientRequest) Descriptor() ([]byte, []int)
func (*QueryRewardCoefficientRequest) Marshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardCoefficientRequest) MarshalTo ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardCoefficientRequest) MarshalToSizedBuffer ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardCoefficientRequest) ProtoMessage ¶ added in v1.6.4
func (*QueryRewardCoefficientRequest) ProtoMessage()
func (*QueryRewardCoefficientRequest) Reset ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) Reset()
func (*QueryRewardCoefficientRequest) Size ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) Size() (n int)
func (*QueryRewardCoefficientRequest) String ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) String() string
func (*QueryRewardCoefficientRequest) Unmarshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardCoefficientRequest) XXX_DiscardUnknown ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) XXX_DiscardUnknown()
func (*QueryRewardCoefficientRequest) XXX_Marshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardCoefficientRequest) XXX_Merge ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) XXX_Merge(src proto.Message)
func (*QueryRewardCoefficientRequest) XXX_Size ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) XXX_Size() int
func (*QueryRewardCoefficientRequest) XXX_Unmarshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientRequest) XXX_Unmarshal(b []byte) error
type QueryRewardCoefficientResponse ¶ added in v1.6.4
type QueryRewardCoefficientResponse struct { // rate by which the total supply increases within one era RewardCoefficient github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */ }
func (*QueryRewardCoefficientResponse) Descriptor ¶ added in v1.6.4
func (*QueryRewardCoefficientResponse) Descriptor() ([]byte, []int)
func (*QueryRewardCoefficientResponse) Marshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardCoefficientResponse) MarshalTo ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardCoefficientResponse) MarshalToSizedBuffer ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardCoefficientResponse) ProtoMessage ¶ added in v1.6.4
func (*QueryRewardCoefficientResponse) ProtoMessage()
func (*QueryRewardCoefficientResponse) Reset ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) Reset()
func (*QueryRewardCoefficientResponse) Size ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) Size() (n int)
func (*QueryRewardCoefficientResponse) String ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) String() string
func (*QueryRewardCoefficientResponse) Unmarshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardCoefficientResponse) XXX_DiscardUnknown ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) XXX_DiscardUnknown()
func (*QueryRewardCoefficientResponse) XXX_Marshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardCoefficientResponse) XXX_Merge ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) XXX_Merge(src proto.Message)
func (*QueryRewardCoefficientResponse) XXX_Size ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) XXX_Size() int
func (*QueryRewardCoefficientResponse) XXX_Unmarshal ¶ added in v1.6.4
func (m *QueryRewardCoefficientResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // MaxSupply retrieves total coins of all eras and when mint ended. MaxSupply(context.Context, *QueryMaxSupplyRequest) (*QueryMaxSupplyResponse, error) // InflationRewardCoefficientRate APY rate for staking rewards RewardCoefficient(context.Context, *QueryRewardCoefficientRequest) (*QueryRewardCoefficientResponse, error) // Params retrieves coinomics moudle params. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { // BondedRatio the fraction of the staking tokens which are currently bonded BondedRatio(ctx sdk.Context) sdk.Dec StakingTokenSupply(ctx sdk.Context) sdkmath.Int TotalBondedTokens(ctx sdk.Context) sdkmath.Int }
StakingKeeper expected staking keeper
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) MaxSupply ¶
func (*UnimplementedQueryServer) MaxSupply(ctx context.Context, req *QueryMaxSupplyRequest) (*QueryMaxSupplyResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) RewardCoefficient ¶ added in v1.6.4
func (*UnimplementedQueryServer) RewardCoefficient(ctx context.Context, req *QueryRewardCoefficientRequest) (*QueryRewardCoefficientResponse, error)