{"id":22938922,"url":"https://github.com/hardworking-toptal-dev/dao-arena-","last_synced_at":"2025-04-01T19:45:01.876Z","repository":{"id":239257031,"uuid":"785341080","full_name":"hardworking-toptal-dev/DAO-arena-","owner":"hardworking-toptal-dev","description":"DAO's smart contract-(Arena)","archived":false,"fork":false,"pushed_at":"2024-04-11T17:36:09.000Z","size":646,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T15:50:02.273Z","etag":null,"topics":["cosmwasm","dao","rust"],"latest_commit_sha":null,"homepage":"https://www.testnet.arenadao.org/","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/hardworking-toptal-dev.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":"2024-04-11T17:35:42.000Z","updated_at":"2024-09-10T13:27:10.000Z","dependencies_parsed_at":"2024-05-11T03:35:26.876Z","dependency_job_id":null,"html_url":"https://github.com/hardworking-toptal-dev/DAO-arena-","commit_stats":null,"previous_names":["hardworking-toptal-dev/dao-arena-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardworking-toptal-dev%2FDAO-arena-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardworking-toptal-dev%2FDAO-arena-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardworking-toptal-dev%2FDAO-arena-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardworking-toptal-dev%2FDAO-arena-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardworking-toptal-dev","download_url":"https://codeload.github.com/hardworking-toptal-dev/DAO-arena-/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246704790,"owners_count":20820615,"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":["cosmwasm","dao","rust"],"created_at":"2024-12-14T12:28:57.884Z","updated_at":"2025-04-01T19:45:01.838Z","avatar_url":"https://github.com/hardworking-toptal-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arena DAO Smart Contracts\n\n[![Basic](https://github.com/Arena-DAO/arena-smart-contracts/actions/workflows/basic.yml/badge.svg)](https://github.com/Arena-DAO/arena-smart-contracts/actions/workflows/basic.yml)\n\nThis project contains the smart contracts for the Arena DAO. The contracts are written in Rust and use the CosmWasm framework. The project also includes TypeScript code for generating TypeScript types from the contract schemas.\n\n## Project Structure\n\nThe project is organized into several directories:\n\n- `contracts`: This directory contains the smart contract code. Each contract is in its own subdirectory. Each contract has a Cargo.toml file that specifies its dependencies and a src directory that contains the Rust source code.\n\n- `packages`: This directory contains Rust packages that are used by the contracts. Each package has a Cargo.toml file and a src directory.\n\n- `scripts`: This directory contains batch files for generating the contract schemas and TypeScript types.\n\n- `ts-codegen`: This directory contains TypeScript code for generating TypeScript types from the contract schemas. The src directory contains the source code and the package.json file specifies the dependencies.\n\n## Building and Testing\n\nThe `scripts/check.bat` file is used to check for unused dependencies, format the code, and run clippy for linting. It uses the nightly version of cargo for these tasks.\n\nThe `scripts/gen.bat` file is used to generate the contract schemas and TypeScript types. It first generates the schemas for all contracts and then generates the TypeScript types.\n\nThe `scripts/optimize.bat` file is used to optimize the smart contracts. It uses the Docker image `cosmwasm/workspace-optimizer:0.14.0` to run the optimization process.\n\nThe GitHub Actions workflows in the `.github/workflows` directory are used to run tests and lints on every push and pull request.\n\n## TypeScript Code Generation\n\nThe TypeScript code generation is done by the `ts-codegen` package. The `src/codegen.ts` file uses the `@cosmwasm/ts-codegen` package to generate TypeScript types from the contract schemas. The generated types are output to the `./output` directory.\n\n## Smart Contracts\n\nThe smart contracts are written in Rust and use the CosmWasm framework. Each contract has its own directory under the `contracts` directory. The `Cargo.toml` file in each contract directory specifies the contract's dependencies.\n\n## Continuous Integration\n\nThe project uses GitHub Actions for continuous integration. The workflows are defined in the `.github/workflows` directory. The `basic.yml` workflow runs tests and lints on every push and pull request.\n\n## Architecture Diagram\n\n![image](https://showme.redstarplugin.com/d/d:LvtiZJV2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardworking-toptal-dev%2Fdao-arena-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardworking-toptal-dev%2Fdao-arena-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardworking-toptal-dev%2Fdao-arena-/lists"}