keeper

package
v0.0.0-...-1d4aedf Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSetDenomMetaDataProposal

func HandleSetDenomMetaDataProposal(ctx sdk.Context, k bankkeeper.Keeper, p *types.SetDenomMetadataProposal) error

Types

type Keeper

type Keeper struct {
	bankkeeper.BaseKeeper
	// contains filtered or unexported fields
}

Keeper manages transfers between accounts. Actually it wraps the bankkeeper.BaseKeeper struct, to supply hooks around sending coins.

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec,
	storeKey sdk.StoreKey,
	ak banktypes.AccountKeeper,
	paramSpace paramtypes.Subspace,
	blockedAddrs map[string]bool,
	erc20Keeper func() types.Erc20Keeper,
) Keeper

func (Keeper) AllBalances

AllBalances implements the Query/AllBalances gRPC method

func (Keeper) Balance

Balance implements the Query/Balance gRPC method

func (Keeper) BurnCoins

func (k Keeper) BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error

func (Keeper) DelegateCoins

func (k Keeper) DelegateCoins(ctx sdk.Context, delegatorAddr, moduleAccAddr sdk.AccAddress, amt sdk.Coins) error

func (Keeper) DelegateCoinsFromAccountToModule

func (k Keeper) DelegateCoinsFromAccountToModule(
	ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins,
) error

func (Keeper) DenomMetadata

DenomMetadata implements Query/DenomMetadata gRPC method.

func (Keeper) DenomsMetadata

DenomsMetadata implements Query/DenomsMetadata gRPC method.

func (Keeper) GetAccountsBalances

func (k Keeper) GetAccountsBalances(ctx sdk.Context) []banktypes.Balance

func (Keeper) GetAllBalances

func (k Keeper) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

func (Keeper) GetAllDenomMetaData

func (k Keeper) GetAllDenomMetaData(ctx sdk.Context) []banktypes.Metadata

func (Keeper) GetBalance

func (k Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

func (Keeper) GetDenomMetaData

func (k Keeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)

func (Keeper) GetPaginatedTotalSupply

func (k Keeper) GetPaginatedTotalSupply(ctx sdk.Context, pagination *query.PageRequest) (sdk.Coins, *query.PageResponse, error)

func (Keeper) GetSupply

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

func (Keeper) HasBalance

func (k Keeper) HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool

func (Keeper) HasSupply

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

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, genState *banktypes.GenesisState)

func (Keeper) InputOutputCoins

func (k Keeper) InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error

func (Keeper) IterateAccountBalances

func (k Keeper) IterateAccountBalances(ctx sdk.Context, addr sdk.AccAddress, cb func(sdk.Coin) bool)

func (Keeper) IterateAllBalances

func (k Keeper) IterateAllBalances(ctx sdk.Context, cb func(sdk.AccAddress, sdk.Coin) bool)

func (Keeper) IterateAllDenomMetaData

func (k Keeper) IterateAllDenomMetaData(ctx sdk.Context, cb func(banktypes.Metadata) bool)

func (Keeper) IterateTotalSupply

func (k Keeper) IterateTotalSupply(ctx sdk.Context, cb func(sdk.Coin) bool)

func (Keeper) MintCoins

func (k Keeper) MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error

func (Keeper) Params

Params implements the gRPC service handler for querying x/bank parameters.

func (Keeper) SendCoins

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

func (Keeper) SendCoinsFromAccountToModule

func (k Keeper) SendCoinsFromAccountToModule(
	ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins,
) error

func (Keeper) SendCoinsFromModuleToAccount

func (k Keeper) SendCoinsFromModuleToAccount(
	ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins,
) error

func (Keeper) SendCoinsFromModuleToModule

func (k Keeper) SendCoinsFromModuleToModule(
	ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins,
) error

func (Keeper) SpendableBalances

SpendableBalances implements a gRPC query handler for retrieving an account's spendable balances.

func (Keeper) SpendableCoins

func (k Keeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

func (Keeper) SupplyOf

SupplyOf implements the Query/SupplyOf gRPC method

func (Keeper) TotalSupply

TotalSupply implements the Query/TotalSupply gRPC method

func (Keeper) UndelegateCoins

func (k Keeper) UndelegateCoins(ctx sdk.Context, moduleAccAddr, delegatorAddr sdk.AccAddress, amt sdk.Coins) error

func (Keeper) UndelegateCoinsFromModuleToAccount

func (k Keeper) UndelegateCoinsFromModuleToAccount(
	ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins,
) error

func (Keeper) ValidateBalance

func (k Keeper) ValidateBalance(ctx sdk.Context, addr sdk.AccAddress) error

Jump to

Keyboard shortcuts

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