{"id":46489541,"url":"https://github.com/oraidex/oraiswap","last_synced_at":"2026-03-06T10:15:57.278Z","repository":{"id":62390156,"uuid":"445991281","full_name":"oraidex/oraiswap","owner":"oraidex","description":"Uniswap-inspired automated market-maker (AMM) protocol powered by Smart Contracts on the Orai blockchain.","archived":false,"fork":false,"pushed_at":"2025-03-18T08:40:04.000Z","size":16174,"stargazers_count":22,"open_issues_count":4,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-18T15:58:09.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/oraidex.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}},"created_at":"2022-01-09T04:19:22.000Z","updated_at":"2025-03-30T16:22:00.000Z","dependencies_parsed_at":"2023-11-07T12:25:34.064Z","dependency_job_id":"333bc6bc-f41e-4606-9833-375c20504db5","html_url":"https://github.com/oraidex/oraiswap","commit_stats":{"total_commits":354,"total_committers":12,"mean_commits":29.5,"dds":0.4463276836158192,"last_synced_commit":"e5da16090f10c745c02b6de458f55d0db2883861"},"previous_names":["oraidex/oraiswap","oraichain/oraiswap"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/oraidex/oraiswap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraidex%2Foraiswap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraidex%2Foraiswap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraidex%2Foraiswap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraidex%2Foraiswap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oraidex","download_url":"https://codeload.github.com/oraidex/oraiswap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oraidex%2Foraiswap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"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":[],"created_at":"2026-03-06T10:15:57.020Z","updated_at":"2026-03-06T10:15:57.231Z","avatar_url":"https://github.com/oraidex.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OraiSwap\n\nUniswap-inspired automated market-maker (AMM) protocol powered by Smart Contracts on the [Orai](https://orai.io) blockchain.\n\n## Contracts\n\n| Name                                                 | Description                                              |\n| ---------------------------------------------------- | -------------------------------------------------------- |\n| [`oraiswap_factory`](contracts/oraiswap_factory)     | Proxy contract to create oraiswap_pair instance          |\n| [`oraiswap_oracle`](contracts/oraiswap_oracle)       | Global parameters updated by multisig wallet             |\n| [`oraiswap_pair`](contracts/oraiswap_pair)           | Logic for building liquidity pool and trade between pair |\n| [`oraiswap_router`](contracts/oraiswap_router)       | Facilitate multi-hop swap operations                     |\n| [`oraiswap_orderbook`](contracts/oraiswap_orderbook) | Orderbook implementation                                 |\n| [`oraiswap_staking`](contracts/oraiswap_staking)     | Stake LPs to get ORAIX reward                            |\n| [`oraiswap_token`](contracts/oraiswap_token)         | (ERC20 equivalent) token implementation, AIRI, ORAIX     |\n| [`oraiswap_mixed_router`](contracts/oraiswap_mixedrouter)         | Facilitate multi-hop swap operations between v2 \u0026 v3     |\n\n- oraiswap_factory\n\n  Mainnet: [`orai167r4ut7avvgpp3rlzksz6vw5spmykluzagvmj3ht845fjschwugqjsqhst`](https://scan.orai.io/smart-contract/orai167r4ut7avvgpp3rlzksz6vw5spmykluzagvmj3ht845fjschwugqjsqhst)\n\n- oraiswap_oracle\n\n  Mainnet: [`orai18rgtdvlrev60plvucw2rz8nmj8pau9gst4q07m`](https://scan.orai.io/smart-contract/orai18rgtdvlrev60plvucw2rz8nmj8pau9gst4q07m)\n\n- oraiswap_pair\n\n  Mainnet (CodeID): 1502\n\n- oraiswap_route\n\n  Mainnet: [`orai1j0r67r9k8t34pnhy00x3ftuxuwg0r6r4p8p6rrc8az0ednzr8y9s3sj2sf`](https://scan.orai.io/smart-contract/orai1j0r67r9k8t34pnhy00x3ftuxuwg0r6r4p8p6rrc8az0ednzr8y9s3sj2sf)\n\n- oraiswap_orderbook\n\n  Mainnet: [`orai1nt58gcu4e63v7k55phnr3gaym9tvk3q4apqzqccjuwppgjuyjy6sxk8yzp`](https://scan.orai.io/smart-contract/orai1nt58gcu4e63v7k55phnr3gaym9tvk3q4apqzqccjuwppgjuyjy6sxk8yzp)\n\n- oraiswap_staking\n\n  Mainnet: [`orai19p43y0tqnr5qlhfwnxft2u5unph5yn60y7tuvu`](https://scan.orai.io/smart-contract/orai19p43y0tqnr5qlhfwnxft2u5unph5yn60y7tuvu)\n\n- oraiswap_token\n\n  Mainnet (CodeID): 582\n\n- oraiswap_mixed_router\n\n  Mainnet: [`orai1cy2pc5czxm5qlacp6j0hfq7qj9wh8zuhxgpdartcfrdljknq0arsuc4znj`](https://scan.orai.io/smart-contract/orai1cy2pc5czxm5qlacp6j0hfq7qj9wh8zuhxgpdartcfrdljknq0arsuc4znj)\n\n## Running this contract\n\nYou will need Rust 1.44.1+ with wasm32-unknown-unknown target installed.\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\nrustup target add wasm32-unknown-unknown\n```\n\nYou can run unit tests on this on each contracts directory via :\n\n```bash\ncargo unit-test\ncargo integration-test\n```\n\n## Gen proto definitions\n\n```bash\n# gen protobuf response.rs\ncargo install protobuf-codegen\nprotoc --rust_out . response.proto\ntee -a response.proto \u003c\u003c END\nimpl ::std::convert::TryFrom\u003c\u0026[u8]\u003e for MsgInstantiateContractResponse {\n    type Error = ::protobuf::Error;\n\n    fn try_from(value: \u0026[u8]) -\u003e Result\u003cSelf, Self::Error\u003e {\n       ::protobuf::Message::parse_from_bytes(value)\n    }\n}\nEND\n\n# gen proto using prost\n# macos\nbrew install protobuf\n\ncargo install protoc-gen-prost\n\nprotoc --prost_out packages/oraiswap/src --proto_path packages/oraiswap/src -I proto packages/oraiswap/src/universal_swap_memo.proto \u0026\u0026 mv packages/oraiswap/src/_ packages/oraiswap/src/universal_swap_memo.rs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foraidex%2Foraiswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foraidex%2Foraiswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foraidex%2Foraiswap/lists"}