keeper

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl added in v1.6.4

func NewMsgServerImpl(keeper WrappedBaseKeeper) types.MsgServer

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

Types

type AccountKeeper added in v1.6.4

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

type BaseKeeper

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

func NewBaseKeeper

func NewBaseKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	distrStoreKey storetypes.StoreKey,
	ak banktypes.AccountKeeper,
	dk distrkeeper.Keeper,
	blockedAddrs map[string]bool,
	authority string,
) BaseKeeper

func (BaseKeeper) BurnCoins

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

type ERC20Keeper added in v1.6.3

type ERC20Keeper interface {
	IsERC20Enabled(ctx sdk.Context) bool
	GetTokenPairID(ctx sdk.Context, token string) []byte
	GetTokenPair(ctx sdk.Context, id []byte) (types.TokenPair, bool)
	GetTokenPairs(ctx sdk.Context) []types.TokenPair
	IterateTokenPairs(ctx sdk.Context, cb func(tokenPair types.TokenPair) (stop bool))
	BalanceOf(ctx sdk.Context, abi abi.ABI, contract, account common.Address) *big.Int
	ConvertCoin(goCtx context.Context, msg *types.MsgConvertCoin) (*types.MsgConvertCoinResponse, error)
	CallEVM(ctx sdk.Context, abi abi.ABI, from, contract common.Address, commit bool, method string, args ...interface{}) (*evmtypes.MsgEthereumTxResponse, error)
}

type WrappedBaseKeeper added in v1.6.3

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

func NewWrappedBaseKeeper added in v1.6.3

func NewWrappedBaseKeeper(
	bk bankkeeper.Keeper,
	ek ERC20Keeper,
	ak AccountKeeper,
) WrappedBaseKeeper

func (WrappedBaseKeeper) AllBalances added in v1.6.3

AllBalances implements the Query/AllBalances gRPC method

func (WrappedBaseKeeper) Balance added in v1.6.3

Balance implements the Query/Balance gRPC method

func (WrappedBaseKeeper) DenomMetadata added in v1.6.3

DenomMetadata implements Query/DenomMetadata gRPC method.

func (WrappedBaseKeeper) DenomOwners added in v1.6.3

func (WrappedBaseKeeper) DenomsMetadata added in v1.6.3

DenomsMetadata implements Query/DenomsMetadata gRPC method.

func (WrappedBaseKeeper) Params added in v1.6.3

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

func (WrappedBaseKeeper) SendEnabled added in v1.7.0

func (WrappedBaseKeeper) SpendableBalanceByDenom added in v1.7.0

func (WrappedBaseKeeper) SpendableBalances added in v1.6.3

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

func (WrappedBaseKeeper) SupplyOf added in v1.6.3

SupplyOf implements the Query/SupplyOf gRPC method

func (WrappedBaseKeeper) TotalSupply added in v1.6.3

TotalSupply implements the Query/TotalSupply gRPC method

func (WrappedBaseKeeper) UnwrapBaseKeeper added in v1.6.3

func (k WrappedBaseKeeper) UnwrapBaseKeeper() bankkeeper.BaseKeeper

func (WrappedBaseKeeper) UnwrapKeeper added in v1.6.4

func (k WrappedBaseKeeper) UnwrapKeeper() bankkeeper.Keeper

Jump to

Keyboard shortcuts

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