augment-api-tx.ts 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import { AnyNumber } from '@polkadot/types/types';
  4. import { Compact, Option, Vec } from '@polkadot/types/codec';
  5. import { Bytes, bool, u16, u32, u64 } from '@polkadot/types/primitive';
  6. import { ActivateOpeningAt, AddOpeningParameters, ApplicationId, ApplicationIdSet, BalanceOfMint, CategoryId, ContentId, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, ElectionParameters, FillOpeningParameters, MemberId, MemoText, OpeningId, OpeningPolicyCommitment, OpeningType, PaidTermId, PostId, ProposalId, RewardPolicy, StorageProviderId, TerminateRoleParameters, ThreadId, Url, VoteKind, WorkerId, WorkingGroup } from './all';
  7. import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
  8. import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
  9. import { Heartbeat } from '@polkadot/types/interfaces/imOnline';
  10. import { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
  11. import { Keys } from '@polkadot/types/interfaces/session';
  12. import { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
  13. import { Key } from '@polkadot/types/interfaces/system';
  14. import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types';
  15. declare module '@polkadot/api/types/submittable' {
  16. export interface AugmentedSubmittables<ApiType> {
  17. authorship: {
  18. /**
  19. * Provide a set of uncles.
  20. **/
  21. setUncles: AugmentedSubmittable<(newUncles: Vec<Header> | (Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  22. };
  23. balances: {
  24. /**
  25. * Exactly as `transfer`, except the origin must be root and the source account may be
  26. * specified.
  27. * # <weight>
  28. * - Same as transfer, but additional read and write because the source account is
  29. * not assumed to be in the overlay.
  30. * # </weight>
  31. **/
  32. forceTransfer: AugmentedSubmittable<(source: LookupSource | string | Uint8Array, dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  33. /**
  34. * Set the balances of a given account.
  35. *
  36. * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
  37. * also decrease the total issuance of the system (`TotalIssuance`).
  38. * If the new free or reserved balance is below the existential deposit,
  39. * it will reset the account nonce (`frame_system::AccountNonce`).
  40. *
  41. * The dispatch origin for this call is `root`.
  42. *
  43. * # <weight>
  44. * - Independent of the arguments.
  45. * - Contains a limited number of reads and writes.
  46. * ---------------------
  47. * - Base Weight:
  48. * - Creating: 27.56 µs
  49. * - Killing: 35.11 µs
  50. * - DB Weight: 1 Read, 1 Write to `who`
  51. * # </weight>
  52. **/
  53. setBalance: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, newFree: Compact<Balance> | AnyNumber | Uint8Array, newReserved: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  54. /**
  55. * Transfer some liquid free balance to another account.
  56. *
  57. * `transfer` will set the `FreeBalance` of the sender and receiver.
  58. * It will decrease the total issuance of the system by the `TransferFee`.
  59. * If the sender's account is below the existential deposit as a result
  60. * of the transfer, the account will be reaped.
  61. *
  62. * The dispatch origin for this call must be `Signed` by the transactor.
  63. *
  64. * # <weight>
  65. * - Dependent on arguments but not critical, given proper implementations for
  66. * input config types. See related functions below.
  67. * - It contains a limited number of reads and writes internally and no complex computation.
  68. *
  69. * Related functions:
  70. *
  71. * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
  72. * - Transferring balances to accounts that did not exist before will cause
  73. * `T::OnNewAccount::on_new_account` to be called.
  74. * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
  75. * - `transfer_keep_alive` works the same way as `transfer`, but has an additional
  76. * check that the transfer will not kill the origin account.
  77. * ---------------------------------
  78. * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
  79. * - DB Weight: 1 Read and 1 Write to destination account
  80. * - Origin account is already in memory, so no DB operations for them.
  81. * # </weight>
  82. **/
  83. transfer: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  84. /**
  85. * Same as the [`transfer`] call, but with a check that the transfer will not kill the
  86. * origin account.
  87. *
  88. * 99% of the time you want [`transfer`] instead.
  89. *
  90. * [`transfer`]: struct.Module.html#method.transfer
  91. * # <weight>
  92. * - Cheaper than transfer because account cannot be killed.
  93. * - Base Weight: 51.4 µs
  94. * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
  95. * #</weight>
  96. **/
  97. transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  98. };
  99. content: {
  100. /**
  101. * Add new curator group to runtime storage
  102. **/
  103. addCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  104. /**
  105. * Add curator to curator group under given `curator_group_id`
  106. **/
  107. addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  108. /**
  109. * Remove curator from a given curator group
  110. **/
  111. removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  112. /**
  113. * Remove curator group under given `curator_group_id` from runtime storage
  114. **/
  115. removeCuratorGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  116. /**
  117. * Set `is_active` status for curator group under given `curator_group_id`
  118. **/
  119. setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  120. };
  121. contentDirectoryWorkingGroup: {
  122. /**
  123. * Begin accepting worker applications to an opening that is active.
  124. * Require signed leader origin or the root (to accept applications for the leader position).
  125. **/
  126. acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  127. /**
  128. * Add an opening for a worker role.
  129. * Require signed leader origin or the root (to add opening for the leader position).
  130. **/
  131. addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  132. /**
  133. * Apply on a worker opening.
  134. **/
  135. applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  136. /**
  137. * Begin reviewing, and therefore not accepting new applications.
  138. * Require signed leader origin or the root (to begin review applications for the leader position).
  139. **/
  140. beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  141. /**
  142. * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
  143. * Can be decreased to zero, no actions on zero stake.
  144. * Require signed leader origin or the root (to decrease the leader stake).
  145. **/
  146. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  147. /**
  148. * Fill opening for worker/lead.
  149. * Require signed leader origin or the root (to fill opening for the leader position).
  150. **/
  151. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  152. /**
  153. * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
  154. * role_account_id to the stake. No limits on the stake.
  155. **/
  156. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  157. /**
  158. * Leave the role by the active worker.
  159. **/
  160. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  161. /**
  162. * Sets the capacity to enable working group budget. Requires root origin.
  163. **/
  164. setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  165. /**
  166. * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
  167. * If slashing balance greater than the existing stake - stake is slashed to zero.
  168. * Require signed leader origin or the root (to slash the leader stake).
  169. **/
  170. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  171. /**
  172. * Terminate the worker application. Can be done by the lead only.
  173. **/
  174. terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  175. /**
  176. * Terminate the active worker by the lead.
  177. * Require signed leader origin or the root (to terminate the leader role).
  178. **/
  179. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  180. /**
  181. * Update the reward account associated with a set reward relationship for the active worker.
  182. **/
  183. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  184. /**
  185. * Update the reward amount associated with a set reward relationship for the active worker.
  186. * Require signed leader origin or the root (to update leader reward amount).
  187. **/
  188. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  189. /**
  190. * Update the associated role account of the active worker/lead.
  191. **/
  192. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  193. /**
  194. * Withdraw the worker application. Can be done by the worker itself only.
  195. **/
  196. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  197. };
  198. council: {
  199. /**
  200. * Adds a zero staked council member. A member added in this way does not get a recurring reward.
  201. **/
  202. addCouncilMember: AugmentedSubmittable<(account: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  203. /**
  204. * Remove a single council member and their reward.
  205. **/
  206. removeCouncilMember: AugmentedSubmittable<(accountToRemove: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  207. /**
  208. * Force set a zero staked council. Stakes in existing council seats are not returned.
  209. * Existing council rewards are removed and new council members do NOT get any rewards.
  210. * Avoid using this call if possible, will be deprecated. The term of the new council is
  211. * not extended.
  212. **/
  213. setCouncil: AugmentedSubmittable<(accounts: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  214. /**
  215. * Sets the capacity of the the council mint, if it doesn't exist, attempts to
  216. * create a new one.
  217. **/
  218. setCouncilMintCapacity: AugmentedSubmittable<(capacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  219. /**
  220. * Sets the council rewards which is only applied on new council being elected.
  221. **/
  222. setCouncilRewards: AugmentedSubmittable<(amountPerPayout: BalanceOf | AnyNumber | Uint8Array, payoutInterval: Option<BlockNumber> | null | object | string | Uint8Array, firstPayoutAfterRewardCreated: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  223. /**
  224. * Set blocknumber when council term will end
  225. **/
  226. setTermEndsAt: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  227. /**
  228. * Attempts to mint and transfer amount to destination account
  229. **/
  230. spendFromCouncilMint: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  231. };
  232. councilElection: {
  233. apply: AugmentedSubmittable<(stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  234. forceStartElection: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  235. forceStopElection: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  236. reveal: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, vote: AccountId | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  237. setAutoStart: AugmentedSubmittable<(flag: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  238. /**
  239. * Sets new election parameters. Some combination of parameters that are not desirable, so
  240. * the parameters are checked for validity.
  241. * The call will fail if an election is in progress. If a council is not being elected for some
  242. * reaon after multiple rounds, force_stop_election() can be called to stop elections and followed by
  243. * set_election_parameters().
  244. **/
  245. setElectionParameters: AugmentedSubmittable<(params: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  246. setStageAnnouncing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  247. setStageRevealing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  248. setStageVoting: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  249. vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  250. };
  251. dataDirectory: {
  252. /**
  253. * Storage provider accepts a content. Requires signed storage provider account and its id.
  254. * The LiaisonJudgement can be updated, but only by the liaison.
  255. **/
  256. acceptContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  257. /**
  258. * Adds the content to the system. Member id should match its origin. The created DataObject
  259. * awaits liaison to accept or reject it.
  260. **/
  261. addContent: AugmentedSubmittable<(abstractOwner: AbstractStorageObjectOwner | null, contentId: ContentId | string | Uint8Array, typeId: DataObjectTypeId | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array, ipfsContentId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  262. /**
  263. * Adds the content to the system. Member id should match its origin. The created DataObject
  264. * awaits liaison to accept or reject it.
  265. **/
  266. addContentAsMember: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array, typeId: DataObjectTypeId | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array, ipfsContentId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  267. /**
  268. * Injects a set of data objects and their corresponding content id into the directory.
  269. * The operation is "silent" - no events will be emitted as objects are added.
  270. * The number of objects that can be added per call is limited to prevent the dispatch
  271. * from causing the block production to fail if it takes too much time to process.
  272. * Existing data objects will be overwritten.
  273. **/
  274. injectDataObjects: AugmentedSubmittable<(objects: DataObjectsMap) => SubmittableExtrinsic<ApiType>>;
  275. /**
  276. * Storage provider rejects a content. Requires signed storage provider account and its id.
  277. * The LiaisonJudgement can be updated, but only by the liaison.
  278. **/
  279. rejectContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  280. /**
  281. * Removes the content id from the list of known content ids. Requires root privileges.
  282. **/
  283. removeKnownContentId: AugmentedSubmittable<(contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  284. };
  285. dataObjectStorageRegistry: {
  286. /**
  287. * Add storage provider-to-content relationship. The storage provider should be registered
  288. * in the storage working group.
  289. **/
  290. addRelationship: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, cid: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  291. /**
  292. * Activates storage provider-to-content relationship. The storage provider should be registered
  293. * in the storage working group. A storage provider may flip their own ready state, but nobody else.
  294. **/
  295. setRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  296. /**
  297. * Deactivates storage provider-to-content relationship. The storage provider should be registered
  298. * in the storage working group. A storage provider may flip their own ready state, but nobody else.
  299. **/
  300. unsetRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  301. };
  302. dataObjectTypeRegistry: {
  303. /**
  304. * Activates existing data object type. Requires leader privileges.
  305. **/
  306. activateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  307. /**
  308. * Deactivates existing data object type. Requires leader privileges.
  309. **/
  310. deactivateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  311. /**
  312. * Registers the new data object type. Requires leader privileges.
  313. **/
  314. registerDataObjectType: AugmentedSubmittable<(dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  315. /**
  316. * Updates existing data object type. Requires leader privileges.
  317. **/
  318. updateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array, dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  319. };
  320. discovery: {
  321. /**
  322. * Sets bootstrap endpoints for the Colossus. Requires root privileges.
  323. **/
  324. setBootstrapEndpoints: AugmentedSubmittable<(endpoints: Vec<Url> | (Url | string)[]) => SubmittableExtrinsic<ApiType>>;
  325. /**
  326. * Sets default lifetime for storage providers accounts info. Requires root privileges.
  327. **/
  328. setDefaultLifetime: AugmentedSubmittable<(lifetime: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  329. /**
  330. * Creates the ServiceProviderRecord to save an IPNS identity for the storage provider.
  331. * Requires signed storage provider credentials.
  332. **/
  333. setIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  334. /**
  335. * Deletes the ServiceProviderRecord with the IPNS identity for the storage provider.
  336. * Requires signed storage provider credentials.
  337. **/
  338. unsetIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  339. };
  340. finalityTracker: {
  341. /**
  342. * Hint that the author of this block thinks the best finalized
  343. * block is the given number.
  344. **/
  345. finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  346. };
  347. forum: {
  348. /**
  349. * Edit post text
  350. **/
  351. addPost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  352. /**
  353. * Add a new category.
  354. **/
  355. createCategory: AugmentedSubmittable<(parent: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  356. /**
  357. * Create new thread in category
  358. **/
  359. createThread: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  360. /**
  361. * Edit post text
  362. **/
  363. editPostText: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  364. /**
  365. * Moderate post
  366. **/
  367. moderatePost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  368. /**
  369. * Moderate thread
  370. **/
  371. moderateThread: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  372. /**
  373. * Set forum sudo.
  374. **/
  375. setForumSudo: AugmentedSubmittable<(newForumSudo: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  376. /**
  377. * Update category
  378. **/
  379. updateCategory: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: Option<bool> | null | object | string | Uint8Array, newDeletionStatus: Option<bool> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  380. };
  381. grandpa: {
  382. /**
  383. * Report voter equivocation/misbehavior. This method will verify the
  384. * equivocation proof and validate the given key ownership proof
  385. * against the extracted offender. If both are valid, the offence
  386. * will be reported.
  387. *
  388. * Since the weight of the extrinsic is 0, in order to avoid DoS by
  389. * submission of invalid equivocation reports, a mandatory pre-validation of
  390. * the extrinsic is implemented in a `SignedExtension`.
  391. **/
  392. reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  393. };
  394. imOnline: {
  395. /**
  396. * # <weight>
  397. * - Complexity: `O(K + E)` where K is length of `Keys` and E is length of
  398. * `Heartbeat.network_state.external_address`
  399. *
  400. * - `O(K)`: decoding of length `K`
  401. * - `O(E)`: decoding/encoding of length `E`
  402. * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
  403. * `ReceivedHeartbeats`
  404. * - DbWrites: `ReceivedHeartbeats`
  405. * # </weight>
  406. **/
  407. heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  408. };
  409. members: {
  410. addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  411. /**
  412. * Non-members can buy membership
  413. **/
  414. buyMembership: AugmentedSubmittable<(paidTermsId: PaidTermId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  415. /**
  416. * Change member's about text
  417. **/
  418. changeMemberAboutText: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  419. /**
  420. * Change member's avatar
  421. **/
  422. changeMemberAvatar: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, uri: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  423. /**
  424. * Change member's handle. Will ensure new handle is unique and old one will be available
  425. * for other members to use.
  426. **/
  427. changeMemberHandle: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  428. setControllerAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newControllerAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  429. setRootAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  430. setScreeningAuthority: AugmentedSubmittable<(authority: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  431. /**
  432. * Update member's all or some of handle, avatar and about text.
  433. **/
  434. updateMembership: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  435. };
  436. memo: {
  437. updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>>;
  438. };
  439. proposalsCodex: {
  440. /**
  441. * Create 'Add working group leader opening' proposal type.
  442. * This proposal uses `add_opening()` extrinsic from the Joystream `working group` module.
  443. **/
  444. createAddWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, addOpeningParameters: AddOpeningParameters | { activate_at?: any; commitment?: any; human_readable_text?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  445. /**
  446. * Create 'Begin review working group leader applications' proposal type.
  447. * This proposal uses `begin_applicant_review()` extrinsic from the Joystream `working group` module.
  448. **/
  449. createBeginReviewWorkingGroupLeaderApplicationsProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage'|'Content' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  450. /**
  451. * Create 'decrease working group leader stake' proposal type.
  452. * This proposal uses `decrease_stake()` extrinsic from the `working-group` module.
  453. **/
  454. createDecreaseWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, decreasingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage'|'Content' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  455. /**
  456. * Create 'Fill working group leader opening' proposal type.
  457. * This proposal uses `fill_opening()` extrinsic from the Joystream `working group` module.
  458. **/
  459. createFillWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, fillOpeningParameters: FillOpeningParameters | { opening_id?: any; successful_application_id?: any; reward_policy?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  460. /**
  461. * Create 'Runtime upgrade' proposal type. Runtime upgrade can be initiated only by
  462. * members from the hardcoded list `RuntimeUpgradeProposalAllowedProposers`
  463. **/
  464. createRuntimeUpgradeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  465. /**
  466. * Create 'Set election parameters' proposal type. This proposal uses `set_election_parameters()`
  467. * extrinsic from the `governance::election module`.
  468. **/
  469. createSetElectionParametersProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, electionParameters: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  470. /**
  471. * Create 'Evict storage provider' proposal type.
  472. * This proposal uses `set_validator_count()` extrinsic from the Substrate `staking` module.
  473. **/
  474. createSetValidatorCountProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, newValidatorCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  475. /**
  476. * Create 'set working group leader reward' proposal type.
  477. * This proposal uses `update_reward_amount()` extrinsic from the `working-group` module.
  478. **/
  479. createSetWorkingGroupLeaderRewardProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, rewardAmount: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage'|'Content' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  480. /**
  481. * Create 'Set working group mint capacity' proposal type.
  482. * This proposal uses `set_mint_capacity()` extrinsic from the `working-group` module.
  483. **/
  484. createSetWorkingGroupMintCapacityProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, mintBalance: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage'|'Content' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  485. /**
  486. * Create 'slash working group leader stake' proposal type.
  487. * This proposal uses `slash_stake()` extrinsic from the `working-group` module.
  488. **/
  489. createSlashWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, slashingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage'|'Content' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  490. /**
  491. * Create 'Spending' proposal type.
  492. * This proposal uses `spend_from_council_mint()` extrinsic from the `governance::council` module.
  493. **/
  494. createSpendingProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, balance: BalanceOfMint | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  495. /**
  496. * Create 'terminate working group leader rolw' proposal type.
  497. * This proposal uses `terminate_role()` extrinsic from the `working-group` module.
  498. **/
  499. createTerminateWorkingGroupLeaderRoleProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, terminateRoleParameters: TerminateRoleParameters | { worker_id?: any; rationale?: any; slash?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  500. /**
  501. * Create 'Text (signal)' proposal type.
  502. **/
  503. createTextProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  504. /**
  505. * Runtime upgrade proposal extrinsic.
  506. * Should be used as callable object to pass to the `engine` module.
  507. **/
  508. executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  509. /**
  510. * Text proposal extrinsic. Should be used as callable object to pass to the `engine` module.
  511. **/
  512. executeTextProposal: AugmentedSubmittable<(text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  513. };
  514. proposalsDiscussion: {
  515. /**
  516. * Adds a post with author origin check.
  517. **/
  518. addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  519. /**
  520. * Updates a post with author origin check. Update attempts number is limited.
  521. **/
  522. updatePost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  523. };
  524. proposalsEngine: {
  525. /**
  526. * Cancel a proposal by its original proposer.
  527. **/
  528. cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  529. /**
  530. * Veto a proposal. Must be root.
  531. **/
  532. vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  533. /**
  534. * Vote extrinsic. Conditions: origin must allow votes.
  535. **/
  536. vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve'|'Reject'|'Slash'|'Abstain' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  537. };
  538. session: {
  539. /**
  540. * Removes any session key(s) of the function caller.
  541. * This doesn't take effect until the next session.
  542. *
  543. * The dispatch origin of this function must be signed.
  544. *
  545. * # <weight>
  546. * - Complexity: `O(1)` in number of key types.
  547. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  548. * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
  549. * - DbWrites: `NextKeys`, `origin account`
  550. * - DbWrites per key id: `KeyOwnder`
  551. * # </weight>
  552. **/
  553. purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  554. /**
  555. * Sets the session key(s) of the function caller to `keys`.
  556. * Allows an account to set its session key prior to becoming a validator.
  557. * This doesn't take effect until the next session.
  558. *
  559. * The dispatch origin of this function must be signed.
  560. *
  561. * # <weight>
  562. * - Complexity: `O(1)`
  563. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  564. * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
  565. * - DbWrites: `origin account`, `NextKeys`
  566. * - DbReads per key id: `KeyOwner`
  567. * - DbWrites per key id: `KeyOwner`
  568. * # </weight>
  569. **/
  570. setKeys: AugmentedSubmittable<(keys: Keys, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  571. };
  572. staking: {
  573. /**
  574. * Take the origin account as a stash and lock up `value` of its balance. `controller` will
  575. * be the account that controls it.
  576. *
  577. * `value` must be more than the `minimum_balance` specified by `T::Currency`.
  578. *
  579. * The dispatch origin for this call must be _Signed_ by the stash account.
  580. *
  581. * Emits `Bonded`.
  582. *
  583. * # <weight>
  584. * - Independent of the arguments. Moderate complexity.
  585. * - O(1).
  586. * - Three extra DB entries.
  587. *
  588. * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
  589. * unless the `origin` falls below _existential deposit_ and gets removed as dust.
  590. * ------------------
  591. * Base Weight: 67.87 µs
  592. * DB Weight:
  593. * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
  594. * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
  595. * # </weight>
  596. **/
  597. bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, payee: RewardDestination | 'Staked'|'Stash'|'Controller' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  598. /**
  599. * Add some extra amount that have appeared in the stash `free_balance` into the balance up
  600. * for staking.
  601. *
  602. * Use this if there are additional funds in your stash account that you wish to bond.
  603. * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
  604. * that can be added.
  605. *
  606. * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
  607. * it can be only called when [`EraElectionStatus`] is `Closed`.
  608. *
  609. * Emits `Bonded`.
  610. *
  611. * # <weight>
  612. * - Independent of the arguments. Insignificant complexity.
  613. * - O(1).
  614. * - One DB entry.
  615. * ------------
  616. * Base Weight: 54.88 µs
  617. * DB Weight:
  618. * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
  619. * - Write: [Origin Account], Locks, Ledger
  620. * # </weight>
  621. **/
  622. bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  623. /**
  624. * Cancel enactment of a deferred slash.
  625. *
  626. * Can be called by the `T::SlashCancelOrigin`.
  627. *
  628. * Parameters: era and indices of the slashes for that era to kill.
  629. *
  630. * # <weight>
  631. * Complexity: O(U + S)
  632. * with U unapplied slashes weighted with U=1000
  633. * and S is the number of slash indices to be canceled.
  634. * - Base: 5870 + 34.61 * S µs
  635. * - Read: Unapplied Slashes
  636. * - Write: Unapplied Slashes
  637. * # </weight>
  638. **/
  639. cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  640. /**
  641. * Declare no desire to either validate or nominate.
  642. *
  643. * Effects will be felt at the beginning of the next era.
  644. *
  645. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  646. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  647. *
  648. * # <weight>
  649. * - Independent of the arguments. Insignificant complexity.
  650. * - Contains one read.
  651. * - Writes are limited to the `origin` account key.
  652. * --------
  653. * Base Weight: 16.53 µs
  654. * DB Weight:
  655. * - Read: EraElectionStatus, Ledger
  656. * - Write: Validators, Nominators
  657. * # </weight>
  658. **/
  659. chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  660. /**
  661. * Force there to be a new era at the end of the next session. After this, it will be
  662. * reset to normal (non-forced) behaviour.
  663. *
  664. * The dispatch origin must be Root.
  665. *
  666. * # <weight>
  667. * - No arguments.
  668. * - Base Weight: 1.959 µs
  669. * - Write ForceEra
  670. * # </weight>
  671. **/
  672. forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  673. /**
  674. * Force there to be a new era at the end of sessions indefinitely.
  675. *
  676. * The dispatch origin must be Root.
  677. *
  678. * # <weight>
  679. * - Base Weight: 2.05 µs
  680. * - Write: ForceEra
  681. * # </weight>
  682. **/
  683. forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  684. /**
  685. * Force there to be no new eras indefinitely.
  686. *
  687. * The dispatch origin must be Root.
  688. *
  689. * # <weight>
  690. * - No arguments.
  691. * - Base Weight: 1.857 µs
  692. * - Write: ForceEra
  693. * # </weight>
  694. **/
  695. forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  696. /**
  697. * Force a current staker to become completely unstaked, immediately.
  698. *
  699. * The dispatch origin must be Root.
  700. *
  701. * # <weight>
  702. * O(S) where S is the number of slashing spans to be removed
  703. * Base Weight: 53.07 + 2.365 * S µs
  704. * Reads: Bonded, Slashing Spans, Account, Locks
  705. * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
  706. * Writes Each: SpanSlash * S
  707. * # </weight>
  708. **/
  709. forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  710. /**
  711. * Increments the ideal number of validators.
  712. *
  713. * The dispatch origin must be Root.
  714. *
  715. * # <weight>
  716. * Base Weight: 1.717 µs
  717. * Read/Write: Validator Count
  718. * # </weight>
  719. **/
  720. increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  721. /**
  722. * Declare the desire to nominate `targets` for the origin controller.
  723. *
  724. * Effects will be felt at the beginning of the next era. This can only be called when
  725. * [`EraElectionStatus`] is `Closed`.
  726. *
  727. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  728. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  729. *
  730. * # <weight>
  731. * - The transaction's complexity is proportional to the size of `targets` (N)
  732. * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
  733. * - Both the reads and writes follow a similar pattern.
  734. * ---------
  735. * Base Weight: 22.34 + .36 * N µs
  736. * where N is the number of targets
  737. * DB Weight:
  738. * - Reads: Era Election Status, Ledger, Current Era
  739. * - Writes: Validators, Nominators
  740. * # </weight>
  741. **/
  742. nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  743. /**
  744. * Pay out all the stakers behind a single validator for a single era.
  745. *
  746. * - `validator_stash` is the stash account of the validator. Their nominators, up to
  747. * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
  748. * - `era` may be any era between `[current_era - history_depth; current_era]`.
  749. *
  750. * The origin of this call must be _Signed_. Any account can call this function, even if
  751. * it is not one of the stakers.
  752. *
  753. * This can only be called when [`EraElectionStatus`] is `Closed`.
  754. *
  755. * # <weight>
  756. * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
  757. * - Contains a limited number of reads and writes.
  758. * -----------
  759. * N is the Number of payouts for the validator (including the validator)
  760. * Base Weight:
  761. * - Reward Destination Staked: 110 + 54.2 * N µs (Median Slopes)
  762. * - Reward Destination Controller (Creating): 120 + 41.95 * N µs (Median Slopes)
  763. * DB Weight:
  764. * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
  765. * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
  766. * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
  767. * - Write Each: System Account, Locks, Ledger (3 items)
  768. * # </weight>
  769. **/
  770. payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  771. /**
  772. * Remove all data structure concerning a staker/stash once its balance is zero.
  773. * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
  774. * and the target `stash` must have no funds left.
  775. *
  776. * This can be called from any origin.
  777. *
  778. * - `stash`: The stash account to reap. Its balance must be zero.
  779. *
  780. * # <weight>
  781. * Complexity: O(S) where S is the number of slashing spans on the account.
  782. * Base Weight: 75.94 + 2.396 * S µs
  783. * DB Weight:
  784. * - Reads: Stash Account, Bonded, Slashing Spans, Locks
  785. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
  786. * - Writes Each: SpanSlash * S
  787. * # </weight>
  788. **/
  789. reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  790. /**
  791. * Rebond a portion of the stash scheduled to be unlocked.
  792. *
  793. * The dispatch origin must be signed by the controller, and it can be only called when
  794. * [`EraElectionStatus`] is `Closed`.
  795. *
  796. * # <weight>
  797. * - Time complexity: O(L), where L is unlocking chunks
  798. * - Bounded by `MAX_UNLOCKING_CHUNKS`.
  799. * - Storage changes: Can't increase storage, only decrease it.
  800. * ---------------
  801. * - Base Weight: 34.51 µs * .048 L µs
  802. * - DB Weight:
  803. * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
  804. * - Writes: [Origin Account], Locks, Ledger
  805. * # </weight>
  806. **/
  807. rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  808. /**
  809. * Scale up the ideal number of validators by a factor.
  810. *
  811. * The dispatch origin must be Root.
  812. *
  813. * # <weight>
  814. * Base Weight: 1.717 µs
  815. * Read/Write: Validator Count
  816. * # </weight>
  817. **/
  818. scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  819. /**
  820. * (Re-)set the controller of a stash.
  821. *
  822. * Effects will be felt at the beginning of the next era.
  823. *
  824. * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
  825. *
  826. * # <weight>
  827. * - Independent of the arguments. Insignificant complexity.
  828. * - Contains a limited number of reads.
  829. * - Writes are limited to the `origin` account key.
  830. * ----------
  831. * Base Weight: 25.22 µs
  832. * DB Weight:
  833. * - Read: Bonded, Ledger New Controller, Ledger Old Controller
  834. * - Write: Bonded, Ledger New Controller, Ledger Old Controller
  835. * # </weight>
  836. **/
  837. setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  838. /**
  839. * Set `HistoryDepth` value. This function will delete any history information
  840. * when `HistoryDepth` is reduced.
  841. *
  842. * Parameters:
  843. * - `new_history_depth`: The new history depth you would like to set.
  844. * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
  845. * This should report all the storage items that will be deleted by clearing old
  846. * era history. Needed to report an accurate weight for the dispatch. Trusted by
  847. * `Root` to report an accurate number.
  848. *
  849. * Origin must be root.
  850. *
  851. * # <weight>
  852. * - E: Number of history depths removed, i.e. 10 -> 7 = 3
  853. * - Base Weight: 29.13 * E µs
  854. * - DB Weight:
  855. * - Reads: Current Era, History Depth
  856. * - Writes: History Depth
  857. * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
  858. * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
  859. * # </weight>
  860. **/
  861. setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  862. /**
  863. * Set the validators who cannot be slashed (if any).
  864. *
  865. * The dispatch origin must be Root.
  866. *
  867. * # <weight>
  868. * - O(V)
  869. * - Base Weight: 2.208 + .006 * V µs
  870. * - Write: Invulnerables
  871. * # </weight>
  872. **/
  873. setInvulnerables: AugmentedSubmittable<(validators: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  874. /**
  875. * (Re-)set the payment target for a controller.
  876. *
  877. * Effects will be felt at the beginning of the next era.
  878. *
  879. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  880. *
  881. * # <weight>
  882. * - Independent of the arguments. Insignificant complexity.
  883. * - Contains a limited number of reads.
  884. * - Writes are limited to the `origin` account key.
  885. * ---------
  886. * - Base Weight: 11.33 µs
  887. * - DB Weight:
  888. * - Read: Ledger
  889. * - Write: Payee
  890. * # </weight>
  891. **/
  892. setPayee: AugmentedSubmittable<(payee: RewardDestination | 'Staked'|'Stash'|'Controller' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  893. /**
  894. * Sets the ideal number of validators.
  895. *
  896. * The dispatch origin must be Root.
  897. *
  898. * # <weight>
  899. * Base Weight: 1.717 µs
  900. * Write: Validator Count
  901. * # </weight>
  902. **/
  903. setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  904. /**
  905. * Submit an election result to the chain. If the solution:
  906. *
  907. * 1. is valid.
  908. * 2. has a better score than a potentially existing solution on chain.
  909. *
  910. * then, it will be _put_ on chain.
  911. *
  912. * A solution consists of two pieces of data:
  913. *
  914. * 1. `winners`: a flat vector of all the winners of the round.
  915. * 2. `assignments`: the compact version of an assignment vector that encodes the edge
  916. * weights.
  917. *
  918. * Both of which may be computed using _phragmen_, or any other algorithm.
  919. *
  920. * Additionally, the submitter must provide:
  921. *
  922. * - The `score` that they claim their solution has.
  923. *
  924. * Both validators and nominators will be represented by indices in the solution. The
  925. * indices should respect the corresponding types ([`ValidatorIndex`] and
  926. * [`NominatorIndex`]). Moreover, they should be valid when used to index into
  927. * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
  928. * solution to be rejected. These two storage items are set during the election window and
  929. * may be used to determine the indices.
  930. *
  931. * A solution is valid if:
  932. *
  933. * 0. It is submitted when [`EraElectionStatus`] is `Open`.
  934. * 1. Its claimed score is equal to the score computed on-chain.
  935. * 2. Presents the correct number of winners.
  936. * 3. All indexes must be value according to the snapshot vectors. All edge values must
  937. * also be correct and should not overflow the granularity of the ratio type (i.e. 256
  938. * or billion).
  939. * 4. For each edge, all targets are actually nominated by the voter.
  940. * 5. Has correct self-votes.
  941. *
  942. * A solutions score is consisted of 3 parameters:
  943. *
  944. * 1. `min { support.total }` for each support of a winner. This value should be maximized.
  945. * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
  946. * 3. `sum { support.total^2 }` for each support of a winner. This value should be
  947. * minimized (to ensure less variance)
  948. *
  949. * # <weight>
  950. * See `crate::weight` module.
  951. * # </weight>
  952. **/
  953. submitElectionSolution: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  954. /**
  955. * Unsigned version of `submit_election_solution`.
  956. *
  957. * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
  958. * from the local node to be included. In other words, only the block author can include a
  959. * transaction in the block.
  960. *
  961. * # <weight>
  962. * See `crate::weight` module.
  963. * # </weight>
  964. **/
  965. submitElectionSolutionUnsigned: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  966. /**
  967. * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
  968. * period ends. If this leaves an amount actively bonded less than
  969. * T::Currency::minimum_balance(), then it is increased to the full amount.
  970. *
  971. * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
  972. * the funds out of management ready for transfer.
  973. *
  974. * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
  975. * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
  976. * to be called first to remove some of the chunks (if possible).
  977. *
  978. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  979. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  980. *
  981. * Emits `Unbonded`.
  982. *
  983. * See also [`Call::withdraw_unbonded`].
  984. *
  985. * # <weight>
  986. * - Independent of the arguments. Limited but potentially exploitable complexity.
  987. * - Contains a limited number of reads.
  988. * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
  989. * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
  990. * The only way to clean the aforementioned storage item is also user-controlled via
  991. * `withdraw_unbonded`.
  992. * - One DB entry.
  993. * ----------
  994. * Base Weight: 50.34 µs
  995. * DB Weight:
  996. * - Read: Era Election Status, Ledger, Current Era, Locks, [Origin Account]
  997. * - Write: [Origin Account], Locks, Ledger
  998. * </weight>
  999. **/
  1000. unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1001. /**
  1002. * Declare the desire to validate for the origin controller.
  1003. *
  1004. * Effects will be felt at the beginning of the next era.
  1005. *
  1006. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  1007. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  1008. *
  1009. * # <weight>
  1010. * - Independent of the arguments. Insignificant complexity.
  1011. * - Contains a limited number of reads.
  1012. * - Writes are limited to the `origin` account key.
  1013. * -----------
  1014. * Base Weight: 17.13 µs
  1015. * DB Weight:
  1016. * - Read: Era Election Status, Ledger
  1017. * - Write: Nominators, Validators
  1018. * # </weight>
  1019. **/
  1020. validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1021. /**
  1022. * Remove any unlocked chunks from the `unlocking` queue from our management.
  1023. *
  1024. * This essentially frees up that balance to be used by the stash account to do
  1025. * whatever it wants.
  1026. *
  1027. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  1028. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  1029. *
  1030. * Emits `Withdrawn`.
  1031. *
  1032. * See also [`Call::unbond`].
  1033. *
  1034. * # <weight>
  1035. * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
  1036. * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
  1037. * indirectly user-controlled. See [`unbond`] for more detail.
  1038. * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
  1039. * - Writes are limited to the `origin` account key.
  1040. * ---------------
  1041. * Complexity O(S) where S is the number of slashing spans to remove
  1042. * Base Weight:
  1043. * Update: 50.52 + .028 * S µs
  1044. * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
  1045. * - Writes: [Origin Account], Locks, Ledger
  1046. * Kill: 79.41 + 2.366 * S µs
  1047. * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin Account], Locks
  1048. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, [Origin Account], Locks
  1049. * - Writes Each: SpanSlash * S
  1050. * NOTE: Weight annotation is the kill scenario, we refund otherwise.
  1051. * # </weight>
  1052. **/
  1053. withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1054. };
  1055. storageWorkingGroup: {
  1056. /**
  1057. * Begin accepting worker applications to an opening that is active.
  1058. * Require signed leader origin or the root (to accept applications for the leader position).
  1059. **/
  1060. acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1061. /**
  1062. * Add an opening for a worker role.
  1063. * Require signed leader origin or the root (to add opening for the leader position).
  1064. **/
  1065. addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1066. /**
  1067. * Apply on a worker opening.
  1068. **/
  1069. applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1070. /**
  1071. * Begin reviewing, and therefore not accepting new applications.
  1072. * Require signed leader origin or the root (to begin review applications for the leader position).
  1073. **/
  1074. beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1075. /**
  1076. * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
  1077. * Can be decreased to zero, no actions on zero stake.
  1078. * Require signed leader origin or the root (to decrease the leader stake).
  1079. **/
  1080. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1081. /**
  1082. * Fill opening for worker/lead.
  1083. * Require signed leader origin or the root (to fill opening for the leader position).
  1084. **/
  1085. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1086. /**
  1087. * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
  1088. * role_account_id to the stake. No limits on the stake.
  1089. **/
  1090. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1091. /**
  1092. * Leave the role by the active worker.
  1093. **/
  1094. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1095. /**
  1096. * Sets the capacity to enable working group budget. Requires root origin.
  1097. **/
  1098. setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1099. /**
  1100. * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
  1101. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1102. * Require signed leader origin or the root (to slash the leader stake).
  1103. **/
  1104. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1105. /**
  1106. * Terminate the worker application. Can be done by the lead only.
  1107. **/
  1108. terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1109. /**
  1110. * Terminate the active worker by the lead.
  1111. * Require signed leader origin or the root (to terminate the leader role).
  1112. **/
  1113. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1114. /**
  1115. * Update the reward account associated with a set reward relationship for the active worker.
  1116. **/
  1117. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1118. /**
  1119. * Update the reward amount associated with a set reward relationship for the active worker.
  1120. * Require signed leader origin or the root (to update leader reward amount).
  1121. **/
  1122. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1123. /**
  1124. * Update the associated role account of the active worker/lead.
  1125. **/
  1126. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1127. /**
  1128. * Withdraw the worker application. Can be done by the worker itself only.
  1129. **/
  1130. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1131. };
  1132. sudo: {
  1133. /**
  1134. * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
  1135. *
  1136. * The dispatch origin for this call must be _Signed_.
  1137. *
  1138. * # <weight>
  1139. * - O(1).
  1140. * - Limited storage reads.
  1141. * - One DB change.
  1142. * # </weight>
  1143. **/
  1144. setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1145. /**
  1146. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  1147. *
  1148. * The dispatch origin for this call must be _Signed_.
  1149. *
  1150. * # <weight>
  1151. * - O(1).
  1152. * - Limited storage reads.
  1153. * - One DB write (event).
  1154. * - Weight of derivative `call` execution + 10,000.
  1155. * # </weight>
  1156. **/
  1157. sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1158. /**
  1159. * Authenticates the sudo key and dispatches a function call with `Signed` origin from
  1160. * a given account.
  1161. *
  1162. * The dispatch origin for this call must be _Signed_.
  1163. *
  1164. * # <weight>
  1165. * - O(1).
  1166. * - Limited storage reads.
  1167. * - One DB write (event).
  1168. * - Weight of derivative `call` execution + 10,000.
  1169. * # </weight>
  1170. **/
  1171. sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1172. /**
  1173. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  1174. * This function does not check the weight of the call, and instead allows the
  1175. * Sudo user to specify the weight of the call.
  1176. *
  1177. * The dispatch origin for this call must be _Signed_.
  1178. *
  1179. * # <weight>
  1180. * - O(1).
  1181. * - The weight of this call is defined by the caller.
  1182. * # </weight>
  1183. **/
  1184. sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1185. };
  1186. system: {
  1187. /**
  1188. * A dispatch that will fill the block weight up to the given ratio.
  1189. **/
  1190. fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1191. /**
  1192. * Kill all storage items with a key that starts with the given prefix.
  1193. *
  1194. * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
  1195. * the prefix we are removing to accurately calculate the weight of this function.
  1196. *
  1197. * # <weight>
  1198. * - `O(P)` where `P` amount of keys with prefix `prefix`
  1199. * - `P` storage deletions.
  1200. * - Base Weight: 0.834 * P µs
  1201. * - Writes: Number of subkeys + 1
  1202. * # </weight>
  1203. **/
  1204. killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1205. /**
  1206. * Kill some items from storage.
  1207. *
  1208. * # <weight>
  1209. * - `O(IK)` where `I` length of `keys` and `K` length of one key
  1210. * - `I` storage deletions.
  1211. * - Base Weight: .378 * i µs
  1212. * - Writes: Number of items
  1213. * # </weight>
  1214. **/
  1215. killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  1216. /**
  1217. * Make some on-chain remark.
  1218. *
  1219. * # <weight>
  1220. * - `O(1)`
  1221. * - Base Weight: 0.665 µs, independent of remark length.
  1222. * - No DB operations.
  1223. * # </weight>
  1224. **/
  1225. remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1226. /**
  1227. * Set the new changes trie configuration.
  1228. *
  1229. * # <weight>
  1230. * - `O(1)`
  1231. * - 1 storage write or delete (codec `O(1)`).
  1232. * - 1 call to `deposit_log`: Uses `append` API, so O(1)
  1233. * - Base Weight: 7.218 µs
  1234. * - DB Weight:
  1235. * - Writes: Changes Trie, System Digest
  1236. * # </weight>
  1237. **/
  1238. setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1239. /**
  1240. * Set the new runtime code.
  1241. *
  1242. * # <weight>
  1243. * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
  1244. * - 1 storage write (codec `O(C)`).
  1245. * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
  1246. * - 1 event.
  1247. * The weight of this function is dependent on the runtime, but generally this is very expensive.
  1248. * We will treat this as a full block.
  1249. * # </weight>
  1250. **/
  1251. setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1252. /**
  1253. * Set the new runtime code without doing any checks of the given `code`.
  1254. *
  1255. * # <weight>
  1256. * - `O(C)` where `C` length of `code`
  1257. * - 1 storage write (codec `O(C)`).
  1258. * - 1 event.
  1259. * The weight of this function is dependent on the runtime. We will treat this as a full block.
  1260. * # </weight>
  1261. **/
  1262. setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1263. /**
  1264. * Set the number of pages in the WebAssembly environment's heap.
  1265. *
  1266. * # <weight>
  1267. * - `O(1)`
  1268. * - 1 storage write.
  1269. * - Base Weight: 1.405 µs
  1270. * - 1 write to HEAP_PAGES
  1271. * # </weight>
  1272. **/
  1273. setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1274. /**
  1275. * Set some items of storage.
  1276. *
  1277. * # <weight>
  1278. * - `O(I)` where `I` length of `items`
  1279. * - `I` storage writes (`O(1)`).
  1280. * - Base Weight: 0.568 * i µs
  1281. * - Writes: Number of items
  1282. * # </weight>
  1283. **/
  1284. setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>>;
  1285. /**
  1286. * Kill the sending account, assuming there are no references outstanding and the composite
  1287. * data is equal to its default value.
  1288. *
  1289. * # <weight>
  1290. * - `O(1)`
  1291. * - 1 storage read and deletion.
  1292. * --------------------
  1293. * Base Weight: 8.626 µs
  1294. * No DB Read or Write operations because caller is already in overlay
  1295. * # </weight>
  1296. **/
  1297. suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  1298. };
  1299. timestamp: {
  1300. /**
  1301. * Set the current time.
  1302. *
  1303. * This call should be invoked exactly once per block. It will panic at the finalization
  1304. * phase, if this call hasn't been invoked by that time.
  1305. *
  1306. * The timestamp should be greater than the previous one by the amount specified by
  1307. * `MinimumPeriod`.
  1308. *
  1309. * The dispatch origin for this call must be `Inherent`.
  1310. *
  1311. * # <weight>
  1312. * - `O(T)` where `T` complexity of `on_timestamp_set`
  1313. * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
  1314. * - 1 event handler `on_timestamp_set` `O(T)`.
  1315. * - Benchmark: 7.678 (min squares analysis)
  1316. * - NOTE: This benchmark was done for a runtime with insignificant `on_timestamp_set` handlers.
  1317. * New benchmarking is needed when adding new handlers.
  1318. * # </weight>
  1319. **/
  1320. set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1321. };
  1322. utility: {
  1323. /**
  1324. * Send a call through an indexed pseudonym of the sender.
  1325. *
  1326. * Filter from origin are passed along. The call will be dispatched with an origin which
  1327. * use the same filter as the origin of this call.
  1328. *
  1329. * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
  1330. * because you expect `proxy` to have been used prior in the call stack and you do not want
  1331. * the call restrictions to apply to any sub-accounts), then use `as_sub` instead.
  1332. *
  1333. * The dispatch origin for this call must be _Signed_.
  1334. *
  1335. * # <weight>
  1336. * - Base weight: 2.861 µs
  1337. * - Plus the weight of the `call`
  1338. * # </weight>
  1339. **/
  1340. asLimitedSub: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1341. /**
  1342. * Send a call through an indexed pseudonym of the sender.
  1343. *
  1344. * NOTE: If you need to ensure that any account-based filtering is honored (i.e. because
  1345. * you expect `proxy` to have been used prior in the call stack and you want it to apply to
  1346. * any sub-accounts), then use `as_limited_sub` instead.
  1347. *
  1348. * The dispatch origin for this call must be _Signed_.
  1349. *
  1350. * # <weight>
  1351. * - Base weight: 2.861 µs
  1352. * - Plus the weight of the `call`
  1353. * # </weight>
  1354. **/
  1355. asSub: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1356. /**
  1357. * Send a batch of dispatch calls.
  1358. *
  1359. * May be called from any origin.
  1360. *
  1361. * - `calls`: The calls to be dispatched from the same origin.
  1362. *
  1363. * If origin is root then call are dispatch without checking origin filter. (This includes
  1364. * bypassing `frame_system::Trait::BaseCallFilter`).
  1365. *
  1366. * # <weight>
  1367. * - Base weight: 14.39 + .987 * c µs
  1368. * - Plus the sum of the weights of the `calls`.
  1369. * - Plus one additional event. (repeat read/write)
  1370. * # </weight>
  1371. *
  1372. * This will return `Ok` in all circumstances. To determine the success of the batch, an
  1373. * event is deposited. If a call failed and the batch was interrupted, then the
  1374. * `BatchInterrupted` event is deposited, along with the number of successful calls made
  1375. * and the error of the failed call. If all were successful, then the `BatchCompleted`
  1376. * event is deposited.
  1377. **/
  1378. batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  1379. };
  1380. }
  1381. export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
  1382. (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
  1383. }
  1384. }