keeper

package
v1.6.44 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 17 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 PreStakingToken added in v1.6.20

func PreStakingToken(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 {
	Cdc           *codec.Codec
	AccountKeeper account.AccountKeeper
	SupplyKeeper  supply.Keeper
	StakingKeeper keeper.StakingKeeper

	UpgradeKeeper upgrade.Keeper
	// contains filtered or unexported fields
}

func NewPreStakingKeeper

func NewPreStakingKeeper(cdc *codec.Codec, key sdk.StoreKey, ak account.AccountKeeper, sk supply.Keeper, stakingKeeper keeper.StakingKeeper, upgradeKeeper upgrade.Keeper,
	ps params.Subspace, cdb dbm.DB) PreStakingKeeper

func (PreStakingKeeper) ChangeStakingRecordToNewValidator added in v1.6.24

func (ps PreStakingKeeper) ChangeStakingRecordToNewValidator(ctx sdk.Context, recordID uint64, srcValidator, dstValidator sdk.AccAddress) error

func (PreStakingKeeper) DeleteStakingVault added in v1.6.24

func (ps PreStakingKeeper) DeleteStakingVault(ctx sdk.Context, key []byte)

func (PreStakingKeeper) GetAllStakingVault added in v1.6.24

func (ps PreStakingKeeper) GetAllStakingVault(ctx sdk.Context) (res []types.StakingVault)

func (PreStakingKeeper) GetStakingRecordID added in v1.6.24

func (ps PreStakingKeeper) GetStakingRecordID(ctx sdk.Context) uint64

func (PreStakingKeeper) GetTokenManager added in v1.6.20

func (ps PreStakingKeeper) GetTokenManager(ctx sdk.Context) string

func (PreStakingKeeper) GetTokenManagerOwner added in v1.6.20

func (ps PreStakingKeeper) GetTokenManagerOwner(ctx sdk.Context) string

func (PreStakingKeeper) Iter added in v1.6.24

func (ps PreStakingKeeper) Iter(ctx sdk.Context) sdk.Iterator

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) (sdk.Int, error)

func (PreStakingKeeper) SetStakingRecordID added in v1.6.24

func (ps PreStakingKeeper) SetStakingRecordID(ctx sdk.Context, n uint64)

func (PreStakingKeeper) SetStakingVault added in v1.6.24

func (ps PreStakingKeeper) SetStakingVault(ctx sdk.Context, val, del sdk.AccAddress, endtime time.Time, duration time.Duration, coin sdk.Coin)

func (PreStakingKeeper) SetTokenManager added in v1.6.20

func (ps PreStakingKeeper) SetTokenManager(ctx sdk.Context, addr sdk.AccAddress)

func (PreStakingKeeper) SetTokenManagerOwner added in v1.6.20

func (ps PreStakingKeeper) SetTokenManagerOwner(ctx sdk.Context, addr sdk.AccAddress)

func (PreStakingKeeper) UnmarshalStakingVault added in v1.6.31

func (ps PreStakingKeeper) UnmarshalStakingVault(bz []byte) types.StakingVault

func (PreStakingKeeper) UpdateStakingRecordProcessed added in v1.6.24

func (ps PreStakingKeeper) UpdateStakingRecordProcessed(ctx sdk.Context, key []byte)

Jump to

Keyboard shortcuts

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