-
Notifications
You must be signed in to change notification settings - Fork 5k
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: Add Sei Plugin #2720
feat: Add Sei Plugin #2720
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mj850! Welcome to the elizaOS community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now an elizaOS contributor!
Relates to
Adding a dedicated Sei plugin that streamlines the development experience for creating agents that can interact on the Sei Network.
Risks
Low. This is an external plugin and does not affect the agent's basic capabilities.
Background
What does this PR do?
This PR introduces a Sei Plugin that allows ELIZA agents to interact with the Sei Network.
It initially supports the Transfer feature, allowing users to send funds to each other on the Sei blockchain.
What kind of change is this?
Feature
Documentation changes needed?
README.md has been added documenting the sei plugin.
Testing
Added unit tests to test basic functionality of the plugin.
Also performed manual tests against the stock agent in the client - agent was able to successfully query it's own SEI Balance, as well as perform transfers to both 0x and SEI addresses.
Where should a reviewer start?
Review the main plugin entry point: src/index.ts
Examine the provider and actions added to the plugin - these are adapted and simplified versions of the EVM plugin.
Check the error handling for all the new methods to ensure that the agent handles errors gracefully and that issues are surfaced to the user.
Detailed testing steps
Pull this branch and create a new .env from the updated .env.example file.
Be sure to update the SEI_PRIVATE_KEY and set SEI_NETWORK to 'devnet'
Run the usual setup steps:
pnpm install
pnpm build
pnpm cleanstart --characters="characters/<character file here>"
On a different terminal
pnpm start:client
Then, ask the agent to query its balances and send transfers to any address.
Deploy Notes
Database changes
Deployment instructions