@paraspell/sdk-pjs 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/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -276,6 +276,9 @@ paraspell.assets.getTNode(nodeID: number)
|
|
|
276
276
|
|
|
277
277
|
// Import all compatible nodes as constant
|
|
278
278
|
paraspell.NODE_NAMES
|
|
279
|
+
|
|
280
|
+
// Get multilocation for asset id or symbol on specific chain
|
|
281
|
+
getAssetMultiLocation(chainFrom, { symbol: symbol } | { id: assetId })
|
|
279
282
|
```
|
|
280
283
|
|
|
281
284
|
### Parachain XCM Pallet queries
|
|
@@ -312,7 +315,7 @@ await getBalanceForeign({address, node, currency /*- {id: currencyID} | {symbol:
|
|
|
312
315
|
await getBalanceNative({address, node, api /* api/ws_url_string optional */})
|
|
313
316
|
|
|
314
317
|
//Get fee information regarding XCM call
|
|
315
|
-
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 */})
|
|
318
|
+
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 */})
|
|
316
319
|
|
|
317
320
|
//Retrieves the asset balance for a given account on a specified node. (You do not need to specify if it is native or foreign).
|
|
318
321
|
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/dist/index.cjs
CHANGED
|
@@ -455,8 +455,8 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
455
455
|
polkadot: {
|
|
456
456
|
assetHubParaId: config.ASSET_HUB_PARAID,
|
|
457
457
|
bridgeHubParaId: config.BRIDGE_HUB_PARAID,
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
parachains: config.PARACHAINS,
|
|
459
|
+
relaychain: config.RELAY_CHAIN_URL
|
|
460
460
|
},
|
|
461
461
|
appContracts: {
|
|
462
462
|
gateway: config.GATEWAY_CONTRACT,
|
package/dist/index.mjs
CHANGED
|
@@ -454,8 +454,8 @@ var createContext = function createContext(executionUrl, config) {
|
|
|
454
454
|
polkadot: {
|
|
455
455
|
assetHubParaId: config.ASSET_HUB_PARAID,
|
|
456
456
|
bridgeHubParaId: config.BRIDGE_HUB_PARAID,
|
|
457
|
-
|
|
458
|
-
|
|
457
|
+
parachains: config.PARACHAINS,
|
|
458
|
+
relaychain: config.RELAY_CHAIN_URL
|
|
459
459
|
},
|
|
460
460
|
appContracts: {
|
|
461
461
|
gateway: config.GATEWAY_CONTRACT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.1",
|
|
4
4
|
"description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@snowbridge/api": "^0.1.32",
|
|
27
27
|
"@snowbridge/contract-types": "^0.1.32",
|
|
28
28
|
"ethers": "^6.13.5",
|
|
29
|
-
"viem": "^2.22.
|
|
30
|
-
"@paraspell/sdk-core": "8.
|
|
29
|
+
"viem": "^2.22.22",
|
|
30
|
+
"@paraspell/sdk-core": "8.3.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 15.0 < 16",
|