Skip to content

Commit

Permalink
remove forge install
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppecrj committed Apr 25, 2024
1 parent 5e32e7d commit a17b14a
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 19 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true

Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

33 changes: 23 additions & 10 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
[profile.default]
src = 'src'
out = 'out'
libs = ['lib', "node_modules"]
gas_reports = ["*"]
optimizer = true
optimizer_runs = 20000
fs_permissions = [{ access = "read-write", path = "./client"}]
verbosity = 3
auto_detect_solc = false # Foundry will automatically try to resolve appropriate Solidity compiler versions
block_timestamp = 1_680_220_800 # The value of block.timestamp in tests. March 31, 2023 at 00:00 GMT
bytecode_hash = "none" # Determines the hash method for the metadata hash that is appended to the bytecode
cbor_metadata = false # Remove all metadata hashes from your contract's bytecode.
evm_version = "paris" # The EVM version to use during tests.
fuzz = { runs = 256 } # The amount of fuzz runs to perform for each fuzz test case.
gas_reports = ["*"] # The contracts to print gas reports for.
libs = ["node_modules", "lib"]
optimizer = true # Whether or not to enable the Solidity optimizer.
optimizer_runs = 200 # The amount of optimizer runs to perform.
out = "out" # The path to put contract artifacts in, relative to the root of the project.
script = "scripts" # The path to the contract scripts relative to the root of the project.
solc_version = "0.8.25" # Uses a single Solidity compiler version for the project
src = "src" # The path to the contract sources relative to the root of the project.
test = "test" # The path to the test contract sources relative to the root of the project.
verbosity = 3 # The verbosity level to use during tests.
fs_permissions = [
{ access = "read-write", path = "./client" },
] # Configures permissions for cheatcodes that touch the filesystem
extra_output = ["metadata", "abi", "bin"]
extra_output_files = ["metadata", "abi", "bin"]

[rpc_endpoints]
goerli = "${GOERLI_RPC_URL}"
sepolia = "${SEPOLIA_RPC_URL}"

[etherscan]
# goerli = { key = "${ETHERSCAN_API_KEY}" }
sepolia = { key = "${ETHERSCAN_API_KEY}" }

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from 74cfb7
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"prettier": "^2.7.1",
"solhint": "^3.3.7",
"prettier-plugin-solidity": "^1.1.3",
"solhint-plugin-prettier": "^0.0.5"
"solhint-plugin-prettier": "^0.0.5",
"ds-test": "github:dapphub/ds-test",
"forge-std": "github:foundry-rs/forge-std#v1",
"@openzeppelin/contracts": "^5.0.2"
}
}
4 changes: 0 additions & 4 deletions remappings.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c"
integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==

"@openzeppelin/contracts@^5.0.2":
version "5.0.2"
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-5.0.2.tgz#b1d03075e49290d06570b2fd42154d76c2a5d210"
integrity sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==

"@solidity-parser/parser@^0.14.1":
version "0.14.5"
resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.14.5.tgz#87bc3cc7b068e08195c219c91cd8ddff5ef1a804"
Expand Down Expand Up @@ -256,6 +261,10 @@ dotenv@^16.0.3:
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07"
integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==

"ds-test@github:dapphub/ds-test":
version "1.0.0"
resolved "https://codeload.github.com/dapphub/ds-test/tar.gz/e282159d5170298eb2455a6c05280ab5a73a4ef0"

emoji-regex@^7.0.1:
version "7.0.3"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156"
Expand Down Expand Up @@ -447,6 +456,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==

"forge-std@github:foundry-rs/forge-std#v1":
version "1.7.6"
resolved "https://codeload.github.com/foundry-rs/forge-std/tar.gz/bb4ceea94d6f10eeb5b41dc2391c6c8bf8e734ef"

fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
Expand Down

0 comments on commit a17b14a

Please sign in to comment.