Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/dockerized application for local testing #11

Merged
merged 55 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f6cf106
added blocks verification logic tested on single mmr batch
ametel01 Dec 4, 2024
103160d
feat(publisher): implement block validity verification using STARK pr…
ametel01 Dec 4, 2024
def0067
Improve error messages for better clarity and context
ametel01 Dec 4, 2024
6fd59e8
chore: cleaup logs
ametel01 Dec 4, 2024
d792d6a
feat(logging): enhance tracing across proof generation pipeline
ametel01 Dec 4, 2024
6eaa473
Enhance input validation, error handling, and tracing
ametel01 Dec 4, 2024
1ab1e72
feat(starknet-handler): enhance tracing and logging
ametel01 Dec 4, 2024
6bc1926
fmt
ametel01 Dec 4, 2024
f1bff16
feat(validator): implement onchain MMR root verification
ametel01 Dec 4, 2024
800ce02
fix(publisher): correct InvalidBlockRange error construction
ametel01 Dec 4, 2024
c8e80bd
fix: improve block integrity verification
ametel01 Dec 4, 2024
6843224
refactor: reduce verbosity in light client tracing logs
ametel01 Dec 5, 2024
ac57338
refactor: remove unused docker images for anvil, ethereum, katana, an…
ametel01 Dec 5, 2024
b064406
cilppy
ametel01 Dec 5, 2024
9b552ba
ci: add Cairo workflow
ametel01 Dec 5, 2024
4998cd8
cairo ci fix
ametel01 Dec 5, 2024
04a585c
ci fix
ametel01 Dec 5, 2024
0bdff67
feat(docker): add Dockerfiles for client and server
ametel01 Dec 6, 2024
e27c2b6
feat(starknet): add garaga as git submodule
ametel01 Dec 6, 2024
a183344
chore(docker): setup local deployment infrastructure
ametel01 Dec 6, 2024
0f6d570
feat: add build-mmr container
ametel01 Dec 6, 2024
6e586c2
misc fixes
ametel01 Dec 7, 2024
baaeb60
rolled back starknet contracts to prev state
ametel01 Dec 7, 2024
22d0237
removed debug logging
ametel01 Dec 7, 2024
e7b7852
feat: add retry mechanism for forge script deployment
ametel01 Dec 7, 2024
2a9429a
fix(docker): resolve cargo patch resolution in offline mode
ametel01 Dec 7, 2024
cbd9246
fix(ethereum): handle Anvil provider timeout gracefully
ametel01 Dec 7, 2024
214f7c7
refactor(docker): switch relayer to Alpine Linux base image
ametel01 Dec 7, 2024
79cd5b9
refactor(docker): align relayer Dockerfile with client pattern
ametel01 Dec 7, 2024
f6395f9
chore(docker): verify relayer service configuration
ametel01 Dec 7, 2024
08aa786
fix(docker): optimize relayer build process
ametel01 Dec 7, 2024
9a3d883
chore ignore
ametel01 Dec 7, 2024
cd26591
Clean up gitmodules
ametel01 Dec 7, 2024
b13d2f7
Remove garaga from index
ametel01 Dec 7, 2024
6209ad9
Add garaga submodule at commit 5f3b232
ametel01 Dec 7, 2024
2f6576f
refactor: switch from bash to sh in Docker environment
ametel01 Dec 7, 2024
a152aa1
format starknet contracts
ametel01 Dec 7, 2024
4186ff9
Merge branch 'main' into feat/build-mmr-container
ametel01 Dec 8, 2024
51a1277
removed duplicate dep
ametel01 Dec 8, 2024
f68c2c1
refactor: split deployment scripts
ametel01 Dec 9, 2024
bee104e
fix: json config update in ethereum deployment
ametel01 Dec 9, 2024
b1a42d0
feat/ Added chain_id to proving logic to handle sepolia test net
ametel01 Dec 9, 2024
1463514
removed hardcoded anvil account PK
ametel01 Dec 9, 2024
75edbdb
added submodule to ci to handle garaga dep
ametel01 Dec 9, 2024
b621afe
added jq to deps
ametel01 Dec 9, 2024
b138589
chore updated
ametel01 Dec 9, 2024
499152a
fmt
ametel01 Dec 9, 2024
c02a48a
new deployments
ametel01 Dec 9, 2024
0b0d7b5
feat: add retry mechanism to ethereum deployment script
ametel01 Dec 9, 2024
ea1597c
fix: adjust mmr-builder restart policy
ametel01 Dec 9, 2024
dcdc0bf
added source check for mmr update and min update time on store
ametel01 Dec 9, 2024
3944d32
fix: remove entrypoint from relayer Dockerfile
ametel01 Dec 9, 2024
c9af681
feat: improve relayer service reliability
ametel01 Dec 9, 2024
2485f51
chore removed redundant logging
ametel01 Dec 9, 2024
6258f75
refactor: use RELAYER_INTERVAL environment variable
ametel01 Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# [source.crates-io]
# replace-with = "vendored-sources"

