augment-api-consts.ts 10 KB

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