@dhedge/v2-sdk 1.10.12 → 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.
- package/dist/entities/pool.d.ts +1 -1
- package/dist/services/uniswap/V3Liquidity.d.ts +1 -1
- package/dist/test/constants.d.ts +20 -0
- package/dist/test/wallet.d.ts +1 -0
- package/dist/types.d.ts +4 -2
- package/dist/v2-sdk.cjs.development.js +1247 -20
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +1247 -20
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/IShadowNonfungiblePositionManager.json +697 -0
- package/src/config.ts +22 -6
- package/src/entities/pool.ts +5 -1
- package/src/services/uniswap/V3Liquidity.ts +16 -4
- package/src/test/constants.ts +23 -2
- package/src/test/wallet.ts +2 -1
- package/src/types.ts +4 -2
package/dist/entities/pool.d.ts
CHANGED
|
@@ -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>;
|
package/dist/test/constants.d.ts
CHANGED
|
@@ -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
|
};
|
package/dist/test/wallet.d.ts
CHANGED
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",
|
|
@@ -27,7 +28,8 @@ export declare enum Dapp {
|
|
|
27
28
|
RAMSESCL = "ramsesCL",
|
|
28
29
|
PANCAKECL = "pancakeCL",
|
|
29
30
|
COMPOUNDV3 = "compoundV3",
|
|
30
|
-
ODOS = "odos"
|
|
31
|
+
ODOS = "odos",
|
|
32
|
+
SHADOWCL = "shadowCL"
|
|
31
33
|
}
|
|
32
34
|
export declare enum Transaction {
|
|
33
35
|
SWAP = "swapExactTokensForTokens",
|