Documentation ¶
Index ¶
- func HandleSetDenomMetaDataProposal(ctx sdk.Context, k bankkeeper.Keeper, p *types.SetDenomMetadataProposal) error
- type Keeper
- func (k Keeper) AllBalances(ctx context.Context, req *types.QueryAllBalancesRequest) (*types.QueryAllBalancesResponse, error)
- func (k Keeper) Balance(ctx context.Context, req *types.QueryBalanceRequest) (*types.QueryBalanceResponse, error)
- func (k Keeper) BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
- func (k Keeper) DelegateCoins(ctx sdk.Context, delegatorAddr, moduleAccAddr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (k Keeper) DenomMetadata(c context.Context, req *types.QueryDenomMetadataRequest) (*types.QueryDenomMetadataResponse, error)
- func (k Keeper) DenomsMetadata(c context.Context, req *types.QueryDenomsMetadataRequest) (*types.QueryDenomsMetadataResponse, error)
- func (k Keeper) GetAccountsBalances(ctx sdk.Context) []banktypes.Balance
- func (k Keeper) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- func (k Keeper) GetAllDenomMetaData(ctx sdk.Context) []banktypes.Metadata
- func (k Keeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (k Keeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
- func (k Keeper) GetPaginatedTotalSupply(ctx sdk.Context, pagination *query.PageRequest) (sdk.Coins, *query.PageResponse, error)
- func (k Keeper) GetSupply(ctx sdk.Context, denom string) sdk.Coin
- func (k Keeper) HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
- func (k Keeper) HasSupply(ctx sdk.Context, denom string) bool
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *banktypes.GenesisState)
- func (k Keeper) InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error
- func (k Keeper) IterateAccountBalances(ctx sdk.Context, addr sdk.AccAddress, cb func(sdk.Coin) bool)
- func (k Keeper) IterateAllBalances(ctx sdk.Context, cb func(sdk.AccAddress, sdk.Coin) bool)
- func (k Keeper) IterateAllDenomMetaData(ctx sdk.Context, cb func(banktypes.Metadata) bool)
- func (k Keeper) IterateTotalSupply(ctx sdk.Context, cb func(sdk.Coin) bool)
- func (k Keeper) MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
- func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (k Keeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (k Keeper) SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
- func (k Keeper) SpendableBalances(ctx context.Context, req *types.QuerySpendableBalancesRequest) (*types.QuerySpendableBalancesResponse, error)
- func (k Keeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- func (k Keeper) SupplyOf(c context.Context, req *types.QuerySupplyOfRequest) (*types.QuerySupplyOfResponse, error)
- func (k Keeper) TotalSupply(ctx context.Context, req *types.QueryTotalSupplyRequest) (*types.QueryTotalSupplyResponse, error)
- func (k Keeper) UndelegateCoins(ctx sdk.Context, moduleAccAddr, delegatorAddr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (k Keeper) ValidateBalance(ctx sdk.Context, addr sdk.AccAddress) error
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 ¶
func (k Keeper) AllBalances(ctx context.Context, req *types.QueryAllBalancesRequest) (*types.QueryAllBalancesResponse, error)
AllBalances implements the Query/AllBalances gRPC method
func (Keeper) Balance ¶
func (k Keeper) Balance(ctx context.Context, req *types.QueryBalanceRequest) (*types.QueryBalanceResponse, error)
Balance implements the Query/Balance gRPC method
func (Keeper) DelegateCoins ¶
func (Keeper) DelegateCoinsFromAccountToModule ¶
func (Keeper) DenomMetadata ¶
func (k Keeper) DenomMetadata(c context.Context, req *types.QueryDenomMetadataRequest) (*types.QueryDenomMetadataResponse, error)
DenomMetadata implements Query/DenomMetadata gRPC method.
func (Keeper) DenomsMetadata ¶
func (k Keeper) DenomsMetadata(c context.Context, req *types.QueryDenomsMetadataRequest) (*types.QueryDenomsMetadataResponse, error)
DenomsMetadata implements Query/DenomsMetadata gRPC method.
func (Keeper) GetAccountsBalances ¶
func (Keeper) GetAllBalances ¶
func (Keeper) GetAllDenomMetaData ¶
func (Keeper) GetBalance ¶
func (Keeper) GetDenomMetaData ¶
func (Keeper) GetPaginatedTotalSupply ¶
func (k Keeper) GetPaginatedTotalSupply(ctx sdk.Context, pagination *query.PageRequest) (sdk.Coins, *query.PageResponse, error)
func (Keeper) HasBalance ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState *banktypes.GenesisState)
func (Keeper) InputOutputCoins ¶
func (Keeper) IterateAccountBalances ¶
func (Keeper) IterateAllBalances ¶
func (Keeper) IterateAllDenomMetaData ¶
func (Keeper) IterateTotalSupply ¶
func (Keeper) Params ¶
func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
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 (Keeper) SendCoinsFromModuleToAccount ¶
func (Keeper) SendCoinsFromModuleToModule ¶
func (Keeper) SpendableBalances ¶
func (k Keeper) SpendableBalances(ctx context.Context, req *types.QuerySpendableBalancesRequest) (*types.QuerySpendableBalancesResponse, error)
SpendableBalances implements a gRPC query handler for retrieving an account's spendable balances.
func (Keeper) SpendableCoins ¶
func (Keeper) SupplyOf ¶
func (k Keeper) SupplyOf(c context.Context, req *types.QuerySupplyOfRequest) (*types.QuerySupplyOfResponse, error)
SupplyOf implements the Query/SupplyOf gRPC method
func (Keeper) TotalSupply ¶
func (k Keeper) TotalSupply(ctx context.Context, req *types.QueryTotalSupplyRequest) (*types.QueryTotalSupplyResponse, error)
TotalSupply implements the Query/TotalSupply gRPC method
func (Keeper) UndelegateCoins ¶
func (Keeper) UndelegateCoinsFromModuleToAccount ¶
func (Keeper) ValidateBalance ¶
Click to show internal directories.
Click to hide internal directories.