-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
56 lines (56 loc) · 1.56 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
specVersion: 0.0.4
description: DAOHaus V3 Subgraph
repository: 'https://github.com/hausdao/daohaus-v3-subgraph-sandbox'
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: TcrSummoner
network: sepolia
source:
address: '0x763b61A62EF076ad960E1d513713B2aeD7C1b88e'
abi: TcrSummoner
startBlock: 5369416
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Registry
abis:
- name: TcrSummoner
file: ./abis/TcrSummoner.json
eventHandlers:
- event: >-
SummonDaoStake(indexed address,indexed
address,uint256,uint256,string)
handler: handleSummonDaoStake
file: ./src/tcr-summoner-mapping.ts
templates:
- kind: ethereum/contract
name: TcrTemplate
network: sepolia
source:
abi: Tcr
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/tcr-mapping.ts
entities:
- Registry
- Vote
- Voter
- EventTransaction
abis:
- name: Tcr
file: ./abis/Tcr.json
eventHandlers:
- event: 'Init(uint256,uint256)'
handler: handleInit
- event: 'ClaimTokens(indexed address,uint256)'
handler: handleClaimTokens
- event: 'VoteCasted(uint56,indexed address,uint152,uint48)'
handler: handleVoteCasted
- event: 'TokensReleased(uint56,indexed address,uint152,uint48)'
handler: handleTokensReleased