@wildcatfi/wildcat-sdk 2.0.75 → 2.0.76

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 (62) hide show
  1. package/README.md +19 -6
  2. package/dist/gql/graphql.d.ts +96 -1
  3. package/dist/gql/graphql.d.ts.map +1 -1
  4. package/dist/gql/graphql.js +94 -1
  5. package/dist/gql/graphql.js.map +1 -1
  6. package/dist/market.js +2 -2
  7. package/dist/market.js.map +1 -1
  8. package/dist/t.d.ts +2 -0
  9. package/dist/t.d.ts.map +1 -0
  10. package/dist/t.js +23 -0
  11. package/dist/t.js.map +1 -0
  12. package/dist/token.d.ts +1 -1
  13. package/dist/token.d.ts.map +1 -1
  14. package/dist/token.js +2 -2
  15. package/dist/token.js.map +1 -1
  16. package/dist/typechain/AccountsQuery.d.ts +54 -0
  17. package/dist/typechain/AccountsQuery.d.ts.map +1 -0
  18. package/dist/typechain/AccountsQuery.js +3 -0
  19. package/dist/typechain/AccountsQuery.js.map +1 -0
  20. package/dist/typechain/CheckSignatureValid.sol/CheckSafeSignature.d.ts +29 -0
  21. package/dist/typechain/CheckSignatureValid.sol/CheckSafeSignature.d.ts.map +1 -0
  22. package/dist/typechain/CheckSignatureValid.sol/CheckSafeSignature.js +3 -0
  23. package/dist/typechain/CheckSignatureValid.sol/CheckSafeSignature.js.map +1 -0
  24. package/dist/typechain/CheckSignatureValid.sol/index.d.ts +2 -0
  25. package/dist/typechain/CheckSignatureValid.sol/index.d.ts.map +1 -0
  26. package/dist/typechain/CheckSignatureValid.sol/index.js +3 -0
  27. package/dist/typechain/CheckSignatureValid.sol/index.js.map +1 -0
  28. package/dist/typechain/ISafe.d.ts +17 -1
  29. package/dist/typechain/ISafe.d.ts.map +1 -1
  30. package/dist/typechain/factories/AccountsQuery__factory.d.ts +59 -0
  31. package/dist/typechain/factories/AccountsQuery__factory.d.ts.map +1 -0
  32. package/dist/typechain/factories/AccountsQuery__factory.js +91 -0
  33. package/dist/typechain/factories/AccountsQuery__factory.js.map +1 -0
  34. package/dist/typechain/factories/CheckSignatureValid.sol/CheckSafeSignature__factory.d.ts +40 -0
  35. package/dist/typechain/factories/CheckSignatureValid.sol/CheckSafeSignature__factory.d.ts.map +1 -0
  36. package/dist/typechain/factories/CheckSignatureValid.sol/CheckSafeSignature__factory.js +65 -0
  37. package/dist/typechain/factories/CheckSignatureValid.sol/CheckSafeSignature__factory.js.map +1 -0
  38. package/dist/typechain/factories/CheckSignatureValid.sol/index.d.ts +2 -0
  39. package/dist/typechain/factories/CheckSignatureValid.sol/index.d.ts.map +1 -0
  40. package/dist/typechain/factories/CheckSignatureValid.sol/index.js +9 -0
  41. package/dist/typechain/factories/CheckSignatureValid.sol/index.js.map +1 -0
  42. package/dist/typechain/factories/ISafe__factory.d.ts +32 -0
  43. package/dist/typechain/factories/ISafe__factory.d.ts.map +1 -1
  44. package/dist/typechain/factories/ISafe__factory.js +43 -0
  45. package/dist/typechain/factories/ISafe__factory.js.map +1 -1
  46. package/dist/typechain/factories/index.d.ts +2 -0
  47. package/dist/typechain/factories/index.d.ts.map +1 -1
  48. package/dist/typechain/factories/index.js +27 -1
  49. package/dist/typechain/factories/index.js.map +1 -1
  50. package/dist/typechain/index.d.ts +6 -0
  51. package/dist/typechain/index.d.ts.map +1 -1
  52. package/dist/typechain/index.js +5 -1
  53. package/dist/typechain/index.js.map +1 -1
  54. package/dist/withdrawal-batch.d.ts +2 -1
  55. package/dist/withdrawal-batch.d.ts.map +1 -1
  56. package/dist/withdrawal-batch.js +10 -2
  57. package/dist/withdrawal-batch.js.map +1 -1
  58. package/dist/withdrawal-status.d.ts +2 -1
  59. package/dist/withdrawal-status.d.ts.map +1 -1
  60. package/dist/withdrawal-status.js +9 -3
  61. package/dist/withdrawal-status.js.map +1 -1
  62. package/package.json +6 -5
