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

Integration of Atlantic Service and HTTP Client Infrastructure #182

Merged
merged 49 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a1ccd2a
initialised atlantic service
byteZorvin Oct 9, 2024
1afa13b
feat: added l1 and l2 proving apis
byteZorvin Oct 10, 2024
09ac565
add header
byteZorvin Oct 10, 2024
55553f4
Merge branch 'main' into atlantic-integration
byteZorvin Oct 14, 2024
e887c73
feat:added testcases for atlantic service
byteZorvin Oct 15, 2024
e0f8781
chore: change to atlantic proving service
byteZorvin Oct 15, 2024
91cdc23
fix: change layout to 'starknet_with_keccak'
byteZorvin Oct 15, 2024
013bfe8
change layout to all_cairo for testing
byteZorvin Oct 16, 2024
0594c70
Merge branch 'main' into atlantic-integration
byteZorvin Oct 16, 2024
7a5bcaa
update gps verifier
byteZorvin Oct 16, 2024
dd53b05
chore: add program hash log
byteZorvin Oct 16, 2024
34889b7
fix: change program hash
byteZorvin Oct 16, 2024
e5b28be
ran formatter
byteZorvin Oct 16, 2024
02b0572
refactor init commit
apoorvsadana Oct 18, 2024
3a2ae80
broken http client
apoorvsadana Oct 18, 2024
287f448
refactor: http_client and prover services refactored
Nov 7, 2024
74c0c64
fix: build issue fixed with temp snos
Nov 7, 2024
da4ca88
merged: main
Nov 7, 2024
11fe253
chore: linting and formatting
Nov 7, 2024
c7fe17e
chore: todo added for later to change snos
Nov 7, 2024
76e66b2
refactor: atlantic test updated as pwe the new changes
Nov 7, 2024
185de15
chore: linting and removed print statements
Nov 7, 2024
d54ce74
refactor: prover-service renamed to prover-clients
Nov 7, 2024
4666168
changelog: updated
Nov 7, 2024
c9401cd
chore: formatting and linting
Nov 7, 2024
1a04d6e
fix: changing prover service to sharp
Nov 7, 2024
82bcef2
fix: adding proof layout to env file
Nov 7, 2024
2e72c73
fix: updated the prvoving zip
Nov 7, 2024
3bac79b
fix: program hash fixed and fact of the block registered
Nov 8, 2024
a254e8a
fix: sleep added after setting fact
Nov 8, 2024
c2308c5
refactor: toml files cleaning and http mock version update
Nov 9, 2024
135e83e
update: duplicate SNOS_PROOD_LAYOUT removed
Nov 9, 2024
30c13b3
changelog: updated
Nov 9, 2024
13af686
chore: linting
Nov 9, 2024
f227e72
fix: snos layout updated to dynamic
Nov 9, 2024
6aa726a
fix: linting and proof layout
Nov 9, 2024
639a918
refactor: added different layout name for snos and proving
Nov 9, 2024
684adab
fix: comments resolved, docker-compose deleted, request-builder updated
Nov 9, 2024
0df375d
changelog: updated
Nov 9, 2024
8fbedac
merged: main
Nov 9, 2024
606315f
resolved: comments and path updated in yaml for s3 download
Nov 9, 2024
a20ca26
refactor: replaced mock server with dummy url to create http client
Nov 9, 2024
f296a30
Merge branch 'main' into atlantic_refactor
Mohiiit Nov 12, 2024
a93afe0
fix: atlantic endpoint updated
Nov 14, 2024
751517d
refactor: atlantic test now use mock server
Nov 14, 2024
0d66cb2
refactor: main merged and refactored as per clap
Nov 20, 2024
234017b
fix: files added
Nov 20, 2024
4a6b03f
fix: env variable's name updated
Nov 20, 2024
3c7bb31
chores: removed extra print statement
Nov 20, 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
11 changes: 10 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
HOST=
PORT=
MAX_BLOCK_TO_PROCESS=
SNOS_PROOF_LAYOUT=

##### AWS CONFIG #####

Expand Down Expand Up @@ -41,12 +42,20 @@ DATABASE_NAME=
##### PROVER #####

PROVER_SERVICE=

## if using sharp
SHARP_CUSTOMER_ID=
SHARP_URL=
SHARP_USER_CRT=
SHARP_USER_KEY=
SHARP_SERVER_CRT=
SHARP_PROOF_LAYOUT=


## if using atlantic
ATLANTIC_API_KEY=
ATLANTIC_URL=
MOCK_FACT_HASH=
PROVER_TYPE=

##### ON CHAIN CONFIG #####

Expand Down
15 changes: 13 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,29 @@ DATABASE_NAME="orchestrator"
##### PROVER #####

PROVER_SERVICE="sharp"

