Skip to content

Commit

Permalink
build: switch to soldeer
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroEkkusu committed Jul 5, 2024
1 parent 5851746 commit fbc2125
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/target
/out
/cache
/dependencies
/coverage
lcov.info
.DS_Store
Expand Down
11 changes: 0 additions & 11 deletions .gitmodules

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A default implementation is included and this contract will be proxy upgradable
### Setup

- [Install foundry](https://book.getfoundry.sh/getting-started/installation)
- Install Dependencies: `forge install`
- Install Dependencies: `forge soldeer install`
- Build: `forge build`
- Test: `forge test`

Expand Down
7 changes: 6 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
libs = ['dependencies']
optimizer = true
optimizer_runs = 200
via_ir = true
Expand All @@ -23,3 +23,8 @@ runs = 10000
max_test_rejects = 999999

# See more config options https://github.com/foundry-rs/foundry/tree/master/config

[dependencies]
forge-std = "1.9.1"
"@openzeppelin-contracts-upgradeable" = "4.9.2"
"@openzeppelin-contracts" = "4.9.2"
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from e8a047
1 change: 0 additions & 1 deletion lib/openzeppelin-contracts
Submodule openzeppelin-contracts deleted from e50c24
1 change: 0 additions & 1 deletion lib/openzeppelin-contracts-upgradeable
Submodule openzeppelin-contracts-upgradeable deleted from bc9552
6 changes: 6 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
forge-std/=dependencies/forge-std-1.9.1/src/
openzeppelin-contracts-upgradeable/contracts/=dependencies/@openzeppelin-contracts-upgradeable-4.9.2/
openzeppelin-contracts/contracts/=dependencies/@openzeppelin-contracts-4.9.2/
@forge-std-1.9.1=dependencies/forge-std-1.9.1
@openzeppelin-contracts-upgradeable-4.9.2=dependencies/@openzeppelin-contracts-upgradeable-4.9.2
@openzeppelin-contracts-4.9.2=dependencies/@openzeppelin-contracts-4.9.2
18 changes: 18 additions & 0 deletions soldeer.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

[[dependencies]]
name = "forge-std"
version = "1.9.1"
source = "https://soldeer-revisions.s3.amazonaws.com/forge-std/v1_9_1_03-07-2024_14:44:59_forge-std-v1.9.1.zip"
checksum = "110b35ad3604d91a919c521c71206c18cd07b29c750bd90b5cbbaf37288c9636"

[[dependencies]]
name = "@openzeppelin-contracts-upgradeable"
version = "4.9.2"
source = "https://soldeer-revisions.s3.amazonaws.com/@openzeppelin-contracts-upgradeable/4_9_2_22-01-2024_13:15:04_contracts-upgradeable.zip"
checksum = "33a161bf7799dcac1475d2470615b56a8f9a9387cb8eef921b49816dbbc61c2b"

[[dependencies]]
name = "@openzeppelin-contracts"
version = "4.9.2"
source = "https://soldeer-revisions.s3.amazonaws.com/@openzeppelin-contracts/4_9_2_22-01-2024_13:13:52_contracts.zip"
checksum = "0f4450671798ea5659e6391876a3cf443ca50a696d9b556ac622ec7660bce306"

0 comments on commit fbc2125

Please sign in to comment.