-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
45 lines (45 loc) · 1.1 KB
/
subgraph.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
specVersion: 0.0.2
description: Gravatar for Ethereum
repository: https://github.com/ksvirsky/graph-oneshot-error
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: MyFactory
network: rinkeby
source:
address: '0xD5FFCF8FBb1590270F0355B5cAdFCfC0B737E287'
abi: MyFactory
startBlock: 7895454
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Gravatar
abis:
- name: MyFactory
file: ./abis/MyFactory.abi
eventHandlers:
- event: NewContract(address)
handler: handleNewContract
file: ./src/factory.ts
templates:
- name: MyContract
kind: ethereum/contract
network: rinkeby
source:
abi: MyContract
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Gravatar
file: ./src/contract.ts
abis:
- name: MyContract
file: ./abis/MyContract.abi
eventHandlers:
- event: SomeEvent()
handler: handleSomeEvent