madeonsol 1.9.0 → 1.9.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.
Files changed (2) hide show
  1. package/README.md +8 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -498,8 +498,8 @@ Real-time trades across **9+ Solana DEX programs** (Pump.fun, PumpAMM, PumpSwap,
498
498
  ```ts
499
499
  import { WebSocket } from "ws"; // or native WebSocket in browsers/Bun
500
500
 
501
- const { dex_ws_url } = await client.stream.getToken();
502
- const ws = new WebSocket(dex_ws_url!);
501
+ const { token, dex_ws_url } = await client.stream.getToken();
502
+ const ws = new WebSocket(`${dex_ws_url}?token=${token}`); // token MUST be appended as query param
503
503
 
504
504
  ws.on("open", () => {
505
505
  // Multi-subscription: each sub has its own sub_id and filters
@@ -538,12 +538,14 @@ ws.on("message", (raw) => {
538
538
  #### Server → client message shapes
539
539
 
540
540
  ```ts
541
- { type: "capabilities", limits: { max_subs: 10, max_replay: 500, ... } } // on connect
542
- { type: "subscribed", sub_id: "fresh-pumpfun" }
541
+ { type: "connected", tier: "ULTRA", capabilities: { max_subs: 10, max_replay: 500, dex_names: [...], deployer_tiers: [...] } } // on connect
542
+ { type: "subscribed", sub_id: "fresh-pumpfun", filters: { ... } }
543
543
  { type: "replay_done", sub_id: "fresh-pumpfun", count: 50 } // after backfill
544
- { type: "updated", sub_id: "fresh-pumpfun" }
544
+ { type: "updated", sub_id: "fresh-pumpfun", filters: { ... } }
545
545
  { type: "unsubscribed", sub_id: "fresh-pumpfun" }
546
- { type: "error", message: "..." }
546
+ { type: "list", subs: [{ sub_id, filters }] } // reply to { type: "list" }
547
+ { type: "heartbeat", ts: 1712160000000 } // every 30s
548
+ { type: "error", sub_id?, message: "..." }
547
549
  { channel: "dex:trades", sub_id, data: { ... }, replay: false, ts: 1712160000000 }
548
550
  ```
549
551
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madeonsol",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Official SDK for the MadeOnSol Solana API — KOL wallet tracking, Pump.fun deployer intelligence, and tool directory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",