Skip to content

Conversation

@RensR
Copy link
Collaborator

@RensR RensR commented Aug 30, 2025

This PR reformats all Solidity code with forge fmt. It also cleans up some of the leftover NPM related imports and issues from #209

!!! The only bytecode changes is to an Automation interface that was generated by abi-to-sol that was out of date. One function is payable now. No other bytecode has changed.

  • Remove various no-longer-needed NPM packages
  • Upgrade packages
  • Fix the Automation interface gen scripts & run them, resulting in the fallback function being payable
  • Remove Prettier related CI
  • Enable forge fmt CI by default, removing the optional parameter in the matrix config

- 'contracts/src/v0.8/vrf/**/*.sol'
shared:
- 'contracts/src/v0.8/shared/**/*.sol'
- 'contracts/src/v0.8/*.sol'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too wide, this would mean every single Solidity change triggers the shared CI.

@@ -1,87 +0,0 @@
# This workflow is not active and will be removed on July 1st, 2025
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is past July 1st


import fs from 'fs'
import { exec } from 'child_process'
import { createHash } from 'crypto'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the new HH paths and removes the dependency on ethers

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"_comment2_logger": "See https://github.com/ethers-io/ethers.js/issues/379 we pin this version since that's what was used in the old yarn lockfile",
"overrides": {
"@ethersproject/logger": "5.0.6",
"@ethersproject/[email protected]>ws": "7.5.10",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove old overrides that are no longer needed

"solhint": "^5.2.0",
"solhint-plugin-chainlink-solidity": "github:smartcontractkit/chainlink-solhint-rules#v1.2.1",
"solhint-plugin-prettier": "^0.1.0",
"ts-node": "^10.9.2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace ts-node with tsx to fix the Automation scripts

@github-actions
Copy link
Contributor

github-actions bot commented Aug 30, 2025

Static analysis results are available

Hey @RensR, you can view Slither reports in the job summary here or download them as artifact here.
Please check them before merging and make sure you have addressed all issues.

@RensR RensR marked this pull request as ready for review September 1, 2025 07:29
@RensR RensR requested review from a team as code owners September 1, 2025 07:29
@RensR RensR enabled auto-merge (squash) September 3, 2025 12:24
@RensR RensR merged commit c054b4e into develop Sep 3, 2025
51 checks passed
@RensR RensR deleted the forge-fmt branch September 3, 2025 13:06
@RayXpub RayXpub mentioned this pull request Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants