augment-api-consts.ts 9.5 KB

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