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.
-
Get an up-to-date version of Foundry with
curl -L https://foundry.paradigm.xyz | bash foundryup
-
Clone this repo and run
forge install
Run
forge test
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 (seecast wallet --help
for more info)
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.
Parameters:
- Commitment accumulator
treeDepth = 32