@dodoex/api 3.0.2-solana.2 → 3.0.3-alpha.1

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.
Files changed (195) hide show
  1. package/dist/AaveLendingPoolABI-CdLq16uB.js +1 -0
  2. package/dist/AaveLendingPoolABI-G3D5zkkz.cjs +1 -0
  3. package/dist/AaveLendingPoolAddressesProvider-DrLP2k1o.cjs +1 -0
  4. package/dist/AaveLendingPoolAddressesProvider-EOSAznLK.js +1 -0
  5. package/dist/AavePriceOracleABI-C2UEpXR4.js +1 -0
  6. package/dist/AavePriceOracleABI-C4jkbxlQ.cjs +1 -0
  7. package/dist/AaveProtocolDataProviderABI-0JclmmLX.js +1 -0
  8. package/dist/AaveProtocolDataProviderABI-ChLpWblx.cjs +1 -0
  9. package/dist/BaseDrops-BrQZPqKk.js +1 -0
  10. package/dist/BaseDrops-b4x2vqWE.cjs +1 -0
  11. package/dist/D3MM_READ_ABI-B5536S-z.js +1 -0
  12. package/dist/D3MM_READ_ABI-DPl8m5T6.cjs +1 -0
  13. package/dist/D3Proxy-CKIzLOhI.js +1 -0
  14. package/dist/D3Proxy-ChV5DN6z.cjs +1 -0
  15. package/dist/DODO1155-BNeD65Or.cjs +1 -0
  16. package/dist/DODO1155-DDY5Jxhf.js +1 -0
  17. package/dist/DODO721-CSXhoGSt.cjs +1 -0
  18. package/dist/DODO721-Kl5REiwU.js +1 -0
  19. package/dist/DODOCirculationHelperABI-BnZp9-jW.cjs +1 -0
  20. package/dist/DODOCirculationHelperABI-gu1sCqZ2.js +1 -0
  21. package/dist/DODORouteProxy-51kl6QgI.js +1 -0
  22. package/dist/DODORouteProxy-BZ0Y3GCA.cjs +1 -0
  23. package/dist/DODOV1PmmHelperABI-DD2Zqxnx.cjs +1 -0
  24. package/dist/DODOV1PmmHelperABI-DQqthyaE.js +1 -0
  25. package/dist/DVM-BpNPFgPh.cjs +1 -0
  26. package/dist/DVM-DjtWbqiJ.js +1 -0
  27. package/dist/DropsERC721-7Bckjcar.js +1 -0
  28. package/dist/DropsERC721-BhKaFHvL.cjs +1 -0
  29. package/dist/FilterAdmin-cj8kYpNK.cjs +1 -0
  30. package/dist/FilterAdmin-jm_-DS1l.js +1 -0
  31. package/dist/FilterERC1155V1-CYRg0d1t.cjs +1 -0
  32. package/dist/FilterERC1155V1-VIUlIHdF.js +1 -0
  33. package/dist/FilterERC721V1-Bi0L9sSX.cjs +1 -0
  34. package/dist/FilterERC721V1-CWDEPGmH.js +1 -0
  35. package/dist/Fragment-B-F8I7LL.cjs +1 -0
  36. package/dist/Fragment-Bd_AXeVx.js +1 -0
  37. package/dist/FundingABI-CVCr1rVZ.cjs +1 -0
  38. package/dist/FundingABI-WqQDGVVa.js +1 -0
  39. package/dist/IdodoV2-DlW8pwaE.js +1 -0
  40. package/dist/IdodoV2-RfwR_GpI.cjs +1 -0
  41. package/dist/LockedTokenVaultABI-CfBj0wEX.js +1 -0
  42. package/dist/LockedTokenVaultABI-DRbLRj9L.cjs +1 -0
  43. package/dist/MarginTrading-CQ5odvHB.js +1 -0
  44. package/dist/MarginTrading-DTxWKyBB.cjs +1 -0
  45. package/dist/MarginTradingFactory-2RKqvCSO.js +1 -0
  46. package/dist/MarginTradingFactory-CXV_vwa8.cjs +1 -0
  47. package/dist/MerkleDistributorABI-C8Qfs-nh.cjs +1 -0
  48. package/dist/MerkleDistributorABI-Ctn26fnA.js +1 -0
  49. package/dist/NonfungiblePositionManager-C-qYqe32.cjs +1 -0
  50. package/dist/NonfungiblePositionManager-c8Yw_9-Q.js +1 -0
  51. package/dist/PancakePairABI-Cc9LuXnX.js +1 -0
  52. package/dist/PancakePairABI-DYhV587D.cjs +1 -0
  53. package/dist/UniswapV3Pool-CbMV0NzU.cjs +1 -0
  54. package/dist/UniswapV3Pool-Da11VKXE.js +1 -0
  55. package/dist/baseFilterV1-BPjWXMKw.js +1 -0
  56. package/dist/baseFilterV1-BuIlo0KL.cjs +1 -0
  57. package/dist/bsc-3D5wcqPq.js +1 -0
  58. package/dist/bsc-DPJpw0CZ.cjs +1 -0
  59. package/dist/classicalPoolABI-BECDfgEG.cjs +1 -0
  60. package/dist/classicalPoolABI-D5LxySAJ.js +1 -0
  61. package/dist/dodoABI-CLkEBJ8P.js +1 -0
  62. package/dist/dodoABI-gkjw8zb6.cjs +1 -0
  63. package/dist/dodoBuyoutModel-BtQv3C3q.js +1 -0
  64. package/dist/dodoBuyoutModel-iVgU8FQj.cjs +1 -0
  65. package/dist/dodoCP-CLHk9HB9.cjs +1 -0
  66. package/dist/dodoCP-N8KA8JwJ.js +1 -0
  67. package/dist/dodoCPABI-CdAN0KhU.js +1 -0
  68. package/dist/dodoCPABI-DtzutjJ_.cjs +1 -0
  69. package/dist/dodoCPABIV2-fyFD9xst.cjs +1 -0
  70. package/dist/dodoCPABIV2-yzF6FlEg.js +1 -0
  71. package/dist/dodoCPFactory-CBF19zgJ.cjs +1 -0
  72. package/dist/dodoCPFactory-CD0SxXT6.js +1 -0
  73. package/dist/dodoCpProxy-C0DPYWye.cjs +1 -0
  74. package/dist/dodoCpProxy-D2AI9-4r.js +1 -0
  75. package/dist/dodoCpProxyV2-CGZRqk2H.js +1 -0
  76. package/dist/dodoCpProxyV2-DpTvj7-M.cjs +1 -0
  77. package/dist/dodoCpProxyV202-BLhZ86Hq.cjs +1 -0
  78. package/dist/dodoCpProxyV202-CoZaEf_6.js +1 -0
  79. package/dist/dodoCustomMintableERC20-CPpNoX1v.js +1 -0
  80. package/dist/dodoCustomMintableERC20-_rvvHxmy.cjs +1 -0
  81. package/dist/dodoDPPAdmin-B-fmpTbV.js +1 -0
  82. package/dist/dodoDPPAdmin-Dn7blhFO.cjs +1 -0
  83. package/dist/dodoDPPFactory-DZUKGMVx.cjs +1 -0
  84. package/dist/dodoDPPFactory-DwAkVskt.js +1 -0
  85. package/dist/dodoDSP-B6KYm-Cn.js +1 -0
  86. package/dist/dodoDSP-DiQP3j-f.cjs +1 -0
  87. package/dist/dodoDSPFactory-Bd74S17p.cjs +1 -0
  88. package/dist/dodoDSPFactory-j1eg7Ez-.js +1 -0
  89. package/dist/dodoDVM-DDYx1JAy.js +1 -0
  90. package/dist/dodoDVM-cigh0zp3.cjs +1 -0
  91. package/dist/dodoDVMFactory-FpnJdZb2.js +1 -0
  92. package/dist/dodoDVMFactory-Jw7GN957.cjs +1 -0
  93. package/dist/dodoDppProxy-A7PPYsqp.js +1 -0
  94. package/dist/dodoDppProxy-evCBC-32.cjs +1 -0
  95. package/dist/dodoDropsProxy-aB8sftUR.cjs +1 -0
  96. package/dist/dodoDropsProxy-vHUWsRNO.js +1 -0
  97. package/dist/dodoDspProxy-Bp3cG2Me.cjs +1 -0
  98. package/dist/dodoDspProxy-CU7OAvJG.js +1 -0
  99. package/dist/dodoERC20V3Factory-Cz4XKDrU.js +1 -0
  100. package/dist/dodoERC20V3Factory-Dp6VtQdx.cjs +1 -0
  101. package/dist/dodoEthProxyABI-COvGooIx.cjs +1 -0
  102. package/dist/dodoEthProxyABI-CoX95QJI.js +1 -0
  103. package/dist/dodoFeeImpl-n8uxW-_A.cjs +1 -0
  104. package/dist/dodoFeeImpl-zR9Qv4Tq.js +1 -0
  105. package/dist/dodoFragment-4lxmE2XJ.js +1 -0
  106. package/dist/dodoFragment-QQKv5zUw.cjs +1 -0
  107. package/dist/dodoMineV3Proxy-DVScIYYs.cjs +1 -0
  108. package/dist/dodoMineV3Proxy-xOGM7Jnv.js +1 -0
  109. package/dist/dodoMineV3ProxyOld-BqsZxJRU.js +1 -0
  110. package/dist/dodoMineV3ProxyOld-C_F6KVsX.cjs +1 -0
  111. package/dist/dodoMiningABI-9J5C_6kN.js +1 -0
  112. package/dist/dodoMiningABI-Bz2I9IA2.cjs +1 -0
  113. package/dist/dodoMiningReaderABI-B2wU_50T.cjs +1 -0
  114. package/dist/dodoMiningReaderABI-DmUXA9Gv.js +1 -0
  115. package/dist/dodoNftERC1155-Bw6ID2NE.js +1 -0
  116. package/dist/dodoNftERC1155-DLIuD5w1.cjs +1 -0
  117. package/dist/dodoNftERC721-CI1l0ip9.js +1 -0
  118. package/dist/dodoNftERC721-CM9UVOIz.cjs +1 -0
  119. package/dist/dodoNftPoolProxy-D1h5SkLL.cjs +1 -0
  120. package/dist/dodoNftPoolProxy-DQkcZHUV.js +1 -0
  121. package/dist/dodoNftProxy-DM2zeXHX.cjs +1 -0
  122. package/dist/dodoNftProxy-Di-aoLYM.js +1 -0
  123. package/dist/dodoNftVault-4I3wB3W5.cjs +1 -0
  124. package/dist/dodoNftVault-B4NZaXcd.js +1 -0
  125. package/dist/dodoOracleABI-BxwZofBV.js +1 -0
  126. package/dist/dodoOracleABI-CZXzRpKf.cjs +1 -0
  127. package/dist/dodoPair-DZAKf_5j.cjs +1 -0
  128. package/dist/dodoPair-VN1aEVFz.js +1 -0
  129. package/dist/dodoPreminingABI-BO5Cazcq.cjs +1 -0
  130. package/dist/dodoPreminingABI-DU7ocR7L.js +1 -0
  131. package/dist/dodoProxyV2-9ED9HqK5.js +1 -0
  132. package/dist/dodoProxyV2-C4O1SzS4.cjs +1 -0
  133. package/dist/dodoStarterProxy-B1TdMOvw.js +1 -0
  134. package/dist/dodoStarterProxy-DgcH9iEq.cjs +1 -0
  135. package/dist/dodoTokenABI-6Mpqu75U.cjs +1 -0
  136. package/dist/dodoTokenABI-Dd2DVUbK.js +1 -0
  137. package/dist/dodoUpCPFactoryABI-C1W0Q4Ft.js +1 -0
  138. package/dist/dodoUpCPFactoryABI-XGsn8ED4.cjs +1 -0
  139. package/dist/dodoUpCpFactory-D8ifQyp-.js +1 -0
  140. package/dist/dodoUpCpFactory-XGsn8ED4.cjs +1 -0
  141. package/dist/dodoV1PairProxy-DpEjE8Ne.cjs +1 -0
  142. package/dist/dodoV1PairProxy-DyRTqyPe.js +1 -0
  143. package/dist/dodoZooABI-D44Zl74h.cjs +1 -0
  144. package/dist/dodoZooABI-D9Uc4iLK.js +1 -0
  145. package/dist/dppPoolABI-BdDjNXGV.cjs +1 -0
  146. package/dist/dppPoolABI-BvoeLJgK.js +1 -0
  147. package/dist/erc20ABI-G8oWOkZ8.cjs +1 -0
  148. package/dist/erc20ABI-v08X4jmE.js +1 -0
  149. package/dist/erc20Helper-CG659oLz.js +1 -0
  150. package/dist/erc20Helper-DU3PGwta.cjs +1 -0
  151. package/dist/eth-B9cviUl5.js +1 -0
  152. package/dist/eth-BTzl-wbR.cjs +1 -0
  153. package/dist/feeABI-DnQdJUpQ.js +1 -0
  154. package/dist/feeABI-n8uxW-_A.cjs +1 -0
  155. package/dist/index.cjs +1 -14
  156. package/dist/index.js +1 -14
  157. package/dist/multicallABI-D9E1EeQD.js +1 -0
  158. package/dist/multicallABI-Dhweb42q.cjs +1 -0
  159. package/dist/nftContract-d4b6ObxG.js +1 -0
  160. package/dist/nftContract-hvFiWn3Y.cjs +1 -0
  161. package/dist/nftFilterAdmin-Bq1uLy_8.cjs +1 -0
  162. package/dist/nftFilterAdmin-DMr_jrK_.js +1 -0
  163. package/dist/oneBitSettlement-DMzQ-0t_.js +1 -0
  164. package/dist/oneBitSettlement-DiJ0ov7p.cjs +1 -0
  165. package/dist/setApprovalForAll-BvnCORJI.js +1 -0
  166. package/dist/setApprovalForAll-C5PVWdKB.cjs +1 -0
  167. package/dist/spaceIdABI-B5tTrrz8.cjs +1 -0
  168. package/dist/spaceIdABI-BS4XGAT1.js +1 -0
  169. package/dist/spaceIdResolverABI-CrfOXUgo.cjs +1 -0
  170. package/dist/spaceIdResolverABI-sYDT8GfP.js +1 -0
  171. package/dist/types/chainConfig/basicToken.d.ts +11 -8
  172. package/dist/types/chainConfig/chain.d.ts +23 -10
  173. package/dist/types/chainConfig/contractConfig.d.ts +2 -0
  174. package/dist/types/chainConfig/index.d.ts +2 -2
  175. package/dist/types/gql/gql.d.ts +5 -5
  176. package/dist/types/gql/graphql.d.ts +25 -57
  177. package/dist/types/index.d.ts +9 -3
  178. package/dist/types/services/TokenApi/index.d.ts +42 -2
  179. package/dist/types/services/TokenApi/utils.d.ts +1 -0
  180. package/dist/types/services/ammv3/AMMV3Api.d.ts +45 -2
  181. package/dist/types/services/ammv3/index.d.ts +2 -2
  182. package/dist/types/services/ammv3/queries.d.ts +4 -2
  183. package/dist/types/services/pool/PoolApi.d.ts +364 -3
  184. package/dist/types/services/pool/index.d.ts +5 -1
  185. package/dist/types/services/pool/pmm/pmmModel.d.ts +25 -0
  186. package/dist/types/services/pool/type.d.ts +1 -13
  187. package/dist/v3MiningABI-C-S-QkHw.cjs +1 -0
  188. package/dist/v3MiningABI-ZjGBkolS.js +1 -0
  189. package/dist/vdodo-BV3kGDOM.cjs +1 -0
  190. package/dist/vdodo-ttc2RVOs.js +1 -0
  191. package/dist/vdodoTokenABI-BuOHA0B9.cjs +1 -0
  192. package/dist/vdodoTokenABI-PldrbOSo.js +1 -0
  193. package/dist/weth-CGG0Z6re.cjs +1 -0
  194. package/dist/weth-Dz5DGEIF.js +1 -0
  195. package/package.json +2 -3
