@wildcatfi/wildcat-sdk 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gql/graphql.d.ts +63 -0
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +81 -2
- package/dist/gql/graphql.js.map +1 -1
- package/dist/hooks/useMarket.d.ts +6 -6
- package/dist/hooks/useMarket.d.ts.map +1 -1
- package/dist/hooks/useMarket.js +44 -7
- package/dist/hooks/useMarket.js.map +1 -1
- package/package.json +1 -1
package/dist/gql/graphql.d.ts
CHANGED
|
@@ -7215,6 +7215,29 @@ export type SubgraphGetMarketsForBorrowerQuery = {
|
|
|
7215
7215
|
markets: SubgraphMarketDataWithEventsFragment[];
|
|
7216
7216
|
}>;
|
|
7217
7217
|
};
|
|
7218
|
+
export type SubgraphGetMarketQueryVariables = Exact<{
|
|
7219
|
+
market: Scalars["ID"]["input"];
|
|
7220
|
+
numDeposits?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7221
|
+
skipDeposits?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7222
|
+
orderDeposits?: InputMaybe<SubgraphDeposit_OrderBy>;
|
|
7223
|
+
directionDeposits?: InputMaybe<SubgraphOrderDirection>;
|
|
7224
|
+
numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7225
|
+
skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7226
|
+
orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
|
|
7227
|
+
directionBorrows?: InputMaybe<SubgraphOrderDirection>;
|
|
7228
|
+
numFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7229
|
+
skipFeeCollections?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7230
|
+
orderFeeCollections?: InputMaybe<SubgraphFeesCollected_OrderBy>;
|
|
7231
|
+
directionFeeCollections?: InputMaybe<SubgraphOrderDirection>;
|
|
7232
|
+
numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7233
|
+
skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7234
|
+
orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
|
|
7235
|
+
directionRepayments?: InputMaybe<SubgraphOrderDirection>;
|
|
7236
|
+
}>;
|
|
7237
|
+
export type SubgraphGetMarketQuery = {
|
|
7238
|
+
__typename?: "Query";
|
|
7239
|
+
market?: SubgraphMarketDataWithEventsFragment | null;
|
|
7240
|
+
};
|
|
7218
7241
|
export type SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables = Exact<{
|
|
7219
7242
|
market: Scalars["ID"]["input"];
|
|
7220
7243
|
}>;
|
|
@@ -7777,6 +7800,46 @@ export type GetMarketsForBorrowerQueryHookResult = Apollo.QueryResult<SubgraphGe
|
|
|
7777
7800
|
export type GetMarketsForBorrowerLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetMarketsForBorrowerQuery, SubgraphGetMarketsForBorrowerQueryVariables>;
|
|
7778
7801
|
export type GetMarketsForBorrowerSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetMarketsForBorrowerQuery, SubgraphGetMarketsForBorrowerQueryVariables>;
|
|
7779
7802
|
export type GetMarketsForBorrowerQueryResult = Apollo.QueryResult<SubgraphGetMarketsForBorrowerQuery, SubgraphGetMarketsForBorrowerQueryVariables>;
|
|
7803
|
+
export declare const GetMarketDocument: Apollo.DocumentNode;
|
|
7804
|
+
/**
|
|
7805
|
+
* __useGetMarketQuery__
|
|
7806
|
+
*
|
|
7807
|
+
* To run a query within a React component, call `useGetMarketQuery` and pass it any options that fit your needs.
|
|
7808
|
+
* When your component renders, `useGetMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7809
|
+
* you can use to render your UI.
|
|
7810
|
+
*
|
|
7811
|
+
* @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;
|
|
7812
|
+
*
|
|
7813
|
+
* @example
|
|
7814
|
+
* const { data, loading, error } = useGetMarketQuery({
|
|
7815
|
+
* variables: {
|
|
7816
|
+
* market: // value for 'market'
|
|
7817
|
+
* numDeposits: // value for 'numDeposits'
|
|
7818
|
+
* skipDeposits: // value for 'skipDeposits'
|
|
7819
|
+
* orderDeposits: // value for 'orderDeposits'
|
|
7820
|
+
* directionDeposits: // value for 'directionDeposits'
|
|
7821
|
+
* numBorrows: // value for 'numBorrows'
|
|
7822
|
+
* skipBorrows: // value for 'skipBorrows'
|
|
7823
|
+
* orderBorrows: // value for 'orderBorrows'
|
|
7824
|
+
* directionBorrows: // value for 'directionBorrows'
|
|
7825
|
+
* numFeeCollections: // value for 'numFeeCollections'
|
|
7826
|
+
* skipFeeCollections: // value for 'skipFeeCollections'
|
|
7827
|
+
* orderFeeCollections: // value for 'orderFeeCollections'
|
|
7828
|
+
* directionFeeCollections: // value for 'directionFeeCollections'
|
|
7829
|
+
* numRepayments: // value for 'numRepayments'
|
|
7830
|
+
* skipRepayments: // value for 'skipRepayments'
|
|
7831
|
+
* orderRepayments: // value for 'orderRepayments'
|
|
7832
|
+
* directionRepayments: // value for 'directionRepayments'
|
|
7833
|
+
* },
|
|
7834
|
+
* });
|
|
7835
|
+
*/
|
|
7836
|
+
export declare function useGetMarketQuery(baseOptions: Apollo.QueryHookOptions<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>): GetMarketQueryHookResult;
|
|
7837
|
+
export declare function useGetMarketLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>): GetMarketLazyQueryHookResult;
|
|
7838
|
+
export declare function useGetMarketSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>): GetMarketSuspenseQueryHookResult;
|
|
7839
|
+
export type GetMarketQueryHookResult = Apollo.QueryResult<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>;
|
|
7840
|
+
export type GetMarketLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>;
|
|
7841
|
+
export type GetMarketSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>;
|
|
7842
|
+
export type GetMarketQueryResult = Apollo.QueryResult<SubgraphGetMarketQuery, SubgraphGetMarketQueryVariables>;
|
|
7780
7843
|
export declare const GetAllPendingWithdrawalBatchesForMarketDocument: Apollo.DocumentNode;
|
|
7781
7844
|
/**
|
|
7782
7845
|
* __useGetAllPendingWithdrawalBatchesForMarketQuery__
|