@dedot/chaintypes 0.17.0 → 0.19.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.
@@ -28,6 +28,9 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
28
28
  | 'chainHead_v1_stopOperation'
29
29
  | 'chainHead_v1_storage'
30
30
  | 'chainHead_v1_unpin'
31
+ | 'chainSpec_v1_chainName'
32
+ | 'chainSpec_v1_genesisHash'
33
+ | 'chainSpec_v1_properties'
31
34
  | 'chain_getBlock'
32
35
  | 'chain_getBlockHash'
33
36
  | 'chain_getFinalizedHead'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "0f10ec6c66991493c6c953c75a602f1087d8c2a5",
22
+ "gitHead": "6a1f051313ccf9f3ce9ecb24bcea1dc4b197b279",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
package/paseo/consts.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
- import type { RuntimeVersion, Permill, Bytes, Perbill } from 'dedot/codecs';
4
+ import type { RuntimeVersion, Permill, Bytes, Perbill, FixedU128 } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
@@ -9,6 +9,7 @@ import type {
9
9
  SpWeightsWeightV2Weight,
10
10
  FrameSupportPalletId,
11
11
  PalletReferendaTrackInfo,
12
+ StagingXcmV4Junctions,
12
13
  } from './types';
13
14
 
14
15
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -37,7 +38,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
37
38
  dbWeight: SpWeightsRuntimeDbWeight;
38
39
 
39
40
  /**
40
- * Get the chain's current version.
41
+ * Get the chain's in-code version.
41
42
  **/
42
43
  version: RuntimeVersion;
43
44
 
@@ -174,11 +175,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
174
175
  /**
175
176
  * The maximum number of locks that should exist on an account.
176
177
  * Not strictly enforced, but used for weight estimation.
178
+ *
179
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
177
180
  **/
178
181
  maxLocks: number;
179
182
 
180
183
  /**
181
184
  * The maximum number of named reserves that can exist on an account.
185
+ *
186
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
182
187
  **/
183
188
  maxReserves: number;
184
189
 
@@ -384,22 +389,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
384
389
  * Pallet `Treasury`'s constants
385
390
  **/
386
391
  treasury: {
387
- /**
388
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
389
- * An accepted proposal gets these back. A rejected proposal does not.
390
- **/
391
- proposalBond: Permill;
392
-
393
- /**
394
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
395
- **/
396
- proposalBondMinimum: bigint;
397
-
398
- /**
399
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
400
- **/
401
- proposalBondMaximum: bigint | undefined;
402
-
403
392
  /**
404
393
  * Period between successive spends.
405
394
  **/
@@ -552,58 +541,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
552
541
  **/
553
542
  [name: string]: any;
554
543
  };
555
- /**
556
- * Pallet `Identity`'s constants
557
- **/
558
- identity: {
559
- /**
560
- * The amount held on deposit for a registered identity.
561
- **/
562
- basicDeposit: bigint;
563
-
564
- /**
565
- * The amount held on deposit per encoded byte for a registered identity.
566
- **/
567
- byteDeposit: bigint;
568
-
569
- /**
570
- * The amount held on deposit for a registered subaccount. This should account for the fact
571
- * that one storage item's value will increase by the size of an account ID, and there will
572
- * be another trie item whose value is the size of an account ID plus 32 bytes.
573
- **/
574
- subAccountDeposit: bigint;
575
-
576
- /**
577
- * The maximum number of sub-accounts allowed per identified account.
578
- **/
579
- maxSubAccounts: number;
580
-
581
- /**
582
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
583
- * of, e.g., updating judgements.
584
- **/
585
- maxRegistrars: number;
586
-
587
- /**
588
- * The number of blocks within which a username grant must be accepted.
589
- **/
590
- pendingUsernameExpiration: number;
591
-
592
- /**
593
- * The maximum length of a suffix.
594
- **/
595
- maxSuffixLength: number;
596
-
597
- /**
598
- * The maximum length of a username, including its suffix and any system-added delimiters.
599
- **/
600
- maxUsernameLength: number;
601
-
602
- /**
603
- * Generic pallet constant
604
- **/
605
- [name: string]: any;
606
- };
607
544
  /**
608
545
  * Pallet `Proxy`'s constants
609
546
  **/
