@dedot/chaintypes 0.143.0 → 0.144.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.
@@ -1,16 +1,16 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
- import type { RuntimeVersion, Permill } from 'dedot/codecs';
4
+ import type { RuntimeVersion, AccountId32, Permill } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
8
8
  SpWeightsRuntimeDbWeight,
9
9
  PolkadotParachainPrimitivesPrimitivesId,
10
+ FrameSupportPalletId,
10
11
  SpWeightsWeightV2Weight,
11
12
  PalletNftsBitFlagsPalletFeature,
12
13
  StagingXcmV4Location,
13
- FrameSupportPalletId,
14
14
  } from './types.js';
15
15
 
16
16
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -211,6 +211,36 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
211
211
  * Pallet `CollatorSelection`'s constants
212
212
  **/
213
213
  collatorSelection: {
214
+ /**
215
+ * Account Identifier from which the internal Pot is generated.
216
+ **/
217
+ potId: FrameSupportPalletId;
218
+
219
+ /**
220
+ * Maximum number of candidates that we should have.
221
+ *
222
+ * This does not take into account the invulnerables.
223
+ **/
224
+ maxCandidates: number;
225
+
226
+ /**
227
+ * Minimum number eligible collators. Should always be greater than zero. This includes
228
+ * Invulnerable collators. This ensures that there will always be one collator who can
229
+ * produce a block.
230
+ **/
231
+ minEligibleCollators: number;
232
+
233
+ /**
234
+ * Maximum number of invulnerables.
235
+ **/
236
+ maxInvulnerables: number;
237
+ kickThreshold: number;
238
+
239
+ /**
240
+ * Gets this pallet's derived pot account.
241
+ **/
242
+ potAccount: AccountId32;
243
+
214
244
  /**
215
245
  * Generic pallet constant
216
246
  **/
@@ -294,6 +324,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
294
324
  * Pallet `PolkadotXcm`'s constants
295
325
  **/
296
326
  polkadotXcm: {
327
+ /**
328
+ * The latest supported version that we advertise. Generally just set it to
329
+ * `pallet_xcm::CurrentXcmVersion`.
330
+ **/
331
+ advertisedXcmVersion: number;
332
+
297
333
  /**
298
334
  * Generic pallet constant
299
335
  **/
@@ -96,16 +96,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
96
96
  **/
97
97
  NotScheduled: GenericPalletError<Rv>;
98
98
 
99
- /**
100
- * No code upgrade has been authorized.
101
- **/
102
- NothingAuthorized: GenericPalletError<Rv>;
103
-
104
- /**
105
- * The given code upgrade has not been authorized.
106
- **/
107
- Unauthorized: GenericPalletError<Rv>;
108
-
109
99
  /**
110
100
  * Generic pallet error
111
101
  **/
@@ -504,6 +494,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
504
494
  **/
505
495
  LocalExecutionIncomplete: GenericPalletError<Rv>;
506
496
 
497
+ /**
498
+ * Too many locations authorized to alias origin.
499
+ **/
500
+ TooManyAuthorizedAliases: GenericPalletError<Rv>;
501
+
502
+ /**
503
+ * Expiry block number is in the past.
504
+ **/
505
+ ExpiresInPast: GenericPalletError<Rv>;
506
+
507
+ /**
508
+ * The alias to remove authorization for was not found.
509
+ **/
510
+ AliasNotFound: GenericPalletError<Rv>;
511
+
507
512
  /**
508
513
  * Generic pallet error
509
514
  **/
@@ -623,12 +628,13 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
623
628
  SenderInSignatories: GenericPalletError<Rv>;
624
629
 
625
630
  /**
626
- * Multisig operation not found when attempting to cancel.
631
+ * Multisig operation not found in storage.
627
632
  **/
628
633
  NotFound: GenericPalletError<Rv>;
629
634
 
630
635
  /**
631
- * Only the account that originally created the multisig is able to cancel it.
636
+ * Only the account that originally created the multisig is able to cancel it or update
637
+ * its deposits.
632
638
  **/
633
639
  NotOwner: GenericPalletError<Rv>;
634
640
 
@@ -823,6 +829,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
823
829
  **/
824
830
  BadAssetId: GenericPalletError<Rv>;
825
831
 
832
+ /**
833
+ * The asset cannot be destroyed because some accounts for this asset contain freezes.
834
+ **/
835
+ ContainsFreezes: GenericPalletError<Rv>;
836
+
837
+ /**
838
+ * The asset cannot be destroyed because some accounts for this asset contain holds.
839
+ **/
840
+ ContainsHolds: GenericPalletError<Rv>;
841
+
826
842
  /**
827
843
  * Generic pallet error
828
844
  **/
@@ -1273,6 +1289,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1273
1289
  **/
1274
1290
  BadAssetId: GenericPalletError<Rv>;
1275
1291
 
1292
+ /**
1293
+ * The asset cannot be destroyed because some accounts for this asset contain freezes.
1294
+ **/
1295
+ ContainsFreezes: GenericPalletError<Rv>;
1296
+
1297
+ /**
1298
+ * The asset cannot be destroyed because some accounts for this asset contain holds.
1299
+ **/
1300
+ ContainsHolds: GenericPalletError<Rv>;
1301
+
1276
1302
  /**
1277
1303
  * Generic pallet error
1278
1304
  **/
@@ -1390,6 +1416,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1390
1416
  **/
1391
1417
  BadAssetId: GenericPalletError<Rv>;
1392
1418
 
1419
+ /**
1420
+ * The asset cannot be destroyed because some accounts for this asset contain freezes.
1421
+ **/
1422
+ ContainsFreezes: GenericPalletError<Rv>;
1423
+
1424
+ /**
1425
+ * The asset cannot be destroyed because some accounts for this asset contain holds.
1426
+ **/
1427
+ ContainsHolds: GenericPalletError<Rv>;
1428
+
1393
1429
  /**
1394
1430
  * Generic pallet error
1395
1431
  **/
@@ -10,15 +10,17 @@ import type {
10
10
  StagingXcmV5TraitsOutcome,
11
11
  StagingXcmV5Location,
12
12
  StagingXcmV5Xcm,
13
+ XcmV3TraitsSendError,
14
+ XcmV5TraitsError,
13
15
  StagingXcmV5Response,
14
16
  XcmVersionedAssets,
15
17
  StagingXcmV5AssetAssets,
16
- XcmV5TraitsError,
17
18
  XcmVersionedLocation,
18
19
  CumulusPrimitivesCoreAggregateMessageOrigin,
19
20
  FrameSupportMessagesProcessMessageError,
20
21
  PalletMultisigTimepoint,
21
22
  AssetHubPolkadotRuntimeProxyType,
23
+ PalletProxyDepositKind,
22
24
  PalletNftsAttributeNamespace,
23
25
  PalletNftsPriceWithDirection,
24
26
  PalletNftsPalletAttributes,
@@ -76,6 +78,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
76
78
  **/
77
79
  UpgradeAuthorized: GenericPalletEvent<Rv, 'System', 'UpgradeAuthorized', { codeHash: H256; checkVersion: boolean }>;
78
80
 
81
+ /**
82
+ * An invalid authorized upgrade was rejected while trying to apply it.
83
+ **/
84
+ RejectedInvalidAuthorizedUpgrade: GenericPalletEvent<
85
+ Rv,
86
+ 'System',
87
+ 'RejectedInvalidAuthorizedUpgrade',
88
+ { codeHash: H256; error: DispatchError }
89
+ >;
90
+
79
91
  /**
80
92
  * Generic pallet event
81
93
  **/
@@ -426,6 +438,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
426
438
  **/
427
439
  NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
428
440
 
441
+ /**
442
+ * Validator has been disabled.
443
+ **/
444
+ ValidatorDisabled: GenericPalletEvent<Rv, 'Session', 'ValidatorDisabled', { validator: AccountId32 }>;
445
+
446
+ /**
447
+ * Validator has been re-enabled.
448
+ **/
449
+ ValidatorReenabled: GenericPalletEvent<Rv, 'Session', 'ValidatorReenabled', { validator: AccountId32 }>;
450
+
429
451
  /**
430
452
  * Generic pallet event
431
453
  **/
@@ -455,7 +477,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
455
477
  Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
456
478
 
457
479
  /**
458
- * A XCM message was sent.
480
+ * An XCM message was sent.
459
481
  **/
460
482
  Sent: GenericPalletEvent<
461
483
  Rv,
@@ -469,6 +491,31 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
469
491
  }
470
492
  >;
471
493
 
494
+ /**
495
+ * An XCM message failed to send.
496
+ **/
497
+ SendFailed: GenericPalletEvent<
498
+ Rv,
499
+ 'PolkadotXcm',
500
+ 'SendFailed',
501
+ {
502
+ origin: StagingXcmV5Location;
503
+ destination: StagingXcmV5Location;
504
+ error: XcmV3TraitsSendError;
505
+ messageId: FixedBytes<32>;
506
+ }
507
+ >;
508
+
509
+ /**
510
+ * An XCM message failed to process.
511
+ **/
512
+ ProcessXcmError: GenericPalletEvent<
513
+ Rv,
514
+ 'PolkadotXcm',
515
+ 'ProcessXcmError',
516
+ { origin: StagingXcmV5Location; error: XcmV5TraitsError; messageId: FixedBytes<32> }
517
+ >;
518
+
472
519
  /**
473
520
  * Query response received which does not match a registered query. This may be because a
474
521
  * matching query was never registered, it may be because it is a duplicate response, or
@@ -722,6 +769,37 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
722
769
  **/
723
770
  VersionMigrationFinished: GenericPalletEvent<Rv, 'PolkadotXcm', 'VersionMigrationFinished', { version: number }>;
724
771
 
772
+ /**
773
+ * An `aliaser` location was authorized by `target` to alias it, authorization valid until
774
+ * `expiry` block number.
775
+ **/
776
+ AliasAuthorized: GenericPalletEvent<
777
+ Rv,
778
+ 'PolkadotXcm',
779
+ 'AliasAuthorized',
780
+ { aliaser: StagingXcmV5Location; target: StagingXcmV5Location; expiry?: bigint | undefined }
781
+ >;
782
+
783
+ /**
784
+ * `target` removed alias authorization for `aliaser`.
785
+ **/
786
+ AliasAuthorizationRemoved: GenericPalletEvent<
787
+ Rv,
788
+ 'PolkadotXcm',
789
+ 'AliasAuthorizationRemoved',
790
+ { aliaser: StagingXcmV5Location; target: StagingXcmV5Location }
791
+ >;
792
+
793
+ /**
794
+ * `target` removed all alias authorizations.
795
+ **/
796
+ AliasesAuthorizationsRemoved: GenericPalletEvent<
797
+ Rv,
798
+ 'PolkadotXcm',
799
+ 'AliasesAuthorizationsRemoved',
800
+ { target: StagingXcmV5Location }
801
+ >;
802
+
725
803
  /**
726
804
  * Generic pallet event
727
805
  **/
@@ -955,6 +1033,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
955
1033
  **/
956
1034
  DispatchedAs: GenericPalletEvent<Rv, 'Utility', 'DispatchedAs', { result: Result<[], DispatchError> }>;
957
1035
 
1036
+ /**
1037
+ * Main call was dispatched.
1038
+ **/
1039
+ IfElseMainSuccess: GenericPalletEvent<Rv, 'Utility', 'IfElseMainSuccess', null>;
1040
+
1041
+ /**
1042
+ * The fallback call was dispatched.
1043
+ **/
1044
+ IfElseFallbackCalled: GenericPalletEvent<Rv, 'Utility', 'IfElseFallbackCalled', { mainError: DispatchError }>;
1045
+
958
1046
  /**
959
1047
  * Generic pallet event
960
1048
  **/
@@ -1010,6 +1098,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1010
1098
  { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
1011
1099
  >;
1012
1100
 
1101
+ /**
1102
+ * The deposit for a multisig operation has been updated/poked.
1103
+ **/
1104
+ DepositPoked: GenericPalletEvent<
1105
+ Rv,
1106
+ 'Multisig',
1107
+ 'DepositPoked',
1108
+ { who: AccountId32; callHash: FixedBytes<32>; oldDeposit: bigint; newDeposit: bigint }
1109
+ >;
1110
+
1013
1111
  /**
1014
1112
  * Generic pallet event
1015
1113
  **/
@@ -1060,6 +1158,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1060
1158
  { delegator: AccountId32; delegatee: AccountId32; proxyType: AssetHubPolkadotRuntimeProxyType; delay: number }
1061
1159
  >;
1062
1160
 
1161
+ /**
1162
+ * A deposit stored for proxies or announcements was poked / updated.
1163
+ **/
1164
+ DepositPoked: GenericPalletEvent<
1165
+ Rv,
1166
+ 'Proxy',
1167
+ 'DepositPoked',
1168
+ { who: AccountId32; kind: PalletProxyDepositKind; oldDeposit: bigint; newDeposit: bigint }
1169
+ >;
1170
+
1063
1171
  /**
1064
1172
  * Generic pallet event
1065
1173
  **/
@@ -25,7 +25,7 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
25
25
 
26
26
  /**
27
27
  * @name: PolkadotAssetHubApi
28
- * @specVersion: 1005001
28
+ * @specVersion: 1006000
29
29
  **/
30
30
  export interface PolkadotAssetHubApi {
31
31
  legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;
@@ -18,6 +18,7 @@ import type {
18
18
  FrameSystemEventRecord,
19
19
  FrameSystemLastRuntimeUpgradeInfo,
20
20
  FrameSystemCodeUpgradeAuthorization,
21
+ SpWeightsWeightV2Weight,
21
22
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
23
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
24
  PolkadotPrimitivesV8PersistedValidationData,
@@ -29,7 +30,6 @@ import type {
29
30
  CumulusPrimitivesParachainInherentMessageQueueChain,
30
31
  PolkadotParachainPrimitivesPrimitivesId,
31
32
  PolkadotCorePrimitivesOutboundHrmpMessage,
32
- SpWeightsWeightV2Weight,
33
33
  PalletBalancesAccountData,
34
34
  PalletBalancesBalanceLock,
35
35
  PalletBalancesReserveData,
@@ -40,6 +40,7 @@ import type {
40
40
  PalletVestingReleases,
41
41
  PalletCollatorSelectionCandidateInfo,
42
42
  AssetHubPolkadotRuntimeSessionKeys,
43
+ SpStakingOffenceOffenceSeverity,
43
44
  SpCoreCryptoKeyTypeId,
44
45
  SpConsensusAuraEd25519AppEd25519Public,
45
46
  SpConsensusSlotsSlot,
@@ -51,6 +52,7 @@ import type {
51
52
  PalletXcmRemoteLockedFungibleRecord,
52
53
  XcmVersionedAssetId,
53
54
  StagingXcmV5Xcm,
55
+ PalletXcmAuthorizedAliasesEntry,
54
56
  BpXcmBridgeHubRouterBridgeState,
55
57
  PalletMessageQueueBookState,
56
58
  CumulusPrimitivesCoreAggregateMessageOrigin,
@@ -233,6 +235,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
233
235
  **/
234
236
  authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
235
237
 
238
+ /**
239
+ * The weight reclaimed for the extrinsic.
240
+ *
241
+ * This information is available until the end of the extrinsic execution.
242
+ * More precisely this information is removed in `note_applied_extrinsic`.
243
+ *
244
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
245
+ * reduction.
246
+ *
247
+ * @param {Callback<SpWeightsWeightV2Weight> =} callback
248
+ **/
249
+ extrinsicWeightReclaimed: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight>;
250
+
236
251
  /**
237
252
  * Generic pallet storage query
238
253
  **/
@@ -782,9 +797,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
782
797
  * disabled using binary search. It gets cleared when `on_session_ending` returns
783
798
  * a new set of identities.
784
799
  *
785
- * @param {Callback<Array<number>> =} callback
800
+ * @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
786
801
  **/
787
- disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
802
+ disabledValidators: GenericStorageQuery<Rv, () => Array<[number, SpStakingOffenceOffenceSeverity]>>;
788
803
 
789
804
  /**
790
805
  * The next session keys for a validator.
@@ -856,13 +871,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
856
871
  authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraEd25519AppEd25519Public>>;
857
872
 
858
873
  /**
859
- * Current slot paired with a number of authored blocks.
874
+ * Current relay chain slot paired with a number of authored blocks.
860
875
  *
861
- * Updated on each block initialization.
876
+ * This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
877
+ * chain slot as provided by the relay chain state proof.
862
878
  *
863
879
  * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
864
880
  **/
865
- slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
881
+ relaySlotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
866
882
 
867
883
  /**
868
884
  * Generic pallet storage query
@@ -1101,6 +1117,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1101
1117
  **/
1102
1118
  recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
1103
1119
 
1120
+ /**
1121
+ * Map of authorized aliasers of local origins. Each local location can authorize a list of
1122
+ * other locations to alias into it. Each aliaser is only valid until its inner `expiry`
1123
+ * block number.
1124
+ *
1125
+ * @param {XcmVersionedLocation} arg
1126
+ * @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
1127
+ **/
1128
+ authorizedAliases: GenericStorageQuery<
1129
+ Rv,
1130
+ (arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
1131
+ XcmVersionedLocation
1132
+ >;
1133
+
1104
1134
  /**
1105
1135
  * Generic pallet storage query
1106
1136
  **/
@@ -79,7 +79,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
79
79
  /**
80
80
  * Whether it is legal to extend the chain, assuming the given block is the most
81
81
  * recently included one as-of the relay parent that will be built against, and
82
- * the given slot.
82
+ * the given relay chain slot.
83
83
  *
84
84
  * This should be consistent with the logic the runtime uses when validating blocks to
85
85
  * avoid issues.