@madeonsol/plugin-madeonsol 0.3.0 → 0.3.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/dist/client.d.ts CHANGED
@@ -57,6 +57,36 @@ export declare class MadeOnSolClient {
57
57
  error?: string;
58
58
  status: number;
59
59
  }>;
60
+ getKolPairs(params?: {
61
+ period?: string;
62
+ min_shared?: string;
63
+ limit?: string;
64
+ }): Promise<{
65
+ data?: unknown;
66
+ error?: string;
67
+ status: number;
68
+ }>;
69
+ getKolHotTokens(params?: {
70
+ period?: string;
71
+ min_kols?: string;
72
+ limit?: string;
73
+ }): Promise<{
74
+ data?: unknown;
75
+ error?: string;
76
+ status: number;
77
+ }>;
78
+ getKolTiming(wallet: string, params?: {
79
+ period?: string;
80
+ }): Promise<{
81
+ data?: unknown;
82
+ error?: string;
83
+ status: number;
84
+ }>;
85
+ getDeployerTrajectory(wallet: string): Promise<{
86
+ data?: unknown;
87
+ error?: string;
88
+ status: number;
89
+ }>;
60
90
  private restRequest;
61
91
  createWebhook(params: {
62
92
  url: string;
package/dist/client.js CHANGED
@@ -65,6 +65,19 @@ export class MadeOnSolClient {
65
65
  getDeployerAlerts(params) {
66
66
  return this.query("/api/x402/deployer-hunter/alerts", params);
67
67
  }
68
+ getKolPairs(params) {
69
+ return this.query("/api/x402/kol/pairs", params);
70
+ }
71
+ getKolHotTokens(params) {
72
+ return this.query("/api/x402/kol/tokens/hot", params);
73
+ }
74
+ getKolTiming(wallet, params) {
75
+ const qs = params?.period ? `?period=${params.period}` : "";
76
+ return this.restRequest("GET", `/kol/${wallet}/timing${qs}`);
77
+ }
78
+ getDeployerTrajectory(wallet) {
79
+ return this.restRequest("GET", `/deployer-hunter/${wallet}/trajectory`);
80
+ }
68
81
  // ── Webhook management (requires API key or RapidAPI key with Pro/Ultra) ──
69
82
  async restRequest(method, path, body) {
70
83
  if (this.authMode !== "madeonsol" && this.authMode !== "rapidapi") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madeonsol/plugin-madeonsol",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "ElizaOS plugin for MadeOnSol — Solana KOL intelligence and deployer analytics via x402 micropayments",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/client.ts CHANGED
@@ -87,6 +87,23 @@ export class MadeOnSolClient {
87
87
  return this.query("/api/x402/deployer-hunter/alerts", params);
88
88
  }
89
89
 
90
+ getKolPairs(params?: { period?: string; min_shared?: string; limit?: string }) {
91
+ return this.query("/api/x402/kol/pairs", params);
92
+ }
93
+
94
+ getKolHotTokens(params?: { period?: string; min_kols?: string; limit?: string }) {
95
+ return this.query("/api/x402/kol/tokens/hot", params);
96
+ }
97
+
98
+ getKolTiming(wallet: string, params?: { period?: string }) {
99
+ const qs = params?.period ? `?period=${params.period}` : "";
100
+ return this.restRequest("GET", `/kol/${wallet}/timing${qs}`);
101
+ }
102
+
103
+ getDeployerTrajectory(wallet: string) {
104
+ return this.restRequest("GET", `/deployer-hunter/${wallet}/trajectory`);
105
+ }
106
+
90
107
  // ── Webhook management (requires API key or RapidAPI key with Pro/Ultra) ──
91
108
 
92
109
  private async restRequest<T = unknown>(method: string, path: string, body?: unknown): Promise<{ data?: T; error?: string; status: number }> {