-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph_kovan.yaml
68 lines (68 loc) · 1.78 KB
/
subgraph_kovan.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Main
network: kovan
source:
address: "0x1EC422B81f33F5FEb1CADf0F19aCD6988dc1d873"
abi: Main
startBlock: 27615972
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
abis:
- name: Main
file: ./abis/Main.json
eventHandlers:
- event: UserDeployed(address,address,string,string)
handler: handleUserDeployed
- event: ItemDeployed(address,address,address,string,string,uint256,address,uint256,uint256,string)
handler: handleItemDeployed
file: ./src/mapping.ts
templates:
- kind: ethereum/contract
name: User
network: kovan
source:
abi: User
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
- Item
abis:
- name: User
file: ./abis/User.json
eventHandlers:
- event: UserUpdated(address,string,string)
handler: handleUserUpdated
file: ./src/mapping.ts
- kind: ethereum/contract
name: Item
network: kovan
source:
abi: Item
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Item
abis:
- name: Item
file: ./abis/Item.json
eventHandlers:
- event: ItemUpdated(address,string,string)
handler: handleItemUpdated
- event: StartedPurchasing(address,bytes32,int96,uint256)
handler: handleStartedPurchasing
- event: FinishedPurchasing(address,uint256)
handler: handleFinishedPurchasing
file: ./src/mapping.ts