Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a4ea703
fix: certora prover ci (#477)
8sunyuan Mar 18, 2024
87c8499
fix: off-by-one error (#479)
ChaoticWalrus Mar 21, 2024
b87095b
docs: reinstate contract addresses to their former glory (#478)
wadealexc Mar 21, 2024
4b15d68
feat: m2 mainnet upgrade script (#480)
8sunyuan Mar 22, 2024
bc2ce17
feat: add m2 upgrade output file (#482)
ChaoticWalrus Mar 26, 2024
c61e5a0
chore: minor testing fixes (#486)
ChaoticWalrus Mar 26, 2024
96cf578
test: updated fork integration tests (#483)
8sunyuan Mar 26, 2024
ca5abc9
chore: fork test via environment and custom foundry profile (#490)
wadealexc Mar 28, 2024
62902b5
chore: update the pragma from =0.8.12 to ^0.8.12 (#485)
stevennevins Apr 1, 2024
a31a2f3
docs: fix broken link (#493)
wadealexc Apr 3, 2024
41b4361
fix: m2_deploy_from_scratch script for devnet (#495)
samlaf Apr 5, 2024
1c8b3cb
feat: update mainnet implementation addresses (#497)
ChaoticWalrus Apr 5, 2024
90a0f6a
merge `m2-mainnet` into `mainnet` branch (#498)
ChaoticWalrus Apr 5, 2024
f063b61
feat: add script for unpausing deposits (#496)
ChaoticWalrus Apr 6, 2024
2705829
chore: merge branch 'dev' into mainnet
wadealexc Apr 8, 2024
658c259
chore: add avs directory to README (#506)
wadealexc Apr 8, 2024
7229f2b
docs: remove m1 references and clean deployment table (#508)
wadealexc Apr 9, 2024
dbfa121
chore: add cantina report and rename files for clarity (#526)
wadealexc Apr 25, 2024
15b679b
chore: cleanup script for generating bindings (#532)
seanmcgary May 3, 2024
5c82c27
chore: add token contracts (#535)
gpsanant May 7, 2024
d56df0e
chore: fix merge conflicts for dev merge (#541)
wadealexc May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/check-compilation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on: [push]

jobs:
check-compilation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build and validate
if: github.event_name == 'push'
run: |
sudo apt-get update
sudo apt-get install -y make curl git software-properties-common jq
sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install -y golang-1.22
sudo update-alternatives --install /usr/local/bin/go go /usr/lib/go-1.22/bin/go 1
mkdir ~/.go
export GOPATH=~/.go
export PATH=$PATH:~/.go/bin
go install github.com/ethereum/go-ethereum/cmd/[email protected]
curl -L https://foundry.paradigm.xyz | bash
export PATH=$PATH:/home/runner/.config/.foundry/bin
source ~/.bashrc
foundryup
make bindings
if [ ! -z "$(git status --porcelain)" ]; then git diff; git status; exit 1; fi
38 changes: 38 additions & 0 deletions .github/workflows/run-deploy-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Deploy Scripts
# We run the deploy scripts just to make sure they work

on:
push:
pull_request:
types: [opened, reopened]

jobs:
prepare:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true

# install foundry to run forge script. Should we run forge script in a container instead?
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Start Anvil chain
# need to start Anvil chain with -d to let the container run in the background
# if we start with 'anvil &' instead, the process stops when the step ends
run: docker run -d --rm -p 8545:8545 --entrypoint anvil ghcr.io/foundry-rs/foundry:nightly-5b7e4cb3c882b28f3c32ba580de27ce7381f415a --host 0.0.0.0

- name: Wait for Anvil chain to start
run: sleep 3

# Run Forge script against the Anvil chain
- name: Run M2_Deploy_From_Scratch
run: |
forge script script/deploy/devnet/M2_Deploy_From_Scratch.s.sol --rpc-url http://localhost:8545 \
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast \
--sig "run(string memory configFileName)" -- M2_deploy_from_scratch.anvil.config.json
23 changes: 19 additions & 4 deletions .github/workflows/testinparallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
needs: prepare
runs-on: ubuntu-latest
strategy:
matrix:
file: ${{fromJson(needs.prepare.outputs.matrix)}}
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -43,8 +42,24 @@ jobs:
forge build --sizes
id: build

- name: Run forge test for the file
run: forge test --match-path src/test/${{ matrix.file }} --no-match-contract FFI
- name: Run unit tests
run: forge test --no-match-contract Integration
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}

- name: Run integration tests
run: forge test --match-contract Integration
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}

- name: Run integration mainnet fork tests
run: forge test --match-contract Integration
env:
FOUNDRY_PROFILE: "forktest"
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ test.sh

# Surya outputs
InheritanceGraph.png
surya_report.md
surya_report.md

.idea
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/openzeppelin-contracts-v4.9.0"]
path = lib/openzeppelin-contracts-v4.9.0
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/openzeppelin-contracts-upgradeable-v4.9.0"]
path = lib/openzeppelin-contracts-upgradeable-v4.9.0
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

.PHONY: install-hooks
install-hooks:
cp scripts/pre-commit.sh .git/hooks/pre-commit

.PHONY: deps
deps: install-hooks
brew install libusb
go install github.com/ethereum/go-ethereum/cmd/abigen@latest
curl -L https://foundry.paradigm.xyz | bash
foundryup

.PHONY: compile
compile:
forge b

.PHONY: bindings
bindings: compile
./scripts/compile-bindings.sh
Loading