Commit Graph

24 Commits

Author SHA1 Message Date
0xb337r007 62859398be
chore(compiler): bump min solidity version to 0.8.26 (#30)
Co-authored-by: Andrea Franz <andrea@gravityblast.com>
2024-08-14 11:10:39 +02:00
r4bbit 013c9b7e9f
feat: add `DeploymentConfig` for network specifc deployments (#5)
To allow deployment to different chains but using the same deployment
scripts, this commit introduces a basic `DeploymentConfig` which can be
extended as necessary in each project.

There's a few things that should be considered:

- `activeNetworkConfig` will be initialized via the constructor, at
  which point it is know what `block.chainid` is
- To add new configuration settings, extend `NetworkConfig`
- To add a new config for a different chain, extend the `if/else` block
  in the constructor so that it creates a `NetworkConfig` for the chain
  in question
2023-09-07 10:21:11 +02:00
r4bbit 145cb6f7c9 chore: first template adjustments
This is an initial take on adjusting the foundry-template to the Vac's
smart contract unit's needs. In a nutshell what this does is:

1. Update README to not refer to upstream repo where not necessary
2. Removes PRBergTest library from dependencies
3. Removes `FUNDING.qml`
4. Adjust CI actions

There are more things to be done and decided on in follow-up commits.
2023-08-09 10:14:12 +02:00
Paul Razvan Berg 4d688c3d92
test: deploy "foo" in "setUp" 2023-05-26 11:52:17 +03:00
Paul Razvan Berg 80436e5358
test: use Foo in tests 2023-05-23 21:45:52 +03:00
Paul Razvan Berg c1bc6d1adb
docs: improve wording in comments
cI: reorder values in "on"
docs: add a reference to `bound`
2023-04-18 14:14:53 +03:00
Paul Razvan Berg f1c6d5e8e7
test: mark setUp as virtual 2023-04-01 09:46:18 +03:00
Michael Heuer 237419911f
Fix wrong network alias 2023-03-17 18:41:43 +01:00
Paul Razvan Berg f5a68d8737
feat: add more chains in Foundry config
refactor: rename api key env vars
2023-03-01 14:15:16 +02:00
Paul Razvan Berg c80e5a8e0d
test: upper bound pragma 2023-02-25 15:52:34 +02:00
Paul Razvan Berg f21a3a6c68
build: upgrade to Solidity v0.8.19
chore: set "script" in Foundry config
2023-02-25 12:40:42 +02:00
Paul Razvan Berg 90105bbf51
style: format test contract with forge fmt 2023-02-16 13:00:51 +02:00
Paul Razvan Berg a3a2d3d951
refactor: change pragma to ">=0.8.18" 2023-02-07 14:10:42 +02:00
Paul Razvan Berg 49b82cbcd4
ci: expose env vars in GitHub workflow
test: add explanatory code comments in fork test
2023-01-17 19:59:49 +02:00
Paul Razvan Berg 0efda5eabb
test: add Ethereum Mainnet fork test
feat: add "ALCHEMY_API_KEY" env var
feat: add "ethereum"
ci: delete now-stale "version" param in foundry-toolchain
refactor: delete "ETH_RPC_URL" env var
test: delete console log in "testFuzz_Example"
test: use "assertGt" instead of "assertTrue" for "x > 0" comparison
2023-01-17 19:49:14 +02:00
Paul Razvan Berg fb77ad3549
chore: reorder imports 2023-01-07 11:50:02 +02:00
Paul Razvan Berg b67c427d3b
test: add fuzz test
build: upgrade to latest forge-std
chore: disable "func-name-mixedcase" rule
test: rename test names to conform with Foundry best practices
2023-01-07 11:48:58 +02:00
Paul Razvan Berg 6d027d098b
refactor: substitute "forge fmt" for "prettier-plugin-solidity"
build: remove "prettier-plugin-solidity" and "solhint-plugin-prettier" deps
chore: add "fmt" configuration in Foundry config
chore: delete solidity override from Prettier rules
chore: delete solidity rules from Solhint config
chore: modify scripts to run Prettier on all files except "*.sol"
test: document "setUp" function
2023-01-03 21:18:14 +02:00
Paul Razvan Berg 5bf329715e
ci: fuzz 10,000 times
test: mark "testExample" function as "external"
2022-12-24 16:10:31 +02:00
Paul Razvan Berg 05be6a476b
test: rename test contract to "FooTest" 2022-11-18 21:50:45 +02:00
Paul Razvan Berg 71eb689478
chore: reorder imports alphabetically 2022-10-31 18:34:49 +02:00
Paul Razvan Berg 702979aa1c
build: upgrade to prb-test v0.1.3
build: upgrade to latest forge-std
test: use "StdCheats" instead of "Cheats"
test: use "console2" instead of "console"
2022-10-29 16:37:43 +03:00
Paul Razvan Berg 3abaf8aa40
test: import and use Cheats from Forge Std
build: update to forge-std v0.3
2022-07-31 12:28:44 +03:00
Paul Razvan Berg 43e1e113f4
feat: initial commit 2022-07-17 21:57:09 +03:00