@swapkit/helpers 1.0.0-rc.66 → 1.0.0-rc.68

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/package.json CHANGED
@@ -2,22 +2,22 @@
2
2
  "author": "swapkit-oss-team",
3
3
  "description": "SwapKit Lib swapkit-helpers",
4
4
  "dependencies": {
5
- "@swapkit/api": "1.0.0-rc.35"
5
+ "@swapkit/api": "1.0.0-rc.37"
6
6
  },
7
7
  "devDependencies": {
8
8
  "@vitest/coverage-istanbul": "1.2.1",
9
9
  "vite": "5.0.12",
10
10
  "vitest": "1.2.1",
11
11
  "@internal/config": "0.0.2-rc.0",
12
- "@swapkit/tokens": "1.0.0-rc.33",
13
- "@swapkit/types": "1.0.0-rc.34"
12
+ "@swapkit/tokens": "1.0.0-rc.34",
13
+ "@swapkit/types": "1.0.0-rc.36"
14
14
  },
15
15
  "eslintConfig": {
16
16
  "extends": "../../../internal/eslint-config"
17
17
  },
18
18
  "peerDependencies": {
19
- "@swapkit/tokens": "1.0.0-rc.33",
20
- "@swapkit/types": "1.0.0-rc.34"
19
+ "@swapkit/tokens": "1.0.0-rc.34",
20
+ "@swapkit/types": "1.0.0-rc.36"
21
21
  },
22
22
  "exports": {
23
23
  ".": {
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "type": "module",
44
44
  "types": "./dist/index.d.ts",
45
- "version": "1.0.0-rc.66",
45
+ "version": "1.0.0-rc.68",
46
46
  "scripts": {
47
47
  "build": "vite build",
48
48
  "clean": "rm -rf dist vite.config.ts.* .turbo node_modules",
@@ -85,6 +85,8 @@ export const isGasAsset = ({ chain, symbol }: { chain: Chain; symbol: string })
85
85
  case Chain.Binance:
86
86
  case Chain.Ethereum:
87
87
  case Chain.Avalanche:
88
+ case Chain.Polkadot:
89
+ case Chain.Chainflip:
88
90
  return symbol === chain;
89
91
 
90
92
  case Chain.Arbitrum:
@@ -139,7 +141,9 @@ export const getCommonAssetInfo = (
139
141
  case Chain.Dogecoin:
140
142
  case Chain.Binance:
141
143
  case Chain.Avalanche:
144
+ case Chain.Chainflip:
142
145
  case Chain.Polygon:
146
+ case Chain.Polkadot:
143
147
  case Chain.Bitcoin:
144
148
  case Chain.Ethereum:
145
149
  return { identifier: `${assetString}.${assetString}`, decimal: BaseDecimal[assetString] };
@@ -156,6 +160,8 @@ export const getAssetType = ({ chain, symbol }: { chain: Chain; symbol: string }
156
160
  case Chain.Litecoin:
157
161
  case Chain.Maya:
158
162
  case Chain.THORChain:
163
+ case Chain.Polkadot:
164
+ case Chain.Chainflip:
159
165
  return 'Native';
160
166
 
161
167
  case Chain.Cosmos:
package/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type {
2
+ ChainflipList,
2
3
  CoinGeckoList,
3
4
  MayaList,
4
5
  PancakeswapETHList,
@@ -25,4 +26,5 @@ export type TokenNames =
25
26
  | (typeof SushiswapList)['tokens'][number]['identifier']
26
27
  | (typeof TraderjoeList)['tokens'][number]['identifier']
27
28
  | (typeof WoofiList)['tokens'][number]['identifier']
28
- | (typeof UniswapList)['tokens'][number]['identifier'];
29
+ | (typeof UniswapList)['tokens'][number]['identifier']
30
+ | (typeof ChainflipList)['tokens'][number]['identifier'];