@paraspell/sdk 7.2.3 → 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 +919 -1036
- package/dist/index.d.ts +159 -172
- package/dist/index.mjs +919 -1036
- package/dist/papi/index.cjs +920 -1037
- package/dist/papi/index.d.ts +160 -172
- package/dist/papi/index.mjs +920 -1037
- package/package.json +18 -18
package/dist/papi/index.d.ts
CHANGED
|
@@ -10,9 +10,10 @@ type TApiOrUrl<TApi> = TApi | string;
|
|
|
10
10
|
interface IPolkadotApi<TApi, TRes> {
|
|
11
11
|
setApi(api?: TApiOrUrl<TApi>): void;
|
|
12
12
|
getApi(): TApi;
|
|
13
|
+
getApiOrUrl(): TApiOrUrl<TApi> | undefined;
|
|
13
14
|
init(node: TNodeWithRelayChains): Promise<void>;
|
|
14
15
|
createApiInstance: (wsUrl: string) => Promise<TApi>;
|
|
15
|
-
createAccountId(address: string):
|
|
16
|
+
createAccountId(address: string): THexString$1;
|
|
16
17
|
callTxMethod(serializedCall: TSerializedApiCall): TRes;
|
|
17
18
|
calculateTransactionFee(tx: TRes, address: string): Promise<bigint>;
|
|
18
19
|
getBalanceNative(address: string): Promise<bigint>;
|
|
@@ -45,6 +46,7 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
45
46
|
get assetCheckEnabled(): boolean;
|
|
46
47
|
protected canUseXTokens(_: TSendInternalOptions<TApi, TRes>): boolean;
|
|
47
48
|
transfer(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
49
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
48
50
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
49
51
|
getProvider(): string;
|
|
50
52
|
createApiInstance(api: IPolkadotApi<TApi, TRes>): Promise<TApi>;
|
|
@@ -55,19 +57,19 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
55
57
|
|
|
56
58
|
declare class Acala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
57
59
|
constructor();
|
|
58
|
-
transferXTokens<TApi, TRes>(input:
|
|
60
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
59
61
|
getProvider(): string;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
63
65
|
constructor();
|
|
64
|
-
transferXTokens<TApi, TRes>(input:
|
|
66
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
declare class Crust<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
68
70
|
constructor();
|
|
69
71
|
private getCurrencySelection;
|
|
70
|
-
transferXTokens<TApi, TRes>(input:
|
|
72
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
@@ -115,8 +117,8 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
|
|
|
115
117
|
VSToken2?: undefined;
|
|
116
118
|
VToken2?: undefined;
|
|
117
119
|
};
|
|
118
|
-
transferXTokens<TApi, TRes>(input:
|
|
119
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
120
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
121
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
120
122
|
protected canUseXTokens({ asset, destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
121
123
|
getProvider(): string;
|
|
122
124
|
}
|
|
@@ -128,209 +130,200 @@ declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
|
|
|
128
130
|
declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
129
131
|
constructor();
|
|
130
132
|
private getCurrencySelection;
|
|
131
|
-
transferXTokens<TApi, TRes>(input:
|
|
133
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
132
134
|
}
|
|
133
135
|
|
|
134
136
|
declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
135
137
|
constructor();
|
|
136
|
-
transferXTokens<TApi, TRes>(input:
|
|
138
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
140
142
|
private static NATIVE_ASSET_ID;
|
|
141
143
|
constructor();
|
|
142
|
-
transferToEthereum<TApi, TRes>(input:
|
|
143
|
-
transferToAssetHub<TApi, TRes>(input:
|
|
144
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
145
|
-
transferXTokens<TApi, TRes>(input:
|
|
144
|
+
transferToEthereum<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
145
|
+
transferToAssetHub<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
146
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
147
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
146
148
|
protected canUseXTokens({ destination, asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
147
149
|
getProvider(): string;
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
declare class Interlay<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
151
153
|
constructor();
|
|
152
|
-
transferXTokens<TApi, TRes>(input:
|
|
154
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
declare class Litentry<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
156
158
|
constructor();
|
|
157
|
-
transferXTokens<TApi, TRes>(input:
|
|
159
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
declare class Moonbeam<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
161
163
|
constructor();
|
|
162
164
|
private getJunctions;
|
|
163
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
164
|
-
|
|
165
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
166
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
165
167
|
getProvider(): string;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
170
|
declare class Parallel<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
169
171
|
constructor();
|
|
170
|
-
transferXTokens<TApi, TRes>(input:
|
|
172
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
171
173
|
}
|
|
172
174
|
|
|
173
175
|
declare class Altair<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
174
176
|
constructor();
|
|
175
177
|
private getCurrencySelection;
|
|
176
|
-
transferXTokens<TApi, TRes>(input:
|
|
178
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
177
179
|
}
|
|
178
180
|
|
|
179
181
|
declare class Amplitude<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
180
182
|
constructor();
|
|
181
|
-
transferXTokens<TApi, TRes>(input:
|
|
183
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
declare class Bajun<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
185
187
|
constructor();
|
|
186
|
-
transferXTokens<TApi, TRes>(input:
|
|
188
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
187
189
|
transferRelayToPara(): TSerializedApiCall;
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
declare class Basilisk<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
191
193
|
constructor();
|
|
192
|
-
transferXTokens<TApi, TRes>(input:
|
|
194
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
193
195
|
getProvider(): string;
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
197
199
|
constructor();
|
|
198
|
-
transferXTokens<TApi, TRes>(input:
|
|
200
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
199
201
|
getProvider(): string;
|
|
200
202
|
}
|
|
201
203
|
|
|
202
|
-
declare class Pioneer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
203
|
-
constructor();
|
|
204
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
204
|
declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
208
205
|
constructor();
|
|
209
|
-
transferXTokens<TApi, TRes>(input:
|
|
206
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
210
207
|
}
|
|
211
208
|
|
|
212
209
|
declare class Picasso<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
213
210
|
constructor();
|
|
214
|
-
transferXTokens<TApi, TRes>(input:
|
|
211
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
215
212
|
}
|
|
216
213
|
|
|
217
214
|
declare class ParallelHeiko<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
218
215
|
constructor();
|
|
219
|
-
transferXTokens<TApi, TRes>(input:
|
|
216
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
220
217
|
}
|
|
221
218
|
|
|
222
219
|
declare class Moonriver<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
223
220
|
constructor();
|
|
224
221
|
private getJunctions;
|
|
225
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
226
|
-
|
|
222
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
223
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
227
224
|
getProvider(): string;
|
|
228
225
|
}
|
|
229
226
|
|
|
230
227
|
declare class Kintsugi<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
231
228
|
constructor();
|
|
232
|
-
transferXTokens<TApi, TRes>(input:
|
|
229
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
233
230
|
}
|
|
234
231
|
|
|
235
232
|
declare class Calamari<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
236
233
|
constructor();
|
|
237
|
-
transferXTokens<TApi, TRes>(input:
|
|
234
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
238
235
|
}
|
|
239
236
|
|
|
240
237
|
declare class CrustShadow<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
241
238
|
constructor();
|
|
242
239
|
private getCurrencySelection;
|
|
243
|
-
transferXTokens<TApi, TRes>(input:
|
|
240
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
244
241
|
}
|
|
245
242
|
|
|
246
243
|
declare class Imbue<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
247
244
|
constructor();
|
|
248
|
-
transferXTokens<TApi, TRes>(input:
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
declare class Integritee<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
252
|
-
constructor();
|
|
253
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
254
|
-
transferRelayToPara(): TSerializedApiCall;
|
|
245
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
255
246
|
}
|
|
256
247
|
|
|
257
248
|
declare class InvArchTinker<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
258
249
|
constructor();
|
|
259
|
-
transferXTokens<TApi, TRes>(input:
|
|
250
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
260
251
|
}
|
|
261
252
|
|
|
262
253
|
declare class Karura<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
263
254
|
constructor();
|
|
264
|
-
transferXTokens<TApi, TRes>(input:
|
|
255
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
265
256
|
getProvider(): string;
|
|
266
257
|
}
|
|
267
258
|
|
|
268
259
|
declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
269
260
|
constructor();
|
|
270
|
-
handleBridgeTransfer<TApi, TRes>(input:
|
|
271
|
-
handleEthBridgeTransfer<TApi, TRes>(input:
|
|
272
|
-
handleMythosTransfer<TApi, TRes>(input:
|
|
273
|
-
handleBifrostEthTransfer: <TApi_1, TRes_1>(input:
|
|
274
|
-
patchInput<TApi, TRes>(input:
|
|
261
|
+
handleBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): TRes;
|
|
262
|
+
handleEthBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
263
|
+
handleMythosTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
264
|
+
handleBifrostEthTransfer: <TApi_1, TRes_1>(input: TPolkadotXCMTransferOptions<TApi_1, TRes_1>) => TRes_1;
|
|
265
|
+
patchInput<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
275
266
|
private getSection;
|
|
276
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
277
|
-
|
|
267
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
268
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
278
269
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
270
|
+
getProvider(): string;
|
|
279
271
|
}
|
|
280
272
|
|
|
281
273
|
declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
282
274
|
constructor();
|
|
283
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
284
|
-
|
|
275
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
276
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
285
277
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
286
278
|
}
|
|
287
279
|
|
|
288
280
|
declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
289
281
|
constructor();
|
|
290
282
|
_assetCheckEnabled: boolean;
|
|
291
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
292
|
-
|
|
283
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
284
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
293
285
|
}
|
|
294
286
|
|
|
295
287
|
declare class CoretimePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
296
288
|
constructor();
|
|
297
289
|
_assetCheckEnabled: boolean;
|
|
298
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
299
|
-
|
|
290
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
291
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
300
292
|
}
|
|
301
293
|
|
|
302
294
|
declare class Encointer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
303
295
|
constructor();
|
|
304
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
305
|
-
|
|
296
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
297
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
306
298
|
}
|
|
307
299
|
|
|
308
300
|
declare class RobonomicsKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
309
301
|
constructor();
|
|
310
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
302
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
311
303
|
}
|
|
312
304
|
|
|
313
305
|
declare class RobonomicsPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
314
306
|
constructor();
|
|
315
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
307
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
316
308
|
}
|
|
317
309
|
|
|
318
310
|
declare class PeoplePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
319
311
|
constructor();
|
|
320
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
321
|
-
|
|
312
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
313
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
314
|
+
getProvider(): string;
|
|
322
315
|
}
|
|
323
316
|
|
|
324
317
|
declare class PeopleKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
325
318
|
constructor();
|
|
326
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
327
|
-
|
|
319
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
320
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
328
321
|
}
|
|
329
322
|
|
|
330
323
|
declare class Astar<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
331
324
|
constructor();
|
|
332
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
333
|
-
transferXTokens<TApi, TRes>(input:
|
|
325
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
326
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
334
327
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
335
328
|
}
|
|
336
329
|
|
|
@@ -452,14 +445,12 @@ type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Ke
|
|
|
452
445
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
453
446
|
}[Keys];
|
|
454
447
|
type TBaseAsset = {
|
|
455
|
-
symbol
|
|
448
|
+
symbol: string;
|
|
456
449
|
decimals?: number;
|
|
457
450
|
manuallyAdded?: boolean;
|
|
458
451
|
alias?: string;
|
|
459
452
|
};
|
|
460
|
-
type TNativeAsset = TBaseAsset
|
|
461
|
-
symbol: string;
|
|
462
|
-
};
|
|
453
|
+
type TNativeAsset = TBaseAsset;
|
|
463
454
|
type TForeignAsset = TBaseAsset & AtLeastOne<{
|
|
464
455
|
assetId?: string;
|
|
465
456
|
multiLocation?: object;
|
|
@@ -475,8 +466,8 @@ type TNodeAssets = {
|
|
|
475
466
|
};
|
|
476
467
|
type TAssetJsonMap = Record<TNodeWithRelayChains, TNodeAssets>;
|
|
477
468
|
|
|
478
|
-
type
|
|
479
|
-
type
|
|
469
|
+
type THexString$1 = `0x${string}`;
|
|
470
|
+
type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
480
471
|
api: IPolkadotApi<TApi, TRes>;
|
|
481
472
|
header: TMultiLocationHeader;
|
|
482
473
|
addressSelection: TMultiLocationHeader;
|
|
@@ -492,7 +483,7 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
|
|
|
492
483
|
version?: Version;
|
|
493
484
|
ahAddress?: string;
|
|
494
485
|
};
|
|
495
|
-
type
|
|
486
|
+
type TXTokensTransferOptions<TApi, TRes> = {
|
|
496
487
|
api: IPolkadotApi<TApi, TRes>;
|
|
497
488
|
asset: TAsset;
|
|
498
489
|
amount: string;
|
|
@@ -505,7 +496,7 @@ type XTokensTransferInput<TApi, TRes> = {
|
|
|
505
496
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
506
497
|
feeAsset?: TCurrency;
|
|
507
498
|
};
|
|
508
|
-
type
|
|
499
|
+
type TXTransferTransferOptions<TApi, TRes> = {
|
|
509
500
|
api: IPolkadotApi<TApi, TRes>;
|
|
510
501
|
asset: TAsset;
|
|
511
502
|
amount: string;
|
|
@@ -515,15 +506,15 @@ type XTransferTransferInput<TApi, TRes> = {
|
|
|
515
506
|
destination?: TDestination;
|
|
516
507
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
517
508
|
};
|
|
518
|
-
|
|
519
|
-
transferPolkadotXCM: <TApi, TRes>(input:
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
transferXTokens: <TApi, TRes>(input:
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
transferXTransfer: <TApi, TRes>(input:
|
|
526
|
-
}
|
|
509
|
+
interface IPolkadotXCMTransfer {
|
|
510
|
+
transferPolkadotXCM: <TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TRes>;
|
|
511
|
+
}
|
|
512
|
+
interface IXTokensTransfer {
|
|
513
|
+
transferXTokens: <TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>) => TRes;
|
|
514
|
+
}
|
|
515
|
+
interface IXTransferTransfer {
|
|
516
|
+
transferXTransfer: <TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>) => TRes;
|
|
517
|
+
}
|
|
527
518
|
type TScenario = 'ParaToRelay' | 'ParaToPara' | 'RelayToPara';
|
|
528
519
|
/**
|
|
529
520
|
* The XCM version.
|
|
@@ -626,6 +617,10 @@ type TRelayToParaBaseOptions<TApi, TRes> = {
|
|
|
626
617
|
*/
|
|
627
618
|
amount: TAmount;
|
|
628
619
|
};
|
|
620
|
+
type TRelayToParaOverrides = {
|
|
621
|
+
section: TXcmPalletSection;
|
|
622
|
+
includeFee: boolean;
|
|
623
|
+
};
|
|
629
624
|
/**
|
|
630
625
|
* Options for transferring from a relay chain to a parachain
|
|
631
626
|
*/
|
|
@@ -635,7 +630,7 @@ type TSerializedApiCall = {
|
|
|
635
630
|
section: string;
|
|
636
631
|
parameters: Record<string, unknown>;
|
|
637
632
|
};
|
|
638
|
-
type
|
|
633
|
+
type TCheckKeepAliveOptions<TApi, TRes> = {
|
|
639
634
|
originApi: IPolkadotApi<TApi, TRes>;
|
|
640
635
|
address: string;
|
|
641
636
|
amount: string;
|
|
@@ -648,64 +643,65 @@ type TDestWeight = {
|
|
|
648
643
|
refTime: string;
|
|
649
644
|
proofSize: string;
|
|
650
645
|
};
|
|
651
|
-
type
|
|
652
|
-
type
|
|
653
|
-
type
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
type
|
|
657
|
-
type
|
|
658
|
-
type
|
|
659
|
-
type
|
|
660
|
-
type
|
|
661
|
-
type
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
646
|
+
type TXTransferSection = 'transfer';
|
|
647
|
+
type TXTokensSection = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
|
|
648
|
+
type TPolkadotXcmSection = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'reserve_transfer_assets' | 'reserve_withdraw_assets' | 'transfer_assets';
|
|
649
|
+
type TXcmPalletSection = 'limited_teleport_assets' | 'reserve_transfer_assets' | 'limited_reserve_transfer_assets';
|
|
650
|
+
|
|
651
|
+
type TJunctionType = 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus';
|
|
652
|
+
type TNetworkId = string | null;
|
|
653
|
+
type TBodyId = string | null;
|
|
654
|
+
type TBodyPart = string | null;
|
|
655
|
+
type TStringOrNumber = string | number;
|
|
656
|
+
type TStringOrNumberOrBigInt = TStringOrNumber | bigint;
|
|
657
|
+
type THexString = string;
|
|
658
|
+
type TJunctionParachain = {
|
|
659
|
+
Parachain: TStringOrNumberOrBigInt | undefined;
|
|
660
|
+
};
|
|
661
|
+
type TJunctionAccountId32 = {
|
|
666
662
|
AccountId32: {
|
|
667
|
-
network?:
|
|
668
|
-
id:
|
|
663
|
+
network?: TNetworkId;
|
|
664
|
+
id: THexString;
|
|
669
665
|
};
|
|
670
|
-
}
|
|
671
|
-
|
|
666
|
+
};
|
|
667
|
+
type TJunctionAccountIndex64 = {
|
|
672
668
|
AccountIndex64: {
|
|
673
|
-
network:
|
|
674
|
-
index:
|
|
669
|
+
network: TNetworkId;
|
|
670
|
+
index: TStringOrNumberOrBigInt;
|
|
675
671
|
};
|
|
676
|
-
}
|
|
677
|
-
|
|
672
|
+
};
|
|
673
|
+
type TJunctionAccountKey20 = {
|
|
678
674
|
AccountKey20: {
|
|
679
|
-
network?:
|
|
680
|
-
key:
|
|
675
|
+
network?: TNetworkId;
|
|
676
|
+
key: THexString;
|
|
681
677
|
};
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
PalletInstance:
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
GeneralIndex:
|
|
688
|
-
}
|
|
689
|
-
|
|
678
|
+
};
|
|
679
|
+
type TJunctionPalletInstance = {
|
|
680
|
+
PalletInstance: TStringOrNumberOrBigInt;
|
|
681
|
+
};
|
|
682
|
+
type TJunctionGeneralIndex = {
|
|
683
|
+
GeneralIndex: TStringOrNumberOrBigInt;
|
|
684
|
+
};
|
|
685
|
+
type TJunctionGeneralKey = {
|
|
690
686
|
GeneralKey: {
|
|
691
|
-
length:
|
|
692
|
-
data:
|
|
687
|
+
length: TStringOrNumberOrBigInt;
|
|
688
|
+
data: THexString;
|
|
693
689
|
};
|
|
694
|
-
}
|
|
695
|
-
|
|
690
|
+
};
|
|
691
|
+
type TJunctionOnlyChild = {
|
|
696
692
|
OnlyChild: string;
|
|
697
|
-
}
|
|
698
|
-
|
|
693
|
+
};
|
|
694
|
+
type TJunctionPlurality = {
|
|
699
695
|
Plurality: {
|
|
700
|
-
id:
|
|
701
|
-
part:
|
|
696
|
+
id: TBodyId;
|
|
697
|
+
part: TBodyPart;
|
|
702
698
|
};
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
GlobalConsensus:
|
|
706
|
-
}
|
|
707
|
-
type TJunction =
|
|
708
|
-
interface
|
|
699
|
+
};
|
|
700
|
+
type TJunctionGlobalConsensus = {
|
|
701
|
+
GlobalConsensus: TNetworkId | object;
|
|
702
|
+
};
|
|
703
|
+
type TJunction = TJunctionParachain | TJunctionAccountId32 | TJunctionAccountIndex64 | TJunctionAccountKey20 | TJunctionPalletInstance | TJunctionGeneralIndex | TJunctionGeneralKey | TJunctionOnlyChild | TJunctionPlurality | TJunctionGlobalConsensus;
|
|
704
|
+
interface TJunctions {
|
|
709
705
|
Here?: null;
|
|
710
706
|
X1?: TJunction | [TJunction];
|
|
711
707
|
X2?: [TJunction, TJunction];
|
|
@@ -717,8 +713,8 @@ interface Junctions {
|
|
|
717
713
|
X8?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
|
|
718
714
|
}
|
|
719
715
|
interface TMultiLocation {
|
|
720
|
-
parents:
|
|
721
|
-
interior:
|
|
716
|
+
parents: TStringOrNumber;
|
|
717
|
+
interior: TJunctions | 'Here';
|
|
722
718
|
}
|
|
723
719
|
type TMultiLocationHeader = {
|
|
724
720
|
[key in Version]?: TMultiLocation;
|
|
@@ -727,7 +723,7 @@ type TMultiLocationHeader = {
|
|
|
727
723
|
declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
728
724
|
constructor();
|
|
729
725
|
private getCurrencySelection;
|
|
730
|
-
transferXTokens<TApi, TRes>(input:
|
|
726
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
731
727
|
transferRelayToPara(): TSerializedApiCall;
|
|
732
728
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset, overridedMultiLocation?: TMultiLocation): TCurrencySelectionHeaderArr;
|
|
733
729
|
getProvider(): string;
|
|
@@ -735,7 +731,7 @@ declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
735
731
|
|
|
736
732
|
declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
737
733
|
constructor();
|
|
738
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
734
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
739
735
|
transferRelayToPara(): TSerializedApiCall;
|
|
740
736
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
|
|
741
737
|
}
|
|
@@ -743,107 +739,101 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
|
|
|
743
739
|
declare class Quartz<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
744
740
|
constructor();
|
|
745
741
|
_assetCheckEnabled: boolean;
|
|
746
|
-
transferXTokens<TApi, TRes>(input:
|
|
742
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
747
743
|
}
|
|
748
744
|
|
|
749
745
|
declare class Shiden<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
750
746
|
constructor();
|
|
751
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
752
|
-
transferXTokens<TApi, TRes>(input:
|
|
747
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
748
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
753
749
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
754
750
|
}
|
|
755
751
|
|
|
756
752
|
declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
757
753
|
constructor();
|
|
758
|
-
transferXTokens<TApi, TRes>(input:
|
|
754
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
759
755
|
}
|
|
760
756
|
|
|
761
757
|
declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
762
758
|
constructor();
|
|
763
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
759
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
764
760
|
transferRelayToPara(): TSerializedApiCall;
|
|
765
761
|
}
|
|
766
762
|
|
|
767
763
|
declare class NeuroWeb<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
768
764
|
constructor();
|
|
769
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
765
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
770
766
|
}
|
|
771
767
|
|
|
772
768
|
declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
773
769
|
constructor();
|
|
774
|
-
transferXTokens<TApi, TRes>(input:
|
|
770
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
775
771
|
transferRelayToPara(): TSerializedApiCall;
|
|
776
772
|
}
|
|
777
773
|
|
|
778
|
-
declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
779
|
-
constructor();
|
|
780
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
781
|
-
getProvider(): string;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
774
|
declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
785
775
|
constructor();
|
|
786
776
|
private getCurrencySelection;
|
|
787
|
-
transferXTokens<TApi, TRes>(input:
|
|
777
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
788
778
|
}
|
|
789
779
|
|
|
790
780
|
declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
791
781
|
constructor();
|
|
792
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
793
|
-
|
|
782
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
783
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
794
784
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
|
|
795
785
|
}
|
|
796
786
|
|
|
797
787
|
declare class Khala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
798
788
|
constructor();
|
|
799
|
-
transferXTransfer<TApi, TRes>(input:
|
|
789
|
+
transferXTransfer<TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>): TRes;
|
|
800
790
|
}
|
|
801
791
|
|
|
802
792
|
declare class Phala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
803
793
|
constructor();
|
|
804
|
-
transferXTransfer<TApi, TRes>(input:
|
|
794
|
+
transferXTransfer<TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>): TRes;
|
|
805
795
|
}
|
|
806
796
|
|
|
807
797
|
declare class Subsocial<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
808
798
|
constructor();
|
|
809
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
799
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
810
800
|
}
|
|
811
801
|
|
|
812
802
|
declare class KiltSpiritnet<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
813
803
|
constructor();
|
|
814
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
804
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
815
805
|
transferRelayToPara(): TSerializedApiCall;
|
|
816
806
|
getProvider(): string;
|
|
817
807
|
}
|
|
818
808
|
|
|
819
809
|
declare class Curio<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
820
810
|
constructor();
|
|
821
|
-
transferXTokens<TApi, TRes>(input:
|
|
811
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
822
812
|
}
|
|
823
813
|
|
|
824
814
|
declare class BridgeHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
825
815
|
constructor();
|
|
826
816
|
_assetCheckEnabled: boolean;
|
|
827
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
828
|
-
|
|
817
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
818
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
829
819
|
}
|
|
830
820
|
|
|
831
821
|
declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
832
822
|
constructor();
|
|
833
823
|
_assetCheckEnabled: boolean;
|
|
834
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
835
|
-
|
|
824
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
825
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
836
826
|
}
|
|
837
827
|
|
|
838
828
|
declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
839
829
|
constructor();
|
|
840
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
830
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
841
831
|
transferRelayToPara(): TSerializedApiCall;
|
|
842
832
|
}
|
|
843
833
|
|
|
844
834
|
declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
845
835
|
constructor();
|
|
846
|
-
transferXTokens<TApi, TRes>(input:
|
|
836
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
847
837
|
transferRelayToPara(): TSerializedApiCall;
|
|
848
838
|
getProvider(): string;
|
|
849
839
|
}
|
|
@@ -851,7 +841,7 @@ declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTo
|
|
|
851
841
|
declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
852
842
|
constructor();
|
|
853
843
|
private getAssetMultiLocation;
|
|
854
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
844
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
855
845
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
856
846
|
getProvider(): string;
|
|
857
847
|
}
|
|
@@ -859,19 +849,19 @@ declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements I
|
|
|
859
849
|
/**
|
|
860
850
|
* Supported nodes excluding relay chains and Ethereum.
|
|
861
851
|
*/
|
|
862
|
-
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"];
|
|
863
853
|
/**
|
|
864
854
|
* Supported nodes including Ethereum.
|
|
865
855
|
*/
|
|
866
|
-
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"];
|
|
867
857
|
/**
|
|
868
858
|
* Supported nodes including relay chains and Ethereum.
|
|
869
859
|
*/
|
|
870
|
-
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"];
|
|
871
861
|
/**
|
|
872
862
|
* Supported nodes including relay chains and excluding Ethereum.
|
|
873
863
|
*/
|
|
874
|
-
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"];
|
|
875
865
|
declare const nodes: <TApi, TRes>() => {
|
|
876
866
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
877
867
|
Acala: Acala<TApi, TRes>;
|
|
@@ -899,12 +889,10 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
899
889
|
Bajun: Bajun<TApi, TRes>;
|
|
900
890
|
Basilisk: Basilisk<TApi, TRes>;
|
|
901
891
|
BifrostKusama: BifrostKusama<TApi, TRes>;
|
|
902
|
-
Pioneer: Pioneer<TApi, TRes>;
|
|
903
892
|
Calamari: Calamari<TApi, TRes>;
|
|
904
893
|
CrustShadow: CrustShadow<TApi, TRes>;
|
|
905
894
|
Crab: Crab<TApi, TRes>;
|
|
906
895
|
Imbue: Imbue<TApi, TRes>;
|
|
907
|
-
Integritee: Integritee<TApi, TRes>;
|
|
908
896
|
InvArchTinker: InvArchTinker<TApi, TRes>;
|
|
909
897
|
Karura: Karura<TApi, TRes>;
|
|
910
898
|
Kintsugi: Kintsugi<TApi, TRes>;
|
|
@@ -922,7 +910,6 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
922
910
|
Nodle: Nodle<TApi, TRes>;
|
|
923
911
|
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
924
912
|
Pendulum: Pendulum<TApi, TRes>;
|
|
925
|
-
Polkadex: Polkadex<TApi, TRes>;
|
|
926
913
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
927
914
|
Collectives: Collectives<TApi, TRes>;
|
|
928
915
|
Khala: Khala<TApi, TRes>;
|
|
@@ -1068,6 +1055,7 @@ type TNodeConfig = {
|
|
|
1068
1055
|
type TNodeConfigMap = Record<TNodeDotKsmWithRelayChains, TNodeConfig>;
|
|
1069
1056
|
|
|
1070
1057
|
declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TRes>;
|
|
1058
|
+
|
|
1071
1059
|
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
1072
1060
|
|
|
1073
1061
|
declare const buildEthTransferOptions: ({ currency, to, address, destAddress, amount }: TSerializeEthTransferOptions) => Promise<TSerializedEthTransfer>;
|
|
@@ -1703,4 +1691,4 @@ declare const getNodeProvider: (node: TNodeDotKsmWithRelayChains) => string;
|
|
|
1703
1691
|
*/
|
|
1704
1692
|
declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
|
|
1705
1693
|
|
|
1706
|
-
export { BatchMode, Builder,
|
|
1694
|
+
export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, type TCheckKeepAliveOptions, type TCurrency, type TCurrencyCore, type TCurrencyCoreV1, type TCurrencyInput, type TCurrencySelection, type TCurrencySelectionHeader, type TCurrencySelectionHeaderArr, type TCurrencySelectionV4, type TCurrencySymbol, type TCurrencySymbolValue, type TDestWeight, type TDestination, type TEdJsonMap, type TEvmBuilderOptions, type TForeignAsset, type TForeignAssetId, type TForeignOrNativeAsset, type TForeignOrTokenAsset, type TGetTransferInfoOptions, type TGetTransferInfoOptionsBase, type THexString$1 as THexString, type TJunction, type TJunctionParachain, type TJunctionType, type TJunctions, type TMantaAsset, type TMultiAsset, type TMultiAssetV3, type TMultiAssetV4, type TMultiLocation, type TMultiLocationHeader, type TMultiLocationValue, type TMultiLocationValueWithOverride, type TNativeAsset, type TNativeTokenAsset, type TNode, type TNodeAssets, type TNodeConfig, type TNodeConfigMap, type TNodeDotKsmWithRelayChains, type TNodePolkadotKusama, type TNodeWithRelayChains, type TNodleAsset, type TOptionalEvmBuilderOptions, type TOriginFeeDetails, type TOtherReserveAsset, type TOverrideMultiLocationSpecifier, type TPallet, type TPalletJsonMap, type TPalletMap, type TPapiApi, type TPapiApiOrUrl, type TPapiTransaction, type TPolkadotXCMTransferOptions, type TPolkadotXcmSection, type TProviderEntry, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaDestination, type TRelayToParaOptions, type TRelayToParaOverrides, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSerializeEthTransferOptions, type TSerializedApiCall, type TSerializedEthTransfer, type TSymbolSpecifier, type TTransferInfo, type TVersionClaimAssets, type TXTokensCurrencySelection, type TXTokensSection, type TXTokensTransferOptions, type TXTransferSection, type TXTransferTransferOptions, type TXcmAsset, type TXcmForeignAsset, type TXcmPalletSection, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, assets, buildEthTransferOptions, claimAssets, createApiInstanceForNode, createPapiApiCall, determineRelayChain, getAllAssetsSymbols, getAssetBalance, getAssetDecimals, getAssetId, getAssets, getAssetsObject, getBalanceForeign, getBalanceNative, getDefaultPallet, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProvider, getNodeProviders, getOriginFeeDetails, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getTNode, getTransferInfo, hasSupportForAsset, isForeignAsset, isNodeEvm, isRelayChain, send, transferRelayToPara, index as xcmPallet };
|