manifest.yml 37 KB

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