augment-api-tx.ts 84 KB

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