@paraspell/sdk-pjs 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, TSerializeEthTransferOptions, TSerializedEthTransfer, TSendOptions, TEvmBuilderOptions, TOptionalEvmBuilderOptions, IPolkadotApi, TNodePolkadotKusama, TCurrencyCoreV1WithAmount, GeneralBuilder as GeneralBuilder$1, IUseKeepAliveFinalBuilder as IUseKeepAliveFinalBuilder$1, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-core';
2
+ import { TApiOrUrl, TSerializeEthTransferOptions, TSerializedEthTransfer, TEvmBuilderOptions, 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 _snowbridge_api_dist_toPolkadot from '@snowbridge/api/dist/toPolkadot';
5
5
  import { SubmittableExtrinsic } from '@polkadot/api/types';
@@ -18,9 +18,11 @@ declare const buildEthTransferOptions: ({ currency, to, address, destAddress }:
18
18
  * @param options - The transfer options.
19
19
  * @returns An extrinsic to be signed and sent.
20
20
  */
21
- declare const send: (options: Omit<TSendOptions<TPjsApi, Extrinsic>, "api" | "destApiForKeepAlive"> & {
21
+ declare const send: (options: _paraspell_sdk_core.TSendBaseOptions & {
22
+ origin: _paraspell_sdk_core.TNodeDotKsmWithRelayChains;
23
+ currency: _paraspell_sdk_core.TCurrencyInputWithAmount;
24
+ } & {
22
25
  api?: TPjsApiOrUrl;
23
- destApiForKeepAlive?: TPjsApiOrUrl;
24
26
  }) => Promise<Extrinsic>;
25
27
  declare const getDryRun: (options: _paraspell_sdk_core.TDryRunBaseOptions<Extrinsic> & {
26
28
  api?: TPjsApiOrUrl;
@@ -96,17 +98,36 @@ declare const getTransferableAmount: (options: _paraspell_sdk_core.TGetTransfera
96
98
  api?: TPjsApiOrUrl;
97
99
  }) => Promise<bigint>;
98
100
 
101
+ declare const assets_Foreign: typeof Foreign;
102
+ declare const assets_ForeignAbstract: typeof ForeignAbstract;
103
+ declare const assets_Native: typeof Native;
104
+ declare const assets_Override: typeof Override;
99
105
  declare const assets_claimAssets: typeof claimAssets;
106
+ declare const assets_getAllAssetsSymbols: typeof getAllAssetsSymbols;
100
107
  declare const assets_getAssetBalance: typeof getAssetBalance;
108
+ declare const assets_getAssetBySymbolOrId: typeof getAssetBySymbolOrId;
109
+ declare const assets_getAssetDecimals: typeof getAssetDecimals;
110
+ declare const assets_getAssetId: typeof getAssetId;
111
+ declare const assets_getAssets: typeof getAssets;
112
+ declare const assets_getAssetsObject: typeof getAssetsObject;
101
113
  declare const assets_getBalanceForeign: typeof getBalanceForeign;
102
114
  declare const assets_getBalanceNative: typeof getBalanceNative;
115
+ declare const assets_getExistentialDeposit: typeof getExistentialDeposit;
103
116
  declare const assets_getMaxForeignTransferableAmount: typeof getMaxForeignTransferableAmount;
104
117
  declare const assets_getMaxNativeTransferableAmount: typeof getMaxNativeTransferableAmount;
118
+ declare const assets_getNativeAssetSymbol: typeof getNativeAssetSymbol;
119
+ declare const assets_getNativeAssets: typeof getNativeAssets;
105
120
  declare const assets_getOriginFeeDetails: typeof getOriginFeeDetails;
121
+ declare const assets_getOtherAssets: typeof getOtherAssets;
122
+ declare const assets_getRelayChainSymbol: typeof getRelayChainSymbol;
123
+ declare const assets_getSupportedAssets: typeof getSupportedAssets;
124
+ declare const assets_getTNode: typeof getTNode;
106
125
  declare const assets_getTransferInfo: typeof getTransferInfo;
107
126
  declare const assets_getTransferableAmount: typeof getTransferableAmount;
127
+ declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
128
+ declare const assets_isNodeEvm: typeof isNodeEvm;
108
129
  declare namespace assets {
109
- 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 };
130
+ 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 };
110
131
  }
111
132
 
112
133
  /**
@@ -169,8 +190,8 @@ declare const GeneralBuilder: {
169
190
  };
170
191
  declare const EvmBuilder: (provider?: AbstractProvider) => EvmBuilderClass<_polkadot_api.ApiPromise, Extrinsic>;
171
192
 
172
- type IUseKeepAliveFinalBuilder = IUseKeepAliveFinalBuilder$1<TPjsApi, Extrinsic>;
193
+ type IFinalBuilderWithOptions = IFinalBuilderWithOptions$1<TPjsApi, Extrinsic>;
173
194
 
174
195
  declare const createApiInstanceForNode: (node: TNodeDotKsmWithRelayChains) => Promise<_polkadot_api.ApiPromise>;
175
196
 
176
- export { Builder, EvmBuilder, type Extrinsic, GeneralBuilder, type IUseKeepAliveFinalBuilder, type TPjsApi, type TPjsApiOrUrl, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, getAssetBalance, getBalanceForeign, getBalanceNative, getDryRun, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getOriginFeeDetails, getTransferInfo, getTransferableAmount, send, transferEthToPolkadot, transfer as xcmPallet };
197
+ export { Builder, EvmBuilder, type Extrinsic, GeneralBuilder, type IFinalBuilderWithOptions, type TPjsApi, type TPjsApiOrUrl, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, getAssetBalance, getBalanceForeign, getBalanceNative, getDryRun, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getOriginFeeDetails, getTransferInfo, getTransferableAmount, send, transferEthToPolkadot, transfer as xcmPallet };