{"id":24995399,"url":"https://github.com/compolabs/orderbook-contract","last_synced_at":"2025-04-05T12:05:56.198Z","repository":{"id":224762972,"uuid":"763521287","full_name":"compolabs/orderbook-contract","owner":"compolabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-13T07:56:43.000Z","size":2843,"stargazers_count":40,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T15:43:26.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compolabs.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":"2024-02-26T13:03:26.000Z","updated_at":"2024-11-11T09:46:29.000Z","dependencies_parsed_at":"2024-04-23T15:49:44.387Z","dependency_job_id":"661dff2a-9493-45fd-9859-a331bfafc61b","html_url":"https://github.com/compolabs/orderbook-contract","commit_stats":null,"previous_names":["compolabs/orderbook-contract"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Forderbook-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Forderbook-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Forderbook-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Forderbook-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compolabs","download_url":"https://codeload.github.com/compolabs/orderbook-contract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332604,"owners_count":20921853,"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-02-04T15:37:40.811Z","updated_at":"2025-04-05T12:05:56.164Z","avatar_url":"https://github.com/compolabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spark Orderbook Contract\n\nThe Spark Orderbook Contract is a decentralized order book implemented on the Fuel blockchain, designed to facilitate secure and transparent trading.\n\n## Getting Started\n\nThe Orderbook framework consists of five components, which can be found in the root folder:\n\n- **`spark-market`:** This Sway contract contains all the trading logic, including functionalities for opening, closing, and matching orders. It serves as the core of the trading operations, with corresponding tests included.\n- **`spark-registry`:** This Sway contract allows for the registration of new markets, specifically for asset trading pairs. It acts as a registry that keeps track of all available markets, with tests included.\n- **`spark-cli`:** Spark CLI tools for deploying and interacting with contracts. Detailed information is available in the README file within the subfolder.\n- **`spark-market-sdk`:** A Rust library (SDK) for interacting with the SparkMarket contract. Additional details can be found in the README file within its subfolder.\n- **`spark-registry-sdk`:** A Rust library (SDK) for interacting with the SparkRegistry contract. More information is available in the README file within its subfolder.\n\n\n## Running All Tests\n\nTo build the project and run all tests, execute the following command:\n\n```\nforc build --release \u0026 cargo test --release\n```\n\n### Running Fuzz Tests:\n\nTo run fuzz tests, use the following command:\n\n```\ncargo test --release -- --ignored fuzz --test-threads=$(nproc || sysctl -n hw.ncpu)\n```\n\n## Contribution\n\nThe liquidation mechanism, error codes, and all contract methods are open for community contributions. Your input is welcome to help improve and expand the Spark Orderbook Contract, making it a more robust and feature-rich platform.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompolabs%2Forderbook-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompolabs%2Forderbook-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompolabs%2Forderbook-contract/lists"}