@wildcatfi/wildcat-sdk 3.0.40 → 3.0.42-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/collateral/collateral-events.d.ts +119 -0
  2. package/dist/collateral/collateral-events.d.ts.map +1 -0
  3. package/dist/collateral/collateral-events.js +111 -0
  4. package/dist/collateral/collateral-events.js.map +1 -0
  5. package/dist/collateral/index.d.ts +42 -0
  6. package/dist/collateral/index.d.ts.map +1 -0
  7. package/dist/collateral/index.js +104 -0
  8. package/dist/collateral/index.js.map +1 -0
  9. package/dist/constants.d.ts +6 -1
  10. package/dist/constants.d.ts.map +1 -1
  11. package/dist/constants.js +16 -4
  12. package/dist/constants.js.map +1 -1
  13. package/dist/gql/graphql.d.ts +1864 -41
  14. package/dist/gql/graphql.d.ts.map +1 -1
  15. package/dist/gql/graphql.js +541 -4
  16. package/dist/gql/graphql.js.map +1 -1
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/market.js +0 -1
  22. package/dist/market.js.map +1 -1
  23. package/dist/typechain/CollateralLens.d.ts +218 -0
  24. package/dist/typechain/CollateralLens.d.ts.map +1 -0
  25. package/dist/typechain/CollateralLens.js +3 -0
  26. package/dist/typechain/CollateralLens.js.map +1 -0
  27. package/dist/typechain/DescribeSignature.d.ts +100 -0
  28. package/dist/typechain/DescribeSignature.d.ts.map +1 -0
  29. package/dist/typechain/DescribeSignature.js +3 -0
  30. package/dist/typechain/DescribeSignature.js.map +1 -0
  31. package/dist/typechain/ISafe.d.ts +17 -1
  32. package/dist/typechain/ISafe.d.ts.map +1 -1
  33. package/dist/typechain/SimpleMarketCollateral.d.ts +269 -0
  34. package/dist/typechain/SimpleMarketCollateral.d.ts.map +1 -0
  35. package/dist/typechain/SimpleMarketCollateral.js +3 -0
  36. package/dist/typechain/SimpleMarketCollateral.js.map +1 -0
  37. package/dist/typechain/WildcatCollateralFactory.d.ts +164 -0
  38. package/dist/typechain/WildcatCollateralFactory.d.ts.map +1 -0
  39. package/dist/typechain/WildcatCollateralFactory.js +3 -0
  40. package/dist/typechain/WildcatCollateralFactory.js.map +1 -0
  41. package/dist/typechain/factories/CollateralLens__factory.d.ts +842 -0
  42. package/dist/typechain/factories/CollateralLens__factory.d.ts.map +1 -0
  43. package/dist/typechain/factories/CollateralLens__factory.js +1086 -0
  44. package/dist/typechain/factories/CollateralLens__factory.js.map +1 -0
  45. package/dist/typechain/factories/DescribeSignature__factory.d.ts +141 -0
  46. package/dist/typechain/factories/DescribeSignature__factory.d.ts.map +1 -0
  47. package/dist/typechain/factories/DescribeSignature__factory.js +198 -0
  48. package/dist/typechain/factories/DescribeSignature__factory.js.map +1 -0
  49. package/dist/typechain/factories/ISafe__factory.d.ts +28 -0
  50. package/dist/typechain/factories/ISafe__factory.d.ts.map +1 -1
  51. package/dist/typechain/factories/ISafe__factory.js +37 -0
  52. package/dist/typechain/factories/ISafe__factory.js.map +1 -1
  53. package/dist/typechain/factories/SimpleMarketCollateral__factory.d.ts +260 -0
  54. package/dist/typechain/factories/SimpleMarketCollateral__factory.d.ts.map +1 -0
  55. package/dist/typechain/factories/SimpleMarketCollateral__factory.js +349 -0
  56. package/dist/typechain/factories/SimpleMarketCollateral__factory.js.map +1 -0
  57. package/dist/typechain/factories/WildcatCollateralFactory__factory.d.ts +160 -0
  58. package/dist/typechain/factories/WildcatCollateralFactory__factory.d.ts.map +1 -0
  59. package/dist/typechain/factories/WildcatCollateralFactory__factory.js +223 -0
  60. package/dist/typechain/factories/WildcatCollateralFactory__factory.js.map +1 -0
  61. package/dist/typechain/factories/index.d.ts +4 -0
  62. package/dist/typechain/factories/index.d.ts.map +1 -1
  63. package/dist/typechain/factories/index.js +9 -1
  64. package/dist/typechain/factories/index.js.map +1 -1
  65. package/dist/typechain/index.d.ts +12 -1
  66. package/dist/typechain/index.d.ts.map +1 -1
  67. package/dist/typechain/index.js +9 -1
  68. package/dist/typechain/index.js.map +1 -1
  69. package/dist/utils/describe-signature.d.ts +30 -0
  70. package/dist/utils/describe-signature.d.ts.map +1 -0
  71. package/dist/utils/describe-signature.js +52 -0
  72. package/dist/utils/describe-signature.js.map +1 -0
  73. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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.BorrowDataFragmentDoc = exports.MarketDataFragmentDoc = exports.MarketDeployedEventFragmentDoc = exports.HooksInstanceDataFragmentDoc = exports.HooksTemplateDataFragmentDoc = exports.HooksConfigDataForMarketFragmentDoc = exports.DelinquencyStatusChangedDataFragmentDoc = exports.AprConstraintsFragmentDoc = exports.MinimalControllerDataFragmentDoc = exports.TokenDataFragmentDoc = exports.ParameterConstraintsDataFragmentDoc = 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.GetBasicBorrowerDataDocument = 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 = exports.RepaymentDataFragmentDoc = exports.FeesCollectedDataFragmentDoc = void 0;
