{"id":21171798,"url":"https://github.com/TacitusXI/zkSync-AMM-contract","last_synced_at":"2025-07-09T19:33:09.531Z","repository":{"id":276796493,"uuid":"532598888","full_name":"TacitusXI/zkSync-AMM-contract","owner":"TacitusXI","description":"ZK-rollups use ZKPs by combining a large number of Layer 2 transactions (off-chain) into one transaction that then gets mined on the Ethereum mainnet. Instead of mining 100s of transactions individually, they can be rolled up into a single transaction.","archived":false,"fork":false,"pushed_at":"2025-02-10T13:15:51.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T16:30:48.035Z","etag":null,"topics":["amm","blockchain","constant-product","dapp","defi","dex","ethereum","layer2","layer2-dapp","rollup","smart-contracts","solidity","unis","zk-snarks","zksync"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TacitusXI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-04T16:45:42.000Z","updated_at":"2025-02-10T13:15:54.000Z","dependencies_parsed_at":"2025-02-10T14:28:14.095Z","dependency_job_id":"ac5c8af5-2a67-48a2-a5ec-7d280a99660b","html_url":"https://github.com/TacitusXI/zkSync-AMM-contract","commit_stats":null,"previous_names":["tacitusxi/zksync-amm-contract"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TacitusXI/zkSync-AMM-contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacitusXI%2FzkSync-AMM-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacitusXI%2FzkSync-AMM-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacitusXI%2FzkSync-AMM-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacitusXI%2FzkSync-AMM-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TacitusXI","download_url":"https://codeload.github.com/TacitusXI/zkSync-AMM-contract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TacitusXI%2FzkSync-AMM-contract/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502490,"owners_count":23618617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amm","blockchain","constant-product","dapp","defi","dex","ethereum","layer2","layer2-dapp","rollup","smart-contracts","solidity","unis","zk-snarks","zksync"],"created_at":"2024-11-20T16:12:08.851Z","updated_at":"2025-07-09T19:33:09.510Z","avatar_url":"https://github.com/TacitusXI.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗞️ Constant Product Automated Market Maker (AMM) Contract build on zkSync ZK rollup layer2 solution 🗞️\n\u003e 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\n\n\n## 📁 Table of Contents\n* [General Info](#-general-information)\n* [Technologies Used](#-technologies-used)\n* [Features](#-features)\n* [Requirements For Initial Setup](#-requirements-for-initial-setup)\n* [Setup](#-setup)\n\n\n## 🚩 General Information\n- Contract allows users to set and get greeting message on zkSync network\n\n \n## 💻 Technologies Used\n- zksync-web3 library\n- layer2 zk rollup\n\n## 🌟 Features\nZK-Rollup has absolute dominance in user experience, which can be concretely expressed as a :\n- high level of security, \n- fast\n- economic transactions.\n\n## 👀 Requirements For Initial Setup\n- Install [yarn](https://classic.yarnpkg.com/lang/en/docs/install)\n- Install [Docker](https://www.docker.com/products/docker-desktop/)\n\n## 📟 Setup\n### 1. 💾 Clone/Download the Repository\n### 2. 📦 Install Dependencies:\n```\n$ cd repository_file\n$ yarn\n```\n### 3. 🔍  .env environment variables required to set up\nCreate .env file inside project folder\n\n- You can get your private key from your wallet(⚠️Don't share your private key with untrusted parties) \n```\nPRIVATE_KEY = \u003cPrivate key of your wallet u want to deploy contracts from\u003e\n```\n\n\n### 4. 📁 Run Compile\n```\n$ yarn hardhat compile\n```\n\n### 5. 🚀 Deploy to zkSync ( ⚠️ Make sure to have ETH on your wallet in GOERLI testnet ⚠️)\n```\n$ yarn hardhat deploy-zksync\n``` \n\n### 7. 📜 Verify contracts\n- 🔎 Go to [zkScan](https://zksync2-testnet.zkscan.io/#) explorer and find your deployed contract.\n- ☑️ Go to \"Сode\" tab and click \"Verify \u0026 Publish\":\n![Example screenshot](./helpers/zkScan.png)\n- 🤔 Choose how you want to verify: Via flattened source code || Via Standard Input JSON.\n- ✅ Enter the required data and you have successfully verified your contract.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTacitusXI%2FzkSync-AMM-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTacitusXI%2FzkSync-AMM-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTacitusXI%2FzkSync-AMM-contract/lists"}