{"id":23822207,"url":"https://github.com/rainlanguage/rain.orderbook","last_synced_at":"2026-02-27T12:52:45.723Z","repository":{"id":168587638,"uuid":"644331942","full_name":"rainlanguage/rain.orderbook","owner":"rainlanguage","description":"Rain orderbook libraries, subgraph and contract implementation.","archived":false,"fork":false,"pushed_at":"2026-01-28T06:39:10.000Z","size":146285,"stargazers_count":19,"open_issues_count":367,"forks_count":13,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T06:45:03.329Z","etag":null,"topics":["dex","rainlang","solidity","solidity-contracts"],"latest_commit_sha":null,"homepage":"https://raindex.finance","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/rainlanguage.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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2023-05-23T09:50:01.000Z","updated_at":"2026-01-27T17:57:35.000Z","dependencies_parsed_at":"2026-01-27T21:02:39.060Z","dependency_job_id":null,"html_url":"https://github.com/rainlanguage/rain.orderbook","commit_stats":null,"previous_names":["rainprotocol/rain.orderbook","rainlanguage/rain.orderbook"],"tags_count":1068,"template":false,"template_full_name":null,"purl":"pkg:github/rainlanguage/rain.orderbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.orderbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.orderbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.orderbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.orderbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainlanguage","download_url":"https://codeload.github.com/rainlanguage/rain.orderbook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Frain.orderbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dex","rainlang","solidity","solidity-contracts"],"created_at":"2025-01-02T09:15:33.387Z","updated_at":"2026-01-31T18:14:13.793Z","avatar_url":"https://github.com/rainlanguage.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rain.orderbook\n\nRain Orderbook (also known as Raindex) is an open source, permissionless orderbook system with no fees or admin keys.\n\n## Repository Structure\n\nThis repository contains several components:\n\n- **Solidity Contracts**: The core smart contracts for the Rain Orderbook (`src`)\n- **Rust Crates**: Various tooling and libraries for interacting with the Rain Orderbook (`crates/*`)\n- **JavaScript Packages (`packages/*`)**:\n  - `webapp`: A SvelteKit site for Raindex\n  - `ui-components`: A shared component library used in the webapp\n  - `orderbook`: A TypeScript package (published to npm) that provides bindings to the Rust crates\n\n### Architecture\n\nWe use wasm-bindgen to create the `orderbook` package from our Rust crates, which is then used by:\n- The UI components library\n- The webapp\n\nThis same package is [published to npm](https://www.npmjs.com/package/@rainlanguage/orderbook), allowing developers to more easily create their own frontends for Raindex.\n\n## Setup for local development\n\n### Environment Setup\n\n1. Copy `.env.example` to `.env`\n2. Copy `packages/webapp/.env.example` to `packages/webapp/.env` and fill out `PUBLIC_WALLETCONNECT_PROJECT_ID` with a test project ID from [Reown (FKA WalletConnect)](https://cloud.reown.com/sign-in)\n\nThen run the following to install dependencies and build the project:\n```bash\n./prep-all.sh\n```\nYou may need to make the shell script executable:\n```bash\nchmod +x prep-all.sh\n```\n\n### Run Webapp for local development\n```\ncd packages/webapp \u0026\u0026 nix develop -c npm run dev\n```\n\n## Legal stuff\n\nEverything is under DecentraLicense 1.0 (DCL-1.0) which can be found in `LICENSES/`.\n\nThis is basically `CAL-1.0` which is an open source license\nhttps://opensource.org/license/cal-1-0\n\nThe non-legal summary of DCL-1.0 is that the source is open, as expected, but\nalso user data in the systems that this code runs on must also be made available\nto those users as relevant, and that private keys remain private.\n\nRoughly it's \"not your keys, not your coins\" aware, as close as we could get in\nlegalese.\n\nThis is the default situation on permissionless blockchains, so shouldn't require\nany additional effort by dev-users to adhere to the license terms.\n\nThis repo is REUSE 3.2 compliant https://reuse.software/spec-3.2/ and compatible\nwith `reuse` tooling (also available in the nix shell here).\n\n```\nnix develop -c rainix-sol-legal\n```\n\n## Contributions\n\nContributions are welcome **under the same license** as above.\n\nContributors agree and warrant that their contributions are compliant.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlanguage%2Frain.orderbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainlanguage%2Frain.orderbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlanguage%2Frain.orderbook/lists"}