Closed wewecalibrate closed 4 months ago
The changes encompass updates in dependency specifications, configuration adjustments, and significant refactoring across several smart contracts and their associated tests. Key modifications include dependency version formatting, rule updates in solhint.json
, and substantial revisions in smart contract logic for ClientGatewayLzReceiver
, ExoCapsule
, and associated interfaces and libraries. Additionally, test files are updated to reflect these changes, focusing on new implementation details and the removal of outdated functions.
File Path | Change Summary |
---|---|
package.json | Updated dependency declaration format for decimal.js . |
src/.solhint.json | Updated coding standards: max-line-length , func-visibility , state-visibility . Removed no-complex-fallback rule. |
src/core/ClientGatewayLzReceiver.sol | Removed WithdrawFailedOnExocore event, refactored withdrawPrincipal logic. |
src/core/ExoCapsule.sol | Major refactor: replaced ReentrancyGuardUpgradeable with Initializable , modified withdrawal logic, and refactored proof verification functions. |
src/core/NativeRestakingController.sol | Adjusted imports, variable names, and function parameters related to ExoCapsule . |
src/interfaces/IExoCapsule.sol | Updated struct fields and function signatures for proof verification. |
src/libraries/BeaconChainProofs.sol | Refactored struct types and proof verification logic. |
src/storage/ClientChainGatewayStorage.sol | Added GWEI_TO_WEI constant. |
src/storage/ExoCapsuleStorage.sol | Removed GWEI conversion declarations and related mappings. |
test/foundry/DepositWithdrawPrinciple.t.sol | Updated imports, modified test functions, and removed outdated functions. |
test/foundry/ExocoreDeployer.t.sol | Removed imports and declarations related to proofs and timestamps. Updated test functions. |
test/foundry/unit/ExoCapsule.t.sol | Renamed contracts, updated test functions, added new setup functions, and removed withdrawal-related tests. |
In the realm of code, where logic thrives, A rabbit refines and subtly strives. With lines and proofs now sleek and wise, Contracts dance, no more disguise. Tests align with newfound glow, Through bytes and chains, the data flows. Hail to change, the elegant show!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Reverts ExocoreNetwork/exocore-contracts#10 to clean git history
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Style