@dodoex/api 3.0.3-bartio.0 → 3.0.3-bartio.2
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChainId } from './chain';
|
|
2
2
|
declare const contractMap: {
|
|
3
3
|
[key in ChainId]: {
|
|
4
|
+
/** MulticallWithValid */
|
|
4
5
|
MULTI_CALL: string;
|
|
5
6
|
DODO_APPROVE: string;
|
|
6
7
|
/** ERC20Helper */
|
|
@@ -11,6 +12,7 @@ declare const contractMap: {
|
|
|
11
12
|
ROUTE_V1_DATA_FETCH: string;
|
|
12
13
|
/** DODOCalleeHelper */
|
|
13
14
|
CALLEE_HELPER: string;
|
|
15
|
+
/** DODOV2Proxy02 */
|
|
14
16
|
DODO_PROXY: string;
|
|
15
17
|
/** DODODspProxy */
|
|
16
18
|
DODO_DSP_PROXY: string;
|
package/dist/types/gql/gql.d.ts
CHANGED
|
@@ -29,11 +29,11 @@ export declare function graphql(source: '\n query FetchPoolList(\n $firs
|
|
|
29
29
|
/**
|
|
30
30
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
31
31
|
*/
|
|
32
|
-
export declare function graphql(source: '\n query FetchLiquidityList($where: Liquiditylist_filter) {\n liquidity_list(where: $where) {\n currentPage\n pageSize\n totalCount\n lqList {\n id\n pair {\n id\n chainId\n type\n lpFeeRate\n mtFeeRate\n creator\n baseLpToken {\n id\n decimals\n }\n quoteLpToken {\n id\n decimals\n }\n baseToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n quoteToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n tvl\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n }\n miningAddress\n volume24H\n }\n }\n }\n }\n '): typeof import('./graphql').FetchLiquidityListDocument;
|
|
32
|
+
export declare function graphql(source: '\n query FetchLiquidityList($where: Liquiditylist_filter) {\n liquidity_list(where: $where) {\n currentPage\n pageSize\n totalCount\n lqList {\n id\n pair {\n id\n chainId\n type\n lpFeeRate\n mtFeeRate\n creator\n baseLpToken {\n id\n decimals\n }\n quoteLpToken {\n id\n decimals\n }\n baseToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n quoteToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n tvl\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n metromMiningApy\n }\n miningAddress\n volume24H\n }\n }\n }\n }\n '): typeof import('./graphql').FetchLiquidityListDocument;
|
|
33
33
|
/**
|
|
34
34
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
35
35
|
*/
|
|
36
|
-
export declare function graphql(source: '\n query FetchMyLiquidityList($where: Liquiditylist_filter) {\n liquidity_list(where: $where) {\n lqList {\n id\n liquidityPositions {\n id\n liquidityTokenBalance\n liquidityTokenInMining\n poolShare\n liquidityUSD\n tokenId\n outOfRange\n priceRange {\n token0LowerPrice\n token0UpperPrice\n token1LowerPrice\n token1UpperPrice\n }\n tickLower {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n tickUpper {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n }\n pair {\n id\n chainId\n type\n lpFeeRate\n mtFeeRate\n creator\n baseLpToken {\n id\n decimals\n }\n quoteLpToken {\n id\n decimals\n }\n baseToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n quoteToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n tvl\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n }\n miningAddress\n volume24H\n }\n }\n }\n }\n '): typeof import('./graphql').FetchMyLiquidityListDocument;
|
|
36
|
+
export declare function graphql(source: '\n query FetchMyLiquidityList($where: Liquiditylist_filter) {\n liquidity_list(where: $where) {\n lqList {\n id\n liquidityPositions {\n id\n liquidityTokenBalance\n liquidityTokenInMining\n poolShare\n liquidityUSD\n tokenId\n outOfRange\n priceRange {\n token0LowerPrice\n token0UpperPrice\n token1LowerPrice\n token1UpperPrice\n }\n tickLower {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n tickUpper {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n }\n pair {\n id\n chainId\n type\n lpFeeRate\n mtFeeRate\n creator\n baseLpToken {\n id\n decimals\n }\n quoteLpToken {\n id\n decimals\n }\n baseToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n quoteToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n tvl\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n metromMiningApy\n }\n miningAddress\n volume24H\n }\n }\n }\n }\n '): typeof import('./graphql').FetchMyLiquidityListDocument;
|
|
37
37
|
/**
|
|
38
38
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
39
39
|
*/
|
|
@@ -41,7 +41,7 @@ export declare function graphql(source: '\n query FetchDashboardPairList($whe
|
|
|
41
41
|
/**
|
|
42
42
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
43
|
*/
|
|
44
|
-
export declare function graphql(source: '\n query FetchPool(\n $id: ID!\n $where: Pair_filter\n $liquidityWhere: Liquiditylist_filter\n ) {\n pair(id: $id, where: $where) {\n id\n type\n creator\n owner\n traderCount\n volumeBaseToken\n volumeQuoteToken\n volumeUSD\n feeBase\n feeQuote\n mtFeeRate\n lpFeeRate\n i\n k\n baseReserve\n quoteReserve\n createdAtTimestamp\n lastTradePrice\n baseToken {\n id\n symbol\n name\n decimals\n }\n quoteToken {\n id\n symbol\n name\n decimals\n usdPrice\n }\n baseLpToken {\n id\n symbol\n name\n decimals\n }\n quoteLpToken {\n id\n symbol\n name\n decimals\n }\n }\n liquidity_list(where: $liquidityWhere) {\n lqList {\n pair {\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n }\n miningAddress\n }\n }\n }\n }\n '): typeof import('./graphql').FetchPoolDocument;
|
|
44
|
+
export declare function graphql(source: '\n query FetchPool(\n $id: ID!\n $where: Pair_filter\n $liquidityWhere: Liquiditylist_filter\n ) {\n pair(id: $id, where: $where) {\n id\n type\n creator\n owner\n traderCount\n volumeBaseToken\n volumeQuoteToken\n volumeUSD\n feeBase\n feeQuote\n mtFeeRate\n lpFeeRate\n i\n k\n baseReserve\n quoteReserve\n createdAtTimestamp\n lastTradePrice\n baseToken {\n id\n symbol\n name\n decimals\n }\n quoteToken {\n id\n symbol\n name\n decimals\n usdPrice\n }\n baseLpToken {\n id\n symbol\n name\n decimals\n }\n quoteLpToken {\n id\n symbol\n name\n decimals\n }\n }\n liquidity_list(where: $liquidityWhere) {\n lqList {\n pair {\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n metromMiningApy\n }\n miningAddress\n }\n }\n }\n }\n '): typeof import('./graphql').FetchPoolDocument;
|
|
45
45
|
/**
|
|
46
46
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
47
47
|
*/
|
|
@@ -1093,6 +1093,51 @@ export type Block_Height = {
|
|
|
1093
1093
|
number: Scalars['Int']['input'];
|
|
1094
1094
|
number_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
1095
1095
|
};
|
|
1096
|
+
export type Brand_Site_AnnouncementBrandSiteAnnouncement = {
|
|
1097
|
+
brand?: Maybe<Scalars['String']['output']>;
|
|
1098
|
+
endAt?: Maybe<Scalars['String']['output']>;
|
|
1099
|
+
id?: Maybe<Scalars['Int']['output']>;
|
|
1100
|
+
lastPublishTime?: Maybe<Scalars['String']['output']>;
|
|
1101
|
+
metadata?: Maybe<Brand_Site_AnnouncementMetadata>;
|
|
1102
|
+
sort?: Maybe<Scalars['Int']['output']>;
|
|
1103
|
+
startAt?: Maybe<Scalars['String']['output']>;
|
|
1104
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1105
|
+
type?: Maybe<Scalars['Int']['output']>;
|
|
1106
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
1107
|
+
};
|
|
1108
|
+
export type Brand_Site_AnnouncementBrandSiteAnnouncementList = {
|
|
1109
|
+
lastPublishId?: Maybe<Scalars['Int']['output']>;
|
|
1110
|
+
lastPublishTime?: Maybe<Scalars['String']['output']>;
|
|
1111
|
+
list?: Maybe<Array<Maybe<Brand_Site_AnnouncementBrandSiteAnnouncement>>>;
|
|
1112
|
+
};
|
|
1113
|
+
export type Brand_Site_AnnouncementMetadata = {
|
|
1114
|
+
background?: Maybe<Scalars['String']['output']>;
|
|
1115
|
+
buttonType?: Maybe<Scalars['String']['output']>;
|
|
1116
|
+
icon?: Maybe<Scalars['String']['output']>;
|
|
1117
|
+
landingPageDisplay?: Maybe<Scalars['Boolean']['output']>;
|
|
1118
|
+
theme?: Maybe<Scalars['String']['output']>;
|
|
1119
|
+
};
|
|
1120
|
+
export type Brand_Site_Announcementqueryilter = {
|
|
1121
|
+
brand?: InputMaybe<Scalars['String']['input']>;
|
|
1122
|
+
lang?: InputMaybe<Scalars['String']['input']>;
|
|
1123
|
+
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1124
|
+
};
|
|
1125
|
+
export type Brand_Site_BannerBrandSiteBanner = {
|
|
1126
|
+
bannerImg?: Maybe<Scalars['String']['output']>;
|
|
1127
|
+
brand?: Maybe<Scalars['String']['output']>;
|
|
1128
|
+
chainId?: Maybe<Scalars['Int']['output']>;
|
|
1129
|
+
describe?: Maybe<Scalars['String']['output']>;
|
|
1130
|
+
id?: Maybe<Scalars['Int']['output']>;
|
|
1131
|
+
position?: Maybe<Scalars['String']['output']>;
|
|
1132
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1133
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
1134
|
+
};
|
|
1135
|
+
export type Brand_Site_Bannerqueryilter = {
|
|
1136
|
+
brand?: InputMaybe<Scalars['String']['input']>;
|
|
1137
|
+
chainId?: InputMaybe<Scalars['Int']['input']>;
|
|
1138
|
+
position?: InputMaybe<Scalars['String']['input']>;
|
|
1139
|
+
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1140
|
+
};
|
|
1096
1141
|
export type BrowserChainInput = {
|
|
1097
1142
|
chains: Array<InputMaybe<Scalars['Int']['input']>>;
|
|
1098
1143
|
};
|
|
@@ -5940,6 +5985,7 @@ export type Liquidator_Filter = {
|
|
|
5940
5985
|
};
|
|
5941
5986
|
export type Liquidator_OrderBy = 'addTimestamp' | 'id' | 'isRemove' | 'updatedAt';
|
|
5942
5987
|
export type LiquidityApyData = {
|
|
5988
|
+
metromMiningApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5943
5989
|
miningBaseApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5944
5990
|
miningQuoteApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5945
5991
|
transactionBaseApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
@@ -7292,6 +7338,15 @@ export type Market_Maker_Pool_ApplypoolApplyData = {
|
|
|
7292
7338
|
liaison?: InputMaybe<Scalars['String']['input']>;
|
|
7293
7339
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
7294
7340
|
};
|
|
7341
|
+
export type MetromChainInput = {
|
|
7342
|
+
chainId: Scalars['BigDecimal']['input'];
|
|
7343
|
+
};
|
|
7344
|
+
export type MetromPool = {
|
|
7345
|
+
apr: Scalars['BigDecimal']['output'];
|
|
7346
|
+
apy: Scalars['BigDecimal']['output'];
|
|
7347
|
+
chainId: Scalars['BigDecimal']['output'];
|
|
7348
|
+
pool: Scalars['String']['output'];
|
|
7349
|
+
};
|
|
7295
7350
|
export type MinePool = {
|
|
7296
7351
|
chain: Scalars['String']['output'];
|
|
7297
7352
|
/** creator */
|
|
@@ -10890,6 +10945,8 @@ export type Query = {
|
|
|
10890
10945
|
bidHistory?: Maybe<BidHistory>;
|
|
10891
10946
|
bidPosition?: Maybe<BidPosition>;
|
|
10892
10947
|
bidPositions: Array<BidPosition>;
|
|
10948
|
+
brand_site_announcement_list?: Maybe<Brand_Site_AnnouncementBrandSiteAnnouncementList>;
|
|
10949
|
+
brand_site_banner_list?: Maybe<Array<Maybe<Brand_Site_BannerBrandSiteBanner>>>;
|
|
10893
10950
|
/** 获取 RPC 节点,缓存1分钟,每分钟重新排序;排序规则:可访问 > 响应速度 > 区块高度 */
|
|
10894
10951
|
browser_getRpc: Scalars['JSON']['output'];
|
|
10895
10952
|
chart_getOhlcv2Chart: Array<Maybe<Array<Maybe<Scalars['String']['output']>>>>;
|
|
@@ -11126,6 +11183,8 @@ export type Query = {
|
|
|
11126
11183
|
/** data url:post(https://host:port/manage/slippage_tolerance_list).data */
|
|
11127
11184
|
manage_slippage_tolerance_list?: Maybe<Array<Maybe<ManageSlippageTolerance>>>;
|
|
11128
11185
|
market_maker_pool_apply_create?: Maybe<Market_Maker_Pool_ApplyData>;
|
|
11186
|
+
/** 获取Metrom的池子列表 */
|
|
11187
|
+
metrom_getPools: Array<Maybe<MetromPool>>;
|
|
11129
11188
|
minePool?: Maybe<MinePool>;
|
|
11130
11189
|
minePools: Array<MinePool>;
|
|
11131
11190
|
miningPool?: Maybe<MiningPool>;
|
|
@@ -11494,6 +11553,12 @@ export type QueryBidPositionsArgs = {
|
|
|
11494
11553
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
11495
11554
|
where?: InputMaybe<BidPosition_Filter>;
|
|
11496
11555
|
};
|
|
11556
|
+
export type QueryBrand_Site_Announcement_ListArgs = {
|
|
11557
|
+
where?: InputMaybe<Brand_Site_Announcementqueryilter>;
|
|
11558
|
+
};
|
|
11559
|
+
export type QueryBrand_Site_Banner_ListArgs = {
|
|
11560
|
+
where?: InputMaybe<Brand_Site_Bannerqueryilter>;
|
|
11561
|
+
};
|
|
11497
11562
|
export type QueryBrowser_GetRpcArgs = {
|
|
11498
11563
|
where: BrowserChainInput;
|
|
11499
11564
|
};
|
|
@@ -12273,6 +12338,9 @@ export type QueryManage_Slippage_Tolerance_ListArgs = {
|
|
|
12273
12338
|
export type QueryMarket_Maker_Pool_Apply_CreateArgs = {
|
|
12274
12339
|
data?: InputMaybe<Market_Maker_Pool_ApplypoolApplyData>;
|
|
12275
12340
|
};
|
|
12341
|
+
export type QueryMetrom_GetPoolsArgs = {
|
|
12342
|
+
where?: InputMaybe<MetromChainInput>;
|
|
12343
|
+
};
|
|
12276
12344
|
export type QueryMinePoolArgs = {
|
|
12277
12345
|
block?: InputMaybe<Block_Height>;
|
|
12278
12346
|
id: Scalars['ID']['input'];
|
|
@@ -18737,6 +18805,7 @@ export type FetchLiquidityListQuery = {
|
|
|
18737
18805
|
miningQuoteApy?: any | null;
|
|
18738
18806
|
transactionBaseApy?: any | null;
|
|
18739
18807
|
transactionQuoteApy?: any | null;
|
|
18808
|
+
metromMiningApy?: any | null;
|
|
18740
18809
|
} | null;
|
|
18741
18810
|
} | null;
|
|
18742
18811
|
} | null> | null;
|
|
@@ -18817,6 +18886,7 @@ export type FetchMyLiquidityListQuery = {
|
|
|
18817
18886
|
miningQuoteApy?: any | null;
|
|
18818
18887
|
transactionBaseApy?: any | null;
|
|
18819
18888
|
transactionQuoteApy?: any | null;
|
|
18889
|
+
metromMiningApy?: any | null;
|
|
18820
18890
|
} | null;
|
|
18821
18891
|
} | null;
|
|
18822
18892
|
} | null> | null;
|
|
@@ -18906,6 +18976,7 @@ export type FetchPoolQuery = {
|
|
|
18906
18976
|
miningQuoteApy?: any | null;
|
|
18907
18977
|
transactionBaseApy?: any | null;
|
|
18908
18978
|
transactionQuoteApy?: any | null;
|
|
18979
|
+
metromMiningApy?: any | null;
|
|
18909
18980
|
} | null;
|
|
18910
18981
|
} | null;
|
|
18911
18982
|
} | null> | null;
|