augment-api-tx.ts 117 KB

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