@dedot/chaintypes 0.47.0 → 0.48.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/package.json +2 -2
- package/westend/index.d.ts +1 -1
- package/westend/types.d.ts +12 -6
- package/westend-people/consts.d.ts +37 -0
- package/westend-people/errors.d.ts +35 -0
- package/westend-people/events.d.ts +207 -31
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +71 -23
- package/westend-people/runtime.d.ts +75 -4
- package/westend-people/tx.d.ts +178 -14
- package/westend-people/types.d.ts +701 -324
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "ca317b80af6d8995b6aa9645bef7f8668868c013",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/westend/index.d.ts
CHANGED
package/westend/types.d.ts
CHANGED
|
@@ -9519,7 +9519,14 @@ export type StagingXcmV5Instruction =
|
|
|
9519
9519
|
type: 'TransferReserveAsset';
|
|
9520
9520
|
value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
9521
9521
|
}
|
|
9522
|
-
| {
|
|
9522
|
+
| {
|
|
9523
|
+
type: 'Transact';
|
|
9524
|
+
value: {
|
|
9525
|
+
originKind: XcmV3OriginKind;
|
|
9526
|
+
fallbackMaxWeight?: SpWeightsWeightV2Weight | undefined;
|
|
9527
|
+
call: XcmDoubleEncoded;
|
|
9528
|
+
};
|
|
9529
|
+
}
|
|
9523
9530
|
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
9524
9531
|
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
9525
9532
|
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
@@ -9552,7 +9559,6 @@ export type StagingXcmV5Instruction =
|
|
|
9552
9559
|
| { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
|
|
9553
9560
|
| { type: 'SetAppendix'; value: StagingXcmV5Xcm }
|
|
9554
9561
|
| { type: 'ClearError' }
|
|
9555
|
-
| { type: 'SetAssetClaimer'; value: { location: StagingXcmV5Location } }
|
|
9556
9562
|
| { type: 'ClaimAsset'; value: { assets: StagingXcmV5AssetAssets; ticket: StagingXcmV5Location } }
|
|
9557
9563
|
| { type: 'Trap'; value: bigint }
|
|
9558
9564
|
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
|
|
@@ -9597,10 +9603,8 @@ export type StagingXcmV5Instruction =
|
|
|
9597
9603
|
remoteXcm: StagingXcmV5Xcm;
|
|
9598
9604
|
};
|
|
9599
9605
|
}
|
|
9600
|
-
| {
|
|
9601
|
-
|
|
9602
|
-
value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm };
|
|
9603
|
-
};
|
|
9606
|
+
| { type: 'ExecuteWithOrigin'; value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm } }
|
|
9607
|
+
| { type: 'SetHints'; value: { hints: Array<StagingXcmV5Hint> } };
|
|
9604
9608
|
|
|
9605
9609
|
export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
|
|
9606
9610
|
|
|
@@ -9704,6 +9708,8 @@ export type StagingXcmV5AssetAssetTransferFilter =
|
|
|
9704
9708
|
| { type: 'ReserveDeposit'; value: StagingXcmV5AssetAssetFilter }
|
|
9705
9709
|
| { type: 'ReserveWithdraw'; value: StagingXcmV5AssetAssetFilter };
|
|
9706
9710
|
|
|
9711
|
+
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
9712
|
+
|
|
9707
9713
|
/**
|
|
9708
9714
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
9709
9715
|
**/
|
|
@@ -436,6 +436,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
436
436
|
**/
|
|
437
437
|
byteDeposit: bigint;
|
|
438
438
|
|
|
439
|
+
/**
|
|
440
|
+
* The amount held on deposit per registered username. This value should change only in
|
|
441
|
+
* runtime upgrades with proper migration of existing deposits.
|
|
442
|
+
**/
|
|
443
|
+
usernameDeposit: bigint;
|
|
444
|
+
|
|
439
445
|
/**
|
|
440
446
|
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
441
447
|
* that one storage item's value will increase by the size of an account ID, and there will
|
|
@@ -459,6 +465,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
459
465
|
**/
|
|
460
466
|
pendingUsernameExpiration: number;
|
|
461
467
|
|
|
468
|
+
/**
|
|
469
|
+
* The number of blocks that must pass to enable the permanent deletion of a username by
|
|
470
|
+
* its respective authority.
|
|
471
|
+
**/
|
|
472
|
+
usernameGracePeriod: number;
|
|
473
|
+
|
|
462
474
|
/**
|
|
463
475
|
* The maximum length of a suffix.
|
|
464
476
|
**/
|
|
@@ -474,6 +486,31 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
474
486
|
**/
|
|
475
487
|
[name: string]: any;
|
|
476
488
|
};
|
|
489
|
+
/**
|
|
490
|
+
* Pallet `MultiBlockMigrations`'s constants
|
|
491
|
+
**/
|
|
492
|
+
multiBlockMigrations: {
|
|
493
|
+
/**
|
|
494
|
+
* The maximal length of an encoded cursor.
|
|
495
|
+
*
|
|
496
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
497
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
498
|
+
**/
|
|
499
|
+
cursorMaxLen: number;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The maximal length of an encoded identifier.
|
|
503
|
+
*
|
|
504
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
505
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
506
|
+
**/
|
|
507
|
+
identifierMaxLen: number;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Generic pallet constant
|
|
511
|
+
**/
|
|
512
|
+
[name: string]: any;
|
|
513
|
+
};
|
|
477
514
|
/**
|
|
478
515
|
* Pallet `IdentityMigrator`'s constants
|
|
479
516
|
**/
|
|
@@ -810,6 +810,41 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
810
810
|
**/
|
|
811
811
|
NotExpired: GenericPalletError<Rv>;
|
|
812
812
|
|
|
813
|
+
/**
|
|
814
|
+
* The username cannot be removed because it's still in the grace period.
|
|
815
|
+
**/
|
|
816
|
+
TooEarly: GenericPalletError<Rv>;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* The username cannot be removed because it is not unbinding.
|
|
820
|
+
**/
|
|
821
|
+
NotUnbinding: GenericPalletError<Rv>;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* The username cannot be unbound because it is already unbinding.
|
|
825
|
+
**/
|
|
826
|
+
AlreadyUnbinding: GenericPalletError<Rv>;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* The action cannot be performed because of insufficient privileges (e.g. authority
|
|
830
|
+
* trying to unbind a username provided by the system).
|
|
831
|
+
**/
|
|
832
|
+
InsufficientPrivileges: GenericPalletError<Rv>;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Generic pallet error
|
|
836
|
+
**/
|
|
837
|
+
[error: string]: GenericPalletError<Rv>;
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Pallet `MultiBlockMigrations`'s errors
|
|
841
|
+
**/
|
|
842
|
+
multiBlockMigrations: {
|
|
843
|
+
/**
|
|
844
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
845
|
+
**/
|
|
846
|
+
Ongoing: GenericPalletError<Rv>;
|
|
847
|
+
|
|
813
848
|
/**
|
|
814
849
|
* Generic pallet error
|
|
815
850
|
**/
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { DispatchError, AccountId32, H256, FixedBytes, Result, Bytes } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
|
+
FrameSystemDispatchEventInfo,
|
|
6
7
|
SpWeightsWeightV2Weight,
|
|
7
8
|
FrameSupportTokensMiscBalanceStatus,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
StagingXcmV5TraitsOutcome,
|
|
10
|
+
StagingXcmV5Location,
|
|
11
|
+
StagingXcmV5Xcm,
|
|
12
|
+
StagingXcmV5Response,
|
|
12
13
|
XcmVersionedAssets,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
StagingXcmV5AssetAssets,
|
|
15
|
+
XcmV5TraitsError,
|
|
15
16
|
XcmVersionedLocation,
|
|
16
17
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
17
18
|
FrameSupportMessagesProcessMessageError,
|
|
@@ -27,7 +28,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
27
28
|
/**
|
|
28
29
|
* An extrinsic completed successfully.
|
|
29
30
|
**/
|
|
30
|
-
ExtrinsicSuccess: GenericPalletEvent<
|
|
31
|
+
ExtrinsicSuccess: GenericPalletEvent<
|
|
32
|
+
Rv,
|
|
33
|
+
'System',
|
|
34
|
+
'ExtrinsicSuccess',
|
|
35
|
+
{ dispatchInfo: FrameSystemDispatchEventInfo }
|
|
36
|
+
>;
|
|
31
37
|
|
|
32
38
|
/**
|
|
33
39
|
* An extrinsic failed.
|
|
@@ -36,7 +42,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
36
42
|
Rv,
|
|
37
43
|
'System',
|
|
38
44
|
'ExtrinsicFailed',
|
|
39
|
-
{ dispatchError: DispatchError; dispatchInfo:
|
|
45
|
+
{ dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
|
|
40
46
|
>;
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -395,7 +401,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
395
401
|
/**
|
|
396
402
|
* Execution of an XCM message was attempted.
|
|
397
403
|
**/
|
|
398
|
-
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome:
|
|
404
|
+
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
399
405
|
|
|
400
406
|
/**
|
|
401
407
|
* A XCM message was sent.
|
|
@@ -405,9 +411,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
405
411
|
'PolkadotXcm',
|
|
406
412
|
'Sent',
|
|
407
413
|
{
|
|
408
|
-
origin:
|
|
409
|
-
destination:
|
|
410
|
-
message:
|
|
414
|
+
origin: StagingXcmV5Location;
|
|
415
|
+
destination: StagingXcmV5Location;
|
|
416
|
+
message: StagingXcmV5Xcm;
|
|
411
417
|
messageId: FixedBytes<32>;
|
|
412
418
|
}
|
|
413
419
|
>;
|
|
@@ -421,7 +427,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
421
427
|
Rv,
|
|
422
428
|
'PolkadotXcm',
|
|
423
429
|
'UnexpectedResponse',
|
|
424
|
-
{ origin:
|
|
430
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
425
431
|
>;
|
|
426
432
|
|
|
427
433
|
/**
|
|
@@ -432,7 +438,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
432
438
|
Rv,
|
|
433
439
|
'PolkadotXcm',
|
|
434
440
|
'ResponseReady',
|
|
435
|
-
{ queryId: bigint; response:
|
|
441
|
+
{ queryId: bigint; response: StagingXcmV5Response }
|
|
436
442
|
>;
|
|
437
443
|
|
|
438
444
|
/**
|
|
@@ -496,7 +502,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
496
502
|
Rv,
|
|
497
503
|
'PolkadotXcm',
|
|
498
504
|
'InvalidResponder',
|
|
499
|
-
{ origin:
|
|
505
|
+
{ origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
|
|
500
506
|
>;
|
|
501
507
|
|
|
502
508
|
/**
|
|
@@ -512,7 +518,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
512
518
|
Rv,
|
|
513
519
|
'PolkadotXcm',
|
|
514
520
|
'InvalidResponderVersion',
|
|
515
|
-
{ origin:
|
|
521
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
516
522
|
>;
|
|
517
523
|
|
|
518
524
|
/**
|
|
@@ -527,7 +533,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
527
533
|
Rv,
|
|
528
534
|
'PolkadotXcm',
|
|
529
535
|
'AssetsTrapped',
|
|
530
|
-
{ hash: H256; origin:
|
|
536
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
531
537
|
>;
|
|
532
538
|
|
|
533
539
|
/**
|
|
@@ -539,7 +545,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
539
545
|
Rv,
|
|
540
546
|
'PolkadotXcm',
|
|
541
547
|
'VersionChangeNotified',
|
|
542
|
-
{ destination:
|
|
548
|
+
{ destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
543
549
|
>;
|
|
544
550
|
|
|
545
551
|
/**
|
|
@@ -550,7 +556,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
550
556
|
Rv,
|
|
551
557
|
'PolkadotXcm',
|
|
552
558
|
'SupportedVersionChanged',
|
|
553
|
-
{ location:
|
|
559
|
+
{ location: StagingXcmV5Location; version: number }
|
|
554
560
|
>;
|
|
555
561
|
|
|
556
562
|
/**
|
|
@@ -561,7 +567,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
561
567
|
Rv,
|
|
562
568
|
'PolkadotXcm',
|
|
563
569
|
'NotifyTargetSendFail',
|
|
564
|
-
{ location:
|
|
570
|
+
{ location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
|
|
565
571
|
>;
|
|
566
572
|
|
|
567
573
|
/**
|
|
@@ -588,7 +594,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
588
594
|
Rv,
|
|
589
595
|
'PolkadotXcm',
|
|
590
596
|
'InvalidQuerierVersion',
|
|
591
|
-
{ origin:
|
|
597
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
592
598
|
>;
|
|
593
599
|
|
|
594
600
|
/**
|
|
@@ -601,10 +607,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
601
607
|
'PolkadotXcm',
|
|
602
608
|
'InvalidQuerier',
|
|
603
609
|
{
|
|
604
|
-
origin:
|
|
610
|
+
origin: StagingXcmV5Location;
|
|
605
611
|
queryId: bigint;
|
|
606
|
-
expectedQuerier:
|
|
607
|
-
maybeActualQuerier?:
|
|
612
|
+
expectedQuerier: StagingXcmV5Location;
|
|
613
|
+
maybeActualQuerier?: StagingXcmV5Location | undefined;
|
|
608
614
|
}
|
|
609
615
|
>;
|
|
610
616
|
|
|
@@ -616,7 +622,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
616
622
|
Rv,
|
|
617
623
|
'PolkadotXcm',
|
|
618
624
|
'VersionNotifyStarted',
|
|
619
|
-
{ destination:
|
|
625
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
620
626
|
>;
|
|
621
627
|
|
|
622
628
|
/**
|
|
@@ -626,7 +632,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
626
632
|
Rv,
|
|
627
633
|
'PolkadotXcm',
|
|
628
634
|
'VersionNotifyRequested',
|
|
629
|
-
{ destination:
|
|
635
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
630
636
|
>;
|
|
631
637
|
|
|
632
638
|
/**
|
|
@@ -637,7 +643,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
637
643
|
Rv,
|
|
638
644
|
'PolkadotXcm',
|
|
639
645
|
'VersionNotifyUnrequested',
|
|
640
|
-
{ destination:
|
|
646
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
641
647
|
>;
|
|
642
648
|
|
|
643
649
|
/**
|
|
@@ -647,7 +653,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
647
653
|
Rv,
|
|
648
654
|
'PolkadotXcm',
|
|
649
655
|
'FeesPaid',
|
|
650
|
-
{ paying:
|
|
656
|
+
{ paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
|
|
651
657
|
>;
|
|
652
658
|
|
|
653
659
|
/**
|
|
@@ -657,7 +663,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
657
663
|
Rv,
|
|
658
664
|
'PolkadotXcm',
|
|
659
665
|
'AssetsClaimed',
|
|
660
|
-
{ hash: H256; origin:
|
|
666
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
661
667
|
>;
|
|
662
668
|
|
|
663
669
|
/**
|
|
@@ -694,7 +700,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
694
700
|
Rv,
|
|
695
701
|
'CumulusXcm',
|
|
696
702
|
'ExecutedDownward',
|
|
697
|
-
[FixedBytes<32>,
|
|
703
|
+
[FixedBytes<32>, StagingXcmV5TraitsOutcome]
|
|
698
704
|
>;
|
|
699
705
|
|
|
700
706
|
/**
|
|
@@ -1033,6 +1039,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1033
1039
|
{ sub: AccountId32; main: AccountId32; deposit: bigint }
|
|
1034
1040
|
>;
|
|
1035
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* An account's sub-identities were set (in bulk).
|
|
1044
|
+
**/
|
|
1045
|
+
SubIdentitiesSet: GenericPalletEvent<
|
|
1046
|
+
Rv,
|
|
1047
|
+
'Identity',
|
|
1048
|
+
'SubIdentitiesSet',
|
|
1049
|
+
{ main: AccountId32; numberOfSubs: number; newDeposit: bigint }
|
|
1050
|
+
>;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* A given sub-account's associated name was changed by its super-identity.
|
|
1054
|
+
**/
|
|
1055
|
+
SubIdentityRenamed: GenericPalletEvent<
|
|
1056
|
+
Rv,
|
|
1057
|
+
'Identity',
|
|
1058
|
+
'SubIdentityRenamed',
|
|
1059
|
+
{ sub: AccountId32; main: AccountId32 }
|
|
1060
|
+
>;
|
|
1061
|
+
|
|
1036
1062
|
/**
|
|
1037
1063
|
* A sub-identity was removed from an identity and the deposit freed.
|
|
1038
1064
|
**/
|
|
@@ -1100,6 +1126,156 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1100
1126
|
{ who: AccountId32; username: Bytes }
|
|
1101
1127
|
>;
|
|
1102
1128
|
|
|
1129
|
+
/**
|
|
1130
|
+
* A username has been unbound.
|
|
1131
|
+
**/
|
|
1132
|
+
UsernameUnbound: GenericPalletEvent<Rv, 'Identity', 'UsernameUnbound', { username: Bytes }>;
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* A username has been removed.
|
|
1136
|
+
**/
|
|
1137
|
+
UsernameRemoved: GenericPalletEvent<Rv, 'Identity', 'UsernameRemoved', { username: Bytes }>;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* A username has been killed.
|
|
1141
|
+
**/
|
|
1142
|
+
UsernameKilled: GenericPalletEvent<Rv, 'Identity', 'UsernameKilled', { username: Bytes }>;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Generic pallet event
|
|
1146
|
+
**/
|
|
1147
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
1148
|
+
};
|
|
1149
|
+
/**
|
|
1150
|
+
* Pallet `MultiBlockMigrations`'s events
|
|
1151
|
+
**/
|
|
1152
|
+
multiBlockMigrations: {
|
|
1153
|
+
/**
|
|
1154
|
+
* A Runtime upgrade started.
|
|
1155
|
+
*
|
|
1156
|
+
* Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
|
|
1157
|
+
**/
|
|
1158
|
+
UpgradeStarted: GenericPalletEvent<
|
|
1159
|
+
Rv,
|
|
1160
|
+
'MultiBlockMigrations',
|
|
1161
|
+
'UpgradeStarted',
|
|
1162
|
+
{
|
|
1163
|
+
/**
|
|
1164
|
+
* The number of migrations that this upgrade contains.
|
|
1165
|
+
*
|
|
1166
|
+
* This can be used to design a progress indicator in combination with counting the
|
|
1167
|
+
* `MigrationCompleted` and `MigrationSkipped` events.
|
|
1168
|
+
**/
|
|
1169
|
+
migrations: number;
|
|
1170
|
+
}
|
|
1171
|
+
>;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* The current runtime upgrade completed.
|
|
1175
|
+
*
|
|
1176
|
+
* This implies that all of its migrations completed successfully as well.
|
|
1177
|
+
**/
|
|
1178
|
+
UpgradeCompleted: GenericPalletEvent<Rv, 'MultiBlockMigrations', 'UpgradeCompleted', null>;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Runtime upgrade failed.
|
|
1182
|
+
*
|
|
1183
|
+
* This is very bad and will require governance intervention.
|
|
1184
|
+
**/
|
|
1185
|
+
UpgradeFailed: GenericPalletEvent<Rv, 'MultiBlockMigrations', 'UpgradeFailed', null>;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* A migration was skipped since it was already executed in the past.
|
|
1189
|
+
**/
|
|
1190
|
+
MigrationSkipped: GenericPalletEvent<
|
|
1191
|
+
Rv,
|
|
1192
|
+
'MultiBlockMigrations',
|
|
1193
|
+
'MigrationSkipped',
|
|
1194
|
+
{
|
|
1195
|
+
/**
|
|
1196
|
+
* The index of the skipped migration within the [`Config::Migrations`] list.
|
|
1197
|
+
**/
|
|
1198
|
+
index: number;
|
|
1199
|
+
}
|
|
1200
|
+
>;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* A migration progressed.
|
|
1204
|
+
**/
|
|
1205
|
+
MigrationAdvanced: GenericPalletEvent<
|
|
1206
|
+
Rv,
|
|
1207
|
+
'MultiBlockMigrations',
|
|
1208
|
+
'MigrationAdvanced',
|
|
1209
|
+
{
|
|
1210
|
+
/**
|
|
1211
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
1212
|
+
**/
|
|
1213
|
+
index: number;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* The number of blocks that this migration took so far.
|
|
1217
|
+
**/
|
|
1218
|
+
took: number;
|
|
1219
|
+
}
|
|
1220
|
+
>;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* A Migration completed.
|
|
1224
|
+
**/
|
|
1225
|
+
MigrationCompleted: GenericPalletEvent<
|
|
1226
|
+
Rv,
|
|
1227
|
+
'MultiBlockMigrations',
|
|
1228
|
+
'MigrationCompleted',
|
|
1229
|
+
{
|
|
1230
|
+
/**
|
|
1231
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
1232
|
+
**/
|
|
1233
|
+
index: number;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* The number of blocks that this migration took so far.
|
|
1237
|
+
**/
|
|
1238
|
+
took: number;
|
|
1239
|
+
}
|
|
1240
|
+
>;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* A Migration failed.
|
|
1244
|
+
*
|
|
1245
|
+
* This implies that the whole upgrade failed and governance intervention is required.
|
|
1246
|
+
**/
|
|
1247
|
+
MigrationFailed: GenericPalletEvent<
|
|
1248
|
+
Rv,
|
|
1249
|
+
'MultiBlockMigrations',
|
|
1250
|
+
'MigrationFailed',
|
|
1251
|
+
{
|
|
1252
|
+
/**
|
|
1253
|
+
* The index of the migration within the [`Config::Migrations`] list.
|
|
1254
|
+
**/
|
|
1255
|
+
index: number;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* The number of blocks that this migration took so far.
|
|
1259
|
+
**/
|
|
1260
|
+
took: number;
|
|
1261
|
+
}
|
|
1262
|
+
>;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* The set of historical migrations has been cleared.
|
|
1266
|
+
**/
|
|
1267
|
+
HistoricCleared: GenericPalletEvent<
|
|
1268
|
+
Rv,
|
|
1269
|
+
'MultiBlockMigrations',
|
|
1270
|
+
'HistoricCleared',
|
|
1271
|
+
{
|
|
1272
|
+
/**
|
|
1273
|
+
* Should be passed to `clear_historic` in a successive call.
|
|
1274
|
+
**/
|
|
1275
|
+
nextCursor?: Bytes | undefined;
|
|
1276
|
+
}
|
|
1277
|
+
>;
|
|
1278
|
+
|
|
1103
1279
|
/**
|
|
1104
1280
|
* Generic pallet event
|
|
1105
1281
|
**/
|
|
@@ -23,7 +23,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: WestendPeopleApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1017001
|
|
27
27
|
**/
|
|
28
28
|
export interface WestendPeopleApi {
|
|
29
29
|
legacy: VersionedWestendPeopleApi<RpcLegacy>;
|