keeper

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankKeeper

type BankKeeper struct {
	types.BankKeeper
}

BankKeeper wraps the bankkeeper.BaseKeeper.

func NewBankKeeper

func NewBankKeeper(bk types.BankKeeper) BankKeeper

NewBankKeeper returns a new BankKeeper.

func (BankKeeper) SendCoins

func (k BankKeeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

SendCoins transfers amt coins from a sending account to a receiving account. An error is returned upon failure, or when the from/to address is blocked.

func (BankKeeper) SpendableBalance

func (k BankKeeper) SpendableBalance(ctx sdk.Context, address sdk.AccAddress, denom string) sdk.Coin

SpendableBalance returns the spendable balance of a specific denomination for a given account by address

Jump to

Keyboard shortcuts

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