augment-api-events.ts 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { BTreeMap, BTreeSet, Bytes, Option, Vec, bool, u32, u64 } from '@polkadot/types';
  4. import type { ApplicationId, ApplicationIdToWorkerIdMap, BagId, CategoryId, Channel, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, Cid, ContentActor, CuratorGroupId, CuratorId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrizeRecord, DynamicBagId, DynamicBagType, EntryMethod, IsCensored, MemberId, MintBalanceOf, MintId, NewAssets, OpeningId, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PostId, ProposalId, ProposalStatus, RationaleText, Series, SeriesId, SeriesParameters, StorageBucketId, ThreadId, UploadParameters, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, Voucher, 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, BTreeSet<DataObjectId>, Channel]>;
  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. ChannelDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelId]>;
  61. ChannelOwnershipTransferred: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
  62. ChannelOwnershipTransferRequested: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest]>;
  63. ChannelOwnershipTransferRequestWithdrawn: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
  64. ChannelUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelUpdateParameters]>;
  65. CuratorAdded: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  66. CuratorGroupCreated: AugmentedEvent<ApiType, [CuratorGroupId]>;
  67. CuratorGroupStatusSet: AugmentedEvent<ApiType, [CuratorGroupId, bool]>;
  68. CuratorRemoved: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  69. FeaturedVideosSet: AugmentedEvent<ApiType, [ContentActor, Vec<VideoId>]>;
  70. PersonCreated: AugmentedEvent<ApiType, [ContentActor, PersonId, NewAssets, PersonCreationParameters]>;
  71. PersonDeleted: AugmentedEvent<ApiType, [ContentActor, PersonId]>;
  72. PersonUpdated: AugmentedEvent<ApiType, [ContentActor, PersonId, NewAssets, PersonUpdateParameters]>;
  73. PlaylistCreated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistCreationParameters]>;
  74. PlaylistDeleted: AugmentedEvent<ApiType, [ContentActor, PlaylistId]>;
  75. PlaylistUpdated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
  76. SeriesCreated: AugmentedEvent<ApiType, [ContentActor, SeriesId, NewAssets, SeriesParameters, Series]>;
  77. SeriesDeleted: AugmentedEvent<ApiType, [ContentActor, SeriesId]>;
  78. SeriesUpdated: AugmentedEvent<ApiType, [ContentActor, SeriesId, NewAssets, SeriesParameters, Series]>;
  79. VideoCategoryCreated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryCreationParameters]>;
  80. VideoCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId]>;
  81. VideoCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
  82. VideoCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, IsCensored, Bytes]>;
  83. VideoCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, VideoId, VideoCreationParameters]>;
  84. VideoDeleted: AugmentedEvent<ApiType, [ContentActor, VideoId]>;
  85. VideoUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, VideoUpdateParameters]>;
  86. };
  87. contentWorkingGroup: {
  88. /**
  89. * Emits on accepting application for the worker opening.
  90. * Params:
  91. * - Opening id
  92. **/
  93. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  94. /**
  95. * Emits on terminating the application for the worker/lead opening.
  96. * Params:
  97. * - Worker application id
  98. **/
  99. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  100. /**
  101. * Emits on withdrawing the application for the worker/lead opening.
  102. * Params:
  103. * - Worker application id
  104. **/
  105. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  106. /**
  107. * Emits on adding the application for the worker opening.
  108. * Params:
  109. * - Opening id
  110. * - Application id
  111. **/
  112. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  113. /**
  114. * Emits on beginning the application review for the worker/lead opening.
  115. * Params:
  116. * - Opening id
  117. **/
  118. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  119. /**
  120. * Emits on setting the leader.
  121. * Params:
  122. * - Worker id.
  123. **/
  124. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  125. /**
  126. * Emits on un-setting the leader.
  127. * Params:
  128. **/
  129. LeaderUnset: AugmentedEvent<ApiType, []>;
  130. /**
  131. * Emits on changing working group mint capacity.
  132. * Params:
  133. * - mint id.
  134. * - new mint balance.
  135. **/
  136. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  137. /**
  138. * Emits on adding new worker opening.
  139. * Params:
  140. * - Opening id
  141. **/
  142. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  143. /**
  144. * Emits on filling the worker opening.
  145. * Params:
  146. * - Worker opening id
  147. * - Worker application id to the worker id dictionary
  148. **/
  149. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  150. /**
  151. * Emits on decreasing the worker/lead stake.
  152. * Params:
  153. * - worker/lead id.
  154. **/
  155. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  156. /**
  157. * Emits on increasing the worker/lead stake.
  158. * Params:
  159. * - worker/lead id.
  160. **/
  161. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  162. /**
  163. * Emits on slashing the worker/lead stake.
  164. * Params:
  165. * - worker/lead id.
  166. **/
  167. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  168. /**
  169. * Emits on terminating the leader.
  170. * Params:
  171. * - leader worker id.
  172. * - termination rationale text
  173. **/
  174. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  175. /**
  176. * Emits on terminating the worker.
  177. * Params:
  178. * - worker id.
  179. * - termination rationale text
  180. **/
  181. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  182. /**
  183. * Emits on exiting the worker.
  184. * Params:
  185. * - worker id.
  186. * - exit rationale text
  187. **/
  188. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  189. /**
  190. * Emits on updating the reward account of the worker.
  191. * Params:
  192. * - Member id of the worker.
  193. * - Reward account id of the worker.
  194. **/
  195. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  196. /**
  197. * Emits on updating the reward amount of the worker.
  198. * Params:
  199. * - Id of the worker.
  200. **/
  201. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  202. /**
  203. * Emits on updating the role account of the worker.
  204. * Params:
  205. * - Id of the worker.
  206. * - Role account id of the worker.
  207. **/
  208. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  209. /**
  210. * Emits on updating the worker storage role.
  211. * Params:
  212. * - Id of the worker.
  213. * - Raw storage field.
  214. **/
  215. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  216. };
  217. council: {
  218. CouncilTermEnded: AugmentedEvent<ApiType, [BlockNumber]>;
  219. NewCouncilTermStarted: AugmentedEvent<ApiType, [BlockNumber]>;
  220. };
  221. councilElection: {
  222. AnnouncingEnded: AugmentedEvent<ApiType, []>;
  223. AnnouncingStarted: AugmentedEvent<ApiType, [u32]>;
  224. Applied: AugmentedEvent<ApiType, [AccountId]>;
  225. CouncilElected: AugmentedEvent<ApiType, [BlockNumber]>;
  226. /**
  227. * A new election started
  228. **/
  229. ElectionStarted: AugmentedEvent<ApiType, []>;
  230. Revealed: AugmentedEvent<ApiType, [AccountId, Hash, AccountId]>;
  231. RevealingEnded: AugmentedEvent<ApiType, []>;
  232. RevealingStarted: AugmentedEvent<ApiType, []>;
  233. Voted: AugmentedEvent<ApiType, [AccountId, Hash]>;
  234. VotingEnded: AugmentedEvent<ApiType, []>;
  235. VotingStarted: AugmentedEvent<ApiType, []>;
  236. };
  237. distributionWorkingGroup: {
  238. /**
  239. * Emits on accepting application for the worker opening.
  240. * Params:
  241. * - Opening id
  242. **/
  243. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  244. /**
  245. * Emits on terminating the application for the worker/lead opening.
  246. * Params:
  247. * - Worker application id
  248. **/
  249. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  250. /**
  251. * Emits on withdrawing the application for the worker/lead opening.
  252. * Params:
  253. * - Worker application id
  254. **/
  255. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  256. /**
  257. * Emits on adding the application for the worker opening.
  258. * Params:
  259. * - Opening id
  260. * - Application id
  261. **/
  262. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  263. /**
  264. * Emits on beginning the application review for the worker/lead opening.
  265. * Params:
  266. * - Opening id
  267. **/
  268. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  269. /**
  270. * Emits on setting the leader.
  271. * Params:
  272. * - Worker id.
  273. **/
  274. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  275. /**
  276. * Emits on un-setting the leader.
  277. * Params:
  278. **/
  279. LeaderUnset: AugmentedEvent<ApiType, []>;
  280. /**
  281. * Emits on changing working group mint capacity.
  282. * Params:
  283. * - mint id.
  284. * - new mint balance.
  285. **/
  286. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  287. /**
  288. * Emits on adding new worker opening.
  289. * Params:
  290. * - Opening id
  291. **/
  292. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  293. /**
  294. * Emits on filling the worker opening.
  295. * Params:
  296. * - Worker opening id
  297. * - Worker application id to the worker id dictionary
  298. **/
  299. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  300. /**
  301. * Emits on decreasing the worker/lead stake.
  302. * Params:
  303. * - worker/lead id.
  304. **/
  305. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  306. /**
  307. * Emits on increasing the worker/lead stake.
  308. * Params:
  309. * - worker/lead id.
  310. **/
  311. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  312. /**
  313. * Emits on slashing the worker/lead stake.
  314. * Params:
  315. * - worker/lead id.
  316. **/
  317. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  318. /**
  319. * Emits on terminating the leader.
  320. * Params:
  321. * - leader worker id.
  322. * - termination rationale text
  323. **/
  324. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  325. /**
  326. * Emits on terminating the worker.
  327. * Params:
  328. * - worker id.
  329. * - termination rationale text
  330. **/
  331. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  332. /**
  333. * Emits on exiting the worker.
  334. * Params:
  335. * - worker id.
  336. * - exit rationale text
  337. **/
  338. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  339. /**
  340. * Emits on updating the reward account of the worker.
  341. * Params:
  342. * - Member id of the worker.
  343. * - Reward account id of the worker.
  344. **/
  345. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  346. /**
  347. * Emits on updating the reward amount of the worker.
  348. * Params:
  349. * - Id of the worker.
  350. **/
  351. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  352. /**
  353. * Emits on updating the role account of the worker.
  354. * Params:
  355. * - Id of the worker.
  356. * - Role account id of the worker.
  357. **/
  358. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  359. /**
  360. * Emits on updating the worker storage role.
  361. * Params:
  362. * - Id of the worker.
  363. * - Raw storage field.
  364. **/
  365. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  366. };
  367. forum: {
  368. /**
  369. * A category was introduced
  370. **/
  371. CategoryCreated: AugmentedEvent<ApiType, [CategoryId]>;
  372. /**
  373. * A category with given id was updated.
  374. * The second argument reflects the new archival status of the category, if changed.
  375. * The third argument reflects the new deletion status of the category, if changed.
  376. **/
  377. CategoryUpdated: AugmentedEvent<ApiType, [CategoryId, Option<bool>, Option<bool>]>;
  378. /**
  379. * Given account was set as forum sudo.
  380. **/
  381. ForumSudoSet: AugmentedEvent<ApiType, [Option<AccountId>, Option<AccountId>]>;
  382. /**
  383. * Post with given id was created.
  384. **/
  385. PostAdded: AugmentedEvent<ApiType, [PostId]>;
  386. /**
  387. * Post with givne id was moderated.
  388. **/
  389. PostModerated: AugmentedEvent<ApiType, [PostId]>;
  390. /**
  391. * Post with given id had its text updated.
  392. * The second argument reflects the number of total edits when the text update occurs.
  393. **/
  394. PostTextUpdated: AugmentedEvent<ApiType, [PostId, u64]>;
  395. /**
  396. * A thread with given id was created.
  397. **/
  398. ThreadCreated: AugmentedEvent<ApiType, [ThreadId]>;
  399. /**
  400. * A thread with given id was moderated.
  401. **/
  402. ThreadModerated: AugmentedEvent<ApiType, [ThreadId]>;
  403. };
  404. gatewayWorkingGroup: {
  405. /**
  406. * Emits on accepting application for the worker opening.
  407. * Params:
  408. * - Opening id
  409. **/
  410. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  411. /**
  412. * Emits on terminating the application for the worker/lead opening.
  413. * Params:
  414. * - Worker application id
  415. **/
  416. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  417. /**
  418. * Emits on withdrawing the application for the worker/lead opening.
  419. * Params:
  420. * - Worker application id
  421. **/
  422. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  423. /**
  424. * Emits on adding the application for the worker opening.
  425. * Params:
  426. * - Opening id
  427. * - Application id
  428. **/
  429. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  430. /**
  431. * Emits on beginning the application review for the worker/lead opening.
  432. * Params:
  433. * - Opening id
  434. **/
  435. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  436. /**
  437. * Emits on setting the leader.
  438. * Params:
  439. * - Worker id.
  440. **/
  441. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  442. /**
  443. * Emits on un-setting the leader.
  444. * Params:
  445. **/
  446. LeaderUnset: AugmentedEvent<ApiType, []>;
  447. /**
  448. * Emits on changing working group mint capacity.
  449. * Params:
  450. * - mint id.
  451. * - new mint balance.
  452. **/
  453. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  454. /**
  455. * Emits on adding new worker opening.
  456. * Params:
  457. * - Opening id
  458. **/
  459. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  460. /**
  461. * Emits on filling the worker opening.
  462. * Params:
  463. * - Worker opening id
  464. * - Worker application id to the worker id dictionary
  465. **/
  466. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  467. /**
  468. * Emits on decreasing the worker/lead stake.
  469. * Params:
  470. * - worker/lead id.
  471. **/
  472. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  473. /**
  474. * Emits on increasing the worker/lead stake.
  475. * Params:
  476. * - worker/lead id.
  477. **/
  478. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  479. /**
  480. * Emits on slashing the worker/lead stake.
  481. * Params:
  482. * - worker/lead id.
  483. **/
  484. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  485. /**
  486. * Emits on terminating the leader.
  487. * Params:
  488. * - leader worker id.
  489. * - termination rationale text
  490. **/
  491. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  492. /**
  493. * Emits on terminating the worker.
  494. * Params:
  495. * - worker id.
  496. * - termination rationale text
  497. **/
  498. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  499. /**
  500. * Emits on exiting the worker.
  501. * Params:
  502. * - worker id.
  503. * - exit rationale text
  504. **/
  505. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  506. /**
  507. * Emits on updating the reward account of the worker.
  508. * Params:
  509. * - Member id of the worker.
  510. * - Reward account id of the worker.
  511. **/
  512. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  513. /**
  514. * Emits on updating the reward amount of the worker.
  515. * Params:
  516. * - Id of the worker.
  517. **/
  518. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  519. /**
  520. * Emits on updating the role account of the worker.
  521. * Params:
  522. * - Id of the worker.
  523. * - Role account id of the worker.
  524. **/
  525. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  526. /**
  527. * Emits on updating the worker storage role.
  528. * Params:
  529. * - Id of the worker.
  530. * - Raw storage field.
  531. **/
  532. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  533. };
  534. grandpa: {
  535. /**
  536. * New authority set has been applied. \[authority_set\]
  537. **/
  538. NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
  539. /**
  540. * Current authority set has been paused.
  541. **/
  542. Paused: AugmentedEvent<ApiType, []>;
  543. /**
  544. * Current authority set has been resumed.
  545. **/
  546. Resumed: AugmentedEvent<ApiType, []>;
  547. };
  548. imOnline: {
  549. /**
  550. * At the end of the session, no offence was committed.
  551. **/
  552. AllGood: AugmentedEvent<ApiType, []>;
  553. /**
  554. * A new heartbeat was received from `AuthorityId` \[authority_id\]
  555. **/
  556. HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
  557. /**
  558. * At the end of the session, at least one validator was found to be \[offline\].
  559. **/
  560. SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
  561. };
  562. members: {
  563. MemberRegistered: AugmentedEvent<ApiType, [MemberId, AccountId, EntryMethod]>;
  564. MemberSetControllerAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  565. MemberSetRootAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  566. MemberUpdatedAboutText: AugmentedEvent<ApiType, [MemberId]>;
  567. MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId]>;
  568. MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId]>;
  569. };
  570. memo: {
  571. MemoUpdated: AugmentedEvent<ApiType, [AccountId]>;
  572. };
  573. offences: {
  574. /**
  575. * There is an offence reported of the given `kind` happened at the `session_index` and
  576. * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
  577. * element indicates of the offence was applied (true) or queued (false)
  578. * \[kind, timeslot, applied\].
  579. **/
  580. Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
  581. };
  582. operationsWorkingGroup: {
  583. /**
  584. * Emits on accepting application for the worker opening.
  585. * Params:
  586. * - Opening id
  587. **/
  588. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  589. /**
  590. * Emits on terminating the application for the worker/lead opening.
  591. * Params:
  592. * - Worker application id
  593. **/
  594. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  595. /**
  596. * Emits on withdrawing the application for the worker/lead opening.
  597. * Params:
  598. * - Worker application id
  599. **/
  600. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  601. /**
  602. * Emits on adding the application for the worker opening.
  603. * Params:
  604. * - Opening id
  605. * - Application id
  606. **/
  607. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  608. /**
  609. * Emits on beginning the application review for the worker/lead opening.
  610. * Params:
  611. * - Opening id
  612. **/
  613. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  614. /**
  615. * Emits on setting the leader.
  616. * Params:
  617. * - Worker id.
  618. **/
  619. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  620. /**
  621. * Emits on un-setting the leader.
  622. * Params:
  623. **/
  624. LeaderUnset: AugmentedEvent<ApiType, []>;
  625. /**
  626. * Emits on changing working group mint capacity.
  627. * Params:
  628. * - mint id.
  629. * - new mint balance.
  630. **/
  631. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  632. /**
  633. * Emits on adding new worker opening.
  634. * Params:
  635. * - Opening id
  636. **/
  637. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  638. /**
  639. * Emits on filling the worker opening.
  640. * Params:
  641. * - Worker opening id
  642. * - Worker application id to the worker id dictionary
  643. **/
  644. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  645. /**
  646. * Emits on decreasing the worker/lead stake.
  647. * Params:
  648. * - worker/lead id.
  649. **/
  650. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  651. /**
  652. * Emits on increasing the worker/lead stake.
  653. * Params:
  654. * - worker/lead id.
  655. **/
  656. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  657. /**
  658. * Emits on slashing the worker/lead stake.
  659. * Params:
  660. * - worker/lead id.
  661. **/
  662. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  663. /**
  664. * Emits on terminating the leader.
  665. * Params:
  666. * - leader worker id.
  667. * - termination rationale text
  668. **/
  669. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  670. /**
  671. * Emits on terminating the worker.
  672. * Params:
  673. * - worker id.
  674. * - termination rationale text
  675. **/
  676. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  677. /**
  678. * Emits on exiting the worker.
  679. * Params:
  680. * - worker id.
  681. * - exit rationale text
  682. **/
  683. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  684. /**
  685. * Emits on updating the reward account of the worker.
  686. * Params:
  687. * - Member id of the worker.
  688. * - Reward account id of the worker.
  689. **/
  690. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  691. /**
  692. * Emits on updating the reward amount of the worker.
  693. * Params:
  694. * - Id of the worker.
  695. **/
  696. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  697. /**
  698. * Emits on updating the role account of the worker.
  699. * Params:
  700. * - Id of the worker.
  701. * - Role account id of the worker.
  702. **/
  703. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  704. /**
  705. * Emits on updating the worker storage role.
  706. * Params:
  707. * - Id of the worker.
  708. * - Raw storage field.
  709. **/
  710. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  711. };
  712. proposalsDiscussion: {
  713. /**
  714. * Emits on post creation.
  715. **/
  716. PostCreated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  717. /**
  718. * Emits on post update.
  719. **/
  720. PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  721. /**
  722. * Emits on thread creation.
  723. **/
  724. ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
  725. };
  726. proposalsEngine: {
  727. /**
  728. * Emits on proposal creation.
  729. * Params:
  730. * - Member id of a proposer.
  731. * - Id of a newly created proposal after it was saved in storage.
  732. **/
  733. ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
  734. /**
  735. * Emits on proposal status change.
  736. * Params:
  737. * - Id of a updated proposal.
  738. * - New proposal status
  739. **/
  740. ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
  741. /**
  742. * Emits on voting for the proposal
  743. * Params:
  744. * - Voter - member id of a voter.
  745. * - Id of a proposal.
  746. * - Kind of vote.
  747. **/
  748. Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind]>;
  749. };
  750. session: {
  751. /**
  752. * New session has happened. Note that the argument is the \[session_index\], not the block
  753. * number as the type might suggest.
  754. **/
  755. NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
  756. };
  757. staking: {
  758. /**
  759. * An account has bonded this amount. \[stash, amount\]
  760. *
  761. * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
  762. * it will not be emitted for staking rewards when they are added to stake.
  763. **/
  764. Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  765. /**
  766. * The era payout has been set; the first balance is the validator-payout; the second is
  767. * the remainder from the maximum amount of reward.
  768. * \[era_index, validator_payout, remainder\]
  769. **/
  770. EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
  771. /**
  772. * An old slashing report from a prior era was discarded because it could
  773. * not be processed. \[session_index\]
  774. **/
  775. OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
  776. /**
  777. * The staker has been rewarded by this amount. \[stash, amount\]
  778. **/
  779. Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
  780. /**
  781. * One validator (and its nominators) has been slashed by the given amount.
  782. * \[validator, amount\]
  783. **/
  784. Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
  785. /**
  786. * A new solution for the upcoming election has been stored. \[compute\]
  787. **/
  788. SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
  789. /**
  790. * A new set of stakers was elected with the given \[compute\].
  791. **/
  792. StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
  793. /**
  794. * An account has unbonded this amount. \[stash, amount\]
  795. **/
  796. Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  797. /**
  798. * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
  799. * from the unlocking queue. \[stash, amount\]
  800. **/
  801. Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
  802. };
  803. storage: {
  804. /**
  805. * Bag objects changed.
  806. * Params
  807. * - bag id
  808. * - new total objects size
  809. * - new total objects number
  810. **/
  811. BagObjectsChanged: AugmentedEvent<ApiType, [BagId, u64, u64]>;
  812. /**
  813. * Emits on changing the size-based pricing of new objects uploaded.
  814. * Params
  815. * - new data size fee
  816. **/
  817. DataObjectPerMegabyteFeeUpdated: AugmentedEvent<ApiType, [Balance]>;
  818. /**
  819. * Emits on data objects deletion from bags.
  820. * Params
  821. * - account ID for the deletion prize
  822. * - bag ID
  823. * - data object IDs
  824. **/
  825. DataObjectsDeleted: AugmentedEvent<ApiType, [AccountId, BagId, BTreeSet<DataObjectId>]>;
  826. /**
  827. * Emits on moving data objects between bags.
  828. * Params
  829. * - source bag ID
  830. * - destination bag ID
  831. * - data object IDs
  832. **/
  833. DataObjectsMoved: AugmentedEvent<ApiType, [BagId, BagId, BTreeSet<DataObjectId>]>;
  834. /**
  835. * Emits on uploading data objects.
  836. * Params
  837. * - data objects IDs
  838. * - initial uploading parameters
  839. **/
  840. DataObjectsUploaded: AugmentedEvent<ApiType, [Vec<DataObjectId>, UploadParameters]>;
  841. /**
  842. * Emits on creating distribution bucket.
  843. * Params
  844. * - distribution bucket family ID
  845. * - accepting new bags
  846. * - distribution bucket ID
  847. **/
  848. DistributionBucketCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, bool, DistributionBucketId]>;
  849. /**
  850. * Emits on deleting distribution bucket.
  851. * Params
  852. * - distribution bucket family ID
  853. * - distribution bucket ID
  854. **/
  855. DistributionBucketDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId]>;
  856. /**
  857. * Emits on creating distribution bucket family.
  858. * Params
  859. * - distribution family bucket ID
  860. **/
  861. DistributionBucketFamilyCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
  862. /**
  863. * Emits on deleting distribution bucket family.
  864. * Params
  865. * - distribution family bucket ID
  866. **/
  867. DistributionBucketFamilyDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
  868. /**
  869. * Emits on setting the metadata by a distribution bucket family.
  870. * Params
  871. * - distribution bucket family ID
  872. * - metadata
  873. **/
  874. DistributionBucketFamilyMetadataSet: AugmentedEvent<ApiType, [DistributionBucketFamilyId, Bytes]>;
  875. /**
  876. * Emits on accepting a distribution bucket invitation for the operator.
  877. * Params
  878. * - worker ID
  879. * - distribution bucket family ID
  880. * - distribution bucket ID
  881. **/
  882. DistributionBucketInvitationAccepted: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
  883. /**
  884. * Emits on canceling a distribution bucket invitation for the operator.
  885. * Params
  886. * - distribution bucket family ID
  887. * - distribution bucket ID
  888. * - operator worker ID
  889. **/
  890. DistributionBucketInvitationCancelled: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
  891. /**
  892. * Emits on setting the metadata by a distribution bucket operator.
  893. * Params
  894. * - worker ID
  895. * - distribution bucket family ID
  896. * - distribution bucket ID
  897. * - metadata
  898. **/
  899. DistributionBucketMetadataSet: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
  900. /**
  901. * Emits on storage bucket mode update (distributing flag).
  902. * Params
  903. * - distribution bucket family ID
  904. * - distribution bucket ID
  905. * - distributing
  906. **/
  907. DistributionBucketModeUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
  908. /**
  909. * Emits on creating a distribution bucket invitation for the operator.
  910. * Params
  911. * - distribution bucket family ID
  912. * - distribution bucket ID
  913. * - worker ID
  914. **/
  915. DistributionBucketOperatorInvited: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
  916. /**
  917. * Emits on the distribution bucket operator removal.
  918. * Params
  919. * - distribution bucket family ID
  920. * - distribution bucket ID
  921. * - distribution bucket operator ID
  922. **/
  923. DistributionBucketOperatorRemoved: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
  924. /**
  925. * Emits on changing the "Distribution buckets per bag" number limit.
  926. * Params
  927. * - new limit
  928. **/
  929. DistributionBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  930. /**
  931. * Emits on storage bucket status update (accepting new bags).
  932. * Params
  933. * - distribution bucket family ID
  934. * - distribution bucket ID
  935. * - new status (accepting new bags)
  936. **/
  937. DistributionBucketStatusUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
  938. /**
  939. * Emits on updating distribution buckets for bag.
  940. * Params
  941. * - bag ID
  942. * - storage buckets to add ID collection
  943. * - storage buckets to remove ID collection
  944. **/
  945. DistributionBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
  946. /**
  947. * Emits on creating a dynamic bag.
  948. * Params
  949. * - dynamic bag ID
  950. * - optional DynamicBagDeletionPrize instance
  951. **/
  952. DynamicBagCreated: AugmentedEvent<ApiType, [DynamicBagId, Option<DynamicBagDeletionPrizeRecord>]>;
  953. /**
  954. * Emits on deleting a dynamic bag.
  955. * Params
  956. * - account ID for the deletion prize
  957. * - dynamic bag ID
  958. **/
  959. DynamicBagDeleted: AugmentedEvent<ApiType, [AccountId, DynamicBagId]>;
  960. /**
  961. * Emits on dynamic bag creation policy update (distribution bucket families).
  962. * Params
  963. * - dynamic bag type
  964. * - families and bucket numbers
  965. **/
  966. FamiliesInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
  967. /**
  968. * Emits on updating the number of storage buckets in dynamic bag creation policy.
  969. * Params
  970. * - dynamic bag type
  971. * - new number of storage buckets
  972. **/
  973. NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, u64]>;
  974. /**
  975. * Emits on accepting pending data objects.
  976. * Params
  977. * - storage bucket ID
  978. * - worker ID (storage provider ID)
  979. * - bag ID
  980. * - pending data objects
  981. **/
  982. PendingDataObjectsAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, BagId, BTreeSet<DataObjectId>]>;
  983. /**
  984. * Emits on creating the storage bucket.
  985. * Params
  986. * - storage bucket ID
  987. * - invited worker
  988. * - flag "accepting_new_bags"
  989. * - size limit for voucher,
  990. * - objects limit for voucher,
  991. **/
  992. StorageBucketCreated: AugmentedEvent<ApiType, [StorageBucketId, Option<WorkerId>, bool, u64, u64]>;
  993. /**
  994. * Emits on storage bucket deleting.
  995. * Params
  996. * - storage bucket ID
  997. **/
  998. StorageBucketDeleted: AugmentedEvent<ApiType, [StorageBucketId]>;
  999. /**
  1000. * Emits on accepting the storage bucket invitation.
  1001. * Params
  1002. * - storage bucket ID
  1003. * - invited worker ID
  1004. **/
  1005. StorageBucketInvitationAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
  1006. /**
  1007. * Emits on cancelling the storage bucket invitation.
  1008. * Params
  1009. * - storage bucket ID
  1010. **/
  1011. StorageBucketInvitationCancelled: AugmentedEvent<ApiType, [StorageBucketId]>;
  1012. /**
  1013. * Emits on the storage bucket operator invitation.
  1014. * Params
  1015. * - storage bucket ID
  1016. * - operator worker ID (storage provider ID)
  1017. **/
  1018. StorageBucketOperatorInvited: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
  1019. /**
  1020. * Emits on the storage bucket operator removal.
  1021. * Params
  1022. * - storage bucket ID
  1023. **/
  1024. StorageBucketOperatorRemoved: AugmentedEvent<ApiType, [StorageBucketId]>;
  1025. /**
  1026. * Emits on changing the "Storage buckets per bag" number limit.
  1027. * Params
  1028. * - new limit
  1029. **/
  1030. StorageBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  1031. /**
  1032. * Emits on storage bucket status update.
  1033. * Params
  1034. * - storage bucket ID
  1035. * - new status
  1036. **/
  1037. StorageBucketStatusUpdated: AugmentedEvent<ApiType, [StorageBucketId, bool]>;
  1038. /**
  1039. * Emits on updating storage buckets for bag.
  1040. * Params
  1041. * - bag ID
  1042. * - storage buckets to add ID collection
  1043. * - storage buckets to remove ID collection
  1044. **/
  1045. StorageBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
  1046. /**
  1047. * Emits on changing the "Storage buckets voucher max limits".
  1048. * Params
  1049. * - new objects size limit
  1050. * - new objects number limit
  1051. **/
  1052. StorageBucketsVoucherMaxLimitsUpdated: AugmentedEvent<ApiType, [u64, u64]>;
  1053. /**
  1054. * Emits on setting the storage bucket voucher limits.
  1055. * Params
  1056. * - storage bucket ID
  1057. * - new total objects size limit
  1058. * - new total objects number limit
  1059. **/
  1060. StorageBucketVoucherLimitsSet: AugmentedEvent<ApiType, [StorageBucketId, u64, u64]>;
  1061. /**
  1062. * Emits on setting the storage operator metadata.
  1063. * Params
  1064. * - storage bucket ID
  1065. * - invited worker ID
  1066. * - metadata
  1067. **/
  1068. StorageOperatorMetadataSet: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, Bytes]>;
  1069. /**
  1070. * Emits on updating the blacklist with data hashes.
  1071. * Params
  1072. * - hashes to remove from the blacklist
  1073. * - hashes to add to the blacklist
  1074. **/
  1075. UpdateBlacklist: AugmentedEvent<ApiType, [BTreeSet<Cid>, BTreeSet<Cid>]>;
  1076. /**
  1077. * Emits on changing the size-based pricing of new objects uploaded.
  1078. * Params
  1079. * - new status
  1080. **/
  1081. UploadingBlockStatusUpdated: AugmentedEvent<ApiType, [bool]>;
  1082. /**
  1083. * Emits on changing the voucher for a storage bucket.
  1084. * Params
  1085. * - storage bucket ID
  1086. * - new voucher
  1087. **/
  1088. VoucherChanged: AugmentedEvent<ApiType, [StorageBucketId, Voucher]>;
  1089. };
  1090. storageWorkingGroup: {
  1091. /**
  1092. * Emits on accepting application for the worker opening.
  1093. * Params:
  1094. * - Opening id
  1095. **/
  1096. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  1097. /**
  1098. * Emits on terminating the application for the worker/lead opening.
  1099. * Params:
  1100. * - Worker application id
  1101. **/
  1102. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  1103. /**
  1104. * Emits on withdrawing the application for the worker/lead opening.
  1105. * Params:
  1106. * - Worker application id
  1107. **/
  1108. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  1109. /**
  1110. * Emits on adding the application for the worker opening.
  1111. * Params:
  1112. * - Opening id
  1113. * - Application id
  1114. **/
  1115. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  1116. /**
  1117. * Emits on beginning the application review for the worker/lead opening.
  1118. * Params:
  1119. * - Opening id
  1120. **/
  1121. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  1122. /**
  1123. * Emits on setting the leader.
  1124. * Params:
  1125. * - Worker id.
  1126. **/
  1127. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  1128. /**
  1129. * Emits on un-setting the leader.
  1130. * Params:
  1131. **/
  1132. LeaderUnset: AugmentedEvent<ApiType, []>;
  1133. /**
  1134. * Emits on changing working group mint capacity.
  1135. * Params:
  1136. * - mint id.
  1137. * - new mint balance.
  1138. **/
  1139. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  1140. /**
  1141. * Emits on adding new worker opening.
  1142. * Params:
  1143. * - Opening id
  1144. **/
  1145. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  1146. /**
  1147. * Emits on filling the worker opening.
  1148. * Params:
  1149. * - Worker opening id
  1150. * - Worker application id to the worker id dictionary
  1151. **/
  1152. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  1153. /**
  1154. * Emits on decreasing the worker/lead stake.
  1155. * Params:
  1156. * - worker/lead id.
  1157. **/
  1158. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  1159. /**
  1160. * Emits on increasing the worker/lead stake.
  1161. * Params:
  1162. * - worker/lead id.
  1163. **/
  1164. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  1165. /**
  1166. * Emits on slashing the worker/lead stake.
  1167. * Params:
  1168. * - worker/lead id.
  1169. **/
  1170. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  1171. /**
  1172. * Emits on terminating the leader.
  1173. * Params:
  1174. * - leader worker id.
  1175. * - termination rationale text
  1176. **/
  1177. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  1178. /**
  1179. * Emits on terminating the worker.
  1180. * Params:
  1181. * - worker id.
  1182. * - termination rationale text
  1183. **/
  1184. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  1185. /**
  1186. * Emits on exiting the worker.
  1187. * Params:
  1188. * - worker id.
  1189. * - exit rationale text
  1190. **/
  1191. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  1192. /**
  1193. * Emits on updating the reward account of the worker.
  1194. * Params:
  1195. * - Member id of the worker.
  1196. * - Reward account id of the worker.
  1197. **/
  1198. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1199. /**
  1200. * Emits on updating the reward amount of the worker.
  1201. * Params:
  1202. * - Id of the worker.
  1203. **/
  1204. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  1205. /**
  1206. * Emits on updating the role account of the worker.
  1207. * Params:
  1208. * - Id of the worker.
  1209. * - Role account id of the worker.
  1210. **/
  1211. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1212. /**
  1213. * Emits on updating the worker storage role.
  1214. * Params:
  1215. * - Id of the worker.
  1216. * - Raw storage field.
  1217. **/
  1218. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  1219. };
  1220. sudo: {
  1221. /**
  1222. * The \[sudoer\] just switched identity; the old key is supplied.
  1223. **/
  1224. KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
  1225. /**
  1226. * A sudo just took place. \[result\]
  1227. **/
  1228. Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
  1229. /**
  1230. * A sudo just took place. \[result\]
  1231. **/
  1232. SudoAsDone: AugmentedEvent<ApiType, [bool]>;
  1233. };
  1234. system: {
  1235. /**
  1236. * `:code` was updated.
  1237. **/
  1238. CodeUpdated: AugmentedEvent<ApiType, []>;
  1239. /**
  1240. * An extrinsic failed. \[error, info\]
  1241. **/
  1242. ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
  1243. /**
  1244. * An extrinsic completed successfully. \[info\]
  1245. **/
  1246. ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
  1247. /**
  1248. * An \[account\] was reaped.
  1249. **/
  1250. KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
  1251. /**
  1252. * A new \[account\] was created.
  1253. **/
  1254. NewAccount: AugmentedEvent<ApiType, [AccountId]>;
  1255. };
  1256. utility: {
  1257. /**
  1258. * Batch of dispatches completed fully with no error.
  1259. **/
  1260. BatchCompleted: AugmentedEvent<ApiType, []>;
  1261. /**
  1262. * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
  1263. * well as the error. \[index, error\]
  1264. **/
  1265. BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
  1266. };
  1267. }
  1268. export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
  1269. }
  1270. }