genutil

package
v6.3.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package genutil defines a "wrapper" module around the Cosmos SDK's native x/genutil module. In other words, it provides the exact same functionality as the native module in that it simply embeds the native module. However, it overrides `InitGenesis` which will return no validator set updates. Instead, it is assumed that some other module will provide the validator set updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppModule

func NewAppModule(accountKeeper types.AccountKeeper,
	stakingKeeper types.StakingKeeper, deliverTx genesis.TxHandler,
	txEncodingConfig client.TxEncodingConfig,
) module.GenesisOnlyAppModule

NewAppModule creates a new AppModule object

Types

type AppModule

type AppModule struct {
	genutil.AppModule
	// contains filtered or unexported fields
}

AppModule implements an application module for the genutil module.

func (AppModule) InitGenesis

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

InitGenesis delegates the InitGenesis call to the underlying x/genutil module, however, it returns no validator updates as validator updates will be provided by the provider module.

Jump to

Keyboard shortcuts

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