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: add plugin-ton #1039

Merged
merged 2 commits into from
Dec 14, 2024
Merged

feat: add plugin-ton #1039

merged 2 commits into from
Dec 14, 2024

Conversation

jinbangyi
Copy link
Contributor

Relates to:

Risks

Low

Background

What does this PR do?

Introduces Agent Plugin to manage a Ton Wallet.

What kind of change is this?

Features (non-breaking change which adds functionality)

Add the ability for Eliza agents to interface with the Ton Blockchain.

Documentation changes needed?

Testing

Where should a reviewer start?

  • Goto packages/plugin-ton directory
  • Run pnpm i
  • Run pnpm test
stdout | src/tests/wallet.test.ts > Wallet provider > Wallet Integration > should check wallet address
Cache miss for fetchPortfolioValue
Cache miss for fetchPrices

stdout | src/tests/wallet.test.ts > Wallet provider > Wallet Integration > should check wallet address
Fetched portfolio: { totalUsd: '0', totalNativeToken: '0' }
Cache miss for fetchPrices

 ✓ src/tests/wallet.test.ts (1) 1267ms
   ✓ Wallet provider (1) 1267ms
     ✓ Wallet Integration (1) 986ms
       ✓ should check wallet address 985ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  19:03:30
   Duration  2.51s (transform 363ms, setup 0ms, collect 926ms, tests 1.27s, environment 0ms, prepare 93ms)

Detailed testing steps

For e2e Test:

  • Replace Default Character Here
    // Replace the existing character initialization with custom setup
    let charactersArg = args.characters || args.character;

    character.plugins = [tonPlugin];
    character.modelProvider = ModelProviderName.OPENAI;

    let characters = [defaultCharacter];

Discord username

@k_benny

@cygaar cygaar added the Plugin_new Mark PRs that are a new plugin label Dec 13, 2024
@odilitime odilitime deleted the branch elizaOS:develop December 13, 2024 19:07
@odilitime odilitime closed this Dec 13, 2024
@odilitime odilitime reopened this Dec 13, 2024
@lalalune lalalune merged commit 91d26a1 into elizaOS:develop Dec 14, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Plugin_new Mark PRs that are a new plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants