@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.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/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
package/polkadot/consts.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainConsts } from '
|
|
4
|
-
import type { RuntimeVersion, Permill, Bytes, Perbill } from '
|
|
3
|
+
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { RuntimeVersion, Permill, Bytes, Perbill } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
PalletReferendaTrackInfo,
|
|
12
12
|
} from './types';
|
|
13
13
|
|
|
14
|
-
export interface ChainConsts extends GenericChainConsts {
|
|
14
|
+
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
15
15
|
/**
|
|
16
16
|
* Pallet `System`'s constants
|
|
17
17
|
**/
|
|
@@ -182,11 +182,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
182
182
|
**/
|
|
183
183
|
maxReserves: number;
|
|
184
184
|
|
|
185
|
-
/**
|
|
186
|
-
* The maximum number of holds that can exist on an account at any time.
|
|
187
|
-
**/
|
|
188
|
-
maxHolds: number;
|
|
189
|
-
|
|
190
185
|
/**
|
|
191
186
|
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
192
187
|
**/
|
|
@@ -202,10 +197,10 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
202
197
|
**/
|
|
203
198
|
transactionPayment: {
|
|
204
199
|
/**
|
|
205
|
-
* A fee
|
|
200
|
+
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
206
201
|
* `priority`
|
|
207
202
|
*
|
|
208
|
-
* This value is
|
|
203
|
+
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
|
209
204
|
* added to a tip component in regular `priority` calculations.
|
|
210
205
|
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
211
206
|
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
@@ -250,8 +245,8 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
250
245
|
* Following information is kept for eras in `[current_era -
|
|
251
246
|
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
252
247
|
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
253
|
-
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
|
254
|
-
* `
|
|
248
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
|
|
249
|
+
* `ErasStakersOverview`.
|
|
255
250
|
*
|
|
256
251
|
* Must be more than the number of eras delayed by session.
|
|
257
252
|
* I.e. active era must always be in history. I.e. `active_era >
|
|
@@ -261,7 +256,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
261
256
|
* this should be set to same value or greater as in storage.
|
|
262
257
|
*
|
|
263
258
|
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
|
264
|
-
* item `StakingLedger.
|
|
259
|
+
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
|
|
265
260
|
* the existing value can lead to inconsistencies in the
|
|
266
261
|
* `StakingLedger` and will need to be handled properly in a migration.
|
|
267
262
|
* The test `reducing_history_depth_abrupt` shows this effect.
|
|
@@ -287,12 +282,19 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
287
282
|
slashDeferDuration: number;
|
|
288
283
|
|
|
289
284
|
/**
|
|
290
|
-
* The maximum
|
|
285
|
+
* The maximum size of each `T::ExposurePage`.
|
|
286
|
+
*
|
|
287
|
+
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
|
288
|
+
* nominators.
|
|
289
|
+
*
|
|
290
|
+
* For older non-paged exposure, a reward payout was restricted to the top
|
|
291
|
+
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
|
292
|
+
* nominator payout.
|
|
291
293
|
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
+
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
|
|
295
|
+
* without handling it in a migration.
|
|
294
296
|
**/
|
|
295
|
-
|
|
297
|
+
maxExposurePageSize: number;
|
|
296
298
|
|
|
297
299
|
/**
|
|
298
300
|
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
@@ -369,23 +371,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
369
371
|
**/
|
|
370
372
|
[name: string]: any;
|
|
371
373
|
};
|
|
372
|
-
/**
|
|
373
|
-
* Pallet `ImOnline`'s constants
|
|
374
|
-
**/
|
|
375
|
-
imOnline: {
|
|
376
|
-
/**
|
|
377
|
-
* A configuration for base priority of unsigned transactions.
|
|
378
|
-
*
|
|
379
|
-
* This is exposed so that it can be tuned for particular runtime, when
|
|
380
|
-
* multiple pallets send unsigned transactions.
|
|
381
|
-
**/
|
|
382
|
-
unsignedPriority: bigint;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Generic pallet constant
|
|
386
|
-
**/
|
|
387
|
-
[name: string]: any;
|
|
388
|
-
};
|
|
389
374
|
/**
|
|
390
375
|
* Pallet `AuthorityDiscovery`'s constants
|
|
391
376
|
**/
|
|
@@ -509,6 +494,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
509
494
|
**/
|
|
510
495
|
[name: string]: any;
|
|
511
496
|
};
|
|
497
|
+
/**
|
|
498
|
+
* Pallet `Origins`'s constants
|
|
499
|
+
**/
|
|
500
|
+
origins: {
|
|
501
|
+
/**
|
|
502
|
+
* Generic pallet constant
|
|
503
|
+
**/
|
|
504
|
+
[name: string]: any;
|
|
505
|
+
};
|
|
512
506
|
/**
|
|
513
507
|
* Pallet `Whitelist`'s constants
|
|
514
508
|
**/
|
|
@@ -563,14 +557,14 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
563
557
|
**/
|
|
564
558
|
identity: {
|
|
565
559
|
/**
|
|
566
|
-
* The amount held on deposit for a registered identity
|
|
560
|
+
* The amount held on deposit for a registered identity.
|
|
567
561
|
**/
|
|
568
562
|
basicDeposit: bigint;
|
|
569
563
|
|
|
570
564
|
/**
|
|
571
|
-
* The amount held on deposit per
|
|
565
|
+
* The amount held on deposit per encoded byte for a registered identity.
|
|
572
566
|
**/
|
|
573
|
-
|
|
567
|
+
byteDeposit: bigint;
|
|
574
568
|
|
|
575
569
|
/**
|
|
576
570
|
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
@@ -584,18 +578,27 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
584
578
|
**/
|
|
585
579
|
maxSubAccounts: number;
|
|
586
580
|
|
|
587
|
-
/**
|
|
588
|
-
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
|
|
589
|
-
* required to access an identity, but can be pretty high.
|
|
590
|
-
**/
|
|
591
|
-
maxAdditionalFields: number;
|
|
592
|
-
|
|
593
581
|
/**
|
|
594
582
|
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
|
595
583
|
* of, e.g., updating judgements.
|
|
596
584
|
**/
|
|
597
585
|
maxRegistrars: number;
|
|
598
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
|
+
|
|
599
602
|
/**
|
|
600
603
|
* Generic pallet constant
|
|
601
604
|
**/
|
|
@@ -782,12 +785,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
782
785
|
**/
|
|
783
786
|
betterSignedThreshold: Perbill;
|
|
784
787
|
|
|
785
|
-
/**
|
|
786
|
-
* The minimum amount of improvement to the solution score that defines a solution as
|
|
787
|
-
* "better" in the Unsigned phase.
|
|
788
|
-
**/
|
|
789
|
-
betterUnsignedThreshold: Perbill;
|
|
790
|
-
|
|
791
788
|
/**
|
|
792
789
|
* The repeat threshold of the offchain worker.
|
|
793
790
|
*
|
|
@@ -939,6 +936,11 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
939
936
|
**/
|
|
940
937
|
maxPointsToBalance: number;
|
|
941
938
|
|
|
939
|
+
/**
|
|
940
|
+
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
|
941
|
+
**/
|
|
942
|
+
maxUnbonding: number;
|
|
943
|
+
|
|
942
944
|
/**
|
|
943
945
|
* Generic pallet constant
|
|
944
946
|
**/
|
|
@@ -1175,6 +1177,40 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1175
1177
|
**/
|
|
1176
1178
|
[name: string]: any;
|
|
1177
1179
|
};
|
|
1180
|
+
/**
|
|
1181
|
+
* Pallet `StateTrieMigration`'s constants
|
|
1182
|
+
**/
|
|
1183
|
+
stateTrieMigration: {
|
|
1184
|
+
/**
|
|
1185
|
+
* Maximal number of bytes that a key can have.
|
|
1186
|
+
*
|
|
1187
|
+
* FRAME itself does not limit the key length.
|
|
1188
|
+
* The concrete value must therefore depend on your storage usage.
|
|
1189
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
1190
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
1191
|
+
*
|
|
1192
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
1193
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
1194
|
+
*
|
|
1195
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
1196
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
1197
|
+
* value. The default is 512 byte.
|
|
1198
|
+
*
|
|
1199
|
+
* Some key lengths for reference:
|
|
1200
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
1201
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
1202
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
1203
|
+
*
|
|
1204
|
+
* For more info see
|
|
1205
|
+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
1206
|
+
**/
|
|
1207
|
+
maxKeyLen: number;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Generic pallet constant
|
|
1211
|
+
**/
|
|
1212
|
+
[name: string]: any;
|
|
1213
|
+
};
|
|
1178
1214
|
/**
|
|
1179
1215
|
* Pallet `XcmPallet`'s constants
|
|
1180
1216
|
**/
|
|
@@ -1274,4 +1310,13 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1274
1310
|
**/
|
|
1275
1311
|
[name: string]: any;
|
|
1276
1312
|
};
|
|
1313
|
+
/**
|
|
1314
|
+
* Pallet `IdentityMigrator`'s constants
|
|
1315
|
+
**/
|
|
1316
|
+
identityMigrator: {
|
|
1317
|
+
/**
|
|
1318
|
+
* Generic pallet constant
|
|
1319
|
+
**/
|
|
1320
|
+
[name: string]: any;
|
|
1321
|
+
};
|
|
1277
1322
|
}
|