keeper

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

creates a querier for legacy rest endpoints

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey sdk.StoreKey,
	params paramtypes.Subspace,
	bankKeeper types.BankKeeper,
) Keeper

func (Keeper) Burn

func (k Keeper) Burn(ctx sdk.Context, owner string, amount sdk.Coin) error

Burn

func (Keeper) ClearCurrencies

func (k Keeper) ClearCurrencies(ctx sdk.Context)

ClearCurrencies clears all currencies

func (Keeper) CurrencyMintable

func (k Keeper) CurrencyMintable(ctx sdk.Context, denom string) bool

CurrencyMintable

func (Keeper) GetCurrencies

func (k Keeper) GetCurrencies(ctx sdk.Context) types.Currencies

GetCurrencies returns all supported currency denom list

func (Keeper) GetCurrency

func (k Keeper) GetCurrency(ctx sdk.Context, denom string) types.Currency

GetCurrency returns an information of a currency

func (*Keeper) GetParamSequence

func (k *Keeper) GetParamSequence(ctx sdk.Context) (seq int64)

GetParamSequence returns the parameter sequence

func (*Keeper) GetParams

func (k *Keeper) GetParams(ctx sdk.Context) (params types.Params)

func (Keeper) GetSequence

func (k Keeper) GetSequence(ctx sdk.Context) int64

GetSequence returns a sequence number of current state

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Mint

func (k Keeper) Mint(ctx sdk.Context, recv string, amount sdk.Coin) error

Mint

func (*Keeper) Mintable

func (k *Keeper) Mintable(ctx sdk.Context) (mintable bool)

Mintable returns the treasury module's minting/burning is enabled or not

func (Keeper) Owner

func (k Keeper) Owner(ctx sdk.Context, denom string) string

Owner

func (Keeper) SetCurrencies

func (k Keeper) SetCurrencies(ctx sdk.Context, currencies types.Currencies)

SetCurrencies stores all supported currency denom list

func (Keeper) SetCurrency

func (k Keeper) SetCurrency(ctx sdk.Context, currency types.Currency)

SetCurrency stores an item of a currency

func (*Keeper) SetParams

func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)

func (Keeper) SetSequence

func (k Keeper) SetSequence(ctx sdk.Context, seq types.Sequence)

SetSequence stores a sequence number of current state

func (*Keeper) Store

func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore

type Migrator added in v0.3.0

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator added in v0.3.0

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v0.3.0

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 migtates from version 1 to 2.

type Querier

type Querier struct {
	Keeper
}

func (Querier) Currencies

Currencies queries all supported currency denom list

func (Querier) Currency

Currency queries an information of a currency

func (Querier) MaxAtoloSupply added in v0.2.7

MaxAtoloSupply queries maximum mintable amount of atolo

func (Querier) Params

Params queries the parameters of treasury

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL