Skip to content

Commit 27a77ac

Browse files
MegaRedHandTomasArracheapablodeymosupernovahssupernovahs
authored
chore: release v1.0.0 (#453)
### What Changed? This PR merges all changes from `dev` into `main`, in preparation for the v1.0.0 release. ### Reviewer Checklist - [ ] New features are tested and documented - [ ] PR updates the changelog with a description of changes - [ ] PR has one of the `changelog-X` labels (if applies) - [ ] Code deprecates any old functionality before removing it --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Tomas <tomas.arrachea@lambdaclass.com> Co-authored-by: Pablo Deymonnaz <deymonnaz@gmail.com> Co-authored-by: supernovahs <supernovahs@proton.me> Co-authored-by: supernovahs <91280922+supernovahs@users.noreply.github.com> Co-authored-by: Leandro Ferrigno <leanrafa@gmail.com> Co-authored-by: Mateo Rico <89949621+ricomateo@users.noreply.github.com> Co-authored-by: ricomateo <mrico@fi.uba.ar> Co-authored-by: harshit singhal <nova@harshits-MacBook-Pro.local> Co-authored-by: Maximo Palopoli <96491141+maximopalopoli@users.noreply.github.com> Co-authored-by: Pablo Deymonnaz <pdeymon@fi.uba.ar> Co-authored-by: Damian Ramirez <damian.ramirez@lambdaclass.com> Co-authored-by: nathan haim <nathan.haim@free.fr> Co-authored-by: supernova <supernova@onlyevm.com> Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent f27eb22 commit 27a77ac

File tree

240 files changed

+244977
-6628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+244977
-6628
lines changed

.cargo/config.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[alias]
2-
docs = "doc --workspace --all-features --no-deps"
3-
41
[target.x86_64-pc-windows-msvc]
52
rustflags = [
63
# Increases the stack size to 10MB, which is
@@ -13,4 +10,4 @@ rustflags = [
1310
# Increases the stack size to 10MB, which is
1411
# in line with Linux (whereas default for Windows is 1MB)
1512
"-Clink-arg=/STACK:10000000",
16-
]
13+
]

.github/workflows/bindings.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Bindings
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ main ]
66
pull_request:
77
branches: [ '**' ]
88

@@ -11,29 +11,22 @@ env:
1111

1212
jobs:
1313
check:
14-
strategy:
15-
fail-fast: true
16-
1714
name: Check bindings are up to date
1815
runs-on: ubuntu-22.04
19-
16+
2017
steps:
2118
- uses: actions/checkout@v4
2219
with:
2320
submodules: recursive
2421

2522
- name: Install Foundry
2623
uses: foundry-rs/foundry-toolchain@v1
27-
with:
28-
version: v0.3.0
2924

3025
- name: Show Forge version
3126
run: forge --version
32-
27+
3328
- name: Generate new bindings
34-
run: |
35-
make bindings_host
36-
cargo fmt
29+
run: make bindings_host
3730

3831
- name: Compare existing and new bindings
3932
working-directory: crates/utils/src/

.github/workflows/check-anvil-dump.yml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
branches: [ '**' ]
99

1010
jobs:
11-
check:
12-
name: Check anvil dump state is up to date
11+
rewardsv2:
12+
name: Check rewardsv2 anvil dump state is up to date
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -23,9 +23,9 @@ jobs:
2323
with:
2424
filters: |
2525
contracts:
26-
- 'crates/contracts/lib/**'
27-
- 'crates/contracts/script/**'
28-
- 'crates/contracts/src/**'
26+
- 'crates/m2_contracts/lib/**'
27+
- 'crates/m2_contracts/script/**'
28+
- 'crates/m2_contracts/src/**'
2929
3030
# This step runs only if some contract changed.
3131
# It checks the diff in the anvil state file.
@@ -34,9 +34,43 @@ jobs:
3434
# Note: if the git diff fails to fetch the changes, then the step will also fail.
3535
- name: Check the anvil dump has changed
3636
if: steps.filter.outputs.contracts == 'true'
37-
working-directory: crates/contracts/anvil/contracts_deployed_anvil_state.json
37+
working-directory: crates/m2_contracts/anvil/m2_contracts_deployed_anvil_state
3838
run: |
3939
if [ -z "$(git diff origin/${{ github.event.pull_request.base.ref }} -- state.json)" ]; then
4040
echo "The anvil dump is outdated";
4141
exit 1
4242
fi
43+
44+
slashing:
45+
name: Check slashing anvil dump state is up to date
46+
runs-on: ubuntu-latest
47+
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
52+
53+
# This step is needed to know if the contracts were changed.
54+
- uses: dorny/paths-filter@v3
55+
id: filter
56+
with:
57+
filters: |
58+
contracts:
59+
- 'crates/operator_sets_contracts/lib/**'
60+
- 'crates/operator_sets_contracts/script/**'
61+
- 'crates/operator_sets_contracts/src/**'
62+
63+
# This step runs only if some contract changed.
64+
# It checks the diff in the anvil state file.
65+
# If the diff is null, that means the anvil state has not changed,
66+
# i.e. the anvil state outdated and therefore this step will fail.
67+
# Note: if the git diff fails to fetch the changes, then the step will also fail.
68+
- name: Check the anvil dump has changed
69+
if: steps.filter.outputs.contracts == 'true'
70+
working-directory: crates/operator_sets_contracts/anvil/operatorset_contracts_deployed_anvil_state
71+
run: |
72+
if [ -z "$(git diff origin/${{ github.event.pull_request.base.ref }} -- state.json)" ]; then
73+
echo "The anvil dump is outdated";
74+
exit 1
75+
fi
76+

