🗞️ Constant Product Automated Market Maker (AMM) Contract build on zkSync ZK rollup layer2 solution 🗞️
There are 3 contracts: token0.sol and token1.sol are erc20 tokens and CPAMM is AMM contract to swap these two tokens. Instructions how to deploy and verify contracts on zkSync explorer below
- Contract allows users to set and get greeting message on zkSync network
- zksync-web3 library
- layer2 zk rollup
ZK-Rollup has absolute dominance in user experience, which can be concretely expressed as a :
- high level of security,
- fast
- economic transactions.
$ cd repository_file
$ yarn
Create .env file inside project folder
- You can get your private key from your wallet(
⚠️ Don't share your private key with untrusted parties)
PRIVATE_KEY = <Private key of your wallet u want to deploy contracts from>
$ yarn hardhat compile
$ yarn hardhat deploy-zksync
- 🔎 Go to zkScan explorer and find your deployed contract.
- ☑️ Go to "Сode" tab and click "Verify & Publish":
- 🤔 Choose how you want to verify: Via flattened source code || Via Standard Input JSON.
- ✅ Enter the required data and you have successfully verified your contract.
Created by @LESKOV - feel free to contact me!