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: new plugin Arthera Chain #1818

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Conversation

elpiarthera
Copy link

@elpiarthera elpiarthera commented Jan 4, 2025

Relates to

n/a

Risks

Low

Background

What does this PR do?

This PR integrates a plugin intended for the Arthera Chain which includes an onchain action:

  • Transfer native token (AA)
  • More actions coming (next release)

What kind of change is this?

Features (non-breaking change which adds functionality)

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

Enable onchain actions for Arthera Chain with a dedicated plugin.

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

Where should a reviewer start?

Go to plugin-arthera

Detailed testing steps

  1. add PRIVATE_KEY_ARTHERA to .env
  2. Claim a free Gas pass to cover the transaction gas fees
    https://gaspass.arthera.net/
  3. Bridge some fund to Arthera
    https://app.routernitro.com/swap?fromChain=1&fromToken=0xdAC17F958D2ee523a2206206994597C13D831ec7&toToken=0x6C45E28A76977a96e263f84F95912B47F927B687
  4. Fund account with AA to get tokens for testing
    https://third.trade/swap/Arthera?buy=0x69d349e2009af35206efc3937bad6817424729f7&sell=0x6C45E28A76977a96e263f84F95912B47F927B687
  5. Ask to the Agent to transfer tokens to another wallet

Copy link
Contributor

@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 @elpiarthera! 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!

@bertux bertux force-pushed the plugin-arthera-alpha branch from f0ab47b to 30eefa2 Compare January 4, 2025 21:39
Copy link

@bertux bertux left a comment

Choose a reason for hiding this comment

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

ready for review, tests of new plugin worked when I've tried them, and it worked also from a test agent.

@bertux bertux force-pushed the plugin-arthera-alpha branch 3 times, most recently from 74ec65a to 401f6fd Compare January 5, 2025 20:57
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 <node@arthera.bask.guru>

fix: run transfer test only if private key provided

fix: add missing newline at end of package.json and tsconfig.json files
@bertux bertux force-pushed the plugin-arthera-alpha branch from 401f6fd to 6b29feb Compare January 5, 2025 22:27
@elpiarthera elpiarthera marked this pull request as ready for review January 5, 2025 22:40
@wtfsayo wtfsayo self-requested a review January 6, 2025 19:28
Copy link
Collaborator

@wtfsayo wtfsayo left a comment

Choose a reason for hiding this comment

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

all good by me

@wtfsayo wtfsayo merged commit 0e007f2 into elizaOS:develop Jan 7, 2025
3 checks passed
@bertux bertux deleted the plugin-arthera-alpha branch January 7, 2025 16:04
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.

3 participants