manifest.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. version: '3.0'
  2. description: Joystream query-node manifest file for Giza
  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. # storage
  15. - storage.StorageBucketCreated
  16. - storage.StorageBucketInvitationAccepted
  17. - storage.StorageBucketsUpdatedForBag
  18. - storage.DataObjectsUploaded
  19. - storage.StorageOperatorMetadataSet
  20. - storage.StorageBucketVoucherLimitsSet
  21. - storage.PendingDataObjectsAccepted
  22. - storage.StorageBucketInvitationCancelled
  23. - storage.StorageBucketOperatorInvited
  24. - storage.StorageBucketOperatorRemoved
  25. - storage.UploadingBlockStatusUpdated
  26. - storage.DataObjectPerMegabyteFeeUpdated
  27. - storage.StorageBucketsPerBagLimitUpdated
  28. - storage.StorageBucketsVoucherMaxLimitsUpdated
  29. - storage.DataObjectsMoved
  30. - storage.DataObjectsDeleted
  31. - storage.StorageBucketStatusUpdated
  32. - storage.UpdateBlacklist
  33. - storage.DynamicBagDeleted
  34. - storage.DynamicBagCreated
  35. - storage.VoucherChanged
  36. - storage.StorageBucketDeleted
  37. - storage.DistributionBucketFamilyCreated
  38. - storage.DistributionBucketFamilyDeleted
  39. - storage.DistributionBucketCreated
  40. - storage.DistributionBucketStatusUpdated
  41. - storage.DistributionBucketDeleted
  42. - storage.DistributionBucketsUpdatedForBag
  43. - storage.DistributionBucketsPerBagLimitUpdated
  44. - storage.DistributionBucketModeUpdated
  45. - storage.DistributionBucketOperatorInvited
  46. - storage.DistributionBucketInvitationCancelled
  47. - storage.DistributionBucketInvitationAccepted
  48. - storage.DistributionBucketMetadataSet
  49. - storage.DistributionBucketOperatorRemoved
  50. - storage.DistributionBucketFamilyMetadataSet
  51. # Not required:
  52. # - storage.NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated
  53. # - storage.FamiliesInDynamicBagCreationPolicyUpdated
  54. # membership
  55. - members.MemberRegistered
  56. - members.MemberUpdatedAboutText
  57. - members.MemberUpdatedAvatar
  58. - members.MemberUpdatedHandle
  59. - members.MemberSetRootAccount
  60. - members.MemberSetControllerAccount
  61. # content directory
  62. - content.CuratorGroupCreated
  63. - content.CuratorGroupStatusSet
  64. - content.CuratorAdded
  65. - content.CuratorRemoved
  66. - content.ChannelCreated
  67. - content.ChannelUpdated
  68. - content.ChannelAssetsRemoved
  69. - content.ChannelCensorshipStatusUpdated
  70. - content.ChannelOwnershipTransferRequested
  71. - content.ChannelOwnershipTransferRequestWithdrawn
  72. - content.ChannelOwnershipTransferred
  73. - content.ChannelCategoryCreated
  74. - content.ChannelCategoryUpdated
  75. - content.ChannelCategoryDeleted
  76. - content.VideoCategoryCreated
  77. - content.VideoCategoryUpdated
  78. - content.VideoCategoryDeleted
  79. - content.VideoCreated
  80. - content.VideoUpdated
  81. - content.VideoDeleted
  82. - content.VideoCensorshipStatusUpdated
  83. - content.FeaturedVideosSet
  84. - content.ChannelDeleted
  85. # working groups (we're using "storage_working_group" as a reference module)
  86. - storage_working_group.WorkerStorageUpdated
  87. - storage_working_group.OpeningFilled
  88. - storage_working_group.TerminatedWorker
  89. - storage_working_group.WorkerExited
  90. - storage_working_group.TerminatedLeader
  91. calls:
  92. # members
  93. - members.buyMembership
  94. - members.addScreenedMember
  95. - members.changeMemberAboutText
  96. - members.changeMemberAvatar
  97. - members.changeMemberHandle
  98. - members.setRootAccount
  99. - members.setControllerAccount
  100. - members.updateMembership
  101. outDir: ./mappings/generated/types
  102. customTypes:
  103. lib: '@joystream/types/augment/all/types'
  104. typedefsLoc: '../types/augment/all/defs.json'
  105. mappings:
  106. # js module that exports the handler functions
  107. mappingsModule: mappings/lib
  108. # additinal libraries the processor loads
  109. # typically it is a module with event and extrinsic types generated by hydra-typegen
  110. imports:
  111. - mappings/lib/generated/types
  112. eventHandlers:
  113. # membership
  114. - event: members.MemberRegistered
  115. handler: members_MemberRegistered
  116. - event: members.MemberUpdatedAboutText
  117. handler: members_MemberUpdatedAboutText
  118. - event: members.MemberUpdatedAvatar
  119. handler: members_MemberUpdatedAvatar
  120. - event: members.MemberUpdatedHandle
  121. handler: members_MemberUpdatedHandle
  122. - event: members.MemberSetRootAccount
  123. handler: members_MemberSetRootAccount
  124. - event: members.MemberSetControllerAccount
  125. handler: members_MemberSetControllerAccount
  126. # content directory
  127. - event: content.CuratorGroupCreated
  128. handler: content_CuratorGroupCreated
  129. - event: content.CuratorGroupStatusSet
  130. handler: content_CuratorGroupStatusSet
  131. - event: content.CuratorAdded
  132. handler: content_CuratorAdded
  133. - event: content.CuratorRemoved
  134. handler: content_CuratorRemoved
  135. - event: content.ChannelCreated
  136. handler: content_ChannelCreated
  137. - event: content.ChannelUpdated
  138. handler: content_ChannelUpdated
  139. - event: content.ChannelAssetsRemoved
  140. handler: content_ChannelAssetsRemoved
  141. - event: content.ChannelCensorshipStatusUpdated
  142. handler: content_ChannelCensorshipStatusUpdated
  143. # these events are defined in runtime but never emitted (at the time of writing)
  144. #- event: content.ChannelOwnershipTransferRequested
  145. # handler: content_ChannelOwnershipTransferRequested
  146. #- event: content.ChannelOwnershipTransferRequestWithdrawn
  147. # handler: content_ChannelOwnershipTransferRequestWithdrawn
  148. #- event: content.ChannelOwnershipTransferred
  149. # handler: content_ChannelOwnershipTransferred
  150. - event: content.ChannelCategoryCreated
  151. handler: content_ChannelCategoryCreated
  152. - event: content.ChannelCategoryUpdated
  153. handler: content_ChannelCategoryUpdated
  154. - event: content.ChannelCategoryDeleted
  155. handler: content_ChannelCategoryDeleted
  156. - event: content.VideoCategoryCreated
  157. handler: content_VideoCategoryCreated
  158. - event: content.VideoCategoryUpdated
  159. handler: content_VideoCategoryUpdated
  160. - event: content.VideoCategoryDeleted
  161. handler: content_VideoCategoryDeleted
  162. - event: content.VideoCreated
  163. handler: content_VideoCreated
  164. - event: content.VideoUpdated
  165. handler: content_VideoUpdated
  166. - event: content.VideoDeleted
  167. handler: content_VideoDeleted
  168. - event: content.VideoCensorshipStatusUpdated
  169. handler: content_VideoCensorshipStatusUpdated
  170. - event: content.FeaturedVideosSet
  171. handler: content_FeaturedVideosSet
  172. - event: content.ChannelDeleted
  173. handler: content_ChannelDeleted
  174. # working groups
  175. ## storage - workers
  176. - event: storageWorkingGroup.WorkerStorageUpdated
  177. handler: workingGroup_WorkerStorageUpdated
  178. - event: storageWorkingGroup.OpeningFilled
  179. handler: workingGroup_OpeningFilled
  180. - event: storageWorkingGroup.TerminatedWorker
  181. handler: workingGroup_TerminatedWorker
  182. - event: storageWorkingGroup.WorkerExited
  183. handler: workingGroup_WorkerExited
  184. ## storage - leader
  185. - event: storageWorkingGroup.TerminatedLeader
  186. handler: workingGroup_TerminatedLeader
  187. ## gateway - workers
  188. - event: gatewayWorkingGroup.WorkerStorageUpdated
  189. handler: workingGroup_WorkerStorageUpdated
  190. - event: gatewayWorkingGroup.OpeningFilled
  191. handler: workingGroup_OpeningFilled
  192. - event: gatewayWorkingGroup.TerminatedWorker
  193. handler: workingGroup_TerminatedWorker
  194. - event: gatewayWorkingGroup.WorkerExited
  195. handler: workingGroup_WorkerExited
  196. ## gateway - leader
  197. - event: gatewayWorkingGroup.TerminatedLeader
  198. handler: workingGroup_TerminatedLeader
  199. # storage v2
  200. - event: storage.StorageBucketCreated
  201. handler: storage_StorageBucketCreated
  202. - event: storage.StorageBucketInvitationAccepted
  203. handler: storage_StorageBucketInvitationAccepted
  204. - event: storage.StorageBucketsUpdatedForBag
  205. handler: storage_StorageBucketsUpdatedForBag
  206. - event: storage.DataObjectsUploaded
  207. handler: storage_DataObjectsUploaded
  208. - event: storage.StorageOperatorMetadataSet
  209. handler: storage_StorageOperatorMetadataSet
  210. - event: storage.StorageBucketVoucherLimitsSet
  211. handler: storage_StorageBucketVoucherLimitsSet
  212. - event: storage.PendingDataObjectsAccepted
  213. handler: storage_PendingDataObjectsAccepted
  214. - event: storage.StorageBucketInvitationCancelled
  215. handler: storage_StorageBucketInvitationCancelled
  216. - event: storage.StorageBucketOperatorInvited
  217. handler: storage_StorageBucketOperatorInvited
  218. - event: storage.StorageBucketOperatorRemoved
  219. handler: storage_StorageBucketOperatorRemoved
  220. - event: storage.UploadingBlockStatusUpdated
  221. handler: storage_UploadingBlockStatusUpdated
  222. - event: storage.DataObjectPerMegabyteFeeUpdated
  223. handler: storage_DataObjectPerMegabyteFeeUpdated
  224. - event: storage.StorageBucketsPerBagLimitUpdated
  225. handler: storage_StorageBucketsPerBagLimitUpdated
  226. - event: storage.StorageBucketsVoucherMaxLimitsUpdated
  227. handler: storage_StorageBucketsVoucherMaxLimitsUpdated
  228. - event: storage.DataObjectsMoved
  229. handler: storage_DataObjectsMoved
  230. - event: storage.DataObjectsDeleted
  231. handler: storage_DataObjectsDeleted
  232. - event: storage.StorageBucketStatusUpdated
  233. handler: storage_StorageBucketStatusUpdated
  234. - event: storage.UpdateBlacklist
  235. handler: storage_UpdateBlacklist
  236. - event: storage.DynamicBagDeleted
  237. handler: storage_DynamicBagDeleted
  238. - event: storage.DynamicBagCreated
  239. handler: storage_DynamicBagCreated
  240. - event: storage.VoucherChanged
  241. handler: storage_VoucherChanged
  242. - event: storage.StorageBucketDeleted
  243. handler: storage_StorageBucketDeleted
  244. - event: storage.DistributionBucketFamilyCreated
  245. handler: storage_DistributionBucketFamilyCreated
  246. - event: storage.DistributionBucketFamilyDeleted
  247. handler: storage_DistributionBucketFamilyDeleted
  248. - event: storage.DistributionBucketCreated
  249. handler: storage_DistributionBucketCreated
  250. - event: storage.DistributionBucketStatusUpdated
  251. handler: storage_DistributionBucketStatusUpdated
  252. - event: storage.DistributionBucketDeleted
  253. handler: storage_DistributionBucketDeleted
  254. - event: storage.DistributionBucketsUpdatedForBag
  255. handler: storage_DistributionBucketsUpdatedForBag
  256. - event: storage.DistributionBucketsPerBagLimitUpdated
  257. handler: storage_DistributionBucketsPerBagLimitUpdated
  258. - event: storage.DistributionBucketModeUpdated
  259. handler: storage_DistributionBucketModeUpdated
  260. - event: storage.DistributionBucketOperatorInvited
  261. handler: storage_DistributionBucketOperatorInvited
  262. - event: storage.DistributionBucketInvitationCancelled
  263. handler: storage_DistributionBucketInvitationCancelled
  264. - event: storage.DistributionBucketInvitationAccepted
  265. handler: storage_DistributionBucketInvitationAccepted
  266. - event: storage.DistributionBucketMetadataSet
  267. handler: storage_DistributionBucketMetadataSet
  268. - event: storage.DistributionBucketOperatorRemoved
  269. handler: storage_DistributionBucketOperatorRemoved
  270. - event: storage.DistributionBucketFamilyMetadataSet
  271. handler: storage_DistributionBucketFamilyMetadataSet
  272. extrinsicHandlers:
  273. # infer defaults here
  274. #- extrinsic: Balances.Transfer
  275. #- extrinsic: Sudo.batchCall
  276. # handler: handleSudoCall(DatabaseManager,SubstrateEvent)
  277. preBlockHooks:
  278. - handler: bootstrapData
  279. filter:
  280. height: "[0,0]" # will be executed only at genesis
  281. postBlockHooks: