{"id":32440489,"url":"https://github.com/junaire/contract-source-viewer","last_synced_at":"2026-05-13T13:52:06.695Z","repository":{"id":315414613,"uuid":"1059402993","full_name":"junaire/contract-source-viewer","owner":"junaire","description":"Fetch and view smart contract source code from blockchain explorers","archived":false,"fork":false,"pushed_at":"2025-09-18T13:40:24.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-18T13:47:20.160Z","etag":null,"topics":["blockchian","ethereum","smart-contract"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=junaire.contract-source-viewer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junaire.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-09-18T11:56:20.000Z","updated_at":"2025-09-18T13:40:29.000Z","dependencies_parsed_at":"2025-09-18T13:57:23.049Z","dependency_job_id":null,"html_url":"https://github.com/junaire/contract-source-viewer","commit_stats":null,"previous_names":["junaire/contract-source-viewer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/junaire/contract-source-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junaire%2Fcontract-source-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junaire%2Fcontract-source-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junaire%2Fcontract-source-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junaire%2Fcontract-source-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junaire","download_url":"https://codeload.github.com/junaire/contract-source-viewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junaire%2Fcontract-source-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047798,"owners_count":26435124,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blockchian","ethereum","smart-contract"],"created_at":"2025-10-26T01:47:37.704Z","updated_at":"2025-10-26T01:47:41.961Z","avatar_url":"https://github.com/junaire.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contract Source Viewer\n\n[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/junaire.contract-source-viewer?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=junaire.contract-source-viewer)\n[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/junaire.contract-source-viewer?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=junaire.contract-source-viewer)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\n\nA simple VSCode extension that allows you to fetch and view smart contract source code directly from blockchain explorers. Perfect for developers, auditors, and anyone working with smart contracts.\n\n![Demo](images/demo.gif)\n\n## ✨ Features\n\n- 🔍 **Multi-Chain Support**: Fetch contracts from 8 major blockchains\n- 📄 **Smart Parsing**: Handles both single-file and multi-file Solidity contracts\n- 🎨 **Syntax Highlighting**: Full Solidity syntax highlighting with VSCode's built-in support\n- 📁 **Project Structure**: Automatically creates proper folder structure for complex contracts\n- ⚡ **Fast \u0026 Reliable**: Quick fetching with proper error handling\n- ✅ **Input Validation**: Validates chain IDs and contract addresses\n- 🔄 **Real-time Progress**: Progress indicators for all operations\n\n## 🚀 Quick Start\n\n1. **Install** the extension from VSCode Marketplace\n2. **Open Command Palette** (`Cmd+Shift+P` on Mac, `Ctrl+Shift+P` on Windows/Linux)\n3. **Search** for \"Fetch Contract Source Code\"\n4. **Select blockchain** from the dropdown\n5. **Enter contract address** (0x...)\n6. **View source code** in a new VSCode window\n\n## 🌐 Supported Networks\n\n| Network | Chain ID | Example Contract |\n|---------|----------|------------------|\n| **Ethereum** | 1 | `0xA0b86a33E6a5a5d7a2f...` |\n| **BSC** | 56 | `0xD89C46F8ee42d3078E6...` |\n| **Polygon** | 137 | `0x8f3Cf7ad23Cd3CaDbD9...` |\n| **Arbitrum** | 42161 | `0x912CE59144191C1204E...` |\n| **Optimism** | 10 | `0x4200000000000000000...` |\n| **Base** | 8453 | `0x833589fCD6eDb6E08f4...` |\n| **Avalanche** | 43114 | `0xB31f66AA3C1e785363F...` |\n| **Fantom** | 250 | `0x21be370D5312f44cB42...` |\n\n\n### Development Setup\n```bash\n# Clone repository\ngit clone https://github.com/junaire/contract-source-viewer.git\ncd contract-source-viewer\n\n# Install dependencies\nnpm install\n\n# Compile\nnpm run compile\n\n# Run in development mode\n# Press F5 in VSCode to launch Extension Development Host\n```\n\n## 🤝 Contributing\n\nWe welcome contributions!\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🐛 Bug Reports \u0026 Feature Requests\n\nPlease use the [GitHub Issues](https://github.com/junaire/contract-source-viewer/issues) page to:\n- Report bugs\n- Request new features\n- Ask questions\n\n## ⭐ Show Your Support\n\nIf you find this extension helpful, please:\n- ⭐ Star the repository\n- 📝 Leave a review on VSCode Marketplace\n- 🐦 Share with your network\n\n---\n\n**Made with ❤️ by [Jun Zhang (junaire)](https://github.com/junaire)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaire%2Fcontract-source-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunaire%2Fcontract-source-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaire%2Fcontract-source-viewer/lists"}