@wildcatfi/wildcat-sdk 3.0.6 → 3.0.8

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 (68) hide show
  1. package/dist/account/index.d.ts +2 -0
  2. package/dist/account/index.d.ts.map +1 -1
  3. package/dist/account/index.js +13 -0
  4. package/dist/account/index.js.map +1 -1
  5. package/dist/gql/getLenderAccountsForAllMarkets.d.ts +14 -0
  6. package/dist/gql/getLenderAccountsForAllMarkets.d.ts.map +1 -0
  7. package/dist/gql/getLenderAccountsForAllMarkets.js +31 -0
  8. package/dist/gql/getLenderAccountsForAllMarkets.js.map +1 -0
  9. package/dist/gql/getMarketsForBorrower.d.ts +3 -2
  10. package/dist/gql/getMarketsForBorrower.d.ts.map +1 -1
  11. package/dist/gql/getMarketsForBorrower.js +5 -2
  12. package/dist/gql/getMarketsForBorrower.js.map +1 -1
  13. package/dist/gql/getMarketsWithEvents.d.ts +13 -0
  14. package/dist/gql/getMarketsWithEvents.d.ts.map +1 -0
  15. package/dist/gql/{getMarketsForAllBorrowers.js → getMarketsWithEvents.js} +5 -5
  16. package/dist/gql/getMarketsWithEvents.js.map +1 -0
  17. package/dist/gql/graphql.d.ts +49 -56
  18. package/dist/gql/graphql.d.ts.map +1 -1
  19. package/dist/gql/graphql.js +71 -73
  20. package/dist/gql/graphql.js.map +1 -1
  21. package/dist/gql/index.d.ts +2 -1
  22. package/dist/gql/index.d.ts.map +1 -1
  23. package/dist/gql/index.js +2 -1
  24. package/dist/gql/index.js.map +1 -1
  25. package/dist/index.d.ts +0 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +0 -1
  28. package/dist/index.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/gql/getMarketsForAllBorrowers.d.ts +0 -13
  31. package/dist/gql/getMarketsForAllBorrowers.d.ts.map +0 -1
  32. package/dist/gql/getMarketsForAllBorrowers.js.map +0 -1
  33. package/dist/hooks/index.d.ts +0 -8
  34. package/dist/hooks/index.d.ts.map +0 -1
  35. package/dist/hooks/index.js +0 -24
  36. package/dist/hooks/index.js.map +0 -1
  37. package/dist/hooks/types.d.ts +0 -13
  38. package/dist/hooks/types.d.ts.map +0 -1
  39. package/dist/hooks/types.js +0 -3
  40. package/dist/hooks/types.js.map +0 -1
  41. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.d.ts +0 -27
  42. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.d.ts.map +0 -1
  43. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js +0 -85
  44. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js.map +0 -1
  45. package/dist/hooks/useAllPendingWithdrawalBatchesForMarket.d.ts +0 -10
  46. package/dist/hooks/useAllPendingWithdrawalBatchesForMarket.d.ts.map +0 -1
  47. package/dist/hooks/useAllPendingWithdrawalBatchesForMarket.js +0 -72
  48. package/dist/hooks/useAllPendingWithdrawalBatchesForMarket.js.map +0 -1
  49. package/dist/hooks/useGetAccountWithMarket.d.ts +0 -14
  50. package/dist/hooks/useGetAccountWithMarket.d.ts.map +0 -1
  51. package/dist/hooks/useGetAccountWithMarket.js +0 -59
  52. package/dist/hooks/useGetAccountWithMarket.js.map +0 -1
  53. package/dist/hooks/useLenderAccount.d.ts +0 -15
  54. package/dist/hooks/useLenderAccount.d.ts.map +0 -1
  55. package/dist/hooks/useLenderAccount.js +0 -57
  56. package/dist/hooks/useLenderAccount.js.map +0 -1
  57. package/dist/hooks/useLenderWithdrawalsForMarket.d.ts +0 -16
  58. package/dist/hooks/useLenderWithdrawalsForMarket.d.ts.map +0 -1
  59. package/dist/hooks/useLenderWithdrawalsForMarket.js +0 -88
  60. package/dist/hooks/useLenderWithdrawalsForMarket.js.map +0 -1
  61. package/dist/hooks/useMarket.d.ts +0 -13
  62. package/dist/hooks/useMarket.d.ts.map +0 -1
  63. package/dist/hooks/useMarket.js +0 -56
  64. package/dist/hooks/useMarket.js.map +0 -1
  65. package/dist/hooks/useMarketsForBorrower.d.ts +0 -13
  66. package/dist/hooks/useMarketsForBorrower.d.ts.map +0 -1
  67. package/dist/hooks/useMarketsForBorrower.js +0 -60
  68. package/dist/hooks/useMarketsForBorrower.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubgraphMaxTotalSupplyUpdated_OrderBy = exports.SubgraphMarket_OrderBy = exports.SubgraphMarketVersion = exports.SubgraphMarketRemoved_OrderBy = exports.SubgraphMarketInterestAccrued_OrderBy = exports.SubgraphMarketDeployed_OrderBy = exports.SubgraphMarketClosed_OrderBy = exports.SubgraphMarketAdded_OrderBy = exports.SubgraphLenderWithdrawalStatus_OrderBy = exports.SubgraphLenderStatus = exports.SubgraphLenderInterestAccrued_OrderBy = exports.SubgraphLenderHooksAccess_OrderBy = exports.SubgraphLenderAuthorization_OrderBy = exports.SubgraphLenderAuthorizationChange_OrderBy = exports.SubgraphLenderAccount_OrderBy = exports.SubgraphKnownLenderStatus_OrderBy = exports.SubgraphHooksTemplate_OrderBy = exports.SubgraphHooksTemplateFeesUpdated_OrderBy = exports.SubgraphHooksTemplateDisabled_OrderBy = exports.SubgraphHooksTemplateAdded_OrderBy = exports.SubgraphHooksNameUpdated_OrderBy = exports.SubgraphHooksKind = exports.SubgraphHooksInstance_OrderBy = exports.SubgraphHooksInstanceDeployed_OrderBy = exports.SubgraphHooksFactory_OrderBy = exports.SubgraphHooksConfig_OrderBy = exports.SubgraphForceBuyBack_OrderBy = exports.SubgraphFixedTermUpdated_OrderBy = exports.SubgraphFeesCollected_OrderBy = exports.SubgraphDisabledForceBuyBacks_OrderBy = exports.SubgraphDeposit_OrderBy = exports.SubgraphDelinquencyStatusChanged_OrderBy = exports.SubgraphDebtRepaid_OrderBy = exports.SubgraphController_OrderBy = exports.SubgraphControllerRemoved_OrderBy = exports.SubgraphControllerFactory_OrderBy = exports.SubgraphControllerFactoryRemoved_OrderBy = exports.SubgraphControllerFactoryAdded_OrderBy = exports.SubgraphControllerAdded_OrderBy = exports.SubgraphBorrowerRegistrationChange_OrderBy = exports.SubgraphBorrow_OrderBy = exports.SubgraphArchController_OrderBy = exports.SubgraphApproval_OrderBy = exports.SubgraphAnnualInterestBipsUpdated_OrderBy = exports.SubgraphAggregation_Interval = exports.SubgraphAccountUnblockedFromDeposits_OrderBy = exports.SubgraphAccountMadeFirstDeposit_OrderBy = exports.SubgraphAccountBlockedFromDeposits_OrderBy = exports.SubgraphAccountAccessRevoked_OrderBy = exports.SubgraphAccountAccessGranted_OrderBy = void 0;
