Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string
- func GenMaxBlockLock(r *rand.Rand, minBlockLock uint64) uint64
- func GenMinBlockLock(r *rand.Rand) uint64
- func GenRandBnbDeputy(r *rand.Rand) simulation.Account
- func GenRandBnbDeputyFixedFee(r *rand.Rand) uint64
- 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 ( BnbDeputyAddress = "bnb_deputy_address" MinBlockLock = "min_block_lock" MaxBlockLock = "max_block_lock" SupportedAssets = "supported_assets" )
Simulation parameter constants
const (
OpWeightMsgCreateAtomicSwap = "op_weight_msg_create_atomic_swap"
)
Simulation operation weights constants
Variables ¶
var ( MaxSupplyLimit = sdk.NewInt(1000000000000) ConsistentDenoms = [3]string{"bnb", "xrp", "btc"} )
Functions ¶
func DecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the module's corresponding type
func GenMaxBlockLock ¶ added in v0.8.0
GenMaxBlockLock randomized MaxBlockLock
func GenMinBlockLock ¶ added in v0.8.0
GenMinBlockLock randomized MinBlockLock
func GenRandBnbDeputy ¶ added in v0.8.0
func GenRandBnbDeputy(r *rand.Rand) simulation.Account
GenRandBnbDeputy randomized BnbDeputyAddress
func GenRandBnbDeputyFixedFee ¶ added in v0.8.0
GenRandBnbDeputyFixedFee randomized BnbDeputyFixedFee in range [2, 10000]
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.