package/README.md CHANGED
@@ -5,14 +5,15 @@
5
5
  ### 1. Get controller info for borrower
6
6
 
7
7
  ```ts
8
- import { getController, MarketController, MarketParameters } from '@wildcatfi/wildcat-sdk';
8
+ import { getController, MarketController, MarketParameters } from "@wildcatfi/wildcat-sdk";
9
9
 
10
10
  const controller: MarketController = await getController(signer, borrower);
11
11
  ```
12
12
 
13
13
  ### 2. Get parameter constraints for new markets
14
14
 
15
- `controller.constraints: MarketParameterConstraints` contains the min/max values of
15
+ `controller.constraints: MarketParameterConstraints` contains the min/max values of
16
+
16
17
  - `annualInterestBips`
17
18
  - `delinquencyFeeBips`
18
19
  - `withdrawalBatchDuration`
@@ -21,13 +22,12 @@ const controller: MarketController = await getController(signer, borrower);
21
22
 
22
23
  If provided values are out of this range, market deployment will revert.
23
24
 
24
-
25
25
  ### 3. Deploying a mock token for new market
26
26
 
27
27
  ```ts
28
28
  import { deployToken } from "@wildcatfi/wildcat-sdk";
29
29
 
30
- await deployToken(signer, 'name', 'symbol')
30
+ await deployToken(signer, "name", "symbol");
31
31
  ```
32
32
 
33
33
  ### 4. Deploying new market
@@ -56,7 +56,7 @@ const market: Market = await controller.deployMarket(marketParameters);
56
56
  ### 1. Get all `Market` instances on Wildcat
57
57
 
58
58
  ```ts
59
- import { getAllMarkets } from '@wildcatfi/wildcat-sdk';
59
+ import { getAllMarkets } from "@wildcatfi/wildcat-sdk";
60
60
 
61
61
  const markets = getAllMarkets(provider);
62
62
  ```
@@ -73,16 +73,29 @@ const controller: MarketController = await getController(signer, borrower);
73
73
  ## Get `MarketAccount`
74
74
 
75
75
  ### 1. Get `MarketAccount` for every market
76
+
76
77
  ```ts
77
- import { getAllMarketAccountsForLender } from '@wildcatfi/wildcat-sdk';
78
+ import { getAllMarketAccountsForLender } from "@wildcatfi/wildcat-sdk";
78
79
  const accounts = await getAllMarketAccountsForLender(signer, lenderAddress);
79
80
  ```
80
81
 
81
82
  ## Deposit
82
83
 
83
84
  ### 1. Get underlying assets from mock token
85
+
84
86
  ```ts
85
87
  if (market.underlyingToken.isMock) {
86
88
  await market.underlyingToken.faucet();
87
89
  }
88
90
  ```
