@wildcatfi/wildcat-sdk 2.0.51 → 2.0.53

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.
@@ -7168,6 +7168,113 @@ export type SubgraphGetLenderAccountWithMarketQuery = {
7168
7168
  deployedEvent: SubgraphMarketDeployedEventFragment;
7169
7169
  } | null;
7170
7170
  };
7171
+ export type SubgraphGetAllMarketsForLenderViewQueryVariables = Exact<{
7172
+ lender?: InputMaybe<Scalars["Bytes"]["input"]>;
7173
+ numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7174
+ skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7175
+ orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7176
+ directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7177
+ numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7178
+ skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7179
+ numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7180
+ skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7181
+ orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
7182
+ directionBorrows?: InputMaybe<SubgraphOrderDirection>;
7183
+ numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7184
+ skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7185
+ orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
7186
+ directionRepayments?: InputMaybe<SubgraphOrderDirection>;
7187
+ }>;
7188
+ export type SubgraphGetAllMarketsForLenderViewQuery = {
7189
+ __typename?: "Query";
7190
+ markets: Array<{
7191
+ __typename?: "Market";
7192
+ id: string;
7193
+ isRegistered: boolean;
7194
+ isClosed: boolean;
7195
+ borrower: string;
7196
+ sentinel: string;
7197
+ feeRecipient: string;
7198
+ name: string;
7199
+ symbol: string;
7200
+ decimals: number;
7201
+ protocolFeeBips: number;
7202
+ delinquencyGracePeriod: number;
7203
+ delinquencyFeeBips: number;
7204
+ withdrawalBatchDuration: number;
7205
+ maxTotalSupply: string;
7206
+ pendingProtocolFees: string;
7207
+ normalizedUnclaimedWithdrawals: string;
7208
+ scaledTotalSupply: string;
7209
+ scaledPendingWithdrawals: string;
7210
+ pendingWithdrawalExpiry: string;
7211
+ isDelinquent: boolean;
7212
+ timeDelinquent: number;
7213
+ annualInterestBips: number;
7214
+ reserveRatioBips: number;
7215
+ scaleFactor: string;
7216
+ lastInterestAccruedTimestamp: number;
7217
+ originalAnnualInterestBips: number;
7218
+ originalReserveRatioBips: number;
7219
+ temporaryReserveRatioExpiry: number;
7220
+ temporaryReserveRatioActive: boolean;
7221
+ totalBorrowed: string;
7222
+ totalRepaid: string;
7223
+ totalBaseInterestAccrued: string;
7224
+ totalDelinquencyFeesAccrued: string;
7225
+ totalProtocolFeesAccrued: string;
7226
+ totalDeposited: string;
7227
+ borrowRecords: SubgraphBorrowDataFragment[];
7228
+ repaymentRecords: SubgraphRepaymentDataFragment[];
7229
+ controller: {
7230
+ __typename?: "Controller";
7231
+ id: string;
7232
+ };
7233
+ _asset: {
7234
+ __typename?: "Token";
7235
+ id: string;
7236
+ address: string;
7237
+ name: string;
7238
+ symbol: string;
7239
+ decimals: number;
7240
+ isMock: boolean;
7241
+ };
7242
+ deployedEvent: SubgraphMarketDeployedEventFragment;
7243
+ }>;
7244
+ lenderAccounts: Array<{
7245
+ __typename?: "LenderAccount";
7246
+ id: string;
7247
+ address: string;
7248
+ scaledBalance: string;
7249
+ role: SubgraphLenderStatus;
7250
+ totalDeposited: string;
7251
+ lastScaleFactor: string;
7252
+ lastUpdatedTimestamp: number;
7253
+ totalInterestEarned: string;
7254
+ numPendingWithdrawalBatches: number;
7255
+ market: {
7256
+ __typename?: "Market";
7257
+ id: string;
7258
+ };
7259
+ controllerAuthorization: {
7260
+ __typename?: "LenderAuthorization";
7261
+ authorized: boolean;
7262
+ };
7263
+ deposits: SubgraphDepositDataFragment[];
7264
+ }>;
7265
+ controllerAuthorizations: Array<{
7266
+ __typename?: "LenderAuthorization";
7267
+ lender: string;
7268
+ authorized: boolean;
7269
+ controller: {
7270
+ __typename?: "Controller";
7271
+ markets: Array<{
7272
+ __typename?: "Market";
7273
+ id: string;
7274
+ }>;
7275
+ };
7276
+ }>;
7277
+ };
7171
7278
  export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQueryVariables = Exact<{
7172
7279
  lender: Scalars["Bytes"]["input"];
7173
7280
  numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
@@ -7923,6 +8030,44 @@ export type GetLenderAccountWithMarketQueryHookResult = Apollo.QueryResult<Subgr
7923
8030
  export type GetLenderAccountWithMarketLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
7924
8031
  export type GetLenderAccountWithMarketSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
7925
8032
  export type GetLenderAccountWithMarketQueryResult = Apollo.QueryResult<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
8033
+ export declare const GetAllMarketsForLenderViewDocument: Apollo.DocumentNode;
8034
+ /**
8035
+ * __useGetAllMarketsForLenderViewQuery__
8036
+ *
8037
+ * To run a query within a React component, call `useGetAllMarketsForLenderViewQuery` and pass it any options that fit your needs.
8038
+ * When your component renders, `useGetAllMarketsForLenderViewQuery` returns an object from Apollo Client that contains loading, error, and data properties
8039
+ * you can use to render your UI.
8040
+ *
8041
+ * @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;
8042
+ *
8043
+ * @example
8044
+ * const { data, loading, error } = useGetAllMarketsForLenderViewQuery({
8045
+ * variables: {
8046
+ * lender: // value for 'lender'
8047
+ * numDeposits: // value for 'numDeposits'
8048
+ * skipDeposits: // value for 'skipDeposits'
8049
+ * orderDeposits: // value for 'orderDeposits'
8050
+ * directionDeposits: // value for 'directionDeposits'
8051
+ * numWithdrawals: // value for 'numWithdrawals'
8052
+ * skipWithdrawals: // value for 'skipWithdrawals'
8053
+ * numBorrows: // value for 'numBorrows'
8054
+ * skipBorrows: // value for 'skipBorrows'
8055
+ * orderBorrows: // value for 'orderBorrows'
8056
+ * directionBorrows: // value for 'directionBorrows'
8057
+ * numRepayments: // value for 'numRepayments'
8058
+ * skipRepayments: // value for 'skipRepayments'
8059
+ * orderRepayments: // value for 'orderRepayments'
8060
+ * directionRepayments: // value for 'directionRepayments'
8061
+ * },
8062
+ * });
8063
+ */
8064
+ export declare function useGetAllMarketsForLenderViewQuery(baseOptions?: Apollo.QueryHookOptions<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>): GetAllMarketsForLenderViewQueryHookResult;
8065
+ export declare function useGetAllMarketsForLenderViewLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>): GetAllMarketsForLenderViewLazyQueryHookResult;
8066
+ export declare function useGetAllMarketsForLenderViewSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>): GetAllMarketsForLenderViewSuspenseQueryHookResult;
8067
+ export type GetAllMarketsForLenderViewQueryHookResult = Apollo.QueryResult<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>;
8068
+ export type GetAllMarketsForLenderViewLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>;
8069
+ export type GetAllMarketsForLenderViewSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>;
8070
+ export type GetAllMarketsForLenderViewQueryResult = Apollo.QueryResult<SubgraphGetAllMarketsForLenderViewQuery, SubgraphGetAllMarketsForLenderViewQueryVariables>;
7926
8071
  export declare const GetAccountsWhereLenderAuthorizedOrActiveDocument: Apollo.DocumentNode;
7927
8072
  /**
7928
8073
  * __useGetAccountsWhereLenderAuthorizedOrActiveQuery__