Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CalculateEpochMintProvision(params Params, period uint64, epochsPerPeriod int64) sdk.Dec
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry 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) GetEpochIdentifier() string
- func (m *GenesisState) GetEpochsPerPeriod() int64
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPeriod() uint64
- func (m *GenesisState) GetSkippedEpochs() uint64
- 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 InflationParameters
- func (*InflationParameters) Descriptor() ([]byte, []int)
- func (m *InflationParameters) Marshal() (dAtA []byte, err error)
- func (m *InflationParameters) MarshalTo(dAtA []byte) (int, error)
- func (m *InflationParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InflationParameters) ProtoMessage()
- func (m *InflationParameters) Reset()
- func (m *InflationParameters) Size() (n int)
- func (m *InflationParameters) String() string
- func (m *InflationParameters) Unmarshal(dAtA []byte) error
- func (m *InflationParameters) XXX_DiscardUnknown()
- func (m *InflationParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InflationParameters) XXX_Merge(src proto.Message)
- func (m *InflationParameters) XXX_Size() int
- func (m *InflationParameters) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableInflation() bool
- func (m *Params) GetInflationParameters() InflationParameters
- 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 QueryCirculatingSupplyRequest
- func (*QueryCirculatingSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryCirculatingSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCirculatingSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCirculatingSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCirculatingSupplyRequest) ProtoMessage()
- func (m *QueryCirculatingSupplyRequest) Reset()
- func (m *QueryCirculatingSupplyRequest) Size() (n int)
- func (m *QueryCirculatingSupplyRequest) String() string
- func (m *QueryCirculatingSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCirculatingSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryCirculatingSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCirculatingSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryCirculatingSupplyRequest) XXX_Size() int
- func (m *QueryCirculatingSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryCirculatingSupplyResponse
- func (*QueryCirculatingSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryCirculatingSupplyResponse) GetCirculatingSupply() types.DecCoin
- func (m *QueryCirculatingSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCirculatingSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCirculatingSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCirculatingSupplyResponse) ProtoMessage()
- func (m *QueryCirculatingSupplyResponse) Reset()
- func (m *QueryCirculatingSupplyResponse) Size() (n int)
- func (m *QueryCirculatingSupplyResponse) String() string
- func (m *QueryCirculatingSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCirculatingSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryCirculatingSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCirculatingSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryCirculatingSupplyResponse) XXX_Size() int
- func (m *QueryCirculatingSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryEpochMintProvisionRequest
- func (*QueryEpochMintProvisionRequest) Descriptor() ([]byte, []int)
- func (m *QueryEpochMintProvisionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEpochMintProvisionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEpochMintProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEpochMintProvisionRequest) ProtoMessage()
- func (m *QueryEpochMintProvisionRequest) Reset()
- func (m *QueryEpochMintProvisionRequest) Size() (n int)
- func (m *QueryEpochMintProvisionRequest) String() string
- func (m *QueryEpochMintProvisionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEpochMintProvisionRequest) XXX_DiscardUnknown()
- func (m *QueryEpochMintProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEpochMintProvisionRequest) XXX_Merge(src proto.Message)
- func (m *QueryEpochMintProvisionRequest) XXX_Size() int
- func (m *QueryEpochMintProvisionRequest) XXX_Unmarshal(b []byte) error
- type QueryEpochMintProvisionResponse
- func (*QueryEpochMintProvisionResponse) Descriptor() ([]byte, []int)
- func (m *QueryEpochMintProvisionResponse) GetEpochMintProvision() types.DecCoin
- func (m *QueryEpochMintProvisionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEpochMintProvisionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEpochMintProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEpochMintProvisionResponse) ProtoMessage()
- func (m *QueryEpochMintProvisionResponse) Reset()
- func (m *QueryEpochMintProvisionResponse) Size() (n int)
- func (m *QueryEpochMintProvisionResponse) String() string
- func (m *QueryEpochMintProvisionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEpochMintProvisionResponse) XXX_DiscardUnknown()
- func (m *QueryEpochMintProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEpochMintProvisionResponse) XXX_Merge(src proto.Message)
- func (m *QueryEpochMintProvisionResponse) XXX_Size() int
- func (m *QueryEpochMintProvisionResponse) XXX_Unmarshal(b []byte) error
- type QueryInflationPeriodRequest
- func (*QueryInflationPeriodRequest) Descriptor() ([]byte, []int)
- func (m *QueryInflationPeriodRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInflationPeriodRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInflationPeriodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInflationPeriodRequest) ProtoMessage()
- func (m *QueryInflationPeriodRequest) Reset()
- func (m *QueryInflationPeriodRequest) Size() (n int)
- func (m *QueryInflationPeriodRequest) String() string
- func (m *QueryInflationPeriodRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInflationPeriodRequest) XXX_DiscardUnknown()
- func (m *QueryInflationPeriodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInflationPeriodRequest) XXX_Merge(src proto.Message)
- func (m *QueryInflationPeriodRequest) XXX_Size() int
- func (m *QueryInflationPeriodRequest) XXX_Unmarshal(b []byte) error
- type QueryInflationPeriodResponse
- func (*QueryInflationPeriodResponse) Descriptor() ([]byte, []int)
- func (m *QueryInflationPeriodResponse) GetEpochIdentifier() string
- func (m *QueryInflationPeriodResponse) GetEpochsPerPeriod() uint64
- func (m *QueryInflationPeriodResponse) GetPeriod() uint64
- func (m *QueryInflationPeriodResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInflationPeriodResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInflationPeriodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInflationPeriodResponse) ProtoMessage()
- func (m *QueryInflationPeriodResponse) Reset()
- func (m *QueryInflationPeriodResponse) Size() (n int)
- func (m *QueryInflationPeriodResponse) String() string
- func (m *QueryInflationPeriodResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInflationPeriodResponse) XXX_DiscardUnknown()
- func (m *QueryInflationPeriodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInflationPeriodResponse) XXX_Merge(src proto.Message)
- func (m *QueryInflationPeriodResponse) XXX_Size() int
- func (m *QueryInflationPeriodResponse) 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 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 QuerySkippedEpochsRequest
- func (*QuerySkippedEpochsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySkippedEpochsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySkippedEpochsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySkippedEpochsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySkippedEpochsRequest) ProtoMessage()
- func (m *QuerySkippedEpochsRequest) Reset()
- func (m *QuerySkippedEpochsRequest) Size() (n int)
- func (m *QuerySkippedEpochsRequest) String() string
- func (m *QuerySkippedEpochsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySkippedEpochsRequest) XXX_DiscardUnknown()
- func (m *QuerySkippedEpochsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySkippedEpochsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySkippedEpochsRequest) XXX_Size() int
- func (m *QuerySkippedEpochsRequest) XXX_Unmarshal(b []byte) error
- type QuerySkippedEpochsResponse
- func (*QuerySkippedEpochsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySkippedEpochsResponse) GetSkippedEpochs() uint64
- func (m *QuerySkippedEpochsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySkippedEpochsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySkippedEpochsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySkippedEpochsResponse) ProtoMessage()
- func (m *QuerySkippedEpochsResponse) Reset()
- func (m *QuerySkippedEpochsResponse) Size() (n int)
- func (m *QuerySkippedEpochsResponse) String() string
- func (m *QuerySkippedEpochsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySkippedEpochsResponse) XXX_DiscardUnknown()
- func (m *QuerySkippedEpochsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySkippedEpochsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySkippedEpochsResponse) XXX_Size() int
- func (m *QuerySkippedEpochsResponse) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CirculatingSupply(ctx context.Context, req *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error)
- func (*UnimplementedQueryServer) EpochMintProvision(ctx context.Context, req *QueryEpochMintProvisionRequest) (*QueryEpochMintProvisionResponse, error)
- func (*UnimplementedQueryServer) InflationPeriod(ctx context.Context, req *QueryInflationPeriodRequest) (*QueryInflationPeriodResponse, error)
- func (*UnimplementedQueryServer) InflationRate(ctx context.Context, req *QueryInflationRateRequest) (*QueryInflationRateResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) SkippedEpochs(ctx context.Context, req *QuerySkippedEpochsRequest) (*QuerySkippedEpochsResponse, error)
Constants ¶
const ( EventTypeMint = ModuleName AttributeKeyEpochProvisions = "epoch_provisions" AttributeEpochNumber = "epoch_number" )
Minting module event types
const ( // module name ModuleName = "inflation" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for message routing RouterKey = ModuleName )
constants
Variables ¶
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 ( ErrInvalidLengthInflation = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInflation = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInflation = fmt.Errorf("proto: unexpected end of group") )
var ( KeyPrefixPeriod = []byte{prefixPeriod} KeyPrefixEpochMintProvision = []byte{prefixEpochMintProvision} KeyPrefixEpochIdentifier = []byte{prefixEpochIdentifier} KeyPrefixEpochsPerPeriod = []byte{prefixEpochsPerPeriod} KeyPrefixSkippedEpochs = []byte{prefixSkippedEpochs} )
KVStore key prefixes
var ( ParamStoreKeyMintDenom = []byte("ParamStoreKeyMintDenom") ParamStoreKeyInflationParameters = []byte("ParamStoreKeyInflationParameters") ParamStoreKeyEnableInflation = []byte("ParamStoreKeyEnableInflation") )
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 DefaultInflationDenom = config.BaseDenom
var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
Functions ¶
func CalculateEpochMintProvision ¶
CalculateEpochMintProvision returns mint provision per epoch. The returned value's demon is always `aastra`.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable ParamTable for inflation module
func RegisterInterfaces ¶
func RegisterInterfaces(registry 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 parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // amount of past periods, based on the epochs per period param. Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // inflation epoch identifier. EpochIdentifier string `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` // number of epochs after which inflation is recalculated. EpochsPerPeriod int64 `protobuf:"varint,4,opt,name=epochs_per_period,json=epochsPerPeriod,proto3" json:"epochs_per_period,omitempty"` // number of epochs that have passed while inflation is disabled. SkippedEpochs uint64 `protobuf:"varint,5,opt,name=skipped_epochs,json=skippedEpochs,proto3" json:"skipped_epochs,omitempty"` }
GenesisState defines the inflation module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object
func NewGenesisState ¶
func NewGenesisState( params Params, period uint64, epochIdentifier string, epochsPerPeriod int64, skippedEpochs uint64, ) GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetEpochIdentifier ¶
func (m *GenesisState) GetEpochIdentifier() string
func (*GenesisState) GetEpochsPerPeriod ¶
func (m *GenesisState) GetEpochsPerPeriod() int64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPeriod ¶
func (m *GenesisState) GetPeriod() uint64
func (*GenesisState) GetSkippedEpochs ¶
func (m *GenesisState) GetSkippedEpochs() uint64
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) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
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 InflationParameters ¶
type InflationParameters struct { // max_staking_rewards defines the maximum amount of the staking reward inflation // distributed through block rewards (i.e, R). The max_staking_rewards accounts for 20% of the total supply. MaxStakingRewards github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */ // r holds the value of the decay factor. R github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=r,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"r"` }
InflationParameters defines the distribution along with the parameters in which inflation is allocated through minting on each epoch. It excludes the genesis-enabled vesting distribution for team, genesis partners or reward providers, as they are only minted once at genesis. The rest of the total supply (i.e, 30%) will be gradually allocated for staking rewards through epoch provisions (e.g, block rewards). The epoch provision on each period is calculated as follows: periodProvision = exponentialDecay * totalInflation f(x) = r * (1 - r)^x * R
func (*InflationParameters) Descriptor ¶
func (*InflationParameters) Descriptor() ([]byte, []int)
func (*InflationParameters) Marshal ¶
func (m *InflationParameters) Marshal() (dAtA []byte, err error)
func (*InflationParameters) MarshalTo ¶
func (m *InflationParameters) MarshalTo(dAtA []byte) (int, error)
func (*InflationParameters) MarshalToSizedBuffer ¶
func (m *InflationParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InflationParameters) ProtoMessage ¶
func (*InflationParameters) ProtoMessage()
func (*InflationParameters) Reset ¶
func (m *InflationParameters) Reset()
func (*InflationParameters) Size ¶
func (m *InflationParameters) Size() (n int)
func (*InflationParameters) String ¶
func (m *InflationParameters) String() string
func (*InflationParameters) Unmarshal ¶
func (m *InflationParameters) Unmarshal(dAtA []byte) error
func (*InflationParameters) XXX_DiscardUnknown ¶
func (m *InflationParameters) XXX_DiscardUnknown()
func (*InflationParameters) XXX_Marshal ¶
func (m *InflationParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InflationParameters) XXX_Merge ¶
func (m *InflationParameters) XXX_Merge(src proto.Message)
func (*InflationParameters) XXX_Size ¶
func (m *InflationParameters) XXX_Size() int
func (*InflationParameters) XXX_Unmarshal ¶
func (m *InflationParameters) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // mint_denom indicates the type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // inflation_parameters consists of parameters which define how inflation is allocated. InflationParameters InflationParameters `protobuf:"bytes,2,opt,name=inflation_parameters,json=inflationParameters,proto3" json:"inflation_parameters"` // enable_inflation is the parameter to enable inflation and halt increasing the skipped_epochs EnableInflation bool `protobuf:"varint,3,opt,name=enable_inflation,json=enableInflation,proto3" json:"enable_inflation,omitempty"` }
Params holds parameters for the inflation module.
func NewParams ¶
func NewParams( mintDenom string, inflationParameters InflationParameters, enableInflation bool, ) Params
func (*Params) Descriptor ¶
func (*Params) GetEnableInflation ¶
func (*Params) GetInflationParameters ¶
func (m *Params) GetInflationParameters() InflationParameters
func (*Params) GetMintDenom ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
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 QueryCirculatingSupplyRequest ¶
type QueryCirculatingSupplyRequest struct { }
QueryCirculatingSupplyRequest is the request type for the Query/CirculatingSupply RPC method.
func (*QueryCirculatingSupplyRequest) Descriptor ¶
func (*QueryCirculatingSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryCirculatingSupplyRequest) Marshal ¶
func (m *QueryCirculatingSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryCirculatingSupplyRequest) MarshalTo ¶
func (m *QueryCirculatingSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCirculatingSupplyRequest) MarshalToSizedBuffer ¶
func (m *QueryCirculatingSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCirculatingSupplyRequest) ProtoMessage ¶
func (*QueryCirculatingSupplyRequest) ProtoMessage()
func (*QueryCirculatingSupplyRequest) Reset ¶
func (m *QueryCirculatingSupplyRequest) Reset()
func (*QueryCirculatingSupplyRequest) Size ¶
func (m *QueryCirculatingSupplyRequest) Size() (n int)
func (*QueryCirculatingSupplyRequest) String ¶
func (m *QueryCirculatingSupplyRequest) String() string
func (*QueryCirculatingSupplyRequest) Unmarshal ¶
func (m *QueryCirculatingSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryCirculatingSupplyRequest) XXX_DiscardUnknown ¶
func (m *QueryCirculatingSupplyRequest) XXX_DiscardUnknown()
func (*QueryCirculatingSupplyRequest) XXX_Marshal ¶
func (m *QueryCirculatingSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCirculatingSupplyRequest) XXX_Merge ¶
func (m *QueryCirculatingSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryCirculatingSupplyRequest) XXX_Size ¶
func (m *QueryCirculatingSupplyRequest) XXX_Size() int
func (*QueryCirculatingSupplyRequest) XXX_Unmarshal ¶
func (m *QueryCirculatingSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryCirculatingSupplyResponse ¶
type QueryCirculatingSupplyResponse struct { // total amount of coins in circulation CirculatingSupply types.DecCoin `` /* 159-byte string literal not displayed */ }
QueryCirculatingSupplyResponse is the response type for the Query/CirculatingSupply RPC method.
func (*QueryCirculatingSupplyResponse) Descriptor ¶
func (*QueryCirculatingSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryCirculatingSupplyResponse) GetCirculatingSupply ¶
func (m *QueryCirculatingSupplyResponse) GetCirculatingSupply() types.DecCoin
func (*QueryCirculatingSupplyResponse) Marshal ¶
func (m *QueryCirculatingSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryCirculatingSupplyResponse) MarshalTo ¶
func (m *QueryCirculatingSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCirculatingSupplyResponse) MarshalToSizedBuffer ¶
func (m *QueryCirculatingSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCirculatingSupplyResponse) ProtoMessage ¶
func (*QueryCirculatingSupplyResponse) ProtoMessage()
func (*QueryCirculatingSupplyResponse) Reset ¶
func (m *QueryCirculatingSupplyResponse) Reset()
func (*QueryCirculatingSupplyResponse) Size ¶
func (m *QueryCirculatingSupplyResponse) Size() (n int)
func (*QueryCirculatingSupplyResponse) String ¶
func (m *QueryCirculatingSupplyResponse) String() string
func (*QueryCirculatingSupplyResponse) Unmarshal ¶
func (m *QueryCirculatingSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryCirculatingSupplyResponse) XXX_DiscardUnknown ¶
func (m *QueryCirculatingSupplyResponse) XXX_DiscardUnknown()
func (*QueryCirculatingSupplyResponse) XXX_Marshal ¶
func (m *QueryCirculatingSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCirculatingSupplyResponse) XXX_Merge ¶
func (m *QueryCirculatingSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryCirculatingSupplyResponse) XXX_Size ¶
func (m *QueryCirculatingSupplyResponse) XXX_Size() int
func (*QueryCirculatingSupplyResponse) XXX_Unmarshal ¶
func (m *QueryCirculatingSupplyResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Period retrieves current period. InflationPeriod(ctx context.Context, in *QueryInflationPeriodRequest, opts ...grpc.CallOption) (*QueryInflationPeriodResponse, error) // EpochMintProvision retrieves current minting epoch provision value. EpochMintProvision(ctx context.Context, in *QueryEpochMintProvisionRequest, opts ...grpc.CallOption) (*QueryEpochMintProvisionResponse, error) // SkippedEpochs retrieves the total number of skipped epochs. SkippedEpochs(ctx context.Context, in *QuerySkippedEpochsRequest, opts ...grpc.CallOption) (*QuerySkippedEpochsResponse, error) // CirculatingSupply retrieves the total number of tokens that are in // circulation (i.e. excluding unVested tokens). CirculatingSupply(ctx context.Context, in *QueryCirculatingSupplyRequest, opts ...grpc.CallOption) (*QueryCirculatingSupplyResponse, error) // InflationRate retrieves the inflation rate of the current period. InflationRate(ctx context.Context, in *QueryInflationRateRequest, opts ...grpc.CallOption) (*QueryInflationRateResponse, error) // Params retrieves the total set of minting parameters. 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 QueryEpochMintProvisionRequest ¶
type QueryEpochMintProvisionRequest struct { }
QueryEpochMintProvisionRequest is the request type for the Query/EpochMintProvision RPC method.
func (*QueryEpochMintProvisionRequest) Descriptor ¶
func (*QueryEpochMintProvisionRequest) Descriptor() ([]byte, []int)
func (*QueryEpochMintProvisionRequest) Marshal ¶
func (m *QueryEpochMintProvisionRequest) Marshal() (dAtA []byte, err error)
func (*QueryEpochMintProvisionRequest) MarshalTo ¶
func (m *QueryEpochMintProvisionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEpochMintProvisionRequest) MarshalToSizedBuffer ¶
func (m *QueryEpochMintProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEpochMintProvisionRequest) ProtoMessage ¶
func (*QueryEpochMintProvisionRequest) ProtoMessage()
func (*QueryEpochMintProvisionRequest) Reset ¶
func (m *QueryEpochMintProvisionRequest) Reset()
func (*QueryEpochMintProvisionRequest) Size ¶
func (m *QueryEpochMintProvisionRequest) Size() (n int)
func (*QueryEpochMintProvisionRequest) String ¶
func (m *QueryEpochMintProvisionRequest) String() string
func (*QueryEpochMintProvisionRequest) Unmarshal ¶
func (m *QueryEpochMintProvisionRequest) Unmarshal(dAtA []byte) error
func (*QueryEpochMintProvisionRequest) XXX_DiscardUnknown ¶
func (m *QueryEpochMintProvisionRequest) XXX_DiscardUnknown()
func (*QueryEpochMintProvisionRequest) XXX_Marshal ¶
func (m *QueryEpochMintProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEpochMintProvisionRequest) XXX_Merge ¶
func (m *QueryEpochMintProvisionRequest) XXX_Merge(src proto.Message)
func (*QueryEpochMintProvisionRequest) XXX_Size ¶
func (m *QueryEpochMintProvisionRequest) XXX_Size() int
func (*QueryEpochMintProvisionRequest) XXX_Unmarshal ¶
func (m *QueryEpochMintProvisionRequest) XXX_Unmarshal(b []byte) error
type QueryEpochMintProvisionResponse ¶
type QueryEpochMintProvisionResponse struct { // epoch_mint_provision is the current minting per epoch provision value. EpochMintProvision types.DecCoin `` /* 164-byte string literal not displayed */ }
QueryEpochMintProvisionResponse is the response type for the Query/EpochMintProvision RPC method.
func (*QueryEpochMintProvisionResponse) Descriptor ¶
func (*QueryEpochMintProvisionResponse) Descriptor() ([]byte, []int)
func (*QueryEpochMintProvisionResponse) GetEpochMintProvision ¶
func (m *QueryEpochMintProvisionResponse) GetEpochMintProvision() types.DecCoin
func (*QueryEpochMintProvisionResponse) Marshal ¶
func (m *QueryEpochMintProvisionResponse) Marshal() (dAtA []byte, err error)
func (*QueryEpochMintProvisionResponse) MarshalTo ¶
func (m *QueryEpochMintProvisionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEpochMintProvisionResponse) MarshalToSizedBuffer ¶
func (m *QueryEpochMintProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEpochMintProvisionResponse) ProtoMessage ¶
func (*QueryEpochMintProvisionResponse) ProtoMessage()
func (*QueryEpochMintProvisionResponse) Reset ¶
func (m *QueryEpochMintProvisionResponse) Reset()
func (*QueryEpochMintProvisionResponse) Size ¶
func (m *QueryEpochMintProvisionResponse) Size() (n int)
func (*QueryEpochMintProvisionResponse) String ¶
func (m *QueryEpochMintProvisionResponse) String() string
func (*QueryEpochMintProvisionResponse) Unmarshal ¶
func (m *QueryEpochMintProvisionResponse) Unmarshal(dAtA []byte) error
func (*QueryEpochMintProvisionResponse) XXX_DiscardUnknown ¶
func (m *QueryEpochMintProvisionResponse) XXX_DiscardUnknown()
func (*QueryEpochMintProvisionResponse) XXX_Marshal ¶
func (m *QueryEpochMintProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEpochMintProvisionResponse) XXX_Merge ¶
func (m *QueryEpochMintProvisionResponse) XXX_Merge(src proto.Message)
func (*QueryEpochMintProvisionResponse) XXX_Size ¶
func (m *QueryEpochMintProvisionResponse) XXX_Size() int
func (*QueryEpochMintProvisionResponse) XXX_Unmarshal ¶
func (m *QueryEpochMintProvisionResponse) XXX_Unmarshal(b []byte) error
type QueryInflationPeriodRequest ¶
type QueryInflationPeriodRequest struct { }
QueryInflationPeriodRequest is the request type for the Query/InflationPeriod RPC method.
func (*QueryInflationPeriodRequest) Descriptor ¶
func (*QueryInflationPeriodRequest) Descriptor() ([]byte, []int)
func (*QueryInflationPeriodRequest) Marshal ¶
func (m *QueryInflationPeriodRequest) Marshal() (dAtA []byte, err error)
func (*QueryInflationPeriodRequest) MarshalTo ¶
func (m *QueryInflationPeriodRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInflationPeriodRequest) MarshalToSizedBuffer ¶
func (m *QueryInflationPeriodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInflationPeriodRequest) ProtoMessage ¶
func (*QueryInflationPeriodRequest) ProtoMessage()
func (*QueryInflationPeriodRequest) Reset ¶
func (m *QueryInflationPeriodRequest) Reset()
func (*QueryInflationPeriodRequest) Size ¶
func (m *QueryInflationPeriodRequest) Size() (n int)
func (*QueryInflationPeriodRequest) String ¶
func (m *QueryInflationPeriodRequest) String() string
func (*QueryInflationPeriodRequest) Unmarshal ¶
func (m *QueryInflationPeriodRequest) Unmarshal(dAtA []byte) error
func (*QueryInflationPeriodRequest) XXX_DiscardUnknown ¶
func (m *QueryInflationPeriodRequest) XXX_DiscardUnknown()
func (*QueryInflationPeriodRequest) XXX_Marshal ¶
func (m *QueryInflationPeriodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInflationPeriodRequest) XXX_Merge ¶
func (m *QueryInflationPeriodRequest) XXX_Merge(src proto.Message)
func (*QueryInflationPeriodRequest) XXX_Size ¶
func (m *QueryInflationPeriodRequest) XXX_Size() int
func (*QueryInflationPeriodRequest) XXX_Unmarshal ¶
func (m *QueryInflationPeriodRequest) XXX_Unmarshal(b []byte) error
type QueryInflationPeriodResponse ¶
type QueryInflationPeriodResponse struct { // period is the current minting per epoch provision value. Period uint64 `protobuf:"varint,1,opt,name=period,proto3" json:"period,omitempty"` // epochs_per_period is the current number of epochs with-in an inflation period. EpochsPerPeriod uint64 `protobuf:"varint,2,opt,name=epochs_per_period,json=epochsPerPeriod,proto3" json:"epochs_per_period,omitempty"` // epoch_identifier is the identifier of the inflation epoch. EpochIdentifier string `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` }
QueryInflationPeriodResponse is the response type for the Query/InflationPeriod RPC method.
func (*QueryInflationPeriodResponse) Descriptor ¶
func (*QueryInflationPeriodResponse) Descriptor() ([]byte, []int)
func (*QueryInflationPeriodResponse) GetEpochIdentifier ¶
func (m *QueryInflationPeriodResponse) GetEpochIdentifier() string
func (*QueryInflationPeriodResponse) GetEpochsPerPeriod ¶
func (m *QueryInflationPeriodResponse) GetEpochsPerPeriod() uint64
func (*QueryInflationPeriodResponse) GetPeriod ¶
func (m *QueryInflationPeriodResponse) GetPeriod() uint64
func (*QueryInflationPeriodResponse) Marshal ¶
func (m *QueryInflationPeriodResponse) Marshal() (dAtA []byte, err error)
func (*QueryInflationPeriodResponse) MarshalTo ¶
func (m *QueryInflationPeriodResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInflationPeriodResponse) MarshalToSizedBuffer ¶
func (m *QueryInflationPeriodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInflationPeriodResponse) ProtoMessage ¶
func (*QueryInflationPeriodResponse) ProtoMessage()
func (*QueryInflationPeriodResponse) Reset ¶
func (m *QueryInflationPeriodResponse) Reset()
func (*QueryInflationPeriodResponse) Size ¶
func (m *QueryInflationPeriodResponse) Size() (n int)
func (*QueryInflationPeriodResponse) String ¶
func (m *QueryInflationPeriodResponse) String() string
func (*QueryInflationPeriodResponse) Unmarshal ¶
func (m *QueryInflationPeriodResponse) Unmarshal(dAtA []byte) error
func (*QueryInflationPeriodResponse) XXX_DiscardUnknown ¶
func (m *QueryInflationPeriodResponse) XXX_DiscardUnknown()
func (*QueryInflationPeriodResponse) XXX_Marshal ¶
func (m *QueryInflationPeriodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInflationPeriodResponse) XXX_Merge ¶
func (m *QueryInflationPeriodResponse) XXX_Merge(src proto.Message)
func (*QueryInflationPeriodResponse) XXX_Size ¶
func (m *QueryInflationPeriodResponse) XXX_Size() int
func (*QueryInflationPeriodResponse) XXX_Unmarshal ¶
func (m *QueryInflationPeriodResponse) XXX_Unmarshal(b []byte) error
type QueryInflationRateRequest ¶
type QueryInflationRateRequest struct { }
QueryInflationRateRequest is the request type for the Query/InflationRate RPC method.
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 period InflationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */ }
QueryInflationRateResponse is the response type for the Query/InflationRate RPC method.
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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
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"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
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 { // Period retrieves current period. InflationPeriod(context.Context, *QueryInflationPeriodRequest) (*QueryInflationPeriodResponse, error) // EpochMintProvision retrieves current minting epoch provision value. EpochMintProvision(context.Context, *QueryEpochMintProvisionRequest) (*QueryEpochMintProvisionResponse, error) // SkippedEpochs retrieves the total number of skipped epochs. SkippedEpochs(context.Context, *QuerySkippedEpochsRequest) (*QuerySkippedEpochsResponse, error) // CirculatingSupply retrieves the total number of tokens that are in // circulation (i.e. excluding unVested tokens). CirculatingSupply(context.Context, *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error) // InflationRate retrieves the inflation rate of the current period. InflationRate(context.Context, *QueryInflationRateRequest) (*QueryInflationRateResponse, error) // Params retrieves the total set of minting parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type QuerySkippedEpochsRequest ¶
type QuerySkippedEpochsRequest struct { }
QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC method.
func (*QuerySkippedEpochsRequest) Descriptor ¶
func (*QuerySkippedEpochsRequest) Descriptor() ([]byte, []int)
func (*QuerySkippedEpochsRequest) Marshal ¶
func (m *QuerySkippedEpochsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySkippedEpochsRequest) MarshalTo ¶
func (m *QuerySkippedEpochsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySkippedEpochsRequest) MarshalToSizedBuffer ¶
func (m *QuerySkippedEpochsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySkippedEpochsRequest) ProtoMessage ¶
func (*QuerySkippedEpochsRequest) ProtoMessage()
func (*QuerySkippedEpochsRequest) Reset ¶
func (m *QuerySkippedEpochsRequest) Reset()
func (*QuerySkippedEpochsRequest) Size ¶
func (m *QuerySkippedEpochsRequest) Size() (n int)
func (*QuerySkippedEpochsRequest) String ¶
func (m *QuerySkippedEpochsRequest) String() string
func (*QuerySkippedEpochsRequest) Unmarshal ¶
func (m *QuerySkippedEpochsRequest) Unmarshal(dAtA []byte) error
func (*QuerySkippedEpochsRequest) XXX_DiscardUnknown ¶
func (m *QuerySkippedEpochsRequest) XXX_DiscardUnknown()
func (*QuerySkippedEpochsRequest) XXX_Marshal ¶
func (m *QuerySkippedEpochsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySkippedEpochsRequest) XXX_Merge ¶
func (m *QuerySkippedEpochsRequest) XXX_Merge(src proto.Message)
func (*QuerySkippedEpochsRequest) XXX_Size ¶
func (m *QuerySkippedEpochsRequest) XXX_Size() int
func (*QuerySkippedEpochsRequest) XXX_Unmarshal ¶
func (m *QuerySkippedEpochsRequest) XXX_Unmarshal(b []byte) error
type QuerySkippedEpochsResponse ¶
type QuerySkippedEpochsResponse struct { // number of epochs that the inflation module has been disabled. SkippedEpochs uint64 `protobuf:"varint,1,opt,name=skipped_epochs,json=skippedEpochs,proto3" json:"skipped_epochs,omitempty"` }
QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs RPC method.
func (*QuerySkippedEpochsResponse) Descriptor ¶
func (*QuerySkippedEpochsResponse) Descriptor() ([]byte, []int)
func (*QuerySkippedEpochsResponse) GetSkippedEpochs ¶
func (m *QuerySkippedEpochsResponse) GetSkippedEpochs() uint64
func (*QuerySkippedEpochsResponse) Marshal ¶
func (m *QuerySkippedEpochsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySkippedEpochsResponse) MarshalTo ¶
func (m *QuerySkippedEpochsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySkippedEpochsResponse) MarshalToSizedBuffer ¶
func (m *QuerySkippedEpochsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySkippedEpochsResponse) ProtoMessage ¶
func (*QuerySkippedEpochsResponse) ProtoMessage()
func (*QuerySkippedEpochsResponse) Reset ¶
func (m *QuerySkippedEpochsResponse) Reset()
func (*QuerySkippedEpochsResponse) Size ¶
func (m *QuerySkippedEpochsResponse) Size() (n int)
func (*QuerySkippedEpochsResponse) String ¶
func (m *QuerySkippedEpochsResponse) String() string
func (*QuerySkippedEpochsResponse) Unmarshal ¶
func (m *QuerySkippedEpochsResponse) Unmarshal(dAtA []byte) error
func (*QuerySkippedEpochsResponse) XXX_DiscardUnknown ¶
func (m *QuerySkippedEpochsResponse) XXX_DiscardUnknown()
func (*QuerySkippedEpochsResponse) XXX_Marshal ¶
func (m *QuerySkippedEpochsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySkippedEpochsResponse) XXX_Merge ¶
func (m *QuerySkippedEpochsResponse) XXX_Merge(src proto.Message)
func (*QuerySkippedEpochsResponse) XXX_Size ¶
func (m *QuerySkippedEpochsResponse) XXX_Size() int
func (*QuerySkippedEpochsResponse) XXX_Unmarshal ¶
func (m *QuerySkippedEpochsResponse) XXX_Unmarshal(b []byte) error
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) CirculatingSupply ¶
func (*UnimplementedQueryServer) CirculatingSupply(ctx context.Context, req *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error)
func (*UnimplementedQueryServer) EpochMintProvision ¶
func (*UnimplementedQueryServer) EpochMintProvision(ctx context.Context, req *QueryEpochMintProvisionRequest) (*QueryEpochMintProvisionResponse, error)
func (*UnimplementedQueryServer) InflationPeriod ¶
func (*UnimplementedQueryServer) InflationPeriod(ctx context.Context, req *QueryInflationPeriodRequest) (*QueryInflationPeriodResponse, error)
func (*UnimplementedQueryServer) InflationRate ¶
func (*UnimplementedQueryServer) InflationRate(ctx context.Context, req *QueryInflationRateRequest) (*QueryInflationRateResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SkippedEpochs ¶
func (*UnimplementedQueryServer) SkippedEpochs(ctx context.Context, req *QuerySkippedEpochsRequest) (*QuerySkippedEpochsResponse, error)