augment-api-tx.ts 100 KB

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