@wildcatfi/wildcat-sdk 2.0.4 → 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 +131 -1
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +115 -2
- package/dist/gql/graphql.js.map +1 -1
- package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.d.ts +12 -2
- package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.d.ts.map +1 -1
- package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.js +2 -2
- package/dist/hooks/useAccountsWhereLenderAuthorizedOrActive.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/dist/market.d.ts +2 -1
- package/dist/market.d.ts.map +1 -1
- package/dist/market.js +6 -3
- package/dist/market.js.map +1 -1
- package/package.json +1 -1
package/dist/gql/graphql.d.ts
CHANGED
|
@@ -7026,6 +7026,14 @@ export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQueryVariables = Exa
|
|
|
7026
7026
|
directionDeposits?: InputMaybe<SubgraphOrderDirection>;
|
|
7027
7027
|
numWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7028
7028
|
skipWithdrawals?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7029
|
+
numBorrows?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7030
|
+
skipBorrows?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7031
|
+
orderBorrows?: InputMaybe<SubgraphBorrow_OrderBy>;
|
|
7032
|
+
directionBorrows?: InputMaybe<SubgraphOrderDirection>;
|
|
7033
|
+
numRepayments?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7034
|
+
skipRepayments?: InputMaybe<Scalars["Int"]["input"]>;
|
|
7035
|
+
orderRepayments?: InputMaybe<SubgraphDebtRepaid_OrderBy>;
|
|
7036
|
+
directionRepayments?: InputMaybe<SubgraphOrderDirection>;
|
|
7029
7037
|
}>;
|
|
7030
7038
|
export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQuery = {
|
|
7031
7039
|
__typename?: "Query";
|
|
@@ -7040,7 +7048,58 @@ export type SubgraphGetAccountsWhereLenderAuthorizedOrActiveQuery = {
|
|
|
7040
7048
|
lastUpdatedTimestamp: number;
|
|
7041
7049
|
totalInterestEarned: string;
|
|
7042
7050
|
numPendingWithdrawalBatches: number;
|
|
7043
|
-
market:
|
|
7051
|
+
market: {
|
|
7052
|
+
__typename?: "Market";
|
|
7053
|
+
id: string;
|
|
7054
|
+
isRegistered: boolean;
|
|
7055
|
+
isClosed: boolean;
|
|
7056
|
+
borrower: string;
|
|
7057
|
+
sentinel: string;
|
|
7058
|
+
feeRecipient: string;
|
|
7059
|
+
name: string;
|
|
7060
|
+
symbol: string;
|
|
7061
|
+
decimals: number;
|
|
7062
|
+
protocolFeeBips: number;
|
|
7063
|
+
delinquencyGracePeriod: number;
|
|
7064
|
+
delinquencyFeeBips: number;
|
|
7065
|
+
withdrawalBatchDuration: number;
|
|
7066
|
+
maxTotalSupply: string;
|
|
7067
|
+
pendingProtocolFees: string;
|
|
7068
|
+
normalizedUnclaimedWithdrawals: string;
|
|
7069
|
+
scaledTotalSupply: string;
|
|
7070
|
+
scaledPendingWithdrawals: string;
|
|
7071
|
+
pendingWithdrawalExpiry: string;
|
|
7072
|
+
isDelinquent: boolean;
|
|
7073
|
+
timeDelinquent: number;
|
|
7074
|
+
annualInterestBips: number;
|
|
7075
|
+
reserveRatioBips: number;
|
|
7076
|
+
scaleFactor: string;
|
|
7077
|
+
lastInterestAccruedTimestamp: number;
|
|
7078
|
+
originalReserveRatioBips: number;
|
|
7079
|
+
temporaryReserveRatioExpiry: number;
|
|
7080
|
+
temporaryReserveRatioActive: boolean;
|
|
7081
|
+
totalBorrowed: string;
|
|
7082
|
+
totalRepaid: string;
|
|
7083
|
+
totalBaseInterestAccrued: string;
|
|
7084
|
+
totalDelinquencyFeesAccrued: string;
|
|
7085
|
+
totalProtocolFeesAccrued: string;
|
|
7086
|
+
totalDeposited: string;
|
|
7087
|
+
borrowRecords: SubgraphBorrowDataFragment[];
|
|
7088
|
+
repaymentRecords: SubgraphRepaymentDataFragment[];
|
|
7089
|
+
controller: {
|
|
7090
|
+
__typename?: "Controller";
|
|
7091
|
+
id: string;
|
|
7092
|
+
};
|
|
7093
|
+
_asset: {
|
|
7094
|
+
__typename?: "Token";
|
|
7095
|
+
id: string;
|
|
7096
|
+
address: string;
|
|
7097
|
+
name: string;
|
|
7098
|
+
symbol: string;
|
|
7099
|
+
decimals: number;
|
|
7100
|
+
isMock: boolean;
|
|
7101
|
+
};
|
|
7102
|
+
};
|
|
7044
7103
|
controllerAuthorization: {
|
|
7045
7104
|
__typename?: "LenderAuthorization";
|
|
7046
7105
|
authorized: boolean;
|
|
@@ -7156,6 +7215,29 @@ export type SubgraphGetMarketsForBorrowerQuery = {
|
|
|
7156
7215
|
markets: SubgraphMarketDataWithEventsFragment[];
|
|
7157
7216
|
}>;
|
|
7158
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
|
+
};
|
|
7159
7241
|
export type SubgraphGetAllPendingWithdrawalBatchesForMarketQueryVariables = Exact<{
|
|
7160
7242
|
market: Scalars["ID"]["input"];
|
|
7161
7243
|
}>;
|
|
@@ -7577,6 +7659,14 @@ export declare const GetAccountsWhereLenderAuthorizedOrActiveDocument: Apollo.Do
|
|
|
7577
7659
|
* directionDeposits: // value for 'directionDeposits'
|
|
7578
7660
|
* numWithdrawals: // value for 'numWithdrawals'
|
|
7579
7661
|
* skipWithdrawals: // value for 'skipWithdrawals'
|
|
7662
|
+
* numBorrows: // value for 'numBorrows'
|
|
7663
|
+
* skipBorrows: // value for 'skipBorrows'
|
|
7664
|
+
* orderBorrows: // value for 'orderBorrows'
|
|
7665
|
+
* directionBorrows: // value for 'directionBorrows'
|
|
7666
|
+
* numRepayments: // value for 'numRepayments'
|
|
7667
|
+
* skipRepayments: // value for 'skipRepayments'
|
|
7668
|
+
* orderRepayments: // value for 'orderRepayments'
|
|
7669
|
+
* directionRepayments: // value for 'directionRepayments'
|
|
7580
7670
|
* },
|
|
7581
7671
|
* });
|
|
7582
7672
|
*/
|
|
@@ -7710,6 +7800,46 @@ export type GetMarketsForBorrowerQueryHookResult = Apollo.QueryResult<SubgraphGe
|
|
|
7710
7800
|
export type GetMarketsForBorrowerLazyQueryHookResult = Apollo.LazyQueryResultTuple<SubgraphGetMarketsForBorrowerQuery, SubgraphGetMarketsForBorrowerQueryVariables>;
|
|
7711
7801
|
export type GetMarketsForBorrowerSuspenseQueryHookResult = Apollo.UseSuspenseQueryResult<SubgraphGetMarketsForBorrowerQuery, SubgraphGetMarketsForBorrowerQueryVariables>;
|
|
7712
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>;
|
|
7713
7843
|
export declare const GetAllPendingWithdrawalBatchesForMarketDocument: Apollo.DocumentNode;
|
|
7714
7844
|
/**
|
|
7715
7845
|
* __useGetAllPendingWithdrawalBatchesForMarketQuery__
|