Browse Source

query-node: manifest.yml

metmirr 4 years ago
parent
commit
febd6a48a3
2 changed files with 46 additions and 0 deletions
  1. 45 0
      query-node/manifest.yml
  2. 1 0
      query-node/package.json

+ 45 - 0
query-node/manifest.yml

@@ -0,0 +1,45 @@
+version: '0.1'
+description: Joystream query-node manifest file for antioch
+repository: https://github.com/Joystream/joystream
+hydraVersion: '2'
+dataSource:
+  indexerVersion: '3.9'
+  kind: substrate
+  chain: joystream
+entities:
+  - mappings/lib/generated/**/*.model.js
+# typegen:
+metadata:
+  source: ws://localhost:9944
+events:
+  - contentDirectory.EntityCreated
+  - contentDirectory.EntityRemoved
+  - contentDirectory.EntitySchemaSupportAdded
+  - contentDirectory.EntityPropertyValuesUpdated
+  - contentDirectory.TransactionCompleted
+  - contentDirectory.TransactionFailed
+outDir: ./mappings/generated/types
+customTypes:
+  lib: '@joystream/types/augment/all/types'
+  typedefsLoc: '../types/augment/all/defs.json'
+mappings:
+  hydraCommonVersion: '2.0.1-beta.0'
+  # js module that exports the handler functions
+  mappingsModule: mappings/lib/mappings
+  # additinal libraries the processor loads
+  # typically it is a module with event and extrinsic types generated by hydra-typegen
+  imports:
+    - mappings/lib/mappings/generated/types
+  eventHandlers:
+    - event: contentDirectory.EntityCreated
+      handler: contentDirectory_EntityCreated(DatabaseManager, SubstrateEvent)
+    - event: contentDirectory.EntityRemoved
+      handler: contentDirectory_EntityRemoved(DatabaseManager, SubstrateEvent)
+    - event: contentDirectory.EntitySchemaSupportAdded
+      handler: contentDirectory_EntitySchemaSupportAdded(DatabaseManager, SubstrateEvent)
+    - event: contentDirectory.EntityPropertyValuesUpdated
+      handler: contentDirectory_EntityPropertyValuesUpdated(DatabaseManager, SubstrateEvent)
+    - event: contentDirectory.TransactionCompleted
+      handler: contentDirectory_TransactionCompleted(DatabaseManager, SubstrateEvent)
+    - event: contentDirectory.TransactionFailed
+      handler: contentDirectory_TransactionFailed(DatabaseManager, SubstrateEvent)

+ 1 - 0
query-node/package.json

@@ -24,6 +24,7 @@
   "author": "",
   "license": "ISC",
   "devDependencies": {
+    "@dzlzv/hydra-cli": "0.1.8-1",
     "@dzlzv/hydra-processor": "2.1.0-beta.4",
     "@dzlzv/hydra-typegen": "^2.0.1-beta.0"
   },