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: cosmos plugin - IBC swap action #16

Closed
wants to merge 30 commits into from

Conversation

stanislawkurzypBD
Copy link
Collaborator

@stanislawkurzypBD stanislawkurzypBD commented Jan 10, 2025

Relates to:

NA

Risks

Low risk – this PR adds an action to an existing plugin and does not interfere with the core functionality of Eliza.

Background

What does this PR do?

This PR adds a Swap IBC action to the Cosmos plugin for Eliza. This action enables agents to perform transfer swaps using the wallet specified in the environment variables.

What kind of change is this?

Feature (non-breaking change which adds new functionality)

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

We aim to contribute to the Eliza project because we believe more plugins are needed to make the agents more versatile.

As BlockyDevs, we have extensive expertise in blockchain development and are keen to explore the AI/Blockchain crossover space.

Documentation changes needed?

Changes do not require a change to the project documentation.

Testing

The PR includes unit tests.
A manual test for this action has been completed successfully. A testing example is provided in the README file. Please note that using mainnet chains is required due to the lack of swap pairs between testnet assets.

Where should a reviewer start?

  • Review the plugin-cosmos/actions/ibc-swap folder structure, focusing on index.ts, services/ibc-swap-action-service.ts, and related environment or index files.

Detailed testing steps

  1. Install dependencies for the plugin-cosmos package.
  2. Navigate to the packages/cosmos-plugin directory and run pnpm run test.

@stanislawkurzypBD stanislawkurzypBD changed the base branch from develop to ELIZAAI-17-cross-chain-bridging-ibc-or-external-bridge January 10, 2025 14:51
@stanislawkurzypBD stanislawkurzypBD changed the title Elizaai 18 cross chain swaps ELIZAAI-18 IBC Swaps Jan 10, 2025
@KacperKoza343 KacperKoza343 force-pushed the ELIZAAI-17-cross-chain-bridging-ibc-or-external-bridge branch from 3cc478c to 64e6cb2 Compare January 13, 2025 10:05
@stanislawkurzypBD stanislawkurzypBD changed the base branch from ELIZAAI-17-cross-chain-bridging-ibc-or-external-bridge to develop January 14, 2025 08:21
…AI-18-cross-chain-swaps

# Conflicts:
#	agent/src/index.ts
#	packages/plugin-cosmos/package.json
…to ELIZAAI-18-cross-chain-swaps

# Conflicts:
#	packages/plugin-cosmos/src/actions/ibc-swap/index.ts
@stanislawkurzypBD stanislawkurzypBD changed the title ELIZAAI-18 IBC Swaps feat: cosmos plugin - IBC swap action Jan 20, 2025
@stanislawkurzypBD stanislawkurzypBD marked this pull request as ready for review January 20, 2025 11:43
@stanislawkurzypBD stanislawkurzypBD changed the base branch from develop to main January 20, 2025 11:45
@stanislawkurzypBD stanislawkurzypBD changed the base branch from main to develop January 20, 2025 11:45
…-chain-swaps

# Conflicts:
#	packages/plugin-cosmos/src/actions/ibc-transfer/index.ts
#	packages/plugin-cosmos/src/actions/ibc-transfer/schema.ts
#	packages/plugin-cosmos/src/actions/ibc-transfer/services/bridge-denom-provider.ts
#	packages/plugin-cosmos/src/actions/ibc-transfer/services/ibc-transfer-action-service.ts
#	packages/plugin-cosmos/src/index.ts
#	packages/plugin-cosmos/src/shared/entities/cosmos-wallet-chains-data.ts
#	packages/plugin-cosmos/src/shared/interfaces.ts
#	packages/plugin-cosmos/src/shared/services/skip-api/assets-from-source-fetcher/skip-api-assets-from-source-fetcher.ts
#	packages/plugin-cosmos/src/templates/index.ts
#	packages/plugin-cosmos/src/tests/cosmos-ibc-transfer-action-service.test.ts
#	pnpm-lock.yaml
Copy link

This pull request has been automatically marked as stale due to 30 days of inactivity.
If no further activity occurs within 7 days, it will be closed automatically. Please take action if this pull request is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants