{"id":20841234,"url":"https://github.com/iotexproject/iotex-client-gateway","last_synced_at":"2026-04-22T15:34:33.351Z","repository":{"id":207244537,"uuid":"596952754","full_name":"iotexproject/iotex-client-gateway","owner":"iotexproject","description":"Gateway service for Safe apps that serves transaction data conforming with the UI of our mobile apps.","archived":false,"fork":false,"pushed_at":"2024-08-30T02:07:31.000Z","size":1723,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-19T00:46:44.444Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iotexproject.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-03T09:45:29.000Z","updated_at":"2024-08-29T12:19:41.000Z","dependencies_parsed_at":"2024-08-28T14:45:39.993Z","dependency_job_id":null,"html_url":"https://github.com/iotexproject/iotex-client-gateway","commit_stats":null,"previous_names":["protofire/iotex-client-gateway","iotexproject/iotex-client-gateway"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotexproject%2Fiotex-client-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotexproject%2Fiotex-client-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotexproject%2Fiotex-client-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotexproject%2Fiotex-client-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iotexproject","download_url":"https://codeload.github.com/iotexproject/iotex-client-gateway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243197205,"owners_count":20251955,"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":"2024-11-18T01:19:21.045Z","updated_at":"2025-12-24T15:59:09.716Z","avatar_url":"https://github.com/iotexproject.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safe Client Gateway\n[![Actions Status](https://github.com/safe-global/safe-client-gateway/workflows/safe-client-gateway/badge.svg?branch=main)](https://github.com/safe-global/safe-client-gateway/actions)\n[![Coverage Status](https://coveralls.io/repos/github/safe-global/safe-client-gateway/badge.svg)](https://coveralls.io/github/safe-global/safe-client-gateway)\n\n## Motivation\n\nThis project is a gateway between the Safe clients ([Android](https://github.com/safe-global/safe-android)/ [iOS](https://github.com/safe-global/safe-ios)/ [web](https://github.com/safe-global/web-core)) and the Safe backend services ([transaction service](https://github.com/safe-global/safe-transaction-service) and Ethereum nodes). It is providing a more UI-oriented mapping and multi-sourced data structures for ease of integration and rendering.\n\n## Documentation\n\n- [Client Gateway Docs](https://safe.global/safe-client-gateway/)\n- [Swagger](https://safe-client.safe.global/index.html)\n- [Safe developer documentation](https://docs.gnosis-safe.io/)\n\n## Quickstart\n\nThis project requires `rustup` and `redis`\n\n```bash\ngit clone https://github.com/safe-global/safe-client-gateway.git\ncd safe-client-gateway\ncp .env.sample .env\nredis-server\ncargo run\n./add_rustfmt_git_hook.sh  # It installs a git precommit hook that will autoformat the code on every commit\n```\n\nAfter doing any change code must be formatted using [Rustfmt](https://github.com/rust-lang/rustfmt)\n- `cargo +nightly fmt --all`\nAuto formatting can also [be configured in the most common code editors](https://github.com/rust-lang/rustfmt#running-rustfmt-from-your-editor)\n\n## Configuration\n\nRocket specific configurations (including databases) can be configured via the `Rocket.toml` for local development (see https://rocket.rs/v0.4/guide/configuration/#rockettoml).\n\nFor configurations specific to this service the `.env` file can be used. See next section.\n\n## Environment\n\nPlace a `.env` file in the root of the project containing URL pointing to the environment in which you want the gateway to run.\n\nThe contents of the file should be the following (see `.env.sample` for an example)\n\n## Tests\n\nIn order to run the test suite of the project:\n\n1. Have an instance of Redis running (as some of them test the integration with Redis).\n\n```bash\nredis-server\n```\n\n2. Make sure that the required environment variables are set (the following example assumes that Redis is runnning on the default port `6379`):\n\n```bash\nexport REDIS_URI=redis://localhost:6379\nexport REDIS_URI_MAINNET=redis://localhost:6379\n```\n\n3. Run the tests\n\n```bash\ncargo test -- --test-threads 1\n```\n\nBy default, `cargo test` will execute the tests in the test suite in parallel. Because some of the tests update some shared local state (eg.: environment variables) the tests should be executed on a single thread – thus `--test-threads 1`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiotexproject%2Fiotex-client-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiotexproject%2Fiotex-client-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiotexproject%2Fiotex-client-gateway/lists"}