Function buildComposableUtil

Builds an instruction for composable transaction. This is a generic function which creates the composable instructions to execute against composability stack

const instructions = buildComposable(
{ account: myMultichainAccount },
{
to: targetContractAddress,
functionName: 'exactInputSingle',
args: [
{
tokenIn: inToken.addressOn(baseSepolia.id),
tokenOut: outToken.addressOn(baseSepolia.id),
fee: 3000,
recipient: recipient,
deadline: BigInt(Math.floor(Date.now() / 1000) + 900),
amountIn: runtimeERC20BalanceOf({ targetAddress: recipient, tokenAddress: testnetMcUSDC.addressOn(baseSepolia.id), constraints: [] }),
amountOutMinimum: BigInt(1),
sqrtPriceLimitX96: BigInt(0),
},
]
chainId: baseSepolia.id,
abi: UniswapSwapRouterAbi
}
)