mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
790753f156
* wip: refactor to allow multiple bep3 assets * update tests * sims: validate asset before claiming * move asset supply to params * update tests * fix sims * fix tests * wip: add migration from v0.9 -> v0.10 bep3 * fix build and migration tests * nit: rename file * move asset supply out of params * update committee tests * fix sims * address review comments * address review comments * address review comments
26 lines
531 B
Go
26 lines
531 B
Go
package simulation
|
|
|
|
import (
|
|
"fmt"
|
|
"math/rand"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
|
|
|
"github.com/kava-labs/kava/x/bep3/types"
|
|
)
|
|
|
|
const (
|
|
keyAssetParams = "AssetParams"
|
|
)
|
|
|
|
// ParamChanges defines the parameters that can be modified by param change proposals
|
|
func ParamChanges(r *rand.Rand) []simulation.ParamChange {
|
|
return []simulation.ParamChange{
|
|
simulation.NewSimParamChange(types.ModuleName, keyAssetParams,
|
|
func(r *rand.Rand) string {
|
|
return fmt.Sprintf("\"%s\"", GenSupportedAssets(r))
|
|
},
|
|
),
|
|
}
|
|
}
|