-
Notifications
You must be signed in to change notification settings - Fork 4
/
subgraph.yaml.mustache
132 lines (132 loc) · 4.78 KB
/
subgraph.yaml.mustache
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: OpenQ
network: {{ network }}
source:
address: '{{ openQAddress }}'
abi: OpenQ
{{#openQStartBlock}}
startBlock: {{ openQStartBlock }}
{{/openQStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Bounty
- User
- Deposit
- Refund
- Payout
- Organization
- TokenBalance
- UserEarnedTokenBalance
- UserFundedTokenBalance
abis:
- name: OpenQ
file: ./abis/OpenQ.json
eventHandlers:
- event: BountyCreated(string,string,address,address,uint256,uint256,bytes,uint256)
handler: handleBountyCreated
- event: FundingGoalSet(address,address,uint256,uint256,bytes,uint256)
handler: handleFundingGoalSet
- event: PayoutSet(address,address,uint256,uint256,bytes,uint256)
handler: handlePayoutSet
- event: PayoutScheduleSet(address,address,uint256[],uint256,bytes,uint256)
handler: handlePayoutScheduleSet
- event: BountyClosed(string,address,string,address,uint256,uint256,bytes,uint256)
handler: handleBountyClosed
- event: ExternalUserIdAssociatedWithAddress(string,address,string,address,bytes,uint256)
handler: handleExternalUserIdAssociatedWithAddress
- event: InvoiceRequiredSet(address,bool,uint256,bytes,uint256)
handler: handleInvoiceRequiredSet
- event: KYCRequiredSet(address,bool,uint256,bytes,uint256)
handler: handleKycRequiredSet
- event: SupportingDocumentsRequiredSet(address,bool,uint256,bytes,uint256)
handler: handleSupportingDocumentsRequiredSet
- event: InvoiceCompleteSet(address,uint256,bytes,uint256)
handler: handleInvoiceCompleteSet
- event: SupportingDocumentsCompleteSet(address,uint256,bytes,uint256)
handler: handleSupportingDocumentsCompleteSet
- event: TierWinnerSelected(address,string[],bytes,uint256)
handler: handleTierWinnerSelected
file: ./src/mapping.ts
- kind: ethereum/contract
name: ClaimManager
network: {{ network }}
source:
address: '{{ claimManagerAddress }}'
abi: ClaimManager
{{#claimManagerStartBlock}}
startBlock: {{ claimManagerStartBlock }}
{{/claimManagerStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Bounty
- User
- Deposit
- Refund
- Payout
- Organization
- TokenBalance
- UserEarnedTokenBalance
- UserFundedTokenBalance
- Claim
- OrganizationPayoutTokenBalance
- UserPayoutTokenBalance
- PayoutTokenBalance
abis:
- name: ClaimManager
file: ./abis/ClaimManager.json
eventHandlers:
- event: BountyClosed(string,address,string,address,uint256,uint256,bytes,uint256)
handler: handleBountyClosed
- event: ClaimSuccess(uint256,uint256,bytes,uint256)
handler: handleClaimSuccess
- event: NFTClaimed(string,address,string,address,uint256,address,uint256,uint256,bytes,uint256)
handler: handleNftClaimed
- event: TokenBalanceClaimed(string,address,string,address,uint256,address,uint256,uint256,bytes,uint256)
handler: handleTokenBalanceClaimed
file: ./src/mapping.ts
- kind: ethereum/contract
name: DepositManager
network: {{ network }}
source:
address: '{{ depositManagerAddress }}'
abi: DepositManager
{{#depositManagerStartBlock}}
startBlock: {{ depositManagerStartBlock }}
{{/depositManagerStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Bounty
- User
- Deposit
- Refund
- Payout
- Organization
- TokenBalance
- UserEarnedTokenBalance
- UserFundedTokenBalance
abis:
- name: DepositManager
file: ./abis/DepositManager.json
eventHandlers:
- event: TokenDepositReceived(bytes32,address,string,string,address,uint256,address,uint256,uint256,uint256,bytes,uint256)
handler: handleTokenDepositReceived
- event: NFTDepositReceived(bytes32,address,string,string,address,uint256,address,uint256,uint256,uint256,bytes,uint256)
handler: handleNftDepositReceived
- event: DepositRefunded(bytes32,string,address,string,uint256,address,uint256,uint256,bytes,uint256)
handler: handleDepositRefunded
- event: DepositExtended(bytes32,uint256,uint256,bytes,uint256)
handler: handleDepositExtended
file: ./src/mapping.ts