@wildcatfi/wildcat-sdk 2.0.62 → 2.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/constants.d.ts.map +1 -1
  2. package/dist/constants.js +2 -2
  3. package/dist/constants.js.map +1 -1
  4. package/dist/controller.d.ts.map +1 -1
  5. package/dist/controller.js.map +1 -1
  6. package/dist/gql/getAllPendingWithdrawalBatchesForMarket.d.ts +5 -0
  7. package/dist/gql/getAllPendingWithdrawalBatchesForMarket.d.ts.map +1 -0
  8. package/dist/gql/getAllPendingWithdrawalBatchesForMarket.js +15 -0
  9. package/dist/gql/getAllPendingWithdrawalBatchesForMarket.js.map +1 -0
  10. package/dist/gql/getAuthorizedLendersByMarket.d.ts +8 -0
  11. package/dist/gql/getAuthorizedLendersByMarket.d.ts.map +1 -0
  12. package/dist/gql/getAuthorizedLendersByMarket.js +14 -0
  13. package/dist/gql/getAuthorizedLendersByMarket.js.map +1 -0
  14. package/dist/gql/getLenderAccountForMarket.d.ts +11 -0
  15. package/dist/gql/getLenderAccountForMarket.d.ts.map +1 -0
  16. package/dist/gql/getLenderAccountForMarket.js +28 -0
  17. package/dist/gql/getLenderAccountForMarket.js.map +1 -0
  18. package/dist/gql/getMarket.d.ts +12 -0
  19. package/dist/gql/getMarket.d.ts.map +1 -0
  20. package/dist/gql/getMarket.js +21 -0
  21. package/dist/gql/getMarket.js.map +1 -0
  22. package/dist/gql/getMarketRecords.d.ts +11 -0
  23. package/dist/gql/getMarketRecords.d.ts.map +1 -0
  24. package/dist/gql/getMarketRecords.js +59 -0
  25. package/dist/gql/getMarketRecords.js.map +1 -0
  26. package/dist/gql/getMarketsForAllBorrowers.d.ts +13 -0
  27. package/dist/gql/getMarketsForAllBorrowers.d.ts.map +1 -0
  28. package/dist/gql/getMarketsForAllBorrowers.js +15 -0
  29. package/dist/gql/getMarketsForAllBorrowers.js.map +1 -0
  30. package/dist/gql/getMarketsForBorrower.d.ts +13 -0
  31. package/dist/gql/getMarketsForBorrower.d.ts.map +1 -0
  32. package/dist/gql/getMarketsForBorrower.js +19 -0
  33. package/dist/gql/getMarketsForBorrower.js.map +1 -0
  34. package/dist/gql/graphql.d.ts +1316 -552
  35. package/dist/gql/graphql.d.ts.map +1 -1
  36. package/dist/gql/graphql.js +453 -25
  37. package/dist/gql/graphql.js.map +1 -1
  38. package/dist/gql/index.d.ts +8 -0
  39. package/dist/gql/index.d.ts.map +1 -0
  40. package/dist/gql/index.js +24 -0
  41. package/dist/gql/index.js.map +1 -0
  42. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.d.ts.map +1 -1
  43. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js +1 -2
  44. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js.map +1 -1
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +1 -0
  48. package/dist/index.js.map +1 -1
  49. package/dist/market.d.ts +2 -1
  50. package/dist/market.d.ts.map +1 -1
  51. package/dist/market.js +6 -4
  52. package/dist/market.js.map +1 -1
  53. package/dist/utils/type-parsers.d.ts +41 -7
  54. package/dist/utils/type-parsers.d.ts.map +1 -1
  55. package/dist/utils/type-parsers.js +49 -6
  56. package/dist/utils/type-parsers.js.map +1 -1
  57. package/package.json +1 -1
@@ -63,6 +63,167 @@ export declare enum SubgraphAggregation_Interval {
63
63
  Day = "day",
64
64
  Hour = "hour"
65
65
  }
