Versions in this module Expand all Collapse all v0 v0.0.2 Nov 23, 2021 Changes in this version + const AttributeKeyAnnualProvisions + const AttributeKeyBondedRatio + const AttributeKeyInflation + const EventTypeMint + const ModuleName + const QuerierRoute + const QueryAnnualProvisions + const QueryInflation + const QueryParameters + const StoreKey + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var KeyBlocksPerYear = []byte("BlocksPerYear") + var KeyGoalBonded = []byte("GoalBonded") + var KeyInflationMax = []byte("InflationMax") + var KeyInflationMin = []byte("InflationMin") + var KeyInflationRateChange = []byte("InflationRateChange") + var KeyMintDenom = []byte("MintDenom") + var MinterKey = []byte + func ParamKeyTable() paramtypes.KeyTable + 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) + func ValidateGenesis(data GenesisState) error + func ValidateMinter(minter Minter) error + type AccountKeeper interface + GetModuleAccount func(ctx sdk.Context, moduleName string) types.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SetModuleAccount func(sdk.Context, types.ModuleAccountI) + type BankKeeper interface + MintCoins func(ctx sdk.Context, name string, amt sdk.Coins) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SendCoinsFromModuleToModule func(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error + type GenesisState struct + Minter Minter + Params Params + func DefaultGenesisState() *GenesisState + func NewGenesisState(minter Minter, params Params) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (m *GenesisState) GetMinter() Minter + 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 (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) 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 Minter struct + AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec + Inflation github_com_cosmos_cosmos_sdk_types.Dec + func DefaultInitialMinter() Minter + func InitialMinter(inflation sdk.Dec) Minter + func NewMinter(inflation, annualProvisions sdk.Dec) Minter + func (*Minter) Descriptor() ([]byte, []int) + func (*Minter) ProtoMessage() + func (m *Minter) Marshal() (dAtA []byte, err error) + func (m *Minter) MarshalTo(dAtA []byte) (int, error) + func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Minter) Reset() + func (m *Minter) Size() (n int) + func (m *Minter) String() string + func (m *Minter) Unmarshal(dAtA []byte) error + func (m *Minter) XXX_DiscardUnknown() + func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Minter) XXX_Merge(src proto.Message) + func (m *Minter) XXX_Size() int + func (m *Minter) XXX_Unmarshal(b []byte) error + func (m Minter) BlockProvision(params Params) sdk.Coin + func (m Minter) NextAnnualProvisions(_ Params, totalSupply sdk.Int) sdk.Dec + func (m Minter) NextInflationRate(params Params, bondedRatio sdk.Dec) sdk.Dec + type Params struct + BlocksPerYear uint64 + GoalBonded github_com_cosmos_cosmos_sdk_types.Dec + InflationMax github_com_cosmos_cosmos_sdk_types.Dec + InflationMin github_com_cosmos_cosmos_sdk_types.Dec + InflationRateChange github_com_cosmos_cosmos_sdk_types.Dec + MintDenom string + func DefaultParams() Params + func NewParams(mintDenom string, ...) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetBlocksPerYear() uint64 + 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 (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) Unmarshal(dAtA []byte) 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 + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) String() string + func (p Params) Validate() error + type QueryAnnualProvisionsRequest struct + func (*QueryAnnualProvisionsRequest) Descriptor() ([]byte, []int) + func (*QueryAnnualProvisionsRequest) ProtoMessage() + func (m *QueryAnnualProvisionsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAnnualProvisionsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAnnualProvisionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAnnualProvisionsRequest) Reset() + func (m *QueryAnnualProvisionsRequest) Size() (n int) + func (m *QueryAnnualProvisionsRequest) String() string + func (m *QueryAnnualProvisionsRequest) Unmarshal(dAtA []byte) error + func (m *QueryAnnualProvisionsRequest) XXX_DiscardUnknown() + func (m *QueryAnnualProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAnnualProvisionsRequest) XXX_Merge(src proto.Message) + func (m *QueryAnnualProvisionsRequest) XXX_Size() int + func (m *QueryAnnualProvisionsRequest) XXX_Unmarshal(b []byte) error + type QueryAnnualProvisionsResponse struct + AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec + func (*QueryAnnualProvisionsResponse) Descriptor() ([]byte, []int) + func (*QueryAnnualProvisionsResponse) ProtoMessage() + func (m *QueryAnnualProvisionsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAnnualProvisionsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAnnualProvisionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAnnualProvisionsResponse) Reset() + func (m *QueryAnnualProvisionsResponse) Size() (n int) + func (m *QueryAnnualProvisionsResponse) String() string + func (m *QueryAnnualProvisionsResponse) Unmarshal(dAtA []byte) error + func (m *QueryAnnualProvisionsResponse) XXX_DiscardUnknown() + func (m *QueryAnnualProvisionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAnnualProvisionsResponse) XXX_Merge(src proto.Message) + func (m *QueryAnnualProvisionsResponse) XXX_Size() int + func (m *QueryAnnualProvisionsResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + AnnualProvisions func(ctx context.Context, in *QueryAnnualProvisionsRequest, opts ...grpc.CallOption) (*QueryAnnualProvisionsResponse, error) + Inflation func(ctx context.Context, in *QueryInflationRequest, opts ...grpc.CallOption) (*QueryInflationResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryInflationRequest struct + func (*QueryInflationRequest) Descriptor() ([]byte, []int) + func (*QueryInflationRequest) ProtoMessage() + func (m *QueryInflationRequest) Marshal() (dAtA []byte, err error) + func (m *QueryInflationRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryInflationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryInflationRequest) Reset() + func (m *QueryInflationRequest) Size() (n int) + func (m *QueryInflationRequest) String() string + func (m *QueryInflationRequest) Unmarshal(dAtA []byte) error + func (m *QueryInflationRequest) XXX_DiscardUnknown() + func (m *QueryInflationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryInflationRequest) XXX_Merge(src proto.Message) + func (m *QueryInflationRequest) XXX_Size() int + func (m *QueryInflationRequest) XXX_Unmarshal(b []byte) error + type QueryInflationResponse struct + Inflation github_com_cosmos_cosmos_sdk_types.Dec + func (*QueryInflationResponse) Descriptor() ([]byte, []int) + func (*QueryInflationResponse) ProtoMessage() + 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 (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 QueryParamsRequest struct + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + 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 (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 struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + 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 (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 interface + AnnualProvisions func(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) + Inflation func(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + type StakingKeeper interface + BondedRatio func(ctx sdk.Context) sdk.Dec + StakingTokenSupply func(ctx sdk.Context) sdk.Int + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) AnnualProvisions(ctx context.Context, req *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) + func (*UnimplementedQueryServer) Inflation(ctx context.Context, req *QueryInflationRequest) (*QueryInflationResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)