@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/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
17
17
|
get assetCheckEnabled(): boolean;
|
|
18
18
|
protected canUseXTokens(_: TSendInternalOptions<TApi, TRes>): boolean;
|
|
19
19
|
transfer(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
20
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
20
21
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
21
22
|
getProvider(): string;
|
|
22
23
|
createApiInstance(api: IPolkadotApi<TApi, TRes>): Promise<TApi>;
|
|
@@ -27,19 +28,19 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
27
28
|
|
|
28
29
|
declare class Acala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
29
30
|
constructor();
|
|
30
|
-
transferXTokens<TApi, TRes>(input:
|
|
31
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
31
32
|
getProvider(): string;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
35
36
|
constructor();
|
|
36
|
-
transferXTokens<TApi, TRes>(input:
|
|
37
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
declare class Crust<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
40
41
|
constructor();
|
|
41
42
|
private getCurrencySelection;
|
|
42
|
-
transferXTokens<TApi, TRes>(input:
|
|
43
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
@@ -87,8 +88,8 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
|
|
|
87
88
|
VSToken2?: undefined;
|
|
88
89
|
VToken2?: undefined;
|
|
89
90
|
};
|
|
90
|
-
transferXTokens<TApi, TRes>(input:
|
|
91
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
91
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
92
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
92
93
|
protected canUseXTokens({ asset, destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
93
94
|
getProvider(): string;
|
|
94
95
|
}
|
|
@@ -100,209 +101,200 @@ declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
|
|
|
100
101
|
declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
101
102
|
constructor();
|
|
102
103
|
private getCurrencySelection;
|
|
103
|
-
transferXTokens<TApi, TRes>(input:
|
|
104
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
107
108
|
constructor();
|
|
108
|
-
transferXTokens<TApi, TRes>(input:
|
|
109
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
112
113
|
private static NATIVE_ASSET_ID;
|
|
113
114
|
constructor();
|
|
114
|
-
transferToEthereum<TApi, TRes>(input:
|
|
115
|
-
transferToAssetHub<TApi, TRes>(input:
|
|
116
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
117
|
-
transferXTokens<TApi, TRes>(input:
|
|
115
|
+
transferToEthereum<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
116
|
+
transferToAssetHub<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
117
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
118
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
118
119
|
protected canUseXTokens({ destination, asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
119
120
|
getProvider(): string;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
declare class Interlay<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
123
124
|
constructor();
|
|
124
|
-
transferXTokens<TApi, TRes>(input:
|
|
125
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
declare class Litentry<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
128
129
|
constructor();
|
|
129
|
-
transferXTokens<TApi, TRes>(input:
|
|
130
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
declare class Moonbeam<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
133
134
|
constructor();
|
|
134
135
|
private getJunctions;
|
|
135
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
136
|
-
|
|
136
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
137
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
137
138
|
getProvider(): string;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
declare class Parallel<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
141
142
|
constructor();
|
|
142
|
-
transferXTokens<TApi, TRes>(input:
|
|
143
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
declare class Altair<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
146
147
|
constructor();
|
|
147
148
|
private getCurrencySelection;
|
|
148
|
-
transferXTokens<TApi, TRes>(input:
|
|
149
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
declare class Amplitude<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
152
153
|
constructor();
|
|
153
|
-
transferXTokens<TApi, TRes>(input:
|
|
154
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
declare class Bajun<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
157
158
|
constructor();
|
|
158
|
-
transferXTokens<TApi, TRes>(input:
|
|
159
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
159
160
|
transferRelayToPara(): TSerializedApiCall;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
declare class Basilisk<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
163
164
|
constructor();
|
|
164
|
-
transferXTokens<TApi, TRes>(input:
|
|
165
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
165
166
|
getProvider(): string;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
169
170
|
constructor();
|
|
170
|
-
transferXTokens<TApi, TRes>(input:
|
|
171
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
171
172
|
getProvider(): string;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
declare class Pioneer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
175
|
-
constructor();
|
|
176
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
175
|
declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
180
176
|
constructor();
|
|
181
|
-
transferXTokens<TApi, TRes>(input:
|
|
177
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
182
178
|
}
|
|
183
179
|
|
|
184
180
|
declare class Picasso<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
185
181
|
constructor();
|
|
186
|
-
transferXTokens<TApi, TRes>(input:
|
|
182
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
187
183
|
}
|
|
188
184
|
|
|
189
185
|
declare class ParallelHeiko<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
190
186
|
constructor();
|
|
191
|
-
transferXTokens<TApi, TRes>(input:
|
|
187
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
192
188
|
}
|
|
193
189
|
|
|
194
190
|
declare class Moonriver<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
195
191
|
constructor();
|
|
196
192
|
private getJunctions;
|
|
197
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
198
|
-
|
|
193
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
194
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
199
195
|
getProvider(): string;
|
|
200
196
|
}
|
|
201
197
|
|
|
202
198
|
declare class Kintsugi<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
203
199
|
constructor();
|
|
204
|
-
transferXTokens<TApi, TRes>(input:
|
|
200
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
205
201
|
}
|
|
206
202
|
|
|
207
203
|
declare class Calamari<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
208
204
|
constructor();
|
|
209
|
-
transferXTokens<TApi, TRes>(input:
|
|
205
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
210
206
|
}
|
|
211
207
|
|
|
212
208
|
declare class CrustShadow<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
213
209
|
constructor();
|
|
214
210
|
private getCurrencySelection;
|
|
215
|
-
transferXTokens<TApi, TRes>(input:
|
|
211
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
216
212
|
}
|
|
217
213
|
|
|
218
214
|
declare class Imbue<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
219
215
|
constructor();
|
|
220
|
-
transferXTokens<TApi, TRes>(input:
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
declare class Integritee<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
224
|
-
constructor();
|
|
225
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
226
|
-
transferRelayToPara(): TSerializedApiCall;
|
|
216
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
227
217
|
}
|
|
228
218
|
|
|
229
219
|
declare class InvArchTinker<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
230
220
|
constructor();
|
|
231
|
-
transferXTokens<TApi, TRes>(input:
|
|
221
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
232
222
|
}
|
|
233
223
|
|
|
234
224
|
declare class Karura<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
235
225
|
constructor();
|
|
236
|
-
transferXTokens<TApi, TRes>(input:
|
|
226
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
237
227
|
getProvider(): string;
|
|
238
228
|
}
|
|
239
229
|
|
|
240
230
|
declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
241
231
|
constructor();
|
|
242
|
-
handleBridgeTransfer<TApi, TRes>(input:
|
|
243
|
-
handleEthBridgeTransfer<TApi, TRes>(input:
|
|
244
|
-
handleMythosTransfer<TApi, TRes>(input:
|
|
245
|
-
handleBifrostEthTransfer: <TApi_1, TRes_1>(input:
|
|
246
|
-
patchInput<TApi, TRes>(input:
|
|
232
|
+
handleBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): TRes;
|
|
233
|
+
handleEthBridgeTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
234
|
+
handleMythosTransfer<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TRes;
|
|
235
|
+
handleBifrostEthTransfer: <TApi_1, TRes_1>(input: TPolkadotXCMTransferOptions<TApi_1, TRes_1>) => TRes_1;
|
|
236
|
+
patchInput<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): TPolkadotXCMTransferOptions<TApi, TRes>;
|
|
247
237
|
private getSection;
|
|
248
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
249
|
-
|
|
238
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
239
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
250
240
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
241
|
+
getProvider(): string;
|
|
251
242
|
}
|
|
252
243
|
|
|
253
244
|
declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
254
245
|
constructor();
|
|
255
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
256
|
-
|
|
246
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
247
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
257
248
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
258
249
|
}
|
|
259
250
|
|
|
260
251
|
declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
261
252
|
constructor();
|
|
262
253
|
_assetCheckEnabled: boolean;
|
|
263
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
264
|
-
|
|
254
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
255
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
265
256
|
}
|
|
266
257
|
|
|
267
258
|
declare class CoretimePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
268
259
|
constructor();
|
|
269
260
|
_assetCheckEnabled: boolean;
|
|
270
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
271
|
-
|
|
261
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
262
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
272
263
|
}
|
|
273
264
|
|
|
274
265
|
declare class Encointer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
275
266
|
constructor();
|
|
276
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
277
|
-
|
|
267
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
268
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
278
269
|
}
|
|
279
270
|
|
|
280
271
|
declare class RobonomicsKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
281
272
|
constructor();
|
|
282
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
273
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
283
274
|
}
|
|
284
275
|
|
|
285
276
|
declare class RobonomicsPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
286
277
|
constructor();
|
|
287
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
278
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
288
279
|
}
|
|
289
280
|
|
|
290
281
|
declare class PeoplePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
291
282
|
constructor();
|
|
292
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
293
|
-
|
|
283
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
284
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
285
|
+
getProvider(): string;
|
|
294
286
|
}
|
|
295
287
|
|
|
296
288
|
declare class PeopleKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
297
289
|
constructor();
|
|
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 Astar<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
303
295
|
constructor();
|
|
304
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
305
|
-
transferXTokens<TApi, TRes>(input:
|
|
296
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
297
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
306
298
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
307
299
|
}
|
|
308
300
|
|
|
@@ -424,14 +416,12 @@ type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Ke
|
|
|
424
416
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
425
417
|
}[Keys];
|
|
426
418
|
type TBaseAsset = {
|
|
427
|
-
symbol
|
|
419
|
+
symbol: string;
|
|
428
420
|
decimals?: number;
|
|
429
421
|
manuallyAdded?: boolean;
|
|
430
422
|
alias?: string;
|
|
431
423
|
};
|
|
432
|
-
type TNativeAsset = TBaseAsset
|
|
433
|
-
symbol: string;
|
|
434
|
-
};
|
|
424
|
+
type TNativeAsset = TBaseAsset;
|
|
435
425
|
type TForeignAsset = TBaseAsset & AtLeastOne<{
|
|
436
426
|
assetId?: string;
|
|
437
427
|
multiLocation?: object;
|
|
@@ -447,8 +437,8 @@ type TNodeAssets = {
|
|
|
447
437
|
};
|
|
448
438
|
type TAssetJsonMap = Record<TNodeWithRelayChains, TNodeAssets>;
|
|
449
439
|
|
|
450
|
-
type
|
|
451
|
-
type
|
|
440
|
+
type THexString$1 = `0x${string}`;
|
|
441
|
+
type TPolkadotXCMTransferOptions<TApi, TRes> = {
|
|
452
442
|
api: IPolkadotApi<TApi, TRes>;
|
|
453
443
|
header: TMultiLocationHeader;
|
|
454
444
|
addressSelection: TMultiLocationHeader;
|
|
@@ -464,7 +454,7 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
|
|
|
464
454
|
version?: Version;
|
|
465
455
|
ahAddress?: string;
|
|
466
456
|
};
|
|
467
|
-
type
|
|
457
|
+
type TXTokensTransferOptions<TApi, TRes> = {
|
|
468
458
|
api: IPolkadotApi<TApi, TRes>;
|
|
469
459
|
asset: TAsset;
|
|
470
460
|
amount: string;
|
|
@@ -477,7 +467,7 @@ type XTokensTransferInput<TApi, TRes> = {
|
|
|
477
467
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
478
468
|
feeAsset?: TCurrency;
|
|
479
469
|
};
|
|
480
|
-
type
|
|
470
|
+
type TXTransferTransferOptions<TApi, TRes> = {
|
|
481
471
|
api: IPolkadotApi<TApi, TRes>;
|
|
482
472
|
asset: TAsset;
|
|
483
473
|
amount: string;
|
|
@@ -487,15 +477,15 @@ type XTransferTransferInput<TApi, TRes> = {
|
|
|
487
477
|
destination?: TDestination;
|
|
488
478
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
489
479
|
};
|
|
490
|
-
|
|
491
|
-
transferPolkadotXCM: <TApi, TRes>(input:
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
transferXTokens: <TApi, TRes>(input:
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
transferXTransfer: <TApi, TRes>(input:
|
|
498
|
-
}
|
|
480
|
+
interface IPolkadotXCMTransfer {
|
|
481
|
+
transferPolkadotXCM: <TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>) => Promise<TRes>;
|
|
482
|
+
}
|
|
483
|
+
interface IXTokensTransfer {
|
|
484
|
+
transferXTokens: <TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>) => TRes;
|
|
485
|
+
}
|
|
486
|
+
interface IXTransferTransfer {
|
|
487
|
+
transferXTransfer: <TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>) => TRes;
|
|
488
|
+
}
|
|
499
489
|
type TScenario = 'ParaToRelay' | 'ParaToPara' | 'RelayToPara';
|
|
500
490
|
/**
|
|
501
491
|
* The XCM version.
|
|
@@ -598,6 +588,10 @@ type TRelayToParaBaseOptions<TApi, TRes> = {
|
|
|
598
588
|
*/
|
|
599
589
|
amount: TAmount;
|
|
600
590
|
};
|
|
591
|
+
type TRelayToParaOverrides = {
|
|
592
|
+
section: TXcmPalletSection;
|
|
593
|
+
includeFee: boolean;
|
|
594
|
+
};
|
|
601
595
|
/**
|
|
602
596
|
* Options for transferring from a relay chain to a parachain
|
|
603
597
|
*/
|
|
@@ -607,7 +601,7 @@ type TSerializedApiCall = {
|
|
|
607
601
|
section: string;
|
|
608
602
|
parameters: Record<string, unknown>;
|
|
609
603
|
};
|
|
610
|
-
type
|
|
604
|
+
type TCheckKeepAliveOptions<TApi, TRes> = {
|
|
611
605
|
originApi: IPolkadotApi<TApi, TRes>;
|
|
612
606
|
address: string;
|
|
613
607
|
amount: string;
|
|
@@ -620,64 +614,65 @@ type TDestWeight = {
|
|
|
620
614
|
refTime: string;
|
|
621
615
|
proofSize: string;
|
|
622
616
|
};
|
|
623
|
-
type
|
|
624
|
-
type
|
|
625
|
-
type
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
type
|
|
629
|
-
type
|
|
630
|
-
type
|
|
631
|
-
type
|
|
632
|
-
type
|
|
633
|
-
type
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
617
|
+
type TXTransferSection = 'transfer';
|
|
618
|
+
type TXTokensSection = 'transfer' | 'transfer_multiasset' | 'transfer_multiassets';
|
|
619
|
+
type TPolkadotXcmSection = 'limited_teleport_assets' | 'limited_reserve_transfer_assets' | 'reserve_transfer_assets' | 'reserve_withdraw_assets' | 'transfer_assets';
|
|
620
|
+
type TXcmPalletSection = 'limited_teleport_assets' | 'reserve_transfer_assets' | 'limited_reserve_transfer_assets';
|
|
621
|
+
|
|
622
|
+
type TJunctionType = 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality' | 'GlobalConsensus';
|
|
623
|
+
type TNetworkId = string | null;
|
|
624
|
+
type TBodyId = string | null;
|
|
625
|
+
type TBodyPart = string | null;
|
|
626
|
+
type TStringOrNumber = string | number;
|
|
627
|
+
type TStringOrNumberOrBigInt = TStringOrNumber | bigint;
|
|
628
|
+
type THexString = string;
|
|
629
|
+
type TJunctionParachain = {
|
|
630
|
+
Parachain: TStringOrNumberOrBigInt | undefined;
|
|
631
|
+
};
|
|
632
|
+
type TJunctionAccountId32 = {
|
|
638
633
|
AccountId32: {
|
|
639
|
-
network?:
|
|
640
|
-
id:
|
|
634
|
+
network?: TNetworkId;
|
|
635
|
+
id: THexString;
|
|
641
636
|
};
|
|
642
|
-
}
|
|
643
|
-
|
|
637
|
+
};
|
|
638
|
+
type TJunctionAccountIndex64 = {
|
|
644
639
|
AccountIndex64: {
|
|
645
|
-
network:
|
|
646
|
-
index:
|
|
640
|
+
network: TNetworkId;
|
|
641
|
+
index: TStringOrNumberOrBigInt;
|
|
647
642
|
};
|
|
648
|
-
}
|
|
649
|
-
|
|
643
|
+
};
|
|
644
|
+
type TJunctionAccountKey20 = {
|
|
650
645
|
AccountKey20: {
|
|
651
|
-
network?:
|
|
652
|
-
key:
|
|
646
|
+
network?: TNetworkId;
|
|
647
|
+
key: THexString;
|
|
653
648
|
};
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
PalletInstance:
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
GeneralIndex:
|
|
660
|
-
}
|
|
661
|
-
|
|
649
|
+
};
|
|
650
|
+
type TJunctionPalletInstance = {
|
|
651
|
+
PalletInstance: TStringOrNumberOrBigInt;
|
|
652
|
+
};
|
|
653
|
+
type TJunctionGeneralIndex = {
|
|
654
|
+
GeneralIndex: TStringOrNumberOrBigInt;
|
|
655
|
+
};
|
|
656
|
+
type TJunctionGeneralKey = {
|
|
662
657
|
GeneralKey: {
|
|
663
|
-
length:
|
|
664
|
-
data:
|
|
658
|
+
length: TStringOrNumberOrBigInt;
|
|
659
|
+
data: THexString;
|
|
665
660
|
};
|
|
666
|
-
}
|
|
667
|
-
|
|
661
|
+
};
|
|
662
|
+
type TJunctionOnlyChild = {
|
|
668
663
|
OnlyChild: string;
|
|
669
|
-
}
|
|
670
|
-
|
|
664
|
+
};
|
|
665
|
+
type TJunctionPlurality = {
|
|
671
666
|
Plurality: {
|
|
672
|
-
id:
|
|
673
|
-
part:
|
|
667
|
+
id: TBodyId;
|
|
668
|
+
part: TBodyPart;
|
|
674
669
|
};
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
GlobalConsensus:
|
|
678
|
-
}
|
|
679
|
-
type TJunction =
|
|
680
|
-
interface
|
|
670
|
+
};
|
|
671
|
+
type TJunctionGlobalConsensus = {
|
|
672
|
+
GlobalConsensus: TNetworkId | object;
|
|
673
|
+
};
|
|
674
|
+
type TJunction = TJunctionParachain | TJunctionAccountId32 | TJunctionAccountIndex64 | TJunctionAccountKey20 | TJunctionPalletInstance | TJunctionGeneralIndex | TJunctionGeneralKey | TJunctionOnlyChild | TJunctionPlurality | TJunctionGlobalConsensus;
|
|
675
|
+
interface TJunctions {
|
|
681
676
|
Here?: null;
|
|
682
677
|
X1?: TJunction | [TJunction];
|
|
683
678
|
X2?: [TJunction, TJunction];
|
|
@@ -689,8 +684,8 @@ interface Junctions {
|
|
|
689
684
|
X8?: [TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction, TJunction];
|
|
690
685
|
}
|
|
691
686
|
interface TMultiLocation {
|
|
692
|
-
parents:
|
|
693
|
-
interior:
|
|
687
|
+
parents: TStringOrNumber;
|
|
688
|
+
interior: TJunctions | 'Here';
|
|
694
689
|
}
|
|
695
690
|
type TMultiLocationHeader = {
|
|
696
691
|
[key in Version]?: TMultiLocation;
|
|
@@ -699,7 +694,7 @@ type TMultiLocationHeader = {
|
|
|
699
694
|
declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
700
695
|
constructor();
|
|
701
696
|
private getCurrencySelection;
|
|
702
|
-
transferXTokens<TApi, TRes>(input:
|
|
697
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
703
698
|
transferRelayToPara(): TSerializedApiCall;
|
|
704
699
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset, overridedMultiLocation?: TMultiLocation): TCurrencySelectionHeaderArr;
|
|
705
700
|
getProvider(): string;
|
|
@@ -707,7 +702,7 @@ declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
|
707
702
|
|
|
708
703
|
declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
709
704
|
constructor();
|
|
710
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
705
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
711
706
|
transferRelayToPara(): TSerializedApiCall;
|
|
712
707
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
|
|
713
708
|
}
|
|
@@ -715,107 +710,101 @@ declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPol
|
|
|
715
710
|
declare class Quartz<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
716
711
|
constructor();
|
|
717
712
|
_assetCheckEnabled: boolean;
|
|
718
|
-
transferXTokens<TApi, TRes>(input:
|
|
713
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
719
714
|
}
|
|
720
715
|
|
|
721
716
|
declare class Shiden<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
722
717
|
constructor();
|
|
723
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
724
|
-
transferXTokens<TApi, TRes>(input:
|
|
718
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
719
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
725
720
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
726
721
|
}
|
|
727
722
|
|
|
728
723
|
declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
729
724
|
constructor();
|
|
730
|
-
transferXTokens<TApi, TRes>(input:
|
|
725
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
731
726
|
}
|
|
732
727
|
|
|
733
728
|
declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
734
729
|
constructor();
|
|
735
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
730
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
736
731
|
transferRelayToPara(): TSerializedApiCall;
|
|
737
732
|
}
|
|
738
733
|
|
|
739
734
|
declare class NeuroWeb<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
740
735
|
constructor();
|
|
741
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
736
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
742
737
|
}
|
|
743
738
|
|
|
744
739
|
declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
745
740
|
constructor();
|
|
746
|
-
transferXTokens<TApi, TRes>(input:
|
|
741
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
747
742
|
transferRelayToPara(): TSerializedApiCall;
|
|
748
743
|
}
|
|
749
744
|
|
|
750
|
-
declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
751
|
-
constructor();
|
|
752
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
753
|
-
getProvider(): string;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
745
|
declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
757
746
|
constructor();
|
|
758
747
|
private getCurrencySelection;
|
|
759
|
-
transferXTokens<TApi, TRes>(input:
|
|
748
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
760
749
|
}
|
|
761
750
|
|
|
762
751
|
declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
763
752
|
constructor();
|
|
764
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
765
|
-
|
|
753
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
754
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
766
755
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
|
|
767
756
|
}
|
|
768
757
|
|
|
769
758
|
declare class Khala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
770
759
|
constructor();
|
|
771
|
-
transferXTransfer<TApi, TRes>(input:
|
|
760
|
+
transferXTransfer<TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>): TRes;
|
|
772
761
|
}
|
|
773
762
|
|
|
774
763
|
declare class Phala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
775
764
|
constructor();
|
|
776
|
-
transferXTransfer<TApi, TRes>(input:
|
|
765
|
+
transferXTransfer<TApi, TRes>(input: TXTransferTransferOptions<TApi, TRes>): TRes;
|
|
777
766
|
}
|
|
778
767
|
|
|
779
768
|
declare class Subsocial<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
780
769
|
constructor();
|
|
781
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
770
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
782
771
|
}
|
|
783
772
|
|
|
784
773
|
declare class KiltSpiritnet<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
785
774
|
constructor();
|
|
786
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
775
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
787
776
|
transferRelayToPara(): TSerializedApiCall;
|
|
788
777
|
getProvider(): string;
|
|
789
778
|
}
|
|
790
779
|
|
|
791
780
|
declare class Curio<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
792
781
|
constructor();
|
|
793
|
-
transferXTokens<TApi, TRes>(input:
|
|
782
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
794
783
|
}
|
|
795
784
|
|
|
796
785
|
declare class BridgeHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
797
786
|
constructor();
|
|
798
787
|
_assetCheckEnabled: boolean;
|
|
799
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
800
|
-
|
|
788
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
789
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
801
790
|
}
|
|
802
791
|
|
|
803
792
|
declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
804
793
|
constructor();
|
|
805
794
|
_assetCheckEnabled: boolean;
|
|
806
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
807
|
-
|
|
795
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
796
|
+
getRelayToParaOverrides(): TRelayToParaOverrides;
|
|
808
797
|
}
|
|
809
798
|
|
|
810
799
|
declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
811
800
|
constructor();
|
|
812
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
801
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
813
802
|
transferRelayToPara(): TSerializedApiCall;
|
|
814
803
|
}
|
|
815
804
|
|
|
816
805
|
declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
817
806
|
constructor();
|
|
818
|
-
transferXTokens<TApi, TRes>(input:
|
|
807
|
+
transferXTokens<TApi, TRes>(input: TXTokensTransferOptions<TApi, TRes>): TRes;
|
|
819
808
|
transferRelayToPara(): TSerializedApiCall;
|
|
820
809
|
getProvider(): string;
|
|
821
810
|
}
|
|
@@ -823,7 +812,7 @@ declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTo
|
|
|
823
812
|
declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
824
813
|
constructor();
|
|
825
814
|
private getAssetMultiLocation;
|
|
826
|
-
transferPolkadotXCM<TApi, TRes>(input:
|
|
815
|
+
transferPolkadotXCM<TApi, TRes>(input: TPolkadotXCMTransferOptions<TApi, TRes>): Promise<TRes>;
|
|
827
816
|
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
828
817
|
getProvider(): string;
|
|
829
818
|
}
|
|
@@ -831,19 +820,19 @@ declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements I
|
|
|
831
820
|
/**
|
|
832
821
|
* Supported nodes excluding relay chains and Ethereum.
|
|
833
822
|
*/
|
|
834
|
-
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"];
|
|
835
824
|
/**
|
|
836
825
|
* Supported nodes including Ethereum.
|
|
837
826
|
*/
|
|
838
|
-
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"];
|
|
839
828
|
/**
|
|
840
829
|
* Supported nodes including relay chains and Ethereum.
|
|
841
830
|
*/
|
|
842
|
-
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"];
|
|
843
832
|
/**
|
|
844
833
|
* Supported nodes including relay chains and excluding Ethereum.
|
|
845
834
|
*/
|
|
846
|
-
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"];
|
|
847
836
|
declare const nodes: <TApi, TRes>() => {
|
|
848
837
|
AssetHubPolkadot: AssetHubPolkadot<TApi, TRes>;
|
|
849
838
|
Acala: Acala<TApi, TRes>;
|
|
@@ -871,12 +860,10 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
871
860
|
Bajun: Bajun<TApi, TRes>;
|
|
872
861
|
Basilisk: Basilisk<TApi, TRes>;
|
|
873
862
|
BifrostKusama: BifrostKusama<TApi, TRes>;
|
|
874
|
-
Pioneer: Pioneer<TApi, TRes>;
|
|
875
863
|
Calamari: Calamari<TApi, TRes>;
|
|
876
864
|
CrustShadow: CrustShadow<TApi, TRes>;
|
|
877
865
|
Crab: Crab<TApi, TRes>;
|
|
878
866
|
Imbue: Imbue<TApi, TRes>;
|
|
879
|
-
Integritee: Integritee<TApi, TRes>;
|
|
880
867
|
InvArchTinker: InvArchTinker<TApi, TRes>;
|
|
881
868
|
Karura: Karura<TApi, TRes>;
|
|
882
869
|
Kintsugi: Kintsugi<TApi, TRes>;
|
|
@@ -894,7 +881,6 @@ declare const nodes: <TApi, TRes>() => {
|
|
|
894
881
|
Nodle: Nodle<TApi, TRes>;
|
|
895
882
|
NeuroWeb: NeuroWeb<TApi, TRes>;
|
|
896
883
|
Pendulum: Pendulum<TApi, TRes>;
|
|
897
|
-
Polkadex: Polkadex<TApi, TRes>;
|
|
898
884
|
Zeitgeist: Zeitgeist<TApi, TRes>;
|
|
899
885
|
Collectives: Collectives<TApi, TRes>;
|
|
900
886
|
Khala: Khala<TApi, TRes>;
|
|
@@ -1042,9 +1028,10 @@ type TNodeConfigMap = Record<TNodeDotKsmWithRelayChains, TNodeConfig>;
|
|
|
1042
1028
|
interface IPolkadotApi<TApi, TRes> {
|
|
1043
1029
|
setApi(api?: TApiOrUrl<TApi>): void;
|
|
1044
1030
|
getApi(): TApi;
|
|
1031
|
+
getApiOrUrl(): TApiOrUrl<TApi> | undefined;
|
|
1045
1032
|
init(node: TNodeWithRelayChains): Promise<void>;
|
|
1046
1033
|
createApiInstance: (wsUrl: string) => Promise<TApi>;
|
|
1047
|
-
createAccountId(address: string):
|
|
1034
|
+
createAccountId(address: string): THexString$1;
|
|
1048
1035
|
callTxMethod(serializedCall: TSerializedApiCall): TRes;
|
|
1049
1036
|
calculateTransactionFee(tx: TRes, address: string): Promise<bigint>;
|
|
1050
1037
|
getBalanceNative(address: string): Promise<bigint>;
|
|
@@ -1722,4 +1709,4 @@ declare const getNodeProvider: (node: TNodeDotKsmWithRelayChains) => string;
|
|
|
1722
1709
|
*/
|
|
1723
1710
|
declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
|
|
1724
1711
|
|
|
1725
|
-
export { BatchMode, Builder,
|
|
1712
|
+
export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, type Extrinsic, 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 TPjsApi, type TPjsApiOrUrl, 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, createPolkadotJsApiCall, 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, transfer as xcmPallet };
|