kavadist

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 19 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/kavadist/types ALIASGEN: github.com/kava-labs/kava/x/kavadist/keeper ALIASGEN: github.com/kava-labs/kava/x/kavadist/client

Index

Constants

View Source
const (
	EventTypeKavaDist                   = types.EventTypeKavaDist
	AttributeKeyInflation               = types.AttributeKeyInflation
	AttributeKeyStatus                  = types.AttributeKeyStatus
	AttributeValueInactive              = types.AttributeValueInactive
	ModuleName                          = types.ModuleName
	StoreKey                            = types.StoreKey
	RouterKey                           = types.RouterKey
	QuerierRoute                        = types.QuerierRoute
	DefaultParamspace                   = types.DefaultParamspace
	KavaDistMacc                        = types.KavaDistMacc
	ProposalTypeCommunityPoolMultiSpend = types.ProposalTypeCommunityPoolMultiSpend
	QueryGetParams                      = types.QueryGetParams
	QueryGetBalance                     = types.QueryGetBalance
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec                         = types.RegisterCodec
	NewGenesisState                       = types.NewGenesisState
	DefaultGenesisState                   = types.DefaultGenesisState
	NewPeriod                             = types.NewPeriod
	NewParams                             = types.NewParams
	DefaultParams                         = types.DefaultParams
	ParamKeyTable                         = types.ParamKeyTable
	NewCommunityPoolMultiSpendProposal    = types.NewCommunityPoolMultiSpendProposal
	NewKeeper                             = keeper.NewKeeper
	HandleCommunityPoolMultiSpendProposal = keeper.HandleCommunityPoolMultiSpendProposal
	NewQuerier                            = keeper.NewQuerier

	// variable aliases
	ModuleCdc                 = types.ModuleCdc
	ErrInvalidProposalAmount  = types.ErrInvalidProposalAmount
	ErrEmptyProposalRecipient = types.ErrEmptyProposalRecipient
	CurrentDistPeriodKey      = types.CurrentDistPeriodKey
	PreviousBlockTimeKey      = types.PreviousBlockTimeKey
	KeyActive                 = types.KeyActive
	KeyPeriods                = types.KeyPeriods
	DefaultActive             = types.DefaultActive
	DefaultPeriods            = types.DefaultPeriods
	DefaultPreviousBlockTime  = types.DefaultPreviousBlockTime
	GovDenom                  = types.GovDenom
	ProposalHandler           = client.ProposalHandler
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, k Keeper)

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, supplyKeeper types.SupplyKeeper, gs GenesisState)

InitGenesis initializes the store state from a genesis state.

func NewCommunityPoolMultiSpendProposalHandler added in v0.14.2

func NewCommunityPoolMultiSpendProposalHandler(k Keeper) govtypes.Handler

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler creates an sdk.Handler for kavadist messages

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule app module type

func NewAppModule

func NewAppModule(keeper Keeper, supplyKeeper types.SupplyKeeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)

BeginBlock module begin-block

func (AppModule) EndBlock

EndBlock module end-block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis module export genesis

func (AppModule) InitGenesis

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

InitGenesis module init-genesis

func (AppModule) Name

func (AppModule) Name() string

Name module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns no sdk.Querier.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute module querier route name

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants register module invariants

func (AppModule) Route

func (AppModule) Route() string

Route module message route name

func (AppModule) WeightedOperations added in v0.8.0

func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation

WeightedOperations returns the all the auction module operations with their respective weights.

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis default genesis state

func (AppModuleBasic) GenerateGenesisState added in v0.8.0

func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the auction module

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns no root query command for the kavadist module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the root tx command for the crisis module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name get module 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(r *rand.Rand) []sim.ParamChange

RandomizedParams returns nil because auction has no params.

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec register module codec

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes registers REST routes for the kavadist module.

func (AppModuleBasic) RegisterStoreDecoder added in v0.8.0

func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for auction module's types

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis module validate genesis

type CommunityPoolMultiSpendProposal added in v0.14.2

type CommunityPoolMultiSpendProposal = types.CommunityPoolMultiSpendProposal

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

ExportGenesis export genesis state for cdp module

type Keeper

type Keeper = keeper.Keeper

type MultiSpendRecipient added in v0.14.2

type MultiSpendRecipient = types.MultiSpendRecipient

type MultiSpendRecipients added in v0.14.2

type MultiSpendRecipients = types.MultiSpendRecipients

type Params

type Params = types.Params

type Period

type Period = types.Period

type Periods

type Periods = types.Periods

Directories

Path Synopsis
cli
legacy

Jump to

Keyboard shortcuts

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