@swapkit/helpers 4.13.13 → 4.14.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,620 @@
1
+ # @swapkit/helpers
2
+
3
+ ## 4.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#274](https://github.com/swapkit/sdk/pull/274) [`d0a20af`](https://github.com/swapkit/sdk/commit/d0a20afe503343174c792a74f20102d9d06baa64) Thanks [@towanTG](https://github.com/towanTG)! - Ship `CHANGELOG.md` in the published package. Each package now lists `CHANGELOG.md` in its `files`, so the changelog ships in the npm tarball alongside `dist/`. Consumers (e.g. the wallets release tooling) can read the underlying SDK changes directly from `node_modules` instead of fetching them from the private GitHub repo.
8
+
9
+ - Updated dependencies [[`d0a20af`](https://github.com/swapkit/sdk/commit/d0a20afe503343174c792a74f20102d9d06baa64)]:
10
+ - @swapkit/contracts@4.1.5
11
+ - @swapkit/tokens@4.3.1
12
+ - @swapkit/types@0.8.1
13
+
14
+ ## 4.14.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#262](https://github.com/swapkit/sdk/pull/262) [`9e84c7a`](https://github.com/swapkit/sdk/commit/9e84c7a0cce9ecd662c1b8cee49f1781271bc49f) Thanks [@towanTG](https://github.com/towanTG)! - Rename the HyperCore chain identifier to HYPE. Adds Chain.Hype and ChainId.Hype as the canonical enum members, keeps deprecated Chain.HyperCore aliases, and updates Hype asset identifiers to use the HYPE chain prefix.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`9e84c7a`](https://github.com/swapkit/sdk/commit/9e84c7a0cce9ecd662c1b8cee49f1781271bc49f)]:
23
+ - @swapkit/types@0.8.0
24
+ - @swapkit/tokens@4.3.0
25
+
26
+ ## 4.13.13
27
+
28
+ ### Patch Changes
29
+
30
+ - [`3623906`](https://github.com/swapkit/sdk/commit/3623906834927abfe6265fa91c21568da6adb852) Thanks [@towanTG](https://github.com/towanTG)! - Fix balance scam filtering for decimal string values returned by the SwapKit balance API.
31
+
32
+ - Updated dependencies []:
33
+ - @swapkit/tokens@4.2.8
34
+
35
+ ## 4.13.12
36
+
37
+ ### Patch Changes
38
+
39
+ - [#257](https://github.com/swapkit/sdk/pull/257) [`8d33750`](https://github.com/swapkit/sdk/commit/8d33750f2c3e7c1cb6353c2a4dcfffe7936207c1) Thanks [@towanTG](https://github.com/towanTG)! - Fix Stellar Horizon handling, reduce EVM balance scam-filter false positives, and allow swap to accept route-with-transaction response types.
40
+
41
+ - Updated dependencies []:
42
+ - @swapkit/tokens@4.2.8
43
+
44
+ ## 4.13.11
45
+
46
+ ### Patch Changes
47
+
48
+ - [#253](https://github.com/swapkit/sdk/pull/253) [`53882f1`](https://github.com/swapkit/sdk/commit/53882f116feff4eabf7bb714dddf4261f6f640d9) Thanks [@towanTG](https://github.com/towanTG)! - Accept NEAR route transaction metadata in SwapKit API response schemas.
49
+
50
+ - Updated dependencies []:
51
+ - @swapkit/tokens@4.2.8
52
+
53
+ ## 4.13.10
54
+
55
+ ### Patch Changes
56
+
57
+ - [#243](https://github.com/swapkit/sdk/pull/243) [`fe496eb`](https://github.com/swapkit/sdk/commit/fe496ebc69e24fb8679e13f0a9ff4ee10ce54699) Thanks [@towanTG](https://github.com/towanTG)! - Add Spark chain configuration and native BTC asset handling.
58
+
59
+ - Updated dependencies [[`fe496eb`](https://github.com/swapkit/sdk/commit/fe496ebc69e24fb8679e13f0a9ff4ee10ce54699)]:
60
+ - @swapkit/types@0.7.5
61
+ - @swapkit/tokens@4.2.8
62
+
63
+ ## 4.13.9
64
+
65
+ ### Patch Changes
66
+
67
+ - [#238](https://github.com/swapkit/sdk/pull/238) [`dfdd850`](https://github.com/swapkit/sdk/commit/dfdd850f10d010f14187983f2082486333df4cd7) Thanks [@towanTG](https://github.com/towanTG)! - Route MAYAN and FLASHNET through the SwapKit plugin and add a Flashnet BTC transfer fallback for wallets without direct signing.
68
+
69
+ - Updated dependencies []:
70
+ - @swapkit/tokens@4.2.8
71
+
72
+ ## 4.13.8
73
+
74
+ ### Patch Changes
75
+
76
+ - [#221](https://github.com/swapkit/sdk/pull/221) [`8cac8c3`](https://github.com/swapkit/sdk/commit/8cac8c34153c3620f186d614cf412700b8a1f44b) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Dependencies bump & installation cleanup
77
+
78
+ - Updated dependencies [[`8cac8c3`](https://github.com/swapkit/sdk/commit/8cac8c34153c3620f186d614cf412700b8a1f44b)]:
79
+ - @swapkit/contracts@4.1.4
80
+ - @swapkit/tokens@4.2.8
81
+
82
+ ## 4.13.7
83
+
84
+ ### Patch Changes
85
+
86
+ - [`1bb5e02`](https://github.com/swapkit/sdk/commit/1bb5e023c929fd4772bfe2d639e624fcb038dd2c) Thanks [@towanTG](https://github.com/towanTG)! - Set the Origin header for widget-key authenticated SwapKit API requests.
87
+
88
+ - Updated dependencies []:
89
+ - @swapkit/tokens@4.2.7
90
+
91
+ ## 4.13.6
92
+
93
+ ### Patch Changes
94
+
95
+ - [#225](https://github.com/swapkit/sdk/pull/225) [`13273d5`](https://github.com/swapkit/sdk/commit/13273d52ec6db5aa779e6a940c904f9ecb6a0821) Thanks [@mfaizan1](https://github.com/mfaizan1)! - - helpers/api/thornode/endpoints.ts: terminate the `baseUrl()` `match(...)` chain with `.otherwise(...)` so it resolves to the actual URL string instead of a `ts-pattern` builder, and default the path segment to `"thorchain"` when `type` is unset. Without this `${nodeUrl}/${type}` produced `"[object Object]/.../"` and broke `new URL()` for every thornode endpoint call where the caller didn't pass a type.
96
+ - utxo-signer/src/transaction.ts: `getOutputAddress` now returns `undefined` for OP_RETURN / unknown-type outputs (`OutScript.decode` returns `{ type: "unknown" }`) instead of letting `Address.encode` throw `Unknown address type=unknown`. Callers iterating tx outputs to detect change/recipient (e.g. the Trezor adapter) already treat `undefined` as "non-address output".
97
+ - Updated dependencies []:
98
+ - @swapkit/tokens@4.2.7
99
+
100
+ ## 4.13.5
101
+
102
+ ### Patch Changes
103
+
104
+ - [#214](https://github.com/swapkit/sdk/pull/214) [`377c3d7`](https://github.com/swapkit/sdk/commit/377c3d75b8b8097794fa6913ea9662627ec4a55a) Thanks [@towanTG](https://github.com/towanTG)! - Update widget request authentication to include `x-widget-id` and sign `widgetId:origin:timestamp`.
105
+
106
+ - Updated dependencies []:
107
+ - @swapkit/tokens@4.2.7
108
+
109
+ ## 4.13.4
110
+
111
+ ### Patch Changes
112
+
113
+ - [#209](https://github.com/swapkit/sdk/pull/209) [`5cb7567`](https://github.com/swapkit/sdk/commit/5cb75672bc705fb82f35770dc1b33d3b87ab2dcf) Thanks [@0xepicode](https://github.com/0xepicode)! - Fix cosmos schema validation
114
+
115
+ - Updated dependencies []:
116
+ - @swapkit/tokens@4.2.7
117
+
118
+ ## 4.13.3
119
+
120
+ ### Patch Changes
121
+
122
+ - [#205](https://github.com/swapkit/sdk/pull/205) [`b57e263`](https://github.com/swapkit/sdk/commit/b57e263961827fa95b9fbe5f83f12897026fad13) Thanks [@towanTG](https://github.com/towanTG)! - Resolve static HyperCore asset identifiers before falling back to async token lookup.
123
+
124
+ - Updated dependencies [[`61488c5`](https://github.com/swapkit/sdk/commit/61488c51a85570e6b9043f6a1dad91745bf2a324)]:
125
+ - @swapkit/tokens@4.2.7
126
+
127
+ ## 4.13.2
128
+
129
+ ### Patch Changes
130
+
131
+ - [#202](https://github.com/swapkit/sdk/pull/202) [`a1b9497`](https://github.com/swapkit/sdk/commit/a1b94971173e9499f48f20836b480908ed05149a) Thanks [@ice-chillios](https://github.com/ice-chillios)! - replace tc thornode and rpc default url + add thornode config
132
+
133
+ - Updated dependencies [[`a1b9497`](https://github.com/swapkit/sdk/commit/a1b94971173e9499f48f20836b480908ed05149a)]:
134
+ - @swapkit/types@0.7.4
135
+ - @swapkit/tokens@4.2.6
136
+
137
+ ## 4.13.1
138
+
139
+ ### Patch Changes
140
+
141
+ - [#200](https://github.com/swapkit/sdk/pull/200) [`1f80e1d`](https://github.com/swapkit/sdk/commit/1f80e1d78b9d6397a027ece5f410ccb5341dd7ba) Thanks [@towanTG](https://github.com/towanTG)! - Fix AssetValue.from() colon parsing for identifiers with `:` in the symbol (e.g. HYPERCORE tokens). The parser no longer misidentifies full identifiers like `CHAIN.SYMBOL:address` as `CHAIN:ADDRESS` shorthand.
142
+
143
+ - Updated dependencies [[`1f80e1d`](https://github.com/swapkit/sdk/commit/1f80e1d78b9d6397a027ece5f410ccb5341dd7ba)]:
144
+ - @swapkit/tokens@4.2.6
145
+
146
+ ## 4.13.0
147
+
148
+ ### Minor Changes
149
+
150
+ - [#196](https://github.com/swapkit/sdk/pull/196) [`616a3cb`](https://github.com/swapkit/sdk/commit/616a3cbf37fd9bd40e4412928e36859de24129de) Thanks [@towanTG](https://github.com/towanTG)! - Replace centralized `V3SwapFlowSupport` map with per-wallet `directSigningSupport`. Each wallet now declares which chains it can sign pre-built API txs for via `createWallet({ directSigningSupport })`. The flag flows to each `ChainWallet` as `supportsDirectSigning` and core reads it at swap time. Removes `V3SwapFlowSupport`, `supportsV3SwapFlow`, and `EVMWallets` from helpers.
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies []:
155
+ - @swapkit/tokens@4.2.5
156
+
157
+ ## 4.12.9
158
+
159
+ ### Patch Changes
160
+
161
+ - [#192](https://github.com/swapkit/sdk/pull/192) [`ea63723`](https://github.com/swapkit/sdk/commit/ea63723b0b9b0d48f64612d22cc37e0ef43f2b07) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Release builder tools
162
+
163
+ - Updated dependencies [[`ea63723`](https://github.com/swapkit/sdk/commit/ea63723b0b9b0d48f64612d22cc37e0ef43f2b07)]:
164
+ - @swapkit/contracts@4.1.3
165
+ - @swapkit/tokens@4.2.5
166
+ - @swapkit/types@0.7.3
167
+
168
+ ## 4.12.8
169
+
170
+ ### Patch Changes
171
+
172
+ - [#190](https://github.com/swapkit/sdk/pull/190) [`acc279b`](https://github.com/swapkit/sdk/commit/acc279b4f7c7d6914df4cabf8115e487c1ce376e) Thanks [@towanTG](https://github.com/towanTG)! - Add FLASHNET to ProviderName enum, improve invalid asset identifier error message, and fix Arbitrum gas estimation (apply buffer + fee multipliers to prevent `maxFeePerGas < baseFee` errors)
173
+
174
+ - Updated dependencies []:
175
+ - @swapkit/tokens@4.2.4
176
+
177
+ ## 4.12.7
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies [[`8e6532b`](https://github.com/swapkit/sdk/commit/8e6532beec425e35f9d5454cd2ec976516cbd7d5)]:
182
+ - @swapkit/tokens@4.2.4
183
+
184
+ ## 4.12.6
185
+
186
+ ### Patch Changes
187
+
188
+ - [#176](https://github.com/swapkit/sdk/pull/176) [`21447e8`](https://github.com/swapkit/sdk/commit/21447e8f43862c8a2775a5e89287e65aa2fad66d) Thanks [@towanTG](https://github.com/towanTG)! - feat: add HyperCore (Hyperliquid L1) chain integration
189
+
190
+ - Add Chain.HyperCore enum and chain configuration
191
+ - Add gas asset recognition, common asset info, and asset type detection for HYPE on HyperCore
192
+ - Create HyperCore toolbox with balance fetching, spot transfers, and address validation
193
+ - Wire toolbox into main routing and package exports
194
+
195
+ - Updated dependencies [[`21447e8`](https://github.com/swapkit/sdk/commit/21447e8f43862c8a2775a5e89287e65aa2fad66d)]:
196
+ - @swapkit/types@0.7.2
197
+ - @swapkit/tokens@4.2.3
198
+
199
+ ## 4.12.5
200
+
201
+ ### Patch Changes
202
+
203
+ - [#180](https://github.com/swapkit/sdk/pull/180) [`8a71a23`](https://github.com/swapkit/sdk/commit/8a71a232510c57fad651e84b1b6877269209856d) Thanks [@towanTG](https://github.com/towanTG)! - Fix quote response schema validation by making `sourceAddress` and `destinationAddress` optional on `QuoteResponseRouteItem`, matching the actual API response where these fields are not present until the `/swap` call.
204
+
205
+ - Updated dependencies []:
206
+ - @swapkit/tokens@4.2.3
207
+
208
+ ## 4.12.4
209
+
210
+ ### Patch Changes
211
+
212
+ - [#178](https://github.com/swapkit/sdk/pull/178) [`23f7099`](https://github.com/swapkit/sdk/commit/23f7099450b674b106b611c2a7166a12895e5686) Thanks [@towanTG](https://github.com/towanTG)! - fix(helpers): preserve data and fee_limit in TronTransactionSchema to prevent signature mismatch on v3 swap broadcast
213
+
214
+ - Updated dependencies []:
215
+ - @swapkit/tokens@4.2.3
216
+
217
+ ## 4.12.3
218
+
219
+ ### Patch Changes
220
+
221
+ - [#168](https://github.com/swapkit/sdk/pull/168) [`df5c67c`](https://github.com/swapkit/sdk/commit/df5c67cb9af27fe625959113bad47a74ad7cca58) Thanks [@towanTG](https://github.com/towanTG)! - fix: complete HyperEVM chain integration - gas asset recognition, common asset info, token address resolution, and chainId verification
222
+
223
+ - Updated dependencies [[`df5c67c`](https://github.com/swapkit/sdk/commit/df5c67cb9af27fe625959113bad47a74ad7cca58)]:
224
+ - @swapkit/types@0.7.1
225
+ - @swapkit/tokens@4.2.3
226
+
227
+ ## 4.12.2
228
+
229
+ ### Patch Changes
230
+
231
+ - Updated dependencies [[`551d65f`](https://github.com/swapkit/sdk/commit/551d65f8c761a7ff9a720ca54254f418a23d8dcd)]:
232
+ - @swapkit/types@0.7.0
233
+ - @swapkit/tokens@4.2.3
234
+
235
+ ## 4.12.1
236
+
237
+ ### Patch Changes
238
+
239
+ - [`674bce5`](https://github.com/swapkit/sdk/commit/674bce5d834ed6cf416282e60729fe9bd24fa698) Thanks [@towanTG](https://github.com/towanTG)! - Fix CI publish auth for private packages
240
+
241
+ - Updated dependencies []:
242
+ - @swapkit/tokens@4.2.3
243
+
244
+ ## 4.12.0
245
+
246
+ ### Minor Changes
247
+
248
+ - [#136](https://github.com/swapkit/sdk/pull/136) [`e770e34`](https://github.com/swapkit/sdk/commit/e770e34f008e9c96738ed9d445dc5680927ad719) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Add EIP-712 signTypedData handler
249
+
250
+ ### Patch Changes
251
+
252
+ - Updated dependencies []:
253
+ - @swapkit/tokens@4.2.3
254
+
255
+ ## 4.11.0
256
+
257
+ ### Minor Changes
258
+
259
+ - [`9804504`](https://github.com/swapkit/sdk/commit/9804504d0500d2a30dcc2677dba084a8a77cbcc7) Thanks [@towanTG](https://github.com/towanTG)! - refactor(tron): replace tronweb SDK with direct HTTP API and noble crypto for proto handling
260
+
261
+ ### Patch Changes
262
+
263
+ - Updated dependencies [[`9804504`](https://github.com/swapkit/sdk/commit/9804504d0500d2a30dcc2677dba084a8a77cbcc7)]:
264
+ - @swapkit/types@0.6.4
265
+ - @swapkit/tokens@4.2.3
266
+
267
+ ## 4.10.7
268
+
269
+ ### Patch Changes
270
+
271
+ - Updated dependencies [[`e68562d`](https://github.com/swapkit/sdk/commit/e68562deae49d1bca6217b379636f644746c271a), [`f44e47c`](https://github.com/swapkit/sdk/commit/f44e47c6538f842dcc4b0b824a8520aa57fe8036)]:
272
+ - @swapkit/types@0.6.3
273
+ - @swapkit/tokens@4.2.3
274
+
275
+ ## 4.10.6
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [[`0c31346`](https://github.com/swapkit/sdk/commit/0c313469a55ce48f7381bcdd3d70ec27ffc15ec6)]:
280
+ - @swapkit/types@0.6.2
281
+ - @swapkit/tokens@4.2.3
282
+
283
+ ## 4.10.5
284
+
285
+ ### Patch Changes
286
+
287
+ - [#127](https://github.com/swapkit/sdk/pull/127) [`6346a4a`](https://github.com/swapkit/sdk/commit/6346a4a3c5cdde95f282b841d80d79c8eece47a8) Thanks [@towanTG](https://github.com/towanTG)! - Fix Solana RPC requests failing with CORS errors due to non-standard headers. The @solana/web3.js Connection sends `Pragma` and `solana-client` headers that trigger CORS preflight failures on many RPC providers. Added a fetchMiddleware to strip these headers before requests are sent, and used optional chaining to handle cases where the init parameter may be undefined.
288
+
289
+ - Updated dependencies []:
290
+ - @swapkit/tokens@4.2.3
291
+
292
+ ## 4.10.4
293
+
294
+ ### Patch Changes
295
+
296
+ - [#120](https://github.com/swapkit/sdk/pull/120) [`0fd10ee`](https://github.com/swapkit/sdk/commit/0fd10eedd1c39324d4559c3e44f94ab1d55e644a) Thanks [@towanTG](https://github.com/towanTG)! - feat(utxo): replace bitcoinjs-lib with scure-btc-signer for all UTXO chains
297
+
298
+ Introduces @swapkit/utxo-signer as a standalone signing package built on @noble/hashes and @scure/btc-signer. Refactors UTXO toolbox with HD wallet derivation, RBF (replace-by-fee) support, Zcash PCZT transaction builder, improved fee estimation, and batch UTXO fetching for Dogecoin. Hardware wallets (Ledger, Trezor, KeepKey) and keystore wallet updated to use the new signer.
299
+
300
+ - Updated dependencies [[`0fd10ee`](https://github.com/swapkit/sdk/commit/0fd10eedd1c39324d4559c3e44f94ab1d55e644a)]:
301
+ - @swapkit/types@0.6.1
302
+ - @swapkit/tokens@4.2.3
303
+
304
+ ## 4.10.3
305
+
306
+ ### Patch Changes
307
+
308
+ - [`cb3f8b4`](https://github.com/swapkit/sdk/commit/cb3f8b426eda4e65513b0d1fbfc263dff961a30d) Thanks [@towanTG](https://github.com/towanTG)! - fix(helpers): normalize SwapTo asset identifiers to checksummed form so they match static asset lookups
309
+
310
+ fix(ui): source filtered assets from swapTo list when filterBySwapTo is active, ensuring tokens not in the local static list still appear in results
311
+
312
+ - Updated dependencies []:
313
+ - @swapkit/tokens@4.2.3
314
+
315
+ ## 4.10.2
316
+
317
+ ### Patch Changes
318
+
319
+ - [#101](https://github.com/swapkit/sdk/pull/101) [`3fbec61`](https://github.com/swapkit/sdk/commit/3fbec61cf9b4a5a6b8604c6c3b94d15a3e9de0d7) Thanks [@towanTG](https://github.com/towanTG)! - feat(ton): add TON transaction schema, plugin support, and refactor toolbox to message-based API with separate sign/broadcastTransaction
320
+
321
+ - Updated dependencies []:
322
+ - @swapkit/tokens@4.2.3
323
+
324
+ ## 4.10.1
325
+
326
+ ### Patch Changes
327
+
328
+ - [#95](https://github.com/swapkit/sdk/pull/95) [`d49a4f2`](https://github.com/swapkit/sdk/commit/d49a4f21cd8929212161321f3ed9956dceb8d7c1) Thanks [@towanTG](https://github.com/towanTG)! - Widget controls: Developer Mode and comprehensive improvements
329
+
330
+ **Developer Mode (New):**
331
+
332
+ - Add "Developer Mode" toggle that sets `SKConfig.setEnv("isDev", true/false)` to switch between production and development API endpoints
333
+ - Add "Dev API URL" input to override the development API URL
334
+ - Move "Use API Key" authentication into Developer Mode section
335
+ - Snippet generator uses dev CDN (`cdn-dev.swapkit.dev`) when Developer Mode is enabled
336
+
337
+ **Widget API Cleanup:**
338
+
339
+ - Remove deprecated `apiQuoteUrl` and `apiSwapUrl` props (use `apiBaseUrl` for prod URL override)
340
+ - Snippet generator outputs `wallets="none"` when all wallets are deselected
341
+
342
+ **UI Improvements:**
343
+
344
+ - Softer hover states on CollapsibleSection (4% white instead of 8%)
345
+ - Grey button styling for wallet selection toggle
346
+ - Add className prop support to CollapsibleSection
347
+
348
+ **Helpers:**
349
+
350
+ - Standardize widget authentication naming (`setWidgetKey` instead of `setWidgetSecret`)
351
+
352
+ **Plugins:**
353
+
354
+ - Fix chainflip plugin return variable naming for consistency
355
+
356
+ **Tokens:**
357
+
358
+ - Fix incorrect token identifier: `BTC.LTC` → `LTC.LTC`
359
+
360
+ - Updated dependencies [[`d49a4f2`](https://github.com/swapkit/sdk/commit/d49a4f21cd8929212161321f3ed9956dceb8d7c1)]:
361
+ - @swapkit/tokens@4.2.3
362
+
363
+ ## 4.10.0
364
+
365
+ ### Minor Changes
366
+
367
+ - [#90](https://github.com/swapkit/sdk/pull/90) [`f041b69`](https://github.com/swapkit/sdk/commit/f041b69431a9c891780c931e591b8691a2a85daa) Thanks [@olegpetroveth](https://github.com/olegpetroveth)! - Fix API response schemas for /price endpoint
368
+
369
+ ### Patch Changes
370
+
371
+ - [#92](https://github.com/swapkit/sdk/pull/92) [`6b26d26`](https://github.com/swapkit/sdk/commit/6b26d26ab61fa4a05021bae1055fbefca14516f2) Thanks [@towanTG](https://github.com/towanTG)! - Standardize widget authentication naming and button link pattern
372
+
373
+ - Renamed `setWidgetSecret` to `setWidgetKey` in SKConfig for consistency with the `widgetKey` state property
374
+ - Renamed `widgetSecret` to `widgetKey` throughout the codebase (prop names, types, config state)
375
+ - Updated button link in widget controls to use consistent `Button asChild variant="link"` pattern
376
+ - Maintained backward compatibility migration for legacy `apiKey` and `widgetSecret` values in form persistence
377
+
378
+ - [#92](https://github.com/swapkit/sdk/pull/92) [`6b26d26`](https://github.com/swapkit/sdk/commit/6b26d26ab61fa4a05021bae1055fbefca14516f2) Thanks [@towanTG](https://github.com/towanTG)! - API improvements and widget authentication support
379
+
380
+ **Widget Authentication:**
381
+
382
+ - Add HMAC-SHA256 signature-based authentication for widgets
383
+ - SKRequestClient prioritizes widgetSecret over API key authentication
384
+ - Widget auth generates signatures with origin and timestamp headers
385
+ - Falls back to API key auth for server-side/Node.js environments
386
+ - Updated RequestClient to support async dynamicHeader functions
387
+
388
+ **API & Error Handling:**
389
+
390
+ - Fix retry logic to only retry transient errors (timeouts, network failures, 5xx, 429)
391
+ - Business errors now fail immediately instead of retrying
392
+ - Parse response body before checking status to capture API error messages
393
+
394
+ **Types:**
395
+
396
+ - Export `Eip1193Provider` type for EIP-6963 wallet integration
397
+
398
+ - Updated dependencies []:
399
+ - @swapkit/tokens@4.2.2
400
+
401
+ ## 4.9.5
402
+
403
+ ### Patch Changes
404
+
405
+ - [#86](https://github.com/swapkit/sdk/pull/86) [`61296c8`](https://github.com/swapkit/sdk/commit/61296c81f33981c96bfba590c98298ee5629a06f) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Move react dependent stuff to `ui` package
406
+
407
+ - Updated dependencies []:
408
+ - @swapkit/tokens@4.2.2
409
+
410
+ ## 4.9.4
411
+
412
+ ### Patch Changes
413
+
414
+ - [#9](https://github.com/swapkit/sdk/pull/9) [`01cfad6`](https://github.com/swapkit/sdk/commit/01cfad601398e39fb852f97f4fa6dbf6309bb680) Thanks [@towanTG](https://github.com/towanTG)! - Standardize widget authentication naming and button link pattern
415
+
416
+ - Renamed `setWidgetSecret` to `setWidgetKey` in SKConfig for consistency with the `widgetKey` state property
417
+ - Renamed `widgetSecret` to `widgetKey` throughout the codebase (prop names, types, config state)
418
+ - Updated button link in widget controls to use consistent `Button asChild variant="link"` pattern
419
+ - Maintained backward compatibility migration for legacy `apiKey` and `widgetSecret` values in form persistence
420
+
421
+ - [#9](https://github.com/swapkit/sdk/pull/9) [`01cfad6`](https://github.com/swapkit/sdk/commit/01cfad601398e39fb852f97f4fa6dbf6309bb680) Thanks [@towanTG](https://github.com/towanTG)! - API improvements and widget authentication support
422
+
423
+ **Widget Authentication:**
424
+
425
+ - Add HMAC-SHA256 signature-based authentication for widgets
426
+ - SKRequestClient prioritizes widgetSecret over API key authentication
427
+ - Widget auth generates signatures with origin and timestamp headers
428
+ - Falls back to API key auth for server-side/Node.js environments
429
+ - Updated RequestClient to support async dynamicHeader functions
430
+
431
+ **API & Error Handling:**
432
+
433
+ - Fix retry logic to only retry transient errors (timeouts, network failures, 5xx, 429)
434
+ - Business errors now fail immediately instead of retrying
435
+ - Parse response body before checking status to capture API error messages
436
+
437
+ **Types:**
438
+
439
+ - Export `Eip1193Provider` type for EIP-6963 wallet integration
440
+
441
+ - Updated dependencies []:
442
+ - @swapkit/tokens@4.2.2
443
+
444
+ ## 4.9.3
445
+
446
+ ### Patch Changes
447
+
448
+ - [#51](https://github.com/swapkit/sdk/pull/51) [`1640cd7`](https://github.com/swapkit/sdk/commit/1640cd7ba5ff3397d278ce6a08f84ee98cfd356f) Thanks [@ice-chillios](https://github.com/ice-chillios)! - chore: improve fee estimation for Cardano, NEAR, and TON
449
+
450
+ - Add dynamic fee estimation for TON using estimateExternalMessageFee
451
+ - Add dynamic fee estimation for Cardano using protocol parameters and tx size
452
+ - Add dynamic fee estimation for NEAR using EXPERIMENTAL_protocol_config
453
+ - Fix BigInt conversions for TON and Starknet
454
+ - Consolidate fee estimation error codes
455
+ - NEAR: Add `estimateGasLimit` (replaces `estimateGas` which is now deprecated)
456
+
457
+ - [#54](https://github.com/swapkit/sdk/pull/54) [`123f2d6`](https://github.com/swapkit/sdk/commit/123f2d6454e8023d28d0d878f95c876ca5738d10) Thanks [@ice-chillios](https://github.com/ice-chillios)! - feat(ripple): add XRPL token support with trust line management
458
+
459
+ - Add token transfer support for XRPL issued currencies
460
+ - Add trust line management: `getTrustLines`, `hasTrustLine`, `setTrustLine`, `setTrustLineAndBroadcast`
461
+ - Add currency encoding utilities for hex/ASCII XRPL currency codes
462
+ - Add known tokens list with verified issuers (USDC, RLUSD, Bitstamp, GateHub, Sologenic)
463
+ - Add Xaman wallet support for token transfers and trust line operations
464
+ - Add new Ripple-specific error codes
465
+ - Mark Ripple as case-sensitive chain for asset identifiers
466
+
467
+ - Updated dependencies []:
468
+ - @swapkit/tokens@4.2.2
469
+
470
+ ## 4.9.2
471
+
472
+ ### Patch Changes
473
+
474
+ - Updated dependencies [[`a8b4dd8`](https://github.com/swapkit/sdk/commit/a8b4dd839e617a476bbe1821b2f511816ec25d83)]:
475
+ - @swapkit/types@0.6.0
476
+ - @swapkit/tokens@4.2.2
477
+
478
+ ## 4.9.1
479
+
480
+ ### Patch Changes
481
+
482
+ - [`8d9fd7d`](https://github.com/swapkit/sdk/commit/8d9fd7d56dbfe57638204060d029680452e08c39) Thanks [@towanTG](https://github.com/towanTG)! - feat(toolbox): add Starknet chain support
483
+
484
+ - Updated dependencies []:
485
+ - @swapkit/tokens@4.2.2
486
+
487
+ ## 4.9.0
488
+
489
+ ### Minor Changes
490
+
491
+ - [#13](https://github.com/swapkit/sdk/pull/13) [`08d41d2`](https://github.com/swapkit/sdk/commit/08d41d2476c56a6f81f5ea83902e6c497278c995) Thanks [@towanTG](https://github.com/towanTG)! - feat: Add V3 swap flow support with SwapKitPlugin
492
+
493
+ ### New Features
494
+
495
+ - **SwapKitPlugin**: New plugin for signing raw SwapKit API transactions directly
496
+
497
+ - Supports UTXO chains (BTC, BCH, LTC, DOGE, DASH, ZEC) via PSBT
498
+ - Supports all EVM chains via eth_sendTransaction
499
+ - Supports Cosmos chains, Solana, Near, Ripple, Tron, Sui, Cardano
500
+ - Includes transaction parsing validation with proper error handling
501
+
502
+ - **V3SwapFlowSupport**: Registry mapping chains to supported wallets for V3 flow
503
+
504
+ - Enables detection of wallet/chain capability for raw transaction signing
505
+ - Automatic fallback to named plugins when V3 not supported
506
+
507
+ - **signAndBroadcastTransaction**: New method on toolboxes for signing pre-built transactions
508
+ - Added to Cosmos, Cardano, Tron, Sui, Near, Ripple toolboxes
509
+ - Enables direct signing of API-provided transactions
510
+
511
+ ### Improvements
512
+
513
+ - Added new error key `plugin_swapkit_invalid_transaction` for better error handling
514
+ - Improved test coverage across toolboxes (Near, Ripple, Solana, Substrate, Tron, UTXO)
515
+ - Enhanced UTXO coin selection and transaction size estimation
516
+ - Code cleanup in Cosmos toolbox (removed dead code)
517
+
518
+ ### API Types
519
+
520
+ - Added `QuoteResponseRoute` schema for V3 quote responses
521
+ - Added transaction schemas for EVM, Cosmos, and Tron validation
522
+
523
+ ### Patch Changes
524
+
525
+ - Updated dependencies []:
526
+ - @swapkit/tokens@4.2.2
527
+
528
+ ## 4.8.4
529
+
530
+ ### Patch Changes
531
+
532
+ - [#28](https://github.com/swapkit/sdk/pull/28) [`c11cd18`](https://github.com/swapkit/sdk/commit/c11cd18052ca4e2f8c8fe0d678378e8d880073cd) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Handle gas map within function instead of test
533
+
534
+ - [#39](https://github.com/swapkit/sdk/pull/39) [`5d34cc2`](https://github.com/swapkit/sdk/commit/5d34cc2feb111517058a355d5215c66658469df6) Thanks [@0xepicode](https://github.com/0xepicode)! - Fix error handling with bigint values
535
+
536
+ - Updated dependencies []:
537
+ - @swapkit/tokens@4.2.2
538
+
539
+ ## 4.8.3
540
+
541
+ ### Patch Changes
542
+
543
+ - [#34](https://github.com/swapkit/sdk/pull/34) [`34c9a02`](https://github.com/swapkit/sdk/commit/34c9a024716424e6b1ad0afe1d13097aca8aaca3) Thanks [@towanTG](https://github.com/towanTG)! - Adds XRP tx extension param to createTransaction. Fixes getMaxSendableAmount for UTXO toolboxes. Cleans up code.
544
+
545
+ - Updated dependencies []:
546
+ - @swapkit/tokens@4.2.2
547
+
548
+ ## 4.8.2
549
+
550
+ ### Patch Changes
551
+
552
+ - [#32](https://github.com/swapkit/sdk/pull/32) [`38b55e7`](https://github.com/swapkit/sdk/commit/38b55e7e1455149f932a575cac4837d2b0a144db) Thanks [@towanTG](https://github.com/towanTG)! - Improves code quality, removes decprecated providers and tokenlists and uses low lever ethers Provider for EVM toolboxes
553
+
554
+ - Updated dependencies [[`38b55e7`](https://github.com/swapkit/sdk/commit/38b55e7e1455149f932a575cac4837d2b0a144db)]:
555
+ - @swapkit/contracts@4.1.2
556
+ - @swapkit/tokens@4.2.2
557
+
558
+ ## 4.8.1
559
+
560
+ ### Patch Changes
561
+
562
+ - [`50c49f8`](https://github.com/swapkit/sdk/commit/50c49f88c22c149fede95b109bab1b3ea0b300c4) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Bump
563
+
564
+ - Updated dependencies [[`50c49f8`](https://github.com/swapkit/sdk/commit/50c49f88c22c149fede95b109bab1b3ea0b300c4)]:
565
+ - @swapkit/contracts@4.1.1
566
+ - @swapkit/tokens@4.2.1
567
+ - @swapkit/types@0.5.1
568
+
569
+ ## 4.8.0
570
+
571
+ ### Minor Changes
572
+
573
+ - [`a4402e9`](https://github.com/swapkit/sdk/commit/a4402e91de5d634da24aa0c752f5e473132a4c71) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - Removes async toolboxes and adapts code for it
574
+
575
+ - [#19](https://github.com/swapkit/sdk/pull/19) [`941d648`](https://github.com/swapkit/sdk/commit/941d648516ce8aca2c5e21827a27f75b34163cee) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Add sync resolving for toolboxes and server sync methods
576
+
577
+ ### Patch Changes
578
+
579
+ - Updated dependencies [[`a4402e9`](https://github.com/swapkit/sdk/commit/a4402e91de5d634da24aa0c752f5e473132a4c71)]:
580
+ - @swapkit/contracts@4.1.0
581
+ - @swapkit/tokens@4.2.0
582
+ - @swapkit/types@0.5.0
583
+
584
+ ## 4.7.2
585
+
586
+ ### Patch Changes
587
+
588
+ - [`799ccc8`](https://github.com/swapkit/sdk/commit/799ccc82896823a3233a48f97745b979622d5076) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - Manual update to fix release
589
+
590
+ - Updated dependencies [[`799ccc8`](https://github.com/swapkit/sdk/commit/799ccc82896823a3233a48f97745b979622d5076)]:
591
+ - @swapkit/contracts@4.0.4
592
+ - @swapkit/tokens@4.1.5
593
+ - @swapkit/types@0.4.3
594
+
595
+ ## 4.7.1
596
+
597
+ ### Patch Changes
598
+
599
+ - [#16](https://github.com/swapkit/sdk/pull/16) [`14d610a`](https://github.com/swapkit/sdk/commit/14d610affddd04b432826d0fe51cf8617d737f70) Thanks [@towanTG](https://github.com/towanTG)! - Fixes transaction creation for TRON and ADA and token balances on SUI
600
+
601
+ ## 4.7.0
602
+
603
+ ### Minor Changes
604
+
605
+ - [#14](https://github.com/swapkit/sdk/pull/14) [`47f6375`](https://github.com/swapkit/sdk/commit/47f63757c4ab6f7ac06a494a347a1f2383b03f63) Thanks [@towanTG](https://github.com/towanTG)! - Adds Harbor Provider and plugin
606
+
607
+ ## 4.6.0
608
+
609
+ ### Minor Changes
610
+
611
+ - [#8](https://github.com/swapkit/sdk/pull/8) [`f6d9e39`](https://github.com/swapkit/sdk/commit/f6d9e390a3dc47d777c934d891626c2e8e97e45b) Thanks [@towanTG](https://github.com/towanTG)! - Adds SUI token transaction support
612
+
613
+ ### Patch Changes
614
+
615
+ - [`4d60682`](https://github.com/swapkit/sdk/commit/4d606827eda5a8e1842cad9bcf1c88ff0d6f5517) Thanks [@towanTG](https://github.com/towanTG)! - Releases latest changes from public repo - enables monad for some wallets, fixes sui tokens tx building and fixes vultisig
616
+
617
+ - Updated dependencies [[`4d60682`](https://github.com/swapkit/sdk/commit/4d606827eda5a8e1842cad9bcf1c88ff0d6f5517)]:
618
+ - @swapkit/contracts@4.0.3
619
+ - @swapkit/tokens@4.1.4
620
+ - @swapkit/types@0.4.2
package/dist/api/index.js CHANGED
@@ -1 +1 @@
1
- import{$ as n,Aa as O,Ba as P,Ca as Q,Da as R,Ea as S,Fa as T,Ga as U,Ha as V,Ia as W,Ja as X,Ka as Y,La as Z,Ma as _,Na as $,O as a,Oa as aa,P as b,Pa as ba,Q as c,Qa as ca,R as d,S as e,T as f,U as g,V as h,W as i,X as j,Y as k,Z as l,_ as m,aa as o,ba as p,ca as q,da as r,ea as s,fa as t,ga as u,ha as v,ia as w,ja as x,ka as y,la as z,ma as A,na as B,oa as C,pa as D,qa as E,ra as F,sa as G,ta as H,ua as I,va as J,wa as K,xa as L,ya as M,za as N}from"../chunk-5hmhh3jj.js";export{c as TxnType,e as TxnStatus,C as TronTransactionSchema,x as TransactionSchema,y as TransactionDTOSchema,f as TrackingStatus,h as TrackingRequestSchema,i as TrackingRequestQuerySchema,w as TrackerResponseSchema,g as TokenSchema,m as TokenDetailsMetadataSchema,H as TONTransactionSchema,Z as SwapToResponseSchema,X as SwapToRequestSchema,Y as SwapToAssetSchema,ba as SwapRouteV2ResponseSchema,ca as SwapKitApi,G as StarknetTransactionSchema,O as RouteQuoteWarningSchema,b as RouteQuoteTxType,$ as RouteQuoteProviderErrorSchema,N as RouteQuoteMetadataV2Schema,M as RouteQuoteMetadataSchema,K as RouteQuoteMetadataAssetSchema,J as RouteLegWithoutAddressesSchema,I as RouteLegSchema,W as QuoteV3ResponseSchema,aa as QuoteV2ResponseSchema,_ as QuoteRouteV2Response,Q as QuoteResponseSchema,P as QuoteResponseRouteItem,o as QuoteRequestSchema,d as ProviderAction,a as PriorityLabel,n as PriceResponseSchema,p as PriceRequestSchema,v as NearSwapResponseSchema,u as NearDepositChannelResultSchema,t as NearDepositChannelParamsSchema,R as GasSchema,S as GasResponseSchema,z as FeesSchema,A as EstimatedTimeSchema,B as EVMTransactionSchema,E as EVMTransactionDetailsSchema,D as EVMTransactionDetailsParamsSchema,s as DepositChannelResponseSchema,q as DepositChannelParamsSchema,F as CosmosTransactionSchema,l as CoinGeckoMetadataSchema,L as ChainflipMetadataSchema,r as BrokerDepositChannelParamsSchema,k as AssetValueSchema,U as ApproveResponseSchema,T as ApproveRequestParams,V as ApprovalTransactionSchema,j as ApiV2ErrorSchema};
1
+ import{$ as n,Aa as O,Ba as P,Ca as Q,Da as R,Ea as S,Fa as T,Ga as U,Ha as V,Ia as W,Ja as X,Ka as Y,La as Z,Ma as _,Na as $,O as a,Oa as aa,P as b,Pa as ba,Q as c,Qa as ca,R as d,S as e,T as f,U as g,V as h,W as i,X as j,Y as k,Z as l,_ as m,aa as o,ba as p,ca as q,da as r,ea as s,fa as t,ga as u,ha as v,ia as w,ja as x,ka as y,la as z,ma as A,na as B,oa as C,pa as D,qa as E,ra as F,sa as G,ta as H,ua as I,va as J,wa as K,xa as L,ya as M,za as N}from"../chunk-5havr91f.js";export{c as TxnType,e as TxnStatus,C as TronTransactionSchema,x as TransactionSchema,y as TransactionDTOSchema,f as TrackingStatus,h as TrackingRequestSchema,i as TrackingRequestQuerySchema,w as TrackerResponseSchema,g as TokenSchema,m as TokenDetailsMetadataSchema,H as TONTransactionSchema,Z as SwapToResponseSchema,X as SwapToRequestSchema,Y as SwapToAssetSchema,ba as SwapRouteV2ResponseSchema,ca as SwapKitApi,G as StarknetTransactionSchema,O as RouteQuoteWarningSchema,b as RouteQuoteTxType,$ as RouteQuoteProviderErrorSchema,N as RouteQuoteMetadataV2Schema,M as RouteQuoteMetadataSchema,K as RouteQuoteMetadataAssetSchema,J as RouteLegWithoutAddressesSchema,I as RouteLegSchema,W as QuoteV3ResponseSchema,aa as QuoteV2ResponseSchema,_ as QuoteRouteV2Response,Q as QuoteResponseSchema,P as QuoteResponseRouteItem,o as QuoteRequestSchema,d as ProviderAction,a as PriorityLabel,n as PriceResponseSchema,p as PriceRequestSchema,v as NearSwapResponseSchema,u as NearDepositChannelResultSchema,t as NearDepositChannelParamsSchema,R as GasSchema,S as GasResponseSchema,z as FeesSchema,A as EstimatedTimeSchema,B as EVMTransactionSchema,E as EVMTransactionDetailsSchema,D as EVMTransactionDetailsParamsSchema,s as DepositChannelResponseSchema,q as DepositChannelParamsSchema,F as CosmosTransactionSchema,l as CoinGeckoMetadataSchema,L as ChainflipMetadataSchema,r as BrokerDepositChannelParamsSchema,k as AssetValueSchema,U as ApproveResponseSchema,T as ApproveRequestParams,V as ApprovalTransactionSchema,j as ApiV2ErrorSchema};