-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
30 lines (30 loc) · 931 Bytes
/
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: KyberDao
network: mainnet
source:
address: "0x49bdd8854481005bba4acebabf6e06cd5f6312e9"
abi: KyberDao
startBlock: 10403248
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- CancelledCampaign
- NewCampaignCreated
- Voted
abis:
- name: KyberDao
file: ./abis/KyberDao.json
eventHandlers:
- event: CancelledCampaign(indexed uint256)
handler: handleCancelledCampaign
- event: NewCampaignCreated(uint8,indexed uint256,uint256,uint256,uint256,uint256,uint256,uint256[],bytes)
handler: handleNewCampaignCreated
- event: Voted(indexed address,indexed uint256,indexed uint256,uint256)
handler: handleVoted
file: ./src/mapping.ts