augment-api-events.ts 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
  4. import type { Actor, ApplicationId, ApplicationIdToWorkerIdMap, CategoryId, ChannelId, ClassId, ContentId, CuratorApplicationId, CuratorApplicationIdToCuratorIdMap, CuratorGroupId, CuratorId, CuratorOpeningId, DataObjectStorageRelationshipId, DataObjectTypeId, EntityController, EntityCreationVoucher, EntityId, FailedAt, IPNSIdentity, LeadId, MemberId, MintBalanceOf, MintId, Nonce, OpeningId, PostId, PropertyId, ProposalId, ProposalStatus, RationaleText, SchemaId, SideEffect, SideEffects, Status, StorageProviderId, ThreadId, VecMaxLength, VoteKind, 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. dataDirectory: {
  245. /**
  246. * Emits when the storage provider accepts a content.
  247. * Params:
  248. * - Id of the relationship.
  249. * - Id of the storage provider.
  250. **/
  251. ContentAccepted: AugmentedEvent<ApiType, [ContentId, StorageProviderId]>;
  252. /**
  253. * Emits on adding of the content.
  254. * Params:
  255. * - Id of the relationship.
  256. * - Id of the member.
  257. **/
  258. ContentAdded: AugmentedEvent<ApiType, [ContentId, MemberId]>;
  259. /**
  260. * Emits when the storage provider rejects a content.
  261. * Params:
  262. * - Id of the relationship.
  263. * - Id of the storage provider.
  264. **/
  265. ContentRejected: AugmentedEvent<ApiType, [ContentId, StorageProviderId]>;
  266. };
  267. dataObjectStorageRegistry: {
  268. /**
  269. * Emits on adding of the data object storage relationship.
  270. * Params:
  271. * - Id of the relationship.
  272. * - Id of the content.
  273. * - Id of the storage provider.
  274. **/
  275. DataObjectStorageRelationshipAdded: AugmentedEvent<ApiType, [DataObjectStorageRelationshipId, ContentId, StorageProviderId]>;
  276. /**
  277. * Emits on adding of the data object storage relationship.
  278. * Params:
  279. * - Id of the relationship.
  280. * - Current state of the relationship (True=Active).
  281. **/
  282. DataObjectStorageRelationshipReadyUpdated: AugmentedEvent<ApiType, [DataObjectStorageRelationshipId, bool]>;
  283. };
  284. dataObjectTypeRegistry: {
  285. /**
  286. * Emits on the data object type registration.
  287. * Params:
  288. * - Id of the new data object type.
  289. **/
  290. DataObjectTypeRegistered: AugmentedEvent<ApiType, [DataObjectTypeId]>;
  291. /**
  292. * Emits on the data object type update.
  293. * Params:
  294. * - Id of the updated data object type.
  295. **/
  296. DataObjectTypeUpdated: AugmentedEvent<ApiType, [DataObjectTypeId]>;
  297. };
  298. discovery: {
  299. /**
  300. * Emits on removing of the account info.
  301. * Params:
  302. * - Id of the storage provider.
  303. **/
  304. AccountInfoRemoved: AugmentedEvent<ApiType, [StorageProviderId]>;
  305. /**
  306. * Emits on updating of the account info.
  307. * Params:
  308. * - Id of the storage provider.
  309. * - Id of the IPNS.
  310. **/
  311. AccountInfoUpdated: AugmentedEvent<ApiType, [StorageProviderId, IPNSIdentity]>;
  312. };
  313. forum: {
  314. /**
  315. * A category was introduced
  316. **/
  317. CategoryCreated: AugmentedEvent<ApiType, [CategoryId]>;
  318. /**
  319. * A category with given id was updated.
  320. * The second argument reflects the new archival status of the category, if changed.
  321. * The third argument reflects the new deletion status of the category, if changed.
  322. **/
  323. CategoryUpdated: AugmentedEvent<ApiType, [CategoryId, Option<bool>, Option<bool>]>;
  324. /**
  325. * Given account was set as forum sudo.
  326. **/
  327. ForumSudoSet: AugmentedEvent<ApiType, [Option<AccountId>, Option<AccountId>]>;
  328. /**
  329. * Post with given id was created.
  330. **/
  331. PostAdded: AugmentedEvent<ApiType, [PostId]>;
  332. /**
  333. * Post with givne id was moderated.
  334. **/
  335. PostModerated: AugmentedEvent<ApiType, [PostId]>;
  336. /**
  337. * Post with given id had its text updated.
  338. * The second argument reflects the number of total edits when the text update occurs.
  339. **/
  340. PostTextUpdated: AugmentedEvent<ApiType, [PostId, u64]>;
  341. /**
  342. * A thread with given id was created.
  343. **/
  344. ThreadCreated: AugmentedEvent<ApiType, [ThreadId]>;
  345. /**
  346. * A thread with given id was moderated.
  347. **/
  348. ThreadModerated: AugmentedEvent<ApiType, [ThreadId]>;
  349. };
  350. grandpa: {
  351. /**
  352. * New authority set has been applied. \[authority_set\]
  353. **/
  354. NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
  355. /**
  356. * Current authority set has been paused.
  357. **/
  358. Paused: AugmentedEvent<ApiType, []>;
  359. /**
  360. * Current authority set has been resumed.
  361. **/
  362. Resumed: AugmentedEvent<ApiType, []>;
  363. };
  364. imOnline: {
  365. /**
  366. * At the end of the session, no offence was committed.
  367. **/
  368. AllGood: AugmentedEvent<ApiType, []>;
  369. /**
  370. * A new heartbeat was received from `AuthorityId` \[authority_id\]
  371. **/
  372. HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
  373. /**
  374. * At the end of the session, at least one validator was found to be \[offline\].
  375. **/
  376. SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
  377. };
  378. members: {
  379. MemberRegistered: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  380. MemberSetControllerAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  381. MemberSetRootAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
  382. MemberUpdatedAboutText: AugmentedEvent<ApiType, [MemberId]>;
  383. MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId]>;
  384. MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId]>;
  385. };
  386. memo: {
  387. MemoUpdated: AugmentedEvent<ApiType, [AccountId]>;
  388. };
  389. offences: {
  390. /**
  391. * There is an offence reported of the given `kind` happened at the `session_index` and
  392. * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
  393. * element indicates of the offence was applied (true) or queued (false)
  394. * \[kind, timeslot, applied\].
  395. **/
  396. Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
  397. };
  398. proposalsDiscussion: {
  399. /**
  400. * Emits on post creation.
  401. **/
  402. PostCreated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  403. /**
  404. * Emits on post update.
  405. **/
  406. PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId]>;
  407. /**
  408. * Emits on thread creation.
  409. **/
  410. ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
  411. };
  412. proposalsEngine: {
  413. /**
  414. * Emits on proposal creation.
  415. * Params:
  416. * - Member id of a proposer.
  417. * - Id of a newly created proposal after it was saved in storage.
  418. **/
  419. ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
  420. /**
  421. * Emits on proposal status change.
  422. * Params:
  423. * - Id of a updated proposal.
  424. * - New proposal status
  425. **/
  426. ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
  427. /**
  428. * Emits on voting for the proposal
  429. * Params:
  430. * - Voter - member id of a voter.
  431. * - Id of a proposal.
  432. * - Kind of vote.
  433. **/
  434. Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind]>;
  435. };
  436. session: {
  437. /**
  438. * New session has happened. Note that the argument is the \[session_index\], not the block
  439. * number as the type might suggest.
  440. **/
  441. NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
  442. };
  443. staking: {
  444. /**
  445. * An account has bonded this amount. \[stash, amount\]
  446. *
  447. * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
  448. * it will not be emitted for staking rewards when they are added to stake.
  449. **/
  450. Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  451. /**
  452. * The era payout has been set; the first balance is the validator-payout; the second is
  453. * the remainder from the maximum amount of reward.
  454. * \[era_index, validator_payout, remainder\]
  455. **/
  456. EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
  457. /**
  458. * An old slashing report from a prior era was discarded because it could
  459. * not be processed. \[session_index\]
  460. **/
  461. OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
  462. /**
  463. * The staker has been rewarded by this amount. \[stash, amount\]
  464. **/
  465. Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
  466. /**
  467. * One validator (and its nominators) has been slashed by the given amount.
  468. * \[validator, amount\]
  469. **/
  470. Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
  471. /**
  472. * A new solution for the upcoming election has been stored. \[compute\]
  473. **/
  474. SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
  475. /**
  476. * A new set of stakers was elected with the given \[compute\].
  477. **/
  478. StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
  479. /**
  480. * An account has unbonded this amount. \[stash, amount\]
  481. **/
  482. Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
  483. /**
  484. * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
  485. * from the unlocking queue. \[stash, amount\]
  486. **/
  487. Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
  488. };
  489. storageWorkingGroup: {
  490. /**
  491. * Emits on accepting application for the worker opening.
  492. * Params:
  493. * - Opening id
  494. **/
  495. AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
  496. /**
  497. * Emits on terminating the application for the worker/lead opening.
  498. * Params:
  499. * - Worker application id
  500. **/
  501. ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
  502. /**
  503. * Emits on withdrawing the application for the worker/lead opening.
  504. * Params:
  505. * - Worker application id
  506. **/
  507. ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
  508. /**
  509. * Emits on adding the application for the worker opening.
  510. * Params:
  511. * - Opening id
  512. * - Application id
  513. **/
  514. AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
  515. /**
  516. * Emits on beginning the application review for the worker/lead opening.
  517. * Params:
  518. * - Opening id
  519. **/
  520. BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
  521. /**
  522. * Emits on setting the leader.
  523. * Params:
  524. * - Worker id.
  525. **/
  526. LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
  527. /**
  528. * Emits on un-setting the leader.
  529. * Params:
  530. **/
  531. LeaderUnset: AugmentedEvent<ApiType, []>;
  532. /**
  533. * Emits on changing working group mint capacity.
  534. * Params:
  535. * - mint id.
  536. * - new mint balance.
  537. **/
  538. MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
  539. /**
  540. * Emits on adding new worker opening.
  541. * Params:
  542. * - Opening id
  543. **/
  544. OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
  545. /**
  546. * Emits on filling the worker opening.
  547. * Params:
  548. * - Worker opening id
  549. * - Worker application id to the worker id dictionary
  550. **/
  551. OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
  552. /**
  553. * Emits on decreasing the worker/lead stake.
  554. * Params:
  555. * - worker/lead id.
  556. **/
  557. StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
  558. /**
  559. * Emits on increasing the worker/lead stake.
  560. * Params:
  561. * - worker/lead id.
  562. **/
  563. StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
  564. /**
  565. * Emits on slashing the worker/lead stake.
  566. * Params:
  567. * - worker/lead id.
  568. **/
  569. StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
  570. /**
  571. * Emits on terminating the leader.
  572. * Params:
  573. * - leader worker id.
  574. * - termination rationale text
  575. **/
  576. TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  577. /**
  578. * Emits on terminating the worker.
  579. * Params:
  580. * - worker id.
  581. * - termination rationale text
  582. **/
  583. TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  584. /**
  585. * Emits on exiting the worker.
  586. * Params:
  587. * - worker id.
  588. * - exit rationale text
  589. **/
  590. WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
  591. /**
  592. * Emits on updating the reward account of the worker.
  593. * Params:
  594. * - Member id of the worker.
  595. * - Reward account id of the worker.
  596. **/
  597. WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  598. /**
  599. * Emits on updating the reward amount of the worker.
  600. * Params:
  601. * - Id of the worker.
  602. **/
  603. WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
  604. /**
  605. * Emits on updating the role account of the worker.
  606. * Params:
  607. * - Id of the worker.
  608. * - Role account id of the worker.
  609. **/
  610. WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
  611. };
  612. sudo: {
  613. /**
  614. * The \[sudoer\] just switched identity; the old key is supplied.
  615. **/
  616. KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
  617. /**
  618. * A sudo just took place. \[result\]
  619. **/
  620. Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
  621. /**
  622. * A sudo just took place. \[result\]
  623. **/
  624. SudoAsDone: AugmentedEvent<ApiType, [bool]>;
  625. };
  626. system: {
  627. /**
  628. * `:code` was updated.
  629. **/
  630. CodeUpdated: AugmentedEvent<ApiType, []>;
  631. /**
  632. * An extrinsic failed. \[error, info\]
  633. **/
  634. ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
  635. /**
  636. * An extrinsic completed successfully. \[info\]
  637. **/
  638. ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
  639. /**
  640. * An \[account\] was reaped.
  641. **/
  642. KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
  643. /**
  644. * A new \[account\] was created.
  645. **/
  646. NewAccount: AugmentedEvent<ApiType, [AccountId]>;
  647. };
  648. utility: {
  649. /**
  650. * Batch of dispatches completed fully with no error.
  651. **/
  652. BatchCompleted: AugmentedEvent<ApiType, []>;
  653. /**
  654. * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
  655. * well as the error. \[index, error\]
  656. **/
  657. BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
  658. };
  659. versionedStore: {
  660. ClassCreated: AugmentedEvent<ApiType, [ClassId]>;
  661. ClassSchemaAdded: AugmentedEvent<ApiType, [ClassId, u16]>;
  662. EntityCreated: AugmentedEvent<ApiType, [EntityId]>;
  663. EntityPropertiesUpdated: AugmentedEvent<ApiType, [EntityId]>;
  664. EntitySchemaAdded: AugmentedEvent<ApiType, [EntityId, u16]>;
  665. /**
  666. * This is a fake event that uses AccountId type just to make Rust compiler happy to compile this module.
  667. **/
  668. FixCompilation: AugmentedEvent<ApiType, [AccountId]>;
  669. };
  670. }
  671. export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
  672. }
  673. }