-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathhydra.yaml
63 lines (63 loc) · 1.72 KB
/
hydra.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
specVersion: 1.0.0
name: subquery-nova-hydra
version: 1.0.0
runner:
node:
name: "@subql/node"
version: ">=4.6.6"
options:
historical: true
query:
name: "@subql/query"
version: "*"
description: Nova SubQuery project
repository: https://github.com/nova-wallet/subquery-nova
schema:
file: ./schema.graphql
network:
chainId: "0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d"
endpoint: wss://hydradx-rpc.dwellir.com
dataSources:
- name: main
kind: substrate/Runtime
startBlock: 1
mapping:
file: ./dist/index.js
handlers:
- handler: handleHistoryElement
kind: substrate/CallHandler
- handler: handleTransfer
kind: substrate/EventHandler
filter:
module: balances
method: Transfer
- handler: handleAssetTransfer
kind: substrate/EventHandler
filter:
module: assets
method: Transferred
- handler: handleTokenTransfer
kind: substrate/EventHandler
filter:
module: tokens
method: Transfer
- handler: handleOmnipoolSwap
kind: substrate/EventHandler
filter:
module: omnipool
method: SellExecuted
- handler: handleOmnipoolSwap
kind: substrate/EventHandler
filter:
module: omnipool
method: BuyExecuted
- handler: handleHydraRouterSwap
kind: substrate/EventHandler
filter:
module: router
method: RouteExecuted
- handler: handleHydraRouterSwap
kind: substrate/EventHandler
filter:
module: router
method: Executed