@switch-win/sdk 1.2.6 → 1.2.7

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 CHANGED
@@ -428,13 +428,19 @@ curl -H "x-api-key: YOUR_KEY" "https://quote.switch.win/swap/adapters?network=pu
428
428
  { "index": 17, "name": "SwitchLimitOrder", "address": "0xa799f49dcdec9056293187faa5f6f3727942a4ca" },
429
429
  { "index": 18, "name": "SwitchX", "address": "0xf8744452598883792f235b92452127f4a8587db3" },
430
430
  { "index": 19, "name": "LibertySwapV3", "address": "0xba24bb413ab32f02073385850907ebcf0a357e70" },
431
- { "index": 20, "name": "FinvestaV3", "address": "0x012c44d0c465819ef3ceac208e0c1b272087a8b4" }
431
+ { "index": 20, "name": "FinvestaV3", "address": "0x012c44d0c465819ef3ceac208e0c1b272087a8b4" },
432
+ { "index": 21, "name": "TrenchV2", "address": "0xaf48bb0936d9fa522650236917321d89978a8591" },
433
+ { "index": 22, "name": "TrenchV3", "address": "0x01957ec5fcc079f1bb388b9f261278dac42cf2e9" }
432
434
  ]
433
435
  }
434
436
  ```
435
437
 
436
438
  Finvesta is a Liberty-style V3 venue with fee tiers `100`, `500`, `2500`, and
437
439
  `10000`. It can be selected for normal routes, but it is not transfer-tax safe.
440
+ Trench V2 is a direct-pair adapter with dynamic pair-specific fees and is
441
+ eligible for transfer-tax-sensitive hops. Trench V3 uses direct pool simulation
442
+ across fee tiers `100`, `500`, `2500`, `3000`, and `10000`; like other V3
443
+ callback adapters, it is not transfer-tax safe.
438
444
  Always treat the live `/swap/adapters` response as the runtime source of truth.
439
445
 
440
446
  #### Using adapter indices to filter routing
@@ -973,6 +979,11 @@ Robinhood constants are available from
973
979
  | **Finvesta V3 adapter** | Index `20`; `0x012c44d0C465819eF3CeAC208e0c1B272087a8b4` (not transfer-tax safe) |
974
980
  | **Finvesta V3 factory** | `0x7f5c7C5144b4B4c6e954A5b2D75C318C5467EFDc` |
975
981
  | **Finvesta fee tiers** | `100`, `500`, `2500`, `10000` |
982
+ | **Trench V2 adapter** | Index `21`; `0xAf48bb0936D9fA522650236917321D89978A8591` (direct-pair, transfer-tax safe) |
983
+ | **Trench V2 factory** | `0xA024e4574406BEf89e624c75758c700B5bED27C7` |
984
+ | **Trench V3 adapter** | Index `22`; `0x01957eC5FCC079f1bB388b9f261278daC42cf2E9` (not transfer-tax safe) |
985
+ | **Trench V3 factory** | `0xCAeF0a906F3323595A8faA14DF7eDee6F59220af` |
986
+ | **Trench V3 fee tiers** | `100`, `500`, `2500`, `3000`, `10000` |
976
987
  | **Fee denominator** | `10000` (basis points) |
977
988
  | **Max slippage** | `5000` bps (50 %) |
978
989
  | **Max fee** | `100` bps (1 %) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switch-win/sdk",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Official integration kit for the Switch DEX Aggregator on PulseChain and Robinhood Chain",
5
5
  "author": "BuildTheTech",
6
6
  "license": "MIT",
package/src/constants.ts CHANGED
@@ -64,6 +64,35 @@ export const FINVESTA_V3_FACTORY =
64
64
 
65
65
  /** Factory-enabled Finvesta fee tiers, in hundredths of one basis point. */
66
66
  export const FINVESTA_V3_FEE_TIERS = [100, 500, 2500, 10000] as const;
67
+
68
+ /** Trench V2's production direct-pair adapter index in SwitchRouter. */
69
+ export const TRENCH_V2_ADAPTER_INDEX = 21;
70
+
71
+ /**
72
+ * Verified Trench V2 direct-pair adapter.
73
+ * Eligible for transfer-tax-sensitive hops because input is sent directly to
74
+ * the pair and execution measures the amount actually received.
75
+ */
76
+ export const TRENCH_V2_ADAPTER =
77
+ "0xAf48bb0936D9fA522650236917321D89978A8591";
78
+
79
+ /** Trench V2 factory queried for pairs and pair-specific fees. */
80
+ export const TRENCH_V2_FACTORY =
81
+ "0xA024e4574406BEf89e624c75758c700B5bED27C7";
82
+
83
+ /** Trench V3's production self-quoter adapter index in SwitchRouter. */
84
+ export const TRENCH_V3_ADAPTER_INDEX = 22;
85
+
86
+ /** Verified Trench V3 adapter. Not safe for transfer-tax-sensitive hops. */
87
+ export const TRENCH_V3_ADAPTER =
88
+ "0x01957eC5FCC079f1bB388b9f261278daC42cf2E9";
89
+
90
+ /** Trench V3 factory queried by the adapter. */
91
+ export const TRENCH_V3_FACTORY =
92
+ "0xCAeF0a906F3323595A8faA14DF7eDee6F59220af";
93
+
94
+ /** Factory-enabled Trench V3 fee tiers, in hundredths of one basis point. */
95
+ export const TRENCH_V3_FEE_TIERS = [100, 500, 2500, 3000, 10000] as const;
67
96
 
68
97
  // ── Limit Order contract ────────────────────────────────────────────────
69
98
 
package/src/index.ts CHANGED
@@ -66,6 +66,13 @@ export {
66
66
  FINVESTA_V3_ADAPTER,
67
67
  FINVESTA_V3_FACTORY,
68
68
  FINVESTA_V3_FEE_TIERS,
69
+ TRENCH_V2_ADAPTER_INDEX,
70
+ TRENCH_V2_ADAPTER,
71
+ TRENCH_V2_FACTORY,
72
+ TRENCH_V3_ADAPTER_INDEX,
73
+ TRENCH_V3_ADAPTER,
74
+ TRENCH_V3_FACTORY,
75
+ TRENCH_V3_FEE_TIERS,
69
76
  FEE_DENOMINATOR,
70
77
  MAX_FEE_BPS,
71
78
  MAX_SLIPPAGE_BPS,