keeper

package
v0.0.0-...-eccf466 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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

func NewMsgServerImpl(keeper WrappedBaseKeeper) types.MsgServer

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

Types

type AccountKeeper

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

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

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

func NewWrappedBaseKeeper

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

func (WrappedBaseKeeper) AllBalances

AllBalances implements the Query/AllBalances gRPC method

func (WrappedBaseKeeper) Balance

Balance implements the Query/Balance gRPC method

func (WrappedBaseKeeper) DenomMetadata

DenomMetadata implements Query/DenomMetadata gRPC method.

func (WrappedBaseKeeper) DenomOwners

func (WrappedBaseKeeper) DenomsMetadata

DenomsMetadata implements Query/DenomsMetadata gRPC method.

func (WrappedBaseKeeper) Params

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

func (WrappedBaseKeeper) SpendableBalances

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

func (WrappedBaseKeeper) SupplyOf

SupplyOf implements the Query/SupplyOf gRPC method

func (WrappedBaseKeeper) TotalSupply

TotalSupply implements the Query/TotalSupply gRPC method

func (WrappedBaseKeeper) UnwrapBaseKeeper

func (k WrappedBaseKeeper) UnwrapBaseKeeper() bankkeeper.BaseKeeper

func (WrappedBaseKeeper) UnwrapKeeper

func (k WrappedBaseKeeper) UnwrapKeeper() bankkeeper.Keeper

Jump to

Keyboard shortcuts

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