-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
253 additions
and
3,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
##### ORCHESTRATOR ##### | ||
|
||
HOST= | ||
PORT= | ||
DATABASE_URL= | ||
MADARA_RPC_URL= | ||
DA_LAYER= | ||
SETTLEMENT_LAYER= | ||
|
||
# Ethereum | ||
ETHEREUM_PRIVATE_KEY= | ||
ETHEREUM_RPC_URL= | ||
MEMORY_PAGES_CONTRACT_ADDRESS= | ||
STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS= | ||
##### AWS CONFIG ##### | ||
|
||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_REGION= | ||
AWS_ENDPOINT_URL= | ||
|
||
# Starknet | ||
STARKNET_PUBLIC_KEY= | ||
STARNET_PRIVATE_KEY= | ||
STARKNET_RPC_URL= | ||
STARKNET_CAIRO_CORE_CONTRACT_ADDRESS= | ||
##### STORAGE ##### | ||
|
||
# MongoDB connection string | ||
MONGODB_CONNECTION_STRING= | ||
DATA_STORAGE= | ||
AWS_S3_BUCKET_NAME= | ||
|
||
# AWS | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_DEFAULT_REGION= | ||
##### QUEUE ##### | ||
|
||
# SQS | ||
QUEUE_PROVIDER= | ||
SQS_JOB_PROCESSING_QUEUE_URL= | ||
SQS_JOB_VERIFICATION_QUEUE_URL= | ||
SQS_JOB_HANDLE_FAILURE_QUEUE_URL= | ||
SQS_WORKER_TRIGGER_QUEUE_URL= | ||
|
||
# S3 | ||
AWS_S3_BUCKET_NAME= | ||
AWS_S3_BUCKET_REGION= | ||
##### DATABASE ##### | ||
|
||
DATABASE= | ||
MONGODB_CONNECTION_STRING= | ||
|
||
# Ethereum Settlement | ||
DEFAULT_SETTLEMENT_CLIENT_RPC= | ||
DEFAULT_L1_CORE_CONTRACT_ADDRESS= | ||
##### PROVER ##### | ||
|
||
# Sharp Services | ||
PROVER_SERVICE= | ||
SHARP_CUSTOMER_ID= | ||
SHARP_URL= | ||
SHARP_USER_CRT= | ||
SHARP_USER_KEY= | ||
SHARP_SERVER_CRT= | ||
SHARP_PROOF_LAYOUT= | ||
|
||
##### ON CHAIN CONFIG ##### | ||
|
||
DA_LAYER= | ||
SETTLEMENT_LAYER= | ||
ETHEREUM_RPC_URL= | ||
MADARA_RPC_URL= | ||
MEMORY_PAGES_CONTRACT_ADDRESS= | ||
PRIVATE_KEY= | ||
ETHEREUM_PRIVATE_KEY= | ||
STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Rust Test & Coverage | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches-ignore: | ||
- main | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
localstack: | ||
image: localstack/localstack | ||
env: | ||
SERVICES: s3, sqs | ||
DEFAULT_REGION: us-east-1 | ||
AWS_ACCESS_KEY_ID: "AWS_ACCESS_KEY_ID" | ||
AWS_SECRET_ACCESS_KEY: "AWS_SECRET_ACCESS_KEY" | ||
ports: | ||
- 4566:4566 | ||
mongodb: | ||
image: mongo:latest | ||
ports: | ||
- 27017:27017 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# selecting a toolchain either by action or manual `rustup` calls should happen | ||
# before the plugin, as the cache uses the current rustc version as its cache key | ||
- run: rustup show | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Check Anvil Installation | ||
run: | | ||
if command -v anvil &> /dev/null | ||
then | ||
echo "Anvil is installed. Version information:" | ||
anvil --version | ||
else | ||
echo "Anvil is not installed or not in PATH" | ||
exit 1 | ||
fi | ||
- name: Running anvil | ||
run: | | ||
# Forking block number : 20607627 on ethereum mainnet | ||
anvil --fork-url ${{ secrets.ETHEREUM_BLAST_RPC_URL }}@20607627 | ||
- name: Run e2e test | ||
run: | | ||
RUST_LOG=trace cargo test test_orchestrator_workflow -- --ignored --nocapture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.