validatorvesting

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 27 Imported by: 1

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

View Source
const (
	ModuleName             = types.ModuleName
	StoreKey               = types.StoreKey
	QuerierRoute           = types.QuerierRoute
	QueryCirculatingSupply = types.QueryCirculatingSupply
	QueryTotalSupply       = types.QueryTotalSupply
)

Variables

View Source
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

func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)

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

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) Name

func (AppModule) Name() string

Name returns the auth module's name.

func (AppModule) NewHandler

func (AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the auth module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the auth module sdk.Querier.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the auth module's querier route name.

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) Route

func (AppModule) Route() string

Route returns the message routing key for the auth module.

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

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 Keeper

type Keeper = keeper.Keeper

type ValidatorVestingAccount

type ValidatorVestingAccount = types.ValidatorVestingAccount

type VestingProgress

type VestingProgress = types.VestingProgress

type VoteInfos

type VoteInfos []abci.VoteInfo

VoteInfos an array of abci.VoteInfo

func (VoteInfos) FilterByValidatorAddress

func (vis VoteInfos) FilterByValidatorAddress(consAddress sdk.ConsAddress) (abci.VoteInfo, bool)

FilterByValidatorAddress returns the VoteInfo of the validator address matching the input validator address and a boolean for if the address was found.

Directories

Path Synopsis
client
cli
legacy

Jump to

Keyboard shortcuts

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