12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326 |
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
- /* eslint-disable */
- import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Vec, bool, u16, u32, u64, u8 } from '@polkadot/types';
- import type { AnyNumber } from '@polkadot/types/types';
- import type { ActorId, ApplicationId, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, ContentActor, ContentId, ContentParameters, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, EntryId, ExtendedPostId, ForumUserId, FundingRequestParameters, GeneralProposalParameters, InviteMembershipParameters, MemberId, MemoText, ModeratorId, ObjectOwner, OpeningId, OpeningType, OracleJudgment, ParticipantId, PersonActor, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PollInput, PostId, PostReactionId, PrivilegedActor, ProposalDetailsOf, ProposalId, ReplyId, ReplyToDelete, SeriesId, SeriesParameters, StakePolicy, StorageProviderId, ThreadId, ThreadMode, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, WorkerId, WorkingGroup } from './all';
- import type { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
- import type { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
- import type { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
- import type { Heartbeat } from '@polkadot/types/interfaces/imOnline';
- import type { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
- import type { Keys } from '@polkadot/types/interfaces/session';
- import type { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
- import type { Key } from '@polkadot/types/interfaces/system';
- import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types';
- declare module '@polkadot/api/types/submittable' {
- export interface AugmentedSubmittables<ApiType> {
- authorship: {
- /**
- * Provide a set of uncles.
- **/
- setUncles: AugmentedSubmittable<(newUncles: Vec<Header> | (Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Header>]>;
- };
- babe: {
- /**
- * Report authority equivocation/misbehavior. This method will verify
- * the equivocation proof and validate the given key ownership proof
- * against the extracted offender. If both are valid, the offence will
- * be reported.
- **/
- reportEquivocation: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BabeEquivocationProof, KeyOwnerProof]>;
- /**
- * Report authority equivocation/misbehavior. This method will verify
- * the equivocation proof and validate the given key ownership proof
- * against the extracted offender. If both are valid, the offence will
- * be reported.
- * This extrinsic must be called unsigned and it is expected that only
- * block authors will call it (validated in `ValidateUnsigned`), as such
- * if the block author is defined it will be defined as the equivocation
- * reporter.
- **/
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BabeEquivocationProof, KeyOwnerProof]>;
- };
- balances: {
- /**
- * Exactly as `transfer`, except the origin must be root and the source account may be
- * specified.
- * # <weight>
- * - Same as transfer, but additional read and write because the source account is
- * not assumed to be in the overlay.
- * # </weight>
- **/
- forceTransfer: AugmentedSubmittable<(source: LookupSource | string | Uint8Array, dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, LookupSource, Compact<Balance>]>;
- /**
- * Set the balances of a given account.
- *
- * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
- * also decrease the total issuance of the system (`TotalIssuance`).
- * If the new free or reserved balance is below the existential deposit,
- * it will reset the account nonce (`frame_system::AccountNonce`).
- *
- * The dispatch origin for this call is `root`.
- *
- * # <weight>
- * - Independent of the arguments.
- * - Contains a limited number of reads and writes.
- * ---------------------
- * - Base Weight:
- * - Creating: 27.56 µs
- * - Killing: 35.11 µs
- * - DB Weight: 1 Read, 1 Write to `who`
- * # </weight>
- **/
- setBalance: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, newFree: Compact<Balance> | AnyNumber | Uint8Array, newReserved: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>, Compact<Balance>]>;
- /**
- * Transfer some liquid free balance to another account.
- *
- * `transfer` will set the `FreeBalance` of the sender and receiver.
- * It will decrease the total issuance of the system by the `TransferFee`.
- * If the sender's account is below the existential deposit as a result
- * of the transfer, the account will be reaped.
- *
- * The dispatch origin for this call must be `Signed` by the transactor.
- *
- * # <weight>
- * - Dependent on arguments but not critical, given proper implementations for
- * input config types. See related functions below.
- * - It contains a limited number of reads and writes internally and no complex computation.
- *
- * Related functions:
- *
- * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
- * - Transferring balances to accounts that did not exist before will cause
- * `T::OnNewAccount::on_new_account` to be called.
- * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
- * - `transfer_keep_alive` works the same way as `transfer`, but has an additional
- * check that the transfer will not kill the origin account.
- * ---------------------------------
- * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
- * - DB Weight: 1 Read and 1 Write to destination account
- * - Origin account is already in memory, so no DB operations for them.
- * # </weight>
- **/
- transfer: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>]>;
- /**
- * Same as the [`transfer`] call, but with a check that the transfer will not kill the
- * origin account.
- *
- * 99% of the time you want [`transfer`] instead.
- *
- * [`transfer`]: struct.Module.html#method.transfer
- * # <weight>
- * - Cheaper than transfer because account cannot be killed.
- * - Base Weight: 51.4 µs
- * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
- * #</weight>
- **/
- transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>]>;
- };
- blog: {
- /**
- * Blog owner can create posts, related to a given blog, if related blog is unlocked
- *
- * <weight>
- *
- * ## Weight
- * `O (T + B)` where:
- * - `T` is the length of the title
- * - `B` is the length of the body
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- createPost: AugmentedSubmittable<(title: Bytes | string | Uint8Array, body: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Bytes]>;
- /**
- * Create either root post reply or direct reply to reply
- * (Only accessible, if related blog and post are unlocked)
- * <weight>
- *
- * ## Weight
- * `O (T)` where:
- * - `T` is the length of the `text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ParticipantId, PostId, Option<ReplyId>, Bytes, bool]>;
- /**
- * Remove reply from storage
- *
- * <weight>
- *
- * ## Weight
- * `O (R)` where
- * - R is the number of replies to be deleted
- * - DB:
- * - O(R)
- * # </weight>
- **/
- deleteReplies: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, replies: Vec<ReplyToDelete> | (ReplyToDelete | { post_id?: any; reply_id?: any; hide?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ParticipantId, Vec<ReplyToDelete>]>;
- /**
- * Blog owner can edit post, related to a given blog (if unlocked)
- * with a new title and/or body
- * <weight>
- *
- * ## Weight
- * `O (T + B)` where:
- * - `T` is the length of the `new_title`
- * - `B` is the length of the `new_body`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- editPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newTitle: Option<Bytes> | null | object | string | Uint8Array, newBody: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Option<Bytes>, Option<Bytes>]>;
- /**
- * Reply owner can edit reply with a new text
- * (Only accessible, if related blog and post are unlocked)
- *
- * <weight>
- *
- * ## Weight
- * `O (T)` where:
- * - `T` is the length of the `new_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- editReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: ReplyId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ParticipantId, PostId, ReplyId, Bytes]>;
- /**
- * Blog owner can lock posts, related to a given blog,
- * making post immutable to any actions (replies creation, post editing, etc.)
- *
- * <weight>
- *
- * ## Weight
- * `O (1)` doesn't depends on the state or parameters
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- lockPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId]>;
- /**
- * Blog owner can unlock posts, related to a given blog,
- * making post accesible to previously forbidden actions
- *
- * <weight>
- *
- * ## Weight
- * `O (1)` doesn't depends on the state or parameters
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- unlockPost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId]>;
- };
- bounty: {
- /**
- * Announce work entry for a successful bounty.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- announceWorkEntry: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, AccountId]>;
- /**
- * Cancels a bounty.
- * It returns a cherry to creator and removes bounty.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelBounty: AugmentedSubmittable<(creator: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId]>;
- /**
- * Creates a bounty. Metadata stored in the transaction log but discarded after that.
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the _metadata length.
- * - `M` is closed contract member list length.
- * - DB:
- * - O(M) (O(1) on open contract)
- * # </weight>
- **/
- 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>, [BountyCreationParameters, Bytes]>;
- /**
- * Provides bounty funding.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- fundBounty: AugmentedSubmittable<(funder: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId, BalanceOf]>;
- /**
- * Submits an oracle judgment for a bounty.
- * # <weight>
- *
- * ## weight
- * `O (N)`
- * - `N` is the work_data length,
- * - db:
- * - `O(N)`
- * # </weight>
- **/
- submitOracleJudgment: AugmentedSubmittable<(oracle: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, judgment: OracleJudgment) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId, OracleJudgment]>;
- /**
- * Submit work for a bounty.
- * # <weight>
- *
- * ## weight
- * `O (N)`
- * - `N` is the work_data length,
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- submitWork: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array, workData: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, EntryId, Bytes]>;
- /**
- * Vetoes a bounty.
- * It returns a cherry to creator and removes bounty.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- vetoBounty: AugmentedSubmittable<(bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyId]>;
- /**
- * Withdraw bounty funding by a member or a council.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawFunding: AugmentedSubmittable<(funder: BountyActor | { Council: any } | { Member: any } | string | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BountyActor, BountyId]>;
- /**
- * Withdraw work entrant funds.
- * Both legitimate participants and winners get their stake unlocked. Winners also get a
- * bounty reward.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawWorkEntrantFunds: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, EntryId]>;
- /**
- * Withdraw work entry for a bounty. Existing stake could be partially slashed.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawWorkEntry: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, bountyId: BountyId | AnyNumber | Uint8Array, entryId: EntryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, BountyId, EntryId]>;
- };
- constitution: {
- /**
- * Sets the current constitution hash. Requires root origin.
- * # <weight>
- * - Complexity: `O(C)` where C is the length of the constitution text.
- * - Db reads: 0
- * - Db writes: 1 (constant value)
- * # </weight>
- **/
- amendConstitution: AugmentedSubmittable<(constitutionText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
- };
- content: {
- acceptChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequestId]>;
- /**
- * Add curator to curator group under given `curator_group_id`
- **/
- addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
- addPersonToVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, PersonId]>;
- cancelChannelTransferRequest: AugmentedSubmittable<(requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ChannelOwnershipTransferRequestId]>;
- createChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCreationParameters | { assets?: any; meta?: any; reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCreationParameters]>;
- createChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryCreationParameters]>;
- /**
- * Add new curator group to runtime storage
- **/
- createCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- createPerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, params: PersonCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonCreationParameters]>;
- createPlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: PlaylistCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, PlaylistCreationParameters]>;
- createSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: SeriesParameters | { assets?: any; seasons?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, SeriesParameters]>;
- createVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: VideoCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, VideoCreationParameters]>;
- createVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: VideoCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryCreationParameters]>;
- deleteChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId]>;
- deletePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId]>;
- deletePlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, playlist: PlaylistId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, PlaylistId]>;
- deleteSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, series: SeriesId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, SeriesId]>;
- deleteVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId]>;
- deleteVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId]>;
- /**
- * Remove assets of a channel from storage
- **/
- removeChannelAssets: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, assets: Vec<ContentId> | (ContentId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, Vec<ContentId>]>;
- /**
- * Remove curator from a given curator group
- **/
- removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
- removePersonFromVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId]>;
- requestChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, request: ChannelOwnershipTransferRequest | { channel_id?: any; new_owner?: any; payment?: any; new_reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequest]>;
- /**
- * Set `is_active` status for curator group under given `curator_group_id`
- **/
- setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, bool]>;
- setFeaturedVideos: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, list: Vec<VideoId> | (VideoId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ContentActor, Vec<VideoId>]>;
- updateChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: ChannelUpdateParameters | { assets?: any; new_meta?: any; reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, ChannelUpdateParameters]>;
- updateChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array, params: ChannelCategoryUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
- updateChannelCensorshipStatus: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, isCensored: bool | boolean | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, bool, Bytes]>;
- updatePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array, params: PersonUpdateParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId, PersonUpdateParameters]>;
- updatePlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, playlist: PlaylistId | AnyNumber | Uint8Array, params: PlaylistUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
- updateSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: SeriesParameters | { assets?: any; seasons?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, SeriesParameters]>;
- updateVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, params: VideoUpdateParameters | { assets?: any; new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, VideoUpdateParameters]>;
- updateVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array, params: VideoCategoryUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
- updateVideoCensorshipStatus: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, isCensored: bool | boolean | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, bool, Bytes]>;
- };
- contentDirectoryWorkingGroup: {
- /**
- * Add a job opening for a regular worker/lead role.
- * Require signed leader origin or the root (to add opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
- /**
- * Apply on a worker opening.
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `p.description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ApplyOnOpeningParameters]>;
- /**
- * Cancel an opening for the regular worker/lead position.
- * Require signed leader origin or the root (to cancel opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
- /**
- * Decreases the regular worker/lead stake and returns the remainder to the
- * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
- * Accepts the stake amount to decrease.
- * Requires signed leader origin or the root (to decrease the leader stake).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Fill opening for the regular/lead position.
- * Require signed leader origin or the root (to fill opening for the leader position).
- * # <weight>
- *
- * ## Weight
- * `O (A)` where:
- * - `A` is the length of `successful_application_ids`
- * - DB:
- * - O(A)
- * # </weight>
- **/
- fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
- /**
- * Increases the regular worker/lead stake, demands a worker origin.
- * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Leave the role by the active worker.
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
- /**
- * Sets a new budget for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Sets a new status text for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the contents of `status_text` when it is not none
- *
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
- /**
- * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
- * If slashing balance greater than the existing stake - stake is slashed to zero.
- * Requires signed leader origin or the root (to slash the leader stake).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penality.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
- /**
- * Transfers specified amount to any account.
- * Requires leader origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
- /**
- * Terminate the active worker by the lead.
- * Requires signed leader origin or the root (to terminate the leader role).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penalty.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
- /**
- * Update the reward account associated with a set reward relationship for the active worker.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the reward per block for the active worker.
- * Require signed leader origin or the root (to update leader's reward amount).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
- /**
- * Update the associated role account of the active regular worker/lead.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the associated role storage.
- **/
- updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
- /**
- * Withdraw the worker application. Can be done by the worker only.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
- };
- council: {
- /**
- * Subscribe candidate
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- announceCandidacy: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array, rewardAccountId: AccountId | string | Uint8Array, stake: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId, AccountId, Balance]>;
- /**
- * Transfers funds from council budget to account
- *
- * # <weight>
- *
- * ## weight
- * `O (F)` where:
- * `F` is the length of `funding_requests`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- fundingRequest: AugmentedSubmittable<(fundingRequests: Vec<FundingRequestParameters> | (FundingRequestParameters | { account?: any; amount?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<FundingRequestParameters>]>;
- /**
- * Plan the next budget refill.
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- planBudgetRefill: AugmentedSubmittable<(nextRefill: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
- /**
- * Release candidacy stake that is no longer needed.
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- releaseCandidacyStake: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
- /**
- * Sets the budget balance.
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(balance: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Balance]>;
- /**
- * Sets the budget refill amount
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudgetIncrement: AugmentedSubmittable<(budgetIncrement: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Balance]>;
- /**
- * Set short description for the user's candidacy. Can be called anytime during user's candidacy.
- *
- * # <weight>
- *
- * ## weight
- * `O (N)` where:
- * `N` is the length of `note`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- setCandidacyNote: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array, note: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
- /**
- * Sets the councilor reward per block
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- setCouncilorReward: AugmentedSubmittable<(councilorReward: Balance | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Balance]>;
- /**
- * Withdraw candidacy and release candidacy stake.
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawCandidacy: AugmentedSubmittable<(membershipId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
- };
- dataDirectory: {
- /**
- * Storage provider accepts a content. Requires signed storage provider account and its id.
- * The LiaisonJudgement can only be updated once from Pending to Accepted.
- * Subsequent calls are a no-op.
- **/
- acceptContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, ContentId]>;
- /**
- * Adds the content to the frame_system. The created DataObject
- * awaits liaison to accept it.
- **/
- addContent: AugmentedSubmittable<(owner: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array, content: Vec<ContentParameters> | (ContentParameters | { content_id?: any; type_id?: any; ipfs_content_id?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ObjectOwner, Vec<ContentParameters>]>;
- /**
- * Remove the content from the frame_system.
- **/
- removeContent: AugmentedSubmittable<(owner: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array, contentIds: Vec<ContentId> | (ContentId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ObjectOwner, Vec<ContentId>]>;
- /**
- * Set the default owner voucher
- **/
- setDefaultVoucher: AugmentedSubmittable<(sizeLimit: u64 | AnyNumber | Uint8Array, objectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
- /**
- * Sets global voucher objects limit. Requires root privileges.
- * New limit cannot be less that used value.
- **/
- setGlobalVoucherObjectsLimit: AugmentedSubmittable<(newObjectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
- /**
- * Sets global voucher size limit. Requires root privileges.
- * New limit cannot be less that used value.
- **/
- setGlobalVoucherSizeLimit: AugmentedSubmittable<(newSizeLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
- /**
- * Sets VoucherObjectsLimitUpperBound. Requires root privileges.
- **/
- setVoucherObjectsLimitUpperBound: AugmentedSubmittable<(newUpperBound: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
- /**
- * Sets VoucherSizeLimitUpperBound. Requires root privileges.
- **/
- setVoucherSizeLimitUpperBound: AugmentedSubmittable<(newUpperBound: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
- /**
- * Locks / unlocks content uploading
- **/
- updateContentUploadingStatus: AugmentedSubmittable<(isBlocked: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
- /**
- * Updates storage object owner voucher objects limit. Requires leader privileges.
- * New limit cannot be less that used value.
- **/
- updateStorageObjectOwnerVoucherObjectsLimit: AugmentedSubmittable<(objectOwner: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array, newVoucherObjectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ObjectOwner, u64]>;
- /**
- * Updates storage object owner voucher size limit. Requires leader privileges.
- * New limit cannot be less that used value.
- **/
- updateStorageObjectOwnerVoucherSizeLimit: AugmentedSubmittable<(objectOwner: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array, newVoucherSizeLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ObjectOwner, u64]>;
- };
- dataObjectStorageRegistry: {
- /**
- * Add storage provider-to-content relationship. The storage provider should be registered
- * in the storage working group.
- **/
- addRelationship: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, cid: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, ContentId]>;
- /**
- * Activates storage provider-to-content relationship. The storage provider should be registered
- * in the storage working group. A storage provider may flip their own ready state, but nobody else.
- **/
- setRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, DataObjectStorageRelationshipId]>;
- /**
- * Deactivates storage provider-to-content relationship. The storage provider should be registered
- * in the storage working group. A storage provider may flip their own ready state, but nobody else.
- **/
- unsetRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageProviderId, DataObjectStorageRelationshipId]>;
- };
- dataObjectTypeRegistry: {
- /**
- * Activates existing data object type. Requires leader privileges.
- **/
- activateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectTypeId]>;
- /**
- * Deactivates existing data object type. Requires leader privileges.
- **/
- deactivateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectTypeId]>;
- /**
- * Registers the new data object type. Requires leader privileges.
- **/
- registerDataObjectType: AugmentedSubmittable<(dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectType]>;
- /**
- * Updates existing data object type. Requires leader privileges.
- **/
- updateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array, dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DataObjectTypeId, DataObjectType]>;
- };
- finalityTracker: {
- /**
- * Hint that the author of this block thinks the best finalized
- * block is the given number.
- **/
- finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BlockNumber>]>;
- };
- forum: {
- /**
- * Add post
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth,
- * - `V` is the length of the text
- * - DB:
- * - O(W)
- * # </weight>
- **/
- addPost: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, Bytes, bool]>;
- /**
- * Add a new category.
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V + X)` where:
- * - `W` is the category depth
- * - `V` is the length of the category title.
- * - `X` is the length of the category description.
- * - DB:
- * - O(W)
- * # </weight>
- **/
- createCategory: AugmentedSubmittable<(parentCategoryId: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<CategoryId>, Bytes, Bytes]>;
- /**
- * Create new thread in category with poll
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V + X + Y)` where:
- * - `W` is the category depth
- * - `V` is the length of the thread title.
- * - `X` is the length of the thread text.
- * - `Y` is the number of poll alternatives.
- * - DB:
- * - O(W)
- * # </weight>
- **/
- createThread: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array, pollInput: Option<PollInput> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, Bytes, Bytes, Option<PollInput>]>;
- /**
- * Delete category
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the category depth
- * - DB:
- * - O(W)
- * # </weight>
- **/
- deleteCategory: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId]>;
- /**
- * Delete post from storage.
- * You need to provide a vector of posts to delete in the form
- * (T::CategoryId, T::ThreadId, T::PostId, bool)
- * where the last bool is whether you want to hide it apart from deleting it
- *
- * ## Weight
- * `O (W + V + P)` where:
- * - `W` is the category depth,
- * - `V` is the length of the rationale
- * - `P` is the number of posts to delete
- * - DB:
- * - O(W + P)
- * # </weight>
- **/
- deletePosts: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, posts: BTreeMap<ExtendedPostId, bool>, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, BTreeMap<ExtendedPostId, bool>, Bytes]>;
- /**
- * Delete thread
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the category depth
- * - DB:
- * - O(W)
- * # </weight>
- **/
- deleteThread: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, hide: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, bool]>;
- /**
- * Edit post text
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth,
- * - `V` is the length of the new text
- * - DB:
- * - O(W)
- * # </weight>
- **/
- editPostText: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, PostId, Bytes]>;
- /**
- * Edit thread title
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth
- * - `V` is the length of the thread title.
- * - DB:
- * - O(W)
- * # </weight>
- **/
- editThreadMetadata: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newMetadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, Bytes]>;
- /**
- * Moderate post
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth,
- * - `V` is the length of the rationale
- * - DB:
- * - O(W)
- * # </weight>
- **/
- 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>, [PrivilegedActor, CategoryId, ThreadId, PostId, Bytes]>;
- /**
- * Moderate thread
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V + X)` where:
- * - `W` is the category depth,
- * - `V` is the number of thread posts,
- * - `X` is the length of the rationale
- * - DB:
- * - O(W + V)
- * # </weight>
- **/
- moderateThread: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, ThreadId, Bytes]>;
- /**
- * Move thread to another category
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the category depth
- * - DB:
- * - O(W)
- * # </weight>
- **/
- moveThreadToCategory: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newCategoryId: CategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, ThreadId, CategoryId]>;
- /**
- * Like or unlike a post.
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the category depth,
- * - DB:
- * - O(W)
- * # </weight>
- **/
- reactPost: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, react: PostReactionId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, PostId, PostReactionId]>;
- /**
- * Set stickied threads for category
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth,
- * - `V` is the length of the stickied_ids
- * - DB:
- * - O(W + V)
- * # </weight>
- **/
- setStickiedThreads: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, stickiedIds: Vec<ThreadId> | (ThreadId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, Vec<ThreadId>]>;
- /**
- * Update archival status
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the category depth
- * - DB:
- * - O(W)
- * # </weight>
- **/
- updateCategoryArchivalStatus: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, bool]>;
- /**
- * Update category description
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the category depth
- * - `V` is the length of the category description.
- * - DB:
- * - O(W)
- * # </weight>
- **/
- updateCategoryDescription: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, Bytes]>;
- /**
- * Enable a moderator can moderate a category and its sub categories.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateCategoryMembershipOfModerator: AugmentedSubmittable<(moderatorId: ModeratorId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newValue: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ModeratorId, CategoryId, bool]>;
- /**
- * Update category title
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth
- * - `V` is the length of the category title.
- * - DB:
- * - O(W)
- * # </weight>
- **/
- updateCategoryTitle: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PrivilegedActor, CategoryId, Bytes]>;
- /**
- * Submit a poll
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V)` where:
- * - `W` is the category depth,
- * - `V` is the number of poll alternatives.
- * - DB:
- * - O(W)
- * # </weight>
- **/
- voteOnPoll: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ForumUserId, CategoryId, ThreadId, u32]>;
- };
- forumWorkingGroup: {
- /**
- * Add a job opening for a regular worker/lead role.
- * Require signed leader origin or the root (to add opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
- /**
- * Apply on a worker opening.
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `p.description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ApplyOnOpeningParameters]>;
- /**
- * Cancel an opening for the regular worker/lead position.
- * Require signed leader origin or the root (to cancel opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
- /**
- * Decreases the regular worker/lead stake and returns the remainder to the
- * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
- * Accepts the stake amount to decrease.
- * Requires signed leader origin or the root (to decrease the leader stake).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Fill opening for the regular/lead position.
- * Require signed leader origin or the root (to fill opening for the leader position).
- * # <weight>
- *
- * ## Weight
- * `O (A)` where:
- * - `A` is the length of `successful_application_ids`
- * - DB:
- * - O(A)
- * # </weight>
- **/
- fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
- /**
- * Increases the regular worker/lead stake, demands a worker origin.
- * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Leave the role by the active worker.
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
- /**
- * Sets a new budget for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Sets a new status text for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the contents of `status_text` when it is not none
- *
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
- /**
- * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
- * If slashing balance greater than the existing stake - stake is slashed to zero.
- * Requires signed leader origin or the root (to slash the leader stake).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penality.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
- /**
- * Transfers specified amount to any account.
- * Requires leader origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
- /**
- * Terminate the active worker by the lead.
- * Requires signed leader origin or the root (to terminate the leader role).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penalty.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
- /**
- * Update the reward account associated with a set reward relationship for the active worker.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the reward per block for the active worker.
- * Require signed leader origin or the root (to update leader's reward amount).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
- /**
- * Update the associated role account of the active regular worker/lead.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the associated role storage.
- **/
- updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
- /**
- * Withdraw the worker application. Can be done by the worker only.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
- };
- gatewayWorkingGroup: {
- /**
- * Add a job opening for a regular worker/lead role.
- * Require signed leader origin or the root (to add opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
- /**
- * Apply on a worker opening.
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `p.description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ApplyOnOpeningParameters]>;
- /**
- * Cancel an opening for the regular worker/lead position.
- * Require signed leader origin or the root (to cancel opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
- /**
- * Decreases the regular worker/lead stake and returns the remainder to the
- * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
- * Accepts the stake amount to decrease.
- * Requires signed leader origin or the root (to decrease the leader stake).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Fill opening for the regular/lead position.
- * Require signed leader origin or the root (to fill opening for the leader position).
- * # <weight>
- *
- * ## Weight
- * `O (A)` where:
- * - `A` is the length of `successful_application_ids`
- * - DB:
- * - O(A)
- * # </weight>
- **/
- fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
- /**
- * Increases the regular worker/lead stake, demands a worker origin.
- * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Leave the role by the active worker.
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
- /**
- * Sets a new budget for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Sets a new status text for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the contents of `status_text` when it is not none
- *
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
- /**
- * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
- * If slashing balance greater than the existing stake - stake is slashed to zero.
- * Requires signed leader origin or the root (to slash the leader stake).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penality.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
- /**
- * Transfers specified amount to any account.
- * Requires leader origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
- /**
- * Terminate the active worker by the lead.
- * Requires signed leader origin or the root (to terminate the leader role).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penalty.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
- /**
- * Update the reward account associated with a set reward relationship for the active worker.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the reward per block for the active worker.
- * Require signed leader origin or the root (to update leader's reward amount).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
- /**
- * Update the associated role account of the active regular worker/lead.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the associated role storage.
- **/
- updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
- /**
- * Withdraw the worker application. Can be done by the worker only.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
- };
- grandpa: {
- /**
- * Note that the current authority set of the GRANDPA finality gadget has
- * stalled. This will trigger a forced authority set change at the beginning
- * of the next session, to be enacted `delay` blocks after that. The delay
- * should be high enough to safely assume that the block signalling the
- * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
- * will start the new authority set using the given finalized block as base.
- * Only callable by root.
- **/
- noteStalled: AugmentedSubmittable<(delay: BlockNumber | AnyNumber | Uint8Array, bestFinalizedBlockNumber: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber, BlockNumber]>;
- /**
- * Report voter equivocation/misbehavior. This method will verify the
- * equivocation proof and validate the given key ownership proof
- * against the extracted offender. If both are valid, the offence
- * will be reported.
- **/
- reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
- /**
- * Report voter equivocation/misbehavior. This method will verify the
- * equivocation proof and validate the given key ownership proof
- * against the extracted offender. If both are valid, the offence
- * will be reported.
- *
- * This extrinsic must be called unsigned and it is expected that only
- * block authors will call it (validated in `ValidateUnsigned`), as such
- * if the block author is defined it will be defined as the equivocation
- * reporter.
- **/
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
- };
- imOnline: {
- /**
- * # <weight>
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len)
- * and E is length of `heartbeat.network_state.external_address`
- * - `O(K)`: decoding of length `K`
- * - `O(E)`: decoding/encoding of length `E`
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
- * `ReceivedHeartbeats`
- * - DbWrites: `ReceivedHeartbeats`
- * # </weight>
- **/
- heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Heartbeat, Signature]>;
- };
- joystreamUtility: {
- /**
- * Burns token for caller account
- * <weight>
- *
- * ## Weight
- * `O (1)` Doesn't depend on the state or parameters
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- burnAccountTokens: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Runtime upgrade proposal extrinsic.
- * Should be used as callable object to pass to the `engine` module.
- * <weight>
- *
- * ## Weight
- * `O (C)` where:
- * - `C` is the length of `wasm`
- * However, we treat this as a full block as `frame_system::Module::set_code` does
- * # </weight>
- **/
- executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
- /**
- * Signal proposal extrinsic. Should be used as callable object to pass to the `engine` module.
- *
- * <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the signal
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- executeSignalProposal: AugmentedSubmittable<(signal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
- /**
- * Update working group budget
- * <weight>
- *
- * ## Weight
- * `O (1)` Doesn't depend on the state or parameters
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateWorkingGroupBudget: AugmentedSubmittable<(workingGroup: WorkingGroup | 'Forum' | 'Storage' | 'Content' | 'Membership' | 'Operations' | 'Gateway' | number | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, balanceKind: BalanceKind | 'Positive' | 'Negative' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkingGroup, BalanceOf, BalanceKind]>;
- };
- members: {
- /**
- * Add staking account candidate for a member.
- * The membership must be confirmed before usage.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- addStakingAccountCandidate: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
- /**
- * Non-members can buy membership.
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V + X + Y)` where:
- * - `W` is the member name
- * - `V` is the member handle
- * - `X` is the member avatar uri
- * - `Y` is the member about
- * - DB:
- * - O(V)
- * # </weight>
- **/
- buyMembership: AugmentedSubmittable<(params: BuyMembershipParameters | { root_account?: any; controller_account?: any; handle?: any; metadata?: any; referrer_id?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BuyMembershipParameters]>;
- /**
- * Confirm staking account candidate for a member.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- confirmStakingAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, stakingAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
- /**
- * Invite a new member.
- *
- * <weight>
- *
- * ## Weight
- * `O (W + V + X + Y)` where:
- * - `W` is the member name
- * - `V` is the member handle
- * - `X` is the member avatar uri
- * - `Y` is the member about
- * - DB:
- * - O(V)
- * # </weight>
- **/
- inviteMember: AugmentedSubmittable<(params: InviteMembershipParameters | { inviting_member_id?: any; root_account?: any; controller_account?: any; handle?: any; metadata?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [InviteMembershipParameters]>;
- /**
- * Remove staking account for a member.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- removeStakingAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId]>;
- /**
- * Updates initial invitation balance for a invited member. Requires root origin.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setInitialInvitationBalance: AugmentedSubmittable<(newInitialBalance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Updates initial invitation count for a member. Requires root origin.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setInitialInvitationCount: AugmentedSubmittable<(newInvitationCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
- /**
- * Updates leader invitation quota. Requires root origin.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setLeaderInvitationQuota: AugmentedSubmittable<(invitationQuota: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
- /**
- * Updates membership price. Requires root origin.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setMembershipPrice: AugmentedSubmittable<(newPrice: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Updates membership referral cut percent value. Requires root origin.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setReferralCut: AugmentedSubmittable<(percentValue: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8]>;
- /**
- * Transfers invites from one member to another.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- transferInvites: AugmentedSubmittable<(sourceMemberId: MemberId | AnyNumber | Uint8Array, targetMemberId: MemberId | AnyNumber | Uint8Array, numberOfInvites: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, MemberId, u32]>;
- /**
- * Updates member root or controller accounts. No effect if both new accounts are empty.
- *
- * <weight>
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateAccounts: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: Option<AccountId> | null | object | string | Uint8Array, newControllerAccount: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Option<AccountId>, Option<AccountId>]>;
- /**
- * Update member's all or some of name, handle, avatar and about text.
- * No effect if no changed fields.
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the handle length
- * - DB:
- * - O(W)
- * # </weight>
- **/
- updateProfile: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, metadata: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Option<Bytes>, Option<Bytes>]>;
- /**
- * Updates member profile verification status. Requires working group member origin.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateProfileVerification: AugmentedSubmittable<(workerId: ActorId | AnyNumber | Uint8Array, targetMemberId: MemberId | AnyNumber | Uint8Array, isVerified: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActorId, MemberId, bool]>;
- };
- membershipWorkingGroup: {
- /**
- * Add a job opening for a regular worker/lead role.
- * Require signed leader origin or the root (to add opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
- /**
- * Apply on a worker opening.
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `p.description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ApplyOnOpeningParameters]>;
- /**
- * Cancel an opening for the regular worker/lead position.
- * Require signed leader origin or the root (to cancel opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
- /**
- * Decreases the regular worker/lead stake and returns the remainder to the
- * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
- * Accepts the stake amount to decrease.
- * Requires signed leader origin or the root (to decrease the leader stake).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Fill opening for the regular/lead position.
- * Require signed leader origin or the root (to fill opening for the leader position).
- * # <weight>
- *
- * ## Weight
- * `O (A)` where:
- * - `A` is the length of `successful_application_ids`
- * - DB:
- * - O(A)
- * # </weight>
- **/
- fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
- /**
- * Increases the regular worker/lead stake, demands a worker origin.
- * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Leave the role by the active worker.
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
- /**
- * Sets a new budget for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Sets a new status text for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the contents of `status_text` when it is not none
- *
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
- /**
- * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
- * If slashing balance greater than the existing stake - stake is slashed to zero.
- * Requires signed leader origin or the root (to slash the leader stake).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penality.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
- /**
- * Transfers specified amount to any account.
- * Requires leader origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
- /**
- * Terminate the active worker by the lead.
- * Requires signed leader origin or the root (to terminate the leader role).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penalty.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
- /**
- * Update the reward account associated with a set reward relationship for the active worker.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the reward per block for the active worker.
- * Require signed leader origin or the root (to update leader's reward amount).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
- /**
- * Update the associated role account of the active regular worker/lead.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the associated role storage.
- **/
- updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
- /**
- * Withdraw the worker application. Can be done by the worker only.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
- };
- memo: {
- updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>, [MemoText]>;
- };
- operationsWorkingGroup: {
- /**
- * Add a job opening for a regular worker/lead role.
- * Require signed leader origin or the root (to add opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
- /**
- * Apply on a worker opening.
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `p.description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ApplyOnOpeningParameters]>;
- /**
- * Cancel an opening for the regular worker/lead position.
- * Require signed leader origin or the root (to cancel opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
- /**
- * Decreases the regular worker/lead stake and returns the remainder to the
- * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
- * Accepts the stake amount to decrease.
- * Requires signed leader origin or the root (to decrease the leader stake).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Fill opening for the regular/lead position.
- * Require signed leader origin or the root (to fill opening for the leader position).
- * # <weight>
- *
- * ## Weight
- * `O (A)` where:
- * - `A` is the length of `successful_application_ids`
- * - DB:
- * - O(A)
- * # </weight>
- **/
- fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
- /**
- * Increases the regular worker/lead stake, demands a worker origin.
- * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Leave the role by the active worker.
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
- /**
- * Sets a new budget for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Sets a new status text for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the contents of `status_text` when it is not none
- *
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
- /**
- * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
- * If slashing balance greater than the existing stake - stake is slashed to zero.
- * Requires signed leader origin or the root (to slash the leader stake).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penality.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
- /**
- * Transfers specified amount to any account.
- * Requires leader origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
- /**
- * Terminate the active worker by the lead.
- * Requires signed leader origin or the root (to terminate the leader role).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penalty.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
- /**
- * Update the reward account associated with a set reward relationship for the active worker.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the reward per block for the active worker.
- * Require signed leader origin or the root (to update leader's reward amount).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
- /**
- * Update the associated role account of the active regular worker/lead.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the associated role storage.
- **/
- updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
- /**
- * Withdraw the worker application. Can be done by the worker only.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
- };
- proposalsCodex: {
- /**
- * Create a proposal, the type of proposal depends on the `proposal_details` variant
- *
- * <weight>
- *
- * ## Weight
- * `O (T + D + I)` where:
- * - `T` is the length of the title
- * - `D` is the length of the description
- * - `I` is the length of any parameter in `proposal_details`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [GeneralProposalParameters, ProposalDetailsOf]>;
- };
- proposalsDiscussion: {
- /**
- * Adds a post with author origin check.
- *
- * <weight>
- *
- * ## Weight
- * `O (L)` where:
- * - `L` is the length of `text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, Bytes, bool]>;
- /**
- * Changes thread permission mode.
- *
- * <weight>
- *
- * ## Weight
- * `O (W)` if ThreadMode is close or O(1) otherwise where:
- * - `W` is the number of whitelisted members in `mode`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- changeThreadMode: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, mode: ThreadMode | { Open: any } | { Closed: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, ThreadMode]>;
- /**
- * Remove post from storage, with the last parameter indicating whether to also hide it
- * in the UI.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- deletePost: AugmentedSubmittable<(deleterId: MemberId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, hide: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, PostId, ThreadId, bool]>;
- /**
- * Updates a post with author origin check. Update attempts number is limited.
- *
- * <weight>
- *
- * ## Weight
- * `O (L)` where:
- * - `L` is the length of `text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updatePost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, PostId, Bytes]>;
- };
- proposalsEngine: {
- /**
- * Cancel a proposal by its original proposer.
- *
- * <weight>
- *
- * ## Weight
- * `O (L)` where:
- * - `L` is the total number of locks in `Balances`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId]>;
- /**
- * Veto a proposal. Must be root.
- *
- * <weight>
- *
- * ## Weight
- * `O (1)` doesn't depend on the state or parameters
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ProposalId]>;
- /**
- * Vote extrinsic. Conditions: origin must allow votes.
- *
- * <weight>
- *
- * ## Weight
- * `O (R)` where:
- * - `R` is the length of `rationale`
- * - DB:
- * - O(1) doesn't depend on the state or paraemters
- * # </weight>
- **/
- vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve' | 'Reject' | 'Slash' | 'Abstain' | number | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId, VoteKind, Bytes]>;
- };
- referendum: {
- /**
- * Release a locked stake.
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- releaseVoteStake: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- /**
- * Reveal a sealed vote in the referendum.
- *
- * # <weight>
- *
- * ## Weight
- * `O (W)` where:
- * - `W` is the number of `intermediate_winners` stored in the current
- * `Stage::<T, I>::get()`
- * - DB:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- revealVote: AugmentedSubmittable<(salt: Bytes | string | Uint8Array, voteOptionId: MemberId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MemberId]>;
- /**
- * Cast a sealed vote in the referendum.
- *
- * # <weight>
- *
- * ## weight
- * `O (1)`
- * - db:
- * - `O(1)` doesn't depend on the state or parameters
- * # </weight>
- **/
- vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, BalanceOf]>;
- };
- session: {
- /**
- * Removes any session key(s) of the function caller.
- * This doesn't take effect until the next session.
- *
- * The dispatch origin of this function must be signed.
- *
- * # <weight>
- * - Complexity: `O(1)` in number of key types.
- * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
- * - DbWrites: `NextKeys`, `origin account`
- * - DbWrites per key id: `KeyOwnder`
- * # </weight>
- **/
- purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- /**
- * Sets the session key(s) of the function caller to `keys`.
- * Allows an account to set its session key prior to becoming a validator.
- * This doesn't take effect until the next session.
- *
- * The dispatch origin of this function must be signed.
- *
- * # <weight>
- * - Complexity: `O(1)`
- * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
- * - DbWrites: `origin account`, `NextKeys`
- * - DbReads per key id: `KeyOwner`
- * - DbWrites per key id: `KeyOwner`
- * # </weight>
- **/
- setKeys: AugmentedSubmittable<(keys: Keys | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Keys, Bytes]>;
- };
- staking: {
- /**
- * Take the origin account as a stash and lock up `value` of its balance. `controller` will
- * be the account that controls it.
- *
- * `value` must be more than the `minimum_balance` specified by `T::Currency`.
- *
- * The dispatch origin for this call must be _Signed_ by the stash account.
- *
- * Emits `Bonded`.
- *
- * # <weight>
- * - Independent of the arguments. Moderate complexity.
- * - O(1).
- * - Three extra DB entries.
- *
- * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
- * ------------------
- * Weight: O(1)
- * DB Weight:
- * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
- * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
- * # </weight>
- **/
- bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<BalanceOf>, RewardDestination]>;
- /**
- * Add some extra amount that have appeared in the stash `free_balance` into the balance up
- * for staking.
- *
- * Use this if there are additional funds in your stash account that you wish to bond.
- * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
- * that can be added.
- *
- * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
- * it can be only called when [`EraElectionStatus`] is `Closed`.
- *
- * Emits `Bonded`.
- *
- * # <weight>
- * - Independent of the arguments. Insignificant complexity.
- * - O(1).
- * - One DB entry.
- * ------------
- * DB Weight:
- * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
- * - Write: [Origin Account], Locks, Ledger
- * # </weight>
- **/
- bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
- /**
- * Cancel enactment of a deferred slash.
- *
- * Can be called by the `T::SlashCancelOrigin`.
- *
- * Parameters: era and indices of the slashes for that era to kill.
- *
- * # <weight>
- * Complexity: O(U + S)
- * with U unapplied slashes weighted with U=1000
- * and S is the number of slash indices to be canceled.
- * - Read: Unapplied Slashes
- * - Write: Unapplied Slashes
- * # </weight>
- **/
- cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [EraIndex, Vec<u32>]>;
- /**
- * Declare no desire to either validate or nominate.
- *
- * Effects will be felt at the beginning of the next era.
- *
- * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
- * And, it can be only called when [`EraElectionStatus`] is `Closed`.
- *
- * # <weight>
- * - Independent of the arguments. Insignificant complexity.
- * - Contains one read.
- * - Writes are limited to the `origin` account key.
- * --------
- * Weight: O(1)
- * DB Weight:
- * - Read: EraElectionStatus, Ledger
- * - Write: Validators, Nominators
- * # </weight>
- **/
- chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- /**
- * Force there to be a new era at the end of the next session. After this, it will be
- * reset to normal (non-forced) behaviour.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * - No arguments.
- * - Weight: O(1)
- * - Write ForceEra
- * # </weight>
- **/
- forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- /**
- * Force there to be a new era at the end of sessions indefinitely.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * - Weight: O(1)
- * - Write: ForceEra
- * # </weight>
- **/
- forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- /**
- * Force there to be no new eras indefinitely.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * - No arguments.
- * - Weight: O(1)
- * - Write: ForceEra
- * # </weight>
- **/
- forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- /**
- * Force a current staker to become completely unstaked, immediately.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * O(S) where S is the number of slashing spans to be removed
- * Reads: Bonded, Slashing Spans, Account, Locks
- * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
- * Writes Each: SpanSlash * S
- * # </weight>
- **/
- forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
- /**
- * Increments the ideal number of validators.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * Same as [`set_validator_count`].
- * # </weight>
- **/
- increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
- /**
- * Declare the desire to nominate `targets` for the origin controller.
- *
- * Effects will be felt at the beginning of the next era. This can only be called when
- * [`EraElectionStatus`] is `Closed`.
- *
- * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
- * And, it can be only called when [`EraElectionStatus`] is `Closed`.
- *
- * # <weight>
- * - The transaction's complexity is proportional to the size of `targets` (N)
- * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
- * - Both the reads and writes follow a similar pattern.
- * ---------
- * Weight: O(N)
- * where N is the number of targets
- * DB Weight:
- * - Reads: Era Election Status, Ledger, Current Era
- * - Writes: Validators, Nominators
- * # </weight>
- **/
- nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<LookupSource>]>;
- /**
- * Pay out all the stakers behind a single validator for a single era.
- *
- * - `validator_stash` is the stash account of the validator. Their nominators, up to
- * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
- * - `era` may be any era between `[current_era - history_depth; current_era]`.
- *
- * The origin of this call must be _Signed_. Any account can call this function, even if
- * it is not one of the stakers.
- *
- * This can only be called when [`EraElectionStatus`] is `Closed`.
- *
- * # <weight>
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
- * - Contains a limited number of reads and writes.
- * -----------
- * N is the Number of payouts for the validator (including the validator)
- * Weight:
- * - Reward Destination Staked: O(N)
- * - Reward Destination Controller (Creating): O(N)
- * DB Weight:
- * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
- * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
- * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
- * - Write Each: System Account, Locks, Ledger (3 items)
- *
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
- * # </weight>
- **/
- payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, EraIndex]>;
- /**
- * Remove all data structure concerning a staker/stash once its balance is zero.
- * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
- * and the target `stash` must have no funds left.
- *
- * This can be called from any origin.
- *
- * - `stash`: The stash account to reap. Its balance must be zero.
- *
- * # <weight>
- * Complexity: O(S) where S is the number of slashing spans on the account.
- * DB Weight:
- * - Reads: Stash Account, Bonded, Slashing Spans, Locks
- * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
- * - Writes Each: SpanSlash * S
- * # </weight>
- **/
- reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
- /**
- * Rebond a portion of the stash scheduled to be unlocked.
- *
- * The dispatch origin must be signed by the controller, and it can be only called when
- * [`EraElectionStatus`] is `Closed`.
- *
- * # <weight>
- * - Time complexity: O(L), where L is unlocking chunks
- * - Bounded by `MAX_UNLOCKING_CHUNKS`.
- * - Storage changes: Can't increase storage, only decrease it.
- * ---------------
- * - DB Weight:
- * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
- * - Writes: [Origin Account], Locks, Ledger
- * # </weight>
- **/
- rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
- /**
- * Scale up the ideal number of validators by a factor.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * Same as [`set_validator_count`].
- * # </weight>
- **/
- scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
- /**
- * (Re-)set the controller of a stash.
- *
- * Effects will be felt at the beginning of the next era.
- *
- * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
- *
- * # <weight>
- * - Independent of the arguments. Insignificant complexity.
- * - Contains a limited number of reads.
- * - Writes are limited to the `origin` account key.
- * ----------
- * Weight: O(1)
- * DB Weight:
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
- * # </weight>
- **/
- setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
- /**
- * Set `HistoryDepth` value. This function will delete any history information
- * when `HistoryDepth` is reduced.
- *
- * Parameters:
- * - `new_history_depth`: The new history depth you would like to set.
- * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
- * This should report all the storage items that will be deleted by clearing old
- * era history. Needed to report an accurate weight for the dispatch. Trusted by
- * `Root` to report an accurate number.
- *
- * Origin must be root.
- *
- * # <weight>
- * - E: Number of history depths removed, i.e. 10 -> 7 = 3
- * - Weight: O(E)
- * - DB Weight:
- * - Reads: Current Era, History Depth
- * - Writes: History Depth
- * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
- * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
- * # </weight>
- **/
- setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<EraIndex>, Compact<u32>]>;
- /**
- * Set the validators who cannot be slashed (if any).
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * - O(V)
- * - Write: Invulnerables
- * # </weight>
- **/
- setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
- /**
- * (Re-)set the payment target for a controller.
- *
- * Effects will be felt at the beginning of the next era.
- *
- * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
- *
- * # <weight>
- * - Independent of the arguments. Insignificant complexity.
- * - Contains a limited number of reads.
- * - Writes are limited to the `origin` account key.
- * ---------
- * - Weight: O(1)
- * - DB Weight:
- * - Read: Ledger
- * - Write: Payee
- * # </weight>
- **/
- setPayee: AugmentedSubmittable<(payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [RewardDestination]>;
- /**
- * Sets the ideal number of validators.
- *
- * The dispatch origin must be Root.
- *
- * # <weight>
- * Weight: O(1)
- * Write: Validator Count
- * # </weight>
- **/
- setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
- /**
- * Submit an election result to the chain. If the solution:
- *
- * 1. is valid.
- * 2. has a better score than a potentially existing solution on chain.
- *
- * then, it will be _put_ on chain.
- *
- * A solution consists of two pieces of data:
- *
- * 1. `winners`: a flat vector of all the winners of the round.
- * 2. `assignments`: the compact version of an assignment vector that encodes the edge
- * weights.
- *
- * Both of which may be computed using _phragmen_, or any other algorithm.
- *
- * Additionally, the submitter must provide:
- *
- * - The `score` that they claim their solution has.
- *
- * Both validators and nominators will be represented by indices in the solution. The
- * indices should respect the corresponding types ([`ValidatorIndex`] and
- * [`NominatorIndex`]). Moreover, they should be valid when used to index into
- * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
- * solution to be rejected. These two storage items are set during the election window and
- * may be used to determine the indices.
- *
- * A solution is valid if:
- *
- * 0. It is submitted when [`EraElectionStatus`] is `Open`.
- * 1. Its claimed score is equal to the score computed on-chain.
- * 2. Presents the correct number of winners.
- * 3. All indexes must be value according to the snapshot vectors. All edge values must
- * also be correct and should not overflow the granularity of the ratio type (i.e. 256
- * or billion).
- * 4. For each edge, all targets are actually nominated by the voter.
- * 5. Has correct self-votes.
- *
- * A solutions score is consisted of 3 parameters:
- *
- * 1. `min { support.total }` for each support of a winner. This value should be maximized.
- * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
- * 3. `sum { support.total^2 }` for each support of a winner. This value should be
- * minimized (to ensure less variance)
- *
- * # <weight>
- * The transaction is assumed to be the longest path, a better solution.
- * - Initial solution is almost the same.
- * - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
- * # </weight>
- **/
- submitElectionSolution: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
- /**
- * Unsigned version of `submit_election_solution`.
- *
- * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
- * from the local node to be included. In other words, only the block author can include a
- * transaction in the block.
- *
- * # <weight>
- * See `crate::weight` module.
- * # </weight>
- **/
- submitElectionSolutionUnsigned: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
- /**
- * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
- * period ends. If this leaves an amount actively bonded less than
- * T::Currency::minimum_balance(), then it is increased to the full amount.
- *
- * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
- * the funds out of management ready for transfer.
- *
- * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
- * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
- * to be called first to remove some of the chunks (if possible).
- *
- * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
- * And, it can be only called when [`EraElectionStatus`] is `Closed`.
- *
- * Emits `Unbonded`.
- *
- * See also [`Call::withdraw_unbonded`].
- *
- * # <weight>
- * - Independent of the arguments. Limited but potentially exploitable complexity.
- * - Contains a limited number of reads.
- * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
- * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
- * The only way to clean the aforementioned storage item is also user-controlled via
- * `withdraw_unbonded`.
- * - One DB entry.
- * ----------
- * Weight: O(1)
- * DB Weight:
- * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
- * - Write: Locks, Ledger, BalanceOf Stash,
- * </weight>
- **/
- unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
- /**
- * Declare the desire to validate for the origin controller.
- *
- * Effects will be felt at the beginning of the next era.
- *
- * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
- * And, it can be only called when [`EraElectionStatus`] is `Closed`.
- *
- * # <weight>
- * - Independent of the arguments. Insignificant complexity.
- * - Contains a limited number of reads.
- * - Writes are limited to the `origin` account key.
- * -----------
- * Weight: O(1)
- * DB Weight:
- * - Read: Era Election Status, Ledger
- * - Write: Nominators, Validators
- * # </weight>
- **/
- validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any; blocked?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ValidatorPrefs]>;
- /**
- * Remove any unlocked chunks from the `unlocking` queue from our management.
- *
- * This essentially frees up that balance to be used by the stash account to do
- * whatever it wants.
- *
- * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
- * And, it can be only called when [`EraElectionStatus`] is `Closed`.
- *
- * Emits `Withdrawn`.
- *
- * See also [`Call::unbond`].
- *
- * # <weight>
- * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
- * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
- * indirectly user-controlled. See [`unbond`] for more detail.
- * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
- * - Writes are limited to the `origin` account key.
- * ---------------
- * Complexity O(S) where S is the number of slashing spans to remove
- * Update:
- * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
- * - Writes: [Origin Account], Locks, Ledger
- * Kill:
- * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
- * Account], Locks, BalanceOf stash
- * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
- * [Origin Account], Locks, BalanceOf stash.
- * - Writes Each: SpanSlash * S
- * NOTE: Weight annotation is the kill scenario, we refund otherwise.
- * # </weight>
- **/
- withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
- };
- storageWorkingGroup: {
- /**
- * Add a job opening for a regular worker/lead role.
- * Require signed leader origin or the root (to add opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [Bytes, OpeningType, StakePolicy, Option<BalanceOf>]>;
- /**
- * Apply on a worker opening.
- *
- * # <weight>
- *
- * ## Weight
- * `O (D)` where:
- * - `D` is the length of `p.description`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- 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>, [ApplyOnOpeningParameters]>;
- /**
- * Cancel an opening for the regular worker/lead position.
- * Require signed leader origin or the root (to cancel opening for the leader position).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- cancelOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
- /**
- * Decreases the regular worker/lead stake and returns the remainder to the
- * worker staking_account_id. Can be decreased to zero, no actions on zero stake.
- * Accepts the stake amount to decrease.
- * Requires signed leader origin or the root (to decrease the leader stake).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Fill opening for the regular/lead position.
- * Require signed leader origin or the root (to fill opening for the leader position).
- * # <weight>
- *
- * ## Weight
- * `O (A)` where:
- * - `A` is the length of `successful_application_ids`
- * - DB:
- * - O(A)
- * # </weight>
- **/
- fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: BTreeSet<ApplicationId>) => SubmittableExtrinsic<ApiType>, [OpeningId, BTreeSet<ApplicationId>]>;
- /**
- * Increases the regular worker/lead stake, demands a worker origin.
- * Locks tokens from the worker staking_account_id equal to new stake. No limits on the stake.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, stakeBalanceDelta: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
- /**
- * Leave the role by the active worker.
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<Bytes>]>;
- /**
- * Sets a new budget for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setBudget: AugmentedSubmittable<(newBudget: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
- /**
- * Sets a new status text for the working group.
- * Requires root origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (S)` where:
- * - `S` is the length of the contents of `status_text` when it is not none
- *
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- setStatusText: AugmentedSubmittable<(statusText: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<Bytes>]>;
- /**
- * Slashes the regular worker stake, demands a leader origin. No limits, no actions on zero stake.
- * If slashing balance greater than the existing stake - stake is slashed to zero.
- * Requires signed leader origin or the root (to slash the leader stake).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penality.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf, Option<Bytes>]>;
- /**
- * Transfers specified amount to any account.
- * Requires leader origin.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- spendFromBudget: AugmentedSubmittable<(accountId: AccountId | string | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, BalanceOf, Option<Bytes>]>;
- /**
- * Terminate the active worker by the lead.
- * Requires signed leader origin or the root (to terminate the leader role).
- * # <weight>
- *
- * ## Weight
- * `O (P)` where:
- * - `P` is the length of `penalty.slashing_text`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, penalty: Option<BalanceOf> | null | object | string | Uint8Array, rationale: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>, Option<Bytes>]>;
- /**
- * Update the reward account associated with a set reward relationship for the active worker.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the reward per block for the active worker.
- * Require signed leader origin or the root (to update leader's reward amount).
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rewardPerBlock: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Option<BalanceOf>]>;
- /**
- * Update the associated role account of the active regular worker/lead.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
- /**
- * Update the associated role storage.
- **/
- updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
- /**
- * Withdraw the worker application. Can be done by the worker only.
- *
- * # <weight>
- *
- * ## Weight
- * `O (1)`
- * - DB:
- * - O(1) doesn't depend on the state or parameters
- * # </weight>
- **/
- withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
- };
- sudo: {
- /**
- * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
- *
- * The dispatch origin for this call must be _Signed_.
- *
- * # <weight>
- * - O(1).
- * - Limited storage reads.
- * - One DB change.
- * # </weight>
- **/
- setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
- /**
- * Authenticates the sudo key and dispatches a function call with `Root` origin.
- *
- * The dispatch origin for this call must be _Signed_.
- *
- * # <weight>
- * - O(1).
- * - Limited storage reads.
- * - One DB write (event).
- * - Weight of derivative `call` execution + 10,000.
- * # </weight>
- **/
- sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
- /**
- * Authenticates the sudo key and dispatches a function call with `Signed` origin from
- * a given account.
- *
- * The dispatch origin for this call must be _Signed_.
- *
- * # <weight>
- * - O(1).
- * - Limited storage reads.
- * - One DB write (event).
- * - Weight of derivative `call` execution + 10,000.
- * # </weight>
- **/
- sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Call]>;
- /**
- * Authenticates the sudo key and dispatches a function call with `Root` origin.
- * This function does not check the weight of the call, and instead allows the
- * Sudo user to specify the weight of the call.
- *
- * The dispatch origin for this call must be _Signed_.
- *
- * # <weight>
- * - O(1).
- * - The weight of this call is defined by the caller.
- * # </weight>
- **/
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
- };
- system: {
- /**
- * A dispatch that will fill the block weight up to the given ratio.
- **/
- fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
- /**
- * Kill all storage items with a key that starts with the given prefix.
- *
- * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
- * the prefix we are removing to accurately calculate the weight of this function.
- *
- * # <weight>
- * - `O(P)` where `P` amount of keys with prefix `prefix`
- * - `P` storage deletions.
- * - Base Weight: 0.834 * P µs
- * - Writes: Number of subkeys + 1
- * # </weight>
- **/
- killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Key, u32]>;
- /**
- * Kill some items from storage.
- *
- * # <weight>
- * - `O(IK)` where `I` length of `keys` and `K` length of one key
- * - `I` storage deletions.
- * - Base Weight: .378 * i µs
- * - Writes: Number of items
- * # </weight>
- **/
- killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Key>]>;
- /**
- * Make some on-chain remark.
- *
- * # <weight>
- * - `O(1)`
- * - Base Weight: 0.665 µs, independent of remark length.
- * - No DB operations.
- * # </weight>
- **/
- remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
- /**
- * Set the new changes trie configuration.
- *
- * # <weight>
- * - `O(1)`
- * - 1 storage write or delete (codec `O(1)`).
- * - 1 call to `deposit_log`: Uses `append` API, so O(1)
- * - Base Weight: 7.218 µs
- * - DB Weight:
- * - Writes: Changes Trie, System Digest
- * # </weight>
- **/
- setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<ChangesTrieConfiguration>]>;
- /**
- * Set the new runtime code.
- *
- * # <weight>
- * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
- * - 1 storage write (codec `O(C)`).
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
- * - 1 event.
- * The weight of this function is dependent on the runtime, but generally this is very expensive.
- * We will treat this as a full block.
- * # </weight>
- **/
- setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
- /**
- * Set the new runtime code without doing any checks of the given `code`.
- *
- * # <weight>
- * - `O(C)` where `C` length of `code`
- * - 1 storage write (codec `O(C)`).
- * - 1 event.
- * The weight of this function is dependent on the runtime. We will treat this as a full block.
- * # </weight>
- **/
- setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
- /**
- * Set the number of pages in the WebAssembly environment's heap.
- *
- * # <weight>
- * - `O(1)`
- * - 1 storage write.
- * - Base Weight: 1.405 µs
- * - 1 write to HEAP_PAGES
- * # </weight>
- **/
- setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
- /**
- * Set some items of storage.
- *
- * # <weight>
- * - `O(I)` where `I` length of `items`
- * - `I` storage writes (`O(1)`).
- * - Base Weight: 0.568 * i µs
- * - Writes: Number of items
- * # </weight>
- **/
- setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>, [Vec<KeyValue>]>;
- /**
- * Kill the sending account, assuming there are no references outstanding and the composite
- * data is equal to its default value.
- *
- * # <weight>
- * - `O(1)`
- * - 1 storage read and deletion.
- * --------------------
- * Base Weight: 8.626 µs
- * No DB Read or Write operations because caller is already in overlay
- * # </weight>
- **/
- suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
- };
- timestamp: {
- /**
- * Set the current time.
- *
- * This call should be invoked exactly once per block. It will panic at the finalization
- * phase, if this call hasn't been invoked by that time.
- *
- * The timestamp should be greater than the previous one by the amount specified by
- * `MinimumPeriod`.
- *
- * The dispatch origin for this call must be `Inherent`.
- *
- * # <weight>
- * - `O(T)` where `T` complexity of `on_timestamp_set`
- * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
- * - 1 event handler `on_timestamp_set` `O(T)`.
- * # </weight>
- **/
- set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<Moment>]>;
- };
- utility: {
- /**
- * Send a call through an indexed pseudonym of the sender.
- *
- * Filter from origin are passed along. The call will be dispatched with an origin which
- * use the same filter as the origin of this call.
- *
- * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
- * because you expect `proxy` to have been used prior in the call stack and you do not want
- * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
- * in the Multisig pallet instead.
- *
- * NOTE: Prior to version *12, this was called `as_limited_sub`.
- *
- * The dispatch origin for this call must be _Signed_.
- **/
- asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
- /**
- * Send a batch of dispatch calls.
- *
- * May be called from any origin.
- *
- * - `calls`: The calls to be dispatched from the same origin.
- *
- * If origin is root then call are dispatch without checking origin filter. (This includes
- * bypassing `frame_system::Trait::BaseCallFilter`).
- *
- * # <weight>
- * - Base weight: 14.39 + .987 * c µs
- * - Plus the sum of the weights of the `calls`.
- * - Plus one additional event. (repeat read/write)
- * # </weight>
- *
- * This will return `Ok` in all circumstances. To determine the success of the batch, an
- * event is deposited. If a call failed and the batch was interrupted, then the
- * `BatchInterrupted` event is deposited, along with the number of successful calls made
- * and the error of the failed call. If all were successful, then the `BatchCompleted`
- * event is deposited.
- **/
- batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
- };
- }
- export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
- (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
- }
- }
|