gpu-compute-chain/x/colinear-core/simulation/new_auction.go

31 lines
826 B
Go
Raw Normal View History

2022-08-27 14:19:03 -07:00
package simulation
import (
"math/rand"
"colinear/x/colinear-core/keeper"
"colinear/x/colinear-core/types"
2022-08-27 14:19:03 -07:00
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
func SimulateMsgNewAuction(
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.MsgNewAuction{
Creator: simAccount.Address.String(),
}
// TODO: Handling the NewAuction simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "NewAuction simulation not implemented"), nil, nil
}
}