augment-api-events.ts 46 KB

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