augment-api-events.ts 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { BTreeMap, BTreeSet, Bytes, Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
  4. import type { Actor, ApplicationId, ApplicationIdToWorkerIdMap, BagId, CategoryId, ChannelId, Cid, ClassId, CuratorApplicationId, CuratorApplicationIdToCuratorIdMap, CuratorGroupId, CuratorId, CuratorOpeningId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrizeRecord, DynamicBagId, DynamicBagType, EntityController, EntityCreationVoucher, EntityId, FailedAt, LeadId, MemberId, MintBalanceOf, MintId, Nonce, OpeningId, PostId, PropertyId, ProposalId, ProposalStatus, RationaleText, SchemaId, SideEffect, SideEffects, Status, StorageBucketId, ThreadId, UploadParameters, VecMaxLength, 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. contentDirectory: {
  54. ClassCreated: AugmentedEvent<ApiType, [ClassId]>;
  55. ClassPermissionsUpdated: AugmentedEvent<ApiType, [ClassId]>;
  56. ClassSchemaAdded: AugmentedEvent<ApiType, [ClassId, SchemaId]>;
  57. ClassSchemaStatusUpdated: AugmentedEvent<ApiType, [ClassId, SchemaId, Status]>;
  58. CuratorAdded: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  59. CuratorGroupAdded: AugmentedEvent<ApiType, [CuratorGroupId]>;
  60. CuratorGroupRemoved: AugmentedEvent<ApiType, [CuratorGroupId]>;
  61. CuratorGroupStatusSet: AugmentedEvent<ApiType, [CuratorGroupId, Status]>;
  62. CuratorRemoved: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
  63. EntityCreated: AugmentedEvent<ApiType, [Actor, EntityId]>;
  64. EntityCreationVoucherCreated: AugmentedEvent<ApiType, [EntityController, EntityCreationVoucher]>;
  65. EntityCreationVoucherUpdated: AugmentedEvent<ApiType, [EntityController, EntityCreationVoucher]>;
  66. EntityOwnershipTransfered: AugmentedEvent<ApiType, [EntityId, EntityController, SideEffects]>;
  67. EntityPermissionsUpdated: AugmentedEvent<ApiType, [EntityId]>;
  68. EntityPropertyValuesUpdated: AugmentedEvent<ApiType, [Actor, EntityId, SideEffects]>;
  69. EntityRemoved: AugmentedEvent<ApiType, [Actor, EntityId]>;
  70. EntitySchemaSupportAdded: AugmentedEvent<ApiType, [Actor, EntityId, SchemaId, SideEffects]>;
  71. InsertedAtVectorIndex: AugmentedEvent<ApiType, [Actor, EntityId, PropertyId, VecMaxLength, Nonce, SideEffect]>;
  72. MaintainerAdded: AugmentedEvent<ApiType, [ClassId, CuratorGroupId]>;
  73. MaintainerRemoved: AugmentedEvent<ApiType, [ClassId, CuratorGroupId]>;
  74. RemovedAtVectorIndex: AugmentedEvent<ApiType, [Actor, EntityId, PropertyId, VecMaxLength, Nonce, SideEffect]>;
  75. TransactionCompleted: AugmentedEvent<ApiType, [Actor]>;
  76. TransactionFailed: AugmentedEvent<ApiType, [Actor, FailedAt]>;
  77. VectorCleared: AugmentedEvent<ApiType, [Actor, EntityId, PropertyId, SideEffects]>;
  78. };
  79. contentDirectoryWorkingGroup: {
  80. /**
  81. * Emits on accepting application for the worker opening.
  82. * Params:
  83. * - Opening id
  84. **/
  85. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  86. /**
  87. * Emits on terminating the application for the worker/lead opening.
  88. * Params:
  89. * - Worker application id
  90. **/
  91. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  92. /**
  93. * Emits on withdrawing the application for the worker/lead opening.
  94. * Params:
  95. * - Worker application id
  96. **/
  97. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  98. /**
  99. * Emits on adding the application for the worker opening.
  100. * Params:
  101. * - Opening id
  102. * - Application id
  103. **/
  104. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  105. /**
  106. * Emits on beginning the application review for the worker/lead opening.
  107. * Params:
  108. * - Opening id
  109. **/
  110. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  111. /**
  112. * Emits on setting the leader.
  113. * Params:
  114. * - Worker id.
  115. **/
  116. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  117. /**
  118. * Emits on un-setting the leader.
  119. * Params:
  120. **/
  121. LeaderUnset: AugmentedEvent<ApiType, []>;
  122. /**
  123. * Emits on changing working group mint capacity.
  124. * Params:
  125. * - mint id.
  126. * - new mint balance.
  127. **/
  128. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  129. /**
  130. * Emits on adding new worker opening.
  131. * Params:
  132. * - Opening id
  133. **/
  134. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  135. /**
  136. * Emits on filling the worker opening.
  137. * Params:
  138. * - Worker opening id
  139. * - Worker application id to the worker id dictionary
  140. **/
  141. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  142. /**
  143. * Emits on decreasing the worker/lead stake.
  144. * Params:
  145. * - worker/lead id.
  146. **/
  147. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  148. /**
  149. * Emits on increasing the worker/lead stake.
  150. * Params:
  151. * - worker/lead id.
  152. **/
  153. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  154. /**
  155. * Emits on slashing the worker/lead stake.
  156. * Params:
  157. * - worker/lead id.
  158. **/
  159. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  160. /**
  161. * Emits on terminating the leader.
  162. * Params:
  163. * - leader worker id.
  164. * - termination rationale text
  165. **/
  166. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  167. /**
  168. * Emits on terminating the worker.
  169. * Params:
  170. * - worker id.
  171. * - termination rationale text
  172. **/
  173. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  174. /**
  175. * Emits on exiting the worker.
  176. * Params:
  177. * - worker id.
  178. * - exit rationale text
  179. **/
  180. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  181. /**
  182. * Emits on updating the reward account of the worker.
  183. * Params:
  184. * - Member id of the worker.
  185. * - Reward account id of the worker.
  186. **/
  187. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  188. /**
  189. * Emits on updating the reward amount of the worker.
  190. * Params:
  191. * - Id of the worker.
  192. **/
  193. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  194. /**
  195. * Emits on updating the role account of the worker.
  196. * Params:
  197. * - Id of the worker.
  198. * - Role account id of the worker.
  199. **/
  200. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  201. };
  202. contentWorkingGroup: {
  203. AcceptedCuratorApplications: AugmentedEvent<ApiType, [CuratorOpeningId]>;
  204. AppliedOnCuratorOpening: AugmentedEvent<ApiType, [CuratorOpeningId, CuratorApplicationId]>;
  205. BeganCuratorApplicationReview: AugmentedEvent<ApiType, [CuratorOpeningId]>;
  206. ChannelCreated: AugmentedEvent<ApiType, [ChannelId]>;
  207. ChannelCreationEnabledUpdated: AugmentedEvent<ApiType, [bool]>;
  208. ChannelOwnershipTransferred: AugmentedEvent<ApiType, [ChannelId]>;
  209. ChannelUpdatedByCurationActor: AugmentedEvent<ApiType, [ChannelId]>;
  210. CuratorApplicationTerminated: AugmentedEvent<ApiType, [CuratorApplicationId]>;
  211. CuratorApplicationWithdrawn: AugmentedEvent<ApiType, [CuratorApplicationId]>;
  212. CuratorExited: AugmentedEvent<ApiType, [CuratorId]>;
  213. CuratorOpeningAdded: AugmentedEvent<ApiType, [CuratorOpeningId]>;
  214. CuratorOpeningFilled: AugmentedEvent<ApiType, [CuratorOpeningId, CuratorApplicationIdToCuratorIdMap]>;
  215. CuratorRewardAccountUpdated: AugmentedEvent<ApiType, [CuratorId, AccountId]>;
  216. CuratorRoleAccountUpdated: AugmentedEvent<ApiType, [CuratorId, AccountId]>;
  217. CuratorUnstaking: AugmentedEvent<ApiType, [CuratorId]>;
  218. LeadSet: AugmentedEvent<ApiType, [LeadId]>;
  219. LeadUnset: AugmentedEvent<ApiType, [LeadId]>;
  220. MintCapacityDecreased: AugmentedEvent<ApiType, [MintId, MintBalanceOf, MintBalanceOf]>;
  221. MintCapacityIncreased: AugmentedEvent<ApiType, [MintId, MintBalanceOf, MintBalanceOf]>;
  222. TerminatedCurator: AugmentedEvent<ApiType, [CuratorId]>;
  223. };
  224. council: {
  225. CouncilTermEnded: AugmentedEvent<ApiType, [BlockNumber]>;
  226. NewCouncilTermStarted: AugmentedEvent<ApiType, [BlockNumber]>;
  227. };
  228. councilElection: {
  229. AnnouncingEnded: AugmentedEvent<ApiType, []>;
  230. AnnouncingStarted: AugmentedEvent<ApiType, [u32]>;
  231. Applied: AugmentedEvent<ApiType, [AccountId]>;
  232. CouncilElected: AugmentedEvent<ApiType, [BlockNumber]>;
  233. /**
  234. * A new election started
  235. **/
  236. ElectionStarted: AugmentedEvent<ApiType, []>;
  237. Revealed: AugmentedEvent<ApiType, [AccountId, Hash, AccountId]>;
  238. RevealingEnded: AugmentedEvent<ApiType, []>;
  239. RevealingStarted: AugmentedEvent<ApiType, []>;
  240. Voted: AugmentedEvent<ApiType, [AccountId, Hash]>;
  241. VotingEnded: AugmentedEvent<ApiType, []>;
  242. VotingStarted: AugmentedEvent<ApiType, []>;
  243. };
  244. distributionWorkingGroup: {
  245. /**
  246. * Emits on accepting application for the worker opening.
  247. * Params:
  248. * - Opening id
  249. **/
  250. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  251. /**
  252. * Emits on terminating the application for the worker/lead opening.
  253. * Params:
  254. * - Worker application id
  255. **/
  256. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  257. /**
  258. * Emits on withdrawing the application for the worker/lead opening.
  259. * Params:
  260. * - Worker application id
  261. **/
  262. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  263. /**
  264. * Emits on adding the application for the worker opening.
  265. * Params:
  266. * - Opening id
  267. * - Application id
  268. **/
  269. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  270. /**
  271. * Emits on beginning the application review for the worker/lead opening.
  272. * Params:
  273. * - Opening id
  274. **/
  275. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  276. /**
  277. * Emits on setting the leader.
  278. * Params:
  279. * - Worker id.
  280. **/
  281. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  282. /**
  283. * Emits on un-setting the leader.
  284. * Params:
  285. **/
  286. LeaderUnset: AugmentedEvent<ApiType, []>;
  287. /**
  288. * Emits on changing working group mint capacity.
  289. * Params:
  290. * - mint id.
  291. * - new mint balance.
  292. **/
  293. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  294. /**
  295. * Emits on adding new worker opening.
  296. * Params:
  297. * - Opening id
  298. **/
  299. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  300. /**
  301. * Emits on filling the worker opening.
  302. * Params:
  303. * - Worker opening id
  304. * - Worker application id to the worker id dictionary
  305. **/
  306. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  307. /**
  308. * Emits on decreasing the worker/lead stake.
  309. * Params:
  310. * - worker/lead id.
  311. **/
  312. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  313. /**
  314. * Emits on increasing the worker/lead stake.
  315. * Params:
  316. * - worker/lead id.
  317. **/
  318. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  319. /**
  320. * Emits on slashing the worker/lead stake.
  321. * Params:
  322. * - worker/lead id.
  323. **/
  324. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  325. /**
  326. * Emits on terminating the leader.
  327. * Params:
  328. * - leader worker id.
  329. * - termination rationale text
  330. **/
  331. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  332. /**
  333. * Emits on terminating the worker.
  334. * Params:
  335. * - worker id.
  336. * - termination rationale text
  337. **/
  338. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  339. /**
  340. * Emits on exiting the worker.
  341. * Params:
  342. * - worker id.
  343. * - exit rationale text
  344. **/
  345. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  346. /**
  347. * Emits on updating the reward account of the worker.
  348. * Params:
  349. * - Member id of the worker.
  350. * - Reward account id of the worker.
  351. **/
  352. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  353. /**
  354. * Emits on updating the reward amount of the worker.
  355. * Params:
  356. * - Id of the worker.
  357. **/
  358. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  359. /**
  360. * Emits on updating the role account of the worker.
  361. * Params:
  362. * - Id of the worker.
  363. * - Role account id of the worker.
  364. **/
  365. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  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. grandpa: {
  405. /**
  406. * New authority set has been applied. \[authority_set\]
  407. **/
  408. NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
  409. /**
  410. * Current authority set has been paused.
  411. **/
  412. Paused: AugmentedEvent<ApiType, []>;
  413. /**
  414. * Current authority set has been resumed.
  415. **/
  416. Resumed: AugmentedEvent<ApiType, []>;
  417. };
  418. imOnline: {
  419. /**
  420. * At the end of the session, no offence was committed.
  421. **/
  422. AllGood: AugmentedEvent<ApiType, []>;
  423. /**
  424. * A new heartbeat was received from `AuthorityId` \[authority_id\]
  425. **/
  426. HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
  427. /**
  428. * At the end of the session, at least one validator was found to be \[offline\].
  429. **/
  430. SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
  431. };
  432. members: {
  433. MemberRegistered: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  434. MemberSetControllerAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  435. MemberSetRootAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  436. MemberUpdatedAboutText: AugmentedEvent<ApiType, [MemberId]>;
  437. MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId]>;
  438. MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId]>;
  439. };
  440. memo: {
  441. MemoUpdated: AugmentedEvent<ApiType, [AccountId]>;
  442. };
  443. offences: {
  444. /**
  445. * There is an offence reported of the given `kind` happened at the `session_index` and
  446. * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
  447. * element indicates of the offence was applied (true) or queued (false)
  448. * \[kind, timeslot, applied\].
  449. **/
  450. Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
  451. };
  452. proposalsDiscussion: {
  453. /**
  454. * Emits on post creation.
  455. **/
  456. PostCreated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  457. /**
  458. * Emits on post update.
  459. **/
  460. PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  461. /**
  462. * Emits on thread creation.
  463. **/
  464. ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
  465. };
  466. proposalsEngine: {
  467. /**
  468. * Emits on proposal creation.
  469. * Params:
  470. * - Member id of a proposer.
  471. * - Id of a newly created proposal after it was saved in storage.
  472. **/
  473. ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
  474. /**
  475. * Emits on proposal status change.
  476. * Params:
  477. * - Id of a updated proposal.
  478. * - New proposal status
  479. **/
  480. ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
  481. /**
  482. * Emits on voting for the proposal
  483. * Params:
  484. * - Voter - member id of a voter.
  485. * - Id of a proposal.
  486. * - Kind of vote.
  487. **/
  488. Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind]>;
  489. };
  490. session: {
  491. /**
  492. * New session has happened. Note that the argument is the \[session_index\], not the block
  493. * number as the type might suggest.
  494. **/
  495. NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
  496. };
  497. staking: {
  498. /**
  499. * An account has bonded this amount. \[stash, amount\]
  500. *
  501. * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
  502. * it will not be emitted for staking rewards when they are added to stake.
  503. **/
  504. Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  505. /**
  506. * The era payout has been set; the first balance is the validator-payout; the second is
  507. * the remainder from the maximum amount of reward.
  508. * \[era_index, validator_payout, remainder\]
  509. **/
  510. EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
  511. /**
  512. * An old slashing report from a prior era was discarded because it could
  513. * not be processed. \[session_index\]
  514. **/
  515. OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
  516. /**
  517. * The staker has been rewarded by this amount. \[stash, amount\]
  518. **/
  519. Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
  520. /**
  521. * One validator (and its nominators) has been slashed by the given amount.
  522. * \[validator, amount\]
  523. **/
  524. Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
  525. /**
  526. * A new solution for the upcoming election has been stored. \[compute\]
  527. **/
  528. SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
  529. /**
  530. * A new set of stakers was elected with the given \[compute\].
  531. **/
  532. StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
  533. /**
  534. * An account has unbonded this amount. \[stash, amount\]
  535. **/
  536. Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  537. /**
  538. * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
  539. * from the unlocking queue. \[stash, amount\]
  540. **/
  541. Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
  542. };
  543. storage: {
  544. /**
  545. * Bag objects changed.
  546. * Params
  547. * - bag id
  548. * - new total objects size
  549. * - new total objects number
  550. **/
  551. BagObjectsChanged: AugmentedEvent<ApiType, [BagId, u64, u64]>;
  552. /**
  553. * Emits on changing the size-based pricing of new objects uploaded.
  554. * Params
  555. * - new data size fee
  556. **/
  557. DataObjectPerMegabyteFeeUpdated: AugmentedEvent<ApiType, [Balance]>;
  558. /**
  559. * Emits on data objects deletion from bags.
  560. * Params
  561. * - account ID for the deletion prize
  562. * - bag ID
  563. * - data object IDs
  564. **/
  565. DataObjectsDeleted: AugmentedEvent<ApiType, [AccountId, BagId, BTreeSet<DataObjectId>]>;
  566. /**
  567. * Emits on moving data objects between bags.
  568. * Params
  569. * - source bag ID
  570. * - destination bag ID
  571. * - data object IDs
  572. **/
  573. DataObjectsMoved: AugmentedEvent<ApiType, [BagId, BagId, BTreeSet<DataObjectId>]>;
  574. /**
  575. * Emits on uploading data objects.
  576. * Params
  577. * - data objects IDs
  578. * - initial uploading parameters
  579. **/
  580. DataObjectsUploaded: AugmentedEvent<ApiType, [Vec<DataObjectId>, UploadParameters]>;
  581. /**
  582. * Emits on creating distribution bucket.
  583. * Params
  584. * - distribution bucket family ID
  585. * - accepting new bags
  586. * - distribution bucket ID
  587. **/
  588. DistributionBucketCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, bool, DistributionBucketId]>;
  589. /**
  590. * Emits on deleting distribution bucket.
  591. * Params
  592. * - distribution bucket family ID
  593. * - distribution bucket ID
  594. **/
  595. DistributionBucketDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId]>;
  596. /**
  597. * Emits on creating distribution bucket family.
  598. * Params
  599. * - distribution family bucket ID
  600. **/
  601. DistributionBucketFamilyCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
  602. /**
  603. * Emits on deleting distribution bucket family.
  604. * Params
  605. * - distribution family bucket ID
  606. **/
  607. DistributionBucketFamilyDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
  608. /**
  609. * Emits on setting the metadata by a distribution bucket family.
  610. * Params
  611. * - distribution bucket family ID
  612. * - metadata
  613. **/
  614. DistributionBucketFamilyMetadataSet: AugmentedEvent<ApiType, [DistributionBucketFamilyId, Bytes]>;
  615. /**
  616. * Emits on accepting a distribution bucket invitation for the operator.
  617. * Params
  618. * - worker ID
  619. * - distribution bucket family ID
  620. * - distribution bucket ID
  621. **/
  622. DistributionBucketInvitationAccepted: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
  623. /**
  624. * Emits on canceling a distribution bucket invitation for the operator.
  625. * Params
  626. * - distribution bucket family ID
  627. * - distribution bucket ID
  628. * - operator worker ID
  629. **/
  630. DistributionBucketInvitationCancelled: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
  631. /**
  632. * Emits on setting the metadata by a distribution bucket operator.
  633. * Params
  634. * - worker ID
  635. * - distribution bucket family ID
  636. * - distribution bucket ID
  637. * - metadata
  638. **/
  639. DistributionBucketMetadataSet: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
  640. /**
  641. * Emits on storage bucket mode update (distributing flag).
  642. * Params
  643. * - distribution bucket family ID
  644. * - distribution bucket ID
  645. * - distributing
  646. **/
  647. DistributionBucketModeUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
  648. /**
  649. * Emits on creating a distribution bucket invitation for the operator.
  650. * Params
  651. * - distribution bucket family ID
  652. * - distribution bucket ID
  653. * - worker ID
  654. **/
  655. DistributionBucketOperatorInvited: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
  656. /**
  657. * Emits on the distribution bucket operator removal.
  658. * Params
  659. * - distribution bucket family ID
  660. * - distribution bucket ID
  661. * - distribution bucket operator ID
  662. **/
  663. DistributionBucketOperatorRemoved: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
  664. /**
  665. * Emits on changing the "Distribution buckets per bag" number limit.
  666. * Params
  667. * - new limit
  668. **/
  669. DistributionBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  670. /**
  671. * Emits on storage bucket status update (accepting new bags).
  672. * Params
  673. * - distribution bucket family ID
  674. * - distribution bucket ID
  675. * - new status (accepting new bags)
  676. **/
  677. DistributionBucketStatusUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
  678. /**
  679. * Emits on updating distribution buckets for bag.
  680. * Params
  681. * - bag ID
  682. * - storage buckets to add ID collection
  683. * - storage buckets to remove ID collection
  684. **/
  685. DistributionBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
  686. /**
  687. * Emits on creating a dynamic bag.
  688. * Params
  689. * - dynamic bag ID
  690. * - optional DynamicBagDeletionPrize instance
  691. **/
  692. DynamicBagCreated: AugmentedEvent<ApiType, [DynamicBagId, Option<DynamicBagDeletionPrizeRecord>]>;
  693. /**
  694. * Emits on deleting a dynamic bag.
  695. * Params
  696. * - account ID for the deletion prize
  697. * - dynamic bag ID
  698. **/
  699. DynamicBagDeleted: AugmentedEvent<ApiType, [AccountId, DynamicBagId]>;
  700. /**
  701. * Emits on dynamic bag creation policy update (distribution bucket families).
  702. * Params
  703. * - dynamic bag type
  704. * - families and bucket numbers
  705. **/
  706. FamiliesInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
  707. /**
  708. * Emits on updating the number of storage buckets in dynamic bag creation policy.
  709. * Params
  710. * - dynamic bag type
  711. * - new number of storage buckets
  712. **/
  713. NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, u64]>;
  714. /**
  715. * Emits on accepting pending data objects.
  716. * Params
  717. * - storage bucket ID
  718. * - worker ID (storage provider ID)
  719. * - bag ID
  720. * - pending data objects
  721. **/
  722. PendingDataObjectsAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, BagId, BTreeSet<DataObjectId>]>;
  723. /**
  724. * Emits on creating the storage bucket.
  725. * Params
  726. * - storage bucket ID
  727. * - invited worker
  728. * - flag "accepting_new_bags"
  729. * - size limit for voucher,
  730. * - objects limit for voucher,
  731. **/
  732. StorageBucketCreated: AugmentedEvent<ApiType, [StorageBucketId, Option<WorkerId>, bool, u64, u64]>;
  733. /**
  734. * Emits on storage bucket deleting.
  735. * Params
  736. * - storage bucket ID
  737. **/
  738. StorageBucketDeleted: AugmentedEvent<ApiType, [StorageBucketId]>;
  739. /**
  740. * Emits on accepting the storage bucket invitation.
  741. * Params
  742. * - storage bucket ID
  743. * - invited worker ID
  744. **/
  745. StorageBucketInvitationAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
  746. /**
  747. * Emits on cancelling the storage bucket invitation.
  748. * Params
  749. * - storage bucket ID
  750. **/
  751. StorageBucketInvitationCancelled: AugmentedEvent<ApiType, [StorageBucketId]>;
  752. /**
  753. * Emits on the storage bucket operator invitation.
  754. * Params
  755. * - storage bucket ID
  756. * - operator worker ID (storage provider ID)
  757. **/
  758. StorageBucketOperatorInvited: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
  759. /**
  760. * Emits on the storage bucket operator removal.
  761. * Params
  762. * - storage bucket ID
  763. **/
  764. StorageBucketOperatorRemoved: AugmentedEvent<ApiType, [StorageBucketId]>;
  765. /**
  766. * Emits on changing the "Storage buckets per bag" number limit.
  767. * Params
  768. * - new limit
  769. **/
  770. StorageBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
  771. /**
  772. * Emits on storage bucket status update.
  773. * Params
  774. * - storage bucket ID
  775. * - new status
  776. **/
  777. StorageBucketStatusUpdated: AugmentedEvent<ApiType, [StorageBucketId, bool]>;
  778. /**
  779. * Emits on updating storage buckets for bag.
  780. * Params
  781. * - bag ID
  782. * - storage buckets to add ID collection
  783. * - storage buckets to remove ID collection
  784. **/
  785. StorageBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
  786. /**
  787. * Emits on changing the "Storage buckets voucher max limits".
  788. * Params
  789. * - new objects size limit
  790. * - new objects number limit
  791. **/
  792. StorageBucketsVoucherMaxLimitsUpdated: AugmentedEvent<ApiType, [u64, u64]>;
  793. /**
  794. * Emits on setting the storage bucket voucher limits.
  795. * Params
  796. * - storage bucket ID
  797. * - new total objects size limit
  798. * - new total objects number limit
  799. **/
  800. StorageBucketVoucherLimitsSet: AugmentedEvent<ApiType, [StorageBucketId, u64, u64]>;
  801. /**
  802. * Emits on setting the storage operator metadata.
  803. * Params
  804. * - storage bucket ID
  805. * - invited worker ID
  806. * - metadata
  807. **/
  808. StorageOperatorMetadataSet: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, Bytes]>;
  809. /**
  810. * Emits on updating the blacklist with data hashes.
  811. * Params
  812. * - hashes to remove from the blacklist
  813. * - hashes to add to the blacklist
  814. **/
  815. UpdateBlacklist: AugmentedEvent<ApiType, [BTreeSet<Cid>, BTreeSet<Cid>]>;
  816. /**
  817. * Emits on changing the size-based pricing of new objects uploaded.
  818. * Params
  819. * - new status
  820. **/
  821. UploadingBlockStatusUpdated: AugmentedEvent<ApiType, [bool]>;
  822. /**
  823. * Emits on changing the voucher for a storage bucket.
  824. * Params
  825. * - storage bucket ID
  826. * - new voucher
  827. **/
  828. VoucherChanged: AugmentedEvent<ApiType, [StorageBucketId, Voucher]>;
  829. };
  830. storageWorkingGroup: {
  831. /**
  832. * Emits on accepting application for the worker opening.
  833. * Params:
  834. * - Opening id
  835. **/
  836. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  837. /**
  838. * Emits on terminating the application for the worker/lead opening.
  839. * Params:
  840. * - Worker application id
  841. **/
  842. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  843. /**
  844. * Emits on withdrawing the application for the worker/lead opening.
  845. * Params:
  846. * - Worker application id
  847. **/
  848. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  849. /**
  850. * Emits on adding the application for the worker opening.
  851. * Params:
  852. * - Opening id
  853. * - Application id
  854. **/
  855. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  856. /**
  857. * Emits on beginning the application review for the worker/lead opening.
  858. * Params:
  859. * - Opening id
  860. **/
  861. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  862. /**
  863. * Emits on setting the leader.
  864. * Params:
  865. * - Worker id.
  866. **/
  867. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  868. /**
  869. * Emits on un-setting the leader.
  870. * Params:
  871. **/
  872. LeaderUnset: AugmentedEvent<ApiType, []>;
  873. /**
  874. * Emits on changing working group mint capacity.
  875. * Params:
  876. * - mint id.
  877. * - new mint balance.
  878. **/
  879. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  880. /**
  881. * Emits on adding new worker opening.
  882. * Params:
  883. * - Opening id
  884. **/
  885. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  886. /**
  887. * Emits on filling the worker opening.
  888. * Params:
  889. * - Worker opening id
  890. * - Worker application id to the worker id dictionary
  891. **/
  892. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  893. /**
  894. * Emits on decreasing the worker/lead stake.
  895. * Params:
  896. * - worker/lead id.
  897. **/
  898. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  899. /**
  900. * Emits on increasing the worker/lead stake.
  901. * Params:
  902. * - worker/lead id.
  903. **/
  904. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  905. /**
  906. * Emits on slashing the worker/lead stake.
  907. * Params:
  908. * - worker/lead id.
  909. **/
  910. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  911. /**
  912. * Emits on terminating the leader.
  913. * Params:
  914. * - leader worker id.
  915. * - termination rationale text
  916. **/
  917. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  918. /**
  919. * Emits on terminating the worker.
  920. * Params:
  921. * - worker id.
  922. * - termination rationale text
  923. **/
  924. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  925. /**
  926. * Emits on exiting the worker.
  927. * Params:
  928. * - worker id.
  929. * - exit rationale text
  930. **/
  931. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  932. /**
  933. * Emits on updating the reward account of the worker.
  934. * Params:
  935. * - Member id of the worker.
  936. * - Reward account id of the worker.
  937. **/
  938. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  939. /**
  940. * Emits on updating the reward amount of the worker.
  941. * Params:
  942. * - Id of the worker.
  943. **/
  944. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  945. /**
  946. * Emits on updating the role account of the worker.
  947. * Params:
  948. * - Id of the worker.
  949. * - Role account id of the worker.
  950. **/
  951. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  952. };
  953. sudo: {
  954. /**
  955. * The \[sudoer\] just switched identity; the old key is supplied.
  956. **/
  957. KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
  958. /**
  959. * A sudo just took place. \[result\]
  960. **/
  961. Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
  962. /**
  963. * A sudo just took place. \[result\]
  964. **/
  965. SudoAsDone: AugmentedEvent<ApiType, [bool]>;
  966. };
  967. system: {
  968. /**
  969. * `:code` was updated.
  970. **/
  971. CodeUpdated: AugmentedEvent<ApiType, []>;
  972. /**
  973. * An extrinsic failed. \[error, info\]
  974. **/
  975. ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
  976. /**
  977. * An extrinsic completed successfully. \[info\]
  978. **/
  979. ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
  980. /**
  981. * An \[account\] was reaped.
  982. **/
  983. KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
  984. /**
  985. * A new \[account\] was created.
  986. **/
  987. NewAccount: AugmentedEvent<ApiType, [AccountId]>;
  988. };
  989. utility: {
  990. /**
  991. * Batch of dispatches completed fully with no error.
  992. **/
  993. BatchCompleted: AugmentedEvent<ApiType, []>;
  994. /**
  995. * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
  996. * well as the error. \[index, error\]
  997. **/
  998. BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
  999. };
  1000. versionedStore: {
  1001. ClassCreated: AugmentedEvent<ApiType, [ClassId]>;
  1002. ClassSchemaAdded: AugmentedEvent<ApiType, [ClassId, u16]>;
  1003. EntityCreated: AugmentedEvent<ApiType, [EntityId]>;
  1004. EntityPropertiesUpdated: AugmentedEvent<ApiType, [EntityId]>;
  1005. EntitySchemaAdded: AugmentedEvent<ApiType, [EntityId, u16]>;
  1006. /**
  1007. * This is a fake event that uses AccountId type just to make Rust compiler happy to compile this module.
  1008. **/
  1009. FixCompilation: AugmentedEvent<ApiType, [AccountId]>;
  1010. };
  1011. }
  1012. export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
  1013. }
  1014. }