Skip to content

Commit 2c59c35

Browse files
committed
feat: zksync-ethers
1 parent 0f4b79a commit 2c59c35

File tree

2 files changed

+99
-26
lines changed

2 files changed

+99
-26
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@
5454
"typescript": "^4.0.2",
5555
"v3-periphery-1_3_0": "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era",
5656
"zksync-web3": "^0.17.1"
57+
},
58+
"dependencies": {
59+
"@uniswap/v3-sdk": "^3.21.0",
60+
"zksync-ethers": "5"
5761
}
5862
}

yarn.lock

Lines changed: 95 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@chainsafe/persistent-merkle-tree" "^0.4.2"
4444
case "^1.6.3"
4545

46-
"@ethersproject/[email protected]", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.7.0":
46+
"@ethersproject/[email protected]", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.5.0", "@ethersproject/abi@^5.7.0":
4747
version "5.7.0"
4848
resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz"
4949
integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==
@@ -297,7 +297,7 @@
297297
elliptic "6.5.4"
298298
hash.js "1.1.7"
299299

300-
"@ethersproject/[email protected]":
300+
"@ethersproject/[email protected]", "@ethersproject/solidity@^5.0.9":
301301
version "5.7.0"
302302
resolved "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.7.0.tgz"
303303
integrity sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==
@@ -685,6 +685,11 @@
685685
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-3.4.1-solc-0.7-2.tgz#371c67ebffe50f551c3146a9eec5fe6ffe862e92"
686686
integrity sha512-tAG9LWg8+M2CMu7hIsqHPaTyG4uDzjr6mhvH96LvOpLZZj6tgzTluBt+LsCf1/QaYrlis6pITvpIaIhE+iZB+Q==
687687

688+
"@openzeppelin/[email protected]":
689+
version "3.4.2-solc-0.7"
690+
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-3.4.2-solc-0.7.tgz#38f4dbab672631034076ccdf2f3201fab1726635"
691+
integrity sha512-W6QmqgkADuFcTLzHL8vVoNBtkwjvQRpYIAom7KiUNoLKghyx3FgH0GBjt8NRvigV1ZmMOBllvE1By1C+bi8WpA==
692+
688693
"@pkgjs/parseargs@^0.11.0":
689694
version "0.11.0"
690695
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
@@ -906,6 +911,33 @@
906911
tiny-invariant "^1.1.0"
907912
toformat "^2.0.0"
908913

914+
"@uniswap/sdk-core@^7.1.0":
915+
version "7.1.0"
916+
resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-7.1.0.tgz#9044c95b58fc5126f62497d851a2f013b4c09ae1"
917+
integrity sha512-uGbLRM8cFBNr+yUcwbPgbe2SSvg8PhEUHumakdGaigOO0CWm4zg84Hkx0Li7SucJL4Z6VelKJ2XW2sZEPNrnYw==
918+
dependencies:
919+
"@ethersproject/address" "^5.0.2"
920+
"@ethersproject/bytes" "^5.7.0"
921+
"@ethersproject/keccak256" "5.7.0"
922+
"@ethersproject/strings" "5.7.0"
923+
big.js "^5.2.2"
924+
decimal.js-light "^2.5.0"
925+
jsbi "^3.1.4"
926+
tiny-invariant "^1.1.0"
927+
toformat "^2.0.0"
928+
929+
"@uniswap/swap-router-contracts@^1.3.0":
930+
version "1.3.1"
931+
resolved "https://registry.yarnpkg.com/@uniswap/swap-router-contracts/-/swap-router-contracts-1.3.1.tgz#0ebbb93eb578625618ed9489872de381f9c66fb4"
932+
integrity sha512-mh/YNbwKb7Mut96VuEtL+Z5bRe0xVIbjjiryn+iMMrK2sFKhR4duk/86mEz0UO5gSx4pQIw9G5276P5heY/7Rg==
933+
dependencies:
934+
"@openzeppelin/contracts" "3.4.2-solc-0.7"
935+
"@uniswap/v2-core" "^1.0.1"
936+
"@uniswap/v3-core" "^1.0.0"
937+
"@uniswap/v3-periphery" "^1.4.4"
938+
dotenv "^14.2.0"
939+
hardhat-watcher "^2.1.1"
940+
909941
"@uniswap/swap-router-contracts@https://github.com/uniswap-zksync/era-uniswap-swap-router-contracts.git#v1.1.0-zksync-era":
910942
version "1.1.0"
911943
resolved "https://github.com/uniswap-zksync/era-uniswap-swap-router-contracts.git#d1bf27625df57c0a1281f9c25b05099bb1c03fcf"
@@ -916,14 +948,30 @@
916948
"@uniswap/v3-periphery" "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era"
917949
hardhat-watcher "^2.1.1"
918950

