@@ -6,6 +6,11 @@ import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfa
6
6
import type { BlockHash } from "@polkadot/types/interfaces/chain" ;
7
7
import type { AuthorityId } from "@polkadot/types/interfaces/consensus" ;
8
8
import type { CollationInfo } from "@polkadot/types/interfaces/cumulus" ;
9
+ import type {
10
+ CallDryRunEffects ,
11
+ XcmDryRunApiError ,
12
+ XcmDryRunEffects
13
+ } from "@polkadot/types/interfaces/dryRunApi" ;
9
14
import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics" ;
10
15
import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder" ;
11
16
import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata" ;
@@ -21,6 +26,8 @@ import type {
21
26
Header ,
22
27
Index ,
23
28
KeyTypeId ,
29
+ OriginCaller ,
30
+ RuntimeCall ,
24
31
Slot ,
25
32
SlotDuration ,
26
33
Weight ,
@@ -29,6 +36,7 @@ import type {
29
36
import type { RuntimeVersion } from "@polkadot/types/interfaces/state" ;
30
37
import type { ApplyExtrinsicResult , Key } from "@polkadot/types/interfaces/system" ;
31
38
import type { TransactionSource , TransactionValidity } from "@polkadot/types/interfaces/txqueue" ;
39
+ import type { VersionedMultiLocation , VersionedXcm } from "@polkadot/types/interfaces/xcm" ;
32
40
import type { XcmPaymentApiError } from "@polkadot/types/interfaces/xcmPaymentApi" ;
33
41
import type { Error } from "@polkadot/types/interfaces/xcmRuntimeApi" ;
34
42
import type {
@@ -246,6 +254,75 @@ declare module "@polkadot/api-base/types/calls" {
246
254
**/
247
255
[ key : string ] : DecoratedCallBase < ApiType > ;
248
256
} ;
257
+ /** 0x91b1c8b16328eb92/1 */
258
+ dryRunApi : {
259
+ /**
260
+ * Dry run call
261
+ **/
262
+ dryRunCall : AugmentedCall <
263
+ ApiType ,
264
+ (
265
+ origin :
266
+ | OriginCaller
267
+ | {
268
+ System : any ;
269
+ }
270
+ | string
271
+ | Uint8Array ,
272
+ call : RuntimeCall | IMethod | string | Uint8Array
273
+ ) => Observable < Result < CallDryRunEffects , XcmDryRunApiError > >
274
+ > ;
275
+ /**
276
+ * Dry run XCM program
277
+ **/
278
+ dryRunXcm : AugmentedCall <
279
+ ApiType ,
280
+ (
281
+ originLocation :
282
+ | VersionedMultiLocation
283
+ | {
284
+ V0 : any ;
285
+ }
286
+ | {
287
+ V1 : any ;
288
+ }
289
+ | {
290
+ V2 : any ;
291
+ }
292
+ | {
293
+ V3 : any ;
294
+ }
295
+ | {
296
+ V4 : any ;
297
+ }
298
+ | string
299
+ | Uint8Array ,
300
+ xcm :
301
+ | VersionedXcm
302
+ | {
303
+ V0 : any ;
304
+ }
305
+ | {
306
+ V1 : any ;
307
+ }
308
+ | {
309
+ V2 : any ;
310
+ }
311
+ | {
312
+ V3 : any ;
313
+ }
314
+ | {
315
+ V4 : any ;
316
+ }
317
+ | string
318
+ | Uint8Array
319
+ ) => Observable < Result < XcmDryRunEffects , XcmDryRunApiError > >
320
+ > ;
321
+ /**
322
+ * Generic call
323
+ **/
324
+ [ key : string ] : DecoratedCallBase < ApiType > ;
325
+ } ;
249
326
/** 0xb9e7717ace5b45cd/1 */
250
327
fileSystemApi : {
251
328
/**
0 commit comments