keeper

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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) Logger

func (ps PreStakingKeeper) Logger(ctx sdk.Context) log.Logger

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 (ps PreStakingKeeper) SetAccountStakingRecord(ctx sdk.Context, val, del sdk.AccAddress, id *big.Int, et time.Time, amount sdk.Coin) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL