@wildcatfi/wildcat-sdk 2.0.7 → 2.0.10

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 (34) hide show
  1. package/dist/gql/graphql.d.ts +116 -19
  2. package/dist/gql/graphql.d.ts.map +1 -1
  3. package/dist/gql/graphql.js +107 -13
  4. package/dist/gql/graphql.js.map +1 -1
  5. package/dist/hooks/index.d.ts +1 -0
  6. package/dist/hooks/index.d.ts.map +1 -1
  7. package/dist/hooks/index.js +1 -0
  8. package/dist/hooks/index.js.map +1 -1
  9. package/dist/hooks/types.d.ts +2 -3
  10. package/dist/hooks/types.d.ts.map +1 -1
  11. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js +4 -4
  12. package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js.map +1 -1
  13. package/dist/hooks/useAllPendingWithdrawalBatchesForMarket.js +4 -4
  14. package/dist/hooks/useAllPendingWithdrawalBatchesForMarket.js.map +1 -1
  15. package/dist/hooks/useGetAccountWithMarket.d.ts +12 -0
  16. package/dist/hooks/useGetAccountWithMarket.d.ts.map +1 -0
  17. package/dist/hooks/useGetAccountWithMarket.js +59 -0
  18. package/dist/hooks/useGetAccountWithMarket.js.map +1 -0
  19. package/dist/hooks/useLenderAccount.d.ts.map +1 -1
  20. package/dist/hooks/useLenderAccount.js +8 -8
  21. package/dist/hooks/useLenderAccount.js.map +1 -1
  22. package/dist/hooks/useLenderWithdrawalsForMarket.js +4 -4
  23. package/dist/hooks/useLenderWithdrawalsForMarket.js.map +1 -1
  24. package/dist/hooks/useMarket.js +4 -4
  25. package/dist/hooks/useMarket.js.map +1 -1
  26. package/dist/hooks/useMarketsForBorrower.js +4 -4
  27. package/dist/hooks/useMarketsForBorrower.js.map +1 -1
  28. package/dist/withdrawal-batch.d.ts +2 -2
  29. package/dist/withdrawal-batch.d.ts.map +1 -1
  30. package/dist/withdrawal-batch.js.map +1 -1
  31. package/dist/withdrawal-status.d.ts +4 -4
  32. package/dist/withdrawal-status.d.ts.map +1 -1
  33. package/dist/withdrawal-status.js.map +1 -1
  34. package/package.json +9 -9
@@ -7018,6 +7018,80 @@ export type SubgraphGetLenderAccountForMarketQuery = {
7018
7018
  lenders: SubgraphAccountDataForLenderViewFragment[];
7019
7019
  } | null;
7020
7020
  };
