@dedot/chaintypes 0.53.0 → 0.55.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.
@@ -712,16 +712,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
712
712
  **/
713
713
  LimitCannotBeZero: GenericPalletError<Rv>;
714
714
 
715
- /**
716
- * There must be at least one address
717
- **/
718
- AddressesLengthCannotBeZero: GenericPalletError<Rv>;
719
-
720
- /**
721
- * The contract is not corrupted (Still exist or properly suicided)
722
- **/
723
- ContractNotCorrupted: GenericPalletError<Rv>;
724
-
725
715
  /**
726
716
  * The contract already have metadata
727
717
  **/
@@ -737,6 +727,51 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
737
727
  **/
738
728
  KeyTooLong: GenericPalletError<Rv>;
739
729
 
730
+ /**
731
+ * The symbol length exceeds the maximum allowed
732
+ **/
733
+ SymbolTooLong: GenericPalletError<Rv>;
734
+
735
+ /**
736
+ * The name length exceeds the maximum allowed
737
+ **/
738
+ NameTooLong: GenericPalletError<Rv>;
739
+
740
+ /**
741
+ * The asset type was not found
742
+ **/
743
+ AssetTypeNotFound: GenericPalletError<Rv>;
744
+
745
+ /**
746
+ * Asset not found
747
+ **/
748
+ AssetNotFound: GenericPalletError<Rv>;
749
+
750
+ /**
751
+ * The location of the asset was not found
752
+ **/
753
+ LocationNotFound: GenericPalletError<Rv>;
754
+
755
+ /**
756
+ * Migration is not finished yet
757
+ **/
758
+ MigrationNotFinished: GenericPalletError<Rv>;
759
+
760
+ /**
761
+ * No migration in progress
762
+ **/
763
+ NoMigrationInProgress: GenericPalletError<Rv>;
764
+
765
+ /**
766
+ * Fail to mint the foreign asset
767
+ **/
768
+ MintFailed: GenericPalletError<Rv>;
769
+
770
+ /**
771
+ * Fail to add an approval
772
+ **/
773
+ ApprovalFailed: GenericPalletError<Rv>;
774
+
740
775
  /**
741
776
  * Generic pallet error
742
777
  **/
@@ -23,7 +23,7 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: MoonbeamApi
26
- * @specVersion: 3300
26
+ * @specVersion: 3400
27
27
  **/
