manifest.yml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. version: '0.1'
  2. description: Joystream query-node manifest file for sumer
  3. repository: https://github.com/Joystream/joystream
  4. hydraVersion: "2"
  5. dataSource:
  6. kind: substrate
  7. chain: joystream
  8. indexerVersion: '0.1.6'
  9. entities:
  10. - generated/graphql-server/dist/**/*.model.js
  11. typegen:
  12. metadata:
  13. source: wss://sumer-dev.joystream.app/rpc
  14. #source: wss://sumer.joystream.app
  15. #source: ws://localhost:9944 # use this to download types from local node (useful during development)
  16. events:
  17. # membership
  18. - members.MemberRegistered
  19. - members.MemberUpdatedAboutText
  20. - members.MemberUpdatedAvatar
  21. - members.MemberUpdatedHandle
  22. - members.MemberSetRootAccount
  23. - members.MemberSetControllerAccount
  24. # content directory
  25. - content.CuratorGroupCreated
  26. - content.CuratorGroupStatusSet
  27. - content.CuratorAdded
  28. - content.CuratorRemoved
  29. - content.ChannelCreated
  30. - content.ChannelUpdated
  31. - content.ChannelAssetsRemoved
  32. - content.ChannelCensorshipStatusUpdated
  33. - content.ChannelOwnershipTransferRequested
  34. - content.ChannelOwnershipTransferRequestWithdrawn
  35. - content.ChannelOwnershipTransferred
  36. - content.ChannelCategoryCreated
  37. - content.ChannelCategoryUpdated
  38. - content.ChannelCategoryDeleted
  39. - content.VideoCategoryCreated
  40. - content.VideoCategoryUpdated
  41. - content.VideoCategoryDeleted
  42. - content.VideoCreated
  43. - content.VideoUpdated
  44. - content.VideoDeleted
  45. - content.VideoCensorshipStatusUpdated
  46. - content.FeaturedVideosSet
  47. # storage
  48. - data_directory.ContentAdded
  49. - data_directory.ContentRemoved
  50. - data_directory.ContentAccepted
  51. - data_directory.ContentRejected
  52. - data_directory.ContentUploadingStatusUpdated
  53. # working groups
  54. - storage_working_group.WorkerStorageUpdated
  55. - storage_working_group.OpeningFilled
  56. - storage_working_group.TerminatedWorker
  57. - storage_working_group.WorkerExited
  58. - storage_working_group.TerminatedLeader
  59. - gateway_working_group.WorkerStorageUpdated
  60. - gateway_working_group.OpeningFilled
  61. - gateway_working_group.TerminatedWorker
  62. - gateway_working_group.WorkerExited
  63. - gateway_working_group.TerminatedLeader
  64. calls:
  65. # members
  66. - members.buyMembership
  67. - members.addScreenedMember
  68. - members.changeMemberAboutText
  69. - members.changeMemberAvatar
  70. - members.changeMemberHandle
  71. - members.setRootAccount
  72. - members.setControllerAccount
  73. - members.updateMembership
  74. # content directory
  75. - content.create_curator_group
  76. - content.set_curator_group_status
  77. - content.add_curator_to_group
  78. - content.remove_curator_from_group
  79. - content.create_channel
  80. - content.update_channel
  81. - content.remove_channel_assets
  82. - content.update_channel_censorship_status
  83. - content.create_channel_category
  84. - content.update_channel_category
  85. - content.delete_channel_category
  86. - content.request_channel_transfer
  87. - content.cancel_channel_transfer_request
  88. - content.accept_channel_transfer
  89. - content.create_video
  90. - content.update_video
  91. - content.delete_video
  92. - content.create_playlist
  93. - content.update_playlist
  94. - content.delete_playlist
  95. - content.set_featured_videos
  96. - content.create_video_category
  97. - content.update_video_category
  98. - content.delete_video_category
  99. - content.remove_person_from_video
  100. - content.update_video_censorship_status
  101. # storage
  102. - data_directory.add_content
  103. - data_directory.remove_content
  104. - data_directory.accept_content
  105. - data_directory.update_content_uploading_status
  106. # working groups
  107. - storage_working_group.update_role_storage
  108. - storage_working_group.fill_opening
  109. - storage_working_group.leave_role
  110. - storage_working_group.terminate_role
  111. - gateway_working_group.update_role_storage
  112. - gateway_working_group.fill_opening
  113. - gateway_working_group.leave_role
  114. - gateway_working_group.terminate_role
  115. outDir: ./generated/types
  116. customTypes:
  117. lib: '@joystream/types/augment'
  118. typedefsLoc: '../types/augment/all/defs.json'
  119. mappings:
  120. # js module that exports the handler functions
  121. mappingsModule: mappings
  122. # additinal libraries the processor loads
  123. # typically it is a module with event and extrinsic types generated by hydra-typegen
  124. imports:
  125. - mappings/lib/generated/types
  126. eventHandlers:
  127. # membership
  128. - event: members.MemberRegistered
  129. handler: members_MemberRegistered(DatabaseManager, SubstrateEvent)
  130. - event: members.MemberUpdatedAboutText
  131. handler: members_MemberUpdatedAboutText(DatabaseManager, SubstrateEvent)
  132. - event: members.MemberUpdatedAvatar
  133. handler: members_MemberUpdatedAvatar(DatabaseManager, SubstrateEvent)
  134. - event: members.MemberUpdatedHandle
  135. handler: members_MemberUpdatedHandle(DatabaseManager, SubstrateEvent)
  136. - event: members.MemberSetRootAccount
  137. handler: members_MemberSetRootAccount(DatabaseManager, SubstrateEvent)
  138. - event: members.MemberSetControllerAccount
  139. handler: members_MemberSetControllerAccount(DatabaseManager, SubstrateEvent)
  140. # content directory
  141. - event: content.CuratorGroupCreated
  142. handler: content_CuratorGroupCreated(DatabaseManager, SubstrateEvent)
  143. - event: content.CuratorGroupStatusSet
  144. handler: content_CuratorGroupStatusSet(DatabaseManager, SubstrateEvent)
  145. - event: content.CuratorAdded
  146. handler: content_CuratorAdded(DatabaseManager, SubstrateEvent)
  147. - event: content.CuratorRemoved
  148. handler: content_CuratorRemoved(DatabaseManager, SubstrateEvent)
  149. - event: content.ChannelCreated
  150. handler: content_ChannelCreated(DatabaseManager, SubstrateEvent)
  151. - event: content.ChannelUpdated
  152. handler: content_ChannelUpdated(DatabaseManager, SubstrateEvent)
  153. - event: content.ChannelAssetsRemoved
  154. handler: content_ChannelAssetsRemoved(DatabaseManager, SubstrateEvent)
  155. - event: content.ChannelCensorshipStatusUpdated
  156. handler: content_ChannelCensorshipStatusUpdated(DatabaseManager, SubstrateEvent)
  157. # these events are defined in runtime but never calles (at the time of writing)
  158. #- event: content.ChannelOwnershipTransferRequested
  159. # handler: content_ChannelOwnershipTransferRequested(DatabaseManager, SubstrateEvent)
  160. #- event: content.ChannelOwnershipTransferRequestWithdrawn
  161. # handler: content_ChannelOwnershipTransferRequestWithdrawn(DatabaseManager, SubstrateEvent)
  162. #- event: content.ChannelOwnershipTransferred
  163. # handler: content_ChannelOwnershipTransferred(DatabaseManager, SubstrateEvent)
  164. - event: content.ChannelCategoryCreated
  165. handler: content_ChannelCategoryCreated(DatabaseManager, SubstrateEvent)
  166. - event: content.ChannelCategoryUpdated
  167. handler: content_ChannelCategoryUpdated(DatabaseManager, SubstrateEvent)
  168. - event: content.ChannelCategoryDeleted
  169. handler: content_ChannelCategoryDeleted(DatabaseManager, SubstrateEvent)
  170. - event: content.VideoCategoryCreated
  171. handler: content_VideoCategoryCreated(DatabaseManager, SubstrateEvent)
  172. - event: content.VideoCategoryUpdated
  173. handler: content_VideoCategoryUpdated(DatabaseManager, SubstrateEvent)
  174. - event: content.VideoCategoryDeleted
  175. handler: content_VideoCategoryDeleted(DatabaseManager, SubstrateEvent)
  176. - event: content.VideoCreated
  177. handler: content_VideoCreated(DatabaseManager, SubstrateEvent)
  178. - event: content.VideoUpdated
  179. handler: content_VideoUpdated(DatabaseManager, SubstrateEvent)
  180. - event: content.VideoDeleted
  181. handler: content_VideoDeleted(DatabaseManager, SubstrateEvent)
  182. - event: content.VideoCensorshipStatusUpdated
  183. handler: content_VideoCensorshipStatusUpdated(DatabaseManager, SubstrateEvent)
  184. - event: content.FeaturedVideosSet
  185. handler: content_FeaturedVideosSet(DatabaseManager, SubstrateEvent)
  186. # storage
  187. - event: dataDirectory.ContentAdded
  188. handler: dataDirectory_ContentAdded(DatabaseManager, SubstrateEvent)
  189. - event: dataDirectory.ContentRemoved
  190. handler: dataDirectory_ContentRemoved(DatabaseManager, SubstrateEvent)
  191. - event: dataDirectory.ContentAccepted
  192. handler: dataDirectory_ContentAccepted(DatabaseManager, SubstrateEvent)
  193. # not handled at the moment
  194. #- event: dataDirectory.ContentUploadingStatusUpdated
  195. # handler: data_directory_ContentUploadingStatusUpdated(DatabaseManager, SubstrateEvent)
  196. # working groups
  197. ## storage - workers
  198. - event: storageWorkingGroup.WorkerStorageUpdated
  199. handler: storageWorkingGroup_WorkerStorageUpdated(DatabaseManager, SubstrateEvent)
  200. - event: storageWorkingGroup.OpeningFilled
  201. handler: storageWorkingGroup_OpeningFilled(DatabaseManager, SubstrateEvent)
  202. - event: storageWorkingGroup.TerminatedWorker
  203. handler: storageWorkingGroup_TerminatedWorker(DatabaseManager, SubstrateEvent)
  204. - event: storageWorkingGroup.WorkerExited
  205. handler: storageWorkingGroup_WorkerExited(DatabaseManager, SubstrateEvent)
  206. ## storage - leader
  207. - event: storageWorkingGroup.TerminatedLeader
  208. handler: storageWorkingGroup_TerminatedLeader(DatabaseManager, SubstrateEvent)
  209. ## gateway - workers
  210. - event: gatewayWorkingGroup.WorkerStorageUpdated
  211. handler: gatewayWorkingGroup_WorkerStorageUpdated(DatabaseManager, SubstrateEvent)
  212. - event: gatewayWorkingGroup.OpeningFilled
  213. handler: gatewayWorkingGroup_OpeningFilled(DatabaseManager, SubstrateEvent)
  214. - event: gatewayWorkingGroup.TerminatedWorker
  215. handler: gatewayWorkingGroup_TerminatedWorker(DatabaseManager, SubstrateEvent)
  216. - event: gatewayWorkingGroup.WorkerExited
  217. handler: gatewayWorkingGroup_WorkerExited(DatabaseManager, SubstrateEvent)
  218. ## gateway - leader
  219. - event: gatewayWorkingGroup.TerminatedLeader
  220. handler: gatewayWorkingGroup_TerminatedLeader(DatabaseManager, SubstrateEvent)
  221. extrinsicHandlers:
  222. # infer defaults here
  223. #- extrinsic: Balances.Transfer
  224. #- extrinsic: Sudo.batchCall
  225. # handler: handleSudoCall(DatabaseManager,SubstrateEvent)
  226. preBlockHooks:
  227. postBlockHooks: