Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

feat: update v2 supported UR #154

Merged
merged 8 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@uniswap/permit2-sdk": "^1.2.0",
"@uniswap/router-sdk": "^1.6.0",
"@uniswap/sdk-core": "^4.0.0",
"@uniswap/universal-router": "1.4.3",
"@uniswap/universal-router": "1.6.0",
"@uniswap/v2-sdk": "^3.2.0",
"@uniswap/v3-sdk": "^3.10.0",
"bignumber.js": "^9.0.2",
Expand Down
24 changes: 12 additions & 12 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
// polygon
[137]: {
router: '0x643770E279d5D0733F21d6DC03A8efbABf3255B4',
router: '0xec7BE89e9d109e7e3Fec59c222CF297125FEFda2',
weth: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270',
creationBlock: 46866777,
creationBlock: 52210153,
},
//polygon mumbai
[80001]: {
Expand All @@ -41,9 +41,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
//optimism
[10]: {
router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4',
router: '0xCb1355ff08Ab38bBCE60111F1bb2B784bE25D7e8',
weth: '0x4200000000000000000000000000000000000006',
creationBlock: 108825869,
creationBlock: 114702266,
},
// optimism goerli
[420]: {
Expand All @@ -53,9 +53,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
// arbitrum
[42161]: {
router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4',
router: '0x5E325eDA8064b456f4781070C0738d849c824258',
weth: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
creationBlock: 125861718,
creationBlock: 169472836,
},
// arbitrum goerli
[421613]: {
Expand All @@ -77,15 +77,15 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
// binance smart chain
[56]: {
router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4',
router: '0x4Dae2f939ACf50408e13d58534Ff8c2776d45265',
weth: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c',
creationBlock: 31254967,
creationBlock: 35160263,
},
// avalanche
[43114]: {
router: '0x82635AF6146972cD6601161c4472ffe97237D292',
router: '0x4Dae2f939ACf50408e13d58534Ff8c2776d45265',
weth: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
creationBlock: 34491144,
creationBlock: 40237257,
},
// base goerli
[84531]: {
Expand All @@ -95,9 +95,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
// base mainnet
[8453]: {
router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4',
router: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
weth: '0x4200000000000000000000000000000000000006',
creationBlock: 3229053,
creationBlock: 9107268,
},
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2238,10 +2238,10 @@
dotenv "^14.2.0"
hardhat-watcher "^2.1.1"

"@uniswap/universal-router@1.4.3":
version "1.4.3"
resolved "https://registry.yarnpkg.com/@uniswap/universal-router/-/universal-router-1.4.3.tgz#7736cf7f8dc99435a6be87c2e80b5c5d4589d641"
integrity sha512-SZmYfhYZtsuxrTMCitcA39iJuG9sbe2nvm9iQfd70WjMpbB0+GuEs5OqSHc5tB/ujrVKzPJ1LOoNNGOs0xPEeA==
"@uniswap/universal-router@1.6.0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@uniswap/universal-router/-/universal-router-1.6.0.tgz#3d7372e98a0303c70587802ee6841b8b6b42fc6f"
integrity sha512-Gt0b0rtMV1vSrgXY3vz5R1RCZENB+rOkbOidY9GvcXrK1MstSrQSOAc+FCr8FSgsDhmRAdft0lk5YUxtM9i9Lg==
dependencies:
"@openzeppelin/contracts" "4.7.0"
"@uniswap/v2-core" "1.0.1"
Expand Down
Loading