augment-api-consts.ts 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { Vec, u32, u64 } from '@polkadot/types';
  4. import type { MaxNumber } from './all';
  5. import type { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
  6. import type { SessionIndex } from '@polkadot/types/interfaces/session';
  7. import type { EraIndex } from '@polkadot/types/interfaces/staking';
  8. import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
  9. import type { ApiTypes } from '@polkadot/api/types';
  10. declare module '@polkadot/api/types/consts' {
  11. export interface AugmentedConsts<ApiType> {
  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: u64 & AugmentedConst<ApiType>;
  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: Moment & AugmentedConst<ApiType>;
  26. };
  27. balances: {
  28. /**
  29. * The minimum amount required to keep an account open.
  30. **/
  31. existentialDeposit: Balance & AugmentedConst<ApiType>;
  32. };
  33. content: {
  34. /**
  35. * Exports const - max number of curators per group
  36. **/
  37. maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
  38. };
  39. contentDirectoryWorkingGroup: {
  40. /**
  41. * Exports const - max simultaneous active worker number.
  42. **/
  43. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  44. };
  45. finalityTracker: {
  46. /**
  47. * The delay after which point things become suspicious. Default is 1000.
  48. **/
  49. reportLatency: BlockNumber & AugmentedConst<ApiType>;
  50. /**
  51. * The number of recent samples to keep from this chain. Default is 101.
  52. **/
  53. windowSize: BlockNumber & AugmentedConst<ApiType>;
  54. };
  55. gatewayWorkingGroup: {
  56. /**
  57. * Exports const - max simultaneous active worker number.
  58. **/
  59. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  60. };
  61. members: {
  62. screenedMemberMaxInitialBalance: BalanceOf & AugmentedConst<ApiType>;
  63. };
  64. operationsWorkingGroup: {
  65. /**
  66. * Exports const - max simultaneous active worker number.
  67. **/
  68. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  69. };
  70. proposalsCodex: {
  71. /**
  72. * Exports max wasm code length of the runtime upgrade proposal const.
  73. **/
  74. runtimeUpgradeWasmProposalMaxLength: u32 & AugmentedConst<ApiType>;
  75. /**
  76. * Exports max allowed text proposal length const.
  77. **/
  78. textProposalMaxLength: u32 & AugmentedConst<ApiType>;
  79. };
  80. proposalsDiscussion: {
  81. /**
  82. * Exports post edition number limit const.
  83. **/
  84. maxPostEditionNumber: u32 & AugmentedConst<ApiType>;
  85. /**
  86. * Exports max thread by same author in a row number limit const.
  87. **/
  88. maxThreadInARowNumber: u32 & AugmentedConst<ApiType>;
  89. /**
  90. * Exports post length limit const.
  91. **/
  92. postLengthLimit: u32 & AugmentedConst<ApiType>;
  93. /**
  94. * Exports thread title length limit const.
  95. **/
  96. threadTitleLengthLimit: u32 & AugmentedConst<ApiType>;
  97. };
  98. proposalsEngine: {
  99. /**
  100. * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
  101. **/
  102. cancellationFee: BalanceOf & AugmentedConst<ApiType>;
  103. /**
  104. * Exports const - max allowed proposal description length.
  105. **/
  106. descriptionMaxLength: u32 & AugmentedConst<ApiType>;
  107. /**
  108. * Exports const - max simultaneous active proposals number.
  109. **/
  110. maxActiveProposalLimit: u32 & AugmentedConst<ApiType>;
  111. /**
  112. * Exports const - the fee is applied when the proposal gets rejected. A fee would be slashed (burned).
  113. **/
  114. rejectionFee: BalanceOf & AugmentedConst<ApiType>;
  115. /**
  116. * Exports const - max allowed proposal title length.
  117. **/
  118. titleMaxLength: u32 & AugmentedConst<ApiType>;
  119. };
  120. staking: {
  121. /**
  122. * Number of eras that staked funds must remain bonded for.
  123. **/
  124. bondingDuration: EraIndex & AugmentedConst<ApiType>;
  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: BlockNumber & AugmentedConst<ApiType>;
  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: u32 & AugmentedConst<ApiType>;
  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: u32 & AugmentedConst<ApiType>;
  148. /**
  149. * The threshold of improvement that should be provided for a new solution to be accepted.
  150. **/
  151. minSolutionScoreBump: Perbill & AugmentedConst<ApiType>;
  152. /**
  153. * Number of sessions per era.
  154. **/
  155. sessionsPerEra: SessionIndex & AugmentedConst<ApiType>;
  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: EraIndex & AugmentedConst<ApiType>;
  164. };
  165. storageWorkingGroup: {
  166. /**
  167. * Exports const - max simultaneous active worker number.
  168. **/
  169. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  170. };
  171. system: {
  172. /**
  173. * The base weight of executing a block, independent of the transactions in the block.
  174. **/
  175. blockExecutionWeight: Weight & AugmentedConst<ApiType>;
  176. /**
  177. * The maximum number of blocks to allow in mortal eras.
  178. **/
  179. blockHashCount: BlockNumber & AugmentedConst<ApiType>;
  180. /**
  181. * The weight of runtime database operations the runtime can invoke.
  182. **/
  183. dbWeight: RuntimeDbWeight & AugmentedConst<ApiType>;
  184. /**
  185. * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
  186. **/
  187. extrinsicBaseWeight: Weight & AugmentedConst<ApiType>;
  188. /**
  189. * The maximum length of a block (in bytes).
  190. **/
  191. maximumBlockLength: u32 & AugmentedConst<ApiType>;
  192. /**
  193. * The maximum weight of a block.
  194. **/
  195. maximumBlockWeight: Weight & AugmentedConst<ApiType>;
  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: Moment & AugmentedConst<ApiType>;
  205. };
  206. transactionPayment: {
  207. /**
  208. * The fee to be paid for making a transaction; the per-byte portion.
  209. **/
  210. transactionByteFee: BalanceOf & AugmentedConst<ApiType>;
  211. /**
  212. * The polynomial that is applied in order to derive fee from weight.
  213. **/
  214. weightToFee: Vec<WeightToFeeCoefficient> & AugmentedConst<ApiType>;
  215. };
  216. }
  217. export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
  218. }
  219. }