@paraspell/sdk 8.14.0 → 8.15.0
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/README.md +16 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -313,38 +313,43 @@ await builder.disconnect()
|
|
|
313
313
|
### Asset queries:
|
|
314
314
|
|
|
315
315
|
```ts
|
|
316
|
+
import { getFeeAssets, getAssetsObject, getAssetId, getRelayChainSymbol, getNativeAssets, getNativeAssets, getOtherAssets, getAllAssetsSymbols, hasSupportForAsset, getAssetDecimals, getParaId, getTNode, getAssetMultiLocation, NODE_NAMES } from '@paraspell/sdk'
|
|
317
|
+
|
|
318
|
+
// Retrieve Fee asset queries (Assets accepted as XCM Fee on specific node)
|
|
319
|
+
getFeeAssets(node: TNode)
|
|
320
|
+
|
|
316
321
|
// Retrieve assets object from assets.json for particular node including information about native and foreign assets
|
|
317
|
-
|
|
322
|
+
getAssetsObject(node: TNode)
|
|
318
323
|
|
|
319
324
|
// Retrieve foreign assetId for a particular node and asset symbol
|
|
320
|
-
|
|
325
|
+
getAssetId(node: TNode, symbol: string)
|
|
321
326
|
|
|
322
327
|
// Retrieve the symbol of the relay chain for a particular node. Either "DOT" or "KSM"
|
|
323
|
-
|
|
328
|
+
getRelayChainSymbol(node: TNode)
|
|
324
329
|
|
|
325
330
|
// Retrieve string array of native assets symbols for particular node
|
|
326
|
-
|
|
331
|
+
getNativeAssets(node: TNode)
|
|
327
332
|
|
|
328
333
|
// Retrieve object array of foreign assets for a particular node. Each object has a symbol and assetId property
|
|
329
|
-
|
|
334
|
+
getOtherAssets(node: TNode)
|
|
330
335
|
|
|
331
336
|
// Retrieve string array of all assets symbols. (native and foreign assets are merged into a single array)
|
|
332
|
-
|
|
337
|
+
getAllAssetsSymbols(node: TNode)
|
|
333
338
|
|
|
334
339
|
// Check if a node supports a particular asset. (Both native and foreign assets are searched). Returns boolean
|
|
335
|
-
|
|
340
|
+
hasSupportForAsset(node: TNode, symbol: string)
|
|
336
341
|
|
|
337
342
|
// Get decimals for specific asset
|
|
338
|
-
|
|
343
|
+
getAssetDecimals(node: TNode, symbol: string)
|
|
339
344
|
|
|
340
345
|
// Get specific node id
|
|
341
|
-
|
|
346
|
+
getParaId(node: TNode)
|
|
342
347
|
|
|
343
348
|
// Get specific TNode from nodeID
|
|
344
|
-
|
|
349
|
+
getTNode(nodeID: number, ecosystem: 'polkadot' || 'kusama' || 'ethereum') //When Ethereum ecosystem is selected please fill nodeID as 1 to select Ethereum.
|
|
345
350
|
|
|
346
351
|
// Import all compatible nodes as constant
|
|
347
|
-
|
|
352
|
+
NODE_NAMES
|
|
348
353
|
|
|
349
354
|
// Get multilocation for asset id or symbol on specific chain
|
|
350
355
|
getAssetMultiLocation(chainFrom, { symbol: symbol } | { id: assetId })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.15.0",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"ethers": "^6.13.7",
|
|
28
28
|
"quick-lru": "^7.0.1",
|
|
29
29
|
"viem": "^2.28.1",
|
|
30
|
-
"@paraspell/sdk-core": "8.
|
|
30
|
+
"@paraspell/sdk-core": "8.15.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"polkadot-api": ">= 1.10.2 < 2"
|