{"id":24995386,"url":"https://github.com/compolabs/spark-rust-sdk-examples","last_synced_at":"2025-03-29T14:43:57.210Z","repository":{"id":252854118,"uuid":"836822962","full_name":"compolabs/spark-rust-sdk-examples","owner":"compolabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-19T08:03:26.000Z","size":334,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T15:47:32.922Z","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":null,"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":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-08-01T16:21:25.000Z","updated_at":"2024-11-14T16:21:07.000Z","dependencies_parsed_at":"2025-02-04T15:38:33.815Z","dependency_job_id":"18ee7134-131d-4aa5-b88f-6359a167913e","html_url":"https://github.com/compolabs/spark-rust-sdk-examples","commit_stats":null,"previous_names":["compolabs/spark-rust-sdk-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-rust-sdk-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-rust-sdk-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-rust-sdk-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-rust-sdk-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compolabs","download_url":"https://codeload.github.com/compolabs/spark-rust-sdk-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200300,"owners_count":20739563,"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:33.057Z","updated_at":"2025-03-29T14:43:57.191Z","avatar_url":"https://github.com/compolabs.png","language":"Rust","readme":"# Spark Rust SDK Examples\n\nThis repository contains examples of how to deposit liquidity, open orders, batch cancel orders, and withdraw liquidity from Spark. \n\nOn using fuel's multicall functionality it is possible to open and close multiple orders in a single transaction.\n\n\n## Deployment Addresses\n\nCheck deployment addresses here: https://github.com/compolabs/orderbook-contract/releases\n\n## Default Fees\n\n### Protocol Fees:\n| maker | taker | Volume of quote asset |\n| --- | --- | --- |\n| 0.1% | 0.15% | 10000_000000 |\n| 0.08% | 0.13% | 50000_000000 |\n| 0.06% | 0.09% | 100000_000000 |\n| 0.02% | 0.07% | 500000_000000 |\n| 0.01% | 0.05% | 1000000_000000 |\n\n*On the contract side, the protocol fee units are in base 1e4 (10_000)*\n\n### Matcher Fee: \n$0.001 USD\n*On the contract side, the matcher fee is in the base unit of the quote asset. If the quote asset is USDC, this will be in base 1e6*\n\n\n## Minting testnet tokens:\n\nTo mint testnet tokens via the UI: [Spark Testnet Faucet](https://app.sprk.fi/#/faucet)\n\n\n# Running tests:\n```\nrustup target add wasm32-unknown-unknown\n```\n\n```\ncargo build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompolabs%2Fspark-rust-sdk-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompolabs%2Fspark-rust-sdk-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompolabs%2Fspark-rust-sdk-examples/lists"}