# [source."git+https://github.com/ametel01/eth-rlp-verify.git"]
# git = "https://github.com/ametel01/eth-rlp-verify.git"
# replace-with = "vendored-sources"

# [source."git+https://github.com/ametel01/garaga.git"]
# git = "https://github.com/ametel01/garaga.git"
# replace-with = "vendored-sources"

# [source."git+https://github.com/ametel01/rust-accumulators.git?branch=feat/sha2-hasher"]
# git = "https://github.com/ametel01/rust-accumulators.git"
# branch = "feat/sha2-hasher"
# replace-with = "vendored-sources"

# [source."git+https://github.com/lambdaclass/lambdaworks.git"]
# git = "https://github.com/lambdaclass/lambdaworks.git"
# replace-with = "vendored-sources"

# [source."git+https://github.com/risc0/RustCrypto-hashes.git?tag=sha2-v0.10.8-risczero.0"]
# git = "https://github.com/risc0/RustCrypto-hashes.git"
# tag = "sha2-v0.10.8-risczero.0"
# replace-with = "vendored-sources"

# [source."git+https://github.com/risc0/risc0-ethereum?tag=v1.1.4"]
# git = "https://github.com/risc0/risc0-ethereum"
# tag = "v1.1.4"
# replace-with = "vendored-sources"

# [source."git+https://github.com/xJonathanLEI/starknet-rs.git?branch=master"]
# git = "https://github.com/xJonathanLEI/starknet-rs.git"
# branch = "master"
# replace-with = "vendored-sources"

# [source."git+https://github.com/OpenZeppelin/openzeppelin-contracts.git"]
# git = "https://github.com/OpenZeppelin/openzeppelin-contracts.git"
# replace-with = "vendored-sources"

# [source.vendored-sources]
# directory = "vendor"

# [net]
# git-fetch-with-cli = true
69 changes: 67 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
# Build artifacts
target/
Dockerfile
.dockerignore
/target/
dist/

# Docker files
Dockerfile*
.dockerignore
docker/

# Version control
.git/
.gitignore
.github/

# IDE and editor files
.vscode/
.idea/
*.swp
*.swo
.DS_Store

# Debug files
*.log
*.log.*
debug/

# Development configs
.env*
*.local
.editorconfig
.eslintrc*
.prettierrc*

# Documentation
docs/
*.md
LICENSE

# Test files
tests/
*_test.go
*.test
coverage/

# Dependencies
node_modules/

# Temporary files
tmp/
temp/
*.tmp

# Cargo specific
Cargo.lock # unless it's a binary project
.cargo/
!vendor/ # Explicitly allow the vendor directory
!vendor/**/target/ # Explicitly allow target directories under vendor

# Foundry specific
cache/
out/
broadcast/

# Misc development files
.husky/
.lint*
.format*
3 changes: 2 additions & 1 deletion .github/workflows/cairo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: foundry-rs/setup-snfoundry@v3
with:
submodules: true
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.8.5"
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ scripts/katana/deploy.log
scripts/katana/katana.log

*.pb

vendor/

.env.local
.env.sepolia
.env.mainnet
docker/rebuild-all.sh

scripts/deploy-contracts.bash.sh
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = contracts/ethereum/lib/forge-std
url = https://github.com/foundry-rs/forge-std.git
shallow = true
[submodule "contracts/starknet/garaga"]
path = contracts/starknet/garaga
url = [email protected]:keep-starknet-strange/garaga.git
Loading
Loading