Skip to content

Commit a99dc09

Browse files
authored
feat(universal-router-sdk): bump sdk-core to 7.1.0 for base sepolia and monad testnet in ur-sdk (#245)
## PR Scope Please title your PR according to the following types and scopes following [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/): - `fix(SDK name):` will trigger a patch version - `chore(<type>):` will not trigger any release and should be used for internal repo changes - `<type>(public):` will trigger a patch version for non-code changes (e.g. README changes) - `feat(SDK name):` will trigger a minor version - `feat(breaking):` will trigger a major version for a breaking change ## Description _[Summary of the change, motivation, and context]_ ## How Has This Been Tested? _[e.g. Manually, E2E tests, unit tests, Storybook]_ ## Are there any breaking changes? _[e.g. Type definitions, API definitions]_ If there are breaking changes, please ensure you bump the major version Bump the major version (by using the title `feat(breaking): ...`), post a notice in #eng-sdks, and explicitly notify all Uniswap Labs consumers of the SDK. ## (Optional) Feedback Focus _[Specific parts of this PR you'd like feedback on, or that reviewers should pay closer attention to]_ ## (Optional) Follow Ups _[Things that weren't addressed in this PR, ways you plan to build on this work, or other ways this work could be extended]_
1 parent bfc2644 commit a99dc09

File tree

4 files changed

+46
-79
lines changed

4 files changed

+46
-79
lines changed

.github/workflows/monorepo-integrity.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
run: yarn g:check:deps:mismatch
4444

4545
# This check will be disabled while a major version change of sdk-core is underway
46-
# - name: 👬🏽 Check for duplicate dependencies in lock file
47-
# run: yarn dedupe --check
46+
- name: 👬🏽 Check for duplicate dependencies in lock file
47+
run: yarn dedupe --check
4848

4949
- name: 🧑‍⚖️ Check for yarn constraints.pro
5050
run: yarn constraints

sdks/universal-router-sdk/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"dependencies": {
3232
"@openzeppelin/contracts": "4.7.0",
3333
"@uniswap/permit2-sdk": "^1.3.0",
34-
"@uniswap/router-sdk": "^1.16.0",
35-
"@uniswap/sdk-core": "^6.1.1",
34+
"@uniswap/router-sdk": "^1.18.0",
35+
"@uniswap/sdk-core": "^7.1.0",
3636
"@uniswap/universal-router": "2.0.0-beta.2",
3737
"@uniswap/v2-core": "^1.0.1",
38-
"@uniswap/v2-sdk": "^4.8.0",
38+
"@uniswap/v2-sdk": "^4.9.0",
3939
"@uniswap/v3-core": "1.0.0",
40-
"@uniswap/v3-sdk": "^3.20.0",
41-
"@uniswap/v4-sdk": "^1.13.0",
40+
"@uniswap/v3-sdk": "^3.21.0",
41+
"@uniswap/v4-sdk": "^1.15.0",
4242
"bignumber.js": "^9.0.2",
4343
"ethers": "^5.7.0"
4444
},

sdks/universal-router-sdk/src/utils/constants.ts

+26
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,32 @@ export const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
307307
},
308308
},
309309
},
310+
[10143]: {
311+
weth: '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701',
312+
routerConfigs: {
313+
[UniversalRouterVersion.V1_2]: {
314+
address: '0x3ae6d8a282d67893e17aa70ebffb33ee5aa65893',
315+
creationBlock: 23678,
316+
},
317+
[UniversalRouterVersion.V2_0]: {
318+
address: '0x3ae6d8a282d67893e17aa70ebffb33ee5aa65893',
319+
creationBlock: 23678,
320+
},
321+
},
322+
},
323+
[84532]: {
324+
weth: '0x4200000000000000000000000000000000000006',
325+
routerConfigs: {
326+
[UniversalRouterVersion.V1_2]: {
327+
address: '0x492e6456d9528771018deb9e87ef7750ef184104',
328+
creationBlock: 20216585,
329+
},
330+
[UniversalRouterVersion.V2_0]: {
331+
address: '0x492e6456d9528771018deb9e87ef7750ef184104',
332+
creationBlock: 20216585,
333+
},
334+
},
335+
},
310336
}
311337

