-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.gnosis.yaml
367 lines (367 loc) · 12.5 KB
/
subgraph.gnosis.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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
specVersion: 0.0.2
description: The Verified Wallet is for issuers and investors of tokenized securities.
repository: https://github.com/verified-network/verified-graph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: SecuritiesFactory
network: gnosis
source:
address: '0x9cd9719f897C09D8287A97679f516f6323a54E7d'
abi: SecuritiesFactory
startBlock: 35333821
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Issuer
- Token
- Security
abis:
- name: SecuritiesFactory
file: ./abis/SecuritiesFactory.json
- name: Security
file: ./abis/Security.json
eventHandlers:
- event: securitiesAdded(indexed address,bytes32,address,bytes32,address,bool,address,bytes32[],bytes32)
handler: handleSecurityCreated
- kind: ethereum/contract
name: Client
network: gnosis
source:
address: '0x312C59864CbCB34bBB4401185d634ead05650fBF'
abi: Client
startBlock: 35333817
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/client.ts
entities:
- Manager
- User
abis:
- name: Client
file: ./abis/Client.json
eventHandlers:
- event: ManagerAdded(address,indexed address,bytes32,bytes32,bytes32)
handler: handleManagerCreated
- event: ManagerRemoved(address,indexed address,bytes32,bytes32)
handler: handleManagerRemoved
- event: UserAdded(address,bytes32,bytes32,bytes32,uint256)
handler: handleUserCreated
- kind: ethereum/contract
name: Liquidity
network: gnosis
source:
address: '0x36A6efC3276e2d2d015c9e96af3957aB5293b662'
abi: Liquidity
startBlock: 34473710
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/liquidity.ts
entities:
- Platform
- User
- LiquidityTokenRequests
- LiquidityTokenIssues
- LiquidityOnPlatform
- ManagerRoI
- PlatformRoI
- InvestorRoI
abis:
- name: Liquidity
file: ./abis/Liquidity.json
eventHandlers:
- event: SupportToken(indexed address,string)
handler: handleSupportedToken
- event: RegisterPlatform(indexed address,bytes32)
handler: handlePlatformRegistration
- event: RequestIssue(indexed address,address,uint256,uint256)
handler: handleIssueRequest
- event: IssuedVitta(indexed address,address,uint256,uint256)
handler: handleIssuedVitta
- event: PlatformLiquidity(indexed address,address,uint256,address,uint256)
handler: handlePlatformLiquidity
- event: ManagerReturns(indexed address,indexed address,address,uint256)
handler: handleManagerReturns
- event: PlatformReturns(indexed address,address,uint256)
handler: handlePlatformReturns
- event: InvestorReturns(indexed address,indexed address,address,uint256,uint256)
handler: handleInvestorReturns
- event: PlatformManagers(indexed address,address)
handler: handlePlatformManagers
- kind: ethereum/contract
name: Distribution
network: gnosis
source:
address: '0x812cD96Bd1D9C35EaCD3F09Dc504B2d30e63EFe5'
abi: Distribution
startBlock: 34476039
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/distribution.ts
entities:
- RevenueShares
- Token
abis:
- name: Distribution
file: ./abis/Distribution.json
eventHandlers:
- event: RevenueShare(bytes32,indexed address,address,uint256,uint256)
handler: handleDistribution
- kind: ethereum/contract
name: PrimaryIssueManager
network: gnosis
source:
address: '0xf9CA2Ea876CB561610b89Cf3c009B723579f60C9'
abi: PrimaryIssueManager
startBlock: 35334115
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/primaries.ts
entities:
- Subscribers
- LiquidityProviders
- Offers
- Closures
- Refunds
- Allotments
- Settlements
- FeeCollections
abis:
- name: PrimaryIssueManager
file: ./abis/PrimaryIssueManager.json
eventHandlers:
- event: marketmakers(indexed address,address,address,address,uint256,uint256,uint256)
handler: handleMarketmakers
- event: subscribers(indexed address,bytes32,address,address,uint256,uint256,uint256,bool)
handler: handlePrimaryInvestors
- event: offers(address,indexed address,uint256,address,uint256,uint256,bytes32,uint256,string)
handler: handleOffers
- event: closures(indexed bytes32,address,uint256)
handler: handleClosures
- event: allotments(indexed bytes32,address,address,uint256,address,uint256,uint256)
handler: handleAllotments
- event: refunds(indexed bytes32,address,address,uint256,address,uint256,uint256)
handler: handleRefunds
- event: settlements(indexed bytes32,address,address,address,uint256,address,uint256)
handler: handleSettlements
- event: feecollection(indexed address,uint256,uint256)
handler: handleFeeCollections
- kind: ethereum/contract
name: SecondaryIssueManager
network: gnosis
source:
address: '0x95b73422B232710953F8454e39E72672a48D88ED'
abi: SecondaryIssueManager
startBlock: 35334121
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/secondaries.ts
entities:
- Trades
- Investors
- Closures
- FeeCollections
abis:
- name: SecondaryIssueManager
file: ./abis/SecondaryIssueManager.json
eventHandlers:
- event: tradeSettled(indexed bytes32,address,address,uint256,address,uint256,address,bytes32,bytes32,uint256,uint256)
handler: handleTradeSettled
- event: subscribers(bytes32,address,address,indexed address,address,uint256,uint256,bytes32,bytes32,uint256)
handler: handleSecondaryInvestors
- event: closures(indexed bytes32,address,uint256)
handler: handleClosures
- event: feecollection(indexed address,uint256,uint256)
handler: handleFeeCollections
- kind: ethereum/contract
name: MarginIssueManager
network: gnosis
source:
address: '0x0F248837AAd71e08A2AE43d8e148A6AbE891Daa6'
abi: MarginIssueManager
startBlock: 35334128
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/margintrades.ts
entities:
- Trades
- Investors
- Closures
- FeeCollections
- MarginCollateral
- MarginTradePnL
abis:
- name: MarginIssueManager
file: ./abis/MarginIssueManager.json
eventHandlers:
- event: tradeSettled(indexed bytes32,address,address,uint256,address,address,uint256,bytes32,bytes32,uint256,uint256)
handler: handleTrades
- event: subscribers(address,address,indexed address,uint256,address,uint256,bytes32,uint256)
handler: handleTraders
- event: closures(indexed bytes32,address,uint256)
handler: handleClosures
- event: feecollection(indexed address,uint256,uint256)
handler: handleFeeCollections
- event: collateral(bytes32,indexed address,address,int256,uint256)
handler: handleMarginCollateral
- event: PnLSettled(indexed address,address,address,int256,int256,int256,uint256)
handler: handleMarginSettlements
- kind: ethereum/contract
name: Factory
network: gnosis
source:
address: '0xED47a71d2617b1a1F9A9aeb33b85bE5A722EA79B'
abi: Factory
startBlock: 34475888
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Token
abis:
- name: Factory
file: ./abis/Factory.json
eventHandlers:
- event: CashIssuerCreated(indexed address,bytes32,bytes32)
handler: handleCashCreated
- event: BondIssuerCreated(indexed address,bytes32,bytes32)
handler: handleBondCreated
- event: TokenCreated(indexed address,bytes32,bytes32)
handler: handleBondTokenCreated
#- kind: ethereum/contract
# name: VerifiedMarkets
# network: gnosis
# source:
# address: ''
# abi: VerifiedMarkets
# startBlock: 9484074
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.5
# language: wasm/assemblyscript
# file: ./src/mappings/collateralizedloans.ts
# entities:
# - RWA
# - Collateral
# - CompoundLoans
# abis:
# - name: VerifiedMarkets
# file: ./abis/VerifiedMarkets.json
# eventHandlers:
# - event: NewRWA(indexed address,indexed address,address,uint256,string,uint256)
# handler: handleNewRWA
# - event: PostedCollateral(indexed address,indexed address,address,uint256)
# handler: handleCollateral
# - event: Borrowed(indexed address,indexed address,uint256)
# handler: handleBorrowing
# - event: Repaid(indexed address,indexed address,uint256)
# handler: handleRepayment
templates:
- kind: ethereum/contract
name: Security
network: gnosis
source:
abi: Security
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Security
- Resolutions
- Snapshots
abis:
- name: Security
file: ./abis/Security.json
- name: Snapshot
file: ./abis/Snapshot.json
- name: CorporateActions
file: ./abis/CorporateActions.json
eventHandlers:
#- event: Mint(indexed address,uint256)
# handler: handleSecurityIssued
#- event: Burn(indexed address,uint256)
# handler: handleSecurityExtinguished
- event: Resolution(indexed address,uint256,string,bool)
handler: handleResolutions
- event: SnapshotSchedule(indexed address,uint256,uint256)
handler: handleSchedulingSnapshot
- event: SnapshotUnschedule(indexed address,uint256)
handler: handleUnschedulingSnapshot
file: ./src/mappings/security.ts
- kind: ethereum/contract
name: Cash
network: gnosis
source:
abi: Cash
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- User
- CashIssues
- CashDeposited
- CashRedemptions
- CashTransfers
- Currency
abis:
- name: Cash
file: ./abis/Cash.json
eventHandlers:
- event: CashIssued(indexed address,bytes32,uint256,uint256)
handler: handleCashIssued
- event: CashRedeemed(indexed address,bytes32,uint256,uint256,uint256)
handler: handleCashRedeemed
- event: CashDeposits(indexed address,bytes32,uint256)
handler: handleCashDeposits
- event: CashTransfer(indexed address,indexed address,bytes32,uint256,uint256)
handler: handleCashTransfer
file: ./src/mappings/cash.ts
- kind: ethereum/contract
name: Bond
network: gnosis
source:
abi: Bond
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- User
- BondIssues
- BondPurchases
- BondRedemptions
- BondIssueRequests
- Currency
abis:
- name: Bond
file: ./abis/Bond.json
eventHandlers:
- event: BondIssued(indexed address,address,bytes32,uint256,bytes32,uint256,uint256)
handler: handleBondIssued
- event: BondRedeemed(indexed address,address,uint256,bytes32,uint256,bytes32)
handler: handleBondRedeemed
- event: BondPurchased(indexed address,address,bytes32,uint256,bytes32,uint256,uint256)
handler: handleBondPurchased
- event: BondLiquidated(indexed address,address,uint256,bytes32,uint256,bytes32)
handler: handleBondLiquidation
file: ./src/mappings/bond.ts