@dhedge/v2-sdk 1.10.11 → 1.10.13

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, 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 | 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>;
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, 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 | 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>;
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>;
@@ -100,6 +100,24 @@ export declare const CONTRACT_ADDRESS: {
100
100
  COMPOUNDV3_WETH: string;
101
101
  TOROS: string;
102
102
  };
103
+ sonic: {
104
+ USDC: string;
105
+ USDT: string;
106
+ SUSD: string;
107
+ WETH: string;
108
+ WBTC: string;
109
+ SWETH: string;
110
+ uniswapV3: {
111
+ nonfungiblePositionManager: string;
112
+ };
113
+ ARRAKIS_USDC_WETH_GAUGE: string;
114
+ ARRAKIS_USDC_WETH_LP: string;
115
+ WMATIC: string;
116
+ VELODROME_CL_USDC_WETH_GAUGE: string;
117
+ VELO: string;
118
+ COMPOUNDV3_WETH: string;
119
+ TOROS: string;
120
+ };
103
121
  };
104
122
  export declare const MAX_AMOUNT: ethers.BigNumber;
105
123
  export declare const USDC_BALANCEOF_SLOT: {
@@ -107,10 +125,12 @@ export declare const USDC_BALANCEOF_SLOT: {
107
125
  arbitrum: number;
108
126
  polygon: number;
109
127
  base: number;
128
+ sonic: number;
110
129
  };
111
130
  export declare const WETH_BALANCEOF_SLOT: {
112
131
  optimism: number;
113
132
  arbitrum: number;
114
133
  polygon: number;
115
134
  base: number;
135
+ sonic: number;
116
136
  };
@@ -5,6 +5,7 @@ export declare const networkPortMap: {
5
5
  optimism: number;
6
6
  arbitrum: number;
7
7
  base: number;
8
+ sonic: number;
8
9
  };
9
10
  export declare const getWalletData: (network: Network, onFork?: boolean) => {
10
11
  wallet: ethers.Wallet;
package/dist/types.d.ts CHANGED
@@ -4,7 +4,8 @@ export declare enum Network {
4
4
  POLYGON = "polygon",
5
5
  OPTIMISM = "optimism",
6
6
  ARBITRUM = "arbitrum",
7
- BASE = "base"
7
+ BASE = "base",
8
+ SONIC = "sonic"
8
9
  }
9
10
  export declare enum Dapp {
10
11
  SUSHISWAP = "sushiswap",
@@ -21,14 +22,14 @@ export declare enum Dapp {
21
22
  VELODROMEV2 = "velodromeV2",
22
23
  VELODROMECL = "velodromeCL",
23
24
  LYRA = "lyra",
24
- ZEROEX = "0x",
25
25
  RAMSES = "ramses",
26
26
  AERODROME = "aerodrome",
27
27
  AERODROMECL = "aerodromeCL",
28
28
  RAMSESCL = "ramsesCL",
29
29
  PANCAKECL = "pancakeCL",
30
30
  COMPOUNDV3 = "compoundV3",
31
- ODOS = "odos"
31
+ ODOS = "odos",
32
+ SHADOWCL = "shadowCL"
32
33
  }
33
34
  export declare enum Transaction {
34
35
  SWAP = "swapExactTokensForTokens",