Skip to content

Commit 8adbeed

Browse files
heueristikagureev
authored andcommitted
Bump Risc0 Version to v2.3.1, risc0-ethereum to v2.2.2, bump RM spec
RM Changes: - Introduce compliance circuit changes - Introduce Payloads into AppData - Change expected forward call info - Simplify the logic instance - Change Digest Computations - Change Resource field types - Change commitment computations - Change nullifier compitations
1 parent 5fc919d commit 8adbeed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+9687
-11262
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,50 @@ jobs:
5656
with:
5757
name: contract-artifacts
5858
path: ./contracts/out
59+
60+
bindings:
61+
name: Bindings
62+
runs-on: ubuntu-latest
63+
needs: contracts
64+
env:
65+
PROTOCOL_ADAPTER_ADDRESS_SEPOLIA: ${{ vars.PROTOCOL_ADAPTER_ADDRESS_SEPOLIA }}
66+
API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }}
67+
API_KEY_ALCHEMY: ${{ secrets.API_KEY_ALCHEMY }}
68+
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
69+
70+
steps:
71+
- name: Checkout repository
72+
uses: actions/checkout@v4
73+
74+
- name: Download Contract Artifacts
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: contract-artifacts
78+
path: ./contracts/out
79+
80+
- name: Install Rust
81+
uses: actions-rs/toolchain@v1
82+
with:
83+
toolchain: stable
84+
override: true
85+
86+
- name: Show Rust version
87+
run: rustc --version
88+
89+
- name: Cache Rust toolchain and dependencies
90+
uses: actions/cache@v3
91+
with:
92+
path: |
93+
~/.cargo
94+
./bindings/target
95+
key: rust-build-${{ hashFiles('bindings/Cargo.toml') }}
96+
restore-keys: |
97+
rust-build-
98+
99+
- name: Build Bindings
100+
run: cargo build --release
101+
working-directory: ./bindings
102+
103+
- name: Run Tests
104+
run: cargo test --verbose
105+
working-directory: ./bindings

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ For more information on the EVM protocol adapter, find the related
3030
└── README.md
3131
```
3232

33-
The `contracts` folder contains the contracts written in [Solidity](https://soliditylang.org/) contracts as well as [Foundry forge](https://book.getfoundry.sh/forge/) tests and deploy scripts.
33+
The `contracts` folder contains the contracts written in [Solidity](https://soliditylang.org/) contracts as well
34+
as [Foundry forge](https://book.getfoundry.sh/forge/) tests and deploy scripts.
3435

35-
The `bindings` folder contains bindings in [Rust](https://www.rust-lang.org/) to convert [Rust](https://www.rust-lang.org/) and [RISC Zero](https://risczero.com/) types into EVM types using the [`alloy-rs` library](https://github.com/alloy-rs).
36+
The `bindings` folder contains bindings in [Rust](https://www.rust-lang.org/) to
37+
convert [Rust](https://www.rust-lang.org/) and [RISC Zero](https://risczero.com/) types into EVM types using the [
38+
`alloy-rs` library](https://github.com/alloy-rs).
3639

3740
## Prerequisites
3841

@@ -57,6 +60,14 @@ forge install
5760

5861
### Usage
5962

63+
#### Build
64+
65+
Build the contracts with following flags: //TODO! confirm this is needed
66+
67+
```sh
68+
forge build --ast
69+
```
70+
6071
#### Tests
6172

6273
Run

bindings/.env-example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## RPC Providers
2+
3+
API_KEY_INFURA=<API_KEY_INFURA_KEY>
4+
API_KEY_ALCHEMY=<API_KEY_ALCHEMY>
5+
6+
## Block Explorers
7+
8+
BONSAI_API_URL="https://api.bonsai.xyz/"
9+
BONSAI_API_KEY=<BONSAI_API_KEY>
10+
11+
## Calling Wallet
12+
13+
PROTOCOL_ADAPTER_ADDRESS_SEPOLIA="0xaf21c8a4d489610f42aabc883e66be3d651e5d52"
14+
PRIVATE_KEY="0xdeafbeefdeafbeefdeafbeefdeafbeefdeafbeefdeafbeefdeafbeefdeafbeef"

0 commit comments

Comments
 (0)