augment-api-tx.ts 105 KB

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