2020-04-24 21:55:18 +00:00
|
|
|
package simulation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/cosmos/cosmos-sdk/types/module"
|
|
|
|
|
|
|
|
"github.com/kava-labs/kava/x/incentive/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2020-06-05 02:14:40 +00:00
|
|
|
CollateralDenoms = []string{}
|
2020-04-24 21:55:18 +00:00
|
|
|
RewardDenom = "ukava"
|
|
|
|
MaxTotalAssetReward = sdk.NewInt(1000000000)
|
|
|
|
)
|
|
|
|
|
|
|
|
// RandomizedGenState generates a random GenesisState for incentive module
|
|
|
|
func RandomizedGenState(simState *module.SimulationState) {
|
2020-06-05 02:14:40 +00:00
|
|
|
|
2020-04-24 21:55:18 +00:00
|
|
|
// New genesis state holds valid, linked reward periods, claim periods, and claim period IDs
|
2021-01-18 19:12:37 +00:00
|
|
|
incentiveGenesis := types.DefaultGenesisState()
|
2020-04-24 21:55:18 +00:00
|
|
|
|
|
|
|
fmt.Printf("Selected randomly generated %s parameters:\n%s\n", types.ModuleName, codec.MustMarshalJSONIndent(simState.Cdc, incentiveGenesis))
|
|
|
|
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(incentiveGenesis)
|
|
|
|
}
|