augment-api-events.ts 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275
  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, Bytes]>;
  567. MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId, Bytes]>;
  568. MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId, Bytes]>;
  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. * - assigned storage buckets' IDs
  952. * - assigned distribution buckets' IDs
  953. **/
  954. DynamicBagCreated: AugmentedEvent<ApiType, [DynamicBagId, Option<DynamicBagDeletionPrizeRecord>, BTreeSet<StorageBucketId>, BTreeSet<DistributionBucketId>]>;
  955. /**
  956. * Emits on deleting a dynamic bag.
  957. * Params
  958. * - account ID for the deletion prize
  959. * - dynamic bag ID
  960. **/
  961. DynamicBagDeleted: AugmentedEvent<ApiType, [AccountId, DynamicBagId]>;
  962. /**
  963. * Emits on dynamic bag creation policy update (distribution bucket families).
  964. * Params
  965. * - dynamic bag type
  966. * - families and bucket numbers
  967. **/
  968. FamiliesInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
  969. /**
  970. * Emits on updating the number of storage buckets in dynamic bag creation policy.
  971. * Params
  972. * - dynamic bag type
  973. * - new number of storage buckets
  974. **/
  975. NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, u64]>;
  976. /**
  977. * Emits on accepting pending data objects.
  978. * Params
  979. * - storage bucket ID
  980. * - worker ID (storage provider ID)
  981. * - bag ID
  982. * - pending data objects
  983. **/
  984. PendingDataObjectsAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, BagId, BTreeSet<DataObjectId>]>;
  985. /**
  986. * Emits on creating the storage bucket.
  987. * Params
  988. * - storage bucket ID
  989. * - invited worker
  990. * - flag "accepting_new_bags"
  991. * - size limit for voucher,
  992. * - objects limit for voucher,
  993. **/
  994. StorageBucketCreated: AugmentedEvent<ApiType, [StorageBucketId, Option<WorkerId>, bool, u64, u64]>;
  995. /**
  996. * Emits on storage bucket deleting.
  997. * Params
  998. * - storage bucket ID
  999. **/
  1000. StorageBucketDeleted: AugmentedEvent<ApiType, [StorageBucketId]>;
  1001. /**
  1002. * Emits on accepting the storage bucket invitation.
  1003. * Params
  1004. * - storage bucket ID
  1005. * - invited worker ID
  1006. **/
  1007. StorageBucketInvitationAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
  1008. /**
  1009. * Emits on cancelling the storage bucket invitation.
  1010. * Params
  1011. * - storage bucket ID
  1012. **/
  1013. StorageBucketInvitationCancelled: AugmentedEvent<ApiType, [StorageBucketId]>;
  1014. /**
  1015. * Emits on the storage bucket operator invitation.
  1016. * Params
  1017. * - storage bucket ID
  1018. * - operator worker ID (storage provider ID)
  1019. **/
  1020. StorageBucketOperatorInvited: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
  1021. /**
  1022. * Emits on the storage bucket operator removal.
  1023. * Params
  1024. * - storage bucket ID
  1025. **/
  1026. StorageBucketOperatorRemoved: AugmentedEvent<ApiType, [StorageBucketId]>;
  1027. /**
  1028. * Emits on changing the "Storage buckets per bag" number limit.
  1029. * Params
  1030. * - new limit
  1031. **/
  1032. StorageBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  1033. /**
  1034. * Emits on storage bucket status update.
  1035. * Params
  1036. * - storage bucket ID
  1037. * - new status
  1038. **/
  1039. StorageBucketStatusUpdated: AugmentedEvent<ApiType, [StorageBucketId, bool]>;
  1040. /**
  1041. * Emits on updating storage buckets for bag.
  1042. * Params
  1043. * - bag ID
  1044. * - storage buckets to add ID collection
  1045. * - storage buckets to remove ID collection
  1046. **/
  1047. StorageBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
  1048. /**
  1049. * Emits on changing the "Storage buckets voucher max limits".
  1050. * Params
  1051. * - new objects size limit
  1052. * - new objects number limit
  1053. **/
  1054. StorageBucketsVoucherMaxLimitsUpdated: AugmentedEvent<ApiType, [u64, u64]>;
  1055. /**
  1056. * Emits on setting the storage bucket voucher limits.
  1057. * Params
  1058. * - storage bucket ID
  1059. * - new total objects size limit
  1060. * - new total objects number limit
  1061. **/
  1062. StorageBucketVoucherLimitsSet: AugmentedEvent<ApiType, [StorageBucketId, u64, u64]>;
  1063. /**
  1064. * Emits on setting the storage operator metadata.
  1065. * Params
  1066. * - storage bucket ID
  1067. * - invited worker ID
  1068. * - metadata
  1069. **/
  1070. StorageOperatorMetadataSet: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, Bytes]>;
  1071. /**
  1072. * Emits on updating the blacklist with data hashes.
  1073. * Params
  1074. * - hashes to remove from the blacklist
  1075. * - hashes to add to the blacklist
  1076. **/
  1077. UpdateBlacklist: AugmentedEvent<ApiType, [BTreeSet<Cid>, BTreeSet<Cid>]>;
  1078. /**
  1079. * Emits on changing the size-based pricing of new objects uploaded.
  1080. * Params
  1081. * - new status
  1082. **/
  1083. UploadingBlockStatusUpdated: AugmentedEvent<ApiType, [bool]>;
  1084. /**
  1085. * Emits on changing the voucher for a storage bucket.
  1086. * Params
  1087. * - storage bucket ID
  1088. * - new voucher
  1089. **/
  1090. VoucherChanged: AugmentedEvent<ApiType, [StorageBucketId, Voucher]>;
  1091. };
  1092. storageWorkingGroup: {
  1093. /**
  1094. * Emits on accepting application for the worker opening.
  1095. * Params:
  1096. * - Opening id
  1097. **/
  1098. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  1099. /**
  1100. * Emits on terminating the application for the worker/lead opening.
  1101. * Params:
  1102. * - Worker application id
  1103. **/
  1104. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  1105. /**
  1106. * Emits on withdrawing the application for the worker/lead opening.
  1107. * Params:
  1108. * - Worker application id
  1109. **/
  1110. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  1111. /**
  1112. * Emits on adding the application for the worker opening.
  1113. * Params:
  1114. * - Opening id
  1115. * - Application id
  1116. **/
  1117. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  1118. /**
  1119. * Emits on beginning the application review for the worker/lead opening.
  1120. * Params:
  1121. * - Opening id
  1122. **/
  1123. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  1124. /**
  1125. * Emits on setting the leader.
  1126. * Params:
  1127. * - Worker id.
  1128. **/
  1129. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  1130. /**
  1131. * Emits on un-setting the leader.
  1132. * Params:
  1133. **/
  1134. LeaderUnset: AugmentedEvent<ApiType, []>;
  1135. /**
  1136. * Emits on changing working group mint capacity.
  1137. * Params:
  1138. * - mint id.
  1139. * - new mint balance.
  1140. **/
  1141. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  1142. /**
  1143. * Emits on adding new worker opening.
  1144. * Params:
  1145. * - Opening id
  1146. **/
  1147. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  1148. /**
  1149. * Emits on filling the worker opening.
  1150. * Params:
  1151. * - Worker opening id
  1152. * - Worker application id to the worker id dictionary
  1153. **/
  1154. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  1155. /**
  1156. * Emits on decreasing the worker/lead stake.
  1157. * Params:
  1158. * - worker/lead id.
  1159. **/
  1160. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  1161. /**
  1162. * Emits on increasing the worker/lead stake.
  1163. * Params:
  1164. * - worker/lead id.
  1165. **/
  1166. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  1167. /**
  1168. * Emits on slashing the worker/lead stake.
  1169. * Params:
  1170. * - worker/lead id.
  1171. **/
  1172. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  1173. /**
  1174. * Emits on terminating the leader.
  1175. * Params:
  1176. * - leader worker id.
  1177. * - termination rationale text
  1178. **/
  1179. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  1180. /**
  1181. * Emits on terminating the worker.
  1182. * Params:
  1183. * - worker id.
  1184. * - termination rationale text
  1185. **/
  1186. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  1187. /**
  1188. * Emits on exiting the worker.
  1189. * Params:
  1190. * - worker id.
  1191. * - exit rationale text
  1192. **/
  1193. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  1194. /**
  1195. * Emits on updating the reward account of the worker.
  1196. * Params:
  1197. * - Member id of the worker.
  1198. * - Reward account id of the worker.
  1199. **/
  1200. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1201. /**
  1202. * Emits on updating the reward amount of the worker.
  1203. * Params:
  1204. * - Id of the worker.
  1205. **/
  1206. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  1207. /**
  1208. * Emits on updating the role account of the worker.
  1209. * Params:
  1210. * - Id of the worker.
  1211. * - Role account id of the worker.
  1212. **/
  1213. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  1214. /**
  1215. * Emits on updating the worker storage role.
  1216. * Params:
  1217. * - Id of the worker.
  1218. * - Raw storage field.
  1219. **/
  1220. WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
  1221. };
  1222. sudo: {
  1223. /**
  1224. * The \[sudoer\] just switched identity; the old key is supplied.
  1225. **/
  1226. KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
  1227. /**
  1228. * A sudo just took place. \[result\]
  1229. **/
  1230. Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
  1231. /**
  1232. * A sudo just took place. \[result\]
  1233. **/
  1234. SudoAsDone: AugmentedEvent<ApiType, [bool]>;
  1235. };
  1236. system: {
  1237. /**
  1238. * `:code` was updated.
  1239. **/
  1240. CodeUpdated: AugmentedEvent<ApiType, []>;
  1241. /**
  1242. * An extrinsic failed. \[error, info\]
  1243. **/
  1244. ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
  1245. /**
  1246. * An extrinsic completed successfully. \[info\]
  1247. **/
  1248. ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
  1249. /**
  1250. * An \[account\] was reaped.
  1251. **/
  1252. KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
  1253. /**
  1254. * A new \[account\] was created.
  1255. **/
  1256. NewAccount: AugmentedEvent<ApiType, [AccountId]>;
  1257. };
  1258. utility: {
  1259. /**
  1260. * Batch of dispatches completed fully with no error.
  1261. **/
  1262. BatchCompleted: AugmentedEvent<ApiType, []>;
  1263. /**
  1264. * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
  1265. * well as the error. \[index, error\]
  1266. **/
  1267. BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
  1268. };
  1269. }
  1270. export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
  1271. }
  1272. }