@dedot/chaintypes 0.149.0 → 0.151.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.
@@ -30,7 +30,9 @@ import type {
30
30
  PolkadotPrimitivesV8AbridgedHostConfiguration,
31
31
  CumulusPrimitivesParachainInherentMessageQueueChain,
32
32
  PolkadotParachainPrimitivesPrimitivesId,
33
+ CumulusPalletParachainSystemParachainInherentInboundMessageId,
33
34
  PolkadotCorePrimitivesOutboundHrmpMessage,
35
+ PalletMigrationsMigrationCursor,
34
36
  PalletBalancesAccountData,
35
37
  PalletBalancesBalanceLock,
36
38
  PalletBalancesReserveData,
@@ -79,11 +81,11 @@ import type {
79
81
  PalletNftsPendingSwap,
80
82
  PalletNftsCollectionConfig,
81
83
  PalletNftsItemConfig,
82
- StagingXcmV4Location,
84
+ StagingXcmV5Location,
83
85
  PalletNftFractionalizationDetails,
84
86
  PalletAssetConversionPoolInfo,
85
- PalletReviveWasmCodeInfo,
86
- PalletReviveStorageContractInfo,
87
+ PalletReviveVmCodeInfo,
88
+ PalletReviveStorageAccountInfo,
87
89
  PalletReviveStorageDeletionQueueManager,
88
90
  PalletStateTrieMigrationMigrationTask,
89
91
  PalletStateTrieMigrationMigrationLimits,
@@ -431,14 +433,36 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
431
433
  processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
432
434
 
433
435
  /**
434
- * HRMP watermark that was set in a block.
436
+ * The last processed downward message.
435
437
  *
436
- * This will be cleared in `on_initialize` of each new block.
438
+ * We need to keep track of this to filter the messages that have been already processed.
439
+ *
440
+ * @param {Callback<CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined> =} callback
441
+ **/
442
+ lastProcessedDownwardMessage: GenericStorageQuery<
443
+ Rv,
444
+ () => CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined
445
+ >;
446
+
447
+ /**
448
+ * HRMP watermark that was set in a block.
437
449
  *
438
450
  * @param {Callback<number> =} callback
439
451
  **/
440
452
  hrmpWatermark: GenericStorageQuery<Rv, () => number>;
441
453
 
454
+ /**
455
+ * The last processed HRMP message.
456
+ *
457
+ * We need to keep track of this to filter the messages that have been already processed.
458
+ *
459
+ * @param {Callback<CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined> =} callback
460
+ **/
461
+ lastProcessedHrmpMessage: GenericStorageQuery<
462
+ Rv,
463
+ () => CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined
464
+ >;
465
+
442
466
  /**
443
467
  * HRMP messages that were sent in a block.
444
468
  *
@@ -550,6 +574,35 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
550
574
  **/
551
575
  [storage: string]: GenericStorageQuery<Rv>;
552
576
  };
577
+ /**
578
+ * Pallet `MultiBlockMigrations`'s storage queries
579
+ **/
580
+ multiBlockMigrations: {
581
+ /**
582
+ * The currently active migration to run and its cursor.
583
+ *
584
+ * `None` indicates that no migration is running.
585
+ *
586
+ * @param {Callback<PalletMigrationsMigrationCursor | undefined> =} callback
587
+ **/
588
+ cursor: GenericStorageQuery<Rv, () => PalletMigrationsMigrationCursor | undefined>;
589
+
590
+ /**
591
+ * Set of all successfully executed migrations.
592
+ *
593
+ * This is used as blacklist, to not re-execute migrations that have not been removed from the
594
+ * codebase yet. Governance can regularly clear this out via `clear_historic`.
595
+ *
596
+ * @param {BytesLike} arg
597
+ * @param {Callback<[] | undefined> =} callback
598
+ **/
599
+ historic: GenericStorageQuery<Rv, (arg: BytesLike) => [] | undefined, Bytes>;
600
+
601
+ /**
602
+ * Generic pallet storage query
603
+ **/
604
+ [storage: string]: GenericStorageQuery<Rv>;
605
+ };
553
606
  /**
554
607
  * Pallet `Balances`'s storage queries
555
608
  **/
@@ -1621,25 +1674,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1621
1674
  /**
1622
1675
  * Details of an asset.
1623
1676
  *
1624
- * @param {StagingXcmV4Location} arg
1677
+ * @param {StagingXcmV5Location} arg
1625
1678
  * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1626
1679
  **/
1627
1680
  asset: GenericStorageQuery<
1628
1681
  Rv,
1629
- (arg: StagingXcmV4Location) => PalletAssetsAssetDetails | undefined,
1630
- StagingXcmV4Location
1682
+ (arg: StagingXcmV5Location) => PalletAssetsAssetDetails | undefined,
1683
+ StagingXcmV5Location
1631
1684
  >;
1632
1685
 
1633
1686
  /**
1634
1687
  * The holdings of a specific account for a specific asset.
1635
1688
  *
1636
- * @param {[StagingXcmV4Location, AccountId32Like]} arg
1689
+ * @param {[StagingXcmV5Location, AccountId32Like]} arg
1637
1690
  * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1638
1691
  **/
1639
1692
  account: GenericStorageQuery<
1640
1693
  Rv,
1641
- (arg: [StagingXcmV4Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1642
- [StagingXcmV4Location, AccountId32]
1694
+ (arg: [StagingXcmV5Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
1695
+ [StagingXcmV5Location, AccountId32]
1643
1696
  >;
1644
1697
 
1645
1698
  /**
@@ -1647,22 +1700,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1647
1700
  * is the amount of `T::Currency` reserved for storing this.
1648
1701
  * First key is the asset ID, second key is the owner and third key is the delegate.
1649
1702
  *
1650
- * @param {[StagingXcmV4Location, AccountId32Like, AccountId32Like]} arg
1703
+ * @param {[StagingXcmV5Location, AccountId32Like, AccountId32Like]} arg
1651
1704
  * @param {Callback<PalletAssetsApproval | undefined> =} callback
1652
1705
  **/
1653
1706
  approvals: GenericStorageQuery<
1654
1707
  Rv,
1655
- (arg: [StagingXcmV4Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1656
- [StagingXcmV4Location, AccountId32, AccountId32]
1708
+ (arg: [StagingXcmV5Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
1709
+ [StagingXcmV5Location, AccountId32, AccountId32]
1657
1710
  >;
1658
1711
 
1659
1712
  /**
1660
1713
  * Metadata of an asset.
1661
1714
  *
1662
- * @param {StagingXcmV4Location} arg
1715
+ * @param {StagingXcmV5Location} arg
1663
1716
  * @param {Callback<PalletAssetsAssetMetadata> =} callback
1664
1717
  **/
1665
- metadata: GenericStorageQuery<Rv, (arg: StagingXcmV4Location) => PalletAssetsAssetMetadata, StagingXcmV4Location>;
1718
+ metadata: GenericStorageQuery<Rv, (arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
1666
1719
 
1667
1720
  /**
1668
1721
  * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
@@ -1675,9 +1728,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1675
1728
  * The initial next asset ID can be set using the [`GenesisConfig`] or the
1676
1729
  * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1677
1730
  *
1678
- * @param {Callback<StagingXcmV4Location | undefined> =} callback
1731
+ * @param {Callback<StagingXcmV5Location | undefined> =} callback
1679
1732
  **/
1680
- nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV4Location | undefined>;
1733
+ nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV5Location | undefined>;
1681
1734
 
1682
1735
  /**
1683
1736
  * Generic pallet storage query
@@ -1779,13 +1832,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1779
1832
  * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1780
1833
  * created rather than people sending tokens directly to a pool's public account.
1781
1834
  *
1782
- * @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
1835
+ * @param {[StagingXcmV5Location, StagingXcmV5Location]} arg
1783
1836
  * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1784
1837
  **/
1785
1838
  pools: GenericStorageQuery<
1786
1839
  Rv,
1787
- (arg: [StagingXcmV4Location, StagingXcmV4Location]) => PalletAssetConversionPoolInfo | undefined,
1788
- [StagingXcmV4Location, StagingXcmV4Location]
1840
+ (arg: [StagingXcmV5Location, StagingXcmV5Location]) => PalletAssetConversionPoolInfo | undefined,
1841
+ [StagingXcmV5Location, StagingXcmV5Location]
1789
1842
  >;
1790
1843
 
1791
1844
  /**
@@ -1817,17 +1870,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1817
1870
  * A mapping from a contract's code hash to its code info.
1818
1871
  *
1819
1872
  * @param {H256} arg
1820
- * @param {Callback<PalletReviveWasmCodeInfo | undefined> =} callback
1873
+ * @param {Callback<PalletReviveVmCodeInfo | undefined> =} callback
1821
1874
  **/
1822
- codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletReviveWasmCodeInfo | undefined, H256>;
1875
+ codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletReviveVmCodeInfo | undefined, H256>;
1823
1876
 
1824
1877
  /**
1825
- * The code associated with a given account.
1878
+ * The data associated to a contract or externally owned account.
1826
1879
  *
1827
1880
  * @param {H160} arg
1828
- * @param {Callback<PalletReviveStorageContractInfo | undefined> =} callback
1881
+ * @param {Callback<PalletReviveStorageAccountInfo | undefined> =} callback
1829
1882
  **/
1830
- contractInfoOf: GenericStorageQuery<Rv, (arg: H160) => PalletReviveStorageContractInfo | undefined, H160>;
1883
+ accountInfoOf: GenericStorageQuery<Rv, (arg: H160) => PalletReviveStorageAccountInfo | undefined, H160>;
1831
1884
 
1832
1885
  /**
1833
1886
  * The immutable data associated with a given account.
@@ -30,7 +30,7 @@ import type {
30
30
  SpRuntimeTransactionValidityValidTransaction,
31
31
  SpRuntimeTransactionValidityTransactionSource,
32
32
  SpCoreCryptoKeyTypeId,
33
- StagingXcmV4Location,
33
+ StagingXcmV5Location,
34
34
  PalletTransactionPaymentRuntimeDispatchInfo,
35
35
  PalletTransactionPaymentFeeDetails,
36
36
  SpWeightsWeightV2Weight,
@@ -45,8 +45,13 @@ import type {
45
45
  AssetHubKusamaRuntimeOriginCaller,
46
46
  XcmRuntimeApisDryRunXcmDryRunEffects,
47
47
  XcmRuntimeApisConversionsError,
48
+ XcmRuntimeApisTrustedQueryError,
49
+ XcmVersionedAsset,
50
+ XcmRuntimeApisAuthorizedAliasesOriginAliaser,
51
+ XcmRuntimeApisAuthorizedAliasesError,
48
52
  AssetsCommonRuntimeApiFungiblesAccessError,
49
53
  CumulusPrimitivesCoreCollationInfo,
54
+ PolkadotParachainPrimitivesPrimitivesId,
50
55
  PalletRevivePrimitivesContractResult,
51
56
  PalletRevivePrimitivesContractResultInstantiateReturnValue,
52
57
  PalletRevivePrimitivesCode,
@@ -85,6 +90,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
85
90
  **/
86
91
  [method: string]: GenericRuntimeApiMethod<Rv>;
87
92
  };
93
+ /**
94
+ * @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
95
+ **/
96
+ relayParentOffsetApi: {
97
+ /**
98
+ * Fetch the slot offset that is expected from the relay chain.
99
+ *
100
+ * @callname: RelayParentOffsetApi_relay_parent_offset
101
+ **/
102
+ relayParentOffset: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
103
+
104
+ /**
105
+ * Generic runtime api call
106
+ **/
107
+ [method: string]: GenericRuntimeApiMethod<Rv>;
108
+ };
88
109
  /**
89
110
  * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
90
111
  **/
@@ -352,16 +373,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
352
373
  * (Use `amount_in_max` to control slippage.)
353
374
  *
354
375
  * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
355
- * @param {StagingXcmV4Location} asset1
356
- * @param {StagingXcmV4Location} asset2
376
+ * @param {StagingXcmV5Location} asset1
377
+ * @param {StagingXcmV5Location} asset2
357
378
  * @param {bigint} amount
358
379
  * @param {boolean} include_fee
359
380
  **/
360
381
  quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
361
382
  Rv,
362
383
  (
363
- asset1: StagingXcmV4Location,
364
- asset2: StagingXcmV4Location,
384
+ asset1: StagingXcmV5Location,
385
+ asset2: StagingXcmV5Location,
365
386
  amount: bigint,
366
387
  includeFee: boolean,
367
388
  ) => Promise<bigint | undefined>
@@ -374,16 +395,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
374
395
  * (Use `amount_out_min` to control slippage.)
375
396
  *
376
397
  * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
377
- * @param {StagingXcmV4Location} asset1
378
- * @param {StagingXcmV4Location} asset2
398
+ * @param {StagingXcmV5Location} asset1
399
+ * @param {StagingXcmV5Location} asset2
379
400
  * @param {bigint} amount
380
401
  * @param {boolean} include_fee
381
402
  **/
382
403
  quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
383
404
  Rv,
384
405
  (
385
- asset1: StagingXcmV4Location,
386
- asset2: StagingXcmV4Location,
406
+ asset1: StagingXcmV5Location,
407
+ asset2: StagingXcmV5Location,
387
408
  amount: bigint,
388
409
  includeFee: boolean,
389
410
  ) => Promise<bigint | undefined>
@@ -393,12 +414,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
393
414
  * Returns the size of the liquidity pool for the given asset pair.
394
415
  *
395
416
  * @callname: AssetConversionApi_get_reserves
396
- * @param {StagingXcmV4Location} asset1
397
- * @param {StagingXcmV4Location} asset2
417
+ * @param {StagingXcmV5Location} asset1
418
+ * @param {StagingXcmV5Location} asset2
398
419
  **/
399
420
  getReserves: GenericRuntimeApiMethod<
400
421
  Rv,
401
- (asset1: StagingXcmV4Location, asset2: StagingXcmV4Location) => Promise<[bigint, bigint] | undefined>
422
+ (asset1: StagingXcmV5Location, asset2: StagingXcmV5Location) => Promise<[bigint, bigint] | undefined>
402
423
  >;
403
424
 
404
425
  /**
@@ -639,6 +660,90 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
639
660
  **/
640
661
  [method: string]: GenericRuntimeApiMethod<Rv>;
641
662
  };
663
+ /**
664
+ * @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
665
+ **/
666
+ trustedQueryApi: {
667
+ /**
668
+ * Returns if the location is a trusted reserve for the asset.
669
+ *
670
+ * # Arguments
671
+ * * `asset`: `VersionedAsset`.
672
+ * * `location`: `VersionedLocation`.
673
+ *
674
+ * @callname: TrustedQueryApi_is_trusted_reserve
675
+ * @param {XcmVersionedAsset} asset
676
+ * @param {XcmVersionedLocation} location
677
+ **/
678
+ isTrustedReserve: GenericRuntimeApiMethod<
679
+ Rv,
680
+ (
681
+ asset: XcmVersionedAsset,
682
+ location: XcmVersionedLocation,
683
+ ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
684
+ >;
685
+
686
+ /**
687
+ * Returns if the asset can be teleported to the location.
688
+ *
689
+ * # Arguments
690
+ * * `asset`: `VersionedAsset`.
691
+ * * `location`: `VersionedLocation`.
692
+ *
693
+ * @callname: TrustedQueryApi_is_trusted_teleporter
694
+ * @param {XcmVersionedAsset} asset
695
+ * @param {XcmVersionedLocation} location
696
+ **/
697
+ isTrustedTeleporter: GenericRuntimeApiMethod<
698
+ Rv,
699
+ (
700
+ asset: XcmVersionedAsset,
701
+ location: XcmVersionedLocation,
702
+ ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
703
+ >;
704
+
705
+ /**
706
+ * Generic runtime api call
707
+ **/
708
+ [method: string]: GenericRuntimeApiMethod<Rv>;
709
+ };
710
+ /**
711
+ * @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
712
+ **/
713
+ authorizedAliasersApi: {
714
+ /**
715
+ * Returns locations allowed to alias into and act as `target`.
716
+ *
717
+ * @callname: AuthorizedAliasersApi_authorized_aliasers
718
+ * @param {XcmVersionedLocation} target
719
+ **/
720
+ authorizedAliasers: GenericRuntimeApiMethod<
721
+ Rv,
722
+ (
723
+ target: XcmVersionedLocation,
724
+ ) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
725
+ >;
726
+
727
+ /**
728
+ * Returns whether `origin` is allowed to alias into and act as `target`.
729
+ *
730
+ * @callname: AuthorizedAliasersApi_is_authorized_alias
731
+ * @param {XcmVersionedLocation} origin
732
+ * @param {XcmVersionedLocation} target
733
+ **/
734
+ isAuthorizedAlias: GenericRuntimeApiMethod<
735
+ Rv,
736
+ (
737
+ origin: XcmVersionedLocation,
738
+ target: XcmVersionedLocation,
739
+ ) => Promise<Result<boolean, XcmRuntimeApisAuthorizedAliasesError>>
740
+ >;
741
+
742
+ /**
743
+ * Generic runtime api call
744
+ **/
745
+ [method: string]: GenericRuntimeApiMethod<Rv>;
746
+ };
642
747
  /**
643
748
  * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
644
749
  **/
@@ -736,6 +841,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
736
841
  **/
737
842
  [method: string]: GenericRuntimeApiMethod<Rv>;
738
843
  };
844
+ /**
845
+ * @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
846
+ **/
847
+ getParachainInfo: {
848
+ /**
849
+ * Retrieve the parachain id used for runtime.
850
+ *
851
+ * @callname: GetParachainInfo_parachain_id
852
+ **/
853
+ parachainId: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
854
+
855
+ /**
856
+ * Generic runtime api call
857
+ **/
858
+ [method: string]: GenericRuntimeApiMethod<Rv>;
859
+ };
739
860
  /**
740
861
  * @runtimeapi: ReviveApi - 0x8c403e5c4a9fd442
741
862
  **/
@@ -825,7 +946,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
825
946
  /**
826
947
  * Perform an Ethereum call.
827
948
  *
828
- * See [`crate::Pallet::bare_eth_transact`]
949
+ * See [`crate::Pallet::dry_run_eth_transact`]
829
950
  *
830
951
  * @callname: ReviveApi_eth_transact
831
952
  * @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
@@ -875,6 +996,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
875
996
  ) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>
876
997
  >;
877
998
 
999
+ /**
1000
+ * Query a given variable-sized storage key in a given contract.
1001
+ *
1002
+ * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
1003
+ * specified account and `Ok(None)` if it doesn't. If the account specified by the address
1004
+ * doesn't exist, or doesn't have a contract then `Err` is returned.
1005
+ *
1006
+ * @callname: ReviveApi_get_storage_var_key
1007
+ * @param {H160} address
1008
+ * @param {BytesLike} key
1009
+ **/
1010
+ getStorageVarKey: GenericRuntimeApiMethod<
1011
+ Rv,
1012
+ (address: H160, key: BytesLike) => Promise<Result<Bytes | undefined, PalletRevivePrimitivesContractAccessError>>
1013
+ >;
1014
+
878
1015
  /**
879
1016
  * Traces the execution of an entire block and returns call traces.
880
1017
  *
@@ -934,6 +1071,36 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
934
1071
  ) => Promise<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>
935
1072
  >;
936
1073
 
1074
+ /**
1075
+ * The address of the validator that produced the current block.
1076
+ *
1077
+ * @callname: ReviveApi_block_author
1078
+ **/
1079
+ blockAuthor: GenericRuntimeApiMethod<Rv, () => Promise<H160 | undefined>>;
1080
+
1081
+ /**
1082
+ * Get the H160 address associated to this account id
1083
+ *
1084
+ * @callname: ReviveApi_address
1085
+ * @param {AccountId32Like} account_id
1086
+ **/
1087
+ address: GenericRuntimeApiMethod<Rv, (accountId: AccountId32Like) => Promise<H160>>;
1088
+
1089
+ /**
1090
+ * The address used to call the runtime's pallets dispatchables
1091
+ *
1092
+ * @callname: ReviveApi_runtime_pallets_address
1093
+ **/
1094
+ runtimePalletsAddress: GenericRuntimeApiMethod<Rv, () => Promise<H160>>;
1095
+
1096
+ /**
1097
+ * The code at the specified address taking pre-compiles into account.
1098
+ *
1099
+ * @callname: ReviveApi_code
1100
+ * @param {H160} address
1101
+ **/
1102
+ code: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<Bytes>>;
1103
+
937
1104
  /**
938
1105
  * Generic runtime api call
939
1106
  **/