planetmint-go/x/asset/simulation/notarize_asset.go
Lorenz Herzberger 8ba1306f2e
ignite scaffold message notarize-asset hash signature pub_key --module asset
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-07-03 21:22:44 +02:00

30 lines
831 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"
"planetmint-go/x/asset/keeper"
"planetmint-go/x/asset/types"
)
func SimulateMsgNotarizeAsset(
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.MsgNotarizeAsset{
Creator: simAccount.Address.String(),
}
// TODO: Handling the NotarizeAsset simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "NotarizeAsset simulation not implemented"), nil, nil
}
}