6
- exports.GetAllTokensWithMarketsDocument = void 0;
3
+ exports.SubgraphMarketRemoved_OrderBy = exports.SubgraphMarketInterestAccrued_OrderBy = exports.SubgraphMarketDeployed_OrderBy = exports.SubgraphMarketClosed_OrderBy = exports.SubgraphMarketAdded_OrderBy = exports.SubgraphLiquidatorRemoved_OrderBy = exports.SubgraphLiquidatorApproved_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.SubgraphApprovedLiquidator_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.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.SubgraphSimpleCollateralFactory_OrderBy = exports.SubgraphSimpleCollateralContract_OrderBy = exports.SubgraphSimpleCollateralContractReclaim_OrderBy = exports.SubgraphSimpleCollateralContractLiquidation_OrderBy = exports.SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy = exports.SubgraphSimpleCollateralContractFullReset_OrderBy = exports.SubgraphSimpleCollateralContractDepositor_OrderBy = exports.SubgraphSimpleCollateralContractDeposit_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 = exports.SubgraphMaxTotalSupplyUpdated_OrderBy = exports.SubgraphMarket_OrderBy = exports.SubgraphMarketVersion = void 0;
5
+ exports.GetAccountsWhereLenderAuthorizedOrActiveDocument = exports.GetAllMarketsForLenderViewDocument = exports.GetBasicBorrowerDataDocument = exports.GetLenderAccountWithMarketDocument = exports.GetLenderAccountForMarketDocument = exports.HooksInstanceLendersWithActiveMarketsFragmentDoc = exports.V2LenderWithActiveMarketsFragmentDoc = exports.ControllerAuthorizedLendersWithActiveMarketsFragmentDoc = exports.V1LenderWithActiveMarketsFragmentDoc = exports.SimpleCollateralContractDataWithEventsFragmentDoc = exports.SimpleCollateralContractFullResetDataFragmentDoc = exports.SimpleCollateralContractReclaimDataFragmentDoc = exports.SimpleCollateralContractDepositDataFragmentDoc = exports.SimpleCollateralContractLiquidationDataFragmentDoc = exports.SimpleCollateralContractDepositorDataFragmentDoc = exports.SimpleCollateralContractDataFragmentDoc = exports.SimpleCollateralContractLiquidatedSharesResetDataFragmentDoc = exports.LiquidatorRemovedDataFragmentDoc = exports.LiquidatorApprovedDataFragmentDoc = exports.ApprovedLiquidatorDataFragmentDoc = 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 = exports.RepaymentDataFragmentDoc = exports.FeesCollectedDataFragmentDoc = exports.BorrowDataFragmentDoc = exports.MarketDataFragmentDoc = exports.MarketDeployedEventFragmentDoc = exports.HooksInstanceDataFragmentDoc = exports.HooksTemplateDataFragmentDoc = exports.HooksConfigDataForMarketFragmentDoc = exports.DelinquencyStatusChangedDataFragmentDoc = exports.AprConstraintsFragmentDoc = exports.MinimalControllerDataFragmentDoc = exports.TokenDataFragmentDoc = exports.ParameterConstraintsDataFragmentDoc = void 0;
6
+ exports.GetCollateralContractEventsDocument = exports.GetApprovedLiquidatorsDocument = exports.GetCollateralContractDocument = exports.GetCollateralContractsByMarketDocument = exports.GetAllTokensWithMarketsDocument = 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 = void 0;
7
7
  const client_1 = require("@apollo/client");
8
8
  var SubgraphAccountAccessGranted_OrderBy;
9
9
  (function (SubgraphAccountAccessGranted_OrderBy) {
@@ -259,6 +259,14 @@ var SubgraphApproval_OrderBy;
259
259
  SubgraphApproval_OrderBy["TransactionHash"] = "transactionHash";
260
260
  SubgraphApproval_OrderBy["Value"] = "value";
261
261
  })(SubgraphApproval_OrderBy = exports.SubgraphApproval_OrderBy || (exports.SubgraphApproval_OrderBy = {}));
262
+ var SubgraphApprovedLiquidator_OrderBy;
263
+ (function (SubgraphApprovedLiquidator_OrderBy) {
264
+ SubgraphApprovedLiquidator_OrderBy["Factory"] = "factory";
265
+ SubgraphApprovedLiquidator_OrderBy["FactoryId"] = "factory__id";
266
+ SubgraphApprovedLiquidator_OrderBy["Id"] = "id";
267
+ SubgraphApprovedLiquidator_OrderBy["IsApproved"] = "isApproved";
268
+ SubgraphApprovedLiquidator_OrderBy["Liquidator"] = "liquidator";
269
+ })(SubgraphApprovedLiquidator_OrderBy = exports.SubgraphApprovedLiquidator_OrderBy || (exports.SubgraphApprovedLiquidator_OrderBy = {}));
262
270
  var SubgraphArchController_OrderBy;
263
271
  (function (SubgraphArchController_OrderBy) {
264
272
  SubgraphArchController_OrderBy["Borrowers"] = "borrowers";
@@ -1531,6 +1539,26 @@ var SubgraphLenderWithdrawalStatus_OrderBy;
1531
1539
  SubgraphLenderWithdrawalStatus_OrderBy["ScaledAmount"] = "scaledAmount";
1532
1540
  SubgraphLenderWithdrawalStatus_OrderBy["TotalNormalizedRequests"] = "totalNormalizedRequests";
1533
1541
  })(SubgraphLenderWithdrawalStatus_OrderBy = exports.SubgraphLenderWithdrawalStatus_OrderBy || (exports.SubgraphLenderWithdrawalStatus_OrderBy = {}));
1542
+ var SubgraphLiquidatorApproved_OrderBy;
1543
+ (function (SubgraphLiquidatorApproved_OrderBy) {
1544
+ SubgraphLiquidatorApproved_OrderBy["BlockNumber"] = "blockNumber";
1545
+ SubgraphLiquidatorApproved_OrderBy["BlockTimestamp"] = "blockTimestamp";
1546
+ SubgraphLiquidatorApproved_OrderBy["Factory"] = "factory";
1547
+ SubgraphLiquidatorApproved_OrderBy["FactoryId"] = "factory__id";
1548
+ SubgraphLiquidatorApproved_OrderBy["Id"] = "id";
1549
+ SubgraphLiquidatorApproved_OrderBy["Liquidator"] = "liquidator";
1550
+ SubgraphLiquidatorApproved_OrderBy["TransactionHash"] = "transactionHash";
1551
+ })(SubgraphLiquidatorApproved_OrderBy = exports.SubgraphLiquidatorApproved_OrderBy || (exports.SubgraphLiquidatorApproved_OrderBy = {}));
1552
+ var SubgraphLiquidatorRemoved_OrderBy;
1553
+ (function (SubgraphLiquidatorRemoved_OrderBy) {
1554
+ SubgraphLiquidatorRemoved_OrderBy["BlockNumber"] = "blockNumber";
1555
+ SubgraphLiquidatorRemoved_OrderBy["BlockTimestamp"] = "blockTimestamp";
1556
+ SubgraphLiquidatorRemoved_OrderBy["Factory"] = "factory";
1557
+ SubgraphLiquidatorRemoved_OrderBy["FactoryId"] = "factory__id";
1558
+ SubgraphLiquidatorRemoved_OrderBy["Id"] = "id";
1559
+ SubgraphLiquidatorRemoved_OrderBy["Liquidator"] = "liquidator";
1560
+ SubgraphLiquidatorRemoved_OrderBy["TransactionHash"] = "transactionHash";
1561
+ })(SubgraphLiquidatorRemoved_OrderBy = exports.SubgraphLiquidatorRemoved_OrderBy || (exports.SubgraphLiquidatorRemoved_OrderBy = {}));
1534
1562
  var SubgraphMarketAdded_OrderBy;
