augment-api-tx.ts 87 KB

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