@dedot/chaintypes 0.7.0 → 0.9.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/astar/query.d.ts CHANGED
@@ -9,9 +9,9 @@ import type {
9
9
  Digest,
10
10
  Phase,
11
11
  Data,
12
+ BytesLike,
12
13
  FixedBytes,
13
14
  FixedU128,
14
- BytesLike,
15
15
  H160,
16
16
  U256,
17
17
  } from 'dedot/codecs';
@@ -20,8 +20,10 @@ import type {
20
20
  FrameSupportDispatchPerDispatchClass,
21
21
  FrameSystemEventRecord,
22
22
  FrameSystemLastRuntimeUpgradeInfo,
23
+ FrameSystemCodeUpgradeAuthorization,
23
24
  PalletIdentityRegistration,
24
25
  PalletIdentityRegistrarInfo,
26
+ PalletIdentityAuthorityProperties,
25
27
  PalletMultisigMultisig,
26
28
  PalletProxyProxyDefinition,
27
29
  PalletProxyAnnouncement,
@@ -37,7 +39,6 @@ import type {
37
39
  PolkadotParachainPrimitivesPrimitivesId,
38
40
  PolkadotCorePrimitivesOutboundHrmpMessage,
39
41
  SpWeightsWeightV2Weight,
40
- CumulusPalletParachainSystemCodeUpgradeAuthorization,
41
42
  PalletTransactionPaymentReleases,
42
43
  PalletBalancesAccountData,
43
44
  PalletBalancesBalanceLock,
@@ -75,16 +76,17 @@ import type {
75
76
  SpCoreCryptoKeyTypeId,
76
77
  SpConsensusAuraSr25519AppSr25519Public,
77
78
  SpConsensusSlotsSlot,
78
- CumulusPalletXcmpQueueInboundChannelDetails,
79
79
  CumulusPalletXcmpQueueOutboundChannelDetails,
80
80
  CumulusPalletXcmpQueueQueueConfigData,
81
81
  PalletXcmQueryStatus,
82
- XcmVersionedMultiLocation,
82
+ XcmVersionedLocation,
83
83
  PalletXcmVersionMigrationStage,
84
84
  PalletXcmRemoteLockedFungibleRecord,
85
85
  XcmVersionedAssetId,
86
- CumulusPalletDmpQueueConfigData,
87
- CumulusPalletDmpQueuePageIndexData,
86
+ CumulusPalletDmpQueueMigrationState,
87
+ PalletMessageQueueBookState,
88
+ CumulusPrimitivesCoreAggregateMessageOrigin,
89
+ PalletMessageQueuePage,
88
90
  PalletEvmCodeMetadata,
89
91
  EthereumTransactionTransactionV2,
90
92
  FpRpcTransactionStatus,
@@ -115,6 +117,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
115
117
  **/
116
118
  extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
117
119
 
120
+ /**
121
+ * Whether all inherents have been applied.
122
+ *
123
+ * @param {Callback<boolean> =} callback
124
+ **/
125
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
126
+
118
127
  /**
119
128
  * The current weight for the block.
120
129
  *
@@ -232,6 +241,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
232
241
  **/
233
242
  executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
234
243
 
244
+ /**
245
+ * `Some` if a code upgrade has been authorized.
246
+ *
247
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
248
+ **/
249
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
250
+
235
251
  /**
236
252
  * Generic pallet storage query
237
253
  **/
@@ -242,14 +258,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
242
258
  **/
243
259
  identity: {
244
260
  /**
245
- * Information that is pertinent to identify the entity behind an account.
261
+ * Information that is pertinent to identify the entity behind an account. First item is the
262
+ * registration, second is the account's primary username.
246
263
  *
247
264
  * TWOX-NOTE: OK ― `AccountId` is a secure hash.
248
265
  *
249
266
  * @param {AccountId32Like} arg
250
- * @param {Callback<PalletIdentityRegistration | undefined> =} callback
267
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
251
268
  **/
252
- identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
269
+ identityOf: GenericStorageQuery<
270
+ Rv,
271
+ (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
272
+ AccountId32
273
+ >;
253
274
 
254
275
  /**
255
276
  * The super-identity of an alternative "sub" identity together with its name, within that
@@ -282,6 +303,43 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
282
303
  **/
283
304
  registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
284
305
 
306
+ /**
307
+ * A map of the accounts who are authorized to grant usernames.
308
+ *
309
+ * @param {AccountId32Like} arg
310
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
311
+ **/
312
+ usernameAuthorities: GenericStorageQuery<
313
+ Rv,
314
+ (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
315
+ AccountId32
316
+ >;
317
+
318
+ /**
319
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
320
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
321
+ *
322
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
323
+ * primary username.
324
+ *
325
+ * @param {BytesLike} arg
326
+ * @param {Callback<AccountId32 | undefined> =} callback
327
+ **/
328
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
329
+
330
+ /**
331
+ * Usernames that an authority has granted, but that the account controller has not confirmed
332
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
333
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
334
+ * [`Call::accept_username`].
335
+ *
336
+ * First tuple item is the account and second is the acceptance deadline.
337
+ *
338
+ * @param {BytesLike} arg
339
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
340
+ **/
341
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
342
+
285
343
  /**
286
344
  * Generic pallet storage query
287
345
  **/
@@ -605,13 +663,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
605
663
  **/
606
664
  reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
607
665
 
608
- /**
609
- * The next authorized upgrade, if there is one.
610
- *
611
- * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
612
- **/
613
- authorizedUpgrade: GenericStorageQuery<Rv, () => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
614
-
615
666
  /**
616
667
  * A custom head data that should be returned as result of `validate_block`.
617
668
  *
@@ -1136,6 +1187,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1136
1187
  **/
1137
1188
  candidates: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
1138
1189
 
1190
+ /**
1191
+ * Candidates who initiated leave intent or kicked.
1192
+ *
1193
+ * @param {AccountId32Like} arg
1194
+ * @param {Callback<[number, bigint]> =} callback
1195
+ **/
1196
+ nonCandidates: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, bigint], AccountId32>;
1197
+
1139
1198
  /**
1140
1199
  * Last block authored by collator.
1141
1200
  *
@@ -1303,23 +1362,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1303
1362
  **/
1304
1363
  xcmpQueue: {
1305
1364
  /**
1306
- * Status of the inbound XCMP channels.
1365
+ * The suspended inbound XCMP channels. All others are not suspended.
1307
1366
  *
1308
- * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
1309
- **/
1310
- inboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
1311
-
1312
- /**
1313
- * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
1367
+ * This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
1368
+ * to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
1369
+ * within the block and therefore only included once in the proof size.
1314
1370
  *
1315
- * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1316
- * @param {Callback<Bytes> =} callback
1371
+ * NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
1372
+ * will be smaller.
1373
+ *
1374
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
1317
1375
  **/
1318
- inboundXcmpMessages: GenericStorageQuery<
1319
- Rv,
1320
- (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
1321
- [PolkadotParachainPrimitivesPrimitivesId, number]
1322
- >;
1376
+ inboundXcmpSuspended: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
1323
1377
 
1324
1378
  /**
1325
1379
  * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
@@ -1364,36 +1418,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1364
1418
  **/
1365
1419
  queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
1366
1420
 
1367
- /**
1368
- * The messages that exceeded max individual message weight budget.
1369
- *
1370
- * These message stay in this storage map until they are manually dispatched via
1371
- * `service_overweight`.
1372
- *
1373
- * @param {bigint} arg
1374
- * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
1375
- **/
1376
- overweight: GenericStorageQuery<
1377
- Rv,
1378
- (arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined,
1379
- bigint
1380
- >;
1381
-
1382
- /**
1383
- * Counter for the related counted storage map
1384
- *
1385
- * @param {Callback<number> =} callback
1386
- **/
1387
- counterForOverweight: GenericStorageQuery<Rv, () => number>;
1388
-
1389
- /**
1390
- * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
1391
- * available free overweight index.
1392
- *
1393
- * @param {Callback<bigint> =} callback
1394
- **/
1395
- overweightCount: GenericStorageQuery<Rv, () => bigint>;
1396
-
1397
1421
  /**
1398
1422
  * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1399
1423
  *
@@ -1440,7 +1464,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1440
1464
  /**
1441
1465
  * The existing asset traps.
1442
1466
  *
1443
- * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
1467
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
1444
1468
  * times this pair has been trapped (usually just 1 if it exists at all).
1445
1469
  *
1446
1470
  * @param {H256} arg
@@ -1459,38 +1483,38 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1459
1483
  /**
1460
1484
  * The Latest versions that we know various locations support.
1461
1485
  *
1462
- * @param {[number, XcmVersionedMultiLocation]} arg
1486
+ * @param {[number, XcmVersionedLocation]} arg
1463
1487
  * @param {Callback<number | undefined> =} callback
1464
1488
  **/
1465
1489
  supportedVersion: GenericStorageQuery<
1466
1490
  Rv,
1467
- (arg: [number, XcmVersionedMultiLocation]) => number | undefined,
1468
- [number, XcmVersionedMultiLocation]
1491
+ (arg: [number, XcmVersionedLocation]) => number | undefined,
1492
+ [number, XcmVersionedLocation]
1469
1493
  >;
1470
1494
 
1471
1495
  /**
1472
1496
  * All locations that we have requested version notifications from.
1473
1497
  *
1474
- * @param {[number, XcmVersionedMultiLocation]} arg
1498
+ * @param {[number, XcmVersionedLocation]} arg
1475
1499
  * @param {Callback<bigint | undefined> =} callback
1476
1500
  **/
1477
1501
  versionNotifiers: GenericStorageQuery<
1478
1502
  Rv,
1479
- (arg: [number, XcmVersionedMultiLocation]) => bigint | undefined,
1480
- [number, XcmVersionedMultiLocation]
1503
+ (arg: [number, XcmVersionedLocation]) => bigint | undefined,
1504
+ [number, XcmVersionedLocation]
1481
1505
  >;
1482
1506
 
1483
1507
  /**
1484
1508
  * The target locations that are subscribed to our version changes, as well as the most recent
1485
1509
  * of our versions we informed them of.
1486
1510
  *
1487
- * @param {[number, XcmVersionedMultiLocation]} arg
1511
+ * @param {[number, XcmVersionedLocation]} arg
1488
1512
  * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1489
1513
  **/
1490
1514
  versionNotifyTargets: GenericStorageQuery<
1491
1515
  Rv,
1492
- (arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1493
- [number, XcmVersionedMultiLocation]
1516
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
1517
+ [number, XcmVersionedLocation]
1494
1518
  >;
1495
1519
 
1496
1520
  /**
@@ -1498,9 +1522,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1498
1522
  * the `u32` counter is the number of times that a send to the destination has been attempted,
1499
1523
  * which is used as a prioritization.
1500
1524
  *
1501
- * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
1525
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
1502
1526
  **/
1503
- versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedMultiLocation, number]>>;
1527
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
1504
1528
 
1505
1529
  /**
1506
1530
  * The current migration's stage, if any.
@@ -1525,11 +1549,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1525
1549
  * Fungible assets which we know are locked on this chain.
1526
1550
  *
1527
1551
  * @param {AccountId32Like} arg
1528
- * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
1552
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
1529
1553
  **/
1530
1554
  lockedFungibles: GenericStorageQuery<
1531
1555
  Rv,
1532
- (arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined,
1556
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
1533
1557
  AccountId32
1534
1558
  >;
1535
1559
 
@@ -1550,41 +1574,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1550
1574
  **/
1551
1575
  dmpQueue: {
1552
1576
  /**
1553
- * The configuration.
1554
- *
1555
- * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1556
- **/
1557
- configuration: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueConfigData>;
1558
-
1559
- /**
1560
- * The page index.
1561
- *
1562
- * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1563
- **/
1564
- pageIndex: GenericStorageQuery<Rv, () => CumulusPalletDmpQueuePageIndexData>;
1565
-
1566
- /**
1567
- * The queue pages.
1568
- *
1569
- * @param {number} arg
1570
- * @param {Callback<Array<[number, Bytes]>> =} callback
1571
- **/
1572
- pages: GenericStorageQuery<Rv, (arg: number) => Array<[number, Bytes]>, number>;
1573
-
1574
- /**
1575
- * The overweight messages.
1576
- *
1577
- * @param {bigint} arg
1578
- * @param {Callback<[number, Bytes] | undefined> =} callback
1579
- **/
1580
- overweight: GenericStorageQuery<Rv, (arg: bigint) => [number, Bytes] | undefined, bigint>;
1581
-
1582
- /**
1583
- * Counter for the related counted storage map
1577
+ * The migration state of this pallet.
1584
1578
  *
1585
- * @param {Callback<number> =} callback
1579
+ * @param {Callback<CumulusPalletDmpQueueMigrationState> =} callback
1586
1580
  **/
1587
- counterForOverweight: GenericStorageQuery<Rv, () => number>;
1581
+ migrationStatus: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueMigrationState>;
1588
1582
 
1589
1583
  /**
1590
1584
  * Generic pallet storage query
@@ -1601,23 +1595,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1601
1595
  * like transferring an asset from this chain to another.
1602
1596
  *
1603
1597
  * @param {bigint} arg
1604
- * @param {Callback<XcmVersionedMultiLocation | undefined> =} callback
1598
+ * @param {Callback<XcmVersionedLocation | undefined> =} callback
1605
1599
  **/
1606
- assetIdToLocation: GenericStorageQuery<Rv, (arg: bigint) => XcmVersionedMultiLocation | undefined, bigint>;
1600
+ assetIdToLocation: GenericStorageQuery<Rv, (arg: bigint) => XcmVersionedLocation | undefined, bigint>;
1607
1601
 
1608
1602
  /**
1609
1603
  * Mapping from an asset type to an asset id.
1610
1604
  * Can be used when receiving a multilocation XCM message to retrieve
1611
1605
  * the corresponding asset in which tokens should me minted.
1612
1606
  *
1613
- * @param {XcmVersionedMultiLocation} arg
1607
+ * @param {XcmVersionedLocation} arg
1614
1608
  * @param {Callback<bigint | undefined> =} callback
1615
1609
  **/
1616
- assetLocationToId: GenericStorageQuery<
1617
- Rv,
1618
- (arg: XcmVersionedMultiLocation) => bigint | undefined,
1619
- XcmVersionedMultiLocation
1620
- >;
1610
+ assetLocationToId: GenericStorageQuery<Rv, (arg: XcmVersionedLocation) => bigint | undefined, XcmVersionedLocation>;
1621
1611
 
1622
1612
  /**
1623
1613
  * Stores the units per second for local execution for a AssetLocation.
@@ -1625,13 +1615,53 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1625
1615
  *
1626
1616
  * Not all asset types are supported for payment. If value exists here, it means it is supported.
1627
1617
  *
1628
- * @param {XcmVersionedMultiLocation} arg
1618
+ * @param {XcmVersionedLocation} arg
1629
1619
  * @param {Callback<bigint | undefined> =} callback
1630
1620
  **/
1631
1621
  assetLocationUnitsPerSecond: GenericStorageQuery<
1632
1622
  Rv,
1633
- (arg: XcmVersionedMultiLocation) => bigint | undefined,
1634
- XcmVersionedMultiLocation
1623
+ (arg: XcmVersionedLocation) => bigint | undefined,
1624
+ XcmVersionedLocation
1625
+ >;
1626
+
1627
+ /**
1628
+ * Generic pallet storage query
1629
+ **/
1630
+ [storage: string]: GenericStorageQuery<Rv>;
1631
+ };
1632
+ /**
1633
+ * Pallet `MessageQueue`'s storage queries
1634
+ **/
1635
+ messageQueue: {
1636
+ /**
1637
+ * The index of the first and last (non-empty) pages.
1638
+ *
1639
+ * @param {CumulusPrimitivesCoreAggregateMessageOrigin} arg
1640
+ * @param {Callback<PalletMessageQueueBookState> =} callback
1641
+ **/
1642
+ bookStateFor: GenericStorageQuery<
1643
+ Rv,
1644
+ (arg: CumulusPrimitivesCoreAggregateMessageOrigin) => PalletMessageQueueBookState,
1645
+ CumulusPrimitivesCoreAggregateMessageOrigin
1646
+ >;
1647
+
1648
+ /**
1649
+ * The origin at which we should begin servicing.
1650
+ *
1651
+ * @param {Callback<CumulusPrimitivesCoreAggregateMessageOrigin | undefined> =} callback
1652
+ **/
1653
+ serviceHead: GenericStorageQuery<Rv, () => CumulusPrimitivesCoreAggregateMessageOrigin | undefined>;
1654
+
1655
+ /**
1656
+ * The map of page indices to pages.
1657
+ *
1658
+ * @param {[CumulusPrimitivesCoreAggregateMessageOrigin, number]} arg
1659
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
1660
+ **/
1661
+ pages: GenericStorageQuery<
1662
+ Rv,
1663
+ (arg: [CumulusPrimitivesCoreAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
1664
+ [CumulusPrimitivesCoreAggregateMessageOrigin, number]
1635
1665
  >;
1636
1666
 
1637
1667
  /**
@@ -16,6 +16,7 @@ import type {
16
16
  } from 'dedot/codecs';
17
17
  import type {
18
18
  SpRuntimeBlock,
19
+ SpRuntimeExtrinsicInclusionMode,
19
20
  SpCoreOpaqueMetadata,
20
21
  SpConsensusSlotsSlotDuration,
21
22
  SpConsensusAuraSr25519AppSr25519Public,
@@ -68,12 +69,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
68
69
  executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
69
70
 
70
71
  /**
71
- * Initialize a block with the given header.
72
+ * Initialize a block with the given header and return the runtime executive mode.
72
73
  *
73
74
  * @callname: Core_initialize_block
74
75
  * @param {Header} header
75
76
  **/
76
- initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
77
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
77
78
 
78
79
  /**
79
80
  * Generic runtime api call
@@ -776,23 +777,23 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
776
777
  **/
777
778
  genesisBuilder: {
778
779
  /**
779
- * Creates the default `GenesisConfig` and returns it as a JSON blob.
780
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
780
781
  *
781
- * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
782
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
782
+ * This function instantiates the default `RuntimeGenesisConfig` struct for the runtime and serializes it into a JSON
783
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `RuntimeGenesisConfig`.
783
784
  *
784
785
  * @callname: GenesisBuilder_create_default_config
785
786
  **/
786
787
  createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
787
788
 
788
789
  /**
789
- * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
790
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
790
791
  *
791
- * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
792
+ * This function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage.
792
793
  * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
793
794
  * It is recommended to log any errors encountered during the process.
794
795
  *
795
- * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
796
+ * Please note that provided json blob must contain all `RuntimeGenesisConfig` fields, no defaults will be used.
796
797
  *
797
798
  * @callname: GenesisBuilder_build_config
798
799
  * @param {BytesLike} json