|
| 1 | +# @elizaos/plugin-abstract |
| 2 | + |
| 3 | +A plugin for interacting with the Abstract blockchain network within the ElizaOS ecosystem. |
| 4 | + |
| 5 | +## Description |
| 6 | +The Abstract plugin enables seamless token transfers on the Abstract testnet. It provides functionality to transfer both native ETH and ERC20 tokens using secure wallet operations. |
| 7 | + |
| 8 | +## Installation |
| 9 | + |
| 10 | +```bash |
| 11 | +pnpm install @elizaos/plugin-lensNetwork |
| 12 | +``` |
| 13 | + |
| 14 | +## Configuration |
| 15 | + |
| 16 | +The plugin requires the following environment variables to be set: |
| 17 | +```typescript |
| 18 | +LENS_ADDRESS=<Your Lens wallet address> |
| 19 | +LENS_PRIVATE_KEY=<Your Lens private key> |
| 20 | +``` |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +### Basic Integration |
| 25 | + |
| 26 | +```typescript |
| 27 | +import { lensPlugin } from '@elizaos/plugin-lensNetwork'; |
| 28 | +``` |
| 29 | + |
| 30 | +### Transfer Examples |
| 31 | + |
| 32 | +```typescript |
| 33 | +// The plugin responds to natural language commands like: |
| 34 | + |
| 35 | +"Send 1 Grass to 0xCCa8009f5e09F8C5dB63cb0031052F9CB635Af62" |
| 36 | + |
| 37 | +``` |
| 38 | + |
| 39 | +## API Reference |
| 40 | + |
| 41 | +### Actions |
| 42 | + |
| 43 | +#### SEND_TOKEN |
| 44 | + |
| 45 | +Transfers tokens from the agent's wallet to another address. |
| 46 | + |
| 47 | +**Aliases:** |
| 48 | +- TRANSFER_TOKEN_ON_LENS |
| 49 | +- TRANSFER_TOKENS_ON_LENS |
| 50 | +- SEND_TOKENS_ON_LENS |
| 51 | +- SEND_ETH_ON_LENS |
| 52 | +- PAY_ON_LENS |
| 53 | +- MOVE_TOKENS_ON_LENS |
| 54 | +- MOVE_ETH_ON_LENS |
| 55 | + |
| 56 | +## Common Issues & Troubleshooting |
| 57 | + |
| 58 | +1. **Transaction Failures** |
| 59 | + - Verify wallet has sufficient balance |
| 60 | + - Check recipient address format |
| 61 | + - Ensure private key is correctly set |
| 62 | + - Verify network connectivity |
| 63 | + |
| 64 | +2. **Configuration Issues** |
| 65 | + - Verify all required environment variables are set |
| 66 | + - Ensure private key format is correct |
| 67 | + - Check wallet address format |
| 68 | + |
| 69 | +## Security Best Practices |
| 70 | + |
| 71 | +1. **Private Key Management** |
| 72 | + - Store private key securely using environment variables |
| 73 | + - Never commit private keys to version control |
| 74 | + - Use separate wallets for development and production |
| 75 | + - Monitor wallet activity regularly |
| 76 | + |
| 77 | +## Development Guide |
| 78 | + |
| 79 | +### Setting Up Development Environment |
| 80 | + |
| 81 | +1. Clone the repository |
| 82 | +2. Install dependencies: |
| 83 | + |
| 84 | +```bash |
| 85 | +pnpm install |
| 86 | +``` |
| 87 | + |
| 88 | +3. Build the plugin: |
| 89 | + |
| 90 | +```bash |
| 91 | +pnpm run build |
| 92 | +``` |
| 93 | + |
| 94 | +4. Run the plugin: |
| 95 | + |
| 96 | +```bash |
| 97 | +pnpm run dev |
| 98 | +``` |
| 99 | + |
0 commit comments