7021
+ export type SubgraphGetLenderAccountWithMarketQueryVariables = Exact<{
7022
+ market: Scalars["ID"]["input"];
7023
+ lender: Scalars["Bytes"]["input"];
7024
+ numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7025
+ skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
7026
+ orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
7027
+ directionDeposits?: InputMaybe<SubgraphOrderDirection>;
7028
+ numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7029
+ skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
7030
+ numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7031
+ skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
7032
+ orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
7033
+ directionBorrows?: InputMaybe<SubgraphOrderDirection>;
7034
+ numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7035
+ skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
7036
+ orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
7037
+ directionRepayments?: InputMaybe<SubgraphOrderDirection>;
7038
+ }>;
7039
+ export type SubgraphGetLenderAccountWithMarketQuery = {
7040
+ __typename?: "Query";
7041
+ market?: {
7042
+ __typename?: "Market";
7043
+ id: string;
7044
+ isRegistered: boolean;
7045
+ isClosed: boolean;
7046
+ borrower: string;
7047
+ sentinel: string;
7048
+ feeRecipient: string;
7049
+ name: string;
7050
+ symbol: string;
7051
+ decimals: number;
7052
+ protocolFeeBips: number;
7053
+ delinquencyGracePeriod: number;
7054
+ delinquencyFeeBips: number;
7055
+ withdrawalBatchDuration: number;
7056
+ maxTotalSupply: string;
7057
+ pendingProtocolFees: string;
7058
+ normalizedUnclaimedWithdrawals: string;
7059
+ scaledTotalSupply: string;
7060
+ scaledPendingWithdrawals: string;
7061
+ pendingWithdrawalExpiry: string;
7062
+ isDelinquent: boolean;
7063
+ timeDelinquent: number;
7064
+ annualInterestBips: number;
7065
+ reserveRatioBips: number;
7066
+ scaleFactor: string;
7067
+ lastInterestAccruedTimestamp: number;
7068
+ originalReserveRatioBips: number;
7069
+ temporaryReserveRatioExpiry: number;
7070
+ temporaryReserveRatioActive: boolean;
7071
+ totalBorrowed: string;
7072
+ totalRepaid: string;
7073
+ totalBaseInterestAccrued: string;
7074
+ totalDelinquencyFeesAccrued: string;
7075
+ totalProtocolFeesAccrued: string;
7076
+ totalDeposited: string;
7077
+ lenders: SubgraphAccountDataForLenderViewFragment[];
7078
+ borrowRecords: SubgraphBorrowDataFragment[];
7079
+ repaymentRecords: SubgraphRepaymentDataFragment[];
7080
+ controller: {
7081
+ __typename?: "Controller";
7082
+ id: string;
7083
+ };
7084
+ _asset: {
7085
+ __typename?: "Token";
7086
+ id: string;
7087
+ address: string;
7088
+ name: string;
7089
+ symbol: string;
7090
+ decimals: number;
7091
+ isMock: boolean;
7092
+ };
7093
+ } | null;
7094
+ };
7021
7095
  export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQueryVariables = Exact<{
7022
7096
  lender: Scalars["Bytes"]["input"];
7023
7097
  numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
@@ -7169,23 +7243,7 @@ export type SubgraphGetMarketsAndLogsWhereLenderAuthorizedOrActiveQuery = {
7169
7243
  __typename?: "LenderAuthorization";
7170
7244
  authorized: boolean;
7171
7245
  };
7172
- withdrawals: Array<{
7173
- __typename?: "LenderWithdrawalStatus";
7174
- id: string;
7175
- requestsCount: number;
7176
- executionsCount: number;
7177
- scaledAmount: string;
7178
- normalizedAmountWithdrawn: string;
7179
- totalNormalizedRequests: string;
7180
- isCompleted: boolean;
7181
- batch: SubgraphWithdrawalBatchPropertiesFragment;
7182
- requests: SubgraphWithdrawalRequestPropertiesFragment[];
7183
- executions: SubgraphWithdrawalExecutionPropertiesFragment[];
7184
- account: {
7185
- __typename?: "LenderAccount";
7186
- address: string;
7187
- };
7188
- }>;
7246
+ withdrawals: SubgraphLenderWithdrawalPropertiesWithEventsFragment[];
7189
7247
  deposits: SubgraphDepositDataFragment[];
7190
7248
  }>;
7191
7249
  };
