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: chainbase plugin for focEliza #3

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

lxcong
Copy link

@lxcong lxcong commented Jan 12, 2025

Relates to

Eliza AI agents, blockchain data analytics, Chainbase

Risks

Low. This is a new feature that adds functionality without disrupting existing systems.

Background

What does this PR do?

This PR introduces a new Chainbase plugin for Eliza that enables AI agents to access and analyze blockchain data across multiple networks using natural language queries. The plugin leverages Chainbase's comprehensive data infrastructure to provide real-time insights.

What kind of change is this?

Features (non-breaking change which adds functionality)

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

Eliza AI agents currently lack the ability to easily access and analyze on-chain data, especially across multiple blockchain networks. This plugin bridges that gap by allowing users to query blockchain data using natural language without requiring deep technical blockchain knowledge. It unlocks powerful new analytics and insight generation capabilities for Eliza.

This work builds upon Chainbase's existing multi-chain data infrastructure and Eliza's natural language processing capabilities. It is part of the broader initiative to make blockchain data more accessible and actionable for end users.

Documentation changes needed?

My changes require a change to the project documentation.
I have updated the documentation to include:

  • Overview of the Chainbase plugin and its purpose
  • Installation and configuration instructions
  • Examples of natural language queries and the blockchain insights generated
  • API reference for key functions

Testing

Where should a reviewer start?

  1. Review the updated documentation to understand the purpose and functionality of the plugin
  2. Run the automated test suite: npm run test
  3. Follow the instructions to install and configure the plugin in a dev environment
  4. Test sample natural language queries against blockchain data and verify the insights generated match expected results
  5. Review the code changes, focusing on the integration between Eliza's NLP and Chainbase's data layer

Detailed testing steps

  1. Install and configure the Chainbase plugin by following the documentation
  2. From the Eliza interface, input a natural language query such as "What is the total transaction volume on Ethereum in the last 24 hours?"
  3. Verify the plugin converts this to the appropriate Chainbase query and returns the expected analytics
  4. Test queries across multiple supported blockchain networks
  5. Verify error handling for unsupported networks or malformed queries
  6. Run edge case tests from the automated test suite and ensure code coverage meets standards

Deployment instructions

  1. Merge PR after review and testing approval
  2. Update Eliza production environment to point to the new Chainbase plugin version
  3. Restart Eliza web servers
  4. Smoke test Chainbase queries from the production Eliza interface
  5. Monitor error logs and system metrics post-deployment to ensure stability

Let me know if you need any other information to include in the PR description! I aimed to be thorough while following the provided template.

Screenshot

image image

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lxcong! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!

@lxcong lxcong changed the title feat: chainbase plugin for forcEliza feat: chainbase plugin for focEliza Jan 12, 2025
@cpppppp7
Copy link

LGTM

@cpppppp7 cpppppp7 merged commit 3c09a59 into focai-acc:develop Jan 12, 2025
3 of 4 checks passed
cpppppp7 pushed a commit that referenced this pull request Jan 13, 2025
feat: rename plugin from EVM to Arthera and update README

feat: remove bridge and swap actions from Arthera plugin

feat: update transfer examples and templates to use AA instead of ETH

feat: update viem dependency to version 2.21.58 and adjust pnpm-lock.yaml

feat: remove unused LiFi dependencies and clean up type definitions in Arthera plugin

feat: remove bridge actions and templates from Arthera plugin

feat: remove swap actions and templates from Arthera plugin

feat: update EVM naming to Arthera

feat: update README and types for Arthera mainnet integration

feat: update plugin to use Arthera instead of mainnet

fix: add required devDependencies

fix: remove switchChain

fix: update _options type to Record<string, unknown> in transferAction

fix: correct log message format in transfer action to include wallet client address

test: enhance transfer tests with additional wallet provider and address validation

Plugin arthera merge (#3)

* feat: added arthera to default character and agent

* feat: renamed EVM_PRIVATE_KEY by ARTHERA_PRIVATE_KEY

* fix: roll back core package

* fix: workspace: version

---------

Co-authored-by: Arthera Node <[email protected]>

fix: run transfer test only if private key provided

fix: add missing newline at end of package.json and tsconfig.json files
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