@dhedge/v2-sdk 1.10.16 → 1.11.0

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.
@@ -315,7 +315,7 @@ export declare class Pool {
315
315
  * @param {boolean} estimateGas Simulate/estimate gas
316
316
  * @returns {Promise<any>} Transaction
317
317
  */
318
- addLiquidityUniswapV3(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL | Dapp.SHADOWCL, assetA: string, assetB: string, amountA: BigNumber | string, amountB: BigNumber | string, minPrice: number | null, maxPrice: number | null, minTick: number | null, maxTick: number | null, feeAmountOrTickSpacing: number, options?: any, estimateGas?: boolean): Promise<any>;
318
+ addLiquidityUniswapV3(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL, assetA: string, assetB: string, amountA: BigNumber | string, amountB: BigNumber | string, minPrice: number | null, maxPrice: number | null, minTick: number | null, maxTick: number | null, feeAmountOrTickSpacing: number, options?: any, estimateGas?: boolean): Promise<any>;
319
319
  /**
320
320
  * Remove liquidity from an UniswapV3 or Arrakis liquidity pool
321
321
  * @param {Dapp} dapp Platform either UniswapV3 or Arrakis
@@ -4,7 +4,7 @@ import { Dapp, Pool } from "../..";
4
4
  import BigNumber from "bignumber.js";
5
5
  export declare function tryParsePrice(baseToken: Token, quoteToken: Token, value: string): Price<Token, Token>;
6
6
  export declare function tryParseTick(baseToken: Token, quoteToken: Token, feeAmount: number, value: string): number;
7
- export declare function getUniswapV3MintTxData(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL | Dapp.SHADOWCL, pool: Pool, assetA: string, assetB: string, amountA: string | ethers.BigNumber, amountB: string | ethers.BigNumber, minPrice: number | null, maxPrice: number | null, minTick: number | null, maxTick: number | null, feeAmountOrTickSpacing: number): Promise<any>;
7
+ export declare function getUniswapV3MintTxData(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL, pool: Pool, assetA: string, assetB: string, amountA: string | ethers.BigNumber, amountB: string | ethers.BigNumber, minPrice: number | null, maxPrice: number | null, minTick: number | null, maxTick: number | null, feeAmountOrTickSpacing: number): Promise<any>;
8
8
  export declare function getUniswapV3Liquidity(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp, tokenId: string, pool: Pool): Promise<BigNumber>;
9
9
  export declare function getIncreaseLiquidityTxData(pool: Pool, dapp: Dapp, tokenId: string, amountA: ethers.BigNumber | string, amountB: ethers.BigNumber | string): Promise<any>;
10
10
  export declare function getDecreaseLiquidityTxData(pool: Pool, dapp: Dapp, tokenId: string, amount: number | undefined, isStaked: boolean): Promise<any>;
@@ -18,7 +18,7 @@ export declare const TEST_POOL: {
18
18
  optimism: string;
19
19
  arbitrum: string;
20
20
  base: string;
21
- sonic: string;
21
+ ethereum: string;
22
22
  };
23
23
  export declare const CONTRACT_ADDRESS: {
24
24
  polygon: {
@@ -101,7 +101,7 @@ export declare const CONTRACT_ADDRESS: {
101
101
  COMPOUNDV3_WETH: string;
102
102
  TOROS: string;
103
103
  };
104
- sonic: {
104
+ ethereum: {
105
105
  USDC: string;
106
106
  USDT: string;
107
107
  SUSD: string;
@@ -127,12 +127,12 @@ export declare const USDC_BALANCEOF_SLOT: {
127
127
  arbitrum: number;
128
128
  polygon: number;
129
129
  base: number;
130
- sonic: number;
130
+ ethereum: number;
131
131
  };
132
132
  export declare const WETH_BALANCEOF_SLOT: {
133
133
  optimism: number;
134
134
  arbitrum: number;
135
135
  polygon: number;
136
136
  base: number;
137
- sonic: number;
137
+ ethereum: number;
138
138
  };
@@ -5,7 +5,7 @@ export declare const networkPortMap: {
5
5
  optimism: number;
6
6
  arbitrum: number;
7
7
  base: number;
8
- sonic: number;
8
+ ethereum: number;
9
9
  };
10
10
  export declare const getWalletData: (network: Network, onFork?: boolean) => {
11
11
  wallet: ethers.Wallet;
package/dist/types.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare enum Network {
5
5
  OPTIMISM = "optimism",
6
6
  ARBITRUM = "arbitrum",
7
7
  BASE = "base",
8
- SONIC = "sonic"
8
+ ETHEREUM = "ethereum"
9
9
  }
10
10
  export declare enum Dapp {
11
11
  SUSHISWAP = "sushiswap",
@@ -29,7 +29,6 @@ export declare enum Dapp {
29
29
  PANCAKECL = "pancakeCL",
30
30
  COMPOUNDV3 = "compoundV3",
31
31
  ODOS = "odos",
32
- SHADOWCL = "shadowCL",
33
32
  PENDLE = "pendle"
34
33
  }
35
34
  export declare enum Transaction {