@swapkit/tokens 4.2.8 → 4.3.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 +111 -0
- package/dist/chunk-3knttqd4.js +1 -0
- package/dist/chunk-x70qpw05.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lists/hypercore.d.ts +4 -4
- package/dist/types/lists/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-0yd8hw10.js +0 -1
- package/dist/chunk-xhhjdx2r.js +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# @swapkit/tokens
|
|
2
|
+
|
|
3
|
+
## 4.3.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
|
+
## 4.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#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.
|
|
14
|
+
|
|
15
|
+
## 4.2.8
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#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
|
|
20
|
+
|
|
21
|
+
## 4.2.7
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#204](https://github.com/swapkit/sdk/pull/204) [`61488c5`](https://github.com/swapkit/sdk/commit/61488c51a85570e6b9043f6a1dad91745bf2a324) Thanks [@towanTG](https://github.com/towanTG)! - Remove scam ETH USDC token from the Uniswap V3 token list.
|
|
26
|
+
|
|
27
|
+
## 4.2.6
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#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.
|
|
32
|
+
|
|
33
|
+
## 4.2.5
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#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
|
|
38
|
+
|
|
39
|
+
## 4.2.4
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#187](https://github.com/swapkit/sdk/pull/187) [`8e6532b`](https://github.com/swapkit/sdk/commit/8e6532beec425e35f9d5454cd2ec976516cbd7d5) Thanks [@towanTG](https://github.com/towanTG)! - fix(hypercore): use spotSend for all transfers including USDC
|
|
44
|
+
|
|
45
|
+
USDC transfers were using `usdSend` (perp-side) instead of `spotSend`, causing "Insufficient balance for withdrawal" errors when sending spot USDC. Now fetches token metadata from `spotMeta` API to build proper AssetValue identifiers with token IDs, ensuring all transfers route through `spotSend`. Also adds a static HyperCore token list with HYPE and USDC.
|
|
46
|
+
|
|
47
|
+
## 4.2.3
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- [#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
|
|
52
|
+
|
|
53
|
+
**Developer Mode (New):**
|
|
54
|
+
|
|
55
|
+
- Add "Developer Mode" toggle that sets `SKConfig.setEnv("isDev", true/false)` to switch between production and development API endpoints
|
|
56
|
+
- Add "Dev API URL" input to override the development API URL
|
|
57
|
+
- Move "Use API Key" authentication into Developer Mode section
|
|
58
|
+
- Snippet generator uses dev CDN (`cdn-dev.swapkit.dev`) when Developer Mode is enabled
|
|
59
|
+
|
|
60
|
+
**Widget API Cleanup:**
|
|
61
|
+
|
|
62
|
+
- Remove deprecated `apiQuoteUrl` and `apiSwapUrl` props (use `apiBaseUrl` for prod URL override)
|
|
63
|
+
- Snippet generator outputs `wallets="none"` when all wallets are deselected
|
|
64
|
+
|
|
65
|
+
**UI Improvements:**
|
|
66
|
+
|
|
67
|
+
- Softer hover states on CollapsibleSection (4% white instead of 8%)
|
|
68
|
+
- Grey button styling for wallet selection toggle
|
|
69
|
+
- Add className prop support to CollapsibleSection
|
|
70
|
+
|
|
71
|
+
**Helpers:**
|
|
72
|
+
|
|
73
|
+
- Standardize widget authentication naming (`setWidgetKey` instead of `setWidgetSecret`)
|
|
74
|
+
|
|
75
|
+
**Plugins:**
|
|
76
|
+
|
|
77
|
+
- Fix chainflip plugin return variable naming for consistency
|
|
78
|
+
|
|
79
|
+
**Tokens:**
|
|
80
|
+
|
|
81
|
+
- Fix incorrect token identifier: `BTC.LTC` → `LTC.LTC`
|
|
82
|
+
|
|
83
|
+
## 4.2.2
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- [#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
|
|
88
|
+
|
|
89
|
+
## 4.2.1
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- [`50c49f8`](https://github.com/swapkit/sdk/commit/50c49f88c22c149fede95b109bab1b3ea0b300c4) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Bump
|
|
94
|
+
|
|
95
|
+
## 4.2.0
|
|
96
|
+
|
|
97
|
+
### Minor Changes
|
|
98
|
+
|
|
99
|
+
- [`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
|
|
100
|
+
|
|
101
|
+
## 4.1.5
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- [`799ccc8`](https://github.com/swapkit/sdk/commit/799ccc82896823a3233a48f97745b979622d5076) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - Manual update to fix release
|
|
106
|
+
|
|
107
|
+
## 4.1.4
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- [`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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={count:2,keywords:[],name:"HYPE",provider:"HYPE",timestamp:"2026-04-13T00:00:00.000Z",tokens:[{identifier:"HYPE.HYPE-HYPE:0x0d01dc56dcaaca66ad901c959b4011ec"},{decimals:6,identifier:"HYPE.USDC-USDC:0x6d1e7cde53ba9467b783cb7c530ce054"}],version:{major:1,minor:0,patch:0}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-mrqbjh18.js";var e={count:2,keywords:[],name:"HYPE",provider:"HYPE",timestamp:"2026-04-13T00:00:00.000Z",tokens:[{identifier:"HYPE.HYPE-HYPE:0x0d01dc56dcaaca66ad901c959b4011ec"},{decimals:6,identifier:"HYPE.USDC-USDC:0x6d1e7cde53ba9467b783cb7c530ce054"}],version:{major:1,minor:0,patch:0}};export{e as list};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var K={};F(K,{loadTokenLists:()=>H});module.exports=E(K);var C=require("ts-pattern"),G=["chainflip","garden","harbor","
|
|
1
|
+
var K={};F(K,{loadTokenLists:()=>H});module.exports=E(K);var C=require("ts-pattern"),G=["chainflip","garden","harbor","hype","jupiter","mayachain","near","okx","oneinch","pancakeswap","sushiswap","thorchain","traderjoe","uniswap","uniswapv3"];async function H(q){let z=q||G,A={};for(let B of z){let D=await J(B);A[B]=D}return A}async function J(q){let{list:z}=await C.match(q).with("chainflip",()=>import("./chunk-batsb004.js")).with("garden",()=>import("./chunk-e09rm7kq.js")).with("harbor",()=>import("./chunk-9z6pf09c.js")).with("hype",()=>import("./chunk-3knttqd4.js")).with("hypercore",()=>import("./chunk-3knttqd4.js")).with("jupiter",()=>import("./chunk-j9degx67.js")).with("mayachain",()=>import("./chunk-8gfvzysc.js")).with("near",()=>import("./chunk-e89sjp6m.js")).with("okx",()=>import("./chunk-8m468nf3.js")).with("oneinch",()=>import("./chunk-yk7aqeyn.js")).with("pancakeswap",()=>import("./chunk-wwg89zwv.js")).with("sushiswap",()=>import("./chunk-8f0hb9gt.js")).with("thorchain",()=>import("./chunk-wd3ngt13.js")).with("traderjoe",()=>import("./chunk-41p7cb4m.js")).with("uniswap",()=>import("./chunk-mhwwkajb.js")).with("uniswapv3",()=>import("./chunk-a6xy18t9.js")).otherwise(()=>{return console.warn(`Token list ${q} not found`),{list:[]}});return z}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as q}from"./chunk-mrqbjh18.js";import{match as E}from"ts-pattern";var F=["chainflip","garden","harbor","
|
|
1
|
+
import{a as q}from"./chunk-mrqbjh18.js";import{match as E}from"ts-pattern";var F=["chainflip","garden","harbor","hype","jupiter","mayachain","near","okx","oneinch","pancakeswap","sushiswap","thorchain","traderjoe","uniswap","uniswapv3"];async function J(z){let A=z||F,B={};for(let C of A){let D=await G(C);B[C]=D}return B}async function G(z){let{list:A}=await E(z).with("chainflip",()=>import("./chunk-jq2bykw6.js")).with("garden",()=>import("./chunk-5abta3fw.js")).with("harbor",()=>import("./chunk-en3wxvq7.js")).with("hype",()=>import("./chunk-x70qpw05.js")).with("hypercore",()=>import("./chunk-x70qpw05.js")).with("jupiter",()=>import("./chunk-95vxsq69.js")).with("mayachain",()=>import("./chunk-14jw16s3.js")).with("near",()=>import("./chunk-adfqan6s.js")).with("okx",()=>import("./chunk-sejbpyv7.js")).with("oneinch",()=>import("./chunk-dpcmh8d0.js")).with("pancakeswap",()=>import("./chunk-qrc869dt.js")).with("sushiswap",()=>import("./chunk-gbeecqff.js")).with("thorchain",()=>import("./chunk-9yxg1kn2.js")).with("traderjoe",()=>import("./chunk-7c8z7wz8.js")).with("uniswap",()=>import("./chunk-pg7phmpn.js")).with("uniswapv3",()=>import("./chunk-w080g7he.js")).otherwise(()=>{return console.warn(`Token list ${z} not found`),{list:[]}});return A}export{J as loadTokenLists};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type TokenLists = {
|
|
|
4
4
|
chainflip: typeof tokenLists.ChainflipList;
|
|
5
5
|
garden: typeof tokenLists.GardenList;
|
|
6
6
|
harbor: typeof tokenLists.HarborList;
|
|
7
|
+
hype: typeof tokenLists.HypeList;
|
|
7
8
|
hypercore: typeof tokenLists.HyperCoreList;
|
|
8
9
|
jupiter: typeof tokenLists.JupiterList;
|
|
9
10
|
mayachain: typeof tokenLists.MayaList;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const list: {
|
|
2
2
|
readonly count: 2;
|
|
3
3
|
readonly keywords: readonly [];
|
|
4
|
-
readonly name: "
|
|
5
|
-
readonly provider: "
|
|
4
|
+
readonly name: "HYPE";
|
|
5
|
+
readonly provider: "HYPE";
|
|
6
6
|
readonly timestamp: "2026-04-13T00:00:00.000Z";
|
|
7
7
|
readonly tokens: readonly [{
|
|
8
|
-
readonly identifier: "
|
|
8
|
+
readonly identifier: "HYPE.HYPE-HYPE:0x0d01dc56dcaaca66ad901c959b4011ec";
|
|
9
9
|
}, {
|
|
10
10
|
readonly decimals: 6;
|
|
11
|
-
readonly identifier: "
|
|
11
|
+
readonly identifier: "HYPE.USDC-USDC:0x6d1e7cde53ba9467b783cb7c530ce054";
|
|
12
12
|
}];
|
|
13
13
|
readonly version: {
|
|
14
14
|
readonly major: 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { list as ChainflipList } from "./chainflip";
|
|
2
2
|
export { list as GardenList } from "./garden";
|
|
3
3
|
export { list as HarborList } from "./harbor";
|
|
4
|
-
export { list as HyperCoreList } from "./hypercore";
|
|
4
|
+
export { list as HypeList, list as HyperCoreList } from "./hypercore";
|
|
5
5
|
export { list as JupiterList } from "./jupiter";
|
|
6
6
|
export { list as MayaList } from "./mayachain";
|
|
7
7
|
export { list as NearList } from "./near";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-dev",
|
|
3
3
|
"description": "SwapKit - Tokens",
|
|
4
|
-
"devDependencies": { "@swapkit/helpers": "4.
|
|
4
|
+
"devDependencies": { "@swapkit/helpers": "4.14.1", "ts-pattern": "5.9.0" },
|
|
5
5
|
"exports": {
|
|
6
6
|
".": { "default": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/types/index.d.ts" }
|
|
7
7
|
},
|
|
8
|
-
"files": ["dist/"],
|
|
8
|
+
"files": ["dist/", "CHANGELOG.md"],
|
|
9
9
|
"homepage": "https://github.com/swapkit/SwapKit",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"name": "@swapkit/tokens",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"type-check:go": "tsgo"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
|
-
"version": "4.
|
|
24
|
+
"version": "4.3.1"
|
|
25
25
|
}
|
package/dist/chunk-0yd8hw10.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={count:2,keywords:[],name:"HYPERCORE",provider:"HYPERCORE",timestamp:"2026-04-13T00:00:00.000Z",tokens:[{identifier:"HYPERCORE.HYPE-HYPE:0x0d01dc56dcaaca66ad901c959b4011ec"},{decimals:6,identifier:"HYPERCORE.USDC-USDC:0x6d1e7cde53ba9467b783cb7c530ce054"}],version:{major:1,minor:0,patch:0}};
|
package/dist/chunk-xhhjdx2r.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-mrqbjh18.js";var e={count:2,keywords:[],name:"HYPERCORE",provider:"HYPERCORE",timestamp:"2026-04-13T00:00:00.000Z",tokens:[{identifier:"HYPERCORE.HYPE-HYPE:0x0d01dc56dcaaca66ad901c959b4011ec"},{decimals:6,identifier:"HYPERCORE.USDC-USDC:0x6d1e7cde53ba9467b783cb7c530ce054"}],version:{major:1,minor:0,patch:0}};export{e as list};
|