@paraspell/sdk 8.2.2 → 8.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/README.md +4 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -278,6 +278,9 @@ paraspell.assets.getTNode(nodeID: number)
|
|
|
278
278
|
|
|
279
279
|
// Import all compatible nodes as constant
|
|
280
280
|
paraspell.NODE_NAMES
|
|
281
|
+
|
|
282
|
+
// Get multilocation for asset id or symbol on specific chain
|
|
283
|
+
getAssetMultiLocation(chainFrom, { symbol: symbol } | { id: assetId })
|
|
281
284
|
```
|
|
282
285
|
|
|
283
286
|
### Parachain XCM Pallet queries
|
|
@@ -314,7 +317,7 @@ await getBalanceForeign({address, node, currency /*- {id: currencyID} | {symbol:
|
|
|
314
317
|
await getBalanceNative({address, node, api /* api/ws_url_string optional */})
|
|
315
318
|
|
|
316
319
|
//Get fee information regarding XCM call
|
|
317
|
-
await getOriginFeeDetails({from, to, currency /*- {id: currencyID} | {symbol: currencySymbol} | {symbol: Native('currencySymbol')} | {symbol: Foreign('currencySymbol')} | {symbol: ForeignAbstract('currencySymbol')} | {multilocation: AssetMultilocationString | AssetMultilocationJson}*/, amount, originAddress, destinationAddress, api /* api/ws_url_string optional */, feeMargin /* 10% by default */})
|
|
320
|
+
await getOriginFeeDetails({from, to, currency /*- {id: currencyID} | {symbol: currencySymbol} | {symbol: Native('currencySymbol')} | {symbol: Foreign('currencySymbol')} | {symbol: ForeignAbstract('currencySymbol')} | {multilocation: AssetMultilocationString | AssetMultilocationJson}*/, amount, originAddress, destinationAddress, ahAddress /* optional parameter when destination is Ethereum and origin is Parachain other than AssetHub*/, api /* api/ws_url_string optional */, feeMargin /* 10% by default */})
|
|
318
321
|
|
|
319
322
|
//Retrieves the asset balance for a given account on a specified node. (You do not need to specify if it is native or foreign).
|
|
320
323
|
await getAssetBalance({address, node, currency /*- {id: currencyID} | {symbol: currencySymbol} | {symbol: Native('currencySymbol')} | {symbol: Foreign('currencySymbol')} | {symbol: ForeignAbstract('currencySymbol')} | {multilocation: AssetMultilocationString | AssetMultilocationJson}*/, api /* api/ws_url_string optional */});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.1",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"ethers": "^6.13.5",
|
|
27
|
-
"viem": "^2.22.
|
|
28
|
-
"@paraspell/sdk-core": "8.
|
|
27
|
+
"viem": "^2.22.22",
|
|
28
|
+
"@paraspell/sdk-core": "8.3.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"polkadot-api": ">= 1.8.4 < 2"
|