@dedot/chaintypes 0.47.0 → 0.49.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-asset-hub/errors.d.ts +0 -5
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +9 -31
- package/westend-asset-hub/runtime.d.ts +16 -9
- package/westend-asset-hub/tx.d.ts +33 -1
- package/westend-asset-hub/types.d.ts +36 -44
- 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
|
@@ -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>;
|
|
@@ -49,7 +49,7 @@ import type {
|
|
|
49
49
|
PalletXcmVersionMigrationStage,
|
|
50
50
|
PalletXcmRemoteLockedFungibleRecord,
|
|
51
51
|
XcmVersionedAssetId,
|
|
52
|
-
|
|
52
|
+
StagingXcmV5Xcm,
|
|
53
53
|
PalletMessageQueueBookState,
|
|
54
54
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
55
55
|
PalletMessageQueuePage,
|
|
@@ -59,6 +59,9 @@ import type {
|
|
|
59
59
|
PalletIdentityRegistration,
|
|
60
60
|
PalletIdentityRegistrarInfo,
|
|
61
61
|
PalletIdentityAuthorityProperties,
|
|
62
|
+
PalletIdentityUsernameInformation,
|
|
63
|
+
PalletIdentityProvider,
|
|
64
|
+
PalletMigrationsMigrationCursor,
|
|
62
65
|
} from './types';
|
|
63
66
|
|
|
64
67
|
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
@@ -1046,9 +1049,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1046
1049
|
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
1047
1050
|
* implementation in the XCM executor configuration.
|
|
1048
1051
|
*
|
|
1049
|
-
* @param {Callback<
|
|
1052
|
+
* @param {Callback<StagingXcmV5Xcm | undefined> =} callback
|
|
1050
1053
|
**/
|
|
1051
|
-
recordedXcm: GenericStorageQuery<Rv, () =>
|
|
1054
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
1052
1055
|
|
|
1053
1056
|
/**
|
|
1054
1057
|
* Generic pallet storage query
|
|
@@ -1161,13 +1164,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1161
1164
|
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1162
1165
|
*
|
|
1163
1166
|
* @param {AccountId32Like} arg
|
|
1164
|
-
* @param {Callback<
|
|
1167
|
+
* @param {Callback<PalletIdentityRegistration | undefined> =} callback
|
|
1165
1168
|
**/
|
|
1166
|
-
identityOf: GenericStorageQuery<
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1169
|
+
identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Identifies the primary username of an account.
|
|
1173
|
+
*
|
|
1174
|
+
* @param {AccountId32Like} arg
|
|
1175
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1176
|
+
**/
|
|
1177
|
+
usernameOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => Bytes | undefined, AccountId32>;
|
|
1171
1178
|
|
|
1172
1179
|
/**
|
|
1173
1180
|
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
@@ -1203,39 +1210,80 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1203
1210
|
/**
|
|
1204
1211
|
* A map of the accounts who are authorized to grant usernames.
|
|
1205
1212
|
*
|
|
1206
|
-
* @param {
|
|
1213
|
+
* @param {BytesLike} arg
|
|
1207
1214
|
* @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
|
|
1208
1215
|
**/
|
|
1209
|
-
|
|
1210
|
-
Rv,
|
|
1211
|
-
(arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
|
|
1212
|
-
AccountId32
|
|
1213
|
-
>;
|
|
1216
|
+
authorityOf: GenericStorageQuery<Rv, (arg: BytesLike) => PalletIdentityAuthorityProperties | undefined, Bytes>;
|
|
1214
1217
|
|
|
1215
1218
|
/**
|
|
1216
|
-
* Reverse lookup from `username` to the `AccountId` that has registered it
|
|
1217
|
-
* be a key in the `
|
|
1219
|
+
* Reverse lookup from `username` to the `AccountId` that has registered it and the provider of
|
|
1220
|
+
* the username. The `owner` value should be a key in the `UsernameOf` map, but it may not if
|
|
1221
|
+
* the user has cleared their username or it has been removed.
|
|
1218
1222
|
*
|
|
1219
|
-
* Multiple usernames may map to the same `AccountId`, but `
|
|
1223
|
+
* Multiple usernames may map to the same `AccountId`, but `UsernameOf` will only map to one
|
|
1220
1224
|
* primary username.
|
|
1221
1225
|
*
|
|
1222
1226
|
* @param {BytesLike} arg
|
|
1223
|
-
* @param {Callback<
|
|
1227
|
+
* @param {Callback<PalletIdentityUsernameInformation | undefined> =} callback
|
|
1224
1228
|
**/
|
|
1225
|
-
|
|
1229
|
+
usernameInfoOf: GenericStorageQuery<Rv, (arg: BytesLike) => PalletIdentityUsernameInformation | undefined, Bytes>;
|
|
1226
1230
|
|
|
1227
1231
|
/**
|
|
1228
1232
|
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
1229
1233
|
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
1230
1234
|
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
1231
|
-
* [`Call::accept_username`
|
|
1235
|
+
* [accept_username](`Call::accept_username`).
|
|
1232
1236
|
*
|
|
1233
1237
|
* First tuple item is the account and second is the acceptance deadline.
|
|
1234
1238
|
*
|
|
1235
1239
|
* @param {BytesLike} arg
|
|
1236
|
-
* @param {Callback<[AccountId32, number] | undefined> =} callback
|
|
1240
|
+
* @param {Callback<[AccountId32, number, PalletIdentityProvider] | undefined> =} callback
|
|
1241
|
+
**/
|
|
1242
|
+
pendingUsernames: GenericStorageQuery<
|
|
1243
|
+
Rv,
|
|
1244
|
+
(arg: BytesLike) => [AccountId32, number, PalletIdentityProvider] | undefined,
|
|
1245
|
+
Bytes
|
|
1246
|
+
>;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Usernames for which the authority that granted them has started the removal process by
|
|
1250
|
+
* unbinding them. Each unbinding username maps to its grace period expiry, which is the first
|
|
1251
|
+
* block in which the username could be deleted through a
|
|
1252
|
+
* [remove_username](`Call::remove_username`) call.
|
|
1253
|
+
*
|
|
1254
|
+
* @param {BytesLike} arg
|
|
1255
|
+
* @param {Callback<number | undefined> =} callback
|
|
1256
|
+
**/
|
|
1257
|
+
unbindingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => number | undefined, Bytes>;
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Generic pallet storage query
|
|
1261
|
+
**/
|
|
1262
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1263
|
+
};
|
|
1264
|
+
/**
|
|
1265
|
+
* Pallet `MultiBlockMigrations`'s storage queries
|
|
1266
|
+
**/
|
|
1267
|
+
multiBlockMigrations: {
|
|
1268
|
+
/**
|
|
1269
|
+
* The currently active migration to run and its cursor.
|
|
1270
|
+
*
|
|
1271
|
+
* `None` indicates that no migration is running.
|
|
1272
|
+
*
|
|
1273
|
+
* @param {Callback<PalletMigrationsMigrationCursor | undefined> =} callback
|
|
1274
|
+
**/
|
|
1275
|
+
cursor: GenericStorageQuery<Rv, () => PalletMigrationsMigrationCursor | undefined>;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Set of all successfully executed migrations.
|
|
1279
|
+
*
|
|
1280
|
+
* This is used as blacklist, to not re-execute migrations that have not been removed from the
|
|
1281
|
+
* codebase yet. Governance can regularly clear this out via `clear_historic`.
|
|
1282
|
+
*
|
|
1283
|
+
* @param {BytesLike} arg
|
|
1284
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1237
1285
|
**/
|
|
1238
|
-
|
|
1286
|
+
historic: GenericStorageQuery<Rv, (arg: BytesLike) => [] | undefined, Bytes>;
|
|
1239
1287
|
|
|
1240
1288
|
/**
|
|
1241
1289
|
* Generic pallet storage query
|
|
@@ -42,6 +42,10 @@ import type {
|
|
|
42
42
|
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
43
43
|
XcmRuntimeApisConversionsError,
|
|
44
44
|
CumulusPrimitivesCoreCollationInfo,
|
|
45
|
+
PolkadotPrimitivesVstagingCoreSelector,
|
|
46
|
+
PolkadotPrimitivesVstagingClaimQueueOffset,
|
|
47
|
+
XcmRuntimeApisTrustedQueryError,
|
|
48
|
+
XcmVersionedAsset,
|
|
45
49
|
} from './types';
|
|
46
50
|
|
|
47
51
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -577,6 +581,25 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
577
581
|
**/
|
|
578
582
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
579
583
|
};
|
|
584
|
+
/**
|
|
585
|
+
* @runtimeapi: GetCoreSelectorApi - 0x695c80446b8b3d4e
|
|
586
|
+
**/
|
|
587
|
+
getCoreSelectorApi: {
|
|
588
|
+
/**
|
|
589
|
+
* Retrieve core selector and claim queue offset for the next block.
|
|
590
|
+
*
|
|
591
|
+
* @callname: GetCoreSelectorApi_core_selector
|
|
592
|
+
**/
|
|
593
|
+
coreSelector: GenericRuntimeApiMethod<
|
|
594
|
+
Rv,
|
|
595
|
+
() => Promise<[PolkadotPrimitivesVstagingCoreSelector, PolkadotPrimitivesVstagingClaimQueueOffset]>
|
|
596
|
+
>;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Generic runtime api call
|
|
600
|
+
**/
|
|
601
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
602
|
+
};
|
|
580
603
|
/**
|
|
581
604
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
582
605
|
**/
|
|
@@ -585,9 +608,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
585
608
|
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
586
609
|
* storage.
|
|
587
610
|
*
|
|
588
|
-
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
589
|
-
*
|
|
590
|
-
* deserialization fails, an error
|
|
611
|
+
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
612
|
+
* `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
|
|
613
|
+
* provided JSON blob is incorrect or incomplete or the deserialization fails, an error
|
|
614
|
+
* is returned.
|
|
591
615
|
*
|
|
592
616
|
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
593
617
|
* defaults will be used.
|
|
@@ -601,7 +625,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
601
625
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
602
626
|
* `id`.
|
|
603
627
|
*
|
|
604
|
-
* If `id` is `None` the function
|
|
628
|
+
* If `id` is `None` the function should return JSON blob representation of the default
|
|
605
629
|
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
606
630
|
* `RuntimeGenesisConfig`.
|
|
607
631
|
*
|
|
@@ -628,6 +652,53 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
628
652
|
**/
|
|
629
653
|
presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
|
|
630
654
|
|
|
655
|
+
/**
|
|
656
|
+
* Generic runtime api call
|
|
657
|
+
**/
|
|
658
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
|
|
662
|
+
**/
|
|
663
|
+
trustedQueryApi: {
|
|
664
|
+
/**
|
|
665
|
+
* Returns if the location is a trusted reserve for the asset.
|
|
666
|
+
*
|
|
667
|
+
* # Arguments
|
|
668
|
+
* * `asset`: `VersionedAsset`.
|
|
669
|
+
* * `location`: `VersionedLocation`.
|
|
670
|
+
*
|
|
671
|
+
* @callname: TrustedQueryApi_is_trusted_reserve
|
|
672
|
+
* @param {XcmVersionedAsset} asset
|
|
673
|
+
* @param {XcmVersionedLocation} location
|
|
674
|
+
**/
|
|
675
|
+
isTrustedReserve: GenericRuntimeApiMethod<
|
|
676
|
+
Rv,
|
|
677
|
+
(
|
|
678
|
+
asset: XcmVersionedAsset,
|
|
679
|
+
location: XcmVersionedLocation,
|
|
680
|
+
) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
|
|
681
|
+
>;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Returns if the asset can be teleported to the location.
|
|
685
|
+
*
|
|
686
|
+
* # Arguments
|
|
687
|
+
* * `asset`: `VersionedAsset`.
|
|
688
|
+
* * `location`: `VersionedLocation`.
|
|
689
|
+
*
|
|
690
|
+
* @callname: TrustedQueryApi_is_trusted_teleporter
|
|
691
|
+
* @param {XcmVersionedAsset} asset
|
|
692
|
+
* @param {XcmVersionedLocation} location
|
|
693
|
+
**/
|
|
694
|
+
isTrustedTeleporter: GenericRuntimeApiMethod<
|
|
695
|
+
Rv,
|
|
696
|
+
(
|
|
697
|
+
asset: XcmVersionedAsset,
|
|
698
|
+
location: XcmVersionedLocation,
|
|
699
|
+
) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
|
|
700
|
+
>;
|
|
701
|
+
|
|
631
702
|
/**
|
|
632
703
|
* Generic runtime api call
|
|
633
704
|
**/
|