manifest.yml 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. version: '3.0'
  2. description: Joystream query-node manifest file for Olympia
  3. repository: https://github.com/Joystream/joystream
  4. hydraVersion: "3"
  5. dataSource:
  6. kind: substrate
  7. chain: joystream
  8. entities:
  9. - generated/graphql-server/dist/src/modules/**/*.model.js
  10. typegen:
  11. metadata:
  12. source: ../chain-metadata.json
  13. events:
  14. # Membership
  15. - members.MembershipBought
  16. - members.MemberProfileUpdated
  17. - members.MemberAccountsUpdated
  18. - members.MemberVerificationStatusUpdated
  19. - members.InvitesTransferred
  20. - members.MemberInvited
  21. - members.StakingAccountAdded
  22. - members.StakingAccountConfirmed
  23. - members.StakingAccountRemoved
  24. - members.InitialInvitationCountUpdated
  25. - members.MembershipPriceUpdated
  26. - members.ReferralCutUpdated
  27. - members.InitialInvitationBalanceUpdated
  28. - members.LeaderInvitationQuotaUpdated
  29. # Working groups - use Storage Working Group as a reference group (all groups emit the same events)
  30. - storageWorkingGroup.OpeningAdded
  31. - storageWorkingGroup.AppliedOnOpening
  32. - storageWorkingGroup.OpeningFilled
  33. - storageWorkingGroup.LeaderSet
  34. - storageWorkingGroup.WorkerRoleAccountUpdated
  35. - storageWorkingGroup.LeaderUnset
  36. - storageWorkingGroup.WorkerStartedLeaving
  37. - storageWorkingGroup.WorkerExited
  38. - storageWorkingGroup.TerminatedWorker
  39. - storageWorkingGroup.TerminatedLeader
  40. - storageWorkingGroup.StakeSlashed
  41. - storageWorkingGroup.StakeDecreased
  42. - storageWorkingGroup.StakeIncreased
  43. - storageWorkingGroup.ApplicationWithdrawn
  44. - storageWorkingGroup.OpeningCanceled
  45. - storageWorkingGroup.BudgetSet
  46. - storageWorkingGroup.WorkerRewardAccountUpdated
  47. - storageWorkingGroup.WorkerRewardAmountUpdated
  48. - storageWorkingGroup.StatusTextChanged
  49. - storageWorkingGroup.BudgetSpending
  50. - storageWorkingGroup.RewardPaid
  51. - storageWorkingGroup.NewMissedRewardLevelReached
  52. # Proposals
  53. - proposalsCodex.ProposalCreated
  54. - proposalsEngine.ProposalStatusUpdated
  55. - proposalsEngine.ProposalDecisionMade
  56. - proposalsEngine.ProposalExecuted
  57. - proposalsEngine.Voted
  58. - proposalsEngine.ProposalCancelled
  59. # Proposals discussion
  60. - proposalsDiscussion.ThreadCreated
  61. - proposalsDiscussion.PostCreated
  62. - proposalsDiscussion.PostUpdated
  63. - proposalsDiscussion.ThreadModeChanged
  64. - proposalsDiscussion.PostDeleted
  65. # Forum
  66. - forum.CategoryCreated
  67. - forum.CategoryArchivalStatusUpdated
  68. - forum.CategoryDeleted
  69. - forum.ThreadCreated
  70. - forum.ThreadModerated
  71. - forum.ThreadMetadataUpdated
  72. - forum.ThreadDeleted
  73. - forum.ThreadMoved
  74. - forum.VoteOnPoll
  75. - forum.PostAdded
  76. - forum.PostModerated
  77. - forum.PostDeleted
  78. - forum.PostTextUpdated
  79. - forum.PostReacted
  80. - forum.CategoryStickyThreadUpdate
  81. - forum.CategoryMembershipOfModeratorUpdated
  82. # Content directory
  83. - content.CuratorGroupCreated
  84. - content.CuratorGroupStatusSet
  85. - content.CuratorAdded
  86. - content.CuratorRemoved
  87. - content.ChannelCreated
  88. - content.ChannelUpdated
  89. - content.ChannelAssetsRemoved
  90. - content.ChannelCensorshipStatusUpdated
  91. - content.ChannelOwnershipTransferRequested
  92. - content.ChannelOwnershipTransferRequestWithdrawn
  93. - content.ChannelOwnershipTransferred
  94. - content.ChannelCategoryCreated
  95. - content.ChannelCategoryUpdated
  96. - content.ChannelCategoryDeleted
  97. - content.VideoCategoryCreated
  98. - content.VideoCategoryUpdated
  99. - content.VideoCategoryDeleted
  100. - content.VideoCreated
  101. - content.VideoUpdated
  102. - content.VideoDeleted
  103. - content.VideoCensorshipStatusUpdated
  104. - content.FeaturedVideosSet
  105. - content.ChannelDeleted
  106. # Storage
  107. - storage.StorageBucketCreated
  108. - storage.StorageBucketInvitationAccepted
  109. - storage.StorageBucketsUpdatedForBag
  110. - storage.DataObjectsUploaded
  111. - storage.StorageOperatorMetadataSet
  112. - storage.StorageBucketVoucherLimitsSet
  113. - storage.PendingDataObjectsAccepted
  114. - storage.StorageBucketInvitationCancelled
  115. - storage.StorageBucketOperatorInvited
  116. - storage.StorageBucketOperatorRemoved
  117. - storage.UploadingBlockStatusUpdated
  118. - storage.DataObjectPerMegabyteFeeUpdated
  119. - storage.StorageBucketsPerBagLimitUpdated
  120. - storage.StorageBucketsVoucherMaxLimitsUpdated
  121. - storage.DataObjectsMoved
  122. - storage.DataObjectsDeleted
  123. - storage.StorageBucketStatusUpdated
  124. - storage.UpdateBlacklist
  125. - storage.DynamicBagDeleted
  126. - storage.DynamicBagCreated
  127. - storage.VoucherChanged
  128. - storage.StorageBucketDeleted
  129. - storage.DistributionBucketFamilyCreated
  130. - storage.DistributionBucketFamilyDeleted
  131. - storage.DistributionBucketCreated
  132. - storage.DistributionBucketStatusUpdated
  133. - storage.DistributionBucketDeleted
  134. - storage.DistributionBucketsUpdatedForBag
  135. - storage.DistributionBucketsPerBagLimitUpdated
  136. - storage.DistributionBucketModeUpdated
  137. - storage.DistributionBucketOperatorInvited
  138. - storage.DistributionBucketInvitationCancelled
  139. - storage.DistributionBucketInvitationAccepted
  140. - storage.DistributionBucketMetadataSet
  141. - storage.DistributionBucketOperatorRemoved
  142. - storage.DistributionBucketFamilyMetadataSet
  143. # Not required:
  144. # - storage.NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated
  145. # - storage.FamiliesInDynamicBagCreationPolicyUpdated
  146. # Council
  147. - council.AnnouncingPeriodStarted
  148. - council.NotEnoughCandidates
  149. - council.VotingPeriodStarted
  150. - council.NewCandidate
  151. - council.NewCouncilElected
  152. - council.NewCouncilNotElected
  153. - council.CandidacyStakeRelease
  154. - council.CandidacyWithdraw
  155. - council.CandidacyNoteSet
  156. - council.RewardPayment
  157. - council.BudgetBalanceSet
  158. - council.BudgetRefill
  159. - council.BudgetRefillPlanned
  160. - council.BudgetIncrementUpdated
  161. - council.CouncilorRewardUpdated
  162. - council.RequestFunded
  163. # Referendum
  164. - referendum.ReferendumStarted
  165. - referendum.ReferendumStartedForcefully
  166. - referendum.RevealingStageStarted
  167. - referendum.ReferendumFinished
  168. - referendum.VoteCast
  169. - referendum.VoteRevealed
  170. - referendum.StakeReleased
  171. calls:
  172. # Proposals discussion
  173. - proposalsDiscussion.addPost
  174. outDir: ./mappings/generated/types
  175. customTypes:
  176. lib: '@joystream/types/augment/all/types'
  177. typedefsLoc: '../types/augment/all/defs.json'
  178. mappings:
  179. # js module that exports the handler functions
  180. mappingsModule: mappings/lib/src
  181. # additinal libraries the processor loads
  182. # typically it is a module with event and extrinsic types generated by hydra-typegen
  183. imports:
  184. - mappings/lib/generated/types
  185. eventHandlers:
  186. # Membership module
  187. - event: members.MembershipBought
  188. handler: members_MembershipBought
  189. - event: members.MemberProfileUpdated
  190. handler: members_MemberProfileUpdated
  191. - event: members.MemberAccountsUpdated
  192. handler: members_MemberAccountsUpdated
  193. - event: members.MemberVerificationStatusUpdated
  194. handler: members_MemberVerificationStatusUpdated
  195. - event: members.InvitesTransferred
  196. handler: members_InvitesTransferred
  197. - event: members.MemberInvited
  198. handler: members_MemberInvited
  199. - event: members.StakingAccountAdded
  200. handler: members_StakingAccountAdded
  201. - event: members.StakingAccountConfirmed
  202. handler: members_StakingAccountConfirmed
  203. - event: members.StakingAccountRemoved
  204. handler: members_StakingAccountRemoved
  205. - event: members.InitialInvitationCountUpdated
  206. handler: members_InitialInvitationCountUpdated
  207. - event: members.MembershipPriceUpdated
  208. handler: members_MembershipPriceUpdated
  209. - event: members.ReferralCutUpdated
  210. handler: members_ReferralCutUpdated
  211. - event: members.InitialInvitationBalanceUpdated
  212. handler: members_InitialInvitationBalanceUpdated
  213. - event: members.LeaderInvitationQuotaUpdated
  214. handler: members_LeaderInvitationQuotaUpdated
  215. # Storage working group
  216. - event: storageWorkingGroup.OpeningAdded
  217. handler: workingGroups_OpeningAdded
  218. - event: storageWorkingGroup.AppliedOnOpening
  219. handler: workingGroups_AppliedOnOpening
  220. - event: storageWorkingGroup.OpeningFilled
  221. handler: workingGroups_OpeningFilled
  222. - event: storageWorkingGroup.LeaderSet
  223. handler: workingGroups_LeaderSet
  224. - event: storageWorkingGroup.WorkerRoleAccountUpdated
  225. handler: workingGroups_WorkerRoleAccountUpdated
  226. - event: storageWorkingGroup.LeaderUnset
  227. handler: workingGroups_LeaderUnset
  228. - event: storageWorkingGroup.WorkerExited
  229. handler: workingGroups_WorkerExited
  230. - event: storageWorkingGroup.TerminatedWorker
  231. handler: workingGroups_TerminatedWorker
  232. - event: storageWorkingGroup.TerminatedLeader
  233. handler: workingGroups_TerminatedLeader
  234. - event: storageWorkingGroup.StakeSlashed
  235. handler: workingGroups_StakeSlashed
  236. - event: storageWorkingGroup.StakeDecreased
  237. handler: workingGroups_StakeDecreased
  238. - event: storageWorkingGroup.StakeIncreased
  239. handler: workingGroups_StakeIncreased
  240. - event: storageWorkingGroup.ApplicationWithdrawn
  241. handler: workingGroups_ApplicationWithdrawn
  242. - event: storageWorkingGroup.OpeningCanceled
  243. handler: workingGroups_OpeningCanceled
  244. - event: storageWorkingGroup.BudgetSet
  245. handler: workingGroups_BudgetSet
  246. - event: storageWorkingGroup.WorkerRewardAccountUpdated
  247. handler: workingGroups_WorkerRewardAccountUpdated
  248. - event: storageWorkingGroup.WorkerRewardAmountUpdated
  249. handler: workingGroups_WorkerRewardAmountUpdated
  250. - event: storageWorkingGroup.StatusTextChanged
  251. handler: workingGroups_StatusTextChanged
  252. - event: storageWorkingGroup.BudgetSpending
  253. handler: workingGroups_BudgetSpending
  254. - event: storageWorkingGroup.RewardPaid
  255. handler: workingGroups_RewardPaid
  256. - event: storageWorkingGroup.NewMissedRewardLevelReached
  257. handler: workingGroups_NewMissedRewardLevelReached
  258. - event: storageWorkingGroup.WorkerStartedLeaving
  259. handler: workingGroups_WorkerStartedLeaving
  260. # Forum working group
  261. - event: forumWorkingGroup.OpeningAdded
  262. handler: workingGroups_OpeningAdded
  263. - event: forumWorkingGroup.AppliedOnOpening
  264. handler: workingGroups_AppliedOnOpening
  265. - event: forumWorkingGroup.OpeningFilled
  266. handler: workingGroups_OpeningFilled
  267. - event: forumWorkingGroup.LeaderSet
  268. handler: workingGroups_LeaderSet
  269. - event: forumWorkingGroup.WorkerRoleAccountUpdated
  270. handler: workingGroups_WorkerRoleAccountUpdated
  271. - event: forumWorkingGroup.LeaderUnset
  272. handler: workingGroups_LeaderUnset
  273. - event: forumWorkingGroup.WorkerExited
  274. handler: workingGroups_WorkerExited
  275. - event: forumWorkingGroup.TerminatedWorker
  276. handler: workingGroups_TerminatedWorker
  277. - event: forumWorkingGroup.TerminatedLeader
  278. handler: workingGroups_TerminatedLeader
  279. - event: forumWorkingGroup.StakeSlashed
  280. handler: workingGroups_StakeSlashed
  281. - event: forumWorkingGroup.StakeDecreased
  282. handler: workingGroups_StakeDecreased
  283. - event: forumWorkingGroup.StakeIncreased
  284. handler: workingGroups_StakeIncreased
  285. - event: forumWorkingGroup.ApplicationWithdrawn
  286. handler: workingGroups_ApplicationWithdrawn
  287. - event: forumWorkingGroup.OpeningCanceled
  288. handler: workingGroups_OpeningCanceled
  289. - event: forumWorkingGroup.BudgetSet
  290. handler: workingGroups_BudgetSet
  291. - event: forumWorkingGroup.WorkerRewardAccountUpdated
  292. handler: workingGroups_WorkerRewardAccountUpdated
  293. - event: forumWorkingGroup.WorkerRewardAmountUpdated
  294. handler: workingGroups_WorkerRewardAmountUpdated
  295. - event: forumWorkingGroup.StatusTextChanged
  296. handler: workingGroups_StatusTextChanged
  297. - event: forumWorkingGroup.BudgetSpending
  298. handler: workingGroups_BudgetSpending
  299. - event: forumWorkingGroup.RewardPaid
  300. handler: workingGroups_RewardPaid
  301. - event: forumWorkingGroup.NewMissedRewardLevelReached
  302. handler: workingGroups_NewMissedRewardLevelReached
  303. - event: forumWorkingGroup.WorkerStartedLeaving
  304. handler: workingGroups_WorkerStartedLeaving
  305. # Membership working group
  306. - event: membershipWorkingGroup.OpeningAdded
  307. handler: workingGroups_OpeningAdded
  308. - event: membershipWorkingGroup.AppliedOnOpening
  309. handler: workingGroups_AppliedOnOpening
  310. - event: membershipWorkingGroup.OpeningFilled
  311. handler: workingGroups_OpeningFilled
  312. - event: membershipWorkingGroup.LeaderSet
  313. handler: workingGroups_LeaderSet
  314. - event: membershipWorkingGroup.WorkerRoleAccountUpdated
  315. handler: workingGroups_WorkerRoleAccountUpdated
  316. - event: membershipWorkingGroup.LeaderUnset
  317. handler: workingGroups_LeaderUnset
  318. - event: membershipWorkingGroup.WorkerExited
  319. handler: workingGroups_WorkerExited
  320. - event: membershipWorkingGroup.TerminatedWorker
  321. handler: workingGroups_TerminatedWorker
  322. - event: membershipWorkingGroup.TerminatedLeader
  323. handler: workingGroups_TerminatedLeader
  324. - event: membershipWorkingGroup.StakeSlashed
  325. handler: workingGroups_StakeSlashed
  326. - event: membershipWorkingGroup.StakeDecreased
  327. handler: workingGroups_StakeDecreased
  328. - event: membershipWorkingGroup.StakeIncreased
  329. handler: workingGroups_StakeIncreased
  330. - event: membershipWorkingGroup.ApplicationWithdrawn
  331. handler: workingGroups_ApplicationWithdrawn
  332. - event: membershipWorkingGroup.OpeningCanceled
  333. handler: workingGroups_OpeningCanceled
  334. - event: membershipWorkingGroup.BudgetSet
  335. handler: workingGroups_BudgetSet
  336. - event: membershipWorkingGroup.WorkerRewardAccountUpdated
  337. handler: workingGroups_WorkerRewardAccountUpdated
  338. - event: membershipWorkingGroup.WorkerRewardAmountUpdated
  339. handler: workingGroups_WorkerRewardAmountUpdated
  340. - event: membershipWorkingGroup.StatusTextChanged
  341. handler: workingGroups_StatusTextChanged
  342. - event: membershipWorkingGroup.BudgetSpending
  343. handler: workingGroups_BudgetSpending
  344. - event: membershipWorkingGroup.RewardPaid
  345. handler: workingGroups_RewardPaid
  346. - event: membershipWorkingGroup.NewMissedRewardLevelReached
  347. handler: workingGroups_NewMissedRewardLevelReached
  348. - event: membershipWorkingGroup.WorkerStartedLeaving
  349. handler: workingGroups_WorkerStartedLeaving
  350. # Content directory working group
  351. - event: contentWorkingGroup.OpeningAdded
  352. handler: workingGroups_OpeningAdded
  353. - event: contentWorkingGroup.AppliedOnOpening
  354. handler: workingGroups_AppliedOnOpening
  355. - event: contentWorkingGroup.OpeningFilled
  356. handler: workingGroups_OpeningFilled
  357. - event: contentWorkingGroup.LeaderSet
  358. handler: workingGroups_LeaderSet
  359. - event: contentWorkingGroup.WorkerRoleAccountUpdated
  360. handler: workingGroups_WorkerRoleAccountUpdated
  361. - event: contentWorkingGroup.LeaderUnset
  362. handler: workingGroups_LeaderUnset
  363. - event: contentWorkingGroup.WorkerExited
  364. handler: workingGroups_WorkerExited
  365. - event: contentWorkingGroup.TerminatedWorker
  366. handler: workingGroups_TerminatedWorker
  367. - event: contentWorkingGroup.TerminatedLeader
  368. handler: workingGroups_TerminatedLeader
  369. - event: contentWorkingGroup.StakeSlashed
  370. handler: workingGroups_StakeSlashed
  371. - event: contentWorkingGroup.StakeDecreased
  372. handler: workingGroups_StakeDecreased
  373. - event: contentWorkingGroup.StakeIncreased
  374. handler: workingGroups_StakeIncreased
  375. - event: contentWorkingGroup.ApplicationWithdrawn
  376. handler: workingGroups_ApplicationWithdrawn
  377. - event: contentWorkingGroup.OpeningCanceled
  378. handler: workingGroups_OpeningCanceled
  379. - event: contentWorkingGroup.BudgetSet
  380. handler: workingGroups_BudgetSet
  381. - event: contentWorkingGroup.WorkerRewardAccountUpdated
  382. handler: workingGroups_WorkerRewardAccountUpdated
  383. - event: contentWorkingGroup.WorkerRewardAmountUpdated
  384. handler: workingGroups_WorkerRewardAmountUpdated
  385. - event: contentWorkingGroup.StatusTextChanged
  386. handler: workingGroups_StatusTextChanged
  387. - event: contentWorkingGroup.BudgetSpending
  388. handler: workingGroups_BudgetSpending
  389. - event: contentWorkingGroup.RewardPaid
  390. handler: workingGroups_RewardPaid
  391. - event: contentWorkingGroup.NewMissedRewardLevelReached
  392. handler: workingGroups_NewMissedRewardLevelReached
  393. - event: contentWorkingGroup.WorkerStartedLeaving
  394. handler: workingGroups_WorkerStartedLeaving
  395. # Operations working group alpha
  396. - event: operationsWorkingGroupAlpha.OpeningAdded
  397. handler: workingGroups_OpeningAdded
  398. - event: operationsWorkingGroupAlpha.AppliedOnOpening
  399. handler: workingGroups_AppliedOnOpening
  400. - event: operationsWorkingGroupAlpha.OpeningFilled
  401. handler: workingGroups_OpeningFilled
  402. - event: operationsWorkingGroupAlpha.LeaderSet
  403. handler: workingGroups_LeaderSet
  404. - event: operationsWorkingGroupAlpha.WorkerRoleAccountUpdated
  405. handler: workingGroups_WorkerRoleAccountUpdated
  406. - event: operationsWorkingGroupAlpha.LeaderUnset
  407. handler: workingGroups_LeaderUnset
  408. - event: operationsWorkingGroupAlpha.WorkerExited
  409. handler: workingGroups_WorkerExited
  410. - event: operationsWorkingGroupAlpha.TerminatedWorker
  411. handler: workingGroups_TerminatedWorker
  412. - event: operationsWorkingGroupAlpha.TerminatedLeader
  413. handler: workingGroups_TerminatedLeader
  414. - event: operationsWorkingGroupAlpha.StakeSlashed
  415. handler: workingGroups_StakeSlashed
  416. - event: operationsWorkingGroupAlpha.StakeDecreased
  417. handler: workingGroups_StakeDecreased
  418. - event: operationsWorkingGroupAlpha.StakeIncreased
  419. handler: workingGroups_StakeIncreased
  420. - event: operationsWorkingGroupAlpha.ApplicationWithdrawn
  421. handler: workingGroups_ApplicationWithdrawn
  422. - event: operationsWorkingGroupAlpha.OpeningCanceled
  423. handler: workingGroups_OpeningCanceled
  424. - event: operationsWorkingGroupAlpha.BudgetSet
  425. handler: workingGroups_BudgetSet
  426. - event: operationsWorkingGroupAlpha.WorkerRewardAccountUpdated
  427. handler: workingGroups_WorkerRewardAccountUpdated
  428. - event: operationsWorkingGroupAlpha.WorkerRewardAmountUpdated
  429. handler: workingGroups_WorkerRewardAmountUpdated
  430. - event: operationsWorkingGroupAlpha.StatusTextChanged
  431. handler: workingGroups_StatusTextChanged
  432. - event: operationsWorkingGroupAlpha.BudgetSpending
  433. handler: workingGroups_BudgetSpending
  434. - event: operationsWorkingGroupAlpha.RewardPaid
  435. handler: workingGroups_RewardPaid
  436. - event: operationsWorkingGroupAlpha.NewMissedRewardLevelReached
  437. handler: workingGroups_NewMissedRewardLevelReached
  438. - event: operationsWorkingGroupAlpha.WorkerStartedLeaving
  439. handler: workingGroups_WorkerStartedLeaving
  440. # Operations working group beta
  441. - event: operationsWorkingGroupBeta.OpeningAdded
  442. handler: workingGroups_OpeningAdded
  443. - event: operationsWorkingGroupBeta.AppliedOnOpening
  444. handler: workingGroups_AppliedOnOpening
  445. - event: operationsWorkingGroupBeta.OpeningFilled
  446. handler: workingGroups_OpeningFilled
  447. - event: operationsWorkingGroupBeta.LeaderSet
  448. handler: workingGroups_LeaderSet
  449. - event: operationsWorkingGroupBeta.WorkerRoleAccountUpdated
  450. handler: workingGroups_WorkerRoleAccountUpdated
  451. - event: operationsWorkingGroupBeta.LeaderUnset
  452. handler: workingGroups_LeaderUnset
  453. - event: operationsWorkingGroupBeta.WorkerExited
  454. handler: workingGroups_WorkerExited
  455. - event: operationsWorkingGroupBeta.TerminatedWorker
  456. handler: workingGroups_TerminatedWorker
  457. - event: operationsWorkingGroupBeta.TerminatedLeader
  458. handler: workingGroups_TerminatedLeader
  459. - event: operationsWorkingGroupBeta.StakeSlashed
  460. handler: workingGroups_StakeSlashed
  461. - event: operationsWorkingGroupBeta.StakeDecreased
  462. handler: workingGroups_StakeDecreased
  463. - event: operationsWorkingGroupBeta.StakeIncreased
  464. handler: workingGroups_StakeIncreased
  465. - event: operationsWorkingGroupBeta.ApplicationWithdrawn
  466. handler: workingGroups_ApplicationWithdrawn
  467. - event: operationsWorkingGroupBeta.OpeningCanceled
  468. handler: workingGroups_OpeningCanceled
  469. - event: operationsWorkingGroupBeta.BudgetSet
  470. handler: workingGroups_BudgetSet
  471. - event: operationsWorkingGroupBeta.WorkerRewardAccountUpdated
  472. handler: workingGroups_WorkerRewardAccountUpdated
  473. - event: operationsWorkingGroupBeta.WorkerRewardAmountUpdated
  474. handler: workingGroups_WorkerRewardAmountUpdated
  475. - event: operationsWorkingGroupBeta.StatusTextChanged
  476. handler: workingGroups_StatusTextChanged
  477. - event: operationsWorkingGroupBeta.BudgetSpending
  478. handler: workingGroups_BudgetSpending
  479. - event: operationsWorkingGroupBeta.RewardPaid
  480. handler: workingGroups_RewardPaid
  481. - event: operationsWorkingGroupBeta.NewMissedRewardLevelReached
  482. handler: workingGroups_NewMissedRewardLevelReached
  483. - event: operationsWorkingGroupBeta.WorkerStartedLeaving
  484. handler: workingGroups_WorkerStartedLeaving
  485. # Operations working group gamma
  486. - event: operationsWorkingGroupGamma.OpeningAdded
  487. handler: workingGroups_OpeningAdded
  488. - event: operationsWorkingGroupGamma.AppliedOnOpening
  489. handler: workingGroups_AppliedOnOpening
  490. - event: operationsWorkingGroupGamma.OpeningFilled
  491. handler: workingGroups_OpeningFilled
  492. - event: operationsWorkingGroupGamma.LeaderSet
  493. handler: workingGroups_LeaderSet
  494. - event: operationsWorkingGroupGamma.WorkerRoleAccountUpdated
  495. handler: workingGroups_WorkerRoleAccountUpdated
  496. - event: operationsWorkingGroupGamma.LeaderUnset
  497. handler: workingGroups_LeaderUnset
  498. - event: operationsWorkingGroupGamma.WorkerExited
  499. handler: workingGroups_WorkerExited
  500. - event: operationsWorkingGroupGamma.TerminatedWorker
  501. handler: workingGroups_TerminatedWorker
  502. - event: operationsWorkingGroupGamma.TerminatedLeader
  503. handler: workingGroups_TerminatedLeader
  504. - event: operationsWorkingGroupGamma.StakeSlashed
  505. handler: workingGroups_StakeSlashed
  506. - event: operationsWorkingGroupGamma.StakeDecreased
  507. handler: workingGroups_StakeDecreased
  508. - event: operationsWorkingGroupGamma.StakeIncreased
  509. handler: workingGroups_StakeIncreased
  510. - event: operationsWorkingGroupGamma.ApplicationWithdrawn
  511. handler: workingGroups_ApplicationWithdrawn
  512. - event: operationsWorkingGroupGamma.OpeningCanceled
  513. handler: workingGroups_OpeningCanceled
  514. - event: operationsWorkingGroupGamma.BudgetSet
  515. handler: workingGroups_BudgetSet
  516. - event: operationsWorkingGroupGamma.WorkerRewardAccountUpdated
  517. handler: workingGroups_WorkerRewardAccountUpdated
  518. - event: operationsWorkingGroupGamma.WorkerRewardAmountUpdated
  519. handler: workingGroups_WorkerRewardAmountUpdated
  520. - event: operationsWorkingGroupGamma.StatusTextChanged
  521. handler: workingGroups_StatusTextChanged
  522. - event: operationsWorkingGroupGamma.BudgetSpending
  523. handler: workingGroups_BudgetSpending
  524. - event: operationsWorkingGroupGamma.RewardPaid
  525. handler: workingGroups_RewardPaid
  526. - event: operationsWorkingGroupGamma.NewMissedRewardLevelReached
  527. handler: workingGroups_NewMissedRewardLevelReached
  528. - event: operationsWorkingGroupGamma.WorkerStartedLeaving
  529. handler: workingGroups_WorkerStartedLeaving
  530. # Distribution working group
  531. - event: distributionWorkingGroup.OpeningAdded
  532. handler: workingGroups_OpeningAdded
  533. - event: distributionWorkingGroup.AppliedOnOpening
  534. handler: workingGroups_AppliedOnOpening
  535. - event: distributionWorkingGroup.OpeningFilled
  536. handler: workingGroups_OpeningFilled
  537. - event: distributionWorkingGroup.LeaderSet
  538. handler: workingGroups_LeaderSet
  539. - event: distributionWorkingGroup.WorkerRoleAccountUpdated
  540. handler: workingGroups_WorkerRoleAccountUpdated
  541. - event: distributionWorkingGroup.LeaderUnset
  542. handler: workingGroups_LeaderUnset
  543. - event: distributionWorkingGroup.WorkerExited
  544. handler: workingGroups_WorkerExited
  545. - event: distributionWorkingGroup.TerminatedWorker
  546. handler: workingGroups_TerminatedWorker
  547. - event: distributionWorkingGroup.TerminatedLeader
  548. handler: workingGroups_TerminatedLeader
  549. - event: distributionWorkingGroup.StakeSlashed
  550. handler: workingGroups_StakeSlashed
  551. - event: distributionWorkingGroup.StakeDecreased
  552. handler: workingGroups_StakeDecreased
  553. - event: distributionWorkingGroup.StakeIncreased
  554. handler: workingGroups_StakeIncreased
  555. - event: distributionWorkingGroup.ApplicationWithdrawn
  556. handler: workingGroups_ApplicationWithdrawn
  557. - event: distributionWorkingGroup.OpeningCanceled
  558. handler: workingGroups_OpeningCanceled
  559. - event: distributionWorkingGroup.BudgetSet
  560. handler: workingGroups_BudgetSet
  561. - event: distributionWorkingGroup.WorkerRewardAccountUpdated
  562. handler: workingGroups_WorkerRewardAccountUpdated
  563. - event: distributionWorkingGroup.WorkerRewardAmountUpdated
  564. handler: workingGroups_WorkerRewardAmountUpdated
  565. - event: distributionWorkingGroup.StatusTextChanged
  566. handler: workingGroups_StatusTextChanged
  567. - event: distributionWorkingGroup.BudgetSpending
  568. handler: workingGroups_BudgetSpending
  569. - event: distributionWorkingGroup.RewardPaid
  570. handler: workingGroups_RewardPaid
  571. - event: distributionWorkingGroup.NewMissedRewardLevelReached
  572. handler: workingGroups_NewMissedRewardLevelReached
  573. - event: distributionWorkingGroup.WorkerStartedLeaving
  574. handler: workingGroups_WorkerStartedLeaving
  575. # Gateway working group
  576. - event: gatewayWorkingGroup.OpeningAdded
  577. handler: workingGroups_OpeningAdded
  578. - event: gatewayWorkingGroup.AppliedOnOpening
  579. handler: workingGroups_AppliedOnOpening
  580. - event: gatewayWorkingGroup.OpeningFilled
  581. handler: workingGroups_OpeningFilled
  582. - event: gatewayWorkingGroup.LeaderSet
  583. handler: workingGroups_LeaderSet
  584. - event: gatewayWorkingGroup.WorkerRoleAccountUpdated
  585. handler: workingGroups_WorkerRoleAccountUpdated
  586. - event: gatewayWorkingGroup.LeaderUnset
  587. handler: workingGroups_LeaderUnset
  588. - event: gatewayWorkingGroup.WorkerExited
  589. handler: workingGroups_WorkerExited
  590. - event: gatewayWorkingGroup.TerminatedWorker
  591. handler: workingGroups_TerminatedWorker
  592. - event: gatewayWorkingGroup.TerminatedLeader
  593. handler: workingGroups_TerminatedLeader
  594. - event: gatewayWorkingGroup.StakeSlashed
  595. handler: workingGroups_StakeSlashed
  596. - event: gatewayWorkingGroup.StakeDecreased
  597. handler: workingGroups_StakeDecreased
  598. - event: gatewayWorkingGroup.StakeIncreased
  599. handler: workingGroups_StakeIncreased
  600. - event: gatewayWorkingGroup.ApplicationWithdrawn
  601. handler: workingGroups_ApplicationWithdrawn
  602. - event: gatewayWorkingGroup.OpeningCanceled
  603. handler: workingGroups_OpeningCanceled
  604. - event: gatewayWorkingGroup.BudgetSet
  605. handler: workingGroups_BudgetSet
  606. - event: gatewayWorkingGroup.WorkerRewardAccountUpdated
  607. handler: workingGroups_WorkerRewardAccountUpdated
  608. - event: gatewayWorkingGroup.WorkerRewardAmountUpdated
  609. handler: workingGroups_WorkerRewardAmountUpdated
  610. - event: gatewayWorkingGroup.StatusTextChanged
  611. handler: workingGroups_StatusTextChanged
  612. - event: gatewayWorkingGroup.BudgetSpending
  613. handler: workingGroups_BudgetSpending
  614. - event: gatewayWorkingGroup.RewardPaid
  615. handler: workingGroups_RewardPaid
  616. - event: gatewayWorkingGroup.NewMissedRewardLevelReached
  617. handler: workingGroups_NewMissedRewardLevelReached
  618. - event: gatewayWorkingGroup.WorkerStartedLeaving
  619. handler: workingGroups_WorkerStartedLeaving
  620. # Proposals
  621. - event: proposalsCodex.ProposalCreated
  622. handler: proposalsCodex_ProposalCreated
  623. - event: proposalsEngine.ProposalStatusUpdated
  624. handler: proposalsEngine_ProposalStatusUpdated
  625. - event: proposalsEngine.ProposalDecisionMade
  626. handler: proposalsEngine_ProposalDecisionMade
  627. - event: proposalsEngine.ProposalExecuted
  628. handler: proposalsEngine_ProposalExecuted
  629. - event: proposalsEngine.Voted
  630. handler: proposalsEngine_Voted
  631. - event: proposalsEngine.ProposalCancelled
  632. handler: proposalsEngine_ProposalCancelled
  633. # Proposals discussion
  634. - event: proposalsDiscussion.ThreadCreated
  635. handler: proposalsDiscussion_ThreadCreated
  636. - event: proposalsDiscussion.PostCreated
  637. handler: proposalsDiscussion_PostCreated
  638. - event: proposalsDiscussion.PostUpdated
  639. handler: proposalsDiscussion_PostUpdated
  640. - event: proposalsDiscussion.ThreadModeChanged
  641. handler: proposalsDiscussion_ThreadModeChanged
  642. - event: proposalsDiscussion.PostDeleted
  643. handler: proposalsDiscussion_PostDeleted
  644. # Forum
  645. - event: forum.CategoryCreated
  646. handler: forum_CategoryCreated
  647. - event: forum.CategoryArchivalStatusUpdated
  648. handler: forum_CategoryArchivalStatusUpdated
  649. - event: forum.CategoryDeleted
  650. handler: forum_CategoryDeleted
  651. - event: forum.ThreadCreated
  652. handler: forum_ThreadCreated
  653. - event: forum.ThreadModerated
  654. handler: forum_ThreadModerated
  655. - event: forum.ThreadMetadataUpdated
  656. handler: forum_ThreadMetadataUpdated
  657. - event: forum.ThreadDeleted
  658. handler: forum_ThreadDeleted
  659. - event: forum.ThreadMoved
  660. handler: forum_ThreadMoved
  661. - event: forum.PostAdded
  662. handler: forum_PostAdded
  663. - event: forum.PostModerated
  664. handler: forum_PostModerated
  665. - event: forum.PostDeleted
  666. handler: forum_PostDeleted
  667. - event: forum.PostTextUpdated
  668. handler: forum_PostTextUpdated
  669. - event: forum.PostReacted
  670. handler: forum_PostReacted
  671. - event: forum.VoteOnPoll
  672. handler: forum_VoteOnPoll
  673. - event: forum.CategoryStickyThreadUpdate
  674. handler: forum_CategoryStickyThreadUpdate
  675. - event: forum.CategoryMembershipOfModeratorUpdated
  676. handler: forum_CategoryMembershipOfModeratorUpdated
  677. # Content directory
  678. - event: content.CuratorGroupCreated
  679. handler: content_CuratorGroupCreated
  680. - event: content.CuratorGroupStatusSet
  681. handler: content_CuratorGroupStatusSet
  682. - event: content.CuratorAdded
  683. handler: content_CuratorAdded
  684. - event: content.CuratorRemoved
  685. handler: content_CuratorRemoved
  686. - event: content.ChannelCreated
  687. handler: content_ChannelCreated
  688. - event: content.ChannelUpdated
  689. handler: content_ChannelUpdated
  690. - event: content.ChannelAssetsRemoved
  691. handler: content_ChannelAssetsRemoved
  692. - event: content.ChannelCensorshipStatusUpdated
  693. handler: content_ChannelCensorshipStatusUpdated
  694. # these events are defined in runtime but never emitted (at the time of writing)
  695. #- event: content.ChannelOwnershipTransferRequested
  696. # handler: content_ChannelOwnershipTransferRequested
  697. #- event: content.ChannelOwnershipTransferRequestWithdrawn
  698. # handler: content_ChannelOwnershipTransferRequestWithdrawn
  699. #- event: content.ChannelOwnershipTransferred
  700. # handler: content_ChannelOwnershipTransferred
  701. - event: content.ChannelCategoryCreated
  702. handler: content_ChannelCategoryCreated
  703. - event: content.ChannelCategoryUpdated
  704. handler: content_ChannelCategoryUpdated
  705. - event: content.ChannelCategoryDeleted
  706. handler: content_ChannelCategoryDeleted
  707. - event: content.VideoCategoryCreated
  708. handler: content_VideoCategoryCreated
  709. - event: content.VideoCategoryUpdated
  710. handler: content_VideoCategoryUpdated
  711. - event: content.VideoCategoryDeleted
  712. handler: content_VideoCategoryDeleted
  713. - event: content.VideoCreated
  714. handler: content_VideoCreated
  715. - event: content.VideoUpdated
  716. handler: content_VideoUpdated
  717. - event: content.VideoDeleted
  718. handler: content_VideoDeleted
  719. - event: content.VideoCensorshipStatusUpdated
  720. handler: content_VideoCensorshipStatusUpdated
  721. - event: content.FeaturedVideosSet
  722. handler: content_FeaturedVideosSet
  723. - event: content.ChannelDeleted
  724. handler: content_ChannelDeleted
  725. # Storage
  726. - event: storage.StorageBucketCreated
  727. handler: storage_StorageBucketCreated
  728. - event: storage.StorageBucketInvitationAccepted
  729. handler: storage_StorageBucketInvitationAccepted
  730. - event: storage.StorageBucketsUpdatedForBag
  731. handler: storage_StorageBucketsUpdatedForBag
  732. - event: storage.DataObjectsUploaded
  733. handler: storage_DataObjectsUploaded
  734. - event: storage.StorageOperatorMetadataSet
  735. handler: storage_StorageOperatorMetadataSet
  736. - event: storage.StorageBucketVoucherLimitsSet
  737. handler: storage_StorageBucketVoucherLimitsSet
  738. - event: storage.PendingDataObjectsAccepted
  739. handler: storage_PendingDataObjectsAccepted
  740. - event: storage.StorageBucketInvitationCancelled
  741. handler: storage_StorageBucketInvitationCancelled
  742. - event: storage.StorageBucketOperatorInvited
  743. handler: storage_StorageBucketOperatorInvited
  744. - event: storage.StorageBucketOperatorRemoved
  745. handler: storage_StorageBucketOperatorRemoved
  746. - event: storage.UploadingBlockStatusUpdated
  747. handler: storage_UploadingBlockStatusUpdated
  748. - event: storage.DataObjectPerMegabyteFeeUpdated
  749. handler: storage_DataObjectPerMegabyteFeeUpdated
  750. - event: storage.StorageBucketsPerBagLimitUpdated
  751. handler: storage_StorageBucketsPerBagLimitUpdated
  752. - event: storage.StorageBucketsVoucherMaxLimitsUpdated
  753. handler: storage_StorageBucketsVoucherMaxLimitsUpdated
  754. - event: storage.DataObjectsMoved
  755. handler: storage_DataObjectsMoved
  756. - event: storage.DataObjectsDeleted
  757. handler: storage_DataObjectsDeleted
  758. - event: storage.StorageBucketStatusUpdated
  759. handler: storage_StorageBucketStatusUpdated
  760. - event: storage.UpdateBlacklist
  761. handler: storage_UpdateBlacklist
  762. - event: storage.DynamicBagDeleted
  763. handler: storage_DynamicBagDeleted
  764. - event: storage.DynamicBagCreated
  765. handler: storage_DynamicBagCreated
  766. - event: storage.VoucherChanged
  767. handler: storage_VoucherChanged
  768. - event: storage.StorageBucketDeleted
  769. handler: storage_StorageBucketDeleted
  770. - event: storage.DistributionBucketFamilyCreated
  771. handler: storage_DistributionBucketFamilyCreated
  772. - event: storage.DistributionBucketFamilyDeleted
  773. handler: storage_DistributionBucketFamilyDeleted
  774. - event: storage.DistributionBucketCreated
  775. handler: storage_DistributionBucketCreated
  776. - event: storage.DistributionBucketStatusUpdated
  777. handler: storage_DistributionBucketStatusUpdated
  778. - event: storage.DistributionBucketDeleted
  779. handler: storage_DistributionBucketDeleted
  780. - event: storage.DistributionBucketsUpdatedForBag
  781. handler: storage_DistributionBucketsUpdatedForBag
  782. - event: storage.DistributionBucketsPerBagLimitUpdated
  783. handler: storage_DistributionBucketsPerBagLimitUpdated
  784. - event: storage.DistributionBucketModeUpdated
  785. handler: storage_DistributionBucketModeUpdated
  786. - event: storage.DistributionBucketOperatorInvited
  787. handler: storage_DistributionBucketOperatorInvited
  788. - event: storage.DistributionBucketInvitationCancelled
  789. handler: storage_DistributionBucketInvitationCancelled
  790. - event: storage.DistributionBucketInvitationAccepted
  791. handler: storage_DistributionBucketInvitationAccepted
  792. - event: storage.DistributionBucketMetadataSet
  793. handler: storage_DistributionBucketMetadataSet
  794. - event: storage.DistributionBucketOperatorRemoved
  795. handler: storage_DistributionBucketOperatorRemoved
  796. - event: storage.DistributionBucketFamilyMetadataSet
  797. handler: storage_DistributionBucketFamilyMetadataSet
  798. # Council
  799. - event: council.AnnouncingPeriodStarted
  800. handler: council_AnnouncingPeriodStarted
  801. - event: council.NotEnoughCandidates
  802. handler: council_NotEnoughCandidates
  803. - event: council.VotingPeriodStarted
  804. handler: council_VotingPeriodStarted
  805. - event: council.NewCandidate
  806. handler: council_NewCandidate
  807. - event: council.NewCouncilElected
  808. handler: council_NewCouncilElected
  809. - event: council.NewCouncilNotElected
  810. handler: council_NewCouncilNotElected
  811. - event: council.CandidacyStakeRelease
  812. handler: council_CandidacyStakeRelease
  813. - event: council.CandidacyWithdraw
  814. handler: council_CandidacyWithdraw
  815. - event: council.CandidacyNoteSet
  816. handler: council_CandidacyNoteSet
  817. - event: council.RewardPayment
  818. handler: council_RewardPayment
  819. - event: council.BudgetBalanceSet
  820. handler: council_BudgetBalanceSet
  821. - event: council.BudgetRefill
  822. handler: council_BudgetRefill
  823. - event: council.BudgetRefillPlanned
  824. handler: council_BudgetRefillPlanned
  825. - event: council.BudgetIncrementUpdated
  826. handler: council_BudgetIncrementUpdated
  827. - event: council.CouncilorRewardUpdated
  828. handler: council_CouncilorRewardUpdated
  829. - event: council.RequestFunded
  830. handler: council_RequestFunded
  831. # Referendum
  832. - event: referendum.ReferendumStarted
  833. handler: referendum_ReferendumStarted
  834. - event: referendum.ReferendumStartedForcefully
  835. handler: referendum_ReferendumStartedForcefully
  836. - event: referendum.RevealingStageStarted
  837. handler: referendum_RevealingStageStarted
  838. - event: referendum.ReferendumFinished
  839. handler: referendum_ReferendumFinished
  840. - event: referendum.VoteCast
  841. handler: referendum_VoteCast
  842. - event: referendum.VoteRevealed
  843. handler: referendum_VoteRevealed
  844. - event: referendum.StakeReleased
  845. handler: referendum_StakeReleased
  846. extrinsicHandlers:
  847. # infer defaults here
  848. #- extrinsic: Balances.Transfer
  849. #- extrinsic: Sudo.batchCall
  850. # handler: handleSudoCall(DatabaseManager,SubstrateEvent)
  851. preBlockHooks:
  852. - handler: bootstrapData
  853. filter:
  854. height: "[0,0]" # will be executed only at genesis
  855. postBlockHooks: