@paraspell/sdk-core 10.3.0 → 10.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.
Files changed (4) hide show
  1. package/dist/index.cjs +1466 -1851
  2. package/dist/index.d.ts +27 -38
  3. package/dist/index.mjs +1468 -1853
  4. package/package.json +13 -13
package/dist/index.d.ts CHANGED
@@ -89,6 +89,7 @@ type TXTokensTransferOptions<TApi, TRes> = {
89
89
  origin: TNodePolkadotKusama;
90
90
  destination: TDestination;
91
91
  paraIdTo?: number;
92
+ version: Version;
92
93
  overriddenAsset?: TMultiLocation | TMultiAssetWithFee[];
93
94
  pallet?: string;
94
95
  method?: string;
@@ -119,9 +120,9 @@ type TScenario = 'ParaToRelay' | 'ParaToPara' | 'RelayToPara';
119
120
  * The XCM version.
120
121
  */
121
122
  declare enum Version {
122
- V1 = "V1",
123
123
  V3 = "V3",
124
- V4 = "V4"
124
+ V4 = "V4",
125
+ V5 = "V5"
125
126
  }
126
127
  /**
127
128
  * The supported XCM versions for asset claims.
@@ -1266,17 +1267,17 @@ declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> imple
1266
1267
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1267
1268
  getRelayToParaOverrides(): TRelayToParaOverrides;
1268
1269
  createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, isOverridenAsset?: boolean): {
1269
- V1: _paraspell_assets.TMultiAsset[];
1270
- V3?: undefined;
1271
- V4?: undefined;
1272
- } | {
1273
1270
  V3: _paraspell_assets.TMultiAsset[];
1274
- V1?: undefined;
1275
1271
  V4?: undefined;
1272
+ V5?: undefined;
1276
1273
  } | {
1277
1274
  V4: _paraspell_assets.TMultiAsset[];
1278
- V1?: undefined;
1279
1275
  V3?: undefined;
1276
+ V5?: undefined;
1277
+ } | {
1278
+ V5: _paraspell_assets.TMultiAsset[];
1279
+ V3?: undefined;
1280
+ V4?: undefined;
1280
1281
  };
1281
1282
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1282
1283
  }
@@ -1294,17 +1295,17 @@ declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imp
1294
1295
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1295
1296
  getRelayToParaOverrides(): TRelayToParaOverrides;
1296
1297
  createCurrencySpec(amount: TAmount, scenario: TScenario, version: Version, asset?: TAsset, isOverriddenAsset?: boolean): {
1297
- V1: _paraspell_assets.TMultiAsset[];
1298
- V3?: undefined;
1299
- V4?: undefined;
1300
- } | {
1301
1298
  V3: _paraspell_assets.TMultiAsset[];
1302
- V1?: undefined;
1303
1299
  V4?: undefined;
1300
+ V5?: undefined;
1304
1301
  } | {
1305
1302
  V4: _paraspell_assets.TMultiAsset[];
1306
- V1?: undefined;
1307
1303
  V3?: undefined;
1304
+ V5?: undefined;
1305
+ } | {
1306
+ V5: _paraspell_assets.TMultiAsset[];
1307
+ V3?: undefined;
1308
+ V4?: undefined;
1308
1309
  };
1309
1310
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1310
1311
  }
@@ -1382,10 +1383,6 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
1382
1383
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1383
1384
  }
1384
1385
 
1385
- declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
1386
- constructor();
1387
- }
1388
-
1389
1386
  declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
1390
1387
  constructor();
1391
1388
  _assetCheckEnabled: boolean;
@@ -1438,17 +1435,17 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
1438
1435
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1439
1436
  transferRelayToPara(): TSerializedApiCall;
1440
1437
  createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset): {
1441
- V1: _paraspell_assets.TMultiAsset[];
1442
- V3?: undefined;
1443
- V4?: undefined;
1444
- } | {
1445
1438
  V3: _paraspell_assets.TMultiAsset[];
1446
- V1?: undefined;
1447
1439
  V4?: undefined;
1440
+ V5?: undefined;
1448
1441
  } | {
1449
1442
  V4: _paraspell_assets.TMultiAsset[];
1450
- V1?: undefined;
1451
1443
  V3?: undefined;
1444
+ V5?: undefined;
1445
+ } | {
1446
+ V5: _paraspell_assets.TMultiAsset[];
1447
+ V3?: undefined;
1448
+ V4?: undefined;
1452
1449
  };
1453
1450
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1454
1451
  }
@@ -1476,17 +1473,17 @@ declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements
1476
1473
  constructor();
1477
1474
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1478
1475
  createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset): {
1479
- V1: _paraspell_assets.TMultiAsset[];
1480
- V3?: undefined;
1481
- V4?: undefined;
1482
- } | {
1483
1476
  V3: _paraspell_assets.TMultiAsset[];
1484
- V1?: undefined;
1485
1477
  V4?: undefined;
1478
+ V5?: undefined;
1486
1479
  } | {
1487
1480
  V4: _paraspell_assets.TMultiAsset[];
1488
- V1?: undefined;
1489
1481
  V3?: undefined;
1482
+ V5?: undefined;
1483
+ } | {
1484
+ V5: _paraspell_assets.TMultiAsset[];
1485
+ V3?: undefined;
1486
+ V4?: undefined;
1490
1487
  };
1491
1488
  transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1492
1489
  }
@@ -1653,12 +1650,6 @@ declare class Subsocial<TApi, TRes> extends ParachainNode<TApi, TRes> implements
1653
1650
  transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
1654
1651
  }
1655
1652
 
1656
- declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
1657
- constructor();
1658
- transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
1659
- transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
1660
- }
1661
-
1662
1653
  declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
1663
1654
  private static NATIVE_ASSET_ID;
1664
1655
  constructor();
@@ -1683,7 +1674,6 @@ declare const nodes: <TApi, TRes>() => {
1683
1674
  BifrostPolkadot: BifrostPolkadot<TApi, TRes>;
1684
1675
  BridgeHubPolkadot: BridgeHubPolkadot<TApi, TRes>;
1685
1676
  BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
1686
- Bitgreen: Bitgreen<TApi, TRes>;
1687
1677
  Centrifuge: Centrifuge<TApi, TRes>;
1688
1678
  ComposableFinance: ComposableFinance<TApi, TRes>;
1689
1679
  Darwinia: Darwinia<TApi, TRes>;
@@ -1710,7 +1700,6 @@ declare const nodes: <TApi, TRes>() => {
1710
1700
  PeoplePolkadot: PeoplePolkadot<TApi, TRes>;
1711
1701
  PeopleKusama: PeopleKusama<TApi, TRes>;
1712
1702
  Shiden: Shiden<TApi, TRes>;
1713
- Turing: Turing<TApi, TRes>;
1714
1703
  Manta: Manta<TApi, TRes>;
1715
1704
  Nodle: Nodle<TApi, TRes>;
1716
1705
  NeuroWeb: NeuroWeb<TApi, TRes>;