@dodoex/api 0.0.1 → 1.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 (320) 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 -0
  156. package/dist/index.js +1 -1
  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 +16 -0
  172. package/dist/types/chainConfig/chain.d.ts +34 -0
  173. package/dist/types/chainConfig/contractConfig.d.ts +27 -0
  174. package/dist/types/chainConfig/index.d.ts +4 -0
  175. package/dist/types/chainConfig/platform.d.ts +4 -0
  176. package/dist/types/gql/fragment-masking.d.ts +15 -0
  177. package/dist/types/gql/gql.d.ts +80 -0
  178. package/dist/types/gql/graphql.d.ts +19296 -0
  179. package/dist/types/gql/index.d.ts +2 -0
  180. package/dist/types/helper/ContractRequests/abi/ABIs/AaveLendingPoolABI.d.ts +59 -0
  181. package/dist/types/helper/ContractRequests/abi/ABIs/AaveLendingPoolAddressesProvider.d.ts +40 -0
  182. package/dist/types/helper/ContractRequests/abi/ABIs/AavePriceOracleABI.d.ts +40 -0
  183. package/dist/types/helper/ContractRequests/abi/ABIs/AaveProtocolDataProviderABI.d.ts +41 -0
  184. package/dist/types/helper/ContractRequests/abi/ABIs/BaseDrops.d.ts +3 -0
  185. package/dist/types/helper/ContractRequests/abi/ABIs/D3MM_READ_ABI.d.ts +26 -0
  186. package/dist/types/helper/ContractRequests/abi/ABIs/D3Proxy.d.ts +3 -0
  187. package/dist/types/helper/ContractRequests/abi/ABIs/DODO1155.d.ts +3 -0
  188. package/dist/types/helper/ContractRequests/abi/ABIs/DODO721.d.ts +3 -0
  189. package/dist/types/helper/ContractRequests/abi/ABIs/DODOCirculationHelperABI.d.ts +40 -0
  190. package/dist/types/helper/ContractRequests/abi/ABIs/DODORouteProxy.d.ts +3 -0
  191. package/dist/types/helper/ContractRequests/abi/ABIs/DODOV1PmmHelperABI.d.ts +3 -0
  192. package/dist/types/helper/ContractRequests/abi/ABIs/DVM.d.ts +7 -0
  193. package/dist/types/helper/ContractRequests/abi/ABIs/DropsERC721.d.ts +7 -0
  194. package/dist/types/helper/ContractRequests/abi/ABIs/FilterAdmin.d.ts +29 -0
  195. package/dist/types/helper/ContractRequests/abi/ABIs/FilterERC1155V1.d.ts +3 -0
  196. package/dist/types/helper/ContractRequests/abi/ABIs/FilterERC721V1.d.ts +3 -0
  197. package/dist/types/helper/ContractRequests/abi/ABIs/Fragment.d.ts +29 -0
  198. package/dist/types/helper/ContractRequests/abi/ABIs/FundingABI.d.ts +3 -0
  199. package/dist/types/helper/ContractRequests/abi/ABIs/IdodoV2.d.ts +3 -0
  200. package/dist/types/helper/ContractRequests/abi/ABIs/LockedTokenVaultABI.d.ts +3 -0
  201. package/dist/types/helper/ContractRequests/abi/ABIs/MarginTrading.d.ts +36 -0
  202. package/dist/types/helper/ContractRequests/abi/ABIs/MarginTradingFactory.d.ts +47 -0
  203. package/dist/types/helper/ContractRequests/abi/ABIs/MerkleDistributorABI.d.ts +40 -0
  204. package/dist/types/helper/ContractRequests/abi/ABIs/NonfungiblePositionManager.d.ts +67 -0
  205. package/dist/types/helper/ContractRequests/abi/ABIs/PancakePairABI.d.ts +42 -0
  206. package/dist/types/helper/ContractRequests/abi/ABIs/UniswapV3Pool.d.ts +16 -0
  207. package/dist/types/helper/ContractRequests/abi/ABIs/baseFilterV1.d.ts +3 -0
  208. package/dist/types/helper/ContractRequests/abi/ABIs/classicalPoolABI.d.ts +16 -0
  209. package/dist/types/helper/ContractRequests/abi/ABIs/dodoABI.d.ts +3 -0
  210. package/dist/types/helper/ContractRequests/abi/ABIs/dodoBuyoutModel.d.ts +3 -0
  211. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCP.d.ts +3 -0
  212. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCPABI.d.ts +29 -0
  213. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCPABIV2.d.ts +36 -0
  214. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCPFactory.d.ts +3 -0
  215. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCpProxy.d.ts +3 -0
  216. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCpProxyV2.d.ts +3 -0
  217. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCpProxyV202.d.ts +3 -0
  218. package/dist/types/helper/ContractRequests/abi/ABIs/dodoCustomMintableERC20.d.ts +3 -0
  219. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDPPAdmin.d.ts +3 -0
  220. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDPPFactory.d.ts +3 -0
  221. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDSP.d.ts +3 -0
  222. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDSPFactory.d.ts +3 -0
  223. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDVM.d.ts +3 -0
  224. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDVMFactory.d.ts +3 -0
  225. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDppProxy.d.ts +3 -0
  226. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDropsProxy.d.ts +3 -0
  227. package/dist/types/helper/ContractRequests/abi/ABIs/dodoDspProxy.d.ts +3 -0
  228. package/dist/types/helper/ContractRequests/abi/ABIs/dodoERC20V3Factory.d.ts +3 -0
  229. package/dist/types/helper/ContractRequests/abi/ABIs/dodoEthProxyABI.d.ts +3 -0
  230. package/dist/types/helper/ContractRequests/abi/ABIs/dodoFeeImpl.d.ts +3 -0
  231. package/dist/types/helper/ContractRequests/abi/ABIs/dodoFragment.d.ts +3 -0
  232. package/dist/types/helper/ContractRequests/abi/ABIs/dodoMineV3Proxy.d.ts +3 -0
  233. package/dist/types/helper/ContractRequests/abi/ABIs/dodoMineV3ProxyOld.d.ts +3 -0
  234. package/dist/types/helper/ContractRequests/abi/ABIs/dodoMiningABI.d.ts +40 -0
  235. package/dist/types/helper/ContractRequests/abi/ABIs/dodoMiningReaderABI.d.ts +16 -0
  236. package/dist/types/helper/ContractRequests/abi/ABIs/dodoNftERC1155.d.ts +3 -0
  237. package/dist/types/helper/ContractRequests/abi/ABIs/dodoNftERC721.d.ts +3 -0
  238. package/dist/types/helper/ContractRequests/abi/ABIs/dodoNftPoolProxy.d.ts +3 -0
  239. package/dist/types/helper/ContractRequests/abi/ABIs/dodoNftProxy.d.ts +3 -0
  240. package/dist/types/helper/ContractRequests/abi/ABIs/dodoNftVault.d.ts +3 -0
  241. package/dist/types/helper/ContractRequests/abi/ABIs/dodoOracleABI.d.ts +36 -0
  242. package/dist/types/helper/ContractRequests/abi/ABIs/dodoPair.d.ts +3 -0
  243. package/dist/types/helper/ContractRequests/abi/ABIs/dodoPreminingABI.d.ts +3 -0
  244. package/dist/types/helper/ContractRequests/abi/ABIs/dodoProxyV2.d.ts +3 -0
  245. package/dist/types/helper/ContractRequests/abi/ABIs/dodoStarterProxy.d.ts +3 -0
  246. package/dist/types/helper/ContractRequests/abi/ABIs/dodoTokenABI.d.ts +36 -0
  247. package/dist/types/helper/ContractRequests/abi/ABIs/dodoUpCPFactoryABI.d.ts +40 -0
  248. package/dist/types/helper/ContractRequests/abi/ABIs/dodoUpCpFactory.d.ts +3 -0
  249. package/dist/types/helper/ContractRequests/abi/ABIs/dodoV1PairProxy.d.ts +3 -0
  250. package/dist/types/helper/ContractRequests/abi/ABIs/dodoZooABI.d.ts +44 -0
  251. package/dist/types/helper/ContractRequests/abi/ABIs/dppPoolABI.d.ts +15 -0
  252. package/dist/types/helper/ContractRequests/abi/ABIs/erc20ABI.d.ts +30 -0
  253. package/dist/types/helper/ContractRequests/abi/ABIs/erc20Helper.d.ts +3 -0
  254. package/dist/types/helper/ContractRequests/abi/ABIs/feeABI.d.ts +16 -0
  255. package/dist/types/helper/ContractRequests/abi/ABIs/multicallABI.d.ts +34 -0
  256. package/dist/types/helper/ContractRequests/abi/ABIs/nftContract.d.ts +3 -0
  257. package/dist/types/helper/ContractRequests/abi/ABIs/nftFilterAdmin.d.ts +3 -0
  258. package/dist/types/helper/ContractRequests/abi/ABIs/oneBitSettlement.d.ts +3 -0
  259. package/dist/types/helper/ContractRequests/abi/ABIs/setApprovalForAll.d.ts +12 -0
  260. package/dist/types/helper/ContractRequests/abi/ABIs/spaceIdABI.d.ts +29 -0
  261. package/dist/types/helper/ContractRequests/abi/ABIs/spaceIdResolverABI.d.ts +29 -0
  262. package/dist/types/helper/ContractRequests/abi/ABIs/v3MiningABI.d.ts +29 -0
  263. package/dist/types/helper/ContractRequests/abi/ABIs/vdodo.d.ts +3 -0
  264. package/dist/types/helper/ContractRequests/abi/ABIs/vdodoTokenABI.d.ts +40 -0
  265. package/dist/types/helper/ContractRequests/abi/ABIs/weth.d.ts +3 -0
  266. package/dist/types/helper/ContractRequests/abi/abiName.d.ts +74 -0
  267. package/dist/types/helper/ContractRequests/abi/index.d.ts +2 -0
  268. package/dist/types/helper/ContractRequests/batch.d.ts +18 -0
  269. package/dist/types/helper/ContractRequests/batchProvider.d.ts +25 -0
  270. package/dist/types/helper/ContractRequests/encode.d.ts +6 -0
  271. package/dist/types/helper/ContractRequests/index.d.ts +58 -0
  272. package/dist/types/helper/ContractRequests/type.d.ts +8 -0
  273. package/dist/types/helper/GraphQLRequests.d.ts +30 -0
  274. package/dist/{cjs → types}/helper/RestApiRequests.d.ts +3 -3
  275. package/dist/types/index.d.ts +17 -0
  276. package/dist/{services → types/services}/SwapWidgetApi.d.ts +52 -6
  277. package/dist/types/services/TokenApi/graphqlQuery.d.ts +8 -0
  278. package/dist/types/services/TokenApi/index.d.ts +71 -0
  279. package/dist/types/services/TokenApi/tokenBlackList/bsc.d.ts +2 -0
  280. package/dist/types/services/TokenApi/tokenBlackList/eth.d.ts +2 -0
  281. package/dist/types/services/TokenApi/tokenBlackList/index.d.ts +1 -0
  282. package/dist/types/services/TokenApi/utils.d.ts +1 -0
  283. package/dist/types/services/ammv3/AMMV3Api.d.ts +58 -0
  284. package/dist/types/services/ammv3/index.d.ts +4 -0
  285. package/dist/types/services/ammv3/queries.d.ts +5 -0
  286. package/dist/types/services/mining/MiningApi.d.ts +77 -0
  287. package/dist/types/services/mining/graphqlQuery.d.ts +11 -0
  288. package/dist/types/services/mining/index.d.ts +3 -0
  289. package/dist/types/services/mining/utils.d.ts +26 -0
  290. package/dist/types/services/pool/PoolApi.d.ts +420 -0
  291. package/dist/types/services/pool/graphqlQuery.d.ts +50 -0
  292. package/dist/types/services/pool/index.d.ts +7 -0
  293. package/dist/types/services/pool/pmm/PMMState.d.ts +23 -0
  294. package/dist/types/services/pool/pmm/convertPmmParams.d.ts +24 -0
  295. package/dist/types/services/pool/pmm/pmm.d.ts +41 -0
  296. package/dist/types/services/pool/pmm/pmmHelper.d.ts +19 -0
  297. package/dist/types/services/pool/pmm/pmmModel.d.ts +25 -0
  298. package/dist/types/services/pool/poolUtils.d.ts +6 -0
  299. package/dist/types/services/pool/type.d.ts +1 -0
  300. package/dist/types/services/swap/SwapApi.d.ts +8 -0
  301. package/dist/types/services/swap/graphqlQuery.d.ts +5 -0
  302. package/dist/types/services/system/SystemApi.d.ts +14 -0
  303. package/dist/types/services/system/graphqlQuery.d.ts +11 -0
  304. package/dist/types/utils/number.d.ts +3 -0
  305. package/dist/v3MiningABI-C-S-QkHw.cjs +1 -0
  306. package/dist/v3MiningABI-ZjGBkolS.js +1 -0
  307. package/dist/vdodo-BV3kGDOM.cjs +1 -0
  308. package/dist/vdodo-ttc2RVOs.js +1 -0
  309. package/dist/vdodoTokenABI-BuOHA0B9.cjs +1 -0
  310. package/dist/vdodoTokenABI-PldrbOSo.js +1 -0
  311. package/dist/weth-CGG0Z6re.cjs +1 -0
  312. package/dist/weth-Dz5DGEIF.js +1 -0
  313. package/package.json +36 -18
  314. package/dist/cjs/index.cjs +0 -1
  315. package/dist/cjs/index.d.ts +0 -1
  316. package/dist/cjs/services/SwapWidgetApi.d.ts +0 -81
  317. package/dist/helper/RestApiRequests.d.ts +0 -37
  318. package/dist/index.d.ts +0 -1
  319. package/dist/utils/color.d.ts +0 -10
  320. /package/dist/{cjs → types}/utils/color.d.ts +0 -0
