feat: improve zkstack based plugins #1821
Open
+771
−357
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to:
N/A (Improving zkstack plugin architecture and consistency)
Risks
Low. The changes involve refactoring and updating multiple plugins (plugin-abstract, plugin-zksync-era, plugin-cronoszkevm) to use viem for consistency.
Background
What does this PR do?
Improved environment validation for plugin-abstract, plugin-cronoszkevm, plugin-zksync-era.
Integrated viem for functionality in plugin-cronoszkevm, plugin-zksync-era for maintenance.
Added ens support to them.
Fixed issues in plugin-zksync-era and plugin-cronoszkevm where previous changes caused them to break.
What kind of change is this?
Bug fixes, Improvements and feature
Documentation changes needed?
As I check, no need
Testing
Where should a reviewer start?
Almost all plugins are the same, so you can choose one. After that, others will be the same.
Detailed testing steps
Initialize plugins in character.
You can choose to test one of them.
Add envs for the plugin. Try the wrong env to test env validation.
Start one client to check it. You can say to agent like send x amount eth to y address(or ens) in z chain
NOTE
Fixed the overflow problem in chat. You can check last image.
Discord username
aalimsahin