@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
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # @dedot/chaintypes
2
2
 
3
- Types for substrate-based chains
3
+ Chaintypes for Substrate-based chains
4
+
5
+ ⏳ Docs & instructions coming soon!
package/aleph/consts.d.ts CHANGED
@@ -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 } from '@dedot/codecs';
3
+ import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
+ import type { RuntimeVersion, Permill, Perbill } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
@@ -9,9 +9,10 @@ import type {
9
9
  SpWeightsWeightV2Weight,
10
10
  FrameSupportPalletId,
11
11
  PalletContractsSchedule,
12
+ PalletContractsEnvironment,
12
13
  } from './types';
13
14
 
14
- export interface ChainConsts extends GenericChainConsts {
15
+ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
15
16
  /**
16
17
  * Pallet `System`'s constants
17
18
  **/
@@ -101,10 +102,12 @@ export interface ChainConsts extends GenericChainConsts {
101
102
  **/
102
103
  timestamp: {
103
104
  /**
104
- * The minimum period between blocks. Beware that this is different to the *expected*
105
- * period that the block production apparatus provides. Your chosen consensus system will
106
- * generally work with this to determine a sensible block time. e.g. For Aura, it will be
107
- * double this period on default settings.
105
+ * The minimum period between blocks.
106
+ *
107
+ * Be aware that this is different to the *expected* period that the block production
108
+ * apparatus provides. Your chosen consensus system will generally work with this to
109
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
110
+ * period on default settings.
108
111
  **/
109
112
  minimumPeriod: bigint;
110
113
 
@@ -202,11 +205,6 @@ export interface ChainConsts extends GenericChainConsts {
202
205
  * Pallet `Staking`'s constants
203
206
  **/
204
207
  staking: {
205
- /**
206
- * Maximum number of nominations per nominator.
207
- **/
208
- maxNominations: number;
209
-
210
208
  /**
211
209
  * Number of eras to keep in history.
212
210
  *
@@ -468,6 +466,14 @@ export interface ChainConsts extends GenericChainConsts {
468
466
  **/
469
467
  depositPerItem: bigint;
470
468
 
469
+ /**
470
+ * The percentage of the storage deposit that should be held for using a code hash.
471
+ * Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
472
+ * protects the code from being removed. In order to prevent abuse these actions are
473
+ * protected with a percentage of the code deposit.
474
+ **/
475
+ codeHashLockupDepositPercent: Perbill;
476
+
471
477
  /**
472
478
  * The maximum length of a contract code in bytes.
473
479
  *
@@ -482,6 +488,12 @@ export interface ChainConsts extends GenericChainConsts {
482
488
  **/
483
489
  maxStorageKeyLen: number;
484
490
 
491
+ /**
492
+ * The maximum number of delegate_dependencies that a contract can lock with
493
+ * [`chain_extension::Ext::add_delegate_dependency`].
494
+ **/
495
+ maxDelegateDependencies: number;
496
+
485
497
  /**
486
498
  * Make contract callable functions marked as `#[unstable]` available.
487
499
  *
@@ -500,6 +512,14 @@ export interface ChainConsts extends GenericChainConsts {
500
512
  **/
501
513
  maxDebugBufferLen: number;
502
514
 
515
+ /**
516
+ * Type that bundles together all the runtime configurable interface types.
517
+ *
518
+ * This is not a real config. We just mention the type here as constant so that
519
+ * its type appears in the metadata. Only valid value is `()`.
520
+ **/
521
+ environment: PalletContractsEnvironment;
522
+
503
523
  /**
504
524
  * Generic pallet constant
505
525
  **/
@@ -592,4 +612,65 @@ export interface ChainConsts extends GenericChainConsts {
592
612
  **/
593
613
  [name: string]: any;
594
614
  };
615
+ /**
616
+ * Pallet `Proxy`'s constants
617
+ **/
618
+ proxy: {
619
+ /**
620
+ * The base amount of currency needed to reserve for creating a proxy.
621
+ *
622
+ * This is held for an additional storage item whose value size is
623
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
624
+ **/
625
+ proxyDepositBase: bigint;
626
+
627
+ /**
628
+ * The amount of currency needed per proxy added.
629
+ *
630
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
631
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
632
+ * into account `32 + proxy_type.encode().len()` bytes of data.
633
+ **/
634
+ proxyDepositFactor: bigint;
635
+
636
+ /**
637
+ * The maximum amount of proxies allowed for a single account.
638
+ **/
639
+ maxProxies: number;
640
+
641
+ /**
642
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
643
+ **/
644
+ maxPending: number;
645
+
646
+ /**
647
+ * The base amount of currency needed to reserve for creating an announcement.
648
+ *
649
+ * This is held when a new storage item holding a `Balance` is created (typically 16
650
+ * bytes).
651
+ **/
652
+ announcementDepositBase: bigint;
653
+
654
+ /**
655
+ * The amount of currency needed per announcement made.
656
+ *
657
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
658
+ * into a pre-existing storage value.
659
+ **/
660
+ announcementDepositFactor: bigint;
661
+
662
+ /**
663
+ * Generic pallet constant
664
+ **/
665
+ [name: string]: any;
666
+ };
667
+ /**
668
+ * Pallet `Operations`'s constants
669
+ **/
670
+ operations: {
671
+ /**
672
+ * Generic pallet constant
673
+ **/
674
+ [name: string]: any;
675
+ };
595
676
  }