Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add CREATE_POOL action in MultiversX plugin #3209

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions packages/plugin-multiversx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ The plugin requires environment variables or runtime settings:
```env
MVX_PRIVATE_KEY=your-wallet-private-key
MVX_NETWORK=devnet # mainnet, devnet, or testnet
ACCESS_TOKEN_MANAGEMENT_TO=everyone # you can put an userid to limit token managament to one user only (use same id as in the database)
```

## Usage
Expand Down Expand Up @@ -81,6 +82,33 @@ const result = await eliza.execute({
});
```

### Token Swap

```typescript
const result = await eliza.execute({
action: "SWAP",
content: {
tokenIn: "EGLD",
amountIn: "1",
tokenOut: "MEX"
},
});
```

### Pool Creation

```typescript
const result = await eliza.execute({
action: "CREATE_POOL",
content: {
baseTokenID: "KWAK",
quoteTokenID: "EGLD",
baseAmount: "1000000",
quoteAmount: "20"
},
});
```

## Troubleshooting

### Common Issues
Expand Down
Loading