@paraspell/sdk-pjs 11.0.1 → 11.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/README.md +26 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -472,6 +472,32 @@ getTChain(paraID: number, ecosystem: 'Polkadot' | 'Kusama' | 'Ethereum' | 'Paseo
|
|
|
472
472
|
CHAINS
|
|
473
473
|
```
|
|
474
474
|
|
|
475
|
+
### Parachain XCM Pallet queries
|
|
476
|
+
|
|
477
|
+
For full documentation with examples on this feature head over to [official documentation](https://paraspell.github.io/docs/sdk/NodePallets.html).
|
|
478
|
+
|
|
479
|
+
```ts
|
|
480
|
+
import { getDefaultPallet, getSupportedPallets, getPalletIndex, getNativeAssetsPallet, getOtherAssetsPallets, SUPPORTED_PALLETS } from '@paraspell/sdk-pjs';
|
|
481
|
+
|
|
482
|
+
//Retrieve default pallet for specific Parachain
|
|
483
|
+
getDefaultPallet(CHAIN)
|
|
484
|
+
|
|
485
|
+
// Returns an array of supported pallets for a specific Parachain
|
|
486
|
+
getSupportedPallets(CHAIN)
|
|
487
|
+
|
|
488
|
+
//Returns index of XCM Pallet used by Parachain
|
|
489
|
+
getPalletIndex(CHAIN)
|
|
490
|
+
|
|
491
|
+
//Returns all pallets for local transfers of native assets for specific chain.
|
|
492
|
+
getNativeAssetsPallet(chain: TChain)
|
|
493
|
+
|
|
494
|
+
//Returns all pallets for local transfers of foreign assets for specific chain.
|
|
495
|
+
getOtherAssetsPallets(CHAIN)
|
|
496
|
+
|
|
497
|
+
// Print all pallets that are currently supported
|
|
498
|
+
console.log(SUPPORTED_PALLETS)
|
|
499
|
+
```
|
|
500
|
+
|
|
475
501
|
## 💻 Tests
|
|
476
502
|
- Run compilation using `pnpm compile`
|
|
477
503
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@snowbridge/contract-types": "0.1.64",
|
|
28
28
|
"ethers": "^6.15.0",
|
|
29
29
|
"viem": "^2.33.2",
|
|
30
|
-
"@paraspell/sdk-core": "11.
|
|
30
|
+
"@paraspell/sdk-core": "11.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 16.0 < 17",
|