1535
1563
  (function (SubgraphMarketAdded_OrderBy) {
1536
1564
  SubgraphMarketAdded_OrderBy["BlockNumber"] = "blockNumber";
@@ -1864,6 +1892,7 @@ var SubgraphMarket_OrderBy;
1864
1892
  SubgraphMarket_OrderBy["BorrowIndex"] = "borrowIndex";
1865
1893
  SubgraphMarket_OrderBy["BorrowRecords"] = "borrowRecords";
1866
1894
  SubgraphMarket_OrderBy["Borrower"] = "borrower";
1895
+ SubgraphMarket_OrderBy["CollateralContracts"] = "collateralContracts";
1867
1896
  SubgraphMarket_OrderBy["Controller"] = "controller";
1868
1897
  SubgraphMarket_OrderBy["ControllerBorrower"] = "controller__borrower";
1869
1898
  SubgraphMarket_OrderBy["ControllerId"] = "controller__id";
@@ -2488,6 +2517,249 @@ var SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy;
2488
2517
  SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy["Id"] = "id";
2489
2518
  SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy["TransactionHash"] = "transactionHash";
2490
2519
  })(SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy = exports.SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy || (exports.SubgraphSanctionedAccountWithdrawalSentToEscrow_OrderBy = {}));
2520
+ var SubgraphSimpleCollateralContractDeposit_OrderBy;
2521
+ (function (SubgraphSimpleCollateralContractDeposit_OrderBy) {
2522
+ SubgraphSimpleCollateralContractDeposit_OrderBy["Account"] = "account";
2523
+ SubgraphSimpleCollateralContractDeposit_OrderBy["AccountId"] = "account__id";
2524
+ SubgraphSimpleCollateralContractDeposit_OrderBy["AccountShares"] = "account__shares";
2525
+ SubgraphSimpleCollateralContractDeposit_OrderBy["AccountTotalDeposited"] = "account__totalDeposited";
2526
+ SubgraphSimpleCollateralContractDeposit_OrderBy["AccountTotalReclaimed"] = "account__totalReclaimed";
2527
+ SubgraphSimpleCollateralContractDeposit_OrderBy["AmountDeposited"] = "amountDeposited";
2528
+ SubgraphSimpleCollateralContractDeposit_OrderBy["BlockNumber"] = "blockNumber";
2529
+ SubgraphSimpleCollateralContractDeposit_OrderBy["BlockTimestamp"] = "blockTimestamp";
2530
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContract"] = "collateralContract";
2531
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractAvailableCollateral"] = "collateralContract__availableCollateral";
2532
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractBebopSettlementContract"] = "collateralContract__bebopSettlementContract";
2533
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractDepositIndex"] = "collateralContract__depositIndex";
2534
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractEventIndex"] = "collateralContract__eventIndex";
2535
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractId"] = "collateralContract__id";
2536
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractLastFullLiquidationIndex"] = "collateralContract__lastFullLiquidationIndex";
2537
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractLiquidationCooldown"] = "collateralContract__liquidationCooldown";
2538
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractNextLiquidationTrigger"] = "collateralContract__nextLiquidationTrigger";
2539
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractTotalDeposited"] = "collateralContract__totalDeposited";
2540
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractTotalLiquidated"] = "collateralContract__totalLiquidated";
2541
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractTotalReclaimed"] = "collateralContract__totalReclaimed";
2542
+ SubgraphSimpleCollateralContractDeposit_OrderBy["CollateralContractTotalShares"] = "collateralContract__totalShares";
2543
+ SubgraphSimpleCollateralContractDeposit_OrderBy["DepositIndex"] = "depositIndex";
2544
+ SubgraphSimpleCollateralContractDeposit_OrderBy["EventIndex"] = "eventIndex";
2545
+ SubgraphSimpleCollateralContractDeposit_OrderBy["Id"] = "id";
2546
+ SubgraphSimpleCollateralContractDeposit_OrderBy["LastFullLiquidationIndex"] = "lastFullLiquidationIndex";
2547
+ SubgraphSimpleCollateralContractDeposit_OrderBy["SharesMinted"] = "sharesMinted";
2548
+ SubgraphSimpleCollateralContractDeposit_OrderBy["TransactionHash"] = "transactionHash";
2549
+ })(SubgraphSimpleCollateralContractDeposit_OrderBy = exports.SubgraphSimpleCollateralContractDeposit_OrderBy || (exports.SubgraphSimpleCollateralContractDeposit_OrderBy = {}));
2550
+ var SubgraphSimpleCollateralContractDepositor_OrderBy;
2551
+ (function (SubgraphSimpleCollateralContractDepositor_OrderBy) {
2552
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContract"] = "collateralContract";
2553
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractAvailableCollateral"] = "collateralContract__availableCollateral";
2554
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractBebopSettlementContract"] = "collateralContract__bebopSettlementContract";
2555
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractDepositIndex"] = "collateralContract__depositIndex";
2556
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractEventIndex"] = "collateralContract__eventIndex";
2557
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractId"] = "collateralContract__id";
2558
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractLastFullLiquidationIndex"] = "collateralContract__lastFullLiquidationIndex";
2559
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractLiquidationCooldown"] = "collateralContract__liquidationCooldown";
2560
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractNextLiquidationTrigger"] = "collateralContract__nextLiquidationTrigger";
2561
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractTotalDeposited"] = "collateralContract__totalDeposited";
2562
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractTotalLiquidated"] = "collateralContract__totalLiquidated";
2563
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractTotalReclaimed"] = "collateralContract__totalReclaimed";
2564
+ SubgraphSimpleCollateralContractDepositor_OrderBy["CollateralContractTotalShares"] = "collateralContract__totalShares";
2565
+ SubgraphSimpleCollateralContractDepositor_OrderBy["Deposits"] = "deposits";
2566
+ SubgraphSimpleCollateralContractDepositor_OrderBy["Id"] = "id";
2567
+ SubgraphSimpleCollateralContractDepositor_OrderBy["LiquidatedSharesResets"] = "liquidatedSharesResets";
2568
+ SubgraphSimpleCollateralContractDepositor_OrderBy["Reclaims"] = "reclaims";
2569
+ SubgraphSimpleCollateralContractDepositor_OrderBy["Shares"] = "shares";
2570
+ SubgraphSimpleCollateralContractDepositor_OrderBy["TotalDeposited"] = "totalDeposited";
2571
+ SubgraphSimpleCollateralContractDepositor_OrderBy["TotalReclaimed"] = "totalReclaimed";
2572
+ })(SubgraphSimpleCollateralContractDepositor_OrderBy = exports.SubgraphSimpleCollateralContractDepositor_OrderBy || (exports.SubgraphSimpleCollateralContractDepositor_OrderBy = {}));
2573
+ var SubgraphSimpleCollateralContractFullReset_OrderBy;
2574
+ (function (SubgraphSimpleCollateralContractFullReset_OrderBy) {
2575
+ SubgraphSimpleCollateralContractFullReset_OrderBy["BlockNumber"] = "blockNumber";
2576
+ SubgraphSimpleCollateralContractFullReset_OrderBy["BlockTimestamp"] = "blockTimestamp";
2577
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContract"] = "collateralContract";
2578
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractAvailableCollateral"] = "collateralContract__availableCollateral";
2579
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractBebopSettlementContract"] = "collateralContract__bebopSettlementContract";
2580
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractDepositIndex"] = "collateralContract__depositIndex";
2581
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractEventIndex"] = "collateralContract__eventIndex";
2582
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractId"] = "collateralContract__id";
2583
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractLastFullLiquidationIndex"] = "collateralContract__lastFullLiquidationIndex";
2584
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractLiquidationCooldown"] = "collateralContract__liquidationCooldown";
2585
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractNextLiquidationTrigger"] = "collateralContract__nextLiquidationTrigger";
2586
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractTotalDeposited"] = "collateralContract__totalDeposited";
2587
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractTotalLiquidated"] = "collateralContract__totalLiquidated";
2588
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractTotalReclaimed"] = "collateralContract__totalReclaimed";
2589
+ SubgraphSimpleCollateralContractFullReset_OrderBy["CollateralContractTotalShares"] = "collateralContract__totalShares";
2590
+ SubgraphSimpleCollateralContractFullReset_OrderBy["EventIndex"] = "eventIndex";
2591
+ SubgraphSimpleCollateralContractFullReset_OrderBy["Id"] = "id";
2592
+ SubgraphSimpleCollateralContractFullReset_OrderBy["LastFullLiquidationIndex"] = "lastFullLiquidationIndex";
2593
+ SubgraphSimpleCollateralContractFullReset_OrderBy["TransactionHash"] = "transactionHash";
2594
+ })(SubgraphSimpleCollateralContractFullReset_OrderBy = exports.SubgraphSimpleCollateralContractFullReset_OrderBy || (exports.SubgraphSimpleCollateralContractFullReset_OrderBy = {}));
2595
+ var SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy;
2596
+ (function (SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy) {
2597
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["Account"] = "account";
2598
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["AccountId"] = "account__id";
2599
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["AccountShares"] = "account__shares";
2600
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["AccountTotalDeposited"] = "account__totalDeposited";
2601
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["AccountTotalReclaimed"] = "account__totalReclaimed";
2602
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["BlockNumber"] = "blockNumber";
2603
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["BlockTimestamp"] = "blockTimestamp";
2604
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContract"] = "collateralContract";
2605
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractAvailableCollateral"] = "collateralContract__availableCollateral";
2606
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractBebopSettlementContract"] = "collateralContract__bebopSettlementContract";
2607
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractDepositIndex"] = "collateralContract__depositIndex";
2608
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractEventIndex"] = "collateralContract__eventIndex";
2609
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractId"] = "collateralContract__id";
2610
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractLastFullLiquidationIndex"] = "collateralContract__lastFullLiquidationIndex";
2611
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractLiquidationCooldown"] = "collateralContract__liquidationCooldown";
2612
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractNextLiquidationTrigger"] = "collateralContract__nextLiquidationTrigger";
2613
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractTotalDeposited"] = "collateralContract__totalDeposited";
2614
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractTotalLiquidated"] = "collateralContract__totalLiquidated";
2615
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractTotalReclaimed"] = "collateralContract__totalReclaimed";
2616
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["CollateralContractTotalShares"] = "collateralContract__totalShares";
2617
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["EventIndex"] = "eventIndex";
2618
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["Id"] = "id";
2619
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["SharesReset"] = "sharesReset";
2620
+ SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy["TransactionHash"] = "transactionHash";
2621
+ })(SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy = exports.SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy || (exports.SubgraphSimpleCollateralContractLiquidatedSharesReset_OrderBy = {}));
2622
+ var SubgraphSimpleCollateralContractLiquidation_OrderBy;
2623
+ (function (SubgraphSimpleCollateralContractLiquidation_OrderBy) {
2624
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["BlockNumber"] = "blockNumber";
2625
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["BlockTimestamp"] = "blockTimestamp";
2626
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContract"] = "collateralContract";
2627
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractAvailableCollateral"] = "collateralContract__availableCollateral";
2628
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractBebopSettlementContract"] = "collateralContract__bebopSettlementContract";
2629
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractDepositIndex"] = "collateralContract__depositIndex";
2630
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractEventIndex"] = "collateralContract__eventIndex";
2631
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractId"] = "collateralContract__id";
2632
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractLastFullLiquidationIndex"] = "collateralContract__lastFullLiquidationIndex";
2633
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractLiquidationCooldown"] = "collateralContract__liquidationCooldown";
2634
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractNextLiquidationTrigger"] = "collateralContract__nextLiquidationTrigger";
2635
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractTotalDeposited"] = "collateralContract__totalDeposited";
2636
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractTotalLiquidated"] = "collateralContract__totalLiquidated";
2637
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractTotalReclaimed"] = "collateralContract__totalReclaimed";
2638
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralContractTotalShares"] = "collateralContract__totalShares";
2639
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["CollateralLiquidated"] = "collateralLiquidated";
2640
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["EventIndex"] = "eventIndex";
2641
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["Id"] = "id";
2642
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["Liquidator"] = "liquidator";
2643
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["TransactionHash"] = "transactionHash";
2644
+ SubgraphSimpleCollateralContractLiquidation_OrderBy["UnderlyingReceived"] = "underlyingReceived";
2645
+ })(SubgraphSimpleCollateralContractLiquidation_OrderBy = exports.SubgraphSimpleCollateralContractLiquidation_OrderBy || (exports.SubgraphSimpleCollateralContractLiquidation_OrderBy = {}));
2646
+ var SubgraphSimpleCollateralContractReclaim_OrderBy;
2647
+ (function (SubgraphSimpleCollateralContractReclaim_OrderBy) {
2648
+ SubgraphSimpleCollateralContractReclaim_OrderBy["Account"] = "account";
2649
+ SubgraphSimpleCollateralContractReclaim_OrderBy["AccountId"] = "account__id";
2650
+ SubgraphSimpleCollateralContractReclaim_OrderBy["AccountShares"] = "account__shares";
2651
+ SubgraphSimpleCollateralContractReclaim_OrderBy["AccountTotalDeposited"] = "account__totalDeposited";
2652
+ SubgraphSimpleCollateralContractReclaim_OrderBy["AccountTotalReclaimed"] = "account__totalReclaimed";
2653
+ SubgraphSimpleCollateralContractReclaim_OrderBy["AmountReclaimed"] = "amountReclaimed";
2654
+ SubgraphSimpleCollateralContractReclaim_OrderBy["BlockNumber"] = "blockNumber";
2655
+ SubgraphSimpleCollateralContractReclaim_OrderBy["BlockTimestamp"] = "blockTimestamp";
2656
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContract"] = "collateralContract";
2657
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractAvailableCollateral"] = "collateralContract__availableCollateral";
2658
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractBebopSettlementContract"] = "collateralContract__bebopSettlementContract";
2659
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractDepositIndex"] = "collateralContract__depositIndex";
2660
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractEventIndex"] = "collateralContract__eventIndex";
2661
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractId"] = "collateralContract__id";
2662
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractLastFullLiquidationIndex"] = "collateralContract__lastFullLiquidationIndex";
2663
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractLiquidationCooldown"] = "collateralContract__liquidationCooldown";
2664
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractNextLiquidationTrigger"] = "collateralContract__nextLiquidationTrigger";
2665
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractTotalDeposited"] = "collateralContract__totalDeposited";
2666
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractTotalLiquidated"] = "collateralContract__totalLiquidated";
2667
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractTotalReclaimed"] = "collateralContract__totalReclaimed";
2668
+ SubgraphSimpleCollateralContractReclaim_OrderBy["CollateralContractTotalShares"] = "collateralContract__totalShares";
2669
+ SubgraphSimpleCollateralContractReclaim_OrderBy["EventIndex"] = "eventIndex";
2670
+ SubgraphSimpleCollateralContractReclaim_OrderBy["Id"] = "id";
2671
+ SubgraphSimpleCollateralContractReclaim_OrderBy["SharesBurned"] = "sharesBurned";
2672
+ SubgraphSimpleCollateralContractReclaim_OrderBy["TransactionHash"] = "transactionHash";
2673
+ })(SubgraphSimpleCollateralContractReclaim_OrderBy = exports.SubgraphSimpleCollateralContractReclaim_OrderBy || (exports.SubgraphSimpleCollateralContractReclaim_OrderBy = {}));
2674
+ var SubgraphSimpleCollateralContract_OrderBy;
2675
+ (function (SubgraphSimpleCollateralContract_OrderBy) {
2676
+ SubgraphSimpleCollateralContract_OrderBy["AvailableCollateral"] = "availableCollateral";
2677
+ SubgraphSimpleCollateralContract_OrderBy["BebopSettlementContract"] = "bebopSettlementContract";
2678
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAsset"] = "collateralAsset";
2679
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAssetAddress"] = "collateralAsset__address";
2680
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAssetDecimals"] = "collateralAsset__decimals";
2681
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAssetId"] = "collateralAsset__id";
2682
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAssetIsMock"] = "collateralAsset__isMock";
2683
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAssetName"] = "collateralAsset__name";
2684
+ SubgraphSimpleCollateralContract_OrderBy["CollateralAssetSymbol"] = "collateralAsset__symbol";
2685
+ SubgraphSimpleCollateralContract_OrderBy["DepositIndex"] = "depositIndex";
2686
+ SubgraphSimpleCollateralContract_OrderBy["Depositors"] = "depositors";
2687
+ SubgraphSimpleCollateralContract_OrderBy["Deposits"] = "deposits";
2688
+ SubgraphSimpleCollateralContract_OrderBy["EventIndex"] = "eventIndex";
2689
+ SubgraphSimpleCollateralContract_OrderBy["Factory"] = "factory";
2690
+ SubgraphSimpleCollateralContract_OrderBy["FactoryId"] = "factory__id";
2691
+ SubgraphSimpleCollateralContract_OrderBy["FullResets"] = "fullResets";
2692
+ SubgraphSimpleCollateralContract_OrderBy["Id"] = "id";
2693
+ SubgraphSimpleCollateralContract_OrderBy["LastFullLiquidationIndex"] = "lastFullLiquidationIndex";
2694
+ SubgraphSimpleCollateralContract_OrderBy["LiquidationCooldown"] = "liquidationCooldown";
2695
+ SubgraphSimpleCollateralContract_OrderBy["Liquidations"] = "liquidations";
2696
+ SubgraphSimpleCollateralContract_OrderBy["Market"] = "market";
2697
+ SubgraphSimpleCollateralContract_OrderBy["MarketAnnualInterestBips"] = "market__annualInterestBips";
2698
+ SubgraphSimpleCollateralContract_OrderBy["MarketAnnualInterestBipsUpdatedIndex"] = "market__annualInterestBipsUpdatedIndex";
2699
+ SubgraphSimpleCollateralContract_OrderBy["MarketBorrowIndex"] = "market__borrowIndex";
2700
+ SubgraphSimpleCollateralContract_OrderBy["MarketBorrower"] = "market__borrower";
2701
+ SubgraphSimpleCollateralContract_OrderBy["MarketCreatedAt"] = "market__createdAt";
2702
+ SubgraphSimpleCollateralContract_OrderBy["MarketDebtRepaidIndex"] = "market__debtRepaidIndex";
2703
+ SubgraphSimpleCollateralContract_OrderBy["MarketDecimals"] = "market__decimals";
2704
+ SubgraphSimpleCollateralContract_OrderBy["MarketDelinquencyFeeBips"] = "market__delinquencyFeeBips";
2705
+ SubgraphSimpleCollateralContract_OrderBy["MarketDelinquencyGracePeriod"] = "market__delinquencyGracePeriod";
2706
+ SubgraphSimpleCollateralContract_OrderBy["MarketDelinquencyStatusChangedIndex"] = "market__delinquencyStatusChangedIndex";
2707
+ SubgraphSimpleCollateralContract_OrderBy["MarketDepositIndex"] = "market__depositIndex";
2708
+ SubgraphSimpleCollateralContract_OrderBy["MarketEventIndex"] = "market__eventIndex";
2709
+ SubgraphSimpleCollateralContract_OrderBy["MarketFeeRecipient"] = "market__feeRecipient";
2710
+ SubgraphSimpleCollateralContract_OrderBy["MarketFeesCollectedIndex"] = "market__feesCollectedIndex";
2711
+ SubgraphSimpleCollateralContract_OrderBy["MarketFixedTermUpdatedIndex"] = "market__fixedTermUpdatedIndex";
2712
+ SubgraphSimpleCollateralContract_OrderBy["MarketForceBuyBackIndex"] = "market__forceBuyBackIndex";
2713
+ SubgraphSimpleCollateralContract_OrderBy["MarketId"] = "market__id";
2714
+ SubgraphSimpleCollateralContract_OrderBy["MarketIsClosed"] = "market__isClosed";
2715
+ SubgraphSimpleCollateralContract_OrderBy["MarketIsDelinquent"] = "market__isDelinquent";
2716
+ SubgraphSimpleCollateralContract_OrderBy["MarketIsIncurringPenalties"] = "market__isIncurringPenalties";
2717
+ SubgraphSimpleCollateralContract_OrderBy["MarketIsRegistered"] = "market__isRegistered";
2718
+ SubgraphSimpleCollateralContract_OrderBy["MarketLastInterestAccruedTimestamp"] = "market__lastInterestAccruedTimestamp";
2719
+ SubgraphSimpleCollateralContract_OrderBy["MarketMaxTotalSupply"] = "market__maxTotalSupply";
2720
+ SubgraphSimpleCollateralContract_OrderBy["MarketMaxTotalSupplyUpdatedIndex"] = "market__maxTotalSupplyUpdatedIndex";
2721
+ SubgraphSimpleCollateralContract_OrderBy["MarketMinimumDepositUpdatedIndex"] = "market__minimumDepositUpdatedIndex";
2722
+ SubgraphSimpleCollateralContract_OrderBy["MarketName"] = "market__name";
2723
+ SubgraphSimpleCollateralContract_OrderBy["MarketNormalizedUnclaimedWithdrawals"] = "market__normalizedUnclaimedWithdrawals";
2724
+ SubgraphSimpleCollateralContract_OrderBy["MarketOriginalAnnualInterestBips"] = "market__originalAnnualInterestBips";
2725
+ SubgraphSimpleCollateralContract_OrderBy["MarketOriginalReserveRatioBips"] = "market__originalReserveRatioBips";
2726
+ SubgraphSimpleCollateralContract_OrderBy["MarketPendingProtocolFees"] = "market__pendingProtocolFees";
2727
+ SubgraphSimpleCollateralContract_OrderBy["MarketPendingWithdrawalExpiry"] = "market__pendingWithdrawalExpiry";
2728
+ SubgraphSimpleCollateralContract_OrderBy["MarketProtocolFeeBips"] = "market__protocolFeeBips";
2729
+ SubgraphSimpleCollateralContract_OrderBy["MarketProtocolFeeBipsUpdatedIndex"] = "market__protocolFeeBipsUpdatedIndex";
2730
+ SubgraphSimpleCollateralContract_OrderBy["MarketReserveRatioBips"] = "market__reserveRatioBips";
2731
+ SubgraphSimpleCollateralContract_OrderBy["MarketScaleFactor"] = "market__scaleFactor";
2732
+ SubgraphSimpleCollateralContract_OrderBy["MarketScaledPendingWithdrawals"] = "market__scaledPendingWithdrawals";
2733
+ SubgraphSimpleCollateralContract_OrderBy["MarketScaledTotalSupply"] = "market__scaledTotalSupply";
2734
+ SubgraphSimpleCollateralContract_OrderBy["MarketSentinel"] = "market__sentinel";
2735
+ SubgraphSimpleCollateralContract_OrderBy["MarketSymbol"] = "market__symbol";
2736
+ SubgraphSimpleCollateralContract_OrderBy["MarketTemporaryReserveRatioActive"] = "market__temporaryReserveRatioActive";
2737
+ SubgraphSimpleCollateralContract_OrderBy["MarketTemporaryReserveRatioExpiry"] = "market__temporaryReserveRatioExpiry";
2738
+ SubgraphSimpleCollateralContract_OrderBy["MarketTimeDelinquent"] = "market__timeDelinquent";
2739
+ SubgraphSimpleCollateralContract_OrderBy["MarketTotalBaseInterestAccrued"] = "market__totalBaseInterestAccrued";
2740
+ SubgraphSimpleCollateralContract_OrderBy["MarketTotalBorrowed"] = "market__totalBorrowed";
2741
+ SubgraphSimpleCollateralContract_OrderBy["MarketTotalDelinquencyFeesAccrued"] = "market__totalDelinquencyFeesAccrued";
2742
+ SubgraphSimpleCollateralContract_OrderBy["MarketTotalDeposited"] = "market__totalDeposited";
2743
+ SubgraphSimpleCollateralContract_OrderBy["MarketTotalProtocolFeesAccrued"] = "market__totalProtocolFeesAccrued";
2744
+ SubgraphSimpleCollateralContract_OrderBy["MarketTotalRepaid"] = "market__totalRepaid";
2745
+ SubgraphSimpleCollateralContract_OrderBy["MarketVersion"] = "market__version";
2746
+ SubgraphSimpleCollateralContract_OrderBy["MarketWithdrawalBatchDuration"] = "market__withdrawalBatchDuration";
2747
+ SubgraphSimpleCollateralContract_OrderBy["MarketWithdrawalRequestsIndex"] = "market__withdrawalRequestsIndex";
2748
+ SubgraphSimpleCollateralContract_OrderBy["NextLiquidationTrigger"] = "nextLiquidationTrigger";
2749
+ SubgraphSimpleCollateralContract_OrderBy["Reclaims"] = "reclaims";
2750
+ SubgraphSimpleCollateralContract_OrderBy["TotalDeposited"] = "totalDeposited";
2751
+ SubgraphSimpleCollateralContract_OrderBy["TotalLiquidated"] = "totalLiquidated";
2752
+ SubgraphSimpleCollateralContract_OrderBy["TotalReclaimed"] = "totalReclaimed";
2753
+ SubgraphSimpleCollateralContract_OrderBy["TotalShares"] = "totalShares";
2754
+ })(SubgraphSimpleCollateralContract_OrderBy = exports.SubgraphSimpleCollateralContract_OrderBy || (exports.SubgraphSimpleCollateralContract_OrderBy = {}));
2755
+ var SubgraphSimpleCollateralFactory_OrderBy;
2756
+ (function (SubgraphSimpleCollateralFactory_OrderBy) {
2757
+ SubgraphSimpleCollateralFactory_OrderBy["ApprovedLiquidators"] = "approvedLiquidators";
2758
+ SubgraphSimpleCollateralFactory_OrderBy["CollateralContracts"] = "collateralContracts";
2759
+ SubgraphSimpleCollateralFactory_OrderBy["Id"] = "id";
2760
+ SubgraphSimpleCollateralFactory_OrderBy["LiquidatorApprovals"] = "liquidatorApprovals";
2761
+ SubgraphSimpleCollateralFactory_OrderBy["LiquidatorRemovals"] = "liquidatorRemovals";
2762
+ })(SubgraphSimpleCollateralFactory_OrderBy = exports.SubgraphSimpleCollateralFactory_OrderBy || (exports.SubgraphSimpleCollateralFactory_OrderBy = {}));
2491
2763
  var SubgraphSubgraphVersion_OrderBy;
