@1llet.xyz/erc4337-gasless-sdk 0.4.59 → 0.4.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2832,10 +2832,10 @@ var UNISWAP_V3_QUOTER = "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a";
2832
2832
  var USDC_ADDRESS = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
2833
2833
  var WETH_ADDRESS = "0x4200000000000000000000000000000000000006";
2834
2834
  var QUOTER_ABI = parseAbi([
2835
- "function quoteExactOutputSingle(tuple(address tokenIn, address tokenOut, uint256 amount, uint24 fee, uint160 sqrtPriceLimitX96) params) external returns (uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)"
2835
+ "function quoteExactOutputSingle((address tokenIn, address tokenOut, uint256 amount, uint24 fee, uint160 sqrtPriceLimitX96) params) external returns (uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)"
2836
2836
  ]);
2837
2837
  var ROUTER_ABI = parseAbi([
2838
- "function exactOutputSingle(tuple(address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) external payable returns (uint256 amountIn)"
2838
+ "function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) external payable returns (uint256 amountIn)"
2839
2839
  ]);
2840
2840
  var UniswapService = class {
2841
2841
  constructor() {
@@ -2880,8 +2880,8 @@ var UniswapService = class {
2880
2880
  tokenIn: USDC_ADDRESS,
2881
2881
  tokenOut: WETH_ADDRESS,
2882
2882
  fee: 500,
2883
- recipient: "0x0000000000000000000000000000000000000000",
2884
- // Router address constant for internal unwrap? usually encoded as address(0) or router itself
2883
+ recipient: UNISWAP_V3_ROUTER,
2884
+ // Router must hold WETH to unwrap it
2885
2885
  amountOut: amountOutETH,
2886
2886
  amountInMaximum: maxAmountInUSDC,
2887
2887
  sqrtPriceLimitX96: 0n