@paraspell/sdk 8.0.0 → 8.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _paraspell_sdk_core from '@paraspell/sdk-core';
2
- import { TApiOrUrl, TSendOptions, TOptionalEvmBuilderOptions, IPolkadotApi, TNodePolkadotKusama, TCurrencyCoreV1WithAmount, GeneralBuilder as GeneralBuilder$1, IUseKeepAliveFinalBuilder as IUseKeepAliveFinalBuilder$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, TNodePolkadotKusama, TCurrencyCoreV1WithAmount, GeneralBuilder as GeneralBuilder$1, IFinalBuilderWithOptions as IFinalBuilderWithOptions$1, TNodeDotKsmWithRelayChains } 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';
@@ -15,9 +15,11 @@ type TPapiTransaction = UnsafeTransaction<any, string, string, any>;
15
15
  * @param options - The transfer options.
16
16
  * @returns An extrinsic to be signed and sent.
17
17
  */
18
- declare const send: (options: Omit<TSendOptions<TPapiApi, TPapiTransaction>, "api" | "destApiForKeepAlive"> & {
19
- api: TPapiApiOrUrl;
20
- destApiForKeepAlive: TPapiApiOrUrl;
18
+ declare const send: (options: _paraspell_sdk_core.TSendBaseOptions & {
19
+ origin: _paraspell_sdk_core.TNodeDotKsmWithRelayChains;
20
+ currency: _paraspell_sdk_core.TCurrencyInputWithAmount;
21
+ } & {
22
+ api?: TPapiApiOrUrl;
21
23
  }) => Promise<TPapiTransaction>;
22
24
  declare const getDryRun: (options: _paraspell_sdk_core.TDryRunBaseOptions<TPapiTransaction> & {
23
25
  api?: TPapiApiOrUrl;
@@ -87,17 +89,36 @@ declare const getTransferableAmount: (options: _paraspell_sdk_core.TGetTransfera
87
89
  api?: TPapiApiOrUrl;
88
90
  }) => Promise<bigint>;
89
91
 
92
+ declare const assets_Foreign: typeof Foreign;
93
+ declare const assets_ForeignAbstract: typeof ForeignAbstract;
94
+ declare const assets_Native: typeof Native;
95
+ declare const assets_Override: typeof Override;
90
96
  declare const assets_claimAssets: typeof claimAssets;
97
+ declare const assets_getAllAssetsSymbols: typeof getAllAssetsSymbols;
91
98
  declare const assets_getAssetBalance: typeof getAssetBalance;
99
+ declare const assets_getAssetBySymbolOrId: typeof getAssetBySymbolOrId;
100
+ declare const assets_getAssetDecimals: typeof getAssetDecimals;
101
+ declare const assets_getAssetId: typeof getAssetId;
102
+ declare const assets_getAssets: typeof getAssets;
103
+ declare const assets_getAssetsObject: typeof getAssetsObject;
92
104
  declare const assets_getBalanceForeign: typeof getBalanceForeign;
93
105
  declare const assets_getBalanceNative: typeof getBalanceNative;
106
+ declare const assets_getExistentialDeposit: typeof getExistentialDeposit;
94
107
  declare const assets_getMaxForeignTransferableAmount: typeof getMaxForeignTransferableAmount;
95
108
  declare const assets_getMaxNativeTransferableAmount: typeof getMaxNativeTransferableAmount;
109
+ declare const assets_getNativeAssetSymbol: typeof getNativeAssetSymbol;
110
+ declare const assets_getNativeAssets: typeof getNativeAssets;
96
111
  declare const assets_getOriginFeeDetails: typeof getOriginFeeDetails;
112
+ declare const assets_getOtherAssets: typeof getOtherAssets;
113
+ declare const assets_getRelayChainSymbol: typeof getRelayChainSymbol;
114
+ declare const assets_getSupportedAssets: typeof getSupportedAssets;
115
+ declare const assets_getTNode: typeof getTNode;
97
116
  declare const assets_getTransferInfo: typeof getTransferInfo;
98
117
  declare const assets_getTransferableAmount: typeof getTransferableAmount;
118
+ declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
119
+ declare const assets_isNodeEvm: typeof isNodeEvm;
99
120
  declare namespace assets {
100
- export { assets_claimAssets as claimAssets, assets_getAssetBalance as getAssetBalance, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getTransferInfo as getTransferInfo, assets_getTransferableAmount as getTransferableAmount };
121
+ export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetBySymbolOrId as getAssetBySymbolOrId, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getMaxForeignTransferableAmount as getMaxForeignTransferableAmount, assets_getMaxNativeTransferableAmount as getMaxNativeTransferableAmount, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_getTransferableAmount as getTransferableAmount, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm };
101
122
  }
102
123
 
103
124
  /**
@@ -160,8 +181,8 @@ declare const GeneralBuilder: {
160
181
  };
161
182
  declare const EvmBuilder: () => EvmBuilderClass<polkadot_api.PolkadotClient, TPapiTransaction>;
162
183
 
163
- type IUseKeepAliveFinalBuilder = IUseKeepAliveFinalBuilder$1<TPapiApi, TPapiTransaction>;
184
+ type IFinalBuilderWithOptions = IFinalBuilderWithOptions$1<TPapiApi, TPapiTransaction>;
164
185
 
165
186
  declare const createApiInstanceForNode: (node: TNodeDotKsmWithRelayChains) => Promise<polkadot_api.PolkadotClient>;
166
187
 
167
- export { Builder, EvmBuilder, GeneralBuilder, type IUseKeepAliveFinalBuilder, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, assets, claimAssets, createApiInstanceForNode, getAssetBalance, getBalanceForeign, getBalanceNative, getDryRun, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getOriginFeeDetails, getTransferInfo, getTransferableAmount, send, transfer as xcmPallet };
188
+ export { Builder, EvmBuilder, GeneralBuilder, type IFinalBuilderWithOptions, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, assets, claimAssets, createApiInstanceForNode, getAssetBalance, getBalanceForeign, getBalanceNative, getDryRun, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getOriginFeeDetails, getTransferInfo, getTransferableAmount, send, transfer as xcmPallet };