-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
56 lines (56 loc) · 1.83 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: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: PassportV1Call
network: optimism
source:
abi: PassportV1Call
startBlock: 115775322
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ExecutePurchase(indexed uint256,indexed address,uint256,address,uint256,bool)
- ExecuteReserve(indexed uint256,indexed address,uint256,bool,bool)
- Reserve(indexed uint256,indexed address,uint256,(address,uint256)[])
- Payout(indexed address,uint256)
abis:
- name: PassportV1Call
file: ./abis/PassportV1Call.json
eventHandlers:
- event: ExecutePurchase(indexed uint256,indexed address,uint256,address,uint256,bool)
handler: handlePurchase
- event: Reserve(indexed uint256,indexed address,uint256,(address,uint256)[])
handler: handleReserve
- event: ExecuteReserve(indexed uint256,indexed address,uint256,bool,bool)
handler: handleExecuteReserve
- event: Payout(indexed address,uint256)
handler: handlePayout
file: ./src/passport.ts
- kind: ethereum
name: EscrowUpgradeable
network: optimism
source:
abi: EscrowUpgradeable
startBlock: 115775322
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Withdrawn(indexed address,uint256)
- Deposited(indexed address,uint256)
abis:
- name: EscrowUpgradeable
file: ./abis/EscrowUpgradeable.json
eventHandlers:
- event: Withdrawn(indexed address,uint256)
handler: handleWithdrawn
- event: Deposited(indexed address,uint256)
handler: handleDeposited
file: ./src/escrow.ts