gpu-compute-chain/x/colinearcore/simulation/unlock_funds.go

30 lines
827 B
Go
Raw Normal View History

2022-09-08 14:49:56 -07:00
package simulation
import (
"math/rand"
"colinear/x/colinearcore/keeper"
"colinear/x/colinearcore/types"
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
func SimulateMsgUnlockFunds(
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.MsgUnlockFunds{
Creator: simAccount.Address.String(),
}
// TODO: Handling the UnlockFunds simulation
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "UnlockFunds simulation not implemented"), nil, nil
}
}