## if using sharp
SHARP_CUSTOMER_ID="sharp_consumer_id"
SHARP_URL="http://127.0.0.1:6000"
# [IMP!!!] These are test certificates (they don't work)
SHARP_USER_CRT="LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR4ekNDQXErZ0F3SUJBZ0lVTjBSK0xpb1MzL2ZadUZsK291RjZNNFk2RnRZd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2N6RUxNQWtHQTFVRUJoTUNTVTR4RXpBUkJnTlZCQWdNQ2xOdmJXVXRVM1JoZEdVeElUQWZCZ05WQkFvTQpHRWx1ZEdWeWJtVjBJRmRwWkdkcGRITWdVSFI1SUV4MFpERU5NQXNHQTFVRUF3d0VVMVJTU3pFZE1Cc0dDU3FHClNJYjNEUUVKQVJZT1lXSmpRR3RoY201dmRDNTRlWG93SGhjTk1qUXdPREV6TVRNd05UTTBXaGNOTWpVd09ERXoKTVRNd05UTTBXakJ6TVFzd0NRWURWUVFHRXdKSlRqRVRNQkVHQTFVRUNBd0tVMjl0WlMxVGRHRjBaVEVoTUI4RwpBMVVFQ2d3WVNXNTBaWEp1WlhRZ1YybGtaMmwwY3lCUWRIa2dUSFJrTVEwd0N3WURWUVFEREFSVFZGSkxNUjB3Ckd3WUpLb1pJaHZjTkFRa0JGZzVoWW1OQWEyRnlibTkwTG5oNWVqQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQUQKZ2dFUEFEQ0NBUW9DZ2dFQkFOSEtaUGRqWSs4QWo4ZFV2V0xReEl5NTNrK1BHY001T2FlYnpTV3FER0xGSlBOdgpkVzJvWjFCSnNEb2hobWZFSCt5ZEFo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ZXZrNzgyU0kwUk0xeG5MaEtrUUVBYXd6Zkg2ODZiR2YKUHQ3RkFIQ1pGaWJ4KzZzSkg0R1M3S25iK0x5bk9ud3phMWZPUXZEZmcvRm5BZ01CQUFHalV6QlJNQjBHQTFVZApEZ1FXQkJUYlFUdmlUTW1xNXlNK2ZJRVI4VjdTZk1pK3B6QWZCZ05WSFNNRUdEQVdnQlRiUVR2aVRNbXE1eU0rCmZJRVI4VjdTZk1pK3B6QVBCZ05WSFJNQkFmOEVCVEFEQVFIL01BMEdDU3FHU0liM0RRRUJDd1VBQTRJQkFRREYKTllyRnpBa2RIVkhjUkd5SUNsTi9IVGswaldOcTVSdTB1RUpDQ21Dbm9ZY1pRSTlDQlcwTkl3dGpZUkpTKzR1UwordWh4VWpSYTA5YXdOWDhvYmU0dDZjK25HRnhZMGZqamk0cGZnbU1kMWNJeGdsM3E3Nlp0ZkllRGR6alRLRXN1CjRFUTVadnEwMnJvTEZ0ZjEvL3dRVG0xNkNKdFpGWnhNZ1phYnNxc2JRc3M2dWdMUGtTTmdBWjI1L2VhcWhnQ20KTjFUV2FxL0xJMVBLSkxPK085NFlMa2FsNVpyOTJCOXk4Q0VKVUVuSTA1R1N1MmJUOFM2a0ZBMEpadEszTW9SbwpqRWZWV1lQVHR5TFR4amNvRndCcDlHaXZYSDdSdHBxMDlmSmFhU1pNekxmNGlyNHpBdXprbExBNWZvampPNXlKCllnYlVaQUU2aS81N1NFWjR3VmxTCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
SHARP_PROOF_LAYOUT="small"
SNOS_LAYOUT_NAME="all_cairo"
PROVER_LAYOUT_NAME="dynamic"


## if using atlantic
ATLANTIC_API_KEY="73307f1b-6464-412d-8cce-9473b5073cc2"
ATLANTIC_URL="https://atlantic.api.herodotus.cloud"
# ATLANTIC_URL="https://webhook.site/2b6ef806-7c50-4799-bfb9-76f22e1c4598"
MOCK_FACT_HASH="false" # Whether to use mock fact registry
PROVER_TYPE="herodotus" # ("herodotus" | "starkware")

##### ON CHAIN CONFIG #####

DA_LAYER="ethereum"
SETTLEMENT_LAYER="ethereum"
SETTLEMENT_LAYER="ethereum" # Should be either `ethereum` or `starknet`
SETTLEMENT_RPC_URL="https://eth-sepolia.public.blastapi.io"
MADARA_RPC_URL=http://localhost:9944
GPS_VERIFIER_CONTRACT_ADDRESS="0x07ec0D28e50322Eb0C159B9090ecF3aeA8346DFe"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ jobs:

- name: Getting neccesary files for testing
run: |
wget -P ./crates/prover-services/sharp-service/tests/artifacts https://madara-orchestrator-sharp-pie.s3.amazonaws.com/238996-SN.zip
wget -P ./crates/prover-clients/sharp-service/tests/artifacts https://madara-orchestrator-sharp-pie.s3.amazonaws.com/238996-SN.zip
# TODO: this can be optimised
cp ./crates/prover-services/sharp-service/tests/artifacts/238996-SN.zip ./crates/orchestrator/src/tests/artifacts/238996-SN.zip
cp ./crates/prover-clients/sharp-service/tests/artifacts/238996-SN.zip ./crates/orchestrator/src/tests/artifacts/238996-SN.zip

- name: Build SNOS files
run: |
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Added

- tests: http_client tests added
- setup functions added for cloud and db
- panic handling in process job
- upgrade ETH L1 bridge for withdrawals to work
- added makefile and submodules
- Endpoints for triggering processing and verification jobs
- Added Atlantic proving service integration
- Add multiple queues for processing and verification based on job type
- added logs
- added MongoDB migrations using nodejs
Expand Down Expand Up @@ -44,6 +46,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Changed

- refactor: http_mock version updated
- refactor: prover-services renamed to prover-clients
- refactor: update json made generic to update any json file
- refactor: makefile updated as per bootstraper changes
- removed error return in case of JobAlreadyExists in `create_job` function
Expand All @@ -67,12 +71,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Removed

- docker-compose removed
- revert CI changes from settlement client PR.
- `init_config` from all the tests.
- `fetch_from_test` argument

## Fixed

- refactor: cargo.toml files cleaned
- blob data formation process from state update
- OTEL config refactor
- indexing for get_jobs_without_successor
Expand Down
Loading
Loading