-
Notifications
You must be signed in to change notification settings - Fork 0
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: ibc transfer action #14
feat: ibc transfer action #14
Conversation
import { MsgTransfer } from "interchain/dist/codegen/ibc/applications/transfer/v1/tx"; | ||
import { IBCTransferActionParams } from "../types.ts"; | ||
|
||
export class CosmosIBCTransferAction implements ICosmosActionService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you have ibc-transfer-action-service
name of file, I think the class should be IBCTransferActionService
860b0f6
to
2c4b037
Compare
packages/plugin-cosmos/README.md
Outdated
@@ -7,15 +7,17 @@ This plugin provides actions and utilities for interacting with Cosmos-compatibl | |||
## Development | |||
|
|||
Prepare Eliza according to [README](../../README.md) | |||
Add variables required for `@ai16z/plugin-cosmos` : | |||
``` | |||
Add variables required for `@ai16z/plugin-cosmos` : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name of package should be changed to @elizaos/plugin-cosmos
"COSMOS_TRANSFER", | ||
"COSMOS_SEND_TOKENS", | ||
"COSMOS_TOKEN_TRANSFER", | ||
"COSMOS_MOVE_TOKENS", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that these similes should be unique between actions but some of them are the same as for COSMOS_TRANSFER
action (action from first PR).
This PR should also change |
3cc478c
to
64e6cb2
Compare
this branch is merged with current develop that already has this changes |
How to test
Open Keplr wallet and click


Add Wallet
Create new one with recovery phrases and save them.
Select
Osomosis Testnet
andNeutron Testnet
chains:Add OSMO to your osmosis account: https://faucet.testnet.osmosis.zone/
When your wallet has OSMOS account selected set it's recovery phrases in project's envs and also two testnests
Start Eliza
pnpm run start --characters="../characters/cosmosHelper.character.json"
Try to make IBC transfer with prompt like that:
or be more explicit if it doesn't work
This allows you to bridge tokens between your wallets like in Keplr wallet:


This should be a result in wallet: