@paraspell/sdk 1.1.10 → 1.1.11

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
@@ -55,6 +55,10 @@ type PolkadotXCMTransferInput = {
55
55
  interface IPolkadotXCMTransfer {
56
56
  transferPolkadotXCM(input: PolkadotXCMTransferInput): Extrinsic;
57
57
  }
58
+ declare enum Version {
59
+ V1 = 0,
60
+ V3 = 1
61
+ }
58
62
 
59
63
  declare function send(api: ApiPromise, origin: TNode, currencySymbolOrId: string | number | bigint, amount: any, to: string, destination?: TNode): Extrinsic;
60
64
  declare function transferRelayToPara(api: ApiPromise, destination: TNode, amount: any, to: string): Extrinsic | never;
@@ -277,13 +281,15 @@ declare class ToGeneralBuilder {
277
281
  declare class FromGeneralBuilder {
278
282
  private api;
279
283
  private from;
280
- constructor(api: ApiPromise, from: TNode);
284
+ private version;
285
+ constructor(api: ApiPromise, from: TNode, version: number);
281
286
  to(node: TNode): ToGeneralBuilder;
282
287
  currency(currency: string | number | bigint): AmountSendBuilder;
283
288
  closeChannel(): InboundCloseChannelBuilder;
284
289
  }
285
290
  declare class GeneralBuilder {
286
291
  private api;
292
+ private version;
287
293
  constructor(api: ApiPromise);
288
294
  from(node: TNode): FromGeneralBuilder;
289
295
  to(node: TNode): AmountRelayToParaBuilder;
@@ -298,4 +304,4 @@ declare function Builder(api: ApiPromise): GeneralBuilder;
298
304
  declare const getDefaultPallet: (node: TNode) => TPallet;
299
305
  declare const getSupportedPallets: (node: TNode) => TPallet[];
300
306
 
301
- export { Bool, Builder, Extrinsic, ExtrinsicFunction, IPolkadotXCMTransfer, IXTokensTransfer, NODE_NAMES, PolkadotXCMTransferInput, SUPPORTED_PALLETS, TAssetDetails, TAssetJsonMap, TNativeAssetDetails, TNode, TNodeAssets, TPallet, TPalletJsonMap, TPalletMap, TRelayChainType, TScenario, UpdateFunction, XTokensTransferInput, index as assets, index$1 as closeChannels, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetsObject, getDefaultPallet, getNativeAssets, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, getTNode, hasSupportForAsset, index$2 as openChannels, index$4 as xcmPallet, index$3 as xyk };
307
+ export { Bool, Builder, Extrinsic, ExtrinsicFunction, IPolkadotXCMTransfer, IXTokensTransfer, NODE_NAMES, PolkadotXCMTransferInput, SUPPORTED_PALLETS, TAssetDetails, TAssetJsonMap, TNativeAssetDetails, TNode, TNodeAssets, TPallet, TPalletJsonMap, TPalletMap, TRelayChainType, TScenario, UpdateFunction, Version, XTokensTransferInput, index as assets, index$1 as closeChannels, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetsObject, getDefaultPallet, getNativeAssets, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, getTNode, hasSupportForAsset, index$2 as openChannels, index$4 as xcmPallet, index$3 as xyk };