Documentation ¶
Index ¶
- Constants
- Variables
- func FundAccount(r *rand.Rand, ctx sdk.Context, k keeper.Keeper, bk types.BankKeeper, ...) error
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomSpendableToken(r *rand.Rand, spendableCoin sdk.Coins) sdk.Coin
- func RandomTotalToken(r *rand.Rand, coins sdk.Coins) sdk.Coin
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgRemoveLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgSwapOrder(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( OpWeightMsgSwapOrder = "op_weight_msg_swap_order" OpWeightMsgAddLiquidity = "op_weight_msg_add_liquidity" OpWeightMsgRemoveLiquidity = "op_weight_msg_remove_liquidity" )
Simulation operation weights constants
View Source
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" )
Simulation operation weights constants
Variables ¶
View Source
var ( TypeMsgSwapOrder = sdk.MsgTypeURL(&types.MsgSwapOrder{}) TypeMsgAddLiquidity = sdk.MsgTypeURL(&types.MsgAddLiquidity{}) TypeMsgRemoveLiquidity = sdk.MsgTypeURL(&types.MsgRemoveLiquidity{}) )
Functions ¶
func FundAccount ¶
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding farming type.
func ProposalMsgs ¶
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
func RandomSpendableToken ¶
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for coinswap
func SimulateMsgAddLiquidity ¶
func SimulateMsgAddLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMsgAddLiquidity simulates the addition of liquidity
func SimulateMsgRemoveLiquidity ¶
func SimulateMsgRemoveLiquidity(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMsgRemoveLiquidity simulates the removal of liquidity
func SimulateMsgSwapOrder ¶
func SimulateMsgSwapOrder(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMsgSwapOrder simulates the swap of order
func SimulateMsgUpdateParams ¶
SimulateMsgUpdateParams returns a random MsgUpdateParams
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simulation.WeightedOperations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.