-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
58 lines (58 loc) · 1.71 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
specVersion: 1.0.0
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: CookieJarFactory
network: gnosis
source:
abi: CookieJarFactory
address: "0x4c941CAfAc0B6D67a6c4eE5399927AA889aAb780"
startBlock: 34777160
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- DonationReceived
- OwnershipTransferred
- SummonCookieJar
abis:
- name: CookieJarFactory
file: ./abis/CookieJarFactory.json
eventHandlers:
- event: DonationReceived(address,uint256)
handler: handleDonationReceived
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SummonCookieJar(address,bytes,string)
handler: handleSummonCookieJar
file: ./src/cookie-jar-factory.ts
templates:
- kind: ethereum/contract
name: CookieJarTemplate
network: gnosis
source:
abi: CookieJar
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CookieJar
- Claim
- Reason
- ReasonAssessment
abis:
- name: CookieJar
file: ./abis/CookieJar.json
eventHandlers:
- event: Setup(bytes)
handler: handleSetup
- event: GiveCookie(indexed bytes32,indexed address,uint256,string)
handler: handleGiveCookie
- event: AssessReason(indexed bytes32,string,bool)
handler: handleAssessReason
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
file: ./src/cookieJar.ts