{"id":26983786,"url":"https://github.com/hadronlabs-org/drop-contracts","last_synced_at":"2025-04-03T17:04:48.400Z","repository":{"id":239462074,"uuid":"676062391","full_name":"hadronlabs-org/drop-contracts","owner":"hadronlabs-org","description":"Drop is an integrated cross-chain liquid staking protocol","archived":false,"fork":false,"pushed_at":"2024-10-29T08:35:53.000Z","size":11383,"stargazers_count":35,"open_issues_count":7,"forks_count":11,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-29T09:53:10.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://drop.money","language":"Rust","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/hadronlabs-org.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}},"created_at":"2023-08-08T10:51:51.000Z","updated_at":"2024-10-22T08:35:09.000Z","dependencies_parsed_at":"2024-05-12T17:37:06.886Z","dependency_job_id":"8b0d4d89-2ff0-464c-a0e1-218f4c23e8b5","html_url":"https://github.com/hadronlabs-org/drop-contracts","commit_stats":null,"previous_names":["hadronlabs-org/drop-contracts"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadronlabs-org%2Fdrop-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadronlabs-org%2Fdrop-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadronlabs-org%2Fdrop-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadronlabs-org%2Fdrop-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadronlabs-org","download_url":"https://codeload.github.com/hadronlabs-org/drop-contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043339,"owners_count":20874086,"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-04-03T17:03:00.076Z","updated_at":"2025-04-03T17:04:48.381Z","avatar_url":"https://github.com/hadronlabs-org.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Drop Protocol Contracts\n\n![Rectangle 161433](https://github.com/hadronlabs-org/drop-contracts/assets/103267218/f0faf991-7954-4e65-8032-73e6e4840ef3)\n\nThis repository contains the smart contracts of Drop Protocol. The project is organized into three main directories:\n\n- `contracts`: This directory contains the core smart contracts for the Drop Protocol, written in Rust using the Cosmwasm framework.\n\n- `integration_tests`: This directory includes comprehensive integration tests written in TypeScript and leveraging the Vitest testing framework. These tests verify the contracts' behavior in various scenarios, ensuring correctness and reliability.\n\n- `packages`: This directory contains reusable Rust packages that are shared across different contracts or tools. It helps modulate and streamline the codebase.\n\n## Getting Started\n\n### Prerequisites\n\nEnsure that you have the following installed:\n\n- Rust (via [rustup](https://rustup.rs/))\n- Node.js (for TypeScript integration tests)\n- Yarn (as an alternative package manager)\n- Docker (to manage images)\n\n### Building Contracts\n\nAll build, test, and code quality tasks are managed using `make`. Below are the primary commands:\n\n- `make build`: Compile the contracts to WebAssembly (Wasm) format.\n- `make check_contracts`: Verify all contracts for issues.\n- `make clippy`: Run `clippy` for Rust linting and suggestions.\n- `make compile`: Compile the contracts to the Wasm target.\n- `make compile_arm64`: Compile for the ARM64 architecture.\n- `make fmt`: Format the Rust code.\n- `make schema`: Generate and validate JSON schemas.\n- `make test`: Run all tests to ensure contract correctness.\n- `make build_ts_client`: Build the TypeScript client for the integration tests and coordinator. It uses generated json schema from the contracts. \n\n### Running Integration Tests\n\nTo run the integration tests located in the `integration_tests` directory:\n\n1. Ensure you have Node.js and Yarn installed and you have build the Typescript client\n2. Navigate to the `integration_tests` folder and install the dependencies:\n   ```bash\n   cd integration_tests\n   yarn install\n   ```\n3. Prepare the necessary Docker images with:\n   ```bash\n   yarn build-images\n   ```\n4. Run the tests using the Vitest framework:\n   ```bash\n   yarn test\n   ```\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadronlabs-org%2Fdrop-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadronlabs-org%2Fdrop-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadronlabs-org%2Fdrop-contracts/lists"}