augment-api-tx.ts 87 KB

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