{"id":29671301,"url":"https://github.com/anoma/evm-protocol-adapter","last_synced_at":"2025-10-25T10:03:27.846Z","repository":{"id":284369858,"uuid":"905878308","full_name":"anoma/evm-protocol-adapter","owner":"anoma","description":"A protocol adapter contract written in Solidity enabling Anoma Resource Machine transaction settlement on EVM-compatible chains.","archived":false,"fork":false,"pushed_at":"2025-07-22T14:26:09.000Z","size":1937,"stargazers_count":6,"open_issues_count":25,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-22T14:31:23.356Z","etag":null,"topics":["anoma","evm","protocol-adapter"],"latest_commit_sha":null,"homepage":"https://anoma.net/roadmap","language":"Solidity","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/anoma.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":"2024-12-19T17:48:40.000Z","updated_at":"2025-07-22T14:18:59.000Z","dependencies_parsed_at":"2025-06-11T09:39:56.767Z","dependency_job_id":null,"html_url":"https://github.com/anoma/evm-protocol-adapter","commit_stats":null,"previous_names":["anoma/evm-protocol-adapter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anoma/evm-protocol-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoma%2Fevm-protocol-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoma%2Fevm-protocol-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoma%2Fevm-protocol-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoma%2Fevm-protocol-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anoma","download_url":"https://codeload.github.com/anoma/evm-protocol-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoma%2Fevm-protocol-adapter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266563915,"owners_count":23948689,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anoma","evm","protocol-adapter"],"created_at":"2025-07-22T20:07:29.492Z","updated_at":"2025-10-25T10:03:27.839Z","avatar_url":"https://github.com/anoma.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/anoma/evm-protocol-adapter/actions/workflows/ci.yml/badge.svg)](https://github.com/anoma/evm-protocol-adapter/actions/workflows/ci.yml)\n\n# EVM Protocol Adapter\n\nA protocol adapter contract written in Solidity enabling Anoma Resource Machine transaction settlement on EVM-compatible chains.\n\n## Project Structure\n\n```sh\n.\n├── bindings\n├── contracts\n├── LICENSE\n└── README.md\n```\n\nThe `contracts` folder contains the contracts written in [Solidity](https://soliditylang.org/) as well\nas [Foundry forge](https://book.getfoundry.sh/forge/) tests and deploy scripts.\n\nThe `bindings` folder contains bindings in [Rust](https://www.rust-lang.org/) to\nconvert [Rust](https://www.rust-lang.org/) and [RISC Zero](https://risczero.com/) types into EVM types using the [\n`alloy-rs` library](https://github.com/alloy-rs).\n\n## Security\n\nIf you believe you've found a security issue, we encourage you to notify us via Email at [security@anoma.foundation](mailto:security@anoma.foundation).\n\nPlease do not use the issue tracker for security issues. We welcome working with you to resolve the issue promptly.\n\n## Solidity Contracts\n\n### Prerequisites\n\nGet an up-to-date version of [Foundry](https://github.com/foundry-rs/foundry) with\n\n```sh\ncurl -L https://foundry.paradigm.xyz | sh\nfoundryup\n```\n\n### Usage\n\n#### Build\n\nChange the directory to the `contracts` folder with `cd contracts` and run\n\n```sh\nforge build\n```\n\n#### Tests \u0026 Coverage\n\nTo run the tests, run\n\n```sh\nforge test\n```\n\nTo show the coverage report, run\n\n```sh\nforge coverage --ir-minimum\n```\n\nAppend the\n\n- `--no-match-coverage \"(script|test|draft)\"` to exclude scripts, tests, and drafts,\n- `--report lcov` to generate the `lcov.info` file that can be used by code review tooling.\n\n#### Linting \u0026 Static Analysis\n\nAs a prerequisite, install the\n\n- `solhint` linter (see https://github.com/protofire/solhint)\n- `slither` static analyzer (see https://github.com/crytic/slither)\n\nTo run the linter and static analyzer, run\n\n```sh\nnpx solhint --config .solhint.json 'src/**/*.sol' \u0026\u0026 \\\nnpx solhint --config .solhint.other.json 'script/**/*.sol' 'test/**/*.sol' \u0026\u0026 \\\nslither .\n```\n\n#### Documentation\n\nRun\n\n```sh\nforge doc\n```\n\n#### Deployment\n\nTo simulate deployment on sepolia, run\n\n```sh\nforge script script/DeployProtocolAdapter.s.sol:DeployProtocolAdapter \\\n  --sig \"run(bool,address)\" \u003cIS_TEST_DEPLOYMENT\u003e \u003cEMERGENCY_STOP_CALLER\u003e \\\n  --rpc-url sepolia\n```\n\nAppend the\n\n- `--broadcast` flag to deploy on sepolia\n- `--verify --slow` flags for subsequent contract verification on Etherscan (`--slow` adds 15 seconds of waiting time between verification attempts)\n- `--account \u003cACCOUNT_NAME\u003e` flag to use a previously imported keystore (see\n  `cast wallet --help` for more info)\n\n#### Block Explorer Verification\n\nFor post-deployment verification on Etherscan run\n\n```sh\nforge verify-contract \\\n   \u003cADDRESS\u003e \\\n   src/ProtocolAdapter.sol:ProtocolAdapter \\\n   --chain sepolia\n```\n\nafter replacing `\u003cADDRESS\u003e` with the respective contract address.\n\n### Benchmarks\n\nThe following benchmark shows the transaction execution costs without and with proof aggregation for the current protocol adapter implementation:\n\n\u003cimg src=\".assets/Benchmark.png\" width=67% alt=\"Protocol adapter benchmark.\"\u003e\n\nThe current protocol adapter implementation utilizes a Merkle tree of dynamic depth starting at depth 0.\n\n## Rust Bindings\n\n## Prerequisites\n\n1. Get an up-to-date version of [Rust](https://www.rust-lang.org/) with\n\n   ```sh\n   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n   ```\n\n2. Install [RISC Zero `rzup`](https://github.com/risc0/risc0) with\n\n   ```sh\n   curl -L https://risczero.com/install | sh\n   ```\n\n3. Install the latest RISC Zero version with\n\n   ```sh\n   rzup install\n   ```\n\n   or a specific version (e.g., `3.0.3`) with\n\n   ```sh\n   rzup install cargo-risczero \u003cversion\u003e\n   ```\n\n### Usage\n\n#### Build\n\nChange the directory to the `bindings` folder with `cd bindings` and run\n\n```sh\ncargo build\n```\n\n#### Test\n\nTo test the build, run\n\n```sh\ncargo test\n```\n\nTo print a test transaction with aggregated proofs run\n\n```sh\ncargo test -- conversion::tests::generate_tx_agg --exact --show-output --ignored\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoma%2Fevm-protocol-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoma%2Fevm-protocol-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoma%2Fevm-protocol-adapter/lists"}