-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_market.go
31 lines (26 loc) · 905 Bytes
/
add_market.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package simulation
import (
//#nosec
"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/furychain/fury/x/market/keeper"
"github.com/furychain/fury/x/market/types"
)
// SimulateMsgAddMarket simulates the add market flow
func SimulateMsgAddMarket(
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.MsgAddMarket{
Creator: simAccount.Address.String(),
}
// TODO: Handling the AddMarket simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "AddMarket simulation not implemented"), nil, nil
}
}