All notable changes to the contracts package will be documented in this file.
- Script for automating protocol registration with basic actors and agreements
detailsLinkfield for CID of raw test results in EpochScoreGranular- Last emission epoch block number information in Token contract
- New
RewardsMintedevent in ForestToken contract for easier CLI emissions display:This event is emitted when rewards are distributed to Providers, Validators, and Protocol Owners for a completed epoch, providing transparency about the distribution process.event RewardsMinted( uint256 indexed epoch, address indexed ptAddr, uint256 revenueAtEpochClose, uint256 totalTokensEmitted );
- New function
getLastEmissionEpochBlockNum()in ForestToken contract for easier analytics - New
detailsLinkparameter in ForestSlasher'scommitfunction for storing the CID of raw test results
- Updated EpochScoreGranular struct in ForestSlasher contract
- Updated deployment script
- Changed visibility of
aggregateScoresin Slasher contract frominternaltopublic - Updated deployment addresses in README
- Modified
closeEpochfunction in ForestSlasher to return the closed epoch number (uint256 closedEpochNum)
- Cleaned up and fixed Forge dependencies
- Generated new ABIs and interfaces
- Fixed dependency issues in package.json
- Modified
commitfunction signature in ForestSlasher contract:- Previous signature:
commit(bytes32 _commitHash, address _valAddr, address _ptAddr) - New signature:
commit(bytes32 _commitHash, address _valAddr, address _ptAddr, string memory _detailsLink) - All integrations must update their calls to include the new
_detailsLinkparameter - The
_detailsLinkparameter should contain the CID of raw test results stored on IPFS
- Previous signature:
- Modified
closeEpochfunction in ForestSlasher contract:- Previous signature:
closeEpoch() - New signature:
closeEpoch() returns (uint256 closedEpochNum) - All integrations must update their calls to handle the returned epoch number
- The returned value represents the epoch number that was just closed
- Previous signature:
- Added deployment addresses in README
- Added TODO comments for future improvements
- Updated README with new features and breaking changes
- Added detailed documentation for new event emissions and function changes
Initial release of the contracts package.