2492
2764
  (function (SubgraphSubgraphVersion_OrderBy) {
2493
2765
  SubgraphSubgraphVersion_OrderBy["Id"] = "id";
@@ -3534,6 +3806,169 @@ exports.MarketClosedDataFragmentDoc = (0, client_1.gql) `
3534
3806
  transactionHash
3535
3807
  }
3536
3808
  `;
3809
+ exports.ApprovedLiquidatorDataFragmentDoc = (0, client_1.gql) `
3810
+ fragment ApprovedLiquidatorData on ApprovedLiquidator {
3811
+ isApproved
3812
+ liquidator
3813
+ }
3814
+ `;
3815
+ exports.LiquidatorApprovedDataFragmentDoc = (0, client_1.gql) `
3816
+ fragment LiquidatorApprovedData on LiquidatorApproved {
3817
+ liquidator
3818
+ blockNumber
3819
+ blockTimestamp
3820
+ transactionHash
3821
+ }
3822
+ `;
3823
+ exports.LiquidatorRemovedDataFragmentDoc = (0, client_1.gql) `
3824
+ fragment LiquidatorRemovedData on LiquidatorRemoved {
3825
+ liquidator
3826
+ blockNumber
3827
+ blockTimestamp
3828
+ transactionHash
3829
+ }
3830
+ `;
3831
+ exports.SimpleCollateralContractLiquidatedSharesResetDataFragmentDoc = (0, client_1.gql) `
3832
+ fragment SimpleCollateralContractLiquidatedSharesResetData on SimpleCollateralContractLiquidatedSharesReset {
3833
+ id
3834
+ collateralContract {
3835
+ id
3836
+ }
3837
+ account {
3838
+ id
3839
+ }
3840
+ sharesReset
3841
+ eventIndex
3842
+ blockNumber
3843
+ blockTimestamp
3844
+ transactionHash
3845
+ }
3846
+ `;
3847
+ exports.SimpleCollateralContractDataFragmentDoc = (0, client_1.gql) `
3848
+ fragment SimpleCollateralContractData on SimpleCollateralContract {
3849
+ id
3850
+ factory {
3851
+ id
3852
+ }
3853
+ bebopSettlementContract
3854
+ market {
3855
+ id
3856
+ underlyingAsset: asset {
3857
+ ...TokenData
3858
+ }
3859
+ isClosed
3860
+ isDelinquent
3861
+ timeDelinquent
3862
+ delinquencyGracePeriod
3863
+ }
3864
+ collateralAsset {
3865
+ ...TokenData
3866
+ }
3867
+ liquidationCooldown
3868
+ nextLiquidationTrigger
3869
+ totalDeposited
3870
+ totalReclaimed
3871
+ totalLiquidated
3872
+ totalShares
3873
+ availableCollateral
3874
+ lastFullLiquidationIndex
3875
+ depositIndex
3876
+ eventIndex
3877
+ }
3878
+ `;
3879
+ exports.SimpleCollateralContractDepositorDataFragmentDoc = (0, client_1.gql) `
3880
+ fragment SimpleCollateralContractDepositorData on SimpleCollateralContractDepositor {
3881
+ id
3882
+ collateralContract {
3883
+ id
3884
+ }
3885
+ shares
3886
+ totalDeposited
3887
+ totalReclaimed
3888
+ }
3889
+ `;
3890
+ exports.SimpleCollateralContractLiquidationDataFragmentDoc = (0, client_1.gql) `
3891
+ fragment SimpleCollateralContractLiquidationData on SimpleCollateralContractLiquidation {
3892
+ id
3893
+ collateralContract {
3894
+ id
3895
+ }
3896
+ collateralLiquidated
3897
+ underlyingReceived
3898
+ liquidator
3899
+ eventIndex
3900
+ blockNumber
3901
+ blockTimestamp
3902
+ transactionHash
3903
+ }
3904
+ `;
3905
+ exports.SimpleCollateralContractDepositDataFragmentDoc = (0, client_1.gql) `
3906
+ fragment SimpleCollateralContractDepositData on SimpleCollateralContractDeposit {
3907
+ id
3908
+ collateralContract {
3909
+ id
3910
+ }
3911
+ account {
3912
+ id
3913
+ }
3914
+ amountDeposited
3915
+ sharesMinted
3916
+ lastFullLiquidationIndex
3917
+ depositIndex
3918
+ blockNumber
3919
+ blockTimestamp
3920
+ transactionHash
3921
+ }
3922
+ `;
3923
+ exports.SimpleCollateralContractReclaimDataFragmentDoc = (0, client_1.gql) `
3924
+ fragment SimpleCollateralContractReclaimData on SimpleCollateralContractReclaim {
3925
+ id
3926
+ collateralContract {
3927
+ id
3928
+ }
3929
+ account {
3930
+ id
3931
+ }
3932
+ amountReclaimed
3933
+ sharesBurned
3934
+ blockNumber
3935
+ blockTimestamp
3936
+ transactionHash
3937
+ }
3938
+ `;
3939
+ exports.SimpleCollateralContractFullResetDataFragmentDoc = (0, client_1.gql) `
3940
+ fragment SimpleCollateralContractFullResetData on SimpleCollateralContractFullReset {
3941
+ id
3942
+ collateralContract {
3943
+ id
3944
+ }
3945
+ lastFullLiquidationIndex
3946
+ eventIndex
3947
+ blockNumber
3948
+ blockTimestamp
3949
+ transactionHash
3950
+ }
3951
+ `;
3952
+ exports.SimpleCollateralContractDataWithEventsFragmentDoc = (0, client_1.gql) `
3953
+ fragment SimpleCollateralContractDataWithEvents on SimpleCollateralContract {
3954
+ ...SimpleCollateralContractData
3955
+ depositors {
3956
+ ...SimpleCollateralContractDepositorData
3957
+ }
3958
+ liquidations {
3959
+ ...SimpleCollateralContractLiquidationData
3960
+ }
3961
+ deposits {
3962
+ ...SimpleCollateralContractDepositData
3963
+ }
3964
+ reclaims {
3965
+ ...SimpleCollateralContractReclaimData
3966
+ }
3967
+ fullResets {
3968
+ ...SimpleCollateralContractFullResetData
3969
+ }
3970
+ }
3971
+ `;
3537
3972
  exports.V1LenderWithActiveMarketsFragmentDoc = (0, client_1.gql) `
3538
3973
  fragment V1LenderWithActiveMarkets on LenderAuthorization {
3539
3974
  lender
@@ -4617,4 +5052,106 @@ exports.GetAllTokensWithMarketsDocument = (0, client_1.gql) `
4617
5052
  }
4618
5053
  }
