-
Notifications
You must be signed in to change notification settings - Fork 2
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
22 changed files
with
27 additions
and
79 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
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 |
---|---|---|
|
@@ -17,84 +17,9 @@ yarn | |
安装指定版本 | ||
|
||
```bash | ||
|
||
git submodule update --init --recursive | ||
|
||
# OR | ||
forge install foundry-rs/[email protected] --no-commit | ||
forge install transmissions11/solmate@0384dbaaa4fcb5715738a9254a7c0a4cb62cf458 --no-commit | ||
forge install vectorized/[email protected] --no-commit | ||
|
||
forge install Uniswap/v2-periphery --no-commit | ||
forge install Uniswap/v2-core --no-commit | ||
|
||
forge install Uniswap/v3-periphery --no-commit | ||
forge install Uniswap/v3-core --no-commit | ||
|
||
forge install Uniswap/v4-periphery --no-commit | ||
forge install Uniswap/v4-core --no-commit | ||
|
||
forge install OpenZeppelin/[email protected] --no-commit | ||
forge install OpenZeppelin/[email protected] --no-commit | ||
|
||
# OpenZeppelin v4 | ||
v4.7.1 | ||
|
||
git clone https://github.com/OpenZeppelin/openzeppelin-contracts foundry/lib/openzeppelin-contracts-v4.7.1 && cd foundry/lib/openzeppelin-contracts-v4.7.1 && git checkout tags/v4.7.1 | ||
|
||
git clone https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable foundry/lib/openzeppelin-contracts-upgradeable-v4.7.1 && cd foundry/lib/openzeppelin-contracts-upgradeable-v4.7.1 && git checkout tags/v4.7.1 | ||
|
||
git rm --cached foundry/lib/openzeppelin-contracts-v4.7.1 | ||
|
||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts foundry/lib/openzeppelin-contracts-v4.7.1 | ||
|
||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable foundry/lib/openzeppelin-contracts-upgradeable-v4.7.1 | ||
|
||
git submodule add https://github.com/safe-global/safe-contracts foundry/lib/safe-contracts-v1.3.0 | ||
|
||
|
||
|
||
git submodule add https://github.com/foundry-rs/forge-std foundry/lib/@dev/forge-std | ||
git submodule add https://github.com/PaulRBerg/prb-test foundry/lib/@dev/prb-test | ||
git submodule add https://github.com/dapphub/ds-test foundry/lib/@dev/ds-test | ||
|
||
|
||
git submodule add https://github.com/Uniswap/v2-core foundry/lib/@uniswap/v2-core | ||
git submodule add https://github.com/Uniswap/v2-periphery foundry/lib/@uniswap/v2-periphery | ||
|
||
git submodule add https://github.com/Uniswap/v3-core foundry/lib/@uniswap/v3-core | ||
git submodule add https://github.com/Uniswap/v3-periphery foundry/lib/@uniswap/v3-periphery | ||
|
||
git submodule add https://github.com/Uniswap/v4-core foundry/lib/@uniswap/v4-core | ||
git submodule add https://github.com/Uniswap/v4-periphery foundry/lib/@uniswap/v4-periphery | ||
|
||
git submodule add https://github.com/safe-global/safe-contracts foundry/lib/@gnosis.pm/safe-contracts | ||
git submodule add https://github.com/safe-global/safe-contracts foundry/lib/@gnosis.pm/safe-contracts-v1.3.0 | ||
# cd foundry/lib/@gnosis.pm/safe-contracts-v1.3.0 && git checkout tags/v1.3.0 | ||
|
||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts foundry/lib/@openzeppelin/contracts | ||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts foundry/lib/@openzeppelin/contracts-v4.7.1 | ||
# cd foundry/lib/@openzeppelin/contracts-v4.7.1 && git checkout tags/v4.7.1 | ||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts foundry/lib/@openzeppelin/contracts-v4.7.3 | ||
# cd foundry/lib/@openzeppelin/contracts-v4.7.3 && git checkout tags/v4.7.3 | ||
|
||
|
||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable foundry/lib/@openzeppelin/contracts-upgradeable | ||
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable foundry/lib/@openzeppelin/contracts-upgradeable-v4.7.1 | ||
# cd foundry/lib/@openzeppelin/contracts-upgradeable-v4.7.1 && git checkout tags/v4.7.1 | ||
|
||
git submodule add https://github.com/transmissions11/solmate | ||
|
||
|
||
|
||
rm -rf .git/modules/foundry/lib/@dev/ds-test | ||
git submodule deinit -f foundry/lib/@dev/ds-test | ||
git rm --cached -r foundry/lib/@dev/ds-test | ||
rm -rf foundry/lib/@dev/ds-test | ||
|
||
|
||
forge install safe-global/safe-contracts --no-commit | ||
|
||
forge install | ||
``` | ||
|
||
```bash | ||
|
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
Submodule safe-contracts
added at
810fad
Submodule safe-contracts-v1.3.0
added at
186a21
Submodule contracts-upgradeable
added at
9610f7
Submodule contracts-upgradeable-v4.7.1
added at
5e9bcc
Submodule contracts-v4.7.1
added at
3b8b4b
Submodule contracts-v4.7.3
added at
ecd2ca
Submodule v2-periphery
added at
0335e8
Submodule v3-periphery
added at
697c24
Submodule v4-periphery
added at
581d96
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