Documentation ¶
Index ¶
- Constants
- type Keeper
- func (k Keeper) AddDepositMinted(ctx sdk.Context, depositorAddress sdk.AccAddress, deposit types.Deposit)
- func (k Keeper) CreateDeposit(ctx sdk.Context, msg types.MsgDeposit) error
- func (k Keeper) CreateModuleAccount(ctx sdk.Context, amount sdk.Coins)
- func (k Keeper) FetchDeposits(c context.Context, req *types.QueryFetchDepositsRequest) (*types.QueryFetchDepositsResponse, error)
- 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) GetDepositsForAddress(c context.Context, req *types.QueryGetDepositsForAddressRequest) (*types.QueryGetDepositsForAddressResponse, error)
- 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, error)
- 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) ProcessWithdrawAndMintProposal(ctx sdk.Context, proposal *types.WithdrawAndMintProposal) error
- 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) error
Constants ¶
View Source
const MicroPrecision = 1000000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 sdk.StoreKey, 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) CreateDeposit ¶
CreateDeposit Process the deposit message
func (Keeper) CreateModuleAccount ¶
CreateModuleAccount Initialize the module account and set the original amount of coins
func (Keeper) FetchDeposits ¶
func (k Keeper) FetchDeposits(c context.Context, req *types.QueryFetchDepositsRequest) (*types.QueryFetchDepositsResponse, error)
func (Keeper) GetDepositMinted ¶
func (Keeper) GetDepositPendingMint ¶
func (Keeper) GetDepositPendingWithdrawal ¶
func (Keeper) GetDepositsForAddress ¶
func (k Keeper) GetDepositsForAddress(c context.Context, req *types.QueryGetDepositsForAddressRequest) (*types.QueryGetDepositsForAddressResponse, error)
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) ProcessWithdrawAndMintProposal ¶
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.