package
0.1.7
Repository: https://github.com/okx/okbchain.git
Documentation: pkg.go.dev

# Functions

CreateTestInput returns all sorts of input required for testing initBalance is converted to an amount of tokens.
No description provided by the author
No description provided by the author
DelegatorAddSharesInvariant checks whether all the shares which persist in the store add up to the correct total shares amount stored on each existing validator.
MakeTestCodec creates a codec used only for testing.
ModuleAccountInvariantsCustom check invariants for module account.
No description provided by the author
NewKeeper creates a new staking Keeper instance.
No description provided by the author
No description provided by the author
No description provided by the author
NewQuerier creates a querier for staking REST endpoints.
No description provided by the author
No description provided by the author
NonNegativePowerInvariantCustom checks that all stored validators have nonnegative power.
ParamKeyTable returns param table for staking module.
PositiveDelegatorInvariant checks that all tokens delegated by delegator are greater than 0.
RegisterInvariantsCustom registers all staking invariants for okbchain.
No description provided by the author
No description provided by the author
TestAddr is designed for incode address generation.
ValidatorByPowerIndexExists checks whether a certain by-power index record exist.

# Constants

Default parameter namespace.

# Variables

dummy addresses used for testing nolint: unused deadcode.
dummy addresses used for testing nolint: unused deadcode.
dummy addresses used for testing nolint: unused deadcode.
dummy addresses used for testing nolint: unused deadcode.
dummy addresses used for testing nolint: unused deadcode.

# Structs

Keeper is the keeper struct of the staking store.
No description provided by the author
Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper.