augment-api-events.ts 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { BTreeMap, BTreeSet, Bytes, Option, Text, Vec, bool, u32, u64, u8 } from '@polkadot/types';
  4. import type { ActorId, ApplicationId, ApplicationIdToWorkerIdMap, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, Channel, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, ContentActor, ContentId, ContentParameters, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, EntryId, ExecutionStatus, ExtendedPostId, ForumUserId, GeneralProposalParameters, InviteMembershipParameters, IsCensored, MemberId, MemoText, ModeratorId, NewAsset, OpeningId, OpeningType, OptionResult, OracleJudgment, ParticipantId, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PollInput, PostId, PostReactionId, PrivilegedActor, ProposalDecision, ProposalDetailsOf, ProposalId, ProposalStatus, ReplyId, RewardPaymentType, Series, SeriesId, SeriesParameters, StakePolicy, StorageObjectOwner, StorageProviderId, ThreadId, ThreadMode, Title, UpdatedBody, UpdatedTitle, UploadingStatus, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, VoucherLimit, WorkerId, WorkingGroup } from './all';
  5. import type { BalanceStatus } from '@polkadot/types/interfaces/balances';
  6. import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
  7. import type { AuthorityList } from '@polkadot/types/interfaces/grandpa';
  8. import type { Kind, OpaqueTimeSlot } from '@polkadot/types/interfaces/offences';
  9. import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
  10. import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session';
  11. import type { ElectionCompute, EraIndex } from '@polkadot/types/interfaces/staking';
  12. import type { DispatchError, DispatchInfo, DispatchResult } from '@polkadot/types/interfaces/system';
  13. import type { ApiTypes } from '@polkadot/api/types';
  14. declare module '@polkadot/api/types/events' {
  15. export interface AugmentedEvents<ApiType> {
  16. balances: {
  17. /**
  18. * A balance was set by root. \[who, free, reserved\]
  19. **/
  20. BalanceSet: AugmentedEvent<ApiType, [AccountId, Balance, Balance]>;
  21. /**
  22. * Some amount was deposited (e.g. for transaction fees). \[who, deposit\]
  23. **/
  24. Deposit: AugmentedEvent<ApiType, [AccountId, Balance]>;
  25. /**
  26. * An account was removed whose balance was non-zero but below ExistentialDeposit,
  27. * resulting in an outright loss. \[account, balance\]
  28. **/
  29. DustLost: AugmentedEvent<ApiType, [AccountId, Balance]>;
  30. /**
  31. * An account was created with some free balance. \[account, free_balance\]
  32. **/
  33. Endowed: AugmentedEvent<ApiType, [AccountId, Balance]>;
  34. /**
  35. * Some balance was reserved (moved from free to reserved). \[who, value\]
  36. **/
  37. Reserved: AugmentedEvent<ApiType, [AccountId, Balance]>;
  38. /**
  39. * Some balance was moved from the reserve of the first account to the second account.
  40. * Final argument indicates the destination balance type.
  41. * \[from, to, balance, destination_status\]
  42. **/
  43. ReserveRepatriated: AugmentedEvent<ApiType, [AccountId, AccountId, Balance, BalanceStatus]>;
  44. /**
  45. * Transfer succeeded. \[from, to, value\]
  46. **/
  47. Transfer: AugmentedEvent<ApiType, [AccountId, AccountId, Balance]>;
  48. /**
  49. * Some balance was unreserved (moved from reserved to free). \[who, value\]
  50. **/
  51. Unreserved: AugmentedEvent<ApiType, [AccountId, Balance]>;
  52. };
  53. blog: {
  54. /**
  55. * A reply to a reply was created
  56. **/
  57. DirectReplyCreated: AugmentedEvent<ApiType, [ParticipantId, PostId, ReplyId, ReplyId, Text, bool]>;
  58. /**
  59. * A post was created
  60. **/
  61. PostCreated: AugmentedEvent<ApiType, [PostId, Title, Text]>;
  62. /**
  63. * A post was edited
  64. **/
  65. PostEdited: AugmentedEvent<ApiType, [PostId, UpdatedTitle, UpdatedBody]>;
  66. /**
  67. * A post was locked
  68. **/
  69. PostLocked: AugmentedEvent<ApiType, [PostId]>;
  70. /**
  71. * A post was unlocked
  72. **/
  73. PostUnlocked: AugmentedEvent<ApiType, [PostId]>;
  74. /**
  75. * A reply to a post was created
  76. **/
  77. ReplyCreated: AugmentedEvent<ApiType, [ParticipantId, PostId, ReplyId, Text, bool]>;
  78. /**
  79. * A reply was deleted from storage
  80. **/
  81. ReplyDeleted: AugmentedEvent<ApiType, [ParticipantId, PostId, ReplyId, bool]>;
  82. /**
  83. * A reply was edited
  84. **/
  85. ReplyEdited: AugmentedEvent<ApiType, [ParticipantId, PostId, ReplyId, Text]>;
  86. };
  87. bounty: {
  88. /**
  89. * A bounty was canceled.
  90. * Params:
  91. * - bounty ID
  92. * - bounty creator
  93. **/
  94. BountyCanceled: AugmentedEvent<ApiType, [BountyId, BountyActor]>;
  95. /**
  96. * A bounty was created.
  97. * Params:
  98. * - bounty ID
  99. * - creation parameters
  100. * - bounty metadata
  101. **/
  102. BountyCreated: AugmentedEvent<ApiType, [BountyId, BountyCreationParameters, Bytes]>;
  103. /**
  104. * A bounty creator has withdrawn the cherry (member or council).
  105. * Params:
  106. * - bounty ID
  107. * - bounty creator
  108. **/
  109. BountyCreatorCherryWithdrawal: AugmentedEvent<ApiType, [BountyId, BountyActor]>;
  110. /**
  111. * A bounty was funded by a member or a council.
  112. * Params:
  113. * - bounty ID
  114. * - bounty funder
  115. * - funding amount
  116. **/
  117. BountyFunded: AugmentedEvent<ApiType, [BountyId, BountyActor, Balance]>;
  118. /**
  119. * A member or a council has withdrawn the funding.
  120. * Params:
  121. * - bounty ID
  122. * - bounty funder
  123. **/
  124. BountyFundingWithdrawal: AugmentedEvent<ApiType, [BountyId, BountyActor]>;
  125. /**
  126. * A bounty has reached its maximum funding amount.
  127. * Params:
  128. * - bounty ID
  129. **/
  130. BountyMaxFundingReached: AugmentedEvent<ApiType, [BountyId]>;
  131. /**
  132. * A bounty was removed.
  133. * Params:
  134. * - bounty ID
  135. **/
  136. BountyRemoved: AugmentedEvent<ApiType, [BountyId]>;
  137. /**
  138. * A bounty was vetoed.
  139. * Params:
  140. * - bounty ID
  141. **/
  142. BountyVetoed: AugmentedEvent<ApiType, [BountyId]>;
  143. /**
  144. * Submit oracle judgment.
  145. * Params:
  146. * - bounty ID
  147. * - oracle
  148. * - judgment data
  149. **/
  150. OracleJudgmentSubmitted: AugmentedEvent<ApiType, [BountyId, BountyActor, OracleJudgment]>;
  151. /**
  152. * Work entry was slashed.
  153. * Params:
  154. * - bounty ID
  155. * - entry ID
  156. * - entrant member ID
  157. **/
  158. WorkEntrantFundsWithdrawn: AugmentedEvent<ApiType, [BountyId, EntryId, MemberId]>;
  159. /**
  160. * Work entry was announced.
  161. * Params:
  162. * - bounty ID
  163. * - created entry ID
  164. * - entrant member ID
  165. * - staking account ID
  166. **/
  167. WorkEntryAnnounced: AugmentedEvent<ApiType, [BountyId, EntryId, MemberId, AccountId]>;
  168. /**
  169. * Work entry was slashed.
  170. * Params:
  171. * - bounty ID
  172. * - entry ID
  173. **/
  174. WorkEntrySlashed: AugmentedEvent<ApiType, [BountyId, EntryId]>;
  175. /**
  176. * Work entry was withdrawn.
  177. * Params:
  178. * - bounty ID
  179. * - entry ID
  180. * - entrant member ID
  181. **/
  182. WorkEntryWithdrawn: AugmentedEvent<ApiType, [BountyId, EntryId, MemberId]>;
  183. /**
  184. * Submit work.
  185. * Params:
  186. * - bounty ID
  187. * - created entry ID
  188. * - entrant member ID
  189. * - work data (description, URL, BLOB, etc.)
  190. **/
  191. WorkSubmitted: AugmentedEvent<ApiType, [BountyId, EntryId, MemberId, Bytes]>;
  192. };
  193. constitution: {
  194. /**
  195. * Emits on constitution amendment.
  196. * Parameters:
  197. * - constitution text hash
  198. * - constitution text
  199. **/
  200. ConstutionAmended: AugmentedEvent<ApiType, [Bytes, Bytes]>;
  201. };
  202. content: {
  203. CuratorAdded: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  204. CuratorGroupCreated: AugmentedEvent<ApiType, [CuratorGroupId]>;
  205. CuratorGroupStatusSet: AugmentedEvent<ApiType, [CuratorGroupId, bool]>;
  206. CuratorRemoved: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  207. FeaturedVideosSet: AugmentedEvent<ApiType, [ContentActor, Vec<VideoId>]>;
  208. ChannelAssetsRemoved: AugmentedEvent<ApiType, [ContentActor, ChannelId, Vec<ContentId>]>;
  209. ChannelCategoryCreated: AugmentedEvent<ApiType, [ChannelCategoryId, ChannelCategory, ChannelCategoryCreationParameters]>;
  210. ChannelCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId]>;
  211. ChannelCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
  212. ChannelCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, IsCensored, Bytes]>;
  213. ChannelCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelCreationParameters]>;
  214. ChannelOwnershipTransferred: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
  215. ChannelOwnershipTransferRequested: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest]>;
  216. ChannelOwnershipTransferRequestWithdrawn: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
  217. ChannelUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelUpdateParameters]>;
  218. PersonCreated: AugmentedEvent<ApiType, [ContentActor, PersonId, Vec<NewAsset>, PersonCreationParameters]>;
  219. PersonDeleted: AugmentedEvent<ApiType, [ContentActor, PersonId]>;
  220. PersonUpdated: AugmentedEvent<ApiType, [ContentActor, PersonId, Vec<NewAsset>, PersonUpdateParameters]>;
  221. PlaylistCreated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistCreationParameters]>;
  222. PlaylistDeleted: AugmentedEvent<ApiType, [ContentActor, PlaylistId]>;
  223. PlaylistUpdated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
  224. SeriesCreated: AugmentedEvent<ApiType, [ContentActor, SeriesId, Vec<NewAsset>, SeriesParameters, Series]>;
  225. SeriesDeleted: AugmentedEvent<ApiType, [ContentActor, SeriesId]>;
  226. SeriesUpdated: AugmentedEvent<ApiType, [ContentActor, SeriesId, Vec<NewAsset>, SeriesParameters, Series]>;
  227. VideoCategoryCreated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryCreationParameters]>;
  228. VideoCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId]>;
  229. VideoCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
  230. VideoCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, IsCensored, Bytes]>;
  231. VideoCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, VideoId, VideoCreationParameters]>;
  232. VideoDeleted: AugmentedEvent<ApiType, [ContentActor, VideoId]>;
  233. VideoUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, VideoUpdateParameters]>;
  234. };
  235. contentDirectoryWorkingGroup: {
  236. /**
  237. * Emits on withdrawing the application for the regular worker/lead opening.
  238. * Params:
  239. * - Job application id
  240. **/
  241. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  242. /**
  243. * Emits on adding the application for the worker opening.
  244. * Params:
  245. * - Opening parameteres
  246. * - Application id
  247. **/
  248. AppliedOnOpening: AugmentedEvent<ApiType, [ApplyOnOpeningParameters, ApplicationId]>;
  249. /**
  250. * Emits on setting the budget for the working group.
  251. * Params:
  252. * - new budget
  253. **/
  254. BudgetSet: AugmentedEvent<ApiType, [Balance]>;
  255. /**
  256. * Emits on budget from the working group being spent
  257. * Params:
  258. * - Receiver Account Id.
  259. * - Balance spent.
  260. * - Rationale.
  261. **/
  262. BudgetSpending: AugmentedEvent<ApiType, [AccountId, Balance, Option<Bytes>]>;
  263. /**
  264. * Emits on setting the group leader.
  265. * Params:
  266. * - Group worker id.
  267. **/
  268. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  269. /**
  270. * Emits on un-setting the leader.
  271. **/
  272. LeaderUnset: AugmentedEvent<ApiType, []>;
  273. /**
  274. * Emits on reaching new missed reward.
  275. * Params:
  276. * - Worker ID.
  277. * - Missed reward (optional). None means 'no missed reward'.
  278. **/
  279. NewMissedRewardLevelReached: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  280. /**
  281. * Emits on adding new job opening.
  282. * Params:
  283. * - Opening id
  284. * - Description
  285. * - Opening Type(Lead or Worker)
  286. * - Stake Policy for the opening
  287. * - Reward per block
  288. **/
  289. OpeningAdded: AugmentedEvent<ApiType, [OpeningId, Bytes, OpeningType, StakePolicy, Option<Balance>]>;
  290. /**
  291. * Emits on canceling the job opening.
  292. * Params:
  293. * - Opening id
  294. **/
  295. OpeningCanceled: AugmentedEvent<ApiType, [OpeningId]>;
  296. /**
  297. * Emits on filling the job opening.
  298. * Params:
  299. * - Worker opening id
  300. * - Worker application id to the worker id dictionary
  301. * - Applicationd ids used to fill the opening
  302. **/
  303. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap, BTreeSet<ApplicationId>]>;
  304. /**
  305. * Emits on paying the reward.
  306. * Params:
  307. * - Id of the worker.
  308. * - Receiver Account Id.
  309. * - Reward
  310. * - Payment type (missed reward or regular one)
  311. **/
  312. RewardPaid: AugmentedEvent<ApiType, [WorkerId, AccountId, Balance, RewardPaymentType]>;
  313. /**
  314. * Emits on decreasing the regular worker/lead stake.
  315. * Params:
  316. * - regular worker/lead id.
  317. * - stake delta amount
  318. **/
  319. StakeDecreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  320. /**
  321. * Emits on increasing the regular worker/lead stake.
  322. * Params:
  323. * - regular worker/lead id.
  324. * - stake delta amount
  325. **/
  326. StakeIncreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  327. /**
  328. * Emits on slashing the regular worker/lead stake.
  329. * Params:
  330. * - regular worker/lead id.
  331. * - actual slashed balance.
  332. * - Requested slashed balance.
  333. * - Rationale.
  334. **/
  335. StakeSlashed: AugmentedEvent<ApiType, [WorkerId, Balance, Balance, Option<Bytes>]>;
  336. /**
  337. * Emits on updating the status text of the working group.
  338. * Params:
  339. * - status text hash
  340. * - status text
  341. **/
  342. StatusTextChanged: AugmentedEvent<ApiType, [Bytes, Option<Bytes>]>;
  343. /**
  344. * Emits on terminating the leader.
  345. * Params:
  346. * - leader worker id.
  347. * - Penalty.
  348. * - Rationale.
  349. **/
  350. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  351. /**
  352. * Emits on terminating the worker.
  353. * Params:
  354. * - worker id.
  355. * - Penalty.
  356. * - Rationale.
  357. **/
  358. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  359. /**
  360. * Emits on exiting the worker.
  361. * Params:
  362. * - worker id.
  363. * - Rationale.
  364. **/
  365. WorkerExited: AugmentedEvent<ApiType, [WorkerId]>;
  366. /**
  367. * Emits on updating the reward account of the worker.
  368. * Params:
  369. * - Id of the worker.
  370. * - Reward account id of the worker.
  371. **/
  372. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  373. /**
  374. * Emits on updating the reward amount of the worker.
  375. * Params:
  376. * - Id of the worker.
  377. * - Reward per block
  378. **/
  379. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  380. /**
  381. * Emits on updating the role account of the worker.
  382. * Params:
  383. * - Id of the worker.
  384. * - Role account id of the worker.
  385. **/
  386. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  387. /**
  388. * Emits when worker started leaving their role.
  389. * Params:
  390. * - Worker id.
  391. * - Rationale.
  392. **/
  393. WorkerStartedLeaving: AugmentedEvent<ApiType, [WorkerId, Option<Bytes>]>;
  394. /**
  395. * Emits on updating the worker storage role.
  396. * Params:
  397. * - Id of the worker.
  398. * - Raw storage field.
  399. **/
  400. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  401. };
  402. council: {
  403. /**
  404. * New council was elected
  405. **/
  406. AnnouncingPeriodStarted: AugmentedEvent<ApiType, []>;
  407. /**
  408. * Budget balance was changed by the root.
  409. **/
  410. BudgetBalanceSet: AugmentedEvent<ApiType, [Balance]>;
  411. /**
  412. * Budget increment has been updated.
  413. **/
  414. BudgetIncrementUpdated: AugmentedEvent<ApiType, [Balance]>;
  415. /**
  416. * Budget balance was increased by automatic refill.
  417. **/
  418. BudgetRefill: AugmentedEvent<ApiType, [Balance]>;
  419. /**
  420. * The next budget refill was planned.
  421. **/
  422. BudgetRefillPlanned: AugmentedEvent<ApiType, [BlockNumber]>;
  423. /**
  424. * The candidate has set a new note for their candidacy
  425. **/
  426. CandidacyNoteSet: AugmentedEvent<ApiType, [MemberId, Bytes]>;
  427. /**
  428. * Candidacy stake that was no longer needed was released
  429. **/
  430. CandidacyStakeRelease: AugmentedEvent<ApiType, [MemberId]>;
  431. /**
  432. * Candidate has withdrawn his candidacy
  433. **/
  434. CandidacyWithdraw: AugmentedEvent<ApiType, [MemberId]>;
  435. /**
  436. * Councilor reward has been updated.
  437. **/
  438. CouncilorRewardUpdated: AugmentedEvent<ApiType, [Balance]>;
  439. /**
  440. * New candidate announced
  441. **/
  442. NewCandidate: AugmentedEvent<ApiType, [MemberId, AccountId, AccountId, Balance]>;
  443. /**
  444. * New council was elected and appointed
  445. **/
  446. NewCouncilElected: AugmentedEvent<ApiType, [Vec<MemberId>]>;
  447. /**
  448. * New council was elected and appointed
  449. **/
  450. NewCouncilNotElected: AugmentedEvent<ApiType, []>;
  451. /**
  452. * Announcing period can't finish because of insufficient candidtate count
  453. **/
  454. NotEnoughCandidates: AugmentedEvent<ApiType, []>;
  455. /**
  456. * Request has been funded
  457. **/
  458. RequestFunded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  459. /**
  460. * The whole reward was paid to the council member.
  461. **/
  462. RewardPayment: AugmentedEvent<ApiType, [MemberId, AccountId, Balance, Balance]>;
  463. /**
  464. * Candidates are announced and voting starts
  465. **/
  466. VotingPeriodStarted: AugmentedEvent<ApiType, [u64]>;
  467. };
  468. dataDirectory: {
  469. /**
  470. * Emits when the storage provider accepts a content.
  471. * Params:
  472. * - Id of the relationship.
  473. * - Id of the storage provider.
  474. **/
  475. ContentAccepted: AugmentedEvent<ApiType, [ContentId, StorageProviderId]>;
  476. /**
  477. * Emits on adding of the content.
  478. * Params:
  479. * - Content parameters representation.
  480. * - StorageObjectOwner enum.
  481. **/
  482. ContentAdded: AugmentedEvent<ApiType, [Vec<ContentParameters>, StorageObjectOwner]>;
  483. /**
  484. * Emits when the storage provider rejects a content.
  485. * Params:
  486. * - Id of the relationship.
  487. * - Id of the storage provider.
  488. **/
  489. ContentRejected: AugmentedEvent<ApiType, [ContentId, StorageProviderId]>;
  490. /**
  491. * Emits on content removal.
  492. * Params:
  493. * - Content parameters representation.
  494. * - StorageObjectOwner enum.
  495. **/
  496. ContentRemoved: AugmentedEvent<ApiType, [Vec<ContentId>, StorageObjectOwner]>;
  497. /**
  498. * Emits when the content uploading status update performed.
  499. * Params:
  500. * - UploadingStatus bool flag.
  501. **/
  502. ContentUploadingStatusUpdated: AugmentedEvent<ApiType, [UploadingStatus]>;
  503. /**
  504. * Emits when the lead sets a new default voucher
  505. * Params:
  506. * - New size limit
  507. * - New objects limit
  508. **/
  509. DefaultVoucherUpdated: AugmentedEvent<ApiType, [u64, u64]>;
  510. /**
  511. * Emits when the global voucher objects limit is updated.
  512. * Params:
  513. * - New limit
  514. **/
  515. GlobalVoucherObjectsLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  516. /**
  517. * Emits when the global voucher size limit is updated.
  518. * Params:
  519. * - New limit
  520. **/
  521. GlobalVoucherSizeLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  522. /**
  523. * Emits when the storage object owner voucher objects limit update performed.
  524. * Params:
  525. * - StorageObjectOwner enum.
  526. * - voucher objects limit.
  527. **/
  528. StorageObjectOwnerVoucherObjectsLimitUpdated: AugmentedEvent<ApiType, [StorageObjectOwner, VoucherLimit]>;
  529. /**
  530. * Emits when the storage object owner voucher size limit update performed.
  531. * Params:
  532. * - StorageObjectOwner enum.
  533. * - voucher size limit.
  534. **/
  535. StorageObjectOwnerVoucherSizeLimitUpdated: AugmentedEvent<ApiType, [StorageObjectOwner, VoucherLimit]>;
  536. /**
  537. * Emits when the objects limit upper bound is updated.
  538. * Params:
  539. * - New Upper bound
  540. **/
  541. VoucherObjectsLimitUpperBoundUpdated: AugmentedEvent<ApiType, [u64]>;
  542. /**
  543. * Emits when the size limit upper bound is updated.
  544. * Params:
  545. * - New Upper bound
  546. **/
  547. VoucherSizeLimitUpperBoundUpdated: AugmentedEvent<ApiType, [u64]>;
  548. };
  549. dataObjectStorageRegistry: {
  550. /**
  551. * Emits on adding of the data object storage relationship.
  552. * Params:
  553. * - Id of the relationship.
  554. * - Id of the content.
  555. * - Id of the storage provider.
  556. **/
  557. DataObjectStorageRelationshipAdded: AugmentedEvent<ApiType, [DataObjectStorageRelationshipId, ContentId, StorageProviderId]>;
  558. /**
  559. * Emits on adding of the data object storage relationship.
  560. * Params:
  561. * - Id of the storage provider.
  562. * - Id of the relationship.
  563. * - Current state of the relationship (True=Active).
  564. **/
  565. DataObjectStorageRelationshipReadyUpdated: AugmentedEvent<ApiType, [StorageProviderId, DataObjectStorageRelationshipId, bool]>;
  566. };
  567. dataObjectTypeRegistry: {
  568. /**
  569. * Emits on the data object type registration.
  570. * Params:
  571. * - DataObjectType
  572. * - Id of the new data object type.
  573. **/
  574. DataObjectTypeRegistered: AugmentedEvent<ApiType, [DataObjectType, DataObjectTypeId]>;
  575. /**
  576. * Emits on the data object type update.
  577. * Params:
  578. * - Id of the updated data object type.
  579. * - DataObjectType
  580. **/
  581. DataObjectTypeUpdated: AugmentedEvent<ApiType, [DataObjectTypeId, DataObjectType]>;
  582. };
  583. forum: {
  584. /**
  585. * An arhical status of category with given id was updated.
  586. * The second argument reflects the new archival status of the category.
  587. **/
  588. CategoryArchivalStatusUpdated: AugmentedEvent<ApiType, [CategoryId, bool, PrivilegedActor]>;
  589. /**
  590. * A category was introduced
  591. **/
  592. CategoryCreated: AugmentedEvent<ApiType, [CategoryId, Option<CategoryId>, Bytes, Bytes]>;
  593. /**
  594. * A category was deleted
  595. **/
  596. CategoryDeleted: AugmentedEvent<ApiType, [CategoryId, PrivilegedActor]>;
  597. /**
  598. * A discription of category with given id was updated.
  599. * The second argument reflects the new description hash of the category.
  600. **/
  601. CategoryDescriptionUpdated: AugmentedEvent<ApiType, [CategoryId, Hash, PrivilegedActor]>;
  602. /**
  603. * An moderator ability to moderate a category and its subcategories updated
  604. **/
  605. CategoryMembershipOfModeratorUpdated: AugmentedEvent<ApiType, [ModeratorId, CategoryId, bool]>;
  606. /**
  607. * Sticky thread updated for category
  608. **/
  609. CategoryStickyThreadUpdate: AugmentedEvent<ApiType, [CategoryId, Vec<ThreadId>, PrivilegedActor]>;
  610. /**
  611. * A title of category with given id was updated.
  612. * The second argument reflects the new title hash of the category.
  613. **/
  614. CategoryTitleUpdated: AugmentedEvent<ApiType, [CategoryId, Hash, PrivilegedActor]>;
  615. /**
  616. * Post with given id was created.
  617. **/
  618. PostAdded: AugmentedEvent<ApiType, [PostId, ForumUserId, CategoryId, ThreadId, Bytes, bool]>;
  619. /**
  620. * Post with givne id was deleted.
  621. **/
  622. PostDeleted: AugmentedEvent<ApiType, [Bytes, ForumUserId, BTreeMap<ExtendedPostId, bool>]>;
  623. /**
  624. * Post with givne id was moderated.
  625. **/
  626. PostModerated: AugmentedEvent<ApiType, [PostId, Bytes, PrivilegedActor, CategoryId, ThreadId]>;
  627. /**
  628. * Thumb up post
  629. **/
  630. PostReacted: AugmentedEvent<ApiType, [ForumUserId, PostId, PostReactionId, CategoryId, ThreadId]>;
  631. /**
  632. * Post with given id had its text updated.
  633. * The second argument reflects the number of total edits when the text update occurs.
  634. **/
  635. PostTextUpdated: AugmentedEvent<ApiType, [PostId, ForumUserId, CategoryId, ThreadId, Bytes]>;
  636. /**
  637. * A thread with given id was created.
  638. * A third argument reflects the initial post id of the thread.
  639. **/
  640. ThreadCreated: AugmentedEvent<ApiType, [CategoryId, ThreadId, PostId, ForumUserId, Bytes, Bytes, Option<PollInput>]>;
  641. /**
  642. * A thread was deleted.
  643. **/
  644. ThreadDeleted: AugmentedEvent<ApiType, [ThreadId, ForumUserId, CategoryId, bool]>;
  645. /**
  646. * A thread metadata given id was updated.
  647. **/
  648. ThreadMetadataUpdated: AugmentedEvent<ApiType, [ThreadId, ForumUserId, CategoryId, Bytes]>;
  649. /**
  650. * A thread with given id was moderated.
  651. **/
  652. ThreadModerated: AugmentedEvent<ApiType, [ThreadId, Bytes, PrivilegedActor, CategoryId]>;
  653. /**
  654. * A thread was moved to new category
  655. **/
  656. ThreadMoved: AugmentedEvent<ApiType, [ThreadId, CategoryId, PrivilegedActor, CategoryId]>;
  657. /**
  658. * A thread with given id was updated.
  659. * The second argument reflects the new archival status of the thread.
  660. **/
  661. ThreadUpdated: AugmentedEvent<ApiType, [ThreadId, bool, PrivilegedActor, CategoryId]>;
  662. /**
  663. * Vote on poll
  664. **/
  665. VoteOnPoll: AugmentedEvent<ApiType, [ThreadId, u32, ForumUserId, CategoryId]>;
  666. };
  667. forumWorkingGroup: {
  668. /**
  669. * Emits on withdrawing the application for the regular worker/lead opening.
  670. * Params:
  671. * - Job application id
  672. **/
  673. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  674. /**
  675. * Emits on adding the application for the worker opening.
  676. * Params:
  677. * - Opening parameteres
  678. * - Application id
  679. **/
  680. AppliedOnOpening: AugmentedEvent<ApiType, [ApplyOnOpeningParameters, ApplicationId]>;
  681. /**
  682. * Emits on setting the budget for the working group.
  683. * Params:
  684. * - new budget
  685. **/
  686. BudgetSet: AugmentedEvent<ApiType, [Balance]>;
  687. /**
  688. * Emits on budget from the working group being spent
  689. * Params:
  690. * - Receiver Account Id.
  691. * - Balance spent.
  692. * - Rationale.
  693. **/
  694. BudgetSpending: AugmentedEvent<ApiType, [AccountId, Balance, Option<Bytes>]>;
  695. /**
  696. * Emits on setting the group leader.
  697. * Params:
  698. * - Group worker id.
  699. **/
  700. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  701. /**
  702. * Emits on un-setting the leader.
  703. **/
  704. LeaderUnset: AugmentedEvent<ApiType, []>;
  705. /**
  706. * Emits on reaching new missed reward.
  707. * Params:
  708. * - Worker ID.
  709. * - Missed reward (optional). None means 'no missed reward'.
  710. **/
  711. NewMissedRewardLevelReached: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  712. /**
  713. * Emits on adding new job opening.
  714. * Params:
  715. * - Opening id
  716. * - Description
  717. * - Opening Type(Lead or Worker)
  718. * - Stake Policy for the opening
  719. * - Reward per block
  720. **/
  721. OpeningAdded: AugmentedEvent<ApiType, [OpeningId, Bytes, OpeningType, StakePolicy, Option<Balance>]>;
  722. /**
  723. * Emits on canceling the job opening.
  724. * Params:
  725. * - Opening id
  726. **/
  727. OpeningCanceled: AugmentedEvent<ApiType, [OpeningId]>;
  728. /**
  729. * Emits on filling the job opening.
  730. * Params:
  731. * - Worker opening id
  732. * - Worker application id to the worker id dictionary
  733. * - Applicationd ids used to fill the opening
  734. **/
  735. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap, BTreeSet<ApplicationId>]>;
  736. /**
  737. * Emits on paying the reward.
  738. * Params:
  739. * - Id of the worker.
  740. * - Receiver Account Id.
  741. * - Reward
  742. * - Payment type (missed reward or regular one)
  743. **/
  744. RewardPaid: AugmentedEvent<ApiType, [WorkerId, AccountId, Balance, RewardPaymentType]>;
  745. /**
  746. * Emits on decreasing the regular worker/lead stake.
  747. * Params:
  748. * - regular worker/lead id.
  749. * - stake delta amount
  750. **/
  751. StakeDecreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  752. /**
  753. * Emits on increasing the regular worker/lead stake.
  754. * Params:
  755. * - regular worker/lead id.
  756. * - stake delta amount
  757. **/
  758. StakeIncreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  759. /**
  760. * Emits on slashing the regular worker/lead stake.
  761. * Params:
  762. * - regular worker/lead id.
  763. * - actual slashed balance.
  764. * - Requested slashed balance.
  765. * - Rationale.
  766. **/
  767. StakeSlashed: AugmentedEvent<ApiType, [WorkerId, Balance, Balance, Option<Bytes>]>;
  768. /**
  769. * Emits on updating the status text of the working group.
  770. * Params:
  771. * - status text hash
  772. * - status text
  773. **/
  774. StatusTextChanged: AugmentedEvent<ApiType, [Bytes, Option<Bytes>]>;
  775. /**
  776. * Emits on terminating the leader.
  777. * Params:
  778. * - leader worker id.
  779. * - Penalty.
  780. * - Rationale.
  781. **/
  782. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  783. /**
  784. * Emits on terminating the worker.
  785. * Params:
  786. * - worker id.
  787. * - Penalty.
  788. * - Rationale.
  789. **/
  790. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  791. /**
  792. * Emits on exiting the worker.
  793. * Params:
  794. * - worker id.
  795. * - Rationale.
  796. **/
  797. WorkerExited: AugmentedEvent<ApiType, [WorkerId]>;
  798. /**
  799. * Emits on updating the reward account of the worker.
  800. * Params:
  801. * - Id of the worker.
  802. * - Reward account id of the worker.
  803. **/
  804. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  805. /**
  806. * Emits on updating the reward amount of the worker.
  807. * Params:
  808. * - Id of the worker.
  809. * - Reward per block
  810. **/
  811. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  812. /**
  813. * Emits on updating the role account of the worker.
  814. * Params:
  815. * - Id of the worker.
  816. * - Role account id of the worker.
  817. **/
  818. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  819. /**
  820. * Emits when worker started leaving their role.
  821. * Params:
  822. * - Worker id.
  823. * - Rationale.
  824. **/
  825. WorkerStartedLeaving: AugmentedEvent<ApiType, [WorkerId, Option<Bytes>]>;
  826. /**
  827. * Emits on updating the worker storage role.
  828. * Params:
  829. * - Id of the worker.
  830. * - Raw storage field.
  831. **/
  832. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  833. };
  834. gatewayWorkingGroup: {
  835. /**
  836. * Emits on withdrawing the application for the regular worker/lead opening.
  837. * Params:
  838. * - Job application id
  839. **/
  840. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  841. /**
  842. * Emits on adding the application for the worker opening.
  843. * Params:
  844. * - Opening parameteres
  845. * - Application id
  846. **/
  847. AppliedOnOpening: AugmentedEvent<ApiType, [ApplyOnOpeningParameters, ApplicationId]>;
  848. /**
  849. * Emits on setting the budget for the working group.
  850. * Params:
  851. * - new budget
  852. **/
  853. BudgetSet: AugmentedEvent<ApiType, [Balance]>;
  854. /**
  855. * Emits on budget from the working group being spent
  856. * Params:
  857. * - Receiver Account Id.
  858. * - Balance spent.
  859. * - Rationale.
  860. **/
  861. BudgetSpending: AugmentedEvent<ApiType, [AccountId, Balance, Option<Bytes>]>;
  862. /**
  863. * Emits on setting the group leader.
  864. * Params:
  865. * - Group worker id.
  866. **/
  867. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  868. /**
  869. * Emits on un-setting the leader.
  870. **/
  871. LeaderUnset: AugmentedEvent<ApiType, []>;
  872. /**
  873. * Emits on reaching new missed reward.
  874. * Params:
  875. * - Worker ID.
  876. * - Missed reward (optional). None means 'no missed reward'.
  877. **/
  878. NewMissedRewardLevelReached: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  879. /**
  880. * Emits on adding new job opening.
  881. * Params:
  882. * - Opening id
  883. * - Description
  884. * - Opening Type(Lead or Worker)
  885. * - Stake Policy for the opening
  886. * - Reward per block
  887. **/
  888. OpeningAdded: AugmentedEvent<ApiType, [OpeningId, Bytes, OpeningType, StakePolicy, Option<Balance>]>;
  889. /**
  890. * Emits on canceling the job opening.
  891. * Params:
  892. * - Opening id
  893. **/
  894. OpeningCanceled: AugmentedEvent<ApiType, [OpeningId]>;
  895. /**
  896. * Emits on filling the job opening.
  897. * Params:
  898. * - Worker opening id
  899. * - Worker application id to the worker id dictionary
  900. * - Applicationd ids used to fill the opening
  901. **/
  902. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap, BTreeSet<ApplicationId>]>;
  903. /**
  904. * Emits on paying the reward.
  905. * Params:
  906. * - Id of the worker.
  907. * - Receiver Account Id.
  908. * - Reward
  909. * - Payment type (missed reward or regular one)
  910. **/
  911. RewardPaid: AugmentedEvent<ApiType, [WorkerId, AccountId, Balance, RewardPaymentType]>;
  912. /**
  913. * Emits on decreasing the regular worker/lead stake.
  914. * Params:
  915. * - regular worker/lead id.
  916. * - stake delta amount
  917. **/
  918. StakeDecreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  919. /**
  920. * Emits on increasing the regular worker/lead stake.
  921. * Params:
  922. * - regular worker/lead id.
  923. * - stake delta amount
  924. **/
  925. StakeIncreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  926. /**
  927. * Emits on slashing the regular worker/lead stake.
  928. * Params:
  929. * - regular worker/lead id.
  930. * - actual slashed balance.
  931. * - Requested slashed balance.
  932. * - Rationale.
  933. **/
  934. StakeSlashed: AugmentedEvent<ApiType, [WorkerId, Balance, Balance, Option<Bytes>]>;
  935. /**
  936. * Emits on updating the status text of the working group.
  937. * Params:
  938. * - status text hash
  939. * - status text
  940. **/
  941. StatusTextChanged: AugmentedEvent<ApiType, [Bytes, Option<Bytes>]>;
  942. /**
  943. * Emits on terminating the leader.
  944. * Params:
  945. * - leader worker id.
  946. * - Penalty.
  947. * - Rationale.
  948. **/
  949. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  950. /**
  951. * Emits on terminating the worker.
  952. * Params:
  953. * - worker id.
  954. * - Penalty.
  955. * - Rationale.
  956. **/
  957. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  958. /**
  959. * Emits on exiting the worker.
  960. * Params:
  961. * - worker id.
  962. * - Rationale.
  963. **/
  964. WorkerExited: AugmentedEvent<ApiType, [WorkerId]>;
  965. /**
  966. * Emits on updating the reward account of the worker.
  967. * Params:
  968. * - Id of the worker.
  969. * - Reward account id of the worker.
  970. **/
  971. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  972. /**
  973. * Emits on updating the reward amount of the worker.
  974. * Params:
  975. * - Id of the worker.
  976. * - Reward per block
  977. **/
  978. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  979. /**
  980. * Emits on updating the role account of the worker.
  981. * Params:
  982. * - Id of the worker.
  983. * - Role account id of the worker.
  984. **/
  985. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  986. /**
  987. * Emits when worker started leaving their role.
  988. * Params:
  989. * - Worker id.
  990. * - Rationale.
  991. **/
  992. WorkerStartedLeaving: AugmentedEvent<ApiType, [WorkerId, Option<Bytes>]>;
  993. /**
  994. * Emits on updating the worker storage role.
  995. * Params:
  996. * - Id of the worker.
  997. * - Raw storage field.
  998. **/
  999. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  1000. };
  1001. grandpa: {
  1002. /**
  1003. * New authority set has been applied. \[authority_set\]
  1004. **/
  1005. NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
  1006. /**
  1007. * Current authority set has been paused.
  1008. **/
  1009. Paused: AugmentedEvent<ApiType, []>;
  1010. /**
  1011. * Current authority set has been resumed.
  1012. **/
  1013. Resumed: AugmentedEvent<ApiType, []>;
  1014. };
  1015. imOnline: {
  1016. /**
  1017. * At the end of the session, no offence was committed.
  1018. **/
  1019. AllGood: AugmentedEvent<ApiType, []>;
  1020. /**
  1021. * A new heartbeat was received from `AuthorityId` \[authority_id\]
  1022. **/
  1023. HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
  1024. /**
  1025. * At the end of the session, at least one validator was found to be \[offline\].
  1026. **/
  1027. SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
  1028. };
  1029. joystreamUtility: {
  1030. /**
  1031. * A runtime upgrade was executed
  1032. * Params:
  1033. * - New code encoded in bytes
  1034. **/
  1035. RuntimeUpgraded: AugmentedEvent<ApiType, [Bytes]>;
  1036. /**
  1037. * A signal proposal was executed
  1038. * Params:
  1039. * - Signal given when creating the corresponding proposal
  1040. **/
  1041. Signaled: AugmentedEvent<ApiType, [Bytes]>;
  1042. /**
  1043. * An account burned tokens
  1044. * Params:
  1045. * - Account Id of the burning tokens
  1046. * - Balance burned from that account
  1047. **/
  1048. TokensBurned: AugmentedEvent<ApiType, [AccountId, Balance]>;
  1049. /**
  1050. * An `Update Working Group Budget` proposal was executed
  1051. * Params:
  1052. * - Working group which budget is being updated
  1053. * - Amount of balance being moved
  1054. * - Enum variant with positive indicating funds moved torwards working group and negative
  1055. * and negative funds moving from the working group
  1056. **/
  1057. UpdatedWorkingGroupBudget: AugmentedEvent<ApiType, [WorkingGroup, Balance, BalanceKind]>;
  1058. };
  1059. members: {
  1060. InitialInvitationBalanceUpdated: AugmentedEvent<ApiType, [Balance]>;
  1061. InitialInvitationCountUpdated: AugmentedEvent<ApiType, [u32]>;
  1062. InvitesTransferred: AugmentedEvent<ApiType, [MemberId, MemberId, u32]>;
  1063. LeaderInvitationQuotaUpdated: AugmentedEvent<ApiType, [u32]>;
  1064. MemberAccountsUpdated: AugmentedEvent<ApiType, [MemberId, Option<AccountId>, Option<AccountId>]>;
  1065. MemberInvited: AugmentedEvent<ApiType, [MemberId, InviteMembershipParameters]>;
  1066. MemberProfileUpdated: AugmentedEvent<ApiType, [MemberId, Option<Bytes>, Option<Bytes>]>;
  1067. MembershipBought: AugmentedEvent<ApiType, [MemberId, BuyMembershipParameters]>;
  1068. MembershipPriceUpdated: AugmentedEvent<ApiType, [Balance]>;
  1069. MemberVerificationStatusUpdated: AugmentedEvent<ApiType, [MemberId, bool, ActorId]>;
  1070. ReferralCutUpdated: AugmentedEvent<ApiType, [u8]>;
  1071. StakingAccountAdded: AugmentedEvent<ApiType, [AccountId, MemberId]>;
  1072. StakingAccountConfirmed: AugmentedEvent<ApiType, [AccountId, MemberId]>;
  1073. StakingAccountRemoved: AugmentedEvent<ApiType, [AccountId, MemberId]>;
  1074. };
  1075. membershipWorkingGroup: {
  1076. /**
  1077. * Emits on withdrawing the application for the regular worker/lead opening.
  1078. * Params:
  1079. * - Job application id
  1080. **/
  1081. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  1082. /**
  1083. * Emits on adding the application for the worker opening.
  1084. * Params:
  1085. * - Opening parameteres
  1086. * - Application id
  1087. **/
  1088. AppliedOnOpening: AugmentedEvent<ApiType, [ApplyOnOpeningParameters, ApplicationId]>;
  1089. /**
  1090. * Emits on setting the budget for the working group.
  1091. * Params:
  1092. * - new budget
  1093. **/
  1094. BudgetSet: AugmentedEvent<ApiType, [Balance]>;
  1095. /**
  1096. * Emits on budget from the working group being spent
  1097. * Params:
  1098. * - Receiver Account Id.
  1099. * - Balance spent.
  1100. * - Rationale.
  1101. **/
  1102. BudgetSpending: AugmentedEvent<ApiType, [AccountId, Balance, Option<Bytes>]>;
  1103. /**
  1104. * Emits on setting the group leader.
  1105. * Params:
  1106. * - Group worker id.
  1107. **/
  1108. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  1109. /**
  1110. * Emits on un-setting the leader.
  1111. **/
  1112. LeaderUnset: AugmentedEvent<ApiType, []>;
  1113. /**
  1114. * Emits on reaching new missed reward.
  1115. * Params:
  1116. * - Worker ID.
  1117. * - Missed reward (optional). None means 'no missed reward'.
  1118. **/
  1119. NewMissedRewardLevelReached: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  1120. /**
  1121. * Emits on adding new job opening.
  1122. * Params:
  1123. * - Opening id
  1124. * - Description
  1125. * - Opening Type(Lead or Worker)
  1126. * - Stake Policy for the opening
  1127. * - Reward per block
  1128. **/
  1129. OpeningAdded: AugmentedEvent<ApiType, [OpeningId, Bytes, OpeningType, StakePolicy, Option<Balance>]>;
  1130. /**
  1131. * Emits on canceling the job opening.
  1132. * Params:
  1133. * - Opening id
  1134. **/
  1135. OpeningCanceled: AugmentedEvent<ApiType, [OpeningId]>;
  1136. /**
  1137. * Emits on filling the job opening.
  1138. * Params:
  1139. * - Worker opening id
  1140. * - Worker application id to the worker id dictionary
  1141. * - Applicationd ids used to fill the opening
  1142. **/
  1143. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap, BTreeSet<ApplicationId>]>;
  1144. /**
  1145. * Emits on paying the reward.
  1146. * Params:
  1147. * - Id of the worker.
  1148. * - Receiver Account Id.
  1149. * - Reward
  1150. * - Payment type (missed reward or regular one)
  1151. **/
  1152. RewardPaid: AugmentedEvent<ApiType, [WorkerId, AccountId, Balance, RewardPaymentType]>;
  1153. /**
  1154. * Emits on decreasing the regular worker/lead stake.
  1155. * Params:
  1156. * - regular worker/lead id.
  1157. * - stake delta amount
  1158. **/
  1159. StakeDecreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  1160. /**
  1161. * Emits on increasing the regular worker/lead stake.
  1162. * Params:
  1163. * - regular worker/lead id.
  1164. * - stake delta amount
  1165. **/
  1166. StakeIncreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  1167. /**
  1168. * Emits on slashing the regular worker/lead stake.
  1169. * Params:
  1170. * - regular worker/lead id.
  1171. * - actual slashed balance.
  1172. * - Requested slashed balance.
  1173. * - Rationale.
  1174. **/
  1175. StakeSlashed: AugmentedEvent<ApiType, [WorkerId, Balance, Balance, Option<Bytes>]>;
  1176. /**
  1177. * Emits on updating the status text of the working group.
  1178. * Params:
  1179. * - status text hash
  1180. * - status text
  1181. **/
  1182. StatusTextChanged: AugmentedEvent<ApiType, [Bytes, Option<Bytes>]>;
  1183. /**
  1184. * Emits on terminating the leader.
  1185. * Params:
  1186. * - leader worker id.
  1187. * - Penalty.
  1188. * - Rationale.
  1189. **/
  1190. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  1191. /**
  1192. * Emits on terminating the worker.
  1193. * Params:
  1194. * - worker id.
  1195. * - Penalty.
  1196. * - Rationale.
  1197. **/
  1198. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  1199. /**
  1200. * Emits on exiting the worker.
  1201. * Params:
  1202. * - worker id.
  1203. * - Rationale.
  1204. **/
  1205. WorkerExited: AugmentedEvent<ApiType, [WorkerId]>;
  1206. /**
  1207. * Emits on updating the reward account of the worker.
  1208. * Params:
  1209. * - Id of the worker.
  1210. * - Reward account id of the worker.
  1211. **/
  1212. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1213. /**
  1214. * Emits on updating the reward amount of the worker.
  1215. * Params:
  1216. * - Id of the worker.
  1217. * - Reward per block
  1218. **/
  1219. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  1220. /**
  1221. * Emits on updating the role account of the worker.
  1222. * Params:
  1223. * - Id of the worker.
  1224. * - Role account id of the worker.
  1225. **/
  1226. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1227. /**
  1228. * Emits when worker started leaving their role.
  1229. * Params:
  1230. * - Worker id.
  1231. * - Rationale.
  1232. **/
  1233. WorkerStartedLeaving: AugmentedEvent<ApiType, [WorkerId, Option<Bytes>]>;
  1234. /**
  1235. * Emits on updating the worker storage role.
  1236. * Params:
  1237. * - Id of the worker.
  1238. * - Raw storage field.
  1239. **/
  1240. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  1241. };
  1242. memo: {
  1243. MemoUpdated: AugmentedEvent<ApiType, [AccountId, MemoText]>;
  1244. };
  1245. offences: {
  1246. /**
  1247. * There is an offence reported of the given `kind` happened at the `session_index` and
  1248. * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
  1249. * element indicates of the offence was applied (true) or queued (false)
  1250. * \[kind, timeslot, applied\].
  1251. **/
  1252. Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
  1253. };
  1254. operationsWorkingGroup: {
  1255. /**
  1256. * Emits on withdrawing the application for the regular worker/lead opening.
  1257. * Params:
  1258. * - Job application id
  1259. **/
  1260. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  1261. /**
  1262. * Emits on adding the application for the worker opening.
  1263. * Params:
  1264. * - Opening parameteres
  1265. * - Application id
  1266. **/
  1267. AppliedOnOpening: AugmentedEvent<ApiType, [ApplyOnOpeningParameters, ApplicationId]>;
  1268. /**
  1269. * Emits on setting the budget for the working group.
  1270. * Params:
  1271. * - new budget
  1272. **/
  1273. BudgetSet: AugmentedEvent<ApiType, [Balance]>;
  1274. /**
  1275. * Emits on budget from the working group being spent
  1276. * Params:
  1277. * - Receiver Account Id.
  1278. * - Balance spent.
  1279. * - Rationale.
  1280. **/
  1281. BudgetSpending: AugmentedEvent<ApiType, [AccountId, Balance, Option<Bytes>]>;
  1282. /**
  1283. * Emits on setting the group leader.
  1284. * Params:
  1285. * - Group worker id.
  1286. **/
  1287. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  1288. /**
  1289. * Emits on un-setting the leader.
  1290. **/
  1291. LeaderUnset: AugmentedEvent<ApiType, []>;
  1292. /**
  1293. * Emits on reaching new missed reward.
  1294. * Params:
  1295. * - Worker ID.
  1296. * - Missed reward (optional). None means 'no missed reward'.
  1297. **/
  1298. NewMissedRewardLevelReached: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  1299. /**
  1300. * Emits on adding new job opening.
  1301. * Params:
  1302. * - Opening id
  1303. * - Description
  1304. * - Opening Type(Lead or Worker)
  1305. * - Stake Policy for the opening
  1306. * - Reward per block
  1307. **/
  1308. OpeningAdded: AugmentedEvent<ApiType, [OpeningId, Bytes, OpeningType, StakePolicy, Option<Balance>]>;
  1309. /**
  1310. * Emits on canceling the job opening.
  1311. * Params:
  1312. * - Opening id
  1313. **/
  1314. OpeningCanceled: AugmentedEvent<ApiType, [OpeningId]>;
  1315. /**
  1316. * Emits on filling the job opening.
  1317. * Params:
  1318. * - Worker opening id
  1319. * - Worker application id to the worker id dictionary
  1320. * - Applicationd ids used to fill the opening
  1321. **/
  1322. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap, BTreeSet<ApplicationId>]>;
  1323. /**
  1324. * Emits on paying the reward.
  1325. * Params:
  1326. * - Id of the worker.
  1327. * - Receiver Account Id.
  1328. * - Reward
  1329. * - Payment type (missed reward or regular one)
  1330. **/
  1331. RewardPaid: AugmentedEvent<ApiType, [WorkerId, AccountId, Balance, RewardPaymentType]>;
  1332. /**
  1333. * Emits on decreasing the regular worker/lead stake.
  1334. * Params:
  1335. * - regular worker/lead id.
  1336. * - stake delta amount
  1337. **/
  1338. StakeDecreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  1339. /**
  1340. * Emits on increasing the regular worker/lead stake.
  1341. * Params:
  1342. * - regular worker/lead id.
  1343. * - stake delta amount
  1344. **/
  1345. StakeIncreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  1346. /**
  1347. * Emits on slashing the regular worker/lead stake.
  1348. * Params:
  1349. * - regular worker/lead id.
  1350. * - actual slashed balance.
  1351. * - Requested slashed balance.
  1352. * - Rationale.
  1353. **/
  1354. StakeSlashed: AugmentedEvent<ApiType, [WorkerId, Balance, Balance, Option<Bytes>]>;
  1355. /**
  1356. * Emits on updating the status text of the working group.
  1357. * Params:
  1358. * - status text hash
  1359. * - status text
  1360. **/
  1361. StatusTextChanged: AugmentedEvent<ApiType, [Bytes, Option<Bytes>]>;
  1362. /**
  1363. * Emits on terminating the leader.
  1364. * Params:
  1365. * - leader worker id.
  1366. * - Penalty.
  1367. * - Rationale.
  1368. **/
  1369. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  1370. /**
  1371. * Emits on terminating the worker.
  1372. * Params:
  1373. * - worker id.
  1374. * - Penalty.
  1375. * - Rationale.
  1376. **/
  1377. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  1378. /**
  1379. * Emits on exiting the worker.
  1380. * Params:
  1381. * - worker id.
  1382. * - Rationale.
  1383. **/
  1384. WorkerExited: AugmentedEvent<ApiType, [WorkerId]>;
  1385. /**
  1386. * Emits on updating the reward account of the worker.
  1387. * Params:
  1388. * - Id of the worker.
  1389. * - Reward account id of the worker.
  1390. **/
  1391. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1392. /**
  1393. * Emits on updating the reward amount of the worker.
  1394. * Params:
  1395. * - Id of the worker.
  1396. * - Reward per block
  1397. **/
  1398. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  1399. /**
  1400. * Emits on updating the role account of the worker.
  1401. * Params:
  1402. * - Id of the worker.
  1403. * - Role account id of the worker.
  1404. **/
  1405. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1406. /**
  1407. * Emits when worker started leaving their role.
  1408. * Params:
  1409. * - Worker id.
  1410. * - Rationale.
  1411. **/
  1412. WorkerStartedLeaving: AugmentedEvent<ApiType, [WorkerId, Option<Bytes>]>;
  1413. /**
  1414. * Emits on updating the worker storage role.
  1415. * Params:
  1416. * - Id of the worker.
  1417. * - Raw storage field.
  1418. **/
  1419. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  1420. };
  1421. proposalsCodex: {
  1422. /**
  1423. * A proposal was created
  1424. * Params:
  1425. * - Id of a newly created proposal after it was saved in storage.
  1426. * - General proposal parameter. Parameters shared by all proposals
  1427. * - Proposal Details. Parameter of proposal with a variant for each kind of proposal
  1428. **/
  1429. ProposalCreated: AugmentedEvent<ApiType, [ProposalId, GeneralProposalParameters, ProposalDetailsOf]>;
  1430. };
  1431. proposalsDiscussion: {
  1432. /**
  1433. * Emits on post creation.
  1434. **/
  1435. PostCreated: AugmentedEvent<ApiType, [PostId, MemberId, ThreadId, Bytes, bool]>;
  1436. /**
  1437. * Emits on post deleted
  1438. **/
  1439. PostDeleted: AugmentedEvent<ApiType, [MemberId, ThreadId, PostId, bool]>;
  1440. /**
  1441. * Emits on post update.
  1442. **/
  1443. PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId, ThreadId, Bytes]>;
  1444. /**
  1445. * Emits on thread creation.
  1446. **/
  1447. ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
  1448. /**
  1449. * Emits on thread mode change.
  1450. **/
  1451. ThreadModeChanged: AugmentedEvent<ApiType, [ThreadId, ThreadMode, MemberId]>;
  1452. };
  1453. proposalsEngine: {
  1454. /**
  1455. * Emits on a proposal being cancelled
  1456. * Params:
  1457. * - Member Id of the proposer
  1458. * - Id of the proposal
  1459. **/
  1460. ProposalCancelled: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
  1461. /**
  1462. * Emits on getting a proposal status decision.
  1463. * Params:
  1464. * - Id of a proposal.
  1465. * - Proposal decision
  1466. **/
  1467. ProposalDecisionMade: AugmentedEvent<ApiType, [ProposalId, ProposalDecision]>;
  1468. /**
  1469. * Emits on proposal execution.
  1470. * Params:
  1471. * - Id of a updated proposal.
  1472. * - Proposal execution status.
  1473. **/
  1474. ProposalExecuted: AugmentedEvent<ApiType, [ProposalId, ExecutionStatus]>;
  1475. /**
  1476. * Emits on proposal creation.
  1477. * Params:
  1478. * - Id of a proposal.
  1479. * - New proposal status.
  1480. **/
  1481. ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
  1482. /**
  1483. * Emits on voting for the proposal
  1484. * Params:
  1485. * - Voter - member id of a voter.
  1486. * - Id of a proposal.
  1487. * - Kind of vote.
  1488. * - Rationale.
  1489. **/
  1490. Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind, Bytes]>;
  1491. };
  1492. referendum: {
  1493. /**
  1494. * Referendum ended and winning option was selected
  1495. **/
  1496. ReferendumFinished: AugmentedEvent<ApiType, [Vec<OptionResult>]>;
  1497. /**
  1498. * Referendum started
  1499. **/
  1500. ReferendumStarted: AugmentedEvent<ApiType, [u64]>;
  1501. /**
  1502. * Referendum started
  1503. **/
  1504. ReferendumStartedForcefully: AugmentedEvent<ApiType, [u64]>;
  1505. /**
  1506. * Revealing phase has begun
  1507. **/
  1508. RevealingStageStarted: AugmentedEvent<ApiType, []>;
  1509. /**
  1510. * User released his stake
  1511. **/
  1512. StakeReleased: AugmentedEvent<ApiType, [AccountId]>;
  1513. /**
  1514. * User cast a vote in referendum
  1515. **/
  1516. VoteCast: AugmentedEvent<ApiType, [AccountId, Hash, Balance]>;
  1517. /**
  1518. * User revealed his vote
  1519. **/
  1520. VoteRevealed: AugmentedEvent<ApiType, [AccountId, MemberId, Bytes]>;
  1521. };
  1522. session: {
  1523. /**
  1524. * New session has happened. Note that the argument is the \[session_index\], not the block
  1525. * number as the type might suggest.
  1526. **/
  1527. NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
  1528. };
  1529. staking: {
  1530. /**
  1531. * An account has bonded this amount. \[stash, amount\]
  1532. *
  1533. * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
  1534. * it will not be emitted for staking rewards when they are added to stake.
  1535. **/
  1536. Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  1537. /**
  1538. * The era payout has been set; the first balance is the validator-payout; the second is
  1539. * the remainder from the maximum amount of reward.
  1540. * \[era_index, validator_payout, remainder\]
  1541. **/
  1542. EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
  1543. /**
  1544. * An old slashing report from a prior era was discarded because it could
  1545. * not be processed. \[session_index\]
  1546. **/
  1547. OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
  1548. /**
  1549. * The staker has been rewarded by this amount. \[stash, amount\]
  1550. **/
  1551. Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
  1552. /**
  1553. * One validator (and its nominators) has been slashed by the given amount.
  1554. * \[validator, amount\]
  1555. **/
  1556. Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
  1557. /**
  1558. * A new solution for the upcoming election has been stored. \[compute\]
  1559. **/
  1560. SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
  1561. /**
  1562. * A new set of stakers was elected with the given \[compute\].
  1563. **/
  1564. StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
  1565. /**
  1566. * An account has unbonded this amount. \[stash, amount\]
  1567. **/
  1568. Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  1569. /**
  1570. * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
  1571. * from the unlocking queue. \[stash, amount\]
  1572. **/
  1573. Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
  1574. };
  1575. storageWorkingGroup: {
  1576. /**
  1577. * Emits on withdrawing the application for the regular worker/lead opening.
  1578. * Params:
  1579. * - Job application id
  1580. **/
  1581. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  1582. /**
  1583. * Emits on adding the application for the worker opening.
  1584. * Params:
  1585. * - Opening parameteres
  1586. * - Application id
  1587. **/
  1588. AppliedOnOpening: AugmentedEvent<ApiType, [ApplyOnOpeningParameters, ApplicationId]>;
  1589. /**
  1590. * Emits on setting the budget for the working group.
  1591. * Params:
  1592. * - new budget
  1593. **/
  1594. BudgetSet: AugmentedEvent<ApiType, [Balance]>;
  1595. /**
  1596. * Emits on budget from the working group being spent
  1597. * Params:
  1598. * - Receiver Account Id.
  1599. * - Balance spent.
  1600. * - Rationale.
  1601. **/
  1602. BudgetSpending: AugmentedEvent<ApiType, [AccountId, Balance, Option<Bytes>]>;
  1603. /**
  1604. * Emits on setting the group leader.
  1605. * Params:
  1606. * - Group worker id.
  1607. **/
  1608. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  1609. /**
  1610. * Emits on un-setting the leader.
  1611. **/
  1612. LeaderUnset: AugmentedEvent<ApiType, []>;
  1613. /**
  1614. * Emits on reaching new missed reward.
  1615. * Params:
  1616. * - Worker ID.
  1617. * - Missed reward (optional). None means 'no missed reward'.
  1618. **/
  1619. NewMissedRewardLevelReached: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  1620. /**
  1621. * Emits on adding new job opening.
  1622. * Params:
  1623. * - Opening id
  1624. * - Description
  1625. * - Opening Type(Lead or Worker)
  1626. * - Stake Policy for the opening
  1627. * - Reward per block
  1628. **/
  1629. OpeningAdded: AugmentedEvent<ApiType, [OpeningId, Bytes, OpeningType, StakePolicy, Option<Balance>]>;
  1630. /**
  1631. * Emits on canceling the job opening.
  1632. * Params:
  1633. * - Opening id
  1634. **/
  1635. OpeningCanceled: AugmentedEvent<ApiType, [OpeningId]>;
  1636. /**
  1637. * Emits on filling the job opening.
  1638. * Params:
  1639. * - Worker opening id
  1640. * - Worker application id to the worker id dictionary
  1641. * - Applicationd ids used to fill the opening
  1642. **/
  1643. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap, BTreeSet<ApplicationId>]>;
  1644. /**
  1645. * Emits on paying the reward.
  1646. * Params:
  1647. * - Id of the worker.
  1648. * - Receiver Account Id.
  1649. * - Reward
  1650. * - Payment type (missed reward or regular one)
  1651. **/
  1652. RewardPaid: AugmentedEvent<ApiType, [WorkerId, AccountId, Balance, RewardPaymentType]>;
  1653. /**
  1654. * Emits on decreasing the regular worker/lead stake.
  1655. * Params:
  1656. * - regular worker/lead id.
  1657. * - stake delta amount
  1658. **/
  1659. StakeDecreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  1660. /**
  1661. * Emits on increasing the regular worker/lead stake.
  1662. * Params:
  1663. * - regular worker/lead id.
  1664. * - stake delta amount
  1665. **/
  1666. StakeIncreased: AugmentedEvent<ApiType, [WorkerId, Balance]>;
  1667. /**
  1668. * Emits on slashing the regular worker/lead stake.
  1669. * Params:
  1670. * - regular worker/lead id.
  1671. * - actual slashed balance.
  1672. * - Requested slashed balance.
  1673. * - Rationale.
  1674. **/
  1675. StakeSlashed: AugmentedEvent<ApiType, [WorkerId, Balance, Balance, Option<Bytes>]>;
  1676. /**
  1677. * Emits on updating the status text of the working group.
  1678. * Params:
  1679. * - status text hash
  1680. * - status text
  1681. **/
  1682. StatusTextChanged: AugmentedEvent<ApiType, [Bytes, Option<Bytes>]>;
  1683. /**
  1684. * Emits on terminating the leader.
  1685. * Params:
  1686. * - leader worker id.
  1687. * - Penalty.
  1688. * - Rationale.
  1689. **/
  1690. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  1691. /**
  1692. * Emits on terminating the worker.
  1693. * Params:
  1694. * - worker id.
  1695. * - Penalty.
  1696. * - Rationale.
  1697. **/
  1698. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, Option<Balance>, Option<Bytes>]>;
  1699. /**
  1700. * Emits on exiting the worker.
  1701. * Params:
  1702. * - worker id.
  1703. * - Rationale.
  1704. **/
  1705. WorkerExited: AugmentedEvent<ApiType, [WorkerId]>;
  1706. /**
  1707. * Emits on updating the reward account of the worker.
  1708. * Params:
  1709. * - Id of the worker.
  1710. * - Reward account id of the worker.
  1711. **/
  1712. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1713. /**
  1714. * Emits on updating the reward amount of the worker.
  1715. * Params:
  1716. * - Id of the worker.
  1717. * - Reward per block
  1718. **/
  1719. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId, Option<Balance>]>;
  1720. /**
  1721. * Emits on updating the role account of the worker.
  1722. * Params:
  1723. * - Id of the worker.
  1724. * - Role account id of the worker.
  1725. **/
  1726. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1727. /**
  1728. * Emits when worker started leaving their role.
  1729. * Params:
  1730. * - Worker id.
  1731. * - Rationale.
  1732. **/
  1733. WorkerStartedLeaving: AugmentedEvent<ApiType, [WorkerId, Option<Bytes>]>;
  1734. /**
  1735. * Emits on updating the worker storage role.
  1736. * Params:
  1737. * - Id of the worker.
  1738. * - Raw storage field.
  1739. **/
  1740. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  1741. };
  1742. sudo: {
  1743. /**
  1744. * The \[sudoer\] just switched identity; the old key is supplied.
  1745. **/
  1746. KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
  1747. /**
  1748. * A sudo just took place. \[result\]
  1749. **/
  1750. Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
  1751. /**
  1752. * A sudo just took place. \[result\]
  1753. **/
  1754. SudoAsDone: AugmentedEvent<ApiType, [bool]>;
  1755. };
  1756. system: {
  1757. /**
  1758. * `:code` was updated.
  1759. **/
  1760. CodeUpdated: AugmentedEvent<ApiType, []>;
  1761. /**
  1762. * An extrinsic failed. \[error, info\]
  1763. **/
  1764. ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
  1765. /**
  1766. * An extrinsic completed successfully. \[info\]
  1767. **/
  1768. ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
  1769. /**
  1770. * An \[account\] was reaped.
  1771. **/
  1772. KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
  1773. /**
  1774. * A new \[account\] was created.
  1775. **/
  1776. NewAccount: AugmentedEvent<ApiType, [AccountId]>;
  1777. };
  1778. utility: {
  1779. /**
  1780. * Batch of dispatches completed fully with no error.
  1781. **/
  1782. BatchCompleted: AugmentedEvent<ApiType, []>;
  1783. /**
  1784. * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
  1785. * well as the error. \[index, error\]
  1786. **/
  1787. BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
  1788. };
  1789. }
  1790. export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
  1791. }
  1792. }