{"id":29107588,"url":"https://github.com/tribeshq/tribes","last_synced_at":"2026-05-16T08:05:18.758Z","repository":{"id":301221535,"uuid":"1005229862","full_name":"tribeshq/tribes","owner":"tribeshq","description":"A Linux-powered EVM rollup serving as a Debt Capital Market for the creator economy","archived":false,"fork":false,"pushed_at":"2025-07-02T20:03:08.000Z","size":9105,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T21:20:01.220Z","etag":null,"topics":["cartesi","ethereum","rwa"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tribeshq.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2025-06-19T22:27:50.000Z","updated_at":"2025-07-02T20:03:11.000Z","dependencies_parsed_at":"2025-07-16T05:49:13.563Z","dependency_job_id":"ea13a9e6-af46-4c9d-9ce9-e3befb5b17a8","html_url":"https://github.com/tribeshq/tribes","commit_stats":null,"previous_names":["tribeshq/tribes"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/tribeshq/tribes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tribeshq%2Ftribes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tribeshq%2Ftribes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tribeshq%2Ftribes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tribeshq%2Ftribes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tribeshq","download_url":"https://codeload.github.com/tribeshq/tribes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tribeshq%2Ftribes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265527557,"owners_count":23782480,"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":["cartesi","ethereum","rwa"],"created_at":"2025-06-29T05:04:40.889Z","updated_at":"2026-05-16T08:05:18.752Z","avatar_url":"https://github.com/tribeshq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/446065f2-e029-4634-a3da-bb1a3e82fe67\" align=\"center\" width=\"20%\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003ci\u003eA Linux-powered EVM rollup as a Debit Capital Market\u003c/i\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cb\u003eTokenized debt issuance through reverse auction mechanism with collateralization\u003c/b\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://img.shields.io/github/license/tribeshq/tribes?style=default\u0026logo=opensourceinitiative\u0026logoColor=white\u0026color=959CD0\" alt=\"license\"\u003e\n\t\u003cimg src=\"https://img.shields.io/github/last-commit/tribeshq/tribes?style=default\u0026logo=git\u0026logoColor=white\u0026color=D1DCCB\" alt=\"last-commit\"\u003e\n\u003c/p\u003e\n\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Environment](#environment)\n  - [Running](#running)\n- [Testing](#testing)\n- [Development](#development)\n\n## Getting Started\n\n### Prerequisites\n\n1. [Install Docker Desktop for your operating system](https://www.docker.com/products/docker-desktop/);\n\n   To install Docker RISC-V support without using Docker Desktop, run the following command:\n\n   ```shell\n   docker run --privileged --rm tonistiigi/binfmt --install all\n   ```\n\n2. [Download and install the latest version of Node.js](https://nodejs.org/en/download);\n\n3. Cartesi CLI is an easy-to-use tool to build and deploy your dApps on devnet. To install it, run:\n\n   ```shell\n   npm install -g @cartesi/cli\n   ```\n\n4. [Install Foundry](https://book.getfoundry.sh/getting-started/installation) for smart contract development and testing;\n\n5. [Install Go](https://golang.org/doc/install) (version 1.24.4 or later) for backend development;\n\n### Environment\n\n1. Create the environment variables file:\n\n   ```sh\n   make env\n   ```\n\n2. Edit the `.env` file with your configuration values.\n\n3. Import your private key for contract deployment:\n\n   ```sh\n   cast wallet import defaultKey --interactive\n   ```\n\n   This will prompt you to enter your private key securely for contract deployment operations.\n\n### Running\n\n#### Contracts\n\nThe contract suite features **emergency delegate call operations** for secure asset recovery in critical situations. The system also includes **asset contracts** comprising a Stablecoin and Collateral token for the debt capital market operations, and **ERC1155 Badge contracts** for managing badges.\n\nEach deployment script saves its configuration to individual JSON files in the `./contracts/deployments/` directory for easy reference and integration.\n\n1. Deploy all contracts:\n\n   ```sh\n   make deploy-contracts\n   ```\n\n2. Deploy individual contracts:\n\n   ```sh\n   # Deploy BadgeFactory contract (ERC1155 Badge factory)\n   make deploy-badge-factory\n\n   # Deploy Tokens (Collateral and Stablecoin)\n   make deploy-tokens\n\n   # Deploy Emergency contracts (EmergencyWithdraw)\n   make deploy-emergency\n\n   # Deploy SafeERC1155Mint contract (Safe ERC1155 minting)\n   make deploy-safe-erc1155-mint\n   ```\n\n3. Simulate deployment (without broadcasting):\n\n   ```sh\n   make deploy-contracts-simulate\n   ```\n\n   This is useful for testing deployment scripts and verifying gas costs without actually deploying contracts.\n\n#### Backend\n\nThe backend is built on [Cartesi Rollups](https://cartesi.io/), a Layer 2 scaling solution that combines the security of blockchain with the computational power of Linux. This architecture enables complex off-chain computations while maintaining cryptographic guarantees of correctness and data availability. The system runs a full Linux environment inside the blockchain, handling business logic off-chain for better performance while keeping all computations verifiable on-chain.\n\n1. Generate bytecode and Go bindings\n\n   ```sh\n   make generate\n   ```\n\n2. Devnet\n\n   2.1 Build application:\n   ```sh\n   make build\n   ```\n\n   2.2 Run application on devnet:\n   ```sh\n   cartesi run\n   ```\n\n## Testing\n\nRun all tests (Contracts + Backend):\n\n```sh\nmake test\n```\n\nThis command will:\n\n- Clean and test smart contracts with Foundry;\n- Run mock tests with Go;\n- Run integration tests with Vitest;\n\n## Development\n\n### Code Quality\n\n1. Format all code (Contracts + Backend):\n\n   ```sh\n   make fmt\n   ```\n\n2. View test coverage report:\n\n   ```sh\n   make coverage\n   ```\n\n### Utility Commands\n\n1. Check contract sizes:\n\n   ```sh\n   make size\n   ```\n\n   Shows the size of all compiled contracts to ensure they fit within deployment limits.\n\n2. Run gas reports:\n\n   ```sh\n   make gas\n   ```\n\n   Generates detailed gas usage reports for all contract functions during testing.\n\n### Available Make Commands\n\nFor a complete list of available commands:\n\n```sh\nmake help\n```\n\nThis will show all available make targets with their descriptions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftribeshq%2Ftribes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftribeshq%2Ftribes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftribeshq%2Ftribes/lists"}