-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
116 lines (116 loc) · 3.71 KB
/
subgraph.template.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Erc20PriceOracleVaultFactory
network: {{ network }}
source:
address: "{{ ERC20PriceOracleVaultFactory }}"
abi: Erc20PriceOracleVaultFactory
startBlock: {{ ERC20PriceOracleVaultFactoryBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- VerifyFactory
- Verify
abis:
- name: Erc20PriceOracleVaultFactory
file: ./abis/Erc20PriceOracleVaultFactory.json
eventHandlers:
- event: NewChild(address,address)
handler: handleNewChild
- event: Implementation(address,address)
handler: handleImplementation
file: ./src/Erc20PriceOracleVaultFactory.ts
- kind: ethereum/contract
name: TwoPriceOracleFactory
network: {{ network }}
source:
address: "{{ TwoPriceOracleFactory }}"
abi: TwoPriceOracleFactory
startBlock: {{ TwoPriceOracleFactoryBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- VerifyFactory
- Verify
abis:
- name: TwoPriceOracleFactory
file: ./abis/TwoPriceOracleFactory.json
eventHandlers:
- event: NewChild(address,address)
handler: handleNewChild
- event: Implementation(address,address)
handler: handleImplementation
# blockHandlers:
# - handler: handleBlock
# filter:
# kind: call
file: ./src/TwoPriceOracleFactory.ts
templates:
- kind: ethereum
name: Erc20PriceOracleVaultTemplate
network: {{ network }}
source:
abi: Erc20PriceOracleVault
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Approval
- ApprovalForAll
- Construction
- Deposit
- Transfer
- TransferBatch
- TransferSingle
- URI
- Withdraw
abis:
- name: Erc20PriceOracleVault
file: ./abis/Erc20PriceOracleVault.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: ERC20PriceOracleVaultConstruction(address,(address,(address,string,string,string)))
handler: handleConstruction
- event: Deposit(indexed address,indexed address,uint256,uint256)
handler: handleDeposit
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: URI(string,indexed uint256)
handler: handleURI
- event: Withdraw(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleWithdraw
file: ./src/Erc20PriceOracleVault.ts
- kind: ethereum
name: TwoPriceOracleTemplate
network: {{ network }}
source:
abi: TwoPriceOracle
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ReferencePrice
- Block
abis:
- name: TwoPriceOracle
file: ./abis/TwoPriceOracle.json
eventHandlers:
- event: Construction(address,(address,address))
handler: handleConstruction
file: ./src/TwoPriceOracle.ts