Skip to content

Commit 2089636

Browse files
committed
feat: upload evm header sp1
0 parents  commit 2089636

File tree

20 files changed

+12260
-0
lines changed

20 files changed

+12260
-0
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 'mock' for generating mock proofs locally, 'local' for generating proofs locally, 'network' for generating proofs using the proving network.
2+
SP1_PROVER=local
3+
# If using the proving network, set to your whitelisted private key. For more information, see:
4+
# https://docs.succinct.xyz/docs/generating-proofs/prover-network/key-setup
5+
NETWORK_PRIVATE_KEY=

.github/workflows/foundry-test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Foundry Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
9+
env:
10+
FOUNDRY_PROFILE: ci
11+
12+
jobs:
13+
check:
14+
strategy:
15+
fail-fast: true
16+
17+
name: Foundry project
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
24+
- name: Install Foundry
25+
uses: foundry-rs/foundry-toolchain@v1
26+
with:
27+
version: nightly
28+
29+
- name: Run Forge build
30+
run: |
31+
cd contracts
32+
forge --version
33+
forge build --sizes
34+
id: build
35+
36+
- name: Run Forge tests
37+
run: |
38+
cd contracts
39+
forge test -vvv
40+
id: test

.github/workflows/prove.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Program
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
9+
env:
10+
FOUNDRY_PROFILE: ci
11+
12+
jobs:
13+
check:
14+
strategy:
15+
fail-fast: true
16+
17+
name: Build
18+
runs-on: ubuntu-20.04
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
24+
- name: Install rust toolchain
25+
uses: actions-rs/toolchain@v1
26+
with:
27+
profile: minimal
28+
toolchain: 1.84.0
29+
30+
- name: Install SP1 toolchain
31+
run: |
32+
curl -L https://sp1.succinct.xyz | bash
33+
~/.sp1/bin/sp1up
34+
~/.sp1/bin/cargo-prove prove --version
35+
36+
- name: Build SP1 program
37+
run: |
38+
cd program
39+
~/.sp1/bin/cargo-prove prove build

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cargo build
2+
**/target
3+
4+
# Cargo config
5+
.cargo
6+
7+
# Profile-guided optimization
8+
/tmp
9+
pgo-data.profdata
10+
11+
# MacOS nuisances
12+
.DS_Store
13+
14+
# Proofs
15+
**/proof-with-pis.json
16+
**/proof-with-io.json
17+
18+
# Env
19+
.env

.vscode/settings.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
"program/Cargo.toml",
4+
"script/Cargo.toml"
5+
],
6+
"rust-analyzer.check.overrideCommand": [
7+
"cargo",
8+
"clippy",
9+
"--workspace",
10+
"--message-format=json",
11+
"--all-features",
12+
"--all-targets",
13+
"--",
14+
"-A",
15+
"incomplete-features"
16+
],
17+
"rust-analyzer.runnables.extraEnv": {
18+
"RUST_LOG": "debug",
19+
"RUSTFLAGS": "-Ctarget-cpu=native"
20+
},
21+
"rust-analyzer.runnables.extraArgs": [
22+
"--release",
23+
"+nightly"
24+
],
25+
"rust-analyzer.diagnostics.disabled": [
26+
"unresolved-proc-macro"
27+
],
28+
"editor.rulers": [
29+
100
30+
],
31+
"editor.inlineSuggest.enabled": true,
32+
"[rust]": {
33+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
34+
"editor.formatOnSave": true,
35+
"editor.hover.enabled": true
36+
},
37+
}

0 commit comments

Comments
 (0)