-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into zw/barrett-reduction
- Loading branch information
Showing
2,639 changed files
with
100,904 additions
and
52,401 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
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,18 @@ | ||
{ | ||
"name": "Sandbox Only", | ||
"image": "node:lts-bookworm", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
}, | ||
"onCreateCommand": "cp -R /root/workspace /root/scripts && rm -rf /root/workspace/* && sh /root/scripts/onCreateCommand.sh sandbox_only", | ||
"postAttachCommand": "sh /root/scripts/postAttachCommand.sh", | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": ["noir-lang.vscode-noir"] | ||
} | ||
}, | ||
"workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/scripts,target=/root/workspace,type=bind", | ||
"workspaceFolder": "/root/workspace", | ||
"forwardPorts": [8080] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
global: | ||
cache_size_pct: 50 | ||
buildkit_max_parallelism: 5 | ||
buildkit_max_parallelism: 10 | ||
container_frontend: docker-shell | ||
buildkit_additional_args: ["-e", "BUILDKIT_STEP_LOG_MAX_SIZE=-1"] |
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,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
FILE_PATH=$1 | ||
|
||
# Read the file line by line | ||
while IFS= read -r line; do | ||
# Extract the hexadecimal address using awk | ||
address=$(echo "$line" | awk '{print $NF}') | ||
|
||
# Assign the address to the respective variable based on the line content | ||
if [[ $line == *"Rollup Address"* ]]; then | ||
export TF_VAR_ROLLUP_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_ROLLUP_CONTRACT_ADDRESS=$TF_VAR_ROLLUP_CONTRACT_ADDRESS" | ||
elif [[ $line == *"Registry Address"* ]]; then | ||
export TF_VAR_REGISTRY_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_REGISTRY_CONTRACT_ADDRESS=$TF_VAR_REGISTRY_CONTRACT_ADDRESS" | ||
elif [[ $line == *"Inbox Address"* ]]; then | ||
export TF_VAR_INBOX_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_INBOX_CONTRACT_ADDRESS=$TF_VAR_INBOX_CONTRACT_ADDRESS" | ||
elif [[ $line == *"Outbox Address"* ]]; then | ||
export TF_VAR_OUTBOX_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_OUTBOX_CONTRACT_ADDRESS=$TF_VAR_OUTBOX_CONTRACT_ADDRESS" | ||
elif [[ $line == *"Oracle Address"* ]]; then | ||
export TF_VAR_AVAILABILITY_ORACLE_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_AVAILABILITY_ORACLE_CONTRACT_ADDRESS=$TF_VAR_AVAILABILITY_ORACLE_CONTRACT_ADDRESS" | ||
elif [[ $line == *"Gas Token Address"* ]]; then | ||
export TF_VAR_GAS_TOKEN_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_GAS_TOKEN_CONTRACT_ADDRESS=$TF_VAR_GAS_TOKEN_CONTRACT_ADDRESS" | ||
elif [[ $line == *"Gas Portal Address"* ]]; then | ||
export TF_VAR_GAS_PORTAL_CONTRACT_ADDRESS=$address | ||
echo "TF_VAR_GAS_PORTAL_CONTRACT_ADDRESS=$TF_VAR_GAS_PORTAL_CONTRACT_ADDRESS" | ||
else | ||
echo "Unknown contract address: $line" | ||
fi | ||
done <"$FILE_PATH" | ||
|
||
# echo all addresses into github env | ||
echo "TF_VAR_ROLLUP_CONTRACT_ADDRESS=$TF_VAR_ROLLUP_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
echo "TF_VAR_REGISTRY_CONTRACT_ADDRESS=$TF_VAR_REGISTRY_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
echo "TF_VAR_INBOX_CONTRACT_ADDRESS=$TF_VAR_INBOX_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
echo "TF_VAR_OUTBOX_CONTRACT_ADDRESS=$TF_VAR_OUTBOX_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
echo "TF_VAR_AVAILABILITY_ORACLE_CONTRACT_ADDRESS=$TF_VAR_AVAILABILITY_ORACLE_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
echo "TF_VAR_GAS_TOKEN_CONTRACT_ADDRESS=$TF_VAR_GAS_TOKEN_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
echo "TF_VAR_GAS_PORTAL_CONTRACT_ADDRESS=$TF_VAR_GAS_PORTAL_CONTRACT_ADDRESS" >>$GITHUB_ENV | ||
|
||
# Set global variable for redeployment of contracts | ||
echo "CONTRACTS_DEPLOYED=1" >>$GITHUB_ENV |
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.