Skip to content

Commit

Permalink
Merge pull request #35 from taikoxyz/gwynethV2-latest-reth
Browse files Browse the repository at this point in the history
[gwyneth] Initial smart contracts and exex integration
  • Loading branch information
Brechtpd committed Aug 28, 2024
2 parents 06eb97c + 5fd6c2f commit eaa81f5
Show file tree
Hide file tree
Showing 192 changed files with 23,520 additions and 182 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ concurrency:
name: bench
jobs:
iai:
runs-on:
group: Reth
runs-on: ubuntu-latest
# Only run benchmarks in merge groups and on main
if: github.event_name != 'pull_request'
steps:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
prepare-reth:
if: github.repository == 'paradigmxyz/reth'
timeout-minutes: 45
runs-on:
group: Reth
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mkdir artifacts
Expand Down Expand Up @@ -179,8 +178,7 @@ jobs:
- prepare-reth
- prepare-hive
name: run
runs-on:
group: Reth
runs-on: ubuntu-latest
permissions:
issues: write
steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ concurrency:
jobs:
test:
name: test / ${{ matrix.network }}
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
strategy:
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/propose.yml
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."
9 changes: 3 additions & 6 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ concurrency:
jobs:
test:
name: test / ${{ matrix.network }} (${{ matrix.partition }}/2)
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
strategy:
Expand All @@ -45,8 +44,7 @@ jobs:
state:
name: Ethereum state tests
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
Expand All @@ -70,8 +68,7 @@ jobs:

doc:
name: doc tests (${{ matrix.network }})
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
timeout-minutes: 30
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ jwttoken/
crates/storage/libmdbx-rs/mdbx-sys/libmdbx/cmake-build-debug

# Rust bug report
rustc-ice-*
rustc-ice-*

packages/protocol/broadcast/**
Loading

0 comments on commit eaa81f5

Please sign in to comment.