-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
73 lines (71 loc) · 2.65 KB
/
subgraph.yaml
File metadata and controls
73 lines (71 loc) · 2.65 KB
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
70
71
72
73
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: PactPaymentChannel
network: arbitrum-one
source:
address: "0x5a9D124c05B425CD90613326577E03B3eBd1F891"
abi: PactPaymentChannel
startBlock: 439762277
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- PaymentChannel
- Protocol
abis:
- name: PactPaymentChannel
file: ./abis/PactPaymentChannel.json
eventHandlers:
- event: ChannelOpened(indexed uint256,indexed address,indexed address,uint256)
handler: handleChannelOpened
- event: ChannelFunded(indexed uint256,indexed address,uint256)
handler: handleChannelFunded
- event: ChannelCoopClosed(indexed uint256,uint256,uint256)
handler: handleChannelCoopClosed
- event: ChannelCloseInitiated(indexed uint256,uint256,uint256,uint256,uint256)
handler: handleChannelCloseInitiated
- event: ChannelChallenged(indexed uint256,uint256,uint256,uint256)
handler: handleChannelChallenged
- event: ChannelSettled(indexed uint256,uint256,uint256)
handler: handleChannelSettled
file: ./src/channel-mappings.ts
- kind: ethereum
name: PactEscrowV2
network: arbitrum-one
source:
address: "0x220B97972d6028Acd70221890771E275e7734BFB"
abi: PactEscrowV2
startBlock: 439912433
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Pact
- PactHistoryEvent
- Protocol
abis:
- name: PactEscrowV2
file: ./abis/PactEscrowV2.json
eventHandlers:
- event: PactCreated(indexed uint256,indexed address,indexed address,address,uint256,uint256,uint256,uint256,uint256)
handler: handlePactCreated
- event: WorkSubmitted(indexed uint256,indexed address,bytes32)
handler: handleWorkSubmitted
- event: PactApproved(indexed uint256,indexed address)
handler: handlePactApproved
- event: PactDisputed(indexed uint256,indexed address)
handler: handlePactDisputed
- event: PactReleased(indexed uint256,indexed address,uint256)
handler: handlePactReleased
- event: PactRefunded(indexed uint256,indexed address,uint256)
handler: handlePactRefunded
- event: ArbitrationRuled(indexed uint256,indexed address,bool)
handler: handleArbitrationRuled
- event: ArbitrationFinalized(indexed uint256)
handler: handleArbitrationFinalized
file: ./src/escrow-mappings.ts