@dedot/chaintypes 0.106.0 → 0.108.0
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/basilisk/index.d.ts +1 -1
- package/package.json +2 -2
- package/polkadot/consts.d.ts +5 -2
- package/polkadot/errors.d.ts +5 -46
- package/polkadot/events.d.ts +60 -40
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +55 -30
- package/polkadot/runtime.d.ts +39 -19
- package/polkadot/tx.d.ts +66 -70
- package/polkadot/types.d.ts +457 -379
- package/polkadot-asset-hub/events.d.ts +37 -40
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +3 -3
- package/polkadot-asset-hub/runtime.d.ts +8 -5
- package/polkadot-asset-hub/tx.d.ts +5 -4
- package/polkadot-asset-hub/types.d.ts +354 -288
- package/polkadot-people/consts.d.ts +37 -0
- package/polkadot-people/errors.d.ts +35 -0
- package/polkadot-people/events.d.ts +207 -31
- package/polkadot-people/index.d.ts +1 -1
- package/polkadot-people/query.d.ts +71 -23
- package/polkadot-people/runtime.d.ts +8 -5
- package/polkadot-people/tx.d.ts +178 -14
- package/polkadot-people/types.d.ts +713 -350
- package/westend-asset-hub/index.d.ts +1 -1
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
import type {
|
|
4
4
|
Phase,
|
|
5
5
|
H256,
|
|
6
|
-
DispatchInfo,
|
|
7
6
|
DispatchError,
|
|
8
7
|
AccountId32,
|
|
9
8
|
FixedBytes,
|
|
10
|
-
FixedArray,
|
|
11
9
|
Bytes,
|
|
10
|
+
FixedArray,
|
|
12
11
|
Result,
|
|
13
12
|
BytesLike,
|
|
14
13
|
MultiAddress,
|
|
@@ -50,6 +49,7 @@ export type FrameSystemEventRecord = { phase: Phase; event: PeoplePolkadotRuntim
|
|
|
50
49
|
export type PeoplePolkadotRuntimeRuntimeEvent =
|
|
51
50
|
| { pallet: 'System'; palletEvent: FrameSystemEvent }
|
|
52
51
|
| { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent }
|
|
52
|
+
| { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
|
|
53
53
|
| { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
|
|
54
54
|
| { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
|
|
55
55
|
| { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
|
|
@@ -70,11 +70,11 @@ export type FrameSystemEvent =
|
|
|
70
70
|
/**
|
|
71
71
|
* An extrinsic completed successfully.
|
|
72
72
|
**/
|
|
73
|
-
| { name: 'ExtrinsicSuccess'; data: { dispatchInfo:
|
|
73
|
+
| { name: 'ExtrinsicSuccess'; data: { dispatchInfo: FrameSystemDispatchEventInfo } }
|
|
74
74
|
/**
|
|
75
75
|
* An extrinsic failed.
|
|
76
76
|
**/
|
|
77
|
-
| { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo:
|
|
77
|
+
| { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo } }
|
|
78
78
|
/**
|
|
79
79
|
* `:code` was updated.
|
|
80
80
|
**/
|
|
@@ -96,10 +96,32 @@ export type FrameSystemEvent =
|
|
|
96
96
|
**/
|
|
97
97
|
| { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } };
|
|
98
98
|
|
|
99
|
+
export type FrameSystemDispatchEventInfo = {
|
|
100
|
+
weight: SpWeightsWeightV2Weight;
|
|
101
|
+
class: FrameSupportDispatchDispatchClass;
|
|
102
|
+
paysFee: FrameSupportDispatchPays;
|
|
103
|
+
};
|
|
104
|
+
|
|
99
105
|
export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory';
|
|
100
106
|
|
|
101
107
|
export type FrameSupportDispatchPays = 'Yes' | 'No';
|
|
102
108
|
|
|
109
|
+
export type SpRuntimeProvingTrieTrieError =
|
|
110
|
+
| 'InvalidStateRoot'
|
|
111
|
+
| 'IncompleteDatabase'
|
|
112
|
+
| 'ValueAtIncompleteKey'
|
|
113
|
+
| 'DecoderError'
|
|
114
|
+
| 'InvalidHash'
|
|
115
|
+
| 'DuplicateKey'
|
|
116
|
+
| 'ExtraneousNode'
|
|
117
|
+
| 'ExtraneousValue'
|
|
118
|
+
| 'ExtraneousHashReference'
|
|
119
|
+
| 'InvalidChildReference'
|
|
120
|
+
| 'ValueMismatch'
|
|
121
|
+
| 'IncompleteProof'
|
|
122
|
+
| 'RootMismatch'
|
|
123
|
+
| 'DecodeError';
|
|
124
|
+
|
|
103
125
|
/**
|
|
104
126
|
* The `Event` enum of this pallet
|
|
105
127
|
**/
|
|
@@ -129,6 +151,117 @@ export type CumulusPalletParachainSystemEvent =
|
|
|
129
151
|
**/
|
|
130
152
|
| { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } };
|
|
131
153
|
|
|
154
|
+
/**
|
|
155
|
+
* The `Event` enum of this pallet
|
|
156
|
+
**/
|
|
157
|
+
export type PalletMigrationsEvent =
|
|
158
|
+
/**
|
|
159
|
+
* A Runtime upgrade started.
|
|
160
|
+
*
|
|
161
|
+
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
|
162
|
+
**/
|
|
163
|
+
| {
|
|
164
|
+
name: 'UpgradeStarted';
|
|
165
|
+
data: {
|
|
166
|
+
/**
|
|
167
|
+
* The number of migrations that this upgrade contains.
|
|
168
|
+
*
|
|
169
|
+
* This can be used to design a progress indicator in combination with counting the
|
|
170
|
+
* `MigrationCompleted` and `MigrationSkipped` events.
|
|
171
|
+
**/
|
|
172
|
+
migrations: number;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The current runtime upgrade completed.
|
|
177
|
+
*
|
|
178
|
+
* This implies that all of its migrations completed successfully as well.
|
|
179
|
+
**/
|
|
180
|
+
| { name: 'UpgradeCompleted' }
|
|
181
|
+
/**
|
|
182
|
+
* Runtime upgrade failed.
|
|
183
|
+
*
|
|
184
|
+
* This is very bad and will require governance intervention.
|
|
185
|
+
**/
|
|
186
|
+
| { name: 'UpgradeFailed' }
|
|
187
|
+
/**
|
|
188
|
+
* A migration was skipped since it was already executed in the past.
|
|
189
|
+
**/
|
|
190
|
+
| {
|
|
191
|
+
name: 'MigrationSkipped';
|
|
192
|
+
data: {
|
|
193
|
+
/**
|
|
194
|
+
* The index of the skipped migration within the [`Config::Migrations`] list.
|
|
195
|
+
**/
|
|
196
|
+
index: number;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* A migration progressed.
|
|
201
|
+
**/
|
|
202
|
+
| {
|
|
203
|
+
name: 'MigrationAdvanced';
|
|
204
|
+
data: {
|
|
205
|
+
/**
|
|
206
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
207
|
+
**/
|
|
208
|
+
index: number;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The number of blocks that this migration took so far.
|
|
212
|
+
**/
|
|
213
|
+
took: number;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* A Migration completed.
|
|
218
|
+
**/
|
|
219
|
+
| {
|
|
220
|
+
name: 'MigrationCompleted';
|
|
221
|
+
data: {
|
|
222
|
+
/**
|
|
223
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
224
|
+
**/
|
|
225
|
+
index: number;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The number of blocks that this migration took so far.
|
|
229
|
+
**/
|
|
230
|
+
took: number;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* A Migration failed.
|
|
235
|
+
*
|
|
236
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
237
|
+
**/
|
|
238
|
+
| {
|
|
239
|
+
name: 'MigrationFailed';
|
|
240
|
+
data: {
|
|
241
|
+
/**
|
|
242
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
243
|
+
**/
|
|
244
|
+
index: number;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* The number of blocks that this migration took so far.
|
|
248
|
+
**/
|
|
249
|
+
took: number;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* The set of historical migrations has been cleared.
|
|
254
|
+
**/
|
|
255
|
+
| {
|
|
256
|
+
name: 'HistoricCleared';
|
|
257
|
+
data: {
|
|
258
|
+
/**
|
|
259
|
+
* Should be passed to `clear_historic` in a successive call.
|
|
260
|
+
**/
|
|
261
|
+
nextCursor?: Bytes | undefined;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
|
|
132
265
|
/**
|
|
133
266
|
* The `Event` enum of this pallet
|
|
134
267
|
**/
|
|
@@ -316,16 +449,16 @@ export type PalletXcmEvent =
|
|
|
316
449
|
/**
|
|
317
450
|
* Execution of an XCM message was attempted.
|
|
318
451
|
**/
|
|
319
|
-
| { name: 'Attempted'; data: { outcome:
|
|
452
|
+
| { name: 'Attempted'; data: { outcome: StagingXcmV5TraitsOutcome } }
|
|
320
453
|
/**
|
|
321
454
|
* A XCM message was sent.
|
|
322
455
|
**/
|
|
323
456
|
| {
|
|
324
457
|
name: 'Sent';
|
|
325
458
|
data: {
|
|
326
|
-
origin:
|
|
327
|
-
destination:
|
|
328
|
-
message:
|
|
459
|
+
origin: StagingXcmV5Location;
|
|
460
|
+
destination: StagingXcmV5Location;
|
|
461
|
+
message: StagingXcmV5Xcm;
|
|
329
462
|
messageId: FixedBytes<32>;
|
|
330
463
|
};
|
|
331
464
|
}
|
|
@@ -334,12 +467,12 @@ export type PalletXcmEvent =
|
|
|
334
467
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
335
468
|
* because the query timed out.
|
|
336
469
|
**/
|
|
337
|
-
| { name: 'UnexpectedResponse'; data: { origin:
|
|
470
|
+
| { name: 'UnexpectedResponse'; data: { origin: StagingXcmV5Location; queryId: bigint } }
|
|
338
471
|
/**
|
|
339
472
|
* Query response has been received and is ready for taking with `take_response`. There is
|
|
340
473
|
* no registered notification call.
|
|
341
474
|
**/
|
|
342
|
-
| { name: 'ResponseReady'; data: { queryId: bigint; response:
|
|
475
|
+
| { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV5Response } }
|
|
343
476
|
/**
|
|
344
477
|
* Query response has been received and query is removed. The registered notification has
|
|
345
478
|
* been dispatched and executed successfully.
|
|
@@ -378,7 +511,7 @@ export type PalletXcmEvent =
|
|
|
378
511
|
**/
|
|
379
512
|
| {
|
|
380
513
|
name: 'InvalidResponder';
|
|
381
|
-
data: { origin:
|
|
514
|
+
data: { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined };
|
|
382
515
|
}
|
|
383
516
|
/**
|
|
384
517
|
* Expected query response has been received but the expected origin location placed in
|
|
@@ -389,7 +522,7 @@ export type PalletXcmEvent =
|
|
|
389
522
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
390
523
|
* needed.
|
|
391
524
|
**/
|
|
392
|
-
| { name: 'InvalidResponderVersion'; data: { origin:
|
|
525
|
+
| { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
|
|
393
526
|
/**
|
|
394
527
|
* Received query response has been read and removed.
|
|
395
528
|
**/
|
|
@@ -397,7 +530,7 @@ export type PalletXcmEvent =
|
|
|
397
530
|
/**
|
|
398
531
|
* Some assets have been placed in an asset trap.
|
|
399
532
|
**/
|
|
400
|
-
| { name: 'AssetsTrapped'; data: { hash: H256; origin:
|
|
533
|
+
| { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
|
|
401
534
|
/**
|
|
402
535
|
* An XCM version change notification message has been attempted to be sent.
|
|
403
536
|
*
|
|
@@ -406,9 +539,9 @@ export type PalletXcmEvent =
|
|
|
406
539
|
| {
|
|
407
540
|
name: 'VersionChangeNotified';
|
|
408
541
|
data: {
|
|
409
|
-
destination:
|
|
542
|
+
destination: StagingXcmV5Location;
|
|
410
543
|
result: number;
|
|
411
|
-
cost:
|
|
544
|
+
cost: StagingXcmV5AssetAssets;
|
|
412
545
|
messageId: FixedBytes<32>;
|
|
413
546
|
};
|
|
414
547
|
}
|
|
@@ -416,12 +549,12 @@ export type PalletXcmEvent =
|
|
|
416
549
|
* The supported version of a location has been changed. This might be through an
|
|
417
550
|
* automatic notification or a manual intervention.
|
|
418
551
|
**/
|
|
419
|
-
| { name: 'SupportedVersionChanged'; data: { location:
|
|
552
|
+
| { name: 'SupportedVersionChanged'; data: { location: StagingXcmV5Location; version: number } }
|
|
420
553
|
/**
|
|
421
554
|
* A given location which had a version change subscription was dropped owing to an error
|
|
422
555
|
* sending the notification to it.
|
|
423
556
|
**/
|
|
424
|
-
| { name: 'NotifyTargetSendFail'; data: { location:
|
|
557
|
+
| { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError } }
|
|
425
558
|
/**
|
|
426
559
|
* A given location which had a version change subscription was dropped owing to an error
|
|
427
560
|
* migrating the location to our new XCM format.
|
|
@@ -436,7 +569,7 @@ export type PalletXcmEvent =
|
|
|
436
569
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
437
570
|
* needed.
|
|
438
571
|
**/
|
|
439
|
-
| { name: 'InvalidQuerierVersion'; data: { origin:
|
|
572
|
+
| { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
|
|
440
573
|
/**
|
|
441
574
|
* Expected query response has been received but the querier location of the response does
|
|
442
575
|
* not match the expected. The query remains registered for a later, valid, response to
|
|
@@ -445,10 +578,10 @@ export type PalletXcmEvent =
|
|
|
445
578
|
| {
|
|
446
579
|
name: 'InvalidQuerier';
|
|
447
580
|
data: {
|
|
448
|
-
origin:
|
|
581
|
+
origin: StagingXcmV5Location;
|
|
449
582
|
queryId: bigint;
|
|
450
|
-
expectedQuerier:
|
|
451
|
-
maybeActualQuerier?:
|
|
583
|
+
expectedQuerier: StagingXcmV5Location;
|
|
584
|
+
maybeActualQuerier?: StagingXcmV5Location | undefined;
|
|
452
585
|
};
|
|
453
586
|
}
|
|
454
587
|
/**
|
|
@@ -457,14 +590,14 @@ export type PalletXcmEvent =
|
|
|
457
590
|
**/
|
|
458
591
|
| {
|
|
459
592
|
name: 'VersionNotifyStarted';
|
|
460
|
-
data: { destination:
|
|
593
|
+
data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
|
|
461
594
|
}
|
|
462
595
|
/**
|
|
463
596
|
* We have requested that a remote chain send us XCM version change notifications.
|
|
464
597
|
**/
|
|
465
598
|
| {
|
|
466
599
|
name: 'VersionNotifyRequested';
|
|
467
|
-
data: { destination:
|
|
600
|
+
data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
|
|
468
601
|
}
|
|
469
602
|
/**
|
|
470
603
|
* We have requested that a remote chain stops sending us XCM version change
|
|
@@ -472,27 +605,27 @@ export type PalletXcmEvent =
|
|
|
472
605
|
**/
|
|
473
606
|
| {
|
|
474
607
|
name: 'VersionNotifyUnrequested';
|
|
475
|
-
data: { destination:
|
|
608
|
+
data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
|
|
476
609
|
}
|
|
477
610
|
/**
|
|
478
611
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
|
479
612
|
**/
|
|
480
|
-
| { name: 'FeesPaid'; data: { paying:
|
|
613
|
+
| { name: 'FeesPaid'; data: { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets } }
|
|
481
614
|
/**
|
|
482
615
|
* Some assets have been claimed from an asset trap
|
|
483
616
|
**/
|
|
484
|
-
| { name: 'AssetsClaimed'; data: { hash: H256; origin:
|
|
617
|
+
| { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
|
|
485
618
|
/**
|
|
486
619
|
* A XCM version migration finished.
|
|
487
620
|
**/
|
|
488
621
|
| { name: 'VersionMigrationFinished'; data: { version: number } };
|
|
489
622
|
|
|
490
|
-
export type
|
|
623
|
+
export type StagingXcmV5TraitsOutcome =
|
|
491
624
|
| { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
|
|
492
|
-
| { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error:
|
|
493
|
-
| { type: 'Error'; value: { error:
|
|
625
|
+
| { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV5TraitsError } }
|
|
626
|
+
| { type: 'Error'; value: { error: XcmV5TraitsError } };
|
|
494
627
|
|
|
495
|
-
export type
|
|
628
|
+
export type XcmV5TraitsError =
|
|
496
629
|
| { type: 'Overflow' }
|
|
497
630
|
| { type: 'Unimplemented' }
|
|
498
631
|
| { type: 'UntrustedReserveLocation' }
|
|
@@ -528,45 +661,43 @@ export type XcmV3TraitsError =
|
|
|
528
661
|
| { type: 'NoPermission' }
|
|
529
662
|
| { type: 'Unanchored' }
|
|
530
663
|
| { type: 'NotDepositable' }
|
|
664
|
+
| { type: 'TooManyAssets' }
|
|
531
665
|
| { type: 'UnhandledXcmVersion' }
|
|
532
666
|
| { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
|
|
533
667
|
| { type: 'Barrier' }
|
|
534
668
|
| { type: 'WeightNotComputable' }
|
|
535
669
|
| { type: 'ExceedsStackLimit' };
|
|
536
670
|
|
|
537
|
-
export type
|
|
671
|
+
export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
|
|
538
672
|
|
|
539
|
-
export type
|
|
673
|
+
export type StagingXcmV5Junctions =
|
|
540
674
|
| { type: 'Here' }
|
|
541
|
-
| { type: 'X1'; value: FixedArray<
|
|
542
|
-
| { type: 'X2'; value: FixedArray<
|
|
543
|
-
| { type: 'X3'; value: FixedArray<
|
|
544
|
-
| { type: 'X4'; value: FixedArray<
|
|
545
|
-
| { type: 'X5'; value: FixedArray<
|
|
546
|
-
| { type: 'X6'; value: FixedArray<
|
|
547
|
-
| { type: 'X7'; value: FixedArray<
|
|
548
|
-
| { type: 'X8'; value: FixedArray<
|
|
549
|
-
|
|
550
|
-
export type
|
|
675
|
+
| { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
|
|
676
|
+
| { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
|
|
677
|
+
| { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
|
|
678
|
+
| { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
|
|
679
|
+
| { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
|
|
680
|
+
| { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
|
|
681
|
+
| { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
|
|
682
|
+
| { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
|
|
683
|
+
|
|
684
|
+
export type StagingXcmV5Junction =
|
|
551
685
|
| { type: 'Parachain'; value: number }
|
|
552
|
-
| { type: 'AccountId32'; value: { network?:
|
|
553
|
-
| { type: 'AccountIndex64'; value: { network?:
|
|
554
|
-
| { type: 'AccountKey20'; value: { network?:
|
|
686
|
+
| { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
|
|
687
|
+
| { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
|
|
688
|
+
| { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
|
|
555
689
|
| { type: 'PalletInstance'; value: number }
|
|
556
690
|
| { type: 'GeneralIndex'; value: bigint }
|
|
557
691
|
| { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
|
|
558
692
|
| { type: 'OnlyChild' }
|
|
559
693
|
| { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
|
|
560
|
-
| { type: 'GlobalConsensus'; value:
|
|
694
|
+
| { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
|
|
561
695
|
|
|
562
|
-
export type
|
|
696
|
+
export type StagingXcmV5JunctionNetworkId =
|
|
563
697
|
| { type: 'ByGenesis'; value: FixedBytes<32> }
|
|
564
698
|
| { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
|
|
565
699
|
| { type: 'Polkadot' }
|
|
566
700
|
| { type: 'Kusama' }
|
|
567
|
-
| { type: 'Westend' }
|
|
568
|
-
| { type: 'Rococo' }
|
|
569
|
-
| { type: 'Wococo' }
|
|
570
701
|
| { type: 'Ethereum'; value: { chainId: bigint } }
|
|
571
702
|
| { type: 'BitcoinCore' }
|
|
572
703
|
| { type: 'BitcoinCash' }
|
|
@@ -591,107 +722,124 @@ export type XcmV3JunctionBodyPart =
|
|
|
591
722
|
| { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
|
|
592
723
|
| { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
|
|
593
724
|
|
|
594
|
-
export type
|
|
725
|
+
export type StagingXcmV5Xcm = Array<StagingXcmV5Instruction>;
|
|
595
726
|
|
|
596
|
-
export type
|
|
597
|
-
| { type: 'WithdrawAsset'; value:
|
|
598
|
-
| { type: 'ReserveAssetDeposited'; value:
|
|
599
|
-
| { type: 'ReceiveTeleportedAsset'; value:
|
|
727
|
+
export type StagingXcmV5Instruction =
|
|
728
|
+
| { type: 'WithdrawAsset'; value: StagingXcmV5AssetAssets }
|
|
729
|
+
| { type: 'ReserveAssetDeposited'; value: StagingXcmV5AssetAssets }
|
|
730
|
+
| { type: 'ReceiveTeleportedAsset'; value: StagingXcmV5AssetAssets }
|
|
600
731
|
| {
|
|
601
732
|
type: 'QueryResponse';
|
|
602
733
|
value: {
|
|
603
734
|
queryId: bigint;
|
|
604
|
-
response:
|
|
735
|
+
response: StagingXcmV5Response;
|
|
605
736
|
maxWeight: SpWeightsWeightV2Weight;
|
|
606
|
-
querier?:
|
|
737
|
+
querier?: StagingXcmV5Location | undefined;
|
|
607
738
|
};
|
|
608
739
|
}
|
|
609
|
-
| { type: 'TransferAsset'; value: { assets:
|
|
740
|
+
| { type: 'TransferAsset'; value: { assets: StagingXcmV5AssetAssets; beneficiary: StagingXcmV5Location } }
|
|
610
741
|
| {
|
|
611
742
|
type: 'TransferReserveAsset';
|
|
612
|
-
value: { assets:
|
|
743
|
+
value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
613
744
|
}
|
|
614
745
|
| {
|
|
615
746
|
type: 'Transact';
|
|
616
|
-
value: {
|
|
747
|
+
value: {
|
|
748
|
+
originKind: XcmV3OriginKind;
|
|
749
|
+
fallbackMaxWeight?: SpWeightsWeightV2Weight | undefined;
|
|
750
|
+
call: XcmDoubleEncoded;
|
|
751
|
+
};
|
|
617
752
|
}
|
|
618
753
|
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
619
754
|
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
620
755
|
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
621
756
|
| { type: 'ClearOrigin' }
|
|
622
|
-
| { type: 'DescendOrigin'; value:
|
|
623
|
-
| { type: 'ReportError'; value:
|
|
624
|
-
| { type: 'DepositAsset'; value: { assets:
|
|
757
|
+
| { type: 'DescendOrigin'; value: StagingXcmV5Junctions }
|
|
758
|
+
| { type: 'ReportError'; value: StagingXcmV5QueryResponseInfo }
|
|
759
|
+
| { type: 'DepositAsset'; value: { assets: StagingXcmV5AssetAssetFilter; beneficiary: StagingXcmV5Location } }
|
|
625
760
|
| {
|
|
626
761
|
type: 'DepositReserveAsset';
|
|
627
|
-
value: { assets:
|
|
762
|
+
value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
628
763
|
}
|
|
629
764
|
| {
|
|
630
765
|
type: 'ExchangeAsset';
|
|
631
|
-
value: { give:
|
|
766
|
+
value: { give: StagingXcmV5AssetAssetFilter; want: StagingXcmV5AssetAssets; maximal: boolean };
|
|
632
767
|
}
|
|
633
768
|
| {
|
|
634
769
|
type: 'InitiateReserveWithdraw';
|
|
635
|
-
value: { assets:
|
|
770
|
+
value: { assets: StagingXcmV5AssetAssetFilter; reserve: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
636
771
|
}
|
|
637
772
|
| {
|
|
638
773
|
type: 'InitiateTeleport';
|
|
639
|
-
value: { assets:
|
|
774
|
+
value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
640
775
|
}
|
|
641
776
|
| {
|
|
642
777
|
type: 'ReportHolding';
|
|
643
|
-
value: { responseInfo:
|
|
778
|
+
value: { responseInfo: StagingXcmV5QueryResponseInfo; assets: StagingXcmV5AssetAssetFilter };
|
|
644
779
|
}
|
|
645
|
-
| { type: 'BuyExecution'; value: { fees:
|
|
780
|
+
| { type: 'BuyExecution'; value: { fees: StagingXcmV5Asset; weightLimit: XcmV3WeightLimit } }
|
|
646
781
|
| { type: 'RefundSurplus' }
|
|
647
|
-
| { type: 'SetErrorHandler'; value:
|
|
648
|
-
| { type: 'SetAppendix'; value:
|
|
782
|
+
| { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
|
|
783
|
+
| { type: 'SetAppendix'; value: StagingXcmV5Xcm }
|
|
649
784
|
| { type: 'ClearError' }
|
|
650
|
-
| { type: 'ClaimAsset'; value: { assets:
|
|
785
|
+
| { type: 'ClaimAsset'; value: { assets: StagingXcmV5AssetAssets; ticket: StagingXcmV5Location } }
|
|
651
786
|
| { type: 'Trap'; value: bigint }
|
|
652
787
|
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
|
|
653
788
|
| { type: 'UnsubscribeVersion' }
|
|
654
|
-
| { type: 'BurnAsset'; value:
|
|
655
|
-
| { type: 'ExpectAsset'; value:
|
|
656
|
-
| { type: 'ExpectOrigin'; value?:
|
|
657
|
-
| { type: 'ExpectError'; value?: [number,
|
|
789
|
+
| { type: 'BurnAsset'; value: StagingXcmV5AssetAssets }
|
|
790
|
+
| { type: 'ExpectAsset'; value: StagingXcmV5AssetAssets }
|
|
791
|
+
| { type: 'ExpectOrigin'; value?: StagingXcmV5Location | undefined }
|
|
792
|
+
| { type: 'ExpectError'; value?: [number, XcmV5TraitsError] | undefined }
|
|
658
793
|
| { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
|
|
659
|
-
| { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo:
|
|
794
|
+
| { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV5QueryResponseInfo } }
|
|
660
795
|
| {
|
|
661
796
|
type: 'ExpectPallet';
|
|
662
797
|
value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
|
|
663
798
|
}
|
|
664
|
-
| { type: 'ReportTransactStatus'; value:
|
|
799
|
+
| { type: 'ReportTransactStatus'; value: StagingXcmV5QueryResponseInfo }
|
|
665
800
|
| { type: 'ClearTransactStatus' }
|
|
666
|
-
| { type: 'UniversalOrigin'; value:
|
|
801
|
+
| { type: 'UniversalOrigin'; value: StagingXcmV5Junction }
|
|
667
802
|
| {
|
|
668
803
|
type: 'ExportMessage';
|
|
669
|
-
value: { network:
|
|
804
|
+
value: { network: StagingXcmV5JunctionNetworkId; destination: StagingXcmV5Junctions; xcm: StagingXcmV5Xcm };
|
|
670
805
|
}
|
|
671
|
-
| { type: 'LockAsset'; value: { asset:
|
|
672
|
-
| { type: 'UnlockAsset'; value: { asset:
|
|
673
|
-
| { type: 'NoteUnlockable'; value: { asset:
|
|
674
|
-
| { type: 'RequestUnlock'; value: { asset:
|
|
806
|
+
| { type: 'LockAsset'; value: { asset: StagingXcmV5Asset; unlocker: StagingXcmV5Location } }
|
|
807
|
+
| { type: 'UnlockAsset'; value: { asset: StagingXcmV5Asset; target: StagingXcmV5Location } }
|
|
808
|
+
| { type: 'NoteUnlockable'; value: { asset: StagingXcmV5Asset; owner: StagingXcmV5Location } }
|
|
809
|
+
| { type: 'RequestUnlock'; value: { asset: StagingXcmV5Asset; locker: StagingXcmV5Location } }
|
|
675
810
|
| { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
|
|
676
811
|
| { type: 'SetTopic'; value: FixedBytes<32> }
|
|
677
812
|
| { type: 'ClearTopic' }
|
|
678
|
-
| { type: 'AliasOrigin'; value:
|
|
813
|
+
| { type: 'AliasOrigin'; value: StagingXcmV5Location }
|
|
679
814
|
| {
|
|
680
815
|
type: 'UnpaidExecution';
|
|
681
|
-
value: { weightLimit: XcmV3WeightLimit; checkOrigin?:
|
|
682
|
-
}
|
|
816
|
+
value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV5Location | undefined };
|
|
817
|
+
}
|
|
818
|
+
| { type: 'PayFees'; value: { asset: StagingXcmV5Asset } }
|
|
819
|
+
| {
|
|
820
|
+
type: 'InitiateTransfer';
|
|
821
|
+
value: {
|
|
822
|
+
destination: StagingXcmV5Location;
|
|
823
|
+
remoteFees?: StagingXcmV5AssetAssetTransferFilter | undefined;
|
|
824
|
+
preserveOrigin: boolean;
|
|
825
|
+
assets: Array<StagingXcmV5AssetAssetTransferFilter>;
|
|
826
|
+
remoteXcm: StagingXcmV5Xcm;
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
| { type: 'ExecuteWithOrigin'; value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm } }
|
|
830
|
+
| { type: 'SetHints'; value: { hints: Array<StagingXcmV5Hint> } };
|
|
683
831
|
|
|
684
|
-
export type
|
|
832
|
+
export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
|
|
685
833
|
|
|
686
|
-
export type
|
|
834
|
+
export type StagingXcmV5Asset = { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetFungibility };
|
|
687
835
|
|
|
688
|
-
export type
|
|
836
|
+
export type StagingXcmV5AssetAssetId = StagingXcmV5Location;
|
|
689
837
|
|
|
690
|
-
export type
|
|
838
|
+
export type StagingXcmV5AssetFungibility =
|
|
691
839
|
| { type: 'Fungible'; value: bigint }
|
|
692
|
-
| { type: 'NonFungible'; value:
|
|
840
|
+
| { type: 'NonFungible'; value: StagingXcmV5AssetAssetInstance };
|
|
693
841
|
|
|
694
|
-
export type
|
|
842
|
+
export type StagingXcmV5AssetAssetInstance =
|
|
695
843
|
| { type: 'Undefined' }
|
|
696
844
|
| { type: 'Index'; value: bigint }
|
|
697
845
|
| { type: 'Array4'; value: FixedBytes<4> }
|
|
@@ -699,15 +847,15 @@ export type StagingXcmV4AssetAssetInstance =
|
|
|
699
847
|
| { type: 'Array16'; value: FixedBytes<16> }
|
|
700
848
|
| { type: 'Array32'; value: FixedBytes<32> };
|
|
701
849
|
|
|
702
|
-
export type
|
|
850
|
+
export type StagingXcmV5Response =
|
|
703
851
|
| { type: 'Null' }
|
|
704
|
-
| { type: 'Assets'; value:
|
|
705
|
-
| { type: 'ExecutionResult'; value?: [number,
|
|
852
|
+
| { type: 'Assets'; value: StagingXcmV5AssetAssets }
|
|
853
|
+
| { type: 'ExecutionResult'; value?: [number, XcmV5TraitsError] | undefined }
|
|
706
854
|
| { type: 'Version'; value: number }
|
|
707
|
-
| { type: 'PalletsInfo'; value: Array<
|
|
855
|
+
| { type: 'PalletsInfo'; value: Array<StagingXcmV5PalletInfo> }
|
|
708
856
|
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
709
857
|
|
|
710
|
-
export type
|
|
858
|
+
export type StagingXcmV5PalletInfo = {
|
|
711
859
|
index: number;
|
|
712
860
|
name: Bytes;
|
|
713
861
|
moduleName: Bytes;
|
|
@@ -725,118 +873,40 @@ export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm
|
|
|
725
873
|
|
|
726
874
|
export type XcmDoubleEncoded = { encoded: Bytes };
|
|
727
875
|
|
|
728
|
-
export type
|
|
729
|
-
destination:
|
|
876
|
+
export type StagingXcmV5QueryResponseInfo = {
|
|
877
|
+
destination: StagingXcmV5Location;
|
|
730
878
|
queryId: bigint;
|
|
731
879
|
maxWeight: SpWeightsWeightV2Weight;
|
|
732
880
|
};
|
|
733
881
|
|
|
734
|
-
export type
|
|
735
|
-
| { type: 'Definite'; value:
|
|
736
|
-
| { type: 'Wild'; value:
|
|
882
|
+
export type StagingXcmV5AssetAssetFilter =
|
|
883
|
+
| { type: 'Definite'; value: StagingXcmV5AssetAssets }
|
|
884
|
+
| { type: 'Wild'; value: StagingXcmV5AssetWildAsset };
|
|
737
885
|
|
|
738
|
-
export type
|
|
886
|
+
export type StagingXcmV5AssetWildAsset =
|
|
739
887
|
| { type: 'All' }
|
|
740
|
-
| { type: 'AllOf'; value: { id:
|
|
888
|
+
| { type: 'AllOf'; value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility } }
|
|
741
889
|
| { type: 'AllCounted'; value: number }
|
|
742
890
|
| {
|
|
743
891
|
type: 'AllOfCounted';
|
|
744
|
-
value: { id:
|
|
892
|
+
value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility; count: number };
|
|
745
893
|
};
|
|
746
894
|
|
|
747
|
-
export type
|
|
895
|
+
export type StagingXcmV5AssetWildFungibility = 'Fungible' | 'NonFungible';
|
|
748
896
|
|
|
749
897
|
export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight };
|
|
750
898
|
|
|
751
|
-
export type
|
|
752
|
-
| { type: '
|
|
753
|
-
| { type: '
|
|
754
|
-
| { type: '
|
|
755
|
-
|
|
756
|
-
export type XcmV2MultiassetMultiAssets = Array<XcmV2MultiassetMultiAsset>;
|
|
757
|
-
|
|
758
|
-
export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility };
|
|
759
|
-
|
|
760
|
-
export type XcmV2MultiassetAssetId =
|
|
761
|
-
| { type: 'Concrete'; value: XcmV2MultilocationMultiLocation }
|
|
762
|
-
| { type: 'Abstract'; value: Bytes };
|
|
763
|
-
|
|
764
|
-
export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions };
|
|
765
|
-
|
|
766
|
-
export type XcmV2MultilocationJunctions =
|
|
767
|
-
| { type: 'Here' }
|
|
768
|
-
| { type: 'X1'; value: XcmV2Junction }
|
|
769
|
-
| { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] }
|
|
770
|
-
| { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
771
|
-
| { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
772
|
-
| { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
773
|
-
| { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
774
|
-
| {
|
|
775
|
-
type: 'X7';
|
|
776
|
-
value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction];
|
|
777
|
-
}
|
|
778
|
-
| {
|
|
779
|
-
type: 'X8';
|
|
780
|
-
value: [
|
|
781
|
-
XcmV2Junction,
|
|
782
|
-
XcmV2Junction,
|
|
783
|
-
XcmV2Junction,
|
|
784
|
-
XcmV2Junction,
|
|
785
|
-
XcmV2Junction,
|
|
786
|
-
XcmV2Junction,
|
|
787
|
-
XcmV2Junction,
|
|
788
|
-
XcmV2Junction,
|
|
789
|
-
];
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
export type XcmV2Junction =
|
|
793
|
-
| { type: 'Parachain'; value: number }
|
|
794
|
-
| { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } }
|
|
795
|
-
| { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } }
|
|
796
|
-
| { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } }
|
|
797
|
-
| { type: 'PalletInstance'; value: number }
|
|
798
|
-
| { type: 'GeneralIndex'; value: bigint }
|
|
799
|
-
| { type: 'GeneralKey'; value: Bytes }
|
|
800
|
-
| { type: 'OnlyChild' }
|
|
801
|
-
| { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } };
|
|
802
|
-
|
|
803
|
-
export type XcmV2NetworkId =
|
|
804
|
-
| { type: 'Any' }
|
|
805
|
-
| { type: 'Named'; value: Bytes }
|
|
806
|
-
| { type: 'Polkadot' }
|
|
807
|
-
| { type: 'Kusama' };
|
|
899
|
+
export type StagingXcmV5AssetAssetTransferFilter =
|
|
900
|
+
| { type: 'Teleport'; value: StagingXcmV5AssetAssetFilter }
|
|
901
|
+
| { type: 'ReserveDeposit'; value: StagingXcmV5AssetAssetFilter }
|
|
902
|
+
| { type: 'ReserveWithdraw'; value: StagingXcmV5AssetAssetFilter };
|
|
808
903
|
|
|
809
|
-
export type
|
|
810
|
-
| { type: 'Unit' }
|
|
811
|
-
| { type: 'Named'; value: Bytes }
|
|
812
|
-
| { type: 'Index'; value: number }
|
|
813
|
-
| { type: 'Executive' }
|
|
814
|
-
| { type: 'Technical' }
|
|
815
|
-
| { type: 'Legislative' }
|
|
816
|
-
| { type: 'Judicial' }
|
|
817
|
-
| { type: 'Defense' }
|
|
818
|
-
| { type: 'Administration' }
|
|
819
|
-
| { type: 'Treasury' };
|
|
820
|
-
|
|
821
|
-
export type XcmV2BodyPart =
|
|
822
|
-
| { type: 'Voice' }
|
|
823
|
-
| { type: 'Members'; value: { count: number } }
|
|
824
|
-
| { type: 'Fraction'; value: { nom: number; denom: number } }
|
|
825
|
-
| { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
|
|
826
|
-
| { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
|
|
904
|
+
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
827
905
|
|
|
828
|
-
export type
|
|
829
|
-
| { type: '
|
|
830
|
-
| { type: '
|
|
831
|
-
|
|
832
|
-
export type XcmV2MultiassetAssetInstance =
|
|
833
|
-
| { type: 'Undefined' }
|
|
834
|
-
| { type: 'Index'; value: bigint }
|
|
835
|
-
| { type: 'Array4'; value: FixedBytes<4> }
|
|
836
|
-
| { type: 'Array8'; value: FixedBytes<8> }
|
|
837
|
-
| { type: 'Array16'; value: FixedBytes<16> }
|
|
838
|
-
| { type: 'Array32'; value: FixedBytes<32> }
|
|
839
|
-
| { type: 'Blob'; value: Bytes };
|
|
906
|
+
export type XcmVersionedAssets =
|
|
907
|
+
| { type: 'V3'; value: XcmV3MultiassetMultiAssets }
|
|
908
|
+
| { type: 'V4'; value: StagingXcmV4AssetAssets }
|
|
909
|
+
| { type: 'V5'; value: StagingXcmV5AssetAssets };
|
|
840
910
|
|
|
841
911
|
export type XcmV3MultiassetMultiAssets = Array<XcmV3MultiassetMultiAsset>;
|
|
842
912
|
|
|
@@ -911,10 +981,66 @@ export type XcmV3MultiassetAssetInstance =
|
|
|
911
981
|
| { type: 'Array16'; value: FixedBytes<16> }
|
|
912
982
|
| { type: 'Array32'; value: FixedBytes<32> };
|
|
913
983
|
|
|
984
|
+
export type StagingXcmV4AssetAssets = Array<StagingXcmV4Asset>;
|
|
985
|
+
|
|
986
|
+
export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility };
|
|
987
|
+
|
|
988
|
+
export type StagingXcmV4AssetAssetId = StagingXcmV4Location;
|
|
989
|
+
|
|
990
|
+
export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions };
|
|
991
|
+
|
|
992
|
+
export type StagingXcmV4Junctions =
|
|
993
|
+
| { type: 'Here' }
|
|
994
|
+
| { type: 'X1'; value: FixedArray<StagingXcmV4Junction, 1> }
|
|
995
|
+
| { type: 'X2'; value: FixedArray<StagingXcmV4Junction, 2> }
|
|
996
|
+
| { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
|
|
997
|
+
| { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
|
|
998
|
+
| { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
|
|
999
|
+
| { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
|
|
1000
|
+
| { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
|
|
1001
|
+
| { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
|
|
1002
|
+
|
|
1003
|
+
export type StagingXcmV4Junction =
|
|
1004
|
+
| { type: 'Parachain'; value: number }
|
|
1005
|
+
| { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
|
|
1006
|
+
| { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
|
|
1007
|
+
| { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
|
|
1008
|
+
| { type: 'PalletInstance'; value: number }
|
|
1009
|
+
| { type: 'GeneralIndex'; value: bigint }
|
|
1010
|
+
| { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
|
|
1011
|
+
| { type: 'OnlyChild' }
|
|
1012
|
+
| { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
|
|
1013
|
+
| { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
|
|
1014
|
+
|
|
1015
|
+
export type StagingXcmV4JunctionNetworkId =
|
|
1016
|
+
| { type: 'ByGenesis'; value: FixedBytes<32> }
|
|
1017
|
+
| { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
|
|
1018
|
+
| { type: 'Polkadot' }
|
|
1019
|
+
| { type: 'Kusama' }
|
|
1020
|
+
| { type: 'Westend' }
|
|
1021
|
+
| { type: 'Rococo' }
|
|
1022
|
+
| { type: 'Wococo' }
|
|
1023
|
+
| { type: 'Ethereum'; value: { chainId: bigint } }
|
|
1024
|
+
| { type: 'BitcoinCore' }
|
|
1025
|
+
| { type: 'BitcoinCash' }
|
|
1026
|
+
| { type: 'PolkadotBulletin' };
|
|
1027
|
+
|
|
1028
|
+
export type StagingXcmV4AssetFungibility =
|
|
1029
|
+
| { type: 'Fungible'; value: bigint }
|
|
1030
|
+
| { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance };
|
|
1031
|
+
|
|
1032
|
+
export type StagingXcmV4AssetAssetInstance =
|
|
1033
|
+
| { type: 'Undefined' }
|
|
1034
|
+
| { type: 'Index'; value: bigint }
|
|
1035
|
+
| { type: 'Array4'; value: FixedBytes<4> }
|
|
1036
|
+
| { type: 'Array8'; value: FixedBytes<8> }
|
|
1037
|
+
| { type: 'Array16'; value: FixedBytes<16> }
|
|
1038
|
+
| { type: 'Array32'; value: FixedBytes<32> };
|
|
1039
|
+
|
|
914
1040
|
export type XcmVersionedLocation =
|
|
915
|
-
| { type: 'V2'; value: XcmV2MultilocationMultiLocation }
|
|
916
1041
|
| { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation }
|
|
917
|
-
| { type: 'V4'; value: StagingXcmV4Location }
|
|
1042
|
+
| { type: 'V4'; value: StagingXcmV4Location }
|
|
1043
|
+
| { type: 'V5'; value: StagingXcmV5Location };
|
|
918
1044
|
|
|
919
1045
|
/**
|
|
920
1046
|
* The `Event` enum of this pallet
|
|
@@ -934,7 +1060,7 @@ export type CumulusPalletXcmEvent =
|
|
|
934
1060
|
* Downward message executed with the given outcome.
|
|
935
1061
|
* \[ id, outcome \]
|
|
936
1062
|
**/
|
|
937
|
-
| { name: 'ExecutedDownward'; data: [FixedBytes<32>,
|
|
1063
|
+
| { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV5TraitsOutcome] };
|
|
938
1064
|
|
|
939
1065
|
/**
|
|
940
1066
|
* The `Event` enum of this pallet
|
|
@@ -1229,6 +1355,14 @@ export type PalletIdentityEvent =
|
|
|
1229
1355
|
* A sub-identity was added to an identity and the deposit paid.
|
|
1230
1356
|
**/
|
|
1231
1357
|
| { name: 'SubIdentityAdded'; data: { sub: AccountId32; main: AccountId32; deposit: bigint } }
|
|
1358
|
+
/**
|
|
1359
|
+
* An account's sub-identities were set (in bulk).
|
|
1360
|
+
**/
|
|
1361
|
+
| { name: 'SubIdentitiesSet'; data: { main: AccountId32; numberOfSubs: number; newDeposit: bigint } }
|
|
1362
|
+
/**
|
|
1363
|
+
* A given sub-account's associated name was changed by its super-identity.
|
|
1364
|
+
**/
|
|
1365
|
+
| { name: 'SubIdentityRenamed'; data: { sub: AccountId32; main: AccountId32 } }
|
|
1232
1366
|
/**
|
|
1233
1367
|
* A sub-identity was removed from an identity and the deposit freed.
|
|
1234
1368
|
**/
|
|
@@ -1266,7 +1400,19 @@ export type PalletIdentityEvent =
|
|
|
1266
1400
|
* A dangling username (as in, a username corresponding to an account that has removed its
|
|
1267
1401
|
* identity) has been removed.
|
|
1268
1402
|
**/
|
|
1269
|
-
| { name: 'DanglingUsernameRemoved'; data: { who: AccountId32; username: Bytes } }
|
|
1403
|
+
| { name: 'DanglingUsernameRemoved'; data: { who: AccountId32; username: Bytes } }
|
|
1404
|
+
/**
|
|
1405
|
+
* A username has been unbound.
|
|
1406
|
+
**/
|
|
1407
|
+
| { name: 'UsernameUnbound'; data: { username: Bytes } }
|
|
1408
|
+
/**
|
|
1409
|
+
* A username has been removed.
|
|
1410
|
+
**/
|
|
1411
|
+
| { name: 'UsernameRemoved'; data: { username: Bytes } }
|
|
1412
|
+
/**
|
|
1413
|
+
* A username has been killed.
|
|
1414
|
+
**/
|
|
1415
|
+
| { name: 'UsernameKilled'; data: { username: Bytes } };
|
|
1270
1416
|
|
|
1271
1417
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
1272
1418
|
|
|
@@ -1679,38 +1825,134 @@ export type PalletTimestampCall =
|
|
|
1679
1825
|
* `on_finalize`)
|
|
1680
1826
|
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
1681
1827
|
**/
|
|
1682
|
-
{ name: 'Set'; params: { now: bigint } };
|
|
1828
|
+
{ name: 'Set'; params: { now: bigint } };
|
|
1829
|
+
|
|
1830
|
+
export type PalletTimestampCallLike =
|
|
1831
|
+
/**
|
|
1832
|
+
* Set the current time.
|
|
1833
|
+
*
|
|
1834
|
+
* This call should be invoked exactly once per block. It will panic at the finalization
|
|
1835
|
+
* phase, if this call hasn't been invoked by that time.
|
|
1836
|
+
*
|
|
1837
|
+
* The timestamp should be greater than the previous one by the amount specified by
|
|
1838
|
+
* [`Config::MinimumPeriod`].
|
|
1839
|
+
*
|
|
1840
|
+
* The dispatch origin for this call must be _None_.
|
|
1841
|
+
*
|
|
1842
|
+
* This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
|
|
1843
|
+
* that changing the complexity of this call could result exhausting the resources in a
|
|
1844
|
+
* block to execute any other calls.
|
|
1845
|
+
*
|
|
1846
|
+
* ## Complexity
|
|
1847
|
+
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
1848
|
+
* - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
|
|
1849
|
+
* `on_finalize`)
|
|
1850
|
+
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
1851
|
+
**/
|
|
1852
|
+
{ name: 'Set'; params: { now: bigint } };
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
1856
|
+
**/
|
|
1857
|
+
export type StagingParachainInfoCall = null;
|
|
1858
|
+
|
|
1859
|
+
export type StagingParachainInfoCallLike = null;
|
|
1860
|
+
|
|
1861
|
+
export type PalletMigrationsMigrationCursor =
|
|
1862
|
+
| { type: 'Active'; value: PalletMigrationsActiveCursor }
|
|
1863
|
+
| { type: 'Stuck' };
|
|
1864
|
+
|
|
1865
|
+
export type PalletMigrationsActiveCursor = { index: number; innerCursor?: Bytes | undefined; startedAt: number };
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
1869
|
+
**/
|
|
1870
|
+
export type PalletMigrationsCall =
|
|
1871
|
+
/**
|
|
1872
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
1873
|
+
*
|
|
1874
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
1875
|
+
* restarting the migration process in this manner will not call the
|
|
1876
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
1877
|
+
**/
|
|
1878
|
+
| { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
|
|
1879
|
+
/**
|
|
1880
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
1881
|
+
*
|
|
1882
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
1883
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
1884
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
1885
|
+
* indicates that the current block number plus one should be used.
|
|
1886
|
+
**/
|
|
1887
|
+
| {
|
|
1888
|
+
name: 'ForceSetActiveCursor';
|
|
1889
|
+
params: { index: number; innerCursor?: Bytes | undefined; startedAt?: number | undefined };
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* Forces the onboarding of the migrations.
|
|
1893
|
+
*
|
|
1894
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
1895
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
1896
|
+
**/
|
|
1897
|
+
| { name: 'ForceOnboardMbms' }
|
|
1898
|
+
/**
|
|
1899
|
+
* Clears the `Historic` set.
|
|
1900
|
+
*
|
|
1901
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
1902
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
1903
|
+
* way that will result in a sensible weight.
|
|
1904
|
+
**/
|
|
1905
|
+
| { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
|
|
1683
1906
|
|
|
1684
|
-
export type
|
|
1907
|
+
export type PalletMigrationsCallLike =
|
|
1685
1908
|
/**
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1688
|
-
* This call should be invoked exactly once per block. It will panic at the finalization
|
|
1689
|
-
* phase, if this call hasn't been invoked by that time.
|
|
1909
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
1690
1910
|
*
|
|
1691
|
-
*
|
|
1692
|
-
*
|
|
1911
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
1912
|
+
* restarting the migration process in this manner will not call the
|
|
1913
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
1914
|
+
**/
|
|
1915
|
+
| { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
|
|
1916
|
+
/**
|
|
1917
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
1693
1918
|
*
|
|
1694
|
-
*
|
|
1919
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
1920
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
1921
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
1922
|
+
* indicates that the current block number plus one should be used.
|
|
1923
|
+
**/
|
|
1924
|
+
| {
|
|
1925
|
+
name: 'ForceSetActiveCursor';
|
|
1926
|
+
params: { index: number; innerCursor?: BytesLike | undefined; startedAt?: number | undefined };
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* Forces the onboarding of the migrations.
|
|
1695
1930
|
*
|
|
1696
|
-
* This
|
|
1697
|
-
*
|
|
1698
|
-
|
|
1931
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
1932
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
1933
|
+
**/
|
|
1934
|
+
| { name: 'ForceOnboardMbms' }
|
|
1935
|
+
/**
|
|
1936
|
+
* Clears the `Historic` set.
|
|
1699
1937
|
*
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
* `on_finalize`)
|
|
1704
|
-
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
1938
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
1939
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
1940
|
+
* way that will result in a sensible weight.
|
|
1705
1941
|
**/
|
|
1706
|
-
{ name: '
|
|
1942
|
+
| { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
|
|
1943
|
+
|
|
1944
|
+
export type PalletMigrationsHistoricCleanupSelector =
|
|
1945
|
+
| { type: 'Specific'; value: Array<Bytes> }
|
|
1946
|
+
| { type: 'Wildcard'; value: { limit?: number | undefined; previousCursor?: Bytes | undefined } };
|
|
1707
1947
|
|
|
1708
1948
|
/**
|
|
1709
|
-
*
|
|
1949
|
+
* The `Error` enum of this pallet.
|
|
1710
1950
|
**/
|
|
1711
|
-
export type
|
|
1712
|
-
|
|
1713
|
-
|
|
1951
|
+
export type PalletMigrationsError =
|
|
1952
|
+
/**
|
|
1953
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
1954
|
+
**/
|
|
1955
|
+
'Ongoing';
|
|
1714
1956
|
|
|
1715
1957
|
export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons };
|
|
1716
1958
|
|
|
@@ -2434,23 +2676,25 @@ export type PalletXcmQueryStatus =
|
|
|
2434
2676
|
| { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } };
|
|
2435
2677
|
|
|
2436
2678
|
export type XcmVersionedResponse =
|
|
2437
|
-
| { type: 'V2'; value: XcmV2Response }
|
|
2438
2679
|
| { type: 'V3'; value: XcmV3Response }
|
|
2439
|
-
| { type: 'V4'; value: StagingXcmV4Response }
|
|
2680
|
+
| { type: 'V4'; value: StagingXcmV4Response }
|
|
2681
|
+
| { type: 'V5'; value: StagingXcmV5Response };
|
|
2440
2682
|
|
|
2441
|
-
export type
|
|
2683
|
+
export type XcmV3Response =
|
|
2442
2684
|
| { type: 'Null' }
|
|
2443
|
-
| { type: 'Assets'; value:
|
|
2444
|
-
| { type: 'ExecutionResult'; value?: [number,
|
|
2445
|
-
| { type: 'Version'; value: number }
|
|
2685
|
+
| { type: 'Assets'; value: XcmV3MultiassetMultiAssets }
|
|
2686
|
+
| { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
|
|
2687
|
+
| { type: 'Version'; value: number }
|
|
2688
|
+
| { type: 'PalletsInfo'; value: Array<XcmV3PalletInfo> }
|
|
2689
|
+
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
2446
2690
|
|
|
2447
|
-
export type
|
|
2691
|
+
export type XcmV3TraitsError =
|
|
2448
2692
|
| { type: 'Overflow' }
|
|
2449
2693
|
| { type: 'Unimplemented' }
|
|
2450
2694
|
| { type: 'UntrustedReserveLocation' }
|
|
2451
2695
|
| { type: 'UntrustedTeleportLocation' }
|
|
2452
|
-
| { type: '
|
|
2453
|
-
| { type: '
|
|
2696
|
+
| { type: 'LocationFull' }
|
|
2697
|
+
| { type: 'LocationNotInvertible' }
|
|
2454
2698
|
| { type: 'BadOrigin' }
|
|
2455
2699
|
| { type: 'InvalidLocation' }
|
|
2456
2700
|
| { type: 'AssetNotFound' }
|
|
@@ -2467,20 +2711,43 @@ export type XcmV2TraitsError =
|
|
|
2467
2711
|
| { type: 'NotHoldingFees' }
|
|
2468
2712
|
| { type: 'TooExpensive' }
|
|
2469
2713
|
| { type: 'Trap'; value: bigint }
|
|
2714
|
+
| { type: 'ExpectationFalse' }
|
|
2715
|
+
| { type: 'PalletNotFound' }
|
|
2716
|
+
| { type: 'NameMismatch' }
|
|
2717
|
+
| { type: 'VersionIncompatible' }
|
|
2718
|
+
| { type: 'HoldingWouldOverflow' }
|
|
2719
|
+
| { type: 'ExportError' }
|
|
2720
|
+
| { type: 'ReanchorFailed' }
|
|
2721
|
+
| { type: 'NoDeal' }
|
|
2722
|
+
| { type: 'FeesNotMet' }
|
|
2723
|
+
| { type: 'LockError' }
|
|
2724
|
+
| { type: 'NoPermission' }
|
|
2725
|
+
| { type: 'Unanchored' }
|
|
2726
|
+
| { type: 'NotDepositable' }
|
|
2470
2727
|
| { type: 'UnhandledXcmVersion' }
|
|
2471
|
-
| { type: 'WeightLimitReached'; value:
|
|
2728
|
+
| { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
|
|
2472
2729
|
| { type: 'Barrier' }
|
|
2473
|
-
| { type: 'WeightNotComputable' }
|
|
2730
|
+
| { type: 'WeightNotComputable' }
|
|
2731
|
+
| { type: 'ExceedsStackLimit' };
|
|
2474
2732
|
|
|
2475
|
-
export type
|
|
2733
|
+
export type XcmV3PalletInfo = {
|
|
2734
|
+
index: number;
|
|
2735
|
+
name: Bytes;
|
|
2736
|
+
moduleName: Bytes;
|
|
2737
|
+
major: number;
|
|
2738
|
+
minor: number;
|
|
2739
|
+
patch: number;
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
export type StagingXcmV4Response =
|
|
2476
2743
|
| { type: 'Null' }
|
|
2477
|
-
| { type: 'Assets'; value:
|
|
2744
|
+
| { type: 'Assets'; value: StagingXcmV4AssetAssets }
|
|
2478
2745
|
| { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
|
|
2479
2746
|
| { type: 'Version'; value: number }
|
|
2480
|
-
| { type: 'PalletsInfo'; value: Array<
|
|
2747
|
+
| { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
|
|
2481
2748
|
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
2482
2749
|
|
|
2483
|
-
export type
|
|
2750
|
+
export type StagingXcmV4PalletInfo = {
|
|
2484
2751
|
index: number;
|
|
2485
2752
|
name: Bytes;
|
|
2486
2753
|
moduleName: Bytes;
|
|
@@ -2497,7 +2764,8 @@ export type PalletXcmVersionMigrationStage =
|
|
|
2497
2764
|
|
|
2498
2765
|
export type XcmVersionedAssetId =
|
|
2499
2766
|
| { type: 'V3'; value: XcmV3MultiassetAssetId }
|
|
2500
|
-
| { type: 'V4'; value: StagingXcmV4AssetAssetId }
|
|
2767
|
+
| { type: 'V4'; value: StagingXcmV4AssetAssetId }
|
|
2768
|
+
| { type: 'V5'; value: StagingXcmV5AssetAssetId };
|
|
2501
2769
|
|
|
2502
2770
|
export type PalletXcmRemoteLockedFungibleRecord = {
|
|
2503
2771
|
amount: bigint;
|
|
@@ -2600,7 +2868,7 @@ export type PalletXcmCall =
|
|
|
2600
2868
|
* - `location`: The destination that is being described.
|
|
2601
2869
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
2602
2870
|
**/
|
|
2603
|
-
| { name: 'ForceXcmVersion'; params: { location:
|
|
2871
|
+
| { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
|
|
2604
2872
|
/**
|
|
2605
2873
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
2606
2874
|
* version a destination can accept is unknown).
|
|
@@ -2912,7 +3180,7 @@ export type PalletXcmCallLike =
|
|
|
2912
3180
|
* - `location`: The destination that is being described.
|
|
2913
3181
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
2914
3182
|
**/
|
|
2915
|
-
| { name: 'ForceXcmVersion'; params: { location:
|
|
3183
|
+
| { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
|
|
2916
3184
|
/**
|
|
2917
3185
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
2918
3186
|
* version a destination can accept is unknown).
|
|
@@ -3134,93 +3402,9 @@ export type PalletXcmCallLike =
|
|
|
3134
3402
|
};
|
|
3135
3403
|
|
|
3136
3404
|
export type XcmVersionedXcm =
|
|
3137
|
-
| { type: 'V2'; value: XcmV2Xcm }
|
|
3138
3405
|
| { type: 'V3'; value: XcmV3Xcm }
|
|
3139
|
-
| { type: 'V4'; value: StagingXcmV4Xcm }
|
|
3140
|
-
|
|
3141
|
-
export type XcmV2Xcm = Array<XcmV2Instruction>;
|
|
3142
|
-
|
|
3143
|
-
export type XcmV2Instruction =
|
|
3144
|
-
| { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets }
|
|
3145
|
-
| { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets }
|
|
3146
|
-
| { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets }
|
|
3147
|
-
| { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } }
|
|
3148
|
-
| {
|
|
3149
|
-
type: 'TransferAsset';
|
|
3150
|
-
value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation };
|
|
3151
|
-
}
|
|
3152
|
-
| {
|
|
3153
|
-
type: 'TransferReserveAsset';
|
|
3154
|
-
value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
|
|
3155
|
-
}
|
|
3156
|
-
| { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } }
|
|
3157
|
-
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
3158
|
-
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
3159
|
-
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
3160
|
-
| { type: 'ClearOrigin' }
|
|
3161
|
-
| { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions }
|
|
3162
|
-
| {
|
|
3163
|
-
type: 'ReportError';
|
|
3164
|
-
value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint };
|
|
3165
|
-
}
|
|
3166
|
-
| {
|
|
3167
|
-
type: 'DepositAsset';
|
|
3168
|
-
value: {
|
|
3169
|
-
assets: XcmV2MultiassetMultiAssetFilter;
|
|
3170
|
-
maxAssets: number;
|
|
3171
|
-
beneficiary: XcmV2MultilocationMultiLocation;
|
|
3172
|
-
};
|
|
3173
|
-
}
|
|
3174
|
-
| {
|
|
3175
|
-
type: 'DepositReserveAsset';
|
|
3176
|
-
value: {
|
|
3177
|
-
assets: XcmV2MultiassetMultiAssetFilter;
|
|
3178
|
-
maxAssets: number;
|
|
3179
|
-
dest: XcmV2MultilocationMultiLocation;
|
|
3180
|
-
xcm: XcmV2Xcm;
|
|
3181
|
-
};
|
|
3182
|
-
}
|
|
3183
|
-
| { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } }
|
|
3184
|
-
| {
|
|
3185
|
-
type: 'InitiateReserveWithdraw';
|
|
3186
|
-
value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
|
|
3187
|
-
}
|
|
3188
|
-
| {
|
|
3189
|
-
type: 'InitiateTeleport';
|
|
3190
|
-
value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
|
|
3191
|
-
}
|
|
3192
|
-
| {
|
|
3193
|
-
type: 'QueryHolding';
|
|
3194
|
-
value: {
|
|
3195
|
-
queryId: bigint;
|
|
3196
|
-
dest: XcmV2MultilocationMultiLocation;
|
|
3197
|
-
assets: XcmV2MultiassetMultiAssetFilter;
|
|
3198
|
-
maxResponseWeight: bigint;
|
|
3199
|
-
};
|
|
3200
|
-
}
|
|
3201
|
-
| { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } }
|
|
3202
|
-
| { type: 'RefundSurplus' }
|
|
3203
|
-
| { type: 'SetErrorHandler'; value: XcmV2Xcm }
|
|
3204
|
-
| { type: 'SetAppendix'; value: XcmV2Xcm }
|
|
3205
|
-
| { type: 'ClearError' }
|
|
3206
|
-
| { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } }
|
|
3207
|
-
| { type: 'Trap'; value: bigint }
|
|
3208
|
-
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } }
|
|
3209
|
-
| { type: 'UnsubscribeVersion' };
|
|
3210
|
-
|
|
3211
|
-
export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
3212
|
-
|
|
3213
|
-
export type XcmV2MultiassetMultiAssetFilter =
|
|
3214
|
-
| { type: 'Definite'; value: XcmV2MultiassetMultiAssets }
|
|
3215
|
-
| { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset };
|
|
3216
|
-
|
|
3217
|
-
export type XcmV2MultiassetWildMultiAsset =
|
|
3218
|
-
| { type: 'All' }
|
|
3219
|
-
| { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } };
|
|
3220
|
-
|
|
3221
|
-
export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible';
|
|
3222
|
-
|
|
3223
|
-
export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint };
|
|
3406
|
+
| { type: 'V4'; value: StagingXcmV4Xcm }
|
|
3407
|
+
| { type: 'V5'; value: StagingXcmV5Xcm };
|
|
3224
3408
|
|
|
3225
3409
|
export type XcmV3Xcm = Array<XcmV3Instruction>;
|
|
3226
3410
|
|
|
@@ -3343,6 +3527,117 @@ export type XcmV3MultiassetWildMultiAsset =
|
|
|
3343
3527
|
|
|
3344
3528
|
export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible';
|
|
3345
3529
|
|
|
3530
|
+
export type StagingXcmV4Xcm = Array<StagingXcmV4Instruction>;
|
|
3531
|
+
|
|
3532
|
+
export type StagingXcmV4Instruction =
|
|
3533
|
+
| { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets }
|
|
3534
|
+
| { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets }
|
|
3535
|
+
| { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets }
|
|
3536
|
+
| {
|
|
3537
|
+
type: 'QueryResponse';
|
|
3538
|
+
value: {
|
|
3539
|
+
queryId: bigint;
|
|
3540
|
+
response: StagingXcmV4Response;
|
|
3541
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
3542
|
+
querier?: StagingXcmV4Location | undefined;
|
|
3543
|
+
};
|
|
3544
|
+
}
|
|
3545
|
+
| { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } }
|
|
3546
|
+
| {
|
|
3547
|
+
type: 'TransferReserveAsset';
|
|
3548
|
+
value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
3549
|
+
}
|
|
3550
|
+
| {
|
|
3551
|
+
type: 'Transact';
|
|
3552
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
3553
|
+
}
|
|
3554
|
+
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
3555
|
+
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
3556
|
+
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
3557
|
+
| { type: 'ClearOrigin' }
|
|
3558
|
+
| { type: 'DescendOrigin'; value: StagingXcmV4Junctions }
|
|
3559
|
+
| { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo }
|
|
3560
|
+
| { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } }
|
|
3561
|
+
| {
|
|
3562
|
+
type: 'DepositReserveAsset';
|
|
3563
|
+
value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
3564
|
+
}
|
|
3565
|
+
| {
|
|
3566
|
+
type: 'ExchangeAsset';
|
|
3567
|
+
value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean };
|
|
3568
|
+
}
|
|
3569
|
+
| {
|
|
3570
|
+
type: 'InitiateReserveWithdraw';
|
|
3571
|
+
value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
3572
|
+
}
|
|
3573
|
+
| {
|
|
3574
|
+
type: 'InitiateTeleport';
|
|
3575
|
+
value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
3576
|
+
}
|
|
3577
|
+
| {
|
|
3578
|
+
type: 'ReportHolding';
|
|
3579
|
+
value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter };
|
|
3580
|
+
}
|
|
3581
|
+
| { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } }
|
|
3582
|
+
| { type: 'RefundSurplus' }
|
|
3583
|
+
| { type: 'SetErrorHandler'; value: StagingXcmV4Xcm }
|
|
3584
|
+
| { type: 'SetAppendix'; value: StagingXcmV4Xcm }
|
|
3585
|
+
| { type: 'ClearError' }
|
|
3586
|
+
| { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } }
|
|
3587
|
+
| { type: 'Trap'; value: bigint }
|
|
3588
|
+
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
|
|
3589
|
+
| { type: 'UnsubscribeVersion' }
|
|
3590
|
+
| { type: 'BurnAsset'; value: StagingXcmV4AssetAssets }
|
|
3591
|
+
| { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets }
|
|
3592
|
+
| { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined }
|
|
3593
|
+
| { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined }
|
|
3594
|
+
| { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
|
|
3595
|
+
| { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } }
|
|
3596
|
+
| {
|
|
3597
|
+
type: 'ExpectPallet';
|
|
3598
|
+
value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
|
|
3599
|
+
}
|
|
3600
|
+
| { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo }
|
|
3601
|
+
| { type: 'ClearTransactStatus' }
|
|
3602
|
+
| { type: 'UniversalOrigin'; value: StagingXcmV4Junction }
|
|
3603
|
+
| {
|
|
3604
|
+
type: 'ExportMessage';
|
|
3605
|
+
value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm };
|
|
3606
|
+
}
|
|
3607
|
+
| { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } }
|
|
3608
|
+
| { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } }
|
|
3609
|
+
| { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } }
|
|
3610
|
+
| { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } }
|
|
3611
|
+
| { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
|
|
3612
|
+
| { type: 'SetTopic'; value: FixedBytes<32> }
|
|
3613
|
+
| { type: 'ClearTopic' }
|
|
3614
|
+
| { type: 'AliasOrigin'; value: StagingXcmV4Location }
|
|
3615
|
+
| {
|
|
3616
|
+
type: 'UnpaidExecution';
|
|
3617
|
+
value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined };
|
|
3618
|
+
};
|
|
3619
|
+
|
|
3620
|
+
export type StagingXcmV4QueryResponseInfo = {
|
|
3621
|
+
destination: StagingXcmV4Location;
|
|
3622
|
+
queryId: bigint;
|
|
3623
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
export type StagingXcmV4AssetAssetFilter =
|
|
3627
|
+
| { type: 'Definite'; value: StagingXcmV4AssetAssets }
|
|
3628
|
+
| { type: 'Wild'; value: StagingXcmV4AssetWildAsset };
|
|
3629
|
+
|
|
3630
|
+
export type StagingXcmV4AssetWildAsset =
|
|
3631
|
+
| { type: 'All' }
|
|
3632
|
+
| { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } }
|
|
3633
|
+
| { type: 'AllCounted'; value: number }
|
|
3634
|
+
| {
|
|
3635
|
+
type: 'AllOfCounted';
|
|
3636
|
+
value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number };
|
|
3637
|
+
};
|
|
3638
|
+
|
|
3639
|
+
export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible';
|
|
3640
|
+
|
|
3346
3641
|
export type StagingXcmExecutorAssetTransferTransferType =
|
|
3347
3642
|
| { type: 'Teleport' }
|
|
3348
3643
|
| { type: 'LocalReserve' }
|
|
@@ -3785,6 +4080,7 @@ export type PeoplePolkadotRuntimeRuntimeCall =
|
|
|
3785
4080
|
| { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall }
|
|
3786
4081
|
| { pallet: 'Timestamp'; palletCall: PalletTimestampCall }
|
|
3787
4082
|
| { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall }
|
|
4083
|
+
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall }
|
|
3788
4084
|
| { pallet: 'Balances'; palletCall: PalletBalancesCall }
|
|
3789
4085
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall }
|
|
3790
4086
|
| { pallet: 'Session'; palletCall: PalletSessionCall }
|
|
@@ -3802,6 +4098,7 @@ export type PeoplePolkadotRuntimeRuntimeCallLike =
|
|
|
3802
4098
|
| { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike }
|
|
3803
4099
|
| { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike }
|
|
3804
4100
|
| { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike }
|
|
4101
|
+
| { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
|
|
3805
4102
|
| { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
|
|
3806
4103
|
| { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
|
|
3807
4104
|
| { pallet: 'Session'; palletCall: PalletSessionCallLike }
|
|
@@ -4644,18 +4941,23 @@ export type PalletIdentityCall =
|
|
|
4644
4941
|
/**
|
|
4645
4942
|
* Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
|
|
4646
4943
|
*
|
|
4647
|
-
* The authority can grant up to `allocation` usernames. To top up
|
|
4648
|
-
*
|
|
4944
|
+
* The authority can grant up to `allocation` usernames. To top up the allocation or
|
|
4945
|
+
* change the account used to grant usernames, this call can be used with the updated
|
|
4946
|
+
* parameters to overwrite the existing configuration.
|
|
4649
4947
|
**/
|
|
4650
4948
|
| { name: 'AddUsernameAuthority'; params: { authority: MultiAddress; suffix: Bytes; allocation: number } }
|
|
4651
4949
|
/**
|
|
4652
4950
|
* Remove `authority` from the username authorities.
|
|
4653
4951
|
**/
|
|
4654
|
-
| { name: 'RemoveUsernameAuthority'; params: { authority: MultiAddress } }
|
|
4952
|
+
| { name: 'RemoveUsernameAuthority'; params: { suffix: Bytes; authority: MultiAddress } }
|
|
4655
4953
|
/**
|
|
4656
4954
|
* Set the username for `who`. Must be called by a username authority.
|
|
4657
4955
|
*
|
|
4658
|
-
*
|
|
4956
|
+
* If `use_allocation` is set, the authority must have a username allocation available to
|
|
4957
|
+
* spend. Otherwise, the authority will need to put up a deposit for registering the
|
|
4958
|
+
* username.
|
|
4959
|
+
*
|
|
4960
|
+
* Users can either pre-sign their usernames or
|
|
4659
4961
|
* accept them later.
|
|
4660
4962
|
*
|
|
4661
4963
|
* Usernames must:
|
|
@@ -4665,7 +4967,12 @@ export type PalletIdentityCall =
|
|
|
4665
4967
|
**/
|
|
4666
4968
|
| {
|
|
4667
4969
|
name: 'SetUsernameFor';
|
|
4668
|
-
params: {
|
|
4970
|
+
params: {
|
|
4971
|
+
who: MultiAddress;
|
|
4972
|
+
username: Bytes;
|
|
4973
|
+
signature?: SpRuntimeMultiSignature | undefined;
|
|
4974
|
+
useAllocation: boolean;
|
|
4975
|
+
};
|
|
4669
4976
|
}
|
|
4670
4977
|
/**
|
|
4671
4978
|
* Accept a given username that an `authority` granted. The call must include the full
|
|
@@ -4683,10 +4990,21 @@ export type PalletIdentityCall =
|
|
|
4683
4990
|
**/
|
|
4684
4991
|
| { name: 'SetPrimaryUsername'; params: { username: Bytes } }
|
|
4685
4992
|
/**
|
|
4686
|
-
*
|
|
4687
|
-
*
|
|
4993
|
+
* Start the process of removing a username by placing it in the unbinding usernames map.
|
|
4994
|
+
* Once the grace period has passed, the username can be deleted by calling
|
|
4995
|
+
* [remove_username](crate::Call::remove_username).
|
|
4996
|
+
**/
|
|
4997
|
+
| { name: 'UnbindUsername'; params: { username: Bytes } }
|
|
4998
|
+
/**
|
|
4999
|
+
* Permanently delete a username which has been unbinding for longer than the grace period.
|
|
5000
|
+
* Caller is refunded the fee if the username expired and the removal was successful.
|
|
4688
5001
|
**/
|
|
4689
|
-
| { name: '
|
|
5002
|
+
| { name: 'RemoveUsername'; params: { username: Bytes } }
|
|
5003
|
+
/**
|
|
5004
|
+
* Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
|
|
5005
|
+
* and slashes any deposit associated with it.
|
|
5006
|
+
**/
|
|
5007
|
+
| { name: 'KillUsername'; params: { username: Bytes } };
|
|
4690
5008
|
|
|
4691
5009
|
export type PalletIdentityCallLike =
|
|
4692
5010
|
/**
|
|
@@ -4876,18 +5194,23 @@ export type PalletIdentityCallLike =
|
|
|
4876
5194
|
/**
|
|
4877
5195
|
* Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
|
|
4878
5196
|
*
|
|
4879
|
-
* The authority can grant up to `allocation` usernames. To top up
|
|
4880
|
-
*
|
|
5197
|
+
* The authority can grant up to `allocation` usernames. To top up the allocation or
|
|
5198
|
+
* change the account used to grant usernames, this call can be used with the updated
|
|
5199
|
+
* parameters to overwrite the existing configuration.
|
|
4881
5200
|
**/
|
|
4882
5201
|
| { name: 'AddUsernameAuthority'; params: { authority: MultiAddressLike; suffix: BytesLike; allocation: number } }
|
|
4883
5202
|
/**
|
|
4884
5203
|
* Remove `authority` from the username authorities.
|
|
4885
5204
|
**/
|
|
4886
|
-
| { name: 'RemoveUsernameAuthority'; params: { authority: MultiAddressLike } }
|
|
5205
|
+
| { name: 'RemoveUsernameAuthority'; params: { suffix: BytesLike; authority: MultiAddressLike } }
|
|
4887
5206
|
/**
|
|
4888
5207
|
* Set the username for `who`. Must be called by a username authority.
|
|
4889
5208
|
*
|
|
4890
|
-
*
|
|
5209
|
+
* If `use_allocation` is set, the authority must have a username allocation available to
|
|
5210
|
+
* spend. Otherwise, the authority will need to put up a deposit for registering the
|
|
5211
|
+
* username.
|
|
5212
|
+
*
|
|
5213
|
+
* Users can either pre-sign their usernames or
|
|
4891
5214
|
* accept them later.
|
|
4892
5215
|
*
|
|
4893
5216
|
* Usernames must:
|
|
@@ -4897,7 +5220,12 @@ export type PalletIdentityCallLike =
|
|
|
4897
5220
|
**/
|
|
4898
5221
|
| {
|
|
4899
5222
|
name: 'SetUsernameFor';
|
|
4900
|
-
params: {
|
|
5223
|
+
params: {
|
|
5224
|
+
who: MultiAddressLike;
|
|
5225
|
+
username: BytesLike;
|
|
5226
|
+
signature?: SpRuntimeMultiSignature | undefined;
|
|
5227
|
+
useAllocation: boolean;
|
|
5228
|
+
};
|
|
4901
5229
|
}
|
|
4902
5230
|
/**
|
|
4903
5231
|
* Accept a given username that an `authority` granted. The call must include the full
|
|
@@ -4915,10 +5243,21 @@ export type PalletIdentityCallLike =
|
|
|
4915
5243
|
**/
|
|
4916
5244
|
| { name: 'SetPrimaryUsername'; params: { username: BytesLike } }
|
|
4917
5245
|
/**
|
|
4918
|
-
*
|
|
4919
|
-
*
|
|
5246
|
+
* Start the process of removing a username by placing it in the unbinding usernames map.
|
|
5247
|
+
* Once the grace period has passed, the username can be deleted by calling
|
|
5248
|
+
* [remove_username](crate::Call::remove_username).
|
|
5249
|
+
**/
|
|
5250
|
+
| { name: 'UnbindUsername'; params: { username: BytesLike } }
|
|
5251
|
+
/**
|
|
5252
|
+
* Permanently delete a username which has been unbinding for longer than the grace period.
|
|
5253
|
+
* Caller is refunded the fee if the username expired and the removal was successful.
|
|
5254
|
+
**/
|
|
5255
|
+
| { name: 'RemoveUsername'; params: { username: BytesLike } }
|
|
5256
|
+
/**
|
|
5257
|
+
* Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
|
|
5258
|
+
* and slashes any deposit associated with it.
|
|
4920
5259
|
**/
|
|
4921
|
-
| { name: '
|
|
5260
|
+
| { name: 'KillUsername'; params: { username: BytesLike } };
|
|
4922
5261
|
|
|
4923
5262
|
export type PeoplePolkadotRuntimePeopleIdentityInfo = {
|
|
4924
5263
|
display: Data;
|
|
@@ -4950,8 +5289,7 @@ export type SpRuntimeMultiSignature =
|
|
|
4950
5289
|
export type PeoplePolkadotRuntimeOriginCaller =
|
|
4951
5290
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
4952
5291
|
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
4953
|
-
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
|
|
4954
|
-
| { type: 'Void'; value: SpCoreVoid };
|
|
5292
|
+
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin };
|
|
4955
5293
|
|
|
4956
5294
|
export type FrameSupportDispatchRawOrigin =
|
|
4957
5295
|
| { type: 'Root' }
|
|
@@ -4959,15 +5297,13 @@ export type FrameSupportDispatchRawOrigin =
|
|
|
4959
5297
|
| { type: 'None' };
|
|
4960
5298
|
|
|
4961
5299
|
export type PalletXcmOrigin =
|
|
4962
|
-
| { type: 'Xcm'; value:
|
|
4963
|
-
| { type: 'Response'; value:
|
|
5300
|
+
| { type: 'Xcm'; value: StagingXcmV5Location }
|
|
5301
|
+
| { type: 'Response'; value: StagingXcmV5Location };
|
|
4964
5302
|
|
|
4965
5303
|
export type CumulusPalletXcmOrigin =
|
|
4966
5304
|
| { type: 'Relay' }
|
|
4967
5305
|
| { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
4968
5306
|
|
|
4969
|
-
export type SpCoreVoid = null;
|
|
4970
|
-
|
|
4971
5307
|
/**
|
|
4972
5308
|
* The `Error` enum of this pallet.
|
|
4973
5309
|
**/
|
|
@@ -5098,7 +5434,14 @@ export type PalletIdentityRegistration = {
|
|
|
5098
5434
|
|
|
5099
5435
|
export type PalletIdentityRegistrarInfo = { account: AccountId32; fee: bigint; fields: bigint };
|
|
5100
5436
|
|
|
5101
|
-
export type PalletIdentityAuthorityProperties = {
|
|
5437
|
+
export type PalletIdentityAuthorityProperties = { accountId: AccountId32; allocation: number };
|
|
5438
|
+
|
|
5439
|
+
export type PalletIdentityUsernameInformation = { owner: AccountId32; provider: PalletIdentityProvider };
|
|
5440
|
+
|
|
5441
|
+
export type PalletIdentityProvider =
|
|
5442
|
+
| { type: 'Allocation' }
|
|
5443
|
+
| { type: 'AuthorityDeposit'; value: bigint }
|
|
5444
|
+
| { type: 'System' };
|
|
5102
5445
|
|
|
5103
5446
|
/**
|
|
5104
5447
|
* The `Error` enum of this pallet.
|
|
@@ -5207,7 +5550,24 @@ export type PalletIdentityError =
|
|
|
5207
5550
|
/**
|
|
5208
5551
|
* The username cannot be forcefully removed because it can still be accepted.
|
|
5209
5552
|
**/
|
|
5210
|
-
| 'NotExpired'
|
|
5553
|
+
| 'NotExpired'
|
|
5554
|
+
/**
|
|
5555
|
+
* The username cannot be removed because it's still in the grace period.
|
|
5556
|
+
**/
|
|
5557
|
+
| 'TooEarly'
|
|
5558
|
+
/**
|
|
5559
|
+
* The username cannot be removed because it is not unbinding.
|
|
5560
|
+
**/
|
|
5561
|
+
| 'NotUnbinding'
|
|
5562
|
+
/**
|
|
5563
|
+
* The username cannot be unbound because it is already unbinding.
|
|
5564
|
+
**/
|
|
5565
|
+
| 'AlreadyUnbinding'
|
|
5566
|
+
/**
|
|
5567
|
+
* The action cannot be performed because of insufficient privileges (e.g. authority
|
|
5568
|
+
* trying to unbind a username provided by the system).
|
|
5569
|
+
**/
|
|
5570
|
+
| 'InsufficientPrivileges';
|
|
5211
5571
|
|
|
5212
5572
|
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
5213
5573
|
|
|
@@ -5254,7 +5614,9 @@ export type SpRuntimeTransactionValidityInvalidTransaction =
|
|
|
5254
5614
|
| { type: 'Custom'; value: number }
|
|
5255
5615
|
| { type: 'BadMandatory' }
|
|
5256
5616
|
| { type: 'MandatoryValidation' }
|
|
5257
|
-
| { type: 'BadSigner' }
|
|
5617
|
+
| { type: 'BadSigner' }
|
|
5618
|
+
| { type: 'IndeterminateImplicit' }
|
|
5619
|
+
| { type: 'UnknownOrigin' };
|
|
5258
5620
|
|
|
5259
5621
|
export type SpRuntimeTransactionValidityUnknownTransaction =
|
|
5260
5622
|
| { type: 'CannotLookup' }
|
|
@@ -5316,7 +5678,7 @@ export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
|
5316
5678
|
export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
|
|
5317
5679
|
|
|
5318
5680
|
export type XcmRuntimeApisDryRunXcmDryRunEffects = {
|
|
5319
|
-
executionResult:
|
|
5681
|
+
executionResult: StagingXcmV5TraitsOutcome;
|
|
5320
5682
|
emittedEvents: Array<PeoplePolkadotRuntimeRuntimeEvent>;
|
|
5321
5683
|
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
5322
5684
|
};
|
|
@@ -5337,6 +5699,7 @@ export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes;
|
|
|
5337
5699
|
export type PeoplePolkadotRuntimeRuntimeError =
|
|
5338
5700
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
5339
5701
|
| { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
|
|
5702
|
+
| { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError }
|
|
5340
5703
|
| { pallet: 'Balances'; palletError: PalletBalancesError }
|
|
5341
5704
|
| { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
|
|
5342
5705
|
| { pallet: 'Session'; palletError: PalletSessionError }
|