Documentation ¶
Index ¶
- type AuthModule
- type BridgeModule
- type DistrModule
- type MintModule
- type Module
- func (m *Module) HandleBlock(b *tmctypes.ResultBlock, res *tmctypes.ResultBlockResults, _ []*juno.Tx, ...) error
- func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *juno.Tx) error
- func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error
- func (m *Module) Name() string
- func (m *Module) UpdateParams(height int64) error
- func (m *Module) UpdateProposal(height int64, id uint64) error
- func (m *Module) UpdateProposalSnapshots(height int64, blockVals *tmctypes.ResultValidators, id uint64) error
- type OracleManagerModule
- type ParamsUpdater
- type RarimoCoreModule
- type SlashingModule
- type StakingModule
- type TokenManagerModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthModule ¶
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 ¶
func (m *Module) HandleBlock( b *tmctypes.ResultBlock, res *tmctypes.ResultBlockResults, _ []*juno.Tx, vals *tmctypes.ResultValidators, ) error
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) 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) UpdateParams ¶
UpdateParams updates the governance parameters for the given height
func (*Module) UpdateProposalSnapshots ¶
type OracleManagerModule ¶
type OracleManagerModule interface { ParamsUpdater HandleOracle(height int64, chain, account string) error }
type ParamsUpdater ¶
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 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.