augment-api-consts.ts 7.5 KB

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