Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string
- func GenAssetSupply(r *rand.Rand, denom string) types.AssetSupply
- func GenMaxBlockLock(r *rand.Rand, minBlockLock uint64) uint64
- func GenMaxSwapAmount(r *rand.Rand, minAmount sdk.Int, supplyMax sdk.Int) sdk.Int
- func GenMinBlockLock(r *rand.Rand) uint64
- func GenMinSwapAmount(r *rand.Rand) sdk.Int
- func GenRandBnbDeputy(r *rand.Rand) simulation.Account
- func GenRandFixedFee(r *rand.Rand) sdk.Int
- func GenSupplyLimit(r *rand.Rand, max int) sdk.Int
- func GenSupportedAssets(r *rand.Rand) types.AssetParams
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCreateAtomicSwap(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
- func WeightedOperations(appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const (
OpWeightMsgCreateAtomicSwap = "op_weight_msg_create_atomic_swap"
)
Simulation operation weights constants
Variables ¶
var ( MaxSupplyLimit = 1000000000000 MinSupplyLimit = 100000000 MinSwapAmountLimit = 999 ConsistentDenoms = [3]string{"bnb", "xrp", "btc"} MinBlockLock = uint64(5) )
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the module's corresponding type
func GenAssetSupply ¶ added in v0.11.0
func GenAssetSupply(r *rand.Rand, denom string) types.AssetSupply
GenSupplyLimit generates a random SupplyLimit
func GenMaxBlockLock ¶ added in v0.8.0
GenMaxBlockLock randomized MaxBlockLock
func GenMaxSwapAmount ¶ added in v0.11.0
GenMaxSwapAmount randomized MaxAmount
func GenMinBlockLock ¶ added in v0.8.0
GenMinBlockLock randomized MinBlockLock
func GenMinSwapAmount ¶ added in v0.11.0
GenMinSwapAmount randomized MinAmount in range [1, 1000]
func GenRandBnbDeputy ¶ added in v0.8.0
func GenRandBnbDeputy(r *rand.Rand) simulation.Account
GenRandBnbDeputy randomized BnbDeputyAddress
func GenRandFixedFee ¶ added in v0.11.0
GenRandFixedFee randomized FixedFee in range [1, 10000]
func GenSupplyLimit ¶ added in v0.11.0
GenSupplyLimit generates a random SupplyLimit
func GenSupportedAssets ¶ added in v0.8.0
func GenSupportedAssets(r *rand.Rand) types.AssetParams
GenSupportedAssets gets randomized SupportedAssets
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simulation.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState
func SimulateMsgCreateAtomicSwap ¶ added in v0.8.0
func SimulateMsgCreateAtomicSwap(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation
SimulateMsgCreateAtomicSwap generates a MsgCreateAtomicSwap with random values
func WeightedOperations ¶ added in v0.8.0
func WeightedOperations( appParams simulation.AppParams, cdc *codec.Codec, ak types.AccountKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.