planetmint-go/x/machine/simulation/notarize_liquid_asset.go
Lorenz Herzberger ec77745fcd
wip: updated machine module
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-06-17 09:29:05 +02:00

30 lines
912 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/machine/keeper"
"github.com/planetmint/planetmint-go/x/machine/types"
)
func SimulateMsgNotarizeLiquidAsset(
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.MsgNotarizeLiquidAsset{
Creator: simAccount.Address.String(),
}
// TODO: Handling the NotarizeLiquidAsset simulation
return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "NotarizeLiquidAsset simulation not implemented"), nil, nil
}
}