919-
"@uniswap/v2-core@https://github.com/uniswap-zksync/era-uniswap-v2-core.git#v1.0.1-zksync-era":
951+
"@uniswap/v2-core@^1.0.1", "@uniswap/v2-core@https://github.com/uniswap-zksync/era-uniswap-v2-core.git#v1.0.1-zksync-era":
920952
version "1.0.1"
921953
resolved "https://github.com/uniswap-zksync/era-uniswap-v2-core.git#052cc8b612b49fed4fb388586b63eaed2b80d936"
922954

923-
"@uniswap/v3-core@https://github.com/uniswap-zksync/era-uniswap-v3-core.git#v1.0.0-zksync-era":
955+
"@uniswap/v3-core@1.0.0", "@uniswap/v3-core@https://github.com/uniswap-zksync/era-uniswap-v3-core.git#v1.0.0-zksync-era":
924956
version "1.0.0"
925957
resolved "https://github.com/uniswap-zksync/era-uniswap-v3-core.git#9ba7b052ab83b6a2a7120eeff04e6efe050e881d"
926958

959+
"@uniswap/v3-core@^1.0.0":
960+
version "1.0.1"
961+
resolved "https://registry.yarnpkg.com/@uniswap/v3-core/-/v3-core-1.0.1.tgz#b6d2bdc6ba3c3fbd610bdc502395d86cd35264a0"
962+
integrity sha512-7pVk4hEm00j9tc71Y9+ssYpO6ytkeI0y7WE9P6UcmNzhxPePwyAxImuhVsTqWK9YFvzgtvzJHi64pBl4jUzKMQ==
963+
964+
"@uniswap/v3-periphery@^1.0.1", "@uniswap/v3-periphery@^1.1.1", "@uniswap/v3-periphery@^1.4.4":
965+
version "1.4.4"
966+
resolved "https://registry.yarnpkg.com/@uniswap/v3-periphery/-/v3-periphery-1.4.4.tgz#d2756c23b69718173c5874f37fd4ad57d2f021b7"
967+
integrity sha512-S4+m+wh8HbWSO3DKk4LwUCPZJTpCugIsHrWR86m/OrUyvSqGDTXKFfc2sMuGXCZrD1ZqO3rhQsKgdWg3Hbb2Kw==
968+
dependencies:
969+
"@openzeppelin/contracts" "3.4.2-solc-0.7"
970+
"@uniswap/lib" "^4.0.1-alpha"
971+
"@uniswap/v2-core" "^1.0.1"
972+
"@uniswap/v3-core" "^1.0.0"
973+
base64-sol "1.0.1"
974+
927975
"@uniswap/v3-periphery@https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.0.1-zksync-era":
928976
version "1.0.1"
929977
resolved "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#d3d4acfe534e395e7158e4a431d87dace8a341ba"
@@ -945,7 +993,7 @@
945993
base64-sol "1.0.1"
946994
hardhat-watcher "^2.1.1"
947995

948-
"@uniswap/v3-periphery@https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era":
996+
"@uniswap/v3-periphery@https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era", "v3-periphery-1_3_0@https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era":
949997
version "1.3.0"
950998
resolved "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#2622d3f5a8db2ea876537d8ff7b428ab59ce436e"
951999
dependencies:
@@ -956,6 +1004,29 @@
9561004
base64-sol "1.0.1"
9571005
hardhat-watcher "^2.1.1"
9581006

1007+
"@uniswap/v3-sdk@^3.21.0":
1008+
version "3.21.0"
1009+
resolved "https://registry.yarnpkg.com/@uniswap/v3-sdk/-/v3-sdk-3.21.0.tgz#cf04de0d78085afe571a1e2ccafa9f5152a7a15f"
1010+
integrity sha512-iFNtnXJ4SRZwekJh5CQrcEIqR5vZpxER4z8SC4FhY7wwKn0Vmv5jEH5dxieyFpa3ElBXvaaCbrNDYFmLrz+0kQ==
1011+
dependencies:
1012+
"@ethersproject/abi" "^5.5.0"
1013+
"@ethersproject/solidity" "^5.0.9"
1014+
"@uniswap/sdk-core" "^7.1.0"
1015+
"@uniswap/swap-router-contracts" "^1.3.0"
1016+
"@uniswap/v3-periphery" "^1.1.1"
1017+
"@uniswap/v3-staker" "1.0.0"
1018+
tiny-invariant "^1.1.0"
1019+
tiny-warning "^1.0.3"
1020+
1021+
"@uniswap/[email protected]":
1022+
version "1.0.0"
1023+
resolved "https://registry.yarnpkg.com/@uniswap/v3-staker/-/v3-staker-1.0.0.tgz#9a6915ec980852479dfc903f50baf822ff8fa66e"
1024+
integrity sha512-JV0Qc46Px5alvg6YWd+UIaGH9lDuYG/Js7ngxPit1SPaIP30AlVer1UYB7BRYeUVVxE+byUyIeN5jeQ7LLDjIw==
1025+
dependencies:
1026+
"@openzeppelin/contracts" "3.4.1-solc-0.7-2"
1027+
"@uniswap/v3-core" "1.0.0"
1028+
"@uniswap/v3-periphery" "^1.0.1"
1029+
9591030
"@uniswap/v3-staker@https://github.com/uniswap-zksync/era-uniswap-v3-staker.git#v1.0.2-zksync-era":
9601031
version "1.0.2"
9611032
resolved "https://github.com/uniswap-zksync/era-uniswap-v3-staker.git#5c5f8b96182447c630e85aeaaa9698a7e1898b68"
@@ -1699,6 +1770,11 @@ dockerode@^4.0.2:
16991770
docker-modem "^5.0.3"
17001771
tar-fs "~2.0.1"
17011772