@@ -273,29 +273,6 @@ export type All_Filter = {
273
273
  schemaName?: InputMaybe<Scalars['String']['input']>;
274
274
  };
275
275
  export type All_OrderBy = 'chain' | 'id';
276
- export type AmmTick = {
277
- id: Scalars['String']['output'];
278
- liquidityGross: Scalars['BigDecimal']['output'];
279
- liquidityNet: Scalars['BigDecimal']['output'];
280
- poolAddress: Scalars['String']['output'];
281
- price0: Scalars['BigDecimal']['output'];
282
- price1: Scalars['BigDecimal']['output'];
283
- protocolPosition?: Maybe<Scalars['String']['output']>;
284
- tickArrayLower?: Maybe<Scalars['String']['output']>;
285
- tickArrayUpper?: Maybe<Scalars['String']['output']>;
286
- tickIdx: Scalars['BigDecimal']['output'];
287
- };
288
- export type AmmTicksDataResult = {
289
- chain: Scalars['String']['output'];
290
- pairType: Scalars['String']['output'];
291
- poolAddress: Scalars['String']['output'];
292
- ticks: Array<Maybe<AmmTick>>;
293
- };
294
- export type AmmgetTicksDataInput = {
295
- chain: Scalars['String']['input'];
296
- pairType: Scalars['String']['input'];
297
- poolAddress: Scalars['String']['input'];
298
- };
299
276
  export type AnnouncementAnnouncement = {
300
277
  endAt?: Maybe<Scalars['String']['output']>;
301
278
  id?: Maybe<Scalars['Int']['output']>;
@@ -1754,7 +1731,6 @@ export type Cross_Chain_SwapExtend = {
1754
1731
  encodeId?: Maybe<Scalars['String']['output']>;
1755
1732
  fromToken?: Maybe<Scalars['JSON']['output']>;
1756
1733
  lifiBridge?: Maybe<Scalars['String']['output']>;
1757
- productStateInfo?: Maybe<Scalars['JSON']['output']>;
1758
1734
  refunded?: Maybe<Scalars['JSON']['output']>;
1759
1735
  route?: Maybe<Scalars['JSON']['output']>;
1760
1736
  toToken?: Maybe<Scalars['JSON']['output']>;
@@ -1819,7 +1795,6 @@ export type Cross_Chain_SwaporderCreateDataExtendRoute = {
1819
1795
  feeUSD?: InputMaybe<Scalars['String']['input']>;
1820
1796
  step?: InputMaybe<Scalars['JSON']['input']>;
1821
1797
  toAmount?: InputMaybe<Scalars['String']['input']>;
1822
- toAmountMin?: InputMaybe<Scalars['String']['input']>;
1823
1798
  };
1824
1799
  export type Cross_Chain_SwaporderDetailData = {
1825
1800
  orderId?: InputMaybe<Scalars['Int']['input']>;
@@ -1830,10 +1805,8 @@ export type Cross_Chain_SwaporderListData = {
1830
1805
  chainId?: InputMaybe<Scalars['Int']['input']>;
1831
1806
  limit?: InputMaybe<Scalars['Int']['input']>;
1832
1807
  page?: InputMaybe<Scalars['Int']['input']>;
1833
- product?: InputMaybe<Scalars['String']['input']>;
1834
1808
  refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
1835
1809
  source?: InputMaybe<Scalars['String']['input']>;
1836
- status?: InputMaybe<Scalars['String']['input']>;
1837
1810
  user?: InputMaybe<Scalars['String']['input']>;
1838
1811
  };
1839
1812
  export type Cross_Chain_SwaporderNewStatusData = {
@@ -1843,7 +1816,6 @@ export type Cross_Chain_SwaporderNewStatusData = {
1843
1816
  export type Cross_Chain_SwaporderRefundCountData = {
1844
1817
  chainId?: InputMaybe<Scalars['Int']['input']>;
1845
1818
  from?: InputMaybe<Scalars['String']['input']>;
1846
- product?: InputMaybe<Scalars['String']['input']>;
1847
1819
  refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
1848
1820
  source?: InputMaybe<Scalars['String']['input']>;
1849
1821
  user?: InputMaybe<Scalars['String']['input']>;
@@ -5356,7 +5328,6 @@ export type Erc20listV2Filter = {
5356
5328
  chainIds?: InputMaybe<Scalars['String']['input']>;
5357
5329
  page?: InputMaybe<Scalars['Int']['input']>;
5358
5330
  pageSize?: InputMaybe<Scalars['Int']['input']>;
5359
- productName?: InputMaybe<Scalars['String']['input']>;
5360
5331
  refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
5361
5332
  };
5362
5333
  export type Erc20relationListFilter = {
@@ -6335,7 +6306,6 @@ export type LiquidityLp = {
6335
6306
  liquidityTokenInMining?: Maybe<Scalars['String']['output']>;
6336
6307
  /** my liquidity usd */
6337
6308
  liquidityUSD?: Maybe<Scalars['String']['output']>;
6338
- nftMint?: Maybe<Scalars['String']['output']>;
6339
6309
  outOfRange?: Maybe<Scalars['Boolean']['output']>;
6340
6310
  /** Share in the pool */
6341
6311
  poolShare?: Maybe<Scalars['String']['output']>;
@@ -10951,8 +10921,6 @@ export type Query = {
10951
10921
  aggregateFragments: Array<AggregateFragment>;
10952
10922
  all?: Maybe<All>;
10953
10923
  alls: Array<All>;
10954
- /** 获取amm ticks */
10955
- amm_getTicksData: AmmTicksDataResult;
10956
10924
  announcement_getAnnouncement?: Maybe<AnnouncementAnnouncementList>;
10957
10925
  approval?: Maybe<Approval>;
10958
10926
  approvals: Array<Approval>;
@@ -11450,9 +11418,6 @@ export type QueryAllsArgs = {
11450
11418
  skip?: InputMaybe<Scalars['Int']['input']>;
11451
11419
  where?: InputMaybe<All_Filter>;
11452
11420
  };
11453
- export type QueryAmm_GetTicksDataArgs = {
11454
- where?: InputMaybe<AmmgetTicksDataInput>;
11455
- };
11456
11421
  export type QueryAnnouncement_GetAnnouncementArgs = {
11457
11422
  lang?: InputMaybe<Scalars['String']['input']>;
11458
11423
  };
@@ -18494,27 +18459,20 @@ export type FetchErc20ForecastSlippageQuery = {
18494
18459
  } | null> | null;
18495
18460
  } | null;
18496
18461
  };
18497
- export type Amm_GetTicksDataQueryVariables = Exact<{
18498
- where?: InputMaybe<AmmgetTicksDataInput>;
18462
+ export type TicksQueryVariables = Exact<{
18463
+ where?: InputMaybe<Tick_Filter>;
18464
+ skip?: InputMaybe<Scalars['Int']['input']>;
18465
+ first?: InputMaybe<Scalars['Int']['input']>;
18499
18466
  }>;
18500
- export type Amm_GetTicksDataQuery = {
18501
- amm_getTicksData: {
18502
- chain: string;
18503
- poolAddress: string;
18504
- pairType: string;
18505
- ticks: Array<{
18506
- id: string;
18507
- poolAddress: string;
18508
- tickIdx: any;
18509
- price0: any;
18510
- price1: any;
18511
- liquidityGross: any;
18512
- liquidityNet: any;
18513
- protocolPosition?: string | null;
18514
- tickArrayLower?: string | null;
18515
- tickArrayUpper?: string | null;
18516
- } | null>;
18517
- };
18467
+ export type TicksQuery = {
18468
+ ticks: Array<{
18469
+ id: string;
18470
+ poolAddress?: string | null;
18471
+ tickIdx: any;
18472
+ liquidityNet: any;
18473
+ price0: any;
18474
+ price1: any;
18475
+ }>;
18518
18476
  };
18519
18477
  export type FetchMiningListQueryVariables = Exact<{
18520
18478
  where?: InputMaybe<Miningmining_List_Filter>;
@@ -18792,9 +18750,11 @@ export type FetchPoolListQuery = {
18792
18750
  };
18793
18751
  baseLpToken?: {
18794
18752
  id: string;
18753
+ decimals: any;
18795
18754
  } | null;
18796
18755
  quoteLpToken?: {
18797
18756
  id: string;
18757
+ decimals: any;
18798
18758
  } | null;
18799
18759
  }>;
18800
18760
  };
@@ -18820,9 +18780,11 @@ export type FetchLiquidityListQuery = {
18820
18780
  volume24H?: any | null;
18821
18781
  baseLpToken?: {
18822
18782
  id: string;
18783
+ decimals: any;
18823
18784
  } | null;
18824
18785
  quoteLpToken?: {
18825
18786
  id: string;
18787
+ decimals: any;
18826
18788
  } | null;
18827
18789
  baseToken: {
18828
18790
  id: string;
@@ -18843,6 +18805,7 @@ export type FetchLiquidityListQuery = {
18843
18805
  miningQuoteApy?: any | null;
18844
18806
  transactionBaseApy?: any | null;
18845
18807
  transactionQuoteApy?: any | null;
18808
+ metromMiningApy?: any | null;
18846
18809
  } | null;
18847
18810
  } | null;
18848
18811
  } | null> | null;
@@ -18862,7 +18825,6 @@ export type FetchMyLiquidityListQuery = {
18862
18825
  poolShare?: string | null;
18863
18826
  liquidityUSD?: string | null;
18864
18827
  tokenId?: string | null;
18865
- nftMint?: string | null;
18866
18828
  outOfRange?: boolean | null;
18867
18829
  priceRange?: {
18868
18830
  token0LowerPrice: string;
@@ -18899,9 +18861,11 @@ export type FetchMyLiquidityListQuery = {
18899
18861
  volume24H?: any | null;
18900
18862
  baseLpToken?: {
18901
18863
  id: string;
18864
+ decimals: any;
18902
18865
  } | null;
18903
18866
  quoteLpToken?: {
18904
18867
  id: string;
18868
+ decimals: any;
18905
18869
  } | null;
18906
18870
  baseToken: {
18907
18871
  id: string;
@@ -18922,6 +18886,7 @@ export type FetchMyLiquidityListQuery = {
18922
18886
  miningQuoteApy?: any | null;
18923
18887
  transactionBaseApy?: any | null;
18924
18888
  transactionQuoteApy?: any | null;
18889
+ metromMiningApy?: any | null;
18925
18890
  } | null;
18926
18891
  } | null;
18927
18892
  } | null> | null;
@@ -18993,11 +18958,13 @@ export type FetchPoolQuery = {
18993
18958
  id: string;
18994
18959
  symbol: string;
18995
18960
  name: string;
18961
+ decimals: any;
18996
18962
  } | null;
18997
18963
  quoteLpToken?: {
18998
18964
  id: string;
18999
18965
  symbol: string;
19000
18966
  name: string;
18967
+ decimals: any;
19001
18968
  } | null;
19002
18969
  } | null;
19003
18970
  liquidity_list?: {
@@ -19009,6 +18976,7 @@ export type FetchPoolQuery = {
19009
18976
  miningQuoteApy?: any | null;
19010
18977
  transactionBaseApy?: any | null;
19011
18978
  transactionQuoteApy?: any | null;
18979
+ metromMiningApy?: any | null;
19012
18980
  } | null;
19013
18981
  } | null;
19014
18982
  } | null> | null;
@@ -19308,7 +19276,7 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
19308
19276
  }
19309
19277
  export declare const FetchErc20SwapCrossChainListDocument: TypedDocumentString<FetchErc20SwapCrossChainListQuery, FetchErc20SwapCrossChainListQueryVariables>;
19310
19278
  export declare const FetchErc20ForecastSlippageDocument: TypedDocumentString<FetchErc20ForecastSlippageQuery, FetchErc20ForecastSlippageQueryVariables>;
19311
- export declare const Amm_GetTicksDataDocument: TypedDocumentString<Amm_GetTicksDataQuery, Amm_GetTicksDataQueryVariables>;
19279
+ export declare const TicksDocument: TypedDocumentString<TicksQuery, TicksQueryVariables>;
19312
19280
  export declare const FetchMiningListDocument: TypedDocumentString<FetchMiningListQuery, FetchMiningListQueryVariables>;
19313
19281
  export declare const MiningListDocument: TypedDocumentString<MiningListQuery, MiningListQueryVariables>;
19314
19282
  export declare const MyCreatedMiningListDocument: TypedDocumentString<MyCreatedMiningListQuery, MyCreatedMiningListQueryVariables>;
@@ -1,11 +1,17 @@
1
- export { basicTokenMap, ChainId, chainIdShortNameEnum, chainIdToShortName, contractConfig, platformIdMap, SOL_MINT_ADDRESS, WSOL_MINT_ADDRESS, } from './chainConfig';
1
+ export { setContractRequests } from '@dodoex/dodo-contract-request';
2
+ export { ChainId, basicTokenMap, contractConfig, etherTokenAddress, platformIdMap, } from './chainConfig';
3
+ export { ABIName, CONTRACT_QUERY_KEY, default as ContractRequests, } from './helper/ContractRequests';
4
+ export type { ContractRequestsConfig, Query } from './helper/ContractRequests';
2
5
  export { default as GraphQLRequests } from './helper/GraphQLRequests';
3
6
  export { default as RestApiRequests } from './helper/RestApiRequests';
4
7
  export { AMMV3Api } from './services/ammv3';
5
8
  export type { TickData, Ticks } from './services/ammv3';
6
- export { CLMM, CPMM, PoolApi } from './services/pool';
7
- export type { PoolType } from './services/pool';
9
+ export { PMMHelper, PMMModel, PMMState, PoolApi, getPmmModel, solveQuadraticFunctionForTarget, } from './services/pool';
10
+ export type { PmmModelParams, PoolType } from './services/pool';
8
11
  export { SwapWidgetApi } from './services/SwapWidgetApi';
12
+ export { MiningApi, MiningStatusE } from './services/mining';
13
+ export type { MiningMiningInfo } from './services/mining';
9
14
  export { TokenApi } from './services/TokenApi';
15
+ export { SwapApi } from './services/swap/SwapApi';
10
16
  export { SystemApi } from './services/system/SystemApi';
11
17
  export type ExcludeNone<T> = NonNullable<T>;
@@ -1,9 +1,14 @@
1
+ import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
2
+ import BigNumber from 'bignumber.js';
1
3
  import { ChainId } from '../../chainConfig';
2
4
  import RestApiRequest from '../../helper/RestApiRequests';
3
5
  export interface TokenApiProps {
6
+ contractRequests?: ContractRequests;
7
+ contractRequestsConfig?: ContractRequestsConfig;
4
8
  restApiRequest?: RestApiRequest;
5
9
  }
6
10
  export declare class TokenApi {
11
+ contractRequests: ContractRequests;
7
12
  restApiRequest: RestApiRequest;
8
13
  constructor(config: TokenApiProps);
9
14
  static graphql: {
@@ -14,8 +19,18 @@ export declare class TokenApi {
14
19
  where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Erc20_Extenderc20ExtendV2Filter>;
15
20
  }>>;
16
21
  };
17
- static utils: {};
18
- static encode: {};
22
+ static utils: {
23
+ isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
24
+ };
25
+ static encode: {
26
+ approveABI(contractAddress: string, allowance: BigNumber): Promise<string>;
27
+ transferEncodeABI(receiverAddress: string, amount: string): Promise<string>;
28
+ };
29
+ getTokenDecimals(chainId: number | undefined, address: string | undefined): {
30
+ queryKey: (string | number | undefined)[];
31
+ enabled: boolean;
32
+ queryFn: () => Promise<number | null>;
33
+ };
19
34
  getFiatPriceBatch(tokens: Array<{
20
35
  chainId: ChainId;
21
36
  address: string;
@@ -28,4 +43,29 @@ export declare class TokenApi {
28
43
  data: any;
29
44
  };
30
45
  }>;
46
+ getFetchTokenQuery(chainId: number | undefined, address: string | undefined, account: string | undefined, spender?: string): {
47
+ queryKey: (string | number | undefined)[];
48
+ enabled: boolean;
49
+ queryFn: () => Promise<{
50
+ symbol: string;
51
+ address: string;
52
+ name: string;
53
+ decimals: number;
54
+ balance: BigNumber;
55
+ allowance: BigNumber;
56
+ account: string;
57
+ spender: string | undefined;
58
+ chainId: number;
59
+ } | {
60
+ address: string;
61
+ decimals: number;
62
+ symbol: string;
63
+ name: string;
64
+ balance: BigNumber;
65
+ spender: string | undefined;
66
+ allowance: BigNumber;
67
+ chainId: number;
68
+ account?: undefined;
69
+ } | null>;
70
+ };
31
71
  }
@@ -0,0 +1 @@
1
+ export declare const isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
@@ -1,9 +1,17 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
1
3
  export interface AMMV3ApiProps {
4
+ contractRequests?: ContractRequests;
5
+ contractRequestsConfig?: ContractRequestsConfig;
2
6
  }
3
7
  export declare class AMMV3Api {
8
+ contractRequests: ContractRequests;
9
+ constructor(config: AMMV3ApiProps);
4
10
  static graphql: {
5
- AllV3TicksDocument: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").Amm_GetTicksDataQuery, import("../../gql/graphql").Exact<{
6
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").AmmgetTicksDataInput>;
11
+ AllV3TicksDocument: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").TicksQuery, import("../../gql/graphql").Exact<{
12
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Tick_Filter>;
13
+ skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
14
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
7
15
  }>>;
8
16
  };
9
17
  static utils: {
@@ -12,4 +20,39 @@ export declare class AMMV3Api {
12
20
  canOperateLiquidity(type?: import("../pool").PoolType, owner?: string, creator?: string, account?: string): boolean;
13
21
  };
14
22
  static encode: {};
23
+ getPositions(chainId: number | undefined, contractAddress: string | undefined, inputs: string[][]): {
24
+ queryKey: any[];
25
+ enabled: boolean;
26
+ queryFn: () => Promise<any>;
27
+ };
28
+ getOwner(chainId: number | undefined, contractAddress: string | undefined, tokenId: string): {
29
+ queryKey: any[];
30
+ enabled: boolean;
31
+ queryFn: () => Promise<any>;
32
+ };
33
+ getBalanceOf(chainId: number | undefined, contractAddress: string | undefined, account: string | undefined): {
34
+ queryKey: any[];
35
+ enabled: boolean;
36
+ queryFn: () => Promise<BigNumber | null>;
37
+ };
38
+ getTokenOfOwnerByIndex(chainId: number | undefined, contractAddress: string | undefined, tokenIdsArgs: (string | number)[][]): {
39
+ queryKey: any[];
40
+ enabled: boolean;
41
+ queryFn: () => Promise<any>;
42
+ };
43
+ getV3PoolSlot0(chainId: number | undefined, poolAddress: string | undefined): {
44
+ queryKey: any[];
45
+ enabled: boolean;
46
+ queryFn: () => Promise<any>;
47
+ };
48
+ getV3PoolLiquidity(chainId: number | undefined, poolAddress: string | undefined): {
49
+ queryKey: any[];
50
+ enabled: boolean;
51
+ queryFn: () => Promise<any>;
52
+ };
53
+ getCollect(chainId: number | undefined, contractAddress: string | undefined, tokenId: string, recipient: string): {
54
+ queryKey: any[];
55
+ enabled: boolean;
56
+ queryFn: () => Promise<any>;
57
+ };
15
58
  }
@@ -1,4 +1,4 @@
1
- import type { Amm_GetTicksDataQuery } from '../../gql/graphql';
1
+ import { TicksQuery } from '../../gql/graphql';
2
2
  export { AMMV3Api } from './AMMV3Api';
3
- export type Ticks = NonNullable<Amm_GetTicksDataQuery['amm_getTicksData']['ticks']>;
3
+ export type Ticks = NonNullable<TicksQuery['ticks']>;
4
4
  export type TickData = Ticks[number];
@@ -1,3 +1,5 @@
1
- export declare const AllV3TicksDocument: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").Amm_GetTicksDataQuery, import("../../gql/graphql").Exact<{
2
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").AmmgetTicksDataInput>;
1
+ export declare const AllV3TicksDocument: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").TicksQuery, import("../../gql/graphql").Exact<{
2
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Tick_Filter>;
3
+ skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
4
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
3
5
  }>>;