augment-api-tx.ts 81 KB

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