augment-api-tx.ts 128 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import { AnyNumber, ITuple } from '@polkadot/types/types';
  4. import { BTreeMap, BTreeSet, Compact, Option, Vec } from '@polkadot/types/codec';
  5. import { Bytes, bool, u16, u32, u64, u8 } from '@polkadot/types/primitive';
  6. import { Actor, ActorId, ApplicationId, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, ClassId, ClassPermissions, ContentId, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, EntityController, EntityId, EntryId, ForumUserId, FundingRequestParameters, GeneralProposalParameters, InputPropertyValue, InputValue, InviteMembershipParameters, MemberId, MemoText, ModeratorId, Nonce, OpeningId, OpeningType, OperationType, OracleJudgment, ParticipantId, Poll, PostId, PostReactionId, PrivilegedActor, Property, PropertyId, ProposalDetailsOf, ProposalId, ReplyId, ReplyToDelete, SchemaId, StakePolicy, StorageProviderId, ThreadId, ThreadMode, Url, VecMaxLength, VoteKind, WorkerId, WorkingGroup } from './all';
  7. import { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
  8. import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
  9. import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
  10. import { Heartbeat } from '@polkadot/types/interfaces/imOnline';
  11. import { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
  12. import { Keys } from '@polkadot/types/interfaces/session';
  13. import { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
  14. import { Key } from '@polkadot/types/interfaces/system';
  15. import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types';
  16. declare module '@polkadot/api/types/submittable' {
  17. export interface AugmentedSubmittables<ApiType> {
  18. authorship: {
  19. /**
  20. * Provide a set of uncles.
  21. **/
  22. setUncles: AugmentedSubmittable<(newUncles: Vec<Header> | (Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  23. };
  24. babe: {
  25. /**
  26. * Report authority equivocation/misbehavior. This method will verify
  27. * the equivocation proof and validate the given key ownership proof
  28. * against the extracted offender. If both are valid, the offence will
  29. * be reported.
  30. **/
  31. reportEquivocation: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  32. /**
  33. * Report authority equivocation/misbehavior. This method will verify
  34. * the equivocation proof and validate the given key ownership proof
  35. * against the extracted offender. If both are valid, the offence will
  36. * be reported.
  37. * This extrinsic must be called unsigned and it is expected that only
  38. * block authors will call it (validated in `ValidateUnsigned`), as such
  39. * if the block author is defined it will be defined as the equivocation
  40. * reporter.
  41. **/
  42. reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  43. };
  44. balances: {
  45. /**
  46. * Exactly as `transfer`, except the origin must be root and the source account may be
  47. * specified.
  48. * # <weight>
  49. * - Same as transfer, but additional read and write because the source account is
  50. * not assumed to be in the overlay.
  51. * # </weight>
  52. **/
  53. forceTransfer: AugmentedSubmittable<(source: LookupSource | string | Uint8Array, dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  54. /**
  55. * Set the balances of a given account.
  56. *
  57. * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
  58. * also decrease the total issuance of the system (`TotalIssuance`).
  59. * If the new free or reserved balance is below the existential deposit,
  60. * it will reset the account nonce (`frame_system::AccountNonce`).
  61. *
  62. * The dispatch origin for this call is `root`.
  63. *
  64. * # <weight>
  65. * - Independent of the arguments.
  66. * - Contains a limited number of reads and writes.
  67. * ---------------------
  68. * - Base Weight:
  69. * - Creating: 27.56 µs
  70. * - Killing: 35.11 µs
  71. * - DB Weight: 1 Read, 1 Write to `who`
  72. * # </weight>
  73. **/
  74. setBalance: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, newFree: Compact<Balance> | AnyNumber | Uint8Array, newReserved: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  75. /**
  76. * Transfer some liquid free balance to another account.
  77. *
  78. * `transfer` will set the `FreeBalance` of the sender and receiver.
  79. * It will decrease the total issuance of the system by the `TransferFee`.
  80. * If the sender's account is below the existential deposit as a result
  81. * of the transfer, the account will be reaped.
  82. *
  83. * The dispatch origin for this call must be `Signed` by the transactor.
  84. *
  85. * # <weight>
  86. * - Dependent on arguments but not critical, given proper implementations for
  87. * input config types. See related functions below.
  88. * - It contains a limited number of reads and writes internally and no complex computation.
  89. *
  90. * Related functions:
  91. *
  92. * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
  93. * - Transferring balances to accounts that did not exist before will cause
  94. * `T::OnNewAccount::on_new_account` to be called.
  95. * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
  96. * - `transfer_keep_alive` works the same way as `transfer`, but has an additional
  97. * check that the transfer will not kill the origin account.
  98. * ---------------------------------
  99. * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
  100. * - DB Weight: 1 Read and 1 Write to destination account
  101. * - Origin account is already in memory, so no DB operations for them.
  102. * # </weight>
  103. **/
  104. transfer: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  105. /**
  106. * Same as the [`transfer`] call, but with a check that the transfer will not kill the
  107. * origin account.
  108. *
  109. * 99% of the time you want [`transfer`] instead.
  110. *
  111. * [`transfer`]: struct.Module.html#method.transfer
  112. * # <weight>
  113. * - Cheaper than transfer because account cannot be killed.
  114. * - Base Weight: 51.4 µs
  115. * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
  116. * #</weight>
  117. **/
  118. transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  119. };
  120. blog: {
  121. /**
  122. * Blog owner can create posts, related to a given blog, if related blog is unlocked
  123. *
  124. * <weight>
  125. *
  126. * ## Weight
  127. * `O (T + B)` where:
  128. * - `T` is the length of the title
  129. * - `B` is the length of the body
  130. * - DB:
  131. * - O(1) doesn't depend on the state or parameters
  132. * # </weight>
  133. **/
  134. createPost: AugmentedSubmittable<(title: Bytes | string | Uint8Array, body: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  135. /**
  136. * Create either root post reply or direct reply to reply
  137. * (Only accessible, if related blog and post are unlocked)
  138. * <weight>
  139. *
  140. * ## Weight
  141. * `O (T)` where:
  142. * - `T` is the length of the `text`
  143. * - DB:
  144. * - O(1) doesn't depend on the state or parameters
  145. * # </weight>
  146. **/
  147. createReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: Option<ReplyId> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  148. /**
  149. * Remove reply from storage
  150. *
  151. * <weight>
  152. *
  153. * ## Weight
  154. * `O (R)` where
  155. * - R is the number of replies to be deleted
  156. * - DB:
  157. * - O(R)
  158. * # </weight>
  159. **/
  160. deleteReplies: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, replies: Vec<ReplyToDelete> | (ReplyToDelete | { post_id?: any; reply_id?: any; hide?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  161. /**
  162. * Blog owner can edit post, related to a given blog (if unlocked)
  163. * with a new title and/or body
  164. * <weight>
  165. *
  166. * ## Weight
  167. * `O (T + B)` where:
  168. * - `T` is the length of the `new_title`
  169. * - `B` is the length of the `new_body`
  170. * - DB:
  171. * - O(1) doesn't depend on the state or parameters
  172. * # </weight>
  173. **/
  174. editPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newTitle: Option<Bytes> | null | object | string | Uint8Array, newBody: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  175. /**
  176. * Reply owner can edit reply with a new text
  177. * (Only accessible, if related blog and post are unlocked)
  178. *
  179. * <weight>
  180. *
  181. * ## Weight
  182. * `O (T)` where:
  183. * - `T` is the length of the `new_text`
  184. * - DB:
  185. * - O(1) doesn't depend on the state or parameters
  186. * # </weight>
  187. **/
  188. editReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: ReplyId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  189. /**
  190. * Blog owner can lock posts, related to a given blog,
  191. * making post immutable to any actions (replies creation, post editing, etc.)
  192. *
  193. * <weight>
  194. *
  195. * ## Weight
  196. * `O (1)` doesn't depends on the state or parameters
  197. * - DB:
  198. * - O(1) doesn't depend on the state or parameters
  199. * # </weight>
  200. **/
  201. lockPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  202. /**
  203. * Blog owner can unlock posts, related to a given blog,
  204. * making post accesible to previously forbidden actions
  205. *
  206. * <weight>
  207. *
  208. * ## Weight
  209. * `O (1)` doesn't depends on the state or parameters
  210. * - DB:
  211. * - O(1) doesn't depend on the state or parameters
  212. * # </weight>
  213. **/
  214. unlockPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  215. };
  216. bounty: {
  217. /**
  218. * Announce work entry for a successful bounty.
  219. * # <weight>
  220. *
  221. * ## weight
  222. * `O (1)`
  223. * - db:
  224. * - `O(1)` doesn't depend on the state or parameters
  225. * # </weight>
  226. **/
  227. announceWorkEntry: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  228. /**
  229. * Cancels a bounty.
  230. * It returns a cherry to creator and removes bounty.
  231. * # <weight>
  232. *
  233. * ## weight
  234. * `O (1)`
  235. * - db:
  236. * - `O(1)` doesn't depend on the state or parameters
  237. * # </weight>
  238. **/
  239. cancelBounty: AugmentedSubmittable<(creator: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  240. /**
  241. * Creates a bounty. Metadata stored in the transaction log but discarded after that.
  242. * <weight>
  243. *
  244. * ## Weight
  245. * `O (W)` where:
  246. * - `W` is the _metadata length.
  247. * - `M` is closed contract member list length.
  248. * - DB:
  249. * - O(M) (O(1) on open contract)
  250. * # </weight>
  251. **/
  252. createBounty: AugmentedSubmittable<(params: BountyCreationParameters | { oracle?: any; contract_type?: any; creator?: any; cherry?: any; entrant_stake?: any; funding_type?: any; work_period?: any; judging_period?: any } | string | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  253. /**
  254. * Provides bounty funding.
  255. * # <weight>
  256. *
  257. * ## weight
  258. * `O (1)`
  259. * - db:
  260. * - `O(1)` doesn't depend on the state or parameters
  261. * # </weight>
  262. **/
  263. fundBounty: AugmentedSubmittable<(funder: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  264. /**
  265. * Submits an oracle judgment for a bounty.
  266. * # <weight>
  267. *
  268. * ## weight
  269. * `O (N)`
  270. * - `N` is the work_data length,
  271. * - db:
  272. * - `O(N)`
  273. * # </weight>
  274. **/
  275. submitOracleJudgment: AugmentedSubmittable<(oracle: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, judgment: OracleJudgment | { Winner: any } | { Rejected: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  276. /**
  277. * Submit work for a bounty.
  278. * # <weight>
  279. *
  280. * ## weight
  281. * `O (N)`
  282. * - `N` is the work_data length,
  283. * - db:
  284. * - `O(1)` doesn't depend on the state or parameters
  285. * # </weight>
  286. **/
  287. submitWork: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array, workData: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  288. /**
  289. * Vetoes a bounty.
  290. * It returns a cherry to creator and removes bounty.
  291. * # <weight>
  292. *
  293. * ## weight
  294. * `O (1)`
  295. * - db:
  296. * - `O(1)` doesn't depend on the state or parameters
  297. * # </weight>
  298. **/
  299. vetoBounty: AugmentedSubmittable<(bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  300. /**
  301. * Withdraw bounty funding by a member or a council.
  302. * # <weight>
  303. *
  304. * ## weight
  305. * `O (1)`
  306. * - db:
  307. * - `O(1)` doesn't depend on the state or parameters
  308. * # </weight>
  309. **/
  310. withdrawFunding: AugmentedSubmittable<(funder: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  311. /**
  312. * Withdraw work entrant funds.
  313. * Both legitimate participants and winners get their stake unlocked. Winners also get a
  314. * bounty reward.
  315. * # <weight>
  316. *
  317. * ## weight
  318. * `O (1)`
  319. * - db:
  320. * - `O(1)` doesn't depend on the state or parameters
  321. * # </weight>
  322. **/
  323. withdrawWorkEntrantFunds: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  324. /**
  325. * Withdraw work entry for a bounty. Existing stake could be partially slashed.
  326. * # <weight>
  327. *
  328. * ## weight
  329. * `O (1)`
  330. * - db:
  331. * - `O(1)` doesn't depend on the state or parameters
  332. * # </weight>
  333. **/
  334. withdrawWorkEntry: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  335. };
  336. constitution: {
  337. /**
  338. * Sets the current constitution hash. Requires root origin.
  339. * # <weight>
  340. * - Complexity: `O(C)` where C is the length of the constitution text.
  341. * - Db reads: 0
  342. * - Db writes: 1 (constant value)
  343. * # </weight>
  344. **/
  345. amendConstitution: AugmentedSubmittable<(constitutionText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  346. };
  347. contentDirectory: {
  348. /**
  349. * Create new class schema from existing property ids and new properties
  350. **/
  351. addClassSchema: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, existingProperties: BTreeSet<PropertyId>, newProperties: Vec<Property> | (Property | { property_type?: any; required?: any; unique?: any; name?: any; description?: any; locking_policy?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  352. /**
  353. * Add new curator group to runtime storage
  354. **/
  355. addCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  356. /**
  357. * Add curator to curator group under given `curator_group_id`
  358. **/
  359. addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  360. /**
  361. * Add curator group under given `curator_group_id` as `Class` maintainer
  362. **/
  363. addMaintainerToClass: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  364. /**
  365. * Add schema support to entity under given `schema_id` and provided `property_values`
  366. **/
  367. addSchemaSupportToEntity: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, schemaId: SchemaId | AnyNumber | Uint8Array, newPropertyValues: BTreeMap<PropertyId, InputPropertyValue>) => SubmittableExtrinsic<ApiType>>;
  368. /**
  369. * Clear `PropertyValueVec` under given `entity_id` & `in_class_schema_property_id`
  370. **/
  371. clearEntityPropertyVector: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, inClassSchemaPropertyId: PropertyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  372. /**
  373. * Create new `Class` with provided parameters
  374. **/
  375. createClass: AugmentedSubmittable<(name: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, classPermissions: ClassPermissions | { any_member?: any; entity_creation_blocked?: any; all_entity_property_values_locked?: any; maintainers?: any } | string | Uint8Array, maximumEntitiesCount: EntityId | AnyNumber | Uint8Array, defaultEntityCreationVoucherUpperBound: EntityId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  376. /**
  377. * Create entity.
  378. * If someone is making an entity of this class for first time,
  379. * then a voucher is also added with the class limit as the default limit value.
  380. **/
  381. createEntity: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  382. /**
  383. * Insert `SingleInputPropertyValue` at given `index_in_property_vector`
  384. * into `PropertyValueVec` under `in_class_schema_property_id`
  385. **/
  386. insertAtEntityPropertyVector: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, inClassSchemaPropertyId: PropertyId | AnyNumber | Uint8Array, indexInPropertyVector: VecMaxLength | AnyNumber | Uint8Array, value: InputValue | { Bool: any } | { Uint16: any } | { Uint32: any } | { Uint64: any } | { Int16: any } | { Int32: any } | { Int64: any } | { Text: any } | { TextToHash: any } | { Reference: any } | string | Uint8Array, nonce: Nonce | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  387. /**
  388. * Remove value at given `index_in_property_vector`
  389. * from `PropertyValueVec` under `in_class_schema_property_id`
  390. **/
  391. removeAtEntityPropertyVector: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, inClassSchemaPropertyId: PropertyId | AnyNumber | Uint8Array, indexInPropertyVector: VecMaxLength | AnyNumber | Uint8Array, nonce: Nonce | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  392. /**
  393. * Remove curator from a given curator group
  394. **/
  395. removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  396. /**
  397. * Remove curator group under given `curator_group_id` from runtime storage
  398. **/
  399. removeCuratorGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  400. /**
  401. * Remove `Entity` under provided `entity_id`
  402. **/
  403. removeEntity: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  404. /**
  405. * Remove curator group under given `curator_group_id` from `Class` maintainers set
  406. **/
  407. removeMaintainerFromClass: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  408. /**
  409. * Set `is_active` status for curator group under given `curator_group_id`
  410. **/
  411. setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  412. /**
  413. * Batch transaction
  414. **/
  415. transaction: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, operations: Vec<OperationType> | (OperationType | { CreateEntity: any } | { UpdatePropertyValues: any } | { AddSchemaSupportToEntity: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  416. /**
  417. * Transfer ownership to new `EntityController` for `Entity` under given `entity_id`
  418. * `new_property_value_references_with_same_owner_flag_set` should be provided manually
  419. **/
  420. transferEntityOwnership: AugmentedSubmittable<(entityId: EntityId | AnyNumber | Uint8Array, newController: EntityController | { Maintainers: any } | { Member: any } | { Lead: any } | string | Uint8Array, newPropertyValueReferencesWithSameOwnerFlagSet: BTreeMap<PropertyId, InputPropertyValue>) => SubmittableExtrinsic<ApiType>>;
  421. /**
  422. * Update `ClassPermissions` under specific `class_id`
  423. **/
  424. updateClassPermissions: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, updatedAnyMember: Option<bool> | null | object | string | Uint8Array, updatedEntityCreationBlocked: Option<bool> | null | object | string | Uint8Array, updatedAllEntityPropertyValuesLocked: Option<bool> | null | object | string | Uint8Array, updatedMaintainers: Option<BTreeSet<CuratorGroupId>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  425. /**
  426. * Update `schema_status` under specific `schema_id` in `Class`
  427. **/
  428. updateClassSchemaStatus: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, schemaId: SchemaId | AnyNumber | Uint8Array, schemaStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  429. /**
  430. * Updates or creates new `EntityCreationVoucher` for given `EntityController` with individual limit
  431. **/
  432. updateEntityCreationVoucher: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, controller: EntityController | { Maintainers: any } | { Member: any } | { Lead: any } | string | Uint8Array, maximumEntitiesCount: EntityId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  433. /**
  434. * Update entity permissions
  435. **/
  436. updateEntityPermissions: AugmentedSubmittable<(entityId: EntityId | AnyNumber | Uint8Array, updatedFrozen: Option<bool> | null | object | string | Uint8Array, updatedReferenceable: Option<bool> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  437. /**
  438. * Update `Entity` `InputPropertyValue`'s with provided ones
  439. **/
  440. updateEntityPropertyValues: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, newPropertyValues: BTreeMap<PropertyId, InputPropertyValue>) => SubmittableExtrinsic<ApiType>>;
  441. };
  442. contentDirectoryWorkingGroup: {
  443. /**
  444. * Add a job opening for a regular worker/lead role.
  445. * Require signed leader origin or the root (to add opening for the leader position).
  446. *
  447. * # <weight>
  448. *
  449. * ## Weight
  450. * `O (D)` where:
  451. * - `D` is the length of `description`
  452. * - DB:
  453. * - O(1) doesn't depend on the state or parameters
  454. * # </weight>
  455. **/
  456. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  457. /**
  458. * Apply on a worker opening.
  459. *
  460. * # <weight>
  461. *
  462. * ## Weight
  463. * `O (D)` where:
  464. * - `D` is the length of `p.description`
  465. * - DB:
  466. * - O(1) doesn't depend on the state or parameters
  467. * # </weight>
  468. **/
  469. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  470. /**
  471. * Cancel an opening for the regular worker/lead position.
  472. * Require signed leader origin or the root (to cancel opening for the leader position).
  473. *
  474. * # <weight>
  475. *
  476. * ## Weight
  477. * `O (1)`
  478. * - DB:
  479. * - O(1) doesn't depend on the state or parameters
  480. * # </weight>
  481. **/
  482. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  483. /**
  484. * Decreases the regular worker/lead stake and returns the remainder to the
  485. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  486. * Accepts the stake amount to decrease.
  487. * Requires signed leader origin or the root (to decrease the leader stake).
  488. *
  489. * # <weight>
  490. *
  491. * ## Weight
  492. * `O (1)`
  493. * - DB:
  494. * - O(1) doesn't depend on the state or parameters
  495. * # </weight>
  496. **/
  497. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  498. /**
  499. * Fill opening for the regular/lead position.
  500. * Require signed leader origin or the root (to fill opening for the leader position).
  501. * # <weight>
  502. *
  503. * ## Weight
  504. * `O (A)` where:
  505. * - `A` is the length of `successful_application_ids`
  506. * - DB:
  507. * - O(A)
  508. * # </weight>
  509. **/
  510. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>>;
  511. /**
  512. * Increases the regular worker/lead stake, demands a worker origin.
  513. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  514. *
  515. * # <weight>
  516. *
  517. * ## Weight
  518. * `O (1)`
  519. * - DB:
  520. * - O(1) doesn't depend on the state or parameters
  521. * # </weight>
  522. **/
  523. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  524. /**
  525. * Leave the role by the active worker.
  526. * # <weight>
  527. *
  528. * ## Weight
  529. * `O (1)`
  530. * - DB:
  531. * - O(1) doesn't depend on the state or parameters
  532. * # </weight>
  533. **/
  534. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  535. /**
  536. * Sets a new budget for the working group.
  537. * Requires root origin.
  538. *
  539. * # <weight>
  540. *
  541. * ## Weight
  542. * `O (1)`
  543. * - DB:
  544. * - O(1) doesn't depend on the state or parameters
  545. * # </weight>
  546. **/
  547. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  548. /**
  549. * Sets a new status text for the working group.
  550. * Requires root origin.
  551. *
  552. * # <weight>
  553. *
  554. * ## Weight
  555. * `O (S)` where:
  556. * - `S` is the length of the contents of `status_text` when it is not none
  557. *
  558. * - DB:
  559. * - O(1) doesn't depend on the state or parameters
  560. * # </weight>
  561. **/
  562. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  563. /**
  564. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  565. * If slashing balance greater than the existing stake - stake is slashed to zero.
  566. * Requires signed leader origin or the root (to slash the leader stake).
  567. * # <weight>
  568. *
  569. * ## Weight
  570. * `O (P)` where:
  571. * - `P` is the length of `penality.slashing_text`
  572. * - DB:
  573. * - O(1) doesn't depend on the state or parameters
  574. * # </weight>
  575. **/
  576. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  577. /**
  578. * Transfers specified amount to any account.
  579. * Requires leader origin.
  580. *
  581. * # <weight>
  582. *
  583. * ## Weight
  584. * `O (1)`
  585. * - DB:
  586. * - O(1) doesn't depend on the state or parameters
  587. * # </weight>
  588. **/
  589. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  590. /**
  591. * Terminate the active worker by the lead.
  592. * Requires signed leader origin or the root (to terminate the leader role).
  593. * # <weight>
  594. *
  595. * ## Weight
  596. * `O (P)` where:
  597. * - `P` is the length of `penalty.slashing_text`
  598. * - DB:
  599. * - O(1) doesn't depend on the state or parameters
  600. * # </weight>
  601. **/
  602. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  603. /**
  604. * Update the reward account associated with a set reward relationship for the active worker.
  605. *
  606. * # <weight>
  607. *
  608. * ## Weight
  609. * `O (1)`
  610. * - DB:
  611. * - O(1) doesn't depend on the state or parameters
  612. * # </weight>
  613. **/
  614. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  615. /**
  616. * Update the reward per block for the active worker.
  617. * Require signed leader origin or the root (to update leader's reward amount).
  618. *
  619. * # <weight>
  620. *
  621. * ## Weight
  622. * `O (1)`
  623. * - DB:
  624. * - O(1) doesn't depend on the state or parameters
  625. * # </weight>
  626. **/
  627. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  628. /**
  629. * Update the associated role account of the active regular worker/lead.
  630. *
  631. * # <weight>
  632. *
  633. * ## Weight
  634. * `O (1)`
  635. * - DB:
  636. * - O(1) doesn't depend on the state or parameters
  637. * # </weight>
  638. **/
  639. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  640. /**
  641. * Withdraw the worker application. Can be done by the worker only.
  642. *
  643. * # <weight>
  644. *
  645. * ## Weight
  646. * `O (1)`
  647. * - DB:
  648. * - O(1) doesn't depend on the state or parameters
  649. * # </weight>
  650. **/
  651. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  652. };
  653. council: {
  654. /**
  655. * Subscribe candidate
  656. *
  657. * # <weight>
  658. *
  659. * ## weight
  660. * `O (1)`
  661. * - db:
  662. * - `O(1)` doesn't depend on the state or parameters
  663. * # </weight>
  664. **/
  665. announceCandidacy: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array, rewardAccountId: AccountId | string | Uint8Array, stake: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  666. /**
  667. * Transfers funds from council budget to account
  668. *
  669. * # <weight>
  670. *
  671. * ## weight
  672. * `O (F)` where:
  673. * `F` is the length of `funding_requests`
  674. * - db:
  675. * - `O(1)` doesn't depend on the state or parameters
  676. * # </weight>
  677. **/
  678. fundingRequest: AugmentedSubmittable<(fundingRequests: Vec<FundingRequestParameters> | (FundingRequestParameters | { account?: any; amount?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  679. /**
  680. * Plan the next budget refill.
  681. *
  682. * # <weight>
  683. *
  684. * ## weight
  685. * `O (1)`
  686. * - db:
  687. * - `O(1)` doesn't depend on the state or parameters
  688. * # </weight>
  689. **/
  690. planBudgetRefill: AugmentedSubmittable<(nextRefill: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  691. /**
  692. * Release candidacy stake that is no longer needed.
  693. *
  694. * # <weight>
  695. *
  696. * ## weight
  697. * `O (1)`
  698. * - db:
  699. * - `O(1)` doesn't depend on the state or parameters
  700. * # </weight>
  701. **/
  702. releaseCandidacyStake: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  703. /**
  704. * Sets the budget balance.
  705. *
  706. * # <weight>
  707. *
  708. * ## weight
  709. * `O (1)`
  710. * - db:
  711. * - `O(1)` doesn't depend on the state or parameters
  712. * # </weight>
  713. **/
  714. setBudget: AugmentedSubmittable<(balance: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  715. /**
  716. * Sets the budget refill amount
  717. *
  718. * # <weight>
  719. *
  720. * ## weight
  721. * `O (1)`
  722. * - db:
  723. * - `O(1)` doesn't depend on the state or parameters
  724. * # </weight>
  725. **/
  726. setBudgetIncrement: AugmentedSubmittable<(budgetIncrement: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  727. /**
  728. * Set short description for the user's candidacy. Can be called anytime during user's candidacy.
  729. *
  730. * # <weight>
  731. *
  732. * ## weight
  733. * `O (N)` where:
  734. * `N` is the length of `note`
  735. * - db:
  736. * - `O(1)` doesn't depend on the state or parameters
  737. * # </weight>
  738. **/
  739. setCandidacyNote: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array, note: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  740. /**
  741. * Sets the councilor reward per block
  742. *
  743. * # <weight>
  744. *
  745. * ## weight
  746. * `O (1)`
  747. * - db:
  748. * - `O(1)` doesn't depend on the state or parameters
  749. * # </weight>
  750. **/
  751. setCouncilorReward: AugmentedSubmittable<(councilorReward: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  752. /**
  753. * Withdraw candidacy and release candidacy stake.
  754. *
  755. * # <weight>
  756. *
  757. * ## weight
  758. * `O (1)`
  759. * - db:
  760. * - `O(1)` doesn't depend on the state or parameters
  761. * # </weight>
  762. **/
  763. withdrawCandidacy: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  764. };
  765. dataDirectory: {
  766. /**
  767. * Storage provider accepts a content. Requires signed storage provider account and its id.
  768. * The LiaisonJudgement can be updated, but only by the liaison.
  769. **/
  770. acceptContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  771. /**
  772. * Adds the content to the system. Member id should match its origin. The created DataObject
  773. * awaits liaison to accept or reject it.
  774. **/
  775. addContent: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array, typeId: DataObjectTypeId | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array, ipfsContentId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  776. /**
  777. * Injects a set of data objects and their corresponding content id into the directory.
  778. * The operation is "silent" - no events will be emitted as objects are added.
  779. * The number of objects that can be added per call is limited to prevent the dispatch
  780. * from causing the block production to fail if it takes too much time to process.
  781. * Existing data objects will be overwritten.
  782. **/
  783. injectDataObjects: AugmentedSubmittable<(objects: DataObjectsMap) => SubmittableExtrinsic<ApiType>>;
  784. /**
  785. * Storage provider rejects a content. Requires signed storage provider account and its id.
  786. * The LiaisonJudgement can be updated, but only by the liaison.
  787. **/
  788. rejectContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  789. /**
  790. * Removes the content id from the list of known content ids. Requires root privileges.
  791. **/
  792. removeKnownContentId: AugmentedSubmittable<(contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  793. };
  794. dataObjectStorageRegistry: {
  795. /**
  796. * Add storage provider-to-content relationship. The storage provider should be registered
  797. * in the storage working group.
  798. **/
  799. addRelationship: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, cid: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  800. /**
  801. * Activates storage provider-to-content relationship. The storage provider should be
  802. * registered in the storage working group. A storage provider may flip their own ready
  803. * state, but nobody else.
  804. **/
  805. setRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  806. /**
  807. * Deactivates storage provider-to-content relationship. The storage provider should be
  808. * registered in the storage working group. A storage provider may flip their own r
  809. * eady state, but nobody else.
  810. **/
  811. unsetRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  812. };
  813. dataObjectTypeRegistry: {
  814. /**
  815. * Activates existing data object type. Requires leader privileges.
  816. **/
  817. activateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  818. /**
  819. * Deactivates existing data object type. Requires leader privileges.
  820. **/
  821. deactivateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  822. /**
  823. * Registers the new data object type. Requires leader privileges.
  824. **/
  825. registerDataObjectType: AugmentedSubmittable<(dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  826. /**
  827. * Updates existing data object type. Requires leader privileges.
  828. **/
  829. updateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array, dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  830. };
  831. discovery: {
  832. /**
  833. * Sets bootstrap endpoints for the Colossus. Requires root privileges.
  834. **/
  835. setBootstrapEndpoints: AugmentedSubmittable<(endpoints: Vec<Url> | (Url | string)[]) => SubmittableExtrinsic<ApiType>>;
  836. /**
  837. * Sets default lifetime for storage providers accounts info. Requires root privileges.
  838. **/
  839. setDefaultLifetime: AugmentedSubmittable<(lifetime: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  840. /**
  841. * Creates the ServiceProviderRecord to save an IPNS identity for the storage provider.
  842. * Requires signed storage provider credentials.
  843. **/
  844. setIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  845. /**
  846. * Deletes the ServiceProviderRecord with the IPNS identity for the storage provider.
  847. * Requires signed storage provider credentials.
  848. **/
  849. unsetIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  850. };
  851. finalityTracker: {
  852. /**
  853. * Hint that the author of this block thinks the best finalized
  854. * block is the given number.
  855. **/
  856. finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  857. };
  858. forum: {
  859. /**
  860. * Add post
  861. *
  862. * <weight>
  863. *
  864. * ## Weight
  865. * `O (W + V)` where:
  866. * - `W` is the category depth,
  867. * - `V` is the length of the text
  868. * - DB:
  869. * - O(W)
  870. * # </weight>
  871. **/
  872. addPost: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  873. /**
  874. * Add a new category.
  875. *
  876. * <weight>
  877. *
  878. * ## Weight
  879. * `O (W + V + X)` where:
  880. * - `W` is the category depth
  881. * - `V` is the length of the category title.
  882. * - `X` is the length of the category description.
  883. * - DB:
  884. * - O(W)
  885. * # </weight>
  886. **/
  887. createCategory: AugmentedSubmittable<(parentCategoryId: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  888. /**
  889. * Create new thread in category with poll
  890. *
  891. * <weight>
  892. *
  893. * ## Weight
  894. * `O (W + V + X + Y)` where:
  895. * - `W` is the category depth
  896. * - `V` is the length of the thread title.
  897. * - `X` is the length of the thread text.
  898. * - `Y` is the number of poll alternatives.
  899. * - DB:
  900. * - O(W)
  901. * # </weight>
  902. **/
  903. createThread: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array, poll: Option<Poll> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  904. /**
  905. * Delete category
  906. *
  907. * <weight>
  908. *
  909. * ## Weight
  910. * `O (W)` where:
  911. * - `W` is the category depth
  912. * - DB:
  913. * - O(W)
  914. * # </weight>
  915. **/
  916. deleteCategory: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  917. /**
  918. * Delete post from storage.
  919. * You need to provide a vector of posts to delete in the form
  920. * (T::CategoryId, T::ThreadId, T::PostId, bool)
  921. * where the last bool is whether you want to hide it apart from deleting it
  922. *
  923. * ## Weight
  924. * `O (W + V + P)` where:
  925. * - `W` is the category depth,
  926. * - `V` is the length of the rationale
  927. * - `P` is the number of posts to delete
  928. * - DB:
  929. * - O(W + P)
  930. * # </weight>
  931. **/
  932. deletePosts: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, posts: Vec<ITuple<[CategoryId, ThreadId, PostId, bool]>> | ([CategoryId | AnyNumber | Uint8Array, ThreadId | AnyNumber | Uint8Array, PostId | AnyNumber | Uint8Array, bool | boolean | Uint8Array])[], rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  933. /**
  934. * Delete thread
  935. *
  936. * <weight>
  937. *
  938. * ## Weight
  939. * `O (W)` where:
  940. * - `W` is the category depth
  941. * - DB:
  942. * - O(W)
  943. * # </weight>
  944. **/
  945. deleteThread: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, hide: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  946. /**
  947. * Edit post text
  948. *
  949. * <weight>
  950. *
  951. * ## Weight
  952. * `O (W + V)` where:
  953. * - `W` is the category depth,
  954. * - `V` is the length of the new text
  955. * - DB:
  956. * - O(W)
  957. * # </weight>
  958. **/
  959. editPostText: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  960. /**
  961. * Edit thread title
  962. *
  963. * <weight>
  964. *
  965. * ## Weight
  966. * `O (W + V)` where:
  967. * - `W` is the category depth
  968. * - `V` is the length of the thread title.
  969. * - DB:
  970. * - O(W)
  971. * # </weight>
  972. **/
  973. editThreadTitle: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newTitle: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  974. /**
  975. * Moderate post
  976. *
  977. * <weight>
  978. *
  979. * ## Weight
  980. * `O (W + V)` where:
  981. * - `W` is the category depth,
  982. * - `V` is the length of the rationale
  983. * - DB:
  984. * - O(W)
  985. * # </weight>
  986. **/
  987. moderatePost: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  988. /**
  989. * Moderate thread
  990. *
  991. * <weight>
  992. *
  993. * ## Weight
  994. * `O (W + V + X)` where:
  995. * - `W` is the category depth,
  996. * - `V` is the number of thread posts,
  997. * - `X` is the length of the rationale
  998. * - DB:
  999. * - O(W + V)
  1000. * # </weight>
  1001. **/
  1002. moderateThread: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1003. /**
  1004. * Move thread to another category
  1005. *
  1006. * <weight>
  1007. *
  1008. * ## Weight
  1009. * `O (W)` where:
  1010. * - `W` is the category depth
  1011. * - DB:
  1012. * - O(W)
  1013. * # </weight>
  1014. **/
  1015. moveThreadToCategory: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newCategoryId: CategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1016. /**
  1017. * Like or unlike a post.
  1018. *
  1019. * <weight>
  1020. *
  1021. * ## Weight
  1022. * `O (W)` where:
  1023. * - `W` is the category depth,
  1024. * - DB:
  1025. * - O(W)
  1026. * # </weight>
  1027. **/
  1028. reactPost: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, react: PostReactionId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1029. /**
  1030. * Set stickied threads for category
  1031. *
  1032. * <weight>
  1033. *
  1034. * ## Weight
  1035. * `O (W + V)` where:
  1036. * - `W` is the category depth,
  1037. * - `V` is the length of the stickied_ids
  1038. * - DB:
  1039. * - O(W + V)
  1040. * # </weight>
  1041. **/
  1042. setStickiedThreads: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, stickiedIds: Vec<ThreadId> | (ThreadId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  1043. /**
  1044. * Update archival status
  1045. *
  1046. * <weight>
  1047. *
  1048. * ## Weight
  1049. * `O (W)` where:
  1050. * - `W` is the category depth
  1051. * - DB:
  1052. * - O(W)
  1053. * # </weight>
  1054. **/
  1055. updateCategoryArchivalStatus: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1056. /**
  1057. * Enable a moderator can moderate a category and its sub categories.
  1058. *
  1059. * <weight>
  1060. *
  1061. * ## Weight
  1062. * `O (1)`
  1063. * - DB:
  1064. * - O(1) doesn't depend on the state or parameters
  1065. * # </weight>
  1066. **/
  1067. updateCategoryMembershipOfModerator: AugmentedSubmittable<(moderatorId: ModeratorId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newValue: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1068. /**
  1069. * Submit a poll
  1070. *
  1071. * <weight>
  1072. *
  1073. * ## Weight
  1074. * `O (W + V)` where:
  1075. * - `W` is the category depth,
  1076. * - `V` is the number of poll alternatives.
  1077. * - DB:
  1078. * - O(W)
  1079. * # </weight>
  1080. **/
  1081. voteOnPoll: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1082. };
  1083. forumWorkingGroup: {
  1084. /**
  1085. * Add a job opening for a regular worker/lead role.
  1086. * Require signed leader origin or the root (to add opening for the leader position).
  1087. *
  1088. * # <weight>
  1089. *
  1090. * ## Weight
  1091. * `O (D)` where:
  1092. * - `D` is the length of `description`
  1093. * - DB:
  1094. * - O(1) doesn't depend on the state or parameters
  1095. * # </weight>
  1096. **/
  1097. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1098. /**
  1099. * Apply on a worker opening.
  1100. *
  1101. * # <weight>
  1102. *
  1103. * ## Weight
  1104. * `O (D)` where:
  1105. * - `D` is the length of `p.description`
  1106. * - DB:
  1107. * - O(1) doesn't depend on the state or parameters
  1108. * # </weight>
  1109. **/
  1110. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1111. /**
  1112. * Cancel an opening for the regular worker/lead position.
  1113. * Require signed leader origin or the root (to cancel opening for the leader position).
  1114. *
  1115. * # <weight>
  1116. *
  1117. * ## Weight
  1118. * `O (1)`
  1119. * - DB:
  1120. * - O(1) doesn't depend on the state or parameters
  1121. * # </weight>
  1122. **/
  1123. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1124. /**
  1125. * Decreases the regular worker/lead stake and returns the remainder to the
  1126. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  1127. * Accepts the stake amount to decrease.
  1128. * Requires signed leader origin or the root (to decrease the leader stake).
  1129. *
  1130. * # <weight>
  1131. *
  1132. * ## Weight
  1133. * `O (1)`
  1134. * - DB:
  1135. * - O(1) doesn't depend on the state or parameters
  1136. * # </weight>
  1137. **/
  1138. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1139. /**
  1140. * Fill opening for the regular/lead position.
  1141. * Require signed leader origin or the root (to fill opening for the leader position).
  1142. * # <weight>
  1143. *
  1144. * ## Weight
  1145. * `O (A)` where:
  1146. * - `A` is the length of `successful_application_ids`
  1147. * - DB:
  1148. * - O(A)
  1149. * # </weight>
  1150. **/
  1151. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>>;
  1152. /**
  1153. * Increases the regular worker/lead stake, demands a worker origin.
  1154. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  1155. *
  1156. * # <weight>
  1157. *
  1158. * ## Weight
  1159. * `O (1)`
  1160. * - DB:
  1161. * - O(1) doesn't depend on the state or parameters
  1162. * # </weight>
  1163. **/
  1164. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1165. /**
  1166. * Leave the role by the active worker.
  1167. * # <weight>
  1168. *
  1169. * ## Weight
  1170. * `O (1)`
  1171. * - DB:
  1172. * - O(1) doesn't depend on the state or parameters
  1173. * # </weight>
  1174. **/
  1175. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1176. /**
  1177. * Sets a new budget for the working group.
  1178. * Requires root origin.
  1179. *
  1180. * # <weight>
  1181. *
  1182. * ## Weight
  1183. * `O (1)`
  1184. * - DB:
  1185. * - O(1) doesn't depend on the state or parameters
  1186. * # </weight>
  1187. **/
  1188. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1189. /**
  1190. * Sets a new status text for the working group.
  1191. * Requires root origin.
  1192. *
  1193. * # <weight>
  1194. *
  1195. * ## Weight
  1196. * `O (S)` where:
  1197. * - `S` is the length of the contents of `status_text` when it is not none
  1198. *
  1199. * - DB:
  1200. * - O(1) doesn't depend on the state or parameters
  1201. * # </weight>
  1202. **/
  1203. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1204. /**
  1205. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  1206. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1207. * Requires signed leader origin or the root (to slash the leader stake).
  1208. * # <weight>
  1209. *
  1210. * ## Weight
  1211. * `O (P)` where:
  1212. * - `P` is the length of `penality.slashing_text`
  1213. * - DB:
  1214. * - O(1) doesn't depend on the state or parameters
  1215. * # </weight>
  1216. **/
  1217. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1218. /**
  1219. * Transfers specified amount to any account.
  1220. * Requires leader origin.
  1221. *
  1222. * # <weight>
  1223. *
  1224. * ## Weight
  1225. * `O (1)`
  1226. * - DB:
  1227. * - O(1) doesn't depend on the state or parameters
  1228. * # </weight>
  1229. **/
  1230. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1231. /**
  1232. * Terminate the active worker by the lead.
  1233. * Requires signed leader origin or the root (to terminate the leader role).
  1234. * # <weight>
  1235. *
  1236. * ## Weight
  1237. * `O (P)` where:
  1238. * - `P` is the length of `penalty.slashing_text`
  1239. * - DB:
  1240. * - O(1) doesn't depend on the state or parameters
  1241. * # </weight>
  1242. **/
  1243. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1244. /**
  1245. * Update the reward account associated with a set reward relationship for the active worker.
  1246. *
  1247. * # <weight>
  1248. *
  1249. * ## Weight
  1250. * `O (1)`
  1251. * - DB:
  1252. * - O(1) doesn't depend on the state or parameters
  1253. * # </weight>
  1254. **/
  1255. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1256. /**
  1257. * Update the reward per block for the active worker.
  1258. * Require signed leader origin or the root (to update leader's reward amount).
  1259. *
  1260. * # <weight>
  1261. *
  1262. * ## Weight
  1263. * `O (1)`
  1264. * - DB:
  1265. * - O(1) doesn't depend on the state or parameters
  1266. * # </weight>
  1267. **/
  1268. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1269. /**
  1270. * Update the associated role account of the active regular worker/lead.
  1271. *
  1272. * # <weight>
  1273. *
  1274. * ## Weight
  1275. * `O (1)`
  1276. * - DB:
  1277. * - O(1) doesn't depend on the state or parameters
  1278. * # </weight>
  1279. **/
  1280. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1281. /**
  1282. * Withdraw the worker application. Can be done by the worker only.
  1283. *
  1284. * # <weight>
  1285. *
  1286. * ## Weight
  1287. * `O (1)`
  1288. * - DB:
  1289. * - O(1) doesn't depend on the state or parameters
  1290. * # </weight>
  1291. **/
  1292. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1293. };
  1294. grandpa: {
  1295. /**
  1296. * Note that the current authority set of the GRANDPA finality gadget has
  1297. * stalled. This will trigger a forced authority set change at the beginning
  1298. * of the next session, to be enacted `delay` blocks after that. The delay
  1299. * should be high enough to safely assume that the block signalling the
  1300. * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
  1301. * will start the new authority set using the given finalized block as base.
  1302. * Only callable by root.
  1303. **/
  1304. noteStalled: AugmentedSubmittable<(delay: BlockNumber | AnyNumber | Uint8Array, bestFinalizedBlockNumber: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1305. /**
  1306. * Report voter equivocation/misbehavior. This method will verify the
  1307. * equivocation proof and validate the given key ownership proof
  1308. * against the extracted offender. If both are valid, the offence
  1309. * will be reported.
  1310. **/
  1311. reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1312. /**
  1313. * Report voter equivocation/misbehavior. This method will verify the
  1314. * equivocation proof and validate the given key ownership proof
  1315. * against the extracted offender. If both are valid, the offence
  1316. * will be reported.
  1317. *
  1318. * This extrinsic must be called unsigned and it is expected that only
  1319. * block authors will call it (validated in `ValidateUnsigned`), as such
  1320. * if the block author is defined it will be defined as the equivocation
  1321. * reporter.
  1322. **/
  1323. reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1324. };
  1325. imOnline: {
  1326. /**
  1327. * # <weight>
  1328. * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len)
  1329. * and E is length of `heartbeat.network_state.external_address`
  1330. * - `O(K)`: decoding of length `K`
  1331. * - `O(E)`: decoding/encoding of length `E`
  1332. * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
  1333. * `ReceivedHeartbeats`
  1334. * - DbWrites: `ReceivedHeartbeats`
  1335. * # </weight>
  1336. **/
  1337. heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1338. };
  1339. joystreamUtility: {
  1340. /**
  1341. * Burns token for caller account
  1342. * <weight>
  1343. *
  1344. * ## Weight
  1345. * `O (1)` Doesn't depend on the state or parameters
  1346. * - DB:
  1347. * - O(1) doesn't depend on the state or parameters
  1348. * # </weight>
  1349. **/
  1350. burnAccountTokens: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1351. /**
  1352. * Runtime upgrade proposal extrinsic.
  1353. * Should be used as callable object to pass to the `engine` module.
  1354. * <weight>
  1355. *
  1356. * ## Weight
  1357. * `O (C)` where:
  1358. * - `C` is the length of `wasm`
  1359. * However, we treat this as a full block as `frame_system::Module::set_code` does
  1360. * # </weight>
  1361. **/
  1362. executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1363. /**
  1364. * Signal proposal extrinsic. Should be used as callable object to pass to the `engine` module.
  1365. *
  1366. * <weight>
  1367. *
  1368. * ## Weight
  1369. * `O (S)` where:
  1370. * - `S` is the length of the signal
  1371. * - DB:
  1372. * - O(1) doesn't depend on the state or parameters
  1373. * # </weight>
  1374. **/
  1375. executeSignalProposal: AugmentedSubmittable<(signal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1376. /**
  1377. * Update working group budget
  1378. * <weight>
  1379. *
  1380. * ## Weight
  1381. * `O (1)` Doesn't depend on the state or parameters
  1382. * - DB:
  1383. * - O(1) doesn't depend on the state or parameters
  1384. * # </weight>
  1385. **/
  1386. updateWorkingGroupBudget: AugmentedSubmittable<(workingGroup: WorkingGroup | 'Forum'|'Storage'|'Content'|'Membership' | number | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, balanceKind: BalanceKind | 'Positive'|'Negative' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1387. };
  1388. members: {
  1389. /**
  1390. * Add staking account candidate for a member.
  1391. * The membership must be confirmed before usage.
  1392. *
  1393. * <weight>
  1394. *
  1395. * ## Weight
  1396. * `O (1)`
  1397. * - DB:
  1398. * - O(1) doesn't depend on the state or parameters
  1399. * # </weight>
  1400. **/
  1401. addStakingAccountCandidate: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1402. /**
  1403. * Non-members can buy membership.
  1404. *
  1405. * <weight>
  1406. *
  1407. * ## Weight
  1408. * `O (W + V + X + Y)` where:
  1409. * - `W` is the member name
  1410. * - `V` is the member handle
  1411. * - `X` is the member avatar uri
  1412. * - `Y` is the member about
  1413. * - DB:
  1414. * - O(V)
  1415. * # </weight>
  1416. **/
  1417. buyMembership: AugmentedSubmittable<(params: BuyMembershipParameters | { root_account?: any; controller_account?: any; handle?: any; metadata?: any; referrer_id?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1418. /**
  1419. * Confirm staking account candidate for a member.
  1420. *
  1421. * <weight>
  1422. *
  1423. * ## Weight
  1424. * `O (1)`
  1425. * - DB:
  1426. * - O(1) doesn't depend on the state or parameters
  1427. * # </weight>
  1428. **/
  1429. confirmStakingAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1430. /**
  1431. * Invite a new member.
  1432. *
  1433. * <weight>
  1434. *
  1435. * ## Weight
  1436. * `O (W + V + X + Y)` where:
  1437. * - `W` is the member name
  1438. * - `V` is the member handle
  1439. * - `X` is the member avatar uri
  1440. * - `Y` is the member about
  1441. * - DB:
  1442. * - O(V)
  1443. * # </weight>
  1444. **/
  1445. inviteMember: AugmentedSubmittable<(params: InviteMembershipParameters | { inviting_member_id?: any; root_account?: any; controller_account?: any; handle?: any; metadata?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1446. /**
  1447. * Remove staking account for a member.
  1448. *
  1449. * <weight>
  1450. *
  1451. * ## Weight
  1452. * `O (1)`
  1453. * - DB:
  1454. * - O(1) doesn't depend on the state or parameters
  1455. * # </weight>
  1456. **/
  1457. removeStakingAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1458. /**
  1459. * Updates initial invitation balance for a invited member. Requires root origin.
  1460. *
  1461. * <weight>
  1462. *
  1463. * ## Weight
  1464. * `O (1)`
  1465. * - DB:
  1466. * - O(1) doesn't depend on the state or parameters
  1467. * # </weight>
  1468. **/
  1469. setInitialInvitationBalance: AugmentedSubmittable<(newInitialBalance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1470. /**
  1471. * Updates initial invitation count for a member. Requires root origin.
  1472. *
  1473. * <weight>
  1474. *
  1475. * ## Weight
  1476. * `O (1)`
  1477. * - DB:
  1478. * - O(1) doesn't depend on the state or parameters
  1479. * # </weight>
  1480. **/
  1481. setInitialInvitationCount: AugmentedSubmittable<(newInvitationCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1482. /**
  1483. * Updates leader invitation quota. Requires root origin.
  1484. *
  1485. * <weight>
  1486. *
  1487. * ## Weight
  1488. * `O (1)`
  1489. * - DB:
  1490. * - O(1) doesn't depend on the state or parameters
  1491. * # </weight>
  1492. **/
  1493. setLeaderInvitationQuota: AugmentedSubmittable<(invitationQuota: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1494. /**
  1495. * Updates membership price. Requires root origin.
  1496. *
  1497. * <weight>
  1498. *
  1499. * ## Weight
  1500. * `O (1)`
  1501. * - DB:
  1502. * - O(1) doesn't depend on the state or parameters
  1503. * # </weight>
  1504. **/
  1505. setMembershipPrice: AugmentedSubmittable<(newPrice: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1506. /**
  1507. * Updates membership referral cut percent value. Requires root origin.
  1508. *
  1509. * <weight>
  1510. *
  1511. * ## Weight
  1512. * `O (1)`
  1513. * - DB:
  1514. * - O(1) doesn't depend on the state or parameters
  1515. * # </weight>
  1516. **/
  1517. setReferralCut: AugmentedSubmittable<(percentValue: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1518. /**
  1519. * Transfers invites from one member to another.
  1520. *
  1521. * <weight>
  1522. *
  1523. * ## Weight
  1524. * `O (1)`
  1525. * - DB:
  1526. * - O(1) doesn't depend on the state or parameters
  1527. * # </weight>
  1528. **/
  1529. transferInvites: AugmentedSubmittable<(sourceMemberId: MemberId | AnyNumber | Uint8Array, targetMemberId: MemberId | AnyNumber | Uint8Array, numberOfInvites: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1530. /**
  1531. * Updates member root or controller accounts. No effect if both new accounts are empty.
  1532. *
  1533. * <weight>
  1534. *
  1535. * <weight>
  1536. *
  1537. * ## Weight
  1538. * `O (1)`
  1539. * - DB:
  1540. * - O(1) doesn't depend on the state or parameters
  1541. * # </weight>
  1542. **/
  1543. updateAccounts: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: Option<AccountId> | null | object | string | Uint8Array, newControllerAccount: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1544. /**
  1545. * Update member's all or some of name, handle, avatar and about text.
  1546. * No effect if no changed fields.
  1547. *
  1548. * <weight>
  1549. *
  1550. * ## Weight
  1551. * `O (W)` where:
  1552. * - `W` is the handle length
  1553. * - DB:
  1554. * - O(W)
  1555. * # </weight>
  1556. **/
  1557. updateProfile: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, metadata: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1558. /**
  1559. * Updates member profile verification status. Requires working group member origin.
  1560. *
  1561. * <weight>
  1562. *
  1563. * ## Weight
  1564. * `O (1)`
  1565. * - DB:
  1566. * - O(1) doesn't depend on the state or parameters
  1567. * # </weight>
  1568. **/
  1569. updateProfileVerification: AugmentedSubmittable<(workerId: ActorId | AnyNumber | Uint8Array, targetMemberId: MemberId | AnyNumber | Uint8Array, isVerified: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1570. };
  1571. membershipWorkingGroup: {
  1572. /**
  1573. * Add a job opening for a regular worker/lead role.
  1574. * Require signed leader origin or the root (to add opening for the leader position).
  1575. *
  1576. * # <weight>
  1577. *
  1578. * ## Weight
  1579. * `O (D)` where:
  1580. * - `D` is the length of `description`
  1581. * - DB:
  1582. * - O(1) doesn't depend on the state or parameters
  1583. * # </weight>
  1584. **/
  1585. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1586. /**
  1587. * Apply on a worker opening.
  1588. *
  1589. * # <weight>
  1590. *
  1591. * ## Weight
  1592. * `O (D)` where:
  1593. * - `D` is the length of `p.description`
  1594. * - DB:
  1595. * - O(1) doesn't depend on the state or parameters
  1596. * # </weight>
  1597. **/
  1598. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1599. /**
  1600. * Cancel an opening for the regular worker/lead position.
  1601. * Require signed leader origin or the root (to cancel opening for the leader position).
  1602. *
  1603. * # <weight>
  1604. *
  1605. * ## Weight
  1606. * `O (1)`
  1607. * - DB:
  1608. * - O(1) doesn't depend on the state or parameters
  1609. * # </weight>
  1610. **/
  1611. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1612. /**
  1613. * Decreases the regular worker/lead stake and returns the remainder to the
  1614. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  1615. * Accepts the stake amount to decrease.
  1616. * Requires signed leader origin or the root (to decrease the leader stake).
  1617. *
  1618. * # <weight>
  1619. *
  1620. * ## Weight
  1621. * `O (1)`
  1622. * - DB:
  1623. * - O(1) doesn't depend on the state or parameters
  1624. * # </weight>
  1625. **/
  1626. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1627. /**
  1628. * Fill opening for the regular/lead position.
  1629. * Require signed leader origin or the root (to fill opening for the leader position).
  1630. * # <weight>
  1631. *
  1632. * ## Weight
  1633. * `O (A)` where:
  1634. * - `A` is the length of `successful_application_ids`
  1635. * - DB:
  1636. * - O(A)
  1637. * # </weight>
  1638. **/
  1639. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>>;
  1640. /**
  1641. * Increases the regular worker/lead stake, demands a worker origin.
  1642. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  1643. *
  1644. * # <weight>
  1645. *
  1646. * ## Weight
  1647. * `O (1)`
  1648. * - DB:
  1649. * - O(1) doesn't depend on the state or parameters
  1650. * # </weight>
  1651. **/
  1652. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1653. /**
  1654. * Leave the role by the active worker.
  1655. * # <weight>
  1656. *
  1657. * ## Weight
  1658. * `O (1)`
  1659. * - DB:
  1660. * - O(1) doesn't depend on the state or parameters
  1661. * # </weight>
  1662. **/
  1663. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1664. /**
  1665. * Sets a new budget for the working group.
  1666. * Requires root origin.
  1667. *
  1668. * # <weight>
  1669. *
  1670. * ## Weight
  1671. * `O (1)`
  1672. * - DB:
  1673. * - O(1) doesn't depend on the state or parameters
  1674. * # </weight>
  1675. **/
  1676. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1677. /**
  1678. * Sets a new status text for the working group.
  1679. * Requires root origin.
  1680. *
  1681. * # <weight>
  1682. *
  1683. * ## Weight
  1684. * `O (S)` where:
  1685. * - `S` is the length of the contents of `status_text` when it is not none
  1686. *
  1687. * - DB:
  1688. * - O(1) doesn't depend on the state or parameters
  1689. * # </weight>
  1690. **/
  1691. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1692. /**
  1693. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  1694. * If slashing balance greater than the existing stake - stake is slashed to zero.
  1695. * Requires signed leader origin or the root (to slash the leader stake).
  1696. * # <weight>
  1697. *
  1698. * ## Weight
  1699. * `O (P)` where:
  1700. * - `P` is the length of `penality.slashing_text`
  1701. * - DB:
  1702. * - O(1) doesn't depend on the state or parameters
  1703. * # </weight>
  1704. **/
  1705. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1706. /**
  1707. * Transfers specified amount to any account.
  1708. * Requires leader origin.
  1709. *
  1710. * # <weight>
  1711. *
  1712. * ## Weight
  1713. * `O (1)`
  1714. * - DB:
  1715. * - O(1) doesn't depend on the state or parameters
  1716. * # </weight>
  1717. **/
  1718. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1719. /**
  1720. * Terminate the active worker by the lead.
  1721. * Requires signed leader origin or the root (to terminate the leader role).
  1722. * # <weight>
  1723. *
  1724. * ## Weight
  1725. * `O (P)` where:
  1726. * - `P` is the length of `penalty.slashing_text`
  1727. * - DB:
  1728. * - O(1) doesn't depend on the state or parameters
  1729. * # </weight>
  1730. **/
  1731. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1732. /**
  1733. * Update the reward account associated with a set reward relationship for the active worker.
  1734. *
  1735. * # <weight>
  1736. *
  1737. * ## Weight
  1738. * `O (1)`
  1739. * - DB:
  1740. * - O(1) doesn't depend on the state or parameters
  1741. * # </weight>
  1742. **/
  1743. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1744. /**
  1745. * Update the reward per block for the active worker.
  1746. * Require signed leader origin or the root (to update leader's reward amount).
  1747. *
  1748. * # <weight>
  1749. *
  1750. * ## Weight
  1751. * `O (1)`
  1752. * - DB:
  1753. * - O(1) doesn't depend on the state or parameters
  1754. * # </weight>
  1755. **/
  1756. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1757. /**
  1758. * Update the associated role account of the active regular worker/lead.
  1759. *
  1760. * # <weight>
  1761. *
  1762. * ## Weight
  1763. * `O (1)`
  1764. * - DB:
  1765. * - O(1) doesn't depend on the state or parameters
  1766. * # </weight>
  1767. **/
  1768. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1769. /**
  1770. * Withdraw the worker application. Can be done by the worker only.
  1771. *
  1772. * # <weight>
  1773. *
  1774. * ## Weight
  1775. * `O (1)`
  1776. * - DB:
  1777. * - O(1) doesn't depend on the state or parameters
  1778. * # </weight>
  1779. **/
  1780. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1781. };
  1782. memo: {
  1783. updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>>;
  1784. };
  1785. proposalsCodex: {
  1786. /**
  1787. * Create a proposal, the type of proposal depends on the `proposal_details` variant
  1788. *
  1789. * <weight>
  1790. *
  1791. * ## Weight
  1792. * `O (T + D + I)` where:
  1793. * - `T` is the length of the title
  1794. * - `D` is the length of the description
  1795. * - `I` is the length of any parameter in `proposal_details`
  1796. * - DB:
  1797. * - O(1) doesn't depend on the state or parameters
  1798. * # </weight>
  1799. **/
  1800. createProposal: AugmentedSubmittable<(generalProposalParameters: GeneralProposalParameters | { member_id?: any; title?: any; description?: any; staking_account_id?: any; exact_execution_block?: any } | string | Uint8Array, proposalDetails: ProposalDetailsOf | { Signal: any } | { RuntimeUpgrade: any } | { FundingRequest: any } | { SetMaxValidatorCount: any } | { CreateWorkingGroupLeadOpening: any } | { FillWorkingGroupLeadOpening: any } | { UpdateWorkingGroupBudget: any } | { DecreaseWorkingGroupLeadStake: any } | { SlashWorkingGroupLead: any } | { SetWorkingGroupLeadReward: any } | { TerminateWorkingGroupLead: any } | { AmendConstitution: any } | { CancelWorkingGroupLeadOpening: any } | { SetMembershipPrice: any } | { SetCouncilBudgetIncrement: any } | { SetCouncilorReward: any } | { SetInitialInvitationBalance: any } | { SetInitialInvitationCount: any } | { SetMembershipLeadInvitationQuota: any } | { SetReferralCut: any } | { CreateBlogPost: any } | { EditBlogPost: any } | { LockBlogPost: any } | { UnlockBlogPost: any } | { VetoProposal: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1801. };
  1802. proposalsDiscussion: {
  1803. /**
  1804. * Adds a post with author origin check.
  1805. *
  1806. * <weight>
  1807. *
  1808. * ## Weight
  1809. * `O (L)` where:
  1810. * - `L` is the length of `text`
  1811. * - DB:
  1812. * - O(1) doesn't depend on the state or parameters
  1813. * # </weight>
  1814. **/
  1815. addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1816. /**
  1817. * Changes thread permission mode.
  1818. *
  1819. * <weight>
  1820. *
  1821. * ## Weight
  1822. * `O (W)` if ThreadMode is close or O(1) otherwise where:
  1823. * - `W` is the number of whitelisted members in `mode`
  1824. * - DB:
  1825. * - O(1) doesn't depend on the state or parameters
  1826. * # </weight>
  1827. **/
  1828. changeThreadMode: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, mode: ThreadMode | { Open: any } | { Closed: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1829. /**
  1830. * Remove post from storage, with the last parameter indicating whether to also hide it
  1831. * in the UI.
  1832. *
  1833. * <weight>
  1834. *
  1835. * ## Weight
  1836. * `O (1)`
  1837. * - DB:
  1838. * - O(1) doesn't depend on the state or parameters
  1839. * # </weight>
  1840. **/
  1841. deletePost: AugmentedSubmittable<(deleterId: MemberId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, hide: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1842. /**
  1843. * Updates a post with author origin check. Update attempts number is limited.
  1844. *
  1845. * <weight>
  1846. *
  1847. * ## Weight
  1848. * `O (L)` where:
  1849. * - `L` is the length of `text`
  1850. * - DB:
  1851. * - O(1) doesn't depend on the state or parameters
  1852. * # </weight>
  1853. **/
  1854. updatePost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1855. };
  1856. proposalsEngine: {
  1857. /**
  1858. * Cancel a proposal by its original proposer.
  1859. *
  1860. * <weight>
  1861. *
  1862. * ## Weight
  1863. * `O (L)` where:
  1864. * - `L` is the total number of locks in `Balances`
  1865. * - DB:
  1866. * - O(1) doesn't depend on the state or parameters
  1867. * # </weight>
  1868. **/
  1869. cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1870. /**
  1871. * Veto a proposal. Must be root.
  1872. *
  1873. * <weight>
  1874. *
  1875. * ## Weight
  1876. * `O (1)` doesn't depend on the state or parameters
  1877. * - DB:
  1878. * - O(1) doesn't depend on the state or parameters
  1879. * # </weight>
  1880. **/
  1881. vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1882. /**
  1883. * Vote extrinsic. Conditions: origin must allow votes.
  1884. *
  1885. * <weight>
  1886. *
  1887. * ## Weight
  1888. * `O (R)` where:
  1889. * - `R` is the length of `rationale`
  1890. * - DB:
  1891. * - O(1) doesn't depend on the state or paraemters
  1892. * # </weight>
  1893. **/
  1894. vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve'|'Reject'|'Slash'|'Abstain' | number | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1895. };
  1896. referendum: {
  1897. /**
  1898. * Release a locked stake.
  1899. * # <weight>
  1900. *
  1901. * ## weight
  1902. * `O (1)`
  1903. * - db:
  1904. * - `O(1)` doesn't depend on the state or parameters
  1905. * # </weight>
  1906. **/
  1907. releaseVoteStake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  1908. /**
  1909. * Reveal a sealed vote in the referendum.
  1910. *
  1911. * # <weight>
  1912. *
  1913. * ## Weight
  1914. * `O (W)` where:
  1915. * - `W` is the number of `intermediate_winners` stored in the current
  1916. * `Stage::<T, I>::get()`
  1917. * - DB:
  1918. * - `O(1)` doesn't depend on the state or parameters
  1919. * # </weight>
  1920. **/
  1921. revealVote: AugmentedSubmittable<(salt: Bytes | string | Uint8Array, voteOptionId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1922. /**
  1923. * Cast a sealed vote in the referendum.
  1924. *
  1925. * # <weight>
  1926. *
  1927. * ## weight
  1928. * `O (1)`
  1929. * - db:
  1930. * - `O(1)` doesn't depend on the state or parameters
  1931. * # </weight>
  1932. **/
  1933. vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1934. };
  1935. session: {
  1936. /**
  1937. * Removes any session key(s) of the function caller.
  1938. * This doesn't take effect until the next session.
  1939. *
  1940. * The dispatch origin of this function must be signed.
  1941. *
  1942. * # <weight>
  1943. * - Complexity: `O(1)` in number of key types.
  1944. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  1945. * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
  1946. * - DbWrites: `NextKeys`, `origin account`
  1947. * - DbWrites per key id: `KeyOwnder`
  1948. * # </weight>
  1949. **/
  1950. purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  1951. /**
  1952. * Sets the session key(s) of the function caller to `keys`.
  1953. * Allows an account to set its session key prior to becoming a validator.
  1954. * This doesn't take effect until the next session.
  1955. *
  1956. * The dispatch origin of this function must be signed.
  1957. *
  1958. * # <weight>
  1959. * - Complexity: `O(1)`
  1960. * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
  1961. * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
  1962. * - DbWrites: `origin account`, `NextKeys`
  1963. * - DbReads per key id: `KeyOwner`
  1964. * - DbWrites per key id: `KeyOwner`
  1965. * # </weight>
  1966. **/
  1967. setKeys: AugmentedSubmittable<(keys: Keys, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1968. };
  1969. staking: {
  1970. /**
  1971. * Take the origin account as a stash and lock up `value` of its balance. `controller` will
  1972. * be the account that controls it.
  1973. *
  1974. * `value` must be more than the `minimum_balance` specified by `T::Currency`.
  1975. *
  1976. * The dispatch origin for this call must be _Signed_ by the stash account.
  1977. *
  1978. * Emits `Bonded`.
  1979. *
  1980. * # <weight>
  1981. * - Independent of the arguments. Moderate complexity.
  1982. * - O(1).
  1983. * - Three extra DB entries.
  1984. *
  1985. * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
  1986. * unless the `origin` falls below _existential deposit_ and gets removed as dust.
  1987. * ------------------
  1988. * Weight: O(1)
  1989. * DB Weight:
  1990. * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
  1991. * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
  1992. * # </weight>
  1993. **/
  1994. bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  1995. /**
  1996. * Add some extra amount that have appeared in the stash `free_balance` into the balance up
  1997. * for staking.
  1998. *
  1999. * Use this if there are additional funds in your stash account that you wish to bond.
  2000. * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
  2001. * that can be added.
  2002. *
  2003. * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
  2004. * it can be only called when [`EraElectionStatus`] is `Closed`.
  2005. *
  2006. * Emits `Bonded`.
  2007. *
  2008. * # <weight>
  2009. * - Independent of the arguments. Insignificant complexity.
  2010. * - O(1).
  2011. * - One DB entry.
  2012. * ------------
  2013. * DB Weight:
  2014. * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
  2015. * - Write: [Origin Account], Locks, Ledger
  2016. * # </weight>
  2017. **/
  2018. bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2019. /**
  2020. * Cancel enactment of a deferred slash.
  2021. *
  2022. * Can be called by the `T::SlashCancelOrigin`.
  2023. *
  2024. * Parameters: era and indices of the slashes for that era to kill.
  2025. *
  2026. * # <weight>
  2027. * Complexity: O(U + S)
  2028. * with U unapplied slashes weighted with U=1000
  2029. * and S is the number of slash indices to be canceled.
  2030. * - Read: Unapplied Slashes
  2031. * - Write: Unapplied Slashes
  2032. * # </weight>
  2033. **/
  2034. cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  2035. /**
  2036. * Declare no desire to either validate or nominate.
  2037. *
  2038. * Effects will be felt at the beginning of the next era.
  2039. *
  2040. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2041. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2042. *
  2043. * # <weight>
  2044. * - Independent of the arguments. Insignificant complexity.
  2045. * - Contains one read.
  2046. * - Writes are limited to the `origin` account key.
  2047. * --------
  2048. * Weight: O(1)
  2049. * DB Weight:
  2050. * - Read: EraElectionStatus, Ledger
  2051. * - Write: Validators, Nominators
  2052. * # </weight>
  2053. **/
  2054. chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  2055. /**
  2056. * Force there to be a new era at the end of the next session. After this, it will be
  2057. * reset to normal (non-forced) behaviour.
  2058. *
  2059. * The dispatch origin must be Root.
  2060. *
  2061. * # <weight>
  2062. * - No arguments.
  2063. * - Weight: O(1)
  2064. * - Write ForceEra
  2065. * # </weight>
  2066. **/
  2067. forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  2068. /**
  2069. * Force there to be a new era at the end of sessions indefinitely.
  2070. *
  2071. * The dispatch origin must be Root.
  2072. *
  2073. * # <weight>
  2074. * - Weight: O(1)
  2075. * - Write: ForceEra
  2076. * # </weight>
  2077. **/
  2078. forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  2079. /**
  2080. * Force there to be no new eras indefinitely.
  2081. *
  2082. * The dispatch origin must be Root.
  2083. *
  2084. * # <weight>
  2085. * - No arguments.
  2086. * - Weight: O(1)
  2087. * - Write: ForceEra
  2088. * # </weight>
  2089. **/
  2090. forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  2091. /**
  2092. * Force a current staker to become completely unstaked, immediately.
  2093. *
  2094. * The dispatch origin must be Root.
  2095. *
  2096. * # <weight>
  2097. * O(S) where S is the number of slashing spans to be removed
  2098. * Reads: Bonded, Slashing Spans, Account, Locks
  2099. * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
  2100. * Writes Each: SpanSlash * S
  2101. * # </weight>
  2102. **/
  2103. forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2104. /**
  2105. * Increments the ideal number of validators.
  2106. *
  2107. * The dispatch origin must be Root.
  2108. *
  2109. * # <weight>
  2110. * Same as [`set_validator_count`].
  2111. * # </weight>
  2112. **/
  2113. increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2114. /**
  2115. * Declare the desire to nominate `targets` for the origin controller.
  2116. *
  2117. * Effects will be felt at the beginning of the next era. This can only be called when
  2118. * [`EraElectionStatus`] is `Closed`.
  2119. *
  2120. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2121. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2122. *
  2123. * # <weight>
  2124. * - The transaction's complexity is proportional to the size of `targets` (N)
  2125. * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
  2126. * - Both the reads and writes follow a similar pattern.
  2127. * ---------
  2128. * Weight: O(N)
  2129. * where N is the number of targets
  2130. * DB Weight:
  2131. * - Reads: Era Election Status, Ledger, Current Era
  2132. * - Writes: Validators, Nominators
  2133. * # </weight>
  2134. **/
  2135. nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  2136. /**
  2137. * Pay out all the stakers behind a single validator for a single era.
  2138. *
  2139. * - `validator_stash` is the stash account of the validator. Their nominators, up to
  2140. * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
  2141. * - `era` may be any era between `[current_era - history_depth; current_era]`.
  2142. *
  2143. * The origin of this call must be _Signed_. Any account can call this function, even if
  2144. * it is not one of the stakers.
  2145. *
  2146. * This can only be called when [`EraElectionStatus`] is `Closed`.
  2147. *
  2148. * # <weight>
  2149. * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
  2150. * - Contains a limited number of reads and writes.
  2151. * -----------
  2152. * N is the Number of payouts for the validator (including the validator)
  2153. * Weight:
  2154. * - Reward Destination Staked: O(N)
  2155. * - Reward Destination Controller (Creating): O(N)
  2156. * DB Weight:
  2157. * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
  2158. * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
  2159. * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
  2160. * - Write Each: System Account, Locks, Ledger (3 items)
  2161. *
  2162. * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
  2163. * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
  2164. * # </weight>
  2165. **/
  2166. payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2167. /**
  2168. * Remove all data structure concerning a staker/stash once its balance is zero.
  2169. * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
  2170. * and the target `stash` must have no funds left.
  2171. *
  2172. * This can be called from any origin.
  2173. *
  2174. * - `stash`: The stash account to reap. Its balance must be zero.
  2175. *
  2176. * # <weight>
  2177. * Complexity: O(S) where S is the number of slashing spans on the account.
  2178. * DB Weight:
  2179. * - Reads: Stash Account, Bonded, Slashing Spans, Locks
  2180. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
  2181. * - Writes Each: SpanSlash * S
  2182. * # </weight>
  2183. **/
  2184. reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2185. /**
  2186. * Rebond a portion of the stash scheduled to be unlocked.
  2187. *
  2188. * The dispatch origin must be signed by the controller, and it can be only called when
  2189. * [`EraElectionStatus`] is `Closed`.
  2190. *
  2191. * # <weight>
  2192. * - Time complexity: O(L), where L is unlocking chunks
  2193. * - Bounded by `MAX_UNLOCKING_CHUNKS`.
  2194. * - Storage changes: Can't increase storage, only decrease it.
  2195. * ---------------
  2196. * - DB Weight:
  2197. * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
  2198. * - Writes: [Origin Account], Locks, Ledger
  2199. * # </weight>
  2200. **/
  2201. rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2202. /**
  2203. * Scale up the ideal number of validators by a factor.
  2204. *
  2205. * The dispatch origin must be Root.
  2206. *
  2207. * # <weight>
  2208. * Same as [`set_validator_count`].
  2209. * # </weight>
  2210. **/
  2211. scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2212. /**
  2213. * (Re-)set the controller of a stash.
  2214. *
  2215. * Effects will be felt at the beginning of the next era.
  2216. *
  2217. * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
  2218. *
  2219. * # <weight>
  2220. * - Independent of the arguments. Insignificant complexity.
  2221. * - Contains a limited number of reads.
  2222. * - Writes are limited to the `origin` account key.
  2223. * ----------
  2224. * Weight: O(1)
  2225. * DB Weight:
  2226. * - Read: Bonded, Ledger New Controller, Ledger Old Controller
  2227. * - Write: Bonded, Ledger New Controller, Ledger Old Controller
  2228. * # </weight>
  2229. **/
  2230. setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2231. /**
  2232. * Set `HistoryDepth` value. This function will delete any history information
  2233. * when `HistoryDepth` is reduced.
  2234. *
  2235. * Parameters:
  2236. * - `new_history_depth`: The new history depth you would like to set.
  2237. * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
  2238. * This should report all the storage items that will be deleted by clearing old
  2239. * era history. Needed to report an accurate weight for the dispatch. Trusted by
  2240. * `Root` to report an accurate number.
  2241. *
  2242. * Origin must be root.
  2243. *
  2244. * # <weight>
  2245. * - E: Number of history depths removed, i.e. 10 -> 7 = 3
  2246. * - Weight: O(E)
  2247. * - DB Weight:
  2248. * - Reads: Current Era, History Depth
  2249. * - Writes: History Depth
  2250. * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
  2251. * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
  2252. * # </weight>
  2253. **/
  2254. setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2255. /**
  2256. * Set the validators who cannot be slashed (if any).
  2257. *
  2258. * The dispatch origin must be Root.
  2259. *
  2260. * # <weight>
  2261. * - O(V)
  2262. * - Write: Invulnerables
  2263. * # </weight>
  2264. **/
  2265. setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  2266. /**
  2267. * (Re-)set the payment target for a controller.
  2268. *
  2269. * Effects will be felt at the beginning of the next era.
  2270. *
  2271. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2272. *
  2273. * # <weight>
  2274. * - Independent of the arguments. Insignificant complexity.
  2275. * - Contains a limited number of reads.
  2276. * - Writes are limited to the `origin` account key.
  2277. * ---------
  2278. * - Weight: O(1)
  2279. * - DB Weight:
  2280. * - Read: Ledger
  2281. * - Write: Payee
  2282. * # </weight>
  2283. **/
  2284. setPayee: AugmentedSubmittable<(payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2285. /**
  2286. * Sets the ideal number of validators.
  2287. *
  2288. * The dispatch origin must be Root.
  2289. *
  2290. * # <weight>
  2291. * Weight: O(1)
  2292. * Write: Validator Count
  2293. * # </weight>
  2294. **/
  2295. setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2296. /**
  2297. * Submit an election result to the chain. If the solution:
  2298. *
  2299. * 1. is valid.
  2300. * 2. has a better score than a potentially existing solution on chain.
  2301. *
  2302. * then, it will be _put_ on chain.
  2303. *
  2304. * A solution consists of two pieces of data:
  2305. *
  2306. * 1. `winners`: a flat vector of all the winners of the round.
  2307. * 2. `assignments`: the compact version of an assignment vector that encodes the edge
  2308. * weights.
  2309. *
  2310. * Both of which may be computed using _phragmen_, or any other algorithm.
  2311. *
  2312. * Additionally, the submitter must provide:
  2313. *
  2314. * - The `score` that they claim their solution has.
  2315. *
  2316. * Both validators and nominators will be represented by indices in the solution. The
  2317. * indices should respect the corresponding types ([`ValidatorIndex`] and
  2318. * [`NominatorIndex`]). Moreover, they should be valid when used to index into
  2319. * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
  2320. * solution to be rejected. These two storage items are set during the election window and
  2321. * may be used to determine the indices.
  2322. *
  2323. * A solution is valid if:
  2324. *
  2325. * 0. It is submitted when [`EraElectionStatus`] is `Open`.
  2326. * 1. Its claimed score is equal to the score computed on-chain.
  2327. * 2. Presents the correct number of winners.
  2328. * 3. All indexes must be value according to the snapshot vectors. All edge values must
  2329. * also be correct and should not overflow the granularity of the ratio type (i.e. 256
  2330. * or billion).
  2331. * 4. For each edge, all targets are actually nominated by the voter.
  2332. * 5. Has correct self-votes.
  2333. *
  2334. * A solutions score is consisted of 3 parameters:
  2335. *
  2336. * 1. `min { support.total }` for each support of a winner. This value should be maximized.
  2337. * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
  2338. * 3. `sum { support.total^2 }` for each support of a winner. This value should be
  2339. * minimized (to ensure less variance)
  2340. *
  2341. * # <weight>
  2342. * The transaction is assumed to be the longest path, a better solution.
  2343. * - Initial solution is almost the same.
  2344. * - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
  2345. * # </weight>
  2346. **/
  2347. 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>>;
  2348. /**
  2349. * Unsigned version of `submit_election_solution`.
  2350. *
  2351. * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
  2352. * from the local node to be included. In other words, only the block author can include a
  2353. * transaction in the block.
  2354. *
  2355. * # <weight>
  2356. * See `crate::weight` module.
  2357. * # </weight>
  2358. **/
  2359. 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>>;
  2360. /**
  2361. * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
  2362. * period ends. If this leaves an amount actively bonded less than
  2363. * T::Currency::minimum_balance(), then it is increased to the full amount.
  2364. *
  2365. * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
  2366. * the funds out of management ready for transfer.
  2367. *
  2368. * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
  2369. * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
  2370. * to be called first to remove some of the chunks (if possible).
  2371. *
  2372. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2373. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2374. *
  2375. * Emits `Unbonded`.
  2376. *
  2377. * See also [`Call::withdraw_unbonded`].
  2378. *
  2379. * # <weight>
  2380. * - Independent of the arguments. Limited but potentially exploitable complexity.
  2381. * - Contains a limited number of reads.
  2382. * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
  2383. * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
  2384. * The only way to clean the aforementioned storage item is also user-controlled via
  2385. * `withdraw_unbonded`.
  2386. * - One DB entry.
  2387. * ----------
  2388. * Weight: O(1)
  2389. * DB Weight:
  2390. * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
  2391. * - Write: Locks, Ledger, BalanceOf Stash,
  2392. * </weight>
  2393. **/
  2394. unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2395. /**
  2396. * Declare the desire to validate for the origin controller.
  2397. *
  2398. * Effects will be felt at the beginning of the next era.
  2399. *
  2400. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2401. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2402. *
  2403. * # <weight>
  2404. * - Independent of the arguments. Insignificant complexity.
  2405. * - Contains a limited number of reads.
  2406. * - Writes are limited to the `origin` account key.
  2407. * -----------
  2408. * Weight: O(1)
  2409. * DB Weight:
  2410. * - Read: Era Election Status, Ledger
  2411. * - Write: Nominators, Validators
  2412. * # </weight>
  2413. **/
  2414. validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2415. /**
  2416. * Remove any unlocked chunks from the `unlocking` queue from our management.
  2417. *
  2418. * This essentially frees up that balance to be used by the stash account to do
  2419. * whatever it wants.
  2420. *
  2421. * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
  2422. * And, it can be only called when [`EraElectionStatus`] is `Closed`.
  2423. *
  2424. * Emits `Withdrawn`.
  2425. *
  2426. * See also [`Call::unbond`].
  2427. *
  2428. * # <weight>
  2429. * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
  2430. * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
  2431. * indirectly user-controlled. See [`unbond`] for more detail.
  2432. * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
  2433. * - Writes are limited to the `origin` account key.
  2434. * ---------------
  2435. * Complexity O(S) where S is the number of slashing spans to remove
  2436. * Update:
  2437. * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
  2438. * - Writes: [Origin Account], Locks, Ledger
  2439. * Kill:
  2440. * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
  2441. * Account], Locks, BalanceOf stash
  2442. * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
  2443. * [Origin Account], Locks, BalanceOf stash.
  2444. * - Writes Each: SpanSlash * S
  2445. * NOTE: Weight annotation is the kill scenario, we refund otherwise.
  2446. * # </weight>
  2447. **/
  2448. withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2449. };
  2450. storageWorkingGroup: {
  2451. /**
  2452. * Add a job opening for a regular worker/lead role.
  2453. * Require signed leader origin or the root (to add opening for the leader position).
  2454. *
  2455. * # <weight>
  2456. *
  2457. * ## Weight
  2458. * `O (D)` where:
  2459. * - `D` is the length of `description`
  2460. * - DB:
  2461. * - O(1) doesn't depend on the state or parameters
  2462. * # </weight>
  2463. **/
  2464. addOpening: AugmentedSubmittable<(description: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Regular' | number | Uint8Array, stakePolicy: StakePolicy | { stake_amount?: any; leaving_unstaking_period?: any } | string | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2465. /**
  2466. * Apply on a worker opening.
  2467. *
  2468. * # <weight>
  2469. *
  2470. * ## Weight
  2471. * `O (D)` where:
  2472. * - `D` is the length of `p.description`
  2473. * - DB:
  2474. * - O(1) doesn't depend on the state or parameters
  2475. * # </weight>
  2476. **/
  2477. applyOnOpening: AugmentedSubmittable<(p: ApplyOnOpeningParameters | { member_id?: any; opening_id?: any; role_account_id?: any; reward_account_id?: any; description?: any; stake_parameters?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2478. /**
  2479. * Cancel an opening for the regular worker/lead position.
  2480. * Require signed leader origin or the root (to cancel opening for the leader position).
  2481. *
  2482. * # <weight>
  2483. *
  2484. * ## Weight
  2485. * `O (1)`
  2486. * - DB:
  2487. * - O(1) doesn't depend on the state or parameters
  2488. * # </weight>
  2489. **/
  2490. cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2491. /**
  2492. * Decreases the regular worker/lead stake and returns the remainder to the
  2493. * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
  2494. * Accepts the stake amount to decrease.
  2495. * Requires signed leader origin or the root (to decrease the leader stake).
  2496. *
  2497. * # <weight>
  2498. *
  2499. * ## Weight
  2500. * `O (1)`
  2501. * - DB:
  2502. * - O(1) doesn't depend on the state or parameters
  2503. * # </weight>
  2504. **/
  2505. decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2506. /**
  2507. * Fill opening for the regular/lead position.
  2508. * Require signed leader origin or the root (to fill opening for the leader position).
  2509. * # <weight>
  2510. *
  2511. * ## Weight
  2512. * `O (A)` where:
  2513. * - `A` is the length of `successful_application_ids`
  2514. * - DB:
  2515. * - O(A)
  2516. * # </weight>
  2517. **/
  2518. fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>>;
  2519. /**
  2520. * Increases the regular worker/lead stake, demands a worker origin.
  2521. * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
  2522. *
  2523. * # <weight>
  2524. *
  2525. * ## Weight
  2526. * `O (1)`
  2527. * - DB:
  2528. * - O(1) doesn't depend on the state or parameters
  2529. * # </weight>
  2530. **/
  2531. increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2532. /**
  2533. * Leave the role by the active worker.
  2534. * # <weight>
  2535. *
  2536. * ## Weight
  2537. * `O (1)`
  2538. * - DB:
  2539. * - O(1) doesn't depend on the state or parameters
  2540. * # </weight>
  2541. **/
  2542. leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2543. /**
  2544. * Sets a new budget for the working group.
  2545. * Requires root origin.
  2546. *
  2547. * # <weight>
  2548. *
  2549. * ## Weight
  2550. * `O (1)`
  2551. * - DB:
  2552. * - O(1) doesn't depend on the state or parameters
  2553. * # </weight>
  2554. **/
  2555. setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2556. /**
  2557. * Sets a new status text for the working group.
  2558. * Requires root origin.
  2559. *
  2560. * # <weight>
  2561. *
  2562. * ## Weight
  2563. * `O (S)` where:
  2564. * - `S` is the length of the contents of `status_text` when it is not none
  2565. *
  2566. * - DB:
  2567. * - O(1) doesn't depend on the state or parameters
  2568. * # </weight>
  2569. **/
  2570. setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2571. /**
  2572. * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
  2573. * If slashing balance greater than the existing stake - stake is slashed to zero.
  2574. * Requires signed leader origin or the root (to slash the leader stake).
  2575. * # <weight>
  2576. *
  2577. * ## Weight
  2578. * `O (P)` where:
  2579. * - `P` is the length of `penality.slashing_text`
  2580. * - DB:
  2581. * - O(1) doesn't depend on the state or parameters
  2582. * # </weight>
  2583. **/
  2584. slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2585. /**
  2586. * Transfers specified amount to any account.
  2587. * Requires leader origin.
  2588. *
  2589. * # <weight>
  2590. *
  2591. * ## Weight
  2592. * `O (1)`
  2593. * - DB:
  2594. * - O(1) doesn't depend on the state or parameters
  2595. * # </weight>
  2596. **/
  2597. spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2598. /**
  2599. * Terminate the active worker by the lead.
  2600. * Requires signed leader origin or the root (to terminate the leader role).
  2601. * # <weight>
  2602. *
  2603. * ## Weight
  2604. * `O (P)` where:
  2605. * - `P` is the length of `penalty.slashing_text`
  2606. * - DB:
  2607. * - O(1) doesn't depend on the state or parameters
  2608. * # </weight>
  2609. **/
  2610. terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2611. /**
  2612. * Update the reward account associated with a set reward relationship for the active worker.
  2613. *
  2614. * # <weight>
  2615. *
  2616. * ## Weight
  2617. * `O (1)`
  2618. * - DB:
  2619. * - O(1) doesn't depend on the state or parameters
  2620. * # </weight>
  2621. **/
  2622. updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2623. /**
  2624. * Update the reward per block for the active worker.
  2625. * Require signed leader origin or the root (to update leader's reward amount).
  2626. *
  2627. * # <weight>
  2628. *
  2629. * ## Weight
  2630. * `O (1)`
  2631. * - DB:
  2632. * - O(1) doesn't depend on the state or parameters
  2633. * # </weight>
  2634. **/
  2635. updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2636. /**
  2637. * Update the associated role account of the active regular worker/lead.
  2638. *
  2639. * # <weight>
  2640. *
  2641. * ## Weight
  2642. * `O (1)`
  2643. * - DB:
  2644. * - O(1) doesn't depend on the state or parameters
  2645. * # </weight>
  2646. **/
  2647. updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2648. /**
  2649. * Withdraw the worker application. Can be done by the worker only.
  2650. *
  2651. * # <weight>
  2652. *
  2653. * ## Weight
  2654. * `O (1)`
  2655. * - DB:
  2656. * - O(1) doesn't depend on the state or parameters
  2657. * # </weight>
  2658. **/
  2659. withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2660. };
  2661. sudo: {
  2662. /**
  2663. * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
  2664. *
  2665. * The dispatch origin for this call must be _Signed_.
  2666. *
  2667. * # <weight>
  2668. * - O(1).
  2669. * - Limited storage reads.
  2670. * - One DB change.
  2671. * # </weight>
  2672. **/
  2673. setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2674. /**
  2675. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  2676. *
  2677. * The dispatch origin for this call must be _Signed_.
  2678. *
  2679. * # <weight>
  2680. * - O(1).
  2681. * - Limited storage reads.
  2682. * - One DB write (event).
  2683. * - Weight of derivative `call` execution + 10,000.
  2684. * # </weight>
  2685. **/
  2686. sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2687. /**
  2688. * Authenticates the sudo key and dispatches a function call with `Signed` origin from
  2689. * a given account.
  2690. *
  2691. * The dispatch origin for this call must be _Signed_.
  2692. *
  2693. * # <weight>
  2694. * - O(1).
  2695. * - Limited storage reads.
  2696. * - One DB write (event).
  2697. * - Weight of derivative `call` execution + 10,000.
  2698. * # </weight>
  2699. **/
  2700. sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2701. /**
  2702. * Authenticates the sudo key and dispatches a function call with `Root` origin.
  2703. * This function does not check the weight of the call, and instead allows the
  2704. * Sudo user to specify the weight of the call.
  2705. *
  2706. * The dispatch origin for this call must be _Signed_.
  2707. *
  2708. * # <weight>
  2709. * - O(1).
  2710. * - The weight of this call is defined by the caller.
  2711. * # </weight>
  2712. **/
  2713. sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2714. };
  2715. system: {
  2716. /**
  2717. * A dispatch that will fill the block weight up to the given ratio.
  2718. **/
  2719. fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2720. /**
  2721. * Kill all storage items with a key that starts with the given prefix.
  2722. *
  2723. * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
  2724. * the prefix we are removing to accurately calculate the weight of this function.
  2725. *
  2726. * # <weight>
  2727. * - `O(P)` where `P` amount of keys with prefix `prefix`
  2728. * - `P` storage deletions.
  2729. * - Base Weight: 0.834 * P µs
  2730. * - Writes: Number of subkeys + 1
  2731. * # </weight>
  2732. **/
  2733. killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2734. /**
  2735. * Kill some items from storage.
  2736. *
  2737. * # <weight>
  2738. * - `O(IK)` where `I` length of `keys` and `K` length of one key
  2739. * - `I` storage deletions.
  2740. * - Base Weight: .378 * i µs
  2741. * - Writes: Number of items
  2742. * # </weight>
  2743. **/
  2744. killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  2745. /**
  2746. * Make some on-chain remark.
  2747. *
  2748. * # <weight>
  2749. * - `O(1)`
  2750. * - Base Weight: 0.665 µs, independent of remark length.
  2751. * - No DB operations.
  2752. * # </weight>
  2753. **/
  2754. remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2755. /**
  2756. * Set the new changes trie configuration.
  2757. *
  2758. * # <weight>
  2759. * - `O(1)`
  2760. * - 1 storage write or delete (codec `O(1)`).
  2761. * - 1 call to `deposit_log`: Uses `append` API, so O(1)
  2762. * - Base Weight: 7.218 µs
  2763. * - DB Weight:
  2764. * - Writes: Changes Trie, System Digest
  2765. * # </weight>
  2766. **/
  2767. setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2768. /**
  2769. * Set the new runtime code.
  2770. *
  2771. * # <weight>
  2772. * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
  2773. * - 1 storage write (codec `O(C)`).
  2774. * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
  2775. * - 1 event.
  2776. * The weight of this function is dependent on the runtime, but generally this is very expensive.
  2777. * We will treat this as a full block.
  2778. * # </weight>
  2779. **/
  2780. setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2781. /**
  2782. * Set the new runtime code without doing any checks of the given `code`.
  2783. *
  2784. * # <weight>
  2785. * - `O(C)` where `C` length of `code`
  2786. * - 1 storage write (codec `O(C)`).
  2787. * - 1 event.
  2788. * The weight of this function is dependent on the runtime. We will treat this as a full block.
  2789. * # </weight>
  2790. **/
  2791. setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2792. /**
  2793. * Set the number of pages in the WebAssembly environment's heap.
  2794. *
  2795. * # <weight>
  2796. * - `O(1)`
  2797. * - 1 storage write.
  2798. * - Base Weight: 1.405 µs
  2799. * - 1 write to HEAP_PAGES
  2800. * # </weight>
  2801. **/
  2802. setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2803. /**
  2804. * Set some items of storage.
  2805. *
  2806. * # <weight>
  2807. * - `O(I)` where `I` length of `items`
  2808. * - `I` storage writes (`O(1)`).
  2809. * - Base Weight: 0.568 * i µs
  2810. * - Writes: Number of items
  2811. * # </weight>
  2812. **/
  2813. setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>>;
  2814. /**
  2815. * Kill the sending account, assuming there are no references outstanding and the composite
  2816. * data is equal to its default value.
  2817. *
  2818. * # <weight>
  2819. * - `O(1)`
  2820. * - 1 storage read and deletion.
  2821. * --------------------
  2822. * Base Weight: 8.626 µs
  2823. * No DB Read or Write operations because caller is already in overlay
  2824. * # </weight>
  2825. **/
  2826. suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
  2827. };
  2828. timestamp: {
  2829. /**
  2830. * Set the current time.
  2831. *
  2832. * This call should be invoked exactly once per block. It will panic at the finalization
  2833. * phase, if this call hasn't been invoked by that time.
  2834. *
  2835. * The timestamp should be greater than the previous one by the amount specified by
  2836. * `MinimumPeriod`.
  2837. *
  2838. * The dispatch origin for this call must be `Inherent`.
  2839. *
  2840. * # <weight>
  2841. * - `O(T)` where `T` complexity of `on_timestamp_set`
  2842. * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
  2843. * - 1 event handler `on_timestamp_set` `O(T)`.
  2844. * # </weight>
  2845. **/
  2846. set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2847. };
  2848. utility: {
  2849. /**
  2850. * Send a call through an indexed pseudonym of the sender.
  2851. *
  2852. * Filter from origin are passed along. The call will be dispatched with an origin which
  2853. * use the same filter as the origin of this call.
  2854. *
  2855. * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
  2856. * because you expect `proxy` to have been used prior in the call stack and you do not want
  2857. * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
  2858. * in the Multisig pallet instead.
  2859. *
  2860. * NOTE: Prior to version *12, this was called `as_limited_sub`.
  2861. *
  2862. * The dispatch origin for this call must be _Signed_.
  2863. **/
  2864. asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
  2865. /**
  2866. * Send a batch of dispatch calls.
  2867. *
  2868. * May be called from any origin.
  2869. *
  2870. * - `calls`: The calls to be dispatched from the same origin.
  2871. *
  2872. * If origin is root then call are dispatch without checking origin filter. (This includes
  2873. * bypassing `frame_system::Trait::BaseCallFilter`).
  2874. *
  2875. * # <weight>
  2876. * - Base weight: 14.39 + .987 * c µs
  2877. * - Plus the sum of the weights of the `calls`.
  2878. * - Plus one additional event. (repeat read/write)
  2879. * # </weight>
  2880. *
  2881. * This will return `Ok` in all circumstances. To determine the success of the batch, an
  2882. * event is deposited. If a call failed and the batch was interrupted, then the
  2883. * `BatchInterrupted` event is deposited, along with the number of successful calls made
  2884. * and the error of the failed call. If all were successful, then the `BatchCompleted`
  2885. * event is deposited.
  2886. **/
  2887. batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
  2888. };
  2889. }
  2890. export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
  2891. (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
  2892. }
  2893. }