@dodoex/api 3.0.0-beta.2 → 3.0.0-beta.3

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.
@@ -2,7 +2,7 @@ export { ChainId, etherTokenAddress, basicTokenMap, contractConfig, } from './ch
2
2
  export { default as RestApiRequests } from './helper/RestApiRequests';
3
3
  export { default as GraphQLRequests } from './helper/GraphQLRequests';
4
4
  export { default as ContractRequests, ABIName, CONTRACT_QUERY_KEY, } from './helper/ContractRequests';
5
- export type { Query } from './helper/ContractRequests';
5
+ export type { Query, ContractRequestsConfig } from './helper/ContractRequests';
6
6
  export { SwapWidgetApi } from './services/SwapWidgetApi';
7
7
  export { PoolApi, PMMModel, PMMHelper, PMMState, getPmmModel, solveQuadraticFunctionForTarget, } from './services/pool';
8
8
  export type { PmmModelParams } from './services/pool';
@@ -5,6 +5,7 @@ import { ChainId } from '../../chainConfig';
5
5
  import { ABIName } from './abi/abiName';
6
6
  import type { Query } from './type';
7
7
  import { Interface } from '@ethersproject/abi';
8
+ import { BatchProvider } from './batchProvider';
8
9
  import BigNumber from 'bignumber.js';
9
10
  export declare const CONTRACT_QUERY_KEY = "contract-query";
10
11
  export type { Query } from './type';
@@ -32,7 +33,7 @@ export default class ContractRequests {
32
33
  setRpc(rpc: ContractRequestsConfig['rpc']): void;
33
34
  setGetConfigProvider(getProvider: ContractRequestsConfig['getProvider']): void;
34
35
  getProvider(chainId: number): JsonRpcProvider;
35
- getBatchProvider(chainId: number): JsonRpcProvider;
36
+ getBatchProvider(chainId: number): BatchProvider;
36
37
  /**
37
38
  * Create ContractRequests of the same configuration.
38
39
  * Updating the configuration of the current ContractRequests will also update the created ContractRequests.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { ChainId, etherTokenAddress, basicTokenMap, contractConfig, } from './ch
2
2
  export { default as RestApiRequests } from './helper/RestApiRequests';
3
3
  export { default as GraphQLRequests } from './helper/GraphQLRequests';
4
4
  export { default as ContractRequests, ABIName, CONTRACT_QUERY_KEY, } from './helper/ContractRequests';
5
- export type { Query } from './helper/ContractRequests';
5
+ export type { Query, ContractRequestsConfig } from './helper/ContractRequests';
6
6
  export { SwapWidgetApi } from './services/SwapWidgetApi';
7
7
  export { PoolApi, PMMModel, PMMHelper, PMMState, getPmmModel, solveQuadraticFunctionForTarget, } from './services/pool';
8
8
  export type { PmmModelParams } from './services/pool';