@paraspell/sdk-core 11.7.2 → 11.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 +175 -129
- package/dist/index.d.ts +31 -25
- package/dist/index.mjs +175 -129
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1196,6 +1196,7 @@ type TGetOriginXcmFeeInternalOptions<TApi, TRes> = Omit<TGetOriginXcmFeeOptions<
|
|
|
1196
1196
|
};
|
|
1197
1197
|
type TSwapConfig = {
|
|
1198
1198
|
currencyTo: TCurrencyCore;
|
|
1199
|
+
amountOut: bigint;
|
|
1199
1200
|
exchangeChain: TParachain;
|
|
1200
1201
|
};
|
|
1201
1202
|
type TGetFeeForDestChainBaseOptions<TRes> = {
|
|
@@ -1491,9 +1492,11 @@ declare abstract class Parachain<TApi, TRes> {
|
|
|
1491
1492
|
get version(): Version;
|
|
1492
1493
|
canUseXTokens(options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1493
1494
|
transfer(sendOptions: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
1495
|
+
throwIfCantReceive(destChain: TChain | undefined): void;
|
|
1494
1496
|
throwIfTempDisabled(options: TSendInternalOptions<TApi, TRes>, destChain?: TChain): void;
|
|
1495
1497
|
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1496
1498
|
isReceivingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1499
|
+
canReceiveFrom(_origin: TChain): boolean;
|
|
1497
1500
|
shouldUseNativeAssetTeleport({ assetInfo: asset, to }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1498
1501
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
1499
1502
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): Promise<TSerializedApiCall>;
|
|
@@ -1513,14 +1516,10 @@ declare class Acala<TApi, TRes> extends Parachain<TApi, TRes> implements IXToken
|
|
|
1513
1516
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1514
1517
|
}
|
|
1515
1518
|
|
|
1516
|
-
declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer
|
|
1519
|
+
declare class Ajuna<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1517
1520
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1518
1521
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1519
|
-
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1520
|
-
canUseXTokens({ assetInfo, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1521
1522
|
transferRelayToPara(): Promise<TSerializedApiCall>;
|
|
1522
|
-
isSendingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1523
|
-
isReceivingTempDisabled(_options: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1524
1523
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1525
1524
|
}
|
|
1526
1525
|
|
|
@@ -1641,7 +1640,7 @@ declare class BifrostPolkadot<TApi, TRes> extends Parachain<TApi, TRes> implemen
|
|
|
1641
1640
|
};
|
|
1642
1641
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
1643
1642
|
transferToAssetHub<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1644
|
-
transferPolkadotXCM<TApi, TRes>(
|
|
1643
|
+
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1645
1644
|
canUseXTokens({ assetInfo, to: destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
1646
1645
|
transferLocalNonNativeAsset(options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1647
1646
|
}
|
|
@@ -1992,6 +1991,12 @@ declare class Unique<TApi, TRes> extends Parachain<TApi, TRes> implements IXToke
|
|
|
1992
1991
|
transferLocalNonNativeAsset(_options: TTransferLocalOptions<TApi, TRes>): TRes;
|
|
1993
1992
|
}
|
|
1994
1993
|
|
|
1994
|
+
declare class Xode<TApi, TRes> extends Parachain<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
1995
|
+
constructor();
|
|
1996
|
+
transferPolkadotXCM<TApi, TRes>(options: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
1997
|
+
canReceiveFrom(origin: TChain): boolean;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
1995
2000
|
declare class Zeitgeist<TApi, TRes> extends Parachain<TApi, TRes> implements IXTokensTransfer {
|
|
1996
2001
|
constructor(chain?: TParachain, info?: string, ecosystem?: TRelaychain, version?: Version);
|
|
1997
2002
|
private getCurrencySelection;
|
|
@@ -2012,21 +2017,36 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2012
2017
|
Crust: Crust<TApi, TRes>;
|
|
2013
2018
|
BifrostPolkadot: BifrostPolkadot<TApi, TRes>;
|
|
2014
2019
|
BridgeHubPolkadot: BridgeHubPolkadot<TApi, TRes>;
|
|
2015
|
-
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
2016
2020
|
Centrifuge: Centrifuge<TApi, TRes>;
|
|
2017
2021
|
ComposableFinance: ComposableFinance<TApi, TRes>;
|
|
2018
2022
|
Darwinia: Darwinia<TApi, TRes>;
|
|
2019
2023
|
EnergyWebX: EnergyWebX<TApi, TRes>;
|
|
2020
2024
|
Hydration: Hydration<TApi, TRes>;
|
|
2021
|
-
IntegriteeKusama: IntegriteeKusama<TApi, TRes>;
|
|
2022
2025
|
IntegriteePolkadot: IntegriteePolkadot<TApi, TRes>;
|
|
2023
2026
|
Interlay: Interlay<TApi, TRes>;
|
|
2024
2027
|
Heima: Heima<TApi, TRes>;
|
|
2025
2028
|
Jamton: Jamton<TApi, TRes>;
|
|
2026
2029
|
Moonbeam: Moonbeam<TApi, TRes>;
|
|
2030
|
+
CoretimePolkadot: CoretimePolkadot<TApi, TRes>;
|
|
2031
|
+
RobonomicsPolkadot: RobonomicsPolkadot<TApi, TRes>;
|
|
2032
|
+
PeoplePolkadot: PeoplePolkadot<TApi, TRes>;
|
|
2033
|
+
Manta: Manta<TApi, TRes>;
|
|
2034
|
+
Nodle: Nodle<TApi, TRes>;
|
|
2035
|
+
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
2036
|
+
Pendulum: Pendulum<TApi, TRes>;
|
|
2037
|
+
Collectives: Collectives<TApi, TRes>;
|
|
2038
|
+
Phala: Phala<TApi, TRes>;
|
|
2039
|
+
Subsocial: Subsocial<TApi, TRes>;
|
|
2040
|
+
KiltSpiritnet: KiltSpiritnet<TApi, TRes>;
|
|
2041
|
+
Curio: Curio<TApi, TRes>;
|
|
2042
|
+
Mythos: Mythos<TApi, TRes>;
|
|
2043
|
+
Peaq: Peaq<TApi, TRes>;
|
|
2044
|
+
Polimec: Polimec<TApi, TRes>;
|
|
2045
|
+
Xode: Xode<TApi, TRes>;
|
|
2027
2046
|
AssetHubKusama: AssetHubKusama<TApi, TRes>;
|
|
2047
|
+
BridgeHubKusama: BridgeHubKusama<TApi, TRes>;
|
|
2028
2048
|
CoretimeKusama: CoretimeKusama<TApi, TRes>;
|
|
2029
|
-
|
|
2049
|
+
IntegriteeKusama: IntegriteeKusama<TApi, TRes>;
|
|
2030
2050
|
Encointer: Encointer<TApi, TRes>;
|
|
2031
2051
|
Altair: Altair<TApi, TRes>;
|
|
2032
2052
|
Amplitude: Amplitude<TApi, TRes>;
|
|
@@ -2040,23 +2060,9 @@ declare const chains: <TApi, TRes>() => {
|
|
|
2040
2060
|
Laos: Laos<TApi, TRes>;
|
|
2041
2061
|
Quartz: Quartz<TApi, TRes>;
|
|
2042
2062
|
RobonomicsKusama: RobonomicsKusama<TApi, TRes>;
|
|
2043
|
-
RobonomicsPolkadot: RobonomicsPolkadot<TApi, TRes>;
|
|
2044
|
-
PeoplePolkadot: PeoplePolkadot<TApi, TRes>;
|
|
2045
2063
|
PeopleKusama: PeopleKusama<TApi, TRes>;
|
|
2046
2064
|
Shiden: Shiden<TApi, TRes>;
|
|
2047
|
-
Manta: Manta<TApi, TRes>;
|
|
2048
|
-
Nodle: Nodle<TApi, TRes>;
|
|
2049
|
-
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
2050
|
-
Pendulum: Pendulum<TApi, TRes>;
|
|
2051
2065
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
2052
|
-
Collectives: Collectives<TApi, TRes>;
|
|
2053
|
-
Phala: Phala<TApi, TRes>;
|
|
2054
|
-
Subsocial: Subsocial<TApi, TRes>;
|
|
2055
|
-
KiltSpiritnet: KiltSpiritnet<TApi, TRes>;
|
|
2056
|
-
Curio: Curio<TApi, TRes>;
|
|
2057
|
-
Mythos: Mythos<TApi, TRes>;
|
|
2058
|
-
Peaq: Peaq<TApi, TRes>;
|
|
2059
|
-
Polimec: Polimec<TApi, TRes>;
|
|
2060
2066
|
AssetHubWestend: AssetHubWestend<TApi, TRes>;
|
|
2061
2067
|
BridgeHubWestend: BridgeHubWestend<TApi, TRes>;
|
|
2062
2068
|
CollectivesWestend: CollectivesWestend<TApi, TRes>;
|
|
@@ -2210,7 +2216,7 @@ declare const getRelayChainOf: (chain: TSubstrateChain) => TRelaychain;
|
|
|
2210
2216
|
|
|
2211
2217
|
declare const createChainClient: <TApi, TRes>(api: IPolkadotApi<TApi, TRes>, chain: TSubstrateChain) => Promise<TApi>;
|
|
2212
2218
|
|
|
2213
|
-
declare const computeFeeFromDryRun: (dryRun: any, chain: TSubstrateChain,
|
|
2219
|
+
declare const computeFeeFromDryRun: (dryRun: any, chain: TSubstrateChain, _executionFee: bigint, isFeeAsset?: boolean) => bigint;
|
|
2214
2220
|
|
|
2215
2221
|
declare const computeFeeFromDryRunPjs: (dryRun: any, chain: TSubstrateChain, executionFee: bigint) => bigint;
|
|
2216
2222
|
|
|
@@ -2247,7 +2253,7 @@ declare const localizeLocation: (chain: TChain, location: TLocation) => TLocatio
|
|
|
2247
2253
|
|
|
2248
2254
|
declare const reverseTransformLocation: (location: TLocation) => TLocation;
|
|
2249
2255
|
|
|
2250
|
-
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "Subsocial" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "Polimec" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "AssetHubKusama" | "BridgeHubKusama" | "IntegriteeKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Amplitude" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsKusama" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "IntegriteePaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "NodlePaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
|
|
2256
|
+
declare const resolveDestChain: (originChain: TSubstrateChain, paraId: number | undefined) => "AssetHubPolkadot" | "Acala" | "Ajuna" | "Astar" | "BifrostPolkadot" | "BridgeHubPolkadot" | "Centrifuge" | "ComposableFinance" | "Darwinia" | "EnergyWebX" | "Hydration" | "IntegriteePolkadot" | "Interlay" | "Heima" | "Jamton" | "Moonbeam" | "CoretimePolkadot" | "Collectives" | "Crust" | "Manta" | "Nodle" | "NeuroWeb" | "Pendulum" | "Phala" | "Subsocial" | "KiltSpiritnet" | "Curio" | "Mythos" | "Peaq" | "Polimec" | "RobonomicsPolkadot" | "PeoplePolkadot" | "Unique" | "Xode" | "AssetHubKusama" | "BridgeHubKusama" | "IntegriteeKusama" | "Karura" | "Kintsugi" | "Moonriver" | "CoretimeKusama" | "Encointer" | "Altair" | "Amplitude" | "Basilisk" | "BifrostKusama" | "CrustShadow" | "Crab" | "Laos" | "Quartz" | "RobonomicsKusama" | "PeopleKusama" | "Shiden" | "Zeitgeist" | "AssetHubWestend" | "BridgeHubWestend" | "CollectivesWestend" | "CoretimeWestend" | "Penpal" | "PeopleWestend" | "AjunaPaseo" | "AssetHubPaseo" | "BifrostPaseo" | "BridgeHubPaseo" | "CoretimePaseo" | "EnergyWebXPaseo" | "HeimaPaseo" | "HydrationPaseo" | "IntegriteePaseo" | "KiltPaseo" | "LaosPaseo" | "NeuroWebPaseo" | "NodlePaseo" | "PAssetHub" | "PeoplePaseo" | "ZeitgeistPaseo" | undefined;
|
|
2251
2257
|
|
|
2252
2258
|
declare const resolveParaId: (paraId: number | undefined, destination: TDestination) => number | undefined;
|
|
2253
2259
|
|