@@ -7483,7 +7541,7 @@ export type SubgraphLenderWithdrawalPropertiesWithEventsFragment = {
7483
7541
  normalizedAmountWithdrawn: string;
7484
7542
  totalNormalizedRequests: string;
7485
7543
  isCompleted: boolean;
7486
- batch: SubgraphWithdrawalBatchPropertiesWithEventsFragment;
7544
+ batch: SubgraphWithdrawalBatchPropertiesFragment;
7487
7545
  requests: SubgraphWithdrawalRequestPropertiesFragment[];
7488
7546
  executions: SubgraphWithdrawalExecutionPropertiesFragment[];
7489
7547
  account: {
@@ -7606,8 +7664,8 @@ export declare const WithdrawalBatchPaymentPropertiesFragmentDoc: Apollo.Documen
7606
7664
  export declare const WithdrawalBatchPropertiesFragmentDoc: Apollo.DocumentNode;
7607
7665
  export declare const WithdrawalRequestPropertiesFragmentDoc: Apollo.DocumentNode;
7608
7666
  export declare const WithdrawalExecutionPropertiesFragmentDoc: Apollo.DocumentNode;
7609
- export declare const WithdrawalBatchPropertiesWithEventsFragmentDoc: Apollo.DocumentNode;
7610
7667
  export declare const LenderWithdrawalPropertiesWithEventsFragmentDoc: Apollo.DocumentNode;
7668
+ export declare const WithdrawalBatchPropertiesWithEventsFragmentDoc: Apollo.DocumentNode;
7611
7669
  export declare const GetLenderAccountForMarketDocument: Apollo.DocumentNode;
7612
7670
  /**
7613
7671
  * __useGetLenderAccountForMarketQuery__
@@ -7639,6 +7697,45 @@ export type GetLenderAccountForMarketQueryHookResult = Apollo.QueryResult<Subgra
7639
7697
  export type GetLenderAccountForMarketLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetLenderAccountForMarketQuery, SubgraphGetLenderAccountForMarketQueryVariables>;
7640
7698
  export type GetLenderAccountForMarketSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetLenderAccountForMarketQuery, SubgraphGetLenderAccountForMarketQueryVariables>;
7641
7699
  export type GetLenderAccountForMarketQueryResult = Apollo.QueryResult<SubgraphGetLenderAccountForMarketQuery, SubgraphGetLenderAccountForMarketQueryVariables>;
7700
+ export declare const GetLenderAccountWithMarketDocument: Apollo.DocumentNode;
7701
+ /**
7702
+ * __useGetLenderAccountWithMarketQuery__
7703
+ *
7704
+ * To run a query within a React component, call `useGetLenderAccountWithMarketQuery` and pass it any options that fit your needs.
7705
+ * When your component renders, `useGetLenderAccountWithMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
7706
+ * you can use to render your UI.
7707
+ *
7708
+ * @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;
7709
+ *
7710
+ * @example
7711
+ * const { data, loading, error } = useGetLenderAccountWithMarketQuery({
7712
+ * variables: {
7713
+ * market: // value for 'market'
7714
+ * lender: // value for 'lender'
7715
+ * numDeposits: // value for 'numDeposits'
7716
+ * skipDeposits: // value for 'skipDeposits'
7717
+ * orderDeposits: // value for 'orderDeposits'
7718
+ * directionDeposits: // value for 'directionDeposits'
7719
+ * numWithdrawals: // value for 'numWithdrawals'
7720
+ * skipWithdrawals: // value for 'skipWithdrawals'
7721
+ * numBorrows: // value for 'numBorrows'
7722
+ * skipBorrows: // value for 'skipBorrows'
7723
+ * orderBorrows: // value for 'orderBorrows'
7724
+ * directionBorrows: // value for 'directionBorrows'
7725
+ * numRepayments: // value for 'numRepayments'
7726
+ * skipRepayments: // value for 'skipRepayments'
7727
+ * orderRepayments: // value for 'orderRepayments'
7728
+ * directionRepayments: // value for 'directionRepayments'
7729
+ * },
7730
+ * });
7731
+ */
7732
+ export declare function useGetLenderAccountWithMarketQuery(baseOptions: Apollo.QueryHookOptions<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>): GetLenderAccountWithMarketQueryHookResult;
7733
+ export declare function useGetLenderAccountWithMarketLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>): GetLenderAccountWithMarketLazyQueryHookResult;
7734
+ export declare function useGetLenderAccountWithMarketSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>): GetLenderAccountWithMarketSuspenseQueryHookResult;
7735
+ export type GetLenderAccountWithMarketQueryHookResult = Apollo.QueryResult<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
7736
+ export type GetLenderAccountWithMarketLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
7737
+ export type GetLenderAccountWithMarketSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
7738
+ export type GetLenderAccountWithMarketQueryResult = Apollo.QueryResult<SubgraphGetLenderAccountWithMarketQuery, SubgraphGetLenderAccountWithMarketQueryVariables>;
7642
7739
  export declare const GetAccountsWhereLenderAuthorizedOrActiveDocument: Apollo.DocumentNode;
7643
7740
  /**
7644
7741
  * __useGetAccountsWhereLenderAuthorizedOrActiveQuery__