4
4
  exports.RepaymentDataFragmentDoc = exports.FeesCollectedDataFragmentDoc = exports.BorrowDataFragmentDoc = exports.MarketDataFragmentDoc = exports.MarketDeployedEventFragmentDoc = exports.HooksInstanceDataFragmentDoc = exports.HooksTemplateDataFragmentDoc = exports.HooksConfigDataForMarketFragmentDoc = exports.TokenDataFragmentDoc = exports.DelinquencyStatusChangedDataFragmentDoc = exports.AprConstraintsFragmentDoc = exports.AllAuthorizedLendersViewFragmentDoc = exports.AllAuthorizedLendersViewMarketInfoFragmentDoc = exports.AccountDataForLenderViewFragmentDoc = exports.DepositDataFragmentDoc = exports.LenderHooksAccessDataFragmentDoc = exports.RoleProviderDataFragmentDoc = exports.LenderPropertiesFragmentDoc = exports.Subgraph_SubgraphErrorPolicy_ = exports.SubgraphWithdrawalRequest_OrderBy = exports.SubgraphWithdrawalExecution_OrderBy = exports.SubgraphWithdrawalBatch_OrderBy = exports.SubgraphWithdrawalBatchPayment_OrderBy = exports.SubgraphWithdrawalBatchInterestAccrued_OrderBy = exports.SubgraphWithdrawalBatchExpired_OrderBy = exports.SubgraphWithdrawalBatchCreated_OrderBy = exports.SubgraphUpdateProtocolFeeConfiguration_OrderBy = exports.SubgraphTransfer_OrderBy = exports.SubgraphToken_OrderBy = exports.SubgraphSubgraphVersion_OrderBy = exports.SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy = exports.SubgraphSanctionedAccountAssetsSentToEscrow_OrderBy = exports.SubgraphSanctionedAccountAssetsQueuedForWithdrawal_OrderBy = exports.SubgraphSanctionOverride_OrderBy = exports.SubgraphSanctionOverrideRemoved_OrderBy = exports.SubgraphRoleProvider_OrderBy = exports.SubgraphRoleProviderUpdated_OrderBy = exports.SubgraphRoleProviderRemoved_OrderBy = exports.SubgraphRoleProviderAdded_OrderBy = exports.SubgraphReserveRatioBipsUpdated_OrderBy = exports.SubgraphRegisteredBorrower_OrderBy = exports.SubgraphProtocolFeeBipsUpdated_OrderBy = exports.SubgraphParameterConstraints_OrderBy = exports.SubgraphOwnershipTransferred_OrderBy = exports.SubgraphOwnershipHandoverRequested_OrderBy = exports.SubgraphOwnershipHandoverCanceled_OrderBy = exports.SubgraphOrderDirection = exports.SubgraphNewSanctionsEscrow_OrderBy = exports.SubgraphNewController_OrderBy = exports.SubgraphMinimumDepositUpdated_OrderBy = void 0;
