Closed cloud8little closed 1 month ago
The pull request introduces two new Solidity script contracts, UpgradeExoCapsuleScript
and WithdrawalValidatorScript
, which facilitate the upgrade process of the ExoCapsule
contract and manage withdrawal processes, respectively. Additionally, it modifies existing functions to streamline the handling of validator information through new JSON files. Two new JSON files are added to represent structured validator and withdrawal proofs, enhancing the functionality related to contract upgrades and withdrawal management within the blockchain context.
File | Change Summary |
---|---|
script/13_DepositValidator.s.sol |
Modified DepositScript contract to read validator information from validatorProof_staker1_testnetV6.json , updating _loadValidatorContainer and _loadValidatorProof to accept a new validatorInfo parameter and changing keys for data extraction. |
script/16_UpgradeExoCapsule.s.sol |
Added UpgradeExoCapsuleScript contract to facilitate ExoCapsule upgrades, including overridden setUp and run functions for initialization and execution of the upgrade process. |
script/17_WithdrawalValidator.s.sol |
Introduced WithdrawalValidatorScript contract for managing withdrawals, including state variables, overridden setUp , and run functions, along with internal data loading functions and a utility function for balance extraction. |
script/validatorProof_staker1_testnetV6.json |
Added a new JSON file to represent a structured validator proof, including fields such as slot , validatorIndex , stateRoot , and corresponding proofs for validation. |
script/withdrawalProof_fullwithdraw_2495260_2472449.json |
Added a new JSON file to represent a structured withdrawal proof, including various fields such as validatorIndex , slot , stateRoot , and corresponding proofs to validate the withdrawal process. |
DepositValidator
contract involve modifications to the handling of the validatorProof
variable, which is directly related to the changes made in the main PR regarding the DepositScript
contract's handling of validator information.DepositScript
contract, as it could involve the deployment of contracts that utilize the updated validator information structure.🐇 In the meadow where contracts bloom,
A script takes flight, dispelling gloom.
Upgrades and withdrawals, all in a dance,
With proofs and scripts, we take our chance.
Hopping along, we code with delight,
In the blockchain's embrace, everything feels right! 🌼
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?
The code is not formatted correctly. Please run forge fmt
and push the changes.
The code is not formatted correctly. Please run forge fmt
and push the changes.
The code is not formatted correctly. Please run forge fmt
and push the changes.
The code is not formatted correctly. Please run forge fmt
and push the changes.
Summary by CodeRabbit
New Features
UpgradeExoCapsuleScript
for upgrading the ExoCapsule contract.WithdrawalValidatorScript
for managing withdrawal processes on the blockchain.Bug Fixes
DepositScript
to align with new JSON structures.These updates improve contract management and withdrawal processes, ensuring better functionality and validation in the blockchain environment.