forked from ToucanProtocol/CO2ken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
35 lines (35 loc) · 1.06 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
specVersion: 0.0.2
description: CO2ken
repository: https://github.com/CO2ken/CO2ken
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: CO2ken
network: rinkeby
source:
address: "0x3924a7254145d3a8baAb313A9EB72cb8e6d125f4"
abi: CO2ken
startBlock: 6072715 # The block in which the contract was deployed
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- UserBalance
- ContractBalance
abis:
- name: CO2ken
file: ./abis/co2ken.json
eventHandlers:
- event: CarbonOffsetted(indexed address,uint256)
handler: handleCarbonOffsetted
- event: Debug(uint256,uint256)
handler: handleDebug
- event: Minted(string,uint256,uint256)
handler: handleMinted
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Withdrawal(uint256)
handler: handleWithdrawal
file: ./src/mapping.ts