@switch-win/sdk 1.0.9 → 1.1.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 CHANGED
@@ -623,13 +623,13 @@ GET /swap/quote?network=pulsechain&from=0xA1077a294dDE1B09bB078844df40758a5D0f9a
623
623
  // Transaction object — only present when `sender` is provided
624
624
  // ⚠️ Always use tx.to from this response — do NOT hardcode the router address
625
625
  "tx": {
626
- "to": "0xc6d4f096A7a4B3d534DEa725821346Ee1b4FE5CE",
626
+ "to": "0x0305fcb5dA680EA6fd1B01A96C1949175B99d406",
627
627
  "data": "0x...", // ABI-encoded goSwitch() calldata with feeOnOutput = false
628
628
  "value": "0" // "0" for ERC-20 input; amountIn for native PLS input
629
629
  },
630
630
  // Same swap but with fee taken from the output token instead
631
631
  "txFeeOnOutput": {
632
- "to": "0xc6d4f096A7a4B3d534DEa725821346Ee1b4FE5CE",
632
+ "to": "0x0305fcb5dA680EA6fd1B01A96C1949175B99d406",
633
633
  "data": "0x...", // ABI-encoded goSwitch() calldata with feeOnOutput = true
634
634
  "value": "0"
635
635
  }
@@ -897,9 +897,11 @@ All constants are importable from [`src/constants.ts`](src/constants.ts).
897
897
  | Name | Value |
898
898
  |---|---|
899
899
  | **Chain** | PulseChain (Chain ID `369`) |
900
- | **SwitchRouter** | `0xc6d4f096A7a4B3d534DEa725821346Ee1b4FE5CE` |
901
- | **SwitchLimitOrder** | `0x0e884072a891b406C0D814907A1E2310fE5F5Deb` |
902
- | **SwitchPLSFlow** | `0x88c9e2C83b6B7c707602e548481e58E920694E64` |
900
+ | **SwitchRouter** | `0x0305fcb5dA680EA6fd1B01A96C1949175B99d406` |
901
+ | **SwitchLimitOrder** (V2 — current) | `0x8e3881bdF81Fc0211383B2e576076B654F7aFD86` |
902
+ | **SwitchLimitOrder** (V1 — legacy) | `0x0e884072a891b406C0D814907A1E2310fE5F5Deb` |
903
+ | **SwitchPLSFlow** (V2 — current) | `0xCf5606bdC750d8626Cec32CA2E1BB207968db1D5` |
904
+ | **SwitchPLSFlow** (V1 — legacy) | `0x88c9e2C83b6B7c707602e548481e58E920694E64` |
903
905
  | **Native PLS sentinel** | `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` |
904
906
  | **WPLS** | `0xA1077a294dDE1B09bB078844df40758a5D0f9a27` |
905
907
  | **Fee denominator** | `10000` (basis points) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switch-win/sdk",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Official integration kit for the Switch DEX Aggregator on PulseChain — types, constants, ABIs, limit orders, and examples",
5
5
  "author": "BuildTheTech",
6
6
  "license": "MIT",
package/src/constants.ts CHANGED
@@ -82,8 +82,25 @@ export const SWITCH_LIMIT_ORDER_V2 = SWITCH_LIMIT_ORDER;
82
82
  * Used for native PLS limit orders. Users send PLS to this contract,
83
83
  * which wraps to WPLS and creates the limit order on their behalf.
84
84
  * No EIP-712 signing required — single transaction.
85
+ *
86
+ * This is the current production PLSFlow contract.
87
+ * For integrators, treat this as user-facing V2.
88
+ */
89
+ export const SWITCH_PLS_FLOW = "0xCf5606bdC750d8626Cec32CA2E1BB207968db1D5";
90
+
91
+ /**
92
+ * Previous production SwitchPLSFlow contract on PulseChain.
93
+ *
94
+ * For integrators, treat this as user-facing V1.
95
+ */
96
+ export const SWITCH_PLS_FLOW_V1 = "0x88c9e2C83b6B7c707602e548481e58E920694E64";
97
+
98
+ /**
99
+ * Current production SwitchPLSFlow contract alias.
100
+ *
101
+ * Use this if you want explicit user-facing version naming in integrations.
85
102
  */
86
- export const SWITCH_PLS_FLOW = "0x88c9e2C83b6B7c707602e548481e58E920694E64";
103
+ export const SWITCH_PLS_FLOW_V2 = SWITCH_PLS_FLOW;
87
104
 
88
105
  // ── Limit Order API endpoints ───────────────────────────────────────────────
89
106