@rileycraig/plugin-x402-agentstore 1.0.0 → 1.1.0
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 +1 -0
- package/dist/index.js +38 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ This is how high-volume x402 services actually get called: not by being listed i
|
|
|
10
10
|
|---|---|---|
|
|
11
11
|
| `AI_VISIBILITY_CHECK` | Does AI recommend a brand/token? Score 0–100 + who AI names instead | free teaser / $0.95 full |
|
|
12
12
|
| `DEX_TOKEN_DATA` | Live DEX price, volume, liquidity, buy/sell flow for any token | $0.002 |
|
|
13
|
+
| `TOKEN_SECURITY_CHECK` | Pre-trade rug check: honeypot, sell tax, mint/owner risk + verdict | $0.002 |
|
|
13
14
|
| `AI_CATEGORY_RANKING` | Who AI recommends across a whole category, ranked | $0.02 |
|
|
14
15
|
| `COUNTRY_ECONOMICS` | GDP, inflation, unemployment for 200+ countries | $0.005 |
|
|
15
16
|
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,43 @@ var dexToken = {
|
|
|
44
44
|
},
|
|
45
45
|
examples: []
|
|
46
46
|
};
|
|
47
|
+
var tokenLaunches = {
|
|
48
|
+
name: "TOKEN_LAUNCHES_FEED",
|
|
49
|
+
similes: ["NEW_TOKENS", "TRENDING_TOKENS", "WHAT_LAUNCHED", "FIND_NEW_COINS", "SNIPE_FEED"],
|
|
50
|
+
description: "Discovery feed for trading/sniping agents: newest token launches plus the most-boosted/promoted tokens across Solana, Base, Ethereum, BSC and more. Each item includes chain, contract, socials and next_calls that chain into TOKEN_SECURITY_CHECK (rug check) and DEX_TOKEN_DATA (market data). Poll on a loop to find candidates. Paid per call ($0.003) via x402.",
|
|
51
|
+
validate: async () => true,
|
|
52
|
+
handler: async (runtime, message, _state, _o, callback) => {
|
|
53
|
+
var _a;
|
|
54
|
+
const text = ((_a = message == null ? void 0 : message.content) == null ? void 0 : _a.text) || "";
|
|
55
|
+
const chainM = text.match(/\b(solana|base|ethereum|eth|bsc|bnb|polygon|arbitrum)\b/i);
|
|
56
|
+
const chain = chainM ? `&chain=${chainM[1].toLowerCase()}` : "";
|
|
57
|
+
const data = await callStore(runtime, `/crypto/launches?limit=15${chain}`);
|
|
58
|
+
if (callback) callback({ text: `New & trending token launches: ${JSON.stringify(data)}`, content: data });
|
|
59
|
+
return true;
|
|
60
|
+
},
|
|
61
|
+
examples: []
|
|
62
|
+
};
|
|
63
|
+
var tokenSecurity = {
|
|
64
|
+
name: "TOKEN_SECURITY_CHECK",
|
|
65
|
+
similes: ["RUG_CHECK", "HONEYPOT_CHECK", "IS_TOKEN_SAFE", "PRE_TRADE_SAFETY", "CAN_I_SELL"],
|
|
66
|
+
description: "Pre-trade safety / rug check for any token contract: honeypot status, buy/sell tax, mintable, owner-can-reclaim, transfer-pausable, blacklist, holder count, plus a DANGER/HIGH_RISK/CAUTION/OK verdict. The call to make BEFORE buying any token. Paid per call ($0.002) via x402.",
|
|
67
|
+
validate: async () => true,
|
|
68
|
+
handler: async (runtime, message, _state, _o, callback) => {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
const text = ((_a = message == null ? void 0 : message.content) == null ? void 0 : _a.text) || "";
|
|
71
|
+
const addr = (((_b = text.match(/0x[0-9a-fA-F]{40}/)) == null ? void 0 : _b[0]) || "").toLowerCase();
|
|
72
|
+
const chainM = text.match(/\b(ethereum|eth|base|bsc|bnb|polygon|matic|arbitrum|optimism|avalanche|avax)\b/i);
|
|
73
|
+
const chain = ((chainM == null ? void 0 : chainM[1]) || "ethereum").toLowerCase();
|
|
74
|
+
if (!addr) {
|
|
75
|
+
if (callback) callback({ text: "Provide a token contract address (0x...) to run a rug check.", content: { error: "address required" } });
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
const data = await callStore(runtime, `/crypto/security?address=${addr}&chain=${chain}`);
|
|
79
|
+
if (callback) callback({ text: `Token security for ${addr} on ${chain}: ${JSON.stringify(data)}`, content: data });
|
|
80
|
+
return true;
|
|
81
|
+
},
|
|
82
|
+
examples: []
|
|
83
|
+
};
|
|
47
84
|
var categoryRanking = {
|
|
48
85
|
name: "AI_CATEGORY_RANKING",
|
|
49
86
|
similes: ["WHO_DOES_AI_RECOMMEND", "CATEGORY_LEADERBOARD", "BEST_IN_CATEGORY"],
|
|
@@ -75,7 +112,7 @@ var countryEconomics = {
|
|
|
75
112
|
var x402AgentStorePlugin = {
|
|
76
113
|
name: "x402-agentstore",
|
|
77
114
|
description: "x402 Agent Store data tools for ElizaOS: AI-visibility/GEO, live DEX token data, AI category rankings, prediction-market odds, and country economics \u2014 pay-per-call in USDC via x402, no API keys.",
|
|
78
|
-
actions: [aiVisibility, dexToken, categoryRanking, countryEconomics],
|
|
115
|
+
actions: [aiVisibility, dexToken, tokenLaunches, tokenSecurity, categoryRanking, countryEconomics],
|
|
79
116
|
providers: [],
|
|
80
117
|
evaluators: []
|
|
81
118
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rileycraig/plugin-x402-agentstore",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "ElizaOS plugin: x402 Agent Store data tools — AI-visibility/GEO, live DEX token data, AI category rankings, prediction-market odds, country economics. Pay-per-call in USDC via x402, no API keys.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|