augment-api-tx.ts 105 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569
  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, ClassId, ClassPermissions, ClassPermissionsType, ClassPropertyValue, ContentId, Credential, CredentialSet, CurationActor, CuratorApplicationId, CuratorApplicationIdSet, CuratorGroupId, CuratorId, CuratorOpeningId, DataObjectId, 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. finalityTracker: {
  432. /**
  433. * Hint that the author of this block thinks the best finalized
  434. * block is the given number.
  435. **/
  436. finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BlockNumber>]>;
  437. };
  438. forum: {
  439. /**
  440. * Edit post text
  441. **/
  442. addPost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, Bytes]>;
  443. /**
  444. * Add a new category.
  445. **/
  446. createCategory: AugmentedSubmittable<(parent: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<CategoryId>, Bytes, Bytes]>;
  447. /**
  448. * Create new thread in category
  449. **/
  450. createThread: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CategoryId, Bytes, Bytes]>;
  451. /**
  452. * Edit post text
  453. **/
  454. editPostText: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Bytes]>;
  455. /**
  456. * Moderate post
  457. **/
  458. moderatePost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Bytes]>;
  459. /**
  460. * Moderate thread
  461. **/
  462. moderateThread: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, Bytes]>;
  463. /**
  464. * Set forum sudo.
  465. **/
  466. setForumSudo: AugmentedSubmittable<(newForumSudo: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId>]>;
  467. /**
  468. * Update category
  469. **/
  470. 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>]>;
  471. };
  472. grandpa: {
  473. /**
  474. * Note that the current authority set of the GRANDPA finality gadget has
  475. * stalled. This will trigger a forced authority set change at the beginning
  476. * of the next session, to be enacted `delay` blocks after that. The delay
  477. * should be high enough to safely assume that the block signalling the
  478. * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
  479. * will start the new authority set using the given finalized block as base.
  480. * Only callable by root.
  481. **/
  482. noteStalled: AugmentedSubmittable<(delay: BlockNumber | AnyNumber | Uint8Array, bestFinalizedBlockNumber: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber, BlockNumber]>;
  483. /**
  484. * Report voter equivocation/misbehavior. This method will verify the
  485. * equivocation proof and validate the given key ownership proof
  486. * against the extracted offender. If both are valid, the offence
  487. * will be reported.
  488. **/
  489. reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
  490. /**
  491. * Report voter equivocation/misbehavior. This method will verify the
  492. * equivocation proof and validate the given key ownership proof
  493. * against the extracted offender. If both are valid, the offence
  494. * will be reported.
  495. *
  496. * This extrinsic must be called unsigned and it is expected that only
  497. * block authors will call it (validated in `ValidateUnsigned`), as such
  498. * if the block author is defined it will be defined as the equivocation
  499. * reporter.
  500. **/
  501. reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
  502. };
  503. imOnline: {
  504. /**
  505. * # <weight>
  506. * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len)
  507. * and E is length of `heartbeat.network_state.external_address`
  508. * - `O(K)`: decoding of length `K`
  509. * - `O(E)`: decoding/encoding of length `E`
  510. * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
  511. * `ReceivedHeartbeats`
  512. * - DbWrites: `ReceivedHeartbeats`
  513. * # </weight>
  514. **/
  515. heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Heartbeat, Signature]>;
  516. };
  517. members: {
  518. 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>]>;
  519. /**
  520. * Non-members can buy membership
  521. **/
  522. 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>]>;
  523. /**
  524. * Change member's about text
  525. **/
  526. changeMemberAboutText: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
  527. /**
  528. * Change member's avatar
  529. **/
  530. changeMemberAvatar: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, uri: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
  531. /**
  532. * Change member's handle. Will ensure new handle is unique and old one will be available
  533. * for other members to use.
  534. **/
  535. changeMemberHandle: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
  536. setControllerAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newControllerAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
  537. setRootAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
  538. setScreeningAuthority: AugmentedSubmittable<(authority: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
  539. /**
  540. * Update member's all or some of handle, avatar and about text.
  541. **/
  542. 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>]>;
  543. };
  544. memo: {
  545. updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>, [MemoText]>;
  546. };
  547. proposalsCodex: {
  548. /**
  549. * Create 'Add working group leader opening' proposal type.
  550. * This proposal uses `add_opening()` extrinsic from the Joystream `working group` module.
  551. **/
  552. 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]>;
  553. /**
  554. * Create 'Begin review working group leader applications' proposal type.
  555. * This proposal uses `begin_applicant_review()` extrinsic from the Joystream `working group` module.
  556. **/
  557. 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]>;
  558. /**
  559. * Create 'decrease working group leader stake' proposal type.
  560. * This proposal uses `decrease_stake()` extrinsic from the `working-group` module.
  561. **/
  562. 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]>;
  563. /**
  564. * Create 'Fill working group leader opening' proposal type.
  565. * This proposal uses `fill_opening()` extrinsic from the Joystream `working group` module.
  566. **/
  567. 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]>;
  568. /**
  569. * Create 'Runtime upgrade' proposal type. Runtime upgrade can be initiated only by
  570. * members from the hardcoded list `RuntimeUpgradeProposalAllowedProposers`
  571. **/
  572. 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]>;
  573. /**
  574. * Create 'Set election parameters' proposal type. This proposal uses `set_election_parameters()`
  575. * extrinsic from the `governance::election module`.
  576. **/
  577. 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]>;
  578. /**
  579. * Create 'Evict storage provider' proposal type.
  580. * This proposal uses `set_validator_count()` extrinsic from the Substrate `staking` module.
  581. **/
  582. 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]>;
  583. /**
  584. * Create 'set working group leader reward' proposal type.
  585. * This proposal uses `update_reward_amount()` extrinsic from the `working-group` module.
  586. **/
  587. 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]>;
  588. /**
  589. * Create 'Set working group mint capacity' proposal type.
  590. * This proposal uses `set_mint_capacity()` extrinsic from the `working-group` module.
  591. **/
  592. 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]>;
  593. /**
  594. * Create 'slash working group leader stake' proposal type.
  595. * This proposal uses `slash_stake()` extrinsic from the `working-group` module.
  596. **/
  597. 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]>;
  598. /**
  599. * Create 'Spending' proposal type.
  600. * This proposal uses `spend_from_council_mint()` extrinsic from the `governance::council` module.
  601. **/
  602. 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]>;
  603. /**
  604. * Create 'terminate working group leader rolw' proposal type.
  605. * This proposal uses `terminate_role()` extrinsic from the `working-group` module.
  606. **/
  607. 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]>;
  608. /**
  609. * Create 'Text (signal)' proposal type.
  610. **/
  611. 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]>;
  612. /**
  613. * Runtime upgrade proposal extrinsic.
  614. * Should be used as callable object to pass to the `engine` module.
  615. **/
  616. executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  617. /**
  618. * Text proposal extrinsic. Should be used as callable object to pass to the `engine` module.
  619. **/
  620. executeTextProposal: AugmentedSubmittable<(text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  621. };
  622. proposalsDiscussion: {
  623. /**
  624. * Adds a post with author origin check.
  625. **/
  626. addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, Bytes]>;
  627. /**
  628. * Updates a post with author origin check. Update attempts number is limited.
  629. **/
  630. updatePost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, PostId, Bytes]>;
  631. };
  632. proposalsEngine: {
  633. /**
  634. * Cancel a proposal by its original proposer.
  635. **/
  636. cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId]>;
  637. /**
  638. * Veto a proposal. Must be root.
  639. **/
  640. vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ProposalId]>;
  641. /**
  642. * Vote extrinsic. Conditions: origin must allow votes.
  643. **/
  644. vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve' | 'Reject' | 'Slash' | 'Abstain' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId, VoteKind]>;
  645. };
  646. session: {
  647. /**
  648. * Removes any session key(s) of the function caller.
  649. * This doesn't take effect until the next session.
  650. *
  651. * The dispatch origin of this function must be signed.
  652. *
  653. * # <weight>
  654. * - Complexity: `O(1)` in number of key types.
  655. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  656. * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
  657. * - DbWrites: `NextKeys`, `origin account`
  658. * - DbWrites per key id: `KeyOwnder`
  659. * # </weight>
  660. **/
  661. purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  662. /**
  663. * Sets the session key(s) of the function caller to `keys`.
  664. * Allows an account to set its session key prior to becoming a validator.
  665. * This doesn't take effect until the next session.
  666. *
  667. * The dispatch origin of this function must be signed.
  668. *
  669. * # <weight>
  670. * - Complexity: `O(1)`
  671. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  672. * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
  673. * - DbWrites: `origin account`, `NextKeys`
  674. * - DbReads per key id: `KeyOwner`
  675. * - DbWrites per key id: `KeyOwner`
  676. * # </weight>
  677. **/
  678. setKeys: AugmentedSubmittable<(keys: Keys, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Keys, Bytes]>;
  679. };
  680. staking: {
  681. /**
  682. * Take the origin account as a stash and lock up `value` of its balance. `controller` will
  683. * be the account that controls it.
  684. *
  685. * `value` must be more than the `minimum_balance` specified by `T::Currency`.
  686. *
  687. * The dispatch origin for this call must be _Signed_ by the stash account.
  688. *
  689. * Emits `Bonded`.
  690. *
  691. * # <weight>
  692. * - Independent of the arguments. Moderate complexity.
  693. * - O(1).
  694. * - Three extra DB entries.
  695. *
  696. * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
  697. * unless the `origin` falls below _existential deposit_ and gets removed as dust.
  698. * ------------------
  699. * Weight: O(1)
  700. * DB Weight:
  701. * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
  702. * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
  703. * # </weight>
  704. **/
  705. 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]>;
  706. /**
  707. * Add some extra amount that have appeared in the stash `free_balance` into the balance up
  708. * for staking.
  709. *
  710. * Use this if there are additional funds in your stash account that you wish to bond.
  711. * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
  712. * that can be added.
  713. *
  714. * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
  715. * it can be only called when [`EraElectionStatus`] is `Closed`.
  716. *
  717. * Emits `Bonded`.
  718. *
  719. * # <weight>
  720. * - Independent of the arguments. Insignificant complexity.
  721. * - O(1).
  722. * - One DB entry.
  723. * ------------
  724. * DB Weight:
  725. * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
  726. * - Write: [Origin Account], Locks, Ledger
  727. * # </weight>
  728. **/
  729. bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
  730. /**
  731. * Cancel enactment of a deferred slash.
  732. *
  733. * Can be called by the `T::SlashCancelOrigin`.
  734. *
  735. * Parameters: era and indices of the slashes for that era to kill.
  736. *
  737. * # <weight>
  738. * Complexity: O(U + S)
  739. * with U unapplied slashes weighted with U=1000
  740. * and S is the number of slash indices to be canceled.
  741. * - Read: Unapplied Slashes
  742. * - Write: Unapplied Slashes
  743. * # </weight>
  744. **/
  745. cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [EraIndex, Vec<u32>]>;
  746. /**
  747. * Declare no desire to either validate or nominate.
  748. *
  749. * Effects will be felt at the beginning of the next era.
  750. *
  751. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  752. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  753. *
  754. * # <weight>
  755. * - Independent of the arguments. Insignificant complexity.
  756. * - Contains one read.
  757. * - Writes are limited to the `origin` account key.
  758. * --------
  759. * Weight: O(1)
  760. * DB Weight:
  761. * - Read: EraElectionStatus, Ledger
  762. * - Write: Validators, Nominators
  763. * # </weight>
  764. **/
  765. chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  766. /**
  767. * Force there to be a new era at the end of the next session. After this, it will be
  768. * reset to normal (non-forced) behaviour.
  769. *
  770. * The dispatch origin must be Root.
  771. *
  772. * # <weight>
  773. * - No arguments.
  774. * - Weight: O(1)
  775. * - Write ForceEra
  776. * # </weight>
  777. **/
  778. forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  779. /**
  780. * Force there to be a new era at the end of sessions indefinitely.
  781. *
  782. * The dispatch origin must be Root.
  783. *
  784. * # <weight>
  785. * - Weight: O(1)
  786. * - Write: ForceEra
  787. * # </weight>
  788. **/
  789. forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  790. /**
  791. * Force there to be no new eras indefinitely.
  792. *
  793. * The dispatch origin must be Root.
  794. *
  795. * # <weight>
  796. * - No arguments.
  797. * - Weight: O(1)
  798. * - Write: ForceEra
  799. * # </weight>
  800. **/
  801. forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  802. /**
  803. * Force a current staker to become completely unstaked, immediately.
  804. *
  805. * The dispatch origin must be Root.
  806. *
  807. * # <weight>
  808. * O(S) where S is the number of slashing spans to be removed
  809. * Reads: Bonded, Slashing Spans, Account, Locks
  810. * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
  811. * Writes Each: SpanSlash * S
  812. * # </weight>
  813. **/
  814. forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
  815. /**
  816. * Increments the ideal number of validators.
  817. *
  818. * The dispatch origin must be Root.
  819. *
  820. * # <weight>
  821. * Same as [`set_validator_count`].
  822. * # </weight>
  823. **/
  824. increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
  825. /**
  826. * Declare the desire to nominate `targets` for the origin controller.
  827. *
  828. * Effects will be felt at the beginning of the next era. This can only be called when
  829. * [`EraElectionStatus`] is `Closed`.
  830. *
  831. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  832. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  833. *
  834. * # <weight>
  835. * - The transaction's complexity is proportional to the size of `targets` (N)
  836. * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
  837. * - Both the reads and writes follow a similar pattern.
  838. * ---------
  839. * Weight: O(N)
  840. * where N is the number of targets
  841. * DB Weight:
  842. * - Reads: Era Election Status, Ledger, Current Era
  843. * - Writes: Validators, Nominators
  844. * # </weight>
  845. **/
  846. nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<LookupSource>]>;
  847. /**
  848. * Pay out all the stakers behind a single validator for a single era.
  849. *
  850. * - `validator_stash` is the stash account of the validator. Their nominators, up to
  851. * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
  852. * - `era` may be any era between `[current_era - history_depth; current_era]`.
  853. *
  854. * The origin of this call must be _Signed_. Any account can call this function, even if
  855. * it is not one of the stakers.
  856. *
  857. * This can only be called when [`EraElectionStatus`] is `Closed`.
  858. *
  859. * # <weight>
  860. * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
  861. * - Contains a limited number of reads and writes.
  862. * -----------
  863. * N is the Number of payouts for the validator (including the validator)
  864. * Weight:
  865. * - Reward Destination Staked: O(N)
  866. * - Reward Destination Controller (Creating): O(N)
  867. * DB Weight:
  868. * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
  869. * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
  870. * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
  871. * - Write Each: System Account, Locks, Ledger (3 items)
  872. *
  873. * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
  874. * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
  875. * # </weight>
  876. **/
  877. payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, EraIndex]>;
  878. /**
  879. * Remove all data structure concerning a staker/stash once its balance is zero.
  880. * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
  881. * and the target `stash` must have no funds left.
  882. *
  883. * This can be called from any origin.
  884. *
  885. * - `stash`: The stash account to reap. Its balance must be zero.
  886. *
  887. * # <weight>
  888. * Complexity: O(S) where S is the number of slashing spans on the account.
  889. * DB Weight:
  890. * - Reads: Stash Account, Bonded, Slashing Spans, Locks
  891. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
  892. * - Writes Each: SpanSlash * S
  893. * # </weight>
  894. **/
  895. reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
  896. /**
  897. * Rebond a portion of the stash scheduled to be unlocked.
  898. *
  899. * The dispatch origin must be signed by the controller, and it can be only called when
  900. * [`EraElectionStatus`] is `Closed`.
  901. *
  902. * # <weight>
  903. * - Time complexity: O(L), where L is unlocking chunks
  904. * - Bounded by `MAX_UNLOCKING_CHUNKS`.
  905. * - Storage changes: Can't increase storage, only decrease it.
  906. * ---------------
  907. * - DB Weight:
  908. * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
  909. * - Writes: [Origin Account], Locks, Ledger
  910. * # </weight>
  911. **/
  912. rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
  913. /**
  914. * Scale up the ideal number of validators by a factor.
  915. *
  916. * The dispatch origin must be Root.
  917. *
  918. * # <weight>
  919. * Same as [`set_validator_count`].
  920. * # </weight>
  921. **/
  922. scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
  923. /**
  924. * (Re-)set the controller of a stash.
  925. *
  926. * Effects will be felt at the beginning of the next era.
  927. *
  928. * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
  929. *
  930. * # <weight>
  931. * - Independent of the arguments. Insignificant complexity.
  932. * - Contains a limited number of reads.
  933. * - Writes are limited to the `origin` account key.
  934. * ----------
  935. * Weight: O(1)
  936. * DB Weight:
  937. * - Read: Bonded, Ledger New Controller, Ledger Old Controller
  938. * - Write: Bonded, Ledger New Controller, Ledger Old Controller
  939. * # </weight>
  940. **/
  941. setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
  942. /**
  943. * Set `HistoryDepth` value. This function will delete any history information
  944. * when `HistoryDepth` is reduced.
  945. *
  946. * Parameters:
  947. * - `new_history_depth`: The new history depth you would like to set.
  948. * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
  949. * This should report all the storage items that will be deleted by clearing old
  950. * era history. Needed to report an accurate weight for the dispatch. Trusted by
  951. * `Root` to report an accurate number.
  952. *
  953. * Origin must be root.
  954. *
  955. * # <weight>
  956. * - E: Number of history depths removed, i.e. 10 -> 7 = 3
  957. * - Weight: O(E)
  958. * - DB Weight:
  959. * - Reads: Current Era, History Depth
  960. * - Writes: History Depth
  961. * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
  962. * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
  963. * # </weight>
  964. **/
  965. setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<EraIndex>, Compact<u32>]>;
  966. /**
  967. * Set the validators who cannot be slashed (if any).
  968. *
  969. * The dispatch origin must be Root.
  970. *
  971. * # <weight>
  972. * - O(V)
  973. * - Write: Invulnerables
  974. * # </weight>
  975. **/
  976. setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
  977. /**
  978. * (Re-)set the payment target for a controller.
  979. *
  980. * Effects will be felt at the beginning of the next era.
  981. *
  982. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  983. *
  984. * # <weight>
  985. * - Independent of the arguments. Insignificant complexity.
  986. * - Contains a limited number of reads.
  987. * - Writes are limited to the `origin` account key.
  988. * ---------
  989. * - Weight: O(1)
  990. * - DB Weight:
  991. * - Read: Ledger
  992. * - Write: Payee
  993. * # </weight>
  994. **/
  995. setPayee: AugmentedSubmittable<(payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [RewardDestination]>;
  996. /**
  997. * Sets the ideal number of validators.
  998. *
  999. * The dispatch origin must be Root.
  1000. *
  1001. * # <weight>
  1002. * Weight: O(1)
  1003. * Write: Validator Count
  1004. * # </weight>
  1005. **/
  1006. setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
  1007. /**
  1008. * Submit an election result to the chain. If the solution:
  1009. *
  1010. * 1. is valid.
  1011. * 2. has a better score than a potentially existing solution on chain.
  1012. *
  1013. * then, it will be _put_ on chain.
  1014. *
  1015. * A solution consists of two pieces of data:
  1016. *
  1017. * 1. `winners`: a flat vector of all the winners of the round.
  1018. * 2. `assignments`: the compact version of an assignment vector that encodes the edge
  1019. * weights.
  1020. *
  1021. * Both of which may be computed using _phragmen_, or any other algorithm.
  1022. *
  1023. * Additionally, the submitter must provide:
  1024. *
  1025. * - The `score` that they claim their solution has.
  1026. *
  1027. * Both validators and nominators will be represented by indices in the solution. The
  1028. * indices should respect the corresponding types ([`ValidatorIndex`] and
  1029. * [`NominatorIndex`]). Moreover, they should be valid when used to index into
  1030. * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
  1031. * solution to be rejected. These two storage items are set during the election window and
  1032. * may be used to determine the indices.
  1033. *
  1034. * A solution is valid if:
  1035. *
  1036. * 0. It is submitted when [`EraElectionStatus`] is `Open`.
  1037. * 1. Its claimed score is equal to the score computed on-chain.
  1038. * 2. Presents the correct number of winners.
  1039. * 3. All indexes must be value according to the snapshot vectors. All edge values must
  1040. * also be correct and should not overflow the granularity of the ratio type (i.e. 256
  1041. * or billion).
  1042. * 4. For each edge, all targets are actually nominated by the voter.
  1043. * 5. Has correct self-votes.
  1044. *
  1045. * A solutions score is consisted of 3 parameters:
  1046. *
  1047. * 1. `min { support.total }` for each support of a winner. This value should be maximized.
  1048. * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
  1049. * 3. `sum { support.total^2 }` for each support of a winner. This value should be
  1050. * minimized (to ensure less variance)
  1051. *
  1052. * # <weight>
  1053. * The transaction is assumed to be the longest path, a better solution.
  1054. * - Initial solution is almost the same.
  1055. * - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
  1056. * # </weight>
  1057. **/
  1058. 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]>;
  1059. /**
  1060. * Unsigned version of `submit_election_solution`.
  1061. *
  1062. * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
  1063. * from the local node to be included. In other words, only the block author can include a
  1064. * transaction in the block.
  1065. *
  1066. * # <weight>
  1067. * See `crate::weight` module.
  1068. * # </weight>
  1069. **/
  1070. 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]>;
  1071. /**
  1072. * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
  1073. * period ends. If this leaves an amount actively bonded less than
  1074. * T::Currency::minimum_balance(), then it is increased to the full amount.
  1075. *
  1076. * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
  1077. * the funds out of management ready for transfer.
  1078. *
  1079. * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
  1080. * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
  1081. * to be called first to remove some of the chunks (if possible).
  1082. *
  1083. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  1084. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  1085. *
  1086. * Emits `Unbonded`.
  1087. *
  1088. * See also [`Call::withdraw_unbonded`].
  1089. *
  1090. * # <weight>
  1091. * - Independent of the arguments. Limited but potentially exploitable complexity.
  1092. * - Contains a limited number of reads.
  1093. * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
  1094. * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
  1095. * The only way to clean the aforementioned storage item is also user-controlled via
  1096. * `withdraw_unbonded`.
  1097. * - One DB entry.
  1098. * ----------
  1099. * Weight: O(1)
  1100. * DB Weight:
  1101. * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
  1102. * - Write: Locks, Ledger, BalanceOf Stash,
  1103. * </weight>
  1104. **/
  1105. unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
  1106. /**
  1107. * Declare the desire to validate for the origin controller.
  1108. *
  1109. * Effects will be felt at the beginning of the next era.
  1110. *
  1111. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  1112. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  1113. *
  1114. * # <weight>
  1115. * - Independent of the arguments. Insignificant complexity.
  1116. * - Contains a limited number of reads.
  1117. * - Writes are limited to the `origin` account key.
  1118. * -----------
  1119. * Weight: O(1)
  1120. * DB Weight:
  1121. * - Read: Era Election Status, Ledger
  1122. * - Write: Nominators, Validators
  1123. * # </weight>
  1124. **/
  1125. validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any; blocked?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ValidatorPrefs]>;
  1126. /**
  1127. * Remove any unlocked chunks from the `unlocking` queue from our management.
  1128. *
  1129. * This essentially frees up that balance to be used by the stash account to do
  1130. * whatever it wants.
  1131. *
  1132. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  1133. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  1134. *
  1135. * Emits `Withdrawn`.
  1136. *
  1137. * See also [`Call::unbond`].
  1138. *
  1139. * # <weight>
  1140. * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
  1141. * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
  1142. * indirectly user-controlled. See [`unbond`] for more detail.
  1143. * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
  1144. * - Writes are limited to the `origin` account key.
  1145. * ---------------
  1146. * Complexity O(S) where S is the number of slashing spans to remove
  1147. * Update:
  1148. * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
  1149. * - Writes: [Origin Account], Locks, Ledger
  1150. * Kill:
  1151. * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
  1152. * Account], Locks, BalanceOf stash
  1153. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
  1154. * [Origin Account], Locks, BalanceOf stash.
  1155. * - Writes Each: SpanSlash * S
  1156. * NOTE: Weight annotation is the kill scenario, we refund otherwise.
  1157. * # </weight>
  1158. **/
  1159. withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
  1160. };
  1161. storage: {
  1162. /**
  1163. * A storage provider signals that the data object was successfully uploaded to its storage.
  1164. **/
  1165. 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>]>;
  1166. /**
  1167. * Accept the storage bucket invitation. An invitation must match the worker_id parameter.
  1168. **/
  1169. acceptStorageBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId]>;
  1170. /**
  1171. * Cancel pending storage bucket invite. An invitation must be pending.
  1172. **/
  1173. cancelStorageBucketOperatorInvite: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
  1174. /**
  1175. * Create storage bucket.
  1176. **/
  1177. 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]>;
  1178. /**
  1179. * Delete storage bucket. Must be empty. Storage operator must be missing.
  1180. **/
  1181. deleteStorageBucket: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
  1182. /**
  1183. * Invite storage bucket operator. Must be missing.
  1184. **/
  1185. inviteStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, operatorId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, WorkerId]>;
  1186. /**
  1187. * Removes storage bucket operator. Must be invited.
  1188. **/
  1189. removeStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
  1190. /**
  1191. * Sets storage bucket voucher limits.
  1192. **/
  1193. setStorageBucketVoucherLimits: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, newObjectsSizeLimit: u64 | AnyNumber | Uint8Array, newObjectsNumberLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, u64, u64]>;
  1194. /**
  1195. * Sets storage operator metadata (eg.: storage node URL).
  1196. **/
  1197. setStorageOperatorMetadata: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, Bytes]>;
  1198. /**
  1199. * Upload new data objects. Development mode.
  1200. **/
  1201. sudoUploadDataObjects: AugmentedSubmittable<(params: UploadParameters | { authenticationKey?: any; bagId?: any; objectCreationList?: any; deletionPrizeSourceAccountId?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UploadParameters]>;
  1202. /**
  1203. * Add and remove hashes to the current blacklist.
  1204. **/
  1205. updateBlacklist: AugmentedSubmittable<(removeHashes: BTreeSet<ContentId>, addHashes: BTreeSet<ContentId>) => SubmittableExtrinsic<ApiType>, [BTreeSet<ContentId>, BTreeSet<ContentId>]>;
  1206. /**
  1207. * Updates size-based pricing of new objects uploaded.
  1208. **/
  1209. updateDataSizeFee: AugmentedSubmittable<(newDataSizeFee: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1210. /**
  1211. * Update number of storage buckets used in given dynamic bag creation policy.
  1212. **/
  1213. updateNumberOfStorageBucketsInDynamicBagCreationPolicy: AugmentedSubmittable<(dynamicBagType: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array, numberOfStorageBuckets: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DynamicBagType, u64]>;
  1214. /**
  1215. * Update whether new bags are being accepted for storage.
  1216. **/
  1217. updateStorageBucketStatus: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, bool]>;
  1218. /**
  1219. * Updates storage buckets for a bag..
  1220. **/
  1221. updateStorageBucketsForBag: AugmentedSubmittable<(bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, addBuckets: BTreeSet<StorageBucketId>, removeBuckets: BTreeSet<StorageBucketId>) => SubmittableExtrinsic<ApiType>, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
  1222. /**
  1223. * Updates "Storage buckets per bag" number limit.
  1224. **/
  1225. updateStorageBucketsPerBagLimit: AugmentedSubmittable<(newLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  1226. /**
  1227. * Updates "Storage buckets voucher max limits".
  1228. **/
  1229. updateStorageBucketsVoucherMaxLimits: AugmentedSubmittable<(newObjectsSize: u64 | AnyNumber | Uint8Array, newObjectsNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
  1230. /**
  1231. * Update whether uploading is globally blocked.
  1232. **/
  1233. updateUploadingBlockedStatus: AugmentedSubmittable<(newStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
  1234. };
  1235. storageWorkingGroup: {
  1236. /**
  1237. * Begin accepting worker applications to an opening that is active.
  1238. * Require signed leader origin or the root (to accept applications for the leader position).
  1239. **/
  1240. acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  1241. /**
  1242. * Add an opening for a worker role.
  1243. * Require signed leader origin or the root (to add opening for the leader position).
  1244. **/
  1245. 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]>;
  1246. /**
  1247. * Apply on a worker opening.
  1248. **/
  1249. 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]>;
  1250. /**
  1251. * Begin reviewing, and therefore not accepting new applications.
  1252. * Require signed leader origin or the root (to begin review applications for the leader position).
  1253. **/
  1254. beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
  1255. /**
  1256. * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
  1257. * Can be decreased to zero, no actions on zero stake.
  1258. * Require signed leader origin or the root (to decrease the leader stake).
  1259. **/
  1260. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1261. /**
  1262. * Fill opening for worker/lead.
  1263. * Require signed leader origin or the root (to fill opening for the leader position).
  1264. **/
  1265. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
  1266. /**
  1267. * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
  1268. * role_account_id to the stake. No limits on the stake.
  1269. **/
  1270. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1271. /**
  1272. * Leave the role by the active worker.
  1273. **/
  1274. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
  1275. /**
  1276. * Sets the capacity to enable working group budget. Requires root origin.
  1277. **/
  1278. setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
  1279. /**
  1280. * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
  1281. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1282. * Require signed leader origin or the root (to slash the leader stake).
  1283. **/
  1284. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
  1285. /**
  1286. * Terminate the worker application. Can be done by the lead only.
  1287. **/
  1288. terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  1289. /**
  1290. * Terminate the active worker by the lead.
  1291. * Require signed leader origin or the root (to terminate the leader role).
  1292. **/
  1293. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
  1294. /**
  1295. * Update the reward account associated with a set reward relationship for the active worker.
  1296. **/
  1297. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1298. /**
  1299. * Update the reward amount associated with a set reward relationship for the active worker.
  1300. * Require signed leader origin or the root (to update leader reward amount).
  1301. **/
  1302. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
  1303. /**
  1304. * Update the associated role account of the active worker/lead.
  1305. **/
  1306. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
  1307. /**
  1308. * Withdraw the worker application. Can be done by the worker itself only.
  1309. **/
  1310. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
  1311. };
  1312. sudo: {
  1313. /**
  1314. * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
  1315. *
  1316. * The dispatch origin for this call must be _Signed_.
  1317. *
  1318. * # <weight>
  1319. * - O(1).
  1320. * - Limited storage reads.
  1321. * - One DB change.
  1322. * # </weight>
  1323. **/
  1324. setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
  1325. /**
  1326. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  1327. *
  1328. * The dispatch origin for this call must be _Signed_.
  1329. *
  1330. * # <weight>
  1331. * - O(1).
  1332. * - Limited storage reads.
  1333. * - One DB write (event).
  1334. * - Weight of derivative `call` execution + 10,000.
  1335. * # </weight>
  1336. **/
  1337. sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
  1338. /**
  1339. * Authenticates the sudo key and dispatches a function call with `Signed` origin from
  1340. * a given account.
  1341. *
  1342. * The dispatch origin for this call must be _Signed_.
  1343. *
  1344. * # <weight>
  1345. * - O(1).
  1346. * - Limited storage reads.
  1347. * - One DB write (event).
  1348. * - Weight of derivative `call` execution + 10,000.
  1349. * # </weight>
  1350. **/
  1351. sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Call]>;
  1352. /**
  1353. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  1354. * This function does not check the weight of the call, and instead allows the
  1355. * Sudo user to specify the weight of the call.
  1356. *
  1357. * The dispatch origin for this call must be _Signed_.
  1358. *
  1359. * # <weight>
  1360. * - O(1).
  1361. * - The weight of this call is defined by the caller.
  1362. * # </weight>
  1363. **/
  1364. sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
  1365. };
  1366. system: {
  1367. /**
  1368. * A dispatch that will fill the block weight up to the given ratio.
  1369. **/
  1370. fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
  1371. /**
  1372. * Kill all storage items with a key that starts with the given prefix.
  1373. *
  1374. * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
  1375. * the prefix we are removing to accurately calculate the weight of this function.
  1376. *
  1377. * # <weight>
  1378. * - `O(P)` where `P` amount of keys with prefix `prefix`
  1379. * - `P` storage deletions.
  1380. * - Base Weight: 0.834 * P µs
  1381. * - Writes: Number of subkeys + 1
  1382. * # </weight>
  1383. **/
  1384. killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Key, u32]>;
  1385. /**
  1386. * Kill some items from storage.
  1387. *
  1388. * # <weight>
  1389. * - `O(IK)` where `I` length of `keys` and `K` length of one key
  1390. * - `I` storage deletions.
  1391. * - Base Weight: .378 * i µs
  1392. * - Writes: Number of items
  1393. * # </weight>
  1394. **/
  1395. killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Key>]>;
  1396. /**
  1397. * Make some on-chain remark.
  1398. *
  1399. * # <weight>
  1400. * - `O(1)`
  1401. * - Base Weight: 0.665 µs, independent of remark length.
  1402. * - No DB operations.
  1403. * # </weight>
  1404. **/
  1405. remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  1406. /**
  1407. * Set the new changes trie configuration.
  1408. *
  1409. * # <weight>
  1410. * - `O(1)`
  1411. * - 1 storage write or delete (codec `O(1)`).
  1412. * - 1 call to `deposit_log`: Uses `append` API, so O(1)
  1413. * - Base Weight: 7.218 µs
  1414. * - DB Weight:
  1415. * - Writes: Changes Trie, System Digest
  1416. * # </weight>
  1417. **/
  1418. setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<ChangesTrieConfiguration>]>;
  1419. /**
  1420. * Set the new runtime code.
  1421. *
  1422. * # <weight>
  1423. * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
  1424. * - 1 storage write (codec `O(C)`).
  1425. * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
  1426. * - 1 event.
  1427. * The weight of this function is dependent on the runtime, but generally this is very expensive.
  1428. * We will treat this as a full block.
  1429. * # </weight>
  1430. **/
  1431. setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  1432. /**
  1433. * Set the new runtime code without doing any checks of the given `code`.
  1434. *
  1435. * # <weight>
  1436. * - `O(C)` where `C` length of `code`
  1437. * - 1 storage write (codec `O(C)`).
  1438. * - 1 event.
  1439. * The weight of this function is dependent on the runtime. We will treat this as a full block.
  1440. * # </weight>
  1441. **/
  1442. setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
  1443. /**
  1444. * Set the number of pages in the WebAssembly environment's heap.
  1445. *
  1446. * # <weight>
  1447. * - `O(1)`
  1448. * - 1 storage write.
  1449. * - Base Weight: 1.405 µs
  1450. * - 1 write to HEAP_PAGES
  1451. * # </weight>
  1452. **/
  1453. setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
  1454. /**
  1455. * Set some items of storage.
  1456. *
  1457. * # <weight>
  1458. * - `O(I)` where `I` length of `items`
  1459. * - `I` storage writes (`O(1)`).
  1460. * - Base Weight: 0.568 * i µs
  1461. * - Writes: Number of items
  1462. * # </weight>
  1463. **/
  1464. setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>, [Vec<KeyValue>]>;
  1465. /**
  1466. * Kill the sending account, assuming there are no references outstanding and the composite
  1467. * data is equal to its default value.
  1468. *
  1469. * # <weight>
  1470. * - `O(1)`
  1471. * - 1 storage read and deletion.
  1472. * --------------------
  1473. * Base Weight: 8.626 µs
  1474. * No DB Read or Write operations because caller is already in overlay
  1475. * # </weight>
  1476. **/
  1477. suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
  1478. };
  1479. timestamp: {
  1480. /**
  1481. * Set the current time.
  1482. *
  1483. * This call should be invoked exactly once per block. It will panic at the finalization
  1484. * phase, if this call hasn't been invoked by that time.
  1485. *
  1486. * The timestamp should be greater than the previous one by the amount specified by
  1487. * `MinimumPeriod`.
  1488. *
  1489. * The dispatch origin for this call must be `Inherent`.
  1490. *
  1491. * # <weight>
  1492. * - `O(T)` where `T` complexity of `on_timestamp_set`
  1493. * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
  1494. * - 1 event handler `on_timestamp_set` `O(T)`.
  1495. * # </weight>
  1496. **/
  1497. set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<Moment>]>;
  1498. };
  1499. utility: {
  1500. /**
  1501. * Send a call through an indexed pseudonym of the sender.
  1502. *
  1503. * Filter from origin are passed along. The call will be dispatched with an origin which
  1504. * use the same filter as the origin of this call.
  1505. *
  1506. * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
  1507. * because you expect `proxy` to have been used prior in the call stack and you do not want
  1508. * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
  1509. * in the Multisig pallet instead.
  1510. *
  1511. * NOTE: Prior to version *12, this was called `as_limited_sub`.
  1512. *
  1513. * The dispatch origin for this call must be _Signed_.
  1514. **/
  1515. asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
  1516. /**
  1517. * Send a batch of dispatch calls.
  1518. *
  1519. * May be called from any origin.
  1520. *
  1521. * - `calls`: The calls to be dispatched from the same origin.
  1522. *
  1523. * If origin is root then call are dispatch without checking origin filter. (This includes
  1524. * bypassing `frame_system::Trait::BaseCallFilter`).
  1525. *
  1526. * # <weight>
  1527. * - Base weight: 14.39 + .987 * c µs
  1528. * - Plus the sum of the weights of the `calls`.
  1529. * - Plus one additional event. (repeat read/write)
  1530. * # </weight>
  1531. *
  1532. * This will return `Ok` in all circumstances. To determine the success of the batch, an
  1533. * event is deposited. If a call failed and the batch was interrupted, then the
  1534. * `BatchInterrupted` event is deposited, along with the number of successful calls made
  1535. * and the error of the failed call. If all were successful, then the `BatchCompleted`
  1536. * event is deposited.
  1537. **/
  1538. batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
  1539. };
  1540. versionedStorePermissions: {
  1541. 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>]>;
  1542. 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>]>;
  1543. createClass: AugmentedSubmittable<(name: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, classPermissions: ClassPermissionsType | null) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes, ClassPermissionsType]>;
  1544. createClassWithDefaultPermissions: AugmentedSubmittable<(name: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes]>;
  1545. /**
  1546. * 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
  1547. * associated with signer.
  1548. **/
  1549. createEntity: AugmentedSubmittable<(withCredential: Option<Credential> | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Credential>, ClassId]>;
  1550. setClassAddSchemasSet: AugmentedSubmittable<(withCredential: Option<Credential> | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, credentialSet: CredentialSet) => SubmittableExtrinsic<ApiType>, [Option<Credential>, ClassId, CredentialSet]>;
  1551. /**
  1552. * Sets the admins for a class
  1553. **/
  1554. setClassAdmins: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, admins: CredentialSet) => SubmittableExtrinsic<ApiType>, [ClassId, CredentialSet]>;
  1555. setClassCreateEntitiesSet: AugmentedSubmittable<(withCredential: Option<Credential> | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, credentialSet: CredentialSet) => SubmittableExtrinsic<ApiType>, [Option<Credential>, ClassId, CredentialSet]>;
  1556. setClassEntitiesCanBeCreated: AugmentedSubmittable<(withCredential: Option<Credential> | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, canBeCreated: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Credential>, ClassId, bool]>;
  1557. 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]>;
  1558. setClassReferenceConstraint: AugmentedSubmittable<(withCredential: Option<Credential> | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, constraint: ReferenceConstraint | null) => SubmittableExtrinsic<ApiType>, [Option<Credential>, ClassId, ReferenceConstraint]>;
  1559. transaction: AugmentedSubmittable<(operations: Vec<Operation> | (Operation | null)[]) => SubmittableExtrinsic<ApiType>, [Vec<Operation>]>;
  1560. 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>]>;
  1561. };
  1562. }
  1563. export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
  1564. (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
  1565. }
  1566. }