keeperadapter

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper MsgServerBankKeeper) typesadapter.MsgServer

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

Types

type BankKeeperAdapter

type BankKeeperAdapter struct {
	keeper.Keeper
}

BankKeeperAdapter is used in wasm module

func NewBankKeeperAdapter

func NewBankKeeperAdapter(bankKeeper keeper.Keeper) *BankKeeperAdapter

func (BankKeeperAdapter) BlockedAddr

func (adapter BankKeeperAdapter) BlockedAddr(addr sdk.AccAddress) bool

func (BankKeeperAdapter) GetAllBalances

func (adapter BankKeeperAdapter) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

func (BankKeeperAdapter) GetBalance

func (adapter BankKeeperAdapter) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

func (BankKeeperAdapter) HasBalance added in v1.6.7

func (adapter BankKeeperAdapter) HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool

func (BankKeeperAdapter) IsSendEnabledCoins

func (adapter BankKeeperAdapter) IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error

type BankQueryServer

type BankQueryServer struct {
	// contains filtered or unexported fields
}

func NewBankQueryServer

func NewBankQueryServer(bankKeeper ViewBankKeeper, supplyKeeper SupplyKeeper) *BankQueryServer

func (BankQueryServer) AllBalances

AllBalances implements the Query/AllBalances gRPC method

func (BankQueryServer) Balance

Balance implements the Query/Balance gRPC method

func (BankQueryServer) DenomMetadata

DenomMetadata implements Query/DenomMetadata gRPC method.

func (BankQueryServer) DenomsMetadata

DenomsMetadata implements Query/DenomsMetadata gRPC method.

func (BankQueryServer) Params

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

func (BankQueryServer) SupplyOf

SupplyOf implements the Query/SupplyOf gRPC method

func (BankQueryServer) TotalSupply

TotalSupply implements the Query/TotalSupply gRPC method

type CM40ViewKeeper added in v1.6.7

type CM40ViewKeeper interface {
	IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	BlockedAddr(addr sdk.AccAddress) bool
	HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

type MsgServerBankKeeper added in v1.6.2

type MsgServerBankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	GetSendEnabled(ctx sdk.Context) bool
	BlacklistedAddr(addr sdk.AccAddress) bool
}

type SupplyKeeper

type SupplyKeeper interface {
	GetSupply(ctx sdk.Context) (supply supplyexported.SupplyI)
}

type ViewBankKeeper added in v1.6.2

type ViewBankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetSendEnabled(ctx sdk.Context) bool
}

Jump to

Keyboard shortcuts

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