Closed bitcoinbrisbane closed 1 month ago
The pull request introduces substantial modifications across multiple files. The SafeCast64
library has been renamed to SafeCast128
, adding new constants for unsigned and signed 128-bit integer maximum values. The hardhat.config.ts
file has been updated to include the solidity-coverage
package, modified the defaultNetwork
setting, and added a blockGasLimit
configuration. Additionally, the package.json
file reflects an update to the hardhat
dependency version. The Farm
contract also underwent significant changes, including type updates and function renaming.
File | Change Summary |
---|---|
contracts/libraries/SafeCast* | Library renamed from SafeCast64 to SafeCast128 ; added constants UINT128_MAX and INT128_MAX . |
hardhat.config.ts | Added import for solidity-coverage ; modified defaultNetwork setting and added blockGasLimit . |
package.json | Updated hardhat dependency version from ^2.22.10 to ^2.22.11 . |
contracts/core/Farm.sol | Updated CHAOS variable type, modified return type of getPoolWeightAsPercentage , renamed functions and events for consistency. |
test/Farm.test.ts | Added new test case for mass update pool functionality; corrected spelling of "Emissions". |
ignition/deployments/* | Updated JSON files to reflect changes in deployed contract addresses and event/function signatures. |
README.md | Updated address for the "Farm" entity in the documentation. |
Farm
contract, particularly the renaming of functions and events related to emissions, are relevant as they align with the modifications made in the Farm
contract within this PR, which also addresses similar naming conventions.SC
π° In the land of code where rabbits play,
New constants hop in, brightening the day!
SafeCast grows longer, now 128,
With coverage in mind, we celebrate!
Hardhatβs updated, dependencies gleam,
Letβs code together, chase every dream! π
Summary by CodeRabbit
New Features
solidity-coverage
package for measuring test coverage.blockGasLimit
setting.Bug Fixes
Chores
package.json
.