gov

package
v0.0.0-...-82415a5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleBlock

func HandleBlock(
	height int64, blockVals *tmctypes.ResultValidators,
	govClient govtypes.QueryClient, bankClient banktypes.QueryClient, stakingClient stakingtypes.QueryClient,
	cdc codec.Marshaler, db *database.Db,
) error

HandleBlock handles a new block by updating any eventually open proposal's status and tally result

func HandleGenesis

func HandleGenesis(appState map[string]json.RawMessage, cdc codec.Marshaler, db *database.Db) error

func HandleMsg

func HandleMsg(
	tx *juno.Tx, index int, msg sdk.Msg,
	govClient govtypes.QueryClient,
	cdc codec.Marshaler, db *database.Db,
) error

HandleMsg allows to handle the different utils related to the gov module

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represent x/gov module

func NewModule

func NewModule(
	bankClient banktypes.QueryClient, govClient govtypes.QueryClient, stakingClient stakingtypes.QueryClient,
	encodingConfig *params.EncodingConfig, db *database.Db,
) *Module

NewModule returns a new Module instance

func (*Module) HandleBlock

func (m *Module) HandleBlock(b *tmctypes.ResultBlock, _ []*types.Tx, vals *tmctypes.ResultValidators) error

HandleBlock implements modules.BlockModule

func (*Module) HandleGenesis

func (m *Module) HandleGenesis(_ *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error

HandleGenesis implements modules.Module

func (*Module) HandleMsg

func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *types.Tx) error

HandleMsg implements modules.MessageModule

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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