Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper MsgServerBankKeeper) typesadapter.MsgServer
- type BankKeeperAdapter
- func (adapter BankKeeperAdapter) BlockedAddr(addr sdk.AccAddress) bool
- func (adapter BankKeeperAdapter) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- func (adapter BankKeeperAdapter) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (adapter BankKeeperAdapter) HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
- func (adapter BankKeeperAdapter) IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
- type BankQueryServer
- func (k BankQueryServer) AllBalances(ctx context.Context, req *typesadapter.QueryAllBalancesRequest) (*typesadapter.QueryAllBalancesResponse, error)
- func (k BankQueryServer) Balance(ctx context.Context, req *typesadapter.QueryBalanceRequest) (*typesadapter.QueryBalanceResponse, error)
- func (k BankQueryServer) DenomMetadata(c context.Context, req *typesadapter.QueryDenomMetadataRequest) (*typesadapter.QueryDenomMetadataResponse, error)
- func (k BankQueryServer) DenomsMetadata(c context.Context, req *typesadapter.QueryDenomsMetadataRequest) (*typesadapter.QueryDenomsMetadataResponse, error)
- func (k BankQueryServer) Params(ctx context.Context, req *typesadapter.QueryParamsRequest) (*typesadapter.QueryParamsResponse, error)
- func (k BankQueryServer) SupplyOf(c context.Context, req *typesadapter.QuerySupplyOfRequest) (*typesadapter.QuerySupplyOfResponse, error)
- func (k BankQueryServer) TotalSupply(ctx context.Context, req *typesadapter.QueryTotalSupplyRequest) (*typesadapter.QueryTotalSupplyResponse, error)
- type CM40ViewKeeper
- type MsgServerBankKeeper
- type SupplyKeeper
- type ViewBankKeeper
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 ¶
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 ¶
type BankQueryServer ¶
type BankQueryServer struct {
// contains filtered or unexported fields
}
func NewBankQueryServer ¶
func NewBankQueryServer(bankKeeper ViewBankKeeper, supplyKeeper SupplyKeeper) *BankQueryServer
func (BankQueryServer) AllBalances ¶
func (k BankQueryServer) AllBalances(ctx context.Context, req *typesadapter.QueryAllBalancesRequest) (*typesadapter.QueryAllBalancesResponse, error)
AllBalances implements the Query/AllBalances gRPC method
func (BankQueryServer) Balance ¶
func (k BankQueryServer) Balance(ctx context.Context, req *typesadapter.QueryBalanceRequest) (*typesadapter.QueryBalanceResponse, error)
Balance implements the Query/Balance gRPC method
func (BankQueryServer) DenomMetadata ¶
func (k BankQueryServer) DenomMetadata(c context.Context, req *typesadapter.QueryDenomMetadataRequest) (*typesadapter.QueryDenomMetadataResponse, error)
DenomMetadata implements Query/DenomMetadata gRPC method.
func (BankQueryServer) DenomsMetadata ¶
func (k BankQueryServer) DenomsMetadata(c context.Context, req *typesadapter.QueryDenomsMetadataRequest) (*typesadapter.QueryDenomsMetadataResponse, error)
DenomsMetadata implements Query/DenomsMetadata gRPC method.
func (BankQueryServer) Params ¶
func (k BankQueryServer) Params(ctx context.Context, req *typesadapter.QueryParamsRequest) (*typesadapter.QueryParamsResponse, error)
Params implements the gRPC service handler for querying x/bank parameters.
func (BankQueryServer) SupplyOf ¶
func (k BankQueryServer) SupplyOf(c context.Context, req *typesadapter.QuerySupplyOfRequest) (*typesadapter.QuerySupplyOfResponse, error)
SupplyOf implements the Query/SupplyOf gRPC method
func (BankQueryServer) TotalSupply ¶
func (k BankQueryServer) TotalSupply(ctx context.Context, req *typesadapter.QueryTotalSupplyRequest) (*typesadapter.QueryTotalSupplyResponse, error)
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)
}
Click to show internal directories.
Click to hide internal directories.