contracts
contracts copied to clipboard
chore: move all interfaces to dedicated package
List of changes:
- Fixed some issues due to previous sync merge with
main. These only surfaced with integration tests. - Rename
commontointerfaces. I feel this represents more accurately what this package should be, but I'm happy to further discuss the name and/or use of it. - Updated
horizon,subgraph-service,toolshedandhardhat-graph-protocolto useinterfaces. Most notably this eliminates the circular dependency allowing for arbitrary building of the packages and static import ofhardhat-graph-protocol. - Fix linting issues in
contractspackage. - Move
sdkpackage to it's own repository at https://github.com/graphprotocol/sdk.contractspackage (actually child packages) remains the only place where it's used, it's now pinned to latest published version. hardhat-graph-protocolnow accepts a flag to specify if address book should be created or not if it doesn't exist.- Moved test fixtures to
toolshed - Refactored how
toolshedmanages types and interface imports, its now much simpler.
Pending:
- While bytecode shouldn't have changed for
horizonandsubgraph-servicecontracts it's worth checking with audit team wether or not they want to take a look at the changes. contractspackage still uses it's own interfaces (though they are duplicated ininterfaces). This seemed like a big lift atm.IGraphTokeninterface is widely used and for the most part being imported fromcontractsand notinterfaces. This is due to the usage ofTokenUtils.solwhich also imports the file. Importing it from two sources creates problems. Perhaps this warrants a common shared solidity package, not interfaces but implementations/libs?
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security |
Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| json5@2.2.3 | ||||||
| lodash@4.17.21 | ||||||
| debug@4.4.0 ⏵ 4.4.1 | ||||||
| consola@2.15.3 | ||||||
| hardhat@2.23.0 ⏵ 2.25.0 |
chore: move all interfaces to dedicated package
Generated at commit: 523d3b1e656b14f328ccf4383aa3ace4ddded3df
🚨 Report Summary
| Severity Level | Results | |
|---|---|---|
| Contracts | Critical High Medium Low Note Total | 2 4 0 15 39 60 |
| Dependencies | Critical High Medium Low Note Total | 0 0 0 0 0 0 |
For more details view the full report in OpenZeppelin Code Inspector
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.84%. Comparing base (
77007c0) to head (523d3b1). Report is 39 commits behind head on horizon.
Additional details and impacted files
@@ Coverage Diff @@
## horizon #1187 +/- ##
========================================
Coverage 82.84% 82.84%
========================================
Files 47 47
Lines 2093 2093
Branches 620 620
========================================
Hits 1734 1734
Misses 359 359
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 82.84% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
[!WARNING] Review the following alerts detected in dependencies.
According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
| Action | Severity | Alert (click for details) |
|---|---|---|
| Warn |
|
|
| Warn |
|