augment-api-consts.ts 7.6 KB

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