mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
30 lines
912 B
Go
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
|
|
}
|
|
}
|