-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
790 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: test-contracts | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
||
concurrency: | ||
group: ${{github.workflow}}-${{github.ref}} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
name: Foundry Project | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install forge dependencies | ||
run: forge install | ||
working-directory: ./contracts | ||
|
||
- name: Run tests | ||
run: forge test -vvv | ||
working-directory: ./contracts | ||
|
||
- name: Run snapshot | ||
run: forge snapshot | ||
working-directory: ./contracts |
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,12 +1,12 @@ | ||
[submodule "contracts/eigenlayer-contracts"] | ||
path = contracts/eigenlayer-contracts | ||
url = https://github.com/Layr-Labs/eigenlayer-contracts.git | ||
[submodule "contracts/eigenda-contracts/lib/forge-std"] | ||
path = contracts/eigenda-contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std.git | ||
[submodule "contracts/eigenda-contracts/lib/openzeppelin-contracts"] | ||
path = contracts/eigenda-contracts/lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts.git | ||
[submodule "contracts/eigenda-contracts/lib/openzeppelin-contracts-upgradeable"] | ||
path = contracts/eigenda-contracts/lib/openzeppelin-contracts-upgradeable | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git | ||
[submodule "contracts/lib/forge-std"] | ||
path = contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "contracts/lib/eigenlayer-contracts"] | ||
path = contracts/lib/eigenlayer-contracts | ||
url = https://github.com/Layr-Labs/eigenlayer-contracts | ||
[submodule "contracts/lib/openzeppelin-contracts"] | ||
path = contracts/lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts | ||
[submodule "contracts/lib/openzeppelin-contracts-upgradeable"] | ||
path = contracts/lib/openzeppelin-contracts-upgradeable | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable |
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,14 @@ | ||
# Compiler files | ||
cache/ | ||
out/ | ||
|
||
# Ignores development broadcast logs | ||
!/broadcast | ||
/broadcast/*/31337/ | ||
/broadcast/**/dry-run/ | ||
|
||
# Docs | ||
docs/ | ||
|
||
# Dotenv file | ||
.env |
Empty file.
This file was deleted.
Oops, something went wrong.
Submodule forge-std
deleted from
b00f50
Submodule openzeppelin-contracts
deleted from
253bfa
1 change: 0 additions & 1 deletion
1
contracts/eigenda-contracts/lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable
deleted from
2f3e78
Submodule eigenlayer-contracts
deleted from
fa80db
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,25 @@ | ||
[profile.default] | ||
src = 'src' | ||
out = 'out' | ||
libs = ['lib'] | ||
fs_permissions = [{ access = "read-write", path = "./"}] | ||
|
||
remappings = [ | ||
"@eigenlayer/=lib/eigenlayer-contracts/src/", | ||
"@openzeppelin/=lib/openzeppelin-contracts/", | ||
"@openzeppelin-upgrades/=lib/openzeppelin-contracts-upgradeable/", | ||
"forge-std/=lib/forge-std/src/" | ||
] | ||
|
||
gas_reports = ["*"] | ||
|
||
# A list of ignored solc error codes | ||
|
||
# Enables or disables the optimizer | ||
optimizer = true | ||
# The number of optimizer runs | ||
optimizer_runs = 200 | ||
# Whether or not to use the Yul intermediate representation compilation pipeline | ||
via_ir = false | ||
# Override the Solidity version (this overrides `auto_detect_solc`) | ||
solc_version = '0.8.12' |
Submodule eigenlayer-contracts
added at
fbbe6e
Submodule openzeppelin-contracts
added at
e50c24
Submodule openzeppelin-contracts-upgradeable
added at
bc9552
Oops, something went wrong.