@wildcatfi/wildcat-sdk 3.0.9 → 3.0.11

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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
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
- 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.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;
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.BasicLenderDataFragmentDoc = 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.GetActiveLendersByMarketDocument = exports.GetMarketsAndLendersByHooksInstanceOrControllerDocument = exports.GetLendersByHooksInstanceOrControllerDocument = exports.GetV1AuthorizedLendersDocument = 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.HooksInstanceLendersWithActiveMarketsFragmentDoc = exports.V2LenderWithActiveMarketsFragmentDoc = exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc = exports.V1LenderWithActiveMarketsFragmentDoc = 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) {
@@ -87,6 +87,7 @@ var SubgraphAccountMadeFirstDeposit_OrderBy;
87
87
  SubgraphAccountMadeFirstDeposit_OrderBy["HooksName"] = "hooks__name";
88
88
  SubgraphAccountMadeFirstDeposit_OrderBy["Id"] = "id";
89
89
  SubgraphAccountMadeFirstDeposit_OrderBy["LenderAccount"] = "lenderAccount";
90
+ SubgraphAccountMadeFirstDeposit_OrderBy["LenderAccountAddedTimestamp"] = "lenderAccount__addedTimestamp";
90
91
  SubgraphAccountMadeFirstDeposit_OrderBy["LenderAccountAddress"] = "lenderAccount__address";
91
92
  SubgraphAccountMadeFirstDeposit_OrderBy["LenderAccountId"] = "lenderAccount__id";
92
93
  SubgraphAccountMadeFirstDeposit_OrderBy["LenderAccountLastScaleFactor"] = "lenderAccount__lastScaleFactor";
@@ -581,6 +582,7 @@ var SubgraphDelinquencyStatusChanged_OrderBy;
581
582
  var SubgraphDeposit_OrderBy;
582
583
  (function (SubgraphDeposit_OrderBy) {
583
584
  SubgraphDeposit_OrderBy["Account"] = "account";
585
+ SubgraphDeposit_OrderBy["AccountAddedTimestamp"] = "account__addedTimestamp";
584
586
  SubgraphDeposit_OrderBy["AccountAddress"] = "account__address";
585
587
  SubgraphDeposit_OrderBy["AccountId"] = "account__id";
586
588
  SubgraphDeposit_OrderBy["AccountLastScaleFactor"] = "account__lastScaleFactor";
@@ -851,6 +853,7 @@ var SubgraphFixedTermUpdated_OrderBy;
851
853
  var SubgraphForceBuyBack_OrderBy;
852
854
  (function (SubgraphForceBuyBack_OrderBy) {
853
855
  SubgraphForceBuyBack_OrderBy["Account"] = "account";
856
+ SubgraphForceBuyBack_OrderBy["AccountAddedTimestamp"] = "account__addedTimestamp";
854
857
  SubgraphForceBuyBack_OrderBy["AccountAddress"] = "account__address";
855
858
  SubgraphForceBuyBack_OrderBy["AccountId"] = "account__id";
856
859
  SubgraphForceBuyBack_OrderBy["AccountLastScaleFactor"] = "account__lastScaleFactor";
@@ -1056,6 +1059,7 @@ var SubgraphHooksInstance_OrderBy;
1056
1059
  SubgraphHooksInstance_OrderBy["HooksTemplateProtocolFeeBips"] = "hooksTemplate__protocolFeeBips";
1057
1060
  SubgraphHooksInstance_OrderBy["Id"] = "id";
1058
1061
  SubgraphHooksInstance_OrderBy["Kind"] = "kind";
1062
+ SubgraphHooksInstance_OrderBy["Lenders"] = "lenders";
1059
1063
  SubgraphHooksInstance_OrderBy["Markets"] = "markets";
1060
1064
  SubgraphHooksInstance_OrderBy["Name"] = "name";
1061
1065
  SubgraphHooksInstance_OrderBy["NameUpdatedRecords"] = "nameUpdatedRecords";
@@ -1180,6 +1184,7 @@ var SubgraphKnownLenderStatus_OrderBy;
1180
1184
  SubgraphKnownLenderStatus_OrderBy["HooksAccessLender"] = "hooksAccess__lender";
1181
1185
  SubgraphKnownLenderStatus_OrderBy["Id"] = "id";
1182
1186
  SubgraphKnownLenderStatus_OrderBy["LenderAccount"] = "lenderAccount";
1187
+ SubgraphKnownLenderStatus_OrderBy["LenderAccountAddedTimestamp"] = "lenderAccount__addedTimestamp";
1183
1188
  SubgraphKnownLenderStatus_OrderBy["LenderAccountAddress"] = "lenderAccount__address";
1184
1189
  SubgraphKnownLenderStatus_OrderBy["LenderAccountId"] = "lenderAccount__id";
1185
1190
  SubgraphKnownLenderStatus_OrderBy["LenderAccountLastScaleFactor"] = "lenderAccount__lastScaleFactor";
@@ -1244,6 +1249,7 @@ var SubgraphKnownLenderStatus_OrderBy;
1244
1249
  })(SubgraphKnownLenderStatus_OrderBy = exports.SubgraphKnownLenderStatus_OrderBy || (exports.SubgraphKnownLenderStatus_OrderBy = {}));
1245
1250
  var SubgraphLenderAccount_OrderBy;
1246
1251
  (function (SubgraphLenderAccount_OrderBy) {
1252
+ SubgraphLenderAccount_OrderBy["AddedTimestamp"] = "addedTimestamp";
1247
1253
  SubgraphLenderAccount_OrderBy["Address"] = "address";
1248
1254
  SubgraphLenderAccount_OrderBy["ControllerAuthorization"] = "controllerAuthorization";
1249
1255
  SubgraphLenderAccount_OrderBy["ControllerAuthorizationAuthorized"] = "controllerAuthorization__authorized";
@@ -1382,6 +1388,7 @@ var SubgraphLenderHooksAccess_OrderBy;
1382
1388
  var SubgraphLenderInterestAccrued_OrderBy;
1383
1389
  (function (SubgraphLenderInterestAccrued_OrderBy) {
1384
1390
  SubgraphLenderInterestAccrued_OrderBy["Account"] = "account";
1391
+ SubgraphLenderInterestAccrued_OrderBy["AccountAddedTimestamp"] = "account__addedTimestamp";
1385
1392
  SubgraphLenderInterestAccrued_OrderBy["AccountAddress"] = "account__address";
1386
1393
  SubgraphLenderInterestAccrued_OrderBy["AccountId"] = "account__id";
1387
1394
  SubgraphLenderInterestAccrued_OrderBy["AccountLastScaleFactor"] = "account__lastScaleFactor";
@@ -1459,6 +1466,7 @@ var SubgraphLenderStatus;
1459
1466
  var SubgraphLenderWithdrawalStatus_OrderBy;
1460
1467
  (function (SubgraphLenderWithdrawalStatus_OrderBy) {
1461
1468
  SubgraphLenderWithdrawalStatus_OrderBy["Account"] = "account";
1469
+ SubgraphLenderWithdrawalStatus_OrderBy["AccountAddedTimestamp"] = "account__addedTimestamp";
1462
1470
  SubgraphLenderWithdrawalStatus_OrderBy["AccountAddress"] = "account__address";
1463
1471
  SubgraphLenderWithdrawalStatus_OrderBy["AccountId"] = "account__id";
1464
1472
  SubgraphLenderWithdrawalStatus_OrderBy["AccountLastScaleFactor"] = "account__lastScaleFactor";
@@ -2462,6 +2470,7 @@ var SubgraphTransfer_OrderBy;
2462
2470
  SubgraphTransfer_OrderBy["BlockNumber"] = "blockNumber";
2463
2471
  SubgraphTransfer_OrderBy["BlockTimestamp"] = "blockTimestamp";
2464
2472
  SubgraphTransfer_OrderBy["From"] = "from";
2473
+ SubgraphTransfer_OrderBy["FromAddedTimestamp"] = "from__addedTimestamp";
2465
2474
  SubgraphTransfer_OrderBy["FromAddress"] = "from__address";
2466
2475
  SubgraphTransfer_OrderBy["FromId"] = "from__id";
2467
2476
  SubgraphTransfer_OrderBy["FromLastScaleFactor"] = "from__lastScaleFactor";
@@ -2526,6 +2535,7 @@ var SubgraphTransfer_OrderBy;
2526
2535
  SubgraphTransfer_OrderBy["MarketWithdrawalRequestsIndex"] = "market__withdrawalRequestsIndex";
2527
2536
  SubgraphTransfer_OrderBy["ScaledAmount"] = "scaledAmount";
2528
2537
  SubgraphTransfer_OrderBy["To"] = "to";
2538
+ SubgraphTransfer_OrderBy["ToAddedTimestamp"] = "to__addedTimestamp";
2529
2539
  SubgraphTransfer_OrderBy["ToAddress"] = "to__address";
2530
2540
  SubgraphTransfer_OrderBy["ToId"] = "to__id";
2531
2541
  SubgraphTransfer_OrderBy["ToLastScaleFactor"] = "to__lastScaleFactor";
@@ -2793,6 +2803,7 @@ var SubgraphWithdrawalBatch_OrderBy;
2793
2803
  var SubgraphWithdrawalExecution_OrderBy;
2794
2804
  (function (SubgraphWithdrawalExecution_OrderBy) {
2795
2805
  SubgraphWithdrawalExecution_OrderBy["Account"] = "account";
2806
+ SubgraphWithdrawalExecution_OrderBy["AccountAddedTimestamp"] = "account__addedTimestamp";
2796
2807
  SubgraphWithdrawalExecution_OrderBy["AccountAddress"] = "account__address";
2797
2808
  SubgraphWithdrawalExecution_OrderBy["AccountId"] = "account__id";
2798
2809
  SubgraphWithdrawalExecution_OrderBy["AccountLastScaleFactor"] = "account__lastScaleFactor";
@@ -2836,6 +2847,7 @@ var SubgraphWithdrawalExecution_OrderBy;
2836
2847
  var SubgraphWithdrawalRequest_OrderBy;
2837
2848
  (function (SubgraphWithdrawalRequest_OrderBy) {
2838
2849
  SubgraphWithdrawalRequest_OrderBy["Account"] = "account";
2850
+ SubgraphWithdrawalRequest_OrderBy["AccountAddedTimestamp"] = "account__addedTimestamp";
2839
2851
  SubgraphWithdrawalRequest_OrderBy["AccountAddress"] = "account__address";
2840
2852
  SubgraphWithdrawalRequest_OrderBy["AccountId"] = "account__id";
2841
2853
  SubgraphWithdrawalRequest_OrderBy["AccountLastScaleFactor"] = "account__lastScaleFactor";
@@ -3012,10 +3024,21 @@ exports.AccountDataForLenderViewFragmentDoc = (0, client_1.gql) `
3012
3024
  }
3013
3025
  }
3014
3026
  `;
3015
- exports.AllAuthorizedLendersViewMarketInfoFragmentDoc = (0, client_1.gql) `
3016
- fragment AllAuthorizedLendersViewMarketInfo on Market {
3027
+ exports.BasicLenderDataFragmentDoc = (0, client_1.gql) `
3028
+ fragment BasicLenderData on LenderAccount {
3017
3029
  id
3018
- name
3030
+ address
3031
+ scaledBalance
3032
+ role
3033
+ controllerAuthorization {
3034
+ authorized
3035
+ }
3036
+ hooksAccess {
3037
+ ...LenderHooksAccessData
3038
+ }
3039
+ knownLenderStatus {
3040
+ id
3041
+ }
3019
3042
  }
3020
3043
  `;
3021
3044
  exports.AllAuthorizedLendersViewFragmentDoc = (0, client_1.gql) `
@@ -3433,6 +3456,53 @@ exports.MarketClosedDataFragmentDoc = (0, client_1.gql) `
3433
3456
  transactionHash
3434
3457
  }
3435
3458
  `;
3459
+ exports.V1LenderWithActiveMarketsFragmentDoc = (0, client_1.gql) `
3460
+ fragment V1LenderWithActiveMarkets on LenderAuthorization {
3461
+ lender
3462
+ authorized
3463
+ marketAccounts(first: $numMarketAccountsPerLender, skip: $skipMarketAccountsPerLender) {
3464
+ role
3465
+ market {
3466
+ id
3467
+ name
3468
+ }
3469
+ }
3470
+ }
3471
+ `;
3472
+ exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc = (0, client_1.gql) `
3473
+ fragment ControllerAuthorizedLendersWithActiveMarkets on Controller {
3474
+ authorizedLenders(first: $numLenders, skip: $skipLenders, where: $lenderAuthorizationFilter) {
3475
+ ...V1LenderWithActiveMarkets
3476
+ }
3477
+ }
3478
+ `;
3479
+ exports.V2LenderWithActiveMarketsFragmentDoc = (0, client_1.gql) `
3480
+ fragment V2LenderWithActiveMarkets on LenderHooksAccess {
3481
+ ...LenderHooksAccessData
3482
+ marketAccounts(first: $numMarketAccountsPerLender, skip: $skipMarketAccountsPerLender) {
3483
+ knownLenderStatus {
3484
+ id
3485
+ }
3486
+ market {
3487
+ id
3488
+ name
3489
+ }
3490
+ }
3491
+ }
3492
+ `;
3493
+ exports.HooksInstanceLendersWithActiveMarketsFragmentDoc = (0, client_1.gql) `
3494
+ fragment HooksInstanceLendersWithActiveMarkets on HooksInstance {
3495
+ lenders(
3496
+ first: $numLenders
3497
+ skip: $skipLenders
3498
+ orderBy: $orderLenderHooksAccess
3499
+ orderDirection: $directionLenders
3500
+ where: $lenderHooksAccessFilter
3501
+ ) {
3502
+ ...V2LenderWithActiveMarkets
3503
+ }
3504
+ }
3505
+ `;
3436
3506
  exports.GetLenderAccountForMarketDocument = (0, client_1.gql) `
3437
3507
  query getLenderAccountForMarket(
3438
3508
  $market: ID!
@@ -3553,24 +3623,7 @@ exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
3553
3623
  ) {
3554
3624
  ...RepaymentData
3555
3625
  }
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
- ) {
3626
+ lenders(where: { address: $lender }, first: 1) {
3574
3627
  ...AccountDataForLenderView
3575
3628
  }
3576
3629
  }
@@ -4177,16 +4230,149 @@ exports.GetAuthorizedLendersByMarketDocument = (0, client_1.gql) `
4177
4230
  exports.GetAllAuthorizedLendersDocument = (0, client_1.gql) `
4178
4231
  query getAllAuthorizedLenders($borrower: Bytes!) {
4179
4232
  markets(where: { borrower: $borrower, isClosed: false }) {
4180
- ...AllAuthorizedLendersViewMarketInfo
4233
+ id
4234
+ name
4181
4235
  controller {
4182
4236
  authorizedLenders {
4183
4237
  ...AllAuthorizedLendersView
4184
4238
  }
4185
4239
  }
4240
+ hooks {
4241
+ lenders {
4242
+ ...LenderHooksAccessData
4243
+ }
4244
+ }
4186
4245
  }
4187
4246
  }
4188
- ${exports.AllAuthorizedLendersViewMarketInfoFragmentDoc}
4189
4247
  ${exports.AllAuthorizedLendersViewFragmentDoc}
4248
+ ${exports.LenderHooksAccessDataFragmentDoc}
4249
+ ${exports.RoleProviderDataFragmentDoc}
4250
+ `;
4251
+ exports.GetV1AuthorizedLendersDocument = (0, client_1.gql) `
4252
+ query getV1AuthorizedLenders(
4253
+ $borrower: Bytes!
4254
+ $numMarkets: Int = 1000
4255
+ $skipMarkets: Int = 0
4256
+ $orderMarkets: Market_orderBy = createdAt
4257
+ $directionMarkets: OrderDirection = desc
4258
+ ) {
4259
+ controllers(where: { borrower: $borrower }, first: 1) {
4260
+ markets(
4261
+ where: { borrower: $borrower, isClosed: false, version: V2 }
4262
+ first: $numMarkets
4263
+ skip: $skipMarkets
4264
+ orderBy: $orderMarkets
4265
+ orderDirection: $directionMarkets
4266
+ ) {
4267
+ id
4268
+ name
4269
+ }
4270
+ authorizedLenders {
4271
+ lender
4272
+ authorized
4273
+ }
4274
+ }
4275
+ }
4276
+ `;
4277
+ exports.GetLendersByHooksInstanceOrControllerDocument = (0, client_1.gql) `
4278
+ query getLendersByHooksInstanceOrController(
4279
+ $contractAddress: ID!
4280
+ $isController: Boolean!
4281
+ $lenderHooksAccessFilter: LenderHooksAccess_filter = { id_not: null }
4282
+ $lenderAuthorizationFilter: LenderAuthorization_filter = { id_not: null }
4283
+ $numMarketAccountsPerLender: Int = 100
4284
+ $skipMarketAccountsPerLender: Int = 0
4285
+ $numLenders: Int = 1000
4286
+ $skipLenders: Int = 0
4287
+ $orderLenderHooksAccess: LenderHooksAccess_orderBy = lastApprovalTimestamp
4288
+ $directionLenders: OrderDirection = desc
4289
+ ) {
4290
+ hooksInstance(id: $contractAddress) @skip(if: $isController) {
4291
+ ...HooksInstanceData
4292
+ ...HooksInstanceLendersWithActiveMarkets
4293
+ }
4294
+ controller(id: $contractAddress) @include(if: $isController) {
4295
+ ...ControllerAuthorizedLendersWithActiveMarkets
4296
+ }
4297
+ }
4298
+ ${exports.HooksInstanceDataFragmentDoc}
4299
+ ${exports.HooksTemplateDataFragmentDoc}
4300
+ ${exports.TokenDataFragmentDoc}
4301
+ ${exports.RoleProviderDataFragmentDoc}
4302
+ ${exports.HooksInstanceLendersWithActiveMarketsFragmentDoc}
4303
+ ${exports.V2LenderWithActiveMarketsFragmentDoc}
4304
+ ${exports.LenderHooksAccessDataFragmentDoc}
4305
+ ${exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc}
4306
+ ${exports.V1LenderWithActiveMarketsFragmentDoc}
4307
+ `;
4308
+ exports.GetMarketsAndLendersByHooksInstanceOrControllerDocument = (0, client_1.gql) `
4309
+ query getMarketsAndLendersByHooksInstanceOrController(
4310
+ $contractAddress: ID!
4311
+ $isController: Boolean!
4312
+ $marketFilter: Market_filter = { id_not: null }
4313
+ $numMarkets: Int = 1000
4314
+ $skipMarkets: Int = 0
4315
+ $orderMarkets: Market_orderBy = createdAt
4316
+ $directionMarkets: OrderDirection = desc
4317
+ $lenderHooksAccessFilter: LenderHooksAccess_filter = { id_not: null }
4318
+ $lenderAuthorizationFilter: LenderAuthorization_filter = { id_not: null }
4319
+ $numMarketAccountsPerLender: Int = 100
4320
+ $skipMarketAccountsPerLender: Int = 0
4321
+ $numLenders: Int = 1000
4322
+ $skipLenders: Int = 0
4323
+ $orderLenderHooksAccess: LenderHooksAccess_orderBy = lastApprovalTimestamp
4324
+ $directionLenders: OrderDirection = desc
4325
+ ) {
4326
+ hooksInstance(id: $contractAddress) @skip(if: $isController) {
4327
+ ...HooksInstanceData
4328
+ markets(
4329
+ where: $marketFilter
4330
+ first: $numMarkets
4331
+ skip: $skipMarkets
4332
+ orderBy: $orderMarkets
4333
+ orderDirection: $directionMarkets
4334
+ ) {
4335
+ ...MarketData
4336
+ }
4337
+ ...HooksInstanceLendersWithActiveMarkets
4338
+ }
4339
+ controller(id: $contractAddress) @include(if: $isController) {
4340
+ markets(
4341
+ where: $marketFilter
4342
+ first: $numMarkets
4343
+ skip: $skipMarkets
4344
+ orderBy: $orderMarkets
4345
+ orderDirection: $directionMarkets
4346
+ ) {
4347
+ ...MarketData
4348
+ }
4349
+ ...ControllerAuthorizedLendersWithActiveMarkets
4350
+ }
4351
+ }
4352
+ ${exports.HooksInstanceDataFragmentDoc}
4353
+ ${exports.HooksTemplateDataFragmentDoc}
4354
+ ${exports.TokenDataFragmentDoc}
4355
+ ${exports.RoleProviderDataFragmentDoc}
4356
+ ${exports.MarketDataFragmentDoc}
4357
+ ${exports.HooksConfigDataForMarketFragmentDoc}
4358
+ ${exports.MarketDeployedEventFragmentDoc}
4359
+ ${exports.HooksInstanceLendersWithActiveMarketsFragmentDoc}
4360
+ ${exports.V2LenderWithActiveMarketsFragmentDoc}
4361
+ ${exports.LenderHooksAccessDataFragmentDoc}
4362
+ ${exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc}
4363
+ ${exports.V1LenderWithActiveMarketsFragmentDoc}
4364
+ `;
4365
+ exports.GetActiveLendersByMarketDocument = (0, client_1.gql) `
4366
+ query getActiveLendersByMarket($market: ID!) {
4367
+ market(id: $market) {
4368
+ lenders {
4369
+ ...BasicLenderData
4370
+ }
4371
+ }
4372
+ }
4373
+ ${exports.BasicLenderDataFragmentDoc}
4374
+ ${exports.LenderHooksAccessDataFragmentDoc}
4375
+ ${exports.RoleProviderDataFragmentDoc}
4190
4376
  `;
4191
4377
  exports.GetAuthorizedLendersByBorrowerDocument = (0, client_1.gql) `
4192
4378
  query getAuthorizedLendersByBorrower($filter: Controller_filter!) {