-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
141 lines (141 loc) · 5.53 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
specVersion: 0.0.1
description: Affogato schema
repository: https://github.com/jdestephen/sg_affogato
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ActorFactory
network: development
source:
address: '0x6b63678F3F12a7B2bc3e56105b9D30274D1EbB40' #'0x51dC72631E9C730590cc93aB631E1B83B9067C0d'
abi: ActorFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- Actor
abis:
- name: ActorFactory
file: ./abis/ActorFactory.json
eventHandlers:
- event: LogAddActor(address,bytes32)
handler: handleNewActor
- event: LogCooperativeAddActor(address,address,bytes32)
handler: handleCooperativeAddActor
- event: LogDestroyActor(address)
handler: handleDestroyActor
- event: LogCooperativeDestroyActor(address,address)
handler: handleCooperativeDestroyActor
- event: LogApproval(address,address,bool)
handler: handleApproval
- event: LogCooperativeApproval(address,address,bool,address)
handler: handleCooperativeApproval
file: ./src/actor.ts
- kind: ethereum/contract
name: FarmFactory
network: development
source:
address: '0x1B9330fFfB8b92501A47e8FC07470A0796fb9A5F' #'0x59f0831790a1413eef94dA83276F0A1F64DC9289'
abi: FarmFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- Farm
abis:
- name: FarmFactory
file: ./abis/FarmFactory.json
eventHandlers:
- event: LogAddFarm(uint256,address,bytes32,bytes32,bytes32,bytes32,string)
handler: handleNewFarm
- event: LogCooperativeAddFarm(uint256,address,bytes32,bytes32,bytes32,bytes32,string,address)
handler: handleCooperativeAddFarm
- event: LogUpdateFarm(uint256,address,bytes32,bytes32,bytes32,bytes32,string)
handler: handleUpdatedFarm
- event: LogCooperativeUpdateFarm(uint256,address,bytes32,bytes32,bytes32,bytes32,string,address)
handler: handleCooperativeUpdatedFarm
- event: LogDestroyFarm(address,uint256)
handler: handleDestroyFarm
- event: LogCooperativeDestroyFarm(address,address,uint256)
handler: handleCooperativeDestroyFarm
file: ./src/farm.ts
- kind: ethereum/contract
name: CoffeeBatchFactory
network: development
source:
address: '0xFF972a1570BB6d234a983DF3C5300aAa65Fca0e5' #'0xB5b0C606782Cb8e574d56989CA77FB7672251085'
abi: CoffeeBatchFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- CoffeeBatch
abis:
- name: CoffeeBatchFactory
file: ./abis/CoffeeBatchFactory.json
eventHandlers:
- event: LogAddCoffeeBatch(uint256,address,uint256,uint16,bytes32,bytes32,uint32,bytes32,string)
handler: handleAddCoffeeBatch
- event: LogCooperativeAddCoffeeBatch(uint256,address,uint256,uint16,bytes32,bytes32,uint32,bytes32,string,address)
handler: handleCooperativeAddCoffeeBatch
- event: LogUpdateCoffeeBatch(uint256,uint256,address,uint16,bytes32,bytes32,uint32,bytes32,string)
handler: handleUpdateCoffeeBatch
- event: LogCooperativeUpdateCoffeeBatch(uint256,uint256,address,uint16,bytes32,bytes32,uint32,bytes32,string,address)
handler: handleCooperativeUpdateCoffeeBatch
- event: LogDestroyCoffeeBatch(address,uint256)
handler: handleDestroyCoffeeBatch
- event: LogCooperativeDestroyCoffeeBatch(address,address,uint256)
handler: handleCooperativeDestroyCoffeeBatch
file: ./src/coffeeBatch.ts
- kind: ethereum/contract
name: CupProfileFactory
network: development
source:
address: '0x857d48d02802839aF8846cabDdde584D136a82A0' #'0xDBF134Ac46C6C221d84768Ac38fa3E32fF12AAC5'
abi: CupProfileFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- CupProfile
abis:
- name: CupProfileFactory
file: ./abis/CupProfileFactory.json
eventHandlers:
- event: LogAddCupProfile(uint256,uint256,address,string,string,uint16)
handler: handleAddCupProfile
- event: LogUpdateCupProfile(uint256,string,string,uint16)
handler: handleUpdateCupProfile
- event: LogDestroyCupProfile(address,uint256)
handler: handleDestroyCupProfile
file: ./src/cupProfile.ts
- kind: ethereum/contract
name: CertificateFactory
network: development
source:
address: '0xf9fb318804B9190D30Ff5D6Fb9bD026f70De1eA0' #'0xe35CAf4943Dd33d605fD333D4cae5712fa11E50E'
abi: CertificateFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- Certificate
abis:
- name: CertificateFactory
file: ./abis/CertificateFactory.json
eventHandlers:
- event: LogAddCertificate(uint256,address,bytes32,string,string,string)
handler: handleAddCertificate
- event: LogUpdateCertificate(uint256,address,bytes32,string,string,string)
handler: handleUpdateCertificate
- event: LogAssignCertificate(address,address,uint256,uint256)
handler: handleAssignCertificate
- event: LogUnassignCertificate(address,address,uint256,uint256)
handler: handleUnassignCertificate
file: ./src/certificate.ts