@wildcatfi/wildcat-sdk 3.0.10 → 3.0.12
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.
- package/dist/account/index.d.ts +1 -7
- package/dist/account/index.d.ts.map +1 -1
- package/dist/account/index.js +2 -25
- package/dist/account/index.js.map +1 -1
- package/dist/gql/getActiveLendersByMarket.d.ts +38 -0
- package/dist/gql/getActiveLendersByMarket.d.ts.map +1 -0
- package/dist/gql/getActiveLendersByMarket.js +119 -0
- package/dist/gql/getActiveLendersByMarket.js.map +1 -0
- package/dist/gql/getPolicyLenders.d.ts +8 -0
- package/dist/gql/getPolicyLenders.d.ts.map +1 -0
- package/dist/gql/getPolicyLenders.js +27 -0
- package/dist/gql/getPolicyLenders.js.map +1 -0
- package/dist/gql/getPolicyMarketsAndLenders.d.ts +19 -0
- package/dist/gql/getPolicyMarketsAndLenders.d.ts.map +1 -0
- package/dist/gql/getPolicyMarketsAndLenders.js +40 -0
- package/dist/gql/getPolicyMarketsAndLenders.js.map +1 -0
- package/dist/gql/graphql.d.ts +209 -6
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +224 -7
- package/dist/gql/graphql.js.map +1 -1
- package/dist/gql/index.d.ts +4 -1
- package/dist/gql/index.d.ts.map +1 -1
- package/dist/gql/index.js +3 -0
- package/dist/gql/index.js.map +1 -1
- package/dist/gql/utils.d.ts +19 -0
- package/dist/gql/utils.d.ts.map +1 -0
- package/dist/gql/utils.js +30 -0
- package/dist/gql/utils.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/type-parsers.d.ts +5 -1
- package/dist/utils/type-parsers.d.ts.map +1 -1
- package/dist/utils/type-parsers.js +21 -1
- package/dist/utils/type-parsers.js.map +1 -1
- package/package.json +1 -1
package/dist/gql/graphql.js
CHANGED
|
@@ -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.
|
|
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,22 @@ exports.AccountDataForLenderViewFragmentDoc = (0, client_1.gql) `
|
|
|
3012
3024
|
}
|
|
3013
3025
|
}
|
|
3014
3026
|
`;
|
|
3015
|
-
exports.
|
|
3016
|
-
fragment
|
|
3027
|
+
exports.BasicLenderDataFragmentDoc = (0, client_1.gql) `
|
|
3028
|
+
fragment BasicLenderData on LenderAccount {
|
|
3017
3029
|
id
|
|
3018
|
-
|
|
3030
|
+
address
|
|
3031
|
+
scaledBalance
|
|
3032
|
+
addedTimestamp
|
|
3033
|
+
role
|
|
3034
|
+
controllerAuthorization {
|
|
3035
|
+
authorized
|
|
3036
|
+
}
|
|
3037
|
+
hooksAccess {
|
|
3038
|
+
...LenderHooksAccessData
|
|
3039
|
+
}
|
|
3040
|
+
knownLenderStatus {
|
|
3041
|
+
id
|
|
3042
|
+
}
|
|
3019
3043
|
}
|
|
3020
3044
|
`;
|
|
3021
3045
|
exports.AllAuthorizedLendersViewFragmentDoc = (0, client_1.gql) `
|
|
@@ -3433,6 +3457,53 @@ exports.MarketClosedDataFragmentDoc = (0, client_1.gql) `
|
|
|
3433
3457
|
transactionHash
|
|
3434
3458
|
}
|
|
3435
3459
|
`;
|
|
3460
|
+
exports.V1LenderWithActiveMarketsFragmentDoc = (0, client_1.gql) `
|
|
3461
|
+
fragment V1LenderWithActiveMarkets on LenderAuthorization {
|
|
3462
|
+
lender
|
|
3463
|
+
authorized
|
|
3464
|
+
marketAccounts(first: $numMarketAccountsPerLender, skip: $skipMarketAccountsPerLender) {
|
|
3465
|
+
role
|
|
3466
|
+
market {
|
|
3467
|
+
id
|
|
3468
|
+
name
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
`;
|
|
3473
|
+
exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc = (0, client_1.gql) `
|
|
3474
|
+
fragment ControllerAuthorizedLendersWithActiveMarkets on Controller {
|
|
3475
|
+
authorizedLenders(first: $numLenders, skip: $skipLenders, where: $lenderAuthorizationFilter) {
|
|
3476
|
+
...V1LenderWithActiveMarkets
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
`;
|
|
3480
|
+
exports.V2LenderWithActiveMarketsFragmentDoc = (0, client_1.gql) `
|
|
3481
|
+
fragment V2LenderWithActiveMarkets on LenderHooksAccess {
|
|
3482
|
+
...LenderHooksAccessData
|
|
3483
|
+
marketAccounts(first: $numMarketAccountsPerLender, skip: $skipMarketAccountsPerLender) {
|
|
3484
|
+
knownLenderStatus {
|
|
3485
|
+
id
|
|
3486
|
+
}
|
|
3487
|
+
market {
|
|
3488
|
+
id
|
|
3489
|
+
name
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
`;
|
|
3494
|
+
exports.HooksInstanceLendersWithActiveMarketsFragmentDoc = (0, client_1.gql) `
|
|
3495
|
+
fragment HooksInstanceLendersWithActiveMarkets on HooksInstance {
|
|
3496
|
+
lenders(
|
|
3497
|
+
first: $numLenders
|
|
3498
|
+
skip: $skipLenders
|
|
3499
|
+
orderBy: $orderLenderHooksAccess
|
|
3500
|
+
orderDirection: $directionLenders
|
|
3501
|
+
where: $lenderHooksAccessFilter
|
|
3502
|
+
) {
|
|
3503
|
+
...V2LenderWithActiveMarkets
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
`;
|
|
3436
3507
|
exports.GetLenderAccountForMarketDocument = (0, client_1.gql) `
|
|
3437
3508
|
query getLenderAccountForMarket(
|
|
3438
3509
|
$market: ID!
|
|
@@ -4160,16 +4231,162 @@ exports.GetAuthorizedLendersByMarketDocument = (0, client_1.gql) `
|
|
|
4160
4231
|
exports.GetAllAuthorizedLendersDocument = (0, client_1.gql) `
|
|
4161
4232
|
query getAllAuthorizedLenders($borrower: Bytes!) {
|
|
4162
4233
|
markets(where: { borrower: $borrower, isClosed: false }) {
|
|
4163
|
-
|
|
4234
|
+
id
|
|
4235
|
+
name
|
|
4164
4236
|
controller {
|
|
4165
4237
|
authorizedLenders {
|
|
4166
4238
|
...AllAuthorizedLendersView
|
|
4167
4239
|
}
|
|
4168
4240
|
}
|
|
4241
|
+
hooks {
|
|
4242
|
+
lenders {
|
|
4243
|
+
...LenderHooksAccessData
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4169
4246
|
}
|
|
4170
4247
|
}
|
|
4171
|
-
${exports.AllAuthorizedLendersViewMarketInfoFragmentDoc}
|
|
4172
4248
|
${exports.AllAuthorizedLendersViewFragmentDoc}
|
|
4249
|
+
${exports.LenderHooksAccessDataFragmentDoc}
|
|
4250
|
+
${exports.RoleProviderDataFragmentDoc}
|
|
4251
|
+
`;
|
|
4252
|
+
exports.GetV1AuthorizedLendersDocument = (0, client_1.gql) `
|
|
4253
|
+
query getV1AuthorizedLenders(
|
|
4254
|
+
$borrower: Bytes!
|
|
4255
|
+
$numMarkets: Int = 1000
|
|
4256
|
+
$skipMarkets: Int = 0
|
|
4257
|
+
$orderMarkets: Market_orderBy = createdAt
|
|
4258
|
+
$directionMarkets: OrderDirection = desc
|
|
4259
|
+
) {
|
|
4260
|
+
controllers(where: { borrower: $borrower }, first: 1) {
|
|
4261
|
+
markets(
|
|
4262
|
+
where: { borrower: $borrower, isClosed: false, version: V2 }
|
|
4263
|
+
first: $numMarkets
|
|
4264
|
+
skip: $skipMarkets
|
|
4265
|
+
orderBy: $orderMarkets
|
|
4266
|
+
orderDirection: $directionMarkets
|
|
4267
|
+
) {
|
|
4268
|
+
id
|
|
4269
|
+
name
|
|
4270
|
+
}
|
|
4271
|
+
authorizedLenders {
|
|
4272
|
+
lender
|
|
4273
|
+
authorized
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
}
|
|
4277
|
+
`;
|
|
4278
|
+
exports.GetLendersByHooksInstanceOrControllerDocument = (0, client_1.gql) `
|
|
4279
|
+
query getLendersByHooksInstanceOrController(
|
|
4280
|
+
$contractAddress: ID!
|
|
4281
|
+
$isController: Boolean!
|
|
4282
|
+
$lenderHooksAccessFilter: LenderHooksAccess_filter = { id_not: null }
|
|
4283
|
+
$lenderAuthorizationFilter: LenderAuthorization_filter = { id_not: null }
|
|
4284
|
+
$numMarketAccountsPerLender: Int = 100
|
|
4285
|
+
$skipMarketAccountsPerLender: Int = 0
|
|
4286
|
+
$numLenders: Int = 1000
|
|
4287
|
+
$skipLenders: Int = 0
|
|
4288
|
+
$orderLenderHooksAccess: LenderHooksAccess_orderBy = lastApprovalTimestamp
|
|
4289
|
+
$directionLenders: OrderDirection = desc
|
|
4290
|
+
) {
|
|
4291
|
+
hooksInstance(id: $contractAddress) @skip(if: $isController) {
|
|
4292
|
+
...HooksInstanceData
|
|
4293
|
+
...HooksInstanceLendersWithActiveMarkets
|
|
4294
|
+
}
|
|
4295
|
+
controller(id: $contractAddress) @include(if: $isController) {
|
|
4296
|
+
...ControllerAuthorizedLendersWithActiveMarkets
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
4300
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
4301
|
+
${exports.TokenDataFragmentDoc}
|
|
4302
|
+
${exports.RoleProviderDataFragmentDoc}
|
|
4303
|
+
${exports.HooksInstanceLendersWithActiveMarketsFragmentDoc}
|
|
4304
|
+
${exports.V2LenderWithActiveMarketsFragmentDoc}
|
|
4305
|
+
${exports.LenderHooksAccessDataFragmentDoc}
|
|
4306
|
+
${exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc}
|
|
4307
|
+
${exports.V1LenderWithActiveMarketsFragmentDoc}
|
|
4308
|
+
`;
|
|
4309
|
+
exports.GetMarketsAndLendersByHooksInstanceOrControllerDocument = (0, client_1.gql) `
|
|
4310
|
+
query getMarketsAndLendersByHooksInstanceOrController(
|
|
4311
|
+
$contractAddress: ID!
|
|
4312
|
+
$isController: Boolean!
|
|
4313
|
+
$marketFilter: Market_filter = { id_not: null }
|
|
4314
|
+
$numMarkets: Int = 1000
|
|
4315
|
+
$skipMarkets: Int = 0
|
|
4316
|
+
$orderMarkets: Market_orderBy = createdAt
|
|
4317
|
+
$directionMarkets: OrderDirection = desc
|
|
4318
|
+
$lenderHooksAccessFilter: LenderHooksAccess_filter = { id_not: null }
|
|
4319
|
+
$lenderAuthorizationFilter: LenderAuthorization_filter = { id_not: null }
|
|
4320
|
+
$numMarketAccountsPerLender: Int = 100
|
|
4321
|
+
$skipMarketAccountsPerLender: Int = 0
|
|
4322
|
+
$numLenders: Int = 1000
|
|
4323
|
+
$skipLenders: Int = 0
|
|
4324
|
+
$orderLenderHooksAccess: LenderHooksAccess_orderBy = lastApprovalTimestamp
|
|
4325
|
+
$directionLenders: OrderDirection = desc
|
|
4326
|
+
) {
|
|
4327
|
+
hooksInstance(id: $contractAddress) @skip(if: $isController) {
|
|
4328
|
+
...HooksInstanceData
|
|
4329
|
+
markets(
|
|
4330
|
+
where: $marketFilter
|
|
4331
|
+
first: $numMarkets
|
|
4332
|
+
skip: $skipMarkets
|
|
4333
|
+
orderBy: $orderMarkets
|
|
4334
|
+
orderDirection: $directionMarkets
|
|
4335
|
+
) {
|
|
4336
|
+
...MarketData
|
|
4337
|
+
}
|
|
4338
|
+
...HooksInstanceLendersWithActiveMarkets
|
|
4339
|
+
}
|
|
4340
|
+
controller(id: $contractAddress) @include(if: $isController) {
|
|
4341
|
+
markets(
|
|
4342
|
+
where: $marketFilter
|
|
4343
|
+
first: $numMarkets
|
|
4344
|
+
skip: $skipMarkets
|
|
4345
|
+
orderBy: $orderMarkets
|
|
4346
|
+
orderDirection: $directionMarkets
|
|
4347
|
+
) {
|
|
4348
|
+
...MarketData
|
|
4349
|
+
}
|
|
4350
|
+
...ControllerAuthorizedLendersWithActiveMarkets
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
4354
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
4355
|
+
${exports.TokenDataFragmentDoc}
|
|
4356
|
+
${exports.RoleProviderDataFragmentDoc}
|
|
4357
|
+
${exports.MarketDataFragmentDoc}
|
|
4358
|
+
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
4359
|
+
${exports.MarketDeployedEventFragmentDoc}
|
|
4360
|
+
${exports.HooksInstanceLendersWithActiveMarketsFragmentDoc}
|
|
4361
|
+
${exports.V2LenderWithActiveMarketsFragmentDoc}
|
|
4362
|
+
${exports.LenderHooksAccessDataFragmentDoc}
|
|
4363
|
+
${exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc}
|
|
4364
|
+
${exports.V1LenderWithActiveMarketsFragmentDoc}
|
|
4365
|
+
`;
|
|
4366
|
+
exports.GetActiveLendersByMarketDocument = (0, client_1.gql) `
|
|
4367
|
+
query getActiveLendersByMarket(
|
|
4368
|
+
$market: ID!
|
|
4369
|
+
$accountFilter: LenderAccount_filter = { address_not: null }
|
|
4370
|
+
$numAccounts: Int = 1000
|
|
4371
|
+
$skipAccounts: Int = 0
|
|
4372
|
+
$orderAccounts: LenderAccount_orderBy = lastUpdatedTimestamp
|
|
4373
|
+
$directionAccounts: OrderDirection = desc
|
|
4374
|
+
) {
|
|
4375
|
+
market(id: $market) {
|
|
4376
|
+
lenders(
|
|
4377
|
+
where: $accountFilter
|
|
4378
|
+
first: $numAccounts
|
|
4379
|
+
skip: $skipAccounts
|
|
4380
|
+
orderBy: $orderAccounts
|
|
4381
|
+
orderDirection: $directionAccounts
|
|
4382
|
+
) {
|
|
4383
|
+
...BasicLenderData
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
}
|
|
4387
|
+
${exports.BasicLenderDataFragmentDoc}
|
|
4388
|
+
${exports.LenderHooksAccessDataFragmentDoc}
|
|
4389
|
+
${exports.RoleProviderDataFragmentDoc}
|
|
4173
4390
|
`;
|
|
4174
4391
|
exports.GetAuthorizedLendersByBorrowerDocument = (0, client_1.gql) `
|
|
4175
4392
|
query getAuthorizedLendersByBorrower($filter: Controller_filter!) {
|