91
+
92
+ # Development
93
+
94
+ Whenever anything in `./gql` or `./contracts` is changed, run `yarn codegen` to regenerate the graphql and typechain types.
95
+
96
+ The graphql scripts take a while to run, so the graphql script saves a file in [.gql-cache](./scripts/.gql-cache) with the checksums of the previous input/output files from gql codegen, so the script can skip graphql codegen if there's no reason to. Typechain only takes about a second so we don't do the same for it.
97
+
98
+ This runs:
99
+
100
+ - `yarn codegen:gql` - Generates TS types for all the graphql queries, then runs a script to simplify the type literals ([gql-type-cleanup.js](./scripts/gql-type-cleanup.js))
101
+ - `yarn codegen:typechain` - Generates types for the contracts with typechain, then runs a script ([add-typechain-exports.js](./scripts/add-typechain-exports.js)) to add exports for all the structs in the contracts to the src/typechain index file
@@ -58,6 +58,10 @@ export type Scalars = {
58
58
  input: any;
59
59
  output: any;
60
60
  };
61
+ Timestamp: {
62
+ input: any;
63
+ output: any;
64
+ };
61
65
  };
62
66
  export declare enum SubgraphAggregation_Interval {
63
67
  Day = "day",
@@ -2656,12 +2660,15 @@ export declare enum SubgraphLenderWithdrawalStatus_OrderBy {
2656
2660
  AccountTotalDeposited = "account__totalDeposited",
2657
2661
  AccountTotalInterestEarned = "account__totalInterestEarned",
2658
2662
  Batch = "batch",
2663
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
2659
2664
  BatchExpiry = "batch__expiry",
2660
2665
  BatchId = "batch__id",
2661
2666
  BatchIsClosed = "batch__isClosed",
2667
+ BatchIsCompleted = "batch__isCompleted",
2662
2668
  BatchIsExpired = "batch__isExpired",
2663
2669
  BatchLastScaleFactor = "batch__lastScaleFactor",
2664
2670
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
2671
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
2665
2672
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
2666
2673
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
2667
2674
  BatchPaymentsCount = "batch__paymentsCount",
@@ -6564,15 +6571,18 @@ export declare enum SubgraphUpdateProtocolFeeConfiguration_OrderBy {
6564
6571
  }
6565
6572
  export type SubgraphWithdrawalBatch = {
6566
6573
  __typename: "WithdrawalBatch";
6574
+ completedWithdrawalsCount: Scalars["Int"]["output"];
6567
6575
  creation: SubgraphWithdrawalBatchCreated;
6568
6576
  executions: SubgraphWithdrawalExecution[];
6569
6577
  expiry: Scalars["BigInt"]["output"];
6570
6578
  id: Scalars["ID"]["output"];
6571
6579
  interestAccrualRecords: SubgraphWithdrawalBatchInterestAccrued[];
6572
6580
  isClosed: Scalars["Boolean"]["output"];
6581
+ isCompleted: Scalars["Boolean"]["output"];
6573
6582
  isExpired: Scalars["Boolean"]["output"];
6574
6583
  lastScaleFactor: Scalars["BigInt"]["output"];
6575
6584
  lastUpdatedTimestamp: Scalars["Int"]["output"];
6585
+ lenderWithdrawalsCount: Scalars["Int"]["output"];
6576
6586
  market: SubgraphMarket;
6577
6587
  normalizedAmountClaimed: Scalars["BigInt"]["output"];
6578
6588
  normalizedAmountPaid: Scalars["BigInt"]["output"];
@@ -6673,12 +6683,15 @@ export type SubgraphWithdrawalBatchCreated_Filter = {
6673
6683
  };
6674
6684
  export declare enum SubgraphWithdrawalBatchCreated_OrderBy {
6675
6685
  Batch = "batch",
6686
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
6676
6687
  BatchExpiry = "batch__expiry",
6677
6688
  BatchId = "batch__id",
6678
6689
  BatchIsClosed = "batch__isClosed",
6690
+ BatchIsCompleted = "batch__isCompleted",
6679
6691
  BatchIsExpired = "batch__isExpired",
6680
6692
  BatchLastScaleFactor = "batch__lastScaleFactor",
6681
6693
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
6694
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
6682
6695
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
6683
6696
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
6684
6697
  BatchPaymentsCount = "batch__paymentsCount",
@@ -6789,12 +6802,15 @@ export type SubgraphWithdrawalBatchExpired_Filter = {
6789
6802
  };
6790
6803
  export declare enum SubgraphWithdrawalBatchExpired_OrderBy {
6791
6804
  Batch = "batch",
6805
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
6792
6806
  BatchExpiry = "batch__expiry",
6793
6807
  BatchId = "batch__id",
6794
6808
  BatchIsClosed = "batch__isClosed",
6809
+ BatchIsCompleted = "batch__isCompleted",
6795
6810
  BatchIsExpired = "batch__isExpired",
6796
6811
  BatchLastScaleFactor = "batch__lastScaleFactor",
6797
6812
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
6813
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
6798
6814
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
6799
6815
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
6800
6816
  BatchPaymentsCount = "batch__paymentsCount",
@@ -6912,12 +6928,15 @@ export type SubgraphWithdrawalBatchInterestAccrued_Filter = {
6912
6928
  };
6913
6929
  export declare enum SubgraphWithdrawalBatchInterestAccrued_OrderBy {
6914
6930
  Batch = "batch",
6931
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
6915
6932
  BatchExpiry = "batch__expiry",
6916
6933
  BatchId = "batch__id",
6917
6934
  BatchIsClosed = "batch__isClosed",
6935
+ BatchIsCompleted = "batch__isCompleted",
6918
6936
  BatchIsExpired = "batch__isExpired",
6919
6937
  BatchLastScaleFactor = "batch__lastScaleFactor",
6920
6938
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
6939
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
6921
6940
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
6922
6941
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
6923
6942
  BatchPaymentsCount = "batch__paymentsCount",
@@ -7066,12 +7085,15 @@ export type SubgraphWithdrawalBatchPayment_Filter = {
7066
7085
  };
7067
7086
  export declare enum SubgraphWithdrawalBatchPayment_OrderBy {
7068
7087
  Batch = "batch",
7088
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
7069
7089
  BatchExpiry = "batch__expiry",
7070
7090
  BatchId = "batch__id",
7071
7091
  BatchIsClosed = "batch__isClosed",
7092
+ BatchIsCompleted = "batch__isCompleted",
7072
7093
  BatchIsExpired = "batch__isExpired",
7073
7094
  BatchLastScaleFactor = "batch__lastScaleFactor",
7074
7095
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
7096
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
7075
7097
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
7076
7098
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
7077
7099
  BatchPaymentsCount = "batch__paymentsCount",
@@ -7090,6 +7112,14 @@ export type SubgraphWithdrawalBatch_Filter = {
7090
7112
  /** Filter for the block changed event. */
7091
7113
  _change_block?: InputMaybe<SubgraphBlockChangedFilter>;
7092
7114
  and?: InputMaybe<Array<InputMaybe<SubgraphWithdrawalBatch_Filter>>>;
7115
+ completedWithdrawalsCount?: InputMaybe<Scalars["Int"]["input"]>;
7116
+ completedWithdrawalsCount_gt?: InputMaybe<Scalars["Int"]["input"]>;
7117
+ completedWithdrawalsCount_gte?: InputMaybe<Scalars["Int"]["input"]>;
7118
+ completedWithdrawalsCount_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7119
+ completedWithdrawalsCount_lt?: InputMaybe<Scalars["Int"]["input"]>;
7120
+ completedWithdrawalsCount_lte?: InputMaybe<Scalars["Int"]["input"]>;
7121
+ completedWithdrawalsCount_not?: InputMaybe<Scalars["Int"]["input"]>;
7122
+ completedWithdrawalsCount_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7093
7123
  creation_?: InputMaybe<SubgraphWithdrawalBatchCreated_Filter>;
7094
7124
  executions_?: InputMaybe<SubgraphWithdrawalExecution_Filter>;
7095
7125
  expiry?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -7113,6 +7143,10 @@ export type SubgraphWithdrawalBatch_Filter = {
7113
7143
  isClosed_in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
7114
7144
  isClosed_not?: InputMaybe<Scalars["Boolean"]["input"]>;
7115
7145
  isClosed_not_in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
7146
+ isCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
7147
+ isCompleted_in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
7148
+ isCompleted_not?: InputMaybe<Scalars["Boolean"]["input"]>;
7149
+ isCompleted_not_in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
7116
7150
  isExpired?: InputMaybe<Scalars["Boolean"]["input"]>;
7117
7151
  isExpired_in?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
7118
7152
  isExpired_not?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -7133,6 +7167,14 @@ export type SubgraphWithdrawalBatch_Filter = {
7133
7167
  lastUpdatedTimestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
7134
7168
  lastUpdatedTimestamp_not?: InputMaybe<Scalars["Int"]["input"]>;
7135
7169
  lastUpdatedTimestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7170
+ lenderWithdrawalsCount?: InputMaybe<Scalars["Int"]["input"]>;
7171
+ lenderWithdrawalsCount_gt?: InputMaybe<Scalars["Int"]["input"]>;
7172
+ lenderWithdrawalsCount_gte?: InputMaybe<Scalars["Int"]["input"]>;
7173
+ lenderWithdrawalsCount_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7174
+ lenderWithdrawalsCount_lt?: InputMaybe<Scalars["Int"]["input"]>;
7175
+ lenderWithdrawalsCount_lte?: InputMaybe<Scalars["Int"]["input"]>;
7176
+ lenderWithdrawalsCount_not?: InputMaybe<Scalars["Int"]["input"]>;
7177
+ lenderWithdrawalsCount_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
7136
7178
  market?: InputMaybe<Scalars["String"]["input"]>;
7137
7179
  market_?: InputMaybe<SubgraphMarket_Filter>;
7138
7180
  market_contains?: InputMaybe<Scalars["String"]["input"]>;
@@ -7216,6 +7258,7 @@ export type SubgraphWithdrawalBatch_Filter = {
7216
7258
  withdrawals_?: InputMaybe<SubgraphLenderWithdrawalStatus_Filter>;
7217
7259
  };
7218
7260
  export declare enum SubgraphWithdrawalBatch_OrderBy {
7261
+ CompletedWithdrawalsCount = "completedWithdrawalsCount",
7219
7262
  Creation = "creation",
7220
7263
  CreationBlockNumber = "creation__blockNumber",
7221
7264
  CreationBlockTimestamp = "creation__blockTimestamp",
@@ -7226,9 +7269,11 @@ export declare enum SubgraphWithdrawalBatch_OrderBy {
7226
7269
  Id = "id",
7227
7270
  InterestAccrualRecords = "interestAccrualRecords",
7228
7271
  IsClosed = "isClosed",
7272
+ IsCompleted = "isCompleted",
7229
7273
  IsExpired = "isExpired",
7230
7274
  LastScaleFactor = "lastScaleFactor",
7231
7275
  LastUpdatedTimestamp = "lastUpdatedTimestamp",
7276
+ LenderWithdrawalsCount = "lenderWithdrawalsCount",
7232
7277
  Market = "market",
7233
7278
  MarketAnnualInterestBips = "market__annualInterestBips",
7234
7279
  MarketAnnualInterestBipsUpdatedIndex = "market__annualInterestBipsUpdatedIndex",
@@ -7420,12 +7465,15 @@ export declare enum SubgraphWithdrawalExecution_OrderBy {
7420
7465
  AccountTotalDeposited = "account__totalDeposited",
7421
7466
  AccountTotalInterestEarned = "account__totalInterestEarned",
7422
7467
  Batch = "batch",
7468
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
7423
7469
  BatchExpiry = "batch__expiry",
7424
7470
  BatchId = "batch__id",
7425
7471
  BatchIsClosed = "batch__isClosed",
7472
+ BatchIsCompleted = "batch__isCompleted",
7426
7473
  BatchIsExpired = "batch__isExpired",
7427
7474
  BatchLastScaleFactor = "batch__lastScaleFactor",
7428
7475
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
7476
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
7429
7477
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
7430
7478
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
7431
7479
  BatchPaymentsCount = "batch__paymentsCount",
@@ -7639,12 +7687,15 @@ export declare enum SubgraphWithdrawalRequest_OrderBy {
7639
7687
  AccountTotalDeposited = "account__totalDeposited",
7640
7688
  AccountTotalInterestEarned = "account__totalInterestEarned",
7641
7689
  Batch = "batch",
7690
+ BatchCompletedWithdrawalsCount = "batch__completedWithdrawalsCount",
7642
7691
  BatchExpiry = "batch__expiry",
7643
7692
  BatchId = "batch__id",
7644
7693
  BatchIsClosed = "batch__isClosed",
7694
+ BatchIsCompleted = "batch__isCompleted",
7645
7695
  BatchIsExpired = "batch__isExpired",
7646
7696
  BatchLastScaleFactor = "batch__lastScaleFactor",
7647
7697
  BatchLastUpdatedTimestamp = "batch__lastUpdatedTimestamp",
7698
+ BatchLenderWithdrawalsCount = "batch__lenderWithdrawalsCount",
7648
7699
  BatchNormalizedAmountClaimed = "batch__normalizedAmountClaimed",
7649
7700
  BatchNormalizedAmountPaid = "batch__normalizedAmountPaid",
7650
7701
  BatchPaymentsCount = "batch__paymentsCount",
@@ -8002,6 +8053,7 @@ export type SubgraphWithdrawalBatchPropertiesFragment = {
8002
8053
  totalNormalizedRequests: string;
8003
8054
  isExpired: boolean;
8004
8055
  isClosed: boolean;
8056
+ isCompleted: boolean;
8005
8057
  paymentsCount: number;
8006
8058
  lastScaleFactor: string;
8007
8059
  lastUpdatedTimestamp: number;
@@ -8025,6 +8077,7 @@ export type SubgraphWithdrawalBatchPropertiesWithEventsFragment = {
8025
8077
  totalNormalizedRequests: string;
8026
8078
  isExpired: boolean;
8027
8079
  isClosed: boolean;
8080
+ isCompleted: boolean;
8028
8081
  paymentsCount: number;
8029
8082
  lastScaleFactor: string;
8030
8083
  lastUpdatedTimestamp: number;
@@ -8633,6 +8686,14 @@ export type SubgraphGetAllPendingWithdrawalBatchesForMarketQuery = {
8633
8686
  withdrawalBatches: SubgraphWithdrawalBatchPropertiesWithEventsFragment[];
8634
8687
  } | null;
8635
8688
  };
8689
+ export type SubgraphGetIncompleteWithdrawalsForMarketQueryVariables = Exact<{
8690
+ market: Scalars["ID"]["input"];
8691
+ numWithdrawalBatches?: InputMaybe<Scalars["Int"]["input"]>;
8692
+ skipWithdrawalBatches?: InputMaybe<Scalars["Int"]["input"]>;
8693
+ orderWithdrawalBatches?: InputMaybe<SubgraphWithdrawalBatch_OrderBy>;
8694
+ directionWithdrawalBatches?: InputMaybe<SubgraphOrderDirection>;
8695
+ }>;
8696
+ export type SubgraphGetIncompleteWithdrawalsForMarketQuery = SubgraphGetAllPendingWithdrawalBatchesForMarketQuery;
8636
8697
  export type SubgraphGetAllMarketsQueryVariables = Exact<{
8637
8698
  [key: string]: never;
8638
8699
  }>;
@@ -8654,11 +8715,17 @@ export type SubgraphGetAuthorizedLendersByMarketQuery = {
8654
8715
  lender: string;
8655
8716
  authorized: boolean;
8656
8717
  changes: Array<{
8657
- __typename: "Change";
8718
+ __typename: "LenderAuthorizationChange";
8658
8719
  blockTimestamp: number;
8659
8720
  }>;
8660
8721
  }>;
8661
8722
  };
8723
+ lenders: Array<{
8724
+ __typename: "LenderAccount";
8725
+ address: string;
8726
+ scaledBalance: string;
8727
+ role: SubgraphLenderStatus;
8728
+ }>;
8662
8729
  } | null;
8663
8730
  };
8664
8731
  export type SubgraphGetAuthorizedLendersByBorrowerQueryVariables = Exact<{
@@ -9162,6 +9229,34 @@ export type GetAllPendingWithdrawalBatchesForMarketQueryHookResult = Apollo.Quer
9162
9229
  export type GetAllPendingWithdrawalBatchesForMarketLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetAllPendingWithdrawalBatchesForMarketQuery, SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables>;
9163
9230
  export type GetAllPendingWithdrawalBatchesForMarketSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetAllPendingWithdrawalBatchesForMarketQuery, SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables>;
9164
9231
  export type GetAllPendingWithdrawalBatchesForMarketQueryResult = Apollo.QueryResult<SubgraphGetAllPendingWithdrawalBatchesForMarketQuery, SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables>;
9232
+ export declare const GetIncompleteWithdrawalsForMarketDocument: Apollo.DocumentNode;
9233
+ /**
9234
+ * __useGetIncompleteWithdrawalsForMarketQuery__
9235
+ *
9236
+ * To run a query within a React component, call `useGetIncompleteWithdrawalsForMarketQuery` and pass it any options that fit your needs.
9237
+ * When your component renders, `useGetIncompleteWithdrawalsForMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
9238
+ * you can use to render your UI.
9239
+ *
9240
+ * @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;
9241
+ *
9242
+ * @example
9243
+ * const { data, loading, error } = useGetIncompleteWithdrawalsForMarketQuery({
9244
+ * variables: {
9245
+ * market: // value for 'market'
9246
+ * numWithdrawalBatches: // value for 'numWithdrawalBatches'
9247
+ * skipWithdrawalBatches: // value for 'skipWithdrawalBatches'
9248
+ * orderWithdrawalBatches: // value for 'orderWithdrawalBatches'
9249
+ * directionWithdrawalBatches: // value for 'directionWithdrawalBatches'
9250
+ * },
9251
+ * });
9252
+ */
9253
+ export declare function useGetIncompleteWithdrawalsForMarketQuery(baseOptions: Apollo.QueryHookOptions<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>): GetIncompleteWithdrawalsForMarketQueryHookResult;
9254
+ export declare function useGetIncompleteWithdrawalsForMarketLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>): GetIncompleteWithdrawalsForMarketLazyQueryHookResult;
9255
+ export declare function useGetIncompleteWithdrawalsForMarketSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>): GetIncompleteWithdrawalsForMarketSuspenseQueryHookResult;
9256
+ export type GetIncompleteWithdrawalsForMarketQueryHookResult = Apollo.QueryResult<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>;
9257
+ export type GetIncompleteWithdrawalsForMarketLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>;
9258
+ export type GetIncompleteWithdrawalsForMarketSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>;
9259
+ export type GetIncompleteWithdrawalsForMarketQueryResult = Apollo.QueryResult<SubgraphGetIncompleteWithdrawalsForMarketQuery, SubgraphGetIncompleteWithdrawalsForMarketQueryVariables>;
9165
9260
  export declare const GetAllMarketsDocument: Apollo.DocumentNode;
9166
9261
  /**
9167
9262
  * __useGetAllMarketsQuery__