augment-api-tx.ts 98 KB

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