Skip to content
anomaPublic

About

A protocol adapter contract enabling Anoma Resource Machine transaction settlement on EVM-compatible chains.

Topics

Resources

Stars

36 stars

Watchers

4 watching

Forks

Repository files navigation

Contracts Tests soldeer.xyz License

Crates Tests crates.io License

Anoma EVM Protocol Adapter

A protocol adapter (PA) contract written in Solidity enabling Anoma Resource Machine transaction settlement on EVM-compatible chains.

The documentation specifies the protocol adapter: its upgradeability and ownership, its proofs, state and events, the kind tree root and the denylists, the order of the external calls, and the migration from the legacy protocol adapter.

The protocol adapter stores a kind tree root. The kind tree decides which kinds of resources can convert into each other. The repository risc0-kind-trees records the kind tree of each protocol adapter.

Project Structure

This monorepo is structured as follows:

.
├── audits
├── contracts
├── crates
│   ├── bindings
│   └── integration-test
├── Cargo.lock
├── Cargo.toml
├── README.md
└── RELEASE_CHECKLIST.md

The contracts folder contains the contracts written in Solidity as well as Foundry forge tests and deploy scripts.

The crates folder contains the Rust workspace:

  • bindings provides Rust bindings for the conversion of Rust and RISC Zero types into EVM types and exposes the deployment addresses on the different supported networks using the alloy-rs library.
  • integration-test contains the Rust integration and e2e test harness that deploys the protocol adapter to a local or forked chain and exercises it with risc0-proven transactions. just crates-test runs the local cases. just crates-test-e2e runs the e2e cases on a fork of E2E_CHAIN_ID (Sepolia by default) against the recorded protocol adapter, and proves them with the queue at QUEUE_BASE_URL. CI runs them on pull requests into staging and main.

Audits

Our software undergoes regular audits:

  1. Informal Systems

    📄 Audit Report (pdf)

  2. Informal Systems

    📄 Audit Report (pdf)

  3. Nethermind

    📄 Audit Report (pdf)

Security

If you believe you've found a security issue, we encourage you to notify us via Email at [email protected].

Please do not use the issue tracker for security issues. We welcome working with you to resolve the issue promptly.

About

A protocol adapter contract enabling Anoma Resource Machine transaction settlement on EVM-compatible chains.

Topics

Resources

Stars

36 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages