Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) AddDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress, deposit types.Deposit)
- func (k Keeper) CreateModuleAccount(ctx sdk.Context, amount sdk.Coins)
- func (k Keeper) GetDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress) (deposit types.Deposit, found bool)
- func (k Keeper) GetDepositPendingMint(ctx sdk.Context, depositorAddress sdk.AccAddress) (deposit types.Deposit, found bool)
- func (k Keeper) GetDepositPendingWithdrawal(ctx sdk.Context, depositorAddress sdk.AccAddress) (deposit types.Deposit, found bool)
- func (k Keeper) GetModuleAccount(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetModuleAccountBalance(ctx sdk.Context) sdk.Coins
- func (k Keeper) GetModuleAccountBalanceForDenom(ctx sdk.Context, denom string) sdk.Coin
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) IterateDepositsMinted(ctx sdk.Context, cb func(deposit types.Deposit) bool)
- func (k Keeper) IterateDepositsPendingMint(ctx sdk.Context, cb func(deposit types.Deposit) bool)
- func (k Keeper) IterateDepositsPendingWithdrawal(ctx sdk.Context, cb func(deposit types.Deposit) bool)
- func (k Keeper) ListDepositsMinted(ctx sdk.Context) (deposits []*types.Deposit)
- func (k Keeper) ListDepositsPendingMint(ctx sdk.Context) (deposits []*types.Deposit)
- func (k Keeper) ListDepositsPendingWithdrawal(ctx sdk.Context) (deposits []*types.Deposit)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress)
- func (k Keeper) RemoveDepositPendingMint(ctx sdk.Context, depositorAddress sdk.AccAddress)
- func (k Keeper) RemoveDepositPendingWithdrawal(ctx sdk.Context, depositorAddress sdk.AccAddress)
- func (k Keeper) SetDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress, deposit types.Deposit)
- func (k Keeper) SetDepositPendingMint(ctx sdk.Context, depositorAddress sdk.AccAddress, deposit types.Deposit)
- func (k Keeper) SetDepositPendingWithdrawal(ctx sdk.Context, depositorAddress sdk.AccAddress, deposit types.Deposit)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
View Source
const MicroPrecision = 1000000
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶ added in v1.5.0
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶ added in v1.5.0
func NewQueryServerImpl(keeper Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { AuthKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper GovKeeper govkeeper.Keeper StakingKeeper *stakingkeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, paramSpace paramtypes.Subspace, auth authkeeper.AccountKeeper, bank bankkeeper.Keeper, sk *stakingkeeper.Keeper) *Keeper
NewKeeper Create a new keeper instance and return the pointer
func (Keeper) AddDepositMinted ¶
func (k Keeper) AddDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress, deposit types.Deposit)
AddDepositMinted same as SetDepositMinted but takes into account the existing value
func (Keeper) CreateModuleAccount ¶
CreateModuleAccount Initialize the module account and set the original amount of coins
func (Keeper) GetDepositMinted ¶
func (Keeper) GetDepositPendingMint ¶
func (Keeper) GetDepositPendingWithdrawal ¶
func (Keeper) GetModuleAccount ¶
func (k Keeper) GetModuleAccount(ctx sdk.Context) sdk.AccAddress
GetModuleAccount Return the module account address
func (Keeper) GetModuleAccountBalance ¶
func (Keeper) GetModuleAccountBalanceForDenom ¶
GetModuleAccountBalanceForDenom Return the module account's balance
func (Keeper) IterateDepositsMinted ¶
func (Keeper) IterateDepositsPendingMint ¶
func (Keeper) IterateDepositsPendingWithdrawal ¶
func (Keeper) ListDepositsMinted ¶
func (Keeper) ListDepositsPendingMint ¶
func (Keeper) ListDepositsPendingWithdrawal ¶
func (Keeper) RemoveDepositMinted ¶
func (k Keeper) RemoveDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress)
func (Keeper) RemoveDepositPendingMint ¶
func (k Keeper) RemoveDepositPendingMint(ctx sdk.Context, depositorAddress sdk.AccAddress)
func (Keeper) RemoveDepositPendingWithdrawal ¶
func (k Keeper) RemoveDepositPendingWithdrawal(ctx sdk.Context, depositorAddress sdk.AccAddress)
func (Keeper) SetDepositMinted ¶
func (Keeper) SetDepositPendingMint ¶
func (Keeper) SetDepositPendingWithdrawal ¶
Click to show internal directories.
Click to hide internal directories.