@pioneer-platform/uniswap-client 0.0.8 → 0.0.9
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/lib/index.js +3 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -169,6 +169,7 @@ var EIP155_MAINNET_CHAINS = {
|
|
|
169
169
|
logo: '/chain-logos/eip155-1.png',
|
|
170
170
|
rgb: '99, 125, 234',
|
|
171
171
|
permit2: universal_router_sdk_1.PERMIT2_ADDRESS,
|
|
172
|
+
universalRouter: universal_router_sdk_1.UNIVERSAL_ROUTER_ADDRESS,
|
|
172
173
|
rpc: 'https://eth.llamarpc.com',
|
|
173
174
|
namespace: 'eip155'
|
|
174
175
|
},
|
|
@@ -211,6 +212,7 @@ var EIP155_MAINNET_CHAINS = {
|
|
|
211
212
|
logo: '/chain-logos/base.png',
|
|
212
213
|
rgb: '242, 242, 242',
|
|
213
214
|
permit2: BASE_CONTRACTS.Permit2,
|
|
215
|
+
universalRouter: BASE_CONTRACTS.UniversalRouter,
|
|
214
216
|
rpc: 'https://mainnet.base.org',
|
|
215
217
|
namespace: 'eip155'
|
|
216
218
|
}
|
|
@@ -353,7 +355,7 @@ var buildTx = function (_a) {
|
|
|
353
355
|
case 6:
|
|
354
356
|
gasPrice = _c.sent();
|
|
355
357
|
adjustedGasPrice = gasPrice.mul(ethers.BigNumber.from(110)).div(ethers.BigNumber.from(100));
|
|
356
|
-
tx = __assign(__assign({ from: from, to:
|
|
358
|
+
tx = __assign(__assign({ from: from, to: EIP155_MAINNET_CHAINS['eip155:' + chainId].universalRouter, chainId: chainId, data: data }, (value && !isZero(value) ? { value: (0, v3_sdk_1.toHex)(value) } : {})), { gas: gas, gasPrice: (0, v3_sdk_1.toHex)(adjustedGasPrice), nonce: (0, v3_sdk_1.toHex)(nonce) });
|
|
357
359
|
return [2 /*return*/, tx];
|
|
358
360
|
case 7:
|
|
359
361
|
e_3 = _c.sent();
|