5
- exports.GetMarketRecordsDocument = exports.GetSubgraphStatusDocument = exports.GetAuthorizedLendersByBorrowerDocument = exports.GetAllAuthorizedLendersDocument = exports.GetAuthorizedLendersByMarketDocument = exports.GetAllMarketsDocument = exports.GetIncompleteWithdrawalsForMarketDocument = exports.GetAllPendingWithdrawalBatchesForMarketDocument = exports.GetWithdrawalRequestsByMarketDocument = exports.GetMarketDocument = exports.GetMarketsForAllBorrowersDocument = exports.GetMarketsForBorrowerDocument = exports.GetMarketEventsDocument = exports.GetAllHooksDataForBorrowerDocument = exports.GetHooksInstancesForBorrowerDocument = exports.GetAllHooksTemplatesDocument = exports.GetMarketsAndLogsWhereLenderAuthorizedOrActiveDocument = exports.GetLenderAuthorizationByMarketDocument = exports.GetLenderWithdrawalsForMarketDocument = exports.GetAccountsWhereLenderAuthorizedOrActiveDocument = exports.GetAllMarketsForLenderViewDocument = exports.GetLenderAccountWithMarketDocument = exports.GetLenderAccountForMarketDocument = exports.MarketClosedDataFragmentDoc = exports.MaxTotalSupplyUpdatedDataFragmentDoc = exports.AnnualInterestBipsUpdatedDataFragmentDoc = exports.WithdrawalBatchPropertiesWithEventsFragmentDoc = exports.LenderWithdrawalPropertiesWithEventsFragmentDoc = exports.WithdrawalExecutionPropertiesFragmentDoc = exports.WithdrawalRequestPropertiesFragmentDoc = exports.WithdrawalBatchPropertiesFragmentDoc = exports.WithdrawalBatchPaymentPropertiesFragmentDoc = exports.LenderWithdrawalPropertiesFragmentDoc = exports.FixedTermUpdatedDataFragmentDoc = exports.DisabledForceBuyBacksDataFragmentDoc = exports.ProtocolFeeBipsUpdatedDataFragmentDoc = exports.MinimumDepositUpdatedDataFragmentDoc = exports.ForceBuyBackDataFragmentDoc = exports.MarketDataWithEventsFragmentDoc = exports.MarketRecordsFragmentDoc = void 0;
5
+ exports.GetMarketRecordsDocument = exports.GetSubgraphStatusDocument = exports.GetAuthorizedLendersByBorrowerDocument = exports.GetAllAuthorizedLendersDocument = exports.GetAuthorizedLendersByMarketDocument = exports.GetAllMarketsDocument = exports.GetIncompleteWithdrawalsForMarketDocument = exports.GetAllPendingWithdrawalBatchesForMarketDocument = exports.GetWithdrawalRequestsByMarketDocument = exports.GetMarketDocument = exports.GetMarketsWithEventsDocument = exports.GetMarketEventsDocument = exports.GetAllHooksDataForBorrowerDocument = exports.GetHooksInstancesForBorrowerDocument = exports.GetAllHooksTemplatesDocument = exports.GetMarketsAndLogsWhereLenderAuthorizedOrActiveDocument = exports.GetLenderAuthorizationByMarketDocument = exports.GetLenderWithdrawalsForMarketDocument = exports.GetAccountsWhereLenderAuthorizedOrActiveDocument = exports.GetAllMarketsForLenderViewDocument = exports.GetLenderAccountWithMarketDocument = exports.GetLenderAccountForMarketDocument = exports.MarketClosedDataFragmentDoc = exports.MaxTotalSupplyUpdatedDataFragmentDoc = exports.AnnualInterestBipsUpdatedDataFragmentDoc = exports.WithdrawalBatchPropertiesWithEventsFragmentDoc = exports.LenderWithdrawalPropertiesWithEventsFragmentDoc = exports.WithdrawalExecutionPropertiesFragmentDoc = exports.WithdrawalRequestPropertiesFragmentDoc = exports.WithdrawalBatchPropertiesFragmentDoc = exports.WithdrawalBatchPaymentPropertiesFragmentDoc = exports.LenderWithdrawalPropertiesFragmentDoc = exports.FixedTermUpdatedDataFragmentDoc = exports.DisabledForceBuyBacksDataFragmentDoc = exports.ProtocolFeeBipsUpdatedDataFragmentDoc = exports.MinimumDepositUpdatedDataFragmentDoc = exports.ForceBuyBackDataFragmentDoc = exports.MarketDataWithEventsFragmentDoc = exports.MarketRecordsFragmentDoc = void 0;
6
6
  const client_1 = require("@apollo/client");
7
7
  var SubgraphAccountAccessGranted_OrderBy;
