Versions in this module Expand all Collapse all v0 v0.50.9 Jul 10, 2024 Changes in this version + const AttributeKeyAnnualProvisions + const AttributeKeyBondedRatio + const AttributeKeyInflation + const EventTypeMint + const ModuleName + const StoreKey + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = 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 ErrInvalidLengthTx = 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 ErrUnexpectedEndOfGroupTx = 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 = collections.NewPrefix(0) + var ParamsKey = collections.NewPrefix(1) + func DefaultInflationCalculationFn(_ context.Context, minter Minter, params Params, bondedRatio math.LegacyDec) math.LegacyDec + func ParamKeyTable() paramtypes.KeyTable + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + 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) + func ValidateGenesis(data GenesisState) error + func ValidateMinter(minter Minter) error + type AccountKeeper interface + GetModuleAccount func(ctx context.Context, moduleName string) sdk.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SetModuleAccount func(context.Context, sdk.ModuleAccountI) + type BankKeeper interface + MintCoins func(ctx context.Context, name string, amt sdk.Coins) error + SendCoinsFromModuleToAccount func(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SendCoinsFromModuleToModule func(ctx context.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 InflationCalculationFn func(ctx context.Context, minter Minter, params Params, bondedRatio math.LegacyDec) math.LegacyDec + type Minter struct + AnnualProvisions cosmossdk_io_math.LegacyDec + Inflation cosmossdk_io_math.LegacyDec + func DefaultInitialMinter() Minter + func InitialMinter(inflation math.LegacyDec) Minter + func NewMinter(inflation, annualProvisions math.LegacyDec) 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 math.Int) math.LegacyDec + func (m Minter) NextInflationRate(params Params, bondedRatio math.LegacyDec) math.LegacyDec + type MsgClient interface + UpdateParams func(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgServer interface + UpdateParams func(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + type MsgUpdateParams struct + Authority string + Params Params + func (*MsgUpdateParams) Descriptor() ([]byte, []int) + func (*MsgUpdateParams) ProtoMessage() + func (m *MsgUpdateParams) GetAuthority() string + func (m *MsgUpdateParams) GetParams() Params + func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) + func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) + func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgUpdateParams) Reset() + func (m *MsgUpdateParams) Size() (n int) + func (m *MsgUpdateParams) String() string + func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error + func (m *MsgUpdateParams) XXX_DiscardUnknown() + func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgUpdateParams) XXX_Merge(src proto.Message) + func (m *MsgUpdateParams) XXX_Size() int + func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error + type MsgUpdateParamsResponse struct + func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) + func (*MsgUpdateParamsResponse) ProtoMessage() + func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) + func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgUpdateParamsResponse) Reset() + func (m *MsgUpdateParamsResponse) Size() (n int) + func (m *MsgUpdateParamsResponse) String() string + func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error + func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() + func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) + func (m *MsgUpdateParamsResponse) XXX_Size() int + func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error + type Params struct + BlocksPerYear uint64 + GoalBonded cosmossdk_io_math.LegacyDec + InflationMax cosmossdk_io_math.LegacyDec + InflationMin cosmossdk_io_math.LegacyDec + InflationRateChange cosmossdk_io_math.LegacyDec + 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) String() string + 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) 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 cosmossdk_io_math.LegacyDec + 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 cosmossdk_io_math.LegacyDec + 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 context.Context) (math.LegacyDec, error) + StakingTokenSupply func(ctx context.Context) (math.Int, error) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + 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)