planetmint-go/x/machine/simulation/mint_production.go
Lorenz Herzberger ca5055cef6
ignite scaffold message mint-production production:coins --module machine
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2024-08-05 13:43:14 +02:00

30 lines
883 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 SimulateMsgMintProduction(
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.MsgMintProduction{
Creator: simAccount.Address.String(),
}
// TODO: Handling the MintProduction simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "MintProduction simulation not implemented"), nil, nil
}
}