@dodoex/api 3.0.0-beta.4 → 3.0.0-taiko.10
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/chainConfig/chain.d.ts +2 -1
- package/dist/chainConfig/contractConfig.d.ts +2 -0
- package/dist/chainConfig/index.d.ts +1 -0
- package/dist/chainConfig/platform.d.ts +4 -0
- package/dist/cjs/chainConfig/chain.d.ts +2 -1
- package/dist/cjs/chainConfig/contractConfig.d.ts +2 -0
- package/dist/cjs/chainConfig/index.d.ts +1 -0
- package/dist/cjs/chainConfig/platform.d.ts +4 -0
- package/dist/cjs/dodoDspProxy-Bp3cG2Me.cjs +1 -0
- package/dist/cjs/gql/fragment-masking.d.ts +1 -1
- package/dist/cjs/gql/gql.d.ts +28 -0
- package/dist/cjs/gql/graphql.d.ts +2227 -2749
- package/dist/cjs/helper/ContractRequests/batch.d.ts +3 -3
- package/dist/cjs/helper/ContractRequests/batchProvider.d.ts +2 -3
- package/dist/cjs/helper/ContractRequests/index.d.ts +1 -1
- package/dist/cjs/helper/GraphQLRequests.d.ts +8 -4
- package/dist/cjs/helper/RestApiRequests.d.ts +3 -3
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +5 -2
- package/dist/cjs/services/SwapWidgetApi.d.ts +209 -4
- package/dist/cjs/services/TokenApi/graphqlQuery.d.ts +8 -0
- package/dist/cjs/services/TokenApi/index.d.ts +30 -0
- package/dist/cjs/services/mining/MiningApi.d.ts +24 -8
- package/dist/cjs/services/mining/graphqlQuery.d.ts +7 -1
- package/dist/cjs/services/mining/index.d.ts +1 -0
- package/dist/cjs/services/pool/PoolApi.d.ts +52 -24
- package/dist/cjs/services/pool/graphqlQuery.d.ts +30 -23
- package/dist/cjs/services/pool/pmm/convertPmmParams.d.ts +1 -1
- package/dist/cjs/services/pool/pmm/pmmModel.d.ts +2 -2
- package/dist/cjs/services/pool/type.d.ts +1 -1
- package/dist/cjs/services/swap/SwapApi.d.ts +8 -0
- package/dist/cjs/services/swap/graphqlQuery.d.ts +5 -0
- package/dist/cjs/services/system/SystemApi.d.ts +8 -0
- package/dist/cjs/services/system/graphqlQuery.d.ts +5 -0
- package/dist/dodoDspProxy-CU7OAvJG.js +1 -0
- package/dist/gql/fragment-masking.d.ts +1 -1
- package/dist/gql/gql.d.ts +28 -0
- package/dist/gql/graphql.d.ts +2227 -2749
- package/dist/helper/ContractRequests/batch.d.ts +3 -3
- package/dist/helper/ContractRequests/batchProvider.d.ts +2 -3
- package/dist/helper/ContractRequests/index.d.ts +1 -1
- package/dist/helper/GraphQLRequests.d.ts +8 -4
- package/dist/helper/RestApiRequests.d.ts +3 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/services/SwapWidgetApi.d.ts +209 -4
- package/dist/services/TokenApi/graphqlQuery.d.ts +8 -0
- package/dist/services/TokenApi/index.d.ts +30 -0
- package/dist/services/mining/MiningApi.d.ts +24 -8
- package/dist/services/mining/graphqlQuery.d.ts +7 -1
- package/dist/services/mining/index.d.ts +1 -0
- package/dist/services/pool/PoolApi.d.ts +52 -24
- package/dist/services/pool/graphqlQuery.d.ts +30 -23
- package/dist/services/pool/pmm/convertPmmParams.d.ts +1 -1
- package/dist/services/pool/pmm/pmmModel.d.ts +2 -2
- package/dist/services/pool/type.d.ts +1 -1
- package/dist/services/swap/SwapApi.d.ts +8 -0
- package/dist/services/swap/graphqlQuery.d.ts +5 -0
- package/dist/services/system/SystemApi.d.ts +8 -0
- package/dist/services/system/graphqlQuery.d.ts +5 -0
- package/package.json +9 -5
- package/dist/cjs/dodoDspProxy-0LfWMy9x.cjs +0 -1
- package/dist/dodoDspProxy-DE4Hm1tw.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.default=[{inputs:[{internalType:"address",name:"dspFactory",type:"address"},{internalType:"address",name:"gspFactory",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:"_GSP_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:"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"},{inputs:[{internalType:"address",name:"admin",type:"address"},{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:"mtFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"uint256",name:"priceLimit",type:"uint256"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOGasSavingPair",outputs:[{internalType:"address",name:"newGasSavingPair",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",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"},{stateMutability:"payable",type:"receive"}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResultOf, DocumentTypeDecoration } from '@graphql-typed-document-node/core';
|
|
2
2
|
import { Incremental, TypedDocumentString } from './graphql';
|
|
3
|
-
export
|
|
3
|
+
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
|
|
4
4
|
' $fragmentName'?: infer TKey;
|
|
5
5
|
}] ? TKey extends string ? {
|
|
6
6
|
' $fragmentRefs'?: {
|
package/dist/cjs/gql/gql.d.ts
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
|
+
*/
|
|
4
|
+
export declare function graphql(source: '\n query FetchErc20SwapCrossChainList($where: Erc20listV2Filter) {\n erc20_swapCrossChainList(where: $where) {\n name\n address\n symbol\n decimals\n slippage\n chainId\n logoImg\n tokenlists {\n name\n status\n }\n domains {\n name\n }\n funcLabels {\n key\n }\n attributeLabels {\n key\n }\n }\n }\n '): typeof import('./graphql').FetchErc20SwapCrossChainListDocument;
|
|
5
|
+
/**
|
|
6
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
7
|
+
*/
|
|
8
|
+
export declare function graphql(source: '\n query FetchErc20ForecastSlippage($where: Erc20_extenderc20ExtendV2Filter) {\n erc20_extend_erc20ExtendV2(where: $where) {\n forecastSlippageList {\n forecastSlippage\n forecastValue\n confidenceRatio\n confidenceIntervalUpper\n confidenceIntervalLower\n }\n }\n }\n '): typeof import('./graphql').FetchErc20ForecastSlippageDocument;
|
|
1
9
|
/**
|
|
2
10
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
11
|
*/
|
|
4
12
|
export declare function graphql(source: '\n query FetchMiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n baseApy\n baseLpToken {\n decimals\n address: id\n symbol\n }\n baseToken {\n decimals\n address: id\n price\n symbol\n logoImg\n }\n endBlock\n miningContractAddress\n miningTotalDollar\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n address: id\n symbol\n }\n quoteToken {\n decimals\n address: id\n price\n symbol\n logoImg\n }\n rewardTokenInfos {\n apy\n decimals\n address: id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n address: id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n startBlock\n title\n platform\n startTime\n endTime\n }\n totalCount\n chains\n }\n }\n '): typeof import('./graphql').FetchMiningListDocument;
|
|
13
|
+
/**
|
|
14
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
15
|
+
*/
|
|
16
|
+
export declare function graphql(source: '\n query MiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n isGSP\n isNewERCMineV3\n baseApy\n baseLpToken {\n decimals\n id\n symbol\n }\n baseToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n endBlock\n miningContractAddress\n miningTotalDollar\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n id\n symbol\n }\n quoteToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n rewardTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n startBlock\n title\n platform\n blockNumber\n startTime\n endTime\n }\n totalCount\n chains\n }\n }\n '): typeof import('./graphql').MiningListDocument;
|
|
17
|
+
/**
|
|
18
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
19
|
+
*/
|
|
20
|
+
export declare function graphql(source: '\n query MyCreatedMiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n isGSP\n isNewERCMineV3\n baseApy\n baseLpToken {\n decimals\n id\n symbol\n }\n baseToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n endBlock\n miningContractAddress\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n id\n symbol\n }\n quoteToken {\n decimals\n id\n price\n symbol\n logoImg\n }\n rewardTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n endBlock\n startTime\n endTime\n symbol\n }\n startBlock\n title\n platform\n blockNumber\n participantsNum\n startTime\n endTime\n }\n totalCount\n chains\n }\n }\n '): typeof import('./graphql').MyCreatedMiningListDocument;
|
|
5
21
|
/**
|
|
6
22
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
7
23
|
*/
|
|
@@ -38,3 +54,15 @@ export declare function graphql(source: '\n query FetchPoolSwapList(\n $
|
|
|
38
54
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
39
55
|
*/
|
|
40
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;
|
|
61
|
+
/**
|
|
62
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
63
|
+
*/
|
|
64
|
+
export declare function graphql(source: '\n query FetchUserSwapOrderHistories($where: User_swapswapFilter) {\n user_swap_orderHistories(where: $where) {\n count\n page\n list {\n chainId\n createdAt\n fromAmount\n fromTokenDecimals\n fromTokenPrice\n fromTokenSymbol\n fromTokenAddress\n fromTokenLogoImg\n hash\n status\n toAmount\n toTokenDecimals\n toTokenPrice\n toTokenSymbol\n toTokenAddress\n toTokenLogoImg\n minAmount\n nonce\n extra\n user\n }\n }\n }\n '): typeof import('./graphql').FetchUserSwapOrderHistoriesDocument;
|
|
65
|
+
/**
|
|
66
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
67
|
+
*/
|
|
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;
|