@joai/warps 3.0.0-beta.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/index.d.cts +1270 -0
- package/dist/index.d.ts +1270 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @joai/warps
|
|
2
|
+
|
|
3
|
+
Core Warps SDK package providing the foundation for building and executing Warps across multiple blockchain networks.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @joai/warps
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
The core package provides:
|
|
14
|
+
|
|
15
|
+
- **WarpClient** - Main client for interacting with Warps
|
|
16
|
+
- **WarpExecutor** - Executes Warp actions and transactions
|
|
17
|
+
- **WarpFactory** - Creates executable Warps from definitions
|
|
18
|
+
- **WarpBuilder** - Programmatic Warp creation
|
|
19
|
+
- **WarpSerializer** - Serializes/deserializes Warp data
|
|
20
|
+
- **Type definitions** - Complete TypeScript types for Warps
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { WarpClient } from '@joai/warps'
|
|
26
|
+
import { getAllEvmAdapters } from '@joai/warps-adapter-evm'
|
|
27
|
+
import { MultiversxAdapter } from '@joai/warps-adapter-multiversx'
|
|
28
|
+
|
|
29
|
+
const config = {
|
|
30
|
+
env: 'mainnet',
|
|
31
|
+
user: {
|
|
32
|
+
wallets: {
|
|
33
|
+
ethereum: {
|
|
34
|
+
provider: 'privatekey',
|
|
35
|
+
privateKey: '0x...',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const client = new WarpClient(config, {
|
|
42
|
+
chains: getAllEvmAdapters(MultiversxAdapter),
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// Execute a Warp
|
|
46
|
+
const result = await client.execute(warp, inputs)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Key Features
|
|
50
|
+
|
|
51
|
+
- Multi-chain support via adapters
|
|
52
|
+
- Type-safe Warp definitions
|
|
53
|
+
- Transaction execution and signing
|
|
54
|
+
- Output transformation and evaluation
|
|
55
|
+
- Caching and performance optimization
|
|
56
|
+
- Link detection and parsing
|
|
57
|
+
|
|
58
|
+
## Documentation
|
|
59
|
+
|
|
60
|
+
For detailed API documentation, visit [docs.vleap.ai](https://docs.vleap.ai).
|