312338
export const UNIVERSAL_ROUTER_ADDRESS = (version: UniversalRouterVersion, chainId: number): string => {

yarn.lock

+13-72
Original file line numberDiff line numberDiff line change
@@ -4509,17 +4509,17 @@ __metadata:
45094509
languageName: unknown
45104510
linkType: soft
45114511

4512-
"@uniswap/router-sdk@npm:^1.16.0":
4513-
version: 1.16.0
4514-
resolution: "@uniswap/router-sdk@npm:1.16.0"
4512+
"@uniswap/router-sdk@npm:^1.18.0":
4513+
version: 1.18.0
4514+
resolution: "@uniswap/router-sdk@npm:1.18.0"
45154515
dependencies:
45164516
"@ethersproject/abi": ^5.5.0
4517-
"@uniswap/sdk-core": ^6.1.1
4517+
"@uniswap/sdk-core": ^7.1.0
45184518
"@uniswap/swap-router-contracts": ^1.3.0
4519-
"@uniswap/v2-sdk": ^4.8.0
4520-
"@uniswap/v3-sdk": ^3.20.0
4521-
"@uniswap/v4-sdk": ^1.13.0
4522-
checksum: 2a9ca749298707017f27ad694067ae85d80f306d81835e7ec3bb82cdfb7a0d5e1b1cd767eb6cef6a6f04da959a9051f29d73d2b0512da5ed0bc66e0c0371b53a
4519+
"@uniswap/v2-sdk": ^4.9.0
4520+
"@uniswap/v3-sdk": ^3.21.0
4521+
"@uniswap/v4-sdk": ^1.15.0
4522+
checksum: b715c91be8653697251cca6c27054e4a2c1edfd074c93205a9b320ffa16de4afb34a78822485aa72964d4c8f1f1bb2af7ffba0a3c5daf116b57ec8a56fd0608b
45234523
languageName: node
45244524
linkType: hard
45254525

@@ -4556,23 +4556,6 @@ __metadata:
45564556
languageName: node
45574557
linkType: hard
45584558

4559-
"@uniswap/sdk-core@npm:^6.1.1":
4560-
version: 6.1.1
4561-
resolution: "@uniswap/sdk-core@npm:6.1.1"
4562-
dependencies:
4563-
"@ethersproject/address": ^5.0.2
4564-
"@ethersproject/bytes": ^5.7.0
4565-
"@ethersproject/keccak256": 5.7.0
4566-
"@ethersproject/strings": 5.7.0
4567-
big.js: ^5.2.2
4568-
decimal.js-light: ^2.5.0
4569-
jsbi: ^3.1.4
4570-
tiny-invariant: ^1.1.0
4571-
toformat: ^2.0.0
4572-
checksum: f9b0433aaec6727fbf012eb5a1fecf34c791ae5411980e56032db694bf12eff09dee281a19266ffae138a968ce14b8dac2740a5b4e9495c81b3b21299303c72d
4573-
languageName: node
4574-
linkType: hard
4575-
45764559
"@uniswap/sdk-core@npm:^7.1.0":
45774560
version: 7.1.0
45784561
resolution: "@uniswap/sdk-core@npm:7.1.0"
@@ -4664,14 +4647,14 @@ __metadata:
46644647
"@types/node": ^18.7.16
46654648
"@types/node-fetch": ^2.6.2
46664649
"@uniswap/permit2-sdk": ^1.3.0
4667-
"@uniswap/router-sdk": ^1.16.0
4668-
"@uniswap/sdk-core": ^6.1.1
4650+
"@uniswap/router-sdk": ^1.18.0
4651+
"@uniswap/sdk-core": ^7.1.0
46694652
"@uniswap/universal-router": 2.0.0-beta.2
46704653
"@uniswap/v2-core": ^1.0.1
4671-
"@uniswap/v2-sdk": ^4.8.0
4654+
"@uniswap/v2-sdk": ^4.9.0
46724655
"@uniswap/v3-core": 1.0.0
4673-
"@uniswap/v3-sdk": ^3.20.0
4674-
"@uniswap/v4-sdk": ^1.13.0
4656+
"@uniswap/v3-sdk": ^3.21.0
4657+
"@uniswap/v4-sdk": ^1.15.0
46754658
bignumber.js: ^9.0.2
46764659
chai: ^4.3.6
46774660
dotenv: ^16.0.3
@@ -4705,19 +4688,6 @@ __metadata:
47054688
languageName: node
47064689
linkType: hard
47074690

4708-
"@uniswap/v2-sdk@npm:^4.8.0":
4709-
version: 4.8.0
4710-
resolution: "@uniswap/v2-sdk@npm:4.8.0"
4711-
dependencies:
4712-
"@ethersproject/address": ^5.0.2
4713-
"@ethersproject/solidity": ^5.0.9
4714-
"@uniswap/sdk-core": ^6.1.1
4715-
tiny-invariant: ^1.1.0
4716-
tiny-warning: ^1.0.3
4717-
checksum: d81951e7fe7e2addc7a52a8782f97c718c2b6401bd0563152ded2c81f7dbb0435ca29596a25ad212c2ffce0414175c8b8e27e738f02a349f1591b78ca374a993
4718-
languageName: node
4719-
linkType: hard
4720-
47214691
"@uniswap/v2-sdk@npm:^4.9.0":
47224692
version: 4.9.0
47234693
resolution: "@uniswap/v2-sdk@npm:4.9.0"
@@ -4775,22 +4745,6 @@ __metadata:
47754745
languageName: node
47764746
linkType: hard
47774747

4778-
"@uniswap/v3-sdk@npm:3.20.0, @uniswap/v3-sdk@npm:^3.20.0":
4779-
version: 3.20.0
4780-
resolution: "@uniswap/v3-sdk@npm:3.20.0"
4781-
dependencies:
4782-
"@ethersproject/abi": ^5.5.0
4783-
"@ethersproject/solidity": ^5.0.9
4784-
"@uniswap/sdk-core": ^6.1.1
4785-
"@uniswap/swap-router-contracts": ^1.3.0
4786-
"@uniswap/v3-periphery": ^1.1.1
4787-
"@uniswap/v3-staker": 1.0.0
4788-
tiny-invariant: ^1.1.0
4789-
tiny-warning: ^1.0.3
4790-
checksum: 156b75bad315f1be67422a2c08d8c9fc19dfc6328d0c065b37b9261a48f577f909c7a4e2be27b30d4af401261f0fdf9605f41b87aaa9d7810a97a361f7e6840d
4791-
languageName: node
4792-
linkType: hard
4793-
47944748
"@uniswap/v3-sdk@npm:3.21.0, @uniswap/v3-sdk@npm:^3.21.0":
47954749
version: 3.21.0
47964750
resolution: "@uniswap/v3-sdk@npm:3.21.0"
@@ -4837,19 +4791,6 @@ __metadata:
48374791
languageName: node
48384792
linkType: hard
48394793

4840-
"@uniswap/v4-sdk@npm:^1.13.0":
4841-
version: 1.13.0
4842-
resolution: "@uniswap/v4-sdk@npm:1.13.0"
4843-
dependencies:
4844-
"@ethersproject/solidity": ^5.0.9
4845-
"@uniswap/sdk-core": ^6.1.1
4846-
"@uniswap/v3-sdk": 3.20.0
4847-
tiny-invariant: ^1.1.0
4848-
tiny-warning: ^1.0.3
4849-
checksum: ab9e9ff3f73111e9f2570bed206dcea4c981fb96b1ed02b5f047bf55457aea242810f65954dc967d78e9e7d07e735adca3d5022fbcc762d46a1d7c2141a549d2
4850-
languageName: node
4851-
linkType: hard
4852-
48534794
"@uniswap/v4-sdk@npm:^1.15.0":
48544795
version: 1.15.0
48554796
resolution: "@uniswap/v4-sdk@npm:1.15.0"

0 commit comments

Comments
 (0)