@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.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2856,10 +2856,10 @@ var UNISWAP_V3_QUOTER = "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a";
|
|
|
2856
2856
|
var USDC_ADDRESS = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
2857
2857
|
var WETH_ADDRESS = "0x4200000000000000000000000000000000000006";
|
|
2858
2858
|
var QUOTER_ABI = viem.parseAbi([
|
|
2859
|
-
"function quoteExactOutputSingle(
|
|
2859
|
+
"function quoteExactOutputSingle((address tokenIn, address tokenOut, uint256 amount, uint24 fee, uint160 sqrtPriceLimitX96) params) external returns (uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)"
|
|
2860
2860
|
]);
|
|
2861
2861
|
var ROUTER_ABI = viem.parseAbi([
|
|
2862
|
-
"function exactOutputSingle(
|
|
2862
|
+
"function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96) params) external payable returns (uint256 amountIn)"
|
|
2863
2863
|
]);
|
|
2864
2864
|
var UniswapService = class {
|
|
2865
2865
|
constructor() {
|
|
@@ -2904,8 +2904,8 @@ var UniswapService = class {
|
|
|
2904
2904
|
tokenIn: USDC_ADDRESS,
|
|
2905
2905
|
tokenOut: WETH_ADDRESS,
|
|
2906
2906
|
fee: 500,
|
|
2907
|
-
recipient:
|
|
2908
|
-
// Router
|
|
2907
|
+
recipient: UNISWAP_V3_ROUTER,
|
|
2908
|
+
// Router must hold WETH to unwrap it
|
|
2909
2909
|
amountOut: amountOutETH,
|
|
2910
2910
|
amountInMaximum: maxAmountInUSDC,
|
|
2911
2911
|
sqrtPriceLimitX96: 0n
|