augment-api-consts.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { Vec, u32, u64, u8 } from '@polkadot/types';
  4. import type { MaxNumber, ProposalParameters } 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. bounty: {
  34. /**
  35. * Exports const - max work entry number for a closed assurance type contract bounty.
  36. **/
  37. closedContractSizeLimit: u32 & AugmentedConst<ApiType>;
  38. /**
  39. * Exports const - min cherry value limit for a bounty.
  40. **/
  41. minCherryLimit: BalanceOf & AugmentedConst<ApiType>;
  42. /**
  43. * Exports const - min funding amount limit for a bounty.
  44. **/
  45. minFundingLimit: BalanceOf & AugmentedConst<ApiType>;
  46. /**
  47. * Exports const - min work entrant stake for a bounty.
  48. **/
  49. minWorkEntrantStake: BalanceOf & AugmentedConst<ApiType>;
  50. };
  51. content: {
  52. /**
  53. * Exports const - max number of curators per group
  54. **/
  55. maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
  56. };
  57. contentDirectoryWorkingGroup: {
  58. /**
  59. * Exports const - max simultaneous active worker number.
  60. **/
  61. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  62. };
  63. council: {
  64. /**
  65. * Duration of annoncing period
  66. **/
  67. announcingPeriodDuration: BlockNumber & AugmentedConst<ApiType>;
  68. /**
  69. * Interval between automatic budget refills.
  70. **/
  71. budgetRefillPeriod: BlockNumber & AugmentedConst<ApiType>;
  72. /**
  73. * Council member count
  74. **/
  75. councilSize: u64 & AugmentedConst<ApiType>;
  76. /**
  77. * Interval for automatic reward payments.
  78. **/
  79. electedMemberRewardPeriod: BlockNumber & AugmentedConst<ApiType>;
  80. /**
  81. * Duration of idle period
  82. **/
  83. idlePeriodDuration: BlockNumber & AugmentedConst<ApiType>;
  84. /**
  85. * Minimum stake candidate has to lock
  86. **/
  87. minCandidateStake: Balance & AugmentedConst<ApiType>;
  88. /**
  89. * Minimum number of extra candidates needed for the valid election.
  90. * Number of total candidates is equal to council size plus extra candidates.
  91. **/
  92. minNumberOfExtraCandidates: u64 & AugmentedConst<ApiType>;
  93. };
  94. finalityTracker: {
  95. /**
  96. * The delay after which point things become suspicious. Default is 1000.
  97. **/
  98. reportLatency: BlockNumber & AugmentedConst<ApiType>;
  99. /**
  100. * The number of recent samples to keep from this chain. Default is 101.
  101. **/
  102. windowSize: BlockNumber & AugmentedConst<ApiType>;
  103. };
  104. forumWorkingGroup: {
  105. /**
  106. * Exports const - max simultaneous active worker number.
  107. **/
  108. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  109. };
  110. gatewayWorkingGroup: {
  111. /**
  112. * Exports const - max simultaneous active worker number.
  113. **/
  114. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  115. };
  116. members: {
  117. /**
  118. * Exports const - default balance for the invited member.
  119. **/
  120. defaultInitialInvitationBalance: BalanceOf & AugmentedConst<ApiType>;
  121. /**
  122. * Exports const - default membership fee.
  123. **/
  124. defaultMembershipPrice: BalanceOf & AugmentedConst<ApiType>;
  125. /**
  126. * Exports const - maximum percent value of the membership fee for the referral cut.
  127. **/
  128. referralCutMaximumPercent: u8 & AugmentedConst<ApiType>;
  129. };
  130. membershipWorkingGroup: {
  131. /**
  132. * Exports const - max simultaneous active worker number.
  133. **/
  134. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  135. };
  136. operationsWorkingGroup: {
  137. /**
  138. * Exports const - max simultaneous active worker number.
  139. **/
  140. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  141. };
  142. proposalsCodex: {
  143. /**
  144. * Exports 'Amend Constitution' proposal parameters.
  145. **/
  146. amendConstitutionProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  147. /**
  148. * Exports 'Cancel Working Group Lead Opening' proposal parameters.
  149. **/
  150. cancelWorkingGroupLeadOpeningProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  151. createBlogPostProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  152. /**
  153. * Exports 'Create Working Group Lead Opening' proposal parameters.
  154. **/
  155. createWorkingGroupLeadOpeningProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  156. /**
  157. * Exports 'Decrease Working Group Lead Stake' proposal parameters.
  158. **/
  159. decreaseWorkingGroupLeadStakeProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  160. editBlogPostProoposalParamters: ProposalParameters & AugmentedConst<ApiType>;
  161. /**
  162. * Exports 'Fill Working Group Lead Opening' proposal parameters.
  163. **/
  164. fillWorkingGroupOpeningProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  165. /**
  166. * Exports 'Funding Request' proposal parameters.
  167. **/
  168. fundingRequestProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  169. lockBlogPostProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  170. /**
  171. * Exports 'Runtime Upgrade' proposal parameters.
  172. **/
  173. runtimeUpgradeProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  174. /**
  175. * Exports `Set Council Budget Increment` proposal parameters.
  176. **/
  177. setCouncilBudgetIncrementProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  178. /**
  179. * Exports `Set Councilor Reward Proposal Parameters` proposal parameters.
  180. **/
  181. setCouncilorRewardProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  182. /**
  183. * Exports `Set Initial Invitation Balance` proposal parameters.
  184. **/
  185. setInitialInvitationBalanceProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  186. setInvitationCountProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  187. /**
  188. * Exports 'Set Max Validator Count' proposal parameters.
  189. **/
  190. setMaxValidatorCountProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  191. setMembershipLeadInvitationQuotaProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  192. /**
  193. * Exports 'Set Membership Price' proposal parameters.
  194. **/
  195. setMembershipPriceProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  196. setReferralCutProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  197. /**
  198. * Exports 'Set Working Group Lead Reward' proposal parameters.
  199. **/
  200. setWorkingGroupLeadRewardProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  201. /**
  202. * Exports 'Signal' proposal parameters.
  203. **/
  204. signalProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  205. /**
  206. * Exports 'Slash Working Group Lead' proposal parameters.
  207. **/
  208. slashWorkingGroupLeadProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  209. /**
  210. * Exports 'Terminate Working Group Lead' proposal parameters.
  211. **/
  212. terminateWorkingGroupLeadProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  213. unlockBlogPostProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  214. /**
  215. * Exports 'Update Working Group Budget' proposal parameters.
  216. **/
  217. updateWorkingGroupBudgetProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  218. vetoProposalProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  219. };
  220. proposalsEngine: {
  221. /**
  222. * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
  223. **/
  224. cancellationFee: BalanceOf & AugmentedConst<ApiType>;
  225. /**
  226. * Exports const - max allowed proposal description length.
  227. **/
  228. descriptionMaxLength: u32 & AugmentedConst<ApiType>;
  229. /**
  230. * Exports const - max simultaneous active proposals number.
  231. **/
  232. maxActiveProposalLimit: u32 & AugmentedConst<ApiType>;
  233. /**
  234. * Exports const - the fee is applied when the proposal gets rejected. A fee would
  235. * be slashed (burned).
  236. **/
  237. rejectionFee: BalanceOf & AugmentedConst<ApiType>;
  238. /**
  239. * Exports const - max allowed proposal title length.
  240. **/
  241. titleMaxLength: u32 & AugmentedConst<ApiType>;
  242. };
  243. referendum: {
  244. /**
  245. * Maximum length of vote commitment salt. Use length that ensures uniqueness for hashing
  246. * e.g. std::u64::MAX.
  247. **/
  248. maxSaltLength: u64 & AugmentedConst<ApiType>;
  249. /**
  250. * Minimum stake needed for voting
  251. **/
  252. minimumStake: BalanceOf & AugmentedConst<ApiType>;
  253. /**
  254. * Duration of revealing stage (number of blocks)
  255. **/
  256. revealStageDuration: BlockNumber & AugmentedConst<ApiType>;
  257. /**
  258. * Duration of voting stage (number of blocks)
  259. **/
  260. voteStageDuration: BlockNumber & AugmentedConst<ApiType>;
  261. };
  262. staking: {
  263. /**
  264. * Number of eras that staked funds must remain bonded for.
  265. **/
  266. bondingDuration: EraIndex & AugmentedConst<ApiType>;
  267. /**
  268. * The number of blocks before the end of the era from which election submissions are allowed.
  269. *
  270. * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
  271. * be used.
  272. *
  273. * This is bounded by being within the last session. Hence, setting it to a value more than the
  274. * length of a session will be pointless.
  275. **/
  276. electionLookahead: BlockNumber & AugmentedConst<ApiType>;
  277. /**
  278. * Maximum number of balancing iterations to run in the offchain submission.
  279. *
  280. * If set to 0, balance_solution will not be executed at all.
  281. **/
  282. maxIterations: u32 & AugmentedConst<ApiType>;
  283. /**
  284. * The maximum number of nominators rewarded for each validator.
  285. *
  286. * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
  287. * their reward. This used to limit the i/o cost for the nominator payout.
  288. **/
  289. maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
  290. /**
  291. * The threshold of improvement that should be provided for a new solution to be accepted.
  292. **/
  293. minSolutionScoreBump: Perbill & AugmentedConst<ApiType>;
  294. /**
  295. * Number of sessions per era.
  296. **/
  297. sessionsPerEra: SessionIndex & AugmentedConst<ApiType>;
  298. /**
  299. * Number of eras that slashes are deferred by, after computation.
  300. *
  301. * This should be less than the bonding duration.
  302. * Set to 0 if slashes should be applied immediately, without opportunity for
  303. * intervention.
  304. **/
  305. slashDeferDuration: EraIndex & AugmentedConst<ApiType>;
  306. };
  307. storageWorkingGroup: {
  308. /**
  309. * Exports const - max simultaneous active worker number.
  310. **/
  311. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  312. };
  313. system: {
  314. /**
  315. * The base weight of executing a block, independent of the transactions in the block.
  316. **/
  317. blockExecutionWeight: Weight & AugmentedConst<ApiType>;
  318. /**
  319. * The maximum number of blocks to allow in mortal eras.
  320. **/
  321. blockHashCount: BlockNumber & AugmentedConst<ApiType>;
  322. /**
  323. * The weight of runtime database operations the runtime can invoke.
  324. **/
  325. dbWeight: RuntimeDbWeight & AugmentedConst<ApiType>;
  326. /**
  327. * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
  328. **/
  329. extrinsicBaseWeight: Weight & AugmentedConst<ApiType>;
  330. /**
  331. * The maximum length of a block (in bytes).
  332. **/
  333. maximumBlockLength: u32 & AugmentedConst<ApiType>;
  334. /**
  335. * The maximum weight of a block.
  336. **/
  337. maximumBlockWeight: Weight & AugmentedConst<ApiType>;
  338. };
  339. timestamp: {
  340. /**
  341. * The minimum period between blocks. Beware that this is different to the *expected* period
  342. * that the block production apparatus provides. Your chosen consensus system will generally
  343. * work with this to determine a sensible block time. e.g. For Aura, it will be double this
  344. * period on default settings.
  345. **/
  346. minimumPeriod: Moment & AugmentedConst<ApiType>;
  347. };
  348. transactionPayment: {
  349. /**
  350. * The fee to be paid for making a transaction; the per-byte portion.
  351. **/
  352. transactionByteFee: BalanceOf & AugmentedConst<ApiType>;
  353. /**
  354. * The polynomial that is applied in order to derive fee from weight.
  355. **/
  356. weightToFee: Vec<WeightToFeeCoefficient> & AugmentedConst<ApiType>;
  357. };
  358. }
  359. export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
  360. }
  361. }