augment-api-consts.ts 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  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, LockIdentifier, 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 - bounty lock id.
  36. **/
  37. bountyLockId: LockIdentifier & AugmentedConst<ApiType>;
  38. /**
  39. * Exports const - max work entry number for a closed assurance type contract bounty.
  40. **/
  41. closedContractSizeLimit: u32 & AugmentedConst<ApiType>;
  42. /**
  43. * Exports const - min cherry value limit for a bounty.
  44. **/
  45. minCherryLimit: BalanceOf & AugmentedConst<ApiType>;
  46. /**
  47. * Exports const - min funding amount limit for a bounty.
  48. **/
  49. minFundingLimit: BalanceOf & AugmentedConst<ApiType>;
  50. /**
  51. * Exports const - min work entrant stake for a bounty.
  52. **/
  53. minWorkEntrantStake: BalanceOf & AugmentedConst<ApiType>;
  54. };
  55. content: {
  56. /**
  57. * Exports const - max number of curators per group
  58. **/
  59. maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
  60. };
  61. contentDirectoryWorkingGroup: {
  62. /**
  63. * Stake needed to create an opening.
  64. **/
  65. leaderOpeningStake: Balance & AugmentedConst<ApiType>;
  66. /**
  67. * Exports const
  68. * Max simultaneous active worker number.
  69. **/
  70. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  71. /**
  72. * Minimum stake required for applying into an opening.
  73. **/
  74. minimumApplicationStake: Balance & AugmentedConst<ApiType>;
  75. /**
  76. * Defines min unstaking period in the group.
  77. **/
  78. minUnstakingPeriodLimit: BlockNumber & AugmentedConst<ApiType>;
  79. /**
  80. * Defines the period every worker gets paid in blocks.
  81. **/
  82. rewardPeriod: u32 & AugmentedConst<ApiType>;
  83. /**
  84. * Staking handler lock id.
  85. **/
  86. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  87. };
  88. council: {
  89. /**
  90. * Duration of annoncing period
  91. **/
  92. announcingPeriodDuration: BlockNumber & AugmentedConst<ApiType>;
  93. /**
  94. * Interval between automatic budget refills.
  95. **/
  96. budgetRefillPeriod: BlockNumber & AugmentedConst<ApiType>;
  97. /**
  98. * Exports const - candidacy lock id.
  99. **/
  100. candidacyLockId: LockIdentifier & AugmentedConst<ApiType>;
  101. /**
  102. * Exports const - councilor lock id.
  103. **/
  104. councilorLockId: LockIdentifier & AugmentedConst<ApiType>;
  105. /**
  106. * Council member count
  107. **/
  108. councilSize: u64 & AugmentedConst<ApiType>;
  109. /**
  110. * Interval for automatic reward payments.
  111. **/
  112. electedMemberRewardPeriod: BlockNumber & AugmentedConst<ApiType>;
  113. /**
  114. * Duration of idle period
  115. **/
  116. idlePeriodDuration: BlockNumber & AugmentedConst<ApiType>;
  117. /**
  118. * Minimum stake candidate has to lock
  119. **/
  120. minCandidateStake: Balance & AugmentedConst<ApiType>;
  121. /**
  122. * Minimum number of extra candidates needed for the valid election.
  123. * Number of total candidates is equal to council size plus extra candidates.
  124. **/
  125. minNumberOfExtraCandidates: u64 & AugmentedConst<ApiType>;
  126. };
  127. finalityTracker: {
  128. /**
  129. * The delay after which point things become suspicious. Default is 1000.
  130. **/
  131. reportLatency: BlockNumber & AugmentedConst<ApiType>;
  132. /**
  133. * The number of recent samples to keep from this chain. Default is 101.
  134. **/
  135. windowSize: BlockNumber & AugmentedConst<ApiType>;
  136. };
  137. forum: {
  138. /**
  139. * Exports const
  140. * Deposit needed to create a post
  141. **/
  142. postDeposit: BalanceOf & AugmentedConst<ApiType>;
  143. /**
  144. * Deposit needed to create a thread
  145. **/
  146. threadDeposit: BalanceOf & AugmentedConst<ApiType>;
  147. };
  148. forumWorkingGroup: {
  149. /**
  150. * Stake needed to create an opening.
  151. **/
  152. leaderOpeningStake: Balance & AugmentedConst<ApiType>;
  153. /**
  154. * Exports const
  155. * Max simultaneous active worker number.
  156. **/
  157. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  158. /**
  159. * Minimum stake required for applying into an opening.
  160. **/
  161. minimumApplicationStake: Balance & AugmentedConst<ApiType>;
  162. /**
  163. * Defines min unstaking period in the group.
  164. **/
  165. minUnstakingPeriodLimit: BlockNumber & AugmentedConst<ApiType>;
  166. /**
  167. * Defines the period every worker gets paid in blocks.
  168. **/
  169. rewardPeriod: u32 & AugmentedConst<ApiType>;
  170. /**
  171. * Staking handler lock id.
  172. **/
  173. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  174. };
  175. gatewayWorkingGroup: {
  176. /**
  177. * Stake needed to create an opening.
  178. **/
  179. leaderOpeningStake: Balance & AugmentedConst<ApiType>;
  180. /**
  181. * Exports const
  182. * Max simultaneous active worker number.
  183. **/
  184. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  185. /**
  186. * Minimum stake required for applying into an opening.
  187. **/
  188. minimumApplicationStake: Balance & AugmentedConst<ApiType>;
  189. /**
  190. * Defines min unstaking period in the group.
  191. **/
  192. minUnstakingPeriodLimit: BlockNumber & AugmentedConst<ApiType>;
  193. /**
  194. * Defines the period every worker gets paid in blocks.
  195. **/
  196. rewardPeriod: u32 & AugmentedConst<ApiType>;
  197. /**
  198. * Staking handler lock id.
  199. **/
  200. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  201. };
  202. members: {
  203. /**
  204. * Exports const - Stake needed to candidate as staking account.
  205. **/
  206. candidateStake: BalanceOf & AugmentedConst<ApiType>;
  207. /**
  208. * Exports const - default balance for the invited member.
  209. **/
  210. defaultInitialInvitationBalance: BalanceOf & AugmentedConst<ApiType>;
  211. /**
  212. * Exports const - default membership fee.
  213. **/
  214. defaultMembershipPrice: BalanceOf & AugmentedConst<ApiType>;
  215. /**
  216. * Exports const - invited member lock id.
  217. **/
  218. invitedMemberLockId: LockIdentifier & AugmentedConst<ApiType>;
  219. /**
  220. * Exports const - maximum percent value of the membership fee for the referral cut.
  221. **/
  222. referralCutMaximumPercent: u8 & AugmentedConst<ApiType>;
  223. /**
  224. * Exports const - staking candidate lock id.
  225. **/
  226. stakingCandidateLockId: LockIdentifier & AugmentedConst<ApiType>;
  227. };
  228. membershipWorkingGroup: {
  229. /**
  230. * Stake needed to create an opening.
  231. **/
  232. leaderOpeningStake: Balance & AugmentedConst<ApiType>;
  233. /**
  234. * Exports const
  235. * Max simultaneous active worker number.
  236. **/
  237. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  238. /**
  239. * Minimum stake required for applying into an opening.
  240. **/
  241. minimumApplicationStake: Balance & AugmentedConst<ApiType>;
  242. /**
  243. * Defines min unstaking period in the group.
  244. **/
  245. minUnstakingPeriodLimit: BlockNumber & AugmentedConst<ApiType>;
  246. /**
  247. * Defines the period every worker gets paid in blocks.
  248. **/
  249. rewardPeriod: u32 & AugmentedConst<ApiType>;
  250. /**
  251. * Staking handler lock id.
  252. **/
  253. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  254. };
  255. operationsWorkingGroup: {
  256. /**
  257. * Stake needed to create an opening.
  258. **/
  259. leaderOpeningStake: Balance & AugmentedConst<ApiType>;
  260. /**
  261. * Exports const
  262. * Max simultaneous active worker number.
  263. **/
  264. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  265. /**
  266. * Minimum stake required for applying into an opening.
  267. **/
  268. minimumApplicationStake: Balance & AugmentedConst<ApiType>;
  269. /**
  270. * Defines min unstaking period in the group.
  271. **/
  272. minUnstakingPeriodLimit: BlockNumber & AugmentedConst<ApiType>;
  273. /**
  274. * Defines the period every worker gets paid in blocks.
  275. **/
  276. rewardPeriod: u32 & AugmentedConst<ApiType>;
  277. /**
  278. * Staking handler lock id.
  279. **/
  280. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  281. };
  282. proposalsCodex: {
  283. /**
  284. * Exports 'Amend Constitution' proposal parameters.
  285. **/
  286. amendConstitutionProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  287. /**
  288. * Exports 'Cancel Working Group Lead Opening' proposal parameters.
  289. **/
  290. cancelWorkingGroupLeadOpeningProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  291. createBlogPostProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  292. /**
  293. * Exports 'Create Working Group Lead Opening' proposal parameters.
  294. **/
  295. createWorkingGroupLeadOpeningProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  296. /**
  297. * Exports 'Decrease Working Group Lead Stake' proposal parameters.
  298. **/
  299. decreaseWorkingGroupLeadStakeProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  300. editBlogPostProoposalParamters: ProposalParameters & AugmentedConst<ApiType>;
  301. /**
  302. * Exports 'Fill Working Group Lead Opening' proposal parameters.
  303. **/
  304. fillWorkingGroupOpeningProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  305. /**
  306. * Exports 'Funding Request' proposal parameters.
  307. **/
  308. fundingRequestProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  309. lockBlogPostProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  310. /**
  311. * Exports 'Runtime Upgrade' proposal parameters.
  312. **/
  313. runtimeUpgradeProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  314. /**
  315. * Exports `Set Council Budget Increment` proposal parameters.
  316. **/
  317. setCouncilBudgetIncrementProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  318. /**
  319. * Exports `Set Councilor Reward Proposal Parameters` proposal parameters.
  320. **/
  321. setCouncilorRewardProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  322. /**
  323. * Exports `Set Initial Invitation Balance` proposal parameters.
  324. **/
  325. setInitialInvitationBalanceProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  326. setInvitationCountProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  327. /**
  328. * Exports 'Set Max Validator Count' proposal parameters.
  329. **/
  330. setMaxValidatorCountProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  331. setMembershipLeadInvitationQuotaProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  332. /**
  333. * Exports 'Set Membership Price' proposal parameters.
  334. **/
  335. setMembershipPriceProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  336. setReferralCutProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  337. /**
  338. * Exports 'Set Working Group Lead Reward' proposal parameters.
  339. **/
  340. setWorkingGroupLeadRewardProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  341. /**
  342. * Exports 'Signal' proposal parameters.
  343. **/
  344. signalProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  345. /**
  346. * Exports 'Slash Working Group Lead' proposal parameters.
  347. **/
  348. slashWorkingGroupLeadProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  349. /**
  350. * Exports 'Terminate Working Group Lead' proposal parameters.
  351. **/
  352. terminateWorkingGroupLeadProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  353. unlockBlogPostProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  354. /**
  355. * Exports 'Update Working Group Budget' proposal parameters.
  356. **/
  357. updateWorkingGroupBudgetProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  358. vetoProposalProposalParameters: ProposalParameters & AugmentedConst<ApiType>;
  359. };
  360. proposalsEngine: {
  361. /**
  362. * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
  363. **/
  364. cancellationFee: BalanceOf & AugmentedConst<ApiType>;
  365. /**
  366. * Exports const - max allowed proposal description length.
  367. **/
  368. descriptionMaxLength: u32 & AugmentedConst<ApiType>;
  369. /**
  370. * Exports const - max simultaneous active proposals number.
  371. **/
  372. maxActiveProposalLimit: u32 & AugmentedConst<ApiType>;
  373. /**
  374. * Exports const - the fee is applied when the proposal gets rejected. A fee would
  375. * be slashed (burned).
  376. **/
  377. rejectionFee: BalanceOf & AugmentedConst<ApiType>;
  378. /**
  379. * Exports const - staking handler lock id.
  380. **/
  381. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  382. /**
  383. * Exports const - max allowed proposal title length.
  384. **/
  385. titleMaxLength: u32 & AugmentedConst<ApiType>;
  386. };
  387. referendum: {
  388. /**
  389. * Maximum length of vote commitment salt. Use length that ensures uniqueness for hashing
  390. * e.g. std::u64::MAX.
  391. **/
  392. maxSaltLength: u64 & AugmentedConst<ApiType>;
  393. /**
  394. * Minimum stake needed for voting
  395. **/
  396. minimumStake: BalanceOf & AugmentedConst<ApiType>;
  397. /**
  398. * Duration of revealing stage (number of blocks)
  399. **/
  400. revealStageDuration: BlockNumber & AugmentedConst<ApiType>;
  401. /**
  402. * Exports const - staking handler lock id.
  403. **/
  404. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  405. /**
  406. * Duration of voting stage (number of blocks)
  407. **/
  408. voteStageDuration: BlockNumber & AugmentedConst<ApiType>;
  409. };
  410. staking: {
  411. /**
  412. * Number of eras that staked funds must remain bonded for.
  413. **/
  414. bondingDuration: EraIndex & AugmentedConst<ApiType>;
  415. /**
  416. * The number of blocks before the end of the era from which election submissions are allowed.
  417. *
  418. * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
  419. * be used.
  420. *
  421. * This is bounded by being within the last session. Hence, setting it to a value more than the
  422. * length of a session will be pointless.
  423. **/
  424. electionLookahead: BlockNumber & AugmentedConst<ApiType>;
  425. /**
  426. * Maximum number of balancing iterations to run in the offchain submission.
  427. *
  428. * If set to 0, balance_solution will not be executed at all.
  429. **/
  430. maxIterations: u32 & AugmentedConst<ApiType>;
  431. /**
  432. * The maximum number of nominators rewarded for each validator.
  433. *
  434. * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
  435. * their reward. This used to limit the i/o cost for the nominator payout.
  436. **/
  437. maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
  438. /**
  439. * The threshold of improvement that should be provided for a new solution to be accepted.
  440. **/
  441. minSolutionScoreBump: Perbill & AugmentedConst<ApiType>;
  442. /**
  443. * Number of sessions per era.
  444. **/
  445. sessionsPerEra: SessionIndex & AugmentedConst<ApiType>;
  446. /**
  447. * Number of eras that slashes are deferred by, after computation.
  448. *
  449. * This should be less than the bonding duration.
  450. * Set to 0 if slashes should be applied immediately, without opportunity for
  451. * intervention.
  452. **/
  453. slashDeferDuration: EraIndex & AugmentedConst<ApiType>;
  454. };
  455. storageWorkingGroup: {
  456. /**
  457. * Stake needed to create an opening.
  458. **/
  459. leaderOpeningStake: Balance & AugmentedConst<ApiType>;
  460. /**
  461. * Exports const
  462. * Max simultaneous active worker number.
  463. **/
  464. maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
  465. /**
  466. * Minimum stake required for applying into an opening.
  467. **/
  468. minimumApplicationStake: Balance & AugmentedConst<ApiType>;
  469. /**
  470. * Defines min unstaking period in the group.
  471. **/
  472. minUnstakingPeriodLimit: BlockNumber & AugmentedConst<ApiType>;
  473. /**
  474. * Defines the period every worker gets paid in blocks.
  475. **/
  476. rewardPeriod: u32 & AugmentedConst<ApiType>;
  477. /**
  478. * Staking handler lock id.
  479. **/
  480. stakingHandlerLockId: LockIdentifier & AugmentedConst<ApiType>;
  481. };
  482. system: {
  483. /**
  484. * The base weight of executing a block, independent of the transactions in the block.
  485. **/
  486. blockExecutionWeight: Weight & AugmentedConst<ApiType>;
  487. /**
  488. * The maximum number of blocks to allow in mortal eras.
  489. **/
  490. blockHashCount: BlockNumber & AugmentedConst<ApiType>;
  491. /**
  492. * The weight of runtime database operations the runtime can invoke.
  493. **/
  494. dbWeight: RuntimeDbWeight & AugmentedConst<ApiType>;
  495. /**
  496. * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
  497. **/
  498. extrinsicBaseWeight: Weight & AugmentedConst<ApiType>;
  499. /**
  500. * The maximum length of a block (in bytes).
  501. **/
  502. maximumBlockLength: u32 & AugmentedConst<ApiType>;
  503. /**
  504. * The maximum weight of a block.
  505. **/
  506. maximumBlockWeight: Weight & AugmentedConst<ApiType>;
  507. };
  508. timestamp: {
  509. /**
  510. * The minimum period between blocks. Beware that this is different to the *expected* period
  511. * that the block production apparatus provides. Your chosen consensus system will generally
  512. * work with this to determine a sensible block time. e.g. For Aura, it will be double this
  513. * period on default settings.
  514. **/
  515. minimumPeriod: Moment & AugmentedConst<ApiType>;
  516. };
  517. transactionPayment: {
  518. /**
  519. * The fee to be paid for making a transaction; the per-byte portion.
  520. **/
  521. transactionByteFee: BalanceOf & AugmentedConst<ApiType>;
  522. /**
  523. * The polynomial that is applied in order to derive fee from weight.
  524. **/
  525. weightToFee: Vec<WeightToFeeCoefficient> & AugmentedConst<ApiType>;
  526. };
  527. }
  528. export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
  529. }
  530. }