Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/kava-labs/kava/x/validator-vesting/internal/types/ ALIASGEN: github.com/kava-labs/kava/x/validator-vesting/internal/keeper/
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, accountKeeper types.AccountKeeper, ...)
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(_ *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type AppModuleSimulation
- type CurrentPeriodProgress
- type GenesisState
- type Keeper
- type ValidatorVestingAccount
- type VestingProgress
- type VoteInfos
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey )
Variables ¶
var ( // functions aliases RegisterCodec = types.RegisterCodec NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis ValidatorVestingAccountKey = types.ValidatorVestingAccountKey CreateTestAddrs = types.CreateTestAddrs TestAddr = types.TestAddr CreateTestPubKeys = types.CreateTestPubKeys NewPubKey = types.NewPubKey NewValidatorVestingAccountRaw = types.NewValidatorVestingAccountRaw NewValidatorVestingAccount = types.NewValidatorVestingAccount NewKeeper = keeper.NewKeeper MakeTestCodec = keeper.MakeTestCodec CreateTestInput = keeper.CreateTestInput ValidatorVestingTestAccount = keeper.ValidatorVestingTestAccount ValidatorVestingTestAccounts = keeper.ValidatorVestingTestAccounts ValidatorVestingDelegatorTestAccount = keeper.ValidatorVestingDelegatorTestAccount CreateValidators = keeper.CreateValidators // variable aliases ModuleCdc = types.ModuleCdc BlocktimeKey = types.BlocktimeKey ValidatorVestingAccountPrefix = types.ValidatorVestingAccountPrefix ValOpPk1 = keeper.ValOpPk1 ValOpPk2 = keeper.ValOpPk2 ValOpPk3 = keeper.ValOpPk3 ValOpAddr1 = keeper.ValOpAddr1 ValOpAddr2 = keeper.ValOpAddr2 ValOpAddr3 = keeper.ValOpAddr3 ValConsPk11 = keeper.ValConsPk11 ValConsPk12 = keeper.ValConsPk12 ValConsPk13 = keeper.ValConsPk13 ValConsAddr1 = keeper.ValConsAddr1 ValConsAddr2 = keeper.ValConsAddr2 ValConsAddr3 = keeper.ValConsAddr3 TestAddrs = keeper.TestAddrs )
Functions ¶
func BeginBlocker ¶
BeginBlocker updates the vote signing information for each validator vesting account, updates account when period changes, and updates the previousBlockTime value in the store.
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
ExportGenesis returns empty genesis state because auth exports all the genesis state we need.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, accountKeeper types.AccountKeeper, data GenesisState)
InitGenesis stores the account address of each ValidatorVestingAccount in the validator vesting keeper, for faster lookup. CONTRACT: Accounts must have already been initialized/created by AccountKeeper
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic AppModuleSimulation // contains filtered or unexported fields }
AppModule implements an application module for the validator-vesting module.
func NewAppModule ¶
func NewAppModule(keeper Keeper, ak types.AccountKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the auth module.
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the auth module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the auth module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the auth module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the auth module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the auth module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the auth module's querier route name.
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants performs a no-op.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the auth module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the validator-vesting module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(_ *codec.Codec) *cobra.Command
GetQueryCmd returns no root query command for the validator-vesting module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command
GetTxCmd returns no root tx command for the validator-vesting module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the auth module's name.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the auth module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
RegisterRESTRoutes registers no REST routes for the crisis module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the validator-vesting module.
type AppModuleSimulation ¶
type AppModuleSimulation struct{}
AppModuleSimulation defines the module simulation functions used by the auth module.
func (AppModuleSimulation) GenerateGenesisState ¶
func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the auth module
func (AppModuleSimulation) RandomizedParams ¶
func (AppModuleSimulation) RandomizedParams(_ *rand.Rand) []sim.ParamChange
RandomizedParams returns nil because validatorvesting has no params.
func (AppModuleSimulation) RegisterStoreDecoder ¶
func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for auth module's types
type CurrentPeriodProgress ¶
type CurrentPeriodProgress = types.CurrentPeriodProgress
type GenesisState ¶
type GenesisState = types.GenesisState
type ValidatorVestingAccount ¶
type ValidatorVestingAccount = types.ValidatorVestingAccount
type VestingProgress ¶
type VestingProgress = types.VestingProgress
type VoteInfos ¶
VoteInfos an array of abci.VoteInfo
func (VoteInfos) FilterByValidatorAddress ¶
FilterByValidatorAddress returns the VoteInfo of the validator address matching the input validator address and a boolean for if the address was found.