Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Plugin evm multichain #1009

Merged
merged 20 commits into from
Dec 12, 2024

Conversation

nicky-ru
Copy link
Contributor

Relates to:

#735
#864

Risks

Low

Background

What does this PR do?

This PR initiates support for testing the EVM plugin, which was previously unsupported. Added multichain support, the current version of the plugin only supported mainnet and Base, and there have been several requests for additional EVM chain support.

  • The plugin lacked test coverage, so we initiated tests alongside the feature development, starting with WalletProvider.
  • Refactored the plugin to make it more test-friendly and modular.
  • Added multichain support (for viem chains)

What kind of change is this?

  • Improvements: Refactoring, cleaning, and testing of the existing plugin.
  • Fixes: fix transfer action
  • Features: Non-breaking changes to add EVM multichain support. The previous character configuration even though accepted evm chain config array, but in fact it was not implemented

Why are we doing this? Any context or related work?

Initially, the goal was to add IoTeX EVM chain support. However, the scope was expanded to include general multichain support, given the demand for broader compatibility.

Documentation changes needed?

No.
Currently, the project documentation does not cover blockchain configurations, including EVM plugin setup. No changes are required at this time.

Testing

How was it tested

  • Ran test scripts
  • Verified functionality through agent interactions:
Screenshot 2024-12-12 at 5 58 35 PM

Where should a reviewer start?

File: packages/plugin-evm/src/tests/wallet.test.ts

Detailed testing steps

Try to add your own chain in the character and ask the agent to send some tokens.

Discord username

nikita_zhou

@odilitime odilitime changed the title Plugin evm multichain feat: Plugin evm multichain Dec 12, 2024
@odilitime
Copy link
Collaborator

Does this replace the other PRs? can we close those?

@nicky-ru
Copy link
Contributor Author

Does this replace the other PRs? can we close those?

Yes, opened this against develop branch, will close the previous one

@odilitime odilitime merged commit 6e1548d into elizaOS:develop Dec 12, 2024
2 checks passed
@nicky-ru nicky-ru deleted the plugin-evm-multichain branch December 15, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants