@dodoex/api 3.0.0-taiko.8 → 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.
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -1
- package/dist/{chainConfig → types/chainConfig}/contractConfig.d.ts +2 -0
- package/dist/{cjs → types}/gql/gql.d.ts +14 -2
- package/dist/{cjs → types}/gql/graphql.d.ts +117 -4
- package/dist/{helper → types/helper}/GraphQLRequests.d.ts +2 -2
- package/dist/{services → types/services}/TokenApi/graphqlQuery.d.ts +3 -0
- package/dist/{cjs → types}/services/TokenApi/index.d.ts +3 -0
- package/dist/{cjs → types}/services/mining/MiningApi.d.ts +14 -2
- package/dist/{services → types/services}/pool/PoolApi.d.ts +7 -0
- package/dist/{services → types/services}/pool/graphqlQuery.d.ts +7 -0
- package/dist/{cjs → types}/services/system/SystemApi.d.ts +3 -0
- package/dist/{services → types/services}/system/graphqlQuery.d.ts +3 -0
- package/package.json +9 -7
- package/dist/cjs/chainConfig/basicToken.d.ts +0 -16
- package/dist/cjs/chainConfig/chain.d.ts +0 -20
- package/dist/cjs/chainConfig/contractConfig.d.ts +0 -23
- package/dist/cjs/chainConfig/index.d.ts +0 -4
- package/dist/cjs/chainConfig/platform.d.ts +0 -4
- package/dist/cjs/dodoDspProxy-0LfWMy9x.cjs +0 -1
- package/dist/cjs/helper/GraphQLRequests.d.ts +0 -30
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/services/TokenApi/graphqlQuery.d.ts +0 -5
- package/dist/cjs/services/pool/PoolApi.d.ts +0 -412
- package/dist/cjs/services/pool/graphqlQuery.d.ts +0 -43
- package/dist/cjs/services/system/graphqlQuery.d.ts +0 -5
- package/dist/dodoDspProxy-DE4Hm1tw.js +0 -1
- package/dist/gql/fragment-masking.d.ts +0 -15
- package/dist/gql/gql.d.ts +0 -60
- package/dist/gql/graphql.d.ts +0 -20917
- package/dist/gql/index.d.ts +0 -2
- package/dist/helper/ContractRequests/abi/ABIs/AaveLendingPoolABI.d.ts +0 -59
- package/dist/helper/ContractRequests/abi/ABIs/AaveLendingPoolAddressesProvider.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/AavePriceOracleABI.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/AaveProtocolDataProviderABI.d.ts +0 -41
- package/dist/helper/ContractRequests/abi/ABIs/BaseDrops.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/D3MM_READ_ABI.d.ts +0 -26
- package/dist/helper/ContractRequests/abi/ABIs/D3Proxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/DODO1155.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/DODO721.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/DODOCirculationHelperABI.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/DODORouteProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/DODOV1PmmHelperABI.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/DVM.d.ts +0 -7
- package/dist/helper/ContractRequests/abi/ABIs/DropsERC721.d.ts +0 -7
- package/dist/helper/ContractRequests/abi/ABIs/FilterAdmin.d.ts +0 -29
- package/dist/helper/ContractRequests/abi/ABIs/FilterERC1155V1.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/FilterERC721V1.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/Fragment.d.ts +0 -29
- package/dist/helper/ContractRequests/abi/ABIs/FundingABI.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/IdodoV2.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/LockedTokenVaultABI.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/MarginTrading.d.ts +0 -36
- package/dist/helper/ContractRequests/abi/ABIs/MarginTradingFactory.d.ts +0 -47
- package/dist/helper/ContractRequests/abi/ABIs/MerkleDistributorABI.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/PancakePairABI.d.ts +0 -42
- package/dist/helper/ContractRequests/abi/ABIs/baseFilterV1.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/classicalPoolABI.d.ts +0 -16
- package/dist/helper/ContractRequests/abi/ABIs/dodoABI.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoBuyoutModel.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoCP.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoCPABI.d.ts +0 -29
- package/dist/helper/ContractRequests/abi/ABIs/dodoCPABIV2.d.ts +0 -36
- package/dist/helper/ContractRequests/abi/ABIs/dodoCPFactory.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoCpProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoCpProxyV2.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoCpProxyV202.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoCustomMintableERC20.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDPPAdmin.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDPPFactory.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDSP.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDSPFactory.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDVM.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDVMFactory.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDppProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDropsProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoDspProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoERC20V3Factory.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoEthProxyABI.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoFeeImpl.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoFragment.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoMineV3Proxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoMineV3ProxyOld.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoMiningABI.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/dodoMiningReaderABI.d.ts +0 -16
- package/dist/helper/ContractRequests/abi/ABIs/dodoNftERC1155.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoNftERC721.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoNftPoolProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoNftProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoNftVault.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoOracleABI.d.ts +0 -36
- package/dist/helper/ContractRequests/abi/ABIs/dodoPair.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoPreminingABI.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoProxyV2.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoStarterProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoTokenABI.d.ts +0 -36
- package/dist/helper/ContractRequests/abi/ABIs/dodoUpCPFactoryABI.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/dodoUpCpFactory.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoV1PairProxy.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/dodoZooABI.d.ts +0 -44
- package/dist/helper/ContractRequests/abi/ABIs/dppPoolABI.d.ts +0 -15
- package/dist/helper/ContractRequests/abi/ABIs/erc20ABI.d.ts +0 -30
- package/dist/helper/ContractRequests/abi/ABIs/erc20Helper.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/feeABI.d.ts +0 -16
- package/dist/helper/ContractRequests/abi/ABIs/multicallABI.d.ts +0 -34
- package/dist/helper/ContractRequests/abi/ABIs/nftContract.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/nftFilterAdmin.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/oneBitSettlement.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/setApprovalForAll.d.ts +0 -12
- package/dist/helper/ContractRequests/abi/ABIs/spaceIdABI.d.ts +0 -29
- package/dist/helper/ContractRequests/abi/ABIs/spaceIdResolverABI.d.ts +0 -29
- package/dist/helper/ContractRequests/abi/ABIs/v3MiningABI.d.ts +0 -29
- package/dist/helper/ContractRequests/abi/ABIs/vdodo.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/ABIs/vdodoTokenABI.d.ts +0 -40
- package/dist/helper/ContractRequests/abi/ABIs/weth.d.ts +0 -3
- package/dist/helper/ContractRequests/abi/abiName.d.ts +0 -72
- package/dist/helper/ContractRequests/abi/index.d.ts +0 -2
- package/dist/helper/ContractRequests/batch.d.ts +0 -18
- package/dist/helper/ContractRequests/batchProvider.d.ts +0 -25
- package/dist/helper/ContractRequests/encode.d.ts +0 -6
- package/dist/helper/ContractRequests/index.d.ts +0 -58
- package/dist/helper/ContractRequests/type.d.ts +0 -8
- package/dist/helper/RestApiRequests.d.ts +0 -37
- package/dist/index.d.ts +0 -15
- package/dist/services/SwapWidgetApi.d.ts +0 -333
- package/dist/services/TokenApi/index.d.ts +0 -68
- package/dist/services/TokenApi/tokenBlackList/bsc.d.ts +0 -2
- package/dist/services/TokenApi/tokenBlackList/eth.d.ts +0 -2
- package/dist/services/TokenApi/tokenBlackList/index.d.ts +0 -1
- package/dist/services/TokenApi/utils.d.ts +0 -1
- package/dist/services/mining/MiningApi.d.ts +0 -65
- package/dist/services/mining/graphqlQuery.d.ts +0 -11
- package/dist/services/mining/index.d.ts +0 -3
- package/dist/services/mining/utils.d.ts +0 -26
- package/dist/services/pool/index.d.ts +0 -7
- package/dist/services/pool/pmm/PMMState.d.ts +0 -23
- package/dist/services/pool/pmm/convertPmmParams.d.ts +0 -24
- package/dist/services/pool/pmm/pmm.d.ts +0 -41
- package/dist/services/pool/pmm/pmmHelper.d.ts +0 -19
- package/dist/services/pool/pmm/pmmModel.d.ts +0 -25
- package/dist/services/pool/poolUtils.d.ts +0 -6
- package/dist/services/pool/type.d.ts +0 -1
- package/dist/services/swap/SwapApi.d.ts +0 -8
- package/dist/services/swap/graphqlQuery.d.ts +0 -5
- package/dist/services/system/SystemApi.d.ts +0 -8
- package/dist/utils/color.d.ts +0 -10
- package/dist/utils/number.d.ts +0 -3
- /package/dist/{cjs/AaveLendingPoolABI-G3D5zkkz.cjs → AaveLendingPoolABI-G3D5zkkz.cjs} +0 -0
- /package/dist/{cjs/AaveLendingPoolAddressesProvider-DrLP2k1o.cjs → AaveLendingPoolAddressesProvider-DrLP2k1o.cjs} +0 -0
- /package/dist/{cjs/AavePriceOracleABI-C4jkbxlQ.cjs → AavePriceOracleABI-C4jkbxlQ.cjs} +0 -0
- /package/dist/{cjs/AaveProtocolDataProviderABI-ChLpWblx.cjs → AaveProtocolDataProviderABI-ChLpWblx.cjs} +0 -0
- /package/dist/{cjs/BaseDrops-b4x2vqWE.cjs → BaseDrops-b4x2vqWE.cjs} +0 -0
- /package/dist/{cjs/D3MM_READ_ABI-DPl8m5T6.cjs → D3MM_READ_ABI-DPl8m5T6.cjs} +0 -0
- /package/dist/{cjs/D3Proxy-ChV5DN6z.cjs → D3Proxy-ChV5DN6z.cjs} +0 -0
- /package/dist/{cjs/DODO1155-BNeD65Or.cjs → DODO1155-BNeD65Or.cjs} +0 -0
- /package/dist/{cjs/DODO721-CSXhoGSt.cjs → DODO721-CSXhoGSt.cjs} +0 -0
- /package/dist/{cjs/DODOCirculationHelperABI-BnZp9-jW.cjs → DODOCirculationHelperABI-BnZp9-jW.cjs} +0 -0
- /package/dist/{cjs/DODORouteProxy-BZ0Y3GCA.cjs → DODORouteProxy-BZ0Y3GCA.cjs} +0 -0
- /package/dist/{cjs/DODOV1PmmHelperABI-DD2Zqxnx.cjs → DODOV1PmmHelperABI-DD2Zqxnx.cjs} +0 -0
- /package/dist/{cjs/DVM-BpNPFgPh.cjs → DVM-BpNPFgPh.cjs} +0 -0
- /package/dist/{cjs/DropsERC721-BhKaFHvL.cjs → DropsERC721-BhKaFHvL.cjs} +0 -0
- /package/dist/{cjs/FilterAdmin-cj8kYpNK.cjs → FilterAdmin-cj8kYpNK.cjs} +0 -0
- /package/dist/{cjs/FilterERC1155V1-CYRg0d1t.cjs → FilterERC1155V1-CYRg0d1t.cjs} +0 -0
- /package/dist/{cjs/FilterERC721V1-Bi0L9sSX.cjs → FilterERC721V1-Bi0L9sSX.cjs} +0 -0
- /package/dist/{cjs/Fragment-B-F8I7LL.cjs → Fragment-B-F8I7LL.cjs} +0 -0
- /package/dist/{cjs/FundingABI-CVCr1rVZ.cjs → FundingABI-CVCr1rVZ.cjs} +0 -0
- /package/dist/{cjs/IdodoV2-RfwR_GpI.cjs → IdodoV2-RfwR_GpI.cjs} +0 -0
- /package/dist/{cjs/LockedTokenVaultABI-DRbLRj9L.cjs → LockedTokenVaultABI-DRbLRj9L.cjs} +0 -0
- /package/dist/{cjs/MarginTrading-DTxWKyBB.cjs → MarginTrading-DTxWKyBB.cjs} +0 -0
- /package/dist/{cjs/MarginTradingFactory-CXV_vwa8.cjs → MarginTradingFactory-CXV_vwa8.cjs} +0 -0
- /package/dist/{cjs/MerkleDistributorABI-C8Qfs-nh.cjs → MerkleDistributorABI-C8Qfs-nh.cjs} +0 -0
- /package/dist/{cjs/PancakePairABI-DYhV587D.cjs → PancakePairABI-DYhV587D.cjs} +0 -0
- /package/dist/{cjs/baseFilterV1-BuIlo0KL.cjs → baseFilterV1-BuIlo0KL.cjs} +0 -0
- /package/dist/{cjs/bsc-DPJpw0CZ.cjs → bsc-DPJpw0CZ.cjs} +0 -0
- /package/dist/{cjs/classicalPoolABI-BECDfgEG.cjs → classicalPoolABI-BECDfgEG.cjs} +0 -0
- /package/dist/{cjs/dodoABI-gkjw8zb6.cjs → dodoABI-gkjw8zb6.cjs} +0 -0
- /package/dist/{cjs/dodoBuyoutModel-iVgU8FQj.cjs → dodoBuyoutModel-iVgU8FQj.cjs} +0 -0
- /package/dist/{cjs/dodoCP-CLHk9HB9.cjs → dodoCP-CLHk9HB9.cjs} +0 -0
- /package/dist/{cjs/dodoCPABI-DtzutjJ_.cjs → dodoCPABI-DtzutjJ_.cjs} +0 -0
- /package/dist/{cjs/dodoCPABIV2-fyFD9xst.cjs → dodoCPABIV2-fyFD9xst.cjs} +0 -0
- /package/dist/{cjs/dodoCPFactory-CBF19zgJ.cjs → dodoCPFactory-CBF19zgJ.cjs} +0 -0
- /package/dist/{cjs/dodoCpProxy-C0DPYWye.cjs → dodoCpProxy-C0DPYWye.cjs} +0 -0
- /package/dist/{cjs/dodoCpProxyV2-DpTvj7-M.cjs → dodoCpProxyV2-DpTvj7-M.cjs} +0 -0
- /package/dist/{cjs/dodoCpProxyV202-BLhZ86Hq.cjs → dodoCpProxyV202-BLhZ86Hq.cjs} +0 -0
- /package/dist/{cjs/dodoCustomMintableERC20-_rvvHxmy.cjs → dodoCustomMintableERC20-_rvvHxmy.cjs} +0 -0
- /package/dist/{cjs/dodoDPPAdmin-Dn7blhFO.cjs → dodoDPPAdmin-Dn7blhFO.cjs} +0 -0
- /package/dist/{cjs/dodoDPPFactory-DZUKGMVx.cjs → dodoDPPFactory-DZUKGMVx.cjs} +0 -0
- /package/dist/{cjs/dodoDSP-DiQP3j-f.cjs → dodoDSP-DiQP3j-f.cjs} +0 -0
- /package/dist/{cjs/dodoDSPFactory-Bd74S17p.cjs → dodoDSPFactory-Bd74S17p.cjs} +0 -0
- /package/dist/{cjs/dodoDVM-cigh0zp3.cjs → dodoDVM-cigh0zp3.cjs} +0 -0
- /package/dist/{cjs/dodoDVMFactory-Jw7GN957.cjs → dodoDVMFactory-Jw7GN957.cjs} +0 -0
- /package/dist/{cjs/dodoDppProxy-evCBC-32.cjs → dodoDppProxy-evCBC-32.cjs} +0 -0
- /package/dist/{cjs/dodoDropsProxy-aB8sftUR.cjs → dodoDropsProxy-aB8sftUR.cjs} +0 -0
- /package/dist/{cjs/dodoDspProxy-Bp3cG2Me.cjs → dodoDspProxy-Bp3cG2Me.cjs} +0 -0
- /package/dist/{cjs/dodoERC20V3Factory-Dp6VtQdx.cjs → dodoERC20V3Factory-Dp6VtQdx.cjs} +0 -0
- /package/dist/{cjs/dodoEthProxyABI-COvGooIx.cjs → dodoEthProxyABI-COvGooIx.cjs} +0 -0
- /package/dist/{cjs/dodoFeeImpl-n8uxW-_A.cjs → dodoFeeImpl-n8uxW-_A.cjs} +0 -0
- /package/dist/{cjs/dodoFragment-QQKv5zUw.cjs → dodoFragment-QQKv5zUw.cjs} +0 -0
- /package/dist/{cjs/dodoMineV3Proxy-DVScIYYs.cjs → dodoMineV3Proxy-DVScIYYs.cjs} +0 -0
- /package/dist/{cjs/dodoMineV3ProxyOld-C_F6KVsX.cjs → dodoMineV3ProxyOld-C_F6KVsX.cjs} +0 -0
- /package/dist/{cjs/dodoMiningABI-Bz2I9IA2.cjs → dodoMiningABI-Bz2I9IA2.cjs} +0 -0
- /package/dist/{cjs/dodoMiningReaderABI-B2wU_50T.cjs → dodoMiningReaderABI-B2wU_50T.cjs} +0 -0
- /package/dist/{cjs/dodoNftERC1155-DLIuD5w1.cjs → dodoNftERC1155-DLIuD5w1.cjs} +0 -0
- /package/dist/{cjs/dodoNftERC721-CM9UVOIz.cjs → dodoNftERC721-CM9UVOIz.cjs} +0 -0
- /package/dist/{cjs/dodoNftPoolProxy-D1h5SkLL.cjs → dodoNftPoolProxy-D1h5SkLL.cjs} +0 -0
- /package/dist/{cjs/dodoNftProxy-DM2zeXHX.cjs → dodoNftProxy-DM2zeXHX.cjs} +0 -0
- /package/dist/{cjs/dodoNftVault-4I3wB3W5.cjs → dodoNftVault-4I3wB3W5.cjs} +0 -0
- /package/dist/{cjs/dodoOracleABI-CZXzRpKf.cjs → dodoOracleABI-CZXzRpKf.cjs} +0 -0
- /package/dist/{cjs/dodoPair-DZAKf_5j.cjs → dodoPair-DZAKf_5j.cjs} +0 -0
- /package/dist/{cjs/dodoPreminingABI-BO5Cazcq.cjs → dodoPreminingABI-BO5Cazcq.cjs} +0 -0
- /package/dist/{cjs/dodoProxyV2-C4O1SzS4.cjs → dodoProxyV2-C4O1SzS4.cjs} +0 -0
- /package/dist/{cjs/dodoStarterProxy-DgcH9iEq.cjs → dodoStarterProxy-DgcH9iEq.cjs} +0 -0
- /package/dist/{cjs/dodoTokenABI-6Mpqu75U.cjs → dodoTokenABI-6Mpqu75U.cjs} +0 -0
- /package/dist/{cjs/dodoUpCPFactoryABI-XGsn8ED4.cjs → dodoUpCPFactoryABI-XGsn8ED4.cjs} +0 -0
- /package/dist/{cjs/dodoUpCpFactory-XGsn8ED4.cjs → dodoUpCpFactory-XGsn8ED4.cjs} +0 -0
- /package/dist/{cjs/dodoV1PairProxy-DpEjE8Ne.cjs → dodoV1PairProxy-DpEjE8Ne.cjs} +0 -0
- /package/dist/{cjs/dodoZooABI-D44Zl74h.cjs → dodoZooABI-D44Zl74h.cjs} +0 -0
- /package/dist/{cjs/dppPoolABI-BdDjNXGV.cjs → dppPoolABI-BdDjNXGV.cjs} +0 -0
- /package/dist/{cjs/erc20ABI-G8oWOkZ8.cjs → erc20ABI-G8oWOkZ8.cjs} +0 -0
- /package/dist/{cjs/erc20Helper-DU3PGwta.cjs → erc20Helper-DU3PGwta.cjs} +0 -0
- /package/dist/{cjs/eth-BTzl-wbR.cjs → eth-BTzl-wbR.cjs} +0 -0
- /package/dist/{cjs/feeABI-n8uxW-_A.cjs → feeABI-n8uxW-_A.cjs} +0 -0
- /package/dist/{cjs/multicallABI-Dhweb42q.cjs → multicallABI-Dhweb42q.cjs} +0 -0
- /package/dist/{cjs/nftContract-hvFiWn3Y.cjs → nftContract-hvFiWn3Y.cjs} +0 -0
- /package/dist/{cjs/nftFilterAdmin-Bq1uLy_8.cjs → nftFilterAdmin-Bq1uLy_8.cjs} +0 -0
- /package/dist/{cjs/oneBitSettlement-DiJ0ov7p.cjs → oneBitSettlement-DiJ0ov7p.cjs} +0 -0
- /package/dist/{cjs/setApprovalForAll-C5PVWdKB.cjs → setApprovalForAll-C5PVWdKB.cjs} +0 -0
- /package/dist/{cjs/spaceIdABI-B5tTrrz8.cjs → spaceIdABI-B5tTrrz8.cjs} +0 -0
- /package/dist/{cjs/spaceIdResolverABI-CrfOXUgo.cjs → spaceIdResolverABI-CrfOXUgo.cjs} +0 -0
- /package/dist/{chainConfig → types/chainConfig}/basicToken.d.ts +0 -0
- /package/dist/{chainConfig → types/chainConfig}/chain.d.ts +0 -0
- /package/dist/{chainConfig → types/chainConfig}/index.d.ts +0 -0
- /package/dist/{chainConfig → types/chainConfig}/platform.d.ts +0 -0
- /package/dist/{cjs → types}/gql/fragment-masking.d.ts +0 -0
- /package/dist/{cjs → types}/gql/index.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AaveLendingPoolABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AaveLendingPoolAddressesProvider.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AavePriceOracleABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/AaveProtocolDataProviderABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/BaseDrops.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/D3MM_READ_ABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/D3Proxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODO1155.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODO721.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODOCirculationHelperABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODORouteProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DODOV1PmmHelperABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DVM.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/DropsERC721.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FilterAdmin.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FilterERC1155V1.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FilterERC721V1.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/Fragment.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/FundingABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/IdodoV2.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/LockedTokenVaultABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/MarginTrading.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/MarginTradingFactory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/MerkleDistributorABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/PancakePairABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/baseFilterV1.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/classicalPoolABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoBuyoutModel.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCP.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCPABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCPABIV2.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCPFactory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCpProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCpProxyV2.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCpProxyV202.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoCustomMintableERC20.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDPPAdmin.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDPPFactory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDSP.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDSPFactory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDVM.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDVMFactory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDppProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDropsProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoDspProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoERC20V3Factory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoEthProxyABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoFeeImpl.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoFragment.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMineV3Proxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMineV3ProxyOld.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMiningABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoMiningReaderABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftERC1155.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftERC721.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftPoolProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoNftVault.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoOracleABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoPair.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoPreminingABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoProxyV2.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoStarterProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoTokenABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoUpCPFactoryABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoUpCpFactory.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoV1PairProxy.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dodoZooABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/dppPoolABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/erc20ABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/erc20Helper.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/feeABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/multicallABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/nftContract.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/nftFilterAdmin.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/oneBitSettlement.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/setApprovalForAll.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/spaceIdABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/spaceIdResolverABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/v3MiningABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/vdodo.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/vdodoTokenABI.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/ABIs/weth.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/abiName.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/abi/index.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/batch.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/batchProvider.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/encode.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/index.d.ts +0 -0
- /package/dist/{cjs → types}/helper/ContractRequests/type.d.ts +0 -0
- /package/dist/{cjs → types}/helper/RestApiRequests.d.ts +0 -0
- /package/dist/{cjs → types}/index.d.ts +0 -0
- /package/dist/{cjs → types}/services/SwapWidgetApi.d.ts +0 -0
- /package/dist/{cjs → types}/services/TokenApi/tokenBlackList/bsc.d.ts +0 -0
- /package/dist/{cjs → types}/services/TokenApi/tokenBlackList/eth.d.ts +0 -0
- /package/dist/{cjs → types}/services/TokenApi/tokenBlackList/index.d.ts +0 -0
- /package/dist/{cjs → types}/services/TokenApi/utils.d.ts +0 -0
- /package/dist/{cjs → types}/services/mining/graphqlQuery.d.ts +0 -0
- /package/dist/{cjs → types}/services/mining/index.d.ts +0 -0
- /package/dist/{cjs → types}/services/mining/utils.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/index.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/pmm/PMMState.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/pmm/convertPmmParams.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/pmm/pmm.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/pmm/pmmHelper.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/pmm/pmmModel.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/poolUtils.d.ts +0 -0
- /package/dist/{cjs → types}/services/pool/type.d.ts +0 -0
- /package/dist/{cjs → types}/services/swap/SwapApi.d.ts +0 -0
- /package/dist/{cjs → types}/services/swap/graphqlQuery.d.ts +0 -0
- /package/dist/{cjs → types}/utils/color.d.ts +0 -0
- /package/dist/{cjs → types}/utils/number.d.ts +0 -0
- /package/dist/{cjs/v3MiningABI-C-S-QkHw.cjs → v3MiningABI-C-S-QkHw.cjs} +0 -0
- /package/dist/{cjs/vdodo-BV3kGDOM.cjs → vdodo-BV3kGDOM.cjs} +0 -0
- /package/dist/{cjs/vdodoTokenABI-BuOHA0B9.cjs → vdodoTokenABI-BuOHA0B9.cjs} +0 -0
- /package/dist/{cjs/weth-CGG0Z6re.cjs → weth-CGG0Z6re.cjs} +0 -0
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
3
|
*/
|
|
4
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;
|
|
5
9
|
/**
|
|
6
10
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
7
11
|
*/
|
|
@@ -37,11 +41,11 @@ export declare function graphql(source: '\n query FetchPool(\n $id: ID!\
|
|
|
37
41
|
/**
|
|
38
42
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
39
43
|
*/
|
|
40
|
-
export declare function graphql(source: '\n query FetchPoolDayData($where: Dashboardday_filter) {\n dashboard_pairs_day_data(where: $where) {\n timestamp\n date\n
|
|
44
|
+
export declare function graphql(source: '\n query FetchPoolDayData($where: Dashboardday_filter) {\n dashboard_pairs_day_data(where: $where) {\n timestamp\n date\n volumeUsd\n feeUsd\n mtFeeUsd\n tvlUsd\n addresses\n }\n }\n '): typeof import('./graphql').FetchPoolDayDataDocument;
|
|
41
45
|
/**
|
|
42
46
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
47
|
*/
|
|
44
|
-
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;
|
|
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 totalMtFee\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 baseMtFee\n quoteMtFee\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 mtFeeNear24h\n feeNear24h\n }\n }\n '): typeof import('./graphql').FetchPoolDashboardDocument;
|
|
45
49
|
/**
|
|
46
50
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
47
51
|
*/
|
|
@@ -50,6 +54,10 @@ export declare function graphql(source: '\n query FetchPoolSwapList(\n $
|
|
|
50
54
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
51
55
|
*/
|
|
52
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 FetchPoolPairList(\n $first: Int\n $baseWhere: Pair_filter\n $quoteWhere: Pair_filter\n $orderBy: Pair_orderBy\n $orderDirection: OrderDirection\n ) {\n basePairs: pairs(\n first: $first\n where: $baseWhere\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n type\n creator\n lpFeeRate\n i\n k\n baseReserve\n quoteReserve\n createdAtTimestamp\n lastTradePrice\n volumeUSD\n baseToken {\n id\n symbol\n name\n decimals\n usdPrice\n }\n quoteToken {\n id\n symbol\n name\n decimals\n usdPrice\n }\n }\n quotePairs: pairs(\n first: $first\n where: $quoteWhere\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n type\n creator\n lpFeeRate\n i\n k\n baseReserve\n quoteReserve\n createdAtTimestamp\n lastTradePrice\n volumeUSD\n baseToken {\n id\n symbol\n name\n decimals\n usdPrice\n }\n quoteToken {\n id\n symbol\n name\n decimals\n usdPrice\n }\n }\n }\n '): typeof import('./graphql').FetchPoolPairListDocument;
|
|
53
61
|
/**
|
|
54
62
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
55
63
|
*/
|
|
@@ -58,3 +66,7 @@ export declare function graphql(source: '\n query FetchUserSwapOrderHistories
|
|
|
58
66
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
59
67
|
*/
|
|
60
68
|
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;
|
|
69
|
+
/**
|
|
70
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
71
|
+
*/
|
|
72
|
+
export declare function graphql(source: '\n query FetchLiquidityLpPartnerRewards(\n $where: LiquidityLpPartnerRewardsInput\n ) {\n liquidity_getLpPartnerRewards(where: $where) {\n partnerInfos {\n partner\n logo\n introduction\n link\n theme\n sort\n platform\n extra\n }\n partnerRewards {\n chainId\n pool\n partner\n reward\n type\n }\n }\n }\n '): typeof import('./graphql').FetchLiquidityLpPartnerRewardsDocument;
|
|
@@ -2302,6 +2302,7 @@ export type Cross_Chain_TokenCrossChainPair = {
|
|
|
2302
2302
|
toChainTokenSymbol?: Maybe<Scalars['String']['output']>;
|
|
2303
2303
|
};
|
|
2304
2304
|
export type Cross_Chain_TokenCrossChainProduct = {
|
|
2305
|
+
extend?: Maybe<Scalars['JSON']['output']>;
|
|
2305
2306
|
id?: Maybe<Scalars['Int']['output']>;
|
|
2306
2307
|
isProduction?: Maybe<Scalars['Boolean']['output']>;
|
|
2307
2308
|
name?: Maybe<Scalars['String']['output']>;
|
|
@@ -7595,6 +7596,9 @@ export type LiquidityPartnerInfo = {
|
|
|
7595
7596
|
link?: Maybe<Scalars['String']['output']>;
|
|
7596
7597
|
logo?: Maybe<Scalars['String']['output']>;
|
|
7597
7598
|
partner?: Maybe<Scalars['String']['output']>;
|
|
7599
|
+
platform?: Maybe<Scalars['Int']['output']>;
|
|
7600
|
+
sort?: Maybe<Scalars['Int']['output']>;
|
|
7601
|
+
theme?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
7598
7602
|
};
|
|
7599
7603
|
export type LiquidityPoolApy = {
|
|
7600
7604
|
apy?: Maybe<Scalars['String']['output']>;
|
|
@@ -20252,6 +20256,20 @@ export type FetchErc20SwapCrossChainListQuery = {
|
|
|
20252
20256
|
} | null> | null;
|
|
20253
20257
|
} | null> | null;
|
|
20254
20258
|
};
|
|
20259
|
+
export type FetchErc20ForecastSlippageQueryVariables = Exact<{
|
|
20260
|
+
where?: InputMaybe<Erc20_Extenderc20ExtendV2Filter>;
|
|
20261
|
+
}>;
|
|
20262
|
+
export type FetchErc20ForecastSlippageQuery = {
|
|
20263
|
+
erc20_extend_erc20ExtendV2?: {
|
|
20264
|
+
forecastSlippageList?: Array<{
|
|
20265
|
+
forecastSlippage?: any | null;
|
|
20266
|
+
forecastValue?: any | null;
|
|
20267
|
+
confidenceRatio?: any | null;
|
|
20268
|
+
confidenceIntervalUpper?: any | null;
|
|
20269
|
+
confidenceIntervalLower?: any | null;
|
|
20270
|
+
} | null> | null;
|
|
20271
|
+
} | null;
|
|
20272
|
+
};
|
|
20255
20273
|
export type FetchMiningListQueryVariables = Exact<{
|
|
20256
20274
|
where?: InputMaybe<Miningmining_List_Filter>;
|
|
20257
20275
|
}>;
|
|
@@ -20725,11 +20743,11 @@ export type FetchPoolDayDataQuery = {
|
|
|
20725
20743
|
dashboard_pairs_day_data?: Array<{
|
|
20726
20744
|
timestamp?: number | null;
|
|
20727
20745
|
date?: string | null;
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
|
|
20746
|
+
volumeUsd?: string | null;
|
|
20747
|
+
feeUsd?: string | null;
|
|
20748
|
+
mtFeeUsd?: string | null;
|
|
20749
|
+
tvlUsd?: string | null;
|
|
20731
20750
|
addresses?: string | null;
|
|
20732
|
-
txes?: string | null;
|
|
20733
20751
|
} | null> | null;
|
|
20734
20752
|
};
|
|
20735
20753
|
export type FetchPoolDashboardQueryVariables = Exact<{
|
|
@@ -20740,6 +20758,7 @@ export type FetchPoolDashboardQuery = {
|
|
|
20740
20758
|
fee?: string | null;
|
|
20741
20759
|
volume?: string | null;
|
|
20742
20760
|
totalFee?: string | null;
|
|
20761
|
+
totalMtFee?: string | null;
|
|
20743
20762
|
totalVolume?: string | null;
|
|
20744
20763
|
tvl?: string | null;
|
|
20745
20764
|
turnover?: string | null;
|
|
@@ -20753,6 +20772,8 @@ export type FetchPoolDashboardQuery = {
|
|
|
20753
20772
|
price?: string | null;
|
|
20754
20773
|
baseFee?: string | null;
|
|
20755
20774
|
quoteFee?: string | null;
|
|
20775
|
+
baseMtFee?: string | null;
|
|
20776
|
+
quoteMtFee?: string | null;
|
|
20756
20777
|
pair?: string | null;
|
|
20757
20778
|
poolType?: string | null;
|
|
20758
20779
|
baseVolumeCumulative?: string | null;
|
|
@@ -20767,6 +20788,8 @@ export type FetchPoolDashboardQuery = {
|
|
|
20767
20788
|
txesNear24h?: number | null;
|
|
20768
20789
|
txUsers?: number | null;
|
|
20769
20790
|
txUserNear24h?: number | null;
|
|
20791
|
+
mtFeeNear24h?: string | null;
|
|
20792
|
+
feeNear24h?: string | null;
|
|
20770
20793
|
} | null;
|
|
20771
20794
|
};
|
|
20772
20795
|
export type FetchPoolSwapListQueryVariables = Exact<{
|
|
@@ -20843,6 +20866,69 @@ export type FetchLiquidityPositionsQuery = {
|
|
|
20843
20866
|
};
|
|
20844
20867
|
} | null;
|
|
20845
20868
|
};
|
|
20869
|
+
export type FetchPoolPairListQueryVariables = Exact<{
|
|
20870
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
20871
|
+
baseWhere?: InputMaybe<Pair_Filter>;
|
|
20872
|
+
quoteWhere?: InputMaybe<Pair_Filter>;
|
|
20873
|
+
orderBy?: InputMaybe<Pair_OrderBy>;
|
|
20874
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
20875
|
+
}>;
|
|
20876
|
+
export type FetchPoolPairListQuery = {
|
|
20877
|
+
basePairs: Array<{
|
|
20878
|
+
id: string;
|
|
20879
|
+
type: string;
|
|
20880
|
+
creator: any;
|
|
20881
|
+
lpFeeRate: any;
|
|
20882
|
+
i?: any | null;
|
|
20883
|
+
k?: any | null;
|
|
20884
|
+
baseReserve: any;
|
|
20885
|
+
quoteReserve: any;
|
|
20886
|
+
createdAtTimestamp: any;
|
|
20887
|
+
lastTradePrice: any;
|
|
20888
|
+
volumeUSD: any;
|
|
20889
|
+
baseToken: {
|
|
20890
|
+
id: string;
|
|
20891
|
+
symbol: string;
|
|
20892
|
+
name: string;
|
|
20893
|
+
decimals: any;
|
|
20894
|
+
usdPrice: any;
|
|
20895
|
+
};
|
|
20896
|
+
quoteToken: {
|
|
20897
|
+
id: string;
|
|
20898
|
+
symbol: string;
|
|
20899
|
+
name: string;
|
|
20900
|
+
decimals: any;
|
|
20901
|
+
usdPrice: any;
|
|
20902
|
+
};
|
|
20903
|
+
}>;
|
|
20904
|
+
quotePairs: Array<{
|
|
20905
|
+
id: string;
|
|
20906
|
+
type: string;
|
|
20907
|
+
creator: any;
|
|
20908
|
+
lpFeeRate: any;
|
|
20909
|
+
i?: any | null;
|
|
20910
|
+
k?: any | null;
|
|
20911
|
+
baseReserve: any;
|
|
20912
|
+
quoteReserve: any;
|
|
20913
|
+
createdAtTimestamp: any;
|
|
20914
|
+
lastTradePrice: any;
|
|
20915
|
+
volumeUSD: any;
|
|
20916
|
+
baseToken: {
|
|
20917
|
+
id: string;
|
|
20918
|
+
symbol: string;
|
|
20919
|
+
name: string;
|
|
20920
|
+
decimals: any;
|
|
20921
|
+
usdPrice: any;
|
|
20922
|
+
};
|
|
20923
|
+
quoteToken: {
|
|
20924
|
+
id: string;
|
|
20925
|
+
symbol: string;
|
|
20926
|
+
name: string;
|
|
20927
|
+
decimals: any;
|
|
20928
|
+
usdPrice: any;
|
|
20929
|
+
};
|
|
20930
|
+
}>;
|
|
20931
|
+
};
|
|
20846
20932
|
export type FetchUserSwapOrderHistoriesQueryVariables = Exact<{
|
|
20847
20933
|
where?: InputMaybe<User_SwapswapFilter>;
|
|
20848
20934
|
}>;
|
|
@@ -20893,6 +20979,30 @@ export type FetchNoticeCenterTransactionListQuery = {
|
|
|
20893
20979
|
} | null> | null;
|
|
20894
20980
|
} | null;
|
|
20895
20981
|
};
|
|
20982
|
+
export type FetchLiquidityLpPartnerRewardsQueryVariables = Exact<{
|
|
20983
|
+
where?: InputMaybe<LiquidityLpPartnerRewardsInput>;
|
|
20984
|
+
}>;
|
|
20985
|
+
export type FetchLiquidityLpPartnerRewardsQuery = {
|
|
20986
|
+
liquidity_getLpPartnerRewards?: {
|
|
20987
|
+
partnerInfos?: Array<{
|
|
20988
|
+
partner?: string | null;
|
|
20989
|
+
logo?: string | null;
|
|
20990
|
+
introduction?: string | null;
|
|
20991
|
+
link?: string | null;
|
|
20992
|
+
theme?: Array<string | null> | null;
|
|
20993
|
+
sort?: number | null;
|
|
20994
|
+
platform?: number | null;
|
|
20995
|
+
extra?: any | null;
|
|
20996
|
+
} | null> | null;
|
|
20997
|
+
partnerRewards?: Array<{
|
|
20998
|
+
chainId?: number | null;
|
|
20999
|
+
pool?: string | null;
|
|
21000
|
+
partner?: string | null;
|
|
21001
|
+
reward?: string | null;
|
|
21002
|
+
type?: string | null;
|
|
21003
|
+
} | null> | null;
|
|
21004
|
+
} | null;
|
|
21005
|
+
};
|
|
20896
21006
|
export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
|
|
20897
21007
|
private value;
|
|
20898
21008
|
__meta__?: Record<string, any> | undefined;
|
|
@@ -20901,6 +21011,7 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
|
|
|
20901
21011
|
toString(): string & DocumentTypeDecoration<TResult, TVariables>;
|
|
20902
21012
|
}
|
|
20903
21013
|
export declare const FetchErc20SwapCrossChainListDocument: TypedDocumentString<FetchErc20SwapCrossChainListQuery, FetchErc20SwapCrossChainListQueryVariables>;
|
|
21014
|
+
export declare const FetchErc20ForecastSlippageDocument: TypedDocumentString<FetchErc20ForecastSlippageQuery, FetchErc20ForecastSlippageQueryVariables>;
|
|
20904
21015
|
export declare const FetchMiningListDocument: TypedDocumentString<FetchMiningListQuery, FetchMiningListQueryVariables>;
|
|
20905
21016
|
export declare const MiningListDocument: TypedDocumentString<MiningListQuery, MiningListQueryVariables>;
|
|
20906
21017
|
export declare const MyCreatedMiningListDocument: TypedDocumentString<MyCreatedMiningListQuery, MyCreatedMiningListQueryVariables>;
|
|
@@ -20913,5 +21024,7 @@ export declare const FetchPoolDayDataDocument: TypedDocumentString<FetchPoolDayD
|
|
|
20913
21024
|
export declare const FetchPoolDashboardDocument: TypedDocumentString<FetchPoolDashboardQuery, FetchPoolDashboardQueryVariables>;
|
|
20914
21025
|
export declare const FetchPoolSwapListDocument: TypedDocumentString<FetchPoolSwapListQuery, FetchPoolSwapListQueryVariables>;
|
|
20915
21026
|
export declare const FetchLiquidityPositionsDocument: TypedDocumentString<FetchLiquidityPositionsQuery, FetchLiquidityPositionsQueryVariables>;
|
|
21027
|
+
export declare const FetchPoolPairListDocument: TypedDocumentString<FetchPoolPairListQuery, FetchPoolPairListQueryVariables>;
|
|
20916
21028
|
export declare const FetchUserSwapOrderHistoriesDocument: TypedDocumentString<FetchUserSwapOrderHistoriesQuery, FetchUserSwapOrderHistoriesQueryVariables>;
|
|
20917
21029
|
export declare const FetchNoticeCenterTransactionListDocument: TypedDocumentString<FetchNoticeCenterTransactionListQuery, FetchNoticeCenterTransactionListQueryVariables>;
|
|
21030
|
+
export declare const FetchLiquidityLpPartnerRewardsDocument: TypedDocumentString<FetchLiquidityLpPartnerRewardsQuery, FetchLiquidityLpPartnerRewardsQueryVariables>;
|
|
@@ -17,11 +17,11 @@ export default class GraphQLRequests {
|
|
|
17
17
|
setHeaders(): Promise<void>;
|
|
18
18
|
getData<T, V extends Variables = Variables>(document: RequestDocument | TypedDocumentNode<T, V>, variables?: V): Promise<T>;
|
|
19
19
|
getQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
20
|
-
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
20
|
+
queryKey: readonly ["graphql", "getQuery", TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
21
21
|
queryFn: () => Promise<TResult>;
|
|
22
22
|
};
|
|
23
23
|
getInfiniteQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, pageKey: string, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
24
|
-
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
24
|
+
queryKey: readonly ["graphql", "getInfiniteQuery", string, TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
25
25
|
queryFn: ({ pageParam }: {
|
|
26
26
|
pageParam: number;
|
|
27
27
|
}) => Promise<TResult>;
|
|
@@ -2,4 +2,7 @@ export declare const tokenGraphqlQuery: {
|
|
|
2
2
|
fetchErc20SwapCrossList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchErc20SwapCrossChainListQuery, import("../../gql/graphql").Exact<{
|
|
3
3
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Erc20listV2Filter>;
|
|
4
4
|
}>>;
|
|
5
|
+
fetchErc20ForecastSlippage: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchErc20ForecastSlippageQuery, import("../../gql/graphql").Exact<{
|
|
6
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Erc20_Extenderc20ExtendV2Filter>;
|
|
7
|
+
}>>;
|
|
5
8
|
};
|
|
@@ -15,6 +15,9 @@ export declare class TokenApi {
|
|
|
15
15
|
fetchErc20SwapCrossList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchErc20SwapCrossChainListQuery, import("../../gql/graphql").Exact<{
|
|
16
16
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Erc20listV2Filter>;
|
|
17
17
|
}>>;
|
|
18
|
+
fetchErc20ForecastSlippage: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchErc20ForecastSlippageQuery, import("../../gql/graphql").Exact<{
|
|
19
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Erc20_Extenderc20ExtendV2Filter>;
|
|
20
|
+
}>>;
|
|
18
21
|
};
|
|
19
22
|
static utils: {
|
|
20
23
|
isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
|
|
2
1
|
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { ChainId } from '../../chainConfig/chain';
|
|
3
|
+
import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
|
|
3
4
|
export interface MiningApiProps {
|
|
4
5
|
contractRequests?: ContractRequests;
|
|
5
6
|
contractRequestsConfig?: ContractRequestsConfig;
|
|
@@ -46,6 +47,10 @@ export declare class MiningApi {
|
|
|
46
47
|
to: string;
|
|
47
48
|
data: string;
|
|
48
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>;
|
|
49
54
|
};
|
|
50
55
|
getPendingRewardQuery(chainId: number | undefined, contractAddress: string | undefined, account: string | undefined, tokenAddress: string | undefined, tokenDecimals: number | undefined, version: '2' | '3' | null | undefined): {
|
|
51
56
|
queryKey: any[];
|
|
@@ -60,6 +65,13 @@ export declare class MiningApi {
|
|
|
60
65
|
getRewardTokenInfos(chainId: number | undefined, miningContractAddress: string | undefined, index: number, skip?: Boolean): {
|
|
61
66
|
queryKey: any[];
|
|
62
67
|
enabled: boolean;
|
|
63
|
-
queryFn: () => Promise<
|
|
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>;
|
|
64
76
|
};
|
|
65
77
|
}
|
|
@@ -50,6 +50,13 @@ export declare class PoolApi {
|
|
|
50
50
|
orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_OrderBy>;
|
|
51
51
|
orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
|
|
52
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
|
+
}>>;
|
|
53
60
|
};
|
|
54
61
|
static utils: {
|
|
55
62
|
getIsV3Mining(type: PoolType): boolean;
|
|
@@ -40,4 +40,11 @@ export declare const poolGraphqlQuery: {
|
|
|
40
40
|
orderBy?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityPosition_OrderBy>;
|
|
41
41
|
orderDirection?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").OrderDirection>;
|
|
42
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
|
+
}>>;
|
|
43
50
|
};
|
|
@@ -4,5 +4,8 @@ export declare class SystemApi {
|
|
|
4
4
|
fetchNoticeCenterTransactionList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchNoticeCenterTransactionListQuery, import("../../gql/graphql").Exact<{
|
|
5
5
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Notice_CentertransactionListFilter>;
|
|
6
6
|
}>>;
|
|
7
|
+
fetchLiquidityLpPartnerRewards: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityLpPartnerRewardsQuery, import("../../gql/graphql").Exact<{
|
|
8
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityLpPartnerRewardsInput>;
|
|
9
|
+
}>>;
|
|
7
10
|
};
|
|
8
11
|
}
|
|
@@ -2,4 +2,7 @@ export declare const systemGraphqlQuery: {
|
|
|
2
2
|
fetchNoticeCenterTransactionList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchNoticeCenterTransactionListQuery, import("../../gql/graphql").Exact<{
|
|
3
3
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Notice_CentertransactionListFilter>;
|
|
4
4
|
}>>;
|
|
5
|
+
fetchLiquidityLpPartnerRewards: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityLpPartnerRewardsQuery, import("../../gql/graphql").Exact<{
|
|
6
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityLpPartnerRewardsInput>;
|
|
7
|
+
}>>;
|
|
5
8
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/api",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "DODO API Kit",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"main": "dist/
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"license": "GPL-3.0-or-later",
|
|
10
10
|
"homepage": "https://github.com/DODOEX/widgets#readme",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"schema:watch": "export $(cat .env | xargs) && env graphql-codegen -w",
|
|
20
20
|
"prerelease": "yarn run build",
|
|
21
21
|
"release": "semantic-release",
|
|
22
|
-
"release:local": "np --any-branch --no-cleanup --no-tests"
|
|
22
|
+
"release:local": "np --any-branch --no-cleanup --no-tests",
|
|
23
|
+
"release.npm-publish-beta": "npm publish --tag beta"
|
|
23
24
|
},
|
|
24
25
|
"author": "",
|
|
25
26
|
"publishConfig": {
|
|
@@ -28,9 +29,9 @@
|
|
|
28
29
|
},
|
|
29
30
|
"exports": {
|
|
30
31
|
".": {
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
|
+
"types": "./dist/types/index.d.ts",
|
|
32
33
|
"import": "./dist/index.js",
|
|
33
|
-
"require": "./dist/
|
|
34
|
+
"require": "./dist/index.cjs"
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"keywords": [
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
"@rollup/plugin-json": "^6.1.0",
|
|
80
81
|
"@rollup/plugin-replace": "^5.0.7",
|
|
81
82
|
"@rollup/plugin-terser": "^0.4.4",
|
|
83
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
82
84
|
"@rollup/plugin-url": "^8.0.2",
|
|
83
85
|
"@svgr/rollup": "^6.2.1",
|
|
84
86
|
"@testing-library/jest-dom": "^5.16.5",
|
|
@@ -93,8 +95,8 @@
|
|
|
93
95
|
"jest-environment-jsdom": "^29.0.3",
|
|
94
96
|
"np": "^7.6.1",
|
|
95
97
|
"rollup": "^4.18.0",
|
|
98
|
+
"rollup-plugin-clear": "^2.0.7",
|
|
96
99
|
"rollup-plugin-dynamic-import-variables": "^1.1.0",
|
|
97
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
98
100
|
"svg-jest": "^1.0.1",
|
|
99
101
|
"ts-jest": "^29.0.1",
|
|
100
102
|
"typescript": "^5.6.3"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChainId } from './chain';
|
|
2
|
-
export declare const etherTokenAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
3
|
-
declare const DEFAULT_BASIC_TOKEN: {
|
|
4
|
-
symbol: string;
|
|
5
|
-
address: string;
|
|
6
|
-
name: string;
|
|
7
|
-
decimals: number;
|
|
8
|
-
showDecimals: number;
|
|
9
|
-
wrappedTokenSymbol: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const basicTokenMap: {
|
|
12
|
-
[key in ChainId]: typeof DEFAULT_BASIC_TOKEN & {
|
|
13
|
-
wrappedTokenAddress: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare enum ChainId {
|
|
2
|
-
MAINNET = 1,
|
|
3
|
-
GOERLI = 5,
|
|
4
|
-
SEPOLIA = 11155111,
|
|
5
|
-
BSC = 56,
|
|
6
|
-
POLYGON = 137,
|
|
7
|
-
ARBITRUM_ONE = 42161,
|
|
8
|
-
AURORA = 1313161554,
|
|
9
|
-
OKCHAIN = 66,
|
|
10
|
-
OPTIMISM = 10,
|
|
11
|
-
AVALANCHE = 43114,
|
|
12
|
-
CONFLUX = 1030,
|
|
13
|
-
BASE = 8453,
|
|
14
|
-
LINEA = 59144,
|
|
15
|
-
SCROLL = 534352,
|
|
16
|
-
MANTA = 169,
|
|
17
|
-
MANTLE = 5000,
|
|
18
|
-
DODO_CHAIN_TESTNET = 53457,
|
|
19
|
-
TAIKO = 167000
|
|
20
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ChainId } from './chain';
|
|
2
|
-
declare const contractMap: {
|
|
3
|
-
[key in ChainId]: {
|
|
4
|
-
MULTI_CALL: string;
|
|
5
|
-
DODO_APPROVE: string;
|
|
6
|
-
/** ERC20Helper */
|
|
7
|
-
ERC20_HELPER: string;
|
|
8
|
-
/** DODOV2RouteHelper */
|
|
9
|
-
ROUTE_V2_DATA_FETCH: string;
|
|
10
|
-
/** DODOV1PmmHelper */
|
|
11
|
-
ROUTE_V1_DATA_FETCH: string;
|
|
12
|
-
/** DODOCalleeHelper */
|
|
13
|
-
CALLEE_HELPER: string;
|
|
14
|
-
DODO_PROXY: string;
|
|
15
|
-
/** DODODspProxy */
|
|
16
|
-
DODO_DSP_PROXY: string;
|
|
17
|
-
/** DODODppProxy */
|
|
18
|
-
DODO_DPP_PROXY: string;
|
|
19
|
-
/** DODOV1Proxy */
|
|
20
|
-
DODO_V1_PAIR_PROXY?: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default contractMap;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.default=[{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"}];
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import crossFetch from 'cross-fetch';
|
|
2
|
-
import { RequestDocument, Variables } from 'graphql-request';
|
|
3
|
-
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
4
|
-
import { TypedDocumentString } from '../gql/graphql';
|
|
5
|
-
import { GraphQLClientRequestHeaders } from 'graphql-request/build/esm/types';
|
|
6
|
-
type Fetch = typeof crossFetch;
|
|
7
|
-
export interface GraphQLRequestsConfig {
|
|
8
|
-
url?: string;
|
|
9
|
-
fetch?: Fetch;
|
|
10
|
-
getHeaders?: () => GraphQLClientRequestHeaders | Promise<GraphQLClientRequestHeaders>;
|
|
11
|
-
}
|
|
12
|
-
export default class GraphQLRequests {
|
|
13
|
-
private url;
|
|
14
|
-
private client;
|
|
15
|
-
private getHeaders?;
|
|
16
|
-
constructor(configProps?: GraphQLRequestsConfig);
|
|
17
|
-
setHeaders(): Promise<void>;
|
|
18
|
-
getData<T, V extends Variables = Variables>(document: RequestDocument | TypedDocumentNode<T, V>, variables?: V): Promise<T>;
|
|
19
|
-
getQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
20
|
-
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
21
|
-
queryFn: () => Promise<TResult>;
|
|
22
|
-
};
|
|
23
|
-
getInfiniteQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, pageKey: string, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
24
|
-
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|
|
25
|
-
queryFn: ({ pageParam }: {
|
|
26
|
-
pageParam: number;
|
|
27
|
-
}) => Promise<TResult>;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export {};
|