.github/workflows/foundry.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ env:
1010
FOUNDRY_PROFILE: ci
1111

1212
jobs:
13-
check:
13+
m2:
1414
strategy:
1515
fail-fast: true
1616

1717
name: Foundry project
1818
runs-on: ubuntu-latest
1919
defaults:
2020
run:
21-
working-directory: ./crates/contracts
21+
working-directory: ./crates/m2_contracts
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
@@ -37,3 +37,31 @@ jobs:
3737

3838
- name: Run Forge build
3939
run: forge build --sizes
40+
41+
slashing:
42+
strategy:
43+
fail-fast: true
44+
45+
name: Foundry project
46+
runs-on: ubuntu-latest
47+
defaults:
48+
run:
49+
working-directory: ./crates/operator_sets_contracts
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
submodules: recursive
54+
55+
- name: Install Foundry
56+
uses: foundry-rs/foundry-toolchain@v1
57+
with:
58+
version: stable
59+
60+
- name: Show Forge version
61+
run: forge --version
62+
63+
- name: Run Forge fmt
64+
run: forge fmt --check
65+
66+
- name: Run Forge build
67+
run: forge build --sizes

.github/workflows/integration.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
- dev
68
pull_request:
79
branches: [ '**' ]
810

@@ -12,7 +14,7 @@ jobs:
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Install Rust
15-
uses: dtolnay/rust-toolchain@1.81
17+
uses: dtolnay/rust-toolchain@stable
1618

1719
- name: Checkout repository
1820
uses: actions/checkout@v4
@@ -28,7 +30,7 @@ jobs:
2830
runs-on: ubuntu-latest
2931
steps:
3032
- name: Install Rust
31-
uses: dtolnay/rust-toolchain@1.81
33+
uses: dtolnay/rust-toolchain@stable
3234
with:
3335
components: rustfmt, clippy
3436

@@ -129,4 +131,4 @@ jobs:
129131
version: stable
130132

131133
- name: Generate anvil state
132-
run: make deploy-contracts-to-anvil-and-save-state
134+
run: make dump-state

.github/workflows/release-plz.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ permissions:
55
contents: write
66

77
on:
8+
workflow_dispatch:
89
push:
910
branches:
1011
- main
12+
- dev
1113

1214
jobs:
13-
1415
# Release unpublished packages.
1516
release-plz-release:
1617
name: Release-plz release
@@ -30,4 +31,4 @@ jobs:
3031
command: release
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
34+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.gitmodules

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
[submodule "crates/contracts/lib/forge-std"]
2-
path = crates/contracts/lib/forge-std
1+
[submodule "crates/m2_contracts/lib/forge-std"]
2+
path = crates/m2_contracts/lib/forge-std
33
url = https://github.com/foundry-rs/forge-std
4-
[submodule "crates/contracts/lib/eigenlayer-middleware"]
5-
path = crates/contracts/lib/eigenlayer-middleware
6-
url = https://github.com/Layr-labs/eigenlayer-middleware
4+
[submodule "crates/m2_contracts/lib/eigenlayer-middleware"]
5+
path = crates/m2_contracts/lib/eigenlayer-middleware
6+
url = https://github.com/layr-labs/eigenlayer-middleware
7+
[submodule "crates/operator_sets_contracts/lib/forge-std"]
8+
path = crates/operator_sets_contracts/lib/forge-std
9+
url = https://github.com/foundry-rs/forge-std
10+
[submodule "crates/operator_sets_contracts/lib/eigenlayer-middleware"]
11+
path = crates/operator_sets_contracts/lib/eigenlayer-middleware
12+
url = https://github.com/layr-labs/eigenlayer-middleware

0 commit comments

Comments
 (0)