28
28
  export interface MoonbeamApi {
29
29
  legacy: VersionedMoonbeamApi<RpcLegacy>;
@@ -64,6 +64,7 @@ import type {
64
64
  PalletIdentityAuthorityProperties,
65
65
  PalletMultisigMultisig,
66
66
  PalletMoonbeamLazyMigrationsStateMigrationStatus,
67
+ PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus,
67
68
  MoonbeamRuntimeRuntimeParamsRuntimeParametersValue,
68
69
  MoonbeamRuntimeRuntimeParamsRuntimeParametersKey,
69
70
  PalletEvmCodeMetadata,
@@ -1241,21 +1242,30 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1241
1242
  **/
1242
1243
  moonbeamLazyMigrations: {
1243
1244
  /**
1244
- * The total number of suicided contracts that were removed
1245
1245
  *
1246
- * @param {Callback<number> =} callback
1246
+ * @param {Callback<[PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]> =} callback
1247
1247
  **/
1248
- suicidedContractsRemoved: GenericStorageQuery<Rv, () => number>;
1248
+ stateMigrationStatusValue: GenericStorageQuery<
1249
+ Rv,
1250
+ () => [PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]
1251
+ >;
1249
1252
 
1250
1253
  /**
1251
1254
  *
1252
- * @param {Callback<[PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]> =} callback
1255
+ * @param {Callback<PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus> =} callback
1253
1256
  **/
1254
- stateMigrationStatusValue: GenericStorageQuery<
1257
+ foreignAssetMigrationStatusValue: GenericStorageQuery<
1255
1258
  Rv,
1256
- () => [PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]
1259
+ () => PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus
1257
1260
  >;
1258
1261
 
1262
+ /**
1263
+ *
1264
+ * @param {bigint} arg
1265
+ * @param {Callback<[] | undefined> =} callback
1266
+ **/
1267
+ approvedForeignAssets: GenericStorageQuery<Rv, (arg: bigint) => [] | undefined, bigint>;
1268
+
1259
1269
  /**
1260
1270
  * Generic pallet storage query
1261
1271
  **/
package/moonbeam/tx.d.ts CHANGED
@@ -3272,21 +3272,71 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3272
3272
  moonbeamLazyMigrations: {
3273
3273
  /**
3274
3274
  *
3275
- * @param {Array<H160>} addresses
3275
+ * @param {H160} address
3276
+ **/
3277
+ createContractMetadata: GenericTxCall<
3278
+ Rv,
3279
+ (address: H160) => ChainSubmittableExtrinsic<
3280
+ Rv,
3281
+ {
3282
+ pallet: 'MoonbeamLazyMigrations';
3283
+ palletCall: {
3284
+ name: 'CreateContractMetadata';
3285
+ params: { address: H160 };
3286
+ };
3287
+ }
3288
+ >
3289
+ >;
3290
+
3291
+ /**
3292
+ *
3293
+ * @param {Array<bigint>} assets
3294
+ **/
3295
+ approveAssetsToMigrate: GenericTxCall<
3296
+ Rv,
3297
+ (assets: Array<bigint>) => ChainSubmittableExtrinsic<
3298
+ Rv,
3299
+ {
3300
+ pallet: 'MoonbeamLazyMigrations';
3301
+ palletCall: {
3302
+ name: 'ApproveAssetsToMigrate';
3303
+ params: { assets: Array<bigint> };
3304
+ };
3305
+ }
3306
+ >
3307
+ >;
3308
+
3309
+ /**
3310
+ *
3311
+ * @param {bigint} assetId
3312
+ **/
3313
+ startForeignAssetsMigration: GenericTxCall<
3314
+ Rv,
3315
+ (assetId: bigint) => ChainSubmittableExtrinsic<
3316
+ Rv,
3317
+ {
3318
+ pallet: 'MoonbeamLazyMigrations';
3319
+ palletCall: {
3320
+ name: 'StartForeignAssetsMigration';
3321
+ params: { assetId: bigint };
3322
+ };
3323
+ }
3324
+ >
3325
+ >;
3326
+
3327
+ /**
3328
+ *
3276
3329
  * @param {number} limit
3277
3330
  **/
3278
- clearSuicidedStorage: GenericTxCall<
3331
+ migrateForeignAssetBalances: GenericTxCall<
3279
3332
  Rv,
3280
- (
3281
- addresses: Array<H160>,
3282
- limit: number,
3283
- ) => ChainSubmittableExtrinsic<
3333
+ (limit: number) => ChainSubmittableExtrinsic<
3284
3334
  Rv,
3285
3335
  {
3286
3336
  pallet: 'MoonbeamLazyMigrations';
3287
3337
  palletCall: {
3288
- name: 'ClearSuicidedStorage';
3289
- params: { addresses: Array<H160>; limit: number };
3338
+ name: 'MigrateForeignAssetBalances';
3339
+ params: { limit: number };
3290
3340
  };
3291
3341
  }
3292
3342
  >
@@ -3294,17 +3344,33 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3294
3344
 
3295
3345
  /**
3296
3346
  *
3297
- * @param {H160} address
3347
+ * @param {number} limit
3298
3348
  **/
3299
- createContractMetadata: GenericTxCall<
3349
+ migrateForeignAssetApprovals: GenericTxCall<
3300
3350
  Rv,
3301
- (address: H160) => ChainSubmittableExtrinsic<
3351
+ (limit: number) => ChainSubmittableExtrinsic<
3302
3352
  Rv,
3303
3353
  {
3304
3354
  pallet: 'MoonbeamLazyMigrations';
3305
3355
  palletCall: {
3306
- name: 'CreateContractMetadata';
3307
- params: { address: H160 };
3356
+ name: 'MigrateForeignAssetApprovals';
3357
+ params: { limit: number };
3358
+ };
3359
+ }
3360
+ >
3361
+ >;
3362
+
3363
+ /**
3364
+ *
3365
+ **/
3366
+ finishForeignAssetsMigration: GenericTxCall<
3367
+ Rv,
3368
+ () => ChainSubmittableExtrinsic<
3369
+ Rv,
3370
+ {
3371
+ pallet: 'MoonbeamLazyMigrations';
3372
+ palletCall: {
3373
+ name: 'FinishForeignAssetsMigration';
3308
3374
  };
3309
3375
  }
3310
3376
  >
@@ -3890,12 +3890,20 @@ export type PalletMultisigCallLike =
3890
3890
  * Contains a variant per dispatchable extrinsic that this pallet has.
3891
3891
  **/
3892
3892
  export type PalletMoonbeamLazyMigrationsCall =
3893
- | { name: 'ClearSuicidedStorage'; params: { addresses: Array<H160>; limit: number } }
3894
- | { name: 'CreateContractMetadata'; params: { address: H160 } };
3893
+ | { name: 'CreateContractMetadata'; params: { address: H160 } }
3894
+ | { name: 'ApproveAssetsToMigrate'; params: { assets: Array<bigint> } }
3895
+ | { name: 'StartForeignAssetsMigration'; params: { assetId: bigint } }
3896
+ | { name: 'MigrateForeignAssetBalances'; params: { limit: number } }
3897
+ | { name: 'MigrateForeignAssetApprovals'; params: { limit: number } }
3898
+ | { name: 'FinishForeignAssetsMigration' };
3895
3899
 
3896
3900
  export type PalletMoonbeamLazyMigrationsCallLike =
3897
- | { name: 'ClearSuicidedStorage'; params: { addresses: Array<H160>; limit: number } }
3898
- | { name: 'CreateContractMetadata'; params: { address: H160 } };
3901
+ | { name: 'CreateContractMetadata'; params: { address: H160 } }
3902
+ | { name: 'ApproveAssetsToMigrate'; params: { assets: Array<bigint> } }
3903
+ | { name: 'StartForeignAssetsMigration'; params: { assetId: bigint } }
3904
+ | { name: 'MigrateForeignAssetBalances'; params: { limit: number } }
3905
+ | { name: 'MigrateForeignAssetApprovals'; params: { limit: number } }
3906
+ | { name: 'FinishForeignAssetsMigration' };
3899
3907
 
3900
3908
  /**
3901
3909
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -10056,6 +10064,16 @@ export type PalletMoonbeamLazyMigrationsStateMigrationStatus =
10056
10064
  | { type: 'Error'; value: Bytes }
10057
10065
  | { type: 'Complete' };
10058
10066
 
10067
+ export type PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus =
10068
+ | { type: 'Idle' }
10069
+ | { type: 'Migrating'; value: PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationInfo };
10070
+
10071
+ export type PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationInfo = {
10072
+ assetId: bigint;
10073
+ remainingBalances: number;
10074
+ remainingApprovals: number;
10075
+ };
10076
+
10059
10077
  /**
10060
10078
  * The `Error` enum of this pallet.
10061
10079
  **/
@@ -10064,14 +10082,6 @@ export type PalletMoonbeamLazyMigrationsError =
10064
10082
  * The limit cannot be zero
10065
10083
  **/
10066
10084
  | 'LimitCannotBeZero'
10067
- /**
10068
- * There must be at least one address
10069
- **/
10070
- | 'AddressesLengthCannotBeZero'
10071
- /**
10072
- * The contract is not corrupted (Still exist or properly suicided)
10073
- **/
10074
- | 'ContractNotCorrupted'
10075
10085
  /**
10076
10086
  * The contract already have metadata
10077
10087
  **/
@@ -10083,7 +10093,43 @@ export type PalletMoonbeamLazyMigrationsError =
10083
10093
  /**
10084
10094
  * The key lengths exceeds the maximum allowed
10085
10095
  **/
10086
- | 'KeyTooLong';
10096
+ | 'KeyTooLong'
10097
+ /**
10098
+ * The symbol length exceeds the maximum allowed
10099
+ **/
10100
+ | 'SymbolTooLong'
10101
+ /**
10102
+ * The name length exceeds the maximum allowed
10103
+ **/
10104
+ | 'NameTooLong'
10105
+ /**
10106
+ * The asset type was not found
10107
+ **/
10108
+ | 'AssetTypeNotFound'
10109
+ /**
10110
+ * Asset not found
10111
+ **/
10112
+ | 'AssetNotFound'
10113
+ /**
10114
+ * The location of the asset was not found
10115
+ **/
10116
+ | 'LocationNotFound'
10117
+ /**
10118
+ * Migration is not finished yet
10119
+ **/
10120
+ | 'MigrationNotFinished'
10121
+ /**
10122
+ * No migration in progress
10123
+ **/
10124
+ | 'NoMigrationInProgress'
10125
+ /**
10126
+ * Fail to mint the foreign asset
10127
+ **/
10128
+ | 'MintFailed'
10129
+ /**
10130
+ * Fail to add an approval
10131
+ **/
10132
+ | 'ApprovalFailed';
10087
10133
 
10088
10134
  export type PalletEvmCodeMetadata = { size: bigint; hash: H256 };
10089
10135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -12,14 +12,14 @@
12
12
  "copy": "cp -R ./src/* ./dist"
13
13
  },
14
14
  "dependencies": {
15
- "dedot": "^0.6.1"
15
+ "dedot": "^0.7.0"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public",
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "e063074f26be6217a551ed1310c2942caca669a5",
22
+ "gitHead": "157f179ee412760aea87ffa70d6df1df038ecb71",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
@@ -170,11 +170,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
170
170
  /**
171
171
  * The maximum number of locks that should exist on an account.
172
172
  * Not strictly enforced, but used for weight estimation.
173
+ *
174
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
173
175
  **/
174
176
  maxLocks: number;
175
177
 
176
178
  /**
177
179
  * The maximum number of named reserves that can exist on an account.
180
+ *
181
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
178
182
  **/
179
183
  maxReserves: number;
180
184
 
@@ -222,15 +226,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
222
226
  **/
223
227
  [name: string]: any;
224
228
  };
225
- /**
226
- * Pallet `AssetTxPayment`'s constants
227
- **/
228
- assetTxPayment: {
229
- /**
230
- * Generic pallet constant
231
- **/
232
- [name: string]: any;
233
- };
234
229
  /**
235
230
  * Pallet `AssetConversionTxPayment`'s constants
236
231
  **/
@@ -244,16 +239,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
244
239
  * Pallet `ElectionProviderMultiPhase`'s constants
245
240
  **/
246
241
  electionProviderMultiPhase: {
247
- /**
248
- * Duration of the unsigned phase.
249
- **/
250
- unsignedPhase: number;
251
-
252
- /**
253
- * Duration of the signed phase.
254
- **/
255
- signedPhase: number;
256
-
257
242
  /**
258
243
  * The minimum amount of improvement to the solution score that defines a solution as
259
244
  * "better" in the Signed phase.
@@ -647,22 +632,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
647
632
  * Pallet `Treasury`'s constants
648
633
  **/
649
634
  treasury: {
650
- /**
651
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
652
- * An accepted proposal gets these back. A rejected proposal does not.
653
- **/
654
- proposalBond: Permill;
655
-
656
- /**
657
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
658
- **/
659
- proposalBondMinimum: bigint;
660
-
661
- /**
662
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
663
- **/
664
- proposalBondMaximum: bigint | undefined;
665
-
666
635
  /**
667
636
  * Period between successive spends.
668
637
  **/
@@ -679,6 +648,9 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
679
648
  palletId: FrameSupportPalletId;
680
649
 
681
650
  /**
651
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
652
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
653
+ *
682
654
  * The maximum number of approvals that can wait in the spending queue.
683
655
  *
684
656
  * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
@@ -758,6 +730,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
758
730
  **/
759
731
  maxStorageKeyLen: number;
760
732
 
733
+ /**
734
+ * The maximum size of the transient storage in bytes.
735
+ * This includes keys, values, and previous entries used for storage rollback.
736
+ **/
737
+ maxTransientStorageSize: number;
738
+
761
739
  /**
762
740
  * The maximum number of delegate_dependencies that a contract can lock with
763
741
  * [`chain_extension::Ext::lock_delegate_dependency`].
@@ -878,6 +856,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
878
856
  **/
879
857
  byteDeposit: bigint;
880
858
 
859
+ /**
860
+ * The amount held on deposit per registered username. This value should change only in
861
+ * runtime upgrades with proper migration of existing deposits.
862
+ **/
863
+ usernameDeposit: bigint;
864
+
881
865
  /**
882
866
  * The amount held on deposit for a registered subaccount. This should account for the fact
883
867
  * that one storage item's value will increase by the size of an account ID, and there will
@@ -891,7 +875,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
891
875
  maxSubAccounts: number;
892
876
 
893
877
  /**
894
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
878
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
895
879
  * of, e.g., updating judgements.
896
880
  **/
897
881
  maxRegistrars: number;
@@ -901,6 +885,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
901
885
  **/
902
886
  pendingUsernameExpiration: number;
903
887
 
888
+ /**
889
+ * The number of blocks that must pass to enable the permanent deletion of a username by
890
+ * its respective authority.
891
+ **/
892
+ usernameGracePeriod: number;
893
+
904
894
  /**
905
895
  * The maximum length of a suffix.
906
896
  **/
@@ -1710,6 +1700,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1710
1700
  **/
1711
1701
  evidenceSize: number;
1712
1702
 
1703
+ /**
1704
+ * Represents the highest possible rank in this pallet.
1705
+ *
1706
+ * Increasing this value is supported, but decreasing it may lead to a broken state.
1707
+ **/
1708
+ maxRank: number;
1709
+
1713
1710
  /**
1714
1711
  * Generic pallet constant
1715
1712
  **/
@@ -2132,13 +2129,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
2132
2129
 
2133
2130
  /**
2134
2131
  * The amount of weight (if any) which should be provided to the message queue for
2135
- * servicing enqueued items.
2132
+ * servicing enqueued items `on_initialize`.
2136
2133
  *
2137
2134
  * This may be legitimately `None` in the case that you will call
2138
- * `ServiceQueues::service_queues` manually.
2135
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
2136
+ * it run in `on_idle`.
2139
2137
  **/
2140
2138
  serviceWeight: SpWeightsWeightV2Weight | undefined;
2141
2139
 
2140
+ /**
2141
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
2142
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
2143
+ * Useful for parachains to process messages at the same block they are received.
2144
+ *
2145
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
2146
+ **/
2147
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
2148
+
2142
2149
  /**
2143
2150
  * Generic pallet constant
2144
2151
  **/
@@ -2303,6 +2310,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
2303
2310
  * Maximum number of system cores.
2304
2311
  **/
2305
2312
  maxReservedCores: number;
2313
+ maxAutoRenewals: number;
2306
2314
 
2307
2315
  /**
2308
2316
  * Generic pallet constant
@@ -2401,4 +2409,93 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
2401
2409
  **/
2402
2410
  [name: string]: any;
2403
2411
  };
2412
+ /**
2413
+ * Pallet `PalletExampleMbms`'s constants
2414
+ **/
2415
+ palletExampleMbms: {
2416
+ /**
2417
+ * Generic pallet constant
2418
+ **/
2419
+ [name: string]: any;
2420
+ };
2421
+ /**
2422
+ * Pallet `AssetConversionMigration`'s constants
2423
+ **/
2424
+ assetConversionMigration: {
2425
+ /**
2426
+ * Generic pallet constant
2427
+ **/
2428
+ [name: string]: any;
2429
+ };
2430
+ /**
2431
+ * Pallet `Revive`'s constants
2432
+ **/
2433
+ revive: {
2434
+ /**
2435
+ * The amount of balance a caller has to pay for each byte of storage.
2436
+ *
2437
+ * # Note
2438
+ *
2439
+ * It is safe to change this value on a live chain as all refunds are pro rata.
2440
+ **/
2441
+ depositPerByte: bigint;
2442
+
2443
+ /**
2444
+ * The amount of balance a caller has to pay for each storage item.
2445
+ *
2446
+ * # Note
2447
+ *
2448
+ * It is safe to change this value on a live chain as all refunds are pro rata.
2449
+ **/
2450
+ depositPerItem: bigint;
2451
+
2452
+ /**
2453
+ * The percentage of the storage deposit that should be held for using a code hash.
2454
+ * Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
2455
+ * protects the code from being removed. In order to prevent abuse these actions are
2456
+ * protected with a percentage of the code deposit.
2457
+ **/
2458
+ codeHashLockupDepositPercent: Perbill;
2459
+
2460
+ /**
2461
+ * Make contract callable functions marked as `#[unstable]` available.
2462
+ *
2463
+ * Contracts that use `#[unstable]` functions won't be able to be uploaded unless
2464
+ * this is set to `true`. This is only meant for testnets and dev nodes in order to
2465
+ * experiment with new features.
2466
+ *
2467
+ * # Warning
2468
+ *
2469
+ * Do **not** set to `true` on productions chains.
2470
+ **/
2471
+ unsafeUnstableInterface: boolean;
2472
+
2473
+ /**
2474
+ * The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
2475
+ *
2476
+ * This is a unique identifier assigned to each blockchain network,
2477
+ * preventing replay attacks.
2478
+ **/
2479
+ chainId: bigint;
2480
+
2481
+ /**
2482
+ * The ratio between the decimal representation of the native token and the ETH token.
2483
+ **/
2484
+ nativeToEthRatio: number;
2485
+ apiVersion: number;
2486
+
2487
+ /**
2488
+ * Generic pallet constant
2489
+ **/
2490
+ [name: string]: any;
2491
+ };
2492
+ /**
2493
+ * Pallet `VerifySignature`'s constants
2494
+ **/
2495
+ verifySignature: {
2496
+ /**
2497
+ * Generic pallet constant
2498
+ **/
2499
+ [name: string]: any;
2500
+ };
2404
2501
  }