@dodoex/api 3.0.0-taiko.7 → 3.0.0-taiko.9
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/cjs/gql/gql.d.ts +8 -0
- package/dist/cjs/gql/graphql.d.ts +43 -0
- package/dist/cjs/helper/ContractRequests/batchProvider.d.ts +1 -1
- package/dist/cjs/helper/GraphQLRequests.d.ts +4 -4
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/services/TokenApi/graphqlQuery.d.ts +8 -0
- package/dist/cjs/services/TokenApi/index.d.ts +8 -0
- package/dist/gql/gql.d.ts +8 -0
- package/dist/gql/graphql.d.ts +43 -0
- package/dist/helper/ContractRequests/batchProvider.d.ts +1 -1
- package/dist/helper/GraphQLRequests.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/services/TokenApi/graphqlQuery.d.ts +8 -0
- package/dist/services/TokenApi/index.d.ts +8 -0
- package/package.json +8 -4
package/dist/cjs/gql/gql.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
|
+
*/
|
|
4
|
+
export declare function graphql(source: '\n query FetchErc20SwapCrossChainList($where: Erc20listV2Filter) {\n erc20_swapCrossChainList(where: $where) {\n name\n address\n symbol\n decimals\n slippage\n chainId\n logoImg\n tokenlists {\n name\n status\n }\n domains {\n name\n }\n funcLabels {\n key\n }\n attributeLabels {\n key\n }\n }\n }\n '): typeof import('./graphql').FetchErc20SwapCrossChainListDocument;
|
|
5
|
+
/**
|
|
6
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
7
|
+
*/
|
|
8
|
+
export declare function graphql(source: '\n query FetchErc20ForecastSlippage($where: Erc20_extenderc20ExtendV2Filter) {\n erc20_extend_erc20ExtendV2(where: $where) {\n forecastSlippageList {\n forecastSlippage\n forecastValue\n confidenceRatio\n confidenceIntervalUpper\n confidenceIntervalLower\n }\n }\n }\n '): typeof import('./graphql').FetchErc20ForecastSlippageDocument;
|
|
1
9
|
/**
|
|
2
10
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
11
|
*/
|
|
@@ -20225,6 +20225,47 @@ export type VDodo_Filter = {
|
|
|
20225
20225
|
totalUsers_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
20226
20226
|
};
|
|
20227
20227
|
export type VDodo_OrderBy = 'burnAmount' | 'chain' | 'decimals' | 'dodo' | 'dodoBalance' | 'dodoPerBlock' | 'feeAmount' | 'id' | 'mintAmount' | 'name' | 'redeemAmount' | 'symbol' | 'totalBlockDistribution' | 'totalBlockReward' | 'totalDonate' | 'totalStakingPower' | 'totalUsers';
|
|
20228
|
+
export type FetchErc20SwapCrossChainListQueryVariables = Exact<{
|
|
20229
|
+
where?: InputMaybe<Erc20listV2Filter>;
|
|
20230
|
+
}>;
|
|
20231
|
+
export type FetchErc20SwapCrossChainListQuery = {
|
|
20232
|
+
erc20_swapCrossChainList?: Array<{
|
|
20233
|
+
name?: string | null;
|
|
20234
|
+
address?: string | null;
|
|
20235
|
+
symbol?: string | null;
|
|
20236
|
+
decimals?: number | null;
|
|
20237
|
+
slippage?: string | null;
|
|
20238
|
+
chainId?: number | null;
|
|
20239
|
+
logoImg?: string | null;
|
|
20240
|
+
tokenlists?: Array<{
|
|
20241
|
+
name?: string | null;
|
|
20242
|
+
status?: string | null;
|
|
20243
|
+
} | null> | null;
|
|
20244
|
+
domains?: Array<{
|
|
20245
|
+
name?: string | null;
|
|
20246
|
+
} | null> | null;
|
|
20247
|
+
funcLabels?: Array<{
|
|
20248
|
+
key?: string | null;
|
|
20249
|
+
} | null> | null;
|
|
20250
|
+
attributeLabels?: Array<{
|
|
20251
|
+
key?: string | null;
|
|
20252
|
+
} | null> | null;
|
|
20253
|
+
} | null> | null;
|
|
20254
|
+
};
|
|
20255
|
+
export type FetchErc20ForecastSlippageQueryVariables = Exact<{
|
|
20256
|
+
where?: InputMaybe<Erc20_Extenderc20ExtendV2Filter>;
|
|
20257
|
+
}>;
|
|
20258
|
+
export type FetchErc20ForecastSlippageQuery = {
|
|
20259
|
+
erc20_extend_erc20ExtendV2?: {
|
|
20260
|
+
forecastSlippageList?: Array<{
|
|
20261
|
+
forecastSlippage?: any | null;
|
|
20262
|
+
forecastValue?: any | null;
|
|
20263
|
+
confidenceRatio?: any | null;
|
|
20264
|
+
confidenceIntervalUpper?: any | null;
|
|
20265
|
+
confidenceIntervalLower?: any | null;
|
|
20266
|
+
} | null> | null;
|
|
20267
|
+
} | null;
|
|
20268
|
+
};
|
|
20228
20269
|
export type FetchMiningListQueryVariables = Exact<{
|
|
20229
20270
|
where?: InputMaybe<Miningmining_List_Filter>;
|
|
20230
20271
|
}>;
|
|
@@ -20873,6 +20914,8 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
|
|
|
20873
20914
|
constructor(value: string, __meta__?: Record<string, any> | undefined);
|
|
20874
20915
|
toString(): string & DocumentTypeDecoration<TResult, TVariables>;
|
|
20875
20916
|
}
|
|
20917
|
+
export declare const FetchErc20SwapCrossChainListDocument: TypedDocumentString<FetchErc20SwapCrossChainListQuery, FetchErc20SwapCrossChainListQueryVariables>;
|
|
20918
|
+
export declare const FetchErc20ForecastSlippageDocument: TypedDocumentString<FetchErc20ForecastSlippageQuery, FetchErc20ForecastSlippageQueryVariables>;
|
|
20876
20919
|
export declare const FetchMiningListDocument: TypedDocumentString<FetchMiningListQuery, FetchMiningListQueryVariables>;
|
|
20877
20920
|
export declare const MiningListDocument: TypedDocumentString<MiningListQuery, MiningListQueryVariables>;
|
|
20878
20921
|
export declare const MyCreatedMiningListDocument: TypedDocumentString<MyCreatedMiningListQuery, MyCreatedMiningListQueryVariables>;
|
|
@@ -7,21 +7,21 @@ type Fetch = typeof crossFetch;
|
|
|
7
7
|
export interface GraphQLRequestsConfig {
|
|
8
8
|
url?: string;
|
|
9
9
|
fetch?: Fetch;
|
|
10
|
-
getHeaders?: () => GraphQLClientRequestHeaders
|
|
10
|
+
getHeaders?: () => GraphQLClientRequestHeaders | Promise<GraphQLClientRequestHeaders>;
|
|
11
11
|
}
|
|
12
12
|
export default class GraphQLRequests {
|
|
13
13
|
private url;
|
|
14
14
|
private client;
|
|
15
15
|
private getHeaders?;
|
|
16
16
|
constructor(configProps?: GraphQLRequestsConfig);
|
|
17
|
-
setHeaders(): void
|
|
17
|
+
setHeaders(): Promise<void>;
|
|
18
18
|
getData<T, V extends Variables = Variables>(document: RequestDocument | TypedDocumentNode<T, V>, variables?: V): Promise<T>;
|
|
19
19
|
getQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
20
|
-
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
20
|
+
queryKey: readonly ["graphql", "getQuery", TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
21
21
|
queryFn: () => Promise<TResult>;
|
|
22
22
|
};
|
|
23
23
|
getInfiniteQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, pageKey: string, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
24
|
-
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
24
|
+
queryKey: readonly ["graphql", "getInfiniteQuery", string, TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
25
25
|
queryFn: ({ pageParam }: {
|
|
26
26
|
pageParam: number;
|
|
27
27
|
}) => Promise<TResult>;
|