@warppay402/sdk 1.1.4 → 1.1.5
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 +26 -19
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@ Official TypeScript SDK for **WarpPay402**—pay-per-use AI tools monetized via
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @warppay402/sdk
|
|
9
9
|
```
|
|
10
|
+
|
|
10
11
|
## 🚀 Quickstart
|
|
11
|
-
```typescript
|
|
12
|
-
import { WarpPayClient } from "@warppay402/sdk";
|
|
13
12
|
|
|
13
|
+
```typescript
|
|
14
14
|
import { WarpPayClient } from "@warppay402/sdk";
|
|
15
15
|
|
|
16
16
|
// Initialize with Base EVM, Solana L1, or both
|
|
@@ -45,24 +45,33 @@ async function main() {
|
|
|
45
45
|
console.log("ETH Balance:", analytics.ethBalance);
|
|
46
46
|
|
|
47
47
|
// 6. Extract PDF Text Preview ($0.05 USDC)
|
|
48
|
-
const pdf = await client.extractPdf("https://example.com/document.pdf");
|
|
48
|
+
const pdf = await client.extractPdf("https://example.com/document.pdf");
|
|
49
49
|
console.log("Preview:", pdf.textPreview);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
main();
|
|
53
53
|
```
|
|
54
|
+
|
|
54
55
|
## 🛠️ Available Methods & Pricing
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
- **`getPublicDataFeed(filename)`** — `$0.0001 USDC` — Retrieves signed attestation JSON payloads.
|
|
58
|
+
- **`getDataFeed(feedId)`** — `$0.001 USDC` — Fetches pre-scraped market and protocol intelligence feeds.
|
|
59
|
+
- **`scrapeWeb(url)`** — `$0.001 USDC` — Extracts clean Markdown from web pages.
|
|
60
|
+
- **`getBaseAnalytics(address)`** — `$0.002 USDC` — Fetches ETH balance and nonce stats.
|
|
61
|
+
- **`getAerodromeYields()`** — `$0.003 USDC` — Top live Aerodrome pool yields and APYs on Base.
|
|
62
|
+
- **`browserScrape(url)`** — `$0.005 USDC` — Unblockable JS browser scraping via proxy workers.
|
|
63
|
+
- **`extractPdf(pdfUrl)`** — `$0.005 USDC` — Parses text preview from public PDF URLs.
|
|
64
|
+
- **`renderScreenshot(url)`** — `$0.01 USDC` — Renders target URL and returns full-page screenshot data.
|
|
65
|
+
- **`extractJson(url, schema?)`** — `$0.01 USDC` — Parses web pages into structured JSON data.
|
|
66
|
+
- **`executeAerodromeSwap(params)`** — `$0.01 USDC` — Executes token swaps via Aerodrome Router on Base.
|
|
67
|
+
- **`manageAerodromeClamm(params)`** — `$0.01 USDC` — Concentrated liquidity LP management on Aerodrome Slipstream.
|
|
68
|
+
- **`manageAerodromeVeaero(params)`** — `$0.01 USDC` — $AERO locking, gauge voting, and bribe reward harvesting.
|
|
69
|
+
- **`verifySmartContract(address)`** — `$0.02 USDC` — Source code analysis, ABI fetching, and proxy validation.
|
|
70
|
+
- **`deployBaseContract(contractType)`** — `$5.00 USDC` — Programmatically deploys custom smart contracts to Base Mainnet.
|
|
71
|
+
- **`deploySolanaContract(type, params)`** — `$5.00 USDC` — Initializes SPL Escrows, cNFTs, or Raydium Vaults on Solana.
|
|
72
|
+
|
|
65
73
|
## 🛠️ LangChain Integration
|
|
74
|
+
|
|
66
75
|
```typescript
|
|
67
76
|
import { WarpPayClient, createWarpPayLangChainTools } from "@warppay402/sdk";
|
|
68
77
|
|
|
@@ -73,12 +82,10 @@ const client = new WarpPayClient({
|
|
|
73
82
|
// Pass directly into your LangChain or AutoGen agent setup
|
|
74
83
|
const tools = createWarpPayLangChainTools(client);
|
|
75
84
|
```
|
|
76
|
-
## 🌐 API Gateway & Specs
|
|
77
|
-
|
|
78
|
-
MCP Gateway Endpoint: https://api.warppay402.com/mcp
|
|
79
85
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
REST Gateway Base: https://api.warppay402.com
|
|
86
|
+
## 🌐 API Gateway & Specs
|
|
83
87
|
|
|
84
|
-
|
|
88
|
+
- MCP Gateway Endpoint: <https://api.warppay402.com/mcp>
|
|
89
|
+
- MCP Manifest: <https://api.warppay402.com/.well-known/mcp.json>
|
|
90
|
+
- REST Gateway Base: <https://api.warppay402.com>
|
|
91
|
+
- OpenAPI Spec: <https://api.warppay402.com/openapi.json>
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
{
|
|
2
3
|
"name": "@warppay402/sdk",
|
|
3
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.5",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"description": "Official WarpPay402 TypeScript SDK: Enabling seamless pay-per-use AI tools across Base Mainnet, Solana, and Arbitrum One.",
|
|
6
7
|
"main": "dist/index.js",
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@solana/spl-token": "^0.4.15",
|
|
31
32
|
"@solana/web3.js": "^1.98.4",
|
|
32
|
-
"@warppay402/server": "^1.
|
|
33
|
+
"@warppay402/server": "^1.2.3",
|
|
33
34
|
"bs58": "^6.0.0",
|
|
34
35
|
"viem": "^2.0.0"
|
|
35
36
|
},
|
|
@@ -58,4 +59,4 @@
|
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
}
|
|
62
|
+
}
|