@madeonsol/plugin-madeonsol 0.4.0 → 0.5.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 +16 -0
- package/dist/client.js +7 -0
- package/package.json +1 -1
- package/src/client.ts +9 -0
package/dist/client.d.ts
CHANGED
|
@@ -80,6 +80,22 @@ export declare class MadeOnSolClient {
|
|
|
80
80
|
error?: string;
|
|
81
81
|
status: number;
|
|
82
82
|
}>;
|
|
83
|
+
getKolTrendingTokens(params?: {
|
|
84
|
+
period?: string;
|
|
85
|
+
min_kols?: string;
|
|
86
|
+
limit?: string;
|
|
87
|
+
}): Promise<{
|
|
88
|
+
data?: unknown;
|
|
89
|
+
error?: string;
|
|
90
|
+
status: number;
|
|
91
|
+
}>;
|
|
92
|
+
getKolPnl(wallet: string, params?: {
|
|
93
|
+
period?: string;
|
|
94
|
+
}): Promise<{
|
|
95
|
+
data?: unknown;
|
|
96
|
+
error?: string;
|
|
97
|
+
status: number;
|
|
98
|
+
}>;
|
|
83
99
|
getKolTiming(wallet: string, params?: {
|
|
84
100
|
period?: string;
|
|
85
101
|
}): Promise<{
|
package/dist/client.js
CHANGED
|
@@ -75,6 +75,13 @@ export class MadeOnSolClient {
|
|
|
75
75
|
getKolHotTokens(params) {
|
|
76
76
|
return this.query("/api/x402/kol/tokens/hot", params);
|
|
77
77
|
}
|
|
78
|
+
getKolTrendingTokens(params) {
|
|
79
|
+
return this.query("/api/x402/kol/tokens/trending", params);
|
|
80
|
+
}
|
|
81
|
+
getKolPnl(wallet, params) {
|
|
82
|
+
const qs = params?.period ? `?period=${params.period}` : "";
|
|
83
|
+
return this.restRequest("GET", `/kol/${wallet}/pnl${qs}`);
|
|
84
|
+
}
|
|
78
85
|
getKolTiming(wallet, params) {
|
|
79
86
|
const qs = params?.period ? `?period=${params.period}` : "";
|
|
80
87
|
return this.restRequest("GET", `/kol/${wallet}/timing${qs}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madeonsol/plugin-madeonsol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "ElizaOS plugin for MadeOnSol \u00e2\u20ac\u201d Solana KOL intelligence and deployer analytics via x402 micropayments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/src/client.ts
CHANGED
|
@@ -99,6 +99,15 @@ export class MadeOnSolClient {
|
|
|
99
99
|
return this.query("/api/x402/kol/tokens/hot", params);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
getKolTrendingTokens(params?: { period?: string; min_kols?: string; limit?: string }) {
|
|
103
|
+
return this.query("/api/x402/kol/tokens/trending", params);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
getKolPnl(wallet: string, params?: { period?: string }) {
|
|
107
|
+
const qs = params?.period ? `?period=${params.period}` : "";
|
|
108
|
+
return this.restRequest("GET", `/kol/${wallet}/pnl${qs}`);
|
|
109
|
+
}
|
|
110
|
+
|
|
102
111
|
getKolTiming(wallet: string, params?: { period?: string }) {
|
|
103
112
|
const qs = params?.period ? `?period=${params.period}` : "";
|
|
104
113
|
return this.restRequest("GET", `/kol/${wallet}/timing${qs}`);
|