gov

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthModule

type AuthModule interface {
	RefreshAccounts(height int64, addresses []string) error
}

type BridgeModule

type BridgeModule = ParamsUpdater

type DistrModule

type DistrModule = ParamsUpdater

type MintModule

type MintModule interface {
	ParamsUpdater
}

type Module

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

Module represent x/gov module

func NewModule

func NewModule(
	source govsource.Source,
	authModule AuthModule,
	distrModule DistrModule,
	mintModule MintModule,
	slashingModule SlashingModule,
	stakingModule StakingModule,
	rarimocoreModule RarimoCoreModule,
	tokenmanagerModule TokenManagerModule,
	oracleManagerModule OracleManagerModule,
	bridgeModule BridgeModule,
	cdc codec.Codec,
	db *database.Db,
) *Module

NewModule returns a new Module instance

func (*Module) HandleBlock

HandleBlock implements modules.BlockModule

func (*Module) HandleGenesis

func (m *Module) HandleGenesis(doc *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 *juno.Tx) error

HandleMsg implements modules.MessageModule

func (*Module) HandleMsgExec added in v1.0.3

func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error

HandleMsgExec implements modules.AuthzMessageModule

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) UpdateParams

func (m *Module) UpdateParams(height int64) error

UpdateParams updates the governance parameters for the given height

func (*Module) UpdateProposal

func (m *Module) UpdateProposal(height int64, id uint64) error

func (*Module) UpdateProposalSnapshots

func (m *Module) UpdateProposalSnapshots(height int64, blockVals *tmctypes.ResultValidators, id uint64) error

type OracleManagerModule

type OracleManagerModule interface {
	ParamsUpdater
	HandleOracle(height int64, chain, account string) error
}

type ParamsUpdater

type ParamsUpdater interface {
	UpdateParams(height int64) error
}

type RarimoCoreModule

type RarimoCoreModule interface {
	ParamsUpdater
	SaveOperationByIndex(height int64, index string) error
	HandleUpdateContract(height int64, details tokenmanagertypes.ContractUpgradeDetails) error
	GetFeeToken(height int64, chain, contract string) (*tokenmanagertypes.FeeToken, error)
}

type SlashingModule

type SlashingModule = ParamsUpdater

type StakingModule

type StakingModule interface {
	ParamsUpdater
	GetStakingPool(height int64) (*types.Pool, error)
	GetStakingPoolSnapshot(height int64) (*types.PoolSnapshot, error)
	GetValidatorsWithStatus(height int64, status string) ([]stakingtypes.Validator, []types.Validator, error)
	GetValidatorsVotingPowers(height int64, vals *tmctypes.ResultValidators) ([]types.ValidatorVotingPower, error)
	GetValidatorsStatuses(height int64, validators []stakingtypes.Validator) ([]types.ValidatorStatus, error)
}

type TokenManagerModule

type TokenManagerModule interface {
	ParamsUpdater
	UpdateItems(items []*tokenmanagertypes.Item) error
	RemoveItems(indexes []string) error
	CreateCollection(
		index string,
		meta *tokenmanagertypes.CollectionMetadata,
		data []*tokenmanagertypes.CollectionData,
		items []*tokenmanagertypes.Item,
		onChainItems []*tokenmanagertypes.OnChainItem,
	) error
	UpdateCollectionDatas(datas []*tokenmanagertypes.CollectionData) error
	CreateCollectionDatas(height int64, datas []*tokenmanagertypes.CollectionData) error
	RemoveCollectionDatas(height int64, indexes []*tokenmanagertypes.CollectionDataIndex) error
	RemoveCollection(index string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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