@dhedge/v2-sdk 2.0.0 → 2.0.1

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/types.d.ts CHANGED
@@ -90,3 +90,8 @@ export declare type LyraPosition = {
90
90
  collateral: BigNumber;
91
91
  state: number;
92
92
  };
93
+ export declare type SDKOptions = {
94
+ estimateGas: boolean;
95
+ onlyGetTxData?: boolean;
96
+ useTraderAddressAsFrom?: boolean;
97
+ } | boolean;
@@ -1,4 +1,4 @@
1
- import { ethers, Network, Pool } from "..";
1
+ import { ethers, Network, Pool, SDKOptions } from "..";
2
2
  export declare function call(provider: ethers.Signer, abi: any[], call: any[], options?: any): Promise<any>;
3
3
  export declare function multicall<T>(network: Network, provider: ethers.Signer, abi: any[], calls: any[], options?: any, requireSuccess?: boolean): Promise<(T | null)[]>;
4
4
  export declare class Multicaller {
@@ -12,4 +12,5 @@ export declare class Multicaller {
12
12
  call(path: any, address: any, fn: any, params?: any): Multicaller;
13
13
  execute(from?: any): Promise<any>;
14
14
  }
15
- export declare const getPoolTxOrGasEstimate: (pool: Pool, args: any[], estimateGas: boolean) => Promise<any>;
15
+ export declare const isSdkOptionsBoolean: (sdkOptions: SDKOptions) => sdkOptions is boolean;
16
+ export declare const getPoolTxOrGasEstimate: (pool: Pool, args: any[], sdkOptions: SDKOptions) => Promise<any>;