staking

package
v0.0.0-...-f498596 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParamKeyTable

func ParamKeyTable() params.KeyTable

ParamKeyTable returns param table for staking module

Types

type StakingKeeper

type StakingKeeper struct {
	keeper.Keeper
}

func NewStakingKeeper

func NewStakingKeeper(cdcMarshl *codec.CodecProxy, key sdk.StoreKey, supplyKeeper types.SupplyKeeper,
	paramstore params.Subspace) *StakingKeeper

NewKeeper creates a new staking Keeper instance

func (StakingKeeper) UnbondingTime

func (k StakingKeeper) UnbondingTime(ctx sdk.Context) (res time.Duration)

type StakingModule

type StakingModule struct {
	staking.AppModule
	// contains filtered or unexported fields
}

func TNewStakingModule

func TNewStakingModule(keeper staking.Keeper, accKeeper types.AccountKeeper,
	supplyKeeper types.SupplyKeeper) StakingModule

func (StakingModule) InitGenesis

func (s StakingModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

type TestParams

type TestParams struct {
	*types.Params
}

func (*TestParams) ParamSetPairs

func (p *TestParams) ParamSetPairs() params.ParamSetPairs

ParamSetPairs is the implements params.ParamSet

Jump to

Keyboard shortcuts

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