Documentation ¶
Index ¶
- Constants
- func GenAppendReward(r *rand.Rand, rules types.RewardRules, spendable sdk.Coins) (sdk.Coins, error)
- func GenDescription(r *rand.Rand) string
- func GenDestructible(r *rand.Rand) bool
- func GenLpToken(r *rand.Rand, spendableCoin sdk.Coins) (sdk.Coin, error)
- func GenRewardPerBlock(r *rand.Rand, coin sdk.Coin) (sdk.Coin, error)
- func GenRewardRule(r *rand.Rand, rules types.RewardRules) types.RewardRule
- func GenStake(r *rand.Rand, pool types.FarmPool, spendable sdk.Coins) (sdk.Coin, error)
- func GenStartHeight(r *rand.Rand, ctx sdk.Context) int64
- func GenTotalReward(r *rand.Rand, spendableCoin sdk.Coins) (sdk.Coin, error)
- func GenUnStake(r *rand.Rand, pool types.FarmPool, info types.FarmInfo) (sdk.Coin, error)
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAdjustPool(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgCreatePool(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgDestroyPool(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgHarvest(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgStake(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgUnStake(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( PoolCreationFee = "pool_creation_fee" MaxRewardCategoryN = "max_reward_category_n" )
const ( OpWeightMsgCreatePool = "op_weight_msg_create_pool" OpWeightMsgAdjustPool = "op_weight_msg_adjust_pool" OpWeightMsgStake = "op_weight_msg_stake" OpWeightMsgUnStake = "op_weight_msg_unStake" OpWeightMsgHarvest = "op_weight_msg_harvest" OpWeightMsgDestroyPool = "op_weight_msg_destroy_pool" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func GenAppendReward ¶
func GenAppendReward( r *rand.Rand, rules types.RewardRules, spendable sdk.Coins, ) (sdk.Coins, error)
GenAppendReward randomized appendReward
func GenLpToken ¶
GenLpToken randomized lpToken
func GenRewardPerBlock ¶
GenRewardPerBlock randomized rewardPerBlock
func GenRewardRule ¶
func GenRewardRule(r *rand.Rand, rules types.RewardRules) types.RewardRule
GenRewardRule randomized rewardRule
func GenStake ¶
GenStake randomized stake
func GenStartHeight ¶
GenStartHeight randomized startHeight
func GenTotalReward ¶
GenTotalReward randomized totalReward
func GenUnStake ¶
GenUnStake randomized unStake
func NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding slashing type
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for farm
func SimulateMsgAdjustPool ¶
func SimulateMsgAdjustPool( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgAdjustPool simulates MsgAdjustPool
func SimulateMsgCreatePool ¶
func SimulateMsgCreatePool( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgCreatePool randomized CreatePool
func SimulateMsgDestroyPool ¶
func SimulateMsgDestroyPool( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgDestroyPool simulates MsgDestroyPool
func SimulateMsgHarvest ¶
func SimulateMsgHarvest( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgHarvest simulates MsgHarvest
func SimulateMsgStake ¶
func SimulateMsgStake( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgStake simulates MsgStake
func SimulateMsgUnStake ¶
func SimulateMsgUnStake( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
SimulateMsgUnStake simulates MsgUnStake
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.