From 118d059db72b8088d74e5090d5be7b8a95ca2b30 Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:49:39 -0500 Subject: [PATCH 1/2] feat: migrate rest of L2s from tenderly API to tenderly node on 1% --- lib/handlers/injector-sor.ts | 2 +- lib/util/tenderlyNewEndpointRolloutPercent.ts | 12 ++++++------ package-lock.json | 14 +++++++------- package.json | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/handlers/injector-sor.ts b/lib/handlers/injector-sor.ts index 1bd408600f..bdee4dff0a 100644 --- a/lib/handlers/injector-sor.ts +++ b/lib/handlers/injector-sor.ts @@ -450,7 +450,7 @@ export abstract class InjectorSOR extends Injector< // The timeout for the underlying axios call to Tenderly, measured in milliseconds. 2.5 * 1000, TENDERLY_NEW_ENDPOINT_ROLLOUT_PERCENT[chainId], - [ChainId.MAINNET, ChainId.BASE] + [ChainId.MAINNET, ChainId.BASE, ChainId.ARBITRUM_ONE, ChainId.OPTIMISM, ChainId.POLYGON, ChainId.AVALANCHE, ChainId.BLAST, ChainId.WORLDCHAIN] ) const ethEstimateGasSimulator = new EthEstimateGasSimulator( diff --git a/lib/util/tenderlyNewEndpointRolloutPercent.ts b/lib/util/tenderlyNewEndpointRolloutPercent.ts index fbf8bddd0f..695d565b10 100644 --- a/lib/util/tenderlyNewEndpointRolloutPercent.ts +++ b/lib/util/tenderlyNewEndpointRolloutPercent.ts @@ -4,27 +4,27 @@ export const TENDERLY_NEW_ENDPOINT_ROLLOUT_PERCENT: { [chain in ChainId]: number [ChainId.MAINNET]: 100, [ChainId.GOERLI]: 0, [ChainId.SEPOLIA]: 0, - [ChainId.OPTIMISM]: 0, + [ChainId.OPTIMISM]: 1, [ChainId.OPTIMISM_GOERLI]: 0, [ChainId.OPTIMISM_SEPOLIA]: 0, - [ChainId.ARBITRUM_ONE]: 0, + [ChainId.ARBITRUM_ONE]: 1, [ChainId.ARBITRUM_GOERLI]: 0, [ChainId.ARBITRUM_SEPOLIA]: 0, - [ChainId.POLYGON]: 0, + [ChainId.POLYGON]: 1, [ChainId.POLYGON_MUMBAI]: 0, [ChainId.CELO]: 0, [ChainId.CELO_ALFAJORES]: 0, [ChainId.GNOSIS]: 0, [ChainId.MOONBEAM]: 0, [ChainId.BNB]: 0, - [ChainId.AVALANCHE]: 0, + [ChainId.AVALANCHE]: 1, [ChainId.BASE_GOERLI]: 0, [ChainId.BASE]: 100, [ChainId.ZORA]: 0, [ChainId.ZORA_SEPOLIA]: 0, [ChainId.ROOTSTOCK]: 0, - [ChainId.BLAST]: 0, + [ChainId.BLAST]: 1, [ChainId.ZKSYNC]: 0, - [ChainId.WORLDCHAIN]: 0, + [ChainId.WORLDCHAIN]: 1, [ChainId.ASTROCHAIN_SEPOLIA]: 0, } diff --git a/package-lock.json b/package-lock.json index 919105c9e3..d2ae14a995 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "@uniswap/permit2-sdk": "^1.3.0", "@uniswap/router-sdk": "^1.14.0", "@uniswap/sdk-core": "^5.9.0", - "@uniswap/smart-order-router": "4.8.8", + "@uniswap/smart-order-router": "4.9.0", "@uniswap/token-lists": "^1.0.0-beta.33", "@uniswap/universal-router-sdk": "^4.6.1", "@uniswap/v2-sdk": "^4.6.1", @@ -4508,9 +4508,9 @@ } }, "node_modules/@uniswap/smart-order-router": { - "version": "4.8.8", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.8.8.tgz", - "integrity": "sha512-sagAJne++x8y4hT7fA6zMNPa91O1fsx9ZtN5FVYgDjkg0Va4P4EQsRfLTiYx+lkelbftSXWJcaahZS9xUGZ8Wg==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.9.0.tgz", + "integrity": "sha512-todAPEom+30luGA0Xxt+zOey36iCEWbls8pu487h/Ltzg5F57DH0dTsdOus+HCXIvUvnb1En8Ed5SESug86ylg==", "dependencies": { "@eth-optimism/sdk": "^3.2.2", "@types/brotli": "^1.3.4", @@ -27959,9 +27959,9 @@ } }, "@uniswap/smart-order-router": { - "version": "4.8.8", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.8.8.tgz", - "integrity": "sha512-sagAJne++x8y4hT7fA6zMNPa91O1fsx9ZtN5FVYgDjkg0Va4P4EQsRfLTiYx+lkelbftSXWJcaahZS9xUGZ8Wg==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.9.0.tgz", + "integrity": "sha512-todAPEom+30luGA0Xxt+zOey36iCEWbls8pu487h/Ltzg5F57DH0dTsdOus+HCXIvUvnb1En8Ed5SESug86ylg==", "requires": { "@eth-optimism/sdk": "^3.2.2", "@types/brotli": "^1.3.4", diff --git a/package.json b/package.json index 9feec05db6..f5e9bc1705 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "@uniswap/permit2-sdk": "^1.3.0", "@uniswap/router-sdk": "^1.14.0", "@uniswap/sdk-core": "^5.9.0", - "@uniswap/smart-order-router": "4.8.8", + "@uniswap/smart-order-router": "4.9.0", "@uniswap/token-lists": "^1.0.0-beta.33", "@uniswap/universal-router-sdk": "^4.6.1", "@uniswap/v2-sdk": "^4.6.1", From 0cfab5b42e5a2d7a070ddbbcd5f92821830de662 Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:51:43 -0500 Subject: [PATCH 2/2] fix prettier --- lib/handlers/injector-sor.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/handlers/injector-sor.ts b/lib/handlers/injector-sor.ts index bdee4dff0a..80c308c37c 100644 --- a/lib/handlers/injector-sor.ts +++ b/lib/handlers/injector-sor.ts @@ -450,7 +450,16 @@ export abstract class InjectorSOR extends Injector< // The timeout for the underlying axios call to Tenderly, measured in milliseconds. 2.5 * 1000, TENDERLY_NEW_ENDPOINT_ROLLOUT_PERCENT[chainId], - [ChainId.MAINNET, ChainId.BASE, ChainId.ARBITRUM_ONE, ChainId.OPTIMISM, ChainId.POLYGON, ChainId.AVALANCHE, ChainId.BLAST, ChainId.WORLDCHAIN] + [ + ChainId.MAINNET, + ChainId.BASE, + ChainId.ARBITRUM_ONE, + ChainId.OPTIMISM, + ChainId.POLYGON, + ChainId.AVALANCHE, + ChainId.BLAST, + ChainId.WORLDCHAIN, + ] ) const ethEstimateGasSimulator = new EthEstimateGasSimulator(