diff --git a/package-lock.json b/package-lock.json index 1f317b9b2..933246b31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "version": "3.17.3-airdao.0", "license": "GPL", "dependencies": { - "@airdao/router-sdk": "1.6.0-airdao.0", + "@airdao/router-sdk": "1.6.0-airdao.1", "@airdao/sdk-core": "4.0.7-airdao.0", - "@airdao/universal-router-sdk": "1.5.8-airdao.0", - "@airdao/v2-sdk": "3.2.3-airdao.0", + "@airdao/universal-router-sdk": "1.5.8-airdao.1", + "@airdao/v2-sdk": "3.2.3-airdao.1", "@airdao/v3-sdk": "3.10.0-airdao.0", "@uniswap/default-token-list": "^11.2.0", "@uniswap/permit2-sdk": "^1.2.0", @@ -85,12 +85,12 @@ } }, "node_modules/@airdao/router-sdk": { - "version": "1.6.0-airdao.0", - "resolved": "https://registry.npmjs.org/@airdao/router-sdk/-/router-sdk-1.6.0-airdao.0.tgz", - "integrity": "sha512-36/NT7dpy887P1oy8RecqhEKPEC5V1Fdv/UJVdSSK11eZRy9J0xU2TlqKpUuw4NLBwmgdlhGCHHQSH9WeKqxyw==", + "version": "1.6.0-airdao.1", + "resolved": "https://registry.npmjs.org/@airdao/router-sdk/-/router-sdk-1.6.0-airdao.1.tgz", + "integrity": "sha512-75IxsZVl9UvXUZWxkT+NSTH1ySG9Gnl2R4vusXSSZ9IcSPyCaWVIXz0tfeWZXnlvlmI9/1p/Ozblz14MKnQSJg==", "dependencies": { "@airdao/sdk-core": "4.0.7-airdao.0", - "@airdao/v2-sdk": "3.2.3-airdao.0", + "@airdao/v2-sdk": "3.2.3-airdao.1", "@airdao/v3-sdk": "3.10.0-airdao.0", "@ethersproject/abi": "^5.5.0", "@uniswap/swap-router-contracts": "1.1.0" @@ -160,13 +160,13 @@ } }, "node_modules/@airdao/universal-router-sdk": { - "version": "1.5.8-airdao.0", - "resolved": "https://registry.npmjs.org/@airdao/universal-router-sdk/-/universal-router-sdk-1.5.8-airdao.0.tgz", - "integrity": "sha512-uU03fRVid541RtiwwD9ZTlr1kO2MY8zvApjY+3/AZCgUffRGvEJgkCNOEySU7AuAUMOx8F0XaY5IgGpP7IqhjA==", + "version": "1.5.8-airdao.1", + "resolved": "https://registry.npmjs.org/@airdao/universal-router-sdk/-/universal-router-sdk-1.5.8-airdao.1.tgz", + "integrity": "sha512-nGNdx6xg5IrZwRP/w2ZCQQEMHcNWpLIMFaJlO+JQsyDAHMxhEgvH86wmML35gKnWTSJFOAmcLb+n0sUN9N3Pog==", "dependencies": { - "@airdao/router-sdk": "1.6.0-airdao.0", + "@airdao/router-sdk": "1.6.0-airdao.1", "@airdao/sdk-core": "4.0.7-airdao.0", - "@airdao/v2-sdk": "3.2.3-airdao.0", + "@airdao/v2-sdk": "3.2.3-airdao.1", "@airdao/v3-sdk": "3.10.0-airdao.0", "@uniswap/permit2-sdk": "^1.2.0", "@uniswap/universal-router": "1.4.3", @@ -178,9 +178,9 @@ } }, "node_modules/@airdao/v2-sdk": { - "version": "3.2.3-airdao.0", - "resolved": "https://registry.npmjs.org/@airdao/v2-sdk/-/v2-sdk-3.2.3-airdao.0.tgz", - "integrity": "sha512-cY3XMNxxQnd4RTARFTyi8jokccGfJWGVDA36PBcnpqdv880EhOlH0qxEHKzGF+HCf/1zAMfrMhMpSvOQaqV3UQ==", + "version": "3.2.3-airdao.1", + "resolved": "https://registry.npmjs.org/@airdao/v2-sdk/-/v2-sdk-3.2.3-airdao.1.tgz", + "integrity": "sha512-OkPn6V4mf4sObp6rVc/1anXolqDHyrPZIvJIW9MG+GGW3hzhJuKuM0bSPCdzIH8sehuZFas3Kv99HgPRuEvMDw==", "dependencies": { "@airdao/sdk-core": "4.0.7-airdao.0", "@ethersproject/address": "^5.0.0", @@ -8412,18 +8412,6 @@ "node": ">= 6" } }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "optional": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, "node_modules/mnemonist": { "version": "0.38.5", "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz", @@ -8650,6 +8638,18 @@ "node": "*" } }, + "node_modules/mv/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "optional": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, "node_modules/mv/node_modules/rimraf": { "version": "2.4.5", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", @@ -11434,9 +11434,9 @@ } }, "node_modules/typechain": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-5.0.0.tgz", - "integrity": "sha512-Ko2/8co0FUmPUkaXPcb8PC3ncWa5P72nvkiNMgcomd4OAInltJlITF0kcW2cZmI2sFkvmaHV5TZmCnOHgo+i5Q==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/typechain/-/typechain-5.2.0.tgz", + "integrity": "sha512-0INirvQ+P+MwJOeMct+WLkUE4zov06QxC96D+i3uGFEHoiSkZN70MKDQsaj8zkL86wQwByJReI2e7fOUwECFuw==", "dev": true, "dependencies": { "@types/prettier": "^2.1.1", @@ -11446,11 +11446,15 @@ "glob": "^7.1.6", "js-sha3": "^0.8.0", "lodash": "^4.17.15", + "mkdirp": "^1.0.4", "prettier": "^2.1.2", "ts-essentials": "^7.0.1" }, "bin": { "typechain": "dist/cli/cli.js" + }, + "peerDependencies": { + "typescript": ">=4.1.0" } }, "node_modules/typechain/node_modules/fs-extra": { @@ -11467,6 +11471,18 @@ "node": ">=6 <7 || >=8" } }, + "node_modules/typechain/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/typedarray-to-buffer": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", @@ -11906,12 +11922,12 @@ }, "dependencies": { "@airdao/router-sdk": { - "version": "1.6.0-airdao.0", - "resolved": "https://registry.npmjs.org/@airdao/router-sdk/-/router-sdk-1.6.0-airdao.0.tgz", - "integrity": "sha512-36/NT7dpy887P1oy8RecqhEKPEC5V1Fdv/UJVdSSK11eZRy9J0xU2TlqKpUuw4NLBwmgdlhGCHHQSH9WeKqxyw==", + "version": "1.6.0-airdao.1", + "resolved": "https://registry.npmjs.org/@airdao/router-sdk/-/router-sdk-1.6.0-airdao.1.tgz", + "integrity": "sha512-75IxsZVl9UvXUZWxkT+NSTH1ySG9Gnl2R4vusXSSZ9IcSPyCaWVIXz0tfeWZXnlvlmI9/1p/Ozblz14MKnQSJg==", "requires": { "@airdao/sdk-core": "4.0.7-airdao.0", - "@airdao/v2-sdk": "3.2.3-airdao.0", + "@airdao/v2-sdk": "3.2.3-airdao.1", "@airdao/v3-sdk": "3.10.0-airdao.0", "@ethersproject/abi": "^5.5.0", "@uniswap/swap-router-contracts": "1.1.0" @@ -11968,13 +11984,13 @@ } }, "@airdao/universal-router-sdk": { - "version": "1.5.8-airdao.0", - "resolved": "https://registry.npmjs.org/@airdao/universal-router-sdk/-/universal-router-sdk-1.5.8-airdao.0.tgz", - "integrity": "sha512-uU03fRVid541RtiwwD9ZTlr1kO2MY8zvApjY+3/AZCgUffRGvEJgkCNOEySU7AuAUMOx8F0XaY5IgGpP7IqhjA==", + "version": "1.5.8-airdao.1", + "resolved": "https://registry.npmjs.org/@airdao/universal-router-sdk/-/universal-router-sdk-1.5.8-airdao.1.tgz", + "integrity": "sha512-nGNdx6xg5IrZwRP/w2ZCQQEMHcNWpLIMFaJlO+JQsyDAHMxhEgvH86wmML35gKnWTSJFOAmcLb+n0sUN9N3Pog==", "requires": { - "@airdao/router-sdk": "1.6.0-airdao.0", + "@airdao/router-sdk": "1.6.0-airdao.1", "@airdao/sdk-core": "4.0.7-airdao.0", - "@airdao/v2-sdk": "3.2.3-airdao.0", + "@airdao/v2-sdk": "3.2.3-airdao.1", "@airdao/v3-sdk": "3.10.0-airdao.0", "@uniswap/permit2-sdk": "^1.2.0", "@uniswap/universal-router": "1.4.3", @@ -11983,9 +11999,9 @@ } }, "@airdao/v2-sdk": { - "version": "3.2.3-airdao.0", - "resolved": "https://registry.npmjs.org/@airdao/v2-sdk/-/v2-sdk-3.2.3-airdao.0.tgz", - "integrity": "sha512-cY3XMNxxQnd4RTARFTyi8jokccGfJWGVDA36PBcnpqdv880EhOlH0qxEHKzGF+HCf/1zAMfrMhMpSvOQaqV3UQ==", + "version": "3.2.3-airdao.1", + "resolved": "https://registry.npmjs.org/@airdao/v2-sdk/-/v2-sdk-3.2.3-airdao.1.tgz", + "integrity": "sha512-OkPn6V4mf4sObp6rVc/1anXolqDHyrPZIvJIW9MG+GGW3hzhJuKuM0bSPCdzIH8sehuZFas3Kv99HgPRuEvMDw==", "requires": { "@airdao/sdk-core": "4.0.7-airdao.0", "@ethersproject/address": "^5.0.0", @@ -18123,15 +18139,6 @@ "kind-of": "^6.0.3" } }, - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "optional": true, - "requires": { - "minimist": "^1.2.6" - } - }, "mnemonist": { "version": "0.38.5", "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz", @@ -18295,6 +18302,15 @@ "path-is-absolute": "^1.0.0" } }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "optional": true, + "requires": { + "minimist": "^1.2.6" + } + }, "rimraf": { "version": "2.4.5", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", @@ -20363,9 +20379,9 @@ "dev": true }, "typechain": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-5.0.0.tgz", - "integrity": "sha512-Ko2/8co0FUmPUkaXPcb8PC3ncWa5P72nvkiNMgcomd4OAInltJlITF0kcW2cZmI2sFkvmaHV5TZmCnOHgo+i5Q==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/typechain/-/typechain-5.2.0.tgz", + "integrity": "sha512-0INirvQ+P+MwJOeMct+WLkUE4zov06QxC96D+i3uGFEHoiSkZN70MKDQsaj8zkL86wQwByJReI2e7fOUwECFuw==", "dev": true, "requires": { "@types/prettier": "^2.1.1", @@ -20375,6 +20391,7 @@ "glob": "^7.1.6", "js-sha3": "^0.8.0", "lodash": "^4.17.15", + "mkdirp": "^1.0.4", "prettier": "^2.1.2", "ts-essentials": "^7.0.1" }, @@ -20389,6 +20406,12 @@ "jsonfile": "^4.0.0", "universalify": "^0.1.0" } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true } } }, diff --git a/package.json b/package.json index 4288dad30..81612c9e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@airdao/smart-order-router", - "version": "3.17.3-airdao.0", + "version": "3.17.3-airdao.1", "description": "Uniswap Smart Order Router", "main": "build/main/index.js", "typings": "build/main/index.d.ts", @@ -31,16 +31,16 @@ "node": ">=10" }, "dependencies": { + "@airdao/router-sdk": "1.6.0-airdao.1", + "@airdao/sdk-core": "4.0.7-airdao.0", + "@airdao/universal-router-sdk": "1.5.8-airdao.1", + "@airdao/v2-sdk": "3.2.3-airdao.1", + "@airdao/v3-sdk": "3.10.0-airdao.0", "@uniswap/default-token-list": "^11.2.0", "@uniswap/permit2-sdk": "^1.2.0", - "@airdao/router-sdk": "1.6.0-airdao.0", "@uniswap/swap-router-contracts": "^1.3.0", "@uniswap/token-lists": "^1.0.0-beta.31", "@uniswap/universal-router": "^1.0.1", - "@airdao/universal-router-sdk": "1.5.8-airdao.0", - "@airdao/v2-sdk": "3.2.3-airdao.0", - "@airdao/v3-sdk": "3.10.0-airdao.0", - "@airdao/sdk-core": "4.0.7-airdao.0", "async-retry": "^1.3.1", "await-timeout": "^1.1.1", "axios": "^0.21.1", diff --git a/src/util/chains.ts b/src/util/chains.ts index 0ac1820d1..fb035e882 100644 --- a/src/util/chains.ts +++ b/src/util/chains.ts @@ -24,6 +24,7 @@ export const V2_SUPPORTED = [ ChainId.MAINNET, ChainId.GOERLI, ChainId.SEPOLIA, + ChainId.AIRDAO_TEST, ]; export const HAS_L1_FEE = [