66
+ export type SubgraphAnnualInterestBipsUpdated = {
67
+ __typename?: "AnnualInterestBipsUpdated";
68
+ annualInterestBipsUpdatedIndex: Scalars["Int"]["output"];
69
+ blockNumber: Scalars["Int"]["output"];
70
+ blockTimestamp: Scalars["Int"]["output"];
71
+ eventIndex: Scalars["Int"]["output"];
72
+ id: Scalars["ID"]["output"];
73
+ market: SubgraphMarket;
74
+ newAnnualInterestBips: Scalars["Int"]["output"];
75
+ oldAnnualInterestBips: Scalars["Int"]["output"];
76
+ transactionHash: Scalars["Bytes"]["output"];
77
+ };
78
+ export type SubgraphAnnualInterestBipsUpdated_Filter = {
79
+ /** Filter for the block changed event. */
80
+ _change_block?: InputMaybe<SubgraphBlockChangedFilter>;
81
+ and?: InputMaybe<Array<InputMaybe<SubgraphAnnualInterestBipsUpdated_Filter>>>;
82
+ annualInterestBipsUpdatedIndex?: InputMaybe<Scalars["Int"]["input"]>;
83
+ annualInterestBipsUpdatedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
84
+ annualInterestBipsUpdatedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
85
+ annualInterestBipsUpdatedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
86
+ annualInterestBipsUpdatedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
87
+ annualInterestBipsUpdatedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
88
+ annualInterestBipsUpdatedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
89
+ annualInterestBipsUpdatedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
90
+ blockNumber?: InputMaybe<Scalars["Int"]["input"]>;
91
+ blockNumber_gt?: InputMaybe<Scalars["Int"]["input"]>;
92
+ blockNumber_gte?: InputMaybe<Scalars["Int"]["input"]>;
93
+ blockNumber_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
94
+ blockNumber_lt?: InputMaybe<Scalars["Int"]["input"]>;
95
+ blockNumber_lte?: InputMaybe<Scalars["Int"]["input"]>;
96
+ blockNumber_not?: InputMaybe<Scalars["Int"]["input"]>;
97
+ blockNumber_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
98
+ blockTimestamp?: InputMaybe<Scalars["Int"]["input"]>;
99
+ blockTimestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
100
+ blockTimestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
101
+ blockTimestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
102
+ blockTimestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
103
+ blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
104
+ blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
105
+ blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
106
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
107
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
108
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
109
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
110
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
111
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
112
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
113
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
114
+ id?: InputMaybe<Scalars["ID"]["input"]>;
115
+ id_gt?: InputMaybe<Scalars["ID"]["input"]>;
116
+ id_gte?: InputMaybe<Scalars["ID"]["input"]>;
117
+ id_in?: InputMaybe<Array<Scalars["ID"]["input"]>>;
118
+ id_lt?: InputMaybe<Scalars["ID"]["input"]>;
119
+ id_lte?: InputMaybe<Scalars["ID"]["input"]>;
120
+ id_not?: InputMaybe<Scalars["ID"]["input"]>;
121
+ id_not_in?: InputMaybe<Array<Scalars["ID"]["input"]>>;
122
+ market?: InputMaybe<Scalars["String"]["input"]>;
123
+ market_?: InputMaybe<SubgraphMarket_Filter>;
124
+ market_contains?: InputMaybe<Scalars["String"]["input"]>;
125
+ market_contains_nocase?: InputMaybe<Scalars["String"]["input"]>;
126
+ market_ends_with?: InputMaybe<Scalars["String"]["input"]>;
127
+ market_ends_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
128
+ market_gt?: InputMaybe<Scalars["String"]["input"]>;
129
+ market_gte?: InputMaybe<Scalars["String"]["input"]>;
130
+ market_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
131
+ market_lt?: InputMaybe<Scalars["String"]["input"]>;
132
+ market_lte?: InputMaybe<Scalars["String"]["input"]>;
133
+ market_not?: InputMaybe<Scalars["String"]["input"]>;
134
+ market_not_contains?: InputMaybe<Scalars["String"]["input"]>;
135
+ market_not_contains_nocase?: InputMaybe<Scalars["String"]["input"]>;
136
+ market_not_ends_with?: InputMaybe<Scalars["String"]["input"]>;
137
+ market_not_ends_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
138
+ market_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
139
+ market_not_starts_with?: InputMaybe<Scalars["String"]["input"]>;
140
+ market_not_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
141
+ market_starts_with?: InputMaybe<Scalars["String"]["input"]>;
142
+ market_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
143
+ newAnnualInterestBips?: InputMaybe<Scalars["Int"]["input"]>;
144
+ newAnnualInterestBips_gt?: InputMaybe<Scalars["Int"]["input"]>;
145
+ newAnnualInterestBips_gte?: InputMaybe<Scalars["Int"]["input"]>;
146
+ newAnnualInterestBips_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
147
+ newAnnualInterestBips_lt?: InputMaybe<Scalars["Int"]["input"]>;
148
+ newAnnualInterestBips_lte?: InputMaybe<Scalars["Int"]["input"]>;
149
+ newAnnualInterestBips_not?: InputMaybe<Scalars["Int"]["input"]>;
150
+ newAnnualInterestBips_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
151
+ oldAnnualInterestBips?: InputMaybe<Scalars["Int"]["input"]>;
152
+ oldAnnualInterestBips_gt?: InputMaybe<Scalars["Int"]["input"]>;
153
+ oldAnnualInterestBips_gte?: InputMaybe<Scalars["Int"]["input"]>;
154
+ oldAnnualInterestBips_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
155
+ oldAnnualInterestBips_lt?: InputMaybe<Scalars["Int"]["input"]>;
156
+ oldAnnualInterestBips_lte?: InputMaybe<Scalars["Int"]["input"]>;
157
+ oldAnnualInterestBips_not?: InputMaybe<Scalars["Int"]["input"]>;
158
+ oldAnnualInterestBips_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
159
+ or?: InputMaybe<Array<InputMaybe<SubgraphAnnualInterestBipsUpdated_Filter>>>;
160
+ transactionHash?: InputMaybe<Scalars["Bytes"]["input"]>;
161
+ transactionHash_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
162
+ transactionHash_gt?: InputMaybe<Scalars["Bytes"]["input"]>;
163
+ transactionHash_gte?: InputMaybe<Scalars["Bytes"]["input"]>;
164
+ transactionHash_in?: InputMaybe<Array<Scalars["Bytes"]["input"]>>;
165
+ transactionHash_lt?: InputMaybe<Scalars["Bytes"]["input"]>;
166
+ transactionHash_lte?: InputMaybe<Scalars["Bytes"]["input"]>;
167
+ transactionHash_not?: InputMaybe<Scalars["Bytes"]["input"]>;
168
+ transactionHash_not_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
169
+ transactionHash_not_in?: InputMaybe<Array<Scalars["Bytes"]["input"]>>;
170
+ };
171
+ export declare enum SubgraphAnnualInterestBipsUpdated_OrderBy {
172
+ AnnualInterestBipsUpdatedIndex = "annualInterestBipsUpdatedIndex",
173
+ BlockNumber = "blockNumber",
174
+ BlockTimestamp = "blockTimestamp",
175
+ EventIndex = "eventIndex",
176
+ Id = "id",
177
+ Market = "market",
178
+ MarketAnnualInterestBips = "market__annualInterestBips",
179
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
180
+ MarketBorrowIndex = "market__borrowIndex",
181
+ MarketBorrower = "market__borrower",
182
+ MarketCreatedAt = "market__createdAt",
183
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
184
+ MarketDecimals = "market__decimals",
185
+ MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
186
+ MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
187
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
188
+ MarketDepositIndex = "market__depositIndex",
189
+ MarketEventIndex = "market__eventIndex",
190
+ MarketFeeRecipient = "market__feeRecipient",
191
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
192
+ MarketId = "market__id",
193
+ MarketIsClosed = "market__isClosed",
194
+ MarketIsDelinquent = "market__isDelinquent",
195
+ MarketIsRegistered = "market__isRegistered",
196
+ MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
197
+ MarketMaxTotalSupply = "market__maxTotalSupply",
198
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
199
+ MarketName = "market__name",
200
+ MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
201
+ MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
202
+ MarketOriginalReserveRatioBips = "market__originalReserveRatioBips",
203
+ MarketPendingProtocolFees = "market__pendingProtocolFees",
204
+ MarketPendingWithdrawalExpiry = "market__pendingWithdrawalExpiry",
205
+ MarketProtocolFeeBips = "market__protocolFeeBips",
206
+ MarketReserveRatioBips = "market__reserveRatioBips",
207
+ MarketScaleFactor = "market__scaleFactor",
208
+ MarketScaledPendingWithdrawals = "market__scaledPendingWithdrawals",
209
+ MarketScaledTotalSupply = "market__scaledTotalSupply",
210
+ MarketSentinel = "market__sentinel",
211
+ MarketSymbol = "market__symbol",
212
+ MarketTemporaryReserveRatioActive = "market__temporaryReserveRatioActive",
213
+ MarketTemporaryReserveRatioExpiry = "market__temporaryReserveRatioExpiry",
214
+ MarketTimeDelinquent = "market__timeDelinquent",
215
+ MarketTotalBaseInterestAccrued = "market__totalBaseInterestAccrued",
216
+ MarketTotalBorrowed = "market__totalBorrowed",
217
+ MarketTotalDelinquencyFeesAccrued = "market__totalDelinquencyFeesAccrued",
218
+ MarketTotalDeposited = "market__totalDeposited",
219
+ MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
220
+ MarketTotalRepaid = "market__totalRepaid",
221
+ MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
222
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
223
+ NewAnnualInterestBips = "newAnnualInterestBips",
224
+ OldAnnualInterestBips = "oldAnnualInterestBips",
225
+ TransactionHash = "transactionHash"
226
+ }
66
227
  export type SubgraphApproval = {
67
228
  __typename?: "Approval";
68
229
  blockNumber: Scalars["Int"]["output"];
@@ -224,6 +385,8 @@ export type SubgraphBorrow = {
224
385
  assetAmount: Scalars["BigInt"]["output"];
225
386
  blockNumber: Scalars["Int"]["output"];
226
387
  blockTimestamp: Scalars["Int"]["output"];
388
+ borrowIndex: Scalars["Int"]["output"];
389
+ eventIndex: Scalars["Int"]["output"];
227
390
  id: Scalars["ID"]["output"];
228
391
  market: SubgraphMarket;
229
392
  transactionHash: Scalars["Bytes"]["output"];
@@ -256,6 +419,22 @@ export type SubgraphBorrow_Filter = {
256
419
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
257
420
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
258
421
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
422
+ borrowIndex?: InputMaybe<Scalars["Int"]["input"]>;
423
+ borrowIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
424
+ borrowIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
425
+ borrowIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
426
+ borrowIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
427
+ borrowIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
428
+ borrowIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
429
+ borrowIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
430
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
431
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
432
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
433
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
434
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
435
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
436
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
437
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
259
438
  id?: InputMaybe<Scalars["ID"]["input"]>;
260
439
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
261
440
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -301,21 +480,31 @@ export declare enum SubgraphBorrow_OrderBy {
301
480
  AssetAmount = "assetAmount",
302
481
  BlockNumber = "blockNumber",
303
482
  BlockTimestamp = "blockTimestamp",
483
+ BorrowIndex = "borrowIndex",
484
+ EventIndex = "eventIndex",
304
485
  Id = "id",
305
486
  Market = "market",
306
487
  MarketAnnualInterestBips = "market__annualInterestBips",
488
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
489
+ MarketBorrowIndex = "market__borrowIndex",
307
490
  MarketBorrower = "market__borrower",
308
491
  MarketCreatedAt = "market__createdAt",
492
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
309
493
  MarketDecimals = "market__decimals",
310
494
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
311
495
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
496
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
497
+ MarketDepositIndex = "market__depositIndex",
498
+ MarketEventIndex = "market__eventIndex",
312
499
  MarketFeeRecipient = "market__feeRecipient",
500
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
313
501
  MarketId = "market__id",
314
502
  MarketIsClosed = "market__isClosed",
315
503
  MarketIsDelinquent = "market__isDelinquent",
316
504
  MarketIsRegistered = "market__isRegistered",
317
505
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
318
506
  MarketMaxTotalSupply = "market__maxTotalSupply",
507
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
319
508
  MarketName = "market__name",
320
509
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
321
510
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -339,6 +528,7 @@ export declare enum SubgraphBorrow_OrderBy {
339
528
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
340
529
  MarketTotalRepaid = "market__totalRepaid",
341
530
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
531
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
342
532
  TransactionHash = "transactionHash"
343
533
  }
344
534
  export type SubgraphBorrowerRegistrationChange = {
@@ -1061,6 +1251,8 @@ export type SubgraphDebtRepaid = {
1061
1251
  assetAmount: Scalars["BigInt"]["output"];
1062
1252
  blockNumber: Scalars["Int"]["output"];
1063
1253
  blockTimestamp: Scalars["Int"]["output"];
1254
+ debtRepaidIndex: Scalars["Int"]["output"];
1255
+ eventIndex: Scalars["Int"]["output"];
1064
1256
  from: Scalars["Bytes"]["output"];
1065
1257
  id: Scalars["ID"]["output"];
1066
1258
  market: SubgraphMarket;
@@ -1094,6 +1286,22 @@ export type SubgraphDebtRepaid_Filter = {
1094
1286
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
1095
1287
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
1096
1288
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1289
+ debtRepaidIndex?: InputMaybe<Scalars["Int"]["input"]>;
1290
+ debtRepaidIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1291
+ debtRepaidIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1292
+ debtRepaidIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1293
+ debtRepaidIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1294
+ debtRepaidIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1295
+ debtRepaidIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1296
+ debtRepaidIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1297
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
1298
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1299
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1300
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1301
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1302
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1303
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1304
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1097
1305
  from?: InputMaybe<Scalars["Bytes"]["input"]>;
1098
1306
  from_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
1099
1307
  from_gt?: InputMaybe<Scalars["Bytes"]["input"]>;
@@ -1149,22 +1357,32 @@ export declare enum SubgraphDebtRepaid_OrderBy {
1149
1357
  AssetAmount = "assetAmount",
1150
1358
  BlockNumber = "blockNumber",
1151
1359
  BlockTimestamp = "blockTimestamp",
1360
+ DebtRepaidIndex = "debtRepaidIndex",
1361
+ EventIndex = "eventIndex",
1152
1362
  From = "from",
1153
1363
  Id = "id",
1154
1364
  Market = "market",
1155
1365
  MarketAnnualInterestBips = "market__annualInterestBips",
1366
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
1367
+ MarketBorrowIndex = "market__borrowIndex",
1156
1368
  MarketBorrower = "market__borrower",
1157
1369
  MarketCreatedAt = "market__createdAt",
1370
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
1158
1371
  MarketDecimals = "market__decimals",
1159
1372
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
1160
1373
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
1374
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
1375
+ MarketDepositIndex = "market__depositIndex",
1376
+ MarketEventIndex = "market__eventIndex",
1161
1377
  MarketFeeRecipient = "market__feeRecipient",
1378
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
1162
1379
  MarketId = "market__id",
1163
1380
  MarketIsClosed = "market__isClosed",
1164
1381
  MarketIsDelinquent = "market__isDelinquent",
1165
1382
  MarketIsRegistered = "market__isRegistered",
1166
1383
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
1167
1384
  MarketMaxTotalSupply = "market__maxTotalSupply",
1385
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
1168
1386
  MarketName = "market__name",
1169
1387
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
1170
1388
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -1188,12 +1406,15 @@ export declare enum SubgraphDebtRepaid_OrderBy {
1188
1406
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
1189
1407
  MarketTotalRepaid = "market__totalRepaid",
1190
1408
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
1409
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
1191
1410
  TransactionHash = "transactionHash"
1192
1411
  }
1193
1412
  export type SubgraphDelinquencyStatusChanged = {
1194
1413
  __typename?: "DelinquencyStatusChanged";
1195
1414
  blockNumber: Scalars["Int"]["output"];
1196
1415
  blockTimestamp: Scalars["Int"]["output"];
1416
+ delinquencyStatusChangedIndex: Scalars["Int"]["output"];
1417
+ eventIndex: Scalars["Int"]["output"];
1197
1418
  id: Scalars["ID"]["output"];
1198
1419
  isDelinquent: Scalars["Boolean"]["output"];
1199
1420
  liquidityCoverageRequired: Scalars["BigInt"]["output"];
@@ -1221,6 +1442,22 @@ export type SubgraphDelinquencyStatusChanged_Filter = {
1221
1442
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
1222
1443
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
1223
1444
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1445
+ delinquencyStatusChangedIndex?: InputMaybe<Scalars["Int"]["input"]>;
1446
+ delinquencyStatusChangedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1447
+ delinquencyStatusChangedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1448
+ delinquencyStatusChangedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1449
+ delinquencyStatusChangedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1450
+ delinquencyStatusChangedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1451
+ delinquencyStatusChangedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1452
+ delinquencyStatusChangedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1453
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
1454
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1455
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1456
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1457
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1458
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1459
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1460
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1224
1461
  id?: InputMaybe<Scalars["ID"]["input"]>;
1225
1462
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
1226
1463
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -1285,23 +1522,33 @@ export type SubgraphDelinquencyStatusChanged_Filter = {
1285
1522
  export declare enum SubgraphDelinquencyStatusChanged_OrderBy {
1286
1523
  BlockNumber = "blockNumber",
1287
1524
  BlockTimestamp = "blockTimestamp",
1525
+ DelinquencyStatusChangedIndex = "delinquencyStatusChangedIndex",
1526
+ EventIndex = "eventIndex",
1288
1527
  Id = "id",
1289
1528
  IsDelinquent = "isDelinquent",
1290
1529
  LiquidityCoverageRequired = "liquidityCoverageRequired",
1291
1530
  Market = "market",
1292
1531
  MarketAnnualInterestBips = "market__annualInterestBips",
1532
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
1533
+ MarketBorrowIndex = "market__borrowIndex",
1293
1534
  MarketBorrower = "market__borrower",
1294
1535
  MarketCreatedAt = "market__createdAt",
1536
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
1295
1537
  MarketDecimals = "market__decimals",
1296
1538
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
1297
1539
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
1540
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
1541
+ MarketDepositIndex = "market__depositIndex",
1542
+ MarketEventIndex = "market__eventIndex",
1298
1543
  MarketFeeRecipient = "market__feeRecipient",
1544
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
1299
1545
  MarketId = "market__id",
1300
1546
  MarketIsClosed = "market__isClosed",
1301
1547
  MarketIsDelinquent = "market__isDelinquent",
1302
1548
  MarketIsRegistered = "market__isRegistered",
1303
1549
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
1304
1550
  MarketMaxTotalSupply = "market__maxTotalSupply",
1551
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
1305
1552
  MarketName = "market__name",
1306
1553
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
1307
1554
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -1325,6 +1572,7 @@ export declare enum SubgraphDelinquencyStatusChanged_OrderBy {
1325
1572
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
1326
1573
  MarketTotalRepaid = "market__totalRepaid",
1327
1574
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
1575
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
1328
1576
  TotalAssets = "totalAssets",
1329
1577
  TransactionHash = "transactionHash"
1330
1578
  }
@@ -1334,6 +1582,8 @@ export type SubgraphDeposit = {
1334
1582
  assetAmount: Scalars["BigInt"]["output"];
1335
1583
  blockNumber: Scalars["Int"]["output"];
1336
1584
  blockTimestamp: Scalars["Int"]["output"];
1585
+ depositIndex: Scalars["Int"]["output"];
1586
+ eventIndex: Scalars["Int"]["output"];
1337
1587
  id: Scalars["ID"]["output"];
1338
1588
  market: SubgraphMarket;
1339
1589
  scaledAmount: Scalars["BigInt"]["output"];
@@ -1388,6 +1638,22 @@ export type SubgraphDeposit_Filter = {
1388
1638
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
1389
1639
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
1390
1640
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1641
+ depositIndex?: InputMaybe<Scalars["Int"]["input"]>;
1642
+ depositIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1643
+ depositIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1644
+ depositIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1645
+ depositIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1646
+ depositIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1647
+ depositIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1648
+ depositIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1649
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
1650
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1651
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1652
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1653
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1654
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1655
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1656
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1391
1657
  id?: InputMaybe<Scalars["ID"]["input"]>;
1392
1658
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
1393
1659
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -1451,21 +1717,31 @@ export declare enum SubgraphDeposit_OrderBy {
1451
1717
  AssetAmount = "assetAmount",
1452
1718
  BlockNumber = "blockNumber",
1453
1719
  BlockTimestamp = "blockTimestamp",
1720
+ DepositIndex = "depositIndex",
1721
+ EventIndex = "eventIndex",
1454
1722
  Id = "id",
1455
1723
  Market = "market",
1456
1724
  MarketAnnualInterestBips = "market__annualInterestBips",
1725
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
1726
+ MarketBorrowIndex = "market__borrowIndex",
1457
1727
  MarketBorrower = "market__borrower",
1458
1728
  MarketCreatedAt = "market__createdAt",
1729
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
1459
1730
  MarketDecimals = "market__decimals",
1460
1731
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
1461
1732
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
1733
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
1734
+ MarketDepositIndex = "market__depositIndex",
1735
+ MarketEventIndex = "market__eventIndex",
1462
1736
  MarketFeeRecipient = "market__feeRecipient",
1737
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
1463
1738
  MarketId = "market__id",
1464
1739
  MarketIsClosed = "market__isClosed",
1465
1740
  MarketIsDelinquent = "market__isDelinquent",
1466
1741
  MarketIsRegistered = "market__isRegistered",
1467
1742
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
1468
1743
  MarketMaxTotalSupply = "market__maxTotalSupply",
1744
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
1469
1745
  MarketName = "market__name",
1470
1746
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
1471
1747
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -1489,6 +1765,7 @@ export declare enum SubgraphDeposit_OrderBy {
1489
1765
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
1490
1766
  MarketTotalRepaid = "market__totalRepaid",
1491
1767
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
1768
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
1492
1769
  ScaledAmount = "scaledAmount",
1493
1770
  TransactionHash = "transactionHash"
1494
1771
  }
@@ -1496,7 +1773,9 @@ export type SubgraphFeesCollected = {
1496
1773
  __typename?: "FeesCollected";
1497
1774
  blockNumber: Scalars["Int"]["output"];
1498
1775
  blockTimestamp: Scalars["Int"]["output"];
1776
+ eventIndex: Scalars["Int"]["output"];
1499
1777
  feesCollected: Scalars["BigInt"]["output"];
1778
+ feesCollectedIndex: Scalars["Int"]["output"];
1500
1779
  id: Scalars["ID"]["output"];
1501
1780
  market: SubgraphMarket;
1502
1781
  transactionHash: Scalars["Bytes"]["output"];
@@ -1521,7 +1800,23 @@ export type SubgraphFeesCollected_Filter = {
1521
1800
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
1522
1801
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
1523
1802
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1803
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
1804
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1805
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1806
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1807
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1808
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1809
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1810
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1524
1811
  feesCollected?: InputMaybe<Scalars["BigInt"]["input"]>;
1812
+ feesCollectedIndex?: InputMaybe<Scalars["Int"]["input"]>;
1813
+ feesCollectedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
1814
+ feesCollectedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
1815
+ feesCollectedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1816
+ feesCollectedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
1817
+ feesCollectedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
1818
+ feesCollectedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
1819
+ feesCollectedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1525
1820
  feesCollected_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
1526
1821
  feesCollected_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
1527
1822
  feesCollected_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
@@ -1573,22 +1868,32 @@ export type SubgraphFeesCollected_Filter = {
1573
1868
  export declare enum SubgraphFeesCollected_OrderBy {
1574
1869
  BlockNumber = "blockNumber",
1575
1870
  BlockTimestamp = "blockTimestamp",
1871
+ EventIndex = "eventIndex",
1576
1872
  FeesCollected = "feesCollected",
1873
+ FeesCollectedIndex = "feesCollectedIndex",
1577
1874
  Id = "id",
1578
1875
  Market = "market",
1579
1876
  MarketAnnualInterestBips = "market__annualInterestBips",
1877
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
1878
+ MarketBorrowIndex = "market__borrowIndex",
1580
1879
  MarketBorrower = "market__borrower",
1581
1880
  MarketCreatedAt = "market__createdAt",
1881
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
1582
1882
  MarketDecimals = "market__decimals",
1583
1883
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
1584
1884
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
1885
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
1886
+ MarketDepositIndex = "market__depositIndex",
1887
+ MarketEventIndex = "market__eventIndex",
1585
1888
  MarketFeeRecipient = "market__feeRecipient",
1889
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
1586
1890
  MarketId = "market__id",
1587
1891
  MarketIsClosed = "market__isClosed",
1588
1892
  MarketIsDelinquent = "market__isDelinquent",
1589
1893
  MarketIsRegistered = "market__isRegistered",
1590
1894
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
1591
1895
  MarketMaxTotalSupply = "market__maxTotalSupply",
1896
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
1592
1897
  MarketName = "market__name",
1593
1898
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
1594
1899
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -1612,6 +1917,7 @@ export declare enum SubgraphFeesCollected_OrderBy {
1612
1917
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
1613
1918
  MarketTotalRepaid = "market__totalRepaid",
1614
1919
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
1920
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
1615
1921
  TransactionHash = "transactionHash"
1616
1922
  }
1617
1923
  export type SubgraphLenderAccount = {
@@ -1786,18 +2092,26 @@ export declare enum SubgraphLenderAccount_OrderBy {
1786
2092
  LastUpdatedTimestamp = "lastUpdatedTimestamp",
1787
2093
  Market = "market",
1788
2094
  MarketAnnualInterestBips = "market__annualInterestBips",
2095
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
2096
+ MarketBorrowIndex = "market__borrowIndex",
1789
2097
  MarketBorrower = "market__borrower",
1790
2098
  MarketCreatedAt = "market__createdAt",
2099
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
1791
2100
  MarketDecimals = "market__decimals",
1792
2101
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
1793
2102
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
2103
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
2104
+ MarketDepositIndex = "market__depositIndex",
2105
+ MarketEventIndex = "market__eventIndex",
1794
2106
  MarketFeeRecipient = "market__feeRecipient",
2107
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
1795
2108
  MarketId = "market__id",
1796
2109
  MarketIsClosed = "market__isClosed",
1797
2110
  MarketIsDelinquent = "market__isDelinquent",
1798
2111
  MarketIsRegistered = "market__isRegistered",
1799
2112
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
1800
2113
  MarketMaxTotalSupply = "market__maxTotalSupply",
2114
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
1801
2115
  MarketName = "market__name",
1802
2116
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
1803
2117
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -1821,6 +2135,7 @@ export declare enum SubgraphLenderAccount_OrderBy {
1821
2135
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
1822
2136
  MarketTotalRepaid = "market__totalRepaid",
1823
2137
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
2138
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
1824
2139
  NumPendingWithdrawalBatches = "numPendingWithdrawalBatches",
1825
2140
  Role = "role",
1826
2141
  ScaledBalance = "scaledBalance",
@@ -2147,18 +2462,26 @@ export declare enum SubgraphLenderInterestAccrued_OrderBy {
2147
2462
  InterestEarned = "interestEarned",
2148
2463
  Market = "market",
2149
2464
  MarketAnnualInterestBips = "market__annualInterestBips",
2465
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
2466
+ MarketBorrowIndex = "market__borrowIndex",
2150
2467
  MarketBorrower = "market__borrower",
2151
2468
  MarketCreatedAt = "market__createdAt",
2469
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
2152
2470
  MarketDecimals = "market__decimals",
2153
2471
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
2154
2472
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
2473
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
2474
+ MarketDepositIndex = "market__depositIndex",
2475
+ MarketEventIndex = "market__eventIndex",
2155
2476
  MarketFeeRecipient = "market__feeRecipient",
2477
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
2156
2478
  MarketId = "market__id",
2157
2479
  MarketIsClosed = "market__isClosed",
2158
2480
  MarketIsDelinquent = "market__isDelinquent",
2159
2481
  MarketIsRegistered = "market__isRegistered",
2160
2482
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
2161
2483
  MarketMaxTotalSupply = "market__maxTotalSupply",
2484
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
2162
2485
  MarketName = "market__name",
2163
2486
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
2164
2487
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -2182,6 +2505,7 @@ export declare enum SubgraphLenderInterestAccrued_OrderBy {
2182
2505
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
2183
2506
  MarketTotalRepaid = "market__totalRepaid",
2184
2507
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
2508
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
2185
2509
  TransactionHash = "transactionHash"
2186
2510
  }
2187
2511
  export declare enum SubgraphLenderStatus {
@@ -2358,20 +2682,28 @@ export declare enum SubgraphLenderWithdrawalStatus_OrderBy {
2358
2682
  export type SubgraphMarket = {
2359
2683
  __typename?: "Market";
2360
2684
  annualInterestBips: Scalars["Int"]["output"];
2685
+ annualInterestBipsUpdatedIndex: Scalars["Int"]["output"];
2686
+ annualInterestBipsUpdatedRecords: SubgraphAnnualInterestBipsUpdated[];
2361
2687
  archController: SubgraphArchController;
2362
2688
  asset: SubgraphToken;
2689
+ borrowIndex: Scalars["Int"]["output"];
2363
2690
  borrowRecords: SubgraphBorrow[];
2364
2691
  borrower: Scalars["Bytes"]["output"];
2365
2692
  controller: SubgraphController;
2366
2693
  createdAt: Scalars["Int"]["output"];
2694
+ debtRepaidIndex: Scalars["Int"]["output"];
2367
2695
  decimals: Scalars["Int"]["output"];
2368
2696
  delinquencyFeeBips: Scalars["Int"]["output"];
2369
2697
  delinquencyGracePeriod: Scalars["Int"]["output"];
2370
2698
  delinquencyRecords: SubgraphDelinquencyStatusChanged[];
2699
+ delinquencyStatusChangedIndex: Scalars["Int"]["output"];
2371
2700
  deployedEvent: SubgraphMarketDeployed;
2701
+ depositIndex: Scalars["Int"]["output"];
2372
2702
  depositRecords: SubgraphDeposit[];
2703
+ eventIndex: Scalars["Int"]["output"];
2373
2704
  feeCollectionRecords: SubgraphFeesCollected[];
2374
2705
  feeRecipient: Scalars["Bytes"]["output"];
2706
+ feesCollectedIndex: Scalars["Int"]["output"];
2375
2707
  id: Scalars["ID"]["output"];
2376
2708
  interestAccrualRecords: SubgraphMarketInterestAccrued[];
2377
2709
  isClosed: Scalars["Boolean"]["output"];
@@ -2379,7 +2711,10 @@ export type SubgraphMarket = {
2379
2711
  isRegistered: Scalars["Boolean"]["output"];
2380
2712
  lastInterestAccruedTimestamp: Scalars["Int"]["output"];
2381
2713
  lenders: SubgraphLenderAccount[];
2714
+ marketClosedEvent?: Maybe<SubgraphMarketClosed>;
2382
2715
  maxTotalSupply: Scalars["BigInt"]["output"];
2716
+ maxTotalSupplyUpdatedIndex: Scalars["Int"]["output"];
2717
+ maxTotalSupplyUpdatedRecords: SubgraphMaxTotalSupplyUpdated[];
2383
2718
  name: Scalars["String"]["output"];
2384
2719
  normalizedUnclaimedWithdrawals: Scalars["BigInt"]["output"];
2385
2720
  originalAnnualInterestBips: Scalars["Int"]["output"];
@@ -2390,6 +2725,7 @@ export type SubgraphMarket = {
2390
2725
  removal?: Maybe<SubgraphMarketRemoved>;
2391
2726
  repaymentRecords: SubgraphDebtRepaid[];
2392
2727
  reserveRatioBips: Scalars["Int"]["output"];
2728
+ reserveRatioBipsUpdatedRecords: SubgraphReserveRatioBipsUpdated[];
2393
2729
  scaleFactor: Scalars["BigInt"]["output"];
2394
2730
  scaledPendingWithdrawals: Scalars["BigInt"]["output"];
2395
2731
  scaledTotalSupply: Scalars["BigInt"]["output"];
@@ -2406,6 +2742,15 @@ export type SubgraphMarket = {
2406
2742
  totalRepaid: Scalars["BigInt"]["output"];
2407
2743
  withdrawalBatchDuration: Scalars["Int"]["output"];
2408
2744
  withdrawalBatches: SubgraphWithdrawalBatch[];
2745
+ withdrawalRequestRecords: SubgraphWithdrawalRequest[];
2746
+ withdrawalRequestsIndex: Scalars["Int"]["output"];
2747
+ };
2748
+ export type SubgraphMarketAnnualInterestBipsUpdatedRecordsArgs = {
2749
+ first?: InputMaybe<Scalars["Int"]["input"]>;
2750
+ orderBy?: InputMaybe<SubgraphAnnualInterestBipsUpdated_OrderBy>;
2751
+ orderDirection?: InputMaybe<SubgraphOrderDirection>;
2752
+ skip?: InputMaybe<Scalars["Int"]["input"]>;
2753
+ where?: InputMaybe<SubgraphAnnualInterestBipsUpdated_Filter>;
2409
2754
  };
2410
2755
  export type SubgraphMarketBorrowRecordsArgs = {
2411
2756
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -2437,6 +2782,13 @@ export type SubgraphMarketInterestAccrualRecordsArgs = {
2437
2782
  where?: InputMaybe<SubgraphMarketInterestAccrued_Filter>;
2438
2783
  };
2439
2784
  export type SubgraphMarketLendersArgs = SubgraphLenderAuthorizationMarketAccountsArgs;
2785
+ export type SubgraphMarketMaxTotalSupplyUpdatedRecordsArgs = {
2786
+ first?: InputMaybe<Scalars["Int"]["input"]>;
2787
+ orderBy?: InputMaybe<SubgraphMaxTotalSupplyUpdated_OrderBy>;
2788
+ orderDirection?: InputMaybe<SubgraphOrderDirection>;
2789
+ skip?: InputMaybe<Scalars["Int"]["input"]>;
2790
+ where?: InputMaybe<SubgraphMaxTotalSupplyUpdated_Filter>;
2791
+ };
2440
2792
  export type SubgraphMarketRepaymentRecordsArgs = {
2441
2793
  first?: InputMaybe<Scalars["Int"]["input"]>;
2442
2794
  orderBy?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
@@ -2444,6 +2796,13 @@ export type SubgraphMarketRepaymentRecordsArgs = {
2444
2796
  skip?: InputMaybe<Scalars["Int"]["input"]>;
2445
2797
  where?: InputMaybe<SubgraphDebtRepaid_Filter>;
2446
2798
  };
2799
+ export type SubgraphMarketReserveRatioBipsUpdatedRecordsArgs = {
2800
+ first?: InputMaybe<Scalars["Int"]["input"]>;
2801
+ orderBy?: InputMaybe<SubgraphReserveRatioBipsUpdated_OrderBy>;
2802
+ orderDirection?: InputMaybe<SubgraphOrderDirection>;
2803
+ skip?: InputMaybe<Scalars["Int"]["input"]>;
2804
+ where?: InputMaybe<SubgraphReserveRatioBipsUpdated_Filter>;
2805
+ };
2447
2806
  export type SubgraphMarketWithdrawalBatchesArgs = {
2448
2807
  first?: InputMaybe<Scalars["Int"]["input"]>;
2449
2808
  orderBy?: InputMaybe<SubgraphWithdrawalBatch_OrderBy>;
@@ -2451,6 +2810,7 @@ export type SubgraphMarketWithdrawalBatchesArgs = {
2451
2810
  skip?: InputMaybe<Scalars["Int"]["input"]>;
2452
2811
  where?: InputMaybe<SubgraphWithdrawalBatch_Filter>;
2453
2812
  };
2813
+ export type SubgraphMarketWithdrawalRequestRecordsArgs = SubgraphLenderWithdrawalStatusRequestsArgs;
2454
2814
  export type SubgraphMarketAdded = {
2455
2815
  __typename?: "MarketAdded";
2456
2816
  blockNumber: Scalars["Int"]["output"];
@@ -2552,18 +2912,26 @@ export declare enum SubgraphMarketAdded_OrderBy {
2552
2912
  Id = "id",
2553
2913
  Market = "market",
2554
2914
  MarketAnnualInterestBips = "market__annualInterestBips",
2915
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
2916
+ MarketBorrowIndex = "market__borrowIndex",
2555
2917
  MarketBorrower = "market__borrower",
2556
2918
  MarketCreatedAt = "market__createdAt",
2919
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
2557
2920
  MarketDecimals = "market__decimals",
2558
2921
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
2559
2922
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
2923
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
2924
+ MarketDepositIndex = "market__depositIndex",
2925
+ MarketEventIndex = "market__eventIndex",
2560
2926
  MarketFeeRecipient = "market__feeRecipient",
2927
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
2561
2928
  MarketId = "market__id",
2562
2929
  MarketIsClosed = "market__isClosed",
2563
2930
  MarketIsDelinquent = "market__isDelinquent",
2564
2931
  MarketIsRegistered = "market__isRegistered",
2565
2932
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
2566
2933
  MarketMaxTotalSupply = "market__maxTotalSupply",
2934
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
2567
2935
  MarketName = "market__name",
2568
2936
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
2569
2937
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -2587,12 +2955,14 @@ export declare enum SubgraphMarketAdded_OrderBy {
2587
2955
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
2588
2956
  MarketTotalRepaid = "market__totalRepaid",
2589
2957
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
2958
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
2590
2959
  TransactionHash = "transactionHash"
2591
2960
  }
2592
2961
  export type SubgraphMarketClosed = {
2593
2962
  __typename?: "MarketClosed";
2594
2963
  blockNumber: Scalars["Int"]["output"];
2595
2964
  blockTimestamp: Scalars["Int"]["output"];
2965
+ eventIndex: Scalars["Int"]["output"];
2596
2966
  id: Scalars["ID"]["output"];
2597
2967
  market: SubgraphMarket;
2598
2968
  timestamp: Scalars["Int"]["output"];
@@ -2618,6 +2988,14 @@ export type SubgraphMarketClosed_Filter = {
2618
2988
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
2619
2989
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
2620
2990
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
2991
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
2992
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
2993
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
2994
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
2995
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
2996
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
2997
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
2998
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
2621
2999
  id?: InputMaybe<Scalars["ID"]["input"]>;
2622
3000
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
2623
3001
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -2670,21 +3048,30 @@ export type SubgraphMarketClosed_Filter = {
2670
3048
  export declare enum SubgraphMarketClosed_OrderBy {
2671
3049
  BlockNumber = "blockNumber",
2672
3050
  BlockTimestamp = "blockTimestamp",
3051
+ EventIndex = "eventIndex",
2673
3052
  Id = "id",
2674
3053
  Market = "market",
2675
3054
  MarketAnnualInterestBips = "market__annualInterestBips",
3055
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
3056
+ MarketBorrowIndex = "market__borrowIndex",
2676
3057
  MarketBorrower = "market__borrower",
2677
3058
  MarketCreatedAt = "market__createdAt",
3059
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
2678
3060
  MarketDecimals = "market__decimals",
2679
3061
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
2680
3062
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
3063
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
3064
+ MarketDepositIndex = "market__depositIndex",
3065
+ MarketEventIndex = "market__eventIndex",
2681
3066
  MarketFeeRecipient = "market__feeRecipient",
3067
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
2682
3068
  MarketId = "market__id",
2683
3069
  MarketIsClosed = "market__isClosed",
2684
3070
  MarketIsDelinquent = "market__isDelinquent",
2685
3071
  MarketIsRegistered = "market__isRegistered",
2686
3072
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
2687
3073
  MarketMaxTotalSupply = "market__maxTotalSupply",
3074
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
2688
3075
  MarketName = "market__name",
2689
3076
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
2690
3077
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -2708,6 +3095,7 @@ export declare enum SubgraphMarketClosed_OrderBy {
2708
3095
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
2709
3096
  MarketTotalRepaid = "market__totalRepaid",
2710
3097
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
3098
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
2711
3099
  Timestamp = "timestamp",
2712
3100
  TransactionHash = "transactionHash"
2713
3101
  }
@@ -2786,18 +3174,26 @@ export declare enum SubgraphMarketDeployed_OrderBy {
2786
3174
  Id = "id",
2787
3175
  Market = "market",
2788
3176
  MarketAnnualInterestBips = "market__annualInterestBips",
3177
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
3178
+ MarketBorrowIndex = "market__borrowIndex",
2789
3179
  MarketBorrower = "market__borrower",
2790
3180
  MarketCreatedAt = "market__createdAt",
3181
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
2791
3182
  MarketDecimals = "market__decimals",
2792
3183
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
2793
3184
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
3185
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
3186
+ MarketDepositIndex = "market__depositIndex",
3187
+ MarketEventIndex = "market__eventIndex",
2794
3188
  MarketFeeRecipient = "market__feeRecipient",
3189
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
2795
3190
  MarketId = "market__id",
2796
3191
  MarketIsClosed = "market__isClosed",
2797
3192
  MarketIsDelinquent = "market__isDelinquent",
2798
3193
  MarketIsRegistered = "market__isRegistered",
2799
3194
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
2800
3195
  MarketMaxTotalSupply = "market__maxTotalSupply",
3196
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
2801
3197
  MarketName = "market__name",
2802
3198
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
2803
3199
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -2821,6 +3217,7 @@ export declare enum SubgraphMarketDeployed_OrderBy {
2821
3217
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
2822
3218
  MarketTotalRepaid = "market__totalRepaid",
2823
3219
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
3220
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
2824
3221
  TransactionHash = "transactionHash"
2825
3222
  }
2826
3223
  export type SubgraphMarketInterestAccrued = {
@@ -2975,18 +3372,26 @@ export declare enum SubgraphMarketInterestAccrued_OrderBy {
2975
3372
  Id = "id",
2976
3373
  Market = "market",
2977
3374
  MarketAnnualInterestBips = "market__annualInterestBips",
3375
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
3376
+ MarketBorrowIndex = "market__borrowIndex",
2978
3377
  MarketBorrower = "market__borrower",
2979
3378
  MarketCreatedAt = "market__createdAt",
3379
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
2980
3380
  MarketDecimals = "market__decimals",
2981
3381
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
2982
3382
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
3383
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
3384
+ MarketDepositIndex = "market__depositIndex",
3385
+ MarketEventIndex = "market__eventIndex",
2983
3386
  MarketFeeRecipient = "market__feeRecipient",
3387
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
2984
3388
  MarketId = "market__id",
2985
3389
  MarketIsClosed = "market__isClosed",
2986
3390
  MarketIsDelinquent = "market__isDelinquent",
2987
3391
  MarketIsRegistered = "market__isRegistered",
2988
3392
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
2989
3393
  MarketMaxTotalSupply = "market__maxTotalSupply",
3394
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
2990
3395
  MarketName = "market__name",
2991
3396
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
2992
3397
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -3010,6 +3415,7 @@ export declare enum SubgraphMarketInterestAccrued_OrderBy {
3010
3415
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
3011
3416
  MarketTotalRepaid = "market__totalRepaid",
3012
3417
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
3418
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
3013
3419
  ProtocolFeesAccrued = "protocolFeesAccrued",
3014
3420
  TimeWithPenalties = "timeWithPenalties",
3015
3421
  ToTimestamp = "toTimestamp",
@@ -3090,18 +3496,26 @@ export declare enum SubgraphMarketRemoved_OrderBy {
3090
3496
  Id = "id",
3091
3497
  Market = "market",
3092
3498
  MarketAnnualInterestBips = "market__annualInterestBips",
3499
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
3500
+ MarketBorrowIndex = "market__borrowIndex",
3093
3501
  MarketBorrower = "market__borrower",
3094
3502
  MarketCreatedAt = "market__createdAt",
3503
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
3095
3504
  MarketDecimals = "market__decimals",
3096
3505
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
3097
3506
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
3507
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
3508
+ MarketDepositIndex = "market__depositIndex",
3509
+ MarketEventIndex = "market__eventIndex",
3098
3510
  MarketFeeRecipient = "market__feeRecipient",
3511
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
3099
3512
  MarketId = "market__id",
3100
3513
  MarketIsClosed = "market__isClosed",
3101
3514
  MarketIsDelinquent = "market__isDelinquent",
3102
3515
  MarketIsRegistered = "market__isRegistered",
3103
3516
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
3104
3517
  MarketMaxTotalSupply = "market__maxTotalSupply",
3518
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
3105
3519
  MarketName = "market__name",
3106
3520
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
3107
3521
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -3125,6 +3539,7 @@ export declare enum SubgraphMarketRemoved_OrderBy {
3125
3539
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
3126
3540
  MarketTotalRepaid = "market__totalRepaid",
3127
3541
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
3542
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
3128
3543
  TransactionHash = "transactionHash"
3129
3544
  }
3130
3545
  export type SubgraphMarket_Filter = {
@@ -3132,6 +3547,15 @@ export type SubgraphMarket_Filter = {
3132
3547
  _change_block?: InputMaybe<SubgraphBlockChangedFilter>;
3133
3548
  and?: InputMaybe<Array<InputMaybe<SubgraphMarket_Filter>>>;
3134
3549
  annualInterestBips?: InputMaybe<Scalars["Int"]["input"]>;
3550
+ annualInterestBipsUpdatedIndex?: InputMaybe<Scalars["Int"]["input"]>;
3551
+ annualInterestBipsUpdatedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3552
+ annualInterestBipsUpdatedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3553
+ annualInterestBipsUpdatedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3554
+ annualInterestBipsUpdatedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3555
+ annualInterestBipsUpdatedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3556
+ annualInterestBipsUpdatedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3557
+ annualInterestBipsUpdatedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3558
+ annualInterestBipsUpdatedRecords_?: InputMaybe<SubgraphAnnualInterestBipsUpdated_Filter>;
3135
3559
  annualInterestBips_gt?: InputMaybe<Scalars["Int"]["input"]>;
3136
3560
  annualInterestBips_gte?: InputMaybe<Scalars["Int"]["input"]>;
3137
3561
  annualInterestBips_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
@@ -3181,6 +3605,14 @@ export type SubgraphMarket_Filter = {
3181
3605
  asset_not_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
3182
3606
  asset_starts_with?: InputMaybe<Scalars["String"]["input"]>;
3183
3607
  asset_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
3608
+ borrowIndex?: InputMaybe<Scalars["Int"]["input"]>;
3609
+ borrowIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3610
+ borrowIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3611
+ borrowIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3612
+ borrowIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3613
+ borrowIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3614
+ borrowIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3615
+ borrowIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3184
3616
  borrowRecords_?: InputMaybe<SubgraphBorrow_Filter>;
3185
3617
  borrower?: InputMaybe<Scalars["Bytes"]["input"]>;
3186
3618
  borrower_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
@@ -3221,6 +3653,14 @@ export type SubgraphMarket_Filter = {
3221
3653
  createdAt_lte?: InputMaybe<Scalars["Int"]["input"]>;
3222
3654
  createdAt_not?: InputMaybe<Scalars["Int"]["input"]>;
3223
3655
  createdAt_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3656
+ debtRepaidIndex?: InputMaybe<Scalars["Int"]["input"]>;
3657
+ debtRepaidIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3658
+ debtRepaidIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3659
+ debtRepaidIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3660
+ debtRepaidIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3661
+ debtRepaidIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3662
+ debtRepaidIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3663
+ debtRepaidIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3224
3664
  decimals?: InputMaybe<Scalars["Int"]["input"]>;
3225
3665
  decimals_gt?: InputMaybe<Scalars["Int"]["input"]>;
3226
3666
  decimals_gte?: InputMaybe<Scalars["Int"]["input"]>;
@@ -3246,6 +3686,14 @@ export type SubgraphMarket_Filter = {
3246
3686
  delinquencyGracePeriod_not?: InputMaybe<Scalars["Int"]["input"]>;
3247
3687
  delinquencyGracePeriod_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3248
3688
  delinquencyRecords_?: InputMaybe<SubgraphDelinquencyStatusChanged_Filter>;
3689
+ delinquencyStatusChangedIndex?: InputMaybe<Scalars["Int"]["input"]>;
3690
+ delinquencyStatusChangedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3691
+ delinquencyStatusChangedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3692
+ delinquencyStatusChangedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3693
+ delinquencyStatusChangedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3694
+ delinquencyStatusChangedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3695
+ delinquencyStatusChangedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3696
+ delinquencyStatusChangedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3249
3697
  deployedEvent?: InputMaybe<Scalars["String"]["input"]>;
3250
3698
  deployedEvent_?: InputMaybe<SubgraphMarketDeployed_Filter>;
3251
3699
  deployedEvent_contains?: InputMaybe<Scalars["String"]["input"]>;
@@ -3267,7 +3715,23 @@ export type SubgraphMarket_Filter = {
3267
3715
  deployedEvent_not_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
3268
3716
  deployedEvent_starts_with?: InputMaybe<Scalars["String"]["input"]>;
3269
3717
  deployedEvent_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
3718
+ depositIndex?: InputMaybe<Scalars["Int"]["input"]>;
3719
+ depositIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3720
+ depositIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3721
+ depositIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3722
+ depositIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3723
+ depositIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3724
+ depositIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3725
+ depositIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3270
3726
  depositRecords_?: InputMaybe<SubgraphDeposit_Filter>;
3727
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
3728
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3729
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3730
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3731
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3732
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3733
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3734
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3271
3735
  feeCollectionRecords_?: InputMaybe<SubgraphFeesCollected_Filter>;
3272
3736
  feeRecipient?: InputMaybe<Scalars["Bytes"]["input"]>;
3273
3737
  feeRecipient_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
@@ -3279,6 +3743,14 @@ export type SubgraphMarket_Filter = {
3279
3743
  feeRecipient_not?: InputMaybe<Scalars["Bytes"]["input"]>;
3280
3744
  feeRecipient_not_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
3281
3745
  feeRecipient_not_in?: InputMaybe<Array<Scalars["Bytes"]["input"]>>;
3746
+ feesCollectedIndex?: InputMaybe<Scalars["Int"]["input"]>;
3747
+ feesCollectedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3748
+ feesCollectedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3749
+ feesCollectedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3750
+ feesCollectedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3751
+ feesCollectedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3752
+ feesCollectedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3753
+ feesCollectedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3282
3754
  id?: InputMaybe<Scalars["ID"]["input"]>;
3283
3755
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
3284
3756
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -3309,7 +3781,17 @@ export type SubgraphMarket_Filter = {
3309
3781
  lastInterestAccruedTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
3310
3782
  lastInterestAccruedTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3311
3783
  lenders_?: InputMaybe<SubgraphLenderAccount_Filter>;
3784
+ marketClosedEvent_?: InputMaybe<SubgraphMarketClosed_Filter>;
3312
3785
  maxTotalSupply?: InputMaybe<Scalars["BigInt"]["input"]>;
3786
+ maxTotalSupplyUpdatedIndex?: InputMaybe<Scalars["Int"]["input"]>;
3787
+ maxTotalSupplyUpdatedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
3788
+ maxTotalSupplyUpdatedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
3789
+ maxTotalSupplyUpdatedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3790
+ maxTotalSupplyUpdatedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
3791
+ maxTotalSupplyUpdatedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
3792
+ maxTotalSupplyUpdatedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
3793
+ maxTotalSupplyUpdatedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3794
+ maxTotalSupplyUpdatedRecords_?: InputMaybe<SubgraphMaxTotalSupplyUpdated_Filter>;
3313
3795
  maxTotalSupply_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3314
3796
  maxTotalSupply_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3315
3797
  maxTotalSupply_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
@@ -3389,6 +3871,7 @@ export type SubgraphMarket_Filter = {
3389
3871
  removal_?: InputMaybe<SubgraphMarketRemoved_Filter>;
3390
3872
  repaymentRecords_?: InputMaybe<SubgraphDebtRepaid_Filter>;
3391
3873
  reserveRatioBips?: InputMaybe<Scalars["Int"]["input"]>;
3874
+ reserveRatioBipsUpdatedRecords_?: InputMaybe<SubgraphReserveRatioBipsUpdated_Filter>;
3392
3875
  reserveRatioBips_gt?: InputMaybe<Scalars["Int"]["input"]>;
3393
3876
  reserveRatioBips_gte?: InputMaybe<Scalars["Int"]["input"]>;
3394
3877
  reserveRatioBips_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
@@ -3527,9 +4010,20 @@ export type SubgraphMarket_Filter = {
3527
4010
  withdrawalBatchDuration_not?: InputMaybe<Scalars["Int"]["input"]>;
3528
4011
  withdrawalBatchDuration_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3529
4012
  withdrawalBatches_?: InputMaybe<SubgraphWithdrawalBatch_Filter>;
4013
+ withdrawalRequestRecords_?: InputMaybe<SubgraphWithdrawalRequest_Filter>;
4014
+ withdrawalRequestsIndex?: InputMaybe<Scalars["Int"]["input"]>;
4015
+ withdrawalRequestsIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
4016
+ withdrawalRequestsIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
4017
+ withdrawalRequestsIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4018
+ withdrawalRequestsIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
4019
+ withdrawalRequestsIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
4020
+ withdrawalRequestsIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
4021
+ withdrawalRequestsIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3530
4022
  };
3531
4023
  export declare enum SubgraphMarket_OrderBy {
3532
4024
  AnnualInterestBips = "annualInterestBips",
4025
+ AnnualInterestBipsUpdatedIndex = "annualInterestBipsUpdatedIndex",
4026
+ AnnualInterestBipsUpdatedRecords = "annualInterestBipsUpdatedRecords",
3533
4027
  ArchController = "archController",
3534
4028
  ArchControllerId = "archController__id",
3535
4029
  Asset = "asset",
@@ -3539,6 +4033,7 @@ export declare enum SubgraphMarket_OrderBy {
3539
4033
  AssetIsMock = "asset__isMock",
3540
4034
  AssetName = "asset__name",
3541
4035
  AssetSymbol = "asset__symbol",
4036
+ BorrowIndex = "borrowIndex",
3542
4037
  BorrowRecords = "borrowRecords",
3543
4038
  Borrower = "borrower",
3544
4039
  Controller = "controller",
@@ -3546,18 +4041,23 @@ export declare enum SubgraphMarket_OrderBy {
3546
4041
  ControllerId = "controller__id",
3547
4042
  ControllerIsRegistered = "controller__isRegistered",
3548
4043
  CreatedAt = "createdAt",
4044
+ DebtRepaidIndex = "debtRepaidIndex",
3549
4045
  Decimals = "decimals",
3550
4046
  DelinquencyFeeBips = "delinquencyFeeBips",
3551
4047
  DelinquencyGracePeriod = "delinquencyGracePeriod",
3552
4048
  DelinquencyRecords = "delinquencyRecords",
4049
+ DelinquencyStatusChangedIndex = "delinquencyStatusChangedIndex",
3553
4050
  DeployedEvent = "deployedEvent",
3554
4051
  DeployedEventBlockNumber = "deployedEvent__blockNumber",
3555
4052
  DeployedEventBlockTimestamp = "deployedEvent__blockTimestamp",
3556
4053
  DeployedEventId = "deployedEvent__id",
3557
4054
  DeployedEventTransactionHash = "deployedEvent__transactionHash",
4055
+ DepositIndex = "depositIndex",
3558
4056
  DepositRecords = "depositRecords",
4057
+ EventIndex = "eventIndex",
3559
4058
  FeeCollectionRecords = "feeCollectionRecords",
3560
4059
  FeeRecipient = "feeRecipient",
4060
+ FeesCollectedIndex = "feesCollectedIndex",
3561
4061
  Id = "id",
3562
4062
  InterestAccrualRecords = "interestAccrualRecords",
3563
4063
  IsClosed = "isClosed",
@@ -3565,7 +4065,16 @@ export declare enum SubgraphMarket_OrderBy {
3565
4065
  IsRegistered = "isRegistered",
3566
4066
  LastInterestAccruedTimestamp = "lastInterestAccruedTimestamp",
3567
4067
  Lenders = "lenders",
4068
+ MarketClosedEvent = "marketClosedEvent",
4069
+ MarketClosedEventBlockNumber = "marketClosedEvent__blockNumber",
4070
+ MarketClosedEventBlockTimestamp = "marketClosedEvent__blockTimestamp",
4071
+ MarketClosedEventEventIndex = "marketClosedEvent__eventIndex",
4072
+ MarketClosedEventId = "marketClosedEvent__id",
4073
+ MarketClosedEventTimestamp = "marketClosedEvent__timestamp",
4074
+ MarketClosedEventTransactionHash = "marketClosedEvent__transactionHash",
3568
4075
  MaxTotalSupply = "maxTotalSupply",
4076
+ MaxTotalSupplyUpdatedIndex = "maxTotalSupplyUpdatedIndex",
4077
+ MaxTotalSupplyUpdatedRecords = "maxTotalSupplyUpdatedRecords",
3569
4078
  Name = "name",
3570
4079
  NormalizedUnclaimedWithdrawals = "normalizedUnclaimedWithdrawals",
3571
4080
  OriginalAnnualInterestBips = "originalAnnualInterestBips",
@@ -3580,6 +4089,7 @@ export declare enum SubgraphMarket_OrderBy {
3580
4089
  RemovalTransactionHash = "removal__transactionHash",
3581
4090
  RepaymentRecords = "repaymentRecords",
3582
4091
  ReserveRatioBips = "reserveRatioBips",
4092
+ ReserveRatioBipsUpdatedRecords = "reserveRatioBipsUpdatedRecords",
3583
4093
  ScaleFactor = "scaleFactor",
3584
4094
  ScaledPendingWithdrawals = "scaledPendingWithdrawals",
3585
4095
  ScaledTotalSupply = "scaledTotalSupply",
@@ -3595,14 +4105,18 @@ export declare enum SubgraphMarket_OrderBy {
3595
4105
  TotalProtocolFeesAccrued = "totalProtocolFeesAccrued",
3596
4106
  TotalRepaid = "totalRepaid",
3597
4107
  WithdrawalBatchDuration = "withdrawalBatchDuration",
3598
- WithdrawalBatches = "withdrawalBatches"
4108
+ WithdrawalBatches = "withdrawalBatches",
4109
+ WithdrawalRequestRecords = "withdrawalRequestRecords",
4110
+ WithdrawalRequestsIndex = "withdrawalRequestsIndex"
3599
4111
  }
3600
4112
  export type SubgraphMaxTotalSupplyUpdated = {
3601
4113
  __typename?: "MaxTotalSupplyUpdated";
3602
4114
  blockNumber: Scalars["Int"]["output"];
3603
4115
  blockTimestamp: Scalars["Int"]["output"];
4116
+ eventIndex: Scalars["Int"]["output"];
3604
4117
  id: Scalars["ID"]["output"];
3605
4118
  market: SubgraphMarket;
4119
+ maxTotalSupplyUpdatedIndex: Scalars["Int"]["output"];
3606
4120
  newMaxTotalSupply: Scalars["BigInt"]["output"];
3607
4121
  oldMaxTotalSupply: Scalars["BigInt"]["output"];
3608
4122
  transactionHash: Scalars["Bytes"]["output"];
@@ -3627,6 +4141,14 @@ export type SubgraphMaxTotalSupplyUpdated_Filter = {
3627
4141
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
3628
4142
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
3629
4143
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4144
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
4145
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
4146
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
4147
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4148
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
4149
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
4150
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
4151
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3630
4152
  id?: InputMaybe<Scalars["ID"]["input"]>;
3631
4153
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
3632
4154
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -3656,6 +4178,14 @@ export type SubgraphMaxTotalSupplyUpdated_Filter = {
3656
4178
  market_not_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
3657
4179
  market_starts_with?: InputMaybe<Scalars["String"]["input"]>;
3658
4180
  market_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
4181
+ maxTotalSupplyUpdatedIndex?: InputMaybe<Scalars["Int"]["input"]>;
4182
+ maxTotalSupplyUpdatedIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
4183
+ maxTotalSupplyUpdatedIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
4184
+ maxTotalSupplyUpdatedIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4185
+ maxTotalSupplyUpdatedIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
4186
+ maxTotalSupplyUpdatedIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
4187
+ maxTotalSupplyUpdatedIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
4188
+ maxTotalSupplyUpdatedIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3659
4189
  newMaxTotalSupply?: InputMaybe<Scalars["BigInt"]["input"]>;
3660
4190
  newMaxTotalSupply_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3661
4191
  newMaxTotalSupply_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -3687,21 +4217,30 @@ export type SubgraphMaxTotalSupplyUpdated_Filter = {
3687
4217
  export declare enum SubgraphMaxTotalSupplyUpdated_OrderBy {
3688
4218
  BlockNumber = "blockNumber",
3689
4219
  BlockTimestamp = "blockTimestamp",
4220
+ EventIndex = "eventIndex",
3690
4221
  Id = "id",
3691
4222
  Market = "market",
3692
4223
  MarketAnnualInterestBips = "market__annualInterestBips",
4224
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
4225
+ MarketBorrowIndex = "market__borrowIndex",
3693
4226
  MarketBorrower = "market__borrower",
3694
4227
  MarketCreatedAt = "market__createdAt",
4228
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
3695
4229
  MarketDecimals = "market__decimals",
3696
4230
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
3697
4231
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
4232
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
4233
+ MarketDepositIndex = "market__depositIndex",
4234
+ MarketEventIndex = "market__eventIndex",
3698
4235
  MarketFeeRecipient = "market__feeRecipient",
4236
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
3699
4237
  MarketId = "market__id",
3700
4238
  MarketIsClosed = "market__isClosed",
3701
4239
  MarketIsDelinquent = "market__isDelinquent",
3702
4240
  MarketIsRegistered = "market__isRegistered",
3703
4241
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
3704
4242
  MarketMaxTotalSupply = "market__maxTotalSupply",
4243
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
3705
4244
  MarketName = "market__name",
3706
4245
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
3707
4246
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -3725,6 +4264,8 @@ export declare enum SubgraphMaxTotalSupplyUpdated_OrderBy {
3725
4264
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
3726
4265
  MarketTotalRepaid = "market__totalRepaid",
3727
4266
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
4267
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
4268
+ MaxTotalSupplyUpdatedIndex = "maxTotalSupplyUpdatedIndex",
3728
4269
  NewMaxTotalSupply = "newMaxTotalSupply",
3729
4270
  OldMaxTotalSupply = "oldMaxTotalSupply",
3730
4271
  TransactionHash = "transactionHash"
@@ -4276,6 +4817,8 @@ export type SubgraphQuery = {
4276
4817
  __typename?: "Query";
4277
4818
  /** Access to subgraph metadata */
4278
4819
  _meta?: Maybe<Subgraph_Meta_>;
4820
+ annualInterestBipsUpdated?: Maybe<SubgraphAnnualInterestBipsUpdated>;
4821
+ annualInterestBipsUpdateds: SubgraphAnnualInterestBipsUpdated[];
4279
4822
  approval?: Maybe<SubgraphApproval>;
4280
4823
  approvals: SubgraphApproval[];
4281
4824
  archController?: Maybe<SubgraphArchController>;
@@ -4376,11 +4919,21 @@ export type SubgraphQuery = {
4376
4919
  export type SubgraphQuery_MetaArgs = {
4377
4920
  block?: InputMaybe<SubgraphBlock_Height>;
4378
4921
  };
4379
- export type SubgraphQueryApprovalArgs = {
4922
+ export type SubgraphQueryAnnualInterestBipsUpdatedArgs = {
4380
4923
  block?: InputMaybe<SubgraphBlock_Height>;
4381
4924
  id: Scalars["ID"]["input"];
4382
4925
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4383
4926
  };
4927
+ export type SubgraphQueryAnnualInterestBipsUpdatedsArgs = {
4928
+ block?: InputMaybe<SubgraphBlock_Height>;
4929
+ first?: InputMaybe<Scalars["Int"]["input"]>;
4930
+ orderBy?: InputMaybe<SubgraphAnnualInterestBipsUpdated_OrderBy>;
4931
+ orderDirection?: InputMaybe<SubgraphOrderDirection>;
4932
+ skip?: InputMaybe<Scalars["Int"]["input"]>;
4933
+ subgraphError?: Subgraph_SubgraphErrorPolicy_;
4934
+ where?: InputMaybe<SubgraphAnnualInterestBipsUpdated_Filter>;
4935
+ };
4936
+ export type SubgraphQueryApprovalArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4384
4937
  export type SubgraphQueryApprovalsArgs = {
4385
4938
  block?: InputMaybe<SubgraphBlock_Height>;
4386
4939
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4390,7 +4943,7 @@ export type SubgraphQueryApprovalsArgs = {
4390
4943
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4391
4944
  where?: InputMaybe<SubgraphApproval_Filter>;
4392
4945
  };
4393
- export type SubgraphQueryArchControllerArgs = SubgraphQueryApprovalArgs;
4946
+ export type SubgraphQueryArchControllerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4394
4947
  export type SubgraphQueryArchControllersArgs = {
4395
4948
  block?: InputMaybe<SubgraphBlock_Height>;
4396
4949
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4400,8 +4953,8 @@ export type SubgraphQueryArchControllersArgs = {
4400
4953
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4401
4954
  where?: InputMaybe<SubgraphArchController_Filter>;
4402
4955
  };
4403
- export type SubgraphQueryBorrowArgs = SubgraphQueryApprovalArgs;
4404
- export type SubgraphQueryBorrowerRegistrationChangeArgs = SubgraphQueryApprovalArgs;
4956
+ export type SubgraphQueryBorrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4957
+ export type SubgraphQueryBorrowerRegistrationChangeArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4405
4958
  export type SubgraphQueryBorrowerRegistrationChangesArgs = {
4406
4959
  block?: InputMaybe<SubgraphBlock_Height>;
4407
4960
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4420,8 +4973,8 @@ export type SubgraphQueryBorrowsArgs = {
4420
4973
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4421
4974
  where?: InputMaybe<SubgraphBorrow_Filter>;
4422
4975
  };
4423
- export type SubgraphQueryControllerArgs = SubgraphQueryApprovalArgs;
4424
- export type SubgraphQueryControllerAddedArgs = SubgraphQueryApprovalArgs;
4976
+ export type SubgraphQueryControllerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4977
+ export type SubgraphQueryControllerAddedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4425
4978
  export type SubgraphQueryControllerAddedsArgs = {
4426
4979
  block?: InputMaybe<SubgraphBlock_Height>;
4427
4980
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4440,8 +4993,8 @@ export type SubgraphQueryControllerFactoriesArgs = {
4440
4993
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4441
4994
  where?: InputMaybe<SubgraphControllerFactory_Filter>;
4442
4995
  };
4443
- export type SubgraphQueryControllerFactoryArgs = SubgraphQueryApprovalArgs;
4444
- export type SubgraphQueryControllerFactoryAddedArgs = SubgraphQueryApprovalArgs;
4996
+ export type SubgraphQueryControllerFactoryArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4997
+ export type SubgraphQueryControllerFactoryAddedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4445
4998
  export type SubgraphQueryControllerFactoryAddedsArgs = {
4446
4999
  block?: InputMaybe<SubgraphBlock_Height>;
4447
5000
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4451,7 +5004,7 @@ export type SubgraphQueryControllerFactoryAddedsArgs = {
4451
5004
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4452
5005
  where?: InputMaybe<SubgraphControllerFactoryAdded_Filter>;
4453
5006
  };
4454
- export type SubgraphQueryControllerFactoryRemovedArgs = SubgraphQueryApprovalArgs;
5007
+ export type SubgraphQueryControllerFactoryRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4455
5008
  export type SubgraphQueryControllerFactoryRemovedsArgs = {
4456
5009
  block?: InputMaybe<SubgraphBlock_Height>;
4457
5010
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4461,7 +5014,7 @@ export type SubgraphQueryControllerFactoryRemovedsArgs = {
4461
5014
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4462
5015
  where?: InputMaybe<SubgraphControllerFactoryRemoved_Filter>;
4463
5016
  };
4464
- export type SubgraphQueryControllerRemovedArgs = SubgraphQueryApprovalArgs;
5017
+ export type SubgraphQueryControllerRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4465
5018
  export type SubgraphQueryControllerRemovedsArgs = {
4466
5019
  block?: InputMaybe<SubgraphBlock_Height>;
4467
5020
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4480,7 +5033,7 @@ export type SubgraphQueryControllersArgs = {
4480
5033
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4481
5034
  where?: InputMaybe<SubgraphController_Filter>;
4482
5035
  };
4483
- export type SubgraphQueryDebtRepaidArgs = SubgraphQueryApprovalArgs;
5036
+ export type SubgraphQueryDebtRepaidArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4484
5037
  export type SubgraphQueryDebtRepaidsArgs = {
4485
5038
  block?: InputMaybe<SubgraphBlock_Height>;
4486
5039
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4490,7 +5043,7 @@ export type SubgraphQueryDebtRepaidsArgs = {
4490
5043
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4491
5044
  where?: InputMaybe<SubgraphDebtRepaid_Filter>;
4492
5045
  };
4493
- export type SubgraphQueryDelinquencyStatusChangedArgs = SubgraphQueryApprovalArgs;
5046
+ export type SubgraphQueryDelinquencyStatusChangedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4494
5047
  export type SubgraphQueryDelinquencyStatusChangedsArgs = {
4495
5048
  block?: InputMaybe<SubgraphBlock_Height>;
4496
5049
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4500,7 +5053,7 @@ export type SubgraphQueryDelinquencyStatusChangedsArgs = {
4500
5053
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4501
5054
  where?: InputMaybe<SubgraphDelinquencyStatusChanged_Filter>;
4502
5055
  };
4503
- export type SubgraphQueryDepositArgs = SubgraphQueryApprovalArgs;
5056
+ export type SubgraphQueryDepositArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4504
5057
  export type SubgraphQueryDepositsArgs = {
4505
5058
  block?: InputMaybe<SubgraphBlock_Height>;
4506
5059
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4510,7 +5063,7 @@ export type SubgraphQueryDepositsArgs = {
4510
5063
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4511
5064
  where?: InputMaybe<SubgraphDeposit_Filter>;
4512
5065
  };
4513
- export type SubgraphQueryFeesCollectedArgs = SubgraphQueryApprovalArgs;
5066
+ export type SubgraphQueryFeesCollectedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4514
5067
  export type SubgraphQueryFeesCollectedsArgs = {
4515
5068
  block?: InputMaybe<SubgraphBlock_Height>;
4516
5069
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4520,7 +5073,7 @@ export type SubgraphQueryFeesCollectedsArgs = {
4520
5073
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4521
5074
  where?: InputMaybe<SubgraphFeesCollected_Filter>;
4522
5075
  };
4523
- export type SubgraphQueryLenderAccountArgs = SubgraphQueryApprovalArgs;
5076
+ export type SubgraphQueryLenderAccountArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4524
5077
  export type SubgraphQueryLenderAccountsArgs = {
4525
5078
  block?: InputMaybe<SubgraphBlock_Height>;
4526
5079
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4530,8 +5083,8 @@ export type SubgraphQueryLenderAccountsArgs = {
4530
5083
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4531
5084
  where?: InputMaybe<SubgraphLenderAccount_Filter>;
4532
5085
  };
4533
- export type SubgraphQueryLenderAuthorizationArgs = SubgraphQueryApprovalArgs;
4534
- export type SubgraphQueryLenderAuthorizationChangeArgs = SubgraphQueryApprovalArgs;
5086
+ export type SubgraphQueryLenderAuthorizationArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5087
+ export type SubgraphQueryLenderAuthorizationChangeArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4535
5088
  export type SubgraphQueryLenderAuthorizationChangesArgs = {
4536
5089
  block?: InputMaybe<SubgraphBlock_Height>;
4537
5090
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4550,7 +5103,7 @@ export type SubgraphQueryLenderAuthorizationsArgs = {
4550
5103
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4551
5104
  where?: InputMaybe<SubgraphLenderAuthorization_Filter>;
4552
5105
  };
4553
- export type SubgraphQueryLenderInterestAccruedArgs = SubgraphQueryApprovalArgs;
5106
+ export type SubgraphQueryLenderInterestAccruedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4554
5107
  export type SubgraphQueryLenderInterestAccruedsArgs = {
4555
5108
  block?: InputMaybe<SubgraphBlock_Height>;
4556
5109
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4560,7 +5113,7 @@ export type SubgraphQueryLenderInterestAccruedsArgs = {
4560
5113
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4561
5114
  where?: InputMaybe<SubgraphLenderInterestAccrued_Filter>;
4562
5115
  };
4563
- export type SubgraphQueryLenderWithdrawalStatusArgs = SubgraphQueryApprovalArgs;
5116
+ export type SubgraphQueryLenderWithdrawalStatusArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4564
5117
  export type SubgraphQueryLenderWithdrawalStatusesArgs = {
4565
5118
  block?: InputMaybe<SubgraphBlock_Height>;
4566
5119
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4570,8 +5123,8 @@ export type SubgraphQueryLenderWithdrawalStatusesArgs = {
4570
5123
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4571
5124
  where?: InputMaybe<SubgraphLenderWithdrawalStatus_Filter>;
4572
5125
  };
4573
- export type SubgraphQueryMarketArgs = SubgraphQueryApprovalArgs;
4574
- export type SubgraphQueryMarketAddedArgs = SubgraphQueryApprovalArgs;
5126
+ export type SubgraphQueryMarketArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5127
+ export type SubgraphQueryMarketAddedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4575
5128
  export type SubgraphQueryMarketAddedsArgs = {
4576
5129
  block?: InputMaybe<SubgraphBlock_Height>;
4577
5130
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4581,7 +5134,7 @@ export type SubgraphQueryMarketAddedsArgs = {
4581
5134
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4582
5135
  where?: InputMaybe<SubgraphMarketAdded_Filter>;
4583
5136
  };
4584
- export type SubgraphQueryMarketClosedArgs = SubgraphQueryApprovalArgs;
5137
+ export type SubgraphQueryMarketClosedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4585
5138
  export type SubgraphQueryMarketClosedsArgs = {
4586
5139
  block?: InputMaybe<SubgraphBlock_Height>;
4587
5140
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4591,7 +5144,7 @@ export type SubgraphQueryMarketClosedsArgs = {
4591
5144
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4592
5145
  where?: InputMaybe<SubgraphMarketClosed_Filter>;
4593
5146
  };
4594
- export type SubgraphQueryMarketDeployedArgs = SubgraphQueryApprovalArgs;
5147
+ export type SubgraphQueryMarketDeployedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4595
5148
  export type SubgraphQueryMarketDeployedsArgs = {
4596
5149
  block?: InputMaybe<SubgraphBlock_Height>;
4597
5150
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4601,7 +5154,7 @@ export type SubgraphQueryMarketDeployedsArgs = {
4601
5154
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4602
5155
  where?: InputMaybe<SubgraphMarketDeployed_Filter>;
4603
5156
  };
4604
- export type SubgraphQueryMarketInterestAccruedArgs = SubgraphQueryApprovalArgs;
5157
+ export type SubgraphQueryMarketInterestAccruedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4605
5158
  export type SubgraphQueryMarketInterestAccruedsArgs = {
4606
5159
  block?: InputMaybe<SubgraphBlock_Height>;
4607
5160
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4611,7 +5164,7 @@ export type SubgraphQueryMarketInterestAccruedsArgs = {
4611
5164
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4612
5165
  where?: InputMaybe<SubgraphMarketInterestAccrued_Filter>;
4613
5166
  };
4614
- export type SubgraphQueryMarketRemovedArgs = SubgraphQueryApprovalArgs;
5167
+ export type SubgraphQueryMarketRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4615
5168
  export type SubgraphQueryMarketRemovedsArgs = {
4616
5169
  block?: InputMaybe<SubgraphBlock_Height>;
4617
5170
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4630,7 +5183,7 @@ export type SubgraphQueryMarketsArgs = {
4630
5183
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4631
5184
  where?: InputMaybe<SubgraphMarket_Filter>;
4632
5185
  };
4633
- export type SubgraphQueryMaxTotalSupplyUpdatedArgs = SubgraphQueryApprovalArgs;
5186
+ export type SubgraphQueryMaxTotalSupplyUpdatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4634
5187
  export type SubgraphQueryMaxTotalSupplyUpdatedsArgs = {
4635
5188
  block?: InputMaybe<SubgraphBlock_Height>;
4636
5189
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4640,7 +5193,7 @@ export type SubgraphQueryMaxTotalSupplyUpdatedsArgs = {
4640
5193
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4641
5194
  where?: InputMaybe<SubgraphMaxTotalSupplyUpdated_Filter>;
4642
5195
  };
4643
- export type SubgraphQueryNewControllerArgs = SubgraphQueryApprovalArgs;
5196
+ export type SubgraphQueryNewControllerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4644
5197
  export type SubgraphQueryNewControllersArgs = {
4645
5198
  block?: InputMaybe<SubgraphBlock_Height>;
4646
5199
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4650,7 +5203,7 @@ export type SubgraphQueryNewControllersArgs = {
4650
5203
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4651
5204
  where?: InputMaybe<SubgraphNewController_Filter>;
4652
5205
  };
4653
- export type SubgraphQueryNewSanctionsEscrowArgs = SubgraphQueryApprovalArgs;
5206
+ export type SubgraphQueryNewSanctionsEscrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4654
5207
  export type SubgraphQueryNewSanctionsEscrowsArgs = {
4655
5208
  block?: InputMaybe<SubgraphBlock_Height>;
4656
5209
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4660,7 +5213,7 @@ export type SubgraphQueryNewSanctionsEscrowsArgs = {
4660
5213
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4661
5214
  where?: InputMaybe<SubgraphNewSanctionsEscrow_Filter>;
4662
5215
  };
4663
- export type SubgraphQueryOwnershipHandoverCanceledArgs = SubgraphQueryApprovalArgs;
5216
+ export type SubgraphQueryOwnershipHandoverCanceledArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4664
5217
  export type SubgraphQueryOwnershipHandoverCanceledsArgs = {
4665
5218
  block?: InputMaybe<SubgraphBlock_Height>;
4666
5219
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4670,7 +5223,7 @@ export type SubgraphQueryOwnershipHandoverCanceledsArgs = {
4670
5223
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4671
5224
  where?: InputMaybe<SubgraphOwnershipHandoverCanceled_Filter>;
4672
5225
  };
4673
- export type SubgraphQueryOwnershipHandoverRequestedArgs = SubgraphQueryApprovalArgs;
5226
+ export type SubgraphQueryOwnershipHandoverRequestedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4674
5227
  export type SubgraphQueryOwnershipHandoverRequestedsArgs = {
4675
5228
  block?: InputMaybe<SubgraphBlock_Height>;
4676
5229
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4680,7 +5233,7 @@ export type SubgraphQueryOwnershipHandoverRequestedsArgs = {
4680
5233
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4681
5234
  where?: InputMaybe<SubgraphOwnershipHandoverRequested_Filter>;
4682
5235
  };
4683
- export type SubgraphQueryOwnershipTransferredArgs = SubgraphQueryApprovalArgs;
5236
+ export type SubgraphQueryOwnershipTransferredArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4684
5237
  export type SubgraphQueryOwnershipTransferredsArgs = {
4685
5238
  block?: InputMaybe<SubgraphBlock_Height>;
4686
5239
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4690,7 +5243,7 @@ export type SubgraphQueryOwnershipTransferredsArgs = {
4690
5243
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4691
5244
  where?: InputMaybe<SubgraphOwnershipTransferred_Filter>;
4692
5245
  };
4693
- export type SubgraphQueryParameterConstraintsArgs = SubgraphQueryApprovalArgs;
5246
+ export type SubgraphQueryParameterConstraintsArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4694
5247
  export type SubgraphQueryParameterConstraints_CollectionArgs = {
4695
5248
  block?: InputMaybe<SubgraphBlock_Height>;
4696
5249
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4700,7 +5253,7 @@ export type SubgraphQueryParameterConstraints_CollectionArgs = {
4700
5253
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4701
5254
  where?: InputMaybe<SubgraphParameterConstraints_Filter>;
4702
5255
  };
4703
- export type SubgraphQueryRegisteredBorrowerArgs = SubgraphQueryApprovalArgs;
5256
+ export type SubgraphQueryRegisteredBorrowerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4704
5257
  export type SubgraphQueryRegisteredBorrowersArgs = {
4705
5258
  block?: InputMaybe<SubgraphBlock_Height>;
4706
5259
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4710,7 +5263,7 @@ export type SubgraphQueryRegisteredBorrowersArgs = {
4710
5263
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4711
5264
  where?: InputMaybe<SubgraphRegisteredBorrower_Filter>;
4712
5265
  };
4713
- export type SubgraphQueryReserveRatioBipsUpdatedArgs = SubgraphQueryApprovalArgs;
5266
+ export type SubgraphQueryReserveRatioBipsUpdatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4714
5267
  export type SubgraphQueryReserveRatioBipsUpdatedsArgs = {
4715
5268
  block?: InputMaybe<SubgraphBlock_Height>;
4716
5269
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4720,8 +5273,8 @@ export type SubgraphQueryReserveRatioBipsUpdatedsArgs = {
4720
5273
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4721
5274
  where?: InputMaybe<SubgraphReserveRatioBipsUpdated_Filter>;
4722
5275
  };
4723
- export type SubgraphQuerySanctionOverrideArgs = SubgraphQueryApprovalArgs;
4724
- export type SubgraphQuerySanctionOverrideRemovedArgs = SubgraphQueryApprovalArgs;
5276
+ export type SubgraphQuerySanctionOverrideArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5277
+ export type SubgraphQuerySanctionOverrideRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4725
5278
  export type SubgraphQuerySanctionOverrideRemovedsArgs = {
4726
5279
  block?: InputMaybe<SubgraphBlock_Height>;
4727
5280
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4740,7 +5293,7 @@ export type SubgraphQuerySanctionOverridesArgs = {
4740
5293
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4741
5294
  where?: InputMaybe<SubgraphSanctionOverride_Filter>;
4742
5295
  };
4743
- export type SubgraphQuerySanctionedAccountAssetsSentToEscrowArgs = SubgraphQueryApprovalArgs;
5296
+ export type SubgraphQuerySanctionedAccountAssetsSentToEscrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4744
5297
  export type SubgraphQuerySanctionedAccountAssetsSentToEscrowsArgs = {
4745
5298
  block?: InputMaybe<SubgraphBlock_Height>;
4746
5299
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4750,7 +5303,7 @@ export type SubgraphQuerySanctionedAccountAssetsSentToEscrowsArgs = {
4750
5303
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4751
5304
  where?: InputMaybe<SubgraphSanctionedAccountAssetsSentToEscrow_Filter>;
4752
5305
  };
4753
- export type SubgraphQuerySanctionedAccountWithdrawalSentToEscrowArgs = SubgraphQueryApprovalArgs;
5306
+ export type SubgraphQuerySanctionedAccountWithdrawalSentToEscrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4754
5307
  export type SubgraphQuerySanctionedAccountWithdrawalSentToEscrowsArgs = {
4755
5308
  block?: InputMaybe<SubgraphBlock_Height>;
4756
5309
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4760,7 +5313,7 @@ export type SubgraphQuerySanctionedAccountWithdrawalSentToEscrowsArgs = {
4760
5313
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4761
5314
  where?: InputMaybe<SubgraphSanctionedAccountWithdrawalSentToEscrow_Filter>;
4762
5315
  };
4763
- export type SubgraphQueryTokenArgs = SubgraphQueryApprovalArgs;
5316
+ export type SubgraphQueryTokenArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4764
5317
  export type SubgraphQueryTokensArgs = {
4765
5318
  block?: InputMaybe<SubgraphBlock_Height>;
4766
5319
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4770,7 +5323,7 @@ export type SubgraphQueryTokensArgs = {
4770
5323
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4771
5324
  where?: InputMaybe<SubgraphToken_Filter>;
4772
5325
  };
4773
- export type SubgraphQueryTransferArgs = SubgraphQueryApprovalArgs;
5326
+ export type SubgraphQueryTransferArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4774
5327
  export type SubgraphQueryTransfersArgs = {
4775
5328
  block?: InputMaybe<SubgraphBlock_Height>;
4776
5329
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4780,7 +5333,7 @@ export type SubgraphQueryTransfersArgs = {
4780
5333
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4781
5334
  where?: InputMaybe<SubgraphTransfer_Filter>;
4782
5335
  };
4783
- export type SubgraphQueryUpdateProtocolFeeConfigurationArgs = SubgraphQueryApprovalArgs;
5336
+ export type SubgraphQueryUpdateProtocolFeeConfigurationArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4784
5337
  export type SubgraphQueryUpdateProtocolFeeConfigurationsArgs = {
4785
5338
  block?: InputMaybe<SubgraphBlock_Height>;
4786
5339
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4790,8 +5343,8 @@ export type SubgraphQueryUpdateProtocolFeeConfigurationsArgs = {
4790
5343
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4791
5344
  where?: InputMaybe<SubgraphUpdateProtocolFeeConfiguration_Filter>;
4792
5345
  };
4793
- export type SubgraphQueryWithdrawalBatchArgs = SubgraphQueryApprovalArgs;
4794
- export type SubgraphQueryWithdrawalBatchCreatedArgs = SubgraphQueryApprovalArgs;
5346
+ export type SubgraphQueryWithdrawalBatchArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5347
+ export type SubgraphQueryWithdrawalBatchCreatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4795
5348
  export type SubgraphQueryWithdrawalBatchCreatedsArgs = {
4796
5349
  block?: InputMaybe<SubgraphBlock_Height>;
4797
5350
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4801,7 +5354,7 @@ export type SubgraphQueryWithdrawalBatchCreatedsArgs = {
4801
5354
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4802
5355
  where?: InputMaybe<SubgraphWithdrawalBatchCreated_Filter>;
4803
5356
  };
4804
- export type SubgraphQueryWithdrawalBatchExpiredArgs = SubgraphQueryApprovalArgs;
5357
+ export type SubgraphQueryWithdrawalBatchExpiredArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4805
5358
  export type SubgraphQueryWithdrawalBatchExpiredsArgs = {
4806
5359
  block?: InputMaybe<SubgraphBlock_Height>;
4807
5360
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4811,7 +5364,7 @@ export type SubgraphQueryWithdrawalBatchExpiredsArgs = {
4811
5364
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4812
5365
  where?: InputMaybe<SubgraphWithdrawalBatchExpired_Filter>;
4813
5366
  };
4814
- export type SubgraphQueryWithdrawalBatchInterestAccruedArgs = SubgraphQueryApprovalArgs;
5367
+ export type SubgraphQueryWithdrawalBatchInterestAccruedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4815
5368
  export type SubgraphQueryWithdrawalBatchInterestAccruedsArgs = {
4816
5369
  block?: InputMaybe<SubgraphBlock_Height>;
4817
5370
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4821,7 +5374,7 @@ export type SubgraphQueryWithdrawalBatchInterestAccruedsArgs = {
4821
5374
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4822
5375
  where?: InputMaybe<SubgraphWithdrawalBatchInterestAccrued_Filter>;
4823
5376
  };
4824
- export type SubgraphQueryWithdrawalBatchPaymentArgs = SubgraphQueryApprovalArgs;
5377
+ export type SubgraphQueryWithdrawalBatchPaymentArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4825
5378
  export type SubgraphQueryWithdrawalBatchPaymentsArgs = {
4826
5379
  block?: InputMaybe<SubgraphBlock_Height>;
4827
5380
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4840,7 +5393,7 @@ export type SubgraphQueryWithdrawalBatchesArgs = {
4840
5393
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4841
5394
  where?: InputMaybe<SubgraphWithdrawalBatch_Filter>;
4842
5395
  };
4843
- export type SubgraphQueryWithdrawalExecutionArgs = SubgraphQueryApprovalArgs;
5396
+ export type SubgraphQueryWithdrawalExecutionArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4844
5397
  export type SubgraphQueryWithdrawalExecutionsArgs = {
4845
5398
  block?: InputMaybe<SubgraphBlock_Height>;
4846
5399
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -4850,7 +5403,7 @@ export type SubgraphQueryWithdrawalExecutionsArgs = {
4850
5403
  subgraphError?: Subgraph_SubgraphErrorPolicy_;
4851
5404
  where?: InputMaybe<SubgraphWithdrawalExecution_Filter>;
4852
5405
  };
4853
- export type SubgraphQueryWithdrawalRequestArgs = SubgraphQueryApprovalArgs;
5406
+ export type SubgraphQueryWithdrawalRequestArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
4854
5407
  export type SubgraphQueryWithdrawalRequestsArgs = {
4855
5408
  block?: InputMaybe<SubgraphBlock_Height>;
4856
5409
  first?: InputMaybe<Scalars["Int"]["input"]>;
@@ -5026,18 +5579,26 @@ export declare enum SubgraphReserveRatioBipsUpdated_OrderBy {
5026
5579
  Id = "id",
5027
5580
  Market = "market",
5028
5581
  MarketAnnualInterestBips = "market__annualInterestBips",
5582
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
5583
+ MarketBorrowIndex = "market__borrowIndex",
5029
5584
  MarketBorrower = "market__borrower",
5030
5585
  MarketCreatedAt = "market__createdAt",
5586
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
5031
5587
  MarketDecimals = "market__decimals",
5032
5588
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
5033
5589
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
5590
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
5591
+ MarketDepositIndex = "market__depositIndex",
5592
+ MarketEventIndex = "market__eventIndex",
5034
5593
  MarketFeeRecipient = "market__feeRecipient",
5594
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
5035
5595
  MarketId = "market__id",
5036
5596
  MarketIsClosed = "market__isClosed",
5037
5597
  MarketIsDelinquent = "market__isDelinquent",
5038
5598
  MarketIsRegistered = "market__isRegistered",
5039
5599
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
5040
5600
  MarketMaxTotalSupply = "market__maxTotalSupply",
5601
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
5041
5602
  MarketName = "market__name",
5042
5603
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
5043
5604
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -5061,6 +5622,7 @@ export declare enum SubgraphReserveRatioBipsUpdated_OrderBy {
5061
5622
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
5062
5623
  MarketTotalRepaid = "market__totalRepaid",
5063
5624
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
5625
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
5064
5626
  NewReserveRatioBips = "newReserveRatioBips",
5065
5627
  OldReserveRatioBips = "oldReserveRatioBips",
5066
5628
  TransactionHash = "transactionHash"
@@ -5407,6 +5969,8 @@ export type SubgraphSubscription = {
5407
5969
  __typename?: "Subscription";
5408
5970
  /** Access to subgraph metadata */
5409
5971
  _meta?: Maybe<Subgraph_Meta_>;
5972
+ annualInterestBipsUpdated?: Maybe<SubgraphAnnualInterestBipsUpdated>;
5973
+ annualInterestBipsUpdateds: SubgraphAnnualInterestBipsUpdated[];
5410
5974
  approval?: Maybe<SubgraphApproval>;
5411
5975
  approvals: SubgraphApproval[];
5412
5976
  archController?: Maybe<SubgraphArchController>;
@@ -5505,101 +6069,103 @@ export type SubgraphSubscription = {
5505
6069
  withdrawalRequests: SubgraphWithdrawalRequest[];
5506
6070
  };
5507
6071
  export type SubgraphSubscription_MetaArgs = SubgraphQuery_MetaArgs;
5508
- export type SubgraphSubscriptionApprovalArgs = SubgraphQueryApprovalArgs;
6072
+ export type SubgraphSubscriptionAnnualInterestBipsUpdatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6073
+ export type SubgraphSubscriptionAnnualInterestBipsUpdatedsArgs = SubgraphQueryAnnualInterestBipsUpdatedsArgs;
6074
+ export type SubgraphSubscriptionApprovalArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5509
6075
  export type SubgraphSubscriptionApprovalsArgs = SubgraphQueryApprovalsArgs;
5510
- export type SubgraphSubscriptionArchControllerArgs = SubgraphQueryApprovalArgs;
6076
+ export type SubgraphSubscriptionArchControllerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5511
6077
  export type SubgraphSubscriptionArchControllersArgs = SubgraphQueryArchControllersArgs;
5512
- export type SubgraphSubscriptionBorrowArgs = SubgraphQueryApprovalArgs;
5513
- export type SubgraphSubscriptionBorrowerRegistrationChangeArgs = SubgraphQueryApprovalArgs;
6078
+ export type SubgraphSubscriptionBorrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6079
+ export type SubgraphSubscriptionBorrowerRegistrationChangeArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5514
6080
  export type SubgraphSubscriptionBorrowerRegistrationChangesArgs = SubgraphQueryBorrowerRegistrationChangesArgs;
5515
6081
  export type SubgraphSubscriptionBorrowsArgs = SubgraphQueryBorrowsArgs;
5516
- export type SubgraphSubscriptionControllerArgs = SubgraphQueryApprovalArgs;
5517
- export type SubgraphSubscriptionControllerAddedArgs = SubgraphQueryApprovalArgs;
6082
+ export type SubgraphSubscriptionControllerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6083
+ export type SubgraphSubscriptionControllerAddedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5518
6084
  export type SubgraphSubscriptionControllerAddedsArgs = SubgraphQueryControllerAddedsArgs;
5519
6085
  export type SubgraphSubscriptionControllerFactoriesArgs = SubgraphQueryControllerFactoriesArgs;
5520
- export type SubgraphSubscriptionControllerFactoryArgs = SubgraphQueryApprovalArgs;
5521
- export type SubgraphSubscriptionControllerFactoryAddedArgs = SubgraphQueryApprovalArgs;
6086
+ export type SubgraphSubscriptionControllerFactoryArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6087
+ export type SubgraphSubscriptionControllerFactoryAddedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5522
6088
  export type SubgraphSubscriptionControllerFactoryAddedsArgs = SubgraphQueryControllerFactoryAddedsArgs;
5523
- export type SubgraphSubscriptionControllerFactoryRemovedArgs = SubgraphQueryApprovalArgs;
6089
+ export type SubgraphSubscriptionControllerFactoryRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5524
6090
  export type SubgraphSubscriptionControllerFactoryRemovedsArgs = SubgraphQueryControllerFactoryRemovedsArgs;
5525
- export type SubgraphSubscriptionControllerRemovedArgs = SubgraphQueryApprovalArgs;
6091
+ export type SubgraphSubscriptionControllerRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5526
6092
  export type SubgraphSubscriptionControllerRemovedsArgs = SubgraphQueryControllerRemovedsArgs;
5527
6093
  export type SubgraphSubscriptionControllersArgs = SubgraphQueryControllersArgs;
5528
- export type SubgraphSubscriptionDebtRepaidArgs = SubgraphQueryApprovalArgs;
6094
+ export type SubgraphSubscriptionDebtRepaidArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5529
6095
  export type SubgraphSubscriptionDebtRepaidsArgs = SubgraphQueryDebtRepaidsArgs;
5530
- export type SubgraphSubscriptionDelinquencyStatusChangedArgs = SubgraphQueryApprovalArgs;
6096
+ export type SubgraphSubscriptionDelinquencyStatusChangedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5531
6097
  export type SubgraphSubscriptionDelinquencyStatusChangedsArgs = SubgraphQueryDelinquencyStatusChangedsArgs;
5532
- export type SubgraphSubscriptionDepositArgs = SubgraphQueryApprovalArgs;
6098
+ export type SubgraphSubscriptionDepositArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5533
6099
  export type SubgraphSubscriptionDepositsArgs = SubgraphQueryDepositsArgs;
5534
- export type SubgraphSubscriptionFeesCollectedArgs = SubgraphQueryApprovalArgs;
6100
+ export type SubgraphSubscriptionFeesCollectedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5535
6101
  export type SubgraphSubscriptionFeesCollectedsArgs = SubgraphQueryFeesCollectedsArgs;
5536
- export type SubgraphSubscriptionLenderAccountArgs = SubgraphQueryApprovalArgs;
6102
+ export type SubgraphSubscriptionLenderAccountArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5537
6103
  export type SubgraphSubscriptionLenderAccountsArgs = SubgraphQueryLenderAccountsArgs;
5538
- export type SubgraphSubscriptionLenderAuthorizationArgs = SubgraphQueryApprovalArgs;
5539
- export type SubgraphSubscriptionLenderAuthorizationChangeArgs = SubgraphQueryApprovalArgs;
6104
+ export type SubgraphSubscriptionLenderAuthorizationArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6105
+ export type SubgraphSubscriptionLenderAuthorizationChangeArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5540
6106
  export type SubgraphSubscriptionLenderAuthorizationChangesArgs = SubgraphQueryLenderAuthorizationChangesArgs;
5541
6107
  export type SubgraphSubscriptionLenderAuthorizationsArgs = SubgraphQueryLenderAuthorizationsArgs;
5542
- export type SubgraphSubscriptionLenderInterestAccruedArgs = SubgraphQueryApprovalArgs;
6108
+ export type SubgraphSubscriptionLenderInterestAccruedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5543
6109
  export type SubgraphSubscriptionLenderInterestAccruedsArgs = SubgraphQueryLenderInterestAccruedsArgs;
5544
- export type SubgraphSubscriptionLenderWithdrawalStatusArgs = SubgraphQueryApprovalArgs;
6110
+ export type SubgraphSubscriptionLenderWithdrawalStatusArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5545
6111
  export type SubgraphSubscriptionLenderWithdrawalStatusesArgs = SubgraphQueryLenderWithdrawalStatusesArgs;
5546
- export type SubgraphSubscriptionMarketArgs = SubgraphQueryApprovalArgs;
5547
- export type SubgraphSubscriptionMarketAddedArgs = SubgraphQueryApprovalArgs;
6112
+ export type SubgraphSubscriptionMarketArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6113
+ export type SubgraphSubscriptionMarketAddedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5548
6114
  export type SubgraphSubscriptionMarketAddedsArgs = SubgraphQueryMarketAddedsArgs;
5549
- export type SubgraphSubscriptionMarketClosedArgs = SubgraphQueryApprovalArgs;
6115
+ export type SubgraphSubscriptionMarketClosedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5550
6116
  export type SubgraphSubscriptionMarketClosedsArgs = SubgraphQueryMarketClosedsArgs;
5551
- export type SubgraphSubscriptionMarketDeployedArgs = SubgraphQueryApprovalArgs;
6117
+ export type SubgraphSubscriptionMarketDeployedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5552
6118
  export type SubgraphSubscriptionMarketDeployedsArgs = SubgraphQueryMarketDeployedsArgs;
5553
- export type SubgraphSubscriptionMarketInterestAccruedArgs = SubgraphQueryApprovalArgs;
6119
+ export type SubgraphSubscriptionMarketInterestAccruedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5554
6120
  export type SubgraphSubscriptionMarketInterestAccruedsArgs = SubgraphQueryMarketInterestAccruedsArgs;
5555
- export type SubgraphSubscriptionMarketRemovedArgs = SubgraphQueryApprovalArgs;
6121
+ export type SubgraphSubscriptionMarketRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5556
6122
  export type SubgraphSubscriptionMarketRemovedsArgs = SubgraphQueryMarketRemovedsArgs;
5557
6123
  export type SubgraphSubscriptionMarketsArgs = SubgraphQueryMarketsArgs;
5558
- export type SubgraphSubscriptionMaxTotalSupplyUpdatedArgs = SubgraphQueryApprovalArgs;
6124
+ export type SubgraphSubscriptionMaxTotalSupplyUpdatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5559
6125
  export type SubgraphSubscriptionMaxTotalSupplyUpdatedsArgs = SubgraphQueryMaxTotalSupplyUpdatedsArgs;
5560
- export type SubgraphSubscriptionNewControllerArgs = SubgraphQueryApprovalArgs;
6126
+ export type SubgraphSubscriptionNewControllerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5561
6127
  export type SubgraphSubscriptionNewControllersArgs = SubgraphQueryNewControllersArgs;
5562
- export type SubgraphSubscriptionNewSanctionsEscrowArgs = SubgraphQueryApprovalArgs;
6128
+ export type SubgraphSubscriptionNewSanctionsEscrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5563
6129
  export type SubgraphSubscriptionNewSanctionsEscrowsArgs = SubgraphQueryNewSanctionsEscrowsArgs;
5564
- export type SubgraphSubscriptionOwnershipHandoverCanceledArgs = SubgraphQueryApprovalArgs;
6130
+ export type SubgraphSubscriptionOwnershipHandoverCanceledArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5565
6131
  export type SubgraphSubscriptionOwnershipHandoverCanceledsArgs = SubgraphQueryOwnershipHandoverCanceledsArgs;
5566
- export type SubgraphSubscriptionOwnershipHandoverRequestedArgs = SubgraphQueryApprovalArgs;
6132
+ export type SubgraphSubscriptionOwnershipHandoverRequestedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5567
6133
  export type SubgraphSubscriptionOwnershipHandoverRequestedsArgs = SubgraphQueryOwnershipHandoverRequestedsArgs;
5568
- export type SubgraphSubscriptionOwnershipTransferredArgs = SubgraphQueryApprovalArgs;
6134
+ export type SubgraphSubscriptionOwnershipTransferredArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5569
6135
  export type SubgraphSubscriptionOwnershipTransferredsArgs = SubgraphQueryOwnershipTransferredsArgs;
5570
- export type SubgraphSubscriptionParameterConstraintsArgs = SubgraphQueryApprovalArgs;
6136
+ export type SubgraphSubscriptionParameterConstraintsArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5571
6137
  export type SubgraphSubscriptionParameterConstraints_CollectionArgs = SubgraphQueryParameterConstraints_CollectionArgs;
5572
- export type SubgraphSubscriptionRegisteredBorrowerArgs = SubgraphQueryApprovalArgs;
6138
+ export type SubgraphSubscriptionRegisteredBorrowerArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5573
6139
  export type SubgraphSubscriptionRegisteredBorrowersArgs = SubgraphQueryRegisteredBorrowersArgs;
5574
- export type SubgraphSubscriptionReserveRatioBipsUpdatedArgs = SubgraphQueryApprovalArgs;
6140
+ export type SubgraphSubscriptionReserveRatioBipsUpdatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5575
6141
  export type SubgraphSubscriptionReserveRatioBipsUpdatedsArgs = SubgraphQueryReserveRatioBipsUpdatedsArgs;
5576
- export type SubgraphSubscriptionSanctionOverrideArgs = SubgraphQueryApprovalArgs;
5577
- export type SubgraphSubscriptionSanctionOverrideRemovedArgs = SubgraphQueryApprovalArgs;
6142
+ export type SubgraphSubscriptionSanctionOverrideArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6143
+ export type SubgraphSubscriptionSanctionOverrideRemovedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5578
6144
  export type SubgraphSubscriptionSanctionOverrideRemovedsArgs = SubgraphQuerySanctionOverrideRemovedsArgs;
5579
6145
  export type SubgraphSubscriptionSanctionOverridesArgs = SubgraphQuerySanctionOverridesArgs;
5580
- export type SubgraphSubscriptionSanctionedAccountAssetsSentToEscrowArgs = SubgraphQueryApprovalArgs;
6146
+ export type SubgraphSubscriptionSanctionedAccountAssetsSentToEscrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5581
6147
  export type SubgraphSubscriptionSanctionedAccountAssetsSentToEscrowsArgs = SubgraphQuerySanctionedAccountAssetsSentToEscrowsArgs;
5582
- export type SubgraphSubscriptionSanctionedAccountWithdrawalSentToEscrowArgs = SubgraphQueryApprovalArgs;
6148
+ export type SubgraphSubscriptionSanctionedAccountWithdrawalSentToEscrowArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5583
6149
  export type SubgraphSubscriptionSanctionedAccountWithdrawalSentToEscrowsArgs = SubgraphQuerySanctionedAccountWithdrawalSentToEscrowsArgs;
5584
- export type SubgraphSubscriptionTokenArgs = SubgraphQueryApprovalArgs;
6150
+ export type SubgraphSubscriptionTokenArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5585
6151
  export type SubgraphSubscriptionTokensArgs = SubgraphQueryTokensArgs;
5586
- export type SubgraphSubscriptionTransferArgs = SubgraphQueryApprovalArgs;
6152
+ export type SubgraphSubscriptionTransferArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5587
6153
  export type SubgraphSubscriptionTransfersArgs = SubgraphQueryTransfersArgs;
5588
- export type SubgraphSubscriptionUpdateProtocolFeeConfigurationArgs = SubgraphQueryApprovalArgs;
6154
+ export type SubgraphSubscriptionUpdateProtocolFeeConfigurationArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5589
6155
  export type SubgraphSubscriptionUpdateProtocolFeeConfigurationsArgs = SubgraphQueryUpdateProtocolFeeConfigurationsArgs;
5590
- export type SubgraphSubscriptionWithdrawalBatchArgs = SubgraphQueryApprovalArgs;
5591
- export type SubgraphSubscriptionWithdrawalBatchCreatedArgs = SubgraphQueryApprovalArgs;
6156
+ export type SubgraphSubscriptionWithdrawalBatchArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
6157
+ export type SubgraphSubscriptionWithdrawalBatchCreatedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5592
6158
  export type SubgraphSubscriptionWithdrawalBatchCreatedsArgs = SubgraphQueryWithdrawalBatchCreatedsArgs;
5593
- export type SubgraphSubscriptionWithdrawalBatchExpiredArgs = SubgraphQueryApprovalArgs;
6159
+ export type SubgraphSubscriptionWithdrawalBatchExpiredArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5594
6160
  export type SubgraphSubscriptionWithdrawalBatchExpiredsArgs = SubgraphQueryWithdrawalBatchExpiredsArgs;
5595
- export type SubgraphSubscriptionWithdrawalBatchInterestAccruedArgs = SubgraphQueryApprovalArgs;
6161
+ export type SubgraphSubscriptionWithdrawalBatchInterestAccruedArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5596
6162
  export type SubgraphSubscriptionWithdrawalBatchInterestAccruedsArgs = SubgraphQueryWithdrawalBatchInterestAccruedsArgs;
5597
- export type SubgraphSubscriptionWithdrawalBatchPaymentArgs = SubgraphQueryApprovalArgs;
6163
+ export type SubgraphSubscriptionWithdrawalBatchPaymentArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5598
6164
  export type SubgraphSubscriptionWithdrawalBatchPaymentsArgs = SubgraphQueryWithdrawalBatchPaymentsArgs;
5599
6165
  export type SubgraphSubscriptionWithdrawalBatchesArgs = SubgraphQueryWithdrawalBatchesArgs;
5600
- export type SubgraphSubscriptionWithdrawalExecutionArgs = SubgraphQueryApprovalArgs;
6166
+ export type SubgraphSubscriptionWithdrawalExecutionArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5601
6167
  export type SubgraphSubscriptionWithdrawalExecutionsArgs = SubgraphQueryWithdrawalExecutionsArgs;
5602
- export type SubgraphSubscriptionWithdrawalRequestArgs = SubgraphQueryApprovalArgs;
6168
+ export type SubgraphSubscriptionWithdrawalRequestArgs = SubgraphQueryAnnualInterestBipsUpdatedArgs;
5603
6169
  export type SubgraphSubscriptionWithdrawalRequestsArgs = SubgraphQueryWithdrawalRequestsArgs;
5604
6170
  export type SubgraphToken = {
5605
6171
  __typename?: "Token";
@@ -5842,18 +6408,26 @@ export declare enum SubgraphTransfer_OrderBy {
5842
6408
  Id = "id",
5843
6409
  Market = "market",
5844
6410
  MarketAnnualInterestBips = "market__annualInterestBips",
6411
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
6412
+ MarketBorrowIndex = "market__borrowIndex",
5845
6413
  MarketBorrower = "market__borrower",
5846
6414
  MarketCreatedAt = "market__createdAt",
6415
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
5847
6416
  MarketDecimals = "market__decimals",
5848
6417
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
5849
6418
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
6419
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
6420
+ MarketDepositIndex = "market__depositIndex",
6421
+ MarketEventIndex = "market__eventIndex",
5850
6422
  MarketFeeRecipient = "market__feeRecipient",
6423
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
5851
6424
  MarketId = "market__id",
5852
6425
  MarketIsClosed = "market__isClosed",
5853
6426
  MarketIsDelinquent = "market__isDelinquent",
5854
6427
  MarketIsRegistered = "market__isRegistered",
5855
6428
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
5856
6429
  MarketMaxTotalSupply = "market__maxTotalSupply",
6430
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
5857
6431
  MarketName = "market__name",
5858
6432
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
5859
6433
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -5877,6 +6451,7 @@ export declare enum SubgraphTransfer_OrderBy {
5877
6451
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
5878
6452
  MarketTotalRepaid = "market__totalRepaid",
5879
6453
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
6454
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
5880
6455
  ScaledAmount = "scaledAmount",
5881
6456
  To = "to",
5882
6457
  ToAddress = "to__address",
@@ -6356,18 +6931,26 @@ export declare enum SubgraphWithdrawalBatchInterestAccrued_OrderBy {
6356
6931
  InterestEarned = "interestEarned",
6357
6932
  Market = "market",
6358
6933
  MarketAnnualInterestBips = "market__annualInterestBips",
6934
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
6935
+ MarketBorrowIndex = "market__borrowIndex",
6359
6936
  MarketBorrower = "market__borrower",
6360
6937
  MarketCreatedAt = "market__createdAt",
6938
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
6361
6939
  MarketDecimals = "market__decimals",
6362
6940
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
6363
6941
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
6942
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
6943
+ MarketDepositIndex = "market__depositIndex",
6944
+ MarketEventIndex = "market__eventIndex",
6364
6945
  MarketFeeRecipient = "market__feeRecipient",
6946
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
6365
6947
  MarketId = "market__id",
6366
6948
  MarketIsClosed = "market__isClosed",
6367
6949
  MarketIsDelinquent = "market__isDelinquent",
6368
6950
  MarketIsRegistered = "market__isRegistered",
6369
6951
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
6370
6952
  MarketMaxTotalSupply = "market__maxTotalSupply",
6953
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
6371
6954
  MarketName = "market__name",
6372
6955
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
6373
6956
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -6391,6 +6974,7 @@ export declare enum SubgraphWithdrawalBatchInterestAccrued_OrderBy {
6391
6974
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
6392
6975
  MarketTotalRepaid = "market__totalRepaid",
6393
6976
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
6977
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
6394
6978
  TransactionHash = "transactionHash"
6395
6979
  }
6396
6980
  export type SubgraphWithdrawalBatchPayment = {
@@ -6647,18 +7231,26 @@ export declare enum SubgraphWithdrawalBatch_OrderBy {
6647
7231
  LastUpdatedTimestamp = "lastUpdatedTimestamp",
6648
7232
  Market = "market",
6649
7233
  MarketAnnualInterestBips = "market__annualInterestBips",
7234
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
7235
+ MarketBorrowIndex = "market__borrowIndex",
6650
7236
  MarketBorrower = "market__borrower",
6651
7237
  MarketCreatedAt = "market__createdAt",
7238
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
6652
7239
  MarketDecimals = "market__decimals",
6653
7240
  MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
6654
7241
  MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
7242
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
7243
+ MarketDepositIndex = "market__depositIndex",
7244
+ MarketEventIndex = "market__eventIndex",
6655
7245
  MarketFeeRecipient = "market__feeRecipient",
7246
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
6656
7247
  MarketId = "market__id",
6657
7248
  MarketIsClosed = "market__isClosed",
6658
7249
  MarketIsDelinquent = "market__isDelinquent",
6659
7250
  MarketIsRegistered = "market__isRegistered",
6660
7251
  MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
6661
7252
  MarketMaxTotalSupply = "market__maxTotalSupply",
7253
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
6662
7254
  MarketName = "market__name",
6663
7255
  MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
6664
7256
  MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
@@ -6682,6 +7274,7 @@ export declare enum SubgraphWithdrawalBatch_OrderBy {
6682
7274
  MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
6683
7275
  MarketTotalRepaid = "market__totalRepaid",
6684
7276
  MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
7277
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
6685
7278
  NormalizedAmountClaimed = "normalizedAmountClaimed",
6686
7279
  NormalizedAmountPaid = "normalizedAmountPaid",
6687
7280
  Payments = "payments",
@@ -6860,12 +7453,15 @@ export type SubgraphWithdrawalRequest = {
6860
7453
  batch: SubgraphWithdrawalBatch;
6861
7454
  blockNumber: Scalars["Int"]["output"];
6862
7455
  blockTimestamp: Scalars["Int"]["output"];
7456
+ eventIndex: Scalars["Int"]["output"];
6863
7457
  id: Scalars["ID"]["output"];
7458
+ market: SubgraphMarket;
6864
7459
  normalizedAmount: Scalars["BigInt"]["output"];
6865
7460
  requestIndex: Scalars["Int"]["output"];
6866
7461
  scaledAmount: Scalars["BigInt"]["output"];
6867
7462
  status: SubgraphLenderWithdrawalStatus;
6868
7463
  transactionHash: Scalars["Bytes"]["output"];
7464
+ withdrawalRequestsIndex: Scalars["Int"]["output"];
6869
7465
  };
6870
7466
  export type SubgraphWithdrawalRequest_Filter = {
6871
7467
  /** Filter for the block changed event. */
@@ -6929,6 +7525,14 @@ export type SubgraphWithdrawalRequest_Filter = {
6929
7525
  blockTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
6930
7526
  blockTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
6931
7527
  blockTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7528
+ eventIndex?: InputMaybe<Scalars["Int"]["input"]>;
7529
+ eventIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
7530
+ eventIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
7531
+ eventIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7532
+ eventIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
7533
+ eventIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
7534
+ eventIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
7535
+ eventIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
6932
7536
  id?: InputMaybe<Scalars["ID"]["input"]>;
6933
7537
  id_gt?: InputMaybe<Scalars["ID"]["input"]>;
6934
7538
  id_gte?: InputMaybe<Scalars["ID"]["input"]>;
@@ -6937,6 +7541,27 @@ export type SubgraphWithdrawalRequest_Filter = {
6937
7541
  id_lte?: InputMaybe<Scalars["ID"]["input"]>;
6938
7542
  id_not?: InputMaybe<Scalars["ID"]["input"]>;
6939
7543
  id_not_in?: InputMaybe<Array<Scalars["ID"]["input"]>>;
7544
+ market?: InputMaybe<Scalars["String"]["input"]>;
7545
+ market_?: InputMaybe<SubgraphMarket_Filter>;
7546
+ market_contains?: InputMaybe<Scalars["String"]["input"]>;
7547
+ market_contains_nocase?: InputMaybe<Scalars["String"]["input"]>;
7548
+ market_ends_with?: InputMaybe<Scalars["String"]["input"]>;
7549
+ market_ends_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
7550
+ market_gt?: InputMaybe<Scalars["String"]["input"]>;
7551
+ market_gte?: InputMaybe<Scalars["String"]["input"]>;
7552
+ market_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
7553
+ market_lt?: InputMaybe<Scalars["String"]["input"]>;
7554
+ market_lte?: InputMaybe<Scalars["String"]["input"]>;
7555
+ market_not?: InputMaybe<Scalars["String"]["input"]>;
7556
+ market_not_contains?: InputMaybe<Scalars["String"]["input"]>;
7557
+ market_not_contains_nocase?: InputMaybe<Scalars["String"]["input"]>;
7558
+ market_not_ends_with?: InputMaybe<Scalars["String"]["input"]>;
7559
+ market_not_ends_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
7560
+ market_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
7561
+ market_not_starts_with?: InputMaybe<Scalars["String"]["input"]>;
7562
+ market_not_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
7563
+ market_starts_with?: InputMaybe<Scalars["String"]["input"]>;
7564
+ market_starts_with_nocase?: InputMaybe<Scalars["String"]["input"]>;
6940
7565
  normalizedAmount?: InputMaybe<Scalars["BigInt"]["input"]>;
6941
7566
  normalizedAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6942
7567
  normalizedAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -6993,6 +7618,14 @@ export type SubgraphWithdrawalRequest_Filter = {
6993
7618
  transactionHash_not?: InputMaybe<Scalars["Bytes"]["input"]>;
6994
7619
  transactionHash_not_contains?: InputMaybe<Scalars["Bytes"]["input"]>;
6995
7620
  transactionHash_not_in?: InputMaybe<Array<Scalars["Bytes"]["input"]>>;
7621
+ withdrawalRequestsIndex?: InputMaybe<Scalars["Int"]["input"]>;
7622
+ withdrawalRequestsIndex_gt?: InputMaybe<Scalars["Int"]["input"]>;
7623
+ withdrawalRequestsIndex_gte?: InputMaybe<Scalars["Int"]["input"]>;
7624
+ withdrawalRequestsIndex_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7625
+ withdrawalRequestsIndex_lt?: InputMaybe<Scalars["Int"]["input"]>;
7626
+ withdrawalRequestsIndex_lte?: InputMaybe<Scalars["Int"]["input"]>;
7627
+ withdrawalRequestsIndex_not?: InputMaybe<Scalars["Int"]["input"]>;
7628
+ withdrawalRequestsIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
6996
7629
  };
6997
7630
  export declare enum SubgraphWithdrawalRequest_OrderBy {
6998
7631
  Account = "account",
@@ -7021,7 +7654,54 @@ export declare enum SubgraphWithdrawalRequest_OrderBy {
7021
7654
  BatchTotalNormalizedRequests = "batch__totalNormalizedRequests",
7022
7655
  BlockNumber = "blockNumber",
7023
7656
  BlockTimestamp = "blockTimestamp",
7657
+ EventIndex = "eventIndex",
7024
7658
  Id = "id",
7659
+ Market = "market",
7660
+ MarketAnnualInterestBips = "market__annualInterestBips",
7661
+ MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
7662
+ MarketBorrowIndex = "market__borrowIndex",
7663
+ MarketBorrower = "market__borrower",
7664
+ MarketCreatedAt = "market__createdAt",
7665
+ MarketDebtRepaidIndex = "market__debtRepaidIndex",
7666
+ MarketDecimals = "market__decimals",
7667
+ MarketDelinquencyFeeBips = "market__delinquencyFeeBips",
7668
+ MarketDelinquencyGracePeriod = "market__delinquencyGracePeriod",
7669
+ MarketDelinquencyStatusChangedIndex = "market__delinquencyStatusChangedIndex",
7670
+ MarketDepositIndex = "market__depositIndex",
7671
+ MarketEventIndex = "market__eventIndex",
7672
+ MarketFeeRecipient = "market__feeRecipient",
7673
+ MarketFeesCollectedIndex = "market__feesCollectedIndex",
7674
+ MarketId = "market__id",
7675
+ MarketIsClosed = "market__isClosed",
7676
+ MarketIsDelinquent = "market__isDelinquent",
7677
+ MarketIsRegistered = "market__isRegistered",
7678
+ MarketLastInterestAccruedTimestamp = "market__lastInterestAccruedTimestamp",
7679
+ MarketMaxTotalSupply = "market__maxTotalSupply",
7680
+ MarketMaxTotalSupplyUpdatedIndex = "market__maxTotalSupplyUpdatedIndex",
7681
+ MarketName = "market__name",
7682
+ MarketNormalizedUnclaimedWithdrawals = "market__normalizedUnclaimedWithdrawals",
7683
+ MarketOriginalAnnualInterestBips = "market__originalAnnualInterestBips",
7684
+ MarketOriginalReserveRatioBips = "market__originalReserveRatioBips",
7685
+ MarketPendingProtocolFees = "market__pendingProtocolFees",
7686
+ MarketPendingWithdrawalExpiry = "market__pendingWithdrawalExpiry",
7687
+ MarketProtocolFeeBips = "market__protocolFeeBips",
7688
+ MarketReserveRatioBips = "market__reserveRatioBips",
7689
+ MarketScaleFactor = "market__scaleFactor",
7690
+ MarketScaledPendingWithdrawals = "market__scaledPendingWithdrawals",
7691
+ MarketScaledTotalSupply = "market__scaledTotalSupply",
7692
+ MarketSentinel = "market__sentinel",
7693
+ MarketSymbol = "market__symbol",
7694
+ MarketTemporaryReserveRatioActive = "market__temporaryReserveRatioActive",
7695
+ MarketTemporaryReserveRatioExpiry = "market__temporaryReserveRatioExpiry",
7696
+ MarketTimeDelinquent = "market__timeDelinquent",
7697
+ MarketTotalBaseInterestAccrued = "market__totalBaseInterestAccrued",
7698
+ MarketTotalBorrowed = "market__totalBorrowed",
7699
+ MarketTotalDelinquencyFeesAccrued = "market__totalDelinquencyFeesAccrued",
7700
+ MarketTotalDeposited = "market__totalDeposited",
7701
+ MarketTotalProtocolFeesAccrued = "market__totalProtocolFeesAccrued",
7702
+ MarketTotalRepaid = "market__totalRepaid",
7703
+ MarketWithdrawalBatchDuration = "market__withdrawalBatchDuration",
7704
+ MarketWithdrawalRequestsIndex = "market__withdrawalRequestsIndex",
7025
7705
  NormalizedAmount = "normalizedAmount",
7026
7706
  RequestIndex = "requestIndex",
7027
7707
  ScaledAmount = "scaledAmount",
@@ -7033,7 +7713,8 @@ export declare enum SubgraphWithdrawalRequest_OrderBy {
7033
7713
  StatusRequestsCount = "status__requestsCount",
7034
7714
  StatusScaledAmount = "status__scaledAmount",
7035
7715
  StatusTotalNormalizedRequests = "status__totalNormalizedRequests",
7036
- TransactionHash = "transactionHash"
7716
+ TransactionHash = "transactionHash",
7717
+ WithdrawalRequestsIndex = "withdrawalRequestsIndex"
7037
7718
  }
7038
7719
  export type Subgraph_Block_ = {
7039
7720
  __typename?: "_Block_";
@@ -7041,6 +7722,8 @@ export type Subgraph_Block_ = {
7041
7722
  hash?: Maybe<Scalars["Bytes"]["output"]>;
7042
7723
  /** The block number */
7043
7724
  number: Scalars["Int"]["output"];
7725
+ /** The hash of the parent block */
7726
+ parentHash?: Maybe<Scalars["Bytes"]["output"]>;
7044
7727
  /** Integer representation of the timestamp stored in blocks for the chain */
7045
7728
  timestamp?: Maybe<Scalars["Int"]["output"]>;
7046
7729
  };
@@ -7083,63 +7766,390 @@ export type SubgraphAccountDataForLenderViewFragment = {
7083
7766
  };
7084
7767
  deposits: SubgraphDepositDataFragment[];
7085
7768
  };
7086
- export type SubgraphGetLenderAccountForMarketQueryVariables = Exact<{
7087
- market: Scalars["ID"]["input"];
7088
- lender: Scalars["Bytes"]["input"];
7089
- numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7090
- skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7091
- orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7092
- directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7093
- numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7094
- skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7095
- }>;
7096
- export type SubgraphGetLenderAccountForMarketQuery = {
7097
- __typename?: "Query";
7098
- market?: {
7099
- __typename?: "Market";
7100
- lenders: SubgraphAccountDataForLenderViewFragment[];
7101
- } | null;
7769
+ export type SubgraphLenderPropertiesFragment = {
7770
+ __typename?: "LenderAccount";
7771
+ id: string;
7772
+ address: string;
7773
+ scaledBalance: string;
7774
+ role: SubgraphLenderStatus;
7775
+ totalDeposited: string;
7776
+ lastScaleFactor: string;
7777
+ lastUpdatedTimestamp: number;
7778
+ totalInterestEarned: string;
7779
+ numPendingWithdrawalBatches: number;
7102
7780
  };
7103
- export type SubgraphGetLenderAccountWithMarketQueryVariables = Exact<{
7104
- market: Scalars["ID"]["input"];
7105
- lender: Scalars["Bytes"]["input"];
7106
- numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7107
- skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7108
- orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7109
- directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7110
- numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7111
- skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7112
- numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7113
- skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7114
- orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
7115
- directionBorrows?: InputMaybe<SubgraphOrderDirection>;
7116
- numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7117
- skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7118
- orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
7119
- directionRepayments?: InputMaybe<SubgraphOrderDirection>;
7120
- }>;
7121
- export type SubgraphGetLenderAccountWithMarketQuery = {
7122
- __typename?: "Query";
7123
- market?: {
7124
- __typename?: "Market";
7125
- id: string;
7126
- isRegistered: boolean;
7127
- isClosed: boolean;
7128
- borrower: string;
7129
- sentinel: string;
7130
- feeRecipient: string;
7131
- name: string;
7132
- symbol: string;
7133
- decimals: number;
7134
- protocolFeeBips: number;
7135
- delinquencyGracePeriod: number;
7136
- delinquencyFeeBips: number;
7137
- withdrawalBatchDuration: number;
7138
- maxTotalSupply: string;
7139
- pendingProtocolFees: string;
7140
- normalizedUnclaimedWithdrawals: string;
7141
- scaledTotalSupply: string;
7142
- scaledPendingWithdrawals: string;
7781
+ export type SubgraphMarketDataFragment = {
7782
+ __typename?: "Market";
7783
+ id: string;
7784
+ isRegistered: boolean;
7785
+ isClosed: boolean;
7786
+ borrower: string;
7787
+ sentinel: string;
7788
+ feeRecipient: string;
7789
+ name: string;
7790
+ symbol: string;
7791
+ decimals: number;
7792
+ protocolFeeBips: number;
7793
+ delinquencyGracePeriod: number;
7794
+ delinquencyFeeBips: number;
7795
+ withdrawalBatchDuration: number;
7796
+ maxTotalSupply: string;
7797
+ pendingProtocolFees: string;
7798
+ normalizedUnclaimedWithdrawals: string;
7799
+ scaledTotalSupply: string;
7800
+ scaledPendingWithdrawals: string;
7801
+ pendingWithdrawalExpiry: string;
7802
+ isDelinquent: boolean;
7803
+ timeDelinquent: number;
7804
+ annualInterestBips: number;
7805
+ reserveRatioBips: number;
7806
+ scaleFactor: string;
7807
+ lastInterestAccruedTimestamp: number;
7808
+ originalAnnualInterestBips: number;
7809
+ originalReserveRatioBips: number;
7810
+ temporaryReserveRatioExpiry: number;
7811
+ temporaryReserveRatioActive: boolean;
7812
+ totalBorrowed: string;
7813
+ totalRepaid: string;
7814
+ totalBaseInterestAccrued: string;
7815
+ totalDelinquencyFeesAccrued: string;
7816
+ totalProtocolFeesAccrued: string;
7817
+ totalDeposited: string;
7818
+ eventIndex: number;
7819
+ controller: {
7820
+ __typename?: "Controller";
7821
+ id: string;
7822
+ };
7823
+ _asset: {
7824
+ __typename?: "Token";
7825
+ id: string;
7826
+ address: string;
7827
+ name: string;
7828
+ symbol: string;
7829
+ decimals: number;
7830
+ isMock: boolean;
7831
+ };
7832
+ deployedEvent: SubgraphMarketDeployedEventFragment;
7833
+ };
7834
+ export type SubgraphAprConstraintsFragment = {
7835
+ __typename?: "ParameterConstraints";
7836
+ minimumAnnualInterestBips: number;
7837
+ maximumAnnualInterestBips: number;
7838
+ };
7839
+ export type SubgraphDelinquencyStatusChangedDataFragment = {
7840
+ __typename?: "DelinquencyStatusChanged";
7841
+ id: string;
7842
+ eventIndex: number;
7843
+ isDelinquent: boolean;
7844
+ liquidityCoverageRequired: string;
7845
+ totalAssets: string;
7846
+ blockNumber: number;
7847
+ blockTimestamp: number;
7848
+ transactionHash: string;
7849
+ };
7850
+ export type SubgraphDepositDataFragment = {
7851
+ __typename?: "Deposit";
7852
+ id: string;
7853
+ eventIndex: number;
7854
+ assetAmount: string;
7855
+ scaledAmount: string;
7856
+ blockNumber: number;
7857
+ blockTimestamp: number;
7858
+ transactionHash: string;
7859
+ account: {
7860
+ __typename?: "LenderAccount";
7861
+ address: string;
7862
+ };
7863
+ };
7864
+ export type SubgraphMarketDeployedEventFragment = {
7865
+ __typename?: "MarketDeployed";
7866
+ blockNumber: number;
7867
+ blockTimestamp: number;
7868
+ transactionHash: string;
7869
+ };
7870
+ export type SubgraphMarketDataWithEventsFragment = {
7871
+ __typename?: "Market";
7872
+ id: string;
7873
+ isRegistered: boolean;
7874
+ isClosed: boolean;
7875
+ borrower: string;
7876
+ sentinel: string;
7877
+ feeRecipient: string;
7878
+ name: string;
7879
+ symbol: string;
7880
+ decimals: number;
7881
+ protocolFeeBips: number;
7882
+ delinquencyGracePeriod: number;
7883
+ delinquencyFeeBips: number;
7884
+ withdrawalBatchDuration: number;
7885
+ maxTotalSupply: string;
7886
+ pendingProtocolFees: string;
7887
+ normalizedUnclaimedWithdrawals: string;
7888
+ scaledTotalSupply: string;
7889
+ scaledPendingWithdrawals: string;
7890
+ pendingWithdrawalExpiry: string;
7891
+ isDelinquent: boolean;
7892
+ timeDelinquent: number;
7893
+ annualInterestBips: number;
7894
+ reserveRatioBips: number;
7895
+ scaleFactor: string;
7896
+ lastInterestAccruedTimestamp: number;
7897
+ originalAnnualInterestBips: number;
7898
+ originalReserveRatioBips: number;
7899
+ temporaryReserveRatioExpiry: number;
7900
+ temporaryReserveRatioActive: boolean;
7901
+ totalBorrowed: string;
7902
+ totalRepaid: string;
7903
+ totalBaseInterestAccrued: string;
7904
+ totalDelinquencyFeesAccrued: string;
7905
+ totalProtocolFeesAccrued: string;
7906
+ totalDeposited: string;
7907
+ eventIndex: number;
7908
+ controller: {
7909
+ __typename?: "Controller";
7910
+ id: string;
7911
+ };
7912
+ _asset: {
7913
+ __typename?: "Token";
7914
+ id: string;
7915
+ address: string;
7916
+ name: string;
7917
+ symbol: string;
7918
+ decimals: number;
7919
+ isMock: boolean;
7920
+ };
7921
+ deployedEvent: SubgraphMarketDeployedEventFragment;
7922
+ depositRecords: SubgraphDepositDataFragment[];
7923
+ borrowRecords: SubgraphBorrowDataFragment[];
7924
+ feeCollectionRecords: SubgraphFeesCollectedDataFragment[];
7925
+ repaymentRecords: SubgraphRepaymentDataFragment[];
7926
+ };
7927
+ export type SubgraphWithdrawalBatchPaymentPropertiesFragment = {
7928
+ __typename?: "WithdrawalBatchPayment";
7929
+ id: string;
7930
+ scaledAmountBurned: string;
7931
+ normalizedAmountPaid: string;
7932
+ blockNumber: number;
7933
+ blockTimestamp: number;
7934
+ transactionHash: string;
7935
+ };
7936
+ export type SubgraphWithdrawalRequestPropertiesFragment = {
7937
+ __typename?: "WithdrawalRequest";
7938
+ id: string;
7939
+ eventIndex: number;
7940
+ requestIndex: number;
7941
+ scaledAmount: string;
7942
+ normalizedAmount: string;
7943
+ blockNumber: number;
7944
+ blockTimestamp: number;
7945
+ transactionHash: string;
7946
+ account: {
7947
+ __typename?: "LenderAccount";
7948
+ address: string;
7949
+ };
7950
+ };
7951
+ export type SubgraphWithdrawalExecutionPropertiesFragment = {
7952
+ __typename?: "WithdrawalExecution";
7953
+ id: string;
7954
+ normalizedAmount: string;
7955
+ blockNumber: number;
7956
+ blockTimestamp: number;
7957
+ transactionHash: string;
7958
+ account: {
7959
+ __typename?: "LenderAccount";
7960
+ address: string;
7961
+ };
7962
+ };
7963
+ export type SubgraphLenderWithdrawalPropertiesFragment = {
7964
+ __typename?: "LenderWithdrawalStatus";
7965
+ id: string;
7966
+ requestsCount: number;
7967
+ executionsCount: number;
7968
+ scaledAmount: string;
7969
+ normalizedAmountWithdrawn: string;
7970
+ totalNormalizedRequests: string;
7971
+ isCompleted: boolean;
7972
+ account: {
7973
+ __typename?: "LenderAccount";
7974
+ address: string;
7975
+ };
7976
+ };
7977
+ export type SubgraphLenderWithdrawalPropertiesWithEventsFragment = {
7978
+ __typename?: "LenderWithdrawalStatus";
7979
+ id: string;
7980
+ requestsCount: number;
7981
+ executionsCount: number;
7982
+ scaledAmount: string;
7983
+ normalizedAmountWithdrawn: string;
7984
+ totalNormalizedRequests: string;
7985
+ isCompleted: boolean;
7986
+ batch: SubgraphWithdrawalBatchPropertiesFragment;
7987
+ requests: SubgraphWithdrawalRequestPropertiesFragment[];
7988
+ executions: SubgraphWithdrawalExecutionPropertiesFragment[];
7989
+ account: {
7990
+ __typename?: "LenderAccount";
7991
+ address: string;
7992
+ };
7993
+ };
7994
+ export type SubgraphWithdrawalBatchPropertiesFragment = {
7995
+ __typename?: "WithdrawalBatch";
7996
+ id: string;
7997
+ expiry: string;
7998
+ scaledTotalAmount: string;
7999
+ scaledAmountBurned: string;
8000
+ normalizedAmountPaid: string;
8001
+ normalizedAmountClaimed: string;
8002
+ totalNormalizedRequests: string;
8003
+ isExpired: boolean;
8004
+ isClosed: boolean;
8005
+ paymentsCount: number;
8006
+ lastScaleFactor: string;
8007
+ lastUpdatedTimestamp: number;
8008
+ totalInterestEarned: string;
8009
+ creation: {
8010
+ __typename?: "WithdrawalBatchCreated";
8011
+ blockNumber: number;
8012
+ blockTimestamp: number;
8013
+ transactionHash: string;
8014
+ };
8015
+ payments: SubgraphWithdrawalBatchPaymentPropertiesFragment[];
8016
+ };
8017
+ export type SubgraphWithdrawalBatchPropertiesWithEventsFragment = {
8018
+ __typename?: "WithdrawalBatch";
8019
+ id: string;
8020
+ expiry: string;
8021
+ scaledTotalAmount: string;
8022
+ scaledAmountBurned: string;
8023
+ normalizedAmountPaid: string;
8024
+ normalizedAmountClaimed: string;
8025
+ totalNormalizedRequests: string;
8026
+ isExpired: boolean;
8027
+ isClosed: boolean;
8028
+ paymentsCount: number;
8029
+ lastScaleFactor: string;
8030
+ lastUpdatedTimestamp: number;
8031
+ totalInterestEarned: string;
8032
+ withdrawals: SubgraphLenderWithdrawalPropertiesFragment[];
8033
+ requests: SubgraphWithdrawalRequestPropertiesFragment[];
8034
+ executions: SubgraphWithdrawalExecutionPropertiesFragment[];
8035
+ creation: {
8036
+ __typename?: "WithdrawalBatchCreated";
8037
+ blockNumber: number;
8038
+ blockTimestamp: number;
8039
+ transactionHash: string;
8040
+ };
8041
+ payments: SubgraphWithdrawalBatchPaymentPropertiesFragment[];
8042
+ };
8043
+ export type SubgraphMarketRecordsFragment = {
8044
+ __typename?: "Market";
8045
+ depositRecords: SubgraphDepositDataFragment[];
8046
+ borrowRecords: SubgraphBorrowDataFragment[];
8047
+ feeCollectionRecords: SubgraphFeesCollectedDataFragment[];
8048
+ repaymentRecords: SubgraphRepaymentDataFragment[];
8049
+ };
8050
+ export type SubgraphBorrowDataFragment = {
8051
+ __typename?: "Borrow";
8052
+ eventIndex: number;
8053
+ assetAmount: string;
8054
+ blockNumber: number;
8055
+ blockTimestamp: number;
8056
+ transactionHash: string;
8057
+ };
8058
+ export type SubgraphRepaymentDataFragment = {
8059
+ __typename?: "DebtRepaid";
8060
+ eventIndex: number;
8061
+ from: string;
8062
+ assetAmount: string;
8063
+ blockNumber: number;
8064
+ blockTimestamp: number;
8065
+ transactionHash: string;
8066
+ };
8067
+ export type SubgraphFeesCollectedDataFragment = {
8068
+ __typename?: "FeesCollected";
8069
+ eventIndex: number;
8070
+ feesCollected: string;
8071
+ blockNumber: number;
8072
+ blockTimestamp: number;
8073
+ transactionHash: string;
8074
+ };
8075
+ export type SubgraphAnnualInterestBipsUpdatedDataFragment = {
8076
+ __typename?: "AnnualInterestBipsUpdated";
8077
+ eventIndex: number;
8078
+ oldAnnualInterestBips: number;
8079
+ newAnnualInterestBips: number;
8080
+ blockNumber: number;
8081
+ blockTimestamp: number;
8082
+ transactionHash: string;
8083
+ };
8084
+ export type SubgraphMaxTotalSupplyUpdatedDataFragment = {
8085
+ __typename?: "MaxTotalSupplyUpdated";
8086
+ eventIndex: number;
8087
+ oldMaxTotalSupply: string;
8088
+ newMaxTotalSupply: string;
8089
+ blockNumber: number;
8090
+ blockTimestamp: number;
8091
+ transactionHash: string;
8092
+ };
8093
+ export type SubgraphMarketClosedDataFragment = {
8094
+ __typename?: "MarketClosed";
8095
+ eventIndex: number;
8096
+ blockNumber: number;
8097
+ blockTimestamp: number;
8098
+ transactionHash: string;
8099
+ };
8100
+ export type SubgraphGetLenderAccountForMarketQueryVariables = Exact<{
8101
+ market: Scalars["ID"]["input"];
8102
+ lender: Scalars["Bytes"]["input"];
8103
+ numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
8104
+ skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
8105
+ orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
8106
+ directionDeposits?: InputMaybe<SubgraphOrderDirection>;
8107
+ }>;
8108
+ export type SubgraphGetLenderAccountForMarketQuery = {
8109
+ __typename?: "Query";
8110
+ market?: {
8111
+ __typename?: "Market";
8112
+ lenders: SubgraphAccountDataForLenderViewFragment[];
8113
+ } | null;
8114
+ };
8115
+ export type SubgraphGetLenderAccountWithMarketQueryVariables = Exact<{
8116
+ market: Scalars["ID"]["input"];
8117
+ lender: Scalars["Bytes"]["input"];
8118
+ numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
8119
+ skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
8120
+ orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
8121
+ directionDeposits?: InputMaybe<SubgraphOrderDirection>;
8122
+ numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
8123
+ skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
8124
+ orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
8125
+ directionBorrows?: InputMaybe<SubgraphOrderDirection>;
8126
+ numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
8127
+ skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
8128
+ orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
8129
+ directionRepayments?: InputMaybe<SubgraphOrderDirection>;
8130
+ }>;
8131
+ export type SubgraphGetLenderAccountWithMarketQuery = {
8132
+ __typename?: "Query";
8133
+ market?: {
8134
+ __typename?: "Market";
8135
+ id: string;
8136
+ isRegistered: boolean;
8137
+ isClosed: boolean;
8138
+ borrower: string;
8139
+ sentinel: string;
8140
+ feeRecipient: string;
8141
+ name: string;
8142
+ symbol: string;
8143
+ decimals: number;
8144
+ protocolFeeBips: number;
8145
+ delinquencyGracePeriod: number;
8146
+ delinquencyFeeBips: number;
8147
+ withdrawalBatchDuration: number;
8148
+ maxTotalSupply: string;
8149
+ pendingProtocolFees: string;
8150
+ normalizedUnclaimedWithdrawals: string;
8151
+ scaledTotalSupply: string;
8152
+ scaledPendingWithdrawals: string;
7143
8153
  pendingWithdrawalExpiry: string;
7144
8154
  isDelinquent: boolean;
7145
8155
  timeDelinquent: number;
@@ -7157,6 +8167,7 @@ export type SubgraphGetLenderAccountWithMarketQuery = {
7157
8167
  totalDelinquencyFeesAccrued: string;
7158
8168
  totalProtocolFeesAccrued: string;
7159
8169
  totalDeposited: string;
8170
+ eventIndex: number;
7160
8171
  lenders: SubgraphAccountDataForLenderViewFragment[];
7161
8172
  borrowRecords: SubgraphBorrowDataFragment[];
7162
8173
  repaymentRecords: SubgraphRepaymentDataFragment[];
@@ -7182,8 +8193,6 @@ export type SubgraphGetAllMarketsForLenderViewQueryVariables = Exact<{
7182
8193
  skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7183
8194
  orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7184
8195
  directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7185
- numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7186
- skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7187
8196
  numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7188
8197
  skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7189
8198
  orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
@@ -7232,6 +8241,7 @@ export type SubgraphGetAllMarketsForLenderViewQuery = {
7232
8241
  totalDelinquencyFeesAccrued: string;
7233
8242
  totalProtocolFeesAccrued: string;
7234
8243
  totalDeposited: string;
8244
+ eventIndex: number;
7235
8245
  borrowRecords: SubgraphBorrowDataFragment[];
7236
8246
  repaymentRecords: SubgraphRepaymentDataFragment[];
7237
8247
  controller: {
@@ -7289,8 +8299,6 @@ export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQueryVariables = Exa
7289
8299
  skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7290
8300
  orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7291
8301
  directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7292
- numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7293
- skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7294
8302
  numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7295
8303
  skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7296
8304
  orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
@@ -7350,6 +8358,7 @@ export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQuery = {
7350
8358
  totalDelinquencyFeesAccrued: string;
7351
8359
  totalProtocolFeesAccrued: string;
7352
8360
  totalDeposited: string;
8361
+ eventIndex: number;
7353
8362
  borrowRecords: SubgraphBorrowDataFragment[];
7354
8363
  repaymentRecords: SubgraphRepaymentDataFragment[];
7355
8364
  controller: {
@@ -7416,6 +8425,7 @@ export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQuery = {
7416
8425
  totalDelinquencyFeesAccrued: string;
7417
8426
  totalProtocolFeesAccrued: string;
7418
8427
  totalDeposited: string;
8428
+ eventIndex: number;
7419
8429
  borrowRecords: SubgraphBorrowDataFragment[];
7420
8430
  repaymentRecords: SubgraphRepaymentDataFragment[];
7421
8431
  controller: {
@@ -7502,6 +8512,26 @@ export type SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQuery = {
7502
8512
  deposits: SubgraphDepositDataFragment[];
7503
8513
  }>;
7504
8514
  };
8515
+ export type SubgraphGetMarketEventsQueryVariables = Exact<{
8516
+ market: Scalars["ID"]["input"];
8517
+ startEventID: Scalars["ID"]["input"];
8518
+ endEventID: Scalars["ID"]["input"];
8519
+ }>;
8520
+ export type SubgraphGetMarketEventsQuery = {
8521
+ __typename?: "Query";
8522
+ market?: {
8523
+ __typename?: "Market";
8524
+ marketClosedEvent?: SubgraphMarketClosedDataFragment | null;
8525
+ delinquencyRecords: SubgraphDelinquencyStatusChangedDataFragment[];
8526
+ borrowRecords: SubgraphBorrowDataFragment[];
8527
+ depositRecords: SubgraphDepositDataFragment[];
8528
+ feeCollectionRecords: SubgraphFeesCollectedDataFragment[];
8529
+ repaymentRecords: SubgraphRepaymentDataFragment[];
8530
+ annualInterestBipsUpdatedRecords: SubgraphAnnualInterestBipsUpdatedDataFragment[];
8531
+ maxTotalSupplyUpdatedRecords: SubgraphMaxTotalSupplyUpdatedDataFragment[];
8532
+ withdrawalRequestRecords: SubgraphWithdrawalRequestPropertiesFragment[];
8533
+ } | null;
8534
+ };
7505
8535
  export type SubgraphGetMarketsForBorrowerQueryVariables = Exact<{
7506
8536
  borrower: Scalars["Bytes"]["input"];
7507
8537
  numMarkets?: InputMaybe<Scalars["Int"]["input"]>;
@@ -7549,369 +8579,110 @@ export type SubgraphGetMarketsForAllBorrowersQueryVariables = Exact<{
7549
8579
  skipFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
7550
8580
  orderFeeCollections?: InputMaybe<SubgraphFeesCollected_OrderBy>;
7551
8581
  directionFeeCollections?: InputMaybe<SubgraphOrderDirection>;
7552
- numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7553
- skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7554
- orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
7555
- directionRepayments?: InputMaybe<SubgraphOrderDirection>;
7556
- }>;
7557
- export type SubgraphGetMarketsForAllBorrowersQuery = {
7558
- __typename?: "Query";
7559
- markets: SubgraphMarketDataWithEventsFragment[];
7560
- };
7561
- export type SubgraphGetMarketQueryVariables = Exact<{
7562
- market: Scalars["ID"]["input"];
7563
- numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7564
- skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7565
- orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7566
- directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7567
- numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7568
- skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7569
- orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
7570
- directionBorrows?: InputMaybe<SubgraphOrderDirection>;
7571
- numFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
7572
- skipFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
7573
- orderFeeCollections?: InputMaybe<SubgraphFeesCollected_OrderBy>;
7574
- directionFeeCollections?: InputMaybe<SubgraphOrderDirection>;
7575
- numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7576
- skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7577
- orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
7578
- directionRepayments?: InputMaybe<SubgraphOrderDirection>;
7579
- }>;
7580
- export type SubgraphGetMarketQuery = {
7581
- __typename?: "Query";
7582
- market?: SubgraphMarketDataWithEventsFragment | null;
7583
- };
7584
- export type SubgraphGetWithdrawalRequestsByMarketQueryVariables = Exact<{
7585
- market: Scalars["String"]["input"];
7586
- numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7587
- skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7588
- orderWithdrawals?: InputMaybe<SubgraphWithdrawalRequest_OrderBy>;
7589
- directionWithdrawals?: InputMaybe<SubgraphOrderDirection>;
7590
- }>;
7591
- export type SubgraphGetWithdrawalRequestsByMarketQuery = {
7592
- __typename?: "Query";
7593
- withdrawalRequests: SubgraphWithdrawalRequestPropertiesFragment[];
7594
- };
7595
- export type SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables = Exact<{
7596
- market: Scalars["ID"]["input"];
7597
- }>;
7598
- export type SubgraphGetAllPendingWithdrawalBatchesForMarketQuery = {
7599
- __typename?: "Query";
7600
- market?: {
7601
- __typename?: "Market";
7602
- withdrawalBatches: SubgraphWithdrawalBatchPropertiesWithEventsFragment[];
7603
- } | null;
7604
- };
7605
- export type SubgraphGetAllMarketsQueryVariables = Exact<{
7606
- [key: string]: never;
7607
- }>;
7608
- export type SubgraphGetAllMarketsQuery = {
7609
- __typename?: "Query";
7610
- markets: SubgraphMarketDataFragment[];
7611
- };
7612
- export type SubgraphGetAuthorizedLendersByMarketQueryVariables = Exact<{
7613
- market: Scalars["ID"]["input"];
7614
- }>;
7615
- export type SubgraphGetAuthorizedLendersByMarketQuery = {
7616
- __typename?: "Query";
7617
- market?: {
7618
- __typename?: "Market";
7619
- controller: {
7620
- __typename?: "Controller";
7621
- authorizedLenders: Array<{
7622
- __typename?: "LenderAuthorization";
7623
- lender: string;
7624
- }>;
7625
- };
7626
- } | null;
7627
- };
7628
- export type SubgraphGetAuthorizedLendersByBorrowerQueryVariables = Exact<{
7629
- filter: SubgraphController_Filter;
7630
- }>;
7631
- export type SubgraphGetAuthorizedLendersByBorrowerQuery = {
7632
- __typename?: "Query";
7633
- controllers: Array<{
7634
- __typename?: "Controller";
7635
- authorizedLenders: Array<{
7636
- __typename?: "LenderAuthorization";
7637
- lender: string;
7638
- }>;
7639
- }>;
7640
- };
7641
- export type SubgraphGetSubgraphStatusQueryVariables = Exact<{
7642
- [key: string]: never;
7643
- }>;
7644
- export type SubgraphGetSubgraphStatusQuery = {
7645
- __typename?: "Query";
7646
- _meta?: {
7647
- __typename?: "_Meta_";
7648
- hasIndexingErrors: boolean;
7649
- block: {
7650
- __typename?: "_Block_";
7651
- hash?: string | null;
7652
- number: number;
7653
- timestamp?: number | null;
7654
- };
7655
- } | null;
7656
- };
7657
- export type SubgraphLenderPropertiesFragment = {
7658
- __typename?: "LenderAccount";
7659
- id: string;
7660
- address: string;
7661
- scaledBalance: string;
7662
- role: SubgraphLenderStatus;
7663
- totalDeposited: string;
7664
- lastScaleFactor: string;
7665
- lastUpdatedTimestamp: number;
7666
- totalInterestEarned: string;
7667
- numPendingWithdrawalBatches: number;
7668
- };
7669
- export type SubgraphDepositDataFragment = {
7670
- __typename?: "Deposit";
7671
- id: string;
7672
- assetAmount: string;
7673
- scaledAmount: string;
7674
- blockNumber: number;
7675
- blockTimestamp: number;
7676
- transactionHash: string;
7677
- account: {
7678
- __typename?: "LenderAccount";
7679
- address: string;
7680
- };
7681
- };
7682
- export type SubgraphMarketDataFragment = {
7683
- __typename?: "Market";
7684
- id: string;
7685
- isRegistered: boolean;
7686
- isClosed: boolean;
7687
- borrower: string;
7688
- sentinel: string;
7689
- feeRecipient: string;
7690
- name: string;
7691
- symbol: string;
7692
- decimals: number;
7693
- protocolFeeBips: number;
7694
- delinquencyGracePeriod: number;
7695
- delinquencyFeeBips: number;
7696
- withdrawalBatchDuration: number;
7697
- maxTotalSupply: string;
7698
- pendingProtocolFees: string;
7699
- normalizedUnclaimedWithdrawals: string;
7700
- scaledTotalSupply: string;
7701
- scaledPendingWithdrawals: string;
7702
- pendingWithdrawalExpiry: string;
7703
- isDelinquent: boolean;
7704
- timeDelinquent: number;
7705
- annualInterestBips: number;
7706
- reserveRatioBips: number;
7707
- scaleFactor: string;
7708
- lastInterestAccruedTimestamp: number;
7709
- originalAnnualInterestBips: number;
7710
- originalReserveRatioBips: number;
7711
- temporaryReserveRatioExpiry: number;
7712
- temporaryReserveRatioActive: boolean;
7713
- totalBorrowed: string;
7714
- totalRepaid: string;
7715
- totalBaseInterestAccrued: string;
7716
- totalDelinquencyFeesAccrued: string;
7717
- totalProtocolFeesAccrued: string;
7718
- totalDeposited: string;
7719
- controller: {
7720
- __typename?: "Controller";
7721
- id: string;
7722
- };
7723
- _asset: {
7724
- __typename?: "Token";
7725
- id: string;
7726
- address: string;
7727
- name: string;
7728
- symbol: string;
7729
- decimals: number;
7730
- isMock: boolean;
7731
- };
7732
- deployedEvent: SubgraphMarketDeployedEventFragment;
7733
- };
7734
- export type SubgraphMarketDeployedEventFragment = {
7735
- __typename?: "MarketDeployed";
7736
- blockNumber: number;
7737
- blockTimestamp: number;
7738
- transactionHash: string;
7739
- };
7740
- export type SubgraphMarketDataWithEventsFragment = {
7741
- __typename?: "Market";
7742
- id: string;
7743
- isRegistered: boolean;
7744
- isClosed: boolean;
7745
- borrower: string;
7746
- sentinel: string;
7747
- feeRecipient: string;
7748
- name: string;
7749
- symbol: string;
7750
- decimals: number;
7751
- protocolFeeBips: number;
7752
- delinquencyGracePeriod: number;
7753
- delinquencyFeeBips: number;
7754
- withdrawalBatchDuration: number;
7755
- maxTotalSupply: string;
7756
- pendingProtocolFees: string;
7757
- normalizedUnclaimedWithdrawals: string;
7758
- scaledTotalSupply: string;
7759
- scaledPendingWithdrawals: string;
7760
- pendingWithdrawalExpiry: string;
7761
- isDelinquent: boolean;
7762
- timeDelinquent: number;
7763
- annualInterestBips: number;
7764
- reserveRatioBips: number;
7765
- scaleFactor: string;
7766
- lastInterestAccruedTimestamp: number;
7767
- originalAnnualInterestBips: number;
7768
- originalReserveRatioBips: number;
7769
- temporaryReserveRatioExpiry: number;
7770
- temporaryReserveRatioActive: boolean;
7771
- totalBorrowed: string;
7772
- totalRepaid: string;
7773
- totalBaseInterestAccrued: string;
7774
- totalDelinquencyFeesAccrued: string;
7775
- totalProtocolFeesAccrued: string;
7776
- totalDeposited: string;
7777
- controller: {
7778
- __typename?: "Controller";
7779
- id: string;
7780
- };
7781
- _asset: {
7782
- __typename?: "Token";
7783
- id: string;
7784
- address: string;
7785
- name: string;
7786
- symbol: string;
7787
- decimals: number;
7788
- isMock: boolean;
7789
- };
7790
- deployedEvent: SubgraphMarketDeployedEventFragment;
7791
- depositRecords: SubgraphDepositDataFragment[];
7792
- borrowRecords: SubgraphBorrowDataFragment[];
7793
- feeCollectionRecords: SubgraphFeesCollectedDataFragment[];
7794
- repaymentRecords: SubgraphRepaymentDataFragment[];
7795
- };
7796
- export type SubgraphAprConstraintsFragment = {
7797
- __typename?: "ParameterConstraints";
7798
- minimumAnnualInterestBips: number;
7799
- maximumAnnualInterestBips: number;
8582
+ numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
8583
+ skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
8584
+ orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
8585
+ directionRepayments?: InputMaybe<SubgraphOrderDirection>;
8586
+ }>;
8587
+ export type SubgraphGetMarketsForAllBorrowersQuery = {
8588
+ __typename?: "Query";
8589
+ markets: SubgraphMarketDataWithEventsFragment[];
7800
8590
  };
7801
- export type SubgraphWithdrawalBatchPaymentPropertiesFragment = {
7802
- __typename?: "WithdrawalBatchPayment";
7803
- id: string;
7804
- scaledAmountBurned: string;
7805
- normalizedAmountPaid: string;
7806
- blockNumber: number;
7807
- blockTimestamp: number;
7808
- transactionHash: string;
8591
+ export type SubgraphGetMarketQueryVariables = Exact<{
8592
+ market: Scalars["ID"]["input"];
8593
+ numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
8594
+ skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
8595
+ orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
8596
+ directionDeposits?: InputMaybe<SubgraphOrderDirection>;
8597
+ numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
8598
+ skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
8599
+ orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
8600
+ directionBorrows?: InputMaybe<SubgraphOrderDirection>;
8601
+ numFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
8602
+ skipFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
8603
+ orderFeeCollections?: InputMaybe<SubgraphFeesCollected_OrderBy>;
8604
+ directionFeeCollections?: InputMaybe<SubgraphOrderDirection>;
8605
+ numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
8606
+ skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
8607
+ orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
8608
+ directionRepayments?: InputMaybe<SubgraphOrderDirection>;
8609
+ }>;
8610
+ export type SubgraphGetMarketQuery = {
8611
+ __typename?: "Query";
8612
+ market?: SubgraphMarketDataWithEventsFragment | null;
7809
8613
  };
7810
- export type SubgraphWithdrawalRequestPropertiesFragment = {
7811
- __typename?: "WithdrawalRequest";
7812
- id: string;
7813
- requestIndex: number;
7814
- scaledAmount: string;
7815
- normalizedAmount: string;
7816
- blockNumber: number;
7817
- blockTimestamp: number;
7818
- transactionHash: string;
7819
- account: {
7820
- __typename?: "LenderAccount";
7821
- address: string;
7822
- };
8614
+ export type SubgraphGetWithdrawalRequestsByMarketQueryVariables = Exact<{
8615
+ market: Scalars["String"]["input"];
8616
+ numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
8617
+ skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
8618
+ orderWithdrawals?: InputMaybe<SubgraphWithdrawalRequest_OrderBy>;
8619
+ directionWithdrawals?: InputMaybe<SubgraphOrderDirection>;
8620
+ }>;
8621
+ export type SubgraphGetWithdrawalRequestsByMarketQuery = {
8622
+ __typename?: "Query";
8623
+ withdrawalRequests: SubgraphWithdrawalRequestPropertiesFragment[];
7823
8624
  };
7824
- export type SubgraphWithdrawalExecutionPropertiesFragment = {
7825
- __typename?: "WithdrawalExecution";
7826
- id: string;
7827
- normalizedAmount: string;
7828
- blockNumber: number;
7829
- blockTimestamp: number;
7830
- transactionHash: string;
7831
- account: {
7832
- __typename?: "LenderAccount";
7833
- address: string;
7834
- };
8625
+ export type SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables = Exact<{
8626
+ market: Scalars["ID"]["input"];
8627
+ }>;
8628
+ export type SubgraphGetAllPendingWithdrawalBatchesForMarketQuery = {
8629
+ __typename?: "Query";
8630
+ market?: {
8631
+ __typename?: "Market";
8632
+ withdrawalBatches: SubgraphWithdrawalBatchPropertiesWithEventsFragment[];
8633
+ } | null;
7835
8634
  };
7836
- export type SubgraphLenderWithdrawalPropertiesFragment = {
7837
- __typename?: "LenderWithdrawalStatus";
7838
- id: string;
7839
- requestsCount: number;
7840
- executionsCount: number;
7841
- scaledAmount: string;
7842
- normalizedAmountWithdrawn: string;
7843
- totalNormalizedRequests: string;
7844
- isCompleted: boolean;
7845
- account: {
7846
- __typename?: "LenderAccount";
7847
- address: string;
7848
- };
8635
+ export type SubgraphGetAllMarketsQueryVariables = Exact<{
8636
+ [key: string]: never;
8637
+ }>;
8638
+ export type SubgraphGetAllMarketsQuery = {
8639
+ __typename?: "Query";
8640
+ markets: SubgraphMarketDataFragment[];
7849
8641
  };
7850
- export type SubgraphLenderWithdrawalPropertiesWithEventsFragment = {
7851
- __typename?: "LenderWithdrawalStatus";
7852
- id: string;
7853
- requestsCount: number;
7854
- executionsCount: number;
7855
- scaledAmount: string;
7856
- normalizedAmountWithdrawn: string;
7857
- totalNormalizedRequests: string;
7858
- isCompleted: boolean;
7859
- batch: SubgraphWithdrawalBatchPropertiesFragment;
7860
- requests: SubgraphWithdrawalRequestPropertiesFragment[];
7861
- executions: SubgraphWithdrawalExecutionPropertiesFragment[];
7862
- account: {
7863
- __typename?: "LenderAccount";
7864
- address: string;
7865
- };
8642
+ export type SubgraphGetAuthorizedLendersByMarketQueryVariables = Exact<{
8643
+ market: Scalars["ID"]["input"];
8644
+ }>;
8645
+ export type SubgraphGetAuthorizedLendersByMarketQuery = {
8646
+ __typename?: "Query";
8647
+ market?: {
8648
+ __typename?: "Market";
8649
+ controller: {
8650
+ __typename?: "Controller";
8651
+ authorizedLenders: Array<{
8652
+ __typename?: "LenderAuthorization";
8653
+ lender: string;
8654
+ }>;
8655
+ };
8656
+ } | null;
7866
8657
  };
7867
- export type SubgraphWithdrawalBatchPropertiesFragment = {
7868
- __typename?: "WithdrawalBatch";
7869
- id: string;
7870
- expiry: string;
7871
- scaledTotalAmount: string;
7872
- scaledAmountBurned: string;
7873
- normalizedAmountPaid: string;
7874
- normalizedAmountClaimed: string;
7875
- totalNormalizedRequests: string;
7876
- isExpired: boolean;
7877
- isClosed: boolean;
7878
- paymentsCount: number;
7879
- lastScaleFactor: string;
7880
- lastUpdatedTimestamp: number;
7881
- totalInterestEarned: string;
7882
- creation: {
7883
- __typename?: "WithdrawalBatchCreated";
7884
- blockNumber: number;
7885
- blockTimestamp: number;
7886
- transactionHash: string;
7887
- };
7888
- payments: SubgraphWithdrawalBatchPaymentPropertiesFragment[];
8658
+ export type SubgraphGetAuthorizedLendersByBorrowerQueryVariables = Exact<{
8659
+ filter: SubgraphController_Filter;
8660
+ }>;
8661
+ export type SubgraphGetAuthorizedLendersByBorrowerQuery = {
8662
+ __typename?: "Query";
8663
+ controllers: Array<{
8664
+ __typename?: "Controller";
8665
+ authorizedLenders: Array<{
8666
+ __typename?: "LenderAuthorization";
8667
+ lender: string;
8668
+ }>;
8669
+ }>;
7889
8670
  };
7890
- export type SubgraphWithdrawalBatchPropertiesWithEventsFragment = {
7891
- __typename?: "WithdrawalBatch";
7892
- id: string;
7893
- expiry: string;
7894
- scaledTotalAmount: string;
7895
- scaledAmountBurned: string;
7896
- normalizedAmountPaid: string;
7897
- normalizedAmountClaimed: string;
7898
- totalNormalizedRequests: string;
7899
- isExpired: boolean;
7900
- isClosed: boolean;
7901
- paymentsCount: number;
7902
- lastScaleFactor: string;
7903
- lastUpdatedTimestamp: number;
7904
- totalInterestEarned: string;
7905
- withdrawals: SubgraphLenderWithdrawalPropertiesFragment[];
7906
- requests: SubgraphWithdrawalRequestPropertiesFragment[];
7907
- executions: SubgraphWithdrawalExecutionPropertiesFragment[];
7908
- creation: {
7909
- __typename?: "WithdrawalBatchCreated";
7910
- blockNumber: number;
7911
- blockTimestamp: number;
7912
- transactionHash: string;
7913
- };
7914
- payments: SubgraphWithdrawalBatchPaymentPropertiesFragment[];
8671
+ export type SubgraphGetSubgraphStatusQueryVariables = Exact<{
8672
+ [key: string]: never;
8673
+ }>;
8674
+ export type SubgraphGetSubgraphStatusQuery = {
8675
+ __typename?: "Query";
8676
+ _meta?: {
8677
+ __typename?: "_Meta_";
8678
+ hasIndexingErrors: boolean;
8679
+ block: {
8680
+ __typename?: "_Block_";
8681
+ hash?: string | null;
8682
+ number: number;
8683
+ timestamp?: number | null;
8684
+ };
8685
+ } | null;
7915
8686
  };
7916
8687
  export type SubgraphGetMarketRecordsQueryVariables = Exact<{
7917
8688
  market: Scalars["ID"]["input"];
@@ -7936,38 +8707,11 @@ export type SubgraphGetMarketRecordsQuery = {
7936
8707
  __typename?: "Query";
7937
8708
  market?: SubgraphMarketRecordsFragment | null;
7938
8709
  };
7939
- export type SubgraphMarketRecordsFragment = {
7940
- __typename?: "Market";
7941
- depositRecords: SubgraphDepositDataFragment[];
7942
- borrowRecords: SubgraphBorrowDataFragment[];
7943
- feeCollectionRecords: SubgraphFeesCollectedDataFragment[];
7944
- repaymentRecords: SubgraphRepaymentDataFragment[];
7945
- };
7946
- export type SubgraphBorrowDataFragment = {
7947
- __typename?: "Borrow";
7948
- assetAmount: string;
7949
- blockNumber: number;
7950
- blockTimestamp: number;
7951
- transactionHash: string;
7952
- };
7953
- export type SubgraphRepaymentDataFragment = {
7954
- __typename?: "DebtRepaid";
7955
- from: string;
7956
- assetAmount: string;
7957
- blockNumber: number;
7958
- blockTimestamp: number;
7959
- transactionHash: string;
7960
- };
7961
- export type SubgraphFeesCollectedDataFragment = {
7962
- __typename?: "FeesCollected";
7963
- feesCollected: string;
7964
- blockNumber: number;
7965
- blockTimestamp: number;
7966
- transactionHash: string;
7967
- };
7968
8710
  export declare const LenderPropertiesFragmentDoc: Apollo.DocumentNode;
7969
8711
  export declare const DepositDataFragmentDoc: Apollo.DocumentNode;
7970
8712
  export declare const AccountDataForLenderViewFragmentDoc: Apollo.DocumentNode;
8713
+ export declare const AprConstraintsFragmentDoc: Apollo.DocumentNode;
8714
+ export declare const DelinquencyStatusChangedDataFragmentDoc: Apollo.DocumentNode;
7971
8715
  export declare const MarketDeployedEventFragmentDoc: Apollo.DocumentNode;
7972
8716
  export declare const MarketDataFragmentDoc: Apollo.DocumentNode;
7973
8717
  export declare const BorrowDataFragmentDoc: Apollo.DocumentNode;
@@ -7975,7 +8719,6 @@ export declare const FeesCollectedDataFragmentDoc: Apollo.DocumentNode;
7975
8719
  export declare const RepaymentDataFragmentDoc: Apollo.DocumentNode;
7976
8720
  export declare const MarketRecordsFragmentDoc: Apollo.DocumentNode;
7977
8721
  export declare const MarketDataWithEventsFragmentDoc: Apollo.DocumentNode;
7978
- export declare const AprConstraintsFragmentDoc: Apollo.DocumentNode;
7979
8722
  export declare const LenderWithdrawalPropertiesFragmentDoc: Apollo.DocumentNode;
7980
8723
  export declare const WithdrawalBatchPaymentPropertiesFragmentDoc: Apollo.DocumentNode;
7981
8724
  export declare const WithdrawalBatchPropertiesFragmentDoc: Apollo.DocumentNode;
@@ -7983,6 +8726,9 @@ export declare const WithdrawalRequestPropertiesFragmentDoc: Apollo.DocumentNode
7983
8726
  export declare const WithdrawalExecutionPropertiesFragmentDoc: Apollo.DocumentNode;
7984
8727
  export declare const LenderWithdrawalPropertiesWithEventsFragmentDoc: Apollo.DocumentNode;
7985
8728
  export declare const WithdrawalBatchPropertiesWithEventsFragmentDoc: Apollo.DocumentNode;
8729
+ export declare const AnnualInterestBipsUpdatedDataFragmentDoc: Apollo.DocumentNode;
8730
+ export declare const MaxTotalSupplyUpdatedDataFragmentDoc: Apollo.DocumentNode;
8731
+ export declare const MarketClosedDataFragmentDoc: Apollo.DocumentNode;
7986
8732
  export declare const GetLenderAccountForMarketDocument: Apollo.DocumentNode;
7987
8733
  /**
7988
8734
  * __useGetLenderAccountForMarketQuery__
@@ -8002,8 +8748,6 @@ export declare const GetLenderAccountForMarketDocument: Apollo.DocumentNode;
8002
8748
  * skipDeposits: // value for 'skipDeposits'
8003
8749
  * orderDeposits: // value for 'orderDeposits'
8004
8750
  * directionDeposits: // value for 'directionDeposits'
8005
- * numWithdrawals: // value for 'numWithdrawals'
8006
- * skipWithdrawals: // value for 'skipWithdrawals'
8007
8751
  * },
8008
8752
  * });
8009
8753
  */
@@ -8033,8 +8777,6 @@ export declare const GetLenderAccountWithMarketDocument: Apollo.DocumentNode;
8033
8777
  * skipDeposits: // value for 'skipDeposits'
8034
8778
  * orderDeposits: // value for 'orderDeposits'
8035
8779
  * directionDeposits: // value for 'directionDeposits'
8036
- * numWithdrawals: // value for 'numWithdrawals'
8037
- * skipWithdrawals: // value for 'skipWithdrawals'
8038
8780
  * numBorrows: // value for 'numBorrows'
8039
8781
  * skipBorrows: // value for 'skipBorrows'
8040
8782
  * orderBorrows: // value for 'orderBorrows'
@@ -8071,8 +8813,6 @@ export declare const GetAllMarketsForLenderViewDocument: Apollo.DocumentNode;
8071
8813
  * skipDeposits: // value for 'skipDeposits'
8072
8814
  * orderDeposits: // value for 'orderDeposits'
8073
8815
  * directionDeposits: // value for 'directionDeposits'
8074
- * numWithdrawals: // value for 'numWithdrawals'
8075
- * skipWithdrawals: // value for 'skipWithdrawals'
8076
8816
  * numBorrows: // value for 'numBorrows'
8077
8817
  * skipBorrows: // value for 'skipBorrows'
8078
8818
  * orderBorrows: // value for 'orderBorrows'
@@ -8109,8 +8849,6 @@ export declare const GetAccountsWhereLenderAuthorizedOrActiveDocument: Apollo.Do
8109
8849
  * skipDeposits: // value for 'skipDeposits'
8110
8850
  * orderDeposits: // value for 'orderDeposits'
8111
8851
  * directionDeposits: // value for 'directionDeposits'
8112
- * numWithdrawals: // value for 'numWithdrawals'
8113
- * skipWithdrawals: // value for 'skipWithdrawals'
8114
8852
  * numBorrows: // value for 'numBorrows'
8115
8853
  * skipBorrows: // value for 'skipBorrows'
8116
8854
  * orderBorrows: // value for 'orderBorrows'
@@ -8212,6 +8950,32 @@ export type GetMarketsAndLogsWhereLenderAuthorizedOrActiveQueryHookResult = Apol
8212
8950
  export type GetMarketsAndLogsWhereLenderAuthorizedOrActiveLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQuery, SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQueryVariables>;
8213
8951
  export type GetMarketsAndLogsWhereLenderAuthorizedOrActiveSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQuery, SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQueryVariables>;
8214
8952
  export type GetMarketsAndLogsWhereLenderAuthorizedOrActiveQueryResult = Apollo.QueryResult<SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQuery, SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQueryVariables>;
8953
+ export declare const GetMarketEventsDocument: Apollo.DocumentNode;
8954
+ /**
8955
+ * __useGetMarketEventsQuery__
8956
+ *
8957
+ * To run a query within a React component, call `useGetMarketEventsQuery` and pass it any options that fit your needs.
8958
+ * When your component renders, `useGetMarketEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties
8959
+ * you can use to render your UI.
8960
+ *
8961
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
8962
+ *
8963
+ * @example
8964
+ * const { data, loading, error } = useGetMarketEventsQuery({
8965
+ * variables: {
8966
+ * market: // value for 'market'
8967
+ * startEventID: // value for 'startEventID'
8968
+ * endEventID: // value for 'endEventID'
8969
+ * },
8970
+ * });
8971
+ */
8972
+ export declare function useGetMarketEventsQuery(baseOptions: Apollo.QueryHookOptions<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>): GetMarketEventsQueryHookResult;
8973
+ export declare function useGetMarketEventsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>): GetMarketEventsLazyQueryHookResult;
8974
+ export declare function useGetMarketEventsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>): GetMarketEventsSuspenseQueryHookResult;
8975
+ export type GetMarketEventsQueryHookResult = Apollo.QueryResult<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>;
8976
+ export type GetMarketEventsLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>;
8977
+ export type GetMarketEventsSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>;
8978
+ export type GetMarketEventsQueryResult = Apollo.QueryResult<SubgraphGetMarketEventsQuery, SubgraphGetMarketEventsQueryVariables>;
8215
8979
  export declare const GetMarketsForBorrowerDocument: Apollo.DocumentNode;
8216
8980
  /**
8217
8981
  * __useGetMarketsForBorrowerQuery__