forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from taikoxyz/gwyneth
chore(node): init Gwyneth master branch from taiko-reth
- Loading branch information
Showing
260 changed files
with
25,719 additions
and
765 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
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,78 @@ | ||
name: Propose a block | ||
|
||
on: | ||
push: | ||
branches: | ||
- gwyneth | ||
- gwyneth/** | ||
pull_request: | ||
branches: | ||
- gwyneth | ||
- gwyneth/** | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y curl apt-transport-https software-properties-common | ||
# Install Docker | ||
if ! command -v docker &> /dev/null | ||
then | ||
curl -fsSL https://get.docker.com -o get-docker.sh | ||
sh get-docker.sh | ||
fi | ||
# Start Docker service | ||
sudo systemctl start docker | ||
sudo systemctl enable docker | ||
# Check Docker installation | ||
docker --version | ||
# Install Kurtosis | ||
if ! command -v kurtosis &> /dev/null | ||
then | ||
curl -fsSL https://kurtosis-public.s3.amazonaws.com/cli/cli-installer.sh | bash | ||
fi | ||
# Check Kurtosis installation | ||
kurtosis version | ||
# Install Forge | ||
if ! command -v forge &> /dev/null | ||
then | ||
curl -L https://foundry.paradigm.xyz | bash | ||
source ~/.bashrc | ||
foundryup | ||
fi | ||
# Check Forge installation | ||
forge --version | ||
# Run setup_deps.sh which installs Docker, checks Docker daemon, installs Kurtosis, and extracts RPC port | ||
./scripts/setup_deps.sh | ||
- name: Run Forge Script | ||
run: | | ||
# Read the RPC port from the temporary file | ||
RPC_PORT=$(cat /tmp/kurtosis_rpc_port) | ||
# Run the forge foundry script using the PRIVATE_KEY from GitHub Secrets | ||
FORGE_COMMAND="forge script --rpc-url http://127.0.0.1:$RPC_PORT scripts/L2_txn_simulation/ProposeBlock.s.sol -vvvv --broadcast --private-key $PRIVATE_KEY --legacy" | ||
echo "Running forge foundry script..." | ||
eval $FORGE_COMMAND | ||
echo "Forge script execution completed." |
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.