@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.
Files changed (144) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +94 -13
  3. package/aleph/errors.d.ts +251 -182
  4. package/aleph/events.d.ts +319 -102
  5. package/aleph/index.d.ts +16 -11
  6. package/aleph/json-rpc.d.ts +76 -0
  7. package/aleph/query.d.ts +261 -168
  8. package/aleph/runtime.d.ts +90 -39
  9. package/aleph/tx.d.ts +1822 -1052
  10. package/aleph/types.d.ts +458 -138
  11. package/astar/consts.d.ts +112 -116
  12. package/astar/errors.d.ts +342 -409
  13. package/astar/events.d.ts +449 -358
  14. package/astar/index.d.ts +16 -11
  15. package/astar/json-rpc.d.ts +131 -0
  16. package/astar/query.d.ts +459 -367
  17. package/astar/runtime.d.ts +591 -98
  18. package/astar/tx.d.ts +2485 -3430
  19. package/astar/types.d.ts +1530 -4436
  20. package/index.d.ts +3 -0
  21. package/index.ts +3 -0
  22. package/kusama/consts.d.ts +54 -115
  23. package/kusama/errors.d.ts +696 -682
  24. package/kusama/events.d.ts +592 -407
  25. package/kusama/index.d.ts +16 -11
  26. package/kusama/json-rpc.d.ts +103 -0
  27. package/kusama/query.d.ts +840 -538
  28. package/kusama/runtime.d.ts +136 -65
  29. package/kusama/tx.d.ts +4557 -3051
  30. package/kusama/types.d.ts +1437 -1161
  31. package/kusamaAssetHub/consts.d.ts +66 -20
  32. package/kusamaAssetHub/errors.d.ts +428 -308
  33. package/kusamaAssetHub/events.d.ts +497 -305
  34. package/kusamaAssetHub/index.d.ts +16 -11
  35. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  36. package/kusamaAssetHub/query.d.ts +376 -253
  37. package/kusamaAssetHub/runtime.d.ts +82 -41
  38. package/kusamaAssetHub/tx.d.ts +3264 -1955
  39. package/kusamaAssetHub/types.d.ts +1262 -726
  40. package/moonbeam/consts.d.ts +115 -170
  41. package/moonbeam/errors.d.ts +564 -787
  42. package/moonbeam/events.d.ts +583 -746
  43. package/moonbeam/index.d.ts +16 -11
  44. package/moonbeam/json-rpc.d.ts +137 -0
  45. package/moonbeam/query.d.ts +507 -607
  46. package/moonbeam/runtime.d.ts +132 -47
  47. package/moonbeam/tx.d.ts +3309 -3268
  48. package/moonbeam/types.d.ts +1484 -1375
  49. package/package.json +4 -14
  50. package/paseo/consts.d.ts +1331 -0
  51. package/paseo/errors.d.ts +2644 -0
  52. package/paseo/events.d.ts +2821 -0
  53. package/paseo/index.d.ts +27 -0
  54. package/paseo/json-rpc.d.ts +103 -0
  55. package/paseo/query.d.ts +3709 -0
  56. package/paseo/runtime.d.ts +1205 -0
  57. package/paseo/tx.d.ts +8024 -0
  58. package/paseo/types.d.ts +10194 -0
  59. package/polkadot/consts.d.ts +95 -50
  60. package/polkadot/errors.d.ts +619 -468
  61. package/polkadot/events.d.ts +582 -257
  62. package/polkadot/index.d.ts +16 -11
  63. package/polkadot/json-rpc.d.ts +103 -0
  64. package/polkadot/query.d.ts +770 -399
  65. package/polkadot/runtime.d.ts +136 -65
  66. package/polkadot/tx.d.ts +4268 -2368
  67. package/polkadot/types.d.ts +1570 -745
  68. package/polkadotAssetHub/consts.d.ts +154 -15
  69. package/polkadotAssetHub/errors.d.ts +615 -234
  70. package/polkadotAssetHub/events.d.ts +829 -270
  71. package/polkadotAssetHub/index.d.ts +16 -11
  72. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  73. package/polkadotAssetHub/query.d.ts +438 -243
  74. package/polkadotAssetHub/runtime.d.ts +147 -40
  75. package/polkadotAssetHub/tx.d.ts +3747 -1643
  76. package/polkadotAssetHub/types.d.ts +2096 -806
  77. package/rococo/consts.d.ts +51 -32
  78. package/rococo/errors.d.ts +549 -605
  79. package/rococo/events.d.ts +447 -238
  80. package/rococo/index.d.ts +16 -11
  81. package/rococo/json-rpc.d.ts +103 -0
  82. package/rococo/query.d.ts +724 -426
  83. package/rococo/runtime.d.ts +366 -144
  84. package/rococo/tx.d.ts +6850 -3079
  85. package/rococo/types.d.ts +5959 -1619
  86. package/rococoAssetHub/consts.d.ts +92 -7
  87. package/rococoAssetHub/errors.d.ts +381 -285
  88. package/rococoAssetHub/events.d.ts +461 -140
  89. package/rococoAssetHub/index.d.ts +16 -11
  90. package/rococoAssetHub/json-rpc.d.ts +89 -0
  91. package/rococoAssetHub/query.d.ts +487 -174
  92. package/rococoAssetHub/runtime.d.ts +235 -51
  93. package/rococoAssetHub/tx.d.ts +6005 -2163
  94. package/rococoAssetHub/types.d.ts +6683 -1003
  95. package/substrate/consts.d.ts +233 -52
  96. package/substrate/errors.d.ts +966 -781
  97. package/substrate/events.d.ts +1226 -381
  98. package/substrate/index.d.ts +16 -11
  99. package/substrate/json-rpc.d.ts +103 -0
  100. package/substrate/query.d.ts +1090 -460
  101. package/substrate/runtime.d.ts +274 -71
  102. package/substrate/tx.d.ts +12313 -4510
  103. package/substrate/types.d.ts +11036 -1432
  104. package/westend/consts.d.ts +1349 -0
  105. package/westend/errors.d.ts +2736 -0
  106. package/westend/events.d.ts +2906 -0
  107. package/westend/index.d.ts +27 -0
  108. package/westend/json-rpc.d.ts +103 -0
  109. package/westend/query.d.ts +3855 -0
  110. package/westend/runtime.d.ts +1437 -0
  111. package/westend/tx.d.ts +10248 -0
  112. package/westend/types.d.ts +14769 -0
  113. package/westendAssetHub/consts.d.ts +126 -7
  114. package/westendAssetHub/errors.d.ts +426 -285
  115. package/westendAssetHub/events.d.ts +498 -140
  116. package/westendAssetHub/index.d.ts +16 -11
  117. package/westendAssetHub/json-rpc.d.ts +89 -0
  118. package/westendAssetHub/query.d.ts +526 -174
  119. package/westendAssetHub/runtime.d.ts +245 -56
  120. package/westendAssetHub/tx.d.ts +6196 -2166
  121. package/westendAssetHub/types.d.ts +6913 -1002
  122. package/westendPeople/consts.d.ts +434 -0
  123. package/westendPeople/errors.d.ts +769 -0
  124. package/westendPeople/events.d.ts +1082 -0
  125. package/westendPeople/index.d.ts +27 -0
  126. package/westendPeople/json-rpc.d.ts +89 -0
  127. package/westendPeople/query.d.ts +1209 -0
  128. package/westendPeople/runtime.d.ts +636 -0
  129. package/westendPeople/tx.d.ts +2891 -0
  130. package/westendPeople/types.d.ts +4984 -0
  131. package/aleph/rpc.d.ts +0 -727
  132. package/astar/rpc.d.ts +0 -974
  133. package/kusama/rpc.d.ts +0 -904
  134. package/kusamaAssetHub/rpc.d.ts +0 -746
  135. package/moonbeam/rpc.d.ts +0 -1015
  136. package/packageInfo.d.ts +0 -4
  137. package/packageInfo.js +0 -2
  138. package/packageInfo.ts +0 -3
  139. package/polkadot/rpc.d.ts +0 -904
  140. package/polkadotAssetHub/rpc.d.ts +0 -746
  141. package/rococo/rpc.d.ts +0 -904
  142. package/rococoAssetHub/rpc.d.ts +0 -746
  143. package/substrate/rpc.d.ts +0 -894
  144. package/westendAssetHub/rpc.d.ts +0 -746
