1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896 |
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
- /* eslint-disable */
- import { AnyNumber, ITuple } from '@polkadot/types/types';
- import { BTreeMap, BTreeSet, Compact, Option, Vec } from '@polkadot/types/codec';
- import { Bytes, bool, u16, u32, u64, u8 } from '@polkadot/types/primitive';
- import { Actor, ActorId, ApplicationId, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, ClassId, ClassPermissions, ContentId, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, EntityController, EntityId, EntryId, ForumUserId, FundingRequestParameters, GeneralProposalParameters, InputPropertyValue, InputValue, InviteMembershipParameters, MemberId, MemoText, ModeratorId, Nonce, OpeningId, OpeningType, OperationType, OracleJudgment, ParticipantId, Poll, PostId, PostReactionId, PrivilegedActor, Property, PropertyId, ProposalDetailsOf, ProposalId, ReplyId, ReplyToDelete, SchemaId, StakePolicy, StorageProviderId, ThreadId, ThreadMode, Url, VecMaxLength, VoteKind, WorkerId, WorkingGroup } from './all';
- import { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
- import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
- import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
- import { Heartbeat } from '@polkadot/types/interfaces/imOnline';
- import { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
- import { Keys } from '@polkadot/types/interfaces/session';
- import { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
- import { Key } from '@polkadot/types/interfaces/system';
- import { 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>>;
- };
- 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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 | { Winner: any } | { Rejected: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- };
- contentDirectory: {
- /**
- * Create new class schema from existing property ids and new properties
- **/
- addClassSchema: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, existingProperties: BTreeSet<PropertyId>, newProperties: Vec<Property> | (Property | { property_type?: any; required?: any; unique?: any; name?: any; description?: any; locking_policy?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
- /**
- * Add new curator group to runtime storage
- **/
- addCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
- /**
- * Add curator to curator group under given `curator_group_id`
- **/
- addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Add curator group under given `curator_group_id` as `Class` maintainer
- **/
- addMaintainerToClass: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Add schema support to entity under given `schema_id` and provided `property_values`
- **/
- addSchemaSupportToEntity: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, schemaId: SchemaId | AnyNumber | Uint8Array, newPropertyValues: BTreeMap<PropertyId, InputPropertyValue>) => SubmittableExtrinsic<ApiType>>;
- /**
- * Clear `PropertyValueVec` under given `entity_id` & `in_class_schema_property_id`
- **/
- clearEntityPropertyVector: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, inClassSchemaPropertyId: PropertyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Create new `Class` with provided parameters
- **/
- createClass: AugmentedSubmittable<(name: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, classPermissions: ClassPermissions | { any_member?: any; entity_creation_blocked?: any; all_entity_property_values_locked?: any; maintainers?: any } | string | Uint8Array, maximumEntitiesCount: EntityId | AnyNumber | Uint8Array, defaultEntityCreationVoucherUpperBound: EntityId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Create entity.
- * If someone is making an entity of this class for first time,
- * then a voucher is also added with the class limit as the default limit value.
- **/
- createEntity: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Insert `SingleInputPropertyValue` at given `index_in_property_vector`
- * into `PropertyValueVec` under `in_class_schema_property_id`
- **/
- insertAtEntityPropertyVector: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, inClassSchemaPropertyId: PropertyId | AnyNumber | Uint8Array, indexInPropertyVector: VecMaxLength | AnyNumber | Uint8Array, value: InputValue | { Bool: any } | { Uint16: any } | { Uint32: any } | { Uint64: any } | { Int16: any } | { Int32: any } | { Int64: any } | { Text: any } | { TextToHash: any } | { Reference: any } | string | Uint8Array, nonce: Nonce | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Remove value at given `index_in_property_vector`
- * from `PropertyValueVec` under `in_class_schema_property_id`
- **/
- removeAtEntityPropertyVector: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, inClassSchemaPropertyId: PropertyId | AnyNumber | Uint8Array, indexInPropertyVector: VecMaxLength | AnyNumber | Uint8Array, nonce: Nonce | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Remove curator from a given curator group
- **/
- removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Remove curator group under given `curator_group_id` from runtime storage
- **/
- removeCuratorGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Remove `Entity` under provided `entity_id`
- **/
- removeEntity: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Remove curator group under given `curator_group_id` from `Class` maintainers set
- **/
- removeMaintainerFromClass: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Set `is_active` status for curator group under given `curator_group_id`
- **/
- setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Batch transaction
- **/
- transaction: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, operations: Vec<OperationType> | (OperationType | { CreateEntity: any } | { UpdatePropertyValues: any } | { AddSchemaSupportToEntity: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
- /**
- * Transfer ownership to new `EntityController` for `Entity` under given `entity_id`
- * `new_property_value_references_with_same_owner_flag_set` should be provided manually
- **/
- transferEntityOwnership: AugmentedSubmittable<(entityId: EntityId | AnyNumber | Uint8Array, newController: EntityController | { Maintainers: any } | { Member: any } | { Lead: any } | string | Uint8Array, newPropertyValueReferencesWithSameOwnerFlagSet: BTreeMap<PropertyId, InputPropertyValue>) => SubmittableExtrinsic<ApiType>>;
- /**
- * Update `ClassPermissions` under specific `class_id`
- **/
- updateClassPermissions: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, updatedAnyMember: Option<bool> | null | object | string | Uint8Array, updatedEntityCreationBlocked: Option<bool> | null | object | string | Uint8Array, updatedAllEntityPropertyValuesLocked: Option<bool> | null | object | string | Uint8Array, updatedMaintainers: Option<BTreeSet<CuratorGroupId>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Update `schema_status` under specific `schema_id` in `Class`
- **/
- updateClassSchemaStatus: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, schemaId: SchemaId | AnyNumber | Uint8Array, schemaStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Updates or creates new `EntityCreationVoucher` for given `EntityController` with individual limit
- **/
- updateEntityCreationVoucher: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, controller: EntityController | { Maintainers: any } | { Member: any } | { Lead: any } | string | Uint8Array, maximumEntitiesCount: EntityId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Update entity permissions
- **/
- updateEntityPermissions: AugmentedSubmittable<(entityId: EntityId | AnyNumber | Uint8Array, updatedFrozen: Option<bool> | null | object | string | Uint8Array, updatedReferenceable: Option<bool> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Update `Entity` `InputPropertyValue`'s with provided ones
- **/
- updateEntityPropertyValues: AugmentedSubmittable<(actor: Actor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, newPropertyValues: BTreeMap<PropertyId, InputPropertyValue>) => SubmittableExtrinsic<ApiType>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- dataDirectory: {
- /**
- * Storage provider accepts a content. Requires signed storage provider account and its id.
- * The LiaisonJudgement can be updated, but only by the liaison.
- **/
- acceptContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Adds the content to the system. Member id should match its origin. The created DataObject
- * awaits liaison to accept or reject it.
- **/
- addContent: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array, typeId: DataObjectTypeId | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array, ipfsContentId: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Injects a set of data objects and their corresponding content id into the directory.
- * The operation is "silent" - no events will be emitted as objects are added.
- * The number of objects that can be added per call is limited to prevent the dispatch
- * from causing the block production to fail if it takes too much time to process.
- * Existing data objects will be overwritten.
- **/
- injectDataObjects: AugmentedSubmittable<(objects: DataObjectsMap) => SubmittableExtrinsic<ApiType>>;
- /**
- * Storage provider rejects a content. Requires signed storage provider account and its id.
- * The LiaisonJudgement can be updated, but only by the liaison.
- **/
- rejectContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Removes the content id from the list of known content ids. Requires root privileges.
- **/
- removeKnownContentId: AugmentedSubmittable<(contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * Deactivates storage provider-to-content relationship. The storage provider should be
- * registered in the storage working group. A storage provider may flip their own r
- * eady state, but nobody else.
- **/
- unsetRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- };
- dataObjectTypeRegistry: {
- /**
- * Activates existing data object type. Requires leader privileges.
- **/
- activateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Deactivates existing data object type. Requires leader privileges.
- **/
- deactivateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Registers the new data object type. Requires leader privileges.
- **/
- registerDataObjectType: AugmentedSubmittable<(dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Updates existing data object type. Requires leader privileges.
- **/
- updateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array, dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- };
- discovery: {
- /**
- * Sets bootstrap endpoints for the Colossus. Requires root privileges.
- **/
- setBootstrapEndpoints: AugmentedSubmittable<(endpoints: Vec<Url> | (Url | string)[]) => SubmittableExtrinsic<ApiType>>;
- /**
- * Sets default lifetime for storage providers accounts info. Requires root privileges.
- **/
- setDefaultLifetime: AugmentedSubmittable<(lifetime: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Creates the ServiceProviderRecord to save an IPNS identity for the storage provider.
- * Requires signed storage provider credentials.
- **/
- setIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * Deletes the ServiceProviderRecord with the IPNS identity for the storage provider.
- * Requires signed storage provider credentials.
- **/
- unsetIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- };
- 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array, poll: Option<Poll> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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: Vec<ITuple<[CategoryId, ThreadId, PostId, bool]>> | ([CategoryId | AnyNumber | Uint8Array, ThreadId | AnyNumber | Uint8Array, PostId | AnyNumber | Uint8Array, bool | boolean | Uint8Array])[], rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>
- **/
- editThreadTitle: AugmentedSubmittable<(forumUserId: ForumUserId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newTitle: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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' | number | Uint8Array, amount: BalanceOf | AnyNumber | Uint8Array, balanceKind: BalanceKind | 'Positive'|'Negative' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- memo: {
- updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>>;
- };
- 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- };
- 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, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- };
- 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 } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * (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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * (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 } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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 } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- system: {
- /**
- * A dispatch that will fill the block weight up to the given ratio.
- **/
- fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- /**
- * 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>>;
- };
- 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>>;
- /**
- * 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>>;
- };
- }
- export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
- (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
- }
- }
|