@@ -0,0 +1,77 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { ChainId } from '../../chainConfig/chain';
3
+ import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
4
+ export interface MiningApiProps {
5
+ contractRequests?: ContractRequests;
6
+ contractRequestsConfig?: ContractRequestsConfig;
7
+ }
8
+ export declare class MiningApi {
9
+ contractRequests: ContractRequests;
10
+ constructor(config: MiningApiProps);
11
+ static utils: {
12
+ getMiningStatusByTimestamp: ({ startTime: startTimeRoot, endTime: endTimeRoot, rewardTokenInfoList, }: {
13
+ startTime: string | undefined | null;
14
+ endTime: string | undefined | null;
15
+ rewardTokenInfoList: Array<{
16
+ startTime: string | BigNumber | undefined | null;
17
+ endTime: string | BigNumber | undefined | null;
18
+ }>;
19
+ }) => {
20
+ status: import("./utils").MiningStatusE;
21
+ firstStartTime: BigNumber | undefined;
22
+ lastEndTime: BigNumber | undefined;
23
+ currentTime: BigNumber;
24
+ };
25
+ };
26
+ static graphql: {
27
+ fetchMiningList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchMiningListQuery, import("../../gql/graphql").Exact<{
28
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Miningmining_List_Filter>;
29
+ }>>;
30
+ fetchMiningListV1: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").MiningListQuery, import("../../gql/graphql").Exact<{
31
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Miningmining_List_Filter>;
32
+ }>>;
33
+ fetchMyCreatedMiningList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").MyCreatedMiningListQuery, import("../../gql/graphql").Exact<{
34
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Miningmining_List_Filter>;
35
+ }>>;
36
+ };
37
+ static encode: {
38
+ depositMining(miningContractAddress: string, amount: BigNumber, decimals: number): Promise<{
39
+ to: string;
40
+ data: string;
41
+ }>;
42
+ withdrawMining(miningContractAddress: string, amount: BigNumber, decimals: number): Promise<{
43
+ to: string;
44
+ data: string;
45
+ }>;
46
+ claimAllMining(miningContractAddress: string): Promise<{
47
+ to: string;
48
+ data: string;
49
+ }>;
50
+ createDODOMineV3(chainId: ChainId, stakeToken: string, isLpToken: boolean, platform: number, rewardTokens: string[], rewardPerBlock: string[], startBlock: number[], endBlock: number[]): Promise<{
51
+ to: string;
52
+ data: string;
53
+ } | null>;
54
+ };
55
+ getPendingRewardQuery(chainId: number | undefined, contractAddress: string | undefined, account: string | undefined, tokenAddress: string | undefined, tokenDecimals: number | undefined, version: '2' | '3' | null | undefined): {
56
+ queryKey: any[];
57
+ enabled: boolean;
58
+ queryFn: () => Promise<BigNumber | null>;
59
+ };
60
+ getLpStakedBalance(chainId: number | undefined, contractAddress: string | undefined, account: string | undefined, tokenAddress: string | undefined, tokenDecimals: number | undefined, version: '2' | '3' | null | undefined): {
61
+ queryKey: any[];
62
+ enabled: boolean;
63
+ queryFn: () => Promise<BigNumber | null>;
64
+ };
65
+ getRewardTokenInfos(chainId: number | undefined, miningContractAddress: string | undefined, index: number, skip?: Boolean): {
66
+ queryKey: any[];
67
+ enabled: boolean;
68
+ queryFn: () => Promise<{
69
+ rewardVault: any;
70
+ rewardPerBlock: BigNumber;
71
+ workThroughReward: BigNumber | undefined;
72
+ lastFlagBlock: BigNumber | undefined;
73
+ startBlock: BigNumber;
74
+ endBlock: BigNumber;
75
+ } | null>;
76
+ };
77
+ }
@@ -0,0 +1,11 @@
1
+ export declare const miningGraphqlQuery: {
2
+ fetchMiningList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchMiningListQuery, import("../../gql/graphql").Exact<{
3
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Miningmining_List_Filter>;
4
+ }>>;
5
+ fetchMiningListV1: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").MiningListQuery, import("../../gql/graphql").Exact<{
6
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Miningmining_List_Filter>;
7
+ }>>;
8
+ fetchMyCreatedMiningList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").MyCreatedMiningListQuery, import("../../gql/graphql").Exact<{
9
+ where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Miningmining_List_Filter>;
10
+ }>>;
11
+ };
@@ -0,0 +1,3 @@
1
+ export { MiningApi } from './MiningApi';
2
+ export { MiningStatusE } from './utils';
3
+ export type { MiningMiningInfo } from '../../gql/graphql';
@@ -0,0 +1,26 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare enum MiningStatusE {
3
+ upcoming = 0,
4
+ active = 1,
5
+ ended = 2
6
+ }
7
+ export declare const miningUtils: {
8
+ /**
9
+ * Get mining activity status by timestamp
10
+ * @param param0
11
+ * @returns
12
+ */
13
+ getMiningStatusByTimestamp: ({ startTime: startTimeRoot, endTime: endTimeRoot, rewardTokenInfoList, }: {
14
+ startTime: string | undefined | null;
15
+ endTime: string | undefined | null;
16
+ rewardTokenInfoList: Array<{
17
+ startTime: string | BigNumber | undefined | null;
18
+ endTime: string | BigNumber | undefined | null;
19
+ }>;
20
+ }) => {
21
+ status: MiningStatusE;
22
+ firstStartTime: BigNumber | undefined;
23
+ lastEndTime: BigNumber | undefined;
24
+ currentTime: BigNumber;
25
+ };
26
+ };
@@ -0,0 +1,420 @@
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
+ fetchPoolPairList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolPairListQuery, import("../../gql/graphql").Exact<{
54
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
55
+ baseWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
56
+ quoteWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
57
+ orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_OrderBy>;
58
+ orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
59
+ }>>;
60
+ };
61
+ static utils: {
62
+ getIsV3Mining(type: PoolType): boolean;
63
+ singleSideLp(type: PoolType): boolean;
64
+ canOperateLiquidity(type?: PoolType, owner?: string, creator?: string, account?: string): boolean;
65
+ };
66
+ static encode: {
67
+ /**
68
+ * @notice Create DSP pool
69
+ * @param baseToken {"decimals","address"}
70
+ * @param quoteToken {"decimals","address"}
71
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
72
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
73
+ * @param lpFeeRate Example: 0.0001 is passed in 1
74
+ * @param i Decimals are not considered
75
+ * @param k Scope: 0 => 1
76
+ * @param deadline Deadline timestamp in seconds
77
+ */
78
+ createDSPPoolABI(chainId: number, baseToken: {
79
+ decimals: number;
80
+ address: string;
81
+ }, quoteToken: {
82
+ decimals: number;
83
+ address: string;
84
+ }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number, isOpenTWAP?: boolean): Promise<{
85
+ to: string;
86
+ data: string;
87
+ }>;
88
+ /**
89
+ * @notice Create GSP pool
90
+ * @param baseToken {"decimals","address"}
91
+ * @param account account address
92
+ * @param quoteToken {"decimals","address"}
93
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
94
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
95
+ * @param lpFeeRate Example: 0.0001 is passed in 1
96
+ * @param i Decimals are not considered
97
+ * @param k Scope: 0 => 1
98
+ */
99
+ createGSPPoolABI(chainId: number, account: string, baseToken: {
100
+ decimals: number;
101
+ address: string;
102
+ }, quoteToken: {
103
+ decimals: number;
104
+ address: string;
105
+ }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number): Promise<{
106
+ to: string;
107
+ data: string;
108
+ }>;
109
+ /**
110
+ * @notice Create DVM pool
111
+ * @param baseToken {"decimals","address"}
112
+ * @param quoteToken {"decimals","address"}
113
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
114
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
115
+ * @param lpFeeRate Example: 0.0001 is passed in 1
116
+ * @param i Decimals are not considered
117
+ * @param k Scope: 0 => 1
118
+ * @param deadline Deadline timestamp in seconds
119
+ */
120
+ createDVMPoolABI(chainId: number, baseToken: {
121
+ decimals: number;
122
+ address: string;
123
+ }, quoteToken: {
124
+ decimals: number;
125
+ address: string;
126
+ }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number, isOpenTWAP?: boolean): Promise<{
127
+ to: string;
128
+ data: string;
129
+ }>;
130
+ /**
131
+ * @notice Create DPP pool
132
+ * @param baseToken {"decimals","address"}
133
+ * @param quoteToken {"decimals","address"}
134
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
135
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
136
+ * @param lpFeeRate Example: 0.0001 is passed in 1
137
+ * @param i Decimals are not considered
138
+ * @param k Scope: 0 => 1
139
+ * @param deadline Deadline timestamp in seconds
140
+ */
141
+ createDPPPoolABI(chainId: number, baseToken: {
142
+ decimals: number;
143
+ address: string;
144
+ }, quoteToken: {
145
+ decimals: number;
146
+ address: string;
147
+ }, baseInAmount: string, quoteInAmount: string, lpFeeRate: number, i: string, k: number, deadline: number, isOpenTWAP?: boolean): Promise<{
148
+ to: string;
149
+ data: string;
150
+ }>;
151
+ /**
152
+ * @notice Remove liquidity from the DPP pool and directly call DPPAdmin for vehicle deflation tokens (no ETH automatic conversion to WETH function).
153
+ * @param _OWNER_ _OWNER_: getDPPOwnerProxyAddressQuery
154
+ * @param newLpFeeRate Example: 0.0001 is passed in 1
155
+ * @param newI Decimals are not considered
156
+ * @param newK Scope: 0 => 1
157
+ * @param baseOutAmount Number of base extracted (considering decimals)
158
+ * @param quoteOutAmount Number of quote extracted (considering decimals)
159
+ * @param minBaseReserve Protection mechanism (minimum baseReserve, consider decimals)
160
+ * @param minQuoteReserve Protection mechanism (minimum quoteReserve, consider decimals)
161
+ * @param baseDecimals baseToken decimals
162
+ * @param quoteDecimals quoteToken decimals
163
+ */
164
+ removeDPPPoolABI(_OWNER_: string, newLpFeeRate: number, newI: number, newK: number, baseOutAmount: string, quoteOutAmount: string, minBaseReserve: string, minQuoteReserve: string, baseDecimals: number, quoteDecimals: number): Promise<{
165
+ to: string;
166
+ data: string;
167
+ }>;
168
+ /**
169
+ * @notice Reset DPP pool
170
+ * @param dppAddress DPP pool address
171
+ * @param newLpFeeRate Example: 0.0001 is passed in 1
172
+ * @param newI (Decimals are not considered
173
+ * @param newK Scope: 0 => 1
174
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
175
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
176
+ * @param baseOutAmount Number of base extracted (considering decimals)
177
+ * @param quoteOutAmount Number of quote extracted (considering decimals)
178
+ * @param minBaseReserve Protection mechanism (minimum baseReserve, consider decimals)
179
+ * @param minQuoteReserve Protection mechanism (minimum quoteReserve, consider decimals)
180
+ * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
181
+ * @param baseDecimals baseToken decimals
182
+ * @param quoteDecimals quoteToken decimals
183
+ * @param deadline Deadline timestamp in seconds
184
+ */
185
+ 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<{
186
+ to: string;
187
+ data: string;
188
+ }>;
189
+ /**
190
+ * @notice add liquidity to DSP pool
191
+ * @param poolAddress pool address
192
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
193
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
194
+ * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
195
+ * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
196
+ * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
197
+ * @param deadline Deadline timestamp in seconds
198
+ */
199
+ addDSPLiquidityABI(chainId: number, dspAddress: string, baseInAmount: string, quoteInAmount: string, baseMinAmount: string, quoteMinAmount: string, flag: number, deadline: number): Promise<{
200
+ to: string;
201
+ data: string;
202
+ }>;
203
+ /**
204
+ * @notice add liquidity to DVM pool
205
+ * @param poolAddress pool address
206
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
207
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
208
+ * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
209
+ * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
210
+ * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
211
+ * @param deadline Deadline timestamp in seconds
212
+ */
213
+ addDVMLiquidityABI(chainId: number, dvmAddress: string, baseInAmount: string, quoteInAmount: string, baseMinAmount: string, quoteMinAmount: string, flag: number, deadline: number): Promise<{
214
+ to: string;
215
+ data: string;
216
+ }>;
217
+ /**
218
+ * @notice Remove liquidity from DSP pool
219
+ * @param poolAddress pool address
220
+ * @param assetTo Remove the fund sending address (if the received funds have ETH, this value can be empty)
221
+ * @param sharesAmount Number of Shares destroyed (considering Decimals)
222
+ * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
223
+ * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
224
+ * @param isUnWrap Whether to convert to ETH
225
+ * @param deadline Deadline timestamp in seconds
226
+ */
227
+ removeDSPLiquidityABI(chainId: number, dspAddress: string, assetTo: string, sharesAmount: string, baseMinAmount: string, quoteMinAmount: string, isUnWrap: boolean, deadline: number): Promise<{
228
+ to: string;
229
+ data: string;
230
+ }>;
231
+ /**
232
+ * @notice Remove liquidity from DVM pool
233
+ * @param poolAddress pool address
234
+ * @param assetTo Remove the fund sending address (if the received funds have ETH, this value can be empty)
235
+ * @param sharesAmount Number of Shares destroyed (considering Decimals)
236
+ * @param baseMinAmount Minimum number of base to add (considering decimals) (slippage protection)
237
+ * @param quoteMinAmount Minimum number of quote to add (considering decimals) (slippage protection)
238
+ * @param isUnWrap Whether to convert to ETH
239
+ * @param deadline Deadline timestamp in seconds
240
+ */
241
+ removeDVMLiquidityABI(chainId: number, dvmAddress: string, assetTo: string, sharesAmount: string, baseMinAmount: string, quoteMinAmount: string, isUnWrap: boolean, deadline: number): Promise<{
242
+ to: string;
243
+ data: string;
244
+ }>;
245
+ /**
246
+ * @notice add liquidity to Classical pool
247
+ * @param poolAddress pool address
248
+ * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
249
+ * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
250
+ * @param baseLpMinAmount Get the minimum number of baseShares (considering decimals) (slippage protection)
251
+ * @param quoteLpMinAmount Get the minimum number of quoteShares (considering decimals) (slippage protection)
252
+ * @param flag 0 - ERC20, 1 - baseInETH, 2 - quoteInETH, 3 - baseOutETH, 4 - quoteOutETH
253
+ * @param deadline Deadline timestamp in seconds
254
+ */
255
+ addClassicalLiquidityABI(chainId: number, poolAddress: string, baseInAmount: string, quoteInAmount: string, baseLpMinAmount: string, quoteLpMinAmount: string, flag: number, deadline: number): Promise<{
256
+ to: string;
257
+ data: string;
258
+ }>;
259
+ /**
260
+ * @notice Remove base liquidity to Classical pool
261
+ * @param poolAddress pool address
262
+ * @param baseOutAmount The number of bases you wish to remove (considering decimals)
263
+ * @param baseOutMinAmount Minimum number of base to remove (considering decimals) (slippage protection)
264
+ */
265
+ removeClassicalBaseABI(chainId: number, poolAddress: string, baseOutAmount: string, baseOutMinAmount: string): Promise<{
266
+ to: string;
267
+ data: string;
268
+ }>;
269
+ /**
270
+ * @notice Remove all base liquidity to Classical pool
271
+ * @param poolAddress pool address
272
+ * @param baseOutMinAmount Minimum number of base to remove (considering decimals) (slippage protection)
273
+ */
274
+ removeMaxClassicalBaseABI(chainId: number, poolAddress: string, baseOutMinAmount: string): Promise<{
275
+ to: string;
276
+ data: string;
277
+ }>;
278
+ /**
279
+ * @notice Remove quote liquidity to Classical pool
280
+ * @param poolAddress pool address
281
+ * @param quoteOutAmount The number of bases you wish to remove (considering decimals)
282
+ * @param quoteOutMinAmount Minimum number of quote to remove (considering decimals) (slippage protection)
283
+ */
284
+ removeClassicalQuoteABI(chainId: number, poolAddress: string, quoteOutAmount: string, quoteOutMinAmount: string): Promise<{
285
+ to: string;
286
+ data: string;
287
+ }>;
288
+ /**
289
+ * @notice Remove all quote liquidity to Classical pool
290
+ * @param poolAddress pool address
291
+ * @param baseOutMinAmount Minimum number of quote to remove (considering decimals) (slippage protection)
292
+ */
293
+ removeMaxClassicalQuoteABI(chainId: number, poolAddress: string, quoteOutMinAmount: string): Promise<{
294
+ to: string;
295
+ data: string;
296
+ }>;
297
+ };
298
+ /**
299
+ * Get existing lp balance
300
+ * The CLASSICAL,V3CLASSICAL pool will only return base, other pools will return all
301
+ */
302
+ getTotalBaseLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined): {
303
+ queryKey: any[];
304
+ enabled: boolean;
305
+ queryFn: () => Promise<BigNumber | null>;
306
+ };
307
+ /**
308
+ * Get existing quote lp balance
309
+ * Only CLASSICAL,V3CLASSICAL pool exists
310
+ */
311
+ getTotalQuoteLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined): {
312
+ queryKey: any[];
313
+ enabled: boolean;
314
+ queryFn: () => Promise<BigNumber | null>;
315
+ };
316
+ /**
317
+ * Get the user's existing lp balance
318
+ * The CLASSICAL,V3CLASSICAL pool will only return base, other pools will return all
319
+ */
320
+ getUserBaseLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined, account: string | undefined): {
321
+ queryKey: any[];
322
+ enabled: boolean;
323
+ queryFn: () => Promise<BigNumber | null>;
324
+ };
325
+ /**
326
+ * Get the user's existing quote lp balance
327
+ * Only CLASSICAL,V3CLASSICAL pool exists
328
+ */
329
+ getUserQuoteLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, decimals: number | undefined, account: string | undefined): {
330
+ queryKey: any[];
331
+ enabled: boolean;
332
+ queryFn: () => Promise<BigNumber | null>;
333
+ };
334
+ /**
335
+ * Get the total deposited lp balance
336
+ * The base and quote of the AMM pool should be passed in in order
337
+ */
338
+ getReserveLpQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, baseDecimals: number | undefined, quoteDecimals: number | undefined): {
339
+ queryKey: any[];
340
+ enabled: boolean;
341
+ queryFn: () => Promise<{
342
+ baseReserve: BigNumber;
343
+ quoteReserve: BigNumber;
344
+ } | null>;
345
+ };
346
+ /**
347
+ * Get Classical equilibrium target
348
+ */
349
+ getClassicalTargetQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, baseDecimals: number | undefined, quoteDecimals: number | undefined): {
350
+ queryKey: any[];
351
+ enabled: boolean;
352
+ queryFn: () => Promise<{
353
+ baseTarget: BigNumber;
354
+ quoteTarget: BigNumber;
355
+ } | null>;
356
+ };
357
+ getTotalBaseMiningLpQuery(chainId: number | undefined, baseMiningContractAddress: string | undefined, type: PoolType | undefined, baseLpTokenAddress: string | undefined, decimals: number | undefined): {
358
+ queryKey: any[];
359
+ enabled: boolean;
360
+ queryFn: () => Promise<BigNumber | null>;
361
+ };
362
+ getTotalQuoteMiningLpQuery(chainId: number | undefined, quoteMiningContractAddress: string | undefined, type: PoolType | undefined, quoteLpTokenAddress: string | undefined, decimals: number | undefined): {
363
+ queryKey: any[];
364
+ enabled: boolean;
365
+ queryFn: () => Promise<BigNumber | null>;
366
+ };
367
+ getUserBaseMiningLpQuery(chainId: number | undefined, baseMiningContractAddress: string | undefined, type: PoolType | undefined, baseLpTokenAddress: string | undefined, decimals: number | undefined, account: string | undefined): {
368
+ queryKey: any[];
369
+ enabled: boolean;
370
+ queryFn: () => Promise<BigNumber | null>;
371
+ };
372
+ getUserQuoteMiningLpQuery(chainId: number | undefined, quoteMiningContractAddress: string | undefined, type: PoolType | undefined, quoteLpTokenAddress: string | undefined, decimals: number | undefined, account: string | undefined): {
373
+ queryKey: any[];
374
+ enabled: boolean;
375
+ queryFn: () => Promise<BigNumber | null>;
376
+ };
377
+ getLPFeeRateQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined): {
378
+ queryKey: any[];
379
+ enabled: boolean;
380
+ queryFn: () => Promise<BigNumber | null>;
381
+ };
382
+ getFeeRateQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, account: string | undefined): {
383
+ queryKey: any[];
384
+ enabled: boolean;
385
+ queryFn: () => Promise<{
386
+ lpFeeRate: BigNumber;
387
+ mtFeeRate: BigNumber;
388
+ } | null>;
389
+ };
390
+ getPMMStateQuery(chainId: number | undefined, poolAddress: string | undefined, type: PoolType | undefined, baseDecimals: number | undefined, quoteDecimals: number | undefined): {
391
+ queryKey: any[];
392
+ enabled: boolean;
393
+ queryFn: () => Promise<{
394
+ midPrice: BigNumber | undefined;
395
+ pmmParamsBG: {
396
+ q: BigNumber;
397
+ b: BigNumber;
398
+ k: BigNumber;
399
+ i: BigNumber;
400
+ b0: BigNumber;
401
+ q0: BigNumber;
402
+ R: number;
403
+ lpFeeRate: BigNumber | undefined;
404
+ mtFeeRate: BigNumber | undefined;
405
+ };
406
+ baseReserve: BigNumber;
407
+ quoteReserve: BigNumber;
408
+ } | null>;
409
+ };
410
+ getDPPOwnerProxyAddressQuery(chainId: number | undefined, poolAddress: string | undefined): {
411
+ queryKey: any[];
412
+ enabled: boolean;
413
+ queryFn: () => Promise<any> | null;
414
+ };
415
+ getWithdrawBasePenaltyQuery(chainId: number | undefined, poolAddress: string | undefined, baseOutAmount: string | undefined, decimals: number | undefined): {
416
+ queryKey: any[];
417
+ enabled: boolean;
418
+ queryFn: () => Promise<BigNumber | null>;
419
+ };
420
+ }
@@ -0,0 +1,50 @@
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
+ fetchPoolPairList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolPairListQuery, import("../../gql/graphql").Exact<{
44
+ first?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Scalars["Int"]["input"]>;
45
+ baseWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
46
+ quoteWhere?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_Filter>;
47
+ orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Pair_OrderBy>;
48
+ orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
49
+ }>>;
50
+ };
@@ -0,0 +1,7 @@
1
+ export { PoolApi } from './PoolApi';
2
+ export type { PoolType } from './type';
3
+ export { PMMModel } from './pmm/pmm';
4
+ export { PMMHelper, solveQuadraticFunctionForTarget } from './pmm/pmmHelper';
5
+ export { getPmmModel } from './pmm/pmmModel';
6
+ export type { PmmModelParams } from './pmm/pmmModel';
7
+ export { PMMState } from './pmm/PMMState';
@@ -0,0 +1,23 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare class PMMState {
3
+ readonly B: BigNumber;
4
+ readonly Q: BigNumber;
5
+ readonly B0: BigNumber;
6
+ readonly Q0: BigNumber;
7
+ readonly RStatus: number;
8
+ readonly OraclePrice: BigNumber;
9
+ readonly k: BigNumber;
10
+ readonly mtFeeRate: BigNumber;
11
+ readonly lpFeeRate: BigNumber;
12
+ constructor(pairDetail: {
13
+ i: BigNumber;
14
+ K: BigNumber;
15
+ B: BigNumber;
16
+ Q: BigNumber;
17
+ B0: BigNumber;
18
+ Q0: BigNumber;
19
+ R: number;
20
+ lpFeeRate: BigNumber;
21
+ mtFeeRate: BigNumber;
22
+ });
23
+ }