{"id":25023162,"url":"https://github.com/codernotme/crco","last_synced_at":"2025-04-30T05:02:33.795Z","repository":{"id":275464053,"uuid":"925595466","full_name":"codernotme/crco","owner":"codernotme","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T14:59:17.000Z","size":3577,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T12:44:26.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crco-bice.vercel.app","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/codernotme.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":"2025-02-01T08:48:34.000Z","updated_at":"2025-03-12T14:59:20.000Z","dependencies_parsed_at":"2025-03-12T15:32:08.291Z","dependency_job_id":"1569dc29-8ae9-415a-a09f-aa89e31b045a","html_url":"https://github.com/codernotme/crco","commit_stats":null,"previous_names":["codernotme/crco"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fcrco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fcrco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fcrco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernotme%2Fcrco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codernotme","download_url":"https://codeload.github.com/codernotme/crco/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251644828,"owners_count":21620630,"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":[],"created_at":"2025-02-05T14:36:42.755Z","updated_at":"2025-04-30T05:02:33.750Z","avatar_url":"https://github.com/codernotme.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrCo Bridge - Cross-Chain Token Bridge\n\nA secure and efficient cross-chain bridge for transferring tokens and NFTs between different blockchain networks.\n\n[Site Demo](https://crco-bice.vercel.app/)\n\n## Features\n\n- 🔄 Cross-chain token transfers\n- 🖼️ NFT bridging support\n- 🔒 Secure proof verification\n- 🌐 Multi-chain support\n- 👛 Multiple wallet support\n- 📱 Responsive design\n- ⚡ Real-time transaction tracking\n- 🔍 Transaction proof verification\n\n## Prerequisites\n\n### Development Environment\n\n- Node.js (v16.x or higher)\n- npm (v8.x or higher)\n- Git\n- bun\n\n### Blockchain Networks\n\n- Access to Amoy Testnet\n- Access to Sepolia Testnet\n- MetaMask wallet installed\n\n### Environment Variables\n\nCreate a `.env` file in the root directory with the following variables:\n\n```env\n# Network RPC URLs\nAMOY_RPC_URL=https://testnet.amoy.xyz/rpc\nSEPOLIA_RPC_URL=https://rpc.sepolia.org\n\n# Contract Deployment\nPRIVATE_KEY=your_private_key_here\n\n# Token Addresses (after deployment)\nNEXT_PUBLIC_AMOY_TOKEN_ADDRESS=your_amoy_token_address\nNEXT_PUBLIC_SEPOLIA_TOKEN_ADDRESS=your_sepolia_token_address\n\n# Bridge Addresses (after deployment)\nNEXT_PUBLIC_AMOY_BRIDGE_ADDRESS=your_amoy_bridge_address\nNEXT_PUBLIC_SEPOLIA_BRIDGE_ADDRESS=your_sepolia_bridge_address\n```\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/codernotme/crco\ncd crco\n```\n\n2. Install dependencies:\n\n```bash\nnpm install --force\n```\n\nor\n\n```bash\nbun i\n```\n\n3. Set up environment variables as described above.\n\n## Local Development with Docker\n\n### Build and run\n\n```bash\ndocker-compose up --build\n```\n\n### Stop services\n\n```bash\ndocker-compose down\n```\n\n## Manual Docker Build\n\n### Build image\n\n```bash\ndocker build -t crco .\n```\n\n### Run container\n\n```bash\ndocker run -p 3000:3000 crco\n```\n\n## Smart Contract Deployment\n\n1. Deploy to Amoy Testnet:\n\n```bash\nnpm run deploy:amoy\n```\n\n2. Deploy to Sepolia:\n\n```bash\nnpm run deploy:sepolia\n```\n\n3. Update the contract addresses in your `.env` file and `config/chains.ts`.\n\n## Development\n\nStart the development server:\n\n```bash\nnpm run dev\n```\n\nor\n\n```bash\nbun run dev\n```\n\n## Testing\n\nRun the test suite:\n\n```bash\nnpm run test\n```\n\n## Build\n\nCreate a production build:\n\n```bash\nnpm run build\n```\n\nor\n\n```bash\nbun run build\n```\n\n## Project Structure\n\n```\ncrco/\n├── app/                    # Next.js app directory\n├── components/            # React components\n│   ├── ui/               # UI components\n│   ├── AssetSelector.tsx # Asset selection component\n│   ├── NetworkStatus.tsx # Network status component\n│   └── ...\n├── contracts/            # Smart contracts\n│   ├── CrCoBridge.sol    # Bridge contract\n│   └── CrCoToken.sol     # Token contract\n├── config/               # Configuration files\n├── hooks/                # Custom React hooks\n├── public/              # Static assets\n├── scripts/             # Deployment scripts\n├── styles/             # Global styles\n└── types/              # TypeScript types\n```\n\n## Smart Contracts\n\n### CrCoToken (ERC20/ERC721)\n\n- Standard ERC20/ERC721 implementation\n- Minting and burning capabilities\n- Role-based access control\n\n### CrCoBridge\n\n- Cross-chain transfer initiation\n- Proof verification\n- Asset locking and unlocking\n- NFT support\n- Security features:\n  - Reentrancy protection\n  - Access control\n  - Proof verification\n  - Transaction receipts\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License\n\nMIT License - see LICENSE file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodernotme%2Fcrco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodernotme%2Fcrco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodernotme%2Fcrco/lists"}