@@ -1,7 +1,7 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
- import type { GenericChainConsts } from '@dedot/types';
4
- import type { RuntimeVersion, Permill, Perbill, Bytes } from '@dedot/codecs';
3
+ import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
+ import type { RuntimeVersion, Permill, Perbill, Bytes } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
@@ -9,10 +9,10 @@ import type {
9
9
  SpWeightsWeightV2Weight,
10
10
  PalletReferendaTrackInfo,
11
11
  FrameSupportPalletId,
12
- StagingXcmV3MultilocationMultiLocation,
12
+ StagingXcmV4Location,
13
13
  } from './types';
14
14
 
15
- export interface ChainConsts extends GenericChainConsts {
15
+ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
16
16
  /**
17
17
  * Pallet `System`'s constants
18
18
  **/
@@ -129,11 +129,6 @@ export interface ChainConsts extends GenericChainConsts {
129
129
  **/
130
130
  maxReserves: number;
131
131
 
132
- /**
133
- * The maximum number of holds that can exist on an account at any time.
134
- **/
135
- maxHolds: number;
136
-
137
132
  /**
138
133
  * The maximum number of individual freeze locks that can exist on an account at any time.
139
134
  **/
@@ -149,10 +144,10 @@ export interface ChainConsts extends GenericChainConsts {
149
144
  **/
150
145
  transactionPayment: {
151
146
  /**
152
- * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
147
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
153
148
  * `priority`
154
149
  *
155
- * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
150
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
156
151
  * added to a tip component in regular `priority` calculations.
157
152
  * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
158
153
  * extrinsic (with no tip), by including a tip value greater than the virtual tip.
@@ -253,6 +248,16 @@ export interface ChainConsts extends GenericChainConsts {
253
248
  **/
254
249
  minDelegation: bigint;
255
250
 
251
+ /**
252
+ * Get the slot duration in milliseconds
253
+ **/
254
+ slotDuration: bigint;
255
+
256
+ /**
257
+ * Get the average time beetween 2 blocks in milliseconds
258
+ **/
259
+ blockTime: bigint;
260
+
256
261
  /**
257
262
  * Maximum candidates
258
263
  **/
@@ -316,6 +321,21 @@ export interface ChainConsts extends GenericChainConsts {
316
321
  **/
317
322
  [name: string]: any;
318
323
  };
324
+ /**
325
+ * Pallet `AsyncBacking`'s constants
326
+ **/
327
+ asyncBacking: {
328
+ /**
329
+ * Purely informative, but used by mocking tools like chospticks to allow knowing how to mock
330
+ * blocks
331
+ **/
332
+ expectedBlockTime: bigint;
333
+
334
+ /**
335
+ * Generic pallet constant
336
+ **/
337
+ [name: string]: any;
338
+ };
319
339
  /**
320
340
  * Pallet `Utility`'s constants
321
341
  **/
@@ -396,14 +416,14 @@ export interface ChainConsts extends GenericChainConsts {
396
416
  **/
397
417
  identity: {
398
418
  /**
399
- * The amount held on deposit for a registered identity
419
+ * The amount held on deposit for a registered identity.
400
420
  **/
401
421
  basicDeposit: bigint;
402
422
 
403
423
  /**
404
- * The amount held on deposit per additional field for a registered identity.
424
+ * The amount held on deposit per encoded byte for a registered identity.
405
425
  **/
406
- fieldDeposit: bigint;
426
+ byteDeposit: bigint;
407
427
 
408
428
  /**
409
429
  * The amount held on deposit for a registered subaccount. This should account for the fact
@@ -417,18 +437,27 @@ export interface ChainConsts extends GenericChainConsts {
417
437
  **/
418
438
  maxSubAccounts: number;
419
439
 
420
- /**
421
- * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
422
- * required to access an identity, but can be pretty high.
423
- **/
424
- maxAdditionalFields: number;
425
-
426
440
  /**
427
441
  * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
428
442
  * of, e.g., updating judgements.
429
443
  **/
430
444
  maxRegistrars: number;
431
445
 
446
+ /**
447
+ * The number of blocks within which a username grant must be accepted.
448
+ **/
449
+ pendingUsernameExpiration: number;
450
+
451
+ /**
452
+ * The maximum length of a suffix.
453
+ **/
454
+ maxSuffixLength: number;
455
+
456
+ /**
457
+ * The maximum length of a username, including its suffix and any system-added delimiters.
458
+ **/
459
+ maxUsernameLength: number;
460
+
432
461
  /**
433
462
  * Generic pallet constant
434
463
  **/
@@ -483,6 +512,15 @@ export interface ChainConsts extends GenericChainConsts {
483
512
  **/
484
513
  [name: string]: any;
485
514
  };
515
+ /**
516
+ * Pallet `MoonbeamLazyMigrations`'s constants
517
+ **/
518
+ moonbeamLazyMigrations: {
519
+ /**
520
+ * Generic pallet constant
521
+ **/
522
+ [name: string]: any;
523
+ };
486
524
  /**
487
525
  * Pallet `EthereumChainId`'s constants
488
526
  **/
@@ -495,7 +533,7 @@ export interface ChainConsts extends GenericChainConsts {
495
533
  /**
496
534
  * Pallet `EVM`'s constants
497
535
  **/
498
- eVM: {
536
+ evm: {
499
537
  /**
500
538
  * Generic pallet constant
501
539
  **/
@@ -533,87 +571,6 @@ export interface ChainConsts extends GenericChainConsts {
533
571
  **/
534
572
  [name: string]: any;
535
573
  };
536
- /**
537
- * Pallet `Democracy`'s constants
538
- **/
539
- democracy: {
540
- /**
541
- * The period between a proposal being approved and enacted.
542
- *
543
- * It should generally be a little more than the unstake period to ensure that
544
- * voting stakers have an opportunity to remove themselves from the system in the case
545
- * where they are on the losing side of a vote.
546
- **/
547
- enactmentPeriod: number;
548
-
549
- /**
550
- * How often (in blocks) new public referenda are launched.
551
- **/
552
- launchPeriod: number;
553
-
554
- /**
555
- * How often (in blocks) to check for new votes.
556
- **/
557
- votingPeriod: number;
558
-
559
- /**
560
- * The minimum period of vote locking.
561
- *
562
- * It should be no shorter than enactment period to ensure that in the case of an approval,
563
- * those successful voters are locked into the consequences that their votes entail.
564
- **/
565
- voteLockingPeriod: number;
566
-
567
- /**
568
- * The minimum amount to be used as a deposit for a public referendum proposal.
569
- **/
570
- minimumDeposit: bigint;
571
-
572
- /**
573
- * Indicator for whether an emergency origin is even allowed to happen. Some chains may
574
- * want to set this permanently to `false`, others may want to condition it on things such
575
- * as an upgrade having happened recently.
576
- **/
577
- instantAllowed: boolean;
578
-
579
- /**
580
- * Minimum voting period allowed for a fast-track referendum.
581
- **/
582
- fastTrackVotingPeriod: number;
583
-
584
- /**
585
- * Period in blocks where an external proposal may not be re-submitted after being vetoed.
586
- **/
587
- cooloffPeriod: number;
588
-
589
- /**
590
- * The maximum number of votes for an account.
591
- *
592
- * Also used to compute weight, an overly big value can
593
- * lead to extrinsic with very big weight: see `delegate` for instance.
594
- **/
595
- maxVotes: number;
596
-
597
- /**
598
- * The maximum number of public proposals that can exist at any time.
599
- **/
600
- maxProposals: number;
601
-
602
- /**
603
- * The maximum number of deposits a public proposal may have at any time.
604
- **/
605
- maxDeposits: number;
606
-
607
- /**
608
- * The maximum number of items which can be blacklisted.
609
- **/
610
- maxBlacklisted: number;
611
-
612
- /**
613
- * Generic pallet constant
614
- **/
615
- [name: string]: any;
616
- };
617
574
  /**
618
575
  * Pallet `Preimage`'s constants
619
576
  **/
@@ -694,34 +651,6 @@ export interface ChainConsts extends GenericChainConsts {
694
651
  **/
695
652
  [name: string]: any;
696
653
  };
697
- /**
698
- * Pallet `CouncilCollective`'s constants
699
- **/
700
- councilCollective: {
701
- /**
702
- * The maximum weight of a dispatch call that can be proposed and executed.
703
- **/
704
- maxProposalWeight: SpWeightsWeightV2Weight;
705
-
706
- /**
707
- * Generic pallet constant
708
- **/
709
- [name: string]: any;
710
- };
711
- /**
712
- * Pallet `TechCommitteeCollective`'s constants
713
- **/
714
- techCommitteeCollective: {
715
- /**
716
- * The maximum weight of a dispatch call that can be proposed and executed.
717
- **/
718
- maxProposalWeight: SpWeightsWeightV2Weight;
719
-
720
- /**
721
- * Generic pallet constant
722
- **/
723
- [name: string]: any;
724
- };
725
654
  /**
726
655
  * Pallet `TreasuryCouncilCollective`'s constants
727
656
  **/
@@ -833,6 +762,15 @@ export interface ChainConsts extends GenericChainConsts {
833
762
  * Pallet `XcmpQueue`'s constants
834
763
  **/
835
764
  xcmpQueue: {
765
+ /**
766
+ * The maximum number of inbound XCMP channels that can be suspended simultaneously.
767
+ *
768
+ * Any further channel suspensions will fail and messages may get dropped without further
769
+ * notice. Choosing a high value (1000) is okay; the trade-off that is described in
770
+ * [`InboundXcmpSuspended`] still applies at that scale.
771
+ **/
772
+ maxInboundSuspended: number;
773
+
836
774
  /**
837
775
  * Generic pallet constant
838
776
  **/
@@ -917,11 +855,6 @@ export interface ChainConsts extends GenericChainConsts {
917
855
  * Pallet `AssetManager`'s constants
918
856
  **/
919
857
  assetManager: {
920
- /**
921
- * The basic amount of funds that must be reserved for a local asset.
922
- **/
923
- localAssetDeposit: bigint;
924
-
925
858
  /**
926
859
  * Generic pallet constant
927
860
  **/
@@ -934,7 +867,7 @@ export interface ChainConsts extends GenericChainConsts {
934
867
  /**
935
868
  * Self chain location.
936
869
  **/
937
- selfLocation: StagingXcmV3MultilocationMultiLocation;
870
+ selfLocation: StagingXcmV4Location;
938
871
 
939
872
  /**
940
873
  * Base XCM weight.
@@ -956,7 +889,7 @@ export interface ChainConsts extends GenericChainConsts {
956
889
  /**
957
890
  * Self chain location.
958
891
  **/
959
- selfLocation: StagingXcmV3MultilocationMultiLocation;
892
+ selfLocation: StagingXcmV4Location;
960
893
 
961
894
  /**
962
895
  *
@@ -971,47 +904,51 @@ export interface ChainConsts extends GenericChainConsts {
971
904
  [name: string]: any;
972
905
  };
973
906
  /**
974
- * Pallet `LocalAssets`'s constants
907
+ * Pallet `EthereumXcm`'s constants
975
908
  **/
976
- localAssets: {
977
- /**
978
- * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
979
- *
980
- * Must be configured to result in a weight that makes each call fit in a block.
981
- **/
982
- removeItemsLimit: number;
983
-
984
- /**
985
- * The basic amount of funds that must be reserved for an asset.
986
- **/
987
- assetDeposit: bigint;
988
-
909
+ ethereumXcm: {
989
910
  /**
990
- * The amount of funds that must be reserved for a non-provider asset account to be
991
- * maintained.
911
+ * Generic pallet constant
992
912
  **/
993
- assetAccountDeposit: bigint;
994
-
913
+ [name: string]: any;
914
+ };
915
+ /**
916
+ * Pallet `Erc20XcmBridge`'s constants
917
+ **/
918
+ erc20XcmBridge: {
995
919
  /**
996
- * The basic amount of funds that must be reserved when adding metadata to your asset.
920
+ * Generic pallet constant
997
921
  **/
998
- metadataDepositBase: bigint;
999
-
922
+ [name: string]: any;
923
+ };
924
+ /**
925
+ * Pallet `MessageQueue`'s constants
926
+ **/
927
+ messageQueue: {
1000
928
  /**
1001
- * The additional funds that must be reserved for the number of bytes you store in your
1002
- * metadata.
929
+ * The size of the page; this implies the maximum message size which can be sent.
930
+ *
931
+ * A good value depends on the expected message sizes, their weights, the weight that is
932
+ * available for processing them and the maximal needed message size. The maximal message
933
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
1003
934
  **/
1004
- metadataDepositPerByte: bigint;
935
+ heapSize: number;
1005
936
 
1006
937
  /**
1007
- * The amount of funds that must be reserved when creating a new approval.
938
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
939
+ * can happen. Once there are more stale pages than this, then historical pages may be
940
+ * dropped, even if they contain unprocessed overweight messages.
1008
941
  **/
1009
- approvalDeposit: bigint;
942
+ maxStale: number;
1010
943
 
1011
944
  /**
1012
- * The maximum length of a name or symbol stored on-chain.
945
+ * The amount of weight (if any) which should be provided to the message queue for
946
+ * servicing enqueued items.
947
+ *
948
+ * This may be legitimately `None` in the case that you will call
949
+ * `ServiceQueues::service_queues` manually.
1013
950
  **/
1014
- stringLimit: number;
951
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
1015
952
 
1016
953
  /**
1017
954
  * Generic pallet constant
@@ -1019,18 +956,26 @@ export interface ChainConsts extends GenericChainConsts {
1019
956
  [name: string]: any;
1020
957
  };
1021
958
  /**
1022
- * Pallet `EthereumXcm`'s constants
959
+ * Pallet `RelayStorageRoots`'s constants
1023
960
  **/
1024
- ethereumXcm: {
961
+ relayStorageRoots: {
962
+ /**
963
+ * Limit the number of relay storage roots that will be stored.
964
+ * This limit applies to the number of items, not to their age. Decreasing the value of
965
+ * `MaxStorageRoots` is a breaking change and needs a migration to clean the
966
+ * `RelayStorageRoots` mapping.
967
+ **/
968
+ maxStorageRoots: number;
969
+
1025
970
  /**
1026
971
  * Generic pallet constant
1027
972
  **/
1028
973
  [name: string]: any;
1029
974
  };
1030
975
  /**
1031
- * Pallet `Erc20XcmBridge`'s constants
976
+ * Pallet `PrecompileBenchmarks`'s constants
1032
977
  **/
1033
- erc20XcmBridge: {
978
+ precompileBenchmarks: {
1034
979
  /**
1035
980
  * Generic pallet constant
1036
981
  **/