mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-05-19 21:36:38 +00:00

* added InitPoP message * added getChallenge query to inspect challenges * adjusted towards a unique block height identification unit: int64, not uint64 * added challenge param finished to identify challenges that weren't completed but will be part of re-issuance. Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
30 lines
845 B
Go
30 lines
845 B
Go
package simulation
|
|
|
|
import (
|
|
"math/rand"
|
|
|
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
|
"github.com/planetmint/planetmint-go/x/dao/keeper"
|
|
"github.com/planetmint/planetmint-go/x/dao/types"
|
|
)
|
|
|
|
func SimulateMsgInitPop(
|
|
_ types.AccountKeeper,
|
|
_ types.BankKeeper,
|
|
_ keeper.Keeper,
|
|
) simtypes.Operation {
|
|
return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string,
|
|
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {
|
|
simAccount, _ := simtypes.RandomAcc(r, accs)
|
|
msg := &types.MsgInitPop{
|
|
Creator: simAccount.Address.String(),
|
|
}
|
|
|
|
// TODO: Handling the InitPop simulation
|
|
|
|
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "InitPop simulation not implemented"), nil, nil
|
|
}
|
|
}
|