@dodoex/api 3.0.1 → 3.0.2-solana.2
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 +14 -1
- package/dist/index.js +14 -1
- package/dist/types/chainConfig/basicToken.d.ts +8 -11
- package/dist/types/chainConfig/chain.d.ts +10 -20
- package/dist/types/chainConfig/index.d.ts +2 -2
- package/dist/types/gql/gql.d.ts +6 -2
- package/dist/types/gql/graphql.d.ts +271 -22
- package/dist/types/index.d.ts +3 -9
- package/dist/types/services/TokenApi/index.d.ts +2 -42
- package/dist/types/services/ammv3/AMMV3Api.d.ts +2 -45
- package/dist/types/services/ammv3/index.d.ts +2 -2
- package/dist/types/services/ammv3/queries.d.ts +2 -4
- package/dist/types/services/pool/PoolApi.d.ts +3 -364
- package/dist/types/services/pool/index.d.ts +1 -5
- package/dist/types/services/pool/type.d.ts +13 -1
- package/dist/types/services/system/SystemApi.d.ts +3 -0
- package/dist/types/services/system/graphqlQuery.d.ts +3 -0
- package/package.json +4 -3
- package/dist/AaveLendingPoolABI-CdLq16uB.js +0 -1
- package/dist/AaveLendingPoolABI-G3D5zkkz.cjs +0 -1
- package/dist/AaveLendingPoolAddressesProvider-DrLP2k1o.cjs +0 -1
- package/dist/AaveLendingPoolAddressesProvider-EOSAznLK.js +0 -1
- package/dist/AavePriceOracleABI-C2UEpXR4.js +0 -1
- package/dist/AavePriceOracleABI-C4jkbxlQ.cjs +0 -1
- package/dist/AaveProtocolDataProviderABI-0JclmmLX.js +0 -1
- package/dist/AaveProtocolDataProviderABI-ChLpWblx.cjs +0 -1
- package/dist/BaseDrops-BrQZPqKk.js +0 -1
- package/dist/BaseDrops-b4x2vqWE.cjs +0 -1
- package/dist/D3MM_READ_ABI-B5536S-z.js +0 -1
- package/dist/D3MM_READ_ABI-DPl8m5T6.cjs +0 -1
- package/dist/D3Proxy-CKIzLOhI.js +0 -1
- package/dist/D3Proxy-ChV5DN6z.cjs +0 -1
- package/dist/DODO1155-BNeD65Or.cjs +0 -1
- package/dist/DODO1155-DDY5Jxhf.js +0 -1
- package/dist/DODO721-CSXhoGSt.cjs +0 -1
- package/dist/DODO721-Kl5REiwU.js +0 -1
- package/dist/DODOCirculationHelperABI-BnZp9-jW.cjs +0 -1
- package/dist/DODOCirculationHelperABI-gu1sCqZ2.js +0 -1
- package/dist/DODORouteProxy-51kl6QgI.js +0 -1
- package/dist/DODORouteProxy-BZ0Y3GCA.cjs +0 -1
- package/dist/DODOV1PmmHelperABI-DD2Zqxnx.cjs +0 -1
- package/dist/DODOV1PmmHelperABI-DQqthyaE.js +0 -1
- package/dist/DVM-BpNPFgPh.cjs +0 -1
- package/dist/DVM-DjtWbqiJ.js +0 -1
- package/dist/DropsERC721-7Bckjcar.js +0 -1
- package/dist/DropsERC721-BhKaFHvL.cjs +0 -1
- package/dist/FilterAdmin-cj8kYpNK.cjs +0 -1
- package/dist/FilterAdmin-jm_-DS1l.js +0 -1
- package/dist/FilterERC1155V1-CYRg0d1t.cjs +0 -1
- package/dist/FilterERC1155V1-VIUlIHdF.js +0 -1
- package/dist/FilterERC721V1-Bi0L9sSX.cjs +0 -1
- package/dist/FilterERC721V1-CWDEPGmH.js +0 -1
- package/dist/Fragment-B-F8I7LL.cjs +0 -1
- package/dist/Fragment-Bd_AXeVx.js +0 -1
- package/dist/FundingABI-CVCr1rVZ.cjs +0 -1
- package/dist/FundingABI-WqQDGVVa.js +0 -1
- package/dist/IdodoV2-DlW8pwaE.js +0 -1
- package/dist/IdodoV2-RfwR_GpI.cjs +0 -1
- package/dist/LockedTokenVaultABI-CfBj0wEX.js +0 -1
- package/dist/LockedTokenVaultABI-DRbLRj9L.cjs +0 -1
- package/dist/MarginTrading-CQ5odvHB.js +0 -1
- package/dist/MarginTrading-DTxWKyBB.cjs +0 -1
- package/dist/MarginTradingFactory-2RKqvCSO.js +0 -1
- package/dist/MarginTradingFactory-CXV_vwa8.cjs +0 -1
- package/dist/MerkleDistributorABI-C8Qfs-nh.cjs +0 -1
- package/dist/MerkleDistributorABI-Ctn26fnA.js +0 -1
- package/dist/NonfungiblePositionManager-C-qYqe32.cjs +0 -1
- package/dist/NonfungiblePositionManager-c8Yw_9-Q.js +0 -1
- package/dist/PancakePairABI-Cc9LuXnX.js +0 -1
- package/dist/PancakePairABI-DYhV587D.cjs +0 -1
- package/dist/UniswapV3Pool-CbMV0NzU.cjs +0 -1
- package/dist/UniswapV3Pool-Da11VKXE.js +0 -1
- package/dist/baseFilterV1-BPjWXMKw.js +0 -1
- package/dist/baseFilterV1-BuIlo0KL.cjs +0 -1
- package/dist/bsc-3D5wcqPq.js +0 -1
- package/dist/bsc-DPJpw0CZ.cjs +0 -1
- package/dist/classicalPoolABI-BECDfgEG.cjs +0 -1
- package/dist/classicalPoolABI-D5LxySAJ.js +0 -1
- package/dist/dodoABI-CLkEBJ8P.js +0 -1
- package/dist/dodoABI-gkjw8zb6.cjs +0 -1
- package/dist/dodoBuyoutModel-BtQv3C3q.js +0 -1
- package/dist/dodoBuyoutModel-iVgU8FQj.cjs +0 -1
- package/dist/dodoCP-CLHk9HB9.cjs +0 -1
- package/dist/dodoCP-N8KA8JwJ.js +0 -1
- package/dist/dodoCPABI-CdAN0KhU.js +0 -1
- package/dist/dodoCPABI-DtzutjJ_.cjs +0 -1
- package/dist/dodoCPABIV2-fyFD9xst.cjs +0 -1
- package/dist/dodoCPABIV2-yzF6FlEg.js +0 -1
- package/dist/dodoCPFactory-CBF19zgJ.cjs +0 -1
- package/dist/dodoCPFactory-CD0SxXT6.js +0 -1
- package/dist/dodoCpProxy-C0DPYWye.cjs +0 -1
- package/dist/dodoCpProxy-D2AI9-4r.js +0 -1
- package/dist/dodoCpProxyV2-CGZRqk2H.js +0 -1
- package/dist/dodoCpProxyV2-DpTvj7-M.cjs +0 -1
- package/dist/dodoCpProxyV202-BLhZ86Hq.cjs +0 -1
- package/dist/dodoCpProxyV202-CoZaEf_6.js +0 -1
- package/dist/dodoCustomMintableERC20-CPpNoX1v.js +0 -1
- package/dist/dodoCustomMintableERC20-_rvvHxmy.cjs +0 -1
- package/dist/dodoDPPAdmin-B-fmpTbV.js +0 -1
- package/dist/dodoDPPAdmin-Dn7blhFO.cjs +0 -1
- package/dist/dodoDPPFactory-DZUKGMVx.cjs +0 -1
- package/dist/dodoDPPFactory-DwAkVskt.js +0 -1
- package/dist/dodoDSP-B6KYm-Cn.js +0 -1
- package/dist/dodoDSP-DiQP3j-f.cjs +0 -1
- package/dist/dodoDSPFactory-Bd74S17p.cjs +0 -1
- package/dist/dodoDSPFactory-j1eg7Ez-.js +0 -1
- package/dist/dodoDVM-DDYx1JAy.js +0 -1
- package/dist/dodoDVM-cigh0zp3.cjs +0 -1
- package/dist/dodoDVMFactory-FpnJdZb2.js +0 -1
- package/dist/dodoDVMFactory-Jw7GN957.cjs +0 -1
- package/dist/dodoDppProxy-A7PPYsqp.js +0 -1
- package/dist/dodoDppProxy-evCBC-32.cjs +0 -1
- package/dist/dodoDropsProxy-aB8sftUR.cjs +0 -1
- package/dist/dodoDropsProxy-vHUWsRNO.js +0 -1
- package/dist/dodoDspProxy-Bp3cG2Me.cjs +0 -1
- package/dist/dodoDspProxy-CU7OAvJG.js +0 -1
- package/dist/dodoERC20V3Factory-Cz4XKDrU.js +0 -1
- package/dist/dodoERC20V3Factory-Dp6VtQdx.cjs +0 -1
- package/dist/dodoEthProxyABI-COvGooIx.cjs +0 -1
- package/dist/dodoEthProxyABI-CoX95QJI.js +0 -1
- package/dist/dodoFeeImpl-n8uxW-_A.cjs +0 -1
- package/dist/dodoFeeImpl-zR9Qv4Tq.js +0 -1
- package/dist/dodoFragment-4lxmE2XJ.js +0 -1
- package/dist/dodoFragment-QQKv5zUw.cjs +0 -1
- package/dist/dodoMineV3Proxy-DVScIYYs.cjs +0 -1
- package/dist/dodoMineV3Proxy-xOGM7Jnv.js +0 -1
- package/dist/dodoMineV3ProxyOld-BqsZxJRU.js +0 -1
- package/dist/dodoMineV3ProxyOld-C_F6KVsX.cjs +0 -1
- package/dist/dodoMiningABI-9J5C_6kN.js +0 -1
- package/dist/dodoMiningABI-Bz2I9IA2.cjs +0 -1
- package/dist/dodoMiningReaderABI-B2wU_50T.cjs +0 -1
- package/dist/dodoMiningReaderABI-DmUXA9Gv.js +0 -1
- package/dist/dodoNftERC1155-Bw6ID2NE.js +0 -1
- package/dist/dodoNftERC1155-DLIuD5w1.cjs +0 -1
- package/dist/dodoNftERC721-CI1l0ip9.js +0 -1
- package/dist/dodoNftERC721-CM9UVOIz.cjs +0 -1
- package/dist/dodoNftPoolProxy-D1h5SkLL.cjs +0 -1
- package/dist/dodoNftPoolProxy-DQkcZHUV.js +0 -1
- package/dist/dodoNftProxy-DM2zeXHX.cjs +0 -1
- package/dist/dodoNftProxy-Di-aoLYM.js +0 -1
- package/dist/dodoNftVault-4I3wB3W5.cjs +0 -1
- package/dist/dodoNftVault-B4NZaXcd.js +0 -1
- package/dist/dodoOracleABI-BxwZofBV.js +0 -1
- package/dist/dodoOracleABI-CZXzRpKf.cjs +0 -1
- package/dist/dodoPair-DZAKf_5j.cjs +0 -1
- package/dist/dodoPair-VN1aEVFz.js +0 -1
- package/dist/dodoPreminingABI-BO5Cazcq.cjs +0 -1
- package/dist/dodoPreminingABI-DU7ocR7L.js +0 -1
- package/dist/dodoProxyV2-9ED9HqK5.js +0 -1
- package/dist/dodoProxyV2-C4O1SzS4.cjs +0 -1
- package/dist/dodoStarterProxy-B1TdMOvw.js +0 -1
- package/dist/dodoStarterProxy-DgcH9iEq.cjs +0 -1
- package/dist/dodoTokenABI-6Mpqu75U.cjs +0 -1
- package/dist/dodoTokenABI-Dd2DVUbK.js +0 -1
- package/dist/dodoUpCPFactoryABI-C1W0Q4Ft.js +0 -1
- package/dist/dodoUpCPFactoryABI-XGsn8ED4.cjs +0 -1
- package/dist/dodoUpCpFactory-D8ifQyp-.js +0 -1
- package/dist/dodoUpCpFactory-XGsn8ED4.cjs +0 -1
- package/dist/dodoV1PairProxy-DpEjE8Ne.cjs +0 -1
- package/dist/dodoV1PairProxy-DyRTqyPe.js +0 -1
- package/dist/dodoZooABI-D44Zl74h.cjs +0 -1
- package/dist/dodoZooABI-D9Uc4iLK.js +0 -1
- package/dist/dppPoolABI-BdDjNXGV.cjs +0 -1
- package/dist/dppPoolABI-BvoeLJgK.js +0 -1
- package/dist/erc20ABI-G8oWOkZ8.cjs +0 -1
- package/dist/erc20ABI-v08X4jmE.js +0 -1
- package/dist/erc20Helper-CG659oLz.js +0 -1
- package/dist/erc20Helper-DU3PGwta.cjs +0 -1
- package/dist/eth-B9cviUl5.js +0 -1
- package/dist/eth-BTzl-wbR.cjs +0 -1
- package/dist/feeABI-DnQdJUpQ.js +0 -1
- package/dist/feeABI-n8uxW-_A.cjs +0 -1
- package/dist/multicallABI-D9E1EeQD.js +0 -1
- package/dist/multicallABI-Dhweb42q.cjs +0 -1
- package/dist/nftContract-d4b6ObxG.js +0 -1
- package/dist/nftContract-hvFiWn3Y.cjs +0 -1
- package/dist/nftFilterAdmin-Bq1uLy_8.cjs +0 -1
- package/dist/nftFilterAdmin-DMr_jrK_.js +0 -1
- package/dist/oneBitSettlement-DMzQ-0t_.js +0 -1
- package/dist/oneBitSettlement-DiJ0ov7p.cjs +0 -1
- package/dist/setApprovalForAll-BvnCORJI.js +0 -1
- package/dist/setApprovalForAll-C5PVWdKB.cjs +0 -1
- package/dist/spaceIdABI-B5tTrrz8.cjs +0 -1
- package/dist/spaceIdABI-BS4XGAT1.js +0 -1
- package/dist/spaceIdResolverABI-CrfOXUgo.cjs +0 -1
- package/dist/spaceIdResolverABI-sYDT8GfP.js +0 -1
- package/dist/types/services/TokenApi/utils.d.ts +0 -1
- package/dist/types/services/pool/pmm/pmmModel.d.ts +0 -25
- package/dist/v3MiningABI-C-S-QkHw.cjs +0 -1
- package/dist/v3MiningABI-ZjGBkolS.js +0 -1
- package/dist/vdodo-BV3kGDOM.cjs +0 -1
- package/dist/vdodo-ttc2RVOs.js +0 -1
- package/dist/vdodoTokenABI-BuOHA0B9.cjs +0 -1
- package/dist/vdodoTokenABI-PldrbOSo.js +0 -1
- package/dist/weth-CGG0Z6re.cjs +0 -1
- package/dist/weth-Dz5DGEIF.js +0 -1
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { ChainId } from './chain';
|
|
2
|
-
export declare const
|
|
3
|
-
declare const
|
|
4
|
-
symbol: string;
|
|
5
|
-
address: string;
|
|
6
|
-
name: string;
|
|
7
|
-
decimals: number;
|
|
8
|
-
showDecimals: number;
|
|
9
|
-
wrappedTokenSymbol: string;
|
|
10
|
-
};
|
|
2
|
+
export declare const SOL_MINT_ADDRESS: string;
|
|
3
|
+
export declare const WSOL_MINT_ADDRESS: string;
|
|
11
4
|
export declare const basicTokenMap: {
|
|
12
|
-
[key in ChainId]:
|
|
5
|
+
[key in ChainId]: {
|
|
6
|
+
address: string;
|
|
7
|
+
name: string;
|
|
8
|
+
decimals: number;
|
|
9
|
+
symbol: string;
|
|
10
|
+
wrappedTokenSymbol: string;
|
|
13
11
|
wrappedTokenAddress: string;
|
|
14
12
|
};
|
|
15
13
|
};
|
|
16
|
-
export {};
|
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
export declare enum ChainId {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
PLUME = 98865,
|
|
21
|
-
NEOX = 47763
|
|
2
|
+
SOON_TESTNET = 903,
|
|
3
|
+
SOON = 9031
|
|
22
4
|
}
|
|
5
|
+
export declare enum chainIdShortNameEnum {
|
|
6
|
+
SOON_TESTNET = "soon-testnet",
|
|
7
|
+
SOON = "soon"
|
|
8
|
+
}
|
|
9
|
+
export declare const chainIdToShortName: {
|
|
10
|
+
903: chainIdShortNameEnum;
|
|
11
|
+
9031: chainIdShortNameEnum;
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { basicTokenMap, SOL_MINT_ADDRESS, WSOL_MINT_ADDRESS, } from './basicToken';
|
|
2
|
+
export { ChainId, chainIdShortNameEnum, chainIdToShortName } from './chain';
|
|
3
3
|
export { default as contractConfig } from './contractConfig';
|
|
4
4
|
export { platformIdMap } from './platform';
|
package/dist/types/gql/gql.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare function graphql(source: '\n query FetchErc20ForecastSlippage(
|
|
|
9
9
|
/**
|
|
10
10
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
11
11
|
*/
|
|
12
|
-
export declare function graphql(source: '\n query
|
|
12
|
+
export declare function graphql(source: '\n query Amm_getTicksData($where: AmmgetTicksDataInput) {\n amm_getTicksData(where: $where) {\n chain\n poolAddress\n pairType\n ticks {\n id\n poolAddress\n tickIdx\n price0\n price1\n liquidityGross\n liquidityNet\n protocolPosition\n tickArrayLower\n tickArrayUpper\n }\n }\n }\n'): typeof import('./graphql').Amm_GetTicksDataDocument;
|
|
13
13
|
/**
|
|
14
14
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
15
15
|
*/
|
|
@@ -33,7 +33,7 @@ export declare function graphql(source: '\n query FetchLiquidityList($where:
|
|
|
33
33
|
/**
|
|
34
34
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
35
35
|
*/
|
|
36
|
-
export declare function graphql(source: '\n query FetchMyLiquidityList($where: Liquiditylist_filter) {\n liquidity_list(where: $where) {\n lqList {\n id\n liquidityPositions {\n id\n liquidityTokenBalance\n liquidityTokenInMining\n poolShare\n liquidityUSD\n tokenId\n outOfRange\n priceRange {\n token0LowerPrice\n token0UpperPrice\n token1LowerPrice\n token1UpperPrice\n }\n tickLower {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n tickUpper {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n }\n pair {\n id\n chainId\n type\n lpFeeRate\n mtFeeRate\n creator\n baseLpToken {\n id\n }\n quoteLpToken {\n id\n }\n baseToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n quoteToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n tvl\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n }\n miningAddress\n volume24H\n }\n }\n }\n }\n '): typeof import('./graphql').FetchMyLiquidityListDocument;
|
|
36
|
+
export declare function graphql(source: '\n query FetchMyLiquidityList($where: Liquiditylist_filter) {\n liquidity_list(where: $where) {\n lqList {\n id\n liquidityPositions {\n id\n liquidityTokenBalance\n liquidityTokenInMining\n poolShare\n liquidityUSD\n tokenId\n nftMint\n outOfRange\n priceRange {\n token0LowerPrice\n token0UpperPrice\n token1LowerPrice\n token1UpperPrice\n }\n tickLower {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n tickUpper {\n id\n tickIdx\n liquidityGross\n liquidityNet\n price0\n price1\n }\n }\n pair {\n id\n chainId\n type\n lpFeeRate\n mtFeeRate\n creator\n baseLpToken {\n id\n }\n quoteLpToken {\n id\n }\n baseToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n quoteToken {\n id\n symbol\n name\n decimals\n logoImg\n }\n tvl\n apy {\n miningBaseApy\n miningQuoteApy\n transactionBaseApy\n transactionQuoteApy\n }\n miningAddress\n volume24H\n }\n }\n }\n }\n '): typeof import('./graphql').FetchMyLiquidityListDocument;
|
|
37
37
|
/**
|
|
38
38
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
39
39
|
*/
|
|
@@ -74,3 +74,7 @@ export declare function graphql(source: '\n query FetchNoticeCenterTransactio
|
|
|
74
74
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
75
75
|
*/
|
|
76
76
|
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;
|
|
77
|
+
/**
|
|
78
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
79
|
+
*/
|
|
80
|
+
export declare function graphql(source: '\n query FetchUserprofileReward($where: UserprofileReward_filter) {\n userprofile_reward(where: $where) {\n name_key\n token_address\n contract_address\n token_symbol\n locking\n version\n merkle {\n index\n amout\n proof\n }\n }\n }\n '): typeof import('./graphql').FetchUserprofileRewardDocument;
|
|
@@ -273,6 +273,29 @@ export type All_Filter = {
|
|
|
273
273
|
schemaName?: InputMaybe<Scalars['String']['input']>;
|
|
274
274
|
};
|
|
275
275
|
export type All_OrderBy = 'chain' | 'id';
|
|
276
|
+
export type AmmTick = {
|
|
277
|
+
id: Scalars['String']['output'];
|
|
278
|
+
liquidityGross: Scalars['BigDecimal']['output'];
|
|
279
|
+
liquidityNet: Scalars['BigDecimal']['output'];
|
|
280
|
+
poolAddress: Scalars['String']['output'];
|
|
281
|
+
price0: Scalars['BigDecimal']['output'];
|
|
282
|
+
price1: Scalars['BigDecimal']['output'];
|
|
283
|
+
protocolPosition?: Maybe<Scalars['String']['output']>;
|
|
284
|
+
tickArrayLower?: Maybe<Scalars['String']['output']>;
|
|
285
|
+
tickArrayUpper?: Maybe<Scalars['String']['output']>;
|
|
286
|
+
tickIdx: Scalars['BigDecimal']['output'];
|
|
287
|
+
};
|
|
288
|
+
export type AmmTicksDataResult = {
|
|
289
|
+
chain: Scalars['String']['output'];
|
|
290
|
+
pairType: Scalars['String']['output'];
|
|
291
|
+
poolAddress: Scalars['String']['output'];
|
|
292
|
+
ticks: Array<Maybe<AmmTick>>;
|
|
293
|
+
};
|
|
294
|
+
export type AmmgetTicksDataInput = {
|
|
295
|
+
chain: Scalars['String']['input'];
|
|
296
|
+
pairType: Scalars['String']['input'];
|
|
297
|
+
poolAddress: Scalars['String']['input'];
|
|
298
|
+
};
|
|
276
299
|
export type AnnouncementAnnouncement = {
|
|
277
300
|
endAt?: Maybe<Scalars['String']['output']>;
|
|
278
301
|
id?: Maybe<Scalars['Int']['output']>;
|
|
@@ -1093,6 +1116,51 @@ export type Block_Height = {
|
|
|
1093
1116
|
number: Scalars['Int']['input'];
|
|
1094
1117
|
number_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
1095
1118
|
};
|
|
1119
|
+
export type Brand_Site_AnnouncementBrandSiteAnnouncement = {
|
|
1120
|
+
brand?: Maybe<Scalars['String']['output']>;
|
|
1121
|
+
endAt?: Maybe<Scalars['String']['output']>;
|
|
1122
|
+
id?: Maybe<Scalars['Int']['output']>;
|
|
1123
|
+
lastPublishTime?: Maybe<Scalars['String']['output']>;
|
|
1124
|
+
metadata?: Maybe<Brand_Site_AnnouncementMetadata>;
|
|
1125
|
+
sort?: Maybe<Scalars['Int']['output']>;
|
|
1126
|
+
startAt?: Maybe<Scalars['String']['output']>;
|
|
1127
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1128
|
+
type?: Maybe<Scalars['Int']['output']>;
|
|
1129
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
1130
|
+
};
|
|
1131
|
+
export type Brand_Site_AnnouncementBrandSiteAnnouncementList = {
|
|
1132
|
+
lastPublishId?: Maybe<Scalars['Int']['output']>;
|
|
1133
|
+
lastPublishTime?: Maybe<Scalars['String']['output']>;
|
|
1134
|
+
list?: Maybe<Array<Maybe<Brand_Site_AnnouncementBrandSiteAnnouncement>>>;
|
|
1135
|
+
};
|
|
1136
|
+
export type Brand_Site_AnnouncementMetadata = {
|
|
1137
|
+
background?: Maybe<Scalars['String']['output']>;
|
|
1138
|
+
buttonType?: Maybe<Scalars['String']['output']>;
|
|
1139
|
+
icon?: Maybe<Scalars['String']['output']>;
|
|
1140
|
+
landingPageDisplay?: Maybe<Scalars['Boolean']['output']>;
|
|
1141
|
+
theme?: Maybe<Scalars['String']['output']>;
|
|
1142
|
+
};
|
|
1143
|
+
export type Brand_Site_Announcementqueryilter = {
|
|
1144
|
+
brand?: InputMaybe<Scalars['String']['input']>;
|
|
1145
|
+
lang?: InputMaybe<Scalars['String']['input']>;
|
|
1146
|
+
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1147
|
+
};
|
|
1148
|
+
export type Brand_Site_BannerBrandSiteBanner = {
|
|
1149
|
+
bannerImg?: Maybe<Scalars['String']['output']>;
|
|
1150
|
+
brand?: Maybe<Scalars['String']['output']>;
|
|
1151
|
+
chainId?: Maybe<Scalars['Int']['output']>;
|
|
1152
|
+
describe?: Maybe<Scalars['String']['output']>;
|
|
1153
|
+
id?: Maybe<Scalars['Int']['output']>;
|
|
1154
|
+
position?: Maybe<Scalars['String']['output']>;
|
|
1155
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1156
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
1157
|
+
};
|
|
1158
|
+
export type Brand_Site_Bannerqueryilter = {
|
|
1159
|
+
brand?: InputMaybe<Scalars['String']['input']>;
|
|
1160
|
+
chainId?: InputMaybe<Scalars['Int']['input']>;
|
|
1161
|
+
position?: InputMaybe<Scalars['String']['input']>;
|
|
1162
|
+
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1163
|
+
};
|
|
1096
1164
|
export type BrowserChainInput = {
|
|
1097
1165
|
chains: Array<InputMaybe<Scalars['Int']['input']>>;
|
|
1098
1166
|
};
|
|
@@ -1686,6 +1754,7 @@ export type Cross_Chain_SwapExtend = {
|
|
|
1686
1754
|
encodeId?: Maybe<Scalars['String']['output']>;
|
|
1687
1755
|
fromToken?: Maybe<Scalars['JSON']['output']>;
|
|
1688
1756
|
lifiBridge?: Maybe<Scalars['String']['output']>;
|
|
1757
|
+
productStateInfo?: Maybe<Scalars['JSON']['output']>;
|
|
1689
1758
|
refunded?: Maybe<Scalars['JSON']['output']>;
|
|
1690
1759
|
route?: Maybe<Scalars['JSON']['output']>;
|
|
1691
1760
|
toToken?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -1750,6 +1819,7 @@ export type Cross_Chain_SwaporderCreateDataExtendRoute = {
|
|
|
1750
1819
|
feeUSD?: InputMaybe<Scalars['String']['input']>;
|
|
1751
1820
|
step?: InputMaybe<Scalars['JSON']['input']>;
|
|
1752
1821
|
toAmount?: InputMaybe<Scalars['String']['input']>;
|
|
1822
|
+
toAmountMin?: InputMaybe<Scalars['String']['input']>;
|
|
1753
1823
|
};
|
|
1754
1824
|
export type Cross_Chain_SwaporderDetailData = {
|
|
1755
1825
|
orderId?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1760,8 +1830,10 @@ export type Cross_Chain_SwaporderListData = {
|
|
|
1760
1830
|
chainId?: InputMaybe<Scalars['Int']['input']>;
|
|
1761
1831
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1762
1832
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
1833
|
+
product?: InputMaybe<Scalars['String']['input']>;
|
|
1763
1834
|
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1764
1835
|
source?: InputMaybe<Scalars['String']['input']>;
|
|
1836
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
1765
1837
|
user?: InputMaybe<Scalars['String']['input']>;
|
|
1766
1838
|
};
|
|
1767
1839
|
export type Cross_Chain_SwaporderNewStatusData = {
|
|
@@ -1771,6 +1843,7 @@ export type Cross_Chain_SwaporderNewStatusData = {
|
|
|
1771
1843
|
export type Cross_Chain_SwaporderRefundCountData = {
|
|
1772
1844
|
chainId?: InputMaybe<Scalars['Int']['input']>;
|
|
1773
1845
|
from?: InputMaybe<Scalars['String']['input']>;
|
|
1846
|
+
product?: InputMaybe<Scalars['String']['input']>;
|
|
1774
1847
|
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1775
1848
|
source?: InputMaybe<Scalars['String']['input']>;
|
|
1776
1849
|
user?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4886,6 +4959,104 @@ export type DodochainuserTwigsMineInput = {
|
|
|
4886
4959
|
size?: InputMaybe<Scalars['Int']['input']>;
|
|
4887
4960
|
user: Scalars['String']['input'];
|
|
4888
4961
|
};
|
|
4962
|
+
export type DodopointsChainOptionalUserInput = {
|
|
4963
|
+
chainId: Scalars['BigDecimal']['input'];
|
|
4964
|
+
user?: InputMaybe<Scalars['String']['input']>;
|
|
4965
|
+
};
|
|
4966
|
+
export type DodopointsChainUserInput = {
|
|
4967
|
+
chainId: Scalars['BigDecimal']['input'];
|
|
4968
|
+
user: Scalars['String']['input'];
|
|
4969
|
+
};
|
|
4970
|
+
export type DodopointsChainUserPaginationInput = {
|
|
4971
|
+
chainId: Scalars['BigDecimal']['input'];
|
|
4972
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
4973
|
+
size?: InputMaybe<Scalars['Int']['input']>;
|
|
4974
|
+
user: Scalars['String']['input'];
|
|
4975
|
+
};
|
|
4976
|
+
export type DodopointsClaimedRecord = {
|
|
4977
|
+
amount: Scalars['BigDecimal']['output'];
|
|
4978
|
+
symbol: Scalars['String']['output'];
|
|
4979
|
+
timestamp: Scalars['BigDecimal']['output'];
|
|
4980
|
+
token: Scalars['String']['output'];
|
|
4981
|
+
};
|
|
4982
|
+
export type DodopointsClaimedRecordPaginationResult = {
|
|
4983
|
+
count: Scalars['Int']['output'];
|
|
4984
|
+
list: Array<Maybe<DodopointsClaimedRecord>>;
|
|
4985
|
+
page: Scalars['Int']['output'];
|
|
4986
|
+
size: Scalars['Int']['output'];
|
|
4987
|
+
};
|
|
4988
|
+
export type DodopointsDodoPointsActivityInfo = {
|
|
4989
|
+
describe: Scalars['String']['output'];
|
|
4990
|
+
fulfilledPeriodsCoefficient: Scalars['BigDecimal']['output'];
|
|
4991
|
+
fulfilledPeriodsNumber: Scalars['Int']['output'];
|
|
4992
|
+
name: Scalars['String']['output'];
|
|
4993
|
+
periods: Array<Maybe<DodopointsPeriodInfo>>;
|
|
4994
|
+
totalPoints: Scalars['BigDecimal']['output'];
|
|
4995
|
+
url: Scalars['String']['output'];
|
|
4996
|
+
};
|
|
4997
|
+
export type DodopointsDodoPointsActivityRewardInfo = {
|
|
4998
|
+
endAt: Scalars['Int']['output'];
|
|
4999
|
+
name: Scalars['String']['output'];
|
|
5000
|
+
periods: Array<Maybe<DodopointsDodoPointsPeriodRewardInfo>>;
|
|
5001
|
+
startAt: Scalars['Int']['output'];
|
|
5002
|
+
totalPoints: Scalars['BigDecimal']['output'];
|
|
5003
|
+
};
|
|
5004
|
+
export type DodopointsDodoPointsPeriodRewardInfo = {
|
|
5005
|
+
contractAddress: Scalars['String']['output'];
|
|
5006
|
+
decimals: Scalars['Int']['output'];
|
|
5007
|
+
num: Scalars['Int']['output'];
|
|
5008
|
+
points: Scalars['BigDecimal']['output'];
|
|
5009
|
+
shareAmount: Scalars['Int']['output'];
|
|
5010
|
+
symbol: Scalars['String']['output'];
|
|
5011
|
+
token: Scalars['String']['output'];
|
|
5012
|
+
};
|
|
5013
|
+
export type DodopointsPairPoints = {
|
|
5014
|
+
baseSymbol: Scalars['String']['output'];
|
|
5015
|
+
baseToken: Scalars['String']['output'];
|
|
5016
|
+
points: Scalars['BigDecimal']['output'];
|
|
5017
|
+
quoteSymbol: Scalars['String']['output'];
|
|
5018
|
+
quoteToken: Scalars['String']['output'];
|
|
5019
|
+
};
|
|
5020
|
+
export type DodopointsPeriodInfo = {
|
|
5021
|
+
decimals: Scalars['Int']['output'];
|
|
5022
|
+
endAt: Scalars['Int']['output'];
|
|
5023
|
+
fulfilled: Scalars['Boolean']['output'];
|
|
5024
|
+
num: Scalars['Int']['output'];
|
|
5025
|
+
points: Scalars['BigDecimal']['output'];
|
|
5026
|
+
rules: Array<Maybe<DodopointsRuleInfo>>;
|
|
5027
|
+
shareAmount: Scalars['BigDecimal']['output'];
|
|
5028
|
+
startAt: Scalars['Int']['output'];
|
|
5029
|
+
symbol: Scalars['String']['output'];
|
|
5030
|
+
token: Scalars['String']['output'];
|
|
5031
|
+
tradePairs: Array<Maybe<DodopointsTradePairInfo>>;
|
|
5032
|
+
};
|
|
5033
|
+
export type DodopointsPointRecord = {
|
|
5034
|
+
points: Scalars['BigDecimal']['output'];
|
|
5035
|
+
timestamp: Scalars['BigDecimal']['output'];
|
|
5036
|
+
};
|
|
5037
|
+
export type DodopointsPointRecordPaginationResult = {
|
|
5038
|
+
count: Scalars['Int']['output'];
|
|
5039
|
+
list: Array<Maybe<DodopointsPointRecord>>;
|
|
5040
|
+
page: Scalars['Int']['output'];
|
|
5041
|
+
size: Scalars['Int']['output'];
|
|
5042
|
+
totalPoints: Scalars['BigDecimal']['output'];
|
|
5043
|
+
};
|
|
5044
|
+
export type DodopointsRuleInfo = {
|
|
5045
|
+
num: Scalars['Int']['output'];
|
|
5046
|
+
points: Scalars['BigDecimal']['output'];
|
|
5047
|
+
swapUsd: Scalars['BigDecimal']['output'];
|
|
5048
|
+
};
|
|
5049
|
+
export type DodopointsToken = {
|
|
5050
|
+
address: Scalars['String']['output'];
|
|
5051
|
+
decimals: Scalars['Int']['output'];
|
|
5052
|
+
logoImg: Scalars['String']['output'];
|
|
5053
|
+
symbol: Scalars['String']['output'];
|
|
5054
|
+
};
|
|
5055
|
+
export type DodopointsTradePairInfo = {
|
|
5056
|
+
coefficient?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5057
|
+
fromToken: DodopointsToken;
|
|
5058
|
+
toToken: DodopointsToken;
|
|
5059
|
+
};
|
|
4889
5060
|
export type DonateHistory = {
|
|
4890
5061
|
/** block */
|
|
4891
5062
|
blockNumber: Scalars['BigInt']['output'];
|
|
@@ -5185,6 +5356,7 @@ export type Erc20listV2Filter = {
|
|
|
5185
5356
|
chainIds?: InputMaybe<Scalars['String']['input']>;
|
|
5186
5357
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
5187
5358
|
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
5359
|
+
productName?: InputMaybe<Scalars['String']['input']>;
|
|
5188
5360
|
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5189
5361
|
};
|
|
5190
5362
|
export type Erc20relationListFilter = {
|
|
@@ -5842,6 +6014,7 @@ export type Liquidator_Filter = {
|
|
|
5842
6014
|
};
|
|
5843
6015
|
export type Liquidator_OrderBy = 'addTimestamp' | 'id' | 'isRemove' | 'updatedAt';
|
|
5844
6016
|
export type LiquidityApyData = {
|
|
6017
|
+
metromMiningApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5845
6018
|
miningBaseApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5846
6019
|
miningQuoteApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
5847
6020
|
transactionBaseApy?: Maybe<Scalars['BigDecimal']['output']>;
|
|
@@ -6154,15 +6327,22 @@ export type LiquidityHistory_Filter = {
|
|
|
6154
6327
|
};
|
|
6155
6328
|
export type LiquidityHistory_OrderBy = 'amount' | 'balance' | 'baseAmountChange' | 'baseReserve' | 'baseTokenPrice' | 'block' | 'chain' | 'from' | 'hash' | 'id' | 'lpToken' | 'lpTokenTotalSupply' | 'pair' | 'quoteAmountChange' | 'quoteReserve' | 'quoteTokenPrice' | 'timestamp' | 'type' | 'updatedAt' | 'user';
|
|
6156
6329
|
export type LiquidityLp = {
|
|
6330
|
+
baseTokenAmount?: Maybe<Scalars['String']['output']>;
|
|
6331
|
+
baseTokenAmountInMining?: Maybe<Scalars['String']['output']>;
|
|
6332
|
+
baseTokenPrice?: Maybe<Scalars['String']['output']>;
|
|
6157
6333
|
id?: Maybe<Scalars['String']['output']>;
|
|
6158
6334
|
liquidityTokenBalance?: Maybe<Scalars['String']['output']>;
|
|
6159
6335
|
liquidityTokenInMining?: Maybe<Scalars['String']['output']>;
|
|
6160
6336
|
/** my liquidity usd */
|
|
6161
6337
|
liquidityUSD?: Maybe<Scalars['String']['output']>;
|
|
6338
|
+
nftMint?: Maybe<Scalars['String']['output']>;
|
|
6162
6339
|
outOfRange?: Maybe<Scalars['Boolean']['output']>;
|
|
6163
6340
|
/** Share in the pool */
|
|
6164
6341
|
poolShare?: Maybe<Scalars['String']['output']>;
|
|
6165
6342
|
priceRange?: Maybe<LiquidityLpPriceRange>;
|
|
6343
|
+
quoteTokenAmount?: Maybe<Scalars['String']['output']>;
|
|
6344
|
+
quoteTokenAmountInMining?: Maybe<Scalars['String']['output']>;
|
|
6345
|
+
quoteTokenPrice?: Maybe<Scalars['String']['output']>;
|
|
6166
6346
|
tickLower?: Maybe<LiquidityTick>;
|
|
6167
6347
|
tickUpper?: Maybe<LiquidityTick>;
|
|
6168
6348
|
/** AMM V3 info */
|
|
@@ -6198,13 +6378,13 @@ export type LiquidityLpPartnerRewardsResult = {
|
|
|
6198
6378
|
};
|
|
6199
6379
|
export type LiquidityLpPriceRange = {
|
|
6200
6380
|
/** token0 lower price */
|
|
6201
|
-
token0LowerPrice: Scalars['
|
|
6381
|
+
token0LowerPrice: Scalars['String']['output'];
|
|
6202
6382
|
/** token0 upper price */
|
|
6203
|
-
token0UpperPrice: Scalars['
|
|
6383
|
+
token0UpperPrice: Scalars['String']['output'];
|
|
6204
6384
|
/** token1 lower price */
|
|
6205
|
-
token1LowerPrice: Scalars['
|
|
6385
|
+
token1LowerPrice: Scalars['String']['output'];
|
|
6206
6386
|
/** token1 upper price */
|
|
6207
|
-
token1UpperPrice: Scalars['
|
|
6387
|
+
token1UpperPrice: Scalars['String']['output'];
|
|
6208
6388
|
};
|
|
6209
6389
|
export type LiquidityLpToken = {
|
|
6210
6390
|
/** token decimals */
|
|
@@ -7188,6 +7368,15 @@ export type Market_Maker_Pool_ApplypoolApplyData = {
|
|
|
7188
7368
|
liaison?: InputMaybe<Scalars['String']['input']>;
|
|
7189
7369
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
7190
7370
|
};
|
|
7371
|
+
export type MetromChainInput = {
|
|
7372
|
+
chainId: Scalars['BigDecimal']['input'];
|
|
7373
|
+
};
|
|
7374
|
+
export type MetromPool = {
|
|
7375
|
+
apr: Scalars['BigDecimal']['output'];
|
|
7376
|
+
apy: Scalars['BigDecimal']['output'];
|
|
7377
|
+
chainId: Scalars['BigDecimal']['output'];
|
|
7378
|
+
pool: Scalars['String']['output'];
|
|
7379
|
+
};
|
|
7191
7380
|
export type MinePool = {
|
|
7192
7381
|
chain: Scalars['String']['output'];
|
|
7193
7382
|
/** creator */
|
|
@@ -10762,6 +10951,8 @@ export type Query = {
|
|
|
10762
10951
|
aggregateFragments: Array<AggregateFragment>;
|
|
10763
10952
|
all?: Maybe<All>;
|
|
10764
10953
|
alls: Array<All>;
|
|
10954
|
+
/** 获取amm ticks */
|
|
10955
|
+
amm_getTicksData: AmmTicksDataResult;
|
|
10765
10956
|
announcement_getAnnouncement?: Maybe<AnnouncementAnnouncementList>;
|
|
10766
10957
|
approval?: Maybe<Approval>;
|
|
10767
10958
|
approvals: Array<Approval>;
|
|
@@ -10786,6 +10977,8 @@ export type Query = {
|
|
|
10786
10977
|
bidHistory?: Maybe<BidHistory>;
|
|
10787
10978
|
bidPosition?: Maybe<BidPosition>;
|
|
10788
10979
|
bidPositions: Array<BidPosition>;
|
|
10980
|
+
brand_site_announcement_list?: Maybe<Brand_Site_AnnouncementBrandSiteAnnouncementList>;
|
|
10981
|
+
brand_site_banner_list?: Maybe<Array<Maybe<Brand_Site_BannerBrandSiteBanner>>>;
|
|
10789
10982
|
/** 获取 RPC 节点,缓存1分钟,每分钟重新排序;排序规则:可访问 > 响应速度 > 区块高度 */
|
|
10790
10983
|
browser_getRpc: Scalars['JSON']['output'];
|
|
10791
10984
|
chart_getOhlcv2Chart: Array<Maybe<Array<Maybe<Scalars['String']['output']>>>>;
|
|
@@ -10945,6 +11138,12 @@ export type Query = {
|
|
|
10945
11138
|
dodochain_getUserStakedListJourneyOne: DodochainUserStakedPaginationResult;
|
|
10946
11139
|
/** 获取用户参与的twigs挖矿列表 */
|
|
10947
11140
|
dodochain_getUserTwigsMineList: DodochainUserTwigsMinePaginationResult;
|
|
11141
|
+
/** 活动相关信息 */
|
|
11142
|
+
dodopoints_getActivityInfo?: Maybe<DodopointsDodoPointsActivityInfo>;
|
|
11143
|
+
/** Lp交易对积分记录 */
|
|
11144
|
+
dodopoints_getUserLpPairsPoints: Array<Maybe<DodopointsPairPoints>>;
|
|
11145
|
+
/** 交易积分发放记录 */
|
|
11146
|
+
dodopoints_getUserSwapPointsList: DodopointsPointRecordPaginationResult;
|
|
10948
11147
|
donateHistories: Array<DonateHistory>;
|
|
10949
11148
|
donateHistory?: Maybe<DonateHistory>;
|
|
10950
11149
|
/** 活动相关信息 */
|
|
@@ -11016,6 +11215,8 @@ export type Query = {
|
|
|
11016
11215
|
/** data url:post(https://host:port/manage/slippage_tolerance_list).data */
|
|
11017
11216
|
manage_slippage_tolerance_list?: Maybe<Array<Maybe<ManageSlippageTolerance>>>;
|
|
11018
11217
|
market_maker_pool_apply_create?: Maybe<Market_Maker_Pool_ApplyData>;
|
|
11218
|
+
/** 获取Metrom的池子列表 */
|
|
11219
|
+
metrom_getPools: Array<Maybe<MetromPool>>;
|
|
11019
11220
|
minePool?: Maybe<MinePool>;
|
|
11020
11221
|
minePools: Array<MinePool>;
|
|
11021
11222
|
miningPool?: Maybe<MiningPool>;
|
|
@@ -11249,6 +11450,9 @@ export type QueryAllsArgs = {
|
|
|
11249
11450
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
11250
11451
|
where?: InputMaybe<All_Filter>;
|
|
11251
11452
|
};
|
|
11453
|
+
export type QueryAmm_GetTicksDataArgs = {
|
|
11454
|
+
where?: InputMaybe<AmmgetTicksDataInput>;
|
|
11455
|
+
};
|
|
11252
11456
|
export type QueryAnnouncement_GetAnnouncementArgs = {
|
|
11253
11457
|
lang?: InputMaybe<Scalars['String']['input']>;
|
|
11254
11458
|
};
|
|
@@ -11384,6 +11588,12 @@ export type QueryBidPositionsArgs = {
|
|
|
11384
11588
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
11385
11589
|
where?: InputMaybe<BidPosition_Filter>;
|
|
11386
11590
|
};
|
|
11591
|
+
export type QueryBrand_Site_Announcement_ListArgs = {
|
|
11592
|
+
where?: InputMaybe<Brand_Site_Announcementqueryilter>;
|
|
11593
|
+
};
|
|
11594
|
+
export type QueryBrand_Site_Banner_ListArgs = {
|
|
11595
|
+
where?: InputMaybe<Brand_Site_Bannerqueryilter>;
|
|
11596
|
+
};
|
|
11387
11597
|
export type QueryBrowser_GetRpcArgs = {
|
|
11388
11598
|
where: BrowserChainInput;
|
|
11389
11599
|
};
|
|
@@ -11863,6 +12073,15 @@ export type QueryDodochain_GetUserStakedListJourneyOneArgs = {
|
|
|
11863
12073
|
export type QueryDodochain_GetUserTwigsMineListArgs = {
|
|
11864
12074
|
where?: InputMaybe<DodochainuserTwigsMineInput>;
|
|
11865
12075
|
};
|
|
12076
|
+
export type QueryDodopoints_GetActivityInfoArgs = {
|
|
12077
|
+
where?: InputMaybe<DodopointsChainOptionalUserInput>;
|
|
12078
|
+
};
|
|
12079
|
+
export type QueryDodopoints_GetUserLpPairsPointsArgs = {
|
|
12080
|
+
where?: InputMaybe<DodopointsChainOptionalUserInput>;
|
|
12081
|
+
};
|
|
12082
|
+
export type QueryDodopoints_GetUserSwapPointsListArgs = {
|
|
12083
|
+
where?: InputMaybe<DodopointsChainUserPaginationInput>;
|
|
12084
|
+
};
|
|
11866
12085
|
export type QueryDonateHistoriesArgs = {
|
|
11867
12086
|
block?: InputMaybe<Block_Height>;
|
|
11868
12087
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -12154,6 +12373,9 @@ export type QueryManage_Slippage_Tolerance_ListArgs = {
|
|
|
12154
12373
|
export type QueryMarket_Maker_Pool_Apply_CreateArgs = {
|
|
12155
12374
|
data?: InputMaybe<Market_Maker_Pool_ApplypoolApplyData>;
|
|
12156
12375
|
};
|
|
12376
|
+
export type QueryMetrom_GetPoolsArgs = {
|
|
12377
|
+
where?: InputMaybe<MetromChainInput>;
|
|
12378
|
+
};
|
|
12157
12379
|
export type QueryMinePoolArgs = {
|
|
12158
12380
|
block?: InputMaybe<Block_Height>;
|
|
12159
12381
|
id: Scalars['ID']['input'];
|
|
@@ -18272,20 +18494,27 @@ export type FetchErc20ForecastSlippageQuery = {
|
|
|
18272
18494
|
} | null> | null;
|
|
18273
18495
|
} | null;
|
|
18274
18496
|
};
|
|
18275
|
-
export type
|
|
18276
|
-
where?: InputMaybe<
|
|
18277
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
18278
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
18497
|
+
export type Amm_GetTicksDataQueryVariables = Exact<{
|
|
18498
|
+
where?: InputMaybe<AmmgetTicksDataInput>;
|
|
18279
18499
|
}>;
|
|
18280
|
-
export type
|
|
18281
|
-
|
|
18282
|
-
|
|
18283
|
-
poolAddress
|
|
18284
|
-
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18500
|
+
export type Amm_GetTicksDataQuery = {
|
|
18501
|
+
amm_getTicksData: {
|
|
18502
|
+
chain: string;
|
|
18503
|
+
poolAddress: string;
|
|
18504
|
+
pairType: string;
|
|
18505
|
+
ticks: Array<{
|
|
18506
|
+
id: string;
|
|
18507
|
+
poolAddress: string;
|
|
18508
|
+
tickIdx: any;
|
|
18509
|
+
price0: any;
|
|
18510
|
+
price1: any;
|
|
18511
|
+
liquidityGross: any;
|
|
18512
|
+
liquidityNet: any;
|
|
18513
|
+
protocolPosition?: string | null;
|
|
18514
|
+
tickArrayLower?: string | null;
|
|
18515
|
+
tickArrayUpper?: string | null;
|
|
18516
|
+
} | null>;
|
|
18517
|
+
};
|
|
18289
18518
|
};
|
|
18290
18519
|
export type FetchMiningListQueryVariables = Exact<{
|
|
18291
18520
|
where?: InputMaybe<Miningmining_List_Filter>;
|
|
@@ -18633,12 +18862,13 @@ export type FetchMyLiquidityListQuery = {
|
|
|
18633
18862
|
poolShare?: string | null;
|
|
18634
18863
|
liquidityUSD?: string | null;
|
|
18635
18864
|
tokenId?: string | null;
|
|
18865
|
+
nftMint?: string | null;
|
|
18636
18866
|
outOfRange?: boolean | null;
|
|
18637
18867
|
priceRange?: {
|
|
18638
|
-
token0LowerPrice:
|
|
18639
|
-
token0UpperPrice:
|
|
18640
|
-
token1LowerPrice:
|
|
18641
|
-
token1UpperPrice:
|
|
18868
|
+
token0LowerPrice: string;
|
|
18869
|
+
token0UpperPrice: string;
|
|
18870
|
+
token1LowerPrice: string;
|
|
18871
|
+
token1UpperPrice: string;
|
|
18642
18872
|
} | null;
|
|
18643
18873
|
tickLower?: {
|
|
18644
18874
|
id: string;
|
|
@@ -19051,6 +19281,24 @@ export type FetchLiquidityLpPartnerRewardsQuery = {
|
|
|
19051
19281
|
} | null> | null;
|
|
19052
19282
|
} | null;
|
|
19053
19283
|
};
|
|
19284
|
+
export type FetchUserprofileRewardQueryVariables = Exact<{
|
|
19285
|
+
where?: InputMaybe<UserprofileReward_Filter>;
|
|
19286
|
+
}>;
|
|
19287
|
+
export type FetchUserprofileRewardQuery = {
|
|
19288
|
+
userprofile_reward?: Array<{
|
|
19289
|
+
name_key?: string | null;
|
|
19290
|
+
token_address?: string | null;
|
|
19291
|
+
contract_address?: string | null;
|
|
19292
|
+
token_symbol?: string | null;
|
|
19293
|
+
locking?: string | null;
|
|
19294
|
+
version?: string | null;
|
|
19295
|
+
merkle?: {
|
|
19296
|
+
index?: string | null;
|
|
19297
|
+
amout?: string | null;
|
|
19298
|
+
proof?: Array<string | null> | null;
|
|
19299
|
+
} | null;
|
|
19300
|
+
}> | null;
|
|
19301
|
+
};
|
|
19054
19302
|
export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
|
|
19055
19303
|
private value;
|
|
19056
19304
|
__meta__?: Record<string, any> | undefined;
|
|
@@ -19060,7 +19308,7 @@ export declare class TypedDocumentString<TResult, TVariables> extends String imp
|
|
|
19060
19308
|
}
|
|
19061
19309
|
export declare const FetchErc20SwapCrossChainListDocument: TypedDocumentString<FetchErc20SwapCrossChainListQuery, FetchErc20SwapCrossChainListQueryVariables>;
|
|
19062
19310
|
export declare const FetchErc20ForecastSlippageDocument: TypedDocumentString<FetchErc20ForecastSlippageQuery, FetchErc20ForecastSlippageQueryVariables>;
|
|
19063
|
-
export declare const
|
|
19311
|
+
export declare const Amm_GetTicksDataDocument: TypedDocumentString<Amm_GetTicksDataQuery, Amm_GetTicksDataQueryVariables>;
|
|
19064
19312
|
export declare const FetchMiningListDocument: TypedDocumentString<FetchMiningListQuery, FetchMiningListQueryVariables>;
|
|
19065
19313
|
export declare const MiningListDocument: TypedDocumentString<MiningListQuery, MiningListQueryVariables>;
|
|
19066
19314
|
export declare const MyCreatedMiningListDocument: TypedDocumentString<MyCreatedMiningListQuery, MyCreatedMiningListQueryVariables>;
|
|
@@ -19077,3 +19325,4 @@ export declare const FetchPoolPairListDocument: TypedDocumentString<FetchPoolPai
|
|
|
19077
19325
|
export declare const FetchUserSwapOrderHistoriesDocument: TypedDocumentString<FetchUserSwapOrderHistoriesQuery, FetchUserSwapOrderHistoriesQueryVariables>;
|
|
19078
19326
|
export declare const FetchNoticeCenterTransactionListDocument: TypedDocumentString<FetchNoticeCenterTransactionListQuery, FetchNoticeCenterTransactionListQueryVariables>;
|
|
19079
19327
|
export declare const FetchLiquidityLpPartnerRewardsDocument: TypedDocumentString<FetchLiquidityLpPartnerRewardsQuery, FetchLiquidityLpPartnerRewardsQueryVariables>;
|
|
19328
|
+
export declare const FetchUserprofileRewardDocument: TypedDocumentString<FetchUserprofileRewardQuery, FetchUserprofileRewardQueryVariables>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { ChainId, basicTokenMap, contractConfig, etherTokenAddress, platformIdMap, } from './chainConfig';
|
|
3
|
-
export { ABIName, CONTRACT_QUERY_KEY, default as ContractRequests, } from './helper/ContractRequests';
|
|
4
|
-
export type { ContractRequestsConfig, Query } from './helper/ContractRequests';
|
|
1
|
+
export { basicTokenMap, ChainId, chainIdShortNameEnum, chainIdToShortName, contractConfig, platformIdMap, SOL_MINT_ADDRESS, WSOL_MINT_ADDRESS, } from './chainConfig';
|
|
5
2
|
export { default as GraphQLRequests } from './helper/GraphQLRequests';
|
|
6
3
|
export { default as RestApiRequests } from './helper/RestApiRequests';
|
|
7
4
|
export { AMMV3Api } from './services/ammv3';
|
|
8
5
|
export type { TickData, Ticks } from './services/ammv3';
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
6
|
+
export { CLMM, CPMM, PoolApi } from './services/pool';
|
|
7
|
+
export type { PoolType } from './services/pool';
|
|
11
8
|
export { SwapWidgetApi } from './services/SwapWidgetApi';
|
|
12
|
-
export { MiningApi, MiningStatusE } from './services/mining';
|
|
13
|
-
export type { MiningMiningInfo } from './services/mining';
|
|
14
9
|
export { TokenApi } from './services/TokenApi';
|
|
15
|
-
export { SwapApi } from './services/swap/SwapApi';
|
|
16
10
|
export { SystemApi } from './services/system/SystemApi';
|
|
17
11
|
export type ExcludeNone<T> = NonNullable<T>;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import ContractRequests, { ContractRequestsConfig } from '../../helper/ContractRequests';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
1
|
import { ChainId } from '../../chainConfig';
|
|
4
2
|
import RestApiRequest from '../../helper/RestApiRequests';
|
|
5
3
|
export interface TokenApiProps {
|
|
6
|
-
contractRequests?: ContractRequests;
|
|
7
|
-
contractRequestsConfig?: ContractRequestsConfig;
|
|
8
4
|
restApiRequest?: RestApiRequest;
|
|
9
5
|
}
|
|
10
6
|
export declare class TokenApi {
|
|
11
|
-
contractRequests: ContractRequests;
|
|
12
7
|
restApiRequest: RestApiRequest;
|
|
13
8
|
constructor(config: TokenApiProps);
|
|
14
9
|
static graphql: {
|
|
@@ -19,18 +14,8 @@ export declare class TokenApi {
|
|
|
19
14
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Erc20_Extenderc20ExtendV2Filter>;
|
|
20
15
|
}>>;
|
|
21
16
|
};
|
|
22
|
-
static utils: {
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
static encode: {
|
|
26
|
-
approveABI(contractAddress: string, allowance: BigNumber): Promise<string>;
|
|
27
|
-
transferEncodeABI(receiverAddress: string, amount: string): Promise<string>;
|
|
28
|
-
};
|
|
29
|
-
getTokenDecimals(chainId: number | undefined, address: string | undefined): {
|
|
30
|
-
queryKey: (string | number | undefined)[];
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
queryFn: () => Promise<number | null>;
|
|
33
|
-
};
|
|
17
|
+
static utils: {};
|
|
18
|
+
static encode: {};
|
|
34
19
|
getFiatPriceBatch(tokens: Array<{
|
|
35
20
|
chainId: ChainId;
|
|
36
21
|
address: string;
|
|
@@ -43,29 +28,4 @@ export declare class TokenApi {
|
|
|
43
28
|
data: any;
|
|
44
29
|
};
|
|
45
30
|
}>;
|
|
46
|
-
getFetchTokenQuery(chainId: number | undefined, address: string | undefined, account: string | undefined, spender?: string): {
|
|
47
|
-
queryKey: (string | number | undefined)[];
|
|
48
|
-
enabled: boolean;
|
|
49
|
-
queryFn: () => Promise<{
|
|
50
|
-
symbol: string;
|
|
51
|
-
address: string;
|
|
52
|
-
name: string;
|
|
53
|
-
decimals: number;
|
|
54
|
-
balance: BigNumber;
|
|
55
|
-
allowance: BigNumber;
|
|
56
|
-
account: string;
|
|
57
|
-
spender: string | undefined;
|
|
58
|
-
chainId: number;
|
|
59
|
-
} | {
|
|
60
|
-
address: string;
|
|
61
|
-
decimals: number;
|
|
62
|
-
symbol: string;
|
|
63
|
-
name: string;
|
|
64
|
-
balance: BigNumber;
|
|
65
|
-
spender: string | undefined;
|
|
66
|
-
allowance: BigNumber;
|
|
67
|
-
chainId: number;
|
|
68
|
-
account?: undefined;
|
|
69
|
-
} | null>;
|
|
70
|
-
};
|
|
71
31
|
}
|