-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.base-sepolia.yaml
367 lines (367 loc) · 12.7 KB
/
subgraph.base-sepolia.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: base-sepolia
source:
address: '0x68497F1380f29b2C41Ca8Ff1Da3B5a3BD8327d4D'
abi: SecuritiesFactory
startBlock: 10937590
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: base-sepolia
source:
address: '0x266d35A820B8e7f1CcAf7f14A24eC2232aE3D010'
abi: Client
startBlock: 11303203
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: base-sepolia
source:
address: '0x6C557434128e98536c7F6487B417D9D74f0Ca9cf'
abi: Liquidity
startBlock: 15013825
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: base-sepolia
source:
address: '0xc61b02D1D3A764efAd2f8C6C478A479C51dD79Ea'
abi: Distribution
startBlock: 15013989
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: base-sepolia
# source:
# address: '0x1f8e0fef42231529Ec80750C4E3E1fEe829e2F3E'
# abi: PrimaryIssueManager
# startBlock: 54695665
# 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: base-sepolia
# source:
# address: '0x775979123aD2e6DA3074bB38116430FEAE26974f'
# abi: SecondaryIssueManager
# startBlock: 55519753
# 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: base-sepolia
# source:
# address: '0x8965Fc965ffc410E14A211a344eb08993Cb1Bee6'
# abi: MarginIssueManager
# startBlock: 54695749
# 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: base-sepolia
source:
address: '0x1021A1474dC1630E5781B1676Def04fF7f11Cc0b'
abi: Factory
startBlock: 10968061
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: base-sepolia
source:
address: '0x146144772fF3fF3124beF9730a4c6F5D15efe931'
abi: VerifiedMarkets
startBlock: 15012506
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: base-sepolia
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: base-sepolia
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: base-sepolia
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