Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

This package includes a CLI script for deploying the latest Uniswap V3 smart contracts to zkSync Era.

This fork has been updated to be compatible with the Lens Network. The scripts and dependencies have been updated but the contracts remain the same. `state.json` has the current deployment.

# Integration

**The most recent deployments to the Lens Network sandbox are saved in `state.json`**

Guides for integrating with the Uniswap contracts via javascript for fetching prices, creating and executing trades and managing liquidity pools can be found on their [docs page](https://docs.uniswap.org/). Whenever they reference a smart contract address such as `QUOTER_CONTRACT_ADDRESS` simply use the appropriate one from `state.json` (in this case `quoterV2Address`) and a Lens Sandbox rpc url.

For referencing the zkSync version of any contracts refer to the [Uniswap zkSync organization on Github](https://github.com/uniswap-zksync).

# Misc.

## Licensing

Please note that Uniswap V3 is under [BUSL license](https://github.com/Uniswap/v3-core#licensing) until the Change Date, currently 2023-04-01. Exceptions to the license may be specified by Uniswap Governance via Additional Use Grants, which can, for example, allow V3 to be deployed on new chains. Please follow the [Uniswap Governance process](https://gov.uniswap.org/t/community-governance-process/7732) to request a DAO vote for exceptions to the license, or to move up the Change Date.
Expand Down
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,23 @@
"url": "https://github.com/uniswap-zksync/era-uniswap-deploy-v3/issues"
},
"devDependencies": {
"@ethersproject/abstract-signer": "^5.5.0",
"@ethersproject/address": "^5.5.0",
"@ethersproject/bignumber": "^5.5.0",
"@ethersproject/constants": "^5.5.0",
"@ethersproject/contracts": "^5.5.0",
"@ethersproject/providers": "^5.5.1",
"@ethersproject/wallet": "^5.5.0",
"@matterlabs/hardhat-zksync-deploy": "^0.6.3",
"@matterlabs/hardhat-zksync-solc": "^0.3.17",
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/address": "^5.7.0",
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/constants": "^5.7.0",
"@ethersproject/contracts": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@ethersproject/wallet": "^5.7.0",
"@matterlabs/hardhat-zksync-deploy": "^1.5.0",
"@matterlabs/hardhat-zksync-solc": "^1.2.2",
"@types/chai": "^4.2.12",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.3",
"@uniswap/sdk-core": "^1.0.8",
"@uniswap/sdk-core": "^5.3.1",
"@uniswap/swap-router-contracts": "https://github.com/uniswap-zksync/era-uniswap-swap-router-contracts.git#v1.1.0-zksync-era",
"@uniswap/v3-core": "https://github.com/uniswap-zksync/era-uniswap-v3-core.git#v1.0.0-zksync-era",
"@uniswap/v3-periphery": "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.1.1-zksync-era",
"@uniswap/v3-sdk": "^3.21.0",
"@uniswap/v3-staker": "https://github.com/uniswap-zksync/era-uniswap-v3-staker.git#v1.0.2-zksync-era",
"chai": "^4.2.0",
"era-openzeppelin-contracts": "https://github.com/uniswap-zksync/era-openzeppelin-contracts.git#v3.4.1-solc-0.7-2-zksync-era",
Expand All @@ -53,6 +54,7 @@
"ts-node": "^9.0.0",
"typescript": "^4.0.2",
"v3-periphery-1_3_0": "https://github.com/uniswap-zksync/era-uniswap-v3-periphery.git#v1.3.0-zksync-era",
"zksync-web3": "^0.14.3"
"zksync-ethers": "^5.10.0",
"zksync-web3": "^0.17.1"
}
}
Loading