augment-api-events.ts 64 KB

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