@dodoex/api 3.0.3-morph.5 → 3.0.3-morph.7

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;
@@ -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
  */
@@ -5985,6 +5985,7 @@ export type Liquidator_Filter = {
5985
5985
  };
5986
5986
  export type Liquidator_OrderBy = 'addTimestamp' | 'id' | 'isRemove' | 'updatedAt';
5987
5987
  export type LiquidityApyData = {
5988
+ metromMiningApy?: Maybe<Scalars['BigDecimal']['output']>;
5988
5989
  miningBaseApy?: Maybe<Scalars['BigDecimal']['output']>;
5989
5990
  miningQuoteApy?: Maybe<Scalars['BigDecimal']['output']>;
5990
5991
  transactionBaseApy?: Maybe<Scalars['BigDecimal']['output']>;
@@ -7337,6 +7338,15 @@ export type Market_Maker_Pool_ApplypoolApplyData = {
7337
7338
  liaison?: InputMaybe<Scalars['String']['input']>;
7338
7339
  name?: InputMaybe<Scalars['String']['input']>;
7339
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
+ };
7340
7350
  export type MinePool = {
7341
7351
  chain: Scalars['String']['output'];
7342
7352
  /** creator */
@@ -11173,6 +11183,8 @@ export type Query = {
11173
11183
  /** data url:post(https://host:port/manage/slippage_tolerance_list).data */
11174
11184
  manage_slippage_tolerance_list?: Maybe<Array<Maybe<ManageSlippageTolerance>>>;
11175
11185
  market_maker_pool_apply_create?: Maybe<Market_Maker_Pool_ApplyData>;
11186
+ /** 获取Metrom的池子列表 */
11187
+ metrom_getPools: Array<Maybe<MetromPool>>;
11176
11188
  minePool?: Maybe<MinePool>;
11177
11189
  minePools: Array<MinePool>;
11178
11190
  miningPool?: Maybe<MiningPool>;
@@ -12326,6 +12338,9 @@ export type QueryManage_Slippage_Tolerance_ListArgs = {
12326
12338
  export type QueryMarket_Maker_Pool_Apply_CreateArgs = {
12327
12339
  data?: InputMaybe<Market_Maker_Pool_ApplypoolApplyData>;
12328
12340
  };
12341
+ export type QueryMetrom_GetPoolsArgs = {
12342
+ where?: InputMaybe<MetromChainInput>;
12343
+ };
12329
12344
  export type QueryMinePoolArgs = {
12330
12345
  block?: InputMaybe<Block_Height>;
12331
12346
  id: Scalars['ID']['input'];
@@ -18790,6 +18805,7 @@ export type FetchLiquidityListQuery = {
18790
18805
  miningQuoteApy?: any | null;
18791
18806
  transactionBaseApy?: any | null;
18792
18807
  transactionQuoteApy?: any | null;
18808
+ metromMiningApy?: any | null;
18793
18809
  } | null;
18794
18810
  } | null;
18795
18811
  } | null> | null;
@@ -18870,6 +18886,7 @@ export type FetchMyLiquidityListQuery = {
18870
18886
  miningQuoteApy?: any | null;
18871
18887
  transactionBaseApy?: any | null;
18872
18888
  transactionQuoteApy?: any | null;
18889
+ metromMiningApy?: any | null;
18873
18890
  } | null;
18874
18891
  } | null;
18875
18892
  } | null> | null;
@@ -18959,6 +18976,7 @@ export type FetchPoolQuery = {
18959
18976
  miningQuoteApy?: any | null;
18960
18977
  transactionBaseApy?: any | null;
18961
18978
  transactionQuoteApy?: any | null;
18979
+ metromMiningApy?: any | null;
18962
18980
  } | null;
18963
18981
  } | null;
18964
18982
  } | null> | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/api",
3
- "version": "3.0.3-morph.5",
3
+ "version": "3.0.3-morph.7",
4
4
  "description": "DODO API Kit",
5
5
  "source": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",