{"id":43832337,"url":"https://github.com/AztecProtocol/gregoswap","last_synced_at":"2026-02-17T17:00:46.628Z","repository":{"id":325228515,"uuid":"1089585883","full_name":"AztecProtocol/gregoswap","owner":"AztecProtocol","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-11T19:13:58.000Z","size":19520,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T02:54:26.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/AztecProtocol.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-04T14:42:22.000Z","updated_at":"2026-02-11T19:14:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AztecProtocol/gregoswap","commit_stats":null,"previous_names":["aztecprotocol/gregoswap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AztecProtocol/gregoswap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AztecProtocol%2Fgregoswap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AztecProtocol%2Fgregoswap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AztecProtocol%2Fgregoswap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AztecProtocol%2Fgregoswap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AztecProtocol","download_url":"https://codeload.github.com/AztecProtocol/gregoswap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AztecProtocol%2Fgregoswap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29550799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-06T03:32:31.034Z","updated_at":"2026-02-17T17:00:46.606Z","avatar_url":"https://github.com/AztecProtocol.png","language":"TypeScript","readme":"# GregoSwap\n\nA decentralized token swap application built on the Aztec blockchain featuring private token swaps and a proof-of-password token faucet.\n\n## Features\n\n- **Private Token Swaps**: Swap between GregoCoin (GRG) and GregoCoinPremium (GRGP) using an Automated Market Maker (AMM)\n- **Token Faucet**: Claim free GregoCoin tokens using a proof-of-password mechanism\n- **Wallet Integration**: Connect with Aztec wallet extensions or use an embedded wallet\n- **Multi-Flow Onboarding**: Seamless onboarding experience that adapts based on user's token balance\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **Node.js**: Version 22 or higher\n- **Yarn**: Version 4.5.2 (via Corepack)\n- **Aztec CLI**: Required for compiling contracts and running local sandbox\n\n## Installation\n\n### 1. Install Dependencies\n\n```bash\nyarn install\n```\n\n### 2. Install Aztec CLI\n\n```bash\nVERSION=4.0.0-nightly.20260205 bash -i \u003c(curl -sL https://install.aztec.network/4.0.0-nightly.20260205/)\n```\n\n### 3. Set Aztec Version\n\nThe project uses Aztec version `v4.0.0-devnet.1-patch.0`. Set it using:\n\n```bash\naztec-up install 4.0.0-nightly.20260205\n```\n\n## Updating to Latest Nightly\n\n```bash\nnode scripts/update-to-nightly.js                                        # auto-detect latest\nnode scripts/update-to-nightly.js --version 4.0.0-nightly.20260206       # specific version\nPASSWORD=\u003cpw\u003e node scripts/update-to-nightly.js --deploy                  # update + deploy to nextnet\nPASSWORD=\u003cpw\u003e node scripts/update-to-nightly.js --deploy devnet           # update + deploy to devnet\n```\n\nUse `--deploy [local|devnet|nextnet]` to deploy after update (default: `nextnet`). Use `--skip-aztec-up` to skip Aztec CLI installation. In CI (`CI=1`), the script installs Aztec via curl instead of aztec-up.\n\n## Development Setup\n\n### Running Locally with Aztec Sandbox\n\n#### 1. Start the Aztec Sandbox\n\nIn a separate terminal, start the local Aztec sandbox:\n\n```bash\naztec start --local-network\n```\n\nThis will start a local Aztec node on `http://localhost:8080`.\n\n**Note**: Keep this terminal running while developing. The local node must be running for contract deployment and local testing.\n\n#### 2. Compile Contracts\n\nIn your main terminal, compile the smart contracts:\n\n```bash\nyarn compile:contracts\n```\n\nThis will:\n\n- Compile the Noir contracts in the `contracts/` directory\n- Generate TypeScript bindings for contract interaction\n- Output compiled artifacts to `contracts/target/`\n\n#### 3. Deploy Contracts Locally\n\nSet a password for the proof-of-password contract and deploy:\n\n```bash\nPASSWORD=your-secret-password PROVER_ENABLED=false yarn deploy:local\n```\n\n**Important**: Remember this password! You'll need it to claim tokens through the faucet.\n\nThis will:\n\n- Deploy GregoCoin and GregoCoinPremium token contracts\n- Deploy the AMM (Automated Market Maker) contract\n- Deploy the ProofOfPassword contract\n- Generate a `deployed-addresses.json` file with contract addresses\n\n#### 4. Start the Development Server\n\n```bash\nyarn serve\n```\n","funding_links":[],"categories":["Coding"],"sub_categories":["Examples"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAztecProtocol%2Fgregoswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAztecProtocol%2Fgregoswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAztecProtocol%2Fgregoswap/lists"}