simulation

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommunityTax        = "community_tax"
	BaseProposerReward  = "base_proposer_reward"
	BonusProposerReward = "bonus_proposer_reward"
	WithdrawEnabled     = "withdraw_enabled"
)

Simulation parameter constants

View Source
const (
	OpWeightMsgSetWithdrawAddress                   = "op_weight_msg_set_withdraw_address"                      //nolint:gosec
	OpWeightMsgWithdrawDelegationReward             = "op_weight_msg_withdraw_delegation_reward"                //nolint:gosec
	OpWeightMsgWithdrawValidatorCommission          = "op_weight_msg_withdraw_validator_commission"             //nolint:gosec
	OpWeightMsgFundCommunityPool                    = "op_weight_msg_fund_community_pool"                       //nolint:gosec
	OpWeightMsgWithdrawTokenizeShareRecordReward    = "op_weight_msg_withdraw_tokenize_share_record_reward"     //nolint:gosec
	OpWeightMsgWithdrawAllTokenizeShareRecordReward = "op_weight_msg_withdraw_all_tokenize_share_record_reward" //nolint:gosec
)

Simulation operation weights constants

View Source
const OpWeightSubmitCommunitySpendProposal = "op_weight_submit_community_spend_proposal"

OpWeightSubmitCommunitySpendProposal app params key for community spend proposal

Variables

This section is empty.

Functions

func GenBaseProposerReward

func GenBaseProposerReward(r *rand.Rand) sdk.Dec

GenBaseProposerReward randomized BaseProposerReward

func GenBonusProposerReward

func GenBonusProposerReward(r *rand.Rand) sdk.Dec

GenBonusProposerReward randomized BonusProposerReward

func GenCommunityTax

func GenCommunityTax(r *rand.Rand) sdk.Dec

GenCommunityTax randomized CommunityTax

func GenWithdrawEnabled

func GenWithdrawEnabled(r *rand.Rand) bool

GenWithdrawEnabled returns a randomized WithdrawEnabled parameter.

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding distribution type.

func ParamChanges

func ParamChanges(r *rand.Rand) []simtypes.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func ProposalContents

func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent

ProposalContents defines the module weighted proposals' contents

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for distribution

func SdkWeightedOperations

SdkWeightedOperations returns all the operations from the module with their respective weights

func SimulateCommunityPoolSpendProposalContent

func SimulateCommunityPoolSpendProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn

SimulateCommunityPoolSpendProposalContent generates random community-pool-spend proposal content

func SimulateMsgFundCommunityPool

func SimulateMsgFundCommunityPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateMsgFundCommunityPool simulates MsgFundCommunityPool execution where a random account sends a random amount of its funds to the community pool.

func SimulateMsgSetWithdrawAddress

func SimulateMsgSetWithdrawAddress(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values.

func SimulateMsgWithdrawAllTokenizeShareRecordReward

func SimulateMsgWithdrawAllTokenizeShareRecordReward(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateMsgWithdrawAllTokenizeShareRecordReward simulates MsgWithdrawAllTokenizeShareRecordReward execution where a random account claim tokenize share record rewards from all records.

func SimulateMsgWithdrawDelegatorReward

func SimulateMsgWithdrawDelegatorReward(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateMsgWithdrawDelegatorReward generates a MsgWithdrawDelegatorReward with random values.

func SimulateMsgWithdrawValidatorCommission

func SimulateMsgWithdrawValidatorCommission(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateMsgWithdrawValidatorCommission generates a MsgWithdrawValidatorCommission with random values.

func SimulateSdkMsgFundCommunityPool

func SimulateSdkMsgFundCommunityPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateSdkMsgFundCommunityPool simulates MsgFundCommunityPool execution where a random account sends a random amount of its funds to the community pool.

func SimulateSdkMsgSetWithdrawAddress

func SimulateSdkMsgSetWithdrawAddress(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateSdkMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values.

func SimulateSdkMsgWithdrawDelegatorReward

func SimulateSdkMsgWithdrawDelegatorReward(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateSdkMsgWithdrawDelegatorReward generates a MsgWithdrawDelegatorReward with random values.

func SimulateSdkMsgWithdrawValidatorCommission

func SimulateSdkMsgWithdrawValidatorCommission(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk stakingkeeper.Keeper) simtypes.Operation

SimulateSdkMsgWithdrawValidatorCommission generates a MsgWithdrawValidatorCommission with random values.

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

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