augment-api-consts.ts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import { Vec } from '@polkadot/types/codec';
  4. import { u32, u64 } from '@polkadot/types/primitive';
  5. import { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
  6. import { SessionIndex } from '@polkadot/types/interfaces/session';
  7. import { EraIndex } from '@polkadot/types/interfaces/staking';
  8. import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
  9. declare module '@polkadot/metadata/Decorated/consts/types' {
  10. export interface Constants {
  11. babe: {
  12. /**
  13. * The number of **slots** that an epoch takes. We couple sessions to
  14. * epochs, i.e. we start a new session once the new epoch begins.
  15. **/
  16. epochDuration: AugmentedConst<u64>;
  17. /**
  18. * The expected average block time at which BABE should be creating
  19. * blocks. Since BABE is probabilistic it is not trivial to figure out
  20. * what the expected average block time should be based on the slot
  21. * duration and the security parameter `c` (where `1 - c` represents
  22. * the probability of a slot being empty).
  23. **/
  24. expectedBlockTime: AugmentedConst<Moment>;
  25. };
  26. balances: {
  27. /**
  28. * The minimum amount required to keep an account open.
  29. **/
  30. existentialDeposit: AugmentedConst<Balance>;
  31. };
  32. dataDirectory: {
  33. /**
  34. * Maximum objects allowed per inject_data_objects() transaction
  35. **/
  36. maxObjectsPerInjection: AugmentedConst<u32>;
  37. };
  38. finalityTracker: {
  39. /**
  40. * The delay after which point things become suspicious. Default is 1000.
  41. **/
  42. reportLatency: AugmentedConst<BlockNumber>;
  43. /**
  44. * The number of recent samples to keep from this chain. Default is 101.
  45. **/
  46. windowSize: AugmentedConst<BlockNumber>;
  47. };
  48. proposalsCodex: {
  49. /**
  50. * Exports max wasm code length of the runtime upgrade proposal const.
  51. **/
  52. runtimeUpgradeWasmProposalMaxLength: AugmentedConst<u32>;
  53. /**
  54. * Exports max allowed text proposal length const.
  55. **/
  56. textProposalMaxLength: AugmentedConst<u32>;
  57. };
  58. proposalsDiscussion: {
  59. /**
  60. * Exports post edition number limit const.
  61. **/
  62. maxPostEditionNumber: AugmentedConst<u32>;
  63. /**
  64. * Exports max thread by same author in a row number limit const.
  65. **/
  66. maxThreadInARowNumber: AugmentedConst<u32>;
  67. /**
  68. * Exports post length limit const.
  69. **/
  70. postLengthLimit: AugmentedConst<u32>;
  71. /**
  72. * Exports thread title length limit const.
  73. **/
  74. threadTitleLengthLimit: AugmentedConst<u32>;
  75. };
  76. proposalsEngine: {
  77. /**
  78. * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
  79. **/
  80. cancellationFee: AugmentedConst<BalanceOf>;
  81. /**
  82. * Exports const - max allowed proposal description length.
  83. **/
  84. descriptionMaxLength: AugmentedConst<u32>;
  85. /**
  86. * Exports const - max simultaneous active proposals number.
  87. **/
  88. maxActiveProposalLimit: AugmentedConst<u32>;
  89. /**
  90. * Exports const - the fee is applied when the proposal gets rejected. A fee would be slashed (burned).
  91. **/
  92. rejectionFee: AugmentedConst<BalanceOf>;
  93. /**
  94. * Exports const - max allowed proposal title length.
  95. **/
  96. titleMaxLength: AugmentedConst<u32>;
  97. };
  98. staking: {
  99. /**
  100. * Number of eras that staked funds must remain bonded for.
  101. **/
  102. bondingDuration: AugmentedConst<EraIndex>;
  103. /**
  104. * The number of blocks before the end of the era from which election submissions are allowed.
  105. *
  106. * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
  107. * be used.
  108. *
  109. * This is bounded by being within the last session. Hence, setting it to a value more than the
  110. * length of a session will be pointless.
  111. **/
  112. electionLookahead: AugmentedConst<BlockNumber>;
  113. /**
  114. * Maximum number of balancing iterations to run in the offchain submission.
  115. *
  116. * If set to 0, balance_solution will not be executed at all.
  117. **/
  118. maxIterations: AugmentedConst<u32>;
  119. /**
  120. * The maximum number of nominators rewarded for each validator.
  121. *
  122. * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
  123. * their reward. This used to limit the i/o cost for the nominator payout.
  124. **/
  125. maxNominatorRewardedPerValidator: AugmentedConst<u32>;
  126. /**
  127. * The threshold of improvement that should be provided for a new solution to be accepted.
  128. **/
  129. minSolutionScoreBump: AugmentedConst<Perbill>;
  130. /**
  131. * Number of sessions per era.
  132. **/
  133. sessionsPerEra: AugmentedConst<SessionIndex>;
  134. /**
  135. * Number of eras that slashes are deferred by, after computation.
  136. *
  137. * This should be less than the bonding duration.
  138. * Set to 0 if slashes should be applied immediately, without opportunity for
  139. * intervention.
  140. **/
  141. slashDeferDuration: AugmentedConst<EraIndex>;
  142. };
  143. storageWorkingGroup: {
  144. /**
  145. * Exports const - max simultaneous active worker number.
  146. **/
  147. maxWorkerNumberLimit: AugmentedConst<u32>;
  148. };
  149. system: {
  150. /**
  151. * The base weight of executing a block, independent of the transactions in the block.
  152. **/
  153. blockExecutionWeight: AugmentedConst<Weight>;
  154. /**
  155. * The maximum number of blocks to allow in mortal eras.
  156. **/
  157. blockHashCount: AugmentedConst<BlockNumber>;
  158. /**
  159. * The weight of runtime database operations the runtime can invoke.
  160. **/
  161. dbWeight: AugmentedConst<RuntimeDbWeight>;
  162. /**
  163. * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
  164. **/
  165. extrinsicBaseWeight: AugmentedConst<Weight>;
  166. /**
  167. * The maximum length of a block (in bytes).
  168. **/
  169. maximumBlockLength: AugmentedConst<u32>;
  170. /**
  171. * The maximum weight of a block.
  172. **/
  173. maximumBlockWeight: AugmentedConst<Weight>;
  174. };
  175. timestamp: {
  176. /**
  177. * The minimum period between blocks. Beware that this is different to the *expected* period
  178. * that the block production apparatus provides. Your chosen consensus system will generally
  179. * work with this to determine a sensible block time. e.g. For Aura, it will be double this
  180. * period on default settings.
  181. **/
  182. minimumPeriod: AugmentedConst<Moment>;
  183. };
  184. transactionPayment: {
  185. /**
  186. * The fee to be paid for making a transaction; the per-byte portion.
  187. **/
  188. transactionByteFee: AugmentedConst<BalanceOf>;
  189. /**
  190. * The polynomial that is applied in order to derive fee from weight.
  191. **/
  192. weightToFee: AugmentedConst<Vec<WeightToFeeCoefficient>>;
  193. };
  194. }
  195. }