augment-api-tx.ts 100 KB

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