@wildcatfi/wildcat-sdk 3.0.37 → 3.0.38
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/getAllTokensWithMarkets.d.ts +4 -0
- package/dist/gql/getAllTokensWithMarkets.d.ts.map +1 -0
- package/dist/gql/getAllTokensWithMarkets.js +12 -0
- package/dist/gql/getAllTokensWithMarkets.js.map +1 -0
- package/dist/gql/graphql.d.ts +25 -0
- package/dist/gql/graphql.d.ts.map +1 -1
- package/dist/gql/graphql.js +12 -0
- package/dist/gql/graphql.js.map +1 -1
- package/dist/gql/index.d.ts +1 -0
- package/dist/gql/index.d.ts.map +1 -1
- package/dist/gql/index.js +1 -0
- package/dist/gql/index.js.map +1 -1
- package/package.json +2 -3
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
|
|
2
|
+
import { SubgraphGetAllTokensWithMarketsQuery } from "./graphql";
|
|
3
|
+
export declare function getAllTokensWithMarkets(subgraphClient: ApolloClient<NormalizedCacheObject>): Promise<SubgraphGetAllTokensWithMarketsQuery["tokens"]>;
|
|
4
|
+
//# sourceMappingURL=getAllTokensWithMarkets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllTokensWithMarkets.d.ts","sourceRoot":"","sources":["../../src/gql/getAllTokensWithMarkets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAEL,oCAAoC,EAErC,MAAM,WAAW,CAAC;AAEnB,wBAAsB,uBAAuB,CAC3C,cAAc,EAAE,YAAY,CAAC,qBAAqB,CAAC,GAClD,OAAO,CAAC,oCAAoC,CAAC,QAAQ,CAAC,CAAC,CAQzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllTokensWithMarkets = void 0;
|
|
4
|
+
const graphql_1 = require("./graphql");
|
|
5
|
+
async function getAllTokensWithMarkets(subgraphClient) {
|
|
6
|
+
const { data } = await subgraphClient.query({
|
|
7
|
+
query: graphql_1.GetAllTokensWithMarketsDocument
|
|
8
|
+
});
|
|
9
|
+
return data.tokens;
|
|
10
|
+
}
|
|
11
|
+
exports.getAllTokensWithMarkets = getAllTokensWithMarkets;
|
|
12
|
+
//# sourceMappingURL=getAllTokensWithMarkets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllTokensWithMarkets.js","sourceRoot":"","sources":["../../src/gql/getAllTokensWithMarkets.ts"],"names":[],"mappings":";;;AACA,uCAImB;AAEZ,KAAK,UAAU,uBAAuB,CAC3C,cAAmD;IAEnD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,cAAc,CAAC,KAAK,CAGzC;QACA,KAAK,EAAE,yCAA+B;KACvC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB,CAAC;AAVD,0DAUC"}
|
package/dist/gql/graphql.d.ts
CHANGED
|
@@ -5785,6 +5785,7 @@ export declare enum SubgraphLenderWithdrawalStatus_OrderBy {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
export type SubgraphMarket = {
|
|
5787
5787
|
__typename: "Market";
|
|
5788
|
+
accountMadeFirstDepositRecords: SubgraphAccountMadeFirstDeposit[];
|
|
5788
5789
|
annualInterestBips: Scalars["Int"]["output"];
|
|
5789
5790
|
annualInterestBipsUpdatedIndex: Scalars["Int"]["output"];
|
|
5790
5791
|
annualInterestBipsUpdatedRecords: SubgraphAnnualInterestBipsUpdated[];
|
|
@@ -5863,6 +5864,13 @@ export type SubgraphMarket = {
|
|
|
5863
5864
|
withdrawalRequestRecords: SubgraphWithdrawalRequest[];
|
|
5864
5865
|
withdrawalRequestsIndex: Scalars["Int"]["output"];
|
|
5865
5866
|
};
|
|
5867
|
+
export type SubgraphMarketAccountMadeFirstDepositRecordsArgs = {
|
|
5868
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
5869
|
+
orderBy?: InputMaybe<SubgraphAccountMadeFirstDeposit_OrderBy>;
|
|
5870
|
+
orderDirection?: InputMaybe<SubgraphOrderDirection>;
|
|
5871
|
+
skip?: InputMaybe<Scalars["Int"]["input"]>;
|
|
5872
|
+
where?: InputMaybe<SubgraphAccountMadeFirstDeposit_Filter>;
|
|
5873
|
+
};
|
|
5866
5874
|
export type SubgraphMarketAnnualInterestBipsUpdatedRecordsArgs = {
|
|
5867
5875
|
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
5868
5876
|
orderBy?: InputMaybe<SubgraphAnnualInterestBipsUpdated_OrderBy>;
|
|
@@ -6726,6 +6734,7 @@ export declare enum SubgraphMarketVersion {
|
|
|
6726
6734
|
export type SubgraphMarket_Filter = {
|
|
6727
6735
|
/** Filter for the block changed event. */
|
|
6728
6736
|
_change_block?: InputMaybe<SubgraphBlockChangedFilter>;
|
|
6737
|
+
accountMadeFirstDepositRecords_?: InputMaybe<SubgraphAccountMadeFirstDeposit_Filter>;
|
|
6729
6738
|
and?: InputMaybe<Array<InputMaybe<SubgraphMarket_Filter>>>;
|
|
6730
6739
|
annualInterestBips?: InputMaybe<Scalars["Int"]["input"]>;
|
|
6731
6740
|
annualInterestBipsUpdatedIndex?: InputMaybe<Scalars["Int"]["input"]>;
|
|
@@ -7290,6 +7299,7 @@ export type SubgraphMarket_Filter = {
|
|
|
7290
7299
|
withdrawalRequestsIndex_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
7291
7300
|
};
|
|
7292
7301
|
export declare enum SubgraphMarket_OrderBy {
|
|
7302
|
+
AccountMadeFirstDepositRecords = "accountMadeFirstDepositRecords",
|
|
7293
7303
|
AnnualInterestBips = "annualInterestBips",
|
|
7294
7304
|
AnnualInterestBipsUpdatedIndex = "annualInterestBipsUpdatedIndex",
|
|
7295
7305
|
AnnualInterestBipsUpdatedRecords = "annualInterestBipsUpdatedRecords",
|
|
@@ -14038,6 +14048,19 @@ export type SubgraphGetMarketRecordsQuery = {
|
|
|
14038
14048
|
__typename: "Query";
|
|
14039
14049
|
market?: SubgraphMarketRecordsFragment | null;
|
|
14040
14050
|
};
|
|
14051
|
+
export type SubgraphGetAllTokensWithMarketsQueryVariables = Exact<{
|
|
14052
|
+
[key: string]: never;
|
|
14053
|
+
}>;
|
|
14054
|
+
export type SubgraphGetAllTokensWithMarketsQuery = {
|
|
14055
|
+
__typename: "Query";
|
|
14056
|
+
tokens: Array<{
|
|
14057
|
+
__typename: "Token";
|
|
14058
|
+
address: string;
|
|
14059
|
+
name: string;
|
|
14060
|
+
symbol: string;
|
|
14061
|
+
decimals: number;
|
|
14062
|
+
}>;
|
|
14063
|
+
};
|
|
14041
14064
|
export declare const LenderPropertiesFragmentDoc: Apollo.DocumentNode;
|
|
14042
14065
|
export declare const RoleProviderDataFragmentDoc: Apollo.DocumentNode;
|
|
14043
14066
|
export declare const LenderHooksAccessDataFragmentDoc: Apollo.DocumentNode;
|
|
@@ -14133,4 +14156,6 @@ export declare const GetSubgraphStatusDocument: Apollo.DocumentNode;
|
|
|
14133
14156
|
export type GetSubgraphStatusQueryResult = Apollo.QueryResult<SubgraphGetSubgraphStatusQuery, SubgraphGetSubgraphStatusQueryVariables>;
|
|
14134
14157
|
export declare const GetMarketRecordsDocument: Apollo.DocumentNode;
|
|
14135
14158
|
export type GetMarketRecordsQueryResult = Apollo.QueryResult<SubgraphGetMarketRecordsQuery, SubgraphGetMarketRecordsQueryVariables>;
|
|
14159
|
+
export declare const GetAllTokensWithMarketsDocument: Apollo.DocumentNode;
|
|
14160
|
+
export type GetAllTokensWithMarketsQueryResult = Apollo.QueryResult<SubgraphGetAllTokensWithMarketsQuery, SubgraphGetAllTokensWithMarketsQueryVariables>;
|
|
14136
14161
|
//# sourceMappingURL=graphql.d.ts.map
|