sol-trade-sdk 0.1.0 → 0.1.2

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 (50) hide show
  1. package/README.md +12 -5
  2. package/dist/cache/index.d.mts +70 -0
  3. package/dist/cache/index.d.ts +70 -0
  4. package/dist/cache/index.js +259 -0
  5. package/dist/cache/index.mjs +19 -0
  6. package/dist/chunk-64JY4YH6.mjs +227 -0
  7. package/dist/chunk-6BWS3CLP.mjs +16 -0
  8. package/dist/{chunk-NEZDFAYA.mjs → chunk-H4ZUMTTP.mjs} +864 -336
  9. package/dist/{chunk-MMQAMIKR.mjs → chunk-L6RZIXXN.mjs} +4 -11
  10. package/dist/{clients-VITWK7B6.mjs → chunk-V7QDWUXJ.mjs} +39 -39
  11. package/dist/clients-PSG35HN4.mjs +107 -0
  12. package/dist/index-hZh5hrGj.d.mts +3089 -0
  13. package/dist/index-yJ5AsNfm.d.ts +3089 -0
  14. package/dist/index.d.mts +2 -2658
  15. package/dist/index.d.ts +2 -2658
  16. package/dist/index.js +794 -278
  17. package/dist/index.mjs +21 -4
  18. package/dist/perf/index.mjs +2 -1
  19. package/dist/pool/index.d.mts +88 -0
  20. package/dist/pool/index.d.ts +88 -0
  21. package/dist/pool/index.js +262 -0
  22. package/dist/pool/index.mjs +233 -0
  23. package/dist/rpc/index.d.mts +77 -0
  24. package/dist/rpc/index.d.ts +77 -0
  25. package/dist/rpc/index.js +447 -0
  26. package/dist/rpc/index.mjs +223 -0
  27. package/dist/swqos/index.d.mts +416 -0
  28. package/dist/swqos/index.d.ts +416 -0
  29. package/dist/swqos/index.js +3450 -0
  30. package/dist/swqos/index.mjs +1375 -0
  31. package/dist/trading/index.d.mts +998 -0
  32. package/dist/trading/index.d.ts +998 -0
  33. package/dist/trading/index.js +4302 -0
  34. package/dist/trading/index.mjs +2097 -0
  35. package/package.json +5 -4
  36. package/src/__tests__/hotpath.test.ts +33 -0
  37. package/src/__tests__/parser-compat.test.ts +82 -0
  38. package/src/__tests__/protocol-parity.test.ts +242 -0
  39. package/src/__tests__/sdk.test.ts +16 -0
  40. package/src/cache/index.ts +1 -0
  41. package/src/hotpath/executor.ts +25 -18
  42. package/src/index.ts +330 -92
  43. package/src/instruction/meteora_damm_v2_builder.ts +88 -20
  44. package/src/instruction/pumpfun_builder.ts +133 -43
  45. package/src/instruction/raydium_amm_v4_builder.ts +244 -35
  46. package/src/instruction/raydium_cpmm_builder.ts +87 -69
  47. package/src/params/index.ts +38 -5
  48. package/src/pool/index.ts +1 -0
  49. package/src/rpc/index.ts +1 -0
  50. package/src/trading/factory.ts +10 -0
@@ -1,14 +1,7 @@
1
- var __defProp = Object.defineProperty;
2
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
- }) : x)(function(x) {
5
- if (typeof require !== "undefined") return require.apply(this, arguments);
6
- throw Error('Dynamic require of "' + x + '" is not supported');
7
- });
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
1
+ import {
2
+ __export,
3
+ __require
4
+ } from "./chunk-6BWS3CLP.mjs";
12
5
 
13
6
  // src/perf/index.ts
14
7
  var perf_exports = {};
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  TradeError
3
- } from "./chunk-NEZDFAYA.mjs";
4
- import "./chunk-MMQAMIKR.mjs";
3
+ } from "./chunk-H4ZUMTTP.mjs";
5
4
 
6
5
  // src/swqos/clients.ts
7
6
  function randomChoice(arr) {
@@ -1316,55 +1315,56 @@ function createSwqosClient(swqosType, rpcUrl, authToken, region, customUrl, mevP
1316
1315
  };
1317
1316
  return ClientFactory.createClient(config, rpcUrl);
1318
1317
  }