8
8
  (function (SubgraphAccountAccessGranted_OrderBy) {
@@ -116,6 +116,7 @@ var SubgraphAccountMadeFirstDeposit_OrderBy;
116
116
  SubgraphAccountMadeFirstDeposit_OrderBy["MarketId"] = "market__id";
117
117
  SubgraphAccountMadeFirstDeposit_OrderBy["MarketIsClosed"] = "market__isClosed";
118
118
  SubgraphAccountMadeFirstDeposit_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
119
+ SubgraphAccountMadeFirstDeposit_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
119
120
  SubgraphAccountMadeFirstDeposit_OrderBy["MarketIsRegistered"] = "market__isRegistered";
120
121
  SubgraphAccountMadeFirstDeposit_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
121
122
  SubgraphAccountMadeFirstDeposit_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -201,6 +202,7 @@ var SubgraphAnnualInterestBipsUpdated_OrderBy;
201
202
  SubgraphAnnualInterestBipsUpdated_OrderBy["MarketId"] = "market__id";
202
203
  SubgraphAnnualInterestBipsUpdated_OrderBy["MarketIsClosed"] = "market__isClosed";
203
204
  SubgraphAnnualInterestBipsUpdated_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
205
+ SubgraphAnnualInterestBipsUpdated_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
204
206
  SubgraphAnnualInterestBipsUpdated_OrderBy["MarketIsRegistered"] = "market__isRegistered";
205
207
  SubgraphAnnualInterestBipsUpdated_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
206
208
  SubgraphAnnualInterestBipsUpdated_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -287,6 +289,7 @@ var SubgraphBorrow_OrderBy;
287
289
  SubgraphBorrow_OrderBy["MarketId"] = "market__id";
288
290
  SubgraphBorrow_OrderBy["MarketIsClosed"] = "market__isClosed";
289
291
  SubgraphBorrow_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
292
+ SubgraphBorrow_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
290
293
  SubgraphBorrow_OrderBy["MarketIsRegistered"] = "market__isRegistered";
291
294
  SubgraphBorrow_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
292
295
  SubgraphBorrow_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -477,6 +480,7 @@ var SubgraphDebtRepaid_OrderBy;
477
480
  SubgraphDebtRepaid_OrderBy["MarketId"] = "market__id";
478
481
  SubgraphDebtRepaid_OrderBy["MarketIsClosed"] = "market__isClosed";
479
482
  SubgraphDebtRepaid_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
483
+ SubgraphDebtRepaid_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
480
484
  SubgraphDebtRepaid_OrderBy["MarketIsRegistered"] = "market__isRegistered";
481
485
  SubgraphDebtRepaid_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
482
486
  SubgraphDebtRepaid_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -539,6 +543,7 @@ var SubgraphDelinquencyStatusChanged_OrderBy;
539
543
  SubgraphDelinquencyStatusChanged_OrderBy["MarketId"] = "market__id";
540
544
  SubgraphDelinquencyStatusChanged_OrderBy["MarketIsClosed"] = "market__isClosed";
541
545
  SubgraphDelinquencyStatusChanged_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
546
+ SubgraphDelinquencyStatusChanged_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
542
547
  SubgraphDelinquencyStatusChanged_OrderBy["MarketIsRegistered"] = "market__isRegistered";
543
548
  SubgraphDelinquencyStatusChanged_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
544
549
  SubgraphDelinquencyStatusChanged_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -611,6 +616,7 @@ var SubgraphDeposit_OrderBy;
611
616
  SubgraphDeposit_OrderBy["MarketId"] = "market__id";
612
617
  SubgraphDeposit_OrderBy["MarketIsClosed"] = "market__isClosed";
613
618
  SubgraphDeposit_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
619
+ SubgraphDeposit_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
614
620
  SubgraphDeposit_OrderBy["MarketIsRegistered"] = "market__isRegistered";
615
621
  SubgraphDeposit_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
616
622
  SubgraphDeposit_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -677,6 +683,7 @@ var SubgraphDisabledForceBuyBacks_OrderBy;
677
683
  SubgraphDisabledForceBuyBacks_OrderBy["MarketId"] = "market__id";
678
684
  SubgraphDisabledForceBuyBacks_OrderBy["MarketIsClosed"] = "market__isClosed";
679
685
  SubgraphDisabledForceBuyBacks_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
686
+ SubgraphDisabledForceBuyBacks_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
680
687
  SubgraphDisabledForceBuyBacks_OrderBy["MarketIsRegistered"] = "market__isRegistered";
681
688
  SubgraphDisabledForceBuyBacks_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
682
689
  SubgraphDisabledForceBuyBacks_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -738,6 +745,7 @@ var SubgraphFeesCollected_OrderBy;
738
745
  SubgraphFeesCollected_OrderBy["MarketId"] = "market__id";
739
746
  SubgraphFeesCollected_OrderBy["MarketIsClosed"] = "market__isClosed";
740
747
  SubgraphFeesCollected_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
748
+ SubgraphFeesCollected_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
741
749
  SubgraphFeesCollected_OrderBy["MarketIsRegistered"] = "market__isRegistered";
742
750
  SubgraphFeesCollected_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
743
751
  SubgraphFeesCollected_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -804,6 +812,7 @@ var SubgraphFixedTermUpdated_OrderBy;
804
812
  SubgraphFixedTermUpdated_OrderBy["MarketId"] = "market__id";
805
813
  SubgraphFixedTermUpdated_OrderBy["MarketIsClosed"] = "market__isClosed";
806
814
  SubgraphFixedTermUpdated_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
815
+ SubgraphFixedTermUpdated_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
807
816
  SubgraphFixedTermUpdated_OrderBy["MarketIsRegistered"] = "market__isRegistered";
808
817
  SubgraphFixedTermUpdated_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
809
818
  SubgraphFixedTermUpdated_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -876,6 +885,7 @@ var SubgraphForceBuyBack_OrderBy;
876
885
  SubgraphForceBuyBack_OrderBy["MarketId"] = "market__id";
877
886
  SubgraphForceBuyBack_OrderBy["MarketIsClosed"] = "market__isClosed";
878
887
  SubgraphForceBuyBack_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
888
+ SubgraphForceBuyBack_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
879
889
  SubgraphForceBuyBack_OrderBy["MarketIsRegistered"] = "market__isRegistered";
880
890
  SubgraphForceBuyBack_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
881
891
  SubgraphForceBuyBack_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -946,6 +956,7 @@ var SubgraphHooksConfig_OrderBy;
946
956
  SubgraphHooksConfig_OrderBy["MarketId"] = "market__id";
947
957
  SubgraphHooksConfig_OrderBy["MarketIsClosed"] = "market__isClosed";
948
958
  SubgraphHooksConfig_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
959
+ SubgraphHooksConfig_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
949
960
  SubgraphHooksConfig_OrderBy["MarketIsRegistered"] = "market__isRegistered";
950
961
  SubgraphHooksConfig_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
951
962
  SubgraphHooksConfig_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1198,6 +1209,7 @@ var SubgraphKnownLenderStatus_OrderBy;
1198
1209
  SubgraphKnownLenderStatus_OrderBy["MarketId"] = "market__id";
1199
1210
  SubgraphKnownLenderStatus_OrderBy["MarketIsClosed"] = "market__isClosed";
1200
1211
  SubgraphKnownLenderStatus_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1212
+ SubgraphKnownLenderStatus_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1201
1213
  SubgraphKnownLenderStatus_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1202
1214
  SubgraphKnownLenderStatus_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1203
1215
  SubgraphKnownLenderStatus_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1270,6 +1282,7 @@ var SubgraphLenderAccount_OrderBy;
1270
1282
  SubgraphLenderAccount_OrderBy["MarketId"] = "market__id";
1271
1283
  SubgraphLenderAccount_OrderBy["MarketIsClosed"] = "market__isClosed";
1272
1284
  SubgraphLenderAccount_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1285
+ SubgraphLenderAccount_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1273
1286
  SubgraphLenderAccount_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1274
1287
  SubgraphLenderAccount_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1275
1288
  SubgraphLenderAccount_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1402,6 +1415,7 @@ var SubgraphLenderInterestAccrued_OrderBy;
1402
1415
  SubgraphLenderInterestAccrued_OrderBy["MarketId"] = "market__id";
1403
1416
  SubgraphLenderInterestAccrued_OrderBy["MarketIsClosed"] = "market__isClosed";
1404
1417
  SubgraphLenderInterestAccrued_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1418
+ SubgraphLenderInterestAccrued_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1405
1419
  SubgraphLenderInterestAccrued_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1406
1420
  SubgraphLenderInterestAccrued_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1407
1421
  SubgraphLenderInterestAccrued_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1510,6 +1524,7 @@ var SubgraphMarketAdded_OrderBy;
1510
1524
  SubgraphMarketAdded_OrderBy["MarketId"] = "market__id";
1511
1525
  SubgraphMarketAdded_OrderBy["MarketIsClosed"] = "market__isClosed";
1512
1526
  SubgraphMarketAdded_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1527
+ SubgraphMarketAdded_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1513
1528
  SubgraphMarketAdded_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1514
1529
  SubgraphMarketAdded_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1515
1530
  SubgraphMarketAdded_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1569,6 +1584,7 @@ var SubgraphMarketClosed_OrderBy;
1569
1584
  SubgraphMarketClosed_OrderBy["MarketId"] = "market__id";
1570
1585
  SubgraphMarketClosed_OrderBy["MarketIsClosed"] = "market__isClosed";
1571
1586
  SubgraphMarketClosed_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1587
+ SubgraphMarketClosed_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1572
1588
  SubgraphMarketClosed_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1573
1589
  SubgraphMarketClosed_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1574
1590
  SubgraphMarketClosed_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1628,6 +1644,7 @@ var SubgraphMarketDeployed_OrderBy;
1628
1644
  SubgraphMarketDeployed_OrderBy["MarketId"] = "market__id";
1629
1645
  SubgraphMarketDeployed_OrderBy["MarketIsClosed"] = "market__isClosed";
1630
1646
  SubgraphMarketDeployed_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1647
+ SubgraphMarketDeployed_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1631
1648
  SubgraphMarketDeployed_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1632
1649
  SubgraphMarketDeployed_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1633
1650
  SubgraphMarketDeployed_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1691,6 +1708,7 @@ var SubgraphMarketInterestAccrued_OrderBy;
1691
1708
  SubgraphMarketInterestAccrued_OrderBy["MarketId"] = "market__id";
1692
1709
  SubgraphMarketInterestAccrued_OrderBy["MarketIsClosed"] = "market__isClosed";
1693
1710
  SubgraphMarketInterestAccrued_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1711
+ SubgraphMarketInterestAccrued_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1694
1712
  SubgraphMarketInterestAccrued_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1695
1713
  SubgraphMarketInterestAccrued_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1696
1714
  SubgraphMarketInterestAccrued_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1752,6 +1770,7 @@ var SubgraphMarketRemoved_OrderBy;
1752
1770
  SubgraphMarketRemoved_OrderBy["MarketId"] = "market__id";
1753
1771
  SubgraphMarketRemoved_OrderBy["MarketIsClosed"] = "market__isClosed";
1754
1772
  SubgraphMarketRemoved_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1773
+ SubgraphMarketRemoved_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1755
1774
  SubgraphMarketRemoved_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1756
1775
  SubgraphMarketRemoved_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1757
1776
  SubgraphMarketRemoved_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -1876,6 +1895,7 @@ var SubgraphMarket_OrderBy;
1876
1895
  SubgraphMarket_OrderBy["InterestAccrualRecords"] = "interestAccrualRecords";
1877
1896
  SubgraphMarket_OrderBy["IsClosed"] = "isClosed";
1878
1897
  SubgraphMarket_OrderBy["IsDelinquent"] = "isDelinquent";
1898
+ SubgraphMarket_OrderBy["IsIncurringPenalties"] = "isIncurringPenalties";
1879
1899
  SubgraphMarket_OrderBy["IsRegistered"] = "isRegistered";
1880
1900
  SubgraphMarket_OrderBy["LastInterestAccruedTimestamp"] = "lastInterestAccruedTimestamp";
1881
1901
  SubgraphMarket_OrderBy["Lenders"] = "lenders";
@@ -1954,6 +1974,7 @@ var SubgraphMaxTotalSupplyUpdated_OrderBy;
1954
1974
  SubgraphMaxTotalSupplyUpdated_OrderBy["MarketId"] = "market__id";
1955
1975
  SubgraphMaxTotalSupplyUpdated_OrderBy["MarketIsClosed"] = "market__isClosed";
1956
1976
  SubgraphMaxTotalSupplyUpdated_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
1977
+ SubgraphMaxTotalSupplyUpdated_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
1957
1978
  SubgraphMaxTotalSupplyUpdated_OrderBy["MarketIsRegistered"] = "market__isRegistered";
1958
1979
  SubgraphMaxTotalSupplyUpdated_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
1959
1980
  SubgraphMaxTotalSupplyUpdated_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2022,6 +2043,7 @@ var SubgraphMinimumDepositUpdated_OrderBy;
2022
2043
  SubgraphMinimumDepositUpdated_OrderBy["MarketId"] = "market__id";
2023
2044
  SubgraphMinimumDepositUpdated_OrderBy["MarketIsClosed"] = "market__isClosed";
2024
2045
  SubgraphMinimumDepositUpdated_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2046
+ SubgraphMinimumDepositUpdated_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2025
2047
  SubgraphMinimumDepositUpdated_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2026
2048
  SubgraphMinimumDepositUpdated_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2027
2049
  SubgraphMinimumDepositUpdated_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2150,6 +2172,7 @@ var SubgraphProtocolFeeBipsUpdated_OrderBy;
2150
2172
  SubgraphProtocolFeeBipsUpdated_OrderBy["MarketId"] = "market__id";
2151
2173
  SubgraphProtocolFeeBipsUpdated_OrderBy["MarketIsClosed"] = "market__isClosed";
2152
2174
  SubgraphProtocolFeeBipsUpdated_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2175
+ SubgraphProtocolFeeBipsUpdated_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2153
2176
  SubgraphProtocolFeeBipsUpdated_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2154
2177
  SubgraphProtocolFeeBipsUpdated_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2155
2178
  SubgraphProtocolFeeBipsUpdated_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2220,6 +2243,7 @@ var SubgraphReserveRatioBipsUpdated_OrderBy;
2220
2243
  SubgraphReserveRatioBipsUpdated_OrderBy["MarketId"] = "market__id";
2221
2244
  SubgraphReserveRatioBipsUpdated_OrderBy["MarketIsClosed"] = "market__isClosed";
2222
2245
  SubgraphReserveRatioBipsUpdated_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2246
+ SubgraphReserveRatioBipsUpdated_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2223
2247
  SubgraphReserveRatioBipsUpdated_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2224
2248
  SubgraphReserveRatioBipsUpdated_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2225
2249
  SubgraphReserveRatioBipsUpdated_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2468,6 +2492,7 @@ var SubgraphTransfer_OrderBy;
2468
2492
  SubgraphTransfer_OrderBy["MarketId"] = "market__id";
2469
2493
  SubgraphTransfer_OrderBy["MarketIsClosed"] = "market__isClosed";
2470
2494
  SubgraphTransfer_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2495
+ SubgraphTransfer_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2471
2496
  SubgraphTransfer_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2472
2497
  SubgraphTransfer_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2473
2498
  SubgraphTransfer_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2624,6 +2649,7 @@ var SubgraphWithdrawalBatchInterestAccrued_OrderBy;
2624
2649
  SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketId"] = "market__id";
2625
2650
  SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketIsClosed"] = "market__isClosed";
2626
2651
  SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2652
+ SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2627
2653
  SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2628
2654
  SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2629
2655
  SubgraphWithdrawalBatchInterestAccrued_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2721,6 +2747,7 @@ var SubgraphWithdrawalBatch_OrderBy;
2721
2747
  SubgraphWithdrawalBatch_OrderBy["MarketId"] = "market__id";
2722
2748
  SubgraphWithdrawalBatch_OrderBy["MarketIsClosed"] = "market__isClosed";
2723
2749
  SubgraphWithdrawalBatch_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2750
+ SubgraphWithdrawalBatch_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2724
2751
  SubgraphWithdrawalBatch_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2725
2752
  SubgraphWithdrawalBatch_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2726
2753
  SubgraphWithdrawalBatch_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -2859,6 +2886,7 @@ var SubgraphWithdrawalRequest_OrderBy;
2859
2886
  SubgraphWithdrawalRequest_OrderBy["MarketId"] = "market__id";
2860
2887
  SubgraphWithdrawalRequest_OrderBy["MarketIsClosed"] = "market__isClosed";
2861
2888
  SubgraphWithdrawalRequest_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2889
+ SubgraphWithdrawalRequest_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2862
2890
  SubgraphWithdrawalRequest_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2863
2891
  SubgraphWithdrawalRequest_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2864
2892
  SubgraphWithdrawalRequest_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
@@ -3210,7 +3238,7 @@ exports.MarketRecordsFragmentDoc = (0, client_1.gql) `
3210
3238
  exports.MarketDataWithEventsFragmentDoc = (0, client_1.gql) `
3211
3239
  fragment MarketDataWithEvents on Market {
3212
3240
  ...MarketData
3213
- ...MarketRecords
3241
+ ...MarketRecords @skip(if: $shouldSkipRecords)
3214
3242
  }
3215
3243
  `;
3216
3244
  exports.ForceBuyBackDataFragmentDoc = (0, client_1.gql) `
@@ -3484,7 +3512,11 @@ exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
3484
3512
  query getAllMarketsForLenderView(
3485
3513
  $lender: Bytes
3486
3514
  $marketFilter: Market_filter = { id_not: null }
3487
- $numDeposits: Int = 200
3515
+ $numMarkets: Int = 1000
3516
+ $skipMarkets: Int = 0
3517
+ $orderMarkets: Market_orderBy = createdAt
3518
+ $directionMarkets: OrderDirection = desc
3519
+ $numDeposits: Int = 10
3488
3520
  $skipDeposits: Int = 0
3489
3521
  $orderDeposits: Deposit_orderBy = blockTimestamp
3490
3522
  $directionDeposits: OrderDirection = desc
@@ -3497,7 +3529,13 @@ exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
3497
3529
  $orderRepayments: DebtRepaid_orderBy = blockTimestamp
3498
3530
  $directionRepayments: OrderDirection = desc
3499
3531
  ) {
3500
- markets(where: $marketFilter) {
3532
+ markets(
3533
+ where: $marketFilter
3534
+ orderBy: $orderMarkets
3535
+ orderDirection: $directionMarkets
3536
+ first: $numMarkets
3537
+ skip: $skipMarkets
3538
+ ) {
3501
3539
  ...MarketData
3502
3540
  borrowRecords(
3503
3541
  first: $numBorrows
@@ -3515,25 +3553,25 @@ exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
3515
3553
  ) {
3516
3554
  ...RepaymentData
3517
3555
  }
3518
- }
3519
- lenderAccounts(
3520
- where: {
3521
- and: [
3522
- { address: $lender }
3523
- {
3524
- or: [
3525
- { role_in: [DepositAndWithdraw, WithdrawOnly] }
3526
- { scaledBalance_gt: 0 }
3527
- { controllerAuthorization_: { authorized: true } }
3528
- { totalDeposited_gt: 0 }
3529
- ]
3530
- }
3531
- ]
3532
- }
3533
- ) {
3534
- ...AccountDataForLenderView
3535
- market {
3536
- id
3556
+ lenders(
3557
+ where: {
3558
+ and: [
3559
+ { address: $lender }
3560
+ {
3561
+ or: [
3562
+ { role_in: [DepositAndWithdraw, WithdrawOnly] }
3563
+ { controllerAuthorization_: { authorized: true } }
3564
+ { knownLenderStatus_: { id_not: null } }
3565
+ { hooksAccess_: { lastApprovalTimestamp_gt: 0 } }
3566
+ { totalDeposited_gt: 0 }
3567
+ { scaledBalance_gt: 0 }
3568
+ ]
3569
+ }
3570
+ ]
3571
+ }
3572
+ first: 1
3573
+ ) {
3574
+ ...AccountDataForLenderView
3537
3575
  }
3538
3576
  }
3539
3577
  controllerAuthorizations: lenderAuthorizations(
@@ -3566,6 +3604,11 @@ exports.GetAccountsWhereLenderAuthorizedOrActiveDocument = (0, client_1.gql) `
3566
3604
  query getAccountsWhereLenderAuthorizedOrActive(
3567
3605
  $lender: Bytes!
3568
3606
  $accountFilter: LenderAccount_filter = { address_not: null }
3607
+ $marketFilter: Market_filter = { id_not: null }
3608
+ $numMarkets: Int = 1000
3609
+ $skipMarkets: Int = 0
3610
+ $orderMarkets: Market_orderBy = createdAt
3611
+ $directionMarkets: OrderDirection = desc
3569
3612
  $numDeposits: Int = 200
3570
3613
  $skipDeposits: Int = 0
3571
3614
  $orderDeposits: Deposit_orderBy = blockTimestamp
@@ -3947,10 +3990,10 @@ exports.GetMarketEventsDocument = (0, client_1.gql) `
3947
3990
  ${exports.ProtocolFeeBipsUpdatedDataFragmentDoc}
3948
3991
  ${exports.FixedTermUpdatedDataFragmentDoc}
3949
3992
  `;
3950
- exports.GetMarketsForBorrowerDocument = (0, client_1.gql) `
3951
- query getMarketsForBorrower(
3952
- $borrower: Bytes!
3993
+ exports.GetMarketsWithEventsDocument = (0, client_1.gql) `
3994
+ query getMarketsWithEvents(
3953
3995
  $marketFilter: Market_filter = { id_not: null }
3996
+ $shouldSkipRecords: Boolean = false
3954
3997
  $numMarkets: Int = 1000
3955
3998
  $skipMarkets: Int = 0
3956
3999
  $orderMarkets: Market_orderBy = createdAt
@@ -3973,53 +4016,7 @@ exports.GetMarketsForBorrowerDocument = (0, client_1.gql) `
3973
4016
  $directionRepayments: OrderDirection = desc
3974
4017
  ) {
3975
4018
  markets(
3976
- where: { and: [{ borrower: $borrower }, $marketFilter] }
3977
- orderBy: $orderMarkets
3978
- orderDirection: $directionMarkets
3979
- first: $numMarkets
3980
- skip: $skipMarkets
3981
- ) {
3982
- ...MarketDataWithEvents
3983
- }
3984
- }
3985
- ${exports.MarketDataWithEventsFragmentDoc}
3986
- ${exports.MarketDataFragmentDoc}
3987
- ${exports.TokenDataFragmentDoc}
3988
- ${exports.HooksConfigDataForMarketFragmentDoc}
3989
- ${exports.HooksInstanceDataFragmentDoc}
3990
- ${exports.HooksTemplateDataFragmentDoc}
3991
- ${exports.RoleProviderDataFragmentDoc}
3992
- ${exports.MarketDeployedEventFragmentDoc}
3993
- ${exports.MarketRecordsFragmentDoc}
3994
- ${exports.DepositDataFragmentDoc}
3995
- ${exports.BorrowDataFragmentDoc}
3996
- ${exports.FeesCollectedDataFragmentDoc}
3997
- ${exports.RepaymentDataFragmentDoc}
3998
- `;
3999
- exports.GetMarketsForAllBorrowersDocument = (0, client_1.gql) `
4000
- query getMarketsForAllBorrowers(
4001
- $numMarkets: Int = 1000
4002
- $skipMarkets: Int = 0
4003
- $orderMarkets: Market_orderBy = createdAt
4004
- $directionMarkets: OrderDirection = desc
4005
- $numDeposits: Int = 10
4006
- $skipDeposits: Int = 0
4007
- $orderDeposits: Deposit_orderBy = blockTimestamp
4008
- $directionDeposits: OrderDirection = desc
4009
- $numBorrows: Int = 10
4010
- $skipBorrows: Int = 0
4011
- $orderBorrows: Borrow_orderBy = blockTimestamp
4012
- $directionBorrows: OrderDirection = desc
4013
- $numFeeCollections: Int = 10
4014
- $skipFeeCollections: Int = 0
4015
- $orderFeeCollections: FeesCollected_orderBy = blockTimestamp
4016
- $directionFeeCollections: OrderDirection = desc
4017
- $numRepayments: Int = 10
4018
- $skipRepayments: Int = 0
4019
- $orderRepayments: DebtRepaid_orderBy = blockTimestamp
4020
- $directionRepayments: OrderDirection = desc
4021
- ) {
4022
- markets(
4019
+ where: $marketFilter
4023
4020
  orderBy: $orderMarkets
4024
4021
  orderDirection: $directionMarkets
4025
4022
  first: $numMarkets
@@ -4045,6 +4042,7 @@ exports.GetMarketsForAllBorrowersDocument = (0, client_1.gql) `
4045
4042
  exports.GetMarketDocument = (0, client_1.gql) `
4046
4043
  query getMarket(
4047
4044
  $market: ID!
4045
+ $shouldSkipRecords: Boolean = false
4048
4046
  $numDeposits: Int = 10
4049
4047
  $skipDeposits: Int = 0
4050
4048
  $orderDeposits: Deposit_orderBy = blockTimestamp