Skip to content

Commit

Permalink
Supported of universal-router-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Jul 11, 2024
1 parent ad1ff3c commit d5030d2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 59 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,10 +31,10 @@
"test:hardhat": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' hardhat test"
},
"dependencies": {
"@helix-bridge/router-sdk": "1.0.5",
"@helix-bridge/sdk-core": "1.0.5",
"@helix-bridge/v2-sdk": "1.0.5",
"@helix-bridge/v3-sdk": "1.0.5",
"@helix-bridge/router-sdk": "1.1.0",
"@helix-bridge/sdk-core": "1.1.0",
"@helix-bridge/v2-sdk": "1.1.0",
"@helix-bridge/v3-sdk": "1.1.0",
"@uniswap/permit2-sdk": "^1.2.1",
"@uniswap/universal-router": "1.6.0",
"bignumber.js": "^9.0.2",
Expand Down
8 changes: 7 additions & 1 deletion sdks/universal-router-sdk/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = {
router: '0x0ac58df0cc3542bec4cda71b16d06c3ccc39f405',
weth: '0xfF204e2681A6fA0e2C3FaDe68a1B28fb90E4Fc5F',
creationBlock: 2753030,
}
},
// darwinia
[46]: {
router: '0xF8cD37bfC0f8a377b8A82C574c1bC4370EDc480B',
weth: '0xE7578598Aac020abFB918f33A20faD5B71d670b4',
creationBlock: 3087706,
},
}

export const UNIVERSAL_ROUTER_ADDRESS = (chainId: number): string => {
Expand Down
65 changes: 11 additions & 54 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2216,16 +2216,16 @@ __metadata:
languageName: node
linkType: hard

"@helix-bridge/router-sdk@npm:1.0.5":
version: 1.0.5
resolution: "@helix-bridge/router-sdk@npm:1.0.5::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Frouter-sdk%2F1.0.5%2F61669a7a2b82ba3ee71314b979ad7c8ff0e1cf4f"
"@helix-bridge/router-sdk@npm:1.1.0":
version: 1.1.0
resolution: "@helix-bridge/router-sdk@npm:1.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Frouter-sdk%2F1.1.0%2F5aade6589e6ea9ae00af042e7320a0c79949d820"
dependencies:
"@ethersproject/abi": ^5.5.0
"@helix-bridge/sdk-core": 1.0.5
"@helix-bridge/v2-sdk": 1.0.5
"@helix-bridge/v3-sdk": 1.0.5
"@helix-bridge/sdk-core": 1.1.0
"@helix-bridge/v2-sdk": 1.1.0
"@helix-bridge/v3-sdk": 1.1.0
"@uniswap/swap-router-contracts": ^1.3.0
checksum: 0ada524ee42f6ebd8e5963b4addfb6320a1b4b8cbe32e7f887e89ff0a5c4f8cc6a6dbbe7d23c273c0b4055018a5d1f2cd5e3611bf2baf13653c8234587b091b9
checksum: e5c8ab16af8be60923c997baddaeef8f06094e528f2b8151435fed1ce289429dfd88e112188eff7bb50ca7c250795595e967152bf4bf42a2dc7e19395eb945ca
languageName: node
linkType: hard

Expand All @@ -2244,20 +2244,6 @@ __metadata:
languageName: unknown
linkType: soft

"@helix-bridge/sdk-core@npm:1.0.5":
version: 1.0.5
resolution: "@helix-bridge/sdk-core@npm:1.0.5::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Fsdk-core%2F1.0.5%2F9ce81e268c84d0c8dd7126bf198d7b93da9c41eb"
dependencies:
"@ethersproject/address": ^5.0.2
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: e63e456044542c0e8c5ea6b44dcd377c44c3be984c63625d9ef67dbf69bdd1c08691dda61d75b5ff0d3022120613c40afb02ba7dc11c97933139855fc34e84c7
languageName: node
linkType: hard

"@helix-bridge/sdk-core@npm:1.1.0":
version: 1.1.0
resolution: "@helix-bridge/sdk-core@npm:1.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Fsdk-core%2F1.1.0%2F623ec434c8255fb44ff4b31c1301fd239907509f"
Expand Down Expand Up @@ -2323,10 +2309,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@helix-bridge/universal-router-sdk@workspace:sdks/universal-router-sdk"
dependencies:
"@helix-bridge/router-sdk": 1.0.5
"@helix-bridge/sdk-core": 1.0.5
"@helix-bridge/v2-sdk": 1.0.5
"@helix-bridge/v3-sdk": 1.0.5
"@helix-bridge/router-sdk": 1.1.0
"@helix-bridge/sdk-core": 1.1.0
"@helix-bridge/v2-sdk": 1.1.0
"@helix-bridge/v3-sdk": 1.1.0
"@types/chai": ^4.3.3
"@types/mocha": ^9.1.1
"@types/node": ^18.7.16
Expand All @@ -2348,19 +2334,6 @@ __metadata:
languageName: unknown
linkType: soft

"@helix-bridge/v2-sdk@npm:1.0.5":
version: 1.0.5
resolution: "@helix-bridge/v2-sdk@npm:1.0.5::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Fv2-sdk%2F1.0.5%2Fc346994af25ca6540c435b7bfa46eb999fdcdaae"
dependencies:
"@ethersproject/address": ^5.0.2
"@ethersproject/solidity": ^5.0.9
"@helix-bridge/sdk-core": 1.0.5
tiny-invariant: ^1.1.0
tiny-warning: ^1.0.3
checksum: ada184f380c97e5a7282854682cdba49244fb6ba99734a165d8992293faad35e50a18c1887117fe6abc9d37a9b73f135d91e80a6b992ff50a7a47e81f8657813
languageName: node
linkType: hard

"@helix-bridge/v2-sdk@npm:1.1.0":
version: 1.1.0
resolution: "@helix-bridge/v2-sdk@npm:1.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Fv2-sdk%2F1.1.0%2Fff090c94a8f78ba2f1fa1e9f4821bfdc1952fa32"
Expand Down Expand Up @@ -2391,22 +2364,6 @@ __metadata:
languageName: unknown
linkType: soft

"@helix-bridge/v3-sdk@npm:1.0.5":
version: 1.0.5
resolution: "@helix-bridge/v3-sdk@npm:1.0.5::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Fv3-sdk%2F1.0.5%2F9c1d40d7e3ff8a7e00e68084e6cc78375193e360"
dependencies:
"@ethersproject/abi": ^5.5.0
"@ethersproject/solidity": ^5.0.9
"@helix-bridge/sdk-core": 1.0.5
"@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: 0b11c3ffd741a4bd45edfd09950f1b2e8b0b629c3b7a31f8553e0b1f238e37765287bd488917d77bdc1302bd79b1eb097576b7486fe19ea8bdba6510314d10f0
languageName: node
linkType: hard

"@helix-bridge/v3-sdk@npm:1.1.0":
version: 1.1.0
resolution: "@helix-bridge/v3-sdk@npm:1.1.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40helix-bridge%2Fv3-sdk%2F1.1.0%2Fb201a7d1e7e8a8bddab3da1b612f4bdb6d887328"
Expand Down

0 comments on commit d5030d2

Please sign in to comment.