@paraspell/sdk-pjs 10.0.0 → 10.0.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 +6 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -258,6 +258,7 @@ const result = await Builder(API /*optional*/)
|
|
|
258
258
|
.from(NODE)
|
|
259
259
|
.to(NODE_2)
|
|
260
260
|
.currency({id: currencyID, amount: amount} | {symbol: currencySymbol, amount: amount} | {symbol: Native('currencySymbol'), amount: amount} | {symbol: Foreign('currencySymbol'), amount: amount} | {symbol: ForeignAbstract('currencySymbol'), amount: amount} | {multilocation: AssetMultilocationString, amount: amount | AssetMultilocationJson, amount: amount} | {multilocation: Override('Custom Multilocation'), amount: amount} | {multiasset: {currencySelection, isFeeAsset?: true /* for example symbol: symbol or id: id, or multilocation: multilocation*/, amount: amount}})
|
|
261
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in same fee asset as selected currency.*/
|
|
261
262
|
.address(ADDRESS)
|
|
262
263
|
.senderAddress(SENDER_ADDRESS)
|
|
263
264
|
.dryRun()
|
|
@@ -278,6 +279,7 @@ const info = await Builder(/*node api/ws_url_string/ws_url_array - optional*/)
|
|
|
278
279
|
.from(ORIGIN_CHAIN)
|
|
279
280
|
.to(DESTINATION_CHAIN)
|
|
280
281
|
.currency(CURRENCY)
|
|
282
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in same fee asset as selected currency.*/
|
|
281
283
|
.address(RECIPIENT_ADDRESS)
|
|
282
284
|
.senderAddress(SENDER_ADDRESS)
|
|
283
285
|
.getTransferInfo()
|
|
@@ -289,6 +291,7 @@ const transferable = await Builder(/*node api/ws_url_string/ws_url_array - optio
|
|
|
289
291
|
.from(ORIGIN_CHAIN)
|
|
290
292
|
.to(DESTINATION_CHAIN)
|
|
291
293
|
.currency(CURRENCY)
|
|
294
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in same fee asset as selected currency.*/
|
|
292
295
|
.address(RECIPIENT_ADDRESS)
|
|
293
296
|
.senderAddress(SENDER_ADDRESS)
|
|
294
297
|
.getTransferableAmount()
|
|
@@ -300,6 +303,7 @@ const ed = await Builder(/*node api/ws_url_string/ws_url_array - optional*/)
|
|
|
300
303
|
.from(ORIGIN_CHAIN)
|
|
301
304
|
.to(DESTINATION_CHAIN)
|
|
302
305
|
.currency(CURRENCY)
|
|
306
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in same fee asset as selected currency.*/
|
|
303
307
|
.address(RECIPIENT_ADDRESS)
|
|
304
308
|
.senderAddress(SENDER_ADDRESS)
|
|
305
309
|
.verifyEdOnDestination()
|
|
@@ -313,6 +317,7 @@ const fee = await Builder(/*node api/ws_url_string/ws_url_array - optional*/)
|
|
|
313
317
|
.from(ORIGIN_CHAIN)
|
|
314
318
|
.to(DESTINATION_CHAIN)
|
|
315
319
|
.currency(CURRENCY)
|
|
320
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in same fee asset as selected currency.*/
|
|
316
321
|
.address(RECIPIENT_ADDRESS)
|
|
317
322
|
.senderAddress(SENDER_ADDRESS)
|
|
318
323
|
.getXcmFee(/*{disableFallback: true / false}*/) //Fallback is optional. When fallback is disabled, you only get notified of DryRun error, but no Payment info query fallback is performed. Payment info is still performed if Origin or Destination chain do not support DryRun out of the box.
|
|
@@ -337,6 +342,7 @@ const fee = await Builder(/*node api/ws_url_string/ws_url_array - optional*/)
|
|
|
337
342
|
.from(ORIGIN_CHAIN)
|
|
338
343
|
.to(DESTINATION_CHAIN)
|
|
339
344
|
.currency(CURRENCY)
|
|
345
|
+
/*.feeAsset(CURRENCY) - Optional parameter when origin === AssetHubPolkadot and TX is supposed to be paid in same fee asset as selected currency.*/
|
|
340
346
|
.address(RECIPIENT_ADDRESS)
|
|
341
347
|
.senderAddress(SENDER_ADDRESS)
|
|
342
348
|
.getOriginXcmFee(/*{disableFallback: true / false}*/) //Fallback is optional. When fallback is disabled, you only get notified of DryRun error, but no Payment info query fallback is performed. Payment info is still performed if Origin do not support DryRun out of the box.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.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.50",
|
|
28
28
|
"ethers": "^6.13.7",
|
|
29
29
|
"viem": "^2.28.1",
|
|
30
|
-
"@paraspell/sdk-core": "10.0.
|
|
30
|
+
"@paraspell/sdk-core": "10.0.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 15.0 < 16",
|