@dedot/chaintypes 0.199.0 → 0.200.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.
@@ -49,7 +49,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
49
49
 
50
50
  /**
51
51
  * @name: WestendPeopleApi
52
- * @specVersion: 1020001
52
+ * @specVersion: 1021000
53
53
  **/
54
54
  export interface WestendPeopleApi extends GenericSubstrateApi {
55
55
  rpc: ChainJsonRpcApis;
@@ -22,12 +22,12 @@ import type {
22
22
  SpWeightsWeightV2Weight,
23
23
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
24
24
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
25
- PolkadotPrimitivesV8PersistedValidationData,
26
- PolkadotPrimitivesV8UpgradeRestriction,
27
- PolkadotPrimitivesV8UpgradeGoAhead,
25
+ PolkadotPrimitivesV9PersistedValidationData,
26
+ PolkadotPrimitivesV9UpgradeRestriction,
27
+ PolkadotPrimitivesV9UpgradeGoAhead,
28
28
  SpTrieStorageProof,
29
29
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
30
- PolkadotPrimitivesV8AbridgedHostConfiguration,
30
+ PolkadotPrimitivesV9AbridgedHostConfiguration,
31
31
  CumulusPrimitivesParachainInherentMessageQueueChain,
32
32
  PolkadotParachainPrimitivesPrimitivesId,
33
33
  CumulusPalletParachainSystemParachainInherentInboundMessageId,
@@ -38,6 +38,7 @@ import type {
38
38
  FrameSupportTokensMiscIdAmount,
39
39
  FrameSupportTokensMiscIdAmount002,
40
40
  PalletTransactionPaymentReleases,
41
+ FrameSupportStorageNoDrop,
41
42
  PalletCollatorSelectionCandidateInfo,
42
43
  PeopleWestendRuntimeSessionKeys,
43
44
  SpStakingOffenceOffenceSeverity,
@@ -288,12 +289,12 @@ export interface ChainStorage extends GenericChainStorage {
288
289
 
289
290
  /**
290
291
  * The [`PersistedValidationData`] set for this block.
291
- * This value is expected to be set only once per block and it's never stored
292
- * in the trie.
293
292
  *
294
- * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
293
+ * This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
294
+ *
295
+ * @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
295
296
  **/
296
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV8PersistedValidationData | undefined>;
297
+ validationData: GenericStorageQuery<() => PolkadotPrimitivesV9PersistedValidationData | undefined>;
297
298
 
298
299
  /**
299
300
  * Were the validation data set to notify the relay chain?
@@ -320,9 +321,9 @@ export interface ChainStorage extends GenericChainStorage {
320
321
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
321
322
  * set after the inherent.
322
323
  *
323
- * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
324
+ * @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
324
325
  **/
325
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
326
+ upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
326
327
 
327
328
  /**
328
329
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -331,9 +332,9 @@ export interface ChainStorage extends GenericChainStorage {
331
332
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
332
333
  * set after the inherent.
333
334
  *
334
- * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
335
+ * @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
335
336
  **/
336
- upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
337
+ upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
337
338
 
338
339
  /**
339
340
  * The state proof for the last relay parent block.
@@ -370,9 +371,9 @@ export interface ChainStorage extends GenericChainStorage {
370
371
  *
371
372
  * This data is also absent from the genesis.
372
373
  *
373
- * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
374
+ * @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
374
375
  **/
375
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
376
+ hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
376
377
 
377
378
  /**
378
379
  * The last downward message queue chain head we have observed.
@@ -446,19 +447,28 @@ export interface ChainStorage extends GenericChainStorage {
446
447
  /**
447
448
  * Upward messages that were sent in a block.
448
449
  *
449
- * This will be cleared in `on_initialize` of each new block.
450
+ * This will be cleared in `on_initialize` for each new block.
450
451
  *
451
452
  * @param {Callback<Array<Bytes>> =} callback
452
453
  **/
453
454
  upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
454
455
 
455
456
  /**
456
- * Upward messages that are still pending and not yet send to the relay chain.
457
+ * Upward messages that are still pending and not yet sent to the relay chain.
457
458
  *
458
459
  * @param {Callback<Array<Bytes>> =} callback
459
460
  **/
460
461
  pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
461
462
 
463
+ /**
464
+ * Upward signals that are still pending and not yet sent to the relay chain.
465
+ *
466
+ * This will be cleared in `on_finalize` for each block.
467
+ *
468
+ * @param {Callback<Array<Bytes>> =} callback
469
+ **/
470
+ pendingUpwardSignals: GenericStorageQuery<() => Array<Bytes>>;
471
+
462
472
  /**
463
473
  * The factor to multiply the base delivery fee by for UMP.
464
474
  *
@@ -652,6 +662,15 @@ export interface ChainStorage extends GenericChainStorage {
652
662
  **/
653
663
  storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
654
664
 
665
+ /**
666
+ * The `OnChargeTransaction` stores the withdrawn tx fee here.
667
+ *
668
+ * Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
669
+ *
670
+ * @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
671
+ **/
672
+ txPaymentCredit: GenericStorageQuery<() => FrameSupportStorageNoDrop | undefined>;
673
+
655
674
  /**
656
675
  * Generic pallet storage query
657
676
  **/
@@ -18,7 +18,7 @@ import type {
18
18
  SpConsensusSlotsSlotDuration,
19
19
  SpConsensusAuraSr25519AppSr25519Public,
20
20
  SpConsensusSlotsSlot,
21
- SpRuntimeBlock,
21
+ SpRuntimeBlockLazyBlock,
22
22
  SpRuntimeExtrinsicInclusionMode,
23
23
  SpCoreOpaqueMetadata,
24
24
  SpRuntimeTransactionValidityTransactionValidityError,
@@ -137,9 +137,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
137
137
  * Execute the given block.
138
138
  *
139
139
  * @callname: Core_execute_block
140
- * @param {SpRuntimeBlock} block
140
+ * @param {SpRuntimeBlockLazyBlock} block
141
141
  **/
142
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
142
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
143
143
 
144
144
  /**
145
145
  * Initialize a block with the given header and return the runtime executive mode.
@@ -230,11 +230,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
230
230
  * Check that the inherents are valid. The inherent data will vary from chain to chain.
231
231
  *
232
232
  * @callname: BlockBuilder_check_inherents
233
- * @param {SpRuntimeBlock} block
233
+ * @param {SpRuntimeBlockLazyBlock} block
234
234
  * @param {SpInherentsInherentData} data
235
235
  **/
236
236
  checkInherents: GenericRuntimeApiMethod<
237
- (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
237
+ (block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
238
238
  >;
239
239
 
240
240
  /**
@@ -485,6 +485,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
485
485
  >;
486
486
 
487
487
  /**
488
+ * Query delivery fees V2.
489
+ *
488
490
  * Get delivery fees for sending a specific `message` to a `destination`.
489
491
  * These always come in a specific asset, defined by the chain.
490
492
  *
@@ -497,11 +499,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
497
499
  * @callname: XcmPaymentApi_query_delivery_fees
498
500
  * @param {XcmVersionedLocation} destination
499
501
  * @param {XcmVersionedXcm} message
502
+ * @param {XcmVersionedAssetId} asset_id
500
503
  **/
501
504
  queryDeliveryFees: GenericRuntimeApiMethod<
502
505
  (
503
506
  destination: XcmVersionedLocation,
504
507
  message: XcmVersionedXcm,
508
+ assetId: XcmVersionedAssetId,
505
509
  ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
506
510
  >;
507
511
 
@@ -741,6 +745,24 @@ export interface RuntimeApis extends GenericRuntimeApis {
741
745
  **/
742
746
  [method: string]: GenericRuntimeApiMethod;
743
747
  };
748
+ /**
749
+ * @runtimeapi: TargetBlockRate - 0xad694c0c2537478a
750
+ **/
751
+ targetBlockRate: {
752
+ /**
753
+ * Get the target block rate for this parachain.
754
+ *
755
+ * Returns the target number of blocks per relay chain slot.
756
+ *
757
+ * @callname: TargetBlockRate_target_block_rate
758
+ **/
759
+ targetBlockRate: GenericRuntimeApiMethod<() => Promise<number>>;
760
+
761
+ /**
762
+ * Generic runtime api call
763
+ **/
764
+ [method: string]: GenericRuntimeApiMethod;
765
+ };
744
766
  /**
745
767
  * @runtimeapi: ValidateStatement - 0xbe9fb0c91a8046cf
746
768
  **/
@@ -1879,13 +1879,13 @@ export type CumulusPalletParachainSystemCallLike =
1879
1879
  | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } };
1880
1880
 
1881
1881
  export type CumulusPalletParachainSystemParachainInherentBasicParachainInherentData = {
1882
- validationData: PolkadotPrimitivesV8PersistedValidationData;
1882
+ validationData: PolkadotPrimitivesV9PersistedValidationData;
1883
1883
  relayChainState: SpTrieStorageProof;
1884
1884
  relayParentDescendants: Array<Header>;
1885
1885
  collatorPeerId?: Bytes | undefined;
1886
1886
  };
1887
1887
 
1888
- export type PolkadotPrimitivesV8PersistedValidationData = {
1888
+ export type PolkadotPrimitivesV9PersistedValidationData = {
1889
1889
  parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
1890
1890
  relayParentNumber: number;
1891
1891
  relayParentStorageRoot: H256;
@@ -5053,7 +5053,8 @@ export type PalletIdentityJudgement =
5053
5053
  export type SpRuntimeMultiSignature =
5054
5054
  | { type: 'Ed25519'; value: FixedBytes<64> }
5055
5055
  | { type: 'Sr25519'; value: FixedBytes<64> }
5056
- | { type: 'Ecdsa'; value: FixedBytes<65> };
5056
+ | { type: 'Ecdsa'; value: FixedBytes<65> }
5057
+ | { type: 'Eth'; value: FixedBytes<65> };
5057
5058
 
5058
5059
  /**
5059
5060
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -5206,7 +5207,7 @@ export type PalletTransactionPaymentChargeTransactionPayment = bigint;
5206
5207
  export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
5207
5208
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
5208
5209
  paraHeadHash?: H256 | undefined;
5209
- consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
5210
+ consumedGoAheadSignal?: PolkadotPrimitivesV9UpgradeGoAhead | undefined;
5210
5211
  };
5211
5212
 
5212
5213
  export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
@@ -5219,21 +5220,21 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
5219
5220
 
5220
5221
  export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
5221
5222
 
5222
- export type PolkadotPrimitivesV8UpgradeGoAhead = 'Abort' | 'GoAhead';
5223
+ export type PolkadotPrimitivesV9UpgradeGoAhead = 'Abort' | 'GoAhead';
5223
5224
 
5224
5225
  export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
5225
5226
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
5226
5227
  hrmpWatermark?: number | undefined;
5227
- consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
5228
+ consumedGoAheadSignal?: PolkadotPrimitivesV9UpgradeGoAhead | undefined;
5228
5229
  };
5229
5230
 
5230
- export type PolkadotPrimitivesV8UpgradeRestriction = 'Present';
5231
+ export type PolkadotPrimitivesV9UpgradeRestriction = 'Present';
5231
5232
 
5232
5233
  export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
5233
5234
  dmqMqcHead: H256;
5234
5235
  relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
5235
- ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
5236
- egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
5236
+ ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV9AbridgedHrmpChannel]>;
5237
+ egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV9AbridgedHrmpChannel]>;
5237
5238
  };
5238
5239
 
5239
5240
  export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
@@ -5241,7 +5242,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
5241
5242
  remainingSize: number;
5242
5243
  };
5243
5244
 
5244
- export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
5245
+ export type PolkadotPrimitivesV9AbridgedHrmpChannel = {
5245
5246
  maxCapacity: number;
5246
5247
  maxTotalSize: number;
5247
5248
  maxMessageSize: number;
@@ -5250,7 +5251,7 @@ export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
5250
5251
  mqcHead?: H256 | undefined;
5251
5252
  };
5252
5253
 
5253
- export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
5254
+ export type PolkadotPrimitivesV9AbridgedHostConfiguration = {
5254
5255
  maxCodeSize: number;
5255
5256
  maxHeadDataSize: number;
5256
5257
  maxUpwardQueueCount: number;
@@ -5260,10 +5261,10 @@ export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
5260
5261
  hrmpMaxMessageNumPerCandidate: number;
5261
5262
  validationUpgradeCooldown: number;
5262
5263
  validationUpgradeDelay: number;
5263
- asyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
5264
+ asyncBackingParams: PolkadotPrimitivesV9AsyncBackingAsyncBackingParams;
5264
5265
  };
5265
5266
 
5266
- export type PolkadotPrimitivesV8AsyncBackingAsyncBackingParams = {
5267
+ export type PolkadotPrimitivesV9AsyncBackingAsyncBackingParams = {
5267
5268
  maxCandidateDepth: number;
5268
5269
  allowedAncestryLen: number;
5269
5270
  };
@@ -5372,6 +5373,10 @@ export type PalletBalancesError =
5372
5373
 
5373
5374
  export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2';
5374
5375
 
5376
+ export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
5377
+
5378
+ export type FrameSupportTokensFungibleImbalance = { amount: bigint };
5379
+
5375
5380
  export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
5376
5381
 
5377
5382
  export type FrameSupportPalletId = FixedBytes<8>;
@@ -6077,6 +6082,10 @@ export type PalletMigrationsError =
6077
6082
 
6078
6083
  export type SpConsensusSlotsSlotDuration = bigint;
6079
6084
 
6085
+ export type SpRuntimeBlockLazyBlock = { header: Header; extrinsics: Array<SpRuntimeOpaqueExtrinsic> };
6086
+
6087
+ export type SpRuntimeOpaqueExtrinsic = Bytes;
6088
+
6080
6089
  export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
6081
6090
 
6082
6091
  export type SpCoreOpaqueMetadata = Bytes;