Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) []simtypes.WeightedProposalMsg
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgConvertCoin(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgConvertErc20(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgRegisterCoin(k keeper.Keeper, bk types.BankKeeper) simtypes.MsgSimulatorFn
- func SimulateMsgRegisterERC20(k keeper.Keeper, accountKeeper types.AccountKeeper, ...) simtypes.MsgSimulatorFn
- func SimulateMsgToggleTokenConversion(k keeper.Keeper, bankKeeper types.BankKeeper, evmKeeper types.EVMKeeper, ...) simtypes.MsgSimulatorFn
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func SimulateRegisterCoin(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account, k keeper.Keeper, ...) (sdk.Msg, error)
- func SimulateRegisterERC20(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account, k keeper.Keeper, ...) (sdk.Msg, error)
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( OpWeightMsgConvertCoin = "op_weight_msg_convert_coin" OpWeightMsgConvertErc20 = "op_weight_msg_convert_erc20" )
Simulation operation weights constants.
View Source
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" OpWeightSimulateRegisterCoinProposal = "op_weight_register_coin_proposal" OpWeightSimulateRegisterERC20Proposal = "op_weight_register_erc20_proposal" OpWeightSimulateToggleTokenConversionProposal = "op_weight_toggle_token_conversion_proposal" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding farming type.
func ProposalMsgs ¶
func ProposalMsgs(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ek types.EVMKeeper, fk types.FeeMarketKeeper) []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
func SimulateMsgConvertCoin ¶
func SimulateMsgConvertCoin(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMsgConvertCoin generates a MsgConvertCoin with random values for convertCoinNativeCoin
func SimulateMsgConvertErc20 ¶
func SimulateMsgConvertErc20(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ek types.EVMKeeper, fk types.FeeMarketKeeper) simtypes.Operation
SimulateMsgConvertErc20 generates a MsgConvertErc20 with random values for convertERC20NativeCoin.
func SimulateMsgRegisterCoin ¶
func SimulateMsgRegisterCoin(k keeper.Keeper, bk types.BankKeeper) simtypes.MsgSimulatorFn
func SimulateMsgRegisterERC20 ¶
func SimulateMsgRegisterERC20(k keeper.Keeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, evmKeeper types.EVMKeeper, feemarketKeeper types.FeeMarketKeeper) simtypes.MsgSimulatorFn
func SimulateMsgToggleTokenConversion ¶
func SimulateMsgToggleTokenConversion(k keeper.Keeper, bankKeeper types.BankKeeper, evmKeeper types.EVMKeeper, feemarketKeeper types.FeeMarketKeeper) simtypes.MsgSimulatorFn
func SimulateMsgUpdateParams ¶
SimulateMsgUpdateParams returns a random MsgUpdateParams
func SimulateRegisterCoin ¶
func SimulateRegisterERC20 ¶
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ek types.EVMKeeper, fk types.FeeMarketKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.