@dodoex/api 3.0.0-beta.1 → 3.0.0-beta.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.
@@ -1,7 +1,7 @@
1
1
  export { ChainId, etherTokenAddress, basicTokenMap, contractConfig, } from './chainConfig';
2
2
  export { default as RestApiRequests } from './helper/RestApiRequests';
3
3
  export { default as GraphQLRequests } from './helper/GraphQLRequests';
4
- export { default as ContractRequests, ABIName, } from './helper/ContractRequests';
4
+ export { default as ContractRequests, ABIName, CONTRACT_QUERY_KEY, } from './helper/ContractRequests';
5
5
  export type { Query } from './helper/ContractRequests';
6
6
  export { SwapWidgetApi } from './services/SwapWidgetApi';
7
7
  export { PoolApi, PMMModel, PMMHelper, PMMState, getPmmModel, solveQuadraticFunctionForTarget, } from './services/pool';
@@ -33,17 +33,7 @@ export declare class PoolApi {
33
33
  }>>;
34
34
  fetchPoolDashboard: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolDashboardQuery, import("../../gql/graphql").Exact<{
35
35
  where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").Dashboardpair_Detail_Filter> | undefined;
36
- }>>; /**
37
- * @notice Create DPP pool
38
- * @param baseToken {"decimals","address"}
39
- * @param quoteToken {"decimals","address"}
40
- * @param baseInAmount The initial amount of liquidity base provided (considering decimals)
41
- * @param quoteInAmount The initial amount of liquidity quote provided (considering decimals)
42
- * @param lpFeeRate Example: 0.0001 is passed in 1
43
- * @param i Decimals are not considered
44
- * @param k Scope: 0 => 1
45
- * @param deadline Deadline timestamp in seconds
46
- */
36
+ }>>;
47
37
  fetchPoolSwapList: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchPoolSwapListQuery, import("../../gql/graphql").Exact<{
48
38
  first?: import("../../gql/graphql").InputMaybe<number> | undefined;
49
39
  skip?: import("../../gql/graphql").InputMaybe<number> | undefined;
@@ -6,6 +6,7 @@ import { ABIName } from './abi/abiName';
6
6
  import type { Query } from './type';
7
7
  import { Interface } from '@ethersproject/abi';
8
8
  import BigNumber from 'bignumber.js';
9
+ export declare const CONTRACT_QUERY_KEY = "contract-query";
9
10
  export type { Query } from './type';
10
11
  export { ABIName } from './abi/abiName';
11
12
  declare type ContractInterface = Exclude<ContractInterfaceSource, Interface>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ChainId, etherTokenAddress, basicTokenMap, contractConfig, } from './chainConfig';
2
2
  export { default as RestApiRequests } from './helper/RestApiRequests';
3
3
  export { default as GraphQLRequests } from './helper/GraphQLRequests';
4
- export { default as ContractRequests, ABIName, } from './helper/ContractRequests';
4
+ export { default as ContractRequests, ABIName, CONTRACT_QUERY_KEY, } from './helper/ContractRequests';
5
5
  export type { Query } from './helper/ContractRequests';
6
6
  export { SwapWidgetApi } from './services/SwapWidgetApi';
7
7
  export { PoolApi, PMMModel, PMMHelper, PMMState, getPmmModel, solveQuadraticFunctionForTarget, } from './services/pool';