@@ -769,16 +706,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
769
706
  * Pallet `ElectionProviderMultiPhase`'s constants
770
707
  **/
771
708
  electionProviderMultiPhase: {
772
- /**
773
- * Duration of the unsigned phase.
774
- **/
775
- unsignedPhase: number;
776
-
777
- /**
778
- * Duration of the signed phase.
779
- **/
780
- signedPhase: number;
781
-
782
709
  /**
783
710
  * The minimum amount of improvement to the solution score that defines a solution as
784
711
  * "better" in the Signed phase.
@@ -1081,9 +1008,34 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1081
1008
  [name: string]: any;
1082
1009
  };
1083
1010
  /**
1084
- * Pallet `ParaAssignmentProvider`'s constants
1011
+ * Pallet `OnDemand`'s constants
1085
1012
  **/
1086
- paraAssignmentProvider: {
1013
+ onDemand: {
1014
+ /**
1015
+ * The default value for the spot traffic multiplier.
1016
+ **/
1017
+ trafficDefaultValue: FixedU128;
1018
+
1019
+ /**
1020
+ * The maximum number of blocks some historical revenue
1021
+ * information stored for.
1022
+ **/
1023
+ maxHistoricalRevenue: number;
1024
+
1025
+ /**
1026
+ * Identifier for the internal revenue balance.
1027
+ **/
1028
+ palletId: FrameSupportPalletId;
1029
+
1030
+ /**
1031
+ * Generic pallet constant
1032
+ **/
1033
+ [name: string]: any;
1034
+ };
1035
+ /**
1036
+ * Pallet `CoretimeAssignmentProvider`'s constants
1037
+ **/
1038
+ coretimeAssignmentProvider: {
1087
1039
  /**
1088
1040
  * Generic pallet constant
1089
1041
  **/
@@ -1177,6 +1129,25 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1177
1129
  **/
1178
1130
  [name: string]: any;
1179
1131
  };
1132
+ /**
1133
+ * Pallet `Coretime`'s constants
1134
+ **/
1135
+ coretime: {
1136
+ /**
1137
+ * The ParaId of the coretime chain.
1138
+ **/
1139
+ brokerId: number;
1140
+
1141
+ /**
1142
+ * The coretime chain pot location.
1143
+ **/
1144
+ brokerPotLocation: StagingXcmV4Junctions;
1145
+
1146
+ /**
1147
+ * Generic pallet constant
1148
+ **/
1149
+ [name: string]: any;
1150
+ };
1180
1151
  /**
1181
1152
  * Pallet `StateTrieMigration`'s constants
1182
1153
  **/
@@ -1242,13 +1213,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1242
1213
 
1243
1214
  /**
1244
1215
  * The amount of weight (if any) which should be provided to the message queue for
1245
- * servicing enqueued items.
1216
+ * servicing enqueued items `on_initialize`.
1246
1217
  *
1247
1218
  * This may be legitimately `None` in the case that you will call
1248
- * `ServiceQueues::service_queues` manually.
1219
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
1220
+ * it run in `on_idle`.
1249
1221
  **/
1250
1222
  serviceWeight: SpWeightsWeightV2Weight | undefined;
1251
1223
 
1224
+ /**
1225
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
1226
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
1227
+ * Useful for parachains to process messages at the same block they are received.
1228
+ *
1229
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
1230
+ **/
1231
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
1232
+
1252
1233
  /**
1253
1234
  * Generic pallet constant
1254
1235
  **/
@@ -1328,13 +1309,4 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1328
1309
  **/
1329
1310
  [name: string]: any;
1330
1311
  };
1331
- /**
1332
- * Pallet `IdentityMigrator`'s constants
1333
- **/
1334
- identityMigrator: {
1335
- /**
1336
- * Generic pallet constant
1337
- **/
1338
- [name: string]: any;
1339
- };
1340
1312
  }