@madeonsol/plugin-madeonsol 1.1.2 → 1.2.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/dist/client.d.ts +29 -0
- package/dist/client.js +17 -3
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -34,8 +34,14 @@ export declare class MadeOnSolClient {
|
|
|
34
34
|
}>;
|
|
35
35
|
getKolFeed(params?: {
|
|
36
36
|
limit?: string;
|
|
37
|
+
before?: string;
|
|
37
38
|
action?: string;
|
|
38
39
|
kol?: string;
|
|
40
|
+
min_sol?: string;
|
|
41
|
+
token_age_max_min?: string;
|
|
42
|
+
exclude_sells?: string;
|
|
43
|
+
min_kol_winrate?: string;
|
|
44
|
+
strategy?: string;
|
|
39
45
|
}): Promise<{
|
|
40
46
|
data?: unknown;
|
|
41
47
|
error?: string;
|
|
@@ -69,12 +75,17 @@ export declare class MadeOnSolClient {
|
|
|
69
75
|
/**
|
|
70
76
|
* Get deployer alerts. The `tier` filter (elite/good/moderate/rising/cold)
|
|
71
77
|
* is PRO/ULTRA only — BASIC callers passing it receive HTTP 403.
|
|
78
|
+
* Cursor-paginated via `before` (preferred over `offset` at scale).
|
|
72
79
|
*/
|
|
73
80
|
getDeployerAlerts(params?: {
|
|
74
81
|
since?: string;
|
|
82
|
+
before?: string;
|
|
75
83
|
limit?: string;
|
|
76
84
|
offset?: string;
|
|
77
85
|
tier?: string;
|
|
86
|
+
alert_type?: string;
|
|
87
|
+
priority?: string;
|
|
88
|
+
min_kol_buys?: string;
|
|
78
89
|
}): Promise<{
|
|
79
90
|
data?: unknown;
|
|
80
91
|
error?: string;
|
|
@@ -241,6 +252,24 @@ export declare class MadeOnSolClient {
|
|
|
241
252
|
error?: string;
|
|
242
253
|
status: number;
|
|
243
254
|
}>;
|
|
255
|
+
/** Bulk buyer-quality scoring for up to 50 mints. Shares the single-mint 5-min LRU cache. */
|
|
256
|
+
getTokenBuyerQualityBatch(mints: string[]): Promise<{
|
|
257
|
+
data?: unknown;
|
|
258
|
+
error?: string;
|
|
259
|
+
status: number;
|
|
260
|
+
}>;
|
|
261
|
+
/** Comprehensive per-mint snapshot: price, MC, volume, deployer, KOL activity, age, blacklist. */
|
|
262
|
+
getToken(mint: string): Promise<{
|
|
263
|
+
data?: unknown;
|
|
264
|
+
error?: string;
|
|
265
|
+
status: number;
|
|
266
|
+
}>;
|
|
267
|
+
/** Bulk lookup of up to 50 mints — same per-mint shape as getToken(). 10-20× cheaper than N sequential calls. */
|
|
268
|
+
getTokenBatch(mints: string[]): Promise<{
|
|
269
|
+
data?: unknown;
|
|
270
|
+
error?: string;
|
|
271
|
+
status: number;
|
|
272
|
+
}>;
|
|
244
273
|
copyTradeList(): Promise<{
|
|
245
274
|
data?: unknown;
|
|
246
275
|
error?: string;
|
package/dist/client.js
CHANGED
|
@@ -77,6 +77,7 @@ export class MadeOnSolClient {
|
|
|
77
77
|
/**
|
|
78
78
|
* Get deployer alerts. The `tier` filter (elite/good/moderate/rising/cold)
|
|
79
79
|
* is PRO/ULTRA only — BASIC callers passing it receive HTTP 403.
|
|
80
|
+
* Cursor-paginated via `before` (preferred over `offset` at scale).
|
|
80
81
|
*/
|
|
81
82
|
getDeployerAlerts(params) {
|
|
82
83
|
return this.query("/api/x402/deployer-hunter/alerts", params);
|
|
@@ -190,14 +191,27 @@ export class MadeOnSolClient {
|
|
|
190
191
|
return this.restRequest("GET", `/alpha/wallet/${encodeURIComponent(wallet)}`);
|
|
191
192
|
}
|
|
192
193
|
getAlphaLinked(wallet) {
|
|
193
|
-
return this.restRequest("GET", `/alpha
|
|
194
|
+
return this.restRequest("GET", `/alpha/${encodeURIComponent(wallet)}/linked`);
|
|
194
195
|
}
|
|
195
196
|
// ── Token Quality ──
|
|
196
197
|
getTokenCapTable(mint) {
|
|
197
|
-
return this.restRequest("GET", `/
|
|
198
|
+
return this.restRequest("GET", `/tokens/${encodeURIComponent(mint)}/cap-table`);
|
|
198
199
|
}
|
|
199
200
|
getTokenBuyerQuality(mint) {
|
|
200
|
-
return this.restRequest("GET", `/
|
|
201
|
+
return this.restRequest("GET", `/tokens/${encodeURIComponent(mint)}/buyer-quality`);
|
|
202
|
+
}
|
|
203
|
+
/** Bulk buyer-quality scoring for up to 50 mints. Shares the single-mint 5-min LRU cache. */
|
|
204
|
+
getTokenBuyerQualityBatch(mints) {
|
|
205
|
+
return this.restRequest("POST", "/tokens/batch/buyer-quality", { mints });
|
|
206
|
+
}
|
|
207
|
+
// ── Token intelligence (/token/{mint}) ──
|
|
208
|
+
/** Comprehensive per-mint snapshot: price, MC, volume, deployer, KOL activity, age, blacklist. */
|
|
209
|
+
getToken(mint) {
|
|
210
|
+
return this.restRequest("GET", `/token/${encodeURIComponent(mint)}`);
|
|
211
|
+
}
|
|
212
|
+
/** Bulk lookup of up to 50 mints — same per-mint shape as getToken(). 10-20× cheaper than N sequential calls. */
|
|
213
|
+
getTokenBatch(mints) {
|
|
214
|
+
return this.restRequest("POST", "/token/batch", { mints });
|
|
201
215
|
}
|
|
202
216
|
// ── Copy-Trade Rules (PRO/ULTRA) ──
|
|
203
217
|
copyTradeList() {
|
package/package.json
CHANGED