keeper

package
v7.4.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckContractAddressIsDisabled

func CheckContractAddressIsDisabled(disabledPrecompiles []string, addr common.Address, methodId []byte) error

func NewMsgServerImpl

func NewMsgServerImpl(m v1.MsgServer, k *Keeper) types.MsgServerPro

NewMsgServerImpl returns an implementation of the gov MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	*govkeeper.Keeper
	// contains filtered or unexported fields
}

func (Keeper) ActivateVotingPeriod

func (keeper Keeper) ActivateVotingPeriod(ctx sdk.Context, proposal govv1.Proposal)

func (Keeper) AddDeposit

func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress, depositAmount sdk.Coins) (bool, error)

AddDeposit adds or updates a deposit of a specific depositor on a specific proposal Activates voting period when appropriate

func (Keeper) CheckDisabledPrecompiles

func (keeper Keeper) CheckDisabledPrecompiles(ctx sdk.Context, contractAddress common.Address, methodId []byte) error

func (Keeper) EGFParams

func (Keeper) EGFProposalMinDeposit

func (keeper Keeper) EGFProposalMinDeposit(ctx sdk.Context, msgType string, claimCoin sdk.Coins) sdk.Coins

func (Keeper) EndBlocker

func (keeper Keeper) EndBlocker(ctx sdk.Context)

EndBlocker called every block, process inflation, update validator set.

func (Keeper) GetDisabledMsgs

func (keeper Keeper) GetDisabledMsgs(ctx sdk.Context) []string

func (Keeper) GetEGFParams

func (keeper Keeper) GetEGFParams(ctx sdk.Context) (params types.EGFParams)

GetEGFParams gets the gov module's parameters.

func (Keeper) GetFXParams

func (keeper Keeper) GetFXParams(ctx sdk.Context, msgType string) (params types.Params)

GetFXParams gets the gov module's parameters.

func (Keeper) GetMaxDepositPeriod

func (keeper Keeper) GetMaxDepositPeriod(ctx sdk.Context, msgType string) *time.Duration

func (Keeper) GetMinDeposit

func (keeper Keeper) GetMinDeposit(ctx sdk.Context, msgType string) []sdk.Coin

func (Keeper) GetMinInitialDeposit

func (keeper Keeper) GetMinInitialDeposit(ctx sdk.Context, msgType string) sdk.Coin

func (Keeper) GetQuorum

func (keeper Keeper) GetQuorum(ctx sdk.Context, msgType string) string

func (Keeper) GetSwitchParams

func (keeper Keeper) GetSwitchParams(ctx sdk.Context) (params types.SwitchParams)

func (Keeper) GetThreshold

func (keeper Keeper) GetThreshold(ctx sdk.Context, msgType string) string

func (Keeper) GetVetoThreshold

func (keeper Keeper) GetVetoThreshold(ctx sdk.Context, msgType string) string

func (Keeper) GetVotingPeriod

func (keeper Keeper) GetVotingPeriod(ctx sdk.Context, msgType string) *time.Duration

func (Keeper) InitFxGovParams

func (keeper Keeper) InitFxGovParams(ctx sdk.Context) error

func (Keeper) NeedMinDeposit

func (keeper Keeper) NeedMinDeposit(ctx sdk.Context, proposal govv1.Proposal) sdk.Coins

func (Keeper) Params

func (Keeper) SetAllParams

func (keeper Keeper) SetAllParams(ctx sdk.Context, params []*types.Params) error

SetAllParams sets batch the gov module's parameters.

func (Keeper) SetEGFParams

func (keeper Keeper) SetEGFParams(ctx sdk.Context, params *types.EGFParams) error

SetEGFParams sets the gov module's parameters.

func (Keeper) SetFXParams

func (keeper Keeper) SetFXParams(ctx sdk.Context, params *types.Params) error

SetFXParams sets the gov module's parameters.

func (Keeper) SetSwitchParams

func (keeper Keeper) SetSwitchParams(ctx sdk.Context, params *types.SwitchParams) error

func (Keeper) Tally

func (keeper Keeper) Tally(ctx sdk.Context, proposal govv1.Proposal) (passes bool, burnDeposits bool, tallyResults govv1.TallyResult)

Tally iterates over the votes and updates the tally of a proposal based on the voting power of the voters

type Migrator

type Migrator struct {
	govkeeper.Migrator
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(keeper *Keeper, legacySubspace exported.ParamSubspace) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate3to4

func (m Migrator) Migrate3to4(ctx sdk.Context) error

Migrate3to4 migrates from version 3 to 4.

Jump to

Keyboard shortcuts

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