-
Notifications
You must be signed in to change notification settings - Fork 556
build: Migrate Solidity dependencies from npm to Soldeer #7480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1a93dce
build: Migrate Solidity dependencies from npm to Soldeer
larryob e03a3d2
Update .github/workflows/test.yml
larryob 2740a76
Address comments
larryob e2ea5c4
Merge branch 'main' into test/soldeer-migration
larryob 905c8f0
Update utils to version used in main
larryob 5ea9e3f
Fix build and add dependencies to npm release
larryob 1f4f503
docs(changeset): Use soldeer for solidity dependencies instead of npm
larryob 55cca87
Create npm-beta-release.yml
larryob 86ac901
Update npm-beta-release.yml
larryob 3827800
Install soldeer in release
larryob 4f9f91d
Fix zk build
larryob db2a8e6
Merge branch 'main' into test/soldeer-migration
larryob ef595b2
Add foundry/soldeer install
larryob c6bea65
Update workflows with composite action
larryob ffec172
Run prettier
larryob 4c753f7
Setup foundry when using yarn build
larryob 1c5b0cb
Merge branch 'main' into test/soldeer-migration
larryob fc4d588
Use main version of utils
larryob 19d8176
Merge branch 'main' into test/soldeer-migration
larryob 6a06159
Use foundry setup step
larryob a580c04
Remove duplicated foundry setup steps
larryob 3461bca
Build zk artifacts
larryob b87bb7b
Fix lint
larryob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| "@hyperlane-xyz/core": minor | ||
| --- | ||
|
|
||
| Use soldeer for solidity dependencies instead of npm |
This file contains hidden or 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,13 @@ | ||
| name: 'Setup Foundry' | ||
| description: 'Install Foundry and Soldeer dependencies' | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Install Foundry | ||
| uses: foundry-rs/foundry-toolchain@v1 | ||
|
|
||
| - name: Install Soldeer dependencies | ||
| shell: bash | ||
| run: forge soldeer install | ||
| working-directory: ./solidity |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,3 +1,4 @@ | ||
| contracts/mock | ||
| contracts/test | ||
| contracts/interfaces/avs/vendored | ||
| dependencies |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 +1,7 @@ | ||
| @arbitrum=../node_modules/@arbitrum | ||
| @eth-optimism=../node_modules/@eth-optimism | ||
| @openzeppelin=../node_modules/@openzeppelin | ||
| @chainlink=../node_modules/@chainlink | ||
| ds-test/=lib/forge-std/lib/ds-test/src/ | ||
| forge-std/=lib/forge-std/src/ | ||
| @openzeppelin/contracts/=dependencies/@openzeppelin-contracts-4.9.3/contracts/ | ||
| @openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-4.9.3/contracts/ | ||
| @arbitrum/nitro-contracts/src/=dependencies/@arbitrum-nitro-contracts-1.2.1/src/ | ||
| @chainlink/contracts-ccip/src/v0.8/=dependencies/@chainlink-contracts-ccip-1.5.0/contracts/src/v0.8/ | ||
| @eth-optimism/contracts/=dependencies/@eth-optimism-contracts-0.6.0/packages/contracts/contracts/ | ||
| forge-std/=dependencies/forge-std-1.9.2/src/ | ||
| ds-test/=dependencies/forge-std-1.9.2/lib/ds-test/src/ | ||
larryob marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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,36 @@ | ||
| [[dependencies]] | ||
| name = "@arbitrum-nitro-contracts" | ||
| version = "1.2.1" | ||
| git = "https://github.com/OffchainLabs/nitro-contracts.git" | ||
| rev = "399790bb6660486fadf958017efc4eec99be3dd2" | ||
|
|
||
| [[dependencies]] | ||
| name = "@chainlink-contracts-ccip" | ||
| version = "1.5.0" | ||
| git = "https://github.com/smartcontractkit/ccip.git" | ||
| rev = "b5529a39311a2fd39cafceb62e4bb8f40eeb2e9e" | ||
|
|
||
| [[dependencies]] | ||
| name = "@eth-optimism-contracts" | ||
| version = "0.6.0" | ||
| git = "https://github.com/ethereum-optimism/optimism.git" | ||
| rev = "9d1be2dab809f5a80a3927ed84fd9cda49a82c47" | ||
|
|
||
| [[dependencies]] | ||
| name = "@openzeppelin-contracts" | ||
| version = "4.9.3" | ||
| git = "https://github.com/OpenZeppelin/openzeppelin-contracts.git" | ||
| rev = "fd81a96f01cc42ef1c9a5399364968d0e07e9e90" | ||
|
|
||
| [[dependencies]] | ||
| name = "@openzeppelin-contracts-upgradeable" | ||
| version = "4.9.3" | ||
| git = "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git" | ||
| rev = "3d4c0d5741b131c231e558d7a6213392ab3672a5" | ||
|
|
||
| [[dependencies]] | ||
| name = "forge-std" | ||
| version = "1.9.2" | ||
| url = "https://soldeer-revisions.s3.amazonaws.com/forge-std/1_9_2_06-08-2024_17:31:25_forge-std-1.9.2.zip" | ||
| checksum = "20fd008c7c69b6c737cc0284469d1c76497107bc3e004d8381f6d8781cb27980" | ||
| integrity = "f49457fb6591f0dfd8b59e02e6eb4508a115ef08a86b0803feb0a3939d82d783" |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.