-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
48 lines (48 loc) · 1.31 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
46
47
48
specVersion: 0.0.2
schema:
file: ./src/schema.graphql
dataSources:
- kind: ethereum/contract
name: YourContract
network: localhost
source:
abi: YourContract
address: '0x5FbDB2315678afecb367f032d93F642f64180aa3'
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Purpose
- Sender
abis:
- name: YourContract
file: ./abis/localhost_YourContract.json
eventHandlers:
- event: SetPurpose(address,string)
handler: handleSetPurpose
file: ./src/mapping.ts
- kind: ethereum/contract
name: Webway
network: localhost
source:
abi: Webway
address: '0xe7f1725e7734ce288f8367e1bb143e90bb3f0512'
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Owner
- ActiveEffect
abis:
- name: Webway
file: ./abis/localhost_Webway.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: EffectToggle(uint256,string,bool,string)
handler: handleEffectToggle
- event: ChangeURI(uint256,string)
handler: handleChangeURI
file: ./src/mapping.ts