-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
69 lines (69 loc) · 2.47 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
specVersion: 0.0.2
description: Foam
repository: https://github.com/blocklytics/foam-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RegistryContract
network: mainnet
source:
address: "0x2832373dddad96bbfb44f1b7da11b6541026bf40"
abi: RegistryContract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Listing
- Challenge
- User
- Registry
abis:
- name: RegistryContract
file: ./abis/RegistryContract.json
eventHandlers:
- event: _Application(indexed bytes32,uint256,uint256,string)
handler: handle_Application
- event: _Challenge(indexed bytes32,uint256,uint256,string)
handler: handle_Challenge
- event: _Deposit(indexed bytes32,uint256,uint256)
handler: handle_Deposit
- event: _Withdrawal(indexed bytes32,uint256,uint256)
handler: handle_Withdrawal
- event: _ApplicationWhitelisted(indexed bytes32)
handler: handle_ApplicationWhitelisted
- event: _ListingWithdrawn(indexed bytes32)
handler: handle_ListingWithdrawn
- event: _TouchAndRemoved(indexed bytes32)
handler: handle_TouchAndRemoved
- event: _ChallengeFailed(indexed bytes32,indexed uint256,uint256,uint256)
handler: handle_ChallengeFailed
- event: _ChallengeSucceeded(indexed bytes32,indexed uint256,uint256,uint256)
handler: handle_ChallengeSucceeded
- event: _RewardClaimed(indexed uint256,uint256,address)
handler: handle_RewardClaimed
file: ./src/mapping.ts
- kind: ethereum/contract
name: VotingContract
network: mainnet
source:
address: "0x66f27365D66C0E8aD4ef87Db8cB4af63ce874b7b"
abi: VotingContract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Vote
abis:
- name: VotingContract
file: ./abis/VotingContract.json
eventHandlers:
- event: _VoteCommitted(indexed uint256,uint256,indexed address)
handler: handle_VoteCommitted
- event: _VoteRevealed(indexed uint256,uint256,uint256,uint256,indexed uint256,indexed address)
handler: handle_VoteRevealed
- event: _PollCreated(uint256,uint256,uint256,indexed uint256,indexed address)
handler: handle_PollCreated
file: ./src/mapping.ts