eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Doesn't work this evm plugin -> @elizaos/plugin-evm

Open 0xopsdev opened this issue 8 months ago • 5 comments

I want to run evm ai agent with using plugin-evm Inside characters/degen.character.json file I set evm plugins and modelprovider as openai. Then set openai key to .env file I also import plugin-coingecko, but it works with fetch token price or etc. But If I want to swap tokens or transfer tokens, it doesn't work

Image

0xopsdev avatar Apr 24 '25 12:04 0xopsdev

Hello @0xopsdev! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

github-actions[bot] avatar Apr 24 '25 12:04 github-actions[bot]

@0xopsdev Any luck on this?

omariosman avatar May 29 '25 00:05 omariosman

@omariosman still no luck yet

0xopsdev avatar May 29 '25 06:05 0xopsdev

@0xopsdev Is there any other way that I can use with Eliza to enable evm transactions?

omariosman avatar May 30 '25 13:05 omariosman

@omariosman Can we have a discussion on telegram? https://t.me/its0xopsdev DM me plz

0xopsdev avatar May 30 '25 13:05 0xopsdev

@0xopsdev Sure. I texted you.

omariosman avatar May 31 '25 06:05 omariosman

@0xbbjoker know this?

wtfsayo avatar Jun 01 '25 16:06 wtfsayo

@0xopsdev can you please try again. Should be fixed.

0xbbjoker avatar Jun 02 '25 15:06 0xbbjoker

@0xbbjoker I have a question plz In my agent directory, I have a dir called @elizaos-plugins that contains plugin-evm and plugin-tee inside it However, in the plugin-evm/index.js, I can find this import: import { DeriveKeyProvider, TEEMode } from "@elizaos/plugin-tee";

Why is it importing from @elizaos/plugin-tee not from @elizaos-plugins/plugin-tee?

I am currently facing this error:

SyntaxError: The requested module '@elizaos/plugin-tee' does not provide an export named 'DeriveKeyProvider'

omariosman avatar Jun 02 '25 15:06 omariosman

@omariosman this has been resolved on the latest. https://github.com/elizaos-plugins/plugin-evm/blob/1.x/src/providers/wallet.ts#L247

You can notice here that we don't import plugin-tee we are using plugin-tee as a service.

So you'll need to setup plugin-tee in your character and below the plugin-tee you'll need to add plugin-evm as wallet provider depends on plugin-tee service.

You can pull the latest or install the latest and your issue should be resolved.

Lmk if any issues encountered.

0xbbjoker avatar Jun 02 '25 17:06 0xbbjoker

@0xbbjoker Thanks I used npx elizaos plugins add @elizaos-plugins/plugin-evm to add the plugin, but how can I update it to the latest version?

omariosman avatar Jun 02 '25 18:06 omariosman

@omariosman first make sure to install the latest CLI

  • npm i -g @elizaos/cli
  • and then elizaos plugins add @elizaos-plugins/plugin-evm

right now we have a scoping issue with npx and we are working on to resolve npx as well.

Image

You could also add the plugin-evm to character file and the CLI will install it. Just make sure you have plugin-tee as well.

0xbbjoker avatar Jun 02 '25 18:06 0xbbjoker

Released new version for plugin-evm.

Features: swap, bridge, transfer working smoothly on evm chains.

version: 1.0.6

Closing this! If any issues found please report.

0xbbjoker avatar Jun 03 '25 21:06 0xbbjoker