augment-api-consts.ts 10 KB

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