Documentation ¶
Index ¶
- func NewQuerier(k PreStakingKeeper) sdk.Querier
- func PreStakingDao(ctx sdk.Context, req abci.RequestQuery, k PreStakingKeeper) ([]byte, error)
- func PreStakingRecord(ctx sdk.Context, req abci.RequestQuery, k PreStakingKeeper) ([]byte, error)
- func StakingRecord(ctx sdk.Context, req abci.RequestQuery, k PreStakingKeeper) ([]byte, error)
- type PreStakingKeeper
- func (ps PreStakingKeeper) AccountPreStakingIterator(ctx sdk.Context) sdk.Iterator
- func (ps PreStakingKeeper) ClearStakingRecord(ctx sdk.Context, val, del sdk.AccAddress)
- func (ps PreStakingKeeper) GetAccountPreStaking(ctx sdk.Context, delegator sdk.AccAddress) types.VaultRecord
- func (ps PreStakingKeeper) GetAccountStakingRecord(ctx sdk.Context, val, del sdk.AccAddress) []types.StakingRecord
- func (ps PreStakingKeeper) GetAllAccountPreStaking(ctx sdk.Context) []types.InitPrestaking
- func (ps PreStakingKeeper) GetAllStakingRecords(ctx sdk.Context) []types.InitStakingRecords
- func (ps PreStakingKeeper) GetWeeLinkDao(ctx sdk.Context) string
- func (ps PreStakingKeeper) Logger(ctx sdk.Context) log.Logger
- func (ps PreStakingKeeper) RemoveDeadlineDelegationAndWithdraw(ctx sdk.Context, val, del sdk.AccAddress, amount sdk.Coin) error
- func (ps PreStakingKeeper) SetAccountPreStaking(ctx sdk.Context, delegator sdk.AccAddress, vaults types.VaultRecord)
- func (ps PreStakingKeeper) SetAccountStakingRecord(ctx sdk.Context, val, del sdk.AccAddress, id *big.Int, et time.Time, ...) error
- func (ps PreStakingKeeper) SetAccountStakingRecords(ctx sdk.Context, del, val sdk.AccAddress, records []types.StakingRecord)
- func (ps PreStakingKeeper) SetWeeLinkDao(ctx sdk.Context, addr sdk.AccAddress)
- func (ps PreStakingKeeper) StakingRecordIterator(ctx sdk.Context) sdk.Iterator
- func (ps PreStakingKeeper) UpdateAccountPreStaking(ctx sdk.Context, vaults map[string]types.Vault, delegator sdk.AccAddress) error
- func (ps PreStakingKeeper) UpdateDeadlineRecord(ctx sdk.Context)
- func (ps PreStakingKeeper) UpdateStakingRecord(ctx sdk.Context, val, del sdk.AccAddress, updates types.StakingRecords)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(k PreStakingKeeper) sdk.Querier
func PreStakingDao ¶ added in v1.5.53
func PreStakingDao(ctx sdk.Context, req abci.RequestQuery, k PreStakingKeeper) ([]byte, error)
func PreStakingRecord ¶
func PreStakingRecord(ctx sdk.Context, req abci.RequestQuery, k PreStakingKeeper) ([]byte, error)
func StakingRecord ¶
func StakingRecord(ctx sdk.Context, req abci.RequestQuery, k PreStakingKeeper) ([]byte, error)
Types ¶
type PreStakingKeeper ¶
type PreStakingKeeper struct { AccountKeeper account.AccountKeeper SupplyKeeper supply.Keeper StakingKeeper keeper.StakingKeeper // contains filtered or unexported fields }
func NewPreStakingKeeper ¶
func NewPreStakingKeeper(cdc *codec.Codec, key sdk.StoreKey, ak account.AccountKeeper, sk supply.Keeper, stakingKeeper keeper.StakingKeeper, ps params.Subspace, cdb dbm.DB) PreStakingKeeper
func (PreStakingKeeper) AccountPreStakingIterator ¶ added in v1.5.53
func (ps PreStakingKeeper) AccountPreStakingIterator(ctx sdk.Context) sdk.Iterator
func (PreStakingKeeper) ClearStakingRecord ¶ added in v1.5.53
func (ps PreStakingKeeper) ClearStakingRecord(ctx sdk.Context, val, del sdk.AccAddress)
func (PreStakingKeeper) GetAccountPreStaking ¶
func (ps PreStakingKeeper) GetAccountPreStaking(ctx sdk.Context, delegator sdk.AccAddress) types.VaultRecord
func (PreStakingKeeper) GetAccountStakingRecord ¶ added in v1.5.53
func (ps PreStakingKeeper) GetAccountStakingRecord(ctx sdk.Context, val, del sdk.AccAddress) []types.StakingRecord
func (PreStakingKeeper) GetAllAccountPreStaking ¶ added in v1.5.53
func (ps PreStakingKeeper) GetAllAccountPreStaking(ctx sdk.Context) []types.InitPrestaking
func (PreStakingKeeper) GetAllStakingRecords ¶ added in v1.5.53
func (ps PreStakingKeeper) GetAllStakingRecords(ctx sdk.Context) []types.InitStakingRecords
func (PreStakingKeeper) GetWeeLinkDao ¶ added in v1.5.53
func (ps PreStakingKeeper) GetWeeLinkDao(ctx sdk.Context) string
func (PreStakingKeeper) RemoveDeadlineDelegationAndWithdraw ¶ added in v1.5.53
func (ps PreStakingKeeper) RemoveDeadlineDelegationAndWithdraw(ctx sdk.Context, val, del sdk.AccAddress, amount sdk.Coin) error
func (PreStakingKeeper) SetAccountPreStaking ¶
func (ps PreStakingKeeper) SetAccountPreStaking(ctx sdk.Context, delegator sdk.AccAddress, vaults types.VaultRecord)
func (PreStakingKeeper) SetAccountStakingRecord ¶ added in v1.5.53
func (PreStakingKeeper) SetAccountStakingRecords ¶ added in v1.5.53
func (ps PreStakingKeeper) SetAccountStakingRecords(ctx sdk.Context, del, val sdk.AccAddress, records []types.StakingRecord)
func (PreStakingKeeper) SetWeeLinkDao ¶ added in v1.5.53
func (ps PreStakingKeeper) SetWeeLinkDao(ctx sdk.Context, addr sdk.AccAddress)
func (PreStakingKeeper) StakingRecordIterator ¶ added in v1.5.53
func (ps PreStakingKeeper) StakingRecordIterator(ctx sdk.Context) sdk.Iterator
func (PreStakingKeeper) UpdateAccountPreStaking ¶ added in v1.5.53
func (ps PreStakingKeeper) UpdateAccountPreStaking(ctx sdk.Context, vaults map[string]types.Vault, delegator sdk.AccAddress) error
func (PreStakingKeeper) UpdateDeadlineRecord ¶ added in v1.5.53
func (ps PreStakingKeeper) UpdateDeadlineRecord(ctx sdk.Context)
func (PreStakingKeeper) UpdateStakingRecord ¶ added in v1.5.53
func (ps PreStakingKeeper) UpdateStakingRecord(ctx sdk.Context, val, del sdk.AccAddress, updates types.StakingRecords)
Click to show internal directories.
Click to hide internal directories.