@dodoex/api 3.0.0-taiko.9 → 3.0.0

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 (352) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.js +1 -1
  3. package/dist/{chainConfig → types/chainConfig}/contractConfig.d.ts +2 -0
  4. package/dist/{cjs → types}/gql/gql.d.ts +10 -2
  5. package/dist/{cjs → types}/gql/graphql.d.ts +102 -4
  6. package/dist/{cjs → types}/services/mining/MiningApi.d.ts +14 -2
  7. package/dist/{services → types/services}/pool/PoolApi.d.ts +7 -0
  8. package/dist/{services → types/services}/pool/graphqlQuery.d.ts +7 -0
  9. package/dist/{cjs → types}/services/system/SystemApi.d.ts +3 -0
  10. package/dist/{services → types/services}/system/graphqlQuery.d.ts +3 -0
  11. package/package.json +9 -7
  12. package/dist/cjs/chainConfig/basicToken.d.ts +0 -16
  13. package/dist/cjs/chainConfig/chain.d.ts +0 -20
  14. package/dist/cjs/chainConfig/contractConfig.d.ts +0 -23
  15. package/dist/cjs/chainConfig/index.d.ts +0 -4
  16. package/dist/cjs/chainConfig/platform.d.ts +0 -4
  17. package/dist/cjs/dodoDspProxy-0LfWMy9x.cjs +0 -1
  18. package/dist/cjs/index.cjs +0 -1
  19. package/dist/cjs/services/pool/PoolApi.d.ts +0 -412
  20. package/dist/cjs/services/pool/graphqlQuery.d.ts +0 -43
  21. package/dist/cjs/services/system/graphqlQuery.d.ts +0 -5
  22. package/dist/dodoDspProxy-DE4Hm1tw.js +0 -1
  23. package/dist/gql/fragment-masking.d.ts +0 -15
  24. package/dist/gql/gql.d.ts +0 -64
  25. package/dist/gql/graphql.d.ts +0 -20932
  26. package/dist/gql/index.d.ts +0 -2
  27. package/dist/helper/ContractRequests/abi/ABIs/AaveLendingPoolABI.d.ts +0 -59
  28. package/dist/helper/ContractRequests/abi/ABIs/AaveLendingPoolAddressesProvider.d.ts +0 -40
  29. package/dist/helper/ContractRequests/abi/ABIs/AavePriceOracleABI.d.ts +0 -40
  30. package/dist/helper/ContractRequests/abi/ABIs/AaveProtocolDataProviderABI.d.ts +0 -41
  31. package/dist/helper/ContractRequests/abi/ABIs/BaseDrops.d.ts +0 -3
  32. package/dist/helper/ContractRequests/abi/ABIs/D3MM_READ_ABI.d.ts +0 -26
  33. package/dist/helper/ContractRequests/abi/ABIs/D3Proxy.d.ts +0 -3
  34. package/dist/helper/ContractRequests/abi/ABIs/DODO1155.d.ts +0 -3
  35. package/dist/helper/ContractRequests/abi/ABIs/DODO721.d.ts +0 -3
  36. package/dist/helper/ContractRequests/abi/ABIs/DODOCirculationHelperABI.d.ts +0 -40
  37. package/dist/helper/ContractRequests/abi/ABIs/DODORouteProxy.d.ts +0 -3
  38. package/dist/helper/ContractRequests/abi/ABIs/DODOV1PmmHelperABI.d.ts +0 -3
  39. package/dist/helper/ContractRequests/abi/ABIs/DVM.d.ts +0 -7
  40. package/dist/helper/ContractRequests/abi/ABIs/DropsERC721.d.ts +0 -7
  41. package/dist/helper/ContractRequests/abi/ABIs/FilterAdmin.d.ts +0 -29
  42. package/dist/helper/ContractRequests/abi/ABIs/FilterERC1155V1.d.ts +0 -3
  43. package/dist/helper/ContractRequests/abi/ABIs/FilterERC721V1.d.ts +0 -3
  44. package/dist/helper/ContractRequests/abi/ABIs/Fragment.d.ts +0 -29
  45. package/dist/helper/ContractRequests/abi/ABIs/FundingABI.d.ts +0 -3
  46. package/dist/helper/ContractRequests/abi/ABIs/IdodoV2.d.ts +0 -3
  47. package/dist/helper/ContractRequests/abi/ABIs/LockedTokenVaultABI.d.ts +0 -3
  48. package/dist/helper/ContractRequests/abi/ABIs/MarginTrading.d.ts +0 -36
  49. package/dist/helper/ContractRequests/abi/ABIs/MarginTradingFactory.d.ts +0 -47
  50. package/dist/helper/ContractRequests/abi/ABIs/MerkleDistributorABI.d.ts +0 -40
  51. package/dist/helper/ContractRequests/abi/ABIs/PancakePairABI.d.ts +0 -42
  52. package/dist/helper/ContractRequests/abi/ABIs/baseFilterV1.d.ts +0 -3
  53. package/dist/helper/ContractRequests/abi/ABIs/classicalPoolABI.d.ts +0 -16
  54. package/dist/helper/ContractRequests/abi/ABIs/dodoABI.d.ts +0 -3
  55. package/dist/helper/ContractRequests/abi/ABIs/dodoBuyoutModel.d.ts +0 -3
  56. package/dist/helper/ContractRequests/abi/ABIs/dodoCP.d.ts +0 -3
  57. package/dist/helper/ContractRequests/abi/ABIs/dodoCPABI.d.ts +0 -29
  58. package/dist/helper/ContractRequests/abi/ABIs/dodoCPABIV2.d.ts +0 -36
  59. package/dist/helper/ContractRequests/abi/ABIs/dodoCPFactory.d.ts +0 -3
  60. package/dist/helper/ContractRequests/abi/ABIs/dodoCpProxy.d.ts +0 -3
  61. package/dist/helper/ContractRequests/abi/ABIs/dodoCpProxyV2.d.ts +0 -3
  62. package/dist/helper/ContractRequests/abi/ABIs/dodoCpProxyV202.d.ts +0 -3
  63. package/dist/helper/ContractRequests/abi/ABIs/dodoCustomMintableERC20.d.ts +0 -3
  64. package/dist/helper/ContractRequests/abi/ABIs/dodoDPPAdmin.d.ts +0 -3
  65. package/dist/helper/ContractRequests/abi/ABIs/dodoDPPFactory.d.ts +0 -3
  66. package/dist/helper/ContractRequests/abi/ABIs/dodoDSP.d.ts +0 -3
  67. package/dist/helper/ContractRequests/abi/ABIs/dodoDSPFactory.d.ts +0 -3
  68. package/dist/helper/ContractRequests/abi/ABIs/dodoDVM.d.ts +0 -3
  69. package/dist/helper/ContractRequests/abi/ABIs/dodoDVMFactory.d.ts +0 -3
  70. package/dist/helper/ContractRequests/abi/ABIs/dodoDppProxy.d.ts +0 -3
  71. package/dist/helper/ContractRequests/abi/ABIs/dodoDropsProxy.d.ts +0 -3
  72. package/dist/helper/ContractRequests/abi/ABIs/dodoDspProxy.d.ts +0 -3
  73. package/dist/helper/ContractRequests/abi/ABIs/dodoERC20V3Factory.d.ts +0 -3
  74. package/dist/helper/ContractRequests/abi/ABIs/dodoEthProxyABI.d.ts +0 -3
  75. package/dist/helper/ContractRequests/abi/ABIs/dodoFeeImpl.d.ts +0 -3
  76. package/dist/helper/ContractRequests/abi/ABIs/dodoFragment.d.ts +0 -3
  77. package/dist/helper/ContractRequests/abi/ABIs/dodoMineV3Proxy.d.ts +0 -3
  78. package/dist/helper/ContractRequests/abi/ABIs/dodoMineV3ProxyOld.d.ts +0 -3
  79. package/dist/helper/ContractRequests/abi/ABIs/dodoMiningABI.d.ts +0 -40
  80. package/dist/helper/ContractRequests/abi/ABIs/dodoMiningReaderABI.d.ts +0 -16
  81. package/dist/helper/ContractRequests/abi/ABIs/dodoNftERC1155.d.ts +0 -3
  82. package/dist/helper/ContractRequests/abi/ABIs/dodoNftERC721.d.ts +0 -3
  83. package/dist/helper/ContractRequests/abi/ABIs/dodoNftPoolProxy.d.ts +0 -3
  84. package/dist/helper/ContractRequests/abi/ABIs/dodoNftProxy.d.ts +0 -3
  85. package/dist/helper/ContractRequests/abi/ABIs/dodoNftVault.d.ts +0 -3
  86. package/dist/helper/ContractRequests/abi/ABIs/dodoOracleABI.d.ts +0 -36
  87. package/dist/helper/ContractRequests/abi/ABIs/dodoPair.d.ts +0 -3
  88. package/dist/helper/ContractRequests/abi/ABIs/dodoPreminingABI.d.ts +0 -3
  89. package/dist/helper/ContractRequests/abi/ABIs/dodoProxyV2.d.ts +0 -3
  90. package/dist/helper/ContractRequests/abi/ABIs/dodoStarterProxy.d.ts +0 -3
  91. package/dist/helper/ContractRequests/abi/ABIs/dodoTokenABI.d.ts +0 -36
  92. package/dist/helper/ContractRequests/abi/ABIs/dodoUpCPFactoryABI.d.ts +0 -40
  93. package/dist/helper/ContractRequests/abi/ABIs/dodoUpCpFactory.d.ts +0 -3
  94. package/dist/helper/ContractRequests/abi/ABIs/dodoV1PairProxy.d.ts +0 -3
  95. package/dist/helper/ContractRequests/abi/ABIs/dodoZooABI.d.ts +0 -44
  96. package/dist/helper/ContractRequests/abi/ABIs/dppPoolABI.d.ts +0 -15
  97. package/dist/helper/ContractRequests/abi/ABIs/erc20ABI.d.ts +0 -30
  98. package/dist/helper/ContractRequests/abi/ABIs/erc20Helper.d.ts +0 -3
  99. package/dist/helper/ContractRequests/abi/ABIs/feeABI.d.ts +0 -16
  100. package/dist/helper/ContractRequests/abi/ABIs/multicallABI.d.ts +0 -34
  101. package/dist/helper/ContractRequests/abi/ABIs/nftContract.d.ts +0 -3
  102. package/dist/helper/ContractRequests/abi/ABIs/nftFilterAdmin.d.ts +0 -3
  103. package/dist/helper/ContractRequests/abi/ABIs/oneBitSettlement.d.ts +0 -3
  104. package/dist/helper/ContractRequests/abi/ABIs/setApprovalForAll.d.ts +0 -12
  105. package/dist/helper/ContractRequests/abi/ABIs/spaceIdABI.d.ts +0 -29
  106. package/dist/helper/ContractRequests/abi/ABIs/spaceIdResolverABI.d.ts +0 -29
  107. package/dist/helper/ContractRequests/abi/ABIs/v3MiningABI.d.ts +0 -29
  108. package/dist/helper/ContractRequests/abi/ABIs/vdodo.d.ts +0 -3
  109. package/dist/helper/ContractRequests/abi/ABIs/vdodoTokenABI.d.ts +0 -40
  110. package/dist/helper/ContractRequests/abi/ABIs/weth.d.ts +0 -3
  111. package/dist/helper/ContractRequests/abi/abiName.d.ts +0 -72
  112. package/dist/helper/ContractRequests/abi/index.d.ts +0 -2
  113. package/dist/helper/ContractRequests/batch.d.ts +0 -18
  114. package/dist/helper/ContractRequests/batchProvider.d.ts +0 -25
  115. package/dist/helper/ContractRequests/encode.d.ts +0 -6
  116. package/dist/helper/ContractRequests/index.d.ts +0 -58
  117. package/dist/helper/ContractRequests/type.d.ts +0 -8
  118. package/dist/helper/GraphQLRequests.d.ts +0 -30
  119. package/dist/helper/RestApiRequests.d.ts +0 -37
  120. package/dist/index.d.ts +0 -15
  121. package/dist/services/SwapWidgetApi.d.ts +0 -333
  122. package/dist/services/TokenApi/graphqlQuery.d.ts +0 -8
  123. package/dist/services/TokenApi/index.d.ts +0 -71
  124. package/dist/services/TokenApi/tokenBlackList/bsc.d.ts +0 -2
  125. package/dist/services/TokenApi/tokenBlackList/eth.d.ts +0 -2
  126. package/dist/services/TokenApi/tokenBlackList/index.d.ts +0 -1
  127. package/dist/services/TokenApi/utils.d.ts +0 -1
  128. package/dist/services/mining/MiningApi.d.ts +0 -65
  129. package/dist/services/mining/graphqlQuery.d.ts +0 -11
  130. package/dist/services/mining/index.d.ts +0 -3
  131. package/dist/services/mining/utils.d.ts +0 -26
  132. package/dist/services/pool/index.d.ts +0 -7
  133. package/dist/services/pool/pmm/PMMState.d.ts +0 -23
  134. package/dist/services/pool/pmm/convertPmmParams.d.ts +0 -24
  135. package/dist/services/pool/pmm/pmm.d.ts +0 -41
  136. package/dist/services/pool/pmm/pmmHelper.d.ts +0 -19
  137. package/dist/services/pool/pmm/pmmModel.d.ts +0 -25
  138. package/dist/services/pool/poolUtils.d.ts +0 -6
  139. package/dist/services/pool/type.d.ts +0 -1
  140. package/dist/services/swap/SwapApi.d.ts +0 -8
  141. package/dist/services/swap/graphqlQuery.d.ts +0 -5
  142. package/dist/services/system/SystemApi.d.ts +0 -8
  143. package/dist/utils/color.d.ts +0 -10
  144. package/dist/utils/number.d.ts +0 -3
  145. /package/dist/{cjs/AaveLendingPoolABI-G3D5zkkz.cjs → AaveLendingPoolABI-G3D5zkkz.cjs} +0 -0
  146. /package/dist/{cjs/AaveLendingPoolAddressesProvider-DrLP2k1o.cjs → AaveLendingPoolAddressesProvider-DrLP2k1o.cjs} +0 -0
  147. /package/dist/{cjs/AavePriceOracleABI-C4jkbxlQ.cjs → AavePriceOracleABI-C4jkbxlQ.cjs} +0 -0
  148. /package/dist/{cjs/AaveProtocolDataProviderABI-ChLpWblx.cjs → AaveProtocolDataProviderABI-ChLpWblx.cjs} +0 -0
  149. /package/dist/{cjs/BaseDrops-b4x2vqWE.cjs → BaseDrops-b4x2vqWE.cjs} +0 -0
  150. /package/dist/{cjs/D3MM_READ_ABI-DPl8m5T6.cjs → D3MM_READ_ABI-DPl8m5T6.cjs} +0 -0
  151. /package/dist/{cjs/D3Proxy-ChV5DN6z.cjs → D3Proxy-ChV5DN6z.cjs} +0 -0
  152. /package/dist/{cjs/DODO1155-BNeD65Or.cjs → DODO1155-BNeD65Or.cjs} +0 -0
  153. /package/dist/{cjs/DODO721-CSXhoGSt.cjs → DODO721-CSXhoGSt.cjs} +0 -0
  154. /package/dist/{cjs/DODOCirculationHelperABI-BnZp9-jW.cjs → DODOCirculationHelperABI-BnZp9-jW.cjs} +0 -0
  155. /package/dist/{cjs/DODORouteProxy-BZ0Y3GCA.cjs → DODORouteProxy-BZ0Y3GCA.cjs} +0 -0
  156. /package/dist/{cjs/DODOV1PmmHelperABI-DD2Zqxnx.cjs → DODOV1PmmHelperABI-DD2Zqxnx.cjs} +0 -0
  157. /package/dist/{cjs/DVM-BpNPFgPh.cjs → DVM-BpNPFgPh.cjs} +0 -0
  158. /package/dist/{cjs/DropsERC721-BhKaFHvL.cjs → DropsERC721-BhKaFHvL.cjs} +0 -0
  159. /package/dist/{cjs/FilterAdmin-cj8kYpNK.cjs → FilterAdmin-cj8kYpNK.cjs} +0 -0
  160. /package/dist/{cjs/FilterERC1155V1-CYRg0d1t.cjs → FilterERC1155V1-CYRg0d1t.cjs} +0 -0
  161. /package/dist/{cjs/FilterERC721V1-Bi0L9sSX.cjs → FilterERC721V1-Bi0L9sSX.cjs} +0 -0
  162. /package/dist/{cjs/Fragment-B-F8I7LL.cjs → Fragment-B-F8I7LL.cjs} +0 -0
  163. /package/dist/{cjs/FundingABI-CVCr1rVZ.cjs → FundingABI-CVCr1rVZ.cjs} +0 -0
  164. /package/dist/{cjs/IdodoV2-RfwR_GpI.cjs → IdodoV2-RfwR_GpI.cjs} +0 -0
  165. /package/dist/{cjs/LockedTokenVaultABI-DRbLRj9L.cjs → LockedTokenVaultABI-DRbLRj9L.cjs} +0 -0
  166. /package/dist/{cjs/MarginTrading-DTxWKyBB.cjs → MarginTrading-DTxWKyBB.cjs} +0 -0
  167. /package/dist/{cjs/MarginTradingFactory-CXV_vwa8.cjs → MarginTradingFactory-CXV_vwa8.cjs} +0 -0
  168. /package/dist/{cjs/MerkleDistributorABI-C8Qfs-nh.cjs → MerkleDistributorABI-C8Qfs-nh.cjs} +0 -0
  169. /package/dist/{cjs/PancakePairABI-DYhV587D.cjs → PancakePairABI-DYhV587D.cjs} +0 -0
  170. /package/dist/{cjs/baseFilterV1-BuIlo0KL.cjs → baseFilterV1-BuIlo0KL.cjs} +0 -0
  171. /package/dist/{cjs/bsc-DPJpw0CZ.cjs → bsc-DPJpw0CZ.cjs} +0 -0
  172. /package/dist/{cjs/classicalPoolABI-BECDfgEG.cjs → classicalPoolABI-BECDfgEG.cjs} +0 -0
  173. /package/dist/{cjs/dodoABI-gkjw8zb6.cjs → dodoABI-gkjw8zb6.cjs} +0 -0
  174. /package/dist/{cjs/dodoBuyoutModel-iVgU8FQj.cjs → dodoBuyoutModel-iVgU8FQj.cjs} +0 -0
  175. /package/dist/{cjs/dodoCP-CLHk9HB9.cjs → dodoCP-CLHk9HB9.cjs} +0 -0
  176. /package/dist/{cjs/dodoCPABI-DtzutjJ_.cjs → dodoCPABI-DtzutjJ_.cjs} +0 -0
  177. /package/dist/{cjs/dodoCPABIV2-fyFD9xst.cjs → dodoCPABIV2-fyFD9xst.cjs} +0 -0
  178. /package/dist/{cjs/dodoCPFactory-CBF19zgJ.cjs → dodoCPFactory-CBF19zgJ.cjs} +0 -0
  179. /package/dist/{cjs/dodoCpProxy-C0DPYWye.cjs → dodoCpProxy-C0DPYWye.cjs} +0 -0
  180. /package/dist/{cjs/dodoCpProxyV2-DpTvj7-M.cjs → dodoCpProxyV2-DpTvj7-M.cjs} +0 -0
  181. /package/dist/{cjs/dodoCpProxyV202-BLhZ86Hq.cjs → dodoCpProxyV202-BLhZ86Hq.cjs} +0 -0
  182. /package/dist/{cjs/dodoCustomMintableERC20-_rvvHxmy.cjs → dodoCustomMintableERC20-_rvvHxmy.cjs} +0 -0
  183. /package/dist/{cjs/dodoDPPAdmin-Dn7blhFO.cjs → dodoDPPAdmin-Dn7blhFO.cjs} +0 -0
  184. /package/dist/{cjs/dodoDPPFactory-DZUKGMVx.cjs → dodoDPPFactory-DZUKGMVx.cjs} +0 -0
  185. /package/dist/{cjs/dodoDSP-DiQP3j-f.cjs → dodoDSP-DiQP3j-f.cjs} +0 -0
  186. /package/dist/{cjs/dodoDSPFactory-Bd74S17p.cjs → dodoDSPFactory-Bd74S17p.cjs} +0 -0
  187. /package/dist/{cjs/dodoDVM-cigh0zp3.cjs → dodoDVM-cigh0zp3.cjs} +0 -0
  188. /package/dist/{cjs/dodoDVMFactory-Jw7GN957.cjs → dodoDVMFactory-Jw7GN957.cjs} +0 -0
  189. /package/dist/{cjs/dodoDppProxy-evCBC-32.cjs → dodoDppProxy-evCBC-32.cjs} +0 -0
  190. /package/dist/{cjs/dodoDropsProxy-aB8sftUR.cjs → dodoDropsProxy-aB8sftUR.cjs} +0 -0
  191. /package/dist/{cjs/dodoDspProxy-Bp3cG2Me.cjs → dodoDspProxy-Bp3cG2Me.cjs} +0 -0
  192. /package/dist/{cjs/dodoERC20V3Factory-Dp6VtQdx.cjs → dodoERC20V3Factory-Dp6VtQdx.cjs} +0 -0
  193. /package/dist/{cjs/dodoEthProxyABI-COvGooIx.cjs → dodoEthProxyABI-COvGooIx.cjs} +0 -0
  194. /package/dist/{cjs/dodoFeeImpl-n8uxW-_A.cjs → dodoFeeImpl-n8uxW-_A.cjs} +0 -0
  195. /package/dist/{cjs/dodoFragment-QQKv5zUw.cjs → dodoFragment-QQKv5zUw.cjs} +0 -0
  196. /package/dist/{cjs/dodoMineV3Proxy-DVScIYYs.cjs → dodoMineV3Proxy-DVScIYYs.cjs} +0 -0
  197. /package/dist/{cjs/dodoMineV3ProxyOld-C_F6KVsX.cjs → dodoMineV3ProxyOld-C_F6KVsX.cjs} +0 -0
  198. /package/dist/{cjs/dodoMiningABI-Bz2I9IA2.cjs → dodoMiningABI-Bz2I9IA2.cjs} +0 -0
  199. /package/dist/{cjs/dodoMiningReaderABI-B2wU_50T.cjs → dodoMiningReaderABI-B2wU_50T.cjs} +0 -0
  200. /package/dist/{cjs/dodoNftERC1155-DLIuD5w1.cjs → dodoNftERC1155-DLIuD5w1.cjs} +0 -0
  201. /package/dist/{cjs/dodoNftERC721-CM9UVOIz.cjs → dodoNftERC721-CM9UVOIz.cjs} +0 -0
  202. /package/dist/{cjs/dodoNftPoolProxy-D1h5SkLL.cjs → dodoNftPoolProxy-D1h5SkLL.cjs} +0 -0
  203. /package/dist/{cjs/dodoNftProxy-DM2zeXHX.cjs → dodoNftProxy-DM2zeXHX.cjs} +0 -0
  204. /package/dist/{cjs/dodoNftVault-4I3wB3W5.cjs → dodoNftVault-4I3wB3W5.cjs} +0 -0
  205. /package/dist/{cjs/dodoOracleABI-CZXzRpKf.cjs → dodoOracleABI-CZXzRpKf.cjs} +0 -0
  206. /package/dist/{cjs/dodoPair-DZAKf_5j.cjs → dodoPair-DZAKf_5j.cjs} +0 -0
  207. /package/dist/{cjs/dodoPreminingABI-BO5Cazcq.cjs → dodoPreminingABI-BO5Cazcq.cjs} +0 -0
  208. /package/dist/{cjs/dodoProxyV2-C4O1SzS4.cjs → dodoProxyV2-C4O1SzS4.cjs} +0 -0
  209. /package/dist/{cjs/dodoStarterProxy-DgcH9iEq.cjs → dodoStarterProxy-DgcH9iEq.cjs} +0 -0
  210. /package/dist/{cjs/dodoTokenABI-6Mpqu75U.cjs → dodoTokenABI-6Mpqu75U.cjs} +0 -0
  211. /package/dist/{cjs/dodoUpCPFactoryABI-XGsn8ED4.cjs → dodoUpCPFactoryABI-XGsn8ED4.cjs} +0 -0
  212. /package/dist/{cjs/dodoUpCpFactory-XGsn8ED4.cjs → dodoUpCpFactory-XGsn8ED4.cjs} +0 -0
  213. /package/dist/{cjs/dodoV1PairProxy-DpEjE8Ne.cjs → dodoV1PairProxy-DpEjE8Ne.cjs} +0 -0
  214. /package/dist/{cjs/dodoZooABI-D44Zl74h.cjs → dodoZooABI-D44Zl74h.cjs} +0 -0
  215. /package/dist/{cjs/dppPoolABI-BdDjNXGV.cjs → dppPoolABI-BdDjNXGV.cjs} +0 -0
  216. /package/dist/{cjs/erc20ABI-G8oWOkZ8.cjs → erc20ABI-G8oWOkZ8.cjs} +0 -0
  217. /package/dist/{cjs/erc20Helper-DU3PGwta.cjs → erc20Helper-DU3PGwta.cjs} +0 -0
  218. /package/dist/{cjs/eth-BTzl-wbR.cjs → eth-BTzl-wbR.cjs} +0 -0
  219. /package/dist/{cjs/feeABI-n8uxW-_A.cjs → feeABI-n8uxW-_A.cjs} +0 -0
  220. /package/dist/{cjs/multicallABI-Dhweb42q.cjs → multicallABI-Dhweb42q.cjs} +0 -0
  221. /package/dist/{cjs/nftContract-hvFiWn3Y.cjs → nftContract-hvFiWn3Y.cjs} +0 -0
  222. /package/dist/{cjs/nftFilterAdmin-Bq1uLy_8.cjs → nftFilterAdmin-Bq1uLy_8.cjs} +0 -0
  223. /package/dist/{cjs/oneBitSettlement-DiJ0ov7p.cjs → oneBitSettlement-DiJ0ov7p.cjs} +0 -0
  224. /package/dist/{cjs/setApprovalForAll-C5PVWdKB.cjs → setApprovalForAll-C5PVWdKB.cjs} +0 -0
  225. /package/dist/{cjs/spaceIdABI-B5tTrrz8.cjs → spaceIdABI-B5tTrrz8.cjs} +0 -0
  226. /package/dist/{cjs/spaceIdResolverABI-CrfOXUgo.cjs → spaceIdResolverABI-CrfOXUgo.cjs} +0 -0
  227. /package/dist/{chainConfig → types/chainConfig}/basicToken.d.ts +0 -0
  228. /package/dist/{chainConfig → types/chainConfig}/chain.d.ts +0 -0
  229. /package/dist/{chainConfig → types/chainConfig}/index.d.ts +0 -0
  230. /package/dist/{chainConfig → types/chainConfig}/platform.d.ts +0 -0
  231. /package/dist/{cjs → types}/gql/fragment-masking.d.ts +0 -0
  232. /package/dist/{cjs → types}/gql/index.d.ts +0 -0
  233. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AaveLendingPoolABI.d.ts +0 -0
  234. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AaveLendingPoolAddressesProvider.d.ts +0 -0
  235. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AavePriceOracleABI.d.ts +0 -0
  236. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AaveProtocolDataProviderABI.d.ts +0 -0
  237. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/BaseDrops.d.ts +0 -0
  238. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/D3MM_READ_ABI.d.ts +0 -0
  239. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/D3Proxy.d.ts +0 -0
  240. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODO1155.d.ts +0 -0
  241. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODO721.d.ts +0 -0
  242. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODOCirculationHelperABI.d.ts +0 -0
  243. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODORouteProxy.d.ts +0 -0
  244. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODOV1PmmHelperABI.d.ts +0 -0
  245. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DVM.d.ts +0 -0
  246. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DropsERC721.d.ts +0 -0
  247. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FilterAdmin.d.ts +0 -0
  248. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FilterERC1155V1.d.ts +0 -0
  249. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FilterERC721V1.d.ts +0 -0
  250. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/Fragment.d.ts +0 -0
  251. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FundingABI.d.ts +0 -0
  252. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/IdodoV2.d.ts +0 -0
  253. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/LockedTokenVaultABI.d.ts +0 -0
  254. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/MarginTrading.d.ts +0 -0
  255. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/MarginTradingFactory.d.ts +0 -0
  256. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/MerkleDistributorABI.d.ts +0 -0
  257. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/PancakePairABI.d.ts +0 -0
  258. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/baseFilterV1.d.ts +0 -0
  259. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/classicalPoolABI.d.ts +0 -0
  260. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoABI.d.ts +0 -0
  261. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoBuyoutModel.d.ts +0 -0
  262. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCP.d.ts +0 -0
  263. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCPABI.d.ts +0 -0
  264. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCPABIV2.d.ts +0 -0
  265. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCPFactory.d.ts +0 -0
  266. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCpProxy.d.ts +0 -0
  267. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCpProxyV2.d.ts +0 -0
  268. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCpProxyV202.d.ts +0 -0
  269. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCustomMintableERC20.d.ts +0 -0
  270. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDPPAdmin.d.ts +0 -0
  271. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDPPFactory.d.ts +0 -0
  272. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDSP.d.ts +0 -0
  273. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDSPFactory.d.ts +0 -0
  274. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDVM.d.ts +0 -0
  275. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDVMFactory.d.ts +0 -0
  276. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDppProxy.d.ts +0 -0
  277. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDropsProxy.d.ts +0 -0
  278. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDspProxy.d.ts +0 -0
  279. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoERC20V3Factory.d.ts +0 -0
  280. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoEthProxyABI.d.ts +0 -0
  281. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoFeeImpl.d.ts +0 -0
  282. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoFragment.d.ts +0 -0
  283. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMineV3Proxy.d.ts +0 -0
  284. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMineV3ProxyOld.d.ts +0 -0
  285. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMiningABI.d.ts +0 -0
  286. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMiningReaderABI.d.ts +0 -0
  287. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftERC1155.d.ts +0 -0
  288. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftERC721.d.ts +0 -0
  289. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftPoolProxy.d.ts +0 -0
  290. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftProxy.d.ts +0 -0
  291. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftVault.d.ts +0 -0
  292. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoOracleABI.d.ts +0 -0
  293. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoPair.d.ts +0 -0
  294. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoPreminingABI.d.ts +0 -0
  295. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoProxyV2.d.ts +0 -0
  296. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoStarterProxy.d.ts +0 -0
  297. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoTokenABI.d.ts +0 -0
  298. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoUpCPFactoryABI.d.ts +0 -0
  299. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoUpCpFactory.d.ts +0 -0
  300. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoV1PairProxy.d.ts +0 -0
  301. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoZooABI.d.ts +0 -0
  302. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dppPoolABI.d.ts +0 -0
  303. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/erc20ABI.d.ts +0 -0
  304. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/erc20Helper.d.ts +0 -0
  305. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/feeABI.d.ts +0 -0
  306. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/multicallABI.d.ts +0 -0
  307. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/nftContract.d.ts +0 -0
  308. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/nftFilterAdmin.d.ts +0 -0
  309. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/oneBitSettlement.d.ts +0 -0
  310. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/setApprovalForAll.d.ts +0 -0
  311. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/spaceIdABI.d.ts +0 -0
  312. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/spaceIdResolverABI.d.ts +0 -0
  313. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/v3MiningABI.d.ts +0 -0
  314. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/vdodo.d.ts +0 -0
  315. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/vdodoTokenABI.d.ts +0 -0
  316. /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/weth.d.ts +0 -0
  317. /package/dist/{cjs → types}/helper/ContractRequests/abi/abiName.d.ts +0 -0
  318. /package/dist/{cjs → types}/helper/ContractRequests/abi/index.d.ts +0 -0
  319. /package/dist/{cjs → types}/helper/ContractRequests/batch.d.ts +0 -0
  320. /package/dist/{cjs → types}/helper/ContractRequests/batchProvider.d.ts +0 -0
  321. /package/dist/{cjs → types}/helper/ContractRequests/encode.d.ts +0 -0
  322. /package/dist/{cjs → types}/helper/ContractRequests/index.d.ts +0 -0
  323. /package/dist/{cjs → types}/helper/ContractRequests/type.d.ts +0 -0
  324. /package/dist/{cjs → types}/helper/GraphQLRequests.d.ts +0 -0
  325. /package/dist/{cjs → types}/helper/RestApiRequests.d.ts +0 -0
  326. /package/dist/{cjs → types}/index.d.ts +0 -0
  327. /package/dist/{cjs → types}/services/SwapWidgetApi.d.ts +0 -0
  328. /package/dist/{cjs → types}/services/TokenApi/graphqlQuery.d.ts +0 -0
  329. /package/dist/{cjs → types}/services/TokenApi/index.d.ts +0 -0
  330. /package/dist/{cjs → types}/services/TokenApi/tokenBlackList/bsc.d.ts +0 -0
  331. /package/dist/{cjs → types}/services/TokenApi/tokenBlackList/eth.d.ts +0 -0
  332. /package/dist/{cjs → types}/services/TokenApi/tokenBlackList/index.d.ts +0 -0
  333. /package/dist/{cjs → types}/services/TokenApi/utils.d.ts +0 -0
  334. /package/dist/{cjs → types}/services/mining/graphqlQuery.d.ts +0 -0
  335. /package/dist/{cjs → types}/services/mining/index.d.ts +0 -0
  336. /package/dist/{cjs → types}/services/mining/utils.d.ts +0 -0
  337. /package/dist/{cjs → types}/services/pool/index.d.ts +0 -0
  338. /package/dist/{cjs → types}/services/pool/pmm/PMMState.d.ts +0 -0
  339. /package/dist/{cjs → types}/services/pool/pmm/convertPmmParams.d.ts +0 -0
  340. /package/dist/{cjs → types}/services/pool/pmm/pmm.d.ts +0 -0
  341. /package/dist/{cjs → types}/services/pool/pmm/pmmHelper.d.ts +0 -0
  342. /package/dist/{cjs → types}/services/pool/pmm/pmmModel.d.ts +0 -0
  343. /package/dist/{cjs → types}/services/pool/poolUtils.d.ts +0 -0
  344. /package/dist/{cjs → types}/services/pool/type.d.ts +0 -0
  345. /package/dist/{cjs → types}/services/swap/SwapApi.d.ts +0 -0
  346. /package/dist/{cjs → types}/services/swap/graphqlQuery.d.ts +0 -0
  347. /package/dist/{cjs → types}/utils/color.d.ts +0 -0
  348. /package/dist/{cjs → types}/utils/number.d.ts +0 -0
  349. /package/dist/{cjs/v3MiningABI-C-S-QkHw.cjs → v3MiningABI-C-S-QkHw.cjs} +0 -0
  350. /package/dist/{cjs/vdodo-BV3kGDOM.cjs → vdodo-BV3kGDOM.cjs} +0 -0
  351. /package/dist/{cjs/vdodoTokenABI-BuOHA0B9.cjs → vdodoTokenABI-BuOHA0B9.cjs} +0 -0
  352. /package/dist/{cjs/weth-CGG0Z6re.cjs → weth-CGG0Z6re.cjs} +0 -0
