augment-api-tx.ts 100 KB

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