Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) Circulating(ctx context.Context, request *types.QueryCirculatingRequest) (*types.QueryCirculatingResponse, error)
- func (k Keeper) GetCirculatingSupply(ctx sdk.Context, coinDenom string, divider sdk.Int) sdk.Int
- func (k Keeper) GetTotalSupply(ctx sdk.Context, coinDenom string, divider sdk.Int) sdk.Int
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Total(ctx context.Context, request *types.QueryTotalRequest) (*types.QueryTotalResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, dk distributionkeeper.Keeper) Keeper
NewKeeper creates new instances of the supply keeper
func (Keeper) Circulating ¶
func (k Keeper) Circulating(ctx context.Context, request *types.QueryCirculatingRequest) (*types.QueryCirculatingResponse, error)
Circulating implements the Query/Circulating gRPC method
func (Keeper) GetCirculatingSupply ¶
GetCirculatingSupply returns the circulating supply computed using the following formula: circulating_supply = (total_supply - community_pool - vested_amount) / divider
func (Keeper) GetTotalSupply ¶
GetTotalSupply returns the total supply computed using the following formula: total_supply = total_supply / divider
func (Keeper) Total ¶
func (k Keeper) Total(ctx context.Context, request *types.QueryTotalRequest) (*types.QueryTotalResponse, error)
Total implements the Query/Total gRPC method
Click to show internal directories.
Click to hide internal directories.