@paraspell/sdk 3.0.8 → 3.0.10

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
@@ -28,7 +28,7 @@ Our SDK introduced all Polkadot libraries as peer dependencies. The reason for t
28
28
  //npm
29
29
  npm install @polkadot/api @polkadot/types @polkadot/api-base @polkadot/apps-config @polkadot/util
30
30
  //yarn
31
- yarn install @polkadot/api @polkadot/types @polkadot/api-base @polkadot/apps-config @polkadot/util
31
+ yarn add @polkadot/api @polkadot/types @polkadot/api-base @polkadot/apps-config @polkadot/util
32
32
  //pnpm
33
33
  pnpm install @polkadot/api @polkadot/types @polkadot/api-base @polkadot/apps-config @polkadot/util
34
34
  ```
@@ -39,7 +39,7 @@ pnpm install @polkadot/api @polkadot/types @polkadot/api-base @polkadot/apps-con
39
39
  //npm
40
40
  npm install @paraspell/sdk
41
41
  //yarn
42
- yarn install @paraspell/sdk
42
+ yarn add @paraspell/sdk
43
43
  //pnpm
44
44
  pnpm install @paraspell/sdk
45
45
  ```
package/dist/index.cjs CHANGED
@@ -5599,10 +5599,7 @@ var BifrostKusama$1 = /*#__PURE__*/function (_ParachainNode) {
5599
5599
  _createClass(BifrostKusama, [{
5600
5600
  key: "transferXTokens",
5601
5601
  value: function transferXTokens(input) {
5602
- // Multiple asset options need addressing
5603
- var currencySelection = {
5604
- Native: input.currency
5605
- };
5602
+ var currencySelection = _defineProperty({}, input.currency === 'BNC' ? 'Native' : 'Token', input.currency);
5606
5603
  return XTokensTransferImpl.transferXTokens(input, currencySelection);
5607
5604
  }
5608
5605
  }]);
@@ -6678,7 +6675,7 @@ var createApiInstanceForNode = function createApiInstanceForNode(node) {
6678
6675
  break;
6679
6676
  }
6680
6677
  endpointOption = node === 'Polkadot' ? endpoints.prodRelayPolkadot : endpoints.prodRelayKusama;
6681
- wsUrl = Object.values(endpointOption.providers)[0];
6678
+ wsUrl = Object.values(endpointOption.providers)[1];
6682
6679
  _context2.next = 5;
6683
6680
  return createApiInstance(wsUrl);
6684
6681
  case 5:
package/dist/index.mjs CHANGED
@@ -5597,10 +5597,7 @@ var BifrostKusama$1 = /*#__PURE__*/function (_ParachainNode) {
5597
5597
  _createClass(BifrostKusama, [{
5598
5598
  key: "transferXTokens",
5599
5599
  value: function transferXTokens(input) {
5600
- // Multiple asset options need addressing
5601
- var currencySelection = {
5602
- Native: input.currency
5603
- };
5600
+ var currencySelection = _defineProperty({}, input.currency === 'BNC' ? 'Native' : 'Token', input.currency);
5604
5601
  return XTokensTransferImpl.transferXTokens(input, currencySelection);
5605
5602
  }
5606
5603
  }]);
@@ -6676,7 +6673,7 @@ var createApiInstanceForNode = function createApiInstanceForNode(node) {
6676
6673
  break;
6677
6674
  }
6678
6675
  endpointOption = node === 'Polkadot' ? prodRelayPolkadot : prodRelayKusama;
6679
- wsUrl = Object.values(endpointOption.providers)[0];
6676
+ wsUrl = Object.values(endpointOption.providers)[1];
6680
6677
  _context2.next = 5;
6681
6678
  return createApiInstance(wsUrl);
6682
6679
  case 5:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": "@paraspell/sdk",
6
6
  "license": "MIT",