@madeonsol/plugin-madeonsol 1.3.0 → 1.4.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 +5 -42
- package/package.json +1 -1
- package/dist/actions/deployer-alerts.d.ts +0 -2
- package/dist/actions/deployer-alerts.js +0 -55
- package/dist/actions/kol-alerts-recent.d.ts +0 -2
- package/dist/actions/kol-alerts-recent.js +0 -48
- package/dist/actions/kol-compare.d.ts +0 -2
- package/dist/actions/kol-compare.js +0 -57
- package/dist/actions/kol-coordination.d.ts +0 -2
- package/dist/actions/kol-coordination.js +0 -50
- package/dist/actions/kol-feed.d.ts +0 -2
- package/dist/actions/kol-feed.js +0 -46
- package/dist/actions/kol-leaderboard.d.ts +0 -2
- package/dist/actions/kol-leaderboard.js +0 -45
- package/dist/actions/kol-token-entry-order.d.ts +0 -2
- package/dist/actions/kol-token-entry-order.js +0 -53
- package/dist/actions/wallet-tracker.d.ts +0 -3
- package/dist/actions/wallet-tracker.js +0 -84
- package/dist/client.d.ts +0 -404
- package/dist/client.js +0 -282
- package/dist/index.d.ts +0 -17
- package/dist/index.js +0 -72
package/dist/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { kolFeedAction } from "./actions/kol-feed.js";
|
|
2
|
-
import { kolCoordinationAction } from "./actions/kol-coordination.js";
|
|
3
|
-
import { kolLeaderboardAction } from "./actions/kol-leaderboard.js";
|
|
4
|
-
import { deployerAlertsAction } from "./actions/deployer-alerts.js";
|
|
5
|
-
import { walletTrackerWatchlistAction, walletTrackerTradesAction } from "./actions/wallet-tracker.js";
|
|
6
|
-
import { kolTokenEntryOrderAction } from "./actions/kol-token-entry-order.js";
|
|
7
|
-
import { kolCompareAction } from "./actions/kol-compare.js";
|
|
8
|
-
import { kolAlertsRecentAction } from "./actions/kol-alerts-recent.js";
|
|
9
|
-
import { MadeOnSolClient } from "./client.js";
|
|
10
|
-
/** Key used to store the initialized client on the runtime */
|
|
11
|
-
export const MADEONSOL_CLIENT_KEY = "madeonsol:client";
|
|
12
|
-
export const madeOnSolPlugin = {
|
|
13
|
-
name: "madeonsol",
|
|
14
|
-
description: "Query Solana KOL trading intelligence and deployer analytics from MadeOnSol. Tracks 1,000+ KOL wallets and 6,700+ Pump.fun deployers.",
|
|
15
|
-
actions: [
|
|
16
|
-
kolFeedAction,
|
|
17
|
-
kolCoordinationAction,
|
|
18
|
-
kolLeaderboardAction,
|
|
19
|
-
deployerAlertsAction,
|
|
20
|
-
walletTrackerWatchlistAction,
|
|
21
|
-
walletTrackerTradesAction,
|
|
22
|
-
kolTokenEntryOrderAction,
|
|
23
|
-
kolCompareAction,
|
|
24
|
-
kolAlertsRecentAction,
|
|
25
|
-
],
|
|
26
|
-
/**
|
|
27
|
-
* Initialize the MadeOnSol client.
|
|
28
|
-
* Auth priority: MADEONSOL_API_KEY > SVM_PRIVATE_KEY (x402).
|
|
29
|
-
* Get a free `msk_` API key at madeonsol.com/developer — no wallet needed.
|
|
30
|
-
*
|
|
31
|
-
* v1.0 breaking change: RAPIDAPI_KEY support has been removed
|
|
32
|
-
* (MadeOnSol RapidAPI marketplace was retired 2026-04-19).
|
|
33
|
-
*/
|
|
34
|
-
init: async (_config, runtime) => {
|
|
35
|
-
const baseUrl = String(runtime.getSetting?.("MADEONSOL_API_URL") || "https://madeonsol.com");
|
|
36
|
-
const apiKey = runtime.getSetting?.("MADEONSOL_API_KEY");
|
|
37
|
-
const privateKey = runtime.getSetting?.("SVM_PRIVATE_KEY");
|
|
38
|
-
let fetchFn;
|
|
39
|
-
if (apiKey) {
|
|
40
|
-
console.log("[madeonsol] Using MadeOnSol API key (Bearer auth)");
|
|
41
|
-
}
|
|
42
|
-
else if (privateKey) {
|
|
43
|
-
try {
|
|
44
|
-
const { wrapFetchWithPayment } = await import("@x402/fetch");
|
|
45
|
-
const { x402Client } = await import("@x402/core/client");
|
|
46
|
-
const { ExactSvmScheme } = await import("@x402/svm/exact/client");
|
|
47
|
-
const { createKeyPairSignerFromBytes } = await import("@solana/kit");
|
|
48
|
-
const { base58 } = await import("@scure/base");
|
|
49
|
-
const signer = await createKeyPairSignerFromBytes(base58.decode(privateKey));
|
|
50
|
-
const client = new x402Client();
|
|
51
|
-
client.register("solana:*", new ExactSvmScheme(signer));
|
|
52
|
-
fetchFn = wrapFetchWithPayment(fetch, client);
|
|
53
|
-
console.log(`[madeonsol] x402 payments enabled, wallet: ${signer.address}`);
|
|
54
|
-
}
|
|
55
|
-
catch (err) {
|
|
56
|
-
console.warn("[madeonsol] x402 payment setup failed:", err);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
console.warn("[madeonsol] No auth configured — every API call will fail.\n" +
|
|
61
|
-
" → Get a free MADEONSOL_API_KEY (200 req/day, no card) at https://madeonsol.com/developer\n" +
|
|
62
|
-
" → Or set SVM_PRIVATE_KEY for x402 micropayments.");
|
|
63
|
-
}
|
|
64
|
-
const madeOnSolClient = new MadeOnSolClient({ baseUrl, apiKey, fetchFn });
|
|
65
|
-
runtime[MADEONSOL_CLIENT_KEY] = madeOnSolClient;
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
export default madeOnSolPlugin;
|
|
69
|
-
export { MadeOnSolClient } from "./client.js";
|
|
70
|
-
export { kolFeedAction, kolCoordinationAction, kolLeaderboardAction, deployerAlertsAction };
|
|
71
|
-
export { walletTrackerWatchlistAction, walletTrackerTradesAction };
|
|
72
|
-
export { kolTokenEntryOrderAction, kolCompareAction, kolAlertsRecentAction };
|