1318
+
1319
1319
  export {
1320
- ASTRALANE_ENDPOINTS,
1321
- ASTRALANE_QUIC_HOSTS,
1322
- AstralaneClient,
1323
- AstralaneQuicClient,
1324
- BLOCK_RAZOR_ENDPOINTS,
1325
- BLOXROUTE_ENDPOINTS,
1326
- BlockRazorClient,
1327
- BloxrouteClient,
1328
- ClientFactory,
1329
- DefaultClient,
1330
- FLASH_BLOCK_ENDPOINTS,
1331
- FlashBlockClient,
1332
- HELIUS_ENDPOINTS,
1333
- HeliusClient,
1334
- JITO_ENDPOINTS,
1335
- JitoClient,
1336
- LightspeedClient,
1337
- MIN_TIP_ASTRALANE,
1338
- MIN_TIP_BLOCK_RAZOR,
1320
+ randomChoice,
1321
+ MIN_TIP_JITO,
1339
1322
  MIN_TIP_BLOXROUTE,
1340
- MIN_TIP_DEFAULT,
1323
+ MIN_TIP_ZERO_SLOT,
1324
+ MIN_TIP_TEMPORAL,
1341
1325
  MIN_TIP_FLASH_BLOCK,
1326
+ MIN_TIP_BLOCK_RAZOR,
1327
+ MIN_TIP_NODE1,
1328
+ MIN_TIP_ASTRALANE,
1342
1329
  MIN_TIP_HELIUS,
1343
1330
  MIN_TIP_HELIUS_NORMAL,
1344
- MIN_TIP_JITO,
1331
+ MIN_TIP_STELLIUM,
1345
1332
  MIN_TIP_LIGHTSPEED,
1346
1333
  MIN_TIP_NEXT_BLOCK,
1347
- MIN_TIP_NODE1,
1348
1334
  MIN_TIP_SOYAS,
1349
1335
  MIN_TIP_SPEEDLANDING,
1350
- MIN_TIP_STELLIUM,
1351
- MIN_TIP_TEMPORAL,
1352
- MIN_TIP_ZERO_SLOT,
1353
- NEXT_BLOCK_ENDPOINTS,
1336
+ MIN_TIP_DEFAULT,
1337
+ JITO_ENDPOINTS,
1338
+ BLOXROUTE_ENDPOINTS,
1339
+ ZERO_SLOT_ENDPOINTS,
1340
+ TEMPORAL_ENDPOINTS,
1341
+ FLASH_BLOCK_ENDPOINTS,
1342
+ HELIUS_ENDPOINTS,
1354
1343
  NODE1_ENDPOINTS,
1355
- NextBlockClient,
1356
- Node1Client,
1357
- Node1QuicClient,
1344
+ BLOCK_RAZOR_ENDPOINTS,
1345
+ ASTRALANE_ENDPOINTS,
1346
+ ASTRALANE_QUIC_HOSTS,
1347
+ STELLIUM_ENDPOINTS,
1348
+ NEXT_BLOCK_ENDPOINTS,
1358
1349
  SOYAS_ENDPOINTS,
1359
1350
  SPEEDLANDING_ENDPOINTS,
1360
- STELLIUM_ENDPOINTS,
1351
+ JitoClient,
1352
+ BloxrouteClient,
1353
+ ZeroSlotClient,
1354
+ TemporalClient,
1355
+ FlashBlockClient,
1356
+ HeliusClient,
1357
+ Node1Client,
1358
+ Node1QuicClient,
1359
+ BlockRazorClient,
1360
+ AstralaneClient,
1361
+ AstralaneQuicClient,
1362
+ StelliumClient,
1363
+ LightspeedClient,
1364
+ NextBlockClient,
1365
+ DefaultClient,
1361
1366
  SoyasClient,
1362
1367
  SpeedlandingClient,
1363
- StelliumClient,
1364
- TEMPORAL_ENDPOINTS,
1365
- TemporalClient,
1366
- ZERO_SLOT_ENDPOINTS,
1367
- ZeroSlotClient,
1368
- createSwqosClient,
1369
- randomChoice
1368
+ ClientFactory,
1369
+ createSwqosClient
1370
1370
  };
