augment-api-consts.ts 7.6 KB

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