1773+
dotenv@^14.2.0:
1774+
version "14.3.2"
1775+
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-14.3.2.tgz#7c30b3a5f777c79a3429cb2db358eef6751e8369"
1776+
integrity sha512-vwEppIphpFdvaMCaHfCEv9IgwcxMljMw2TnAQBB4VWPvzXQLTb82jwmdOKzlEVUL3gNFT4l4TPKO+Bn+sqcrVQ==
1777+
17021778
eastasianwidth@^0.2.0:
17031779
version "0.2.0"
17041780
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
@@ -3267,7 +3343,8 @@ streamsearch@^1.1.0:
32673343
resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764"
32683344
integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==
32693345

3270-
"string-width-cjs@npm:string-width@^4.2.0":
3346+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
3347+
name string-width-cjs
32713348
version "4.2.3"
32723349
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
32733350
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -3284,15 +3361,6 @@ streamsearch@^1.1.0:
32843361
is-fullwidth-code-point "^2.0.0"
32853362
strip-ansi "^4.0.0"
32863363

3287-
string-width@^4.1.0, string-width@^4.2.0:
3288-
version "4.2.3"
3289-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
3290-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
3291-
dependencies:
3292-
emoji-regex "^8.0.0"
3293-
is-fullwidth-code-point "^3.0.0"
3294-
strip-ansi "^6.0.1"
3295-
32963364
string-width@^5.0.1, string-width@^5.1.2:
32973365
version "5.1.2"
32983366
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
@@ -3436,6 +3504,11 @@ tiny-invariant@^1.1.0:
34363504
resolved "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.1.0.tgz"
34373505
integrity sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==
34383506

3507+
tiny-warning@^1.0.3:
3508+
version "1.0.3"
3509+
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
3510+
integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==
3511+
34393512
34403513
version "0.0.33"
34413514
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@@ -3582,17 +3655,6 @@ uuid@^8.3.2:
35823655
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
35833656
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
35843657

3585-
"v3-periphery-1_3_0@https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era":
3586-
version "1.3.0"
3587-
resolved "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#2622d3f5a8db2ea876537d8ff7b428ab59ce436e"
3588-
dependencies:
3589-
"@openzeppelin/contracts" "3.4.1-solc-0.7-2"
3590-
"@uniswap/lib" "^4.0.1-alpha"
3591-
"@uniswap/v2-core" "https://github.com/uniswap-zksync/era-uniswap-v2-core.git#v1.0.1-zksync-era"
3592-
"@uniswap/v3-core" "https://github.com/uniswap-zksync/era-uniswap-v3-core.git#v1.0.0-zksync-era"
3593-
base64-sol "1.0.1"
3594-
hardhat-watcher "^2.1.1"
3595-
35963658
webidl-conversions@^3.0.0:
35973659
version "3.0.1"
35983660
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
@@ -3725,6 +3787,13 @@ yocto-queue@^0.1.0:
37253787
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"
37263788
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
37273789

3790+
zksync-ethers@5:
3791+
version "5.10.0"
3792+
resolved "https://registry.yarnpkg.com/zksync-ethers/-/zksync-ethers-5.10.0.tgz#3caf25478539a3fd6e170c13555cec6a1dae32e2"
3793+
integrity sha512-OAjTGAHF9wbdkRGkj7XZuF/a1Sk/FVbwH4pmLjAKlR7mJ7sQtQhBhrPU2dCc67xLaNvEESPfwil19ES5wooYFg==
3794+
dependencies:
3795+
ethers "~5.7.0"
3796+
37283797
zksync-web3@^0.17.1:
37293798
version "0.17.1"
37303799
resolved "https://registry.yarnpkg.com/zksync-web3/-/zksync-web3-0.17.1.tgz#809c3b31295c29aae924ec2fe47f87701b539012"

0 commit comments

Comments
 (0)