@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/index.d.ts
CHANGED
|
@@ -172,11 +172,6 @@ declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implem
|
|
|
172
172
|
getProvider(): string;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
declare class Pioneer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
176
|
-
constructor();
|
|
177
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
175
|
declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
181
176
|
constructor();
|
|
182
177
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -221,12 +216,6 @@ declare class Imbue<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXT
|
|
|
221
216
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
222
217
|
}
|
|
223
218
|
|
|
224
|
-
declare class Integritee<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
225
|
-
constructor();
|
|
226
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
227
|
-
transferRelayToPara(): TSerializedApiCall;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
219
|
declare class InvArchTinker<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
231
220
|
constructor();
|
|
232
221
|
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
@@ -293,6 +282,7 @@ declare class PeoplePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> imple
|
|
|
293
282
|
constructor();
|
|
294
283
|
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
295
284
|
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
285
|
+
getProvider(): string;
|
|
296
286
|
}
|
|
297
287
|
|
|
298
288
|
declare class PeopleKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
@@ -426,14 +416,12 @@ type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Ke
|
|
|
426
416
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
427
417
|
}[Keys];
|
|
428
418
|
type TBaseAsset = {
|
|
429
|
-
symbol
|
|
419
|
+
symbol: string;
|
|
430
420
|
decimals?: number;
|
|
431
421
|
manuallyAdded?: boolean;
|
|
432
422
|
alias?: string;
|
|
433
423
|
};
|
|
434
|
-
type TNativeAsset = TBaseAsset
|
|
435
|
-
symbol: string;
|
|
436
|
-
};
|
|
424
|
+
type TNativeAsset = TBaseAsset;
|
|
437
425
|
type TForeignAsset = TBaseAsset & AtLeastOne<{
|
|
438
426
|
assetId?: string;
|
|
439
427
|
multiLocation?: object;
|
|
@@ -754,12 +742,6 @@ declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
754
742
|
transferRelayToPara(): TSerializedApiCall;
|
|
755
743
|
}
|
|
756
744
|
|
|
757
|
-
declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
758
|
-
constructor();
|
|
759
|
-
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
760
|
-
getProvider(): string;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
745
|
declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
764
746
|
constructor();
|
|
765
747
|
private getCurrencySelection;
|
|
@@ -838,19 +820,19 @@ declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements I
|
|
|
838
820
|
/**
|
|
839
821
|
* Supported nodes excluding relay chains and Ethereum.
|
|
840
822
|
*/
|
|
841
|
-
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", "
|
|
823
|
+
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"];
|
|
842
824
|
/**
|
|
843
825
|
* Supported nodes including Ethereum.
|
|
844
826
|
*/
|
|
845
|
-
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", "
|
|
827
|
+
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"];
|
|
846
828
|
/**
|
|
847
829
|
* Supported nodes including relay chains and Ethereum.
|
|
848
830
|
*/
|
|
849
|
-
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", "
|
|
831
|
+
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"];
|
|
850
832
|
/**
|
|
851
833
|
* Supported nodes including relay chains and excluding Ethereum.
|
|
852
834
|
*/
|
|
853
|
-
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", "
|
|
835
|
+
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"];
|
|
854
836
|
declare const nodes: <TApi, TRes>() => {
|
|
855
837
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
856
838
|
Acala: Acala<TApi, TRes>;
|
|
@@ -878,12 +860,10 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
878
860
|
Bajun: Bajun<TApi, TRes>;
|
|
879
861
|
Basilisk: Basilisk<TApi, TRes>;
|
|
880
862
|
BifrostKusama: BifrostKusama<TApi, TRes>;
|
|
881
|
-
Pioneer: Pioneer<TApi, TRes>;
|
|
882
863
|
Calamari: Calamari<TApi, TRes>;
|
|
883
864
|
CrustShadow: CrustShadow<TApi, TRes>;
|
|
884
865
|
Crab: Crab<TApi, TRes>;
|
|
885
866
|
Imbue: Imbue<TApi, TRes>;
|
|
886
|
-
Integritee: Integritee<TApi, TRes>;
|
|
887
867
|
InvArchTinker: InvArchTinker<TApi, TRes>;
|
|
888
868
|
Karura: Karura<TApi, TRes>;
|
|
889
869
|
Kintsugi: Kintsugi<TApi, TRes>;
|
|
@@ -901,7 +881,6 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
901
881
|
Nodle: Nodle<TApi, TRes>;
|
|
902
882
|
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
903
883
|
Pendulum: Pendulum<TApi, TRes>;
|
|
904
|
-
Polkadex: Polkadex<TApi, TRes>;
|
|
905
884
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
906
885
|
Collectives: Collectives<TApi, TRes>;
|
|
907
886
|
Khala: Khala<TApi, TRes>;
|