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) GetEra() uint64
- func (m *GenesisState) GetEraStartedAtBlock() uint64
- 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 MintDistribution
- func (*MintDistribution) Descriptor() ([]byte, []int)
- func (m *MintDistribution) Marshal() (dAtA []byte, err error)
- func (m *MintDistribution) MarshalTo(dAtA []byte) (int, error)
- func (m *MintDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintDistribution) ProtoMessage()
- func (m *MintDistribution) Reset()
- func (m *MintDistribution) Size() (n int)
- func (m *MintDistribution) String() string
- func (m *MintDistribution) Unmarshal(dAtA []byte) error
- func (m *MintDistribution) XXX_DiscardUnknown()
- func (m *MintDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintDistribution) XXX_Merge(src proto.Message)
- func (m *MintDistribution) XXX_Size() int
- func (m *MintDistribution) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBlocksPerEra() uint64
- 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 QueryEraClosingSupplyRequest
- func (*QueryEraClosingSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryEraClosingSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEraClosingSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEraClosingSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEraClosingSupplyRequest) ProtoMessage()
- func (m *QueryEraClosingSupplyRequest) Reset()
- func (m *QueryEraClosingSupplyRequest) Size() (n int)
- func (m *QueryEraClosingSupplyRequest) String() string
- func (m *QueryEraClosingSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEraClosingSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryEraClosingSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEraClosingSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryEraClosingSupplyRequest) XXX_Size() int
- func (m *QueryEraClosingSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryEraClosingSupplyResponse
- func (*QueryEraClosingSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryEraClosingSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEraClosingSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEraClosingSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEraClosingSupplyResponse) ProtoMessage()
- func (m *QueryEraClosingSupplyResponse) Reset()
- func (m *QueryEraClosingSupplyResponse) Size() (n int)
- func (m *QueryEraClosingSupplyResponse) String() string
- func (m *QueryEraClosingSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEraClosingSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryEraClosingSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEraClosingSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryEraClosingSupplyResponse) XXX_Size() int
- func (m *QueryEraClosingSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryEraRequest
- func (*QueryEraRequest) Descriptor() ([]byte, []int)
- func (m *QueryEraRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEraRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEraRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEraRequest) ProtoMessage()
- func (m *QueryEraRequest) Reset()
- func (m *QueryEraRequest) Size() (n int)
- func (m *QueryEraRequest) String() string
- func (m *QueryEraRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEraRequest) XXX_DiscardUnknown()
- func (m *QueryEraRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEraRequest) XXX_Merge(src proto.Message)
- func (m *QueryEraRequest) XXX_Size() int
- func (m *QueryEraRequest) XXX_Unmarshal(b []byte) error
- type QueryEraResponse
- func (*QueryEraResponse) Descriptor() ([]byte, []int)
- func (m *QueryEraResponse) GetEra() uint64
- func (m *QueryEraResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEraResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEraResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEraResponse) ProtoMessage()
- func (m *QueryEraResponse) Reset()
- func (m *QueryEraResponse) Size() (n int)
- func (m *QueryEraResponse) String() string
- func (m *QueryEraResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEraResponse) XXX_DiscardUnknown()
- func (m *QueryEraResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEraResponse) XXX_Merge(src proto.Message)
- func (m *QueryEraResponse) XXX_Size() int
- func (m *QueryEraResponse) XXX_Unmarshal(b []byte) error
- type QueryInflationRateRequest
- func (*QueryInflationRateRequest) Descriptor() ([]byte, []int)
- func (m *QueryInflationRateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInflationRateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInflationRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInflationRateRequest) ProtoMessage()
- func (m *QueryInflationRateRequest) Reset()
- func (m *QueryInflationRateRequest) Size() (n int)
- func (m *QueryInflationRateRequest) String() string
- func (m *QueryInflationRateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInflationRateRequest) XXX_DiscardUnknown()
- func (m *QueryInflationRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInflationRateRequest) XXX_Merge(src proto.Message)
- func (m *QueryInflationRateRequest) XXX_Size() int
- func (m *QueryInflationRateRequest) XXX_Unmarshal(b []byte) error
- type QueryInflationRateResponse
- func (*QueryInflationRateResponse) Descriptor() ([]byte, []int)
- func (m *QueryInflationRateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInflationRateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInflationRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInflationRateResponse) ProtoMessage()
- func (m *QueryInflationRateResponse) Reset()
- func (m *QueryInflationRateResponse) Size() (n int)
- func (m *QueryInflationRateResponse) String() string
- func (m *QueryInflationRateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInflationRateResponse) XXX_DiscardUnknown()
- func (m *QueryInflationRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInflationRateResponse) XXX_Merge(src proto.Message)
- func (m *QueryInflationRateResponse) XXX_Size() int
- func (m *QueryInflationRateResponse) XXX_Unmarshal(b []byte) error
- 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 QueryServer
- type StakingKeeper
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Era(ctx context.Context, req *QueryEraRequest) (*QueryEraResponse, error)
- func (*UnimplementedQueryServer) EraClosingSupply(ctx context.Context, req *QueryEraClosingSupplyRequest) (*QueryEraClosingSupplyResponse, error)
- func (*UnimplementedQueryServer) InflationRate(ctx context.Context, req *QueryInflationRateRequest) (*QueryInflationRateResponse, error)
- func (*UnimplementedQueryServer) MaxSupply(ctx context.Context, req *QueryMaxSupplyRequest) (*QueryMaxSupplyResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, 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 ( ErrInvalidLengthCoinomics = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCoinomics = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCoinomics = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyPrefixInflation = []byte{prefixInflation} KeyPrefixEra = []byte{prefixEra} KeyPrefixEraStartedAtBlock = []byte{prefixEraStartedAtBlock} KetPrefixEraTargetMint = []byte{prefixEraTargetMint} KeyPrefixEraClosingSupply = []byte{prefixEraClosingSupply} KeyPrefixMaxSupply = []byte{prefixMaxSupply} )
KVStore key prefixes
var ( ParamStoreKeyMintDenom = []byte("ParamStoreKeyMintDenom") ParamStoreKeyBlockPerEra = []byte("ParamStoreKeyBlockPerEra") ParamStoreKeyEnableCoinomics = []byte("ParamStoreKeyEnableCoinomics") )
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"` // current inflation rate Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` // current era number Era uint64 `protobuf:"varint,3,opt,name=era,proto3" json:"era,omitempty"` // era started block number EraStartedAtBlock uint64 `protobuf:"varint,4,opt,name=era_started_at_block,json=eraStartedAtBlock,proto3" json:"era_started_at_block,omitempty"` // target mint for current era EraTargetMint github_com_cosmos_cosmos_sdk_types.Coin `` /* 166-byte string literal not displayed */ // closing supply for current era EraClosingSupply github_com_cosmos_cosmos_sdk_types.Coin `` /* 178-byte string literal not displayed */ // 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 (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetEra ¶
func (m *GenesisState) GetEra() uint64
func (*GenesisState) GetEraStartedAtBlock ¶
func (m *GenesisState) GetEraStartedAtBlock() uint64
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 MintDistribution ¶
type MintDistribution struct { EvergreenDao github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */ BlockProposerMin github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */ BlockProposerMax github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */ }
coinomics mint distribution's of the minted denom https://islamiccoin.net/wp - 10%(evergreen_dao) goes to Evergreen DAO. - 1%(block_proposer_min) to 5%(block_proposer_max) goes to a block proposer and its delegators. - (staking_rewards) The remainder is distributed proportionally to all bonded validators and their delegators.
func (*MintDistribution) Descriptor ¶
func (*MintDistribution) Descriptor() ([]byte, []int)
func (*MintDistribution) Marshal ¶
func (m *MintDistribution) Marshal() (dAtA []byte, err error)
func (*MintDistribution) MarshalToSizedBuffer ¶
func (m *MintDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintDistribution) ProtoMessage ¶
func (*MintDistribution) ProtoMessage()
func (*MintDistribution) Reset ¶
func (m *MintDistribution) Reset()
func (*MintDistribution) Size ¶
func (m *MintDistribution) Size() (n int)
func (*MintDistribution) String ¶
func (m *MintDistribution) String() string
func (*MintDistribution) Unmarshal ¶
func (m *MintDistribution) Unmarshal(dAtA []byte) error
func (*MintDistribution) XXX_DiscardUnknown ¶
func (m *MintDistribution) XXX_DiscardUnknown()
func (*MintDistribution) XXX_Marshal ¶
func (m *MintDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintDistribution) XXX_Merge ¶
func (m *MintDistribution) XXX_Merge(src proto.Message)
func (*MintDistribution) XXX_Size ¶
func (m *MintDistribution) XXX_Size() int
func (*MintDistribution) XXX_Unmarshal ¶
func (m *MintDistribution) 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"` // number of blocks per era BlocksPerEra uint64 `protobuf:"varint,2,opt,name=blocks_per_era,json=blocksPerEra,proto3" json:"blocks_per_era,omitempty"` // parameter to enable coinmoics EnableCoinomics bool `protobuf:"varint,3,opt,name=enable_coinomics,json=enableCoinomics,proto3" json:"enable_coinomics,omitempty"` }
Params holds parameters for the coinomics module.
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) GetBlocksPerEra ¶
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 { // Era retrieves current era. Era(ctx context.Context, in *QueryEraRequest, opts ...grpc.CallOption) (*QueryEraResponse, error) // EraTargetSupply retrieves current era target supply. EraClosingSupply(ctx context.Context, in *QueryEraClosingSupplyRequest, opts ...grpc.CallOption) (*QueryEraClosingSupplyResponse, error) // MaxSupply retrieves total coins of all eras and when mint ended. MaxSupply(ctx context.Context, in *QueryMaxSupplyRequest, opts ...grpc.CallOption) (*QueryMaxSupplyResponse, error) // InflationRate retrieves current era inflation rate. InflationRate(ctx context.Context, in *QueryInflationRateRequest, opts ...grpc.CallOption) (*QueryInflationRateResponse, 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 QueryEraClosingSupplyRequest ¶
type QueryEraClosingSupplyRequest struct { }
func (*QueryEraClosingSupplyRequest) Descriptor ¶
func (*QueryEraClosingSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryEraClosingSupplyRequest) Marshal ¶
func (m *QueryEraClosingSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryEraClosingSupplyRequest) MarshalTo ¶
func (m *QueryEraClosingSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEraClosingSupplyRequest) MarshalToSizedBuffer ¶
func (m *QueryEraClosingSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEraClosingSupplyRequest) ProtoMessage ¶
func (*QueryEraClosingSupplyRequest) ProtoMessage()
func (*QueryEraClosingSupplyRequest) Reset ¶
func (m *QueryEraClosingSupplyRequest) Reset()
func (*QueryEraClosingSupplyRequest) Size ¶
func (m *QueryEraClosingSupplyRequest) Size() (n int)
func (*QueryEraClosingSupplyRequest) String ¶
func (m *QueryEraClosingSupplyRequest) String() string
func (*QueryEraClosingSupplyRequest) Unmarshal ¶
func (m *QueryEraClosingSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryEraClosingSupplyRequest) XXX_DiscardUnknown ¶
func (m *QueryEraClosingSupplyRequest) XXX_DiscardUnknown()
func (*QueryEraClosingSupplyRequest) XXX_Marshal ¶
func (m *QueryEraClosingSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEraClosingSupplyRequest) XXX_Merge ¶
func (m *QueryEraClosingSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryEraClosingSupplyRequest) XXX_Size ¶
func (m *QueryEraClosingSupplyRequest) XXX_Size() int
func (*QueryEraClosingSupplyRequest) XXX_Unmarshal ¶
func (m *QueryEraClosingSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryEraClosingSupplyResponse ¶
type QueryEraClosingSupplyResponse struct {
EraClosingSupply github_com_cosmos_cosmos_sdk_types.Coin `` /* 152-byte string literal not displayed */
}
func (*QueryEraClosingSupplyResponse) Descriptor ¶
func (*QueryEraClosingSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryEraClosingSupplyResponse) Marshal ¶
func (m *QueryEraClosingSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryEraClosingSupplyResponse) MarshalTo ¶
func (m *QueryEraClosingSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEraClosingSupplyResponse) MarshalToSizedBuffer ¶
func (m *QueryEraClosingSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEraClosingSupplyResponse) ProtoMessage ¶
func (*QueryEraClosingSupplyResponse) ProtoMessage()
func (*QueryEraClosingSupplyResponse) Reset ¶
func (m *QueryEraClosingSupplyResponse) Reset()
func (*QueryEraClosingSupplyResponse) Size ¶
func (m *QueryEraClosingSupplyResponse) Size() (n int)
func (*QueryEraClosingSupplyResponse) String ¶
func (m *QueryEraClosingSupplyResponse) String() string
func (*QueryEraClosingSupplyResponse) Unmarshal ¶
func (m *QueryEraClosingSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryEraClosingSupplyResponse) XXX_DiscardUnknown ¶
func (m *QueryEraClosingSupplyResponse) XXX_DiscardUnknown()
func (*QueryEraClosingSupplyResponse) XXX_Marshal ¶
func (m *QueryEraClosingSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEraClosingSupplyResponse) XXX_Merge ¶
func (m *QueryEraClosingSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryEraClosingSupplyResponse) XXX_Size ¶
func (m *QueryEraClosingSupplyResponse) XXX_Size() int
func (*QueryEraClosingSupplyResponse) XXX_Unmarshal ¶
func (m *QueryEraClosingSupplyResponse) XXX_Unmarshal(b []byte) error
type QueryEraRequest ¶
type QueryEraRequest struct { }
func (*QueryEraRequest) Descriptor ¶
func (*QueryEraRequest) Descriptor() ([]byte, []int)
func (*QueryEraRequest) Marshal ¶
func (m *QueryEraRequest) Marshal() (dAtA []byte, err error)
func (*QueryEraRequest) MarshalToSizedBuffer ¶
func (m *QueryEraRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEraRequest) ProtoMessage ¶
func (*QueryEraRequest) ProtoMessage()
func (*QueryEraRequest) Reset ¶
func (m *QueryEraRequest) Reset()
func (*QueryEraRequest) Size ¶
func (m *QueryEraRequest) Size() (n int)
func (*QueryEraRequest) String ¶
func (m *QueryEraRequest) String() string
func (*QueryEraRequest) Unmarshal ¶
func (m *QueryEraRequest) Unmarshal(dAtA []byte) error
func (*QueryEraRequest) XXX_DiscardUnknown ¶
func (m *QueryEraRequest) XXX_DiscardUnknown()
func (*QueryEraRequest) XXX_Marshal ¶
func (m *QueryEraRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEraRequest) XXX_Merge ¶
func (m *QueryEraRequest) XXX_Merge(src proto.Message)
func (*QueryEraRequest) XXX_Size ¶
func (m *QueryEraRequest) XXX_Size() int
func (*QueryEraRequest) XXX_Unmarshal ¶
func (m *QueryEraRequest) XXX_Unmarshal(b []byte) error
type QueryEraResponse ¶
type QueryEraResponse struct {
Era uint64 `protobuf:"varint,1,opt,name=era,proto3" json:"era,omitempty"`
}
func (*QueryEraResponse) Descriptor ¶
func (*QueryEraResponse) Descriptor() ([]byte, []int)
func (*QueryEraResponse) GetEra ¶
func (m *QueryEraResponse) GetEra() uint64
func (*QueryEraResponse) Marshal ¶
func (m *QueryEraResponse) Marshal() (dAtA []byte, err error)
func (*QueryEraResponse) MarshalToSizedBuffer ¶
func (m *QueryEraResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEraResponse) ProtoMessage ¶
func (*QueryEraResponse) ProtoMessage()
func (*QueryEraResponse) Reset ¶
func (m *QueryEraResponse) Reset()
func (*QueryEraResponse) Size ¶
func (m *QueryEraResponse) Size() (n int)
func (*QueryEraResponse) String ¶
func (m *QueryEraResponse) String() string
func (*QueryEraResponse) Unmarshal ¶
func (m *QueryEraResponse) Unmarshal(dAtA []byte) error
func (*QueryEraResponse) XXX_DiscardUnknown ¶
func (m *QueryEraResponse) XXX_DiscardUnknown()
func (*QueryEraResponse) XXX_Marshal ¶
func (m *QueryEraResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEraResponse) XXX_Merge ¶
func (m *QueryEraResponse) XXX_Merge(src proto.Message)
func (*QueryEraResponse) XXX_Size ¶
func (m *QueryEraResponse) XXX_Size() int
func (*QueryEraResponse) XXX_Unmarshal ¶
func (m *QueryEraResponse) XXX_Unmarshal(b []byte) error
type QueryInflationRateRequest ¶
type QueryInflationRateRequest struct { }
func (*QueryInflationRateRequest) Descriptor ¶
func (*QueryInflationRateRequest) Descriptor() ([]byte, []int)
func (*QueryInflationRateRequest) Marshal ¶
func (m *QueryInflationRateRequest) Marshal() (dAtA []byte, err error)
func (*QueryInflationRateRequest) MarshalTo ¶
func (m *QueryInflationRateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInflationRateRequest) MarshalToSizedBuffer ¶
func (m *QueryInflationRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInflationRateRequest) ProtoMessage ¶
func (*QueryInflationRateRequest) ProtoMessage()
func (*QueryInflationRateRequest) Reset ¶
func (m *QueryInflationRateRequest) Reset()
func (*QueryInflationRateRequest) Size ¶
func (m *QueryInflationRateRequest) Size() (n int)
func (*QueryInflationRateRequest) String ¶
func (m *QueryInflationRateRequest) String() string
func (*QueryInflationRateRequest) Unmarshal ¶
func (m *QueryInflationRateRequest) Unmarshal(dAtA []byte) error
func (*QueryInflationRateRequest) XXX_DiscardUnknown ¶
func (m *QueryInflationRateRequest) XXX_DiscardUnknown()
func (*QueryInflationRateRequest) XXX_Marshal ¶
func (m *QueryInflationRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInflationRateRequest) XXX_Merge ¶
func (m *QueryInflationRateRequest) XXX_Merge(src proto.Message)
func (*QueryInflationRateRequest) XXX_Size ¶
func (m *QueryInflationRateRequest) XXX_Size() int
func (*QueryInflationRateRequest) XXX_Unmarshal ¶
func (m *QueryInflationRateRequest) XXX_Unmarshal(b []byte) error
type QueryInflationRateResponse ¶
type QueryInflationRateResponse struct { // rate by which the total supply increases within one era InflationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ }
func (*QueryInflationRateResponse) Descriptor ¶
func (*QueryInflationRateResponse) Descriptor() ([]byte, []int)
func (*QueryInflationRateResponse) Marshal ¶
func (m *QueryInflationRateResponse) Marshal() (dAtA []byte, err error)
func (*QueryInflationRateResponse) MarshalTo ¶
func (m *QueryInflationRateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInflationRateResponse) MarshalToSizedBuffer ¶
func (m *QueryInflationRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInflationRateResponse) ProtoMessage ¶
func (*QueryInflationRateResponse) ProtoMessage()
func (*QueryInflationRateResponse) Reset ¶
func (m *QueryInflationRateResponse) Reset()
func (*QueryInflationRateResponse) Size ¶
func (m *QueryInflationRateResponse) Size() (n int)
func (*QueryInflationRateResponse) String ¶
func (m *QueryInflationRateResponse) String() string
func (*QueryInflationRateResponse) Unmarshal ¶
func (m *QueryInflationRateResponse) Unmarshal(dAtA []byte) error
func (*QueryInflationRateResponse) XXX_DiscardUnknown ¶
func (m *QueryInflationRateResponse) XXX_DiscardUnknown()
func (*QueryInflationRateResponse) XXX_Marshal ¶
func (m *QueryInflationRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInflationRateResponse) XXX_Merge ¶
func (m *QueryInflationRateResponse) XXX_Merge(src proto.Message)
func (*QueryInflationRateResponse) XXX_Size ¶
func (m *QueryInflationRateResponse) XXX_Size() int
func (*QueryInflationRateResponse) XXX_Unmarshal ¶
func (m *QueryInflationRateResponse) XXX_Unmarshal(b []byte) error
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 QueryServer ¶
type QueryServer interface { // Era retrieves current era. Era(context.Context, *QueryEraRequest) (*QueryEraResponse, error) // EraTargetSupply retrieves current era target supply. EraClosingSupply(context.Context, *QueryEraClosingSupplyRequest) (*QueryEraClosingSupplyResponse, error) // MaxSupply retrieves total coins of all eras and when mint ended. MaxSupply(context.Context, *QueryMaxSupplyRequest) (*QueryMaxSupplyResponse, error) // InflationRate retrieves current era inflation rate. InflationRate(context.Context, *QueryInflationRateRequest) (*QueryInflationRateResponse, 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) sdk.Int TotalBondedTokens(ctx sdk.Context) sdk.Int }
StakingKeeper expected staking keeper
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Era ¶
func (*UnimplementedQueryServer) Era(ctx context.Context, req *QueryEraRequest) (*QueryEraResponse, error)
func (*UnimplementedQueryServer) EraClosingSupply ¶
func (*UnimplementedQueryServer) EraClosingSupply(ctx context.Context, req *QueryEraClosingSupplyRequest) (*QueryEraClosingSupplyResponse, error)
func (*UnimplementedQueryServer) InflationRate ¶
func (*UnimplementedQueryServer) InflationRate(ctx context.Context, req *QueryInflationRateRequest) (*QueryInflationRateResponse, error)
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)