Documentation ¶
Index ¶
- func NewLegacyMsgServerImpl(govAcct string, v1Server v1.MsgServer) v1beta1.MsgServer
- func NewMsgServerImpl(m v1.MsgServer, k Keeper) *msgServer
- 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) AssertFXMetadata(pm fxgovtypes.FXMetadata) error
- func (keeper Keeper) Config() types.Config
- 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) GetEGFParams(ctx sdk.Context) (params types.EGFParams)
- 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) GetParams(ctx sdk.Context, msgType string) (params types.Params)
- func (keeper Keeper) GetQuorum(ctx sdk.Context, msgType string) string
- 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) SetParams(ctx sdk.Context, params *types.Params) error
- func (keeper Keeper) SubmitProposal(ctx sdk.Context, messages []sdk.Msg, fxMetadata string) (v1.Proposal, error)
- func (keeper Keeper) Tally(ctx sdk.Context, proposal govv1.Proposal) (passes bool, burnDeposits bool, tallyResults govv1.TallyResult)
- type LegacyMsgServer
- func (k LegacyMsgServer) Deposit(goCtx context.Context, msg *v1beta1.MsgDeposit) (*v1beta1.MsgDepositResponse, error)
- func (k LegacyMsgServer) SubmitProposal(goCtx context.Context, msg *v1beta1.MsgSubmitProposal) (*v1beta1.MsgSubmitProposalResponse, error)
- func (k LegacyMsgServer) Vote(goCtx context.Context, msg *v1beta1.MsgVote) (*v1beta1.MsgVoteResponse, error)
- func (k LegacyMsgServer) VoteWeighted(goCtx context.Context, msg *v1beta1.MsgVoteWeighted) (*v1beta1.MsgVoteWeightedResponse, error)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLegacyMsgServerImpl ¶
NewLegacyMsgServerImpl returns an implementation of the v1beta1 legacy MsgServer interface. It wraps around the current MsgServer
func NewMsgServerImpl ¶
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, key storetypes.StoreKey, gk govkeeper.Keeper, config types.Config, 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) AssertFXMetadata ¶
func (keeper Keeper) AssertFXMetadata(pm fxgovtypes.FXMetadata) error
AssertFXMetadata returns an error if given metadata invalid
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) GetMaxDepositPeriod ¶
func (Keeper) GetMinDeposit ¶
func (Keeper) GetMinInitialDeposit ¶
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.
type LegacyMsgServer ¶
type LegacyMsgServer struct {
// contains filtered or unexported fields
}
func (LegacyMsgServer) Deposit ¶
func (k LegacyMsgServer) Deposit(goCtx context.Context, msg *v1beta1.MsgDeposit) (*v1beta1.MsgDepositResponse, error)
func (LegacyMsgServer) SubmitProposal ¶
func (k LegacyMsgServer) SubmitProposal(goCtx context.Context, msg *v1beta1.MsgSubmitProposal) (*v1beta1.MsgSubmitProposalResponse, error)
func (LegacyMsgServer) Vote ¶
func (k LegacyMsgServer) Vote(goCtx context.Context, msg *v1beta1.MsgVote) (*v1beta1.MsgVoteResponse, error)
func (LegacyMsgServer) VoteWeighted ¶
func (k LegacyMsgServer) VoteWeighted(goCtx context.Context, msg *v1beta1.MsgVoteWeighted) (*v1beta1.MsgVoteWeightedResponse, error)
type Migrator ¶
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶
NewMigrator returns a new Migrator.