Commit Graph

166 Commits

Author SHA1 Message Date
Ricardo Guilherme Schmidt acf1cb4141 chore(githooks): add pre-commit script to sync solc version
This commit adds a new pre-commit script called "pre-commit-solc-sync" to the githooks directory. The script is responsible for extracting the solc version from the "foundry.toml" file and updating the ".vscode/settings.json" file with the extracted version. If the "solidity.compileUsingRemoteVersion" key already exists in the settings file, the script updates the version. Otherwise, it modifies the last key, adds the new key, and closes the JSON object. Finally, the updated settings file is added to the commit.

The purpose of this change is to automate the synchronization of the solc version used for Solidity compilation in the project everywhere else its also need to be configured configured.

See https://github.com/juanfranblanco/vscode-solidity/issues/463
2024-09-12 23:14:20 -03:00
Andrea Franz 2e46feeca3 chore(ci): use v4 of actions/checkout in CI actions 2024-08-14 11:10:48 +02:00
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 d688fae569 chore(ci): ensure only most recent commit is executed on CI 2024-04-23 09:24:26 +02:00
Ricardo Guilherme Schmidt 96e97ba0e2 chore: add preparation commit command `pnpm adorno` 2024-03-01 10:35:39 +01:00
r4bbit 078b2747da chore(.gitattributes): add eol settings to enforce `lf`
This is to ensure git will always converts to line feed endings.
This should help with #21
2024-02-29 15:36:26 +01:00
r4bbit 2eec9a8183 feat: add `release` command to cut releases
This introduces a new `pnpm release` command in our template which makes
use of `commit-and-tag-version`, that will generate changelogs based on
our project's commit histories.
2024-02-28 08:02:51 +01:00
Ricardo Guilherme Schmidt b7114854cb
chore: add gas-report (#18)
* chore: add gas-report
2024-02-26 14:09:11 +01:00
r4bbit 2b4f30caea chore: trigger add-pr-to-project-board only on opened PRs 2024-02-26 09:26:42 +01:00
r4bbit 64df3b71ea
chore: add project board automations (#15)
Closes #14
2024-02-19 15:42:24 +01:00
r4bbit b3275c94cd
fix(config): replace `arbitrum_one` -> `arbitrum` (#11)
Turns out `arbitrum_one` is actually not a supported key in foundry
while `arbitrum` is.
2023-12-21 08:59:43 +01:00
r4bbit 2b90aeb38a
feat: add certora CI integration (#10)
This adds a new command to package.json `verify` which can be run via
`pnpm verify`.

The command runs the certora CLI with a config file which has to be
adjusted for every individual project.

The commit also adds a dedicated task to our github actions, which
ensures, verification is done in every PR as well.
2023-11-23 08:52:05 +01:00
r4bbit 22704ebe1a
refactor: move deployer assignment to the top (#9)
This ensures `deployer` is set then deployment configs are created.
2023-09-26 16:35:42 +02:00
r4bbit cbd03c711c
chore: yarn -> pnpm in PULL_REQUEST_TEMPLATE (#8)
We're using `pnpm` not `yarn`.
2023-09-10 11:44:59 +02:00
r4bbit 4406e91add
Revert "chore: don't prettier ignore slither config"
This reverts commit dde442c881.
2023-09-09 13:25:14 +02:00
r4bbit dde442c881
chore: don't prettier ignore slither config 2023-09-09 13:23:06 +02:00
r4bbit 6af96c0556
docs: add missing docs about fixing linting errors (#7) 2023-09-08 21:42:27 +02:00
r4bbit a7f24844a2
build: add codecov task to CI actions (#6) 2023-09-08 18:15:36 +02:00
r4bbit 3def4811ff
chore: add slither config (#4)
This is so we can run `slither .` in any of our projects.
2023-09-07 10:25:03 +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 43a1dff852
chore: add `PROPERTIES.md` to upstream differences (#3) 2023-08-10 09:17:09 +02:00
r4bbit 8e581d3057
chore: add PROPERTIES.md (#2)
This file used in projects to lay out the protocol's properties and
invariants. It also serves as a documentation for test coverage.
2023-08-09 11:38:21 +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 b99793eea1
Merge pull request #28 from PaulRBerg/fix/template-installation
fix: template installation
2023-07-21 10:48:51 +02:00
Paul Razvan Berg 3b389fbf79
fix: fix template installation 2023-07-21 10:47:07 +02:00
Paul Razvan Berg c872c24582
build: bump "solhint-community" node.js dep 2023-07-15 19:32:12 +03:00
Paul Razvan Berg 4fd9a43324
chore: remove src/=src/ remapping 2023-07-15 19:30:35 +03:00
Paul Razvan Berg 0b903a1ceb
feat: add FOUNDRY_PROFILE env var
ci: remove unneeded env vars
2023-07-07 12:32:52 +03:00
Paul Razvan Berg 6b29ac783d
build: bump node.js dependencies
chore: simplify scripts in "package.json"
2023-07-07 12:29:05 +03:00
Paul Razvan Berg 1baddd764a
refactor: rename deployer to broadcaster
feat: use $ETH_FROM as broadcaster
2023-07-03 12:42:23 +03:00
Juan Pablo Capurro 8209998bd7
use solhint-community (#25)
* use solhint-community fork

We're trying to keep solhint afloat with a fork, and done some work on
it so far, mainly the no-unused-imports rule.

Any feedback is appreciated, hope this helps 

see announcement:
https://blog.capu.tech/announcing-solhint-community.html

* docs: update README

---------

Co-authored-by: Paul Razvan Berg <paul.razvan.berg@gmail.com>
2023-06-09 10:30:56 +02:00
Paul Razvan Berg bce0b0e689
chore: update pnpm lockfile 2023-05-30 15:48:37 +03:00
Paul Razvan Berg 67f789e443
build: bump prb-test and forge-std 2023-05-28 14:04:55 +03:00
Paul Razvan Berg 59d03d00ad
build: set "evm_version" explicitly 2023-05-26 23:47:58 +03:00
Paul Razvan Berg 2de57a310a
Merge pull request #23 from d1onys1us/fish-compliant
fix: make .env.example compatible for fish shell users
2023-05-26 12:01:01 +03:00
Paul Razvan Berg 4d688c3d92
test: deploy "foo" in "setUp" 2023-05-26 11:52:17 +03:00
dave | d1onys1us 11cc8b4fa1
chore: remove the (now deprecated) prettier plugin from README (#24)
* chore: remove the (now deprecated) prettier plugin from README

* Update README.md
2023-05-26 11:43:21 +03:00
d1onys1us da06375929 fix: make .env.example compatible for fish shell users 2023-05-25 21:22:04 -04:00
Paul Razvan Berg 80436e5358
test: use Foo in tests 2023-05-23 21:45:52 +03:00
Paul Razvan Berg ff057dcea5
build: bump prb-test 2023-05-05 16:03:57 +03:00
Paul Razvan Berg 2adf700cd3
build: bump forge-std 2023-05-04 21:50:11 +03:00
Paul Razvan Berg 87cdb22732
build: bump prb-test 2023-04-29 20:01:59 +03:00
Paul Razvan Berg dd56c9c0f1
feat: add "BaseScript"
refactor: rename "DeployFoo" to just "Deploy"
2023-04-29 13:11:35 +03:00
Paul Razvan Berg 9d38a2be03
build: remove unused "prb-math" dep 2023-04-21 21:01:39 +03:00
Paul Razvan Berg ddfa42ea5c
build: bump PRBMath and PRBTest 2023-04-21 11:34:17 +03:00
Paul Razvan Berg 538fb6f6ee
build: bump Node.js deps 2023-04-20 13:23:02 +03:00
Paul Razvan Berg 4d7397d4e9
feat: add Gnosis chain 2023-04-20 13:23:02 +03:00
Paul Razvan Berg 9166755411
refactor: use same chain names as StdChains
build: bump "forge-std"
2023-04-20 13:22:55 +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 bf567974af
Merge pull request #19 from 0xcacti/patch-1 2023-04-17 08:58:42 +03:00