-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
47 lines (47 loc) · 1.51 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Commit2Reveal2DRB
network: thanos-stack
source:
address: "0xBB5D63b3a211Ec8bB37504e345523Ae4f9f0B3E2"
abi: Commit2Reveal2DRB
startBlock: 192768
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Activated
- DeActivated
- EIP712DomainChanged
- L1FeeCalculationSet
- OwnershipTransferred
- RandomNumberGenerated
- RandomNumberRequested
- MerkleRootSubmitted
abis:
- name: Commit2Reveal2DRB
file: ./abis/Commit2Reveal2DRB.json
eventHandlers:
- event: Activated(address)
handler: handleActivated
- event: DeActivated(address)
handler: handleDeActivated
- event: EIP712DomainChanged()
handler: handleEIP712DomainChanged
- event: L1FeeCalculationSet(uint8,uint8)
handler: handleL1FeeCalculationSet
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: RandomNumberGenerated(uint256,uint256,address[])
handler: handleRandomNumberGenerated
- event: RandomNumberRequested(uint256,address[])
handler: handleRandomNumberRequested
- event: MerkleRootSubmitted(uint256,bytes32)
handler: handleMerkleRootSubmitted
file: ./src/commit-2-reveal-2-drb.ts