@paraspell/sdk 8.0.1 → 8.0.3

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/dist/index.cjs CHANGED
@@ -755,8 +755,8 @@ var PapiApi = /*#__PURE__*/function () {
755
755
  key: "accountToHex",
756
756
  value: function accountToHex(address) {
757
757
  var isPrefixed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
758
- var binary = polkadotApi.FixedSizeBinary.fromAccountId32(address);
759
- return binary.asHex().slice(isPrefixed ? 2 : 0);
758
+ var hex = this.createAccountId(address);
759
+ return isPrefixed ? hex : hex.slice(2);
760
760
  }
761
761
  }, {
762
762
  key: "callTxMethod",
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _paraspell_sdk_core from '@paraspell/sdk-core';
2
- import { TApiOrUrl, Foreign, ForeignAbstract, Native, Override, getAllAssetsSymbols, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TOptionalEvmBuilderOptions, IPolkadotApi, TNodePolkadotKusama, TCurrencyCoreV1WithAmount, GeneralBuilder as GeneralBuilder$1, IFinalBuilderWithOptions as IFinalBuilderWithOptions$1, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-core';
2
+ import { TApiOrUrl, Foreign, ForeignAbstract, Native, Override, getAllAssetsSymbols, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, TOptionalEvmBuilderOptions, IPolkadotApi, TNodeDotKsmWithRelayChains, TCurrencyInputWithAmount, GeneralBuilder as GeneralBuilder$1, IFinalBuilderWithOptions as IFinalBuilderWithOptions$1 } from '@paraspell/sdk-core';
3
3
  export * from '@paraspell/sdk-core';
4
4
  import * as polkadot_api from 'polkadot-api';
5
5
  import { PolkadotClient, UnsafeTransaction } from 'polkadot-api';
@@ -134,14 +134,14 @@ declare class EvmBuilderClass<TApi, TRes> {
134
134
  * @param node - The Polkadot node to which the transfer will be made.
135
135
  * @returns An instance of EvmBuilder
136
136
  */
137
- to(node: TNodePolkadotKusama): this;
137
+ to(node: TNodeDotKsmWithRelayChains): this;
138
138
  /**
139
139
  * Specifies the currency to transfer.
140
140
  *
141
141
  * @param currency - The currency to be transferred.
142
142
  * @returns An instance of EvmBuilder
143
143
  */
144
- currency(currency: TCurrencyCoreV1WithAmount): this;
144
+ currency(currency: TCurrencyInputWithAmount): this;
145
145
  /**
146
146
  * Specifies the recipient address on Polkadot.
147
147
  *
package/dist/index.mjs CHANGED
@@ -754,8 +754,8 @@ var PapiApi = /*#__PURE__*/function () {
754
754
  key: "accountToHex",
755
755
  value: function accountToHex(address) {
756
756
  var isPrefixed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
757
- var binary = FixedSizeBinary.fromAccountId32(address);
758
- return binary.asHex().slice(isPrefixed ? 2 : 0);
757
+ var hex = this.createAccountId(address);
758
+ return isPrefixed ? hex : hex.slice(2);
759
759
  }
760
760
  }, {
761
761
  key: "callTxMethod",
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
- "repository": "@paraspell/sdk",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/paraspell/xcm-tools.git",
8
+ "directory": "packages/sdk"
9
+ },
6
10
  "license": "MIT",
7
11
  "type": "module",
8
12
  "exports": {
9
13
  ".": {
14
+ "types": "./dist/index.d.ts",
10
15
  "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs",
12
- "types": "./dist/index.d.ts"
16
+ "require": "./dist/index.cjs"
13
17
  }
14
18
  },
15
19
  "main": "dist/index.cjs",
@@ -21,7 +25,7 @@
21
25
  "dependencies": {
22
26
  "ethers": "^6.13.4",
23
27
  "viem": "^2.21.58",
24
- "@paraspell/sdk-core": "8.0.1"
28
+ "@paraspell/sdk-core": "8.0.3"
25
29
  },
26
30
  "peerDependencies": {
27
31
  "polkadot-api": ">= 1.8.1 < 2"