Documentation
¶
Index ¶
- func CheckContractAddressIsDisabled(disabledPrecompiles []string, addr common.Address, methodId []byte) error
- func NewMsgServerImpl(m v1.MsgServer, k *Keeper) types.MsgServerPro
- type Keeper
- func (keeper Keeper) ActivateVotingPeriod(ctx sdk.Context, proposal govv1.Proposal)
- func (keeper Keeper) AddDeposit(ctx sdk.Context, proposalID uint64, depositorAddr sdk.AccAddress, ...) (bool, error)
- func (keeper Keeper) CheckDisabledPrecompiles(ctx sdk.Context, contractAddress common.Address, methodId []byte) error
- func (keeper Keeper) EGFParams(c context.Context, _ *types.QueryEGFParamsRequest) (*types.QueryEGFParamsResponse, error)
- func (keeper Keeper) EGFProposalMinDeposit(ctx sdk.Context, msgType string, claimCoin sdk.Coins) sdk.Coins
- func (keeper Keeper) EndBlocker(ctx sdk.Context)
- func (keeper Keeper) GetDisabledMsgs(ctx sdk.Context) []string
- func (keeper Keeper) GetEGFParams(ctx sdk.Context) (params types.EGFParams)
- func (keeper Keeper) GetFXParams(ctx sdk.Context, msgType string) (params types.Params)
- func (keeper Keeper) GetMaxDepositPeriod(ctx sdk.Context, msgType string) *time.Duration
- func (keeper Keeper) GetMinDeposit(ctx sdk.Context, msgType string) []sdk.Coin
- func (keeper Keeper) GetMinInitialDeposit(ctx sdk.Context, msgType string) sdk.Coin
- func (keeper Keeper) GetQuorum(ctx sdk.Context, msgType string) string
- func (keeper Keeper) GetSwitchParams(ctx sdk.Context) (params types.SwitchParams)
- func (keeper Keeper) GetThreshold(ctx sdk.Context, msgType string) string
- func (keeper Keeper) GetVetoThreshold(ctx sdk.Context, msgType string) string
- func (keeper Keeper) GetVotingPeriod(ctx sdk.Context, msgType string) *time.Duration
- func (keeper Keeper) InitFxGovParams(ctx sdk.Context) error
- func (keeper Keeper) NeedMinDeposit(ctx sdk.Context, proposal govv1.Proposal) sdk.Coins
- func (keeper Keeper) Params(c context.Context, re *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (keeper Keeper) SetAllParams(ctx sdk.Context, params []*types.Params) error
- func (keeper Keeper) SetEGFParams(ctx sdk.Context, params *types.EGFParams) error
- func (keeper Keeper) SetFXParams(ctx sdk.Context, params *types.Params) error
- func (keeper Keeper) SetSwitchParams(ctx sdk.Context, params *types.SwitchParams) error
- func (keeper Keeper) SwitchParams(c context.Context, _ *types.QuerySwitchParamsRequest) (*types.QuerySwitchParamsResponse, error)
- func (keeper Keeper) Tally(ctx sdk.Context, proposal govv1.Proposal) (passes bool, burnDeposits bool, tallyResults govv1.TallyResult)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func NewKeeper ¶
func NewKeeper(bk govtypes.BankKeeper, sk govtypes.StakingKeeper, keys map[string]*storetypes.KVStoreKey, gk *govkeeper.Keeper, cdc codec.BinaryCodec, authority string) *Keeper
func (Keeper) ActivateVotingPeriod ¶
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) EGFParams ¶
func (keeper Keeper) EGFParams(c context.Context, _ *types.QueryEGFParamsRequest) (*types.QueryEGFParamsResponse, error)
func (Keeper) EGFProposalMinDeposit ¶
func (Keeper) EndBlocker ¶
EndBlocker called every block, process inflation, update validator set.
func (Keeper) GetEGFParams ¶
GetEGFParams gets the gov module's parameters.
func (Keeper) GetFXParams ¶
GetFXParams gets the gov module's parameters.
func (Keeper) GetMaxDepositPeriod ¶
func (Keeper) GetMinDeposit ¶
func (Keeper) GetMinInitialDeposit ¶
func (Keeper) GetSwitchParams ¶
func (keeper Keeper) GetSwitchParams(ctx sdk.Context) (params types.SwitchParams)
func (Keeper) GetThreshold ¶
func (Keeper) GetVetoThreshold ¶
func (Keeper) GetVotingPeriod ¶
func (Keeper) NeedMinDeposit ¶
func (Keeper) Params ¶
func (keeper Keeper) Params(c context.Context, re *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetAllParams ¶
SetAllParams sets batch the gov module's parameters.
func (Keeper) SetEGFParams ¶
SetEGFParams sets the gov module's parameters.
func (Keeper) SetFXParams ¶
SetFXParams sets the gov module's parameters.
func (Keeper) SetSwitchParams ¶
func (Keeper) SwitchParams ¶
func (keeper Keeper) SwitchParams(c context.Context, _ *types.QuerySwitchParamsRequest) (*types.QuerySwitchParamsResponse, error)
type Migrator ¶
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.
Click to show internal directories.
Click to hide internal directories.