augment-api-tx.ts 156 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Vec, bool, u16, u32, u64, u8 } from '@polkadot/types';
  4. import type { AnyNumber } from '@polkadot/types/types';
  5. import type { ActorId, ApplicationId, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, ContentActor, ContentId, ContentParameters, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, EntryId, ExtendedPostId, ForumUserId, FundingRequestParameters, GeneralProposalParameters, InviteMembershipParameters, MemberId, MemoText, ModeratorId, ObjectOwner, OpeningId, OpeningType, OracleJudgment, ParticipantId, PersonActor, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PollInput, PostId, PostReactionId, PrivilegedActor, ProposalDetailsOf, ProposalId, ReplyId, ReplyToDelete, SeriesId, SeriesParameters, StakePolicy, StorageProviderId, ThreadId, ThreadMode, 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. blog: {
  120. /**
  121. * Blog owner can create posts, related to a given blog, if related blog is unlocked
  122. *
  123. * <weight>
  124. *
  125. * ## Weight
  126. * `O (T + B)` where:
  127. * - `T` is the length of the title
  128. * - `B` is the length of the body
  129. * - DB:
  130. * - O(1) doesn't depend on the state or parameters
  131. * # </weight>
  132. **/
  133. createPost: AugmentedSubmittable<(title: Bytes | string | Uint8Array, body: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes]>;
  134. /**
  135. * Create either root post reply or direct reply to reply
  136. * (Only accessible, if related blog and post are unlocked)
  137. * <weight>
  138. *
  139. * ## Weight
  140. * `O (T)` where:
  141. * - `T` is the length of the `text`
  142. * - DB:
  143. * - O(1) doesn't depend on the state or parameters
  144. * # </weight>
  145. **/
  146. createReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: Option<ReplyId> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ParticipantId, PostId, Option<ReplyId>, Bytes, bool]>;
  147. /**
  148. * Remove reply from storage
  149. *
  150. * <weight>
  151. *
  152. * ## Weight
  153. * `O (R)` where
  154. * - R is the number of replies to be deleted
  155. * - DB:
  156. * - O(R)
  157. * # </weight>
  158. **/
  159. deleteReplies: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, replies: Vec<ReplyToDelete> | (ReplyToDelete | { post_id?: any; reply_id?: any; hide?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ParticipantId, Vec<ReplyToDelete>]>;
  160. /**
  161. * Blog owner can edit post, related to a given blog (if unlocked)
  162. * with a new title and/or body
  163. * <weight>
  164. *
  165. * ## Weight
  166. * `O (T + B)` where:
  167. * - `T` is the length of the `new_title`
  168. * - `B` is the length of the `new_body`
  169. * - DB:
  170. * - O(1) doesn't depend on the state or parameters
  171. * # </weight>
  172. **/
  173. editPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newTitle: Option<Bytes> | null | object | string | Uint8Array, newBody: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Option<Bytes>, Option<Bytes>]>;
  174. /**
  175. * Reply owner can edit reply with a new text
  176. * (Only accessible, if related blog and post are unlocked)
  177. *
  178. * <weight>
  179. *
  180. * ## Weight
  181. * `O (T)` where:
  182. * - `T` is the length of the `new_text`
  183. * - DB:
  184. * - O(1) doesn't depend on the state or parameters
  185. * # </weight>
  186. **/
  187. editReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: ReplyId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ParticipantId, PostId, ReplyId, Bytes]>;
  188. /**
  189. * Blog owner can lock posts, related to a given blog,
  190. * making post immutable to any actions (replies creation, post editing, etc.)
  191. *
  192. * <weight>
  193. *
  194. * ## Weight
  195. * `O (1)` doesn't depends on the state or parameters
  196. * - DB:
  197. * - O(1) doesn't depend on the state or parameters
  198. * # </weight>
  199. **/
  200. lockPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId]>;
  201. /**
  202. * Blog owner can unlock posts, related to a given blog,
  203. * making post accesible to previously forbidden actions
  204. *
  205. * <weight>
  206. *
  207. * ## Weight
  208. * `O (1)` doesn't depends on the state or parameters
  209. * - DB:
  210. * - O(1) doesn't depend on the state or parameters
  211. * # </weight>
  212. **/
  213. unlockPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId]>;
  214. };
  215. bounty: {
  216. /**
  217. * Announce work entry for a successful bounty.
  218. * # <weight>
  219. *
  220. * ## weight
  221. * `O (1)`
  222. * - db:
  223. * - `O(1)` doesn't depend on the state or parameters
  224. * # </weight>
  225. **/
  226. announceWorkEntry: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, AccountId]>;
  227. /**
  228. * Cancels a bounty.
  229. * It returns a cherry to creator and removes bounty.
  230. * # <weight>
  231. *
  232. * ## weight
  233. * `O (1)`
  234. * - db:
  235. * - `O(1)` doesn't depend on the state or parameters
  236. * # </weight>
  237. **/
  238. cancelBounty: AugmentedSubmittable<(creator: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId]>;
  239. /**
  240. * Creates a bounty. Metadata stored in the transaction log but discarded after that.
  241. * <weight>
  242. *
  243. * ## Weight
  244. * `O (W)` where:
  245. * - `W` is the _metadata length.
  246. * - `M` is closed contract member list length.
  247. * - DB:
  248. * - O(M) (O(1) on open contract)
  249. * # </weight>
  250. **/
  251. createBounty: AugmentedSubmittable<(params: BountyCreationParameters | { oracle?: any; contract_type?: any; creator?: any; cherry?: any; entrant_stake?: any; funding_type?: any; work_period?: any; judging_period?: any } | string | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyCreationParameters, Bytes]>;
  252. /**
  253. * Provides bounty funding.
  254. * # <weight>
  255. *
  256. * ## weight
  257. * `O (1)`
  258. * - db:
  259. * - `O(1)` doesn't depend on the state or parameters
  260. * # </weight>
  261. **/
  262. fundBounty: AugmentedSubmittable<(funder: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId, BalanceOf]>;
  263. /**
  264. * Submits an oracle judgment for a bounty.
  265. * # <weight>
  266. *
  267. * ## weight
  268. * `O (N)`
  269. * - `N` is the work_data length,
  270. * - db:
  271. * - `O(N)`
  272. * # </weight>
  273. **/
  274. submitOracleJudgment: AugmentedSubmittable<(oracle: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, judgment: OracleJudgment) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId, OracleJudgment]>;
  275. /**
  276. * Submit work for a bounty.
  277. * # <weight>
  278. *
  279. * ## weight
  280. * `O (N)`
  281. * - `N` is the work_data length,
  282. * - db:
  283. * - `O(1)` doesn't depend on the state or parameters
  284. * # </weight>
  285. **/
  286. submitWork: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array, workData: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, EntryId, Bytes]>;
  287. /**
  288. * Vetoes a bounty.
  289. * It returns a cherry to creator and removes bounty.
  290. * # <weight>
  291. *
  292. * ## weight
  293. * `O (1)`
  294. * - db:
  295. * - `O(1)` doesn't depend on the state or parameters
  296. * # </weight>
  297. **/
  298. vetoBounty: AugmentedSubmittable<(bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyId]>;
  299. /**
  300. * Withdraw bounty funding by a member or a council.
  301. * # <weight>
  302. *
  303. * ## weight
  304. * `O (1)`
  305. * - db:
  306. * - `O(1)` doesn't depend on the state or parameters
  307. * # </weight>
  308. **/
  309. withdrawFunding: AugmentedSubmittable<(funder: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId]>;
  310. /**
  311. * Withdraw work entrant funds.
  312. * Both legitimate participants and winners get their stake unlocked. Winners also get a
  313. * bounty reward.
  314. * # <weight>
  315. *
  316. * ## weight
  317. * `O (1)`
  318. * - db:
  319. * - `O(1)` doesn't depend on the state or parameters
  320. * # </weight>
  321. **/
  322. withdrawWorkEntrantFunds: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, EntryId]>;
  323. /**
  324. * Withdraw work entry for a bounty. Existing stake could be partially slashed.
  325. * # <weight>
  326. *
  327. * ## weight
  328. * `O (1)`
  329. * - db:
  330. * - `O(1)` doesn't depend on the state or parameters
  331. * # </weight>
  332. **/
  333. withdrawWorkEntry: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, EntryId]>;
  334. };
  335. constitution: {
  336. /**
  337. * Sets the current constitution hash. Requires root origin.
  338. * # <weight>
  339. * - Complexity: `O(C)` where C is the length of the constitution text.
  340. * - Db reads: 0
  341. * - Db writes: 1 (constant value)
  342. * # </weight>
  343. **/
  344. amendConstitution: AugmentedSubmittable<(constitutionText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  345. };
  346. content: {
  347. acceptChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequestId]>;
  348. /**
  349. * Add curator to curator group under given `curator_group_id`
  350. **/
  351. addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
  352. 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]>;
  353. cancelChannelTransferRequest: AugmentedSubmittable<(requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ChannelOwnershipTransferRequestId]>;
  354. 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]>;
  355. createChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryCreationParameters]>;
  356. /**
  357. * Add new curator group to runtime storage
  358. **/
  359. createCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  360. createPerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, params: PersonCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonCreationParameters]>;
  361. 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]>;
  362. 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]>;
  363. 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]>;
  364. createVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: VideoCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryCreationParameters]>;
  365. deleteChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId]>;
  366. deletePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId]>;
  367. 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]>;
  368. deleteSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, series: SeriesId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, SeriesId]>;
  369. deleteVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId]>;
  370. deleteVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId]>;
  371. /**
  372. * Remove assets of a channel from storage
  373. **/
  374. 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>]>;
  375. /**
  376. * Remove curator from a given curator group
  377. **/
  378. removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
  379. removePersonFromVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId]>;
  380. 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]>;
  381. /**
  382. * Set `is_active` status for curator group under given `curator_group_id`
  383. **/
  384. setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, bool]>;
  385. setFeaturedVideos: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, list: Vec<VideoId> | (VideoId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ContentActor, Vec<VideoId>]>;
  386. 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]>;
  387. 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]>;
  388. 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]>;
  389. 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]>;
  390. 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]>;
  391. 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]>;
  392. 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]>;
  393. 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]>;
  394. 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]>;
  395. };
  396. contentDirectoryWorkingGroup: {
  397. /**
  398. * Add a job opening for a regular worker/lead role.
  399. * Require signed leader origin or the root (to add opening for the leader position).
  400. *
  401. * # <weight>
  402. *
  403. * ## Weight
  404. * `O (D)` where:
  405. * - `D` is the length of `description`
  406. * - DB:
  407. * - O(1) doesn't depend on the state or parameters
  408. * # </weight>
  409. **/
  410. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
  411. /**
  412. * Apply on a worker opening.
  413. *
  414. * # <weight>
  415. *
  416. * ## Weight
  417. * `O (D)` where:
  418. * - `D` is the length of `p.description`
  419. * - DB:
  420. * - O(1) doesn't depend on the state or parameters
  421. * # </weight>
  422. **/
  423. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplyOnOpeningParameters]>;
  424. /**
  425. * Cancel an opening for the regular worker/lead position.
  426. * Require signed leader origin or the root (to cancel opening for the leader position).
  427. *
  428. * # <weight>
  429. *
  430. * ## Weight
  431. * `O (1)`
  432. * - DB:
  433. * - O(1) doesn't depend on the state or parameters
  434. * # </weight>
  435. **/
  436. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  437. /**
  438. * Decreases the regular worker/lead stake and returns the remainder to the
  439. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  440. * Accepts the stake amount to decrease.
  441. * Requires signed leader origin or the root (to decrease the leader stake).
  442. *
  443. * # <weight>
  444. *
  445. * ## Weight
  446. * `O (1)`
  447. * - DB:
  448. * - O(1) doesn't depend on the state or parameters
  449. * # </weight>
  450. **/
  451. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  452. /**
  453. * Fill opening for the regular/lead position.
  454. * Require signed leader origin or the root (to fill opening for the leader position).
  455. * # <weight>
  456. *
  457. * ## Weight
  458. * `O (A)` where:
  459. * - `A` is the length of `successful_application_ids`
  460. * - DB:
  461. * - O(A)
  462. * # </weight>
  463. **/
  464. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
  465. /**
  466. * Increases the regular worker/lead stake, demands a worker origin.
  467. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  468. *
  469. * # <weight>
  470. *
  471. * ## Weight
  472. * `O (1)`
  473. * - DB:
  474. * - O(1) doesn't depend on the state or parameters
  475. * # </weight>
  476. **/
  477. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  478. /**
  479. * Leave the role by the active worker.
  480. * # <weight>
  481. *
  482. * ## Weight
  483. * `O (1)`
  484. * - DB:
  485. * - O(1) doesn't depend on the state or parameters
  486. * # </weight>
  487. **/
  488. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
  489. /**
  490. * Sets a new budget for the working group.
  491. * Requires root origin.
  492. *
  493. * # <weight>
  494. *
  495. * ## Weight
  496. * `O (1)`
  497. * - DB:
  498. * - O(1) doesn't depend on the state or parameters
  499. * # </weight>
  500. **/
  501. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  502. /**
  503. * Sets a new status text for the working group.
  504. * Requires root origin.
  505. *
  506. * # <weight>
  507. *
  508. * ## Weight
  509. * `O (S)` where:
  510. * - `S` is the length of the contents of `status_text` when it is not none
  511. *
  512. * - DB:
  513. * - O(1) doesn't depend on the state or parameters
  514. * # </weight>
  515. **/
  516. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
  517. /**
  518. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  519. * If slashing balance greater than the existing stake - stake is slashed to zero.
  520. * Requires signed leader origin or the root (to slash the leader stake).
  521. * # <weight>
  522. *
  523. * ## Weight
  524. * `O (P)` where:
  525. * - `P` is the length of `penality.slashing_text`
  526. * - DB:
  527. * - O(1) doesn't depend on the state or parameters
  528. * # </weight>
  529. **/
  530. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
  531. /**
  532. * Transfers specified amount to any account.
  533. * Requires leader origin.
  534. *
  535. * # <weight>
  536. *
  537. * ## Weight
  538. * `O (1)`
  539. * - DB:
  540. * - O(1) doesn't depend on the state or parameters
  541. * # </weight>
  542. **/
  543. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
  544. /**
  545. * Terminate the active worker by the lead.
  546. * Requires signed leader origin or the root (to terminate the leader role).
  547. * # <weight>
  548. *
  549. * ## Weight
  550. * `O (P)` where:
  551. * - `P` is the length of `penalty.slashing_text`
  552. * - DB:
  553. * - O(1) doesn't depend on the state or parameters
  554. * # </weight>
  555. **/
  556. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
  557. /**
  558. * Update the reward account associated with a set reward relationship for the active worker.
  559. *
  560. * # <weight>
  561. *
  562. * ## Weight
  563. * `O (1)`
  564. * - DB:
  565. * - O(1) doesn't depend on the state or parameters
  566. * # </weight>
  567. **/
  568. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  569. /**
  570. * Update the reward per block for the active worker.
  571. * Require signed leader origin or the root (to update leader's reward amount).
  572. *
  573. * # <weight>
  574. *
  575. * ## Weight
  576. * `O (1)`
  577. * - DB:
  578. * - O(1) doesn't depend on the state or parameters
  579. * # </weight>
  580. **/
  581. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
  582. /**
  583. * Update the associated role account of the active regular worker/lead.
  584. *
  585. * # <weight>
  586. *
  587. * ## Weight
  588. * `O (1)`
  589. * - DB:
  590. * - O(1) doesn't depend on the state or parameters
  591. * # </weight>
  592. **/
  593. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  594. /**
  595. * Update the associated role storage.
  596. **/
  597. updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  598. /**
  599. * Withdraw the worker application. Can be done by the worker only.
  600. *
  601. * # <weight>
  602. *
  603. * ## Weight
  604. * `O (1)`
  605. * - DB:
  606. * - O(1) doesn't depend on the state or parameters
  607. * # </weight>
  608. **/
  609. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  610. };
  611. council: {
  612. /**
  613. * Subscribe candidate
  614. *
  615. * # <weight>
  616. *
  617. * ## weight
  618. * `O (1)`
  619. * - db:
  620. * - `O(1)` doesn't depend on the state or parameters
  621. * # </weight>
  622. **/
  623. announceCandidacy: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array, rewardAccountId: AccountId | string | Uint8Array, stake: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId, AccountId, Balance]>;
  624. /**
  625. * Transfers funds from council budget to account
  626. *
  627. * # <weight>
  628. *
  629. * ## weight
  630. * `O (F)` where:
  631. * `F` is the length of `funding_requests`
  632. * - db:
  633. * - `O(1)` doesn't depend on the state or parameters
  634. * # </weight>
  635. **/
  636. fundingRequest: AugmentedSubmittable<(fundingRequests: Vec<FundingRequestParameters> | (FundingRequestParameters | { account?: any; amount?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<FundingRequestParameters>]>;
  637. /**
  638. * Plan the next budget refill.
  639. *
  640. * # <weight>
  641. *
  642. * ## weight
  643. * `O (1)`
  644. * - db:
  645. * - `O(1)` doesn't depend on the state or parameters
  646. * # </weight>
  647. **/
  648. planBudgetRefill: AugmentedSubmittable<(nextRefill: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
  649. /**
  650. * Release candidacy stake that is no longer needed.
  651. *
  652. * # <weight>
  653. *
  654. * ## weight
  655. * `O (1)`
  656. * - db:
  657. * - `O(1)` doesn't depend on the state or parameters
  658. * # </weight>
  659. **/
  660. releaseCandidacyStake: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
  661. /**
  662. * Sets the budget balance.
  663. *
  664. * # <weight>
  665. *
  666. * ## weight
  667. * `O (1)`
  668. * - db:
  669. * - `O(1)` doesn't depend on the state or parameters
  670. * # </weight>
  671. **/
  672. setBudget: AugmentedSubmittable<(balance: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Balance]>;
  673. /**
  674. * Sets the budget refill amount
  675. *
  676. * # <weight>
  677. *
  678. * ## weight
  679. * `O (1)`
  680. * - db:
  681. * - `O(1)` doesn't depend on the state or parameters
  682. * # </weight>
  683. **/
  684. setBudgetIncrement: AugmentedSubmittable<(budgetIncrement: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Balance]>;
  685. /**
  686. * Set short description for the user's candidacy. Can be called anytime during user's candidacy.
  687. *
  688. * # <weight>
  689. *
  690. * ## weight
  691. * `O (N)` where:
  692. * `N` is the length of `note`
  693. * - db:
  694. * - `O(1)` doesn't depend on the state or parameters
  695. * # </weight>
  696. **/
  697. setCandidacyNote: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array, note: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
  698. /**
  699. * Sets the councilor reward per block
  700. *
  701. * # <weight>
  702. *
  703. * ## weight
  704. * `O (1)`
  705. * - db:
  706. * - `O(1)` doesn't depend on the state or parameters
  707. * # </weight>
  708. **/
  709. setCouncilorReward: AugmentedSubmittable<(councilorReward: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Balance]>;
  710. /**
  711. * Withdraw candidacy and release candidacy stake.
  712. *
  713. * # <weight>
  714. *
  715. * ## weight
  716. * `O (1)`
  717. * - db:
  718. * - `O(1)` doesn't depend on the state or parameters
  719. * # </weight>
  720. **/
  721. withdrawCandidacy: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
  722. };
  723. dataDirectory: {
  724. /**
  725. * Storage provider accepts a content. Requires signed storage provider account and its id.
  726. * The LiaisonJudgement can only be updated once from Pending to Accepted.
  727. * Subsequent calls are a no-op.
  728. **/
  729. acceptContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, ContentId]>;
  730. /**
  731. * Adds the content to the frame_system. The created DataObject
  732. * awaits liaison to accept it.
  733. **/
  734. 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>]>;
  735. /**
  736. * Remove the content from the frame_system.
  737. **/
  738. 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>]>;
  739. /**
  740. * Set the default owner voucher
  741. **/
  742. setDefaultVoucher: AugmentedSubmittable<(sizeLimit: u64 | AnyNumber | Uint8Array, objectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
  743. /**
  744. * Sets global voucher objects limit. Requires root privileges.
  745. * New limit cannot be less that used value.
  746. **/
  747. setGlobalVoucherObjectsLimit: AugmentedSubmittable<(newObjectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  748. /**
  749. * Sets global voucher size limit. Requires root privileges.
  750. * New limit cannot be less that used value.
  751. **/
  752. setGlobalVoucherSizeLimit: AugmentedSubmittable<(newSizeLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  753. /**
  754. * Sets VoucherObjectsLimitUpperBound. Requires root privileges.
  755. **/
  756. setVoucherObjectsLimitUpperBound: AugmentedSubmittable<(newUpperBound: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  757. /**
  758. * Sets VoucherSizeLimitUpperBound. Requires root privileges.
  759. **/
  760. setVoucherSizeLimitUpperBound: AugmentedSubmittable<(newUpperBound: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  761. /**
  762. * Locks / unlocks content uploading
  763. **/
  764. updateContentUploadingStatus: AugmentedSubmittable<(isBlocked: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
  765. /**
  766. * Updates storage object owner voucher objects limit. Requires leader privileges.
  767. * New limit cannot be less that used value.
  768. **/
  769. updateStorageObjectOwnerVoucherObjectsLimit: AugmentedSubmittable<(objectOwner: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array, newVoucherObjectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ObjectOwner, u64]>;
  770. /**
  771. * Updates storage object owner voucher size limit. Requires leader privileges.
  772. * New limit cannot be less that used value.
  773. **/
  774. updateStorageObjectOwnerVoucherSizeLimit: AugmentedSubmittable<(objectOwner: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array, newVoucherSizeLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ObjectOwner, u64]>;
  775. };
  776. dataObjectStorageRegistry: {
  777. /**
  778. * Add storage provider-to-content relationship. The storage provider should be registered
  779. * in the storage working group.
  780. **/
  781. addRelationship: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, cid: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, ContentId]>;
  782. /**
  783. * Activates storage provider-to-content relationship. The storage provider should be registered
  784. * in the storage working group. A storage provider may flip their own ready state, but nobody else.
  785. **/
  786. setRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, DataObjectStorageRelationshipId]>;
  787. /**
  788. * Deactivates storage provider-to-content relationship. The storage provider should be registered
  789. * in the storage working group. A storage provider may flip their own ready state, but nobody else.
  790. **/
  791. unsetRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, DataObjectStorageRelationshipId]>;
  792. };
  793. dataObjectTypeRegistry: {
  794. /**
  795. * Activates existing data object type. Requires leader privileges.
  796. **/
  797. activateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectTypeId]>;
  798. /**
  799. * Deactivates existing data object type. Requires leader privileges.
  800. **/
  801. deactivateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectTypeId]>;
  802. /**
  803. * Registers the new data object type. Requires leader privileges.
  804. **/
  805. registerDataObjectType: AugmentedSubmittable<(dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectType]>;
  806. /**
  807. * Updates existing data object type. Requires leader privileges.
  808. **/
  809. updateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array, dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectTypeId, DataObjectType]>;
  810. };
  811. finalityTracker: {
  812. /**
  813. * Hint that the author of this block thinks the best finalized
  814. * block is the given number.
  815. **/
  816. finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BlockNumber>]>;
  817. };
  818. forum: {
  819. /**
  820. * Add post
  821. *
  822. * <weight>
  823. *
  824. * ## Weight
  825. * `O (W + V)` where:
  826. * - `W` is the category depth,
  827. * - `V` is the length of the text
  828. * - DB:
  829. * - O(W)
  830. * # </weight>
  831. **/
  832. addPost: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, Bytes, bool]>;
  833. /**
  834. * Add a new category.
  835. *
  836. * <weight>
  837. *
  838. * ## Weight
  839. * `O (W + V + X)` where:
  840. * - `W` is the category depth
  841. * - `V` is the length of the category title.
  842. * - `X` is the length of the category description.
  843. * - DB:
  844. * - O(W)
  845. * # </weight>
  846. **/
  847. createCategory: AugmentedSubmittable<(parentCategoryId: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<CategoryId>, Bytes, Bytes]>;
  848. /**
  849. * Create new thread in category with poll
  850. *
  851. * <weight>
  852. *
  853. * ## Weight
  854. * `O (W + V + X + Y)` where:
  855. * - `W` is the category depth
  856. * - `V` is the length of the thread title.
  857. * - `X` is the length of the thread text.
  858. * - `Y` is the number of poll alternatives.
  859. * - DB:
  860. * - O(W)
  861. * # </weight>
  862. **/
  863. createThread: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array, pollInput: Option<PollInput> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, Bytes, Bytes, Option<PollInput>]>;
  864. /**
  865. * Delete category
  866. *
  867. * <weight>
  868. *
  869. * ## Weight
  870. * `O (W)` where:
  871. * - `W` is the category depth
  872. * - DB:
  873. * - O(W)
  874. * # </weight>
  875. **/
  876. deleteCategory: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId]>;
  877. /**
  878. * Delete post from storage.
  879. * You need to provide a vector of posts to delete in the form
  880. * (T::CategoryId, T::ThreadId, T::PostId, bool)
  881. * where the last bool is whether you want to hide it apart from deleting it
  882. *
  883. * ## Weight
  884. * `O (W + V + P)` where:
  885. * - `W` is the category depth,
  886. * - `V` is the length of the rationale
  887. * - `P` is the number of posts to delete
  888. * - DB:
  889. * - O(W + P)
  890. * # </weight>
  891. **/
  892. deletePosts: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, posts: BTreeMap<ExtendedPostId, bool>, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, BTreeMap<ExtendedPostId, bool>, Bytes]>;
  893. /**
  894. * Delete thread
  895. *
  896. * <weight>
  897. *
  898. * ## Weight
  899. * `O (W)` where:
  900. * - `W` is the category depth
  901. * - DB:
  902. * - O(W)
  903. * # </weight>
  904. **/
  905. deleteThread: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, hide: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, bool]>;
  906. /**
  907. * Edit post text
  908. *
  909. * <weight>
  910. *
  911. * ## Weight
  912. * `O (W + V)` where:
  913. * - `W` is the category depth,
  914. * - `V` is the length of the new text
  915. * - DB:
  916. * - O(W)
  917. * # </weight>
  918. **/
  919. editPostText: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, PostId, Bytes]>;
  920. /**
  921. * Edit thread title
  922. *
  923. * <weight>
  924. *
  925. * ## Weight
  926. * `O (W + V)` where:
  927. * - `W` is the category depth
  928. * - `V` is the length of the thread title.
  929. * - DB:
  930. * - O(W)
  931. * # </weight>
  932. **/
  933. editThreadMetadata: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newMetadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, Bytes]>;
  934. /**
  935. * Moderate post
  936. *
  937. * <weight>
  938. *
  939. * ## Weight
  940. * `O (W + V)` where:
  941. * - `W` is the category depth,
  942. * - `V` is the length of the rationale
  943. * - DB:
  944. * - O(W)
  945. * # </weight>
  946. **/
  947. moderatePost: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, ThreadId, PostId, Bytes]>;
  948. /**
  949. * Moderate thread
  950. *
  951. * <weight>
  952. *
  953. * ## Weight
  954. * `O (W + V + X)` where:
  955. * - `W` is the category depth,
  956. * - `V` is the number of thread posts,
  957. * - `X` is the length of the rationale
  958. * - DB:
  959. * - O(W + V)
  960. * # </weight>
  961. **/
  962. moderateThread: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, ThreadId, Bytes]>;
  963. /**
  964. * Move thread to another category
  965. *
  966. * <weight>
  967. *
  968. * ## Weight
  969. * `O (W)` where:
  970. * - `W` is the category depth
  971. * - DB:
  972. * - O(W)
  973. * # </weight>
  974. **/
  975. moveThreadToCategory: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newCategoryId: CategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, ThreadId, CategoryId]>;
  976. /**
  977. * Like or unlike a post.
  978. *
  979. * <weight>
  980. *
  981. * ## Weight
  982. * `O (W)` where:
  983. * - `W` is the category depth,
  984. * - DB:
  985. * - O(W)
  986. * # </weight>
  987. **/
  988. reactPost: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, react: PostReactionId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, PostId, PostReactionId]>;
  989. /**
  990. * Set stickied threads for category
  991. *
  992. * <weight>
  993. *
  994. * ## Weight
  995. * `O (W + V)` where:
  996. * - `W` is the category depth,
  997. * - `V` is the length of the stickied_ids
  998. * - DB:
  999. * - O(W + V)
  1000. * # </weight>
  1001. **/
  1002. setStickiedThreads: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, stickiedIds: Vec<ThreadId> | (ThreadId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, Vec<ThreadId>]>;
  1003. /**
  1004. * Update archival status
  1005. *
  1006. * <weight>
  1007. *
  1008. * ## Weight
  1009. * `O (W)` where:
  1010. * - `W` is the category depth
  1011. * - DB:
  1012. * - O(W)
  1013. * # </weight>
  1014. **/
  1015. updateCategoryArchivalStatus: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, bool]>;
  1016. /**
  1017. * Update category description
  1018. *
  1019. * <weight>
  1020. *
  1021. * ## Weight
  1022. * `O (W)` where:
  1023. * - `W` is the category depth
  1024. * - `V` is the length of the category description.
  1025. * - DB:
  1026. * - O(W)
  1027. * # </weight>
  1028. **/
  1029. updateCategoryDescription: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, Bytes]>;
  1030. /**
  1031. * Enable a moderator can moderate a category and its sub categories.
  1032. *
  1033. * <weight>
  1034. *
  1035. * ## Weight
  1036. * `O (1)`
  1037. * - DB:
  1038. * - O(1) doesn't depend on the state or parameters
  1039. * # </weight>
  1040. **/
  1041. updateCategoryMembershipOfModerator: AugmentedSubmittable<(moderatorId: ModeratorId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newValue: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ModeratorId, CategoryId, bool]>;
  1042. /**
  1043. * Update category title
  1044. *
  1045. * <weight>
  1046. *
  1047. * ## Weight
  1048. * `O (W + V)` where:
  1049. * - `W` is the category depth
  1050. * - `V` is the length of the category title.
  1051. * - DB:
  1052. * - O(W)
  1053. * # </weight>
  1054. **/
  1055. updateCategoryTitle: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, Bytes]>;
  1056. /**
  1057. * Submit a poll
  1058. *
  1059. * <weight>
  1060. *
  1061. * ## Weight
  1062. * `O (W + V)` where:
  1063. * - `W` is the category depth,
  1064. * - `V` is the number of poll alternatives.
  1065. * - DB:
  1066. * - O(W)
  1067. * # </weight>
  1068. **/
  1069. voteOnPoll: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, u32]>;
  1070. };
  1071. forumWorkingGroup: {
  1072. /**
  1073. * Add a job opening for a regular worker/lead role.
  1074. * Require signed leader origin or the root (to add opening for the leader position).
  1075. *
  1076. * # <weight>
  1077. *
  1078. * ## Weight
  1079. * `O (D)` where:
  1080. * - `D` is the length of `description`
  1081. * - DB:
  1082. * - O(1) doesn't depend on the state or parameters
  1083. * # </weight>
  1084. **/
  1085. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
  1086. /**
  1087. * Apply on a worker opening.
  1088. *
  1089. * # <weight>
  1090. *
  1091. * ## Weight
  1092. * `O (D)` where:
  1093. * - `D` is the length of `p.description`
  1094. * - DB:
  1095. * - O(1) doesn't depend on the state or parameters
  1096. * # </weight>
  1097. **/
  1098. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplyOnOpeningParameters]>;
  1099. /**
  1100. * Cancel an opening for the regular worker/lead position.
  1101. * Require signed leader origin or the root (to cancel opening for the leader position).
  1102. *
  1103. * # <weight>
  1104. *
  1105. * ## Weight
  1106. * `O (1)`
  1107. * - DB:
  1108. * - O(1) doesn't depend on the state or parameters
  1109. * # </weight>
  1110. **/
  1111. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  1112. /**
  1113. * Decreases the regular worker/lead stake and returns the remainder to the
  1114. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  1115. * Accepts the stake amount to decrease.
  1116. * Requires signed leader origin or the root (to decrease the leader stake).
  1117. *
  1118. * # <weight>
  1119. *
  1120. * ## Weight
  1121. * `O (1)`
  1122. * - DB:
  1123. * - O(1) doesn't depend on the state or parameters
  1124. * # </weight>
  1125. **/
  1126. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1127. /**
  1128. * Fill opening for the regular/lead position.
  1129. * Require signed leader origin or the root (to fill opening for the leader position).
  1130. * # <weight>
  1131. *
  1132. * ## Weight
  1133. * `O (A)` where:
  1134. * - `A` is the length of `successful_application_ids`
  1135. * - DB:
  1136. * - O(A)
  1137. * # </weight>
  1138. **/
  1139. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
  1140. /**
  1141. * Increases the regular worker/lead stake, demands a worker origin.
  1142. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  1143. *
  1144. * # <weight>
  1145. *
  1146. * ## Weight
  1147. * `O (1)`
  1148. * - DB:
  1149. * - O(1) doesn't depend on the state or parameters
  1150. * # </weight>
  1151. **/
  1152. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1153. /**
  1154. * Leave the role by the active worker.
  1155. * # <weight>
  1156. *
  1157. * ## Weight
  1158. * `O (1)`
  1159. * - DB:
  1160. * - O(1) doesn't depend on the state or parameters
  1161. * # </weight>
  1162. **/
  1163. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
  1164. /**
  1165. * Sets a new budget for the working group.
  1166. * Requires root origin.
  1167. *
  1168. * # <weight>
  1169. *
  1170. * ## Weight
  1171. * `O (1)`
  1172. * - DB:
  1173. * - O(1) doesn't depend on the state or parameters
  1174. * # </weight>
  1175. **/
  1176. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1177. /**
  1178. * Sets a new status text for the working group.
  1179. * Requires root origin.
  1180. *
  1181. * # <weight>
  1182. *
  1183. * ## Weight
  1184. * `O (S)` where:
  1185. * - `S` is the length of the contents of `status_text` when it is not none
  1186. *
  1187. * - DB:
  1188. * - O(1) doesn't depend on the state or parameters
  1189. * # </weight>
  1190. **/
  1191. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
  1192. /**
  1193. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  1194. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1195. * Requires signed leader origin or the root (to slash the leader stake).
  1196. * # <weight>
  1197. *
  1198. * ## Weight
  1199. * `O (P)` where:
  1200. * - `P` is the length of `penality.slashing_text`
  1201. * - DB:
  1202. * - O(1) doesn't depend on the state or parameters
  1203. * # </weight>
  1204. **/
  1205. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
  1206. /**
  1207. * Transfers specified amount to any account.
  1208. * Requires leader origin.
  1209. *
  1210. * # <weight>
  1211. *
  1212. * ## Weight
  1213. * `O (1)`
  1214. * - DB:
  1215. * - O(1) doesn't depend on the state or parameters
  1216. * # </weight>
  1217. **/
  1218. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
  1219. /**
  1220. * Terminate the active worker by the lead.
  1221. * Requires signed leader origin or the root (to terminate the leader role).
  1222. * # <weight>
  1223. *
  1224. * ## Weight
  1225. * `O (P)` where:
  1226. * - `P` is the length of `penalty.slashing_text`
  1227. * - DB:
  1228. * - O(1) doesn't depend on the state or parameters
  1229. * # </weight>
  1230. **/
  1231. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
  1232. /**
  1233. * Update the reward account associated with a set reward relationship for the active worker.
  1234. *
  1235. * # <weight>
  1236. *
  1237. * ## Weight
  1238. * `O (1)`
  1239. * - DB:
  1240. * - O(1) doesn't depend on the state or parameters
  1241. * # </weight>
  1242. **/
  1243. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1244. /**
  1245. * Update the reward per block for the active worker.
  1246. * Require signed leader origin or the root (to update leader's reward amount).
  1247. *
  1248. * # <weight>
  1249. *
  1250. * ## Weight
  1251. * `O (1)`
  1252. * - DB:
  1253. * - O(1) doesn't depend on the state or parameters
  1254. * # </weight>
  1255. **/
  1256. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
  1257. /**
  1258. * Update the associated role account of the active regular worker/lead.
  1259. *
  1260. * # <weight>
  1261. *
  1262. * ## Weight
  1263. * `O (1)`
  1264. * - DB:
  1265. * - O(1) doesn't depend on the state or parameters
  1266. * # </weight>
  1267. **/
  1268. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1269. /**
  1270. * Update the associated role storage.
  1271. **/
  1272. updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  1273. /**
  1274. * Withdraw the worker application. Can be done by the worker only.
  1275. *
  1276. * # <weight>
  1277. *
  1278. * ## Weight
  1279. * `O (1)`
  1280. * - DB:
  1281. * - O(1) doesn't depend on the state or parameters
  1282. * # </weight>
  1283. **/
  1284. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  1285. };
  1286. gatewayWorkingGroup: {
  1287. /**
  1288. * Add a job opening for a regular worker/lead role.
  1289. * Require signed leader origin or the root (to add opening for the leader position).
  1290. *
  1291. * # <weight>
  1292. *
  1293. * ## Weight
  1294. * `O (D)` where:
  1295. * - `D` is the length of `description`
  1296. * - DB:
  1297. * - O(1) doesn't depend on the state or parameters
  1298. * # </weight>
  1299. **/
  1300. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
  1301. /**
  1302. * Apply on a worker opening.
  1303. *
  1304. * # <weight>
  1305. *
  1306. * ## Weight
  1307. * `O (D)` where:
  1308. * - `D` is the length of `p.description`
  1309. * - DB:
  1310. * - O(1) doesn't depend on the state or parameters
  1311. * # </weight>
  1312. **/
  1313. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplyOnOpeningParameters]>;
  1314. /**
  1315. * Cancel an opening for the regular worker/lead position.
  1316. * Require signed leader origin or the root (to cancel opening for the leader position).
  1317. *
  1318. * # <weight>
  1319. *
  1320. * ## Weight
  1321. * `O (1)`
  1322. * - DB:
  1323. * - O(1) doesn't depend on the state or parameters
  1324. * # </weight>
  1325. **/
  1326. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  1327. /**
  1328. * Decreases the regular worker/lead stake and returns the remainder to the
  1329. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  1330. * Accepts the stake amount to decrease.
  1331. * Requires signed leader origin or the root (to decrease the leader stake).
  1332. *
  1333. * # <weight>
  1334. *
  1335. * ## Weight
  1336. * `O (1)`
  1337. * - DB:
  1338. * - O(1) doesn't depend on the state or parameters
  1339. * # </weight>
  1340. **/
  1341. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1342. /**
  1343. * Fill opening for the regular/lead position.
  1344. * Require signed leader origin or the root (to fill opening for the leader position).
  1345. * # <weight>
  1346. *
  1347. * ## Weight
  1348. * `O (A)` where:
  1349. * - `A` is the length of `successful_application_ids`
  1350. * - DB:
  1351. * - O(A)
  1352. * # </weight>
  1353. **/
  1354. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
  1355. /**
  1356. * Increases the regular worker/lead stake, demands a worker origin.
  1357. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  1358. *
  1359. * # <weight>
  1360. *
  1361. * ## Weight
  1362. * `O (1)`
  1363. * - DB:
  1364. * - O(1) doesn't depend on the state or parameters
  1365. * # </weight>
  1366. **/
  1367. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1368. /**
  1369. * Leave the role by the active worker.
  1370. * # <weight>
  1371. *
  1372. * ## Weight
  1373. * `O (1)`
  1374. * - DB:
  1375. * - O(1) doesn't depend on the state or parameters
  1376. * # </weight>
  1377. **/
  1378. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
  1379. /**
  1380. * Sets a new budget for the working group.
  1381. * Requires root origin.
  1382. *
  1383. * # <weight>
  1384. *
  1385. * ## Weight
  1386. * `O (1)`
  1387. * - DB:
  1388. * - O(1) doesn't depend on the state or parameters
  1389. * # </weight>
  1390. **/
  1391. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1392. /**
  1393. * Sets a new status text for the working group.
  1394. * Requires root origin.
  1395. *
  1396. * # <weight>
  1397. *
  1398. * ## Weight
  1399. * `O (S)` where:
  1400. * - `S` is the length of the contents of `status_text` when it is not none
  1401. *
  1402. * - DB:
  1403. * - O(1) doesn't depend on the state or parameters
  1404. * # </weight>
  1405. **/
  1406. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
  1407. /**
  1408. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  1409. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1410. * Requires signed leader origin or the root (to slash the leader stake).
  1411. * # <weight>
  1412. *
  1413. * ## Weight
  1414. * `O (P)` where:
  1415. * - `P` is the length of `penality.slashing_text`
  1416. * - DB:
  1417. * - O(1) doesn't depend on the state or parameters
  1418. * # </weight>
  1419. **/
  1420. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
  1421. /**
  1422. * Transfers specified amount to any account.
  1423. * Requires leader origin.
  1424. *
  1425. * # <weight>
  1426. *
  1427. * ## Weight
  1428. * `O (1)`
  1429. * - DB:
  1430. * - O(1) doesn't depend on the state or parameters
  1431. * # </weight>
  1432. **/
  1433. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
  1434. /**
  1435. * Terminate the active worker by the lead.
  1436. * Requires signed leader origin or the root (to terminate the leader role).
  1437. * # <weight>
  1438. *
  1439. * ## Weight
  1440. * `O (P)` where:
  1441. * - `P` is the length of `penalty.slashing_text`
  1442. * - DB:
  1443. * - O(1) doesn't depend on the state or parameters
  1444. * # </weight>
  1445. **/
  1446. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
  1447. /**
  1448. * Update the reward account associated with a set reward relationship for the active worker.
  1449. *
  1450. * # <weight>
  1451. *
  1452. * ## Weight
  1453. * `O (1)`
  1454. * - DB:
  1455. * - O(1) doesn't depend on the state or parameters
  1456. * # </weight>
  1457. **/
  1458. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1459. /**
  1460. * Update the reward per block for the active worker.
  1461. * Require signed leader origin or the root (to update leader's reward amount).
  1462. *
  1463. * # <weight>
  1464. *
  1465. * ## Weight
  1466. * `O (1)`
  1467. * - DB:
  1468. * - O(1) doesn't depend on the state or parameters
  1469. * # </weight>
  1470. **/
  1471. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
  1472. /**
  1473. * Update the associated role account of the active regular worker/lead.
  1474. *
  1475. * # <weight>
  1476. *
  1477. * ## Weight
  1478. * `O (1)`
  1479. * - DB:
  1480. * - O(1) doesn't depend on the state or parameters
  1481. * # </weight>
  1482. **/
  1483. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1484. /**
  1485. * Update the associated role storage.
  1486. **/
  1487. updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  1488. /**
  1489. * Withdraw the worker application. Can be done by the worker only.
  1490. *
  1491. * # <weight>
  1492. *
  1493. * ## Weight
  1494. * `O (1)`
  1495. * - DB:
  1496. * - O(1) doesn't depend on the state or parameters
  1497. * # </weight>
  1498. **/
  1499. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  1500. };
  1501. grandpa: {
  1502. /**
  1503. * Note that the current authority set of the GRANDPA finality gadget has
  1504. * stalled. This will trigger a forced authority set change at the beginning
  1505. * of the next session, to be enacted `delay` blocks after that. The delay
  1506. * should be high enough to safely assume that the block signalling the
  1507. * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
  1508. * will start the new authority set using the given finalized block as base.
  1509. * Only callable by root.
  1510. **/
  1511. noteStalled: AugmentedSubmittable<(delay: BlockNumber | AnyNumber | Uint8Array, bestFinalizedBlockNumber: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber, BlockNumber]>;
  1512. /**
  1513. * Report voter equivocation/misbehavior. This method will verify the
  1514. * equivocation proof and validate the given key ownership proof
  1515. * against the extracted offender. If both are valid, the offence
  1516. * will be reported.
  1517. **/
  1518. reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
  1519. /**
  1520. * Report voter equivocation/misbehavior. This method will verify the
  1521. * equivocation proof and validate the given key ownership proof
  1522. * against the extracted offender. If both are valid, the offence
  1523. * will be reported.
  1524. *
  1525. * This extrinsic must be called unsigned and it is expected that only
  1526. * block authors will call it (validated in `ValidateUnsigned`), as such
  1527. * if the block author is defined it will be defined as the equivocation
  1528. * reporter.
  1529. **/
  1530. reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
  1531. };
  1532. imOnline: {
  1533. /**
  1534. * # <weight>
  1535. * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len)
  1536. * and E is length of `heartbeat.network_state.external_address`
  1537. * - `O(K)`: decoding of length `K`
  1538. * - `O(E)`: decoding/encoding of length `E`
  1539. * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
  1540. * `ReceivedHeartbeats`
  1541. * - DbWrites: `ReceivedHeartbeats`
  1542. * # </weight>
  1543. **/
  1544. heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Heartbeat, Signature]>;
  1545. };
  1546. joystreamUtility: {
  1547. /**
  1548. * Burns token for caller account
  1549. * <weight>
  1550. *
  1551. * ## Weight
  1552. * `O (1)` Doesn't depend on the state or parameters
  1553. * - DB:
  1554. * - O(1) doesn't depend on the state or parameters
  1555. * # </weight>
  1556. **/
  1557. burnAccountTokens: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1558. /**
  1559. * Runtime upgrade proposal extrinsic.
  1560. * Should be used as callable object to pass to the `engine` module.
  1561. * <weight>
  1562. *
  1563. * ## Weight
  1564. * `O (C)` where:
  1565. * - `C` is the length of `wasm`
  1566. * However, we treat this as a full block as `frame_system::Module::set_code` does
  1567. * # </weight>
  1568. **/
  1569. executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  1570. /**
  1571. * Signal proposal extrinsic. Should be used as callable object to pass to the `engine` module.
  1572. *
  1573. * <weight>
  1574. *
  1575. * ## Weight
  1576. * `O (S)` where:
  1577. * - `S` is the length of the signal
  1578. * - DB:
  1579. * - O(1) doesn't depend on the state or parameters
  1580. * # </weight>
  1581. **/
  1582. executeSignalProposal: AugmentedSubmittable<(signal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  1583. /**
  1584. * Update working group budget
  1585. * <weight>
  1586. *
  1587. * ## Weight
  1588. * `O (1)` Doesn't depend on the state or parameters
  1589. * - DB:
  1590. * - O(1) doesn't depend on the state or parameters
  1591. * # </weight>
  1592. **/
  1593. updateWorkingGroupBudget: AugmentedSubmittable<(workingGroup: WorkingGroup | 'Forum' | 'Storage' | 'Content' | 'Membership' | 'Operations' | 'Gateway' | number | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, balanceKind: BalanceKind | 'Positive' | 'Negative' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkingGroup, BalanceOf, BalanceKind]>;
  1594. };
  1595. members: {
  1596. /**
  1597. * Add staking account candidate for a member.
  1598. * The membership must be confirmed before usage.
  1599. *
  1600. * <weight>
  1601. *
  1602. * ## Weight
  1603. * `O (1)`
  1604. * - DB:
  1605. * - O(1) doesn't depend on the state or parameters
  1606. * # </weight>
  1607. **/
  1608. addStakingAccountCandidate: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
  1609. /**
  1610. * Non-members can buy membership.
  1611. *
  1612. * <weight>
  1613. *
  1614. * ## Weight
  1615. * `O (W + V + X + Y)` where:
  1616. * - `W` is the member name
  1617. * - `V` is the member handle
  1618. * - `X` is the member avatar uri
  1619. * - `Y` is the member about
  1620. * - DB:
  1621. * - O(V)
  1622. * # </weight>
  1623. **/
  1624. buyMembership: AugmentedSubmittable<(params: BuyMembershipParameters | { root_account?: any; controller_account?: any; handle?: any; metadata?: any; referrer_id?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BuyMembershipParameters]>;
  1625. /**
  1626. * Confirm staking account candidate for a member.
  1627. *
  1628. * <weight>
  1629. *
  1630. * ## Weight
  1631. * `O (1)`
  1632. * - DB:
  1633. * - O(1) doesn't depend on the state or parameters
  1634. * # </weight>
  1635. **/
  1636. confirmStakingAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
  1637. /**
  1638. * Invite a new member.
  1639. *
  1640. * <weight>
  1641. *
  1642. * ## Weight
  1643. * `O (W + V + X + Y)` where:
  1644. * - `W` is the member name
  1645. * - `V` is the member handle
  1646. * - `X` is the member avatar uri
  1647. * - `Y` is the member about
  1648. * - DB:
  1649. * - O(V)
  1650. * # </weight>
  1651. **/
  1652. inviteMember: AugmentedSubmittable<(params: InviteMembershipParameters | { inviting_member_id?: any; root_account?: any; controller_account?: any; handle?: any; metadata?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [InviteMembershipParameters]>;
  1653. /**
  1654. * Remove staking account for a member.
  1655. *
  1656. * <weight>
  1657. *
  1658. * ## Weight
  1659. * `O (1)`
  1660. * - DB:
  1661. * - O(1) doesn't depend on the state or parameters
  1662. * # </weight>
  1663. **/
  1664. removeStakingAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
  1665. /**
  1666. * Updates initial invitation balance for a invited member. Requires root origin.
  1667. *
  1668. * <weight>
  1669. *
  1670. * ## Weight
  1671. * `O (1)`
  1672. * - DB:
  1673. * - O(1) doesn't depend on the state or parameters
  1674. * # </weight>
  1675. **/
  1676. setInitialInvitationBalance: AugmentedSubmittable<(newInitialBalance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1677. /**
  1678. * Updates initial invitation count for a member. Requires root origin.
  1679. *
  1680. * <weight>
  1681. *
  1682. * ## Weight
  1683. * `O (1)`
  1684. * - DB:
  1685. * - O(1) doesn't depend on the state or parameters
  1686. * # </weight>
  1687. **/
  1688. setInitialInvitationCount: AugmentedSubmittable<(newInvitationCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
  1689. /**
  1690. * Updates leader invitation quota. Requires root origin.
  1691. *
  1692. * <weight>
  1693. *
  1694. * ## Weight
  1695. * `O (1)`
  1696. * - DB:
  1697. * - O(1) doesn't depend on the state or parameters
  1698. * # </weight>
  1699. **/
  1700. setLeaderInvitationQuota: AugmentedSubmittable<(invitationQuota: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
  1701. /**
  1702. * Updates membership price. Requires root origin.
  1703. *
  1704. * <weight>
  1705. *
  1706. * ## Weight
  1707. * `O (1)`
  1708. * - DB:
  1709. * - O(1) doesn't depend on the state or parameters
  1710. * # </weight>
  1711. **/
  1712. setMembershipPrice: AugmentedSubmittable<(newPrice: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1713. /**
  1714. * Updates membership referral cut percent value. Requires root origin.
  1715. *
  1716. * <weight>
  1717. *
  1718. * ## Weight
  1719. * `O (1)`
  1720. * - DB:
  1721. * - O(1) doesn't depend on the state or parameters
  1722. * # </weight>
  1723. **/
  1724. setReferralCut: AugmentedSubmittable<(percentValue: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8]>;
  1725. /**
  1726. * Transfers invites from one member to another.
  1727. *
  1728. * <weight>
  1729. *
  1730. * ## Weight
  1731. * `O (1)`
  1732. * - DB:
  1733. * - O(1) doesn't depend on the state or parameters
  1734. * # </weight>
  1735. **/
  1736. transferInvites: AugmentedSubmittable<(sourceMemberId: MemberId | AnyNumber | Uint8Array, targetMemberId: MemberId | AnyNumber | Uint8Array, numberOfInvites: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, MemberId, u32]>;
  1737. /**
  1738. * Updates member root or controller accounts. No effect if both new accounts are empty.
  1739. *
  1740. * <weight>
  1741. *
  1742. * <weight>
  1743. *
  1744. * ## Weight
  1745. * `O (1)`
  1746. * - DB:
  1747. * - O(1) doesn't depend on the state or parameters
  1748. * # </weight>
  1749. **/
  1750. updateAccounts: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: Option<AccountId> | null | object | string | Uint8Array, newControllerAccount: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Option<AccountId>, Option<AccountId>]>;
  1751. /**
  1752. * Update member's all or some of name, handle, avatar and about text.
  1753. * No effect if no changed fields.
  1754. *
  1755. * <weight>
  1756. *
  1757. * ## Weight
  1758. * `O (W)` where:
  1759. * - `W` is the handle length
  1760. * - DB:
  1761. * - O(W)
  1762. * # </weight>
  1763. **/
  1764. updateProfile: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, metadata: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Option<Bytes>, Option<Bytes>]>;
  1765. /**
  1766. * Updates member profile verification status. Requires working group member origin.
  1767. *
  1768. * <weight>
  1769. *
  1770. * ## Weight
  1771. * `O (1)`
  1772. * - DB:
  1773. * - O(1) doesn't depend on the state or parameters
  1774. * # </weight>
  1775. **/
  1776. updateProfileVerification: AugmentedSubmittable<(workerId: ActorId | AnyNumber | Uint8Array, targetMemberId: MemberId | AnyNumber | Uint8Array, isVerified: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActorId, MemberId, bool]>;
  1777. };
  1778. membershipWorkingGroup: {
  1779. /**
  1780. * Add a job opening for a regular worker/lead role.
  1781. * Require signed leader origin or the root (to add opening for the leader position).
  1782. *
  1783. * # <weight>
  1784. *
  1785. * ## Weight
  1786. * `O (D)` where:
  1787. * - `D` is the length of `description`
  1788. * - DB:
  1789. * - O(1) doesn't depend on the state or parameters
  1790. * # </weight>
  1791. **/
  1792. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
  1793. /**
  1794. * Apply on a worker opening.
  1795. *
  1796. * # <weight>
  1797. *
  1798. * ## Weight
  1799. * `O (D)` where:
  1800. * - `D` is the length of `p.description`
  1801. * - DB:
  1802. * - O(1) doesn't depend on the state or parameters
  1803. * # </weight>
  1804. **/
  1805. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplyOnOpeningParameters]>;
  1806. /**
  1807. * Cancel an opening for the regular worker/lead position.
  1808. * Require signed leader origin or the root (to cancel opening for the leader position).
  1809. *
  1810. * # <weight>
  1811. *
  1812. * ## Weight
  1813. * `O (1)`
  1814. * - DB:
  1815. * - O(1) doesn't depend on the state or parameters
  1816. * # </weight>
  1817. **/
  1818. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  1819. /**
  1820. * Decreases the regular worker/lead stake and returns the remainder to the
  1821. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  1822. * Accepts the stake amount to decrease.
  1823. * Requires signed leader origin or the root (to decrease the leader stake).
  1824. *
  1825. * # <weight>
  1826. *
  1827. * ## Weight
  1828. * `O (1)`
  1829. * - DB:
  1830. * - O(1) doesn't depend on the state or parameters
  1831. * # </weight>
  1832. **/
  1833. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1834. /**
  1835. * Fill opening for the regular/lead position.
  1836. * Require signed leader origin or the root (to fill opening for the leader position).
  1837. * # <weight>
  1838. *
  1839. * ## Weight
  1840. * `O (A)` where:
  1841. * - `A` is the length of `successful_application_ids`
  1842. * - DB:
  1843. * - O(A)
  1844. * # </weight>
  1845. **/
  1846. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
  1847. /**
  1848. * Increases the regular worker/lead stake, demands a worker origin.
  1849. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  1850. *
  1851. * # <weight>
  1852. *
  1853. * ## Weight
  1854. * `O (1)`
  1855. * - DB:
  1856. * - O(1) doesn't depend on the state or parameters
  1857. * # </weight>
  1858. **/
  1859. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1860. /**
  1861. * Leave the role by the active worker.
  1862. * # <weight>
  1863. *
  1864. * ## Weight
  1865. * `O (1)`
  1866. * - DB:
  1867. * - O(1) doesn't depend on the state or parameters
  1868. * # </weight>
  1869. **/
  1870. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
  1871. /**
  1872. * Sets a new budget for the working group.
  1873. * Requires root origin.
  1874. *
  1875. * # <weight>
  1876. *
  1877. * ## Weight
  1878. * `O (1)`
  1879. * - DB:
  1880. * - O(1) doesn't depend on the state or parameters
  1881. * # </weight>
  1882. **/
  1883. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1884. /**
  1885. * Sets a new status text for the working group.
  1886. * Requires root origin.
  1887. *
  1888. * # <weight>
  1889. *
  1890. * ## Weight
  1891. * `O (S)` where:
  1892. * - `S` is the length of the contents of `status_text` when it is not none
  1893. *
  1894. * - DB:
  1895. * - O(1) doesn't depend on the state or parameters
  1896. * # </weight>
  1897. **/
  1898. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
  1899. /**
  1900. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  1901. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1902. * Requires signed leader origin or the root (to slash the leader stake).
  1903. * # <weight>
  1904. *
  1905. * ## Weight
  1906. * `O (P)` where:
  1907. * - `P` is the length of `penality.slashing_text`
  1908. * - DB:
  1909. * - O(1) doesn't depend on the state or parameters
  1910. * # </weight>
  1911. **/
  1912. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
  1913. /**
  1914. * Transfers specified amount to any account.
  1915. * Requires leader origin.
  1916. *
  1917. * # <weight>
  1918. *
  1919. * ## Weight
  1920. * `O (1)`
  1921. * - DB:
  1922. * - O(1) doesn't depend on the state or parameters
  1923. * # </weight>
  1924. **/
  1925. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
  1926. /**
  1927. * Terminate the active worker by the lead.
  1928. * Requires signed leader origin or the root (to terminate the leader role).
  1929. * # <weight>
  1930. *
  1931. * ## Weight
  1932. * `O (P)` where:
  1933. * - `P` is the length of `penalty.slashing_text`
  1934. * - DB:
  1935. * - O(1) doesn't depend on the state or parameters
  1936. * # </weight>
  1937. **/
  1938. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
  1939. /**
  1940. * Update the reward account associated with a set reward relationship for the active worker.
  1941. *
  1942. * # <weight>
  1943. *
  1944. * ## Weight
  1945. * `O (1)`
  1946. * - DB:
  1947. * - O(1) doesn't depend on the state or parameters
  1948. * # </weight>
  1949. **/
  1950. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1951. /**
  1952. * Update the reward per block for the active worker.
  1953. * Require signed leader origin or the root (to update leader's reward amount).
  1954. *
  1955. * # <weight>
  1956. *
  1957. * ## Weight
  1958. * `O (1)`
  1959. * - DB:
  1960. * - O(1) doesn't depend on the state or parameters
  1961. * # </weight>
  1962. **/
  1963. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
  1964. /**
  1965. * Update the associated role account of the active regular worker/lead.
  1966. *
  1967. * # <weight>
  1968. *
  1969. * ## Weight
  1970. * `O (1)`
  1971. * - DB:
  1972. * - O(1) doesn't depend on the state or parameters
  1973. * # </weight>
  1974. **/
  1975. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1976. /**
  1977. * Update the associated role storage.
  1978. **/
  1979. updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  1980. /**
  1981. * Withdraw the worker application. Can be done by the worker only.
  1982. *
  1983. * # <weight>
  1984. *
  1985. * ## Weight
  1986. * `O (1)`
  1987. * - DB:
  1988. * - O(1) doesn't depend on the state or parameters
  1989. * # </weight>
  1990. **/
  1991. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  1992. };
  1993. memo: {
  1994. updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>, [MemoText]>;
  1995. };
  1996. operationsWorkingGroup: {
  1997. /**
  1998. * Add a job opening for a regular worker/lead role.
  1999. * Require signed leader origin or the root (to add opening for the leader position).
  2000. *
  2001. * # <weight>
  2002. *
  2003. * ## Weight
  2004. * `O (D)` where:
  2005. * - `D` is the length of `description`
  2006. * - DB:
  2007. * - O(1) doesn't depend on the state or parameters
  2008. * # </weight>
  2009. **/
  2010. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
  2011. /**
  2012. * Apply on a worker opening.
  2013. *
  2014. * # <weight>
  2015. *
  2016. * ## Weight
  2017. * `O (D)` where:
  2018. * - `D` is the length of `p.description`
  2019. * - DB:
  2020. * - O(1) doesn't depend on the state or parameters
  2021. * # </weight>
  2022. **/
  2023. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplyOnOpeningParameters]>;
  2024. /**
  2025. * Cancel an opening for the regular worker/lead position.
  2026. * Require signed leader origin or the root (to cancel opening for the leader position).
  2027. *
  2028. * # <weight>
  2029. *
  2030. * ## Weight
  2031. * `O (1)`
  2032. * - DB:
  2033. * - O(1) doesn't depend on the state or parameters
  2034. * # </weight>
  2035. **/
  2036. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  2037. /**
  2038. * Decreases the regular worker/lead stake and returns the remainder to the
  2039. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  2040. * Accepts the stake amount to decrease.
  2041. * Requires signed leader origin or the root (to decrease the leader stake).
  2042. *
  2043. * # <weight>
  2044. *
  2045. * ## Weight
  2046. * `O (1)`
  2047. * - DB:
  2048. * - O(1) doesn't depend on the state or parameters
  2049. * # </weight>
  2050. **/
  2051. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  2052. /**
  2053. * Fill opening for the regular/lead position.
  2054. * Require signed leader origin or the root (to fill opening for the leader position).
  2055. * # <weight>
  2056. *
  2057. * ## Weight
  2058. * `O (A)` where:
  2059. * - `A` is the length of `successful_application_ids`
  2060. * - DB:
  2061. * - O(A)
  2062. * # </weight>
  2063. **/
  2064. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
  2065. /**
  2066. * Increases the regular worker/lead stake, demands a worker origin.
  2067. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  2068. *
  2069. * # <weight>
  2070. *
  2071. * ## Weight
  2072. * `O (1)`
  2073. * - DB:
  2074. * - O(1) doesn't depend on the state or parameters
  2075. * # </weight>
  2076. **/
  2077. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  2078. /**
  2079. * Leave the role by the active worker.
  2080. * # <weight>
  2081. *
  2082. * ## Weight
  2083. * `O (1)`
  2084. * - DB:
  2085. * - O(1) doesn't depend on the state or parameters
  2086. * # </weight>
  2087. **/
  2088. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
  2089. /**
  2090. * Sets a new budget for the working group.
  2091. * Requires root origin.
  2092. *
  2093. * # <weight>
  2094. *
  2095. * ## Weight
  2096. * `O (1)`
  2097. * - DB:
  2098. * - O(1) doesn't depend on the state or parameters
  2099. * # </weight>
  2100. **/
  2101. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  2102. /**
  2103. * Sets a new status text for the working group.
  2104. * Requires root origin.
  2105. *
  2106. * # <weight>
  2107. *
  2108. * ## Weight
  2109. * `O (S)` where:
  2110. * - `S` is the length of the contents of `status_text` when it is not none
  2111. *
  2112. * - DB:
  2113. * - O(1) doesn't depend on the state or parameters
  2114. * # </weight>
  2115. **/
  2116. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
  2117. /**
  2118. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  2119. * If slashing balance greater than the existing stake - stake is slashed to zero.
  2120. * Requires signed leader origin or the root (to slash the leader stake).
  2121. * # <weight>
  2122. *
  2123. * ## Weight
  2124. * `O (P)` where:
  2125. * - `P` is the length of `penality.slashing_text`
  2126. * - DB:
  2127. * - O(1) doesn't depend on the state or parameters
  2128. * # </weight>
  2129. **/
  2130. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
  2131. /**
  2132. * Transfers specified amount to any account.
  2133. * Requires leader origin.
  2134. *
  2135. * # <weight>
  2136. *
  2137. * ## Weight
  2138. * `O (1)`
  2139. * - DB:
  2140. * - O(1) doesn't depend on the state or parameters
  2141. * # </weight>
  2142. **/
  2143. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
  2144. /**
  2145. * Terminate the active worker by the lead.
  2146. * Requires signed leader origin or the root (to terminate the leader role).
  2147. * # <weight>
  2148. *
  2149. * ## Weight
  2150. * `O (P)` where:
  2151. * - `P` is the length of `penalty.slashing_text`
  2152. * - DB:
  2153. * - O(1) doesn't depend on the state or parameters
  2154. * # </weight>
  2155. **/
  2156. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
  2157. /**
  2158. * Update the reward account associated with a set reward relationship for the active worker.
  2159. *
  2160. * # <weight>
  2161. *
  2162. * ## Weight
  2163. * `O (1)`
  2164. * - DB:
  2165. * - O(1) doesn't depend on the state or parameters
  2166. * # </weight>
  2167. **/
  2168. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  2169. /**
  2170. * Update the reward per block for the active worker.
  2171. * Require signed leader origin or the root (to update leader's reward amount).
  2172. *
  2173. * # <weight>
  2174. *
  2175. * ## Weight
  2176. * `O (1)`
  2177. * - DB:
  2178. * - O(1) doesn't depend on the state or parameters
  2179. * # </weight>
  2180. **/
  2181. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
  2182. /**
  2183. * Update the associated role account of the active regular worker/lead.
  2184. *
  2185. * # <weight>
  2186. *
  2187. * ## Weight
  2188. * `O (1)`
  2189. * - DB:
  2190. * - O(1) doesn't depend on the state or parameters
  2191. * # </weight>
  2192. **/
  2193. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  2194. /**
  2195. * Update the associated role storage.
  2196. **/
  2197. updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  2198. /**
  2199. * Withdraw the worker application. Can be done by the worker only.
  2200. *
  2201. * # <weight>
  2202. *
  2203. * ## Weight
  2204. * `O (1)`
  2205. * - DB:
  2206. * - O(1) doesn't depend on the state or parameters
  2207. * # </weight>
  2208. **/
  2209. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  2210. };
  2211. proposalsCodex: {
  2212. /**
  2213. * Create a proposal, the type of proposal depends on the `proposal_details` variant
  2214. *
  2215. * <weight>
  2216. *
  2217. * ## Weight
  2218. * `O (T + D + I)` where:
  2219. * - `T` is the length of the title
  2220. * - `D` is the length of the description
  2221. * - `I` is the length of any parameter in `proposal_details`
  2222. * - DB:
  2223. * - O(1) doesn't depend on the state or parameters
  2224. * # </weight>
  2225. **/
  2226. createProposal: AugmentedSubmittable<(generalProposalParameters: GeneralProposalParameters | { member_id?: any; title?: any; description?: any; staking_account_id?: any; exact_execution_block?: any } | string | Uint8Array, proposalDetails: ProposalDetailsOf | { Signal: any } | { RuntimeUpgrade: any } | { FundingRequest: any } | { SetMaxValidatorCount: any } | { CreateWorkingGroupLeadOpening: any } | { FillWorkingGroupLeadOpening: any } | { UpdateWorkingGroupBudget: any } | { DecreaseWorkingGroupLeadStake: any } | { SlashWorkingGroupLead: any } | { SetWorkingGroupLeadReward: any } | { TerminateWorkingGroupLead: any } | { AmendConstitution: any } | { CancelWorkingGroupLeadOpening: any } | { SetMembershipPrice: any } | { SetCouncilBudgetIncrement: any } | { SetCouncilorReward: any } | { SetInitialInvitationBalance: any } | { SetInitialInvitationCount: any } | { SetMembershipLeadInvitationQuota: any } | { SetReferralCut: any } | { CreateBlogPost: any } | { EditBlogPost: any } | { LockBlogPost: any } | { UnlockBlogPost: any } | { VetoProposal: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GeneralProposalParameters, ProposalDetailsOf]>;
  2227. };
  2228. proposalsDiscussion: {
  2229. /**
  2230. * Adds a post with author origin check.
  2231. *
  2232. * <weight>
  2233. *
  2234. * ## Weight
  2235. * `O (L)` where:
  2236. * - `L` is the length of `text`
  2237. * - DB:
  2238. * - O(1) doesn't depend on the state or parameters
  2239. * # </weight>
  2240. **/
  2241. addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, Bytes, bool]>;
  2242. /**
  2243. * Changes thread permission mode.
  2244. *
  2245. * <weight>
  2246. *
  2247. * ## Weight
  2248. * `O (W)` if ThreadMode is close or O(1) otherwise where:
  2249. * - `W` is the number of whitelisted members in `mode`
  2250. * - DB:
  2251. * - O(1) doesn't depend on the state or parameters
  2252. * # </weight>
  2253. **/
  2254. changeThreadMode: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, mode: ThreadMode | { Open: any } | { Closed: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, ThreadMode]>;
  2255. /**
  2256. * Remove post from storage, with the last parameter indicating whether to also hide it
  2257. * in the UI.
  2258. *
  2259. * <weight>
  2260. *
  2261. * ## Weight
  2262. * `O (1)`
  2263. * - DB:
  2264. * - O(1) doesn't depend on the state or parameters
  2265. * # </weight>
  2266. **/
  2267. deletePost: AugmentedSubmittable<(deleterId: MemberId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, hide: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, PostId, ThreadId, bool]>;
  2268. /**
  2269. * Updates a post with author origin check. Update attempts number is limited.
  2270. *
  2271. * <weight>
  2272. *
  2273. * ## Weight
  2274. * `O (L)` where:
  2275. * - `L` is the length of `text`
  2276. * - DB:
  2277. * - O(1) doesn't depend on the state or parameters
  2278. * # </weight>
  2279. **/
  2280. updatePost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, PostId, Bytes]>;
  2281. };
  2282. proposalsEngine: {
  2283. /**
  2284. * Cancel a proposal by its original proposer.
  2285. *
  2286. * <weight>
  2287. *
  2288. * ## Weight
  2289. * `O (L)` where:
  2290. * - `L` is the total number of locks in `Balances`
  2291. * - DB:
  2292. * - O(1) doesn't depend on the state or parameters
  2293. * # </weight>
  2294. **/
  2295. cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId]>;
  2296. /**
  2297. * Veto a proposal. Must be root.
  2298. *
  2299. * <weight>
  2300. *
  2301. * ## Weight
  2302. * `O (1)` doesn't depend on the state or parameters
  2303. * - DB:
  2304. * - O(1) doesn't depend on the state or parameters
  2305. * # </weight>
  2306. **/
  2307. vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ProposalId]>;
  2308. /**
  2309. * Vote extrinsic. Conditions: origin must allow votes.
  2310. *
  2311. * <weight>
  2312. *
  2313. * ## Weight
  2314. * `O (R)` where:
  2315. * - `R` is the length of `rationale`
  2316. * - DB:
  2317. * - O(1) doesn't depend on the state or paraemters
  2318. * # </weight>
  2319. **/
  2320. vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve' | 'Reject' | 'Slash' | 'Abstain' | number | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId, VoteKind, Bytes]>;
  2321. };
  2322. referendum: {
  2323. /**
  2324. * Release a locked stake.
  2325. * # <weight>
  2326. *
  2327. * ## weight
  2328. * `O (1)`
  2329. * - db:
  2330. * - `O(1)` doesn't depend on the state or parameters
  2331. * # </weight>
  2332. **/
  2333. releaseVoteStake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  2334. /**
  2335. * Reveal a sealed vote in the referendum.
  2336. *
  2337. * # <weight>
  2338. *
  2339. * ## Weight
  2340. * `O (W)` where:
  2341. * - `W` is the number of `intermediate_winners` stored in the current
  2342. * `Stage::<T, I>::get()`
  2343. * - DB:
  2344. * - `O(1)` doesn't depend on the state or parameters
  2345. * # </weight>
  2346. **/
  2347. revealVote: AugmentedSubmittable<(salt: Bytes | string | Uint8Array, voteOptionId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MemberId]>;
  2348. /**
  2349. * Cast a sealed vote in the referendum.
  2350. *
  2351. * # <weight>
  2352. *
  2353. * ## weight
  2354. * `O (1)`
  2355. * - db:
  2356. * - `O(1)` doesn't depend on the state or parameters
  2357. * # </weight>
  2358. **/
  2359. vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, BalanceOf]>;
  2360. };
  2361. session: {
  2362. /**
  2363. * Removes any session key(s) of the function caller.
  2364. * This doesn't take effect until the next session.
  2365. *
  2366. * The dispatch origin of this function must be signed.
  2367. *
  2368. * # <weight>
  2369. * - Complexity: `O(1)` in number of key types.
  2370. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  2371. * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
  2372. * - DbWrites: `NextKeys`, `origin account`
  2373. * - DbWrites per key id: `KeyOwnder`
  2374. * # </weight>
  2375. **/
  2376. purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  2377. /**
  2378. * Sets the session key(s) of the function caller to `keys`.
  2379. * Allows an account to set its session key prior to becoming a validator.
  2380. * This doesn't take effect until the next session.
  2381. *
  2382. * The dispatch origin of this function must be signed.
  2383. *
  2384. * # <weight>
  2385. * - Complexity: `O(1)`
  2386. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  2387. * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
  2388. * - DbWrites: `origin account`, `NextKeys`
  2389. * - DbReads per key id: `KeyOwner`
  2390. * - DbWrites per key id: `KeyOwner`
  2391. * # </weight>
  2392. **/
  2393. setKeys: AugmentedSubmittable<(keys: Keys | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Keys, Bytes]>;
  2394. };
  2395. staking: {
  2396. /**
  2397. * Take the origin account as a stash and lock up `value` of its balance. `controller` will
  2398. * be the account that controls it.
  2399. *
  2400. * `value` must be more than the `minimum_balance` specified by `T::Currency`.
  2401. *
  2402. * The dispatch origin for this call must be _Signed_ by the stash account.
  2403. *
  2404. * Emits `Bonded`.
  2405. *
  2406. * # <weight>
  2407. * - Independent of the arguments. Moderate complexity.
  2408. * - O(1).
  2409. * - Three extra DB entries.
  2410. *
  2411. * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
  2412. * unless the `origin` falls below _existential deposit_ and gets removed as dust.
  2413. * ------------------
  2414. * Weight: O(1)
  2415. * DB Weight:
  2416. * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
  2417. * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
  2418. * # </weight>
  2419. **/
  2420. bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<BalanceOf>, RewardDestination]>;
  2421. /**
  2422. * Add some extra amount that have appeared in the stash `free_balance` into the balance up
  2423. * for staking.
  2424. *
  2425. * Use this if there are additional funds in your stash account that you wish to bond.
  2426. * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
  2427. * that can be added.
  2428. *
  2429. * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
  2430. * it can be only called when [`EraElectionStatus`] is `Closed`.
  2431. *
  2432. * Emits `Bonded`.
  2433. *
  2434. * # <weight>
  2435. * - Independent of the arguments. Insignificant complexity.
  2436. * - O(1).
  2437. * - One DB entry.
  2438. * ------------
  2439. * DB Weight:
  2440. * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
  2441. * - Write: [Origin Account], Locks, Ledger
  2442. * # </weight>
  2443. **/
  2444. bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
  2445. /**
  2446. * Cancel enactment of a deferred slash.
  2447. *
  2448. * Can be called by the `T::SlashCancelOrigin`.
  2449. *
  2450. * Parameters: era and indices of the slashes for that era to kill.
  2451. *
  2452. * # <weight>
  2453. * Complexity: O(U + S)
  2454. * with U unapplied slashes weighted with U=1000
  2455. * and S is the number of slash indices to be canceled.
  2456. * - Read: Unapplied Slashes
  2457. * - Write: Unapplied Slashes
  2458. * # </weight>
  2459. **/
  2460. cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [EraIndex, Vec<u32>]>;
  2461. /**
  2462. * Declare no desire to either validate or nominate.
  2463. *
  2464. * Effects will be felt at the beginning of the next era.
  2465. *
  2466. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2467. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2468. *
  2469. * # <weight>
  2470. * - Independent of the arguments. Insignificant complexity.
  2471. * - Contains one read.
  2472. * - Writes are limited to the `origin` account key.
  2473. * --------
  2474. * Weight: O(1)
  2475. * DB Weight:
  2476. * - Read: EraElectionStatus, Ledger
  2477. * - Write: Validators, Nominators
  2478. * # </weight>
  2479. **/
  2480. chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  2481. /**
  2482. * Force there to be a new era at the end of the next session. After this, it will be
  2483. * reset to normal (non-forced) behaviour.
  2484. *
  2485. * The dispatch origin must be Root.
  2486. *
  2487. * # <weight>
  2488. * - No arguments.
  2489. * - Weight: O(1)
  2490. * - Write ForceEra
  2491. * # </weight>
  2492. **/
  2493. forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  2494. /**
  2495. * Force there to be a new era at the end of sessions indefinitely.
  2496. *
  2497. * The dispatch origin must be Root.
  2498. *
  2499. * # <weight>
  2500. * - Weight: O(1)
  2501. * - Write: ForceEra
  2502. * # </weight>
  2503. **/
  2504. forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  2505. /**
  2506. * Force there to be no new eras indefinitely.
  2507. *
  2508. * The dispatch origin must be Root.
  2509. *
  2510. * # <weight>
  2511. * - No arguments.
  2512. * - Weight: O(1)
  2513. * - Write: ForceEra
  2514. * # </weight>
  2515. **/
  2516. forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  2517. /**
  2518. * Force a current staker to become completely unstaked, immediately.
  2519. *
  2520. * The dispatch origin must be Root.
  2521. *
  2522. * # <weight>
  2523. * O(S) where S is the number of slashing spans to be removed
  2524. * Reads: Bonded, Slashing Spans, Account, Locks
  2525. * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
  2526. * Writes Each: SpanSlash * S
  2527. * # </weight>
  2528. **/
  2529. forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
  2530. /**
  2531. * Increments the ideal number of validators.
  2532. *
  2533. * The dispatch origin must be Root.
  2534. *
  2535. * # <weight>
  2536. * Same as [`set_validator_count`].
  2537. * # </weight>
  2538. **/
  2539. increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
  2540. /**
  2541. * Declare the desire to nominate `targets` for the origin controller.
  2542. *
  2543. * Effects will be felt at the beginning of the next era. This can only be called when
  2544. * [`EraElectionStatus`] is `Closed`.
  2545. *
  2546. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2547. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2548. *
  2549. * # <weight>
  2550. * - The transaction's complexity is proportional to the size of `targets` (N)
  2551. * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
  2552. * - Both the reads and writes follow a similar pattern.
  2553. * ---------
  2554. * Weight: O(N)
  2555. * where N is the number of targets
  2556. * DB Weight:
  2557. * - Reads: Era Election Status, Ledger, Current Era
  2558. * - Writes: Validators, Nominators
  2559. * # </weight>
  2560. **/
  2561. nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<LookupSource>]>;
  2562. /**
  2563. * Pay out all the stakers behind a single validator for a single era.
  2564. *
  2565. * - `validator_stash` is the stash account of the validator. Their nominators, up to
  2566. * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
  2567. * - `era` may be any era between `[current_era - history_depth; current_era]`.
  2568. *
  2569. * The origin of this call must be _Signed_. Any account can call this function, even if
  2570. * it is not one of the stakers.
  2571. *
  2572. * This can only be called when [`EraElectionStatus`] is `Closed`.
  2573. *
  2574. * # <weight>
  2575. * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
  2576. * - Contains a limited number of reads and writes.
  2577. * -----------
  2578. * N is the Number of payouts for the validator (including the validator)
  2579. * Weight:
  2580. * - Reward Destination Staked: O(N)
  2581. * - Reward Destination Controller (Creating): O(N)
  2582. * DB Weight:
  2583. * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
  2584. * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
  2585. * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
  2586. * - Write Each: System Account, Locks, Ledger (3 items)
  2587. *
  2588. * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
  2589. * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
  2590. * # </weight>
  2591. **/
  2592. payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, EraIndex]>;
  2593. /**
  2594. * Remove all data structure concerning a staker/stash once its balance is zero.
  2595. * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
  2596. * and the target `stash` must have no funds left.
  2597. *
  2598. * This can be called from any origin.
  2599. *
  2600. * - `stash`: The stash account to reap. Its balance must be zero.
  2601. *
  2602. * # <weight>
  2603. * Complexity: O(S) where S is the number of slashing spans on the account.
  2604. * DB Weight:
  2605. * - Reads: Stash Account, Bonded, Slashing Spans, Locks
  2606. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
  2607. * - Writes Each: SpanSlash * S
  2608. * # </weight>
  2609. **/
  2610. reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
  2611. /**
  2612. * Rebond a portion of the stash scheduled to be unlocked.
  2613. *
  2614. * The dispatch origin must be signed by the controller, and it can be only called when
  2615. * [`EraElectionStatus`] is `Closed`.
  2616. *
  2617. * # <weight>
  2618. * - Time complexity: O(L), where L is unlocking chunks
  2619. * - Bounded by `MAX_UNLOCKING_CHUNKS`.
  2620. * - Storage changes: Can't increase storage, only decrease it.
  2621. * ---------------
  2622. * - DB Weight:
  2623. * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
  2624. * - Writes: [Origin Account], Locks, Ledger
  2625. * # </weight>
  2626. **/
  2627. rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
  2628. /**
  2629. * Scale up the ideal number of validators by a factor.
  2630. *
  2631. * The dispatch origin must be Root.
  2632. *
  2633. * # <weight>
  2634. * Same as [`set_validator_count`].
  2635. * # </weight>
  2636. **/
  2637. scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
  2638. /**
  2639. * (Re-)set the controller of a stash.
  2640. *
  2641. * Effects will be felt at the beginning of the next era.
  2642. *
  2643. * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
  2644. *
  2645. * # <weight>
  2646. * - Independent of the arguments. Insignificant complexity.
  2647. * - Contains a limited number of reads.
  2648. * - Writes are limited to the `origin` account key.
  2649. * ----------
  2650. * Weight: O(1)
  2651. * DB Weight:
  2652. * - Read: Bonded, Ledger New Controller, Ledger Old Controller
  2653. * - Write: Bonded, Ledger New Controller, Ledger Old Controller
  2654. * # </weight>
  2655. **/
  2656. setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
  2657. /**
  2658. * Set `HistoryDepth` value. This function will delete any history information
  2659. * when `HistoryDepth` is reduced.
  2660. *
  2661. * Parameters:
  2662. * - `new_history_depth`: The new history depth you would like to set.
  2663. * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
  2664. * This should report all the storage items that will be deleted by clearing old
  2665. * era history. Needed to report an accurate weight for the dispatch. Trusted by
  2666. * `Root` to report an accurate number.
  2667. *
  2668. * Origin must be root.
  2669. *
  2670. * # <weight>
  2671. * - E: Number of history depths removed, i.e. 10 -> 7 = 3
  2672. * - Weight: O(E)
  2673. * - DB Weight:
  2674. * - Reads: Current Era, History Depth
  2675. * - Writes: History Depth
  2676. * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
  2677. * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
  2678. * # </weight>
  2679. **/
  2680. setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<EraIndex>, Compact<u32>]>;
  2681. /**
  2682. * Set the validators who cannot be slashed (if any).
  2683. *
  2684. * The dispatch origin must be Root.
  2685. *
  2686. * # <weight>
  2687. * - O(V)
  2688. * - Write: Invulnerables
  2689. * # </weight>
  2690. **/
  2691. setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
  2692. /**
  2693. * (Re-)set the payment target for a controller.
  2694. *
  2695. * Effects will be felt at the beginning of the next era.
  2696. *
  2697. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2698. *
  2699. * # <weight>
  2700. * - Independent of the arguments. Insignificant complexity.
  2701. * - Contains a limited number of reads.
  2702. * - Writes are limited to the `origin` account key.
  2703. * ---------
  2704. * - Weight: O(1)
  2705. * - DB Weight:
  2706. * - Read: Ledger
  2707. * - Write: Payee
  2708. * # </weight>
  2709. **/
  2710. setPayee: AugmentedSubmittable<(payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [RewardDestination]>;
  2711. /**
  2712. * Sets the ideal number of validators.
  2713. *
  2714. * The dispatch origin must be Root.
  2715. *
  2716. * # <weight>
  2717. * Weight: O(1)
  2718. * Write: Validator Count
  2719. * # </weight>
  2720. **/
  2721. setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
  2722. /**
  2723. * Submit an election result to the chain. If the solution:
  2724. *
  2725. * 1. is valid.
  2726. * 2. has a better score than a potentially existing solution on chain.
  2727. *
  2728. * then, it will be _put_ on chain.
  2729. *
  2730. * A solution consists of two pieces of data:
  2731. *
  2732. * 1. `winners`: a flat vector of all the winners of the round.
  2733. * 2. `assignments`: the compact version of an assignment vector that encodes the edge
  2734. * weights.
  2735. *
  2736. * Both of which may be computed using _phragmen_, or any other algorithm.
  2737. *
  2738. * Additionally, the submitter must provide:
  2739. *
  2740. * - The `score` that they claim their solution has.
  2741. *
  2742. * Both validators and nominators will be represented by indices in the solution. The
  2743. * indices should respect the corresponding types ([`ValidatorIndex`] and
  2744. * [`NominatorIndex`]). Moreover, they should be valid when used to index into
  2745. * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
  2746. * solution to be rejected. These two storage items are set during the election window and
  2747. * may be used to determine the indices.
  2748. *
  2749. * A solution is valid if:
  2750. *
  2751. * 0. It is submitted when [`EraElectionStatus`] is `Open`.
  2752. * 1. Its claimed score is equal to the score computed on-chain.
  2753. * 2. Presents the correct number of winners.
  2754. * 3. All indexes must be value according to the snapshot vectors. All edge values must
  2755. * also be correct and should not overflow the granularity of the ratio type (i.e. 256
  2756. * or billion).
  2757. * 4. For each edge, all targets are actually nominated by the voter.
  2758. * 5. Has correct self-votes.
  2759. *
  2760. * A solutions score is consisted of 3 parameters:
  2761. *
  2762. * 1. `min { support.total }` for each support of a winner. This value should be maximized.
  2763. * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
  2764. * 3. `sum { support.total^2 }` for each support of a winner. This value should be
  2765. * minimized (to ensure less variance)
  2766. *
  2767. * # <weight>
  2768. * The transaction is assumed to be the longest path, a better solution.
  2769. * - Initial solution is almost the same.
  2770. * - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
  2771. * # </weight>
  2772. **/
  2773. 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]>;
  2774. /**
  2775. * Unsigned version of `submit_election_solution`.
  2776. *
  2777. * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
  2778. * from the local node to be included. In other words, only the block author can include a
  2779. * transaction in the block.
  2780. *
  2781. * # <weight>
  2782. * See `crate::weight` module.
  2783. * # </weight>
  2784. **/
  2785. 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]>;
  2786. /**
  2787. * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
  2788. * period ends. If this leaves an amount actively bonded less than
  2789. * T::Currency::minimum_balance(), then it is increased to the full amount.
  2790. *
  2791. * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
  2792. * the funds out of management ready for transfer.
  2793. *
  2794. * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
  2795. * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
  2796. * to be called first to remove some of the chunks (if possible).
  2797. *
  2798. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2799. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2800. *
  2801. * Emits `Unbonded`.
  2802. *
  2803. * See also [`Call::withdraw_unbonded`].
  2804. *
  2805. * # <weight>
  2806. * - Independent of the arguments. Limited but potentially exploitable complexity.
  2807. * - Contains a limited number of reads.
  2808. * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
  2809. * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
  2810. * The only way to clean the aforementioned storage item is also user-controlled via
  2811. * `withdraw_unbonded`.
  2812. * - One DB entry.
  2813. * ----------
  2814. * Weight: O(1)
  2815. * DB Weight:
  2816. * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
  2817. * - Write: Locks, Ledger, BalanceOf Stash,
  2818. * </weight>
  2819. **/
  2820. unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
  2821. /**
  2822. * Declare the desire to validate for the origin controller.
  2823. *
  2824. * Effects will be felt at the beginning of the next era.
  2825. *
  2826. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2827. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2828. *
  2829. * # <weight>
  2830. * - Independent of the arguments. Insignificant complexity.
  2831. * - Contains a limited number of reads.
  2832. * - Writes are limited to the `origin` account key.
  2833. * -----------
  2834. * Weight: O(1)
  2835. * DB Weight:
  2836. * - Read: Era Election Status, Ledger
  2837. * - Write: Nominators, Validators
  2838. * # </weight>
  2839. **/
  2840. validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any; blocked?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ValidatorPrefs]>;
  2841. /**
  2842. * Remove any unlocked chunks from the `unlocking` queue from our management.
  2843. *
  2844. * This essentially frees up that balance to be used by the stash account to do
  2845. * whatever it wants.
  2846. *
  2847. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2848. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2849. *
  2850. * Emits `Withdrawn`.
  2851. *
  2852. * See also [`Call::unbond`].
  2853. *
  2854. * # <weight>
  2855. * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
  2856. * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
  2857. * indirectly user-controlled. See [`unbond`] for more detail.
  2858. * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
  2859. * - Writes are limited to the `origin` account key.
  2860. * ---------------
  2861. * Complexity O(S) where S is the number of slashing spans to remove
  2862. * Update:
  2863. * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
  2864. * - Writes: [Origin Account], Locks, Ledger
  2865. * Kill:
  2866. * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
  2867. * Account], Locks, BalanceOf stash
  2868. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
  2869. * [Origin Account], Locks, BalanceOf stash.
  2870. * - Writes Each: SpanSlash * S
  2871. * NOTE: Weight annotation is the kill scenario, we refund otherwise.
  2872. * # </weight>
  2873. **/
  2874. withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
  2875. };
  2876. storageWorkingGroup: {
  2877. /**
  2878. * Add a job opening for a regular worker/lead role.
  2879. * Require signed leader origin or the root (to add opening for the leader position).
  2880. *
  2881. * # <weight>
  2882. *
  2883. * ## Weight
  2884. * `O (D)` where:
  2885. * - `D` is the length of `description`
  2886. * - DB:
  2887. * - O(1) doesn't depend on the state or parameters
  2888. * # </weight>
  2889. **/
  2890. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
  2891. /**
  2892. * Apply on a worker opening.
  2893. *
  2894. * # <weight>
  2895. *
  2896. * ## Weight
  2897. * `O (D)` where:
  2898. * - `D` is the length of `p.description`
  2899. * - DB:
  2900. * - O(1) doesn't depend on the state or parameters
  2901. * # </weight>
  2902. **/
  2903. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplyOnOpeningParameters]>;
  2904. /**
  2905. * Cancel an opening for the regular worker/lead position.
  2906. * Require signed leader origin or the root (to cancel opening for the leader position).
  2907. *
  2908. * # <weight>
  2909. *
  2910. * ## Weight
  2911. * `O (1)`
  2912. * - DB:
  2913. * - O(1) doesn't depend on the state or parameters
  2914. * # </weight>
  2915. **/
  2916. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  2917. /**
  2918. * Decreases the regular worker/lead stake and returns the remainder to the
  2919. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  2920. * Accepts the stake amount to decrease.
  2921. * Requires signed leader origin or the root (to decrease the leader stake).
  2922. *
  2923. * # <weight>
  2924. *
  2925. * ## Weight
  2926. * `O (1)`
  2927. * - DB:
  2928. * - O(1) doesn't depend on the state or parameters
  2929. * # </weight>
  2930. **/
  2931. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  2932. /**
  2933. * Fill opening for the regular/lead position.
  2934. * Require signed leader origin or the root (to fill opening for the leader position).
  2935. * # <weight>
  2936. *
  2937. * ## Weight
  2938. * `O (A)` where:
  2939. * - `A` is the length of `successful_application_ids`
  2940. * - DB:
  2941. * - O(A)
  2942. * # </weight>
  2943. **/
  2944. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
  2945. /**
  2946. * Increases the regular worker/lead stake, demands a worker origin.
  2947. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  2948. *
  2949. * # <weight>
  2950. *
  2951. * ## Weight
  2952. * `O (1)`
  2953. * - DB:
  2954. * - O(1) doesn't depend on the state or parameters
  2955. * # </weight>
  2956. **/
  2957. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  2958. /**
  2959. * Leave the role by the active worker.
  2960. * # <weight>
  2961. *
  2962. * ## Weight
  2963. * `O (1)`
  2964. * - DB:
  2965. * - O(1) doesn't depend on the state or parameters
  2966. * # </weight>
  2967. **/
  2968. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
  2969. /**
  2970. * Sets a new budget for the working group.
  2971. * Requires root origin.
  2972. *
  2973. * # <weight>
  2974. *
  2975. * ## Weight
  2976. * `O (1)`
  2977. * - DB:
  2978. * - O(1) doesn't depend on the state or parameters
  2979. * # </weight>
  2980. **/
  2981. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  2982. /**
  2983. * Sets a new status text for the working group.
  2984. * Requires root origin.
  2985. *
  2986. * # <weight>
  2987. *
  2988. * ## Weight
  2989. * `O (S)` where:
  2990. * - `S` is the length of the contents of `status_text` when it is not none
  2991. *
  2992. * - DB:
  2993. * - O(1) doesn't depend on the state or parameters
  2994. * # </weight>
  2995. **/
  2996. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
  2997. /**
  2998. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  2999. * If slashing balance greater than the existing stake - stake is slashed to zero.
  3000. * Requires signed leader origin or the root (to slash the leader stake).
  3001. * # <weight>
  3002. *
  3003. * ## Weight
  3004. * `O (P)` where:
  3005. * - `P` is the length of `penality.slashing_text`
  3006. * - DB:
  3007. * - O(1) doesn't depend on the state or parameters
  3008. * # </weight>
  3009. **/
  3010. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
  3011. /**
  3012. * Transfers specified amount to any account.
  3013. * Requires leader origin.
  3014. *
  3015. * # <weight>
  3016. *
  3017. * ## Weight
  3018. * `O (1)`
  3019. * - DB:
  3020. * - O(1) doesn't depend on the state or parameters
  3021. * # </weight>
  3022. **/
  3023. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
  3024. /**
  3025. * Terminate the active worker by the lead.
  3026. * Requires signed leader origin or the root (to terminate the leader role).
  3027. * # <weight>
  3028. *
  3029. * ## Weight
  3030. * `O (P)` where:
  3031. * - `P` is the length of `penalty.slashing_text`
  3032. * - DB:
  3033. * - O(1) doesn't depend on the state or parameters
  3034. * # </weight>
  3035. **/
  3036. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
  3037. /**
  3038. * Update the reward account associated with a set reward relationship for the active worker.
  3039. *
  3040. * # <weight>
  3041. *
  3042. * ## Weight
  3043. * `O (1)`
  3044. * - DB:
  3045. * - O(1) doesn't depend on the state or parameters
  3046. * # </weight>
  3047. **/
  3048. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  3049. /**
  3050. * Update the reward per block for the active worker.
  3051. * Require signed leader origin or the root (to update leader's reward amount).
  3052. *
  3053. * # <weight>
  3054. *
  3055. * ## Weight
  3056. * `O (1)`
  3057. * - DB:
  3058. * - O(1) doesn't depend on the state or parameters
  3059. * # </weight>
  3060. **/
  3061. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
  3062. /**
  3063. * Update the associated role account of the active regular worker/lead.
  3064. *
  3065. * # <weight>
  3066. *
  3067. * ## Weight
  3068. * `O (1)`
  3069. * - DB:
  3070. * - O(1) doesn't depend on the state or parameters
  3071. * # </weight>
  3072. **/
  3073. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  3074. /**
  3075. * Update the associated role storage.
  3076. **/
  3077. updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  3078. /**
  3079. * Withdraw the worker application. Can be done by the worker only.
  3080. *
  3081. * # <weight>
  3082. *
  3083. * ## Weight
  3084. * `O (1)`
  3085. * - DB:
  3086. * - O(1) doesn't depend on the state or parameters
  3087. * # </weight>
  3088. **/
  3089. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  3090. };
  3091. sudo: {
  3092. /**
  3093. * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
  3094. *
  3095. * The dispatch origin for this call must be _Signed_.
  3096. *
  3097. * # <weight>
  3098. * - O(1).
  3099. * - Limited storage reads.
  3100. * - One DB change.
  3101. * # </weight>
  3102. **/
  3103. setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
  3104. /**
  3105. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  3106. *
  3107. * The dispatch origin for this call must be _Signed_.
  3108. *
  3109. * # <weight>
  3110. * - O(1).
  3111. * - Limited storage reads.
  3112. * - One DB write (event).
  3113. * - Weight of derivative `call` execution + 10,000.
  3114. * # </weight>
  3115. **/
  3116. sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
  3117. /**
  3118. * Authenticates the sudo key and dispatches a function call with `Signed` origin from
  3119. * a given account.
  3120. *
  3121. * The dispatch origin for this call must be _Signed_.
  3122. *
  3123. * # <weight>
  3124. * - O(1).
  3125. * - Limited storage reads.
  3126. * - One DB write (event).
  3127. * - Weight of derivative `call` execution + 10,000.
  3128. * # </weight>
  3129. **/
  3130. sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Call]>;
  3131. /**
  3132. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  3133. * This function does not check the weight of the call, and instead allows the
  3134. * Sudo user to specify the weight of the call.
  3135. *
  3136. * The dispatch origin for this call must be _Signed_.
  3137. *
  3138. * # <weight>
  3139. * - O(1).
  3140. * - The weight of this call is defined by the caller.
  3141. * # </weight>
  3142. **/
  3143. sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
  3144. };
  3145. system: {
  3146. /**
  3147. * A dispatch that will fill the block weight up to the given ratio.
  3148. **/
  3149. fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
  3150. /**
  3151. * Kill all storage items with a key that starts with the given prefix.
  3152. *
  3153. * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
  3154. * the prefix we are removing to accurately calculate the weight of this function.
  3155. *
  3156. * # <weight>
  3157. * - `O(P)` where `P` amount of keys with prefix `prefix`
  3158. * - `P` storage deletions.
  3159. * - Base Weight: 0.834 * P µs
  3160. * - Writes: Number of subkeys + 1
  3161. * # </weight>
  3162. **/
  3163. killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Key, u32]>;
  3164. /**
  3165. * Kill some items from storage.
  3166. *
  3167. * # <weight>
  3168. * - `O(IK)` where `I` length of `keys` and `K` length of one key
  3169. * - `I` storage deletions.
  3170. * - Base Weight: .378 * i µs
  3171. * - Writes: Number of items
  3172. * # </weight>
  3173. **/
  3174. killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Key>]>;
  3175. /**
  3176. * Make some on-chain remark.
  3177. *
  3178. * # <weight>
  3179. * - `O(1)`
  3180. * - Base Weight: 0.665 µs, independent of remark length.
  3181. * - No DB operations.
  3182. * # </weight>
  3183. **/
  3184. remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  3185. /**
  3186. * Set the new changes trie configuration.
  3187. *
  3188. * # <weight>
  3189. * - `O(1)`
  3190. * - 1 storage write or delete (codec `O(1)`).
  3191. * - 1 call to `deposit_log`: Uses `append` API, so O(1)
  3192. * - Base Weight: 7.218 µs
  3193. * - DB Weight:
  3194. * - Writes: Changes Trie, System Digest
  3195. * # </weight>
  3196. **/
  3197. setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<ChangesTrieConfiguration>]>;
  3198. /**
  3199. * Set the new runtime code.
  3200. *
  3201. * # <weight>
  3202. * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
  3203. * - 1 storage write (codec `O(C)`).
  3204. * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
  3205. * - 1 event.
  3206. * The weight of this function is dependent on the runtime, but generally this is very expensive.
  3207. * We will treat this as a full block.
  3208. * # </weight>
  3209. **/
  3210. setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  3211. /**
  3212. * Set the new runtime code without doing any checks of the given `code`.
  3213. *
  3214. * # <weight>
  3215. * - `O(C)` where `C` length of `code`
  3216. * - 1 storage write (codec `O(C)`).
  3217. * - 1 event.
  3218. * The weight of this function is dependent on the runtime. We will treat this as a full block.
  3219. * # </weight>
  3220. **/
  3221. setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  3222. /**
  3223. * Set the number of pages in the WebAssembly environment's heap.
  3224. *
  3225. * # <weight>
  3226. * - `O(1)`
  3227. * - 1 storage write.
  3228. * - Base Weight: 1.405 µs
  3229. * - 1 write to HEAP_PAGES
  3230. * # </weight>
  3231. **/
  3232. setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  3233. /**
  3234. * Set some items of storage.
  3235. *
  3236. * # <weight>
  3237. * - `O(I)` where `I` length of `items`
  3238. * - `I` storage writes (`O(1)`).
  3239. * - Base Weight: 0.568 * i µs
  3240. * - Writes: Number of items
  3241. * # </weight>
  3242. **/
  3243. setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>, [Vec<KeyValue>]>;
  3244. /**
  3245. * Kill the sending account, assuming there are no references outstanding and the composite
  3246. * data is equal to its default value.
  3247. *
  3248. * # <weight>
  3249. * - `O(1)`
  3250. * - 1 storage read and deletion.
  3251. * --------------------
  3252. * Base Weight: 8.626 µs
  3253. * No DB Read or Write operations because caller is already in overlay
  3254. * # </weight>
  3255. **/
  3256. suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  3257. };
  3258. timestamp: {
  3259. /**
  3260. * Set the current time.
  3261. *
  3262. * This call should be invoked exactly once per block. It will panic at the finalization
  3263. * phase, if this call hasn't been invoked by that time.
  3264. *
  3265. * The timestamp should be greater than the previous one by the amount specified by
  3266. * `MinimumPeriod`.
  3267. *
  3268. * The dispatch origin for this call must be `Inherent`.
  3269. *
  3270. * # <weight>
  3271. * - `O(T)` where `T` complexity of `on_timestamp_set`
  3272. * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
  3273. * - 1 event handler `on_timestamp_set` `O(T)`.
  3274. * # </weight>
  3275. **/
  3276. set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<Moment>]>;
  3277. };
  3278. utility: {
  3279. /**
  3280. * Send a call through an indexed pseudonym of the sender.
  3281. *
  3282. * Filter from origin are passed along. The call will be dispatched with an origin which
  3283. * use the same filter as the origin of this call.
  3284. *
  3285. * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
  3286. * because you expect `proxy` to have been used prior in the call stack and you do not want
  3287. * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
  3288. * in the Multisig pallet instead.
  3289. *
  3290. * NOTE: Prior to version *12, this was called `as_limited_sub`.
  3291. *
  3292. * The dispatch origin for this call must be _Signed_.
  3293. **/
  3294. asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
  3295. /**
  3296. * Send a batch of dispatch calls.
  3297. *
  3298. * May be called from any origin.
  3299. *
  3300. * - `calls`: The calls to be dispatched from the same origin.
  3301. *
  3302. * If origin is root then call are dispatch without checking origin filter. (This includes
  3303. * bypassing `frame_system::Trait::BaseCallFilter`).
  3304. *
  3305. * # <weight>
  3306. * - Base weight: 14.39 + .987 * c µs
  3307. * - Plus the sum of the weights of the `calls`.
  3308. * - Plus one additional event. (repeat read/write)
  3309. * # </weight>
  3310. *
  3311. * This will return `Ok` in all circumstances. To determine the success of the batch, an
  3312. * event is deposited. If a call failed and the batch was interrupted, then the
  3313. * `BatchInterrupted` event is deposited, along with the number of successful calls made
  3314. * and the error of the failed call. If all were successful, then the `BatchCompleted`
  3315. * event is deposited.
  3316. **/
  3317. batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
  3318. };
  3319. }
  3320. export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
  3321. (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
  3322. }
  3323. }