-
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.
refactor aws and clean .env files (#98)
* refactor aws * env cleanup and build_database_client * remove get_credentials_and_region_from_config * region for test case * fix localstack not working * add port and host to .env.test * fix eth pk * fix CI --------- Co-authored-by: Arun Jangra <[email protected]>
- Loading branch information
1 parent
0ad9bfb
commit 77bf9c6
Showing
10 changed files
with
120 additions
and
182 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,51 @@ | ||
##### 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= | ||
# [IMP!!!] These are test certificates (they don't work) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,52 @@ | ||
##### AWS config ##### | ||
##### ORCHESTRATOR ##### | ||
|
||
HOST=127.0.0.1 | ||
PORT=3000 | ||
|
||
##### AWS CONFIG ##### | ||
|
||
AWS_ACCESS_KEY_ID="AWS_ACCESS_KEY_ID" | ||
AWS_SECRET_ACCESS_KEY="AWS_SECRET_ACCESS_KEY" | ||
AWS_S3_BUCKET_NAME="madara-orchestrator-test-bucket" | ||
AWS_S3_BUCKET_REGION="us-east-1" | ||
AWS_REGION="us-east-1" | ||
AWS_ENDPOINT_URL="http://localhost.localstack.cloud:4566" | ||
|
||
##### STORAGE ##### | ||
|
||
DATA_STORAGE="s3" | ||
AWS_S3_BUCKET_NAME="madara-orchestrator-test-bucket" | ||
|
||
##### QUEUE ##### | ||
|
||
QUEUE_PROVIDER="sqs" | ||
SQS_JOB_PROCESSING_QUEUE_URL="http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/madara_orchestrator_job_processing_queue" | ||
SQS_JOB_VERIFICATION_QUEUE_URL="http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/madara_orchestrator_job_verification_queue" | ||
SQS_JOB_HANDLE_FAILURE_QUEUE_URL= | ||
SQS_WORKER_TRIGGER_QUEUE_URL= | ||
AWS_DEFAULT_REGION="localhost" | ||
|
||
##### On chain config ##### | ||
|
||
MADARA_RPC_URL="http://localhost:3000" | ||
ETHEREUM_RPC_URL="http://localhost:3001" | ||
MEMORY_PAGES_CONTRACT_ADDRESS="0x000000000000000000000000000000000001dead" | ||
PRIVATE_KEY="0xdead" | ||
# Private key of Test wallet provided by Anvil | ||
ETHEREUM_PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" | ||
STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS="0x000000000000000000000000000000000002dead" | ||
|
||
##### Config URLs ##### | ||
##### DATABASE ##### | ||
|
||
DA_LAYER="ethereum" | ||
PROVER_SERVICE="sharp" | ||
SETTLEMENT_LAYER="ethereum" | ||
DATA_STORAGE="s3" | ||
DATABASE="mongodb" | ||
MONGODB_CONNECTION_STRING="mongodb://localhost:27017" | ||
DEFAULT_SETTLEMENT_CLIENT_RPC="http://localhost:3000" | ||
|
||
# Ethereum Settlement | ||
DEFAULT_L1_CORE_CONTRACT_ADDRESS="0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4" | ||
SHOULD_IMPERSONATE_ACCOUNT="true" | ||
TEST_DUMMY_CONTRACT_ADDRESS="0xE5b6F5e695BA6E4aeD92B68c4CC8Df1160D69A81" | ||
##### PROVER ##### | ||
|
||
# Sharp Services | ||
PROVER_SERVICE="sharp" | ||
SHARP_CUSTOMER_ID="sharp_consumer_id" | ||
SHARP_URL="http://127.0.0.1:5000" | ||
# [IMP!!!] These are test certificates (they don't work) | ||
SHARP_USER_CRT="LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR4ekNDQXErZ0F3SUJBZ0lVTjBSK0xpb1MzL2ZadUZsK291RjZNNFk2RnRZd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2N6RUxNQWtHQTFVRUJoTUNTVTR4RXpBUkJnTlZCQWdNQ2xOdmJXVXRVM1JoZEdVeElUQWZCZ05WQkFvTQpHRWx1ZEdWeWJtVjBJRmRwWkdkcGRITWdVSFI1SUV4MFpERU5NQXNHQTFVRUF3d0VVMVJTU3pFZE1Cc0dDU3FHClNJYjNEUUVKQVJZT1lXSmpRR3RoY201dmRDNTRlWG93SGhjTk1qUXdPREV6TVRNd05UTTBXaGNOTWpVd09ERXoKTVRNd05UTTBXakJ6TVFzd0NRWURWUVFHRXdKSlRqRVRNQkVHQTFVRUNBd0tVMjl0WlMxVGRHRjBaVEVoTUI4RwpBMVVFQ2d3WVNXNTBaWEp1WlhRZ1YybGtaMmwwY3lCUWRIa2dUSFJrTVEwd0N3WURWUVFEREFSVFZGSkxNUjB3Ckd3WUpLb1pJaHZjTkFRa0JGZzVoWW1OQWEyRnlibTkwTG5oNWVqQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQUQKZ2dFUEFEQ0NBUW9DZ2dFQkFOSEtaUGRqWSs4QWo4ZFV2V0xReEl5NTNrK1BHY001T2FlYnpTV3FER0xGSlBOdgpkVzJvWjFCSnNEb2hobWZFSCt5ZEFoQXEvbzc4NDljblg2VDJTOVhta25wdnNud2dRckU5Z3lqSmV3MUxBRzNHCm10U0lOMWJJSm9peWJ3QUR5NGxPd0xrVzUzdFdueHBSazVVVmZUU1hLYVRRTnlHd2o3Q2xMSGthcnlZYVk3OV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VZApEZ1FXQkJUYlFUdmlUTW1xNXlNK2ZJRVI4VjdTZk1pK3B6QWZCZ05WSFNNRUdEQVdnQlRiUVR2aVRNbXE1eU0rCmZJRVI4VjdTZk1pK3B6QVBCZ05WSFJNQkFmOEVCVEFEQVFIL01BMEdDU3FHU0liM0RRRUJDd1VBQTRJQkFRREYKTllyRnpBa2RIVkhjUkd5SUNsTi9IVGswaldOcTVSdTB1RUpDQ21Dbm9ZY1pRSTlDQlcwTkl3dGpZUkpTKzR1UwordWh4VWpSYTA5YXdOWDhvYmU0dDZjK25HRnhZMGZqamk0cGZnbU1kMWNJeGdsM3E3Nlp0ZkllRGR6alRLRXN1CjRFUTVadnEwMnJvTEZ0ZjEvL3dRVG0xNkNKdFpGWnhNZ1phYnNxc2JRc3M2dWdMUGtTTmdBWjI1L2VhcWhnQ20KTjFUV2FxL0xJMVBLSkxPK085NFlMa2FsNVpyOTJCOXk4Q0VKVUVuSTA1R1N1MmJUOFM2a0ZBMEpadEszTW9SbwpqRWZWV1lQVHR5TFR4amNvRndCcDlHaXZYSDdSdHBxMDlmSmFhU1pNekxmNGlyNHpBdXprbExBNWZvampPNXlKCllnYlVaQUU2aS81N1NFWjR3VmxTCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K" | ||
SHARP_PROOF_LAYOUT="small" | ||
|
||
##### ON CHAIN CONFIG ##### | ||
|
||
DA_LAYER="ethereum" | ||
SETTLEMENT_LAYER="ethereum" | ||
SETTLEMENT_RPC_URL="http://localhost:3001" | ||
MADARA_RPC_URL="http://localhost:3000" | ||
L1_CORE_CONTRACT_ADDRESS="0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4" | ||
MEMORY_PAGES_CONTRACT_ADDRESS="0x000000000000000000000000000000000001dead" | ||
PRIVATE_KEY="0xdead" | ||
ETHEREUM_PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" | ||
STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS="0x000000000000000000000000000000000002dead" |
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
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.