@@ -1,412 +0,0 @@
1
- import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
2
- import { PoolType } from './type';
3
- import BigNumber from 'bignumber.js';
4
- export interface PoolApiProps {
5
- contractRequests?: ContractRequests;
6
- contractRequestsConfig?: ContractRequestsConfig;
7
- }
8
- export declare class PoolApi {
9
- contractRequests: ContractRequests;
10
- constructor(config: PoolApiProps);
11
- static graphql: {
12
- fetchPoolList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolListQuery, import("../../gql/graphql").Exact<{
13
- first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
14
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
15
- orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_OrderBy>;
16
- }>>;
17
- fetchLiquidityList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityListQuery, import("../../gql/graphql").Exact<{
18
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Liquiditylist_Filter>;
19
- }>>;
20
- fetchMyLiquidityList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchMyLiquidityListQuery, import("../../gql/graphql").Exact<{
21
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Liquiditylist_Filter>;
22
- }>>;
23
- fetchDashboardPairList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchDashboardPairListQuery, import("../../gql/graphql").Exact<{
24
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardtype_List_Filter>;
25
- }>>;
26
- fetchPool: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolQuery, import("../../gql/graphql").Exact<{
27
- id: import("../../gql/graphql").Scalars["ID"]["input"];
28
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
29
- liquidityWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Liquiditylist_Filter>;
30
- }>>;
31
- fetchPoolDayData: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolDayDataQuery, import("../../gql/graphql").Exact<{
32
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardday_Filter>;
33
- }>>;
34
- fetchPoolDashboard: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolDashboardQuery, import("../../gql/graphql").Exact<{
35
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardpair_Detail_Filter>;
36
- }>>;
37
- fetchPoolSwapList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolSwapListQuery, import("../../gql/graphql").Exact<{
38
- first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
39
- skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
40
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Swap_Filter>;
41
- orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Swap_OrderBy>;
42
- orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
43
- }>>;
44
- fetchLiquidityPositions: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityPositionsQuery, import("../../gql/graphql").Exact<{
45
- id: import("../../gql/graphql").Scalars["ID"]["input"];
46
- first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
47
- skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
48
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_Filter>;
49
- miningWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_Filter>;
50
- orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_OrderBy>;
51
- orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
52
- }>>;
53
- };
54
- static utils: {
55
- getIsV3Mining(type: PoolType): boolean;
56
- singleSideLp(type: PoolType): boolean;
57
- canOperateLiquidity(type?: PoolType, owner?: string, creator?: string, account?: string): boolean;
58
- };
59
- static encode: {
60
- /**
61
- * @notice Create DSP pool
62
- * @param baseToken {"decimals","address"}
63
- * @param quoteToken {"decimals","address"}
64
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
65
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
66
- * @param lpFeeRate Example: 0.0001 is passed in 1
67
- * @param i Decimals are not considered
68
- * @param k Scope: 0 => 1
69
- * @param deadline Deadline timestamp in seconds
70
- */
71
- createDSPPoolABI(chainId: number, baseToken: {
72
- decimals: number;
73
- address: string;
74
- }, quoteToken: {
75
- decimals: number;
76
- address: string;
77
- }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number, isOpenTWAP?: boolean): Promise<{
78
- to: string;
79
- data: string;
80
- }>;
81
- /**
82
- * @notice Create GSP pool
83
- * @param baseToken {"decimals","address"}
84
- * @param account account address
85
- * @param quoteToken {"decimals","address"}
86
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
87
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
88
- * @param lpFeeRate Example: 0.0001 is passed in 1
89
- * @param i Decimals are not considered
90
- * @param k Scope: 0 => 1
91
- */
92
- createGSPPoolABI(chainId: number, account: string, baseToken: {
93
- decimals: number;
94
- address: string;
95
- }, quoteToken: {
96
- decimals: number;
97
- address: string;
98
- }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number): Promise<{
99
- to: string;
100
- data: string;
101
- }>;
102
- /**
103
- * @notice Create DVM pool
104
- * @param baseToken {"decimals","address"}
105
- * @param quoteToken {"decimals","address"}
106
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
107
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
108
- * @param lpFeeRate Example: 0.0001 is passed in 1
109
- * @param i Decimals are not considered
110
- * @param k Scope: 0 => 1
111
- * @param deadline Deadline timestamp in seconds
112
- */
113
- createDVMPoolABI(chainId: number, baseToken: {
114
- decimals: number;
115
- address: string;
116
- }, quoteToken: {
117
- decimals: number;
118
- address: string;
119
- }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number, isOpenTWAP?: boolean): Promise<{
120
- to: string;
121
- data: string;
122
- }>;
123
- /**
124
- * @notice Create DPP pool
125
- * @param baseToken {"decimals","address"}
126
- * @param quoteToken {"decimals","address"}
127
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
128
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
129
- * @param lpFeeRate Example: 0.0001 is passed in 1
130
- * @param i Decimals are not considered
131
- * @param k Scope: 0 => 1
132
- * @param deadline Deadline timestamp in seconds
133
- */
134
- createDPPPoolABI(chainId: number, baseToken: {
135
- decimals: number;
136
- address: string;
137
- }, quoteToken: {
138
- decimals: number;
139
- address: string;
140
- }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number, isOpenTWAP?: boolean): Promise<{
141
- to: string;
142
- data: string;
143
- }>;
144
- /**
145
- * @notice Remove liquidity from the DPP pool and directly call DPPAdmin for vehicle deflation tokens (no ETH automatic conversion to WETH function).
146
- * @param _OWNER_ _OWNER_: getDPPOwnerProxyAddressQuery
147
- * @param newLpFeeRate Example: 0.0001 is passed in 1
148
- * @param newI Decimals are not considered
149
- * @param newK Scope: 0 => 1
150
- * @param baseOutAmount Number of base extracted (considering decimals)
151
- * @param quoteOutAmount Number of quote extracted (considering decimals)
152
- * @param minBaseReserve Protection mechanism (minimum baseReserve, consider decimals)
153
- * @param minQuoteReserve Protection mechanism (minimum quoteReserve, consider decimals)
154
- * @param baseDecimals baseToken decimals
155
- * @param quoteDecimals quoteToken decimals
156
- */
157
- removeDPPPoolABI(_OWNER_: string, newLpFeeRate: number, newI: number, newK: number, baseOutAmount: string, quoteOutAmount: string, minBaseReserve: string, minQuoteReserve: string, baseDecimals: number, quoteDecimals: number): Promise<{
158
- to: string;
159
- data: string;
160
- }>;
161
- /**
162
- * @notice Reset DPP pool
163
- * @param dppAddress DPP pool address
164
- * @param newLpFeeRate Example: 0.0001 is passed in 1
165
- * @param newI (Decimals are not considered
166
- * @param newK Scope: 0 => 1
167
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
168
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
169
- * @param baseOutAmount Number of base extracted (considering decimals)
170
- * @param quoteOutAmount Number of quote extracted (considering decimals)
171
- * @param minBaseReserve Protection mechanism (minimum baseReserve, consider decimals)
172
- * @param minQuoteReserve Protection mechanism (minimum quoteReserve, consider decimals)
173
- * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
174
- * @param baseDecimals baseToken decimals
175
- * @param quoteDecimals quoteToken decimals
176
- * @param deadline Deadline timestamp in seconds
177
- */
178
- resetDPPPoolABI(chainId: number, dppAddress: string, newLpFeeRate: number, newI: number, newK: number, baseInAmount: string, quoteInAmount: string, baseOutAmount: string, quoteOutAmount: string, minBaseReserve: string, minQuoteReserve: string, flag: number, baseDecimals: number, quoteDecimals: number, deadline: number): Promise<{
179
- to: string;
180
- data: string;
181
- }>;
182
- /**
183
- * @notice add liquidity to DSP pool
184
- * @param poolAddress pool address
185
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
186
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
187
- * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
188
- * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
189
- * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
190
- * @param deadline Deadline timestamp in seconds
191
- */
192
- addDSPLiquidityABI(chainId: number, dspAddress: string, baseInAmount: string, quoteInAmount: string, baseMinAmount: string, quoteMinAmount: string, flag: number, deadline: number): Promise<{
193
- to: string;
194
- data: string;
195
- }>;
196
- /**
197
- * @notice add liquidity to DVM pool
198
- * @param poolAddress pool address
199
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
200
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
201
- * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
202
- * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
203
- * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
204
- * @param deadline Deadline timestamp in seconds
205
- */
206
- addDVMLiquidityABI(chainId: number, dvmAddress: string, baseInAmount: string, quoteInAmount: string, baseMinAmount: string, quoteMinAmount: string, flag: number, deadline: number): Promise<{
207
- to: string;
208
- data: string;
209
- }>;
210
- /**
211
- * @notice Remove liquidity from DSP pool
212
- * @param poolAddress pool address
213
- * @param assetTo Remove the fund sending address (if the received funds have ETH, this value can be empty)
214
- * @param sharesAmount Number of Shares destroyed (considering Decimals)
215
- * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
216
- * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
217
- * @param isUnWrap Whether to convert to ETH
218
- * @param deadline Deadline timestamp in seconds
219
- */
220
- removeDSPLiquidityABI(chainId: number, dspAddress: string, assetTo: string, sharesAmount: string, baseMinAmount: string, quoteMinAmount: string, isUnWrap: boolean, deadline: number): Promise<{
221
- to: string;
222
- data: string;
223
- }>;
224
- /**
225
- * @notice Remove liquidity from DVM pool
226
- * @param poolAddress pool address
227
- * @param assetTo Remove the fund sending address (if the received funds have ETH, this value can be empty)
228
- * @param sharesAmount Number of Shares destroyed (considering Decimals)
229
- * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
230
- * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
231
- * @param isUnWrap Whether to convert to ETH
232
- * @param deadline Deadline timestamp in seconds
233
- */
234
- removeDVMLiquidityABI(chainId: number, dvmAddress: string, assetTo: string, sharesAmount: string, baseMinAmount: string, quoteMinAmount: string, isUnWrap: boolean, deadline: number): Promise<{
235
- to: string;
236
- data: string;
237
- }>;
238
- /**
239
- * @notice add liquidity to Classical pool
240
- * @param poolAddress pool address
241
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
242
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
243
- * @param baseLpMinAmount Get the minimum number of baseShares (considering decimals) (slippage protection)
244
- * @param quoteLpMinAmount Get the minimum number of quoteShares (considering decimals) (slippage protection)
245
- * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
246
- * @param deadline Deadline timestamp in seconds
247
- */
248
- addClassicalLiquidityABI(chainId: number, poolAddress: string, baseInAmount: string, quoteInAmount: string, baseLpMinAmount: string, quoteLpMinAmount: string, flag: number, deadline: number): Promise<{
249
- to: string;
250
- data: string;
251
- }>;
252
- /**
253
- * @notice Remove base liquidity to Classical pool
254
- * @param poolAddress pool address
255
- * @param baseOutAmount The number of bases you wish to remove (considering decimals)
256
- * @param baseOutMinAmount Minimum number of base to remove (considering decimals) (slippage protection)
257
- */
258
- removeClassicalBaseABI(chainId: number, poolAddress: string, baseOutAmount: string, baseOutMinAmount: string): Promise<{
259
- to: string;
260
- data: string;
261
- }>;
262
- /**
263
- * @notice Remove all base liquidity to Classical pool
264
- * @param poolAddress pool address
265
- * @param baseOutMinAmount Minimum number of base to remove (considering decimals) (slippage protection)
266
- */
267
- removeMaxClassicalBaseABI(chainId: number, poolAddress: string, baseOutMinAmount: string): Promise<{
268
- to: string;
269
- data: string;
270
- }>;
271
- /**
272
- * @notice Remove quote liquidity to Classical pool
273
- * @param poolAddress pool address
274
- * @param quoteOutAmount The number of bases you wish to remove (considering decimals)
275
- * @param quoteOutMinAmount Minimum number of quote to remove (considering decimals) (slippage protection)
276
- */
277
- removeClassicalQuoteABI(chainId: number, poolAddress: string, quoteOutAmount: string, quoteOutMinAmount: string): Promise<{
278
- to: string;
279
- data: string;
280
- }>;
281
- /**
282
- * @notice Remove all quote liquidity to Classical pool
283
- * @param poolAddress pool address
284
- * @param baseOutMinAmount Minimum number of quote to remove (considering decimals) (slippage protection)
285
- */
286
- removeMaxClassicalQuoteABI(chainId: number, poolAddress: string, quoteOutMinAmount: string): Promise<{
287
- to: string;
288
- data: string;
289
- }>;
290
- };
291
- /**
292
- * Get existing lp balance
293
- * The CLASSICAL,V3CLASSICAL pool will only return base, other pools will return all
294
- */
295
- getTotalBaseLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined): {
296
- queryKey: any[];
297
- enabled: boolean;
298
- queryFn: () => Promise<BigNumber | null>;
299
- };
300
- /**
301
- * Get existing quote lp balance
302
- * Only CLASSICAL,V3CLASSICAL pool exists
303
- */
304
- getTotalQuoteLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined): {
305
- queryKey: any[];
306
- enabled: boolean;
307
- queryFn: () => Promise<BigNumber | null>;
308
- };
309
- /**
310
- * Get the user's existing lp balance
311
- * The CLASSICAL,V3CLASSICAL pool will only return base, other pools will return all
312
- */
313
- getUserBaseLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined, account: string | undefined): {
314
- queryKey: any[];
315
- enabled: boolean;
316
- queryFn: () => Promise<BigNumber | null>;
317
- };
318
- /**
319
- * Get the user's existing quote lp balance
320
- * Only CLASSICAL,V3CLASSICAL pool exists
321
- */
322
- getUserQuoteLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined, account: string | undefined): {
323
- queryKey: any[];
324
- enabled: boolean;
325
- queryFn: () => Promise<BigNumber | null>;
326
- };
327
- /**
328
- * Get the total deposited lp balance
329
- */
330
- getReserveLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, baseDecimals: number | undefined, quoteDecimals: number | undefined): {
331
- queryKey: any[];
332
- enabled: boolean;
333
- queryFn: () => Promise<{
334
- baseReserve: BigNumber;
335
- quoteReserve: BigNumber;
336
- } | null>;
337
- };
338
- /**
339
- * Get Classical equilibrium target
340
- */
341
- getClassicalTargetQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, baseDecimals: number | undefined, quoteDecimals: number | undefined): {
342
- queryKey: any[];
343
- enabled: boolean;
344
- queryFn: () => Promise<{
345
- baseTarget: BigNumber;
346
- quoteTarget: BigNumber;
347
- } | null>;
348
- };
349
- getTotalBaseMiningLpQuery(chainId: number | undefined, baseMiningContractAddress: string | undefined, type: PoolType | undefined, baseLpTokenAddress: string | undefined, decimals: number | undefined): {
350
- queryKey: any[];
351
- enabled: boolean;
352
- queryFn: () => Promise<BigNumber | null>;
353
- };
354
- getTotalQuoteMiningLpQuery(chainId: number | undefined, quoteMiningContractAddress: string | undefined, type: PoolType | undefined, quoteLpTokenAddress: string | undefined, decimals: number | undefined): {
355
- queryKey: any[];
356
- enabled: boolean;
357
- queryFn: () => Promise<BigNumber | null>;
358
- };
359
- getUserBaseMiningLpQuery(chainId: number | undefined, baseMiningContractAddress: string | undefined, type: PoolType | undefined, baseLpTokenAddress: string | undefined, decimals: number | undefined, account: string | undefined): {
360
- queryKey: any[];
361
- enabled: boolean;
362
- queryFn: () => Promise<BigNumber | null>;
363
- };
364
- getUserQuoteMiningLpQuery(chainId: number | undefined, quoteMiningContractAddress: string | undefined, type: PoolType | undefined, quoteLpTokenAddress: string | undefined, decimals: number | undefined, account: string | undefined): {
365
- queryKey: any[];
366
- enabled: boolean;
367
- queryFn: () => Promise<BigNumber | null>;
368
- };
369
- getLPFeeRateQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined): {
370
- queryKey: any[];
371
- enabled: boolean;
372
- queryFn: () => Promise<BigNumber | null>;
373
- };
374
- getFeeRateQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, account: string | undefined): {
375
- queryKey: any[];
376
- enabled: boolean;
377
- queryFn: () => Promise<{
378
- lpFeeRate: BigNumber;
379
- mtFeeRate: BigNumber;
380
- } | null>;
381
- };
382
- getPMMStateQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, baseDecimals: number | undefined, quoteDecimals: number | undefined): {
383
- queryKey: any[];
384
- enabled: boolean;
385
- queryFn: () => Promise<{
386
- midPrice: BigNumber | undefined;
387
- pmmParamsBG: {
388
- q: BigNumber;
389
- b: BigNumber;
390
- k: BigNumber;
391
- i: BigNumber;
392
- b0: BigNumber;
393
- q0: BigNumber;
394
- R: number;
395
- lpFeeRate: BigNumber | undefined;
396
- mtFeeRate: BigNumber | undefined;
397
- };
398
- baseReserve: BigNumber;
399
- quoteReserve: BigNumber;
400
- } | null>;
401
- };
402
- getDPPOwnerProxyAddressQuery(chainId: number | undefined, poolAddress: string | undefined): {
403
- queryKey: any[];
404
- enabled: boolean;
405
- queryFn: () => Promise<any> | null;
406
- };
407
- getWithdrawBasePenaltyQuery(chainId: number | undefined, poolAddress: string | undefined, baseOutAmount: string | undefined, decimals: number | undefined): {
408
- queryKey: any[];
409
- enabled: boolean;
410
- queryFn: () => Promise<BigNumber | null>;
411
- };
412
- }
@@ -1,43 +0,0 @@
1
- export declare const poolGraphqlQuery: {
2
- fetchPoolList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolListQuery, import("../../gql/graphql").Exact<{
3
- first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
4
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
5
- orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_OrderBy>;
6
- }>>;
7
- fetchLiquidityList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityListQuery, import("../../gql/graphql").Exact<{
8
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Liquiditylist_Filter>;
9
- }>>;
10
- fetchMyLiquidityList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchMyLiquidityListQuery, import("../../gql/graphql").Exact<{
11
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Liquiditylist_Filter>;
12
- }>>;
13
- fetchDashboardPairList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchDashboardPairListQuery, import("../../gql/graphql").Exact<{
14
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardtype_List_Filter>;
15
- }>>;
16
- fetchPool: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolQuery, import("../../gql/graphql").Exact<{
17
- id: import("../../gql/graphql").Scalars["ID"]["input"];
18
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
19
- liquidityWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Liquiditylist_Filter>;
20
- }>>;
21
- fetchPoolDayData: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolDayDataQuery, import("../../gql/graphql").Exact<{
22
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardday_Filter>;
23
- }>>;
24
- fetchPoolDashboard: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolDashboardQuery, import("../../gql/graphql").Exact<{
25
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardpair_Detail_Filter>;
26
- }>>;
27
- fetchPoolSwapList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolSwapListQuery, import("../../gql/graphql").Exact<{
28
- first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
29
- skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
30
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Swap_Filter>;
31
- orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Swap_OrderBy>;
32
- orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
33
- }>>;
34
- fetchLiquidityPositions: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityPositionsQuery, import("../../gql/graphql").Exact<{
35
- id: import("../../gql/graphql").Scalars["ID"]["input"];
36
- first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
37
- skip?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
38
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_Filter>;
39
- miningWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_Filter>;
40
- orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_OrderBy>;
41
- orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
42
- }>>;
43
- };
@@ -1,5 +0,0 @@
1
- export declare const systemGraphqlQuery: {
2
- fetchNoticeCenterTransactionList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchNoticeCenterTransactionListQuery, import("../../gql/graphql").Exact<{
3
- where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Notice_CentertransactionListFilter>;
4
- }>>;
5
- };
@@ -1 +0,0 @@
1
- const e=[{inputs:[{internalType:"address",name:"dspFactory",type:"address"},{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DSP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTWAP",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOStablePair",outputs:[{internalType:"address",name:"newDODOStablePair",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"dspAddress",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"baseMinAmount",type:"uint256"},{internalType:"uint256",name:"quoteMinAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addDSPLiquidity",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"baseAdjustedInAmount",type:"uint256"},{internalType:"uint256",name:"quoteAdjustedInAmount",type:"uint256"}],stateMutability:"payable",type:"function"}];export{e as default};
@@ -1,15 +0,0 @@
1
- import { ResultOf, DocumentTypeDecoration } from '@graphql-typed-document-node/core';
2
- import { Incremental, TypedDocumentString } from './graphql';
3
- export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
4
- ' $fragmentName'?: infer TKey;
5
- }] ? TKey extends string ? {
6
- ' $fragmentRefs'?: {
7
- [key in TKey]: TType;
8
- };
9
- } : never : never : never;
10
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
11
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
12
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
13
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
14
- export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
15
- export declare function isFragmentReady<TQuery, TFrag>(queryNode: TypedDocumentString<TQuery, any>, fragmentNode: TypedDocumentString<TFrag, any>, data: FragmentType<TypedDocumentString<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
package/dist/gql/gql.d.ts DELETED
@@ -1,64 +0,0 @@
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;
9
- /**
10
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
11
- */
12
- export declare function graphql(source: '\n query FetchMiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n baseApy\n baseLpToken {\n decimals\n address: id\n symbol\n }\n baseToken {\n decimals\n address: id\n price\n symbol\n logoImg\n }\n endBlock\n miningContractAddress\n miningTotalDollar\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n address: id\n symbol\n }\n quoteToken {\n decimals\n address: id\n price\n symbol\n logoImg\n }\n rewardTokenInfos {\n apy\n decimals\n address: id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n address: id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n startBlock\n title\n platform\n startTime\n endTime\n }\n totalCount\n chains\n }\n }\n '): typeof import('./graphql').FetchMiningListDocument;
13
- /**
14
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
15
- */
16
- export declare function graphql(source: '\n query MiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n isGSP\n isNewERCMineV3\n baseApy\n baseLpToken {\n decimals\n id\n symbol\n }\n baseToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n endBlock\n miningContractAddress\n miningTotalDollar\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n id\n symbol\n }\n quoteToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n rewardTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n startBlock\n title\n platform\n blockNumber\n startTime\n endTime\n }\n totalCount\n chains\n }\n }\n '): typeof import('./graphql').MiningListDocument;
17
- /**
18
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
19
- */
20
- export declare function graphql(source: '\n query MyCreatedMiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n isGSP\n isNewERCMineV3\n baseApy\n baseLpToken {\n decimals\n id\n symbol\n }\n baseToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n endBlock\n miningContractAddress\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n id\n symbol\n }\n quoteToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n rewardTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n startBlock\n title\n platform\n blockNumber\n participantsNum\n startTime\n endTime\n }\n totalCount\n chains\n }\n }\n '): typeof import('./graphql').MyCreatedMiningListDocument;
21
- /**
22
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
23
- */
24
- export declare function graphql(source: '\n query FetchPoolList(\n $first: Int\n $where: Pair_filter\n $orderBy: Pair_orderBy\n ) {\n pairs(\n first: $first\n where: $where\n orderBy: $orderBy\n orderDirection: desc\n ) {\n id\n type\n creator\n owner\n lpFeeRate\n i\n k\n baseReserve\n quoteReserve\n lastTradePrice\n feeBase\n feeQuote\n baseToken {\n id\n symbol\n name\n decimals\n }\n quoteToken {\n id\n symbol\n name\n decimals\n }\n baseLpToken {\n id\n }\n quoteLpToken {\n id\n }\n }\n }\n '): typeof import('./graphql').FetchPoolListDocument;
25
- /**
26
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
27
- */
28
- 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 creator\n baseLpToken {\n id\n }\n quoteLpToken {\n id\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 }\n }\n }\n }\n '): typeof import('./graphql').FetchLiquidityListDocument;
29
- /**
30
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
31
- */
32
- 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 }\n pair {\n id\n chainId\n type\n lpFeeRate\n creator\n baseLpToken {\n id\n }\n quoteLpToken {\n id\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 }\n }\n }\n }\n '): typeof import('./graphql').FetchMyLiquidityListDocument;
33
- /**
34
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
35
- */
36
- export declare function graphql(source: '\n query FetchDashboardPairList($where: Dashboardtype_list_filter) {\n dashboard_pairs_list(where: $where) {\n list {\n chainId\n pairAddress\n poolType\n baseReserve\n quoteReserve\n totalFee\n baseAddress\n quoteAddress\n baseSymbol\n quoteSymbol\n tvl\n baseTvl\n quoteTvl\n baseTvlRate\n quoteTvlRate\n }\n }\n }\n '): typeof import('./graphql').FetchDashboardPairListDocument;
37
- /**
38
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
39
- */
40
- 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 }\n quoteLpToken {\n id\n symbol\n name\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;
41
- /**
42
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
43
- */
44
- export declare function graphql(source: '\n query FetchPoolDayData($where: Dashboardday_filter) {\n dashboard_pairs_day_data(where: $where) {\n timestamp\n date\n volume\n fee\n tvl\n addresses\n txes\n }\n }\n '): typeof import('./graphql').FetchPoolDayDataDocument;
45
- /**
46
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
47
- */
48
- export declare function graphql(source: '\n query FetchPoolDashboard($where: Dashboardpair_detail_filter) {\n dashboard_pairs_detail(where: $where) {\n fee\n volume\n totalFee\n totalVolume\n tvl\n turnover\n liquidity\n baseReserve\n quoteReserve\n baseVolume\n quoteVolume\n basePrice\n quotePrice\n price\n baseFee\n quoteFee\n pair\n poolType\n baseVolumeCumulative\n quoteVolumeCumulative\n baseAddress\n baseSymbol\n quoteAddress\n quoteSymbol\n network\n pairAddress\n txes\n txesNear24h\n txUsers\n txUserNear24h\n }\n }\n '): typeof import('./graphql').FetchPoolDashboardDocument;
49
- /**
50
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
51
- */
52
- export declare function graphql(source: '\n query FetchPoolSwapList(\n $first: Int\n $skip: Int\n $where: Swap_filter\n $orderBy: Swap_orderBy\n $orderDirection: OrderDirection\n ) {\n swaps(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n timestamp\n from\n baseVolume\n quoteVolume\n feeBase\n feeQuote\n fromToken {\n id\n symbol\n name\n decimals\n }\n toToken {\n id\n symbol\n name\n decimals\n }\n amountIn\n amountOut\n }\n }\n '): typeof import('./graphql').FetchPoolSwapListDocument;
53
- /**
54
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
55
- */
56
- export declare function graphql(source: '\n query FetchLiquidityPositions(\n $id: ID!\n $first: Int\n $skip: Int\n $where: LiquidityPosition_filter\n $miningWhere: LiquidityPosition_filter\n $orderBy: LiquidityPosition_orderBy\n $orderDirection: OrderDirection\n ) {\n balance: liquidityPositions(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n liquidityTokenBalance\n }\n mining: liquidityPositions(\n first: $first\n skip: $skip\n where: $miningWhere\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n liquidityTokenInMining\n }\n pair(id: $id) {\n lastTradePrice\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 }\n quoteToken {\n id\n symbol\n name\n decimals\n }\n }\n }\n '): typeof import('./graphql').FetchLiquidityPositionsDocument;
57
- /**
58
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
59
- */
60
- export declare function graphql(source: '\n query FetchUserSwapOrderHistories($where: User_swapswapFilter) {\n user_swap_orderHistories(where: $where) {\n count\n page\n list {\n chainId\n createdAt\n fromAmount\n fromTokenDecimals\n fromTokenPrice\n fromTokenSymbol\n fromTokenAddress\n fromTokenLogoImg\n hash\n status\n toAmount\n toTokenDecimals\n toTokenPrice\n toTokenSymbol\n toTokenAddress\n toTokenLogoImg\n minAmount\n nonce\n extra\n user\n }\n }\n }\n '): typeof import('./graphql').FetchUserSwapOrderHistoriesDocument;
61
- /**
62
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
63
- */
64
- export declare function graphql(source: '\n query FetchNoticeCenterTransactionList(\n $where: Notice_centertransactionListFilter\n ) {\n notice_center_transactionList(where: $where) {\n list {\n chainId\n createTime\n extend\n from\n id\n key\n type\n }\n count\n limit\n page\n }\n }\n '): typeof import('./graphql').FetchNoticeCenterTransactionListDocument;