@paraspell/sdk 7.2.4 → 7.2.5
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 +162 -282
- package/dist/index.d.ts +7 -28
- package/dist/index.mjs +162 -282
- package/dist/papi/index.cjs +163 -283
- package/dist/papi/index.d.ts +7 -28
- package/dist/papi/index.mjs +163 -283
- package/package.json +18 -18
package/dist/papi/index.d.ts
CHANGED
|
@@ -201,11 +201,6 @@ declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implem
|
|
|
201
201
|
getProvider(): string;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
declare class Pioneer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
205
|
-
constructor();
|
|
206
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
204
|
declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
210
205
|
constructor();
|
|
211
206
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -250,12 +245,6 @@ declare class Imbue<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
250
245
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
251
246
|
}
|
|
252
247
|
|
|
253
|
-
declare class Integritee<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
254
|
-
constructor();
|
|
255
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
256
|
-
transferRelayToPara(): TSerializedApiCall;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
248
|
declare class InvArchTinker<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
260
249
|
constructor();
|
|
261
250
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -322,6 +311,7 @@ declare class PeoplePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imple
|
|
|
322
311
|
constructor();
|
|
323
312
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
324
313
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
314
|
+
getProvider(): string;
|
|
325
315
|
}
|
|
326
316
|
|
|
327
317
|
declare class PeopleKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
@@ -455,14 +445,12 @@ type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Ke
|
|
|
455
445
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
456
446
|
}[Keys];
|
|
457
447
|
type TBaseAsset = {
|
|
458
|
-
symbol
|
|
448
|
+
symbol: string;
|
|
459
449
|
decimals?: number;
|
|
460
450
|
manuallyAdded?: boolean;
|
|
461
451
|
alias?: string;
|
|
462
452
|
};
|
|
463
|
-
type TNativeAsset = TBaseAsset
|
|
464
|
-
symbol: string;
|
|
465
|
-
};
|
|
453
|
+
type TNativeAsset = TBaseAsset;
|
|
466
454
|
type TForeignAsset = TBaseAsset & AtLeastOne<{
|
|
467
455
|
assetId?: string;
|
|
468
456
|
multiLocation?: object;
|
|
@@ -783,12 +771,6 @@ declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
783
771
|
transferRelayToPara(): TSerializedApiCall;
|
|
784
772
|
}
|
|
785
773
|
|
|
786
|
-
declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
787
|
-
constructor();
|
|
788
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
789
|
-
getProvider(): string;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
774
|
declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
793
775
|
constructor();
|
|
794
776
|
private getCurrencySelection;
|
|
@@ -867,19 +849,19 @@ declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements I
|
|
|
867
849
|
/**
|
|
868
850
|
* Supported nodes excluding relay chains and Ethereum.
|
|
869
851
|
*/
|
|
870
|
-
declare const NODE_NAMES_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "
|
|
852
|
+
declare const NODE_NAMES_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Calamari", "CrustShadow", "Crab", "Imbue", "InvArchTinker", "Karura", "Kintsugi", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "RobonomicsKusama", "RobonomicsPolkadot", "PeoplePolkadot", "PeopleKusama", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Polimec"];
|
|
871
853
|
/**
|
|
872
854
|
* Supported nodes including Ethereum.
|
|
873
855
|
*/
|
|
874
|
-
declare const NODE_NAMES: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "
|
|
856
|
+
declare const NODE_NAMES: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Calamari", "CrustShadow", "Crab", "Imbue", "InvArchTinker", "Karura", "Kintsugi", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "RobonomicsKusama", "RobonomicsPolkadot", "PeoplePolkadot", "PeopleKusama", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Polimec", "Ethereum"];
|
|
875
857
|
/**
|
|
876
858
|
* Supported nodes including relay chains and Ethereum.
|
|
877
859
|
*/
|
|
878
|
-
declare const NODES_WITH_RELAY_CHAINS: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "
|
|
860
|
+
declare const NODES_WITH_RELAY_CHAINS: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Calamari", "CrustShadow", "Crab", "Imbue", "InvArchTinker", "Karura", "Kintsugi", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "RobonomicsKusama", "RobonomicsPolkadot", "PeoplePolkadot", "PeopleKusama", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Polimec", "Ethereum", "Polkadot", "Kusama"];
|
|
879
861
|
/**
|
|
880
862
|
* Supported nodes including relay chains and excluding Ethereum.
|
|
881
863
|
*/
|
|
882
|
-
declare const NODES_WITH_RELAY_CHAINS_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "
|
|
864
|
+
declare const NODES_WITH_RELAY_CHAINS_DOT_KSM: readonly ["AssetHubPolkadot", "Acala", "Astar", "BifrostPolkadot", "Bitgreen", "BridgeHubPolkadot", "BridgeHubKusama", "Centrifuge", "ComposableFinance", "Darwinia", "Hydration", "Interlay", "Litentry", "Moonbeam", "Parallel", "AssetHubKusama", "CoretimeKusama", "CoretimePolkadot", "Encointer", "Altair", "Amplitude", "Bajun", "Basilisk", "BifrostKusama", "Calamari", "CrustShadow", "Crab", "Imbue", "InvArchTinker", "Karura", "Kintsugi", "Moonriver", "ParallelHeiko", "Picasso", "Quartz", "RobonomicsKusama", "RobonomicsPolkadot", "PeoplePolkadot", "PeopleKusama", "Shiden", "Turing", "Unique", "Crust", "Manta", "Nodle", "NeuroWeb", "Pendulum", "Zeitgeist", "Collectives", "Khala", "Phala", "Subsocial", "KiltSpiritnet", "Curio", "Mythos", "Peaq", "Polimec", "Polkadot", "Kusama"];
|
|
883
865
|
declare const nodes: <TApi, TRes>() => {
|
|
884
866
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
885
867
|
Acala: Acala<TApi, TRes>;
|
|
@@ -907,12 +889,10 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
907
889
|
Bajun: Bajun<TApi, TRes>;
|
|
908
890
|
Basilisk: Basilisk<TApi, TRes>;
|
|
909
891
|
BifrostKusama: BifrostKusama<TApi, TRes>;
|
|
910
|
-
Pioneer: Pioneer<TApi, TRes>;
|
|
911
892
|
Calamari: Calamari<TApi, TRes>;
|
|
912
893
|
CrustShadow: CrustShadow<TApi, TRes>;
|
|
913
894
|
Crab: Crab<TApi, TRes>;
|
|
914
895
|
Imbue: Imbue<TApi, TRes>;
|
|
915
|
-
Integritee: Integritee<TApi, TRes>;
|
|
916
896
|
InvArchTinker: InvArchTinker<TApi, TRes>;
|
|
917
897
|
Karura: Karura<TApi, TRes>;
|
|
918
898
|
Kintsugi: Kintsugi<TApi, TRes>;
|
|
@@ -930,7 +910,6 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
930
910
|
Nodle: Nodle<TApi, TRes>;
|
|
931
911
|
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
932
912
|
Pendulum: Pendulum<TApi, TRes>;
|
|
933
|
-
Polkadex: Polkadex<TApi, TRes>;
|
|
934
913
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
935
914
|
Collectives: Collectives<TApi, TRes>;
|
|
936
915
|
Khala: Khala<TApi, TRes>;
|