Versions in this module Expand all Collapse all v0 v0.0.2 Aug 28, 2023 v0.0.1 Jul 5, 2023 Changes in this version + const ModuleName + const StoreKey + var DefaultBlocksPerYear = uint64(60 * 60 * 8766 / 5) + var DefaultDistributionProportions = DistributionProportions + var DefaultFundedAddresses []WeightedAddress + var DefaultGoalBonded = sdk.NewDecWithPrec(67, 2) + var DefaultInflationMax = sdk.NewDecWithPrec(20, 2) + var DefaultInflationMin = sdk.NewDecWithPrec(7, 2) + var DefaultInflationRateChange = sdk.NewDecWithPrec(13, 2) + var DefaultMintDenom = sdk.DefaultBondDenom + var ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") + 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 ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") + 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 KeyDistributionProportions = []byte("DistributionProportions") + var KeyFundedAddresses = []byte("FundedAddresses") + 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) + type AccountKeeper interface + GetModuleAccount func(ctx sdk.Context, moduleName string) types.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + 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 DistrKeeper interface + FundCommunityPool func(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error + type DistributionProportions struct + CommunityPool github_com_cosmos_cosmos_sdk_types.Dec + FundedAddresses github_com_cosmos_cosmos_sdk_types.Dec + Staking github_com_cosmos_cosmos_sdk_types.Dec + func (*DistributionProportions) Descriptor() ([]byte, []int) + func (*DistributionProportions) ProtoMessage() + func (m *DistributionProportions) Marshal() (dAtA []byte, err error) + func (m *DistributionProportions) MarshalTo(dAtA []byte) (int, error) + func (m *DistributionProportions) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DistributionProportions) Reset() + func (m *DistributionProportions) Size() (n int) + func (m *DistributionProportions) String() string + func (m *DistributionProportions) Unmarshal(dAtA []byte) error + func (m *DistributionProportions) XXX_DiscardUnknown() + func (m *DistributionProportions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DistributionProportions) XXX_Merge(src proto.Message) + func (m *DistributionProportions) XXX_Size() int + func (m *DistributionProportions) XXX_Unmarshal(b []byte) error + type EventMint struct + Amount github_com_cosmos_cosmos_sdk_types.Int + AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec + BondedRatio github_com_cosmos_cosmos_sdk_types.Dec + Inflation github_com_cosmos_cosmos_sdk_types.Dec + func (*EventMint) Descriptor() ([]byte, []int) + func (*EventMint) ProtoMessage() + func (m *EventMint) Marshal() (dAtA []byte, err error) + func (m *EventMint) MarshalTo(dAtA []byte) (int, error) + func (m *EventMint) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EventMint) Reset() + func (m *EventMint) Size() (n int) + func (m *EventMint) String() string + func (m *EventMint) Unmarshal(dAtA []byte) error + func (m *EventMint) XXX_DiscardUnknown() + func (m *EventMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EventMint) XXX_Merge(src proto.Message) + func (m *EventMint) XXX_Size() int + func (m *EventMint) XXX_Unmarshal(b []byte) error + type GenesisState struct + Minter Minter + Params Params + func DefaultGenesis() *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + 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 sdkmath.Int) sdk.Dec + func (m Minter) NextInflationRate(params Params, bondedRatio sdk.Dec) sdk.Dec + func (m Minter) Validate() error + type Params struct + BlocksPerYear uint64 + DistributionProportions DistributionProportions + FundedAddresses []WeightedAddress + 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) GetDistributionProportions() DistributionProportions + func (m *Params) GetFundedAddresses() []WeightedAddress + 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) sdkmath.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) + type WeightedAddress struct + Address string + Weight github_com_cosmos_cosmos_sdk_types.Dec + func (*WeightedAddress) Descriptor() ([]byte, []int) + func (*WeightedAddress) ProtoMessage() + func (m *WeightedAddress) GetAddress() string + func (m *WeightedAddress) Marshal() (dAtA []byte, err error) + func (m *WeightedAddress) MarshalTo(dAtA []byte) (int, error) + func (m *WeightedAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *WeightedAddress) Reset() + func (m *WeightedAddress) Size() (n int) + func (m *WeightedAddress) String() string + func (m *WeightedAddress) Unmarshal(dAtA []byte) error + func (m *WeightedAddress) XXX_DiscardUnknown() + func (m *WeightedAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *WeightedAddress) XXX_Merge(src proto.Message) + func (m *WeightedAddress) XXX_Size() int + func (m *WeightedAddress) XXX_Unmarshal(b []byte) error