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/keeper ALIASGEN: github.com/kava-labs/kava/x/validator-vesting/types
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
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModuleBasic) RandomizedParams(_ *rand.Rand) []sim.ParamChange
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type BaseQueryParams
- type CurrentPeriodProgress
- type GenesisState
- type Keeper
- type ValidatorVestingAccount
- type VestingProgress
- type VoteInfos
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute QueryCirculatingSupply = types.QueryCirculatingSupply QueryTotalSupply = types.QueryTotalSupply )
Variables ¶
var ( // functions aliases NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier MakeTestCodec = keeper.MakeTestCodec CreateTestInput = keeper.CreateTestInput ValidatorVestingTestAccount = keeper.ValidatorVestingTestAccount ValidatorVestingTestAccounts = keeper.ValidatorVestingTestAccounts ValidatorVestingDelegatorTestAccount = keeper.ValidatorVestingDelegatorTestAccount CreateValidators = keeper.CreateValidators RegisterCodec = types.RegisterCodec NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis ValidatorVestingAccountKey = types.ValidatorVestingAccountKey NewBaseQueryParams = types.NewBaseQueryParams CreateTestAddrs = types.CreateTestAddrs TestAddr = types.TestAddr CreateTestPubKeys = types.CreateTestPubKeys NewPubKey = types.NewPubKey NewValidatorVestingAccountRaw = types.NewValidatorVestingAccountRaw NewValidatorVestingAccount = types.NewValidatorVestingAccount // variable aliases 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 ModuleCdc = types.ModuleCdc BlocktimeKey = types.BlocktimeKey ValidatorVestingAccountPrefix = types.ValidatorVestingAccountPrefix )
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 // 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.
func (AppModule) WeightedOperations ¶ added in v0.8.0
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the all the validator vesting module operations with their respective weights.
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) GenerateGenesisState ¶ added in v0.8.0
func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the auth module
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *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) ProposalContents ¶ added in v0.8.0
func (AppModuleBasic) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModuleBasic) RandomizedParams ¶ added in v0.8.0
func (AppModuleBasic) RandomizedParams(_ *rand.Rand) []sim.ParamChange
RandomizedParams returns nil because validatorvesting has no params.
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(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers no REST routes for the crisis module.
func (AppModuleBasic) RegisterStoreDecoder ¶ added in v0.8.0
func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for auth module's types
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the validator-vesting module.
type BaseQueryParams ¶ added in v0.3.3
type BaseQueryParams = types.BaseQueryParams
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.