Versions in this module Expand all Collapse all v21 v21.0.0 Mar 9, 2024 Changes in this version + const AttributeKeyAnnualProvisions + 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 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 KeyMintDenom = []byte("MintDenom") + var MinterKey = []byte + var ModuleCdc = codec.NewAminoCodec(amino) + var ParamsKey = []byte + 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 sdk.Context, moduleName string) types.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + SetModuleAccount func(sdk.Context, types.ModuleAccountI) + type BankKeeper interface + GetBalance func(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin + GetSupply func(ctx sdk.Context, denom string) sdk.Coin + 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 + Phase uint64 + StartPhaseBlock uint64 + TargetSupply github_com_cosmos_cosmos_sdk_types.Int + func DefaultInitialMinter() Minter + func InitialMinter(inflation sdk.Dec) Minter + func NewMinter(inflation, annualProvisions sdk.Dec, phase, startPhaseBlock uint64, ...) Minter + func (*Minter) Descriptor() ([]byte, []int) + func (*Minter) ProtoMessage() + func (m *Minter) GetPhase() uint64 + func (m *Minter) GetStartPhaseBlock() uint64 + 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, totalSupply math.Int) sdk.Coin + func (m Minter) NextAnnualProvisions(_ Params, totalSupply math.Int) sdk.Dec + func (m Minter) NextPhase(_ Params, currentSupply math.Int) uint64 + func (m Minter) PhaseInflationRate(phase uint64) sdk.Dec + 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) GetSigners() []sdk.AccAddress + 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) ValidateBasic() 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 + func (m MsgUpdateParams) GetSignBytes() []byte + 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 + MintDenom string + func DefaultParams() Params + func NewParams(mintDenom string, blocksPerYear uint64) 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) + TargetSupply func(ctx context.Context, in *QueryTargetSupplyRequest, opts ...grpc.CallOption) (*QueryTargetSupplyResponse, 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) + TargetSupply func(context.Context, *QueryTargetSupplyRequest) (*QueryTargetSupplyResponse, error) + type QueryTargetSupplyRequest struct + func (*QueryTargetSupplyRequest) Descriptor() ([]byte, []int) + func (*QueryTargetSupplyRequest) ProtoMessage() + func (m *QueryTargetSupplyRequest) Marshal() (dAtA []byte, err error) + func (m *QueryTargetSupplyRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTargetSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTargetSupplyRequest) Reset() + func (m *QueryTargetSupplyRequest) Size() (n int) + func (m *QueryTargetSupplyRequest) String() string + func (m *QueryTargetSupplyRequest) Unmarshal(dAtA []byte) error + func (m *QueryTargetSupplyRequest) XXX_DiscardUnknown() + func (m *QueryTargetSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTargetSupplyRequest) XXX_Merge(src proto.Message) + func (m *QueryTargetSupplyRequest) XXX_Size() int + func (m *QueryTargetSupplyRequest) XXX_Unmarshal(b []byte) error + type QueryTargetSupplyResponse struct + TargetSupply github_com_cosmos_cosmos_sdk_types.Int + func (*QueryTargetSupplyResponse) Descriptor() ([]byte, []int) + func (*QueryTargetSupplyResponse) ProtoMessage() + func (m *QueryTargetSupplyResponse) Marshal() (dAtA []byte, err error) + func (m *QueryTargetSupplyResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTargetSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTargetSupplyResponse) Reset() + func (m *QueryTargetSupplyResponse) Size() (n int) + func (m *QueryTargetSupplyResponse) String() string + func (m *QueryTargetSupplyResponse) Unmarshal(dAtA []byte) error + func (m *QueryTargetSupplyResponse) XXX_DiscardUnknown() + func (m *QueryTargetSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTargetSupplyResponse) XXX_Merge(src proto.Message) + func (m *QueryTargetSupplyResponse) XXX_Size() int + func (m *QueryTargetSupplyResponse) XXX_Unmarshal(b []byte) error + type StakingKeeper interface + BondedRatio func(ctx sdk.Context) sdk.Dec + StakingTokenSupply func(ctx sdk.Context) math.Int + 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) + func (*UnimplementedQueryServer) TargetSupply(ctx context.Context, req *QueryTargetSupplyRequest) (*QueryTargetSupplyResponse, error) Other modules containing this package github.com/CosmosContracts/juno github.com/CosmosContracts/juno/v10 github.com/CosmosContracts/juno/v11 github.com/CosmosContracts/juno/v12 github.com/CosmosContracts/juno/v13 github.com/CosmosContracts/juno/v14 github.com/CosmosContracts/juno/v15 github.com/CosmosContracts/juno/v16 github.com/CosmosContracts/juno/v17 github.com/CosmosContracts/juno/v18 github.com/CosmosContracts/juno/v19 github.com/CosmosContracts/juno/v22 github.com/CosmosContracts/juno/v7 github.com/CosmosContracts/juno/v8 github.com/CosmosContracts/juno/v9