@paraspell/sdk 13.0.1 → 13.2.0

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,9 +13,6 @@
13
13
  <a href="https://github.com/paraspell/xcm-sdk/actions">
14
14
  <img alt="build" src="https://github.com/paraspell/xcm-tools/actions/workflows/ci.yml/badge.svg" />
15
15
  </a>
16
- <a href="https://snyk.io/test/github/paraspell/sdk">
17
- <img alt="snyk" src="https://snyk.io/test/github/paraspell/sdk/badge.svg" />
18
- </a>
19
16
  </p>
20
17
  <p>Supporting every XCM Active Parachain <a href = "https://paraspell.github.io/docs/supported.html"\>[list]</p>
21
18
  <p>SDK documentation <a href = "https://paraspell.github.io/docs/" \>[here]</p>
@@ -90,11 +87,12 @@ import * as paraspell from '@paraspell/sdk'
90
87
  > - You can now pass signer directly into sender parameter
91
88
  > - The local transfers now have additional builder parameter called keepAlive
92
89
  > - Transact is here! Find out more: https://paraspell.github.io/docs/sdk/xcmPallet.html#transact
93
- >
94
- > **Latest news:**
95
90
  > - V12 > V13 Migration guide: https://paraspell.github.io/docs/migration/v12-to-v13.html
96
91
  > - Swap package is now available on every XCM SDK version: https://paraspell.github.io/docs/sdk/getting-started.html#install-swap-extension
92
+ >
93
+ > **Latest news:**
97
94
  > - abstractDecimals is now turned on by default!
95
+ > - PAPI V2 available from version 13.2.0 onwards!
98
96
 
99
97
  ### Sending XCM
100
98
  For full documentation on XCM Transfers head over to [official documentation](https://paraspell.github.io/docs/sdk/xcmPallet.html).
@@ -602,9 +600,7 @@ console.log(CHAINS)
602
600
 
603
601
  - Run unit tests using `pnpm test`
604
602
 
605
- - Run end-to-end tests using `pnpm test:e2e`
606
-
607
- - Run swap end-to-end tests using `pnpm test:e2e:swap`
603
+ - Run end-to-end tests (SDK+SWAP) using `pnpm test:e2e`
608
604
 
609
605
  - Run full end-to-end tests using `pnpm test:e2e:chopsticks`
610
606
 
package/dist/index.d.ts CHANGED
@@ -2,12 +2,12 @@ import * as _paraspell_sdk_core from '@paraspell/sdk-core';
2
2
  import { TEvmChainFrom, TSwapEvent as TSwapEvent$1, Foreign, ForeignAbstract, Native, Override, findAssetInfo, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTChain, hasSupportForAsset, isChainEvm, TSubstrateChain, TEvmBuilderOptions, TChain, TCurrencyInputWithAmount, TBuilderOptions, TApiOrUrl, GeneralBuilder as GeneralBuilder$1, TTransferBaseOptions, TGetXcmFeeBaseOptions, TCreateBaseSwapXcmOptions } from '@paraspell/sdk-core';
3
3
  export * from '@paraspell/sdk-core';
4
4
  import * as polkadot_api from 'polkadot-api';
5
- import { PolkadotClient, UnsafeTransaction, PolkadotSigner } from 'polkadot-api';
5
+ import { PolkadotClient, Transaction, PolkadotSigner } from 'polkadot-api';
6
6
  import { WalletClient } from 'viem';
7
7
 
8
8
  type TPapiApi = PolkadotClient;
9
9
  type TPapiSigner = PolkadotSigner;
10
- type TPapiTransaction = UnsafeTransaction<any, string, string, any>;
10
+ type TPapiTransaction = Transaction<any, any>;
11
11
  type TEvmChainFromPapi = Extract<TEvmChainFrom, 'Moonbeam' | 'Moonriver' | 'Darwinia'>;
12
12
  type TSwapEvent = TSwapEvent$1<TPapiApi, TPapiTransaction>;
13
13