augment-api-consts.ts 7.3 KB

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