solana-agent-kit-plugin-madeonsol 1.12.0 → 1.12.1
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 +6 -3
- package/dist/tools/index.d.ts +11 -5
- package/dist/tools/index.js +6 -6
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -137,9 +137,12 @@ Server-side rules that fire signals when a watched source wallet trades. Deliver
|
|
|
137
137
|
```ts
|
|
138
138
|
await agent.methods.copyTradeList(agent);
|
|
139
139
|
await agent.methods.copyTradeCreate(agent, {
|
|
140
|
-
name: "Track
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
name: "Track Whales",
|
|
141
|
+
source_wallets: ["WALLET_A", "WALLET_B"], // 1-50 wallets
|
|
142
|
+
sizing_mode: "fixed",
|
|
143
|
+
sizing_amount: 0.5, // required
|
|
144
|
+
only_action: "buy",
|
|
145
|
+
delivery_mode: "webhook",
|
|
143
146
|
webhook_url: "https://you.com/hook",
|
|
144
147
|
});
|
|
145
148
|
await agent.methods.copyTradeSignals(agent, { limit: 50 }); // up to 7 days
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -193,12 +193,18 @@ export declare function tokenBatch(agent: Agent, params: {
|
|
|
193
193
|
}): Promise<any>;
|
|
194
194
|
export declare function copyTradeList(agent: Agent): Promise<any>;
|
|
195
195
|
export declare function copyTradeCreate(agent: Agent, params: {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
/** 1-50 wallets to copy trades from. */
|
|
197
|
+
source_wallets: string[];
|
|
198
|
+
/** Required. Fixed SOL amount, proportional multiplier, or percent of source — per sizing_mode. */
|
|
199
|
+
sizing_amount: number;
|
|
200
|
+
name?: string;
|
|
201
|
+
min_trade_sol?: number;
|
|
202
|
+
only_action?: "buy" | "sell" | "both";
|
|
203
|
+
sizing_mode?: "fixed" | "proportional" | "percent_source";
|
|
204
|
+
delivery_mode?: "webhook" | "websocket" | "both";
|
|
199
205
|
webhook_url?: string;
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
min_mc_usd?: number | null;
|
|
207
|
+
max_mc_usd?: number | null;
|
|
202
208
|
}): Promise<any>;
|
|
203
209
|
export declare function copyTradeGet(agent: Agent, params: {
|
|
204
210
|
rule_id: string;
|
package/dist/tools/index.js
CHANGED
|
@@ -293,19 +293,19 @@ export async function tokenBatch(agent, params) {
|
|
|
293
293
|
}
|
|
294
294
|
// ── Copy-Trade Rules (PRO/ULTRA) ──
|
|
295
295
|
export async function copyTradeList(agent) {
|
|
296
|
-
return restQuery(agent, "GET", "/
|
|
296
|
+
return restQuery(agent, "GET", "/copytrade/subscriptions");
|
|
297
297
|
}
|
|
298
298
|
export async function copyTradeCreate(agent, params) {
|
|
299
|
-
return restQuery(agent, "POST", "/
|
|
299
|
+
return restQuery(agent, "POST", "/copytrade/subscriptions", params);
|
|
300
300
|
}
|
|
301
301
|
export async function copyTradeGet(agent, params) {
|
|
302
|
-
return restQuery(agent, "GET", `/
|
|
302
|
+
return restQuery(agent, "GET", `/copytrade/subscriptions/${encodeURIComponent(params.rule_id)}`);
|
|
303
303
|
}
|
|
304
304
|
export async function copyTradeUpdate(agent, params) {
|
|
305
|
-
return restQuery(agent, "PATCH", `/
|
|
305
|
+
return restQuery(agent, "PATCH", `/copytrade/subscriptions/${encodeURIComponent(params.rule_id)}`, params.updates);
|
|
306
306
|
}
|
|
307
307
|
export async function copyTradeDelete(agent, params) {
|
|
308
|
-
return restQuery(agent, "DELETE", `/
|
|
308
|
+
return restQuery(agent, "DELETE", `/copytrade/subscriptions/${encodeURIComponent(params.rule_id)}`);
|
|
309
309
|
}
|
|
310
310
|
// ── Coordination Alerts (PRO/ULTRA, v1.1) ──
|
|
311
311
|
export async function coordinationAlertsList(agent) {
|
|
@@ -378,7 +378,7 @@ export async function copyTradeSignals(agent, params = {}) {
|
|
|
378
378
|
qs.set(k, String(v));
|
|
379
379
|
}
|
|
380
380
|
const query = qs.toString() ? `?${qs.toString()}` : "";
|
|
381
|
-
return restQuery(agent, "GET", `/
|
|
381
|
+
return restQuery(agent, "GET", `/copytrade/signals${query}`);
|
|
382
382
|
}
|
|
383
383
|
// ── Price Alerts (PRO/ULTRA, v1.9) ──
|
|
384
384
|
export async function priceAlertsList(agent) {
|
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "solana-agent-kit-plugin-madeonsol",
|
|
3
|
-
"version": "1.12.
|
|
4
|
-
"description": "Solana Agent Kit plugin for MadeOnSol — KOL intelligence and deployer analytics via x402 micropayments",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"README.md"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"preflight": "bash ../../scripts/preflight-publish.sh",
|
|
15
|
-
"prepublishOnly": "npm run preflight && npm run build"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"solana",
|
|
19
|
-
"agent-kit",
|
|
20
|
-
"solana-agent-kit",
|
|
21
|
-
"sendaifun",
|
|
22
|
-
"plugin",
|
|
23
|
-
"ai-agent",
|
|
24
|
-
"x402",
|
|
25
|
-
"kol",
|
|
26
|
-
"kol-tracker",
|
|
27
|
-
"trading",
|
|
28
|
-
"memecoin",
|
|
29
|
-
"memecoin-tracker",
|
|
30
|
-
"pumpfun",
|
|
31
|
-
"deployer-hunter",
|
|
32
|
-
"alpha",
|
|
33
|
-
"alpha-bot",
|
|
34
|
-
"smart-money",
|
|
35
|
-
"copy-trading",
|
|
36
|
-
"madeonsol"
|
|
37
|
-
],
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "https://github.com/LamboPoewert/solana-agent-kit-plugin-madeonsol"
|
|
42
|
-
},
|
|
43
|
-
"peerDependencies": {
|
|
44
|
-
"solana-agent-kit": ">=2.0.0",
|
|
45
|
-
"@x402/fetch": ">=0.1.0",
|
|
46
|
-
"@x402/core": ">=0.1.0",
|
|
47
|
-
"@x402/svm": ">=0.1.0",
|
|
48
|
-
"@solana/kit": ">=2.0.0",
|
|
49
|
-
"@scure/base": ">=1.0.0"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"zod": "^3.24.0"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "solana-agent-kit-plugin-madeonsol",
|
|
3
|
+
"version": "1.12.1",
|
|
4
|
+
"description": "Solana Agent Kit plugin for MadeOnSol — KOL intelligence and deployer analytics via x402 micropayments",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"preflight": "bash ../../scripts/preflight-publish.sh",
|
|
15
|
+
"prepublishOnly": "npm run preflight && npm run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"solana",
|
|
19
|
+
"agent-kit",
|
|
20
|
+
"solana-agent-kit",
|
|
21
|
+
"sendaifun",
|
|
22
|
+
"plugin",
|
|
23
|
+
"ai-agent",
|
|
24
|
+
"x402",
|
|
25
|
+
"kol",
|
|
26
|
+
"kol-tracker",
|
|
27
|
+
"trading",
|
|
28
|
+
"memecoin",
|
|
29
|
+
"memecoin-tracker",
|
|
30
|
+
"pumpfun",
|
|
31
|
+
"deployer-hunter",
|
|
32
|
+
"alpha",
|
|
33
|
+
"alpha-bot",
|
|
34
|
+
"smart-money",
|
|
35
|
+
"copy-trading",
|
|
36
|
+
"madeonsol"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://github.com/LamboPoewert/solana-agent-kit-plugin-madeonsol"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"solana-agent-kit": ">=2.0.0",
|
|
45
|
+
"@x402/fetch": ">=0.1.0",
|
|
46
|
+
"@x402/core": ">=0.1.0",
|
|
47
|
+
"@x402/svm": ">=0.1.0",
|
|
48
|
+
"@solana/kit": ">=2.0.0",
|
|
49
|
+
"@scure/base": ">=1.0.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"zod": "^3.24.0"
|
|
53
|
+
}
|
|
54
|
+
}
|