0g-chain/x/incentive/simulation/genesis.go
2024-05-01 11:17:24 +08:00

26 lines
806 B
Go

package simulation
import (
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/0glabs/0g-chain/x/incentive/types"
)
var (
CollateralDenoms = []string{}
RewardDenom = "ukava"
MaxTotalAssetReward = sdkmath.NewInt(1000000000)
)
// RandomizedGenState generates a random GenesisState for incentive module
func RandomizedGenState(simState *module.SimulationState) {
// New genesis state holds valid, linked reward periods, claim periods, and claim period IDs
incentiveGenesis := types.DefaultGenesisState()
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)
}