@paraspell/sdk 0.0.21 → 0.0.22

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 CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  SDK For XCM & XCMP handling made with ❤️ by ParaSpell✨. It is no longer necessary to construct calls manually. @paraspell/sdk handles this for you. Feel free to become magician and try your paraSPELLS 🧙✨.
15
15
 
16
- ##### Currently supporting 42 Polkadot & Kusama nodes list [here](https://github.com/paraspell/sdk/blob/beta-pre-release/docs/supporxxtedNodes.md).
16
+ ##### Currently supporting 42 Polkadot & Kusama nodes list [here](https://github.com/paraspell/sdk/blob/beta-pre-release/docs/supportedNodes.md).
17
17
 
18
18
  ### Check out our brand new Wiki documentation! [Wiki docs](https://paraspell.github.io/docs/)
19
19
 
@@ -166,6 +166,20 @@ paraspell.xyk.buy(api: ApiPromise, assetOut: number, assetIn: number, amount: an
166
166
 
167
167
  //Sell specific asset from pool
168
168
  paraspell.xyk.sell(api: ApiPromise, assetIn: number, assetOut: number, amount: any, maxLimit: any, discount: Bool)
169
+ ```
170
+
171
+ Node pallet operations
172
+ ```js
173
+ import { getDefaultPallet, getSupportedPallets, SUPPORTED_PALLETS } from '@paraspell/sdk'
174
+
175
+ //Returns default pallet for specific parachain node
176
+ getDefaultPallet(node: TNode)
177
+
178
+ //Returns an array of supported pallets for specific parachain node.
179
+ getSupportedPallets(node: TNode)
180
+
181
+ //Prints all pallets that are currently supported
182
+ console.log(SUPPORTED_PALLETS)
169
183
  ```
170
184
 
171
185
  ##### Example of usage can be found in the UI repository [here](https://github.com/paraspell/ui) or in the Astarot repository [here](https://github.com/paraspell/astarot)
@@ -187,6 +201,7 @@ paraspell.xyk.sell(api: ApiPromise, assetIn: number, assetOut: number, amount: a
187
201
  - Run compilation test using `pnpm compile`
188
202
  - Run linting test using `pnpm lint`
189
203
  - Run updateAssets script using `pnpm updateAssets`
204
+ - Run updatePallets script using `pnpm updatePallets`
190
205
  - Run coverage tests usign `pnpm test`
191
206
  - Run all tests using `pnpm runAll`
192
207