Documentation ¶
Index ¶
- func NewHandlers(k *Keeper) handlers
- type BalancesIndexes
- type Keeper
- func (k Keeper) AppendGlobalSendRestriction(restriction types.SendRestrictionFn)
- func (k Keeper) ClearGlobalSendRestriction()
- func (k *Keeper) ExportGenesis(ctx context.Context) (*types.GenesisState, error)
- func (k Keeper) GetBalance(ctx context.Context, addr []byte, denom string) sdk.Coin
- func (k Keeper) GetSupply(ctx context.Context, denom string) sdk.Coin
- func (k *Keeper) InitGenesis(ctx context.Context, state *types.GenesisState) error
- func (k Keeper) MintCoins(ctx context.Context, addr []byte, amounts sdk.Coins) error
- func (k Keeper) PrependGlobalSendRestriction(restriction types.SendRestrictionFn)
- func (k Keeper) SendCoins(ctx context.Context, from, to []byte, amt sdk.Coins) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalancesIndexes ¶
type Keeper ¶
type Keeper struct { appmodulev2.Environment // contains filtered or unexported fields }
Keeper defines the bank/v2 module keeper. All fields are not exported, as they should only be accessed through the module's.
func NewKeeper ¶
func NewKeeper(authority []byte, addressCodec address.Codec, env appmodulev2.Environment, cdc codec.BinaryCodec) *Keeper
func (Keeper) AppendGlobalSendRestriction ¶
func (k Keeper) AppendGlobalSendRestriction(restriction types.SendRestrictionFn)
AppendGlobalSendRestriction adds the provided SendRestrictionFn to run after previously provided global restrictions.
func (Keeper) ClearGlobalSendRestriction ¶
func (k Keeper) ClearGlobalSendRestriction()
ClearGlobalSendRestriction removes the global send restriction (if there is one).
func (*Keeper) ExportGenesis ¶
func (Keeper) GetBalance ¶
GetBalance returns the balance of a specific denomination for a given account by address.
func (*Keeper) InitGenesis ¶
InitGenesis initializes the bank/v2 module genesis state.
func (Keeper) MintCoins ¶
MintCoins creates new coins from thin air and adds it to the module account. An error is returned if the module account does not exist or is unauthorized.
func (Keeper) PrependGlobalSendRestriction ¶
func (k Keeper) PrependGlobalSendRestriction(restriction types.SendRestrictionFn)
PrependGlobalSendRestriction adds the provided SendRestrictionFn to run before previously provided global restrictions.