Skip to content

Commit a7c3da0

Browse files
authored
Merge branch 'develop' into fix-client-alexa
2 parents db87d85 + a12c696 commit a7c3da0

File tree

12 files changed

+0
-1559
lines changed

12 files changed

+0
-1559
lines changed

packages/plugin-lit/.npmignore

-6
This file was deleted.

packages/plugin-lit/README.md

-124
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,6 @@ A plugin that integrates Lit Protocol functionality into the elizaOS runtime env
1313

1414
## Installation
1515

16-
A comprehensive blockchain interaction plugin for the Eliza Agent Stack, powered by Lit Protocol's Programmable Key Pairs (PKPs). This plugin enables autonomous agents to perform secure cross-chain transactions through decentralized key management and threshold cryptography.
17-
18-
## Overview
19-
20-
The Lit Protocol plugin provides:
21-
- Dual-chain wallet management (EVM + Solana)
22-
- Secure transaction signing and execution
23-
- Capacity credit management
24-
- Automated PKP lifecycle management
25-
- Security evaluations for transactions
26-
27-
## Features
28-
29-
- **Wallet Management**
30-
- Automated PKP creation and management
31-
- Dual-chain support (EVM + Solana)
32-
- Secure key storage and rotation
33-
- Capacity credit allocation
34-
35-
- **Transaction Support**
36-
- ETH transfers
37-
- USDC transfers
38-
- SOL transfers
39-
- Transaction security validation
40-
41-
- **Security Features**
42-
- Transaction amount limits
43-
- Security evaluations
44-
- PKP validation
45-
- Session management
46-
- Capacity credit monitoring
47-
48-
## Installation
4916
```bash
5017
npm install @elizaos/plugin-lit
5118
```
@@ -179,94 +146,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
179146
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
180147
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
181148
SOFTWARE.
182-
=======
183-
## Configuration
184-
185-
Required environment variables:
186-
```env
187-
FUNDING_PRIVATE_KEY= # Private key for funding operations
188-
EVM_RPC_URL= # RPC endpoint for blockchain interactions
189-
LIT_PKP_PUBLIC_KEY= # (Optional) Existing PKP public key
190-
```
191-
192-
## Important: Wallet Funding
193-
194-
Before executing any transactions, you must fund the generated Lit wallet address with the necessary assets (ETH, SOL, or USDC). The plugin will create a new PKP wallet address if one isn't provided, and this address will need to hold sufficient funds to:
195-
1. Cover the amount being transferred
196-
2. Pay for transaction fees (gas fees on EVM chains, transaction fees on Solana)
197-
198-
You can view your PKP wallet address after initializing the plugin using the configuration file (`lit-config.json`).
199-
200-
## Usage
201-
202-
### Basic Setup
203-
```typescript
204-
import { litPlugin } from '@elizaos/plugin-lit';
205-
206-
// Register the plugin
207-
runtime.registerPlugin(litPlugin);
208-
```
209-
210-
### Sending ETH
211-
```typescript
212-
// Send ETH transaction
213-
await runtime.executeAction('SEND_ETH', {
214-
text: "Send 0.01 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
215-
});
216-
```
217-
218-
### Sending SOL
219-
```typescript
220-
// Send SOL transaction
221-
await runtime.executeAction('SEND_SOL', {
222-
text: "Send 0.1 SOL to 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
223-
});
224-
```
225-
226-
### Sending USDC
227-
```typescript
228-
// Send USDC transaction
229-
await runtime.executeAction('SEND_USDC', {
230-
text: "Send 10 USDC to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
231-
});
232-
```
233-
234-
## Security
235-
236-
The plugin implements multiple security layers:
237-
- Transaction amount limits
238-
- Automated security evaluations
239-
- PKP validation checks
240-
- Session-based authentication
241-
- Capacity credit management
242-
- Automatic key rotation
243-
244-
## Architecture
245-
246-
The plugin consists of several key components:
247-
248-
- **Providers**
249-
- `litProvider`: Manages PKP creation and Lit Protocol integration
250-
- `pkpPermissionsProvider`: Handles PKP permissions and auth methods
251-
252-
- **Actions**
253-
- `sendEth`: ETH transfer functionality
254-
- `sendSol`: SOL transfer functionality
255-
- `sendUSDC`: USDC transfer functionality
256-
257-
## Configuration Management
258-
259-
The plugin uses a local configuration file (`lit-config.json`) to store:
260-
- PKP details
261-
- Network configuration
262-
- Wallet information
263-
- Capacity credits
264-
- Session data
265-
266-
## Contributing
267-
268-
Contributions are welcome! Please see our [Contributing Guide](../CONTRIBUTING.md) for details.
269-
270-
## License
271-
272-
MIT

packages/plugin-lit/pkp-setup.md

-109
This file was deleted.

packages/plugin-lit/src/actions/index.ts

-4
This file was deleted.

0 commit comments

Comments
 (0)