mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-15 04:25:27 +00:00
3375484f79
* Use cosmossdk.io/errors for deprecated error methods * Update error registration with cosmossdk.io/errors * Use cosmossdk.io/math for deprecated sdk.Int alias * Fix modified proto file * Update sdk.Int usage in swap hooks * Update e2e test deprecated method usage
26 lines
805 B
Go
26 lines
805 B
Go
package simulation
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
"github.com/cosmos/cosmos-sdk/types/module"
|
|
|
|
"github.com/kava-labs/kava/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)
|
|
}
|