{"id":30686565,"url":"https://github.com/roswelly/socialfi-smart-contract","last_synced_at":"2025-09-01T23:05:56.561Z","repository":{"id":298448600,"uuid":"999998096","full_name":"roswelly/SocialFi-Smart-Contract","owner":"roswelly","description":"socialfi smart contract","archived":false,"fork":false,"pushed_at":"2025-07-04T09:27:11.000Z","size":1926,"stargazers_count":25,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-12T23:40:18.393Z","etag":null,"topics":["anchor","rust","smart-contract","socialfi","solana"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/roswelly.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}},"created_at":"2025-06-11T05:46:05.000Z","updated_at":"2025-08-06T16:59:42.000Z","dependencies_parsed_at":"2025-06-11T06:44:21.927Z","dependency_job_id":"ec7befe8-0274-4847-8faf-1bec3bac81c1","html_url":"https://github.com/roswelly/SocialFi-Smart-Contract","commit_stats":null,"previous_names":["caterpillardev/web3-match-three-puzzles-game","roswelly/socialfi-smart-contract"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roswelly/SocialFi-Smart-Contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roswelly%2FSocialFi-Smart-Contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roswelly%2FSocialFi-Smart-Contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roswelly%2FSocialFi-Smart-Contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roswelly%2FSocialFi-Smart-Contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roswelly","download_url":"https://codeload.github.com/roswelly/SocialFi-Smart-Contract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roswelly%2FSocialFi-Smart-Contract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273203283,"owners_count":25063279,"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-09-01T02:00:09.058Z","response_time":120,"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":["anchor","rust","smart-contract","socialfi","solana"],"created_at":"2025-09-01T23:05:48.392Z","updated_at":"2025-09-01T23:05:56.556Z","avatar_url":"https://github.com/roswelly.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caterpillar SocialFi- Decentralized Blogging Platform\n\nA Solana decentralized blogging platform with NFT integration, built using the Anchor framework.\n\n## Contact\n\n  - [Telegram](https://t.me/roswellecho)\n  - [Twitter](https://x.com/roswellecho)\n\n## Features\n\n- **Content Management**\n  - Create and edit blog posts\n  - Support for cover images\n  - Category and keyword tagging\n  - Content moderation system\n\n- **User System**\n  - User profile management\n  - Reputation scoring\n  - Rate limiting\n  - Ban system\n\n- **NFT Integration**\n  - Associate blog posts with NFT collections\n  - Track collectors\n  - Manage mint addresses\n\n- **Engagement Features**\n  - Upvote/downvote system\n  - Vote tracking\n  - Post locking mechanism\n\n## Prerequisites\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [Solana CLI](https://docs.solana.com/cli/install-solana-cli-tools)\n- [Anchor Framework](https://www.anchor-lang.com/docs/installation)\n- [Node.js](https://nodejs.org/) and [Yarn](https://yarnpkg.com/)\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/caterpillardev/caterpillar-socialfi-contract.git\ncd caterpillar-socialfi-contract\n```\n\n2. Install dependencies:\n```bash\nyarn install\n```\n\n3. Build the program:\n```bash\nanchor build\n```\n\n## Development\n\n### Local Development\n\n1. Start a local Solana validator:\n```bash\nsolana-test-validator\n```\n\n2. Deploy the program:\n```bash\nanchor deploy\n```\n\n3. Run tests:\n```bash\nanchor test\n```\n\n### Program Structure\n\n```\ncaterpillar_contract/\n├── src/\n│   ├── instructions/     # Individual instruction handlers\n│   ├── lib.rs           # Main program entry point\n│   ├── state.rs         # Data structures\n│   ├── error.rs         # Error definitions\n│   ├── constant.rs      # Constants\n│   └── validation.rs    # Input validation\n├── tests/               # Test suite\n└── migrations/          # Database migrations\n```\n\n## Smart Contract Architecture\n\n### State Accounts\n\n- `UserProfile`: User information and statistics\n- `BlogPost`: Content storage and engagement metrics\n- `CollectorInfo`: NFT collection tracking\n- `VoteInfo`: Voting system data\n- `RateLimit`: Rate limiting mechanism\n- `ModerationStatus`: Content moderation tracking\n\n### Key Instructions\n\n- `create_user_profile`: Create a new user profile\n- `create_blog_post`: Create a new blog post\n- `edit_user_profile`: Update user profile information\n- `edit_blog_post`: Modify blog post content\n- `add_collector`: Add an NFT collector\n- `add_vote`: Add a vote to a blog post\n- `edit_vote`: Modify an existing vote\n\n## Security Features\n\n- Input validation for all user inputs\n- Rate limiting for post creation\n- Content moderation system\n- User ban mechanism\n- Vote tracking and validation\n\n## Testing\n\nRun the test suite:\n```bash\nanchor test\n```\n\n## Deployment\n\n### Devnet Deployment\n\n1. Configure for devnet:\n```bash\nsolana config set --url devnet\n```\n\n2. Deploy the program:\n```bash\nanchor deploy\n```\n\n### Mainnet Deployment\n\n1. Configure for mainnet:\n```bash\nsolana config set --url mainnet-beta\n```\n\n2. Deploy the program:\n```bash\nanchor deploy\n```\n\n## Contributing\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## Contact\n\nTelegram - [@caterpillardev](https://t.me/caterpillardev)\nTwitter - [@caterpillardev](https://twitter.com/caterpillardev)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froswelly%2Fsocialfi-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froswelly%2Fsocialfi-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froswelly%2Fsocialfi-smart-contract/lists"}