This pull request includes several updates to dependencies and refactors to improve the codebase's compatibility with the latest versions of the @arbitrum/sdk package. The changes involve updating package dependencies, modifying imports and exports, and adjusting test cases to reflect the new SDK structure.
Dependency Updates:
Updated @arbitrum/sdk to version 4.0.1 and @eth-optimism/sdk to version 3.3.2 in packages/agents/lighthouse/package.json and packages/deployments/contracts/package.json. [1][2]
Code Refactoring:
Replaced L2TransactionReceipt with ChildTransactionReceipt and L1ToL2MessageGasEstimator with ParentToChildMessageGasEstimator across multiple files including packages/agents/lighthouse/src/mockable.ts and packages/agents/lighthouse/src/tasks/processFromRoot/helpers/arbitrum.ts. [1][2][3][4][5][6][7][8]
Test Adjustments:
Updated test cases to reflect the new structure of the Arbitrum SDK by replacing instances of L2ToL1MessageReader with ChildToParentMessageReader in packages/agents/lighthouse/test/tasks/processFromRoot/helpers/arbitrum.spec.ts and packages/agents/lighthouse/test/tasks/propagate/helpers/arbitrum.spec.ts. [1][2][3][4]
New Features:
Added a new HTTP request example for clearing cache in packages/agents/lighthouse/example.http.
These changes ensure that the codebase remains up-to-date with the latest SDK versions and maintain compatibility across different modules.## Description
Upgrades arbitrum sdk
Improve logging
Type of change
[ ] Docs change / dependency upgrade
[x] Configuration / tooling changes
[x] Refactoring
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Requires changes in customer code
High-level change(s) description - from the user's perspective
This pull request includes several updates to dependencies and refactors to improve the codebase's compatibility with the latest versions of the
@arbitrum/sdk
package. The changes involve updating package dependencies, modifying imports and exports, and adjusting test cases to reflect the new SDK structure.Dependency Updates:
@arbitrum/sdk
to version4.0.1
and@eth-optimism/sdk
to version3.3.2
inpackages/agents/lighthouse/package.json
andpackages/deployments/contracts/package.json
. [1] [2]Code Refactoring:
L2TransactionReceipt
withChildTransactionReceipt
andL1ToL2MessageGasEstimator
withParentToChildMessageGasEstimator
across multiple files includingpackages/agents/lighthouse/src/mockable.ts
andpackages/agents/lighthouse/src/tasks/processFromRoot/helpers/arbitrum.ts
. [1] [2] [3] [4] [5] [6] [7] [8]Test Adjustments:
L2ToL1MessageReader
withChildToParentMessageReader
inpackages/agents/lighthouse/test/tasks/processFromRoot/helpers/arbitrum.spec.ts
andpackages/agents/lighthouse/test/tasks/propagate/helpers/arbitrum.spec.ts
. [1] [2] [3] [4]New Features:
packages/agents/lighthouse/example.http
.These changes ensure that the codebase remains up-to-date with the latest SDK versions and maintain compatibility across different modules.## Description
Type of change
High-level change(s) description - from the user's perspective
Related Issue(s)
Fixes
Related pull request(s)