augment-api-consts.ts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. content: {
  34. /**
  35. * Exports const - max number of curators per group
  36. **/
  37. maxNumberOfCuratorsPerGroup: AugmentedConst<MaxNumber>;
  38. };
  39. contentDirectoryWorkingGroup: {
  40. /**
  41. * Exports const - max simultaneous active worker number.
  42. **/
  43. maxWorkerNumberLimit: AugmentedConst<u32>;
  44. };
  45. dataDirectory: {
  46. /**
  47. * Maximum objects allowed per inject_data_objects() transaction
  48. **/
  49. maxObjectsPerInjection: 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. proposalsCodex: {
  62. /**
  63. * Exports max wasm code length of the runtime upgrade proposal const.
  64. **/
  65. runtimeUpgradeWasmProposalMaxLength: AugmentedConst<u32>;
  66. /**
  67. * Exports max allowed text proposal length const.
  68. **/
  69. textProposalMaxLength: AugmentedConst<u32>;
  70. };
  71. proposalsDiscussion: {
  72. /**
  73. * Exports post edition number limit const.
  74. **/
  75. maxPostEditionNumber: AugmentedConst<u32>;
  76. /**
  77. * Exports max thread by same author in a row number limit const.
  78. **/
  79. maxThreadInARowNumber: AugmentedConst<u32>;
  80. /**
  81. * Exports post length limit const.
  82. **/
  83. postLengthLimit: AugmentedConst<u32>;
  84. /**
  85. * Exports thread title length limit const.
  86. **/
  87. threadTitleLengthLimit: AugmentedConst<u32>;
  88. };
  89. proposalsEngine: {
  90. /**
  91. * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
  92. **/
  93. cancellationFee: AugmentedConst<BalanceOf>;
  94. /**
  95. * Exports const - max allowed proposal description length.
  96. **/
  97. descriptionMaxLength: AugmentedConst<u32>;
  98. /**
  99. * Exports const - max simultaneous active proposals number.
  100. **/
  101. maxActiveProposalLimit: AugmentedConst<u32>;
  102. /**
  103. * Exports const - the fee is applied when the proposal gets rejected. A fee would be slashed (burned).
  104. **/
  105. rejectionFee: AugmentedConst<BalanceOf>;
  106. /**
  107. * Exports const - max allowed proposal title length.
  108. **/
  109. titleMaxLength: AugmentedConst<u32>;
  110. };
  111. staking: {
  112. /**
  113. * Number of eras that staked funds must remain bonded for.
  114. **/
  115. bondingDuration: AugmentedConst<EraIndex>;
  116. /**
  117. * The number of blocks before the end of the era from which election submissions are allowed.
  118. *
  119. * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
  120. * be used.
  121. *
  122. * This is bounded by being within the last session. Hence, setting it to a value more than the
  123. * length of a session will be pointless.
  124. **/
  125. electionLookahead: AugmentedConst<BlockNumber>;
  126. /**
  127. * Maximum number of balancing iterations to run in the offchain submission.
  128. *
  129. * If set to 0, balance_solution will not be executed at all.
  130. **/
  131. maxIterations: AugmentedConst<u32>;
  132. /**
  133. * The maximum number of nominators rewarded for each validator.
  134. *
  135. * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
  136. * their reward. This used to limit the i/o cost for the nominator payout.
  137. **/
  138. maxNominatorRewardedPerValidator: AugmentedConst<u32>;
  139. /**
  140. * The threshold of improvement that should be provided for a new solution to be accepted.
  141. **/
  142. minSolutionScoreBump: AugmentedConst<Perbill>;
  143. /**
  144. * Number of sessions per era.
  145. **/
  146. sessionsPerEra: AugmentedConst<SessionIndex>;
  147. /**
  148. * Number of eras that slashes are deferred by, after computation.
  149. *
  150. * This should be less than the bonding duration.
  151. * Set to 0 if slashes should be applied immediately, without opportunity for
  152. * intervention.
  153. **/
  154. slashDeferDuration: AugmentedConst<EraIndex>;
  155. };
  156. storageWorkingGroup: {
  157. /**
  158. * Exports const - max simultaneous active worker number.
  159. **/
  160. maxWorkerNumberLimit: AugmentedConst<u32>;
  161. };
  162. system: {
  163. /**
  164. * The base weight of executing a block, independent of the transactions in the block.
  165. **/
  166. blockExecutionWeight: AugmentedConst<Weight>;
  167. /**
  168. * The maximum number of blocks to allow in mortal eras.
  169. **/
  170. blockHashCount: AugmentedConst<BlockNumber>;
  171. /**
  172. * The weight of runtime database operations the runtime can invoke.
  173. **/
  174. dbWeight: AugmentedConst<RuntimeDbWeight>;
  175. /**
  176. * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
  177. **/
  178. extrinsicBaseWeight: AugmentedConst<Weight>;
  179. /**
  180. * The maximum length of a block (in bytes).
  181. **/
  182. maximumBlockLength: AugmentedConst<u32>;
  183. /**
  184. * The maximum weight of a block.
  185. **/
  186. maximumBlockWeight: AugmentedConst<Weight>;
  187. };
  188. timestamp: {
  189. /**
  190. * The minimum period between blocks. Beware that this is different to the *expected* period
  191. * that the block production apparatus provides. Your chosen consensus system will generally
  192. * work with this to determine a sensible block time. e.g. For Aura, it will be double this
  193. * period on default settings.
  194. **/
  195. minimumPeriod: AugmentedConst<Moment>;
  196. };
  197. transactionPayment: {
  198. /**
  199. * The fee to be paid for making a transaction; the per-byte portion.
  200. **/
  201. transactionByteFee: AugmentedConst<BalanceOf>;
  202. /**
  203. * The polynomial that is applied in order to derive fee from weight.
  204. **/
  205. weightToFee: AugmentedConst<Vec<WeightToFeeCoefficient>>;
  206. };
  207. }
  208. }