34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
package qpos
|
|
|
|
import (
|
|
"git.cw.tr/mukan-network/mukan-sdk/types/module"
|
|
simtypes "git.cw.tr/mukan-network/mukan-sdk/types/simulation"
|
|
|
|
"mukan/x/qpos/types"
|
|
)
|
|
|
|
// GenerateGenesisState creates a randomized GenState of the module.
|
|
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
|
|
accs := make([]string, len(simState.Accounts))
|
|
for i, acc := range simState.Accounts {
|
|
accs[i] = acc.Address.String()
|
|
}
|
|
qposGenesis := types.GenesisState{
|
|
Params: types.DefaultParams(),
|
|
}
|
|
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&qposGenesis)
|
|
}
|
|
|
|
// RegisterStoreDecoder registers a decoder.
|
|
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {}
|
|
|
|
// WeightedOperations returns the all the gov module operations with their respective weights.
|
|
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
|
|
operations := make([]simtypes.WeightedOperation, 0)
|
|
return operations
|
|
}
|
|
|
|
// ProposalMsgs returns msgs used for governance proposals for simulations.
|
|
func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg {
|
|
return []simtypes.WeightedProposalMsg{}
|
|
}
|