planetmint-go/x/der/simulation/notarize_liquid_der_asset.go
Jürgen Eckel a9ba74fd59
added der asset notarization logic
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
2025-05-21 09:17:19 +02:00

30 lines
907 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/der/keeper"
"github.com/planetmint/planetmint-go/x/der/types"
)
func SimulateMsgNotarizeLiquidDerAsset(
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.MsgNotarizeLiquidDerAsset{
Creator: simAccount.Address.String(),
}
// TODO: Handling the NotarizeLiquidDerAsset simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "NotarizeLiquidDerAsset simulation not implemented"), nil, nil
}
}