planetmint-go/x/dao/simulation/reissue_rddl_result.go
Jürgen Eckel 128a406158
ignite scaffold message --module dao reissueRDDLResult proposer:string tx-id:string block-height:uint
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2023-10-05 17:13:45 +02:00

30 lines
887 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 SimulateMsgReissueRDDLResult(
ak types.AccountKeeper,
bk types.BankKeeper,
k 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.MsgReissueRDDLResult{
Creator: simAccount.Address.String(),
}
// TODO: Handling the ReissueRDDLResult simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "ReissueRDDLResult simulation not implemented"), nil, nil
}
}