function createPlayBatchCall(upgradeAmount = 0) {
101, // upgrade 100 daix to play the game
web3.eth.abi.encodeParameters(
[toWad(upgradeAmount).toString()]
1, // approve the ticket fee
web3.eth.abi.encodeParameters(
[app.address, toWad("1").toString()]
202, // callAppAction to participate
app.contract.methods.participate("0x").encodeABI()
201, // create constant flow (10/mo)
sf.agreements.cfa.address,
web3.eth.abi.encodeParameters(
sf.agreements.cfa.contract.methods
MINIMUM_GAME_FLOW_RATE.toString(),
.encodeABI(), // callData
// Call the host with the batch call parameters
await sf.host.batchCall(createPlayBatchCall(100))