diff --git a/package-lock.json b/package-lock.json index a52df4782..a89aa12db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@tanstack/react-query": "5.36.2", "@typeform/embed-react": "4.0.0", "@uniswap/sdk-core": "5.3.1", - "@uniswap/smart-order-router": "3.41.0", + "@uniswap/smart-order-router": "4.0.0", "@uniswap/v3-sdk": "3.13.1", "@visx/visx": "^3.8.0", "@web3modal/wagmi": "5.1.9", @@ -10786,16 +10786,16 @@ } }, "node_modules/@uniswap/router-sdk": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.10.0.tgz", - "integrity": "sha512-XKDc46DDVqFOGwDqUFe6QkQMUue3FNsycxwKrbtBXbfw8eDpWrXIi7XpYF+5C/RI8TeRDpRvzorToJTw4DvaIA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.12.1.tgz", + "integrity": "sha512-n6ugqB54z/b24Wr6wKU39FlFHTj4KNSpksp3CAFNVOIN8l6PmVOIq3lkABcRyewUHGxgu5WCKGd36bU4UiHqaQ==", "dependencies": { "@ethersproject/abi": "^5.5.0", "@uniswap/sdk-core": "^5.3.1", "@uniswap/swap-router-contracts": "^1.3.0", "@uniswap/v2-sdk": "^4.3.2", "@uniswap/v3-sdk": "^3.11.2", - "@uniswap/v4-sdk": "^1.0.0" + "@uniswap/v4-sdk": "^1.6.0" } }, "node_modules/@uniswap/sdk-core": { @@ -10818,23 +10818,23 @@ } }, "node_modules/@uniswap/smart-order-router": { - "version": "3.41.0", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-3.41.0.tgz", - "integrity": "sha512-j5FmHUaLE5kZ+3wF8gDuBfmFPlWCb9zNByJdNdiUEhnEfWXjgR1g94NPCEHWPG9OCAmlRfiUUzZpEJTnhqX2wg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.0.0.tgz", + "integrity": "sha512-3OW6ZgjQnY6RG+hiAaiPBe3Bl1t9SHeh4NqyrFET99VeiGMyUUboBCyCa1wIZEvWfasDyKSF17Zfw8XyipGdQQ==", "dependencies": { "@eth-optimism/sdk": "^3.2.2", "@types/brotli": "^1.3.4", "@uniswap/default-token-list": "^11.13.0", "@uniswap/permit2-sdk": "^1.3.0", - "@uniswap/router-sdk": "^1.10.0", - "@uniswap/sdk-core": "^5.3.0", + "@uniswap/router-sdk": "^1.12.0", + "@uniswap/sdk-core": "^5.4.0", "@uniswap/swap-router-contracts": "^1.3.1", "@uniswap/token-lists": "^1.0.0-beta.31", "@uniswap/universal-router": "^1.6.0", - "@uniswap/universal-router-sdk": "^2.2.4", + "@uniswap/universal-router-sdk": "^3.0.2", "@uniswap/v2-sdk": "^4.3.2", "@uniswap/v3-sdk": "^3.13.0", - "@uniswap/v4-sdk": "^1.0.0", + "@uniswap/v4-sdk": "^1.2.0", "async-retry": "^1.3.1", "await-timeout": "^1.1.1", "axios": "^0.21.1", @@ -10856,6 +10856,25 @@ "jsbi": "^3.2.0" } }, + "node_modules/@uniswap/smart-order-router/node_modules/@uniswap/sdk-core": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-5.4.0.tgz", + "integrity": "sha512-L8wxC2aC+kIo4Xq1vXWYOiql3CmC/jrXTYpqqCBAI0/ODUomrBY76jSajzqWEEqnTGC67nI8+Hl7aEhA5/UVBg==", + "dependencies": { + "@ethersproject/address": "^5.0.2", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/strings": "5.7.0", + "big.js": "^5.2.2", + "decimal.js-light": "^2.5.0", + "jsbi": "^3.1.4", + "tiny-invariant": "^1.1.0", + "toformat": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@uniswap/smart-order-router/node_modules/axios": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", @@ -10910,15 +10929,18 @@ } }, "node_modules/@uniswap/universal-router-sdk": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/@uniswap/universal-router-sdk/-/universal-router-sdk-2.2.4.tgz", - "integrity": "sha512-6+ErgDDtCJLM2ro/krCKtu6ucUpcaQEEPRrAPuJiMTWbR0UyR+6Otp+KdBcT9LmyzSoXuSHhIRr+6s25no1J6A==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@uniswap/universal-router-sdk/-/universal-router-sdk-3.1.0.tgz", + "integrity": "sha512-bgY8gZfeoxbqqg62fc7RxOPk6eKFdcuKDa7dveSlb/Ku2EbB3BN5Pj0IDBzASovyGS2Tz/k7a5IVnCviPKm3sw==", "dependencies": { + "@openzeppelin/contracts": "4.7.0", "@uniswap/permit2-sdk": "^1.3.0", - "@uniswap/router-sdk": "^1.10.0", + "@uniswap/router-sdk": "^1.11.0", "@uniswap/sdk-core": "^5.3.1", - "@uniswap/universal-router": "1.6.0", + "@uniswap/universal-router": "2.0.0-beta.1", + "@uniswap/v2-core": "^1.0.1", "@uniswap/v2-sdk": "^4.4.1", + "@uniswap/v3-core": "1.0.0", "@uniswap/v3-sdk": "^3.13.1", "@uniswap/v4-sdk": "^1.0.0", "bignumber.js": "^9.0.2", @@ -10928,6 +10950,37 @@ "node": ">=14" } }, + "node_modules/@uniswap/universal-router-sdk/node_modules/@openzeppelin/contracts": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.0.tgz", + "integrity": "sha512-52Qb+A1DdOss8QvJrijYYPSf32GUg2pGaG/yCxtaA3cu4jduouTdg4XZSMLW9op54m1jH7J8hoajhHKOPsoJFw==" + }, + "node_modules/@uniswap/universal-router-sdk/node_modules/@uniswap/universal-router": { + "version": "2.0.0-beta.1", + "resolved": "https://registry.npmjs.org/@uniswap/universal-router/-/universal-router-2.0.0-beta.1.tgz", + "integrity": "sha512-DdaMHaoDyJoCwpH+BiRKw/w2vjZtZS+ekpyrhmIeOBK1L2QEVFj977BNo6t24WzriZ9mSuIKF69RjHdXDUgHsQ==", + "dependencies": { + "@openzeppelin/contracts": "5.0.2", + "@uniswap/v2-core": "1.0.1", + "@uniswap/v3-core": "1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@uniswap/universal-router-sdk/node_modules/@uniswap/universal-router/node_modules/@openzeppelin/contracts": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.0.2.tgz", + "integrity": "sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==" + }, + "node_modules/@uniswap/universal-router-sdk/node_modules/@uniswap/v3-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.0.tgz", + "integrity": "sha512-kSC4djMGKMHj7sLMYVnn61k9nu+lHjMIxgg9CDQT+s2QYLoA56GbSK9Oxr+qJXzzygbkrmuY6cwgP6cW2JXPFA==", + "engines": { + "node": ">=10" + } + }, "node_modules/@uniswap/universal-router/node_modules/@openzeppelin/contracts": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.0.tgz", @@ -11033,9 +11086,9 @@ } }, "node_modules/@uniswap/v4-sdk": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@uniswap/v4-sdk/-/v4-sdk-1.0.0.tgz", - "integrity": "sha512-zC4cfOY9pFA6PUOARvmkAndOR0r5yiAwwcaFBxOoZe2kXLoh5wGH3svDZCQ4ZLpiPOevUPl+NXXC/KCEErbw2g==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@uniswap/v4-sdk/-/v4-sdk-1.6.1.tgz", + "integrity": "sha512-3Xmx6lZh3qiQ9R/yi/bcehnZVEoawdI5EE+1ryE9lPvpZqq2BLPQtosK8F+uOo72qc0pv7+7LEnpJ48ky8osbQ==", "dependencies": { "@ethersproject/solidity": "^5.0.9", "@uniswap/sdk-core": "^5.3.1", @@ -37986,16 +38039,16 @@ } }, "@uniswap/router-sdk": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.10.0.tgz", - "integrity": "sha512-XKDc46DDVqFOGwDqUFe6QkQMUue3FNsycxwKrbtBXbfw8eDpWrXIi7XpYF+5C/RI8TeRDpRvzorToJTw4DvaIA==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@uniswap/router-sdk/-/router-sdk-1.12.1.tgz", + "integrity": "sha512-n6ugqB54z/b24Wr6wKU39FlFHTj4KNSpksp3CAFNVOIN8l6PmVOIq3lkABcRyewUHGxgu5WCKGd36bU4UiHqaQ==", "requires": { "@ethersproject/abi": "^5.5.0", "@uniswap/sdk-core": "^5.3.1", "@uniswap/swap-router-contracts": "^1.3.0", "@uniswap/v2-sdk": "^4.3.2", "@uniswap/v3-sdk": "^3.11.2", - "@uniswap/v4-sdk": "^1.0.0" + "@uniswap/v4-sdk": "^1.6.0" } }, "@uniswap/sdk-core": { @@ -38015,23 +38068,23 @@ } }, "@uniswap/smart-order-router": { - "version": "3.41.0", - "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-3.41.0.tgz", - "integrity": "sha512-j5FmHUaLE5kZ+3wF8gDuBfmFPlWCb9zNByJdNdiUEhnEfWXjgR1g94NPCEHWPG9OCAmlRfiUUzZpEJTnhqX2wg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@uniswap/smart-order-router/-/smart-order-router-4.0.0.tgz", + "integrity": "sha512-3OW6ZgjQnY6RG+hiAaiPBe3Bl1t9SHeh4NqyrFET99VeiGMyUUboBCyCa1wIZEvWfasDyKSF17Zfw8XyipGdQQ==", "requires": { "@eth-optimism/sdk": "^3.2.2", "@types/brotli": "^1.3.4", "@uniswap/default-token-list": "^11.13.0", "@uniswap/permit2-sdk": "^1.3.0", - "@uniswap/router-sdk": "^1.10.0", - "@uniswap/sdk-core": "^5.3.0", + "@uniswap/router-sdk": "^1.12.0", + "@uniswap/sdk-core": "^5.4.0", "@uniswap/swap-router-contracts": "^1.3.1", "@uniswap/token-lists": "^1.0.0-beta.31", "@uniswap/universal-router": "^1.6.0", - "@uniswap/universal-router-sdk": "^2.2.4", + "@uniswap/universal-router-sdk": "^3.0.2", "@uniswap/v2-sdk": "^4.3.2", "@uniswap/v3-sdk": "^3.13.0", - "@uniswap/v4-sdk": "^1.0.0", + "@uniswap/v4-sdk": "^1.2.0", "async-retry": "^1.3.1", "await-timeout": "^1.1.1", "axios": "^0.21.1", @@ -38047,6 +38100,22 @@ "stats-lite": "^2.2.0" }, "dependencies": { + "@uniswap/sdk-core": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@uniswap/sdk-core/-/sdk-core-5.4.0.tgz", + "integrity": "sha512-L8wxC2aC+kIo4Xq1vXWYOiql3CmC/jrXTYpqqCBAI0/ODUomrBY76jSajzqWEEqnTGC67nI8+Hl7aEhA5/UVBg==", + "requires": { + "@ethersproject/address": "^5.0.2", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/strings": "5.7.0", + "big.js": "^5.2.2", + "decimal.js-light": "^2.5.0", + "jsbi": "^3.1.4", + "tiny-invariant": "^1.1.0", + "toformat": "^2.0.0" + } + }, "axios": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", @@ -38105,19 +38174,51 @@ } }, "@uniswap/universal-router-sdk": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/@uniswap/universal-router-sdk/-/universal-router-sdk-2.2.4.tgz", - "integrity": "sha512-6+ErgDDtCJLM2ro/krCKtu6ucUpcaQEEPRrAPuJiMTWbR0UyR+6Otp+KdBcT9LmyzSoXuSHhIRr+6s25no1J6A==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@uniswap/universal-router-sdk/-/universal-router-sdk-3.1.0.tgz", + "integrity": "sha512-bgY8gZfeoxbqqg62fc7RxOPk6eKFdcuKDa7dveSlb/Ku2EbB3BN5Pj0IDBzASovyGS2Tz/k7a5IVnCviPKm3sw==", "requires": { + "@openzeppelin/contracts": "4.7.0", "@uniswap/permit2-sdk": "^1.3.0", - "@uniswap/router-sdk": "^1.10.0", + "@uniswap/router-sdk": "^1.11.0", "@uniswap/sdk-core": "^5.3.1", - "@uniswap/universal-router": "1.6.0", + "@uniswap/universal-router": "2.0.0-beta.1", + "@uniswap/v2-core": "^1.0.1", "@uniswap/v2-sdk": "^4.4.1", + "@uniswap/v3-core": "1.0.0", "@uniswap/v3-sdk": "^3.13.1", "@uniswap/v4-sdk": "^1.0.0", "bignumber.js": "^9.0.2", "ethers": "^5.7.0" + }, + "dependencies": { + "@openzeppelin/contracts": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.0.tgz", + "integrity": "sha512-52Qb+A1DdOss8QvJrijYYPSf32GUg2pGaG/yCxtaA3cu4jduouTdg4XZSMLW9op54m1jH7J8hoajhHKOPsoJFw==" + }, + "@uniswap/universal-router": { + "version": "2.0.0-beta.1", + "resolved": "https://registry.npmjs.org/@uniswap/universal-router/-/universal-router-2.0.0-beta.1.tgz", + "integrity": "sha512-DdaMHaoDyJoCwpH+BiRKw/w2vjZtZS+ekpyrhmIeOBK1L2QEVFj977BNo6t24WzriZ9mSuIKF69RjHdXDUgHsQ==", + "requires": { + "@openzeppelin/contracts": "5.0.2", + "@uniswap/v2-core": "1.0.1", + "@uniswap/v3-core": "1.0.0" + }, + "dependencies": { + "@openzeppelin/contracts": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.0.2.tgz", + "integrity": "sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==" + } + } + }, + "@uniswap/v3-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.0.tgz", + "integrity": "sha512-kSC4djMGKMHj7sLMYVnn61k9nu+lHjMIxgg9CDQT+s2QYLoA56GbSK9Oxr+qJXzzygbkrmuY6cwgP6cW2JXPFA==" + } } }, "@uniswap/v2-core": { @@ -38192,9 +38293,9 @@ } }, "@uniswap/v4-sdk": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@uniswap/v4-sdk/-/v4-sdk-1.0.0.tgz", - "integrity": "sha512-zC4cfOY9pFA6PUOARvmkAndOR0r5yiAwwcaFBxOoZe2kXLoh5wGH3svDZCQ4ZLpiPOevUPl+NXXC/KCEErbw2g==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@uniswap/v4-sdk/-/v4-sdk-1.6.1.tgz", + "integrity": "sha512-3Xmx6lZh3qiQ9R/yi/bcehnZVEoawdI5EE+1ryE9lPvpZqq2BLPQtosK8F+uOo72qc0pv7+7LEnpJ48ky8osbQ==", "requires": { "@ethersproject/solidity": "^5.0.9", "@uniswap/sdk-core": "^5.3.1", diff --git a/package.json b/package.json index 996546db1..0f3d4e2f6 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@tanstack/react-query": "5.36.2", "@typeform/embed-react": "4.0.0", "@uniswap/sdk-core": "5.3.1", - "@uniswap/smart-order-router": "3.41.0", + "@uniswap/smart-order-router": "4.0.0", "@uniswap/v3-sdk": "3.13.1", "@visx/visx": "^3.8.0", "@web3modal/wagmi": "5.1.9", diff --git a/src/app/quote/uniswap/route.ts b/src/app/api/quote/uniswap/route.ts similarity index 100% rename from src/app/quote/uniswap/route.ts rename to src/app/api/quote/uniswap/route.ts