@@ -0,0 +1,107 @@
1
+ import {
2
+ ASTRALANE_ENDPOINTS,
3
+ ASTRALANE_QUIC_HOSTS,
4
+ AstralaneClient,
5
+ AstralaneQuicClient,
6
+ BLOCK_RAZOR_ENDPOINTS,
7
+ BLOXROUTE_ENDPOINTS,
8
+ BlockRazorClient,
9
+ BloxrouteClient,
10
+ ClientFactory,
11
+ DefaultClient,
12
+ FLASH_BLOCK_ENDPOINTS,
13
+ FlashBlockClient,
14
+ HELIUS_ENDPOINTS,
15
+ HeliusClient,
16
+ JITO_ENDPOINTS,
17
+ JitoClient,
18
+ LightspeedClient,
19
+ MIN_TIP_ASTRALANE,
20
+ MIN_TIP_BLOCK_RAZOR,
21
+ MIN_TIP_BLOXROUTE,
22
+ MIN_TIP_DEFAULT,
23
+ MIN_TIP_FLASH_BLOCK,
24
+ MIN_TIP_HELIUS,
25
+ MIN_TIP_HELIUS_NORMAL,
26
+ MIN_TIP_JITO,
27
+ MIN_TIP_LIGHTSPEED,
28
+ MIN_TIP_NEXT_BLOCK,
29
+ MIN_TIP_NODE1,
30
+ MIN_TIP_SOYAS,
31
+ MIN_TIP_SPEEDLANDING,
32
+ MIN_TIP_STELLIUM,
33
+ MIN_TIP_TEMPORAL,
34
+ MIN_TIP_ZERO_SLOT,
35
+ NEXT_BLOCK_ENDPOINTS,
36
+ NODE1_ENDPOINTS,
37
+ NextBlockClient,
38
+ Node1Client,
39
+ Node1QuicClient,
40
+ SOYAS_ENDPOINTS,
41
+ SPEEDLANDING_ENDPOINTS,
42
+ STELLIUM_ENDPOINTS,
43
+ SoyasClient,
44
+ SpeedlandingClient,
45
+ StelliumClient,
46
+ TEMPORAL_ENDPOINTS,
47
+ TemporalClient,
48
+ ZERO_SLOT_ENDPOINTS,
49
+ ZeroSlotClient,
50
+ createSwqosClient,
51
+ randomChoice
52
+ } from "./chunk-V7QDWUXJ.mjs";
53
+ import "./chunk-H4ZUMTTP.mjs";
54
+ import "./chunk-L6RZIXXN.mjs";
55
+ import "./chunk-6BWS3CLP.mjs";
56
+ export {
57
+ ASTRALANE_ENDPOINTS,
58
+ ASTRALANE_QUIC_HOSTS,
59
+ AstralaneClient,
60
+ AstralaneQuicClient,
61
+ BLOCK_RAZOR_ENDPOINTS,
62
+ BLOXROUTE_ENDPOINTS,
63
+ BlockRazorClient,
64
+ BloxrouteClient,
65
+ ClientFactory,
66
+ DefaultClient,
67
+ FLASH_BLOCK_ENDPOINTS,
68
+ FlashBlockClient,
69
+ HELIUS_ENDPOINTS,
70
+ HeliusClient,
71
+ JITO_ENDPOINTS,
72
+ JitoClient,
73
+ LightspeedClient,
74
+ MIN_TIP_ASTRALANE,
75
+ MIN_TIP_BLOCK_RAZOR,
76
+ MIN_TIP_BLOXROUTE,
77
+ MIN_TIP_DEFAULT,
78
+ MIN_TIP_FLASH_BLOCK,
79
+ MIN_TIP_HELIUS,
80
+ MIN_TIP_HELIUS_NORMAL,
81
+ MIN_TIP_JITO,
82
+ MIN_TIP_LIGHTSPEED,
83
+ MIN_TIP_NEXT_BLOCK,
84
+ MIN_TIP_NODE1,
85
+ MIN_TIP_SOYAS,
86
+ MIN_TIP_SPEEDLANDING,
87
+ MIN_TIP_STELLIUM,
88
+ MIN_TIP_TEMPORAL,
89
+ MIN_TIP_ZERO_SLOT,
90
+ NEXT_BLOCK_ENDPOINTS,
91
+ NODE1_ENDPOINTS,
92
+ NextBlockClient,
93
+ Node1Client,
94
+ Node1QuicClient,
95
+ SOYAS_ENDPOINTS,
96
+ SPEEDLANDING_ENDPOINTS,
97
+ STELLIUM_ENDPOINTS,
98
+ SoyasClient,
99
+ SpeedlandingClient,
100
+ StelliumClient,
101
+ TEMPORAL_ENDPOINTS,
102
+ TemporalClient,
103
+ ZERO_SLOT_ENDPOINTS,
104
+ ZeroSlotClient,
105
+ createSwqosClient,
106
+ randomChoice
107
+ };