@swapkit/core 1.0.0-rc.75 → 1.0.0-rc.77
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/src/client/index.ts +1 -1
package/package.json
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"@internal/config": "null-rc.0",
|
|
13
13
|
"@swapkit/api": "1.0.0-rc.31",
|
|
14
14
|
"@swapkit/tokens": "1.0.0-rc.32",
|
|
15
|
-
"@swapkit/toolbox-cosmos": "1.0.0-rc.
|
|
15
|
+
"@swapkit/toolbox-cosmos": "1.0.0-rc.64",
|
|
16
16
|
"@swapkit/toolbox-evm": "1.0.0-rc.63",
|
|
17
17
|
"@swapkit/toolbox-utxo": "1.0.0-rc.62"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@swapkit/api": "1.0.0-rc.31",
|
|
21
21
|
"@swapkit/tokens": "1.0.0-rc.32",
|
|
22
|
-
"@swapkit/toolbox-cosmos": "1.0.0-rc.
|
|
22
|
+
"@swapkit/toolbox-cosmos": "1.0.0-rc.64",
|
|
23
23
|
"@swapkit/toolbox-evm": "1.0.0-rc.63",
|
|
24
24
|
"@swapkit/toolbox-utxo": "1.0.0-rc.62"
|
|
25
25
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"repository": "https://github.com/thorswap/SwapKit.git",
|
|
50
50
|
"type": "module",
|
|
51
51
|
"types": "./dist/index.d.ts",
|
|
52
|
-
"version": "1.0.0-rc.
|
|
52
|
+
"version": "1.0.0-rc.77",
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "NODE_OPTIONS=--max_old_space_size=16384 vite build",
|
|
55
55
|
"clean": "rm -rf dist vite.config.ts.* .turbo node_modules",
|
package/src/client/index.ts
CHANGED
|
@@ -439,7 +439,7 @@ export class SwapKitCore<T = ''> {
|
|
|
439
439
|
to: 'sym' | 'rune' | 'asset';
|
|
440
440
|
}) => {
|
|
441
441
|
const targetAsset =
|
|
442
|
-
to === 'rune'
|
|
442
|
+
to === 'rune' && from !== 'rune'
|
|
443
443
|
? AssetValue.fromChainOrSignature(Chain.THORChain)
|
|
444
444
|
: (from === 'sym' && to === 'sym') || from === 'rune' || from === 'asset'
|
|
445
445
|
? undefined
|