@wildcatfi/wildcat-sdk 3.0.2 → 3.0.4
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/access/access-control.d.ts +9 -6
- package/dist/access/access-control.d.ts.map +1 -1
- package/dist/access/access-control.js +52 -19
- package/dist/access/access-control.js.map +1 -1
- package/dist/access/fixed-term.d.ts +9 -6
- package/dist/access/fixed-term.d.ts.map +1 -1
- package/dist/access/fixed-term.js +53 -20
- package/dist/access/fixed-term.js.map +1 -1
- package/dist/access/index.d.ts +8 -5
- package/dist/access/index.d.ts.map +1 -1
- package/dist/access/index.js +26 -1
- package/dist/access/index.js.map +1 -1
- package/dist/account/index.d.ts +9 -0
- package/dist/account/index.d.ts.map +1 -1
- package/dist/account/index.js +21 -9
- package/dist/account/index.js.map +1 -1
- package/dist/gql/getAllHooksDataForBorrower.d.ts +17 -0
- package/dist/gql/getAllHooksDataForBorrower.d.ts.map +1 -0
- package/dist/gql/getAllHooksDataForBorrower.js +32 -0
- package/dist/gql/getAllHooksDataForBorrower.js.map +1 -0
- package/dist/gql/getAllHooksTemplates.d.ts +13 -0
- package/dist/gql/getAllHooksTemplates.d.ts.map +1 -0
- package/dist/gql/getAllHooksTemplates.js +24 -0
- package/dist/gql/getAllHooksTemplates.js.map +1 -0
- package/dist/gql/getMarketRecords.d.ts.map +1 -1
- package/dist/gql/getMarketRecords.js +22 -13
- package/dist/gql/getMarketRecords.js.map +1 -1
- package/dist/gql/graphql.d.ts +387 -600
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +210 -809
- package/dist/gql/graphql.js.map +1 -1
- package/dist/gql/index.d.ts +4 -0
- 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/market.js +1 -1
- package/dist/market.js.map +1 -1
- package/dist/typechain/MarketLensV2.d.ts +4 -4
- package/dist/typechain/MarketLensV2.d.ts.map +1 -1
- package/dist/typechain/factories/MarketLensV2__factory.d.ts +810 -60
- package/dist/typechain/factories/MarketLensV2__factory.d.ts.map +1 -1
- package/dist/typechain/factories/MarketLensV2__factory.js +1031 -71
- package/dist/typechain/factories/MarketLensV2__factory.js.map +1 -1
- package/dist/utils/record-types.d.ts +14 -3
- package/dist/utils/record-types.d.ts.map +1 -1
- package/dist/utils/record-types.js.map +1 -1
- package/dist/utils/type-parsers.d.ts.map +1 -1
- package/dist/utils/type-parsers.js +19 -4
- package/dist/utils/type-parsers.js.map +1 -1
- package/package.json +1 -1
package/dist/gql/graphql.js
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
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;
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.useGetMarketRecordsSuspenseQuery = exports.useGetMarketRecordsLazyQuery = exports.useGetMarketRecordsQuery = exports.GetMarketRecordsDocument = exports.useGetSubgraphStatusSuspenseQuery = exports.useGetSubgraphStatusLazyQuery = exports.useGetSubgraphStatusQuery = exports.GetSubgraphStatusDocument = exports.useGetAuthorizedLendersByBorrowerSuspenseQuery = exports.useGetAuthorizedLendersByBorrowerLazyQuery = exports.useGetAuthorizedLendersByBorrowerQuery = exports.GetAuthorizedLendersByBorrowerDocument = exports.useGetAllAuthorizedLendersSuspenseQuery = exports.useGetAllAuthorizedLendersLazyQuery = exports.useGetAllAuthorizedLendersQuery = exports.GetAllAuthorizedLendersDocument = exports.useGetAuthorizedLendersByMarketSuspenseQuery = exports.useGetAuthorizedLendersByMarketLazyQuery = exports.useGetAuthorizedLendersByMarketQuery = exports.GetAuthorizedLendersByMarketDocument = exports.useGetAllMarketsSuspenseQuery = exports.useGetAllMarketsLazyQuery = exports.useGetAllMarketsQuery = exports.GetAllMarketsDocument = exports.useGetIncompleteWithdrawalsForMarketSuspenseQuery = exports.useGetIncompleteWithdrawalsForMarketLazyQuery = exports.useGetIncompleteWithdrawalsForMarketQuery = exports.GetIncompleteWithdrawalsForMarketDocument = exports.useGetAllPendingWithdrawalBatchesForMarketSuspenseQuery = exports.useGetAllPendingWithdrawalBatchesForMarketLazyQuery = exports.useGetAllPendingWithdrawalBatchesForMarketQuery = exports.GetAllPendingWithdrawalBatchesForMarketDocument = exports.useGetWithdrawalRequestsByMarketSuspenseQuery = exports.useGetWithdrawalRequestsByMarketLazyQuery = exports.useGetWithdrawalRequestsByMarketQuery = exports.GetWithdrawalRequestsByMarketDocument = exports.useGetMarketSuspenseQuery = exports.useGetMarketLazyQuery = exports.useGetMarketQuery = exports.GetMarketDocument = exports.useGetMarketsForAllBorrowersSuspenseQuery = 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.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;
|
|
30
6
|
const client_1 = require("@apollo/client");
|
|
31
|
-
const Apollo = __importStar(require("@apollo/client"));
|
|
32
|
-
const defaultOptions = {};
|
|
33
7
|
var SubgraphAccountAccessGranted_OrderBy;
|
|
34
8
|
(function (SubgraphAccountAccessGranted_OrderBy) {
|
|
35
9
|
SubgraphAccountAccessGranted_OrderBy["Account"] = "account";
|
|
@@ -42,6 +16,12 @@ var SubgraphAccountAccessGranted_OrderBy;
|
|
|
42
16
|
SubgraphAccountAccessGranted_OrderBy["BlockTimestamp"] = "blockTimestamp";
|
|
43
17
|
SubgraphAccountAccessGranted_OrderBy["CredentialTimestamp"] = "credentialTimestamp";
|
|
44
18
|
SubgraphAccountAccessGranted_OrderBy["EventIndex"] = "eventIndex";
|
|
19
|
+
SubgraphAccountAccessGranted_OrderBy["Hooks"] = "hooks";
|
|
20
|
+
SubgraphAccountAccessGranted_OrderBy["HooksBorrower"] = "hooks__borrower";
|
|
21
|
+
SubgraphAccountAccessGranted_OrderBy["HooksEventIndex"] = "hooks__eventIndex";
|
|
22
|
+
SubgraphAccountAccessGranted_OrderBy["HooksId"] = "hooks__id";
|
|
23
|
+
SubgraphAccountAccessGranted_OrderBy["HooksKind"] = "hooks__kind";
|
|
24
|
+
SubgraphAccountAccessGranted_OrderBy["HooksName"] = "hooks__name";
|
|
45
25
|
SubgraphAccountAccessGranted_OrderBy["Id"] = "id";
|
|
46
26
|
SubgraphAccountAccessGranted_OrderBy["Provider"] = "provider";
|
|
47
27
|
SubgraphAccountAccessGranted_OrderBy["ProviderId"] = "provider__id";
|
|
@@ -65,6 +45,12 @@ var SubgraphAccountAccessRevoked_OrderBy;
|
|
|
65
45
|
SubgraphAccountAccessRevoked_OrderBy["BlockNumber"] = "blockNumber";
|
|
66
46
|
SubgraphAccountAccessRevoked_OrderBy["BlockTimestamp"] = "blockTimestamp";
|
|
67
47
|
SubgraphAccountAccessRevoked_OrderBy["EventIndex"] = "eventIndex";
|
|
48
|
+
SubgraphAccountAccessRevoked_OrderBy["Hooks"] = "hooks";
|
|
49
|
+
SubgraphAccountAccessRevoked_OrderBy["HooksBorrower"] = "hooks__borrower";
|
|
50
|
+
SubgraphAccountAccessRevoked_OrderBy["HooksEventIndex"] = "hooks__eventIndex";
|
|
51
|
+
SubgraphAccountAccessRevoked_OrderBy["HooksId"] = "hooks__id";
|
|
52
|
+
SubgraphAccountAccessRevoked_OrderBy["HooksKind"] = "hooks__kind";
|
|
53
|
+
SubgraphAccountAccessRevoked_OrderBy["HooksName"] = "hooks__name";
|
|
68
54
|
SubgraphAccountAccessRevoked_OrderBy["Id"] = "id";
|
|
69
55
|
SubgraphAccountAccessRevoked_OrderBy["TransactionHash"] = "transactionHash";
|
|
70
56
|
})(SubgraphAccountAccessRevoked_OrderBy = exports.SubgraphAccountAccessRevoked_OrderBy || (exports.SubgraphAccountAccessRevoked_OrderBy = {}));
|
|
@@ -79,6 +65,12 @@ var SubgraphAccountBlockedFromDeposits_OrderBy;
|
|
|
79
65
|
SubgraphAccountBlockedFromDeposits_OrderBy["BlockNumber"] = "blockNumber";
|
|
80
66
|
SubgraphAccountBlockedFromDeposits_OrderBy["BlockTimestamp"] = "blockTimestamp";
|
|
81
67
|
SubgraphAccountBlockedFromDeposits_OrderBy["EventIndex"] = "eventIndex";
|
|
68
|
+
SubgraphAccountBlockedFromDeposits_OrderBy["Hooks"] = "hooks";
|
|
69
|
+
SubgraphAccountBlockedFromDeposits_OrderBy["HooksBorrower"] = "hooks__borrower";
|
|
70
|
+
SubgraphAccountBlockedFromDeposits_OrderBy["HooksEventIndex"] = "hooks__eventIndex";
|
|
71
|
+
SubgraphAccountBlockedFromDeposits_OrderBy["HooksId"] = "hooks__id";
|
|
72
|
+
SubgraphAccountBlockedFromDeposits_OrderBy["HooksKind"] = "hooks__kind";
|
|
73
|
+
SubgraphAccountBlockedFromDeposits_OrderBy["HooksName"] = "hooks__name";
|
|
82
74
|
SubgraphAccountBlockedFromDeposits_OrderBy["Id"] = "id";
|
|
83
75
|
SubgraphAccountBlockedFromDeposits_OrderBy["TransactionHash"] = "transactionHash";
|
|
84
76
|
})(SubgraphAccountBlockedFromDeposits_OrderBy = exports.SubgraphAccountBlockedFromDeposits_OrderBy || (exports.SubgraphAccountBlockedFromDeposits_OrderBy = {}));
|
|
@@ -168,6 +160,12 @@ var SubgraphAccountUnblockedFromDeposits_OrderBy;
|
|
|
168
160
|
SubgraphAccountUnblockedFromDeposits_OrderBy["BlockNumber"] = "blockNumber";
|
|
169
161
|
SubgraphAccountUnblockedFromDeposits_OrderBy["BlockTimestamp"] = "blockTimestamp";
|
|
170
162
|
SubgraphAccountUnblockedFromDeposits_OrderBy["EventIndex"] = "eventIndex";
|
|
163
|
+
SubgraphAccountUnblockedFromDeposits_OrderBy["Hooks"] = "hooks";
|
|
164
|
+
SubgraphAccountUnblockedFromDeposits_OrderBy["HooksBorrower"] = "hooks__borrower";
|
|
165
|
+
SubgraphAccountUnblockedFromDeposits_OrderBy["HooksEventIndex"] = "hooks__eventIndex";
|
|
166
|
+
SubgraphAccountUnblockedFromDeposits_OrderBy["HooksId"] = "hooks__id";
|
|
167
|
+
SubgraphAccountUnblockedFromDeposits_OrderBy["HooksKind"] = "hooks__kind";
|
|
168
|
+
SubgraphAccountUnblockedFromDeposits_OrderBy["HooksName"] = "hooks__name";
|
|
171
169
|
SubgraphAccountUnblockedFromDeposits_OrderBy["Id"] = "id";
|
|
172
170
|
SubgraphAccountUnblockedFromDeposits_OrderBy["TransactionHash"] = "transactionHash";
|
|
173
171
|
})(SubgraphAccountUnblockedFromDeposits_OrderBy = exports.SubgraphAccountUnblockedFromDeposits_OrderBy || (exports.SubgraphAccountUnblockedFromDeposits_OrderBy = {}));
|
|
@@ -1028,6 +1026,9 @@ var SubgraphHooksInstanceDeployed_OrderBy;
|
|
|
1028
1026
|
})(SubgraphHooksInstanceDeployed_OrderBy = exports.SubgraphHooksInstanceDeployed_OrderBy || (exports.SubgraphHooksInstanceDeployed_OrderBy = {}));
|
|
1029
1027
|
var SubgraphHooksInstance_OrderBy;
|
|
1030
1028
|
(function (SubgraphHooksInstance_OrderBy) {
|
|
1029
|
+
SubgraphHooksInstance_OrderBy["AccountAccessGrantedRecords"] = "accountAccessGrantedRecords";
|
|
1030
|
+
SubgraphHooksInstance_OrderBy["AccountAccessRevokedRecords"] = "accountAccessRevokedRecords";
|
|
1031
|
+
SubgraphHooksInstance_OrderBy["AccountUnblockFromDepositsRecords"] = "accountUnblockFromDepositsRecords";
|
|
1031
1032
|
SubgraphHooksInstance_OrderBy["Borrower"] = "borrower";
|
|
1032
1033
|
SubgraphHooksInstance_OrderBy["EventIndex"] = "eventIndex";
|
|
1033
1034
|
SubgraphHooksInstance_OrderBy["HooksFactory"] = "hooksFactory";
|
|
@@ -1046,7 +1047,11 @@ var SubgraphHooksInstance_OrderBy;
|
|
|
1046
1047
|
SubgraphHooksInstance_OrderBy["Kind"] = "kind";
|
|
1047
1048
|
SubgraphHooksInstance_OrderBy["Markets"] = "markets";
|
|
1048
1049
|
SubgraphHooksInstance_OrderBy["Name"] = "name";
|
|
1050
|
+
SubgraphHooksInstance_OrderBy["NameUpdatedRecords"] = "nameUpdatedRecords";
|
|
1049
1051
|
SubgraphHooksInstance_OrderBy["Providers"] = "providers";
|
|
1052
|
+
SubgraphHooksInstance_OrderBy["RoleProviderAddedRecords"] = "roleProviderAddedRecords";
|
|
1053
|
+
SubgraphHooksInstance_OrderBy["RoleProviderRemovedRecords"] = "roleProviderRemovedRecords";
|
|
1054
|
+
SubgraphHooksInstance_OrderBy["RoleProviderUpdatedRecords"] = "roleProviderUpdatedRecords";
|
|
1050
1055
|
})(SubgraphHooksInstance_OrderBy = exports.SubgraphHooksInstance_OrderBy || (exports.SubgraphHooksInstance_OrderBy = {}));
|
|
1051
1056
|
var SubgraphHooksKind;
|
|
1052
1057
|
(function (SubgraphHooksKind) {
|
|
@@ -1334,6 +1339,10 @@ var SubgraphLenderAuthorization_OrderBy;
|
|
|
1334
1339
|
})(SubgraphLenderAuthorization_OrderBy = exports.SubgraphLenderAuthorization_OrderBy || (exports.SubgraphLenderAuthorization_OrderBy = {}));
|
|
1335
1340
|
var SubgraphLenderHooksAccess_OrderBy;
|
|
1336
1341
|
(function (SubgraphLenderHooksAccess_OrderBy) {
|
|
1342
|
+
SubgraphLenderHooksAccess_OrderBy["AccountAccessGrantedRecords"] = "accountAccessGrantedRecords";
|
|
1343
|
+
SubgraphLenderHooksAccess_OrderBy["AccountAccessRevokedRecords"] = "accountAccessRevokedRecords";
|
|
1344
|
+
SubgraphLenderHooksAccess_OrderBy["AccountBlockedFromDepositsRecords"] = "accountBlockedFromDepositsRecords";
|
|
1345
|
+
SubgraphLenderHooksAccess_OrderBy["AccountUnblockedFromDepositsRecords"] = "accountUnblockedFromDepositsRecords";
|
|
1337
1346
|
SubgraphLenderHooksAccess_OrderBy["CanRefresh"] = "canRefresh";
|
|
1338
1347
|
SubgraphLenderHooksAccess_OrderBy["Hooks"] = "hooks";
|
|
1339
1348
|
SubgraphLenderHooksAccess_OrderBy["HooksBorrower"] = "hooks__borrower";
|
|
@@ -1822,6 +1831,12 @@ var SubgraphMarket_OrderBy;
|
|
|
1822
1831
|
SubgraphMarket_OrderBy["FeesCollectedIndex"] = "feesCollectedIndex";
|
|
1823
1832
|
SubgraphMarket_OrderBy["FixedTermUpdatedIndex"] = "fixedTermUpdatedIndex";
|
|
1824
1833
|
SubgraphMarket_OrderBy["FixedTermUpdatedRecords"] = "fixedTermUpdatedRecords";
|
|
1834
|
+
SubgraphMarket_OrderBy["ForceBuyBackDisabledRecord"] = "forceBuyBackDisabledRecord";
|
|
1835
|
+
SubgraphMarket_OrderBy["ForceBuyBackDisabledRecordBlockNumber"] = "forceBuyBackDisabledRecord__blockNumber";
|
|
1836
|
+
SubgraphMarket_OrderBy["ForceBuyBackDisabledRecordBlockTimestamp"] = "forceBuyBackDisabledRecord__blockTimestamp";
|
|
1837
|
+
SubgraphMarket_OrderBy["ForceBuyBackDisabledRecordEventIndex"] = "forceBuyBackDisabledRecord__eventIndex";
|
|
1838
|
+
SubgraphMarket_OrderBy["ForceBuyBackDisabledRecordId"] = "forceBuyBackDisabledRecord__id";
|
|
1839
|
+
SubgraphMarket_OrderBy["ForceBuyBackDisabledRecordTransactionHash"] = "forceBuyBackDisabledRecord__transactionHash";
|
|
1825
1840
|
SubgraphMarket_OrderBy["ForceBuyBackIndex"] = "forceBuyBackIndex";
|
|
1826
1841
|
SubgraphMarket_OrderBy["ForceBuyBackRecords"] = "forceBuyBackRecords";
|
|
1827
1842
|
SubgraphMarket_OrderBy["Hooks"] = "hooks";
|
|
@@ -1884,6 +1899,7 @@ var SubgraphMarket_OrderBy;
|
|
|
1884
1899
|
SubgraphMarket_OrderBy["PendingWithdrawalExpiry"] = "pendingWithdrawalExpiry";
|
|
1885
1900
|
SubgraphMarket_OrderBy["ProtocolFeeBips"] = "protocolFeeBips";
|
|
1886
1901
|
SubgraphMarket_OrderBy["ProtocolFeeBipsUpdatedIndex"] = "protocolFeeBipsUpdatedIndex";
|
|
1902
|
+
SubgraphMarket_OrderBy["ProtocolFeeBipsUpdatedRecords"] = "protocolFeeBipsUpdatedRecords";
|
|
1887
1903
|
SubgraphMarket_OrderBy["Removal"] = "removal";
|
|
1888
1904
|
SubgraphMarket_OrderBy["RemovalBlockNumber"] = "removal__blockNumber";
|
|
1889
1905
|
SubgraphMarket_OrderBy["RemovalBlockTimestamp"] = "removal__blockTimestamp";
|
|
@@ -2403,6 +2419,10 @@ var SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy;
|
|
|
2403
2419
|
SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy["Id"] = "id";
|
|
2404
2420
|
SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy["TransactionHash"] = "transactionHash";
|
|
2405
2421
|
})(SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy = exports.SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy || (exports.SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy = {}));
|
|
2422
|
+
var SubgraphSubgraphVersion_OrderBy;
|
|
2423
|
+
(function (SubgraphSubgraphVersion_OrderBy) {
|
|
2424
|
+
SubgraphSubgraphVersion_OrderBy["Id"] = "id";
|
|
2425
|
+
})(SubgraphSubgraphVersion_OrderBy = exports.SubgraphSubgraphVersion_OrderBy || (exports.SubgraphSubgraphVersion_OrderBy = {}));
|
|
2406
2426
|
var SubgraphToken_OrderBy;
|
|
2407
2427
|
(function (SubgraphToken_OrderBy) {
|
|
2408
2428
|
SubgraphToken_OrderBy["Address"] = "address";
|
|
@@ -2555,6 +2575,7 @@ var SubgraphWithdrawalBatchExpired_OrderBy;
|
|
|
2555
2575
|
SubgraphWithdrawalBatchExpired_OrderBy["BlockNumber"] = "blockNumber";
|
|
2556
2576
|
SubgraphWithdrawalBatchExpired_OrderBy["BlockTimestamp"] = "blockTimestamp";
|
|
2557
2577
|
SubgraphWithdrawalBatchExpired_OrderBy["Id"] = "id";
|
|
2578
|
+
SubgraphWithdrawalBatchExpired_OrderBy["NormalizedAmountOwed"] = "normalizedAmountOwed";
|
|
2558
2579
|
SubgraphWithdrawalBatchExpired_OrderBy["NormalizedAmountPaid"] = "normalizedAmountPaid";
|
|
2559
2580
|
SubgraphWithdrawalBatchExpired_OrderBy["ScaledAmountBurned"] = "scaledAmountBurned";
|
|
2560
2581
|
SubgraphWithdrawalBatchExpired_OrderBy["ScaledTotalAmount"] = "scaledTotalAmount";
|
|
@@ -3031,8 +3052,8 @@ exports.HooksConfigDataForMarketFragmentDoc = (0, client_1.gql) `
|
|
|
3031
3052
|
allowTermReduction
|
|
3032
3053
|
}
|
|
3033
3054
|
`;
|
|
3034
|
-
exports.
|
|
3035
|
-
fragment
|
|
3055
|
+
exports.HooksTemplateDataFragmentDoc = (0, client_1.gql) `
|
|
3056
|
+
fragment HooksTemplateData on HooksTemplate {
|
|
3036
3057
|
id
|
|
3037
3058
|
name
|
|
3038
3059
|
feeRecipient
|
|
@@ -3044,12 +3065,14 @@ exports.HooksTemplateDataForMarketFragmentDoc = (0, client_1.gql) `
|
|
|
3044
3065
|
disabled
|
|
3045
3066
|
}
|
|
3046
3067
|
`;
|
|
3047
|
-
exports.
|
|
3048
|
-
fragment
|
|
3068
|
+
exports.HooksInstanceDataFragmentDoc = (0, client_1.gql) `
|
|
3069
|
+
fragment HooksInstanceData on HooksInstance {
|
|
3049
3070
|
id
|
|
3050
3071
|
borrower
|
|
3072
|
+
name
|
|
3073
|
+
kind
|
|
3051
3074
|
hooksTemplate {
|
|
3052
|
-
...
|
|
3075
|
+
...HooksTemplateData
|
|
3053
3076
|
}
|
|
3054
3077
|
providers {
|
|
3055
3078
|
...RoleProviderData
|
|
@@ -3090,7 +3113,7 @@ exports.MarketDataFragmentDoc = (0, client_1.gql) `
|
|
|
3090
3113
|
...HooksConfigDataForMarket
|
|
3091
3114
|
}
|
|
3092
3115
|
hooks {
|
|
3093
|
-
...
|
|
3116
|
+
...HooksInstanceData
|
|
3094
3117
|
}
|
|
3095
3118
|
maxTotalSupply
|
|
3096
3119
|
pendingProtocolFees
|
|
@@ -3190,6 +3213,65 @@ exports.MarketDataWithEventsFragmentDoc = (0, client_1.gql) `
|
|
|
3190
3213
|
...MarketRecords
|
|
3191
3214
|
}
|
|
3192
3215
|
`;
|
|
3216
|
+
exports.ForceBuyBackDataFragmentDoc = (0, client_1.gql) `
|
|
3217
|
+
fragment ForceBuyBackData on ForceBuyBack {
|
|
3218
|
+
id
|
|
3219
|
+
account {
|
|
3220
|
+
address
|
|
3221
|
+
}
|
|
3222
|
+
eventIndex
|
|
3223
|
+
withdrawalExpiry
|
|
3224
|
+
scaledAmount
|
|
3225
|
+
normalizedAmount
|
|
3226
|
+
blockNumber
|
|
3227
|
+
blockTimestamp
|
|
3228
|
+
transactionHash
|
|
3229
|
+
}
|
|
3230
|
+
`;
|
|
3231
|
+
exports.MinimumDepositUpdatedDataFragmentDoc = (0, client_1.gql) `
|
|
3232
|
+
fragment MinimumDepositUpdatedData on MinimumDepositUpdated {
|
|
3233
|
+
id
|
|
3234
|
+
eventIndex
|
|
3235
|
+
oldMinimumDeposit
|
|
3236
|
+
newMinimumDeposit
|
|
3237
|
+
blockNumber
|
|
3238
|
+
blockTimestamp
|
|
3239
|
+
transactionHash
|
|
3240
|
+
}
|
|
3241
|
+
`;
|
|
3242
|
+
exports.ProtocolFeeBipsUpdatedDataFragmentDoc = (0, client_1.gql) `
|
|
3243
|
+
fragment ProtocolFeeBipsUpdatedData on ProtocolFeeBipsUpdated {
|
|
3244
|
+
id
|
|
3245
|
+
protocolFeeBipsUpdatedIndex
|
|
3246
|
+
eventIndex
|
|
3247
|
+
oldProtocolFeeBips
|
|
3248
|
+
newProtocolFeeBips
|
|
3249
|
+
blockNumber
|
|
3250
|
+
blockTimestamp
|
|
3251
|
+
transactionHash
|
|
3252
|
+
}
|
|
3253
|
+
`;
|
|
3254
|
+
exports.DisabledForceBuyBacksDataFragmentDoc = (0, client_1.gql) `
|
|
3255
|
+
fragment DisabledForceBuyBacksData on DisabledForceBuyBacks {
|
|
3256
|
+
id
|
|
3257
|
+
blockNumber
|
|
3258
|
+
blockTimestamp
|
|
3259
|
+
transactionHash
|
|
3260
|
+
eventIndex
|
|
3261
|
+
}
|
|
3262
|
+
`;
|
|
3263
|
+
exports.FixedTermUpdatedDataFragmentDoc = (0, client_1.gql) `
|
|
3264
|
+
fragment FixedTermUpdatedData on FixedTermUpdated {
|
|
3265
|
+
id
|
|
3266
|
+
oldFixedTermEndTime
|
|
3267
|
+
newFixedTermEndTime
|
|
3268
|
+
blockNumber
|
|
3269
|
+
blockTimestamp
|
|
3270
|
+
transactionHash
|
|
3271
|
+
eventIndex
|
|
3272
|
+
fixedTermUpdatedIndex
|
|
3273
|
+
}
|
|
3274
|
+
`;
|
|
3193
3275
|
exports.LenderWithdrawalPropertiesFragmentDoc = (0, client_1.gql) `
|
|
3194
3276
|
fragment LenderWithdrawalProperties on LenderWithdrawalStatus {
|
|
3195
3277
|
id
|
|
@@ -3344,42 +3426,6 @@ exports.GetLenderAccountForMarketDocument = (0, client_1.gql) `
|
|
|
3344
3426
|
${exports.RoleProviderDataFragmentDoc}
|
|
3345
3427
|
${exports.DepositDataFragmentDoc}
|
|
3346
3428
|
`;
|
|
3347
|
-
/**
|
|
3348
|
-
* __useGetLenderAccountForMarketQuery__
|
|
3349
|
-
*
|
|
3350
|
-
* To run a query within a React component, call `useGetLenderAccountForMarketQuery` and pass it any options that fit your needs.
|
|
3351
|
-
* When your component renders, `useGetLenderAccountForMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3352
|
-
* you can use to render your UI.
|
|
3353
|
-
*
|
|
3354
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3355
|
-
*
|
|
3356
|
-
* @example
|
|
3357
|
-
* const { data, loading, error } = useGetLenderAccountForMarketQuery({
|
|
3358
|
-
* variables: {
|
|
3359
|
-
* market: // value for 'market'
|
|
3360
|
-
* lender: // value for 'lender'
|
|
3361
|
-
* numDeposits: // value for 'numDeposits'
|
|
3362
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
3363
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
3364
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
3365
|
-
* },
|
|
3366
|
-
* });
|
|
3367
|
-
*/
|
|
3368
|
-
function useGetLenderAccountForMarketQuery(baseOptions) {
|
|
3369
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3370
|
-
return Apollo.useQuery(exports.GetLenderAccountForMarketDocument, options);
|
|
3371
|
-
}
|
|
3372
|
-
exports.useGetLenderAccountForMarketQuery = useGetLenderAccountForMarketQuery;
|
|
3373
|
-
function useGetLenderAccountForMarketLazyQuery(baseOptions) {
|
|
3374
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3375
|
-
return Apollo.useLazyQuery(exports.GetLenderAccountForMarketDocument, options);
|
|
3376
|
-
}
|
|
3377
|
-
exports.useGetLenderAccountForMarketLazyQuery = useGetLenderAccountForMarketLazyQuery;
|
|
3378
|
-
function useGetLenderAccountForMarketSuspenseQuery(baseOptions) {
|
|
3379
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3380
|
-
return Apollo.useSuspenseQuery(exports.GetLenderAccountForMarketDocument, options);
|
|
3381
|
-
}
|
|
3382
|
-
exports.useGetLenderAccountForMarketSuspenseQuery = useGetLenderAccountForMarketSuspenseQuery;
|
|
3383
3429
|
exports.GetLenderAccountWithMarketDocument = (0, client_1.gql) `
|
|
3384
3430
|
query getLenderAccountWithMarket(
|
|
3385
3431
|
$market: ID!
|
|
@@ -3428,56 +3474,12 @@ exports.GetLenderAccountWithMarketDocument = (0, client_1.gql) `
|
|
|
3428
3474
|
${exports.MarketDataFragmentDoc}
|
|
3429
3475
|
${exports.TokenDataFragmentDoc}
|
|
3430
3476
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
3431
|
-
${exports.
|
|
3432
|
-
${exports.
|
|
3477
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
3478
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
3433
3479
|
${exports.MarketDeployedEventFragmentDoc}
|
|
3434
3480
|
${exports.BorrowDataFragmentDoc}
|
|
3435
3481
|
${exports.RepaymentDataFragmentDoc}
|
|
3436
3482
|
`;
|
|
3437
|
-
/**
|
|
3438
|
-
* __useGetLenderAccountWithMarketQuery__
|
|
3439
|
-
*
|
|
3440
|
-
* To run a query within a React component, call `useGetLenderAccountWithMarketQuery` and pass it any options that fit your needs.
|
|
3441
|
-
* When your component renders, `useGetLenderAccountWithMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3442
|
-
* you can use to render your UI.
|
|
3443
|
-
*
|
|
3444
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3445
|
-
*
|
|
3446
|
-
* @example
|
|
3447
|
-
* const { data, loading, error } = useGetLenderAccountWithMarketQuery({
|
|
3448
|
-
* variables: {
|
|
3449
|
-
* market: // value for 'market'
|
|
3450
|
-
* lender: // value for 'lender'
|
|
3451
|
-
* numDeposits: // value for 'numDeposits'
|
|
3452
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
3453
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
3454
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
3455
|
-
* numBorrows: // value for 'numBorrows'
|
|
3456
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
3457
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
3458
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
3459
|
-
* numRepayments: // value for 'numRepayments'
|
|
3460
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
3461
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
3462
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
3463
|
-
* },
|
|
3464
|
-
* });
|
|
3465
|
-
*/
|
|
3466
|
-
function useGetLenderAccountWithMarketQuery(baseOptions) {
|
|
3467
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3468
|
-
return Apollo.useQuery(exports.GetLenderAccountWithMarketDocument, options);
|
|
3469
|
-
}
|
|
3470
|
-
exports.useGetLenderAccountWithMarketQuery = useGetLenderAccountWithMarketQuery;
|
|
3471
|
-
function useGetLenderAccountWithMarketLazyQuery(baseOptions) {
|
|
3472
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3473
|
-
return Apollo.useLazyQuery(exports.GetLenderAccountWithMarketDocument, options);
|
|
3474
|
-
}
|
|
3475
|
-
exports.useGetLenderAccountWithMarketLazyQuery = useGetLenderAccountWithMarketLazyQuery;
|
|
3476
|
-
function useGetLenderAccountWithMarketSuspenseQuery(baseOptions) {
|
|
3477
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3478
|
-
return Apollo.useSuspenseQuery(exports.GetLenderAccountWithMarketDocument, options);
|
|
3479
|
-
}
|
|
3480
|
-
exports.useGetLenderAccountWithMarketSuspenseQuery = useGetLenderAccountWithMarketSuspenseQuery;
|
|
3481
3483
|
exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
|
|
3482
3484
|
query getAllMarketsForLenderView(
|
|
3483
3485
|
$lender: Bytes
|
|
@@ -3549,8 +3551,8 @@ exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
|
|
|
3549
3551
|
${exports.MarketDataFragmentDoc}
|
|
3550
3552
|
${exports.TokenDataFragmentDoc}
|
|
3551
3553
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
3552
|
-
${exports.
|
|
3553
|
-
${exports.
|
|
3554
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
3555
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
3554
3556
|
${exports.RoleProviderDataFragmentDoc}
|
|
3555
3557
|
${exports.MarketDeployedEventFragmentDoc}
|
|
3556
3558
|
${exports.BorrowDataFragmentDoc}
|
|
@@ -3560,50 +3562,6 @@ exports.GetAllMarketsForLenderViewDocument = (0, client_1.gql) `
|
|
|
3560
3562
|
${exports.LenderHooksAccessDataFragmentDoc}
|
|
3561
3563
|
${exports.DepositDataFragmentDoc}
|
|
3562
3564
|
`;
|
|
3563
|
-
/**
|
|
3564
|
-
* __useGetAllMarketsForLenderViewQuery__
|
|
3565
|
-
*
|
|
3566
|
-
* To run a query within a React component, call `useGetAllMarketsForLenderViewQuery` and pass it any options that fit your needs.
|
|
3567
|
-
* When your component renders, `useGetAllMarketsForLenderViewQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3568
|
-
* you can use to render your UI.
|
|
3569
|
-
*
|
|
3570
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3571
|
-
*
|
|
3572
|
-
* @example
|
|
3573
|
-
* const { data, loading, error } = useGetAllMarketsForLenderViewQuery({
|
|
3574
|
-
* variables: {
|
|
3575
|
-
* lender: // value for 'lender'
|
|
3576
|
-
* marketFilter: // value for 'marketFilter'
|
|
3577
|
-
* numDeposits: // value for 'numDeposits'
|
|
3578
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
3579
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
3580
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
3581
|
-
* numBorrows: // value for 'numBorrows'
|
|
3582
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
3583
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
3584
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
3585
|
-
* numRepayments: // value for 'numRepayments'
|
|
3586
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
3587
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
3588
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
3589
|
-
* },
|
|
3590
|
-
* });
|
|
3591
|
-
*/
|
|
3592
|
-
function useGetAllMarketsForLenderViewQuery(baseOptions) {
|
|
3593
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3594
|
-
return Apollo.useQuery(exports.GetAllMarketsForLenderViewDocument, options);
|
|
3595
|
-
}
|
|
3596
|
-
exports.useGetAllMarketsForLenderViewQuery = useGetAllMarketsForLenderViewQuery;
|
|
3597
|
-
function useGetAllMarketsForLenderViewLazyQuery(baseOptions) {
|
|
3598
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3599
|
-
return Apollo.useLazyQuery(exports.GetAllMarketsForLenderViewDocument, options);
|
|
3600
|
-
}
|
|
3601
|
-
exports.useGetAllMarketsForLenderViewLazyQuery = useGetAllMarketsForLenderViewLazyQuery;
|
|
3602
|
-
function useGetAllMarketsForLenderViewSuspenseQuery(baseOptions) {
|
|
3603
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3604
|
-
return Apollo.useSuspenseQuery(exports.GetAllMarketsForLenderViewDocument, options);
|
|
3605
|
-
}
|
|
3606
|
-
exports.useGetAllMarketsForLenderViewSuspenseQuery = useGetAllMarketsForLenderViewSuspenseQuery;
|
|
3607
3565
|
exports.GetAccountsWhereLenderAuthorizedOrActiveDocument = (0, client_1.gql) `
|
|
3608
3566
|
query getAccountsWhereLenderAuthorizedOrActive(
|
|
3609
3567
|
$lender: Bytes!
|
|
@@ -3696,56 +3654,12 @@ exports.GetAccountsWhereLenderAuthorizedOrActiveDocument = (0, client_1.gql) `
|
|
|
3696
3654
|
${exports.MarketDataFragmentDoc}
|
|
3697
3655
|
${exports.TokenDataFragmentDoc}
|
|
3698
3656
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
3699
|
-
${exports.
|
|
3700
|
-
${exports.
|
|
3657
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
3658
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
3701
3659
|
${exports.MarketDeployedEventFragmentDoc}
|
|
3702
3660
|
${exports.BorrowDataFragmentDoc}
|
|
3703
3661
|
${exports.RepaymentDataFragmentDoc}
|
|
3704
3662
|
`;
|
|
3705
|
-
/**
|
|
3706
|
-
* __useGetAccountsWhereLenderAuthorizedOrActiveQuery__
|
|
3707
|
-
*
|
|
3708
|
-
* To run a query within a React component, call `useGetAccountsWhereLenderAuthorizedOrActiveQuery` and pass it any options that fit your needs.
|
|
3709
|
-
* When your component renders, `useGetAccountsWhereLenderAuthorizedOrActiveQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3710
|
-
* you can use to render your UI.
|
|
3711
|
-
*
|
|
3712
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3713
|
-
*
|
|
3714
|
-
* @example
|
|
3715
|
-
* const { data, loading, error } = useGetAccountsWhereLenderAuthorizedOrActiveQuery({
|
|
3716
|
-
* variables: {
|
|
3717
|
-
* lender: // value for 'lender'
|
|
3718
|
-
* accountFilter: // value for 'accountFilter'
|
|
3719
|
-
* numDeposits: // value for 'numDeposits'
|
|
3720
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
3721
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
3722
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
3723
|
-
* numBorrows: // value for 'numBorrows'
|
|
3724
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
3725
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
3726
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
3727
|
-
* numRepayments: // value for 'numRepayments'
|
|
3728
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
3729
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
3730
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
3731
|
-
* },
|
|
3732
|
-
* });
|
|
3733
|
-
*/
|
|
3734
|
-
function useGetAccountsWhereLenderAuthorizedOrActiveQuery(baseOptions) {
|
|
3735
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3736
|
-
return Apollo.useQuery(exports.GetAccountsWhereLenderAuthorizedOrActiveDocument, options);
|
|
3737
|
-
}
|
|
3738
|
-
exports.useGetAccountsWhereLenderAuthorizedOrActiveQuery = useGetAccountsWhereLenderAuthorizedOrActiveQuery;
|
|
3739
|
-
function useGetAccountsWhereLenderAuthorizedOrActiveLazyQuery(baseOptions) {
|
|
3740
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3741
|
-
return Apollo.useLazyQuery(exports.GetAccountsWhereLenderAuthorizedOrActiveDocument, options);
|
|
3742
|
-
}
|
|
3743
|
-
exports.useGetAccountsWhereLenderAuthorizedOrActiveLazyQuery = useGetAccountsWhereLenderAuthorizedOrActiveLazyQuery;
|
|
3744
|
-
function useGetAccountsWhereLenderAuthorizedOrActiveSuspenseQuery(baseOptions) {
|
|
3745
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3746
|
-
return Apollo.useSuspenseQuery(exports.GetAccountsWhereLenderAuthorizedOrActiveDocument, options);
|
|
3747
|
-
}
|
|
3748
|
-
exports.useGetAccountsWhereLenderAuthorizedOrActiveSuspenseQuery = useGetAccountsWhereLenderAuthorizedOrActiveSuspenseQuery;
|
|
3749
3663
|
exports.GetLenderWithdrawalsForMarketDocument = (0, client_1.gql) `
|
|
3750
3664
|
query getLenderWithdrawalsForMarket(
|
|
3751
3665
|
$market: ID!
|
|
@@ -3779,40 +3693,6 @@ exports.GetLenderWithdrawalsForMarketDocument = (0, client_1.gql) `
|
|
|
3779
3693
|
${exports.WithdrawalRequestPropertiesFragmentDoc}
|
|
3780
3694
|
${exports.WithdrawalExecutionPropertiesFragmentDoc}
|
|
3781
3695
|
`;
|
|
3782
|
-
/**
|
|
3783
|
-
* __useGetLenderWithdrawalsForMarketQuery__
|
|
3784
|
-
*
|
|
3785
|
-
* To run a query within a React component, call `useGetLenderWithdrawalsForMarketQuery` and pass it any options that fit your needs.
|
|
3786
|
-
* When your component renders, `useGetLenderWithdrawalsForMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3787
|
-
* you can use to render your UI.
|
|
3788
|
-
*
|
|
3789
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3790
|
-
*
|
|
3791
|
-
* @example
|
|
3792
|
-
* const { data, loading, error } = useGetLenderWithdrawalsForMarketQuery({
|
|
3793
|
-
* variables: {
|
|
3794
|
-
* market: // value for 'market'
|
|
3795
|
-
* lender: // value for 'lender'
|
|
3796
|
-
* numWithdrawals: // value for 'numWithdrawals'
|
|
3797
|
-
* skipWithdrawals: // value for 'skipWithdrawals'
|
|
3798
|
-
* },
|
|
3799
|
-
* });
|
|
3800
|
-
*/
|
|
3801
|
-
function useGetLenderWithdrawalsForMarketQuery(baseOptions) {
|
|
3802
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3803
|
-
return Apollo.useQuery(exports.GetLenderWithdrawalsForMarketDocument, options);
|
|
3804
|
-
}
|
|
3805
|
-
exports.useGetLenderWithdrawalsForMarketQuery = useGetLenderWithdrawalsForMarketQuery;
|
|
3806
|
-
function useGetLenderWithdrawalsForMarketLazyQuery(baseOptions) {
|
|
3807
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3808
|
-
return Apollo.useLazyQuery(exports.GetLenderWithdrawalsForMarketDocument, options);
|
|
3809
|
-
}
|
|
3810
|
-
exports.useGetLenderWithdrawalsForMarketLazyQuery = useGetLenderWithdrawalsForMarketLazyQuery;
|
|
3811
|
-
function useGetLenderWithdrawalsForMarketSuspenseQuery(baseOptions) {
|
|
3812
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3813
|
-
return Apollo.useSuspenseQuery(exports.GetLenderWithdrawalsForMarketDocument, options);
|
|
3814
|
-
}
|
|
3815
|
-
exports.useGetLenderWithdrawalsForMarketSuspenseQuery = useGetLenderWithdrawalsForMarketSuspenseQuery;
|
|
3816
3696
|
exports.GetLenderAuthorizationByMarketDocument = (0, client_1.gql) `
|
|
3817
3697
|
query getLenderAuthorizationByMarket($market: ID!, $lender: Bytes!) {
|
|
3818
3698
|
market(id: $market) {
|
|
@@ -3825,38 +3705,6 @@ exports.GetLenderAuthorizationByMarketDocument = (0, client_1.gql) `
|
|
|
3825
3705
|
}
|
|
3826
3706
|
}
|
|
3827
3707
|
`;
|
|
3828
|
-
/**
|
|
3829
|
-
* __useGetLenderAuthorizationByMarketQuery__
|
|
3830
|
-
*
|
|
3831
|
-
* To run a query within a React component, call `useGetLenderAuthorizationByMarketQuery` and pass it any options that fit your needs.
|
|
3832
|
-
* When your component renders, `useGetLenderAuthorizationByMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3833
|
-
* you can use to render your UI.
|
|
3834
|
-
*
|
|
3835
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
3836
|
-
*
|
|
3837
|
-
* @example
|
|
3838
|
-
* const { data, loading, error } = useGetLenderAuthorizationByMarketQuery({
|
|
3839
|
-
* variables: {
|
|
3840
|
-
* market: // value for 'market'
|
|
3841
|
-
* lender: // value for 'lender'
|
|
3842
|
-
* },
|
|
3843
|
-
* });
|
|
3844
|
-
*/
|
|
3845
|
-
function useGetLenderAuthorizationByMarketQuery(baseOptions) {
|
|
3846
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3847
|
-
return Apollo.useQuery(exports.GetLenderAuthorizationByMarketDocument, options);
|
|
3848
|
-
}
|
|
3849
|
-
exports.useGetLenderAuthorizationByMarketQuery = useGetLenderAuthorizationByMarketQuery;
|
|
3850
|
-
function useGetLenderAuthorizationByMarketLazyQuery(baseOptions) {
|
|
3851
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3852
|
-
return Apollo.useLazyQuery(exports.GetLenderAuthorizationByMarketDocument, options);
|
|
3853
|
-
}
|
|
3854
|
-
exports.useGetLenderAuthorizationByMarketLazyQuery = useGetLenderAuthorizationByMarketLazyQuery;
|
|
3855
|
-
function useGetLenderAuthorizationByMarketSuspenseQuery(baseOptions) {
|
|
3856
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
3857
|
-
return Apollo.useSuspenseQuery(exports.GetLenderAuthorizationByMarketDocument, options);
|
|
3858
|
-
}
|
|
3859
|
-
exports.useGetLenderAuthorizationByMarketSuspenseQuery = useGetLenderAuthorizationByMarketSuspenseQuery;
|
|
3860
3708
|
exports.GetMarketsAndLogsWhereLenderAuthorizedOrActiveDocument = (0, client_1.gql) `
|
|
3861
3709
|
query getMarketsAndLogsWhereLenderAuthorizedOrActive(
|
|
3862
3710
|
$lender: Bytes!
|
|
@@ -3932,49 +3780,46 @@ exports.GetMarketsAndLogsWhereLenderAuthorizedOrActiveDocument = (0, client_1.gq
|
|
|
3932
3780
|
${exports.WithdrawalExecutionPropertiesFragmentDoc}
|
|
3933
3781
|
${exports.DepositDataFragmentDoc}
|
|
3934
3782
|
`;
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
}
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
}
|
|
3972
|
-
exports.
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
return Apollo.useSuspenseQuery(exports.GetMarketsAndLogsWhereLenderAuthorizedOrActiveDocument, options);
|
|
3976
|
-
}
|
|
3977
|
-
exports.useGetMarketsAndLogsWhereLenderAuthorizedOrActiveSuspenseQuery = useGetMarketsAndLogsWhereLenderAuthorizedOrActiveSuspenseQuery;
|
|
3783
|
+
exports.GetAllHooksTemplatesDocument = (0, client_1.gql) `
|
|
3784
|
+
query getAllHooksTemplates($borrower: Bytes, $includeBorrower: Boolean!) {
|
|
3785
|
+
hooksTemplates {
|
|
3786
|
+
...HooksTemplateData
|
|
3787
|
+
}
|
|
3788
|
+
registeredBorrowers(where: { borrower: $borrower }, first: 1) @include(if: $includeBorrower) {
|
|
3789
|
+
isRegistered
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
3793
|
+
${exports.TokenDataFragmentDoc}
|
|
3794
|
+
`;
|
|
3795
|
+
exports.GetHooksInstancesForBorrowerDocument = (0, client_1.gql) `
|
|
3796
|
+
query getHooksInstancesForBorrower($borrower: Bytes!) {
|
|
3797
|
+
hooksInstances(where: { borrower: $borrower }) {
|
|
3798
|
+
...HooksInstanceData
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
3802
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
3803
|
+
${exports.TokenDataFragmentDoc}
|
|
3804
|
+
${exports.RoleProviderDataFragmentDoc}
|
|
3805
|
+
`;
|
|
3806
|
+
exports.GetAllHooksDataForBorrowerDocument = (0, client_1.gql) `
|
|
3807
|
+
query getAllHooksDataForBorrower($borrower: Bytes!) {
|
|
3808
|
+
hooksTemplates {
|
|
3809
|
+
...HooksTemplateData
|
|
3810
|
+
}
|
|
3811
|
+
hooksInstances(where: { borrower: $borrower }) {
|
|
3812
|
+
...HooksInstanceData
|
|
3813
|
+
}
|
|
3814
|
+
registeredBorrowers(where: { borrower: $borrower }, first: 1) {
|
|
3815
|
+
isRegistered
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
3819
|
+
${exports.TokenDataFragmentDoc}
|
|
3820
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
3821
|
+
${exports.RoleProviderDataFragmentDoc}
|
|
3822
|
+
`;
|
|
3978
3823
|
exports.GetMarketEventsDocument = (0, client_1.gql) `
|
|
3979
3824
|
query getMarketEvents(
|
|
3980
3825
|
$market: ID!
|
|
@@ -3986,6 +3831,9 @@ exports.GetMarketEventsDocument = (0, client_1.gql) `
|
|
|
3986
3831
|
marketClosedEvent {
|
|
3987
3832
|
...MarketClosedData
|
|
3988
3833
|
}
|
|
3834
|
+
forceBuyBackDisabledRecord {
|
|
3835
|
+
...DisabledForceBuyBacksData
|
|
3836
|
+
}
|
|
3989
3837
|
delinquencyRecords(
|
|
3990
3838
|
where: { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
|
|
3991
3839
|
orderBy: eventIndex
|
|
@@ -4050,9 +3898,42 @@ exports.GetMarketEventsDocument = (0, client_1.gql) `
|
|
|
4050
3898
|
) {
|
|
4051
3899
|
...WithdrawalRequestProperties
|
|
4052
3900
|
}
|
|
3901
|
+
forceBuyBackRecords(
|
|
3902
|
+
where: { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
|
|
3903
|
+
orderBy: eventIndex
|
|
3904
|
+
orderDirection: desc
|
|
3905
|
+
first: $limit
|
|
3906
|
+
) {
|
|
3907
|
+
...ForceBuyBackData
|
|
3908
|
+
}
|
|
3909
|
+
minimumDepositUpdateRecords(
|
|
3910
|
+
where: { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
|
|
3911
|
+
orderBy: eventIndex
|
|
3912
|
+
orderDirection: desc
|
|
3913
|
+
first: $limit
|
|
3914
|
+
) {
|
|
3915
|
+
...MinimumDepositUpdatedData
|
|
3916
|
+
}
|
|
3917
|
+
protocolFeeBipsUpdatedRecords(
|
|
3918
|
+
where: { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
|
|
3919
|
+
orderBy: eventIndex
|
|
3920
|
+
orderDirection: desc
|
|
3921
|
+
first: $limit
|
|
3922
|
+
) {
|
|
3923
|
+
...ProtocolFeeBipsUpdatedData
|
|
3924
|
+
}
|
|
3925
|
+
fixedTermUpdatedRecords(
|
|
3926
|
+
where: { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
|
|
3927
|
+
orderBy: eventIndex
|
|
3928
|
+
orderDirection: desc
|
|
3929
|
+
first: $limit
|
|
3930
|
+
) {
|
|
3931
|
+
...FixedTermUpdatedData
|
|
3932
|
+
}
|
|
4053
3933
|
}
|
|
4054
3934
|
}
|
|
4055
3935
|
${exports.MarketClosedDataFragmentDoc}
|
|
3936
|
+
${exports.DisabledForceBuyBacksDataFragmentDoc}
|
|
4056
3937
|
${exports.DelinquencyStatusChangedDataFragmentDoc}
|
|
4057
3938
|
${exports.BorrowDataFragmentDoc}
|
|
4058
3939
|
${exports.DepositDataFragmentDoc}
|
|
@@ -4061,41 +3942,11 @@ exports.GetMarketEventsDocument = (0, client_1.gql) `
|
|
|
4061
3942
|
${exports.AnnualInterestBipsUpdatedDataFragmentDoc}
|
|
4062
3943
|
${exports.MaxTotalSupplyUpdatedDataFragmentDoc}
|
|
4063
3944
|
${exports.WithdrawalRequestPropertiesFragmentDoc}
|
|
3945
|
+
${exports.ForceBuyBackDataFragmentDoc}
|
|
3946
|
+
${exports.MinimumDepositUpdatedDataFragmentDoc}
|
|
3947
|
+
${exports.ProtocolFeeBipsUpdatedDataFragmentDoc}
|
|
3948
|
+
${exports.FixedTermUpdatedDataFragmentDoc}
|
|
4064
3949
|
`;
|
|
4065
|
-
/**
|
|
4066
|
-
* __useGetMarketEventsQuery__
|
|
4067
|
-
*
|
|
4068
|
-
* To run a query within a React component, call `useGetMarketEventsQuery` and pass it any options that fit your needs.
|
|
4069
|
-
* When your component renders, `useGetMarketEventsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4070
|
-
* you can use to render your UI.
|
|
4071
|
-
*
|
|
4072
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4073
|
-
*
|
|
4074
|
-
* @example
|
|
4075
|
-
* const { data, loading, error } = useGetMarketEventsQuery({
|
|
4076
|
-
* variables: {
|
|
4077
|
-
* market: // value for 'market'
|
|
4078
|
-
* startEventIndex: // value for 'startEventIndex'
|
|
4079
|
-
* endEventIndex: // value for 'endEventIndex'
|
|
4080
|
-
* limit: // value for 'limit'
|
|
4081
|
-
* },
|
|
4082
|
-
* });
|
|
4083
|
-
*/
|
|
4084
|
-
function useGetMarketEventsQuery(baseOptions) {
|
|
4085
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4086
|
-
return Apollo.useQuery(exports.GetMarketEventsDocument, options);
|
|
4087
|
-
}
|
|
4088
|
-
exports.useGetMarketEventsQuery = useGetMarketEventsQuery;
|
|
4089
|
-
function useGetMarketEventsLazyQuery(baseOptions) {
|
|
4090
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4091
|
-
return Apollo.useLazyQuery(exports.GetMarketEventsDocument, options);
|
|
4092
|
-
}
|
|
4093
|
-
exports.useGetMarketEventsLazyQuery = useGetMarketEventsLazyQuery;
|
|
4094
|
-
function useGetMarketEventsSuspenseQuery(baseOptions) {
|
|
4095
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4096
|
-
return Apollo.useSuspenseQuery(exports.GetMarketEventsDocument, options);
|
|
4097
|
-
}
|
|
4098
|
-
exports.useGetMarketEventsSuspenseQuery = useGetMarketEventsSuspenseQuery;
|
|
4099
3950
|
exports.GetMarketsForBorrowerDocument = (0, client_1.gql) `
|
|
4100
3951
|
query getMarketsForBorrower(
|
|
4101
3952
|
$borrower: Bytes!
|
|
@@ -4135,8 +3986,8 @@ exports.GetMarketsForBorrowerDocument = (0, client_1.gql) `
|
|
|
4135
3986
|
${exports.MarketDataFragmentDoc}
|
|
4136
3987
|
${exports.TokenDataFragmentDoc}
|
|
4137
3988
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
4138
|
-
${exports.
|
|
4139
|
-
${exports.
|
|
3989
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
3990
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
4140
3991
|
${exports.RoleProviderDataFragmentDoc}
|
|
4141
3992
|
${exports.MarketDeployedEventFragmentDoc}
|
|
4142
3993
|
${exports.MarketRecordsFragmentDoc}
|
|
@@ -4145,58 +3996,6 @@ exports.GetMarketsForBorrowerDocument = (0, client_1.gql) `
|
|
|
4145
3996
|
${exports.FeesCollectedDataFragmentDoc}
|
|
4146
3997
|
${exports.RepaymentDataFragmentDoc}
|
|
4147
3998
|
`;
|
|
4148
|
-
/**
|
|
4149
|
-
* __useGetMarketsForBorrowerQuery__
|
|
4150
|
-
*
|
|
4151
|
-
* To run a query within a React component, call `useGetMarketsForBorrowerQuery` and pass it any options that fit your needs.
|
|
4152
|
-
* When your component renders, `useGetMarketsForBorrowerQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4153
|
-
* you can use to render your UI.
|
|
4154
|
-
*
|
|
4155
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4156
|
-
*
|
|
4157
|
-
* @example
|
|
4158
|
-
* const { data, loading, error } = useGetMarketsForBorrowerQuery({
|
|
4159
|
-
* variables: {
|
|
4160
|
-
* borrower: // value for 'borrower'
|
|
4161
|
-
* marketFilter: // value for 'marketFilter'
|
|
4162
|
-
* numMarkets: // value for 'numMarkets'
|
|
4163
|
-
* skipMarkets: // value for 'skipMarkets'
|
|
4164
|
-
* orderMarkets: // value for 'orderMarkets'
|
|
4165
|
-
* directionMarkets: // value for 'directionMarkets'
|
|
4166
|
-
* numDeposits: // value for 'numDeposits'
|
|
4167
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
4168
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
4169
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
4170
|
-
* numBorrows: // value for 'numBorrows'
|
|
4171
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
4172
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
4173
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
4174
|
-
* numFeeCollections: // value for 'numFeeCollections'
|
|
4175
|
-
* skipFeeCollections: // value for 'skipFeeCollections'
|
|
4176
|
-
* orderFeeCollections: // value for 'orderFeeCollections'
|
|
4177
|
-
* directionFeeCollections: // value for 'directionFeeCollections'
|
|
4178
|
-
* numRepayments: // value for 'numRepayments'
|
|
4179
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
4180
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
4181
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
4182
|
-
* },
|
|
4183
|
-
* });
|
|
4184
|
-
*/
|
|
4185
|
-
function useGetMarketsForBorrowerQuery(baseOptions) {
|
|
4186
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4187
|
-
return Apollo.useQuery(exports.GetMarketsForBorrowerDocument, options);
|
|
4188
|
-
}
|
|
4189
|
-
exports.useGetMarketsForBorrowerQuery = useGetMarketsForBorrowerQuery;
|
|
4190
|
-
function useGetMarketsForBorrowerLazyQuery(baseOptions) {
|
|
4191
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4192
|
-
return Apollo.useLazyQuery(exports.GetMarketsForBorrowerDocument, options);
|
|
4193
|
-
}
|
|
4194
|
-
exports.useGetMarketsForBorrowerLazyQuery = useGetMarketsForBorrowerLazyQuery;
|
|
4195
|
-
function useGetMarketsForBorrowerSuspenseQuery(baseOptions) {
|
|
4196
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4197
|
-
return Apollo.useSuspenseQuery(exports.GetMarketsForBorrowerDocument, options);
|
|
4198
|
-
}
|
|
4199
|
-
exports.useGetMarketsForBorrowerSuspenseQuery = useGetMarketsForBorrowerSuspenseQuery;
|
|
4200
3999
|
exports.GetMarketsForAllBorrowersDocument = (0, client_1.gql) `
|
|
4201
4000
|
query getMarketsForAllBorrowers(
|
|
4202
4001
|
$numMarkets: Int = 1000
|
|
@@ -4233,8 +4032,8 @@ exports.GetMarketsForAllBorrowersDocument = (0, client_1.gql) `
|
|
|
4233
4032
|
${exports.MarketDataFragmentDoc}
|
|
4234
4033
|
${exports.TokenDataFragmentDoc}
|
|
4235
4034
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
4236
|
-
${exports.
|
|
4237
|
-
${exports.
|
|
4035
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
4036
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
4238
4037
|
${exports.RoleProviderDataFragmentDoc}
|
|
4239
4038
|
${exports.MarketDeployedEventFragmentDoc}
|
|
4240
4039
|
${exports.MarketRecordsFragmentDoc}
|
|
@@ -4243,56 +4042,6 @@ exports.GetMarketsForAllBorrowersDocument = (0, client_1.gql) `
|
|
|
4243
4042
|
${exports.FeesCollectedDataFragmentDoc}
|
|
4244
4043
|
${exports.RepaymentDataFragmentDoc}
|
|
4245
4044
|
`;
|
|
4246
|
-
/**
|
|
4247
|
-
* __useGetMarketsForAllBorrowersQuery__
|
|
4248
|
-
*
|
|
4249
|
-
* To run a query within a React component, call `useGetMarketsForAllBorrowersQuery` and pass it any options that fit your needs.
|
|
4250
|
-
* When your component renders, `useGetMarketsForAllBorrowersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4251
|
-
* you can use to render your UI.
|
|
4252
|
-
*
|
|
4253
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4254
|
-
*
|
|
4255
|
-
* @example
|
|
4256
|
-
* const { data, loading, error } = useGetMarketsForAllBorrowersQuery({
|
|
4257
|
-
* variables: {
|
|
4258
|
-
* numMarkets: // value for 'numMarkets'
|
|
4259
|
-
* skipMarkets: // value for 'skipMarkets'
|
|
4260
|
-
* orderMarkets: // value for 'orderMarkets'
|
|
4261
|
-
* directionMarkets: // value for 'directionMarkets'
|
|
4262
|
-
* numDeposits: // value for 'numDeposits'
|
|
4263
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
4264
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
4265
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
4266
|
-
* numBorrows: // value for 'numBorrows'
|
|
4267
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
4268
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
4269
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
4270
|
-
* numFeeCollections: // value for 'numFeeCollections'
|
|
4271
|
-
* skipFeeCollections: // value for 'skipFeeCollections'
|
|
4272
|
-
* orderFeeCollections: // value for 'orderFeeCollections'
|
|
4273
|
-
* directionFeeCollections: // value for 'directionFeeCollections'
|
|
4274
|
-
* numRepayments: // value for 'numRepayments'
|
|
4275
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
4276
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
4277
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
4278
|
-
* },
|
|
4279
|
-
* });
|
|
4280
|
-
*/
|
|
4281
|
-
function useGetMarketsForAllBorrowersQuery(baseOptions) {
|
|
4282
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4283
|
-
return Apollo.useQuery(exports.GetMarketsForAllBorrowersDocument, options);
|
|
4284
|
-
}
|
|
4285
|
-
exports.useGetMarketsForAllBorrowersQuery = useGetMarketsForAllBorrowersQuery;
|
|
4286
|
-
function useGetMarketsForAllBorrowersLazyQuery(baseOptions) {
|
|
4287
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4288
|
-
return Apollo.useLazyQuery(exports.GetMarketsForAllBorrowersDocument, options);
|
|
4289
|
-
}
|
|
4290
|
-
exports.useGetMarketsForAllBorrowersLazyQuery = useGetMarketsForAllBorrowersLazyQuery;
|
|
4291
|
-
function useGetMarketsForAllBorrowersSuspenseQuery(baseOptions) {
|
|
4292
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4293
|
-
return Apollo.useSuspenseQuery(exports.GetMarketsForAllBorrowersDocument, options);
|
|
4294
|
-
}
|
|
4295
|
-
exports.useGetMarketsForAllBorrowersSuspenseQuery = useGetMarketsForAllBorrowersSuspenseQuery;
|
|
4296
4045
|
exports.GetMarketDocument = (0, client_1.gql) `
|
|
4297
4046
|
query getMarket(
|
|
4298
4047
|
$market: ID!
|
|
@@ -4321,8 +4070,8 @@ exports.GetMarketDocument = (0, client_1.gql) `
|
|
|
4321
4070
|
${exports.MarketDataFragmentDoc}
|
|
4322
4071
|
${exports.TokenDataFragmentDoc}
|
|
4323
4072
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
4324
|
-
${exports.
|
|
4325
|
-
${exports.
|
|
4073
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
4074
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
4326
4075
|
${exports.RoleProviderDataFragmentDoc}
|
|
4327
4076
|
${exports.MarketDeployedEventFragmentDoc}
|
|
4328
4077
|
${exports.MarketRecordsFragmentDoc}
|
|
@@ -4331,53 +4080,6 @@ exports.GetMarketDocument = (0, client_1.gql) `
|
|
|
4331
4080
|
${exports.FeesCollectedDataFragmentDoc}
|
|
4332
4081
|
${exports.RepaymentDataFragmentDoc}
|
|
4333
4082
|
`;
|
|
4334
|
-
/**
|
|
4335
|
-
* __useGetMarketQuery__
|
|
4336
|
-
*
|
|
4337
|
-
* To run a query within a React component, call `useGetMarketQuery` and pass it any options that fit your needs.
|
|
4338
|
-
* When your component renders, `useGetMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4339
|
-
* you can use to render your UI.
|
|
4340
|
-
*
|
|
4341
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4342
|
-
*
|
|
4343
|
-
* @example
|
|
4344
|
-
* const { data, loading, error } = useGetMarketQuery({
|
|
4345
|
-
* variables: {
|
|
4346
|
-
* market: // value for 'market'
|
|
4347
|
-
* numDeposits: // value for 'numDeposits'
|
|
4348
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
4349
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
4350
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
4351
|
-
* numBorrows: // value for 'numBorrows'
|
|
4352
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
4353
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
4354
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
4355
|
-
* numFeeCollections: // value for 'numFeeCollections'
|
|
4356
|
-
* skipFeeCollections: // value for 'skipFeeCollections'
|
|
4357
|
-
* orderFeeCollections: // value for 'orderFeeCollections'
|
|
4358
|
-
* directionFeeCollections: // value for 'directionFeeCollections'
|
|
4359
|
-
* numRepayments: // value for 'numRepayments'
|
|
4360
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
4361
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
4362
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
4363
|
-
* },
|
|
4364
|
-
* });
|
|
4365
|
-
*/
|
|
4366
|
-
function useGetMarketQuery(baseOptions) {
|
|
4367
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4368
|
-
return Apollo.useQuery(exports.GetMarketDocument, options);
|
|
4369
|
-
}
|
|
4370
|
-
exports.useGetMarketQuery = useGetMarketQuery;
|
|
4371
|
-
function useGetMarketLazyQuery(baseOptions) {
|
|
4372
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4373
|
-
return Apollo.useLazyQuery(exports.GetMarketDocument, options);
|
|
4374
|
-
}
|
|
4375
|
-
exports.useGetMarketLazyQuery = useGetMarketLazyQuery;
|
|
4376
|
-
function useGetMarketSuspenseQuery(baseOptions) {
|
|
4377
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4378
|
-
return Apollo.useSuspenseQuery(exports.GetMarketDocument, options);
|
|
4379
|
-
}
|
|
4380
|
-
exports.useGetMarketSuspenseQuery = useGetMarketSuspenseQuery;
|
|
4381
4083
|
exports.GetWithdrawalRequestsByMarketDocument = (0, client_1.gql) `
|
|
4382
4084
|
query getWithdrawalRequestsByMarket(
|
|
4383
4085
|
$market: String!
|
|
@@ -4398,41 +4100,6 @@ exports.GetWithdrawalRequestsByMarketDocument = (0, client_1.gql) `
|
|
|
4398
4100
|
}
|
|
4399
4101
|
${exports.WithdrawalRequestPropertiesFragmentDoc}
|
|
4400
4102
|
`;
|
|
4401
|
-
/**
|
|
4402
|
-
* __useGetWithdrawalRequestsByMarketQuery__
|
|
4403
|
-
*
|
|
4404
|
-
* To run a query within a React component, call `useGetWithdrawalRequestsByMarketQuery` and pass it any options that fit your needs.
|
|
4405
|
-
* When your component renders, `useGetWithdrawalRequestsByMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4406
|
-
* you can use to render your UI.
|
|
4407
|
-
*
|
|
4408
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4409
|
-
*
|
|
4410
|
-
* @example
|
|
4411
|
-
* const { data, loading, error } = useGetWithdrawalRequestsByMarketQuery({
|
|
4412
|
-
* variables: {
|
|
4413
|
-
* market: // value for 'market'
|
|
4414
|
-
* numWithdrawals: // value for 'numWithdrawals'
|
|
4415
|
-
* skipWithdrawals: // value for 'skipWithdrawals'
|
|
4416
|
-
* orderWithdrawals: // value for 'orderWithdrawals'
|
|
4417
|
-
* directionWithdrawals: // value for 'directionWithdrawals'
|
|
4418
|
-
* },
|
|
4419
|
-
* });
|
|
4420
|
-
*/
|
|
4421
|
-
function useGetWithdrawalRequestsByMarketQuery(baseOptions) {
|
|
4422
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4423
|
-
return Apollo.useQuery(exports.GetWithdrawalRequestsByMarketDocument, options);
|
|
4424
|
-
}
|
|
4425
|
-
exports.useGetWithdrawalRequestsByMarketQuery = useGetWithdrawalRequestsByMarketQuery;
|
|
4426
|
-
function useGetWithdrawalRequestsByMarketLazyQuery(baseOptions) {
|
|
4427
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4428
|
-
return Apollo.useLazyQuery(exports.GetWithdrawalRequestsByMarketDocument, options);
|
|
4429
|
-
}
|
|
4430
|
-
exports.useGetWithdrawalRequestsByMarketLazyQuery = useGetWithdrawalRequestsByMarketLazyQuery;
|
|
4431
|
-
function useGetWithdrawalRequestsByMarketSuspenseQuery(baseOptions) {
|
|
4432
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4433
|
-
return Apollo.useSuspenseQuery(exports.GetWithdrawalRequestsByMarketDocument, options);
|
|
4434
|
-
}
|
|
4435
|
-
exports.useGetWithdrawalRequestsByMarketSuspenseQuery = useGetWithdrawalRequestsByMarketSuspenseQuery;
|
|
4436
4103
|
exports.GetAllPendingWithdrawalBatchesForMarketDocument = (0, client_1.gql) `
|
|
4437
4104
|
query getAllPendingWithdrawalBatchesForMarket($market: ID!) {
|
|
4438
4105
|
market(id: $market) {
|
|
@@ -4448,37 +4115,6 @@ exports.GetAllPendingWithdrawalBatchesForMarketDocument = (0, client_1.gql) `
|
|
|
4448
4115
|
${exports.WithdrawalRequestPropertiesFragmentDoc}
|
|
4449
4116
|
${exports.WithdrawalExecutionPropertiesFragmentDoc}
|
|
4450
4117
|
`;
|
|
4451
|
-
/**
|
|
4452
|
-
* __useGetAllPendingWithdrawalBatchesForMarketQuery__
|
|
4453
|
-
*
|
|
4454
|
-
* To run a query within a React component, call `useGetAllPendingWithdrawalBatchesForMarketQuery` and pass it any options that fit your needs.
|
|
4455
|
-
* When your component renders, `useGetAllPendingWithdrawalBatchesForMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4456
|
-
* you can use to render your UI.
|
|
4457
|
-
*
|
|
4458
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4459
|
-
*
|
|
4460
|
-
* @example
|
|
4461
|
-
* const { data, loading, error } = useGetAllPendingWithdrawalBatchesForMarketQuery({
|
|
4462
|
-
* variables: {
|
|
4463
|
-
* market: // value for 'market'
|
|
4464
|
-
* },
|
|
4465
|
-
* });
|
|
4466
|
-
*/
|
|
4467
|
-
function useGetAllPendingWithdrawalBatchesForMarketQuery(baseOptions) {
|
|
4468
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4469
|
-
return Apollo.useQuery(exports.GetAllPendingWithdrawalBatchesForMarketDocument, options);
|
|
4470
|
-
}
|
|
4471
|
-
exports.useGetAllPendingWithdrawalBatchesForMarketQuery = useGetAllPendingWithdrawalBatchesForMarketQuery;
|
|
4472
|
-
function useGetAllPendingWithdrawalBatchesForMarketLazyQuery(baseOptions) {
|
|
4473
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4474
|
-
return Apollo.useLazyQuery(exports.GetAllPendingWithdrawalBatchesForMarketDocument, options);
|
|
4475
|
-
}
|
|
4476
|
-
exports.useGetAllPendingWithdrawalBatchesForMarketLazyQuery = useGetAllPendingWithdrawalBatchesForMarketLazyQuery;
|
|
4477
|
-
function useGetAllPendingWithdrawalBatchesForMarketSuspenseQuery(baseOptions) {
|
|
4478
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4479
|
-
return Apollo.useSuspenseQuery(exports.GetAllPendingWithdrawalBatchesForMarketDocument, options);
|
|
4480
|
-
}
|
|
4481
|
-
exports.useGetAllPendingWithdrawalBatchesForMarketSuspenseQuery = useGetAllPendingWithdrawalBatchesForMarketSuspenseQuery;
|
|
4482
4118
|
exports.GetIncompleteWithdrawalsForMarketDocument = (0, client_1.gql) `
|
|
4483
4119
|
query getIncompleteWithdrawalsForMarket(
|
|
4484
4120
|
$market: ID!
|
|
@@ -4506,41 +4142,6 @@ exports.GetIncompleteWithdrawalsForMarketDocument = (0, client_1.gql) `
|
|
|
4506
4142
|
${exports.WithdrawalRequestPropertiesFragmentDoc}
|
|
4507
4143
|
${exports.WithdrawalExecutionPropertiesFragmentDoc}
|
|
4508
4144
|
`;
|
|
4509
|
-
/**
|
|
4510
|
-
* __useGetIncompleteWithdrawalsForMarketQuery__
|
|
4511
|
-
*
|
|
4512
|
-
* To run a query within a React component, call `useGetIncompleteWithdrawalsForMarketQuery` and pass it any options that fit your needs.
|
|
4513
|
-
* When your component renders, `useGetIncompleteWithdrawalsForMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4514
|
-
* you can use to render your UI.
|
|
4515
|
-
*
|
|
4516
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4517
|
-
*
|
|
4518
|
-
* @example
|
|
4519
|
-
* const { data, loading, error } = useGetIncompleteWithdrawalsForMarketQuery({
|
|
4520
|
-
* variables: {
|
|
4521
|
-
* market: // value for 'market'
|
|
4522
|
-
* numWithdrawalBatches: // value for 'numWithdrawalBatches'
|
|
4523
|
-
* skipWithdrawalBatches: // value for 'skipWithdrawalBatches'
|
|
4524
|
-
* orderWithdrawalBatches: // value for 'orderWithdrawalBatches'
|
|
4525
|
-
* directionWithdrawalBatches: // value for 'directionWithdrawalBatches'
|
|
4526
|
-
* },
|
|
4527
|
-
* });
|
|
4528
|
-
*/
|
|
4529
|
-
function useGetIncompleteWithdrawalsForMarketQuery(baseOptions) {
|
|
4530
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4531
|
-
return Apollo.useQuery(exports.GetIncompleteWithdrawalsForMarketDocument, options);
|
|
4532
|
-
}
|
|
4533
|
-
exports.useGetIncompleteWithdrawalsForMarketQuery = useGetIncompleteWithdrawalsForMarketQuery;
|
|
4534
|
-
function useGetIncompleteWithdrawalsForMarketLazyQuery(baseOptions) {
|
|
4535
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4536
|
-
return Apollo.useLazyQuery(exports.GetIncompleteWithdrawalsForMarketDocument, options);
|
|
4537
|
-
}
|
|
4538
|
-
exports.useGetIncompleteWithdrawalsForMarketLazyQuery = useGetIncompleteWithdrawalsForMarketLazyQuery;
|
|
4539
|
-
function useGetIncompleteWithdrawalsForMarketSuspenseQuery(baseOptions) {
|
|
4540
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4541
|
-
return Apollo.useSuspenseQuery(exports.GetIncompleteWithdrawalsForMarketDocument, options);
|
|
4542
|
-
}
|
|
4543
|
-
exports.useGetIncompleteWithdrawalsForMarketSuspenseQuery = useGetIncompleteWithdrawalsForMarketSuspenseQuery;
|
|
4544
4145
|
exports.GetAllMarketsDocument = (0, client_1.gql) `
|
|
4545
4146
|
query getAllMarkets {
|
|
4546
4147
|
markets {
|
|
@@ -4550,41 +4151,11 @@ exports.GetAllMarketsDocument = (0, client_1.gql) `
|
|
|
4550
4151
|
${exports.MarketDataFragmentDoc}
|
|
4551
4152
|
${exports.TokenDataFragmentDoc}
|
|
4552
4153
|
${exports.HooksConfigDataForMarketFragmentDoc}
|
|
4553
|
-
${exports.
|
|
4554
|
-
${exports.
|
|
4154
|
+
${exports.HooksInstanceDataFragmentDoc}
|
|
4155
|
+
${exports.HooksTemplateDataFragmentDoc}
|
|
4555
4156
|
${exports.RoleProviderDataFragmentDoc}
|
|
4556
4157
|
${exports.MarketDeployedEventFragmentDoc}
|
|
4557
4158
|
`;
|
|
4558
|
-
/**
|
|
4559
|
-
* __useGetAllMarketsQuery__
|
|
4560
|
-
*
|
|
4561
|
-
* To run a query within a React component, call `useGetAllMarketsQuery` and pass it any options that fit your needs.
|
|
4562
|
-
* When your component renders, `useGetAllMarketsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4563
|
-
* you can use to render your UI.
|
|
4564
|
-
*
|
|
4565
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4566
|
-
*
|
|
4567
|
-
* @example
|
|
4568
|
-
* const { data, loading, error } = useGetAllMarketsQuery({
|
|
4569
|
-
* variables: {
|
|
4570
|
-
* },
|
|
4571
|
-
* });
|
|
4572
|
-
*/
|
|
4573
|
-
function useGetAllMarketsQuery(baseOptions) {
|
|
4574
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4575
|
-
return Apollo.useQuery(exports.GetAllMarketsDocument, options);
|
|
4576
|
-
}
|
|
4577
|
-
exports.useGetAllMarketsQuery = useGetAllMarketsQuery;
|
|
4578
|
-
function useGetAllMarketsLazyQuery(baseOptions) {
|
|
4579
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4580
|
-
return Apollo.useLazyQuery(exports.GetAllMarketsDocument, options);
|
|
4581
|
-
}
|
|
4582
|
-
exports.useGetAllMarketsLazyQuery = useGetAllMarketsLazyQuery;
|
|
4583
|
-
function useGetAllMarketsSuspenseQuery(baseOptions) {
|
|
4584
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4585
|
-
return Apollo.useSuspenseQuery(exports.GetAllMarketsDocument, options);
|
|
4586
|
-
}
|
|
4587
|
-
exports.useGetAllMarketsSuspenseQuery = useGetAllMarketsSuspenseQuery;
|
|
4588
4159
|
exports.GetAuthorizedLendersByMarketDocument = (0, client_1.gql) `
|
|
4589
4160
|
query getAuthorizedLendersByMarket($market: ID!) {
|
|
4590
4161
|
market(id: $market) {
|
|
@@ -4605,37 +4176,6 @@ exports.GetAuthorizedLendersByMarketDocument = (0, client_1.gql) `
|
|
|
4605
4176
|
}
|
|
4606
4177
|
}
|
|
4607
4178
|
`;
|
|
4608
|
-
/**
|
|
4609
|
-
* __useGetAuthorizedLendersByMarketQuery__
|
|
4610
|
-
*
|
|
4611
|
-
* To run a query within a React component, call `useGetAuthorizedLendersByMarketQuery` and pass it any options that fit your needs.
|
|
4612
|
-
* When your component renders, `useGetAuthorizedLendersByMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4613
|
-
* you can use to render your UI.
|
|
4614
|
-
*
|
|
4615
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4616
|
-
*
|
|
4617
|
-
* @example
|
|
4618
|
-
* const { data, loading, error } = useGetAuthorizedLendersByMarketQuery({
|
|
4619
|
-
* variables: {
|
|
4620
|
-
* market: // value for 'market'
|
|
4621
|
-
* },
|
|
4622
|
-
* });
|
|
4623
|
-
*/
|
|
4624
|
-
function useGetAuthorizedLendersByMarketQuery(baseOptions) {
|
|
4625
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4626
|
-
return Apollo.useQuery(exports.GetAuthorizedLendersByMarketDocument, options);
|
|
4627
|
-
}
|
|
4628
|
-
exports.useGetAuthorizedLendersByMarketQuery = useGetAuthorizedLendersByMarketQuery;
|
|
4629
|
-
function useGetAuthorizedLendersByMarketLazyQuery(baseOptions) {
|
|
4630
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4631
|
-
return Apollo.useLazyQuery(exports.GetAuthorizedLendersByMarketDocument, options);
|
|
4632
|
-
}
|
|
4633
|
-
exports.useGetAuthorizedLendersByMarketLazyQuery = useGetAuthorizedLendersByMarketLazyQuery;
|
|
4634
|
-
function useGetAuthorizedLendersByMarketSuspenseQuery(baseOptions) {
|
|
4635
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4636
|
-
return Apollo.useSuspenseQuery(exports.GetAuthorizedLendersByMarketDocument, options);
|
|
4637
|
-
}
|
|
4638
|
-
exports.useGetAuthorizedLendersByMarketSuspenseQuery = useGetAuthorizedLendersByMarketSuspenseQuery;
|
|
4639
4179
|
exports.GetAllAuthorizedLendersDocument = (0, client_1.gql) `
|
|
4640
4180
|
query getAllAuthorizedLenders($borrower: Bytes!) {
|
|
4641
4181
|
markets(where: { borrower: $borrower, isClosed: false }) {
|
|
@@ -4650,37 +4190,6 @@ exports.GetAllAuthorizedLendersDocument = (0, client_1.gql) `
|
|
|
4650
4190
|
${exports.AllAuthorizedLendersViewMarketInfoFragmentDoc}
|
|
4651
4191
|
${exports.AllAuthorizedLendersViewFragmentDoc}
|
|
4652
4192
|
`;
|
|
4653
|
-
/**
|
|
4654
|
-
* __useGetAllAuthorizedLendersQuery__
|
|
4655
|
-
*
|
|
4656
|
-
* To run a query within a React component, call `useGetAllAuthorizedLendersQuery` and pass it any options that fit your needs.
|
|
4657
|
-
* When your component renders, `useGetAllAuthorizedLendersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4658
|
-
* you can use to render your UI.
|
|
4659
|
-
*
|
|
4660
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4661
|
-
*
|
|
4662
|
-
* @example
|
|
4663
|
-
* const { data, loading, error } = useGetAllAuthorizedLendersQuery({
|
|
4664
|
-
* variables: {
|
|
4665
|
-
* borrower: // value for 'borrower'
|
|
4666
|
-
* },
|
|
4667
|
-
* });
|
|
4668
|
-
*/
|
|
4669
|
-
function useGetAllAuthorizedLendersQuery(baseOptions) {
|
|
4670
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4671
|
-
return Apollo.useQuery(exports.GetAllAuthorizedLendersDocument, options);
|
|
4672
|
-
}
|
|
4673
|
-
exports.useGetAllAuthorizedLendersQuery = useGetAllAuthorizedLendersQuery;
|
|
4674
|
-
function useGetAllAuthorizedLendersLazyQuery(baseOptions) {
|
|
4675
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4676
|
-
return Apollo.useLazyQuery(exports.GetAllAuthorizedLendersDocument, options);
|
|
4677
|
-
}
|
|
4678
|
-
exports.useGetAllAuthorizedLendersLazyQuery = useGetAllAuthorizedLendersLazyQuery;
|
|
4679
|
-
function useGetAllAuthorizedLendersSuspenseQuery(baseOptions) {
|
|
4680
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4681
|
-
return Apollo.useSuspenseQuery(exports.GetAllAuthorizedLendersDocument, options);
|
|
4682
|
-
}
|
|
4683
|
-
exports.useGetAllAuthorizedLendersSuspenseQuery = useGetAllAuthorizedLendersSuspenseQuery;
|
|
4684
4193
|
exports.GetAuthorizedLendersByBorrowerDocument = (0, client_1.gql) `
|
|
4685
4194
|
query getAuthorizedLendersByBorrower($filter: Controller_filter!) {
|
|
4686
4195
|
controllers(where: $filter) {
|
|
@@ -4690,37 +4199,6 @@ exports.GetAuthorizedLendersByBorrowerDocument = (0, client_1.gql) `
|
|
|
4690
4199
|
}
|
|
4691
4200
|
}
|
|
4692
4201
|
`;
|
|
4693
|
-
/**
|
|
4694
|
-
* __useGetAuthorizedLendersByBorrowerQuery__
|
|
4695
|
-
*
|
|
4696
|
-
* To run a query within a React component, call `useGetAuthorizedLendersByBorrowerQuery` and pass it any options that fit your needs.
|
|
4697
|
-
* When your component renders, `useGetAuthorizedLendersByBorrowerQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4698
|
-
* you can use to render your UI.
|
|
4699
|
-
*
|
|
4700
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4701
|
-
*
|
|
4702
|
-
* @example
|
|
4703
|
-
* const { data, loading, error } = useGetAuthorizedLendersByBorrowerQuery({
|
|
4704
|
-
* variables: {
|
|
4705
|
-
* filter: // value for 'filter'
|
|
4706
|
-
* },
|
|
4707
|
-
* });
|
|
4708
|
-
*/
|
|
4709
|
-
function useGetAuthorizedLendersByBorrowerQuery(baseOptions) {
|
|
4710
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4711
|
-
return Apollo.useQuery(exports.GetAuthorizedLendersByBorrowerDocument, options);
|
|
4712
|
-
}
|
|
4713
|
-
exports.useGetAuthorizedLendersByBorrowerQuery = useGetAuthorizedLendersByBorrowerQuery;
|
|
4714
|
-
function useGetAuthorizedLendersByBorrowerLazyQuery(baseOptions) {
|
|
4715
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4716
|
-
return Apollo.useLazyQuery(exports.GetAuthorizedLendersByBorrowerDocument, options);
|
|
4717
|
-
}
|
|
4718
|
-
exports.useGetAuthorizedLendersByBorrowerLazyQuery = useGetAuthorizedLendersByBorrowerLazyQuery;
|
|
4719
|
-
function useGetAuthorizedLendersByBorrowerSuspenseQuery(baseOptions) {
|
|
4720
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4721
|
-
return Apollo.useSuspenseQuery(exports.GetAuthorizedLendersByBorrowerDocument, options);
|
|
4722
|
-
}
|
|
4723
|
-
exports.useGetAuthorizedLendersByBorrowerSuspenseQuery = useGetAuthorizedLendersByBorrowerSuspenseQuery;
|
|
4724
4202
|
exports.GetSubgraphStatusDocument = (0, client_1.gql) `
|
|
4725
4203
|
query getSubgraphStatus {
|
|
4726
4204
|
_meta {
|
|
@@ -4733,36 +4211,6 @@ exports.GetSubgraphStatusDocument = (0, client_1.gql) `
|
|
|
4733
4211
|
}
|
|
4734
4212
|
}
|
|
4735
4213
|
`;
|
|
4736
|
-
/**
|
|
4737
|
-
* __useGetSubgraphStatusQuery__
|
|
4738
|
-
*
|
|
4739
|
-
* To run a query within a React component, call `useGetSubgraphStatusQuery` and pass it any options that fit your needs.
|
|
4740
|
-
* When your component renders, `useGetSubgraphStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4741
|
-
* you can use to render your UI.
|
|
4742
|
-
*
|
|
4743
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4744
|
-
*
|
|
4745
|
-
* @example
|
|
4746
|
-
* const { data, loading, error } = useGetSubgraphStatusQuery({
|
|
4747
|
-
* variables: {
|
|
4748
|
-
* },
|
|
4749
|
-
* });
|
|
4750
|
-
*/
|
|
4751
|
-
function useGetSubgraphStatusQuery(baseOptions) {
|
|
4752
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4753
|
-
return Apollo.useQuery(exports.GetSubgraphStatusDocument, options);
|
|
4754
|
-
}
|
|
4755
|
-
exports.useGetSubgraphStatusQuery = useGetSubgraphStatusQuery;
|
|
4756
|
-
function useGetSubgraphStatusLazyQuery(baseOptions) {
|
|
4757
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4758
|
-
return Apollo.useLazyQuery(exports.GetSubgraphStatusDocument, options);
|
|
4759
|
-
}
|
|
4760
|
-
exports.useGetSubgraphStatusLazyQuery = useGetSubgraphStatusLazyQuery;
|
|
4761
|
-
function useGetSubgraphStatusSuspenseQuery(baseOptions) {
|
|
4762
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4763
|
-
return Apollo.useSuspenseQuery(exports.GetSubgraphStatusDocument, options);
|
|
4764
|
-
}
|
|
4765
|
-
exports.useGetSubgraphStatusSuspenseQuery = useGetSubgraphStatusSuspenseQuery;
|
|
4766
4214
|
exports.GetMarketRecordsDocument = (0, client_1.gql) `
|
|
4767
4215
|
query getMarketRecords(
|
|
4768
4216
|
$market: ID!
|
|
@@ -4793,51 +4241,4 @@ exports.GetMarketRecordsDocument = (0, client_1.gql) `
|
|
|
4793
4241
|
${exports.FeesCollectedDataFragmentDoc}
|
|
4794
4242
|
${exports.RepaymentDataFragmentDoc}
|
|
4795
4243
|
`;
|
|
4796
|
-
/**
|
|
4797
|
-
* __useGetMarketRecordsQuery__
|
|
4798
|
-
*
|
|
4799
|
-
* To run a query within a React component, call `useGetMarketRecordsQuery` and pass it any options that fit your needs.
|
|
4800
|
-
* When your component renders, `useGetMarketRecordsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4801
|
-
* you can use to render your UI.
|
|
4802
|
-
*
|
|
4803
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
4804
|
-
*
|
|
4805
|
-
* @example
|
|
4806
|
-
* const { data, loading, error } = useGetMarketRecordsQuery({
|
|
4807
|
-
* variables: {
|
|
4808
|
-
* market: // value for 'market'
|
|
4809
|
-
* numDeposits: // value for 'numDeposits'
|
|
4810
|
-
* skipDeposits: // value for 'skipDeposits'
|
|
4811
|
-
* orderDeposits: // value for 'orderDeposits'
|
|
4812
|
-
* directionDeposits: // value for 'directionDeposits'
|
|
4813
|
-
* numBorrows: // value for 'numBorrows'
|
|
4814
|
-
* skipBorrows: // value for 'skipBorrows'
|
|
4815
|
-
* orderBorrows: // value for 'orderBorrows'
|
|
4816
|
-
* directionBorrows: // value for 'directionBorrows'
|
|
4817
|
-
* numFeeCollections: // value for 'numFeeCollections'
|
|
4818
|
-
* skipFeeCollections: // value for 'skipFeeCollections'
|
|
4819
|
-
* orderFeeCollections: // value for 'orderFeeCollections'
|
|
4820
|
-
* directionFeeCollections: // value for 'directionFeeCollections'
|
|
4821
|
-
* numRepayments: // value for 'numRepayments'
|
|
4822
|
-
* skipRepayments: // value for 'skipRepayments'
|
|
4823
|
-
* orderRepayments: // value for 'orderRepayments'
|
|
4824
|
-
* directionRepayments: // value for 'directionRepayments'
|
|
4825
|
-
* },
|
|
4826
|
-
* });
|
|
4827
|
-
*/
|
|
4828
|
-
function useGetMarketRecordsQuery(baseOptions) {
|
|
4829
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4830
|
-
return Apollo.useQuery(exports.GetMarketRecordsDocument, options);
|
|
4831
|
-
}
|
|
4832
|
-
exports.useGetMarketRecordsQuery = useGetMarketRecordsQuery;
|
|
4833
|
-
function useGetMarketRecordsLazyQuery(baseOptions) {
|
|
4834
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4835
|
-
return Apollo.useLazyQuery(exports.GetMarketRecordsDocument, options);
|
|
4836
|
-
}
|
|
4837
|
-
exports.useGetMarketRecordsLazyQuery = useGetMarketRecordsLazyQuery;
|
|
4838
|
-
function useGetMarketRecordsSuspenseQuery(baseOptions) {
|
|
4839
|
-
const options = { ...defaultOptions, ...baseOptions };
|
|
4840
|
-
return Apollo.useSuspenseQuery(exports.GetMarketRecordsDocument, options);
|
|
4841
|
-
}
|
|
4842
|
-
exports.useGetMarketRecordsSuspenseQuery = useGetMarketRecordsSuspenseQuery;
|
|
4843
4244
|
//# sourceMappingURL=graphql.js.map
|