augment-api-tx.ts 120 KB

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