@paraspell/sdk 5.7.0 → 5.8.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/dist/index.cjs +313 -124
- package/dist/index.d.ts +28 -17
- package/dist/index.mjs +313 -125
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,29 @@ interface TMultiAssetV4 {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
type TCurrency = string | number | bigint;
|
|
23
|
+
type TCurrencySpecifier = {
|
|
24
|
+
symbol: string;
|
|
25
|
+
} | {
|
|
26
|
+
id: TCurrency;
|
|
27
|
+
};
|
|
28
|
+
type TCurrencyCore = TCurrency | TMultiLocation | TMultiAsset[];
|
|
29
|
+
type TCurrencyInput = TCurrencyCore | TCurrencySpecifier;
|
|
30
|
+
interface TCurrencySelection {
|
|
31
|
+
id: {
|
|
32
|
+
Concrete: TMultiLocation;
|
|
33
|
+
};
|
|
34
|
+
fun: {
|
|
35
|
+
Fungible: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
type TCurrencySelectionHeader = {
|
|
39
|
+
[key in Version]?: TCurrencySelection;
|
|
40
|
+
};
|
|
41
|
+
type TCurrencySelectionHeaderArr = {
|
|
42
|
+
[key in Version]?: [TCurrencySelection];
|
|
43
|
+
};
|
|
44
|
+
|
|
22
45
|
type Extrinsic = SubmittableExtrinsic<'promise'>;
|
|
23
46
|
interface PolkadotXCMTransferInput {
|
|
24
47
|
api: ApiPromise;
|
|
@@ -86,8 +109,6 @@ declare enum Parents {
|
|
|
86
109
|
TWO = 2
|
|
87
110
|
}
|
|
88
111
|
type TAmount = string | number | bigint;
|
|
89
|
-
type TCurrency = string | number | bigint;
|
|
90
|
-
type TCurrencyInput = string | number | bigint | TMultiLocation | TMultiAsset[];
|
|
91
112
|
type TAddress = string | TMultiLocation;
|
|
92
113
|
type TDestination = TNode | TMultiLocation;
|
|
93
114
|
interface TSendBaseOptions {
|
|
@@ -133,20 +154,6 @@ interface TRelayToParaInternalOptions extends TRelayToParaBaseOptions {
|
|
|
133
154
|
interface TRelayToParaCommonOptions extends TRelayToParaOptions {
|
|
134
155
|
serializedApiCallEnabled?: boolean;
|
|
135
156
|
}
|
|
136
|
-
interface TCurrencySelection {
|
|
137
|
-
id: {
|
|
138
|
-
Concrete: TMultiLocation;
|
|
139
|
-
};
|
|
140
|
-
fun: {
|
|
141
|
-
Fungible: string;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
type TCurrencySelectionHeader = {
|
|
145
|
-
[key in Version]?: TCurrencySelection;
|
|
146
|
-
};
|
|
147
|
-
type TCurrencySelectionHeaderArr = {
|
|
148
|
-
[key in Version]?: [TCurrencySelection];
|
|
149
|
-
};
|
|
150
157
|
interface TSerializedApiCall {
|
|
151
158
|
module: string;
|
|
152
159
|
section: string;
|
|
@@ -580,6 +587,10 @@ declare class IncompatibleNodesError extends Error {
|
|
|
580
587
|
constructor();
|
|
581
588
|
}
|
|
582
589
|
|
|
590
|
+
declare class DuplicateAssetError extends Error {
|
|
591
|
+
constructor(symbol: string);
|
|
592
|
+
}
|
|
593
|
+
|
|
583
594
|
declare const getExistentialDeposit: (node: TNodeDotKsmWithRelayChains) => string | null;
|
|
584
595
|
|
|
585
|
-
export { Builder, type CheckKeepAliveOptions, CloseChannelBuilder, EvmBuilder, type Extrinsic, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, type InboundCloseChannelBuilder, IncompatibleNodesError, InvalidCurrencyError, type JunctionType, type Junctions, type MaxMessageSizeOpenChannelBuilder, type MaxSizeOpenChannelBuilder, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, NoXCMSupportImplementedError, NodeNotSupportedError, OpenChannelBuilder, type OutboundCloseChannelBuilder, Parents, type PolkadotXCMTransferInput, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAssetDetails, type TAssetJsonMap, type TCloseChannelInternalOptions, type TCloseChannelOptions, type TCurrency, type TCurrencyInput, type TCurrencySelection, type TCurrencySelectionHeader, type TCurrencySelectionHeaderArr, type TDestination, type TEdJsonMap, type TJunction, type TMultiAsset, type TMultiAssetV3, type TMultiAssetV4, type TMultiLocation, type TMultiLocationHeader, type TNativeAssetDetails, type TNode, type TNodeAssets, type TNodeDotKsmWithRelayChains, type TNodePolkadotKusama, type TNodeWithRelayChains, type TOpenChannelInternalOptions, type TOpenChannelOptions, type TPallet, type TPalletJsonMap, type TPalletMap, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaCommonOptions, type TRelayToParaInternalOptions, type TRelayToParaOptions, type TScenario, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSendOptionsCommon, type TSerializedApiCall, type TVersionClaimAssets, Version, type XTokensTransferInput, type XTransferTransferInput, index as assets, index$1 as closeChannels, createApiInstanceForNode, getAllAssetsSymbols, getAllNodeProviders, getAssetDecimals, getAssetId, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeEndpointOption, getNodeProvider, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, index$2 as openChannels, index$3 as xcmPallet };
|
|
596
|
+
export { Builder, type CheckKeepAliveOptions, CloseChannelBuilder, DuplicateAssetError, EvmBuilder, type Extrinsic, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, type InboundCloseChannelBuilder, IncompatibleNodesError, InvalidCurrencyError, type JunctionType, type Junctions, type MaxMessageSizeOpenChannelBuilder, type MaxSizeOpenChannelBuilder, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, NoXCMSupportImplementedError, NodeNotSupportedError, OpenChannelBuilder, type OutboundCloseChannelBuilder, Parents, type PolkadotXCMTransferInput, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAssetDetails, type TAssetJsonMap, type TCloseChannelInternalOptions, type TCloseChannelOptions, type TCurrency, type TCurrencyCore, type TCurrencyInput, type TCurrencySelection, type TCurrencySelectionHeader, type TCurrencySelectionHeaderArr, type TCurrencySpecifier, type TDestination, type TEdJsonMap, type TJunction, type TMultiAsset, type TMultiAssetV3, type TMultiAssetV4, type TMultiLocation, type TMultiLocationHeader, type TNativeAssetDetails, type TNode, type TNodeAssets, type TNodeDotKsmWithRelayChains, type TNodePolkadotKusama, type TNodeWithRelayChains, type TOpenChannelInternalOptions, type TOpenChannelOptions, type TPallet, type TPalletJsonMap, type TPalletMap, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaCommonOptions, type TRelayToParaInternalOptions, type TRelayToParaOptions, type TScenario, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSendOptionsCommon, type TSerializedApiCall, type TVersionClaimAssets, Version, type XTokensTransferInput, type XTransferTransferInput, index as assets, index$1 as closeChannels, createApiInstanceForNode, getAllAssetsSymbols, getAllNodeProviders, getAssetDecimals, getAssetId, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeEndpointOption, getNodeProvider, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, index$2 as openChannels, index$3 as xcmPallet };
|