Documentation ¶
Index ¶
- func NewQuerier(k PreStakingKeeper) sdk.Querier
- func PreStakingToken(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) ChangeStakingRecordToNewValidator(ctx sdk.Context, recordID uint64, srcValidator, dstValidator sdk.AccAddress) error
- func (ps PreStakingKeeper) DeleteStakingVault(ctx sdk.Context, key []byte)
- func (ps PreStakingKeeper) GetAllStakingVault(ctx sdk.Context) (res []types.StakingVault)
- func (ps PreStakingKeeper) GetStakingRecordID(ctx sdk.Context) uint64
- func (ps PreStakingKeeper) GetTokenManager(ctx sdk.Context) string
- func (ps PreStakingKeeper) GetTokenManagerOwner(ctx sdk.Context) string
- func (ps PreStakingKeeper) Iter(ctx sdk.Context) sdk.Iterator
- func (ps PreStakingKeeper) Logger(ctx sdk.Context) log.Logger
- func (ps PreStakingKeeper) RemoveDeadlineDelegationAndWithdraw(ctx sdk.Context, val, del sdk.AccAddress, amount sdk.Coin) (sdk.Int, error)
- func (ps PreStakingKeeper) SetStakingRecordID(ctx sdk.Context, n uint64)
- func (ps PreStakingKeeper) SetStakingVault(ctx sdk.Context, val, del sdk.AccAddress, endtime time.Time, ...)
- func (ps PreStakingKeeper) SetTokenManager(ctx sdk.Context, addr sdk.AccAddress)
- func (ps PreStakingKeeper) SetTokenManagerOwner(ctx sdk.Context, addr sdk.AccAddress)
- func (ps PreStakingKeeper) UnmarshalStakingVault(bz []byte) types.StakingVault
- func (ps PreStakingKeeper) UpdateStakingRecordProcessed(ctx sdk.Context, key []byte)
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 (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) 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 (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)
Click to show internal directories.
Click to hide internal directories.