Skip to content

Commit

Permalink
feat(universal-router-sdk): support astrochain sepolia on universal-r…
Browse files Browse the repository at this point in the history
…outer-sdk (#139)

## Description

Support astrochain sepolia on ur-sdk

## How Has This Been Tested?

Will test in routing

## Are there any breaking changes?

No

## (Optional) Feedback Focus

## (Optional) Follow Ups
  • Loading branch information
jsy1218 authored Oct 2, 2024
1 parent a67afc5 commit 42e3db2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
8 changes: 4 additions & 4 deletions sdks/universal-router-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"dependencies": {
"@openzeppelin/contracts": "4.7.0",
"@uniswap/permit2-sdk": "^1.3.0",
"@uniswap/router-sdk": "^1.13.0",
"@uniswap/sdk-core": "^5.6.0",
"@uniswap/router-sdk": "^1.14.0",
"@uniswap/sdk-core": "^5.8.0",
"@uniswap/universal-router": "2.0.0-beta.1",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-sdk": "^4.5.0",
"@uniswap/v2-sdk": "^4.6.0",
"@uniswap/v3-core": "1.0.0",
"@uniswap/v3-sdk": "^3.16.0",
"@uniswap/v3-sdk": "^3.17.0",
"@uniswap/v4-sdk": "^1.6.3",
"bignumber.js": "^9.0.2",
"ethers": "^5.7.0"
Expand Down
13 changes: 13 additions & 0 deletions sdks/universal-router-sdk/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,19 @@ export const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
},
},
[1301]: {
weth: '0x4200000000000000000000000000000000000006',
routerConfigs: {
[UniversalRouterVersion.V1_2]: {
address: '0xf164fC0Ec4E93095b804a4795bBe1e041497b92a',
creationBlock: 618210,
},
[UniversalRouterVersion.V2_0]: {
address: '0xf164fC0Ec4E93095b804a4795bBe1e041497b92a',
creationBlock: 618210,
},
},
},
}

export const UNIVERSAL_ROUTER_ADDRESS = (version: UniversalRouterVersion, chainId: number): string => {
Expand Down
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4609,17 +4609,17 @@ __metadata:
languageName: unknown
linkType: soft

"@uniswap/router-sdk@npm:^1.13.0":
version: 1.13.0
resolution: "@uniswap/router-sdk@npm:1.13.0"
"@uniswap/router-sdk@npm:^1.14.0":
version: 1.14.0
resolution: "@uniswap/router-sdk@npm:1.14.0"
dependencies:
"@ethersproject/abi": ^5.5.0
"@uniswap/sdk-core": ^5.6.0
"@uniswap/sdk-core": ^5.8.0
"@uniswap/swap-router-contracts": ^1.3.0
"@uniswap/v2-sdk": ^4.5.0
"@uniswap/v3-sdk": ^3.16.0
"@uniswap/v2-sdk": ^4.6.0
"@uniswap/v3-sdk": ^3.17.0
"@uniswap/v4-sdk": ^1.6.0
checksum: 0cda4642e1039363cb66959a7dadb530b6696b7038891befc47715cdad332c333666a4bf4c6bf48418a40c341c17f065509117c987fc05a8ed3f4d56490d7fc8
checksum: 42da8cc814dee8d15685d78fe7c19348598166817d6bd0b1355c1b196489dfb88b51d0d59da5511538d845909ab47c520b76e53d4867545ac2633ece96d33b67
languageName: node
linkType: hard

Expand All @@ -4639,7 +4639,7 @@ __metadata:
languageName: unknown
linkType: soft

"@uniswap/sdk-core@npm:^5.0.0, @uniswap/sdk-core@npm:^5.3.0, @uniswap/sdk-core@npm:^5.3.1, @uniswap/sdk-core@npm:^5.6.0, @uniswap/sdk-core@npm:^5.8.0":
"@uniswap/sdk-core@npm:^5.0.0, @uniswap/sdk-core@npm:^5.3.0, @uniswap/sdk-core@npm:^5.3.1, @uniswap/sdk-core@npm:^5.8.0":
version: 5.8.0
resolution: "@uniswap/sdk-core@npm:5.8.0"
dependencies:
Expand Down Expand Up @@ -4730,13 +4730,13 @@ __metadata:
"@types/node": ^18.7.16
"@types/node-fetch": ^2.6.2
"@uniswap/permit2-sdk": ^1.3.0
"@uniswap/router-sdk": ^1.13.0
"@uniswap/sdk-core": ^5.6.0
"@uniswap/router-sdk": ^1.14.0
"@uniswap/sdk-core": ^5.8.0
"@uniswap/universal-router": 2.0.0-beta.1
"@uniswap/v2-core": ^1.0.1
"@uniswap/v2-sdk": ^4.5.0
"@uniswap/v2-sdk": ^4.6.0
"@uniswap/v3-core": 1.0.0
"@uniswap/v3-sdk": ^3.16.0
"@uniswap/v3-sdk": ^3.17.0
"@uniswap/v4-sdk": ^1.6.3
bignumber.js: ^9.0.2
chai: ^4.3.6
Expand Down Expand Up @@ -4771,7 +4771,7 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/v2-sdk@npm:^4.5.0, @uniswap/v2-sdk@npm:^4.6.0":
"@uniswap/v2-sdk@npm:^4.6.0":
version: 4.6.0
resolution: "@uniswap/v2-sdk@npm:4.6.0"
dependencies:
Expand Down Expand Up @@ -4844,7 +4844,7 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/v3-sdk@npm:^3.16.0, @uniswap/v3-sdk@npm:^3.17.0":
"@uniswap/v3-sdk@npm:^3.17.0":
version: 3.17.0
resolution: "@uniswap/v3-sdk@npm:3.17.0"
dependencies:
Expand Down

0 comments on commit 42e3db2

Please sign in to comment.