augment-api-events.ts 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { Bytes, Option, Vec, bool, u32, u64 } from '@polkadot/types';
  4. import type { ApplicationId, ApplicationIdToWorkerIdMap, CategoryId, Channel, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, ContentActor, ContentId, ContentParameters, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, EntryMethod, IsCensored, MemberId, MintBalanceOf, MintId, NewAsset, OpeningId, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PostId, ProposalId, ProposalStatus, RationaleText, Series, SeriesId, SeriesParameters, StorageObjectOwner, StorageProviderId, ThreadId, UploadingStatus, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, VoucherLimit, WorkerId } 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. content: {
  54. ChannelAssetsRemoved: AugmentedEvent<ApiType, [ContentActor, ChannelId, Vec<ContentId>]>;
  55. ChannelCategoryCreated: AugmentedEvent<ApiType, [ChannelCategoryId, ChannelCategory, ChannelCategoryCreationParameters]>;
  56. ChannelCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId]>;
  57. ChannelCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
  58. ChannelCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, IsCensored, Bytes]>;
  59. ChannelCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelCreationParameters]>;
  60. ChannelOwnershipTransferred: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
  61. ChannelOwnershipTransferRequested: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest]>;
  62. ChannelOwnershipTransferRequestWithdrawn: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
  63. ChannelUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelUpdateParameters]>;
  64. CuratorAdded: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  65. CuratorGroupCreated: AugmentedEvent<ApiType, [CuratorGroupId]>;
  66. CuratorGroupStatusSet: AugmentedEvent<ApiType, [CuratorGroupId, bool]>;
  67. CuratorRemoved: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  68. FeaturedVideosSet: AugmentedEvent<ApiType, [ContentActor, Vec<VideoId>]>;
  69. PersonCreated: AugmentedEvent<ApiType, [ContentActor, PersonId, Vec<NewAsset>, PersonCreationParameters]>;
  70. PersonDeleted: AugmentedEvent<ApiType, [ContentActor, PersonId]>;
  71. PersonUpdated: AugmentedEvent<ApiType, [ContentActor, PersonId, Vec<NewAsset>, PersonUpdateParameters]>;
  72. PlaylistCreated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistCreationParameters]>;
  73. PlaylistDeleted: AugmentedEvent<ApiType, [ContentActor, PlaylistId]>;
  74. PlaylistUpdated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
  75. SeriesCreated: AugmentedEvent<ApiType, [ContentActor, SeriesId, Vec<NewAsset>, SeriesParameters, Series]>;
  76. SeriesDeleted: AugmentedEvent<ApiType, [ContentActor, SeriesId]>;
  77. SeriesUpdated: AugmentedEvent<ApiType, [ContentActor, SeriesId, Vec<NewAsset>, SeriesParameters, Series]>;
  78. VideoCategoryCreated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryCreationParameters]>;
  79. VideoCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId]>;
  80. VideoCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
  81. VideoCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, IsCensored, Bytes]>;
  82. VideoCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, VideoId, VideoCreationParameters]>;
  83. VideoDeleted: AugmentedEvent<ApiType, [ContentActor, VideoId]>;
  84. VideoUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, VideoUpdateParameters]>;
  85. };
  86. contentDirectoryWorkingGroup: {
  87. /**
  88. * Emits on accepting application for the worker opening.
  89. * Params:
  90. * - Opening id
  91. **/
  92. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  93. /**
  94. * Emits on terminating the application for the worker/lead opening.
  95. * Params:
  96. * - Worker application id
  97. **/
  98. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  99. /**
  100. * Emits on withdrawing the application for the worker/lead opening.
  101. * Params:
  102. * - Worker application id
  103. **/
  104. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  105. /**
  106. * Emits on adding the application for the worker opening.
  107. * Params:
  108. * - Opening id
  109. * - Application id
  110. **/
  111. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  112. /**
  113. * Emits on beginning the application review for the worker/lead opening.
  114. * Params:
  115. * - Opening id
  116. **/
  117. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  118. /**
  119. * Emits on setting the leader.
  120. * Params:
  121. * - Worker id.
  122. **/
  123. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  124. /**
  125. * Emits on un-setting the leader.
  126. * Params:
  127. **/
  128. LeaderUnset: AugmentedEvent<ApiType, []>;
  129. /**
  130. * Emits on changing working group mint capacity.
  131. * Params:
  132. * - mint id.
  133. * - new mint balance.
  134. **/
  135. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  136. /**
  137. * Emits on adding new worker opening.
  138. * Params:
  139. * - Opening id
  140. **/
  141. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  142. /**
  143. * Emits on filling the worker opening.
  144. * Params:
  145. * - Worker opening id
  146. * - Worker application id to the worker id dictionary
  147. **/
  148. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  149. /**
  150. * Emits on decreasing the worker/lead stake.
  151. * Params:
  152. * - worker/lead id.
  153. **/
  154. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  155. /**
  156. * Emits on increasing the worker/lead stake.
  157. * Params:
  158. * - worker/lead id.
  159. **/
  160. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  161. /**
  162. * Emits on slashing the worker/lead stake.
  163. * Params:
  164. * - worker/lead id.
  165. **/
  166. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  167. /**
  168. * Emits on terminating the leader.
  169. * Params:
  170. * - leader worker id.
  171. * - termination rationale text
  172. **/
  173. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  174. /**
  175. * Emits on terminating the worker.
  176. * Params:
  177. * - worker id.
  178. * - termination rationale text
  179. **/
  180. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  181. /**
  182. * Emits on exiting the worker.
  183. * Params:
  184. * - worker id.
  185. * - exit rationale text
  186. **/
  187. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  188. /**
  189. * Emits on updating the reward account of the worker.
  190. * Params:
  191. * - Member id of the worker.
  192. * - Reward account id of the worker.
  193. **/
  194. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  195. /**
  196. * Emits on updating the reward amount of the worker.
  197. * Params:
  198. * - Id of the worker.
  199. **/
  200. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  201. /**
  202. * Emits on updating the role account of the worker.
  203. * Params:
  204. * - Id of the worker.
  205. * - Role account id of the worker.
  206. **/
  207. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  208. /**
  209. * Emits on updating the worker storage role.
  210. * Params:
  211. * - Id of the worker.
  212. * - Raw storage field.
  213. **/
  214. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  215. };
  216. council: {
  217. CouncilTermEnded: AugmentedEvent<ApiType, [BlockNumber]>;
  218. NewCouncilTermStarted: AugmentedEvent<ApiType, [BlockNumber]>;
  219. };
  220. councilElection: {
  221. AnnouncingEnded: AugmentedEvent<ApiType, []>;
  222. AnnouncingStarted: AugmentedEvent<ApiType, [u32]>;
  223. Applied: AugmentedEvent<ApiType, [AccountId]>;
  224. CouncilElected: AugmentedEvent<ApiType, [BlockNumber]>;
  225. /**
  226. * A new election started
  227. **/
  228. ElectionStarted: AugmentedEvent<ApiType, []>;
  229. Revealed: AugmentedEvent<ApiType, [AccountId, Hash, AccountId]>;
  230. RevealingEnded: AugmentedEvent<ApiType, []>;
  231. RevealingStarted: AugmentedEvent<ApiType, []>;
  232. Voted: AugmentedEvent<ApiType, [AccountId, Hash]>;
  233. VotingEnded: AugmentedEvent<ApiType, []>;
  234. VotingStarted: AugmentedEvent<ApiType, []>;
  235. };
  236. dataDirectory: {
  237. /**
  238. * Emits when the storage provider accepts a content.
  239. * Params:
  240. * - Id of the relationship.
  241. * - Id of the storage provider.
  242. **/
  243. ContentAccepted: AugmentedEvent<ApiType, [ContentId, StorageProviderId]>;
  244. /**
  245. * Emits on adding of the content.
  246. * Params:
  247. * - Content parameters representation.
  248. * - StorageObjectOwner enum.
  249. **/
  250. ContentAdded: AugmentedEvent<ApiType, [Vec<ContentParameters>, StorageObjectOwner]>;
  251. /**
  252. * Emits when the storage provider rejects a content.
  253. * Params:
  254. * - Id of the relationship.
  255. * - Id of the storage provider.
  256. **/
  257. ContentRejected: AugmentedEvent<ApiType, [ContentId, StorageProviderId]>;
  258. /**
  259. * Emits on content removal.
  260. * Params:
  261. * - Content parameters representation.
  262. * - StorageObjectOwner enum.
  263. **/
  264. ContentRemoved: AugmentedEvent<ApiType, [Vec<ContentId>, StorageObjectOwner]>;
  265. /**
  266. * Emits when the content uploading status update performed.
  267. * Params:
  268. * - UploadingStatus bool flag.
  269. **/
  270. ContentUploadingStatusUpdated: AugmentedEvent<ApiType, [UploadingStatus]>;
  271. /**
  272. * Emits when the lead sets a new default voucher
  273. * Params:
  274. * - New size limit
  275. * - New objects limit
  276. **/
  277. DefaultVoucherUpdated: AugmentedEvent<ApiType, [u64, u64]>;
  278. /**
  279. * Emits when the global voucher objects limit is updated.
  280. * Params:
  281. * - New limit
  282. **/
  283. GlobalVoucherObjectsLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  284. /**
  285. * Emits when the global voucher size limit is updated.
  286. * Params:
  287. * - New limit
  288. **/
  289. GlobalVoucherSizeLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  290. /**
  291. * Emits when the storage object owner voucher objects limit update performed.
  292. * Params:
  293. * - StorageObjectOwner enum.
  294. * - voucher objects limit.
  295. **/
  296. StorageObjectOwnerVoucherObjectsLimitUpdated: AugmentedEvent<ApiType, [StorageObjectOwner, VoucherLimit]>;
  297. /**
  298. * Emits when the storage object owner voucher size limit update performed.
  299. * Params:
  300. * - StorageObjectOwner enum.
  301. * - voucher size limit.
  302. **/
  303. StorageObjectOwnerVoucherSizeLimitUpdated: AugmentedEvent<ApiType, [StorageObjectOwner, VoucherLimit]>;
  304. /**
  305. * Emits when the objects limit upper bound is updated.
  306. * Params:
  307. * - New Upper bound
  308. **/
  309. VoucherObjectsLimitUpperBoundUpdated: AugmentedEvent<ApiType, [u64]>;
  310. /**
  311. * Emits when the size limit upper bound is updated.
  312. * Params:
  313. * - New Upper bound
  314. **/
  315. VoucherSizeLimitUpperBoundUpdated: AugmentedEvent<ApiType, [u64]>;
  316. };
  317. dataObjectStorageRegistry: {
  318. /**
  319. * Emits on adding of the data object storage relationship.
  320. * Params:
  321. * - Id of the relationship.
  322. * - Id of the content.
  323. * - Id of the storage provider.
  324. **/
  325. DataObjectStorageRelationshipAdded: AugmentedEvent<ApiType, [DataObjectStorageRelationshipId, ContentId, StorageProviderId]>;
  326. /**
  327. * Emits on adding of the data object storage relationship.
  328. * Params:
  329. * - Id of the storage provider.
  330. * - Id of the relationship.
  331. * - Current state of the relationship (True=Active).
  332. **/
  333. DataObjectStorageRelationshipReadyUpdated: AugmentedEvent<ApiType, [StorageProviderId, DataObjectStorageRelationshipId, bool]>;
  334. };
  335. dataObjectTypeRegistry: {
  336. /**
  337. * Emits on the data object type registration.
  338. * Params:
  339. * - DataObjectType
  340. * - Id of the new data object type.
  341. **/
  342. DataObjectTypeRegistered: AugmentedEvent<ApiType, [DataObjectType, DataObjectTypeId]>;
  343. /**
  344. * Emits on the data object type update.
  345. * Params:
  346. * - Id of the updated data object type.
  347. * - DataObjectType
  348. **/
  349. DataObjectTypeUpdated: AugmentedEvent<ApiType, [DataObjectTypeId, DataObjectType]>;
  350. };
  351. forum: {
  352. /**
  353. * A category was introduced
  354. **/
  355. CategoryCreated: AugmentedEvent<ApiType, [CategoryId]>;
  356. /**
  357. * A category with given id was updated.
  358. * The second argument reflects the new archival status of the category, if changed.
  359. * The third argument reflects the new deletion status of the category, if changed.
  360. **/
  361. CategoryUpdated: AugmentedEvent<ApiType, [CategoryId, Option<bool>, Option<bool>]>;
  362. /**
  363. * Given account was set as forum sudo.
  364. **/
  365. ForumSudoSet: AugmentedEvent<ApiType, [Option<AccountId>, Option<AccountId>]>;
  366. /**
  367. * Post with given id was created.
  368. **/
  369. PostAdded: AugmentedEvent<ApiType, [PostId]>;
  370. /**
  371. * Post with givne id was moderated.
  372. **/
  373. PostModerated: AugmentedEvent<ApiType, [PostId]>;
  374. /**
  375. * Post with given id had its text updated.
  376. * The second argument reflects the number of total edits when the text update occurs.
  377. **/
  378. PostTextUpdated: AugmentedEvent<ApiType, [PostId, u64]>;
  379. /**
  380. * A thread with given id was created.
  381. **/
  382. ThreadCreated: AugmentedEvent<ApiType, [ThreadId]>;
  383. /**
  384. * A thread with given id was moderated.
  385. **/
  386. ThreadModerated: AugmentedEvent<ApiType, [ThreadId]>;
  387. };
  388. gatewayWorkingGroup: {
  389. /**
  390. * Emits on accepting application for the worker opening.
  391. * Params:
  392. * - Opening id
  393. **/
  394. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  395. /**
  396. * Emits on terminating the application for the worker/lead opening.
  397. * Params:
  398. * - Worker application id
  399. **/
  400. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  401. /**
  402. * Emits on withdrawing the application for the worker/lead opening.
  403. * Params:
  404. * - Worker application id
  405. **/
  406. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  407. /**
  408. * Emits on adding the application for the worker opening.
  409. * Params:
  410. * - Opening id
  411. * - Application id
  412. **/
  413. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  414. /**
  415. * Emits on beginning the application review for the worker/lead opening.
  416. * Params:
  417. * - Opening id
  418. **/
  419. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  420. /**
  421. * Emits on setting the leader.
  422. * Params:
  423. * - Worker id.
  424. **/
  425. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  426. /**
  427. * Emits on un-setting the leader.
  428. * Params:
  429. **/
  430. LeaderUnset: AugmentedEvent<ApiType, []>;
  431. /**
  432. * Emits on changing working group mint capacity.
  433. * Params:
  434. * - mint id.
  435. * - new mint balance.
  436. **/
  437. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  438. /**
  439. * Emits on adding new worker opening.
  440. * Params:
  441. * - Opening id
  442. **/
  443. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  444. /**
  445. * Emits on filling the worker opening.
  446. * Params:
  447. * - Worker opening id
  448. * - Worker application id to the worker id dictionary
  449. **/
  450. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  451. /**
  452. * Emits on decreasing the worker/lead stake.
  453. * Params:
  454. * - worker/lead id.
  455. **/
  456. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  457. /**
  458. * Emits on increasing the worker/lead stake.
  459. * Params:
  460. * - worker/lead id.
  461. **/
  462. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  463. /**
  464. * Emits on slashing the worker/lead stake.
  465. * Params:
  466. * - worker/lead id.
  467. **/
  468. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  469. /**
  470. * Emits on terminating the leader.
  471. * Params:
  472. * - leader worker id.
  473. * - termination rationale text
  474. **/
  475. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  476. /**
  477. * Emits on terminating the worker.
  478. * Params:
  479. * - worker id.
  480. * - termination rationale text
  481. **/
  482. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  483. /**
  484. * Emits on exiting the worker.
  485. * Params:
  486. * - worker id.
  487. * - exit rationale text
  488. **/
  489. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  490. /**
  491. * Emits on updating the reward account of the worker.
  492. * Params:
  493. * - Member id of the worker.
  494. * - Reward account id of the worker.
  495. **/
  496. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  497. /**
  498. * Emits on updating the reward amount of the worker.
  499. * Params:
  500. * - Id of the worker.
  501. **/
  502. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  503. /**
  504. * Emits on updating the role account of the worker.
  505. * Params:
  506. * - Id of the worker.
  507. * - Role account id of the worker.
  508. **/
  509. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  510. /**
  511. * Emits on updating the worker storage role.
  512. * Params:
  513. * - Id of the worker.
  514. * - Raw storage field.
  515. **/
  516. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  517. };
  518. grandpa: {
  519. /**
  520. * New authority set has been applied. \[authority_set\]
  521. **/
  522. NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
  523. /**
  524. * Current authority set has been paused.
  525. **/
  526. Paused: AugmentedEvent<ApiType, []>;
  527. /**
  528. * Current authority set has been resumed.
  529. **/
  530. Resumed: AugmentedEvent<ApiType, []>;
  531. };
  532. imOnline: {
  533. /**
  534. * At the end of the session, no offence was committed.
  535. **/
  536. AllGood: AugmentedEvent<ApiType, []>;
  537. /**
  538. * A new heartbeat was received from `AuthorityId` \[authority_id\]
  539. **/
  540. HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
  541. /**
  542. * At the end of the session, at least one validator was found to be \[offline\].
  543. **/
  544. SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
  545. };
  546. members: {
  547. MemberRegistered: AugmentedEvent<ApiType, [MemberId, AccountId, EntryMethod]>;
  548. MemberSetControllerAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  549. MemberSetRootAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  550. MemberUpdatedAboutText: AugmentedEvent<ApiType, [MemberId]>;
  551. MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId]>;
  552. MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId]>;
  553. };
  554. memo: {
  555. MemoUpdated: AugmentedEvent<ApiType, [AccountId]>;
  556. };
  557. offences: {
  558. /**
  559. * There is an offence reported of the given `kind` happened at the `session_index` and
  560. * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
  561. * element indicates of the offence was applied (true) or queued (false)
  562. * \[kind, timeslot, applied\].
  563. **/
  564. Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
  565. };
  566. operationsWorkingGroup: {
  567. /**
  568. * Emits on accepting application for the worker opening.
  569. * Params:
  570. * - Opening id
  571. **/
  572. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  573. /**
  574. * Emits on terminating the application for the worker/lead opening.
  575. * Params:
  576. * - Worker application id
  577. **/
  578. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  579. /**
  580. * Emits on withdrawing the application for the worker/lead opening.
  581. * Params:
  582. * - Worker application id
  583. **/
  584. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  585. /**
  586. * Emits on adding the application for the worker opening.
  587. * Params:
  588. * - Opening id
  589. * - Application id
  590. **/
  591. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  592. /**
  593. * Emits on beginning the application review for the worker/lead opening.
  594. * Params:
  595. * - Opening id
  596. **/
  597. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  598. /**
  599. * Emits on setting the leader.
  600. * Params:
  601. * - Worker id.
  602. **/
  603. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  604. /**
  605. * Emits on un-setting the leader.
  606. * Params:
  607. **/
  608. LeaderUnset: AugmentedEvent<ApiType, []>;
  609. /**
  610. * Emits on changing working group mint capacity.
  611. * Params:
  612. * - mint id.
  613. * - new mint balance.
  614. **/
  615. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  616. /**
  617. * Emits on adding new worker opening.
  618. * Params:
  619. * - Opening id
  620. **/
  621. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  622. /**
  623. * Emits on filling the worker opening.
  624. * Params:
  625. * - Worker opening id
  626. * - Worker application id to the worker id dictionary
  627. **/
  628. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  629. /**
  630. * Emits on decreasing the worker/lead stake.
  631. * Params:
  632. * - worker/lead id.
  633. **/
  634. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  635. /**
  636. * Emits on increasing the worker/lead stake.
  637. * Params:
  638. * - worker/lead id.
  639. **/
  640. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  641. /**
  642. * Emits on slashing the worker/lead stake.
  643. * Params:
  644. * - worker/lead id.
  645. **/
  646. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  647. /**
  648. * Emits on terminating the leader.
  649. * Params:
  650. * - leader worker id.
  651. * - termination rationale text
  652. **/
  653. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  654. /**
  655. * Emits on terminating the worker.
  656. * Params:
  657. * - worker id.
  658. * - termination rationale text
  659. **/
  660. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  661. /**
  662. * Emits on exiting the worker.
  663. * Params:
  664. * - worker id.
  665. * - exit rationale text
  666. **/
  667. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  668. /**
  669. * Emits on updating the reward account of the worker.
  670. * Params:
  671. * - Member id of the worker.
  672. * - Reward account id of the worker.
  673. **/
  674. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  675. /**
  676. * Emits on updating the reward amount of the worker.
  677. * Params:
  678. * - Id of the worker.
  679. **/
  680. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  681. /**
  682. * Emits on updating the role account of the worker.
  683. * Params:
  684. * - Id of the worker.
  685. * - Role account id of the worker.
  686. **/
  687. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  688. /**
  689. * Emits on updating the worker storage role.
  690. * Params:
  691. * - Id of the worker.
  692. * - Raw storage field.
  693. **/
  694. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  695. };
  696. proposalsDiscussion: {
  697. /**
  698. * Emits on post creation.
  699. **/
  700. PostCreated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  701. /**
  702. * Emits on post update.
  703. **/
  704. PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  705. /**
  706. * Emits on thread creation.
  707. **/
  708. ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
  709. };
  710. proposalsEngine: {
  711. /**
  712. * Emits on proposal creation.
  713. * Params:
  714. * - Member id of a proposer.
  715. * - Id of a newly created proposal after it was saved in storage.
  716. **/
  717. ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
  718. /**
  719. * Emits on proposal status change.
  720. * Params:
  721. * - Id of a updated proposal.
  722. * - New proposal status
  723. **/
  724. ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
  725. /**
  726. * Emits on voting for the proposal
  727. * Params:
  728. * - Voter - member id of a voter.
  729. * - Id of a proposal.
  730. * - Kind of vote.
  731. **/
  732. Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind]>;
  733. };
  734. session: {
  735. /**
  736. * New session has happened. Note that the argument is the \[session_index\], not the block
  737. * number as the type might suggest.
  738. **/
  739. NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
  740. };
  741. staking: {
  742. /**
  743. * An account has bonded this amount. \[stash, amount\]
  744. *
  745. * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
  746. * it will not be emitted for staking rewards when they are added to stake.
  747. **/
  748. Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  749. /**
  750. * The era payout has been set; the first balance is the validator-payout; the second is
  751. * the remainder from the maximum amount of reward.
  752. * \[era_index, validator_payout, remainder\]
  753. **/
  754. EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
  755. /**
  756. * An old slashing report from a prior era was discarded because it could
  757. * not be processed. \[session_index\]
  758. **/
  759. OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
  760. /**
  761. * The staker has been rewarded by this amount. \[stash, amount\]
  762. **/
  763. Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
  764. /**
  765. * One validator (and its nominators) has been slashed by the given amount.
  766. * \[validator, amount\]
  767. **/
  768. Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
  769. /**
  770. * A new solution for the upcoming election has been stored. \[compute\]
  771. **/
  772. SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
  773. /**
  774. * A new set of stakers was elected with the given \[compute\].
  775. **/
  776. StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
  777. /**
  778. * An account has unbonded this amount. \[stash, amount\]
  779. **/
  780. Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  781. /**
  782. * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
  783. * from the unlocking queue. \[stash, amount\]
  784. **/
  785. Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
  786. };
  787. storageWorkingGroup: {
  788. /**
  789. * Emits on accepting application for the worker opening.
  790. * Params:
  791. * - Opening id
  792. **/
  793. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  794. /**
  795. * Emits on terminating the application for the worker/lead opening.
  796. * Params:
  797. * - Worker application id
  798. **/
  799. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  800. /**
  801. * Emits on withdrawing the application for the worker/lead opening.
  802. * Params:
  803. * - Worker application id
  804. **/
  805. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  806. /**
  807. * Emits on adding the application for the worker opening.
  808. * Params:
  809. * - Opening id
  810. * - Application id
  811. **/
  812. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  813. /**
  814. * Emits on beginning the application review for the worker/lead opening.
  815. * Params:
  816. * - Opening id
  817. **/
  818. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  819. /**
  820. * Emits on setting the leader.
  821. * Params:
  822. * - Worker id.
  823. **/
  824. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  825. /**
  826. * Emits on un-setting the leader.
  827. * Params:
  828. **/
  829. LeaderUnset: AugmentedEvent<ApiType, []>;
  830. /**
  831. * Emits on changing working group mint capacity.
  832. * Params:
  833. * - mint id.
  834. * - new mint balance.
  835. **/
  836. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  837. /**
  838. * Emits on adding new worker opening.
  839. * Params:
  840. * - Opening id
  841. **/
  842. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  843. /**
  844. * Emits on filling the worker opening.
  845. * Params:
  846. * - Worker opening id
  847. * - Worker application id to the worker id dictionary
  848. **/
  849. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  850. /**
  851. * Emits on decreasing the worker/lead stake.
  852. * Params:
  853. * - worker/lead id.
  854. **/
  855. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  856. /**
  857. * Emits on increasing the worker/lead stake.
  858. * Params:
  859. * - worker/lead id.
  860. **/
  861. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  862. /**
  863. * Emits on slashing the worker/lead stake.
  864. * Params:
  865. * - worker/lead id.
  866. **/
  867. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  868. /**
  869. * Emits on terminating the leader.
  870. * Params:
  871. * - leader worker id.
  872. * - termination rationale text
  873. **/
  874. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  875. /**
  876. * Emits on terminating the worker.
  877. * Params:
  878. * - worker id.
  879. * - termination rationale text
  880. **/
  881. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  882. /**
  883. * Emits on exiting the worker.
  884. * Params:
  885. * - worker id.
  886. * - exit rationale text
  887. **/
  888. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  889. /**
  890. * Emits on updating the reward account of the worker.
  891. * Params:
  892. * - Member id of the worker.
  893. * - Reward account id of the worker.
  894. **/
  895. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  896. /**
  897. * Emits on updating the reward amount of the worker.
  898. * Params:
  899. * - Id of the worker.
  900. **/
  901. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  902. /**
  903. * Emits on updating the role account of the worker.
  904. * Params:
  905. * - Id of the worker.
  906. * - Role account id of the worker.
  907. **/
  908. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  909. /**
  910. * Emits on updating the worker storage role.
  911. * Params:
  912. * - Id of the worker.
  913. * - Raw storage field.
  914. **/
  915. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  916. };
  917. sudo: {
  918. /**
  919. * The \[sudoer\] just switched identity; the old key is supplied.
  920. **/
  921. KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
  922. /**
  923. * A sudo just took place. \[result\]
  924. **/
  925. Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
  926. /**
  927. * A sudo just took place. \[result\]
  928. **/
  929. SudoAsDone: AugmentedEvent<ApiType, [bool]>;
  930. };
  931. system: {
  932. /**
  933. * `:code` was updated.
  934. **/
  935. CodeUpdated: AugmentedEvent<ApiType, []>;
  936. /**
  937. * An extrinsic failed. \[error, info\]
  938. **/
  939. ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
  940. /**
  941. * An extrinsic completed successfully. \[info\]
  942. **/
  943. ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
  944. /**
  945. * An \[account\] was reaped.
  946. **/
  947. KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
  948. /**
  949. * A new \[account\] was created.
  950. **/
  951. NewAccount: AugmentedEvent<ApiType, [AccountId]>;
  952. };
  953. utility: {
  954. /**
  955. * Batch of dispatches completed fully with no error.
  956. **/
  957. BatchCompleted: AugmentedEvent<ApiType, []>;
  958. /**
  959. * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
  960. * well as the error. \[index, error\]
  961. **/
  962. BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
  963. };
  964. }
  965. export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
  966. }
  967. }