10000 GitHub - anoma/evm-protocol-adapter: A protocol adapter contract written in Solidity enabling Anoma Resource Machine transaction settlement on EVM-compatible chains.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

License

Notifications You must be signed in to change notification settings

anoma/evm-protocol-adapter

Repository files navigation

EVM Protocol Adapter

For more information on the EVM protocol adapter, find the related

Warning

This repo features a prototype and is work in progress. Do NOT use in production.

Installation

  1. Get an up-to-date version of Foundry with

    curl -L https://foundry.paradigm.xyz | bash
    foundryup
  2. Clone this repo and run

    forge install

Usage

Tests

Run

forge test

Deployment

To simulate deployment on sepolia, run

forge script script/Deploy.s.sol:Deploy \
   --rpc-url sepolia

Append the

  • --broadcast flag to deploy on sepolia
  • --verify flag for subsequent contract verification on Etherscan
  • --account <ACCOUNT_NAME> flag to use a previously imported keystore (see cast wallet --help for more info)

Block Explorer Verification

For post-deployment verification on Etherscan run

forge verify-contract \
   <ADDRESS> \
   src/ProtocolAdapter.sol:ProtocolAdapter \
   --chain sepolia \
   --constructor-args-path script/constructor-args.txt

after replacing <ADDRESS> with the respective contract address.

Benchmarks

Parameters:

  • Commitment accumulator treeDepth = 32

Protocol adapter benchmark for a Merkle tree depth of 32.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published
0