Skip to content

Commit

Permalink
feat(universal-router-sdk): bump sdk-core to 7.1.0 for base sepolia a…
Browse files Browse the repository at this point in the history
…nd 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]_
  • Loading branch information
jsy1218 authored Jan 14, 2025
1 parent bfc2644 commit a99dc09
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 79 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/monorepo-integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
run: yarn g:check:deps:mismatch

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

- name: 🧑‍⚖️ Check for yarn constraints.pro
run: yarn constraints
10 changes: 5 additions & 5 deletions sdks/universal-router-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
"dependencies": {
"@openzeppelin/contracts": "4.7.0",
"@uniswap/permit2-sdk": "^1.3.0",
"@uniswap/router-sdk": "^1.16.0",
"@uniswap/sdk-core": "^6.1.1",
"@uniswap/router-sdk": "^1.18.0",
"@uniswap/sdk-core": "^7.1.0",
"@uniswap/universal-router": "2.0.0-beta.2",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-sdk": "^4.8.0",
"@uniswap/v2-sdk": "^4.9.0",
"@uniswap/v3-core": "1.0.0",
"@uniswap/v3-sdk": "^3.20.0",
"@uniswap/v4-sdk": "^1.13.0",
"@uniswap/v3-sdk": "^3.21.0",
"@uniswap/v4-sdk": "^1.15.0",
"bignumber.js": "^9.0.2",
"ethers": "^5.7.0"
},
Expand Down
26 changes: 26 additions & 0 deletions sdks/universal-router-sdk/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,32 @@ export const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
},
},
},
[10143]: {
weth: '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701',
routerConfigs: {
[UniversalRouterVersion.V1_2]: {
address: '0x3ae6d8a282d67893e17aa70ebffb33ee5aa65893',
creationBlock: 23678,
},
[UniversalRouterVersion.V2_0]: {
address: '0x3ae6d8a282d67893e17aa70ebffb33ee5aa65893',
creationBlock: 23678,
},
},
},
[84532]: {
weth: '0x4200000000000000000000000000000000000006',
routerConfigs: {
[UniversalRouterVersion.V1_2]: {
address: '0x492e6456d9528771018deb9e87ef7750ef184104',
creationBlock: 20216585,
},
[UniversalRouterVersion.V2_0]: {
address: '0x492e6456d9528771018deb9e87ef7750ef184104',
creationBlock: 20216585,
},
},
},
}

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

"@uniswap/router-sdk@npm:^1.16.0":
version: 1.16.0
resolution: "@uniswap/router-sdk@npm:1.16.0"
"@uniswap/router-sdk@npm:^1.18.0":
version: 1.18.0
resolution: "@uniswap/router-sdk@npm:1.18.0"
dependencies:
"@ethersproject/abi": ^5.5.0
"@uniswap/sdk-core": ^6.1.1
"@uniswap/sdk-core": ^7.1.0
"@uniswap/swap-router-contracts": ^1.3.0
"@uniswap/v2-sdk": ^4.8.0
"@uniswap/v3-sdk": ^3.20.0
"@uniswap/v4-sdk": ^1.13.0
checksum: 2a9ca749298707017f27ad694067ae85d80f306d81835e7ec3bb82cdfb7a0d5e1b1cd767eb6cef6a6f04da959a9051f29d73d2b0512da5ed0bc66e0c0371b53a
"@uniswap/v2-sdk": ^4.9.0
"@uniswap/v3-sdk": ^3.21.0
"@uniswap/v4-sdk": ^1.15.0
checksum: b715c91be8653697251cca6c27054e4a2c1edfd074c93205a9b320ffa16de4afb34a78822485aa72964d4c8f1f1bb2af7ffba0a3c5daf116b57ec8a56fd0608b
languageName: node
linkType: hard

Expand Down Expand Up @@ -4556,23 +4556,6 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/sdk-core@npm:^6.1.1":
version: 6.1.1
resolution: "@uniswap/sdk-core@npm:6.1.1"
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
checksum: f9b0433aaec6727fbf012eb5a1fecf34c791ae5411980e56032db694bf12eff09dee281a19266ffae138a968ce14b8dac2740a5b4e9495c81b3b21299303c72d
languageName: node
linkType: hard

"@uniswap/sdk-core@npm:^7.1.0":
version: 7.1.0
resolution: "@uniswap/sdk-core@npm:7.1.0"
Expand Down Expand Up @@ -4664,14 +4647,14 @@ __metadata:
"@types/node": ^18.7.16
"@types/node-fetch": ^2.6.2
"@uniswap/permit2-sdk": ^1.3.0
"@uniswap/router-sdk": ^1.16.0
"@uniswap/sdk-core": ^6.1.1
"@uniswap/router-sdk": ^1.18.0
"@uniswap/sdk-core": ^7.1.0
"@uniswap/universal-router": 2.0.0-beta.2
"@uniswap/v2-core": ^1.0.1
"@uniswap/v2-sdk": ^4.8.0
"@uniswap/v2-sdk": ^4.9.0
"@uniswap/v3-core": 1.0.0
"@uniswap/v3-sdk": ^3.20.0
"@uniswap/v4-sdk": ^1.13.0
"@uniswap/v3-sdk": ^3.21.0
"@uniswap/v4-sdk": ^1.15.0
bignumber.js: ^9.0.2
chai: ^4.3.6
dotenv: ^16.0.3
Expand Down Expand Up @@ -4705,19 +4688,6 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/v2-sdk@npm:^4.8.0":
version: 4.8.0
resolution: "@uniswap/v2-sdk@npm:4.8.0"
dependencies:
"@ethersproject/address": ^5.0.2
"@ethersproject/solidity": ^5.0.9
"@uniswap/sdk-core": ^6.1.1
tiny-invariant: ^1.1.0
tiny-warning: ^1.0.3
checksum: d81951e7fe7e2addc7a52a8782f97c718c2b6401bd0563152ded2c81f7dbb0435ca29596a25ad212c2ffce0414175c8b8e27e738f02a349f1591b78ca374a993
languageName: node
linkType: hard

"@uniswap/v2-sdk@npm:^4.9.0":
version: 4.9.0
resolution: "@uniswap/v2-sdk@npm:4.9.0"
Expand Down Expand Up @@ -4775,22 +4745,6 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/v3-sdk@npm:3.20.0, @uniswap/v3-sdk@npm:^3.20.0":
version: 3.20.0
resolution: "@uniswap/v3-sdk@npm:3.20.0"
dependencies:
"@ethersproject/abi": ^5.5.0
"@ethersproject/solidity": ^5.0.9
"@uniswap/sdk-core": ^6.1.1
"@uniswap/swap-router-contracts": ^1.3.0
"@uniswap/v3-periphery": ^1.1.1
"@uniswap/v3-staker": 1.0.0
tiny-invariant: ^1.1.0
tiny-warning: ^1.0.3
checksum: 156b75bad315f1be67422a2c08d8c9fc19dfc6328d0c065b37b9261a48f577f909c7a4e2be27b30d4af401261f0fdf9605f41b87aaa9d7810a97a361f7e6840d
languageName: node
linkType: hard

"@uniswap/v3-sdk@npm:3.21.0, @uniswap/v3-sdk@npm:^3.21.0":
version: 3.21.0
resolution: "@uniswap/v3-sdk@npm:3.21.0"
Expand Down Expand Up @@ -4837,19 +4791,6 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/v4-sdk@npm:^1.13.0":
version: 1.13.0
resolution: "@uniswap/v4-sdk@npm:1.13.0"
dependencies:
"@ethersproject/solidity": ^5.0.9
"@uniswap/sdk-core": ^6.1.1
"@uniswap/v3-sdk": 3.20.0
tiny-invariant: ^1.1.0
tiny-warning: ^1.0.3
checksum: ab9e9ff3f73111e9f2570bed206dcea4c981fb96b1ed02b5f047bf55457aea242810f65954dc967d78e9e7d07e735adca3d5022fbcc762d46a1d7c2141a549d2
languageName: node
linkType: hard

"@uniswap/v4-sdk@npm:^1.15.0":
version: 1.15.0
resolution: "@uniswap/v4-sdk@npm:1.15.0"
Expand Down

0 comments on commit a99dc09

Please sign in to comment.