-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
59 lines (59 loc) · 1.89 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
49
50
51
52
53
54
55
56
57
58
59
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: ropsten
source:
address: "0xF165B2DB7B6f40e3fF133C4Ec68476ac9c742153"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- NewEmployer
- NewWorker
- NewGig
# - WorkerApplied
# - WorkerApproved
# - WorkDone
- NewFoodItem
# - RedeemedWolfToken
# - Minted
# - Burned
# - Transfer
# - Approval
# - OwnershipTransferred
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: NewEmployer(address,bytes32)
handler: handleNewEmployer
- event: NewWorker(address,bytes32)
handler: handleNewWorker
- event: NewGig(address,bytes32)
handler: handleNewGig
# - event: WorkerApplied(address,uint256)
# handler: handleWorkerApplied
# - event: WorkerApproved(address,uint256)
# handler: handleWorkerApproved
# - event: WorkDone(address,uint256)
# handler: handleWorkDone
- event: NewFoodItem(address,bytes32)
handler: handleNewFoodItem
# - event: RedeemedWolfToken(address,uint256)
# handler: handleRedeemedWolfToken
# - event: Minted(address,uint256)
# handler: handleMinted
# - event: Burned(address,uint256)
# handler: handleBurned
# - event: Transfer(indexed address,indexed address,uint256)
# handler: handleTransfer
# - event: Approval(indexed address,indexed address,uint256)
# handler: handleApproval
# - event: OwnershipTransferred(indexed address,indexed address)
# handler: handleOwnershipTransferred
file: ./src/mapping.ts