@swapkit/sdk 2.0.12 → 2.1.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/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/package.json +10 -9
- package/src/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{SwapKit as r}from"@swapkit/core";import{ChainflipPlugin as
|
|
1
|
+
import{SwapKit as r}from"@swapkit/core";import{ChainflipPlugin as a}from"@swapkit/plugin-chainflip";import{EVMPlugin as e}from"@swapkit/plugin-evm";import{KadoPlugin as l}from"@swapkit/plugin-kado";import{RadixPlugin as p}from"@swapkit/plugin-radix";import{MayachainPlugin as m,ThorchainPlugin as f}from"@swapkit/plugin-thorchain";import{wallets as n}from"@swapkit/wallets";export*from"@swapkit/core";export*from"@swapkit/tokens";import{SwapKitApi as M}from"@swapkit/api";var s={...a,...e,...l,...m,...f,...p},c=({plugins:t,wallets:i,...o}={})=>{return r({...o,wallets:i||n,plugins:t||s})};export{c as createSwapKit,M as SwapKitApi};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=42FEA2EEDBAFF01464756E2164756E21
|
package/dist/index.js.map
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import { SwapKit, type SwapKitParams } from \"@swapkit/core\";\nimport { ChainflipPlugin } from \"@swapkit/plugin-chainflip\";\nimport { EVMPlugin } from \"@swapkit/plugin-evm\";\nimport { RadixPlugin } from \"@swapkit/plugin-radix\";\nimport { MayachainPlugin, ThorchainPlugin } from \"@swapkit/plugin-thorchain\";\nimport { wallets as defaultWallets } from \"@swapkit/wallets\";\n\nexport * from \"@swapkit/core\";\nexport * from \"@swapkit/tokens\";\n\nconst defaultPlugins = {\n ...ChainflipPlugin,\n ...EVMPlugin,\n ...MayachainPlugin,\n ...ThorchainPlugin,\n ...RadixPlugin,\n};\n\nexport const createSwapKit = <P extends typeof defaultPlugins, W extends typeof defaultWallets>({\n plugins,\n wallets,\n ...extendParams\n}: SwapKitParams<P, W> = {}) => {\n return SwapKit({\n ...extendParams,\n wallets: wallets || defaultWallets,\n plugins: plugins || defaultPlugins,\n });\n};\n\nexport { SwapKitApi } from \"@swapkit/api\";\n"
|
|
5
|
+
"import { SwapKit, type SwapKitParams } from \"@swapkit/core\";\nimport { ChainflipPlugin } from \"@swapkit/plugin-chainflip\";\nimport { EVMPlugin } from \"@swapkit/plugin-evm\";\nimport { KadoPlugin } from \"@swapkit/plugin-kado\";\nimport { RadixPlugin } from \"@swapkit/plugin-radix\";\nimport { MayachainPlugin, ThorchainPlugin } from \"@swapkit/plugin-thorchain\";\nimport { wallets as defaultWallets } from \"@swapkit/wallets\";\n\nexport * from \"@swapkit/core\";\nexport * from \"@swapkit/tokens\";\n\nconst defaultPlugins = {\n ...ChainflipPlugin,\n ...EVMPlugin,\n ...KadoPlugin,\n ...MayachainPlugin,\n ...ThorchainPlugin,\n ...RadixPlugin,\n};\n\nexport const createSwapKit = <P extends typeof defaultPlugins, W extends typeof defaultWallets>({\n plugins,\n wallets,\n ...extendParams\n}: SwapKitParams<P, W> = {}) => {\n return SwapKit({\n ...extendParams,\n wallets: wallets || defaultWallets,\n plugins: plugins || defaultPlugins,\n });\n};\n\nexport { SwapKitApi } from \"@swapkit/api\";\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "AAAA,kBAAS,sBACT,0BAAS,kCACT,oBAAS,4BACT,sBAAS,8BACT,0BAAS,qBAAiB,kCAC1B,kBAAS,yBAET,2BACA,
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": "AAAA,kBAAS,sBACT,0BAAS,kCACT,oBAAS,4BACT,qBAAS,6BACT,sBAAS,8BACT,0BAAS,qBAAiB,kCAC1B,kBAAS,yBAET,2BACA,6BAuBA,qBAAS,qBArBT,IAAM,EAAiB,IAClB,KACA,KACA,KACA,KACA,KACA,CACL,EAEa,EAAgB,EAC3B,UACA,aACG,GACoB,CAAC,IAAM,CAC9B,OAAO,EAAQ,IACV,EACH,QAAS,GAAW,EACpB,QAAS,GAAW,CACtB,CAAC",
|
|
8
|
+
"debugId": "42FEA2EEDBAFF01464756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-oss",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@swapkit/api": "2.0.
|
|
5
|
-
"@swapkit/core": "3.
|
|
6
|
-
"@swapkit/plugin-chainflip": "1.4.
|
|
7
|
-
"@swapkit/plugin-evm": "1.3.
|
|
8
|
-
"@swapkit/plugin-
|
|
9
|
-
"@swapkit/plugin-
|
|
10
|
-
"@swapkit/
|
|
11
|
-
"@swapkit/
|
|
4
|
+
"@swapkit/api": "2.0.1",
|
|
5
|
+
"@swapkit/core": "3.1.0",
|
|
6
|
+
"@swapkit/plugin-chainflip": "1.4.4",
|
|
7
|
+
"@swapkit/plugin-evm": "1.3.4",
|
|
8
|
+
"@swapkit/plugin-kado": "0.1.1",
|
|
9
|
+
"@swapkit/plugin-radix": "1.3.0",
|
|
10
|
+
"@swapkit/plugin-thorchain": "2.1.0",
|
|
11
|
+
"@swapkit/tokens": "1.11.0",
|
|
12
|
+
"@swapkit/wallets": "1.2.38"
|
|
12
13
|
},
|
|
13
14
|
"description": "SwapKit - SDK",
|
|
14
15
|
"files": [
|
|
@@ -31,5 +32,5 @@
|
|
|
31
32
|
},
|
|
32
33
|
"type": "module",
|
|
33
34
|
"types": "./src/index.ts",
|
|
34
|
-
"version": "2.
|
|
35
|
+
"version": "2.1.1"
|
|
35
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SwapKit, type SwapKitParams } from "@swapkit/core";
|
|
2
2
|
import { ChainflipPlugin } from "@swapkit/plugin-chainflip";
|
|
3
3
|
import { EVMPlugin } from "@swapkit/plugin-evm";
|
|
4
|
+
import { KadoPlugin } from "@swapkit/plugin-kado";
|
|
4
5
|
import { RadixPlugin } from "@swapkit/plugin-radix";
|
|
5
6
|
import { MayachainPlugin, ThorchainPlugin } from "@swapkit/plugin-thorchain";
|
|
6
7
|
import { wallets as defaultWallets } from "@swapkit/wallets";
|
|
@@ -11,6 +12,7 @@ export * from "@swapkit/tokens";
|
|
|
11
12
|
const defaultPlugins = {
|
|
12
13
|
...ChainflipPlugin,
|
|
13
14
|
...EVMPlugin,
|
|
15
|
+
...KadoPlugin,
|
|
14
16
|
...MayachainPlugin,
|
|
15
17
|
...ThorchainPlugin,
|
|
16
18
|
...RadixPlugin,
|