Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string
- func GenClaimProposalParams(r *rand.Rand) types.ClaimProposalParams
- func GenPoolParams(r *rand.Rand) types.PoolParams
- func GenShieldStakingRateParam(r *rand.Rand) sdk.Dec
- func GetRandDenom(r *rand.Rand) string
- func ParamChanges(_ *rand.Rand) []simulation.ParamChange
- func ProposalContents(k keeper.Keeper, sk types.StakingKeeper) []simulation.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCreatePool(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgDepositCollateral(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgPurchaseShield(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgStakeForShield(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgUnstakeFromShield(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgUpdatePool(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgWithdrawCollateral(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgWithdrawReimbursement(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
- func SimulateMsgWithdrawRewards(k keeper.Keeper, ak types.AccountKeeper) simulation.Operation
- func SimulateShieldClaimProposalContent(k keeper.Keeper, sk types.StakingKeeper) simulation.ContentSimulatorFn
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( // C's operations OpWeightMsgCreatePool = "op_weight_msg_create_pool" OpWeightMsgUpdatePool = "op_weight_msg_update_pool" // B and C's operations OpWeightMsgDepositCollateral = "op_weight_msg_deposit_collateral" OpWeightMsgWithdrawCollateral = "op_weight_msg_withdraw_collateral" OpWeightMsgWithdrawRewards = "op_weight_msg_withdraw_rewards" // P's operations OpWeightMsgPurchaseShield = "op_weight_msg_purchase_shield" OpWeightShieldClaimProposal = "op_weight_msg_submit_claim_proposal" OpWeightStakeForShield = "op_weight_msg_stake_for_shield" OpWeightUnstakeFromShield = "op_weight_msg_unstake_from_shield" OpWeightWithdrawReimbursement = "op_weight_msg_withdraw_reimbursement" )
Variables ¶
var ( DefaultWeightMsgCreatePool = 10 DefaultWeightMsgUpdatePool = 20 DefaultWeightMsgDepositCollateral = 20 DefaultWeightMsgWithdrawCollateral = 20 DefaultWeightMsgWithdrawRewards = 10 DefaultWeightMsgPurchaseShield = 20 DefaultWeightMsgStakeForShield = 20 DefaultWeightMsgUnstakeFromShield = 15 DefaultWeightShieldClaimProposal = 5 DefaultWeightMsgWithdrawReimbursement = 5 DefaultIntMax = 100000000000 )
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding type of shield module.
func GenClaimProposalParams ¶
func GenClaimProposalParams(r *rand.Rand) types.ClaimProposalParams
GenClaimProposalParams returns a randomized ClaimProposalParams object.
func GenPoolParams ¶
func GenPoolParams(r *rand.Rand) types.PoolParams
GenPoolParams returns a randomized PoolParams object.
func GenShieldStakingRateParam ¶ added in v1.1.0
GenShieldStakingRateParam returns a randomized staking-shield rate.
func GetRandDenom ¶
GetRandDenom generates a random coin denom.
func ParamChanges ¶
func ParamChanges(_ *rand.Rand) []simulation.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation.
func ProposalContents ¶
func ProposalContents(k keeper.Keeper, sk types.StakingKeeper) []simulation.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState creates a random genesis state for module simulation.
func SimulateMsgCreatePool ¶
func SimulateMsgCreatePool(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgCreatePool generates a MsgCreatePool object with all of its fields randomized.
func SimulateMsgDepositCollateral ¶
func SimulateMsgDepositCollateral(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgDepositCollateral generates a MsgDepositCollateral object with all of its fields randomized.
func SimulateMsgPurchaseShield ¶
func SimulateMsgPurchaseShield(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgPurchaseShield generates a MsgPurchaseShield object with all of its fields randomized.
func SimulateMsgStakeForShield ¶ added in v1.1.0
func SimulateMsgStakeForShield(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgStakeForShield generates a MsgPurchaseShield object with all of its fields randomized.
func SimulateMsgUnstakeFromShield ¶ added in v1.1.0
func SimulateMsgUnstakeFromShield(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgUnstakeFromShield generates a MsgUnstakeFromShield object with all of its fields randomized.
func SimulateMsgUpdatePool ¶
func SimulateMsgUpdatePool(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgUpdatePool generates a MsgUpdatePool object with all of its fields randomized.
func SimulateMsgWithdrawCollateral ¶
func SimulateMsgWithdrawCollateral(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgWithdrawCollateral generates a MsgWithdrawCollateral object with all of its fields randomized.
func SimulateMsgWithdrawReimbursement ¶ added in v1.1.0
func SimulateMsgWithdrawReimbursement(k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.Operation
SimulateMsgWithdrawReimbursement generates a MsgWithdrawReimbursement object with randomized fields.
func SimulateMsgWithdrawRewards ¶
func SimulateMsgWithdrawRewards(k keeper.Keeper, ak types.AccountKeeper) simulation.Operation
SimulateMsgWithdrawRewards generates a MsgWithdrawRewards object with all of its fields randomized.
func SimulateShieldClaimProposalContent ¶
func SimulateShieldClaimProposalContent(k keeper.Keeper, sk types.StakingKeeper) simulation.ContentSimulatorFn
SimulateShieldClaimProposalContent generates random shield claim proposal content
func WeightedOperations ¶
func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, k keeper.Keeper, ak types.AccountKeeper, sk types.StakingKeeper) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.