augment-api-tx.ts 108 KB

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