@paraspell/sdk 7.2.2 → 7.2.3
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 +1234 -856
- package/dist/index.d.ts +148 -156
- package/dist/index.mjs +1233 -855
- package/dist/papi/index.cjs +1237 -844
- package/dist/papi/index.d.ts +120 -124
- package/dist/papi/index.mjs +1236 -842
- package/package.json +1 -1
package/dist/papi/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface IPolkadotApi<TApi, TRes> {
|
|
|
13
13
|
init(node: TNodeWithRelayChains): Promise<void>;
|
|
14
14
|
createApiInstance: (wsUrl: string) => Promise<TApi>;
|
|
15
15
|
createAccountId(address: string): HexString$1;
|
|
16
|
-
callTxMethod(serializedCall:
|
|
16
|
+
callTxMethod(serializedCall: TSerializedApiCall): TRes;
|
|
17
17
|
calculateTransactionFee(tx: TRes, address: string): Promise<bigint>;
|
|
18
18
|
getBalanceNative(address: string): Promise<bigint>;
|
|
19
19
|
getBalanceForeignPolkadotXcm(address: string, id?: string): Promise<bigint>;
|
|
@@ -44,8 +44,8 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
44
44
|
get version(): Version;
|
|
45
45
|
get assetCheckEnabled(): boolean;
|
|
46
46
|
protected canUseXTokens(_: TSendInternalOptions<TApi, TRes>): boolean;
|
|
47
|
-
transfer(options: TSendInternalOptions<TApi, TRes>): Promise<
|
|
48
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
47
|
+
transfer(options: TSendInternalOptions<TApi, TRes>): Promise<TRes>;
|
|
48
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
49
49
|
getProvider(): string;
|
|
50
50
|
createApiInstance(api: IPolkadotApi<TApi, TRes>): Promise<TApi>;
|
|
51
51
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
@@ -55,19 +55,19 @@ declare abstract class ParachainNode<TApi, TRes> {
|
|
|
55
55
|
|
|
56
56
|
declare class Acala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
57
57
|
constructor();
|
|
58
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
58
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
59
59
|
getProvider(): string;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
declare class Unique<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
63
63
|
constructor();
|
|
64
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
64
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
declare class Crust<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
68
68
|
constructor();
|
|
69
69
|
private getCurrencySelection;
|
|
70
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
70
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
@@ -115,8 +115,8 @@ declare class BifrostPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> impl
|
|
|
115
115
|
VSToken2?: undefined;
|
|
116
116
|
VToken2?: undefined;
|
|
117
117
|
};
|
|
118
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
119
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
118
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
119
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
120
120
|
protected canUseXTokens({ asset, destination }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
121
121
|
getProvider(): string;
|
|
122
122
|
}
|
|
@@ -128,209 +128,209 @@ declare class Bitgreen<TApi, TRes> extends ParachainNode<TApi, TRes> {
|
|
|
128
128
|
declare class Centrifuge<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
129
129
|
constructor();
|
|
130
130
|
private getCurrencySelection;
|
|
131
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
131
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
declare class ComposableFinance<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
135
135
|
constructor();
|
|
136
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
136
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
declare class Hydration<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer, IPolkadotXCMTransfer {
|
|
140
140
|
private static NATIVE_ASSET_ID;
|
|
141
141
|
constructor();
|
|
142
|
-
transferToEthereum<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
143
|
-
transferToAssetHub<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>):
|
|
144
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
145
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
142
|
+
transferToEthereum<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
143
|
+
transferToAssetHub<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TRes;
|
|
144
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
145
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
146
146
|
protected canUseXTokens({ destination, asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
147
147
|
getProvider(): string;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
declare class Interlay<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
151
151
|
constructor();
|
|
152
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
152
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
declare class Litentry<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
156
156
|
constructor();
|
|
157
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
157
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
declare class Moonbeam<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
160
|
+
declare class Moonbeam<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
161
161
|
constructor();
|
|
162
|
-
private
|
|
163
|
-
|
|
164
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
162
|
+
private getJunctions;
|
|
163
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
164
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
165
165
|
getProvider(): string;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
declare class Parallel<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
169
169
|
constructor();
|
|
170
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
170
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
declare class Altair<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
174
174
|
constructor();
|
|
175
175
|
private getCurrencySelection;
|
|
176
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
176
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
declare class Amplitude<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
180
180
|
constructor();
|
|
181
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
181
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
declare class Bajun<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
185
185
|
constructor();
|
|
186
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
187
|
-
transferRelayToPara():
|
|
186
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
187
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
declare class Basilisk<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
191
191
|
constructor();
|
|
192
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
192
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
193
193
|
getProvider(): string;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
declare class BifrostKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
197
197
|
constructor();
|
|
198
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
198
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
199
199
|
getProvider(): string;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
declare class Pioneer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
203
203
|
constructor();
|
|
204
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
204
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
declare class Turing<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
208
208
|
constructor();
|
|
209
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
209
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
declare class Picasso<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
213
213
|
constructor();
|
|
214
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
214
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
declare class ParallelHeiko<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
218
218
|
constructor();
|
|
219
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
219
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
declare class Moonriver<TApi, TRes> extends ParachainNode<TApi, TRes> implements
|
|
222
|
+
declare class Moonriver<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
223
223
|
constructor();
|
|
224
|
-
private
|
|
225
|
-
|
|
226
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
224
|
+
private getJunctions;
|
|
225
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
226
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
227
227
|
getProvider(): string;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
declare class Kintsugi<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
231
231
|
constructor();
|
|
232
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
232
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
declare class Calamari<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
236
236
|
constructor();
|
|
237
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
237
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
declare class CrustShadow<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
241
241
|
constructor();
|
|
242
242
|
private getCurrencySelection;
|
|
243
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
243
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
declare class Imbue<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
247
247
|
constructor();
|
|
248
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
248
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
declare class Integritee<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
252
252
|
constructor();
|
|
253
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
254
|
-
transferRelayToPara():
|
|
253
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
254
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
declare class InvArchTinker<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
258
258
|
constructor();
|
|
259
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
259
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
declare class Karura<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
263
263
|
constructor();
|
|
264
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
264
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
265
265
|
getProvider(): string;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
declare class AssetHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
269
269
|
constructor();
|
|
270
|
-
handleBridgeTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'):
|
|
271
|
-
handleEthBridgeTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>):
|
|
272
|
-
handleMythosTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>):
|
|
273
|
-
handleBifrostEthTransfer: <TApi_1, TRes_1>(input: PolkadotXCMTransferInput<TApi_1, TRes_1>) =>
|
|
270
|
+
handleBridgeTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>, targetChain: 'Polkadot' | 'Kusama'): TRes;
|
|
271
|
+
handleEthBridgeTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TRes;
|
|
272
|
+
handleMythosTransfer<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): TRes;
|
|
273
|
+
handleBifrostEthTransfer: <TApi_1, TRes_1>(input: PolkadotXCMTransferInput<TApi_1, TRes_1>) => TRes_1;
|
|
274
274
|
patchInput<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): PolkadotXCMTransferInput<TApi, TRes>;
|
|
275
275
|
private getSection;
|
|
276
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
277
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
276
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
277
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
278
278
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
declare class AssetHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
282
282
|
constructor();
|
|
283
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
284
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
283
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
284
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
285
285
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset, overridedMultiLocation?: TMultiLocation | TMultiAsset[]): TCurrencySelectionHeaderArr;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
declare class CoretimeKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
289
289
|
constructor();
|
|
290
290
|
_assetCheckEnabled: boolean;
|
|
291
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
292
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
291
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
292
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
declare class CoretimePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
296
296
|
constructor();
|
|
297
297
|
_assetCheckEnabled: boolean;
|
|
298
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
299
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
298
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
299
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
declare class Encointer<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
303
303
|
constructor();
|
|
304
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
305
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
304
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
305
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
declare class RobonomicsKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
309
309
|
constructor();
|
|
310
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
310
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
declare class RobonomicsPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
314
314
|
constructor();
|
|
315
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
315
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
declare class PeoplePolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
319
319
|
constructor();
|
|
320
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
321
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
320
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
321
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
declare class PeopleKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
325
325
|
constructor();
|
|
326
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
327
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
326
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
327
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
declare class Astar<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
331
331
|
constructor();
|
|
332
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
333
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
332
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
333
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
334
334
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
335
335
|
}
|
|
336
336
|
|
|
@@ -469,6 +469,7 @@ type TAsset = TNativeAsset | TForeignAsset;
|
|
|
469
469
|
type TNodeAssets = {
|
|
470
470
|
relayChainAssetSymbol: TRelayChainSymbol;
|
|
471
471
|
nativeAssetSymbol: string;
|
|
472
|
+
isEVM: boolean;
|
|
472
473
|
nativeAssets: TNativeAsset[];
|
|
473
474
|
otherAssets: TForeignAsset[];
|
|
474
475
|
};
|
|
@@ -488,7 +489,6 @@ type PolkadotXCMTransferInput<TApi, TRes> = {
|
|
|
488
489
|
paraIdTo?: number;
|
|
489
490
|
feeAsset?: TCurrency;
|
|
490
491
|
overridedCurrency?: TMultiLocation | TMultiAsset[];
|
|
491
|
-
serializedApiCallEnabled?: boolean;
|
|
492
492
|
version?: Version;
|
|
493
493
|
ahAddress?: string;
|
|
494
494
|
};
|
|
@@ -504,7 +504,6 @@ type XTokensTransferInput<TApi, TRes> = {
|
|
|
504
504
|
paraIdTo?: number;
|
|
505
505
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
506
506
|
feeAsset?: TCurrency;
|
|
507
|
-
serializedApiCallEnabled?: boolean;
|
|
508
507
|
};
|
|
509
508
|
type XTransferTransferInput<TApi, TRes> = {
|
|
510
509
|
api: IPolkadotApi<TApi, TRes>;
|
|
@@ -515,16 +514,15 @@ type XTransferTransferInput<TApi, TRes> = {
|
|
|
515
514
|
paraId?: number;
|
|
516
515
|
destination?: TDestination;
|
|
517
516
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
518
|
-
serializedApiCallEnabled?: boolean;
|
|
519
517
|
};
|
|
520
518
|
type IPolkadotXCMTransfer = {
|
|
521
|
-
transferPolkadotXCM: <TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>) => Promise<
|
|
519
|
+
transferPolkadotXCM: <TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>) => Promise<TRes>;
|
|
522
520
|
};
|
|
523
521
|
type IXTokensTransfer = {
|
|
524
|
-
transferXTokens: <TApi, TRes>(input: XTokensTransferInput<TApi, TRes>) =>
|
|
522
|
+
transferXTokens: <TApi, TRes>(input: XTokensTransferInput<TApi, TRes>) => TRes;
|
|
525
523
|
};
|
|
526
524
|
type IXTransferTransfer = {
|
|
527
|
-
transferXTransfer: <TApi, TRes>(input: XTransferTransferInput<TApi, TRes>) =>
|
|
525
|
+
transferXTransfer: <TApi, TRes>(input: XTransferTransferInput<TApi, TRes>) => TRes;
|
|
528
526
|
};
|
|
529
527
|
type TScenario = 'ParaToRelay' | 'ParaToPara' | 'RelayToPara';
|
|
530
528
|
/**
|
|
@@ -601,7 +599,6 @@ type TSendInternalOptions<TApi, TRes> = TSendBaseOptions<TApi, TRes> & {
|
|
|
601
599
|
asset: TAsset;
|
|
602
600
|
amount: string;
|
|
603
601
|
overridedCurrencyMultiLocation?: TMultiLocation | TMultiAsset[];
|
|
604
|
-
serializedApiCallEnabled?: boolean;
|
|
605
602
|
};
|
|
606
603
|
type TRelayToParaBaseOptions<TApi, TRes> = {
|
|
607
604
|
/**
|
|
@@ -633,13 +630,7 @@ type TRelayToParaBaseOptions<TApi, TRes> = {
|
|
|
633
630
|
* Options for transferring from a relay chain to a parachain
|
|
634
631
|
*/
|
|
635
632
|
type TRelayToParaOptions<TApi, TRes> = WithApi<TRelayToParaBaseOptions<TApi, TRes>, TApi, TRes>;
|
|
636
|
-
type TTransferReturn<TRes> = TRes | TSerializedApiCall;
|
|
637
633
|
type TSerializedApiCall = {
|
|
638
|
-
module: string;
|
|
639
|
-
section: string;
|
|
640
|
-
parameters: unknown[];
|
|
641
|
-
};
|
|
642
|
-
type TSerializedApiCallV2 = {
|
|
643
634
|
module: TPallet | 'Utility';
|
|
644
635
|
section: string;
|
|
645
636
|
parameters: Record<string, unknown>;
|
|
@@ -736,132 +727,132 @@ type TMultiLocationHeader = {
|
|
|
736
727
|
declare class Darwinia<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
737
728
|
constructor();
|
|
738
729
|
private getCurrencySelection;
|
|
739
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
740
|
-
transferRelayToPara():
|
|
730
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
731
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
741
732
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, _asset?: TAsset, overridedMultiLocation?: TMultiLocation): TCurrencySelectionHeaderArr;
|
|
742
733
|
getProvider(): string;
|
|
743
734
|
}
|
|
744
735
|
|
|
745
736
|
declare class Crab<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
746
737
|
constructor();
|
|
747
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
748
|
-
transferRelayToPara():
|
|
738
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
739
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
749
740
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
|
|
750
741
|
}
|
|
751
742
|
|
|
752
743
|
declare class Quartz<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
753
744
|
constructor();
|
|
754
745
|
_assetCheckEnabled: boolean;
|
|
755
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
746
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
756
747
|
}
|
|
757
748
|
|
|
758
749
|
declare class Shiden<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer, IXTokensTransfer {
|
|
759
750
|
constructor();
|
|
760
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
761
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
751
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
752
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
762
753
|
protected canUseXTokens({ asset }: TSendInternalOptions<TApi, TRes>): boolean;
|
|
763
754
|
}
|
|
764
755
|
|
|
765
756
|
declare class Manta<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
766
757
|
constructor();
|
|
767
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
758
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
768
759
|
}
|
|
769
760
|
|
|
770
761
|
declare class Nodle<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
771
762
|
constructor();
|
|
772
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
773
|
-
transferRelayToPara():
|
|
763
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
764
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
774
765
|
}
|
|
775
766
|
|
|
776
767
|
declare class NeuroWeb<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
777
768
|
constructor();
|
|
778
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
769
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
779
770
|
}
|
|
780
771
|
|
|
781
772
|
declare class Pendulum<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
782
773
|
constructor();
|
|
783
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
784
|
-
transferRelayToPara():
|
|
774
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
775
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
785
776
|
}
|
|
786
777
|
|
|
787
778
|
declare class Polkadex<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
788
779
|
constructor();
|
|
789
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
780
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
790
781
|
getProvider(): string;
|
|
791
782
|
}
|
|
792
783
|
|
|
793
784
|
declare class Zeitgeist<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
794
785
|
constructor();
|
|
795
786
|
private getCurrencySelection;
|
|
796
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
787
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
797
788
|
}
|
|
798
789
|
|
|
799
790
|
declare class Collectives<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
800
791
|
constructor();
|
|
801
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
802
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
792
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
793
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
803
794
|
createCurrencySpec(amount: string, scenario: TScenario, version: Version, asset?: TAsset): TCurrencySelectionHeaderArr;
|
|
804
795
|
}
|
|
805
796
|
|
|
806
797
|
declare class Khala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
807
798
|
constructor();
|
|
808
|
-
transferXTransfer<TApi, TRes>(input: XTransferTransferInput<TApi, TRes>):
|
|
799
|
+
transferXTransfer<TApi, TRes>(input: XTransferTransferInput<TApi, TRes>): TRes;
|
|
809
800
|
}
|
|
810
801
|
|
|
811
802
|
declare class Phala<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTransferTransfer {
|
|
812
803
|
constructor();
|
|
813
|
-
transferXTransfer<TApi, TRes>(input: XTransferTransferInput<TApi, TRes>):
|
|
804
|
+
transferXTransfer<TApi, TRes>(input: XTransferTransferInput<TApi, TRes>): TRes;
|
|
814
805
|
}
|
|
815
806
|
|
|
816
807
|
declare class Subsocial<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
817
808
|
constructor();
|
|
818
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
809
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
819
810
|
}
|
|
820
811
|
|
|
821
812
|
declare class KiltSpiritnet<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
822
813
|
constructor();
|
|
823
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
824
|
-
transferRelayToPara():
|
|
814
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
815
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
825
816
|
getProvider(): string;
|
|
826
817
|
}
|
|
827
818
|
|
|
828
819
|
declare class Curio<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
829
820
|
constructor();
|
|
830
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
821
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
831
822
|
}
|
|
832
823
|
|
|
833
824
|
declare class BridgeHubPolkadot<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
834
825
|
constructor();
|
|
835
826
|
_assetCheckEnabled: boolean;
|
|
836
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
837
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
827
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
828
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
838
829
|
}
|
|
839
830
|
|
|
840
831
|
declare class BridgeHubKusama<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
841
832
|
constructor();
|
|
842
833
|
_assetCheckEnabled: boolean;
|
|
843
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
844
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
834
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
835
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
845
836
|
}
|
|
846
837
|
|
|
847
838
|
declare class Mythos<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
848
839
|
constructor();
|
|
849
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
850
|
-
transferRelayToPara():
|
|
840
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
841
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
851
842
|
}
|
|
852
843
|
|
|
853
844
|
declare class Peaq<TApi, TRes> extends ParachainNode<TApi, TRes> implements IXTokensTransfer {
|
|
854
845
|
constructor();
|
|
855
|
-
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>):
|
|
856
|
-
transferRelayToPara():
|
|
846
|
+
transferXTokens<TApi, TRes>(input: XTokensTransferInput<TApi, TRes>): TRes;
|
|
847
|
+
transferRelayToPara(): TSerializedApiCall;
|
|
857
848
|
getProvider(): string;
|
|
858
849
|
}
|
|
859
850
|
|
|
860
851
|
declare class Polimec<TApi, TRes> extends ParachainNode<TApi, TRes> implements IPolkadotXCMTransfer {
|
|
861
852
|
constructor();
|
|
862
853
|
private getAssetMultiLocation;
|
|
863
|
-
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<
|
|
864
|
-
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>):
|
|
854
|
+
transferPolkadotXCM<TApi, TRes>(input: PolkadotXCMTransferInput<TApi, TRes>): Promise<TRes>;
|
|
855
|
+
transferRelayToPara(options: TRelayToParaOptions<TApi, TRes>): TSerializedApiCall;
|
|
865
856
|
getProvider(): string;
|
|
866
857
|
}
|
|
867
858
|
|
|
@@ -1076,22 +1067,16 @@ type TNodeConfig = {
|
|
|
1076
1067
|
};
|
|
1077
1068
|
type TNodeConfigMap = Record<TNodeDotKsmWithRelayChains, TNodeConfig>;
|
|
1078
1069
|
|
|
1079
|
-
declare const sendSerializedApiCall: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
|
|
1080
1070
|
declare const send: <TApi, TRes>(options: TSendOptions<TApi, TRes>) => Promise<TRes>;
|
|
1081
|
-
declare const transferRelayToParaCommon: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>, serializedApiCallEnabled?: boolean) => Promise<TTransferReturn<TRes>>;
|
|
1082
1071
|
declare const transferRelayToPara: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TRes>;
|
|
1083
|
-
declare const transferRelayToParaSerializedApiCall: <TApi, TRes>(options: TRelayToParaOptions<TApi, TRes>) => Promise<TSerializedApiCall>;
|
|
1084
1072
|
|
|
1085
1073
|
declare const buildEthTransferOptions: ({ currency, to, address, destAddress, amount }: TSerializeEthTransferOptions) => Promise<TSerializedEthTransfer>;
|
|
1086
1074
|
|
|
1087
1075
|
declare const index_buildEthTransferOptions: typeof buildEthTransferOptions;
|
|
1088
1076
|
declare const index_send: typeof send;
|
|
1089
|
-
declare const index_sendSerializedApiCall: typeof sendSerializedApiCall;
|
|
1090
1077
|
declare const index_transferRelayToPara: typeof transferRelayToPara;
|
|
1091
|
-
declare const index_transferRelayToParaCommon: typeof transferRelayToParaCommon;
|
|
1092
|
-
declare const index_transferRelayToParaSerializedApiCall: typeof transferRelayToParaSerializedApiCall;
|
|
1093
1078
|
declare namespace index {
|
|
1094
|
-
export { index_buildEthTransferOptions as buildEthTransferOptions, index_send as send,
|
|
1079
|
+
export { index_buildEthTransferOptions as buildEthTransferOptions, index_send as send, index_transferRelayToPara as transferRelayToPara };
|
|
1095
1080
|
}
|
|
1096
1081
|
|
|
1097
1082
|
type TAssetClaimOptionsBase = {
|
|
@@ -1099,7 +1084,6 @@ type TAssetClaimOptionsBase = {
|
|
|
1099
1084
|
multiAssets: TMultiAsset[];
|
|
1100
1085
|
address: TAddress;
|
|
1101
1086
|
version?: TVersionClaimAssets;
|
|
1102
|
-
serializedApiCallEnabled?: boolean;
|
|
1103
1087
|
};
|
|
1104
1088
|
|
|
1105
1089
|
type TPapiApi = PolkadotClient;
|
|
@@ -1188,6 +1172,7 @@ type TGetOriginFeeDetailsOptionsBase = {
|
|
|
1188
1172
|
* @returns The assets object associated with the given node.
|
|
1189
1173
|
*/
|
|
1190
1174
|
declare const getAssetsObject: (node: TNodeWithRelayChains) => TNodeAssets;
|
|
1175
|
+
declare const isNodeEvm: (node: TNodeWithRelayChains) => boolean;
|
|
1191
1176
|
/**
|
|
1192
1177
|
* Retrieves the asset ID for a given symbol on a specified node.
|
|
1193
1178
|
*
|
|
@@ -1324,7 +1309,7 @@ declare const getAssetBalance: (options: TGetAssetBalanceOptionsBase & {
|
|
|
1324
1309
|
*/
|
|
1325
1310
|
declare const claimAssets: (options: TAssetClaimOptionsBase & {
|
|
1326
1311
|
api?: TPapiApiOrUrl;
|
|
1327
|
-
}) => Promise<
|
|
1312
|
+
}) => Promise<TPapiTransaction>;
|
|
1328
1313
|
declare const getOriginFeeDetails: (options: TGetOriginFeeDetailsOptionsBase & {
|
|
1329
1314
|
api?: TPapiApiOrUrl;
|
|
1330
1315
|
}) => Promise<TOriginFeeDetails>;
|
|
@@ -1352,8 +1337,9 @@ declare const assets_getSupportedAssets: typeof getSupportedAssets;
|
|
|
1352
1337
|
declare const assets_getTNode: typeof getTNode;
|
|
1353
1338
|
declare const assets_getTransferInfo: typeof getTransferInfo;
|
|
1354
1339
|
declare const assets_hasSupportForAsset: typeof hasSupportForAsset;
|
|
1340
|
+
declare const assets_isNodeEvm: typeof isNodeEvm;
|
|
1355
1341
|
declare namespace assets {
|
|
1356
|
-
export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_hasSupportForAsset as hasSupportForAsset };
|
|
1342
|
+
export { assets_Foreign as Foreign, assets_ForeignAbstract as ForeignAbstract, assets_Native as Native, assets_Override as Override, assets_claimAssets as claimAssets, assets_getAllAssetsSymbols as getAllAssetsSymbols, assets_getAssetBalance as getAssetBalance, assets_getAssetDecimals as getAssetDecimals, assets_getAssetId as getAssetId, assets_getAssets as getAssets, assets_getAssetsObject as getAssetsObject, assets_getBalanceForeign as getBalanceForeign, assets_getBalanceNative as getBalanceNative, assets_getExistentialDeposit as getExistentialDeposit, assets_getNativeAssetSymbol as getNativeAssetSymbol, assets_getNativeAssets as getNativeAssets, assets_getOriginFeeDetails as getOriginFeeDetails, assets_getOtherAssets as getOtherAssets, assets_getRelayChainSymbol as getRelayChainSymbol, assets_getSupportedAssets as getSupportedAssets, assets_getTNode as getTNode, assets_getTransferInfo as getTransferInfo, assets_hasSupportForAsset as hasSupportForAsset, assets_isNodeEvm as isNodeEvm };
|
|
1357
1343
|
}
|
|
1358
1344
|
|
|
1359
1345
|
/**
|
|
@@ -1478,13 +1464,11 @@ declare class GeneralBuilder$1<TApi, TRes> {
|
|
|
1478
1464
|
}
|
|
1479
1465
|
interface FinalBuilder<TRes> {
|
|
1480
1466
|
build: () => Promise<TRes>;
|
|
1481
|
-
buildSerializedApiCall: () => Promise<TSerializedApiCall>;
|
|
1482
1467
|
}
|
|
1483
1468
|
interface UseKeepAliveFinalBuilder$1<TApi, TRes> extends IAddToBatchBuilder<TApi, TRes> {
|
|
1484
1469
|
useKeepAlive: (destApi: TApi) => this;
|
|
1485
1470
|
xcmVersion: (version: Version) => this;
|
|
1486
1471
|
build: () => Promise<TRes>;
|
|
1487
|
-
buildSerializedApiCall: () => Promise<TSerializedApiCall>;
|
|
1488
1472
|
}
|
|
1489
1473
|
interface AddressBuilder<TApi, TRes> {
|
|
1490
1474
|
address: (address: TAddress, ahAddress?: string) => UseKeepAliveFinalBuilder$1<TApi, TRes>;
|
|
@@ -1693,6 +1677,18 @@ declare class DuplicateAssetIdError extends Error {
|
|
|
1693
1677
|
constructor(id: string);
|
|
1694
1678
|
}
|
|
1695
1679
|
|
|
1680
|
+
/**
|
|
1681
|
+
* Error thrown when an invalid address is provided.
|
|
1682
|
+
*/
|
|
1683
|
+
declare class InvalidAddressError extends Error {
|
|
1684
|
+
/**
|
|
1685
|
+
* Constructs a new InvalidAddressError.
|
|
1686
|
+
*
|
|
1687
|
+
* @param message - The error message.
|
|
1688
|
+
*/
|
|
1689
|
+
constructor(message: string);
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1696
1692
|
declare const getNodeConfig: (node: TNodeDotKsmWithRelayChains) => TNodeConfig;
|
|
1697
1693
|
|
|
1698
1694
|
declare const getNodeProviders: (node: TNodeDotKsmWithRelayChains) => string[];
|
|
@@ -1707,4 +1703,4 @@ declare const getNodeProvider: (node: TNodeDotKsmWithRelayChains) => string;
|
|
|
1707
1703
|
*/
|
|
1708
1704
|
declare const getParaId: (node: TNodeDotKsmWithRelayChains) => number;
|
|
1709
1705
|
|
|
1710
|
-
export { BatchMode, Builder, type CheckKeepAliveOptions, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, type HexString$1 as HexString, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidCurrencyError, type JunctionParachain, type JunctionType, type Junctions, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, type PolkadotXCMTransferInput, type PolkadotXcmSection, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, 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 TJunction, 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 TProviderEntry, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaDestination, type TRelayToParaOptions, type TReserveAsset, type TScenario, type TSelfReserveAsset, type TSendBaseOptions, type TSendInternalOptions, type TSendOptions, type TSerializeEthTransferOptions, type TSerializedApiCall, type
|
|
1706
|
+
export { BatchMode, Builder, type CheckKeepAliveOptions, DuplicateAssetError, DuplicateAssetIdError, EvmBuilder, Foreign, ForeignAbstract, GeneralBuilder, type HexString$1 as HexString, type IPolkadotXCMTransfer, type IXTokensTransfer, type IXTransferTransfer, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, type JunctionParachain, type JunctionType, type Junctions, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, type PolkadotXCMTransferInput, type PolkadotXcmSection, SUPPORTED_PALLETS, ScenarioNotSupportedError, type TAddress, type TAmount, type TAsset, type TAssetJsonMap, type TBatchOptions, type TBifrostToken, 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 TJunction, 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 TProviderEntry, type TRelayChainSymbol, type TRelayChainType, type TRelayToParaDestination, type TRelayToParaOptions, 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 TXcmAsset, type TXcmForeignAsset, type TZeitgeistAsset, type UseKeepAliveFinalBuilder, Version, type XTokensSection, type XTokensTransferInput, type XTransferSection, type XTransferTransferInput, 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 };
|