4619
5054
  `;
5055
+ exports.GetCollateralContractsByMarketDocument = (0, client_1.gql) `
5056
+ query getCollateralContractsByMarket($market: ID!) {
5057
+ market(id: $market) {
5058
+ collateralContracts {
5059
+ ...SimpleCollateralContractData
5060
+ }
5061
+ }
5062
+ }
5063
+ ${exports.SimpleCollateralContractDataFragmentDoc}
5064
+ ${exports.TokenDataFragmentDoc}
5065
+ `;
5066
+ exports.GetCollateralContractDocument = (0, client_1.gql) `
5067
+ query getCollateralContract($collateralContract: ID!) {
5068
+ simpleCollateralContract(id: $collateralContract) {
5069
+ ...SimpleCollateralContractData
5070
+ }
5071
+ }
5072
+ ${exports.SimpleCollateralContractDataFragmentDoc}
5073
+ ${exports.TokenDataFragmentDoc}
5074
+ `;
5075
+ exports.GetApprovedLiquidatorsDocument = (0, client_1.gql) `
5076
+ query getApprovedLiquidators {
5077
+ approvedLiquidators(where: { isApproved: true }) {
5078
+ liquidator
5079
+ }
5080
+ }
5081
+ `;
5082
+ exports.GetCollateralContractEventsDocument = (0, client_1.gql) `
5083
+ query getCollateralContractEvents(
5084
+ $collateralContract: ID!
5085
+ $startEventIndex: Int = 0
5086
+ $endEventIndex: Int = 100000000
5087
+ $limit: Int = 10
5088
+ $depositRecordsFilter: SimpleCollateralContractDeposit_filter = { id_not: null }
5089
+ $includeDeposits: Boolean = true
5090
+ $reclaimRecordsFilter: SimpleCollateralContractReclaim_filter = { id_not: null }
5091
+ $includeReclaims: Boolean = true
5092
+ $liquidationRecordsFilter: SimpleCollateralContractLiquidation_filter = { id_not: null }
5093
+ $includeLiquidations: Boolean = true
5094
+ $fullResetRecordsFilter: SimpleCollateralContractFullReset_filter = { id_not: null }
5095
+ $includeFullResets: Boolean = true
5096
+ ) {
5097
+ simpleCollateralContract(id: $collateralContract) {
5098
+ deposits(
5099
+ where: {
5100
+ and: [
5101
+ $depositRecordsFilter
5102
+ { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
5103
+ ]
5104
+ }
5105
+ orderBy: eventIndex
5106
+ orderDirection: desc
5107
+ first: $limit
5108
+ ) @include(if: $includeDeposits) {
5109
+ ...SimpleCollateralContractDepositData
5110
+ }
5111
+ reclaims(
5112
+ where: {
5113
+ and: [
5114
+ $reclaimRecordsFilter
5115
+ { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
5116
+ ]
5117
+ }
5118
+ orderBy: eventIndex
5119
+ orderDirection: desc
5120
+ first: $limit
5121
+ ) @include(if: $includeReclaims) {
5122
+ ...SimpleCollateralContractReclaimData
5123
+ }
5124
+ liquidations(
5125
+ where: {
5126
+ and: [
5127
+ $liquidationRecordsFilter
5128
+ { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
5129
+ ]
5130
+ }
5131
+ orderBy: eventIndex
5132
+ orderDirection: desc
5133
+ first: $limit
5134
+ ) @include(if: $includeLiquidations) {
5135
+ ...SimpleCollateralContractLiquidationData
5136
+ }
5137
+ fullResets(
5138
+ where: {
5139
+ and: [
5140
+ $fullResetRecordsFilter
5141
+ { eventIndex_gte: $startEventIndex, eventIndex_lt: $endEventIndex }
5142
+ ]
5143
+ }
5144
+ orderBy: eventIndex
5145
+ orderDirection: desc
5146
+ first: $limit
5147
+ ) @include(if: $includeFullResets) {
5148
+ ...SimpleCollateralContractFullResetData
5149
+ }
5150
+ }
5151
+ }
5152
+ ${exports.SimpleCollateralContractDepositDataFragmentDoc}
5153
+ ${exports.SimpleCollateralContractReclaimDataFragmentDoc}
5154
+ ${exports.SimpleCollateralContractLiquidationDataFragmentDoc}
5155
+ ${exports.SimpleCollateralContractFullResetDataFragmentDoc}
5156
+ `;
4620
5157
  //# sourceMappingURL=graphql.js.map