This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
71 lines (71 loc) · 2.15 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
70
71
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: gigpact
network: fuji
source:
abi: GigPact
address: "0x742490d61F0c3919D027D0CE8cDF65A136BEEDBa"
startBlock: 19217582
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- GigPactEntity
- LogPaymentMade
- DisputeData
- PayData
- TransactionEntity
abis:
- name: GigPact
file: ./abis/GigPactUpgradeable.json
eventHandlers:
- event: LogPactCreated(indexed address,bytes32)
handler: handleLogPactCreated
receipt: true
- event: LogPaymentMade(indexed bytes32,uint256,indexed address)
handler: handleLogPaymentMade
receipt: true
- event: LogStateUpdate(indexed bytes32,uint8,indexed address)
handler: handleLogStateUpdate
receipt: true
- event: LogPactAction(indexed bytes32)
handler: handleGigPactLogPactAction
receipt: true
file: ./src/gigPactHandlers.ts
- kind: ethereum
name: proposalpact
network: fuji
source:
abi: ProposalPact
address: "0x2C7EB1BCF526768c0D15E374AD7c71D7Aa9644D4"
startBlock: 19217481
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ProposalPactEntity
- VotingInfo
- UserInteractionData
- TransactionEntity
abis:
- name: ProposalPact
file: ./abis/ProposalPactUpgradeable.json
eventHandlers:
- event: LogPactCreated(indexed address,bytes32)
handler: handleLogProposalPactCreated
receipt: true
- event: LogPactAction(indexed bytes32)
handler: handleProposalPactLogPactAction
receipt: true
- event: LogContribution(indexed bytes32,address,uint256)
handler: handleLogContribution
receipt: true
- event: LogAmountOut(indexed bytes32,indexed address,uint256)
handler: handleLogAmountOut
receipt: true
file: ./src/proposalPactHanders.ts