@dhedge/v2-sdk 1.9.3 → 1.9.5

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.
@@ -332,6 +332,29 @@ export declare class Pool {
332
332
  * @returns {Promise<any>} Transaction
333
333
  */
334
334
  removeLiquidityVelodromeV2(assetA: string, assetB: string, amount: BigNumber | string, isStable: boolean, options?: any): Promise<any>;
335
+ /**
336
+ * Add liquidity to Velodrome V2 or Ramses pool
337
+ * @param {Dapp} dapp VelodromeV2 or Ramses
338
+ * @param {string} assetA First asset
339
+ * @param {string} assetB Second asset
340
+ * @param {BigNumber | string} amountA Amount first asset
341
+ * @param {BigNumber | string} amountB Amount second asset
342
+ * @param { boolean } isStable Is stable pool
343
+ * @param {any} options Transaction options
344
+ * @returns {Promise<any>} Transaction
345
+ */
346
+ addLiquidityV2(dapp: Dapp.VELODROMEV2 | Dapp.RAMSES, assetA: string, assetB: string, amountA: BigNumber | string, amountB: BigNumber | string, isStable: boolean, options?: any): Promise<any>;
347
+ /**
348
+ * Remove liquidity from Velodrome V2 or Ramses pool
349
+ * @param {Dapp} dapp VelodromeV2 or Ramses
350
+ * @param {string} assetA First asset
351
+ * @param {string} assetB Second asset
352
+ * @param {BigNumber | string} amount Amount of LP tokens
353
+ * @param { boolean } isStable Is stable pool
354
+ * @param {any} options Transaction options
355
+ * @returns {Promise<any>} Transaction
356
+ */
357
+ removeLiquidityV2(dapp: Dapp.VELODROMEV2 | Dapp.RAMSES, assetA: string, assetB: string, amount: BigNumber | string, isStable: boolean, options?: any): Promise<any>;
335
358
  /**
336
359
  * Trade options on lyra
337
360
  * @param {LyraOptionMarket} market Underlying market e.g. eth
@@ -386,4 +409,20 @@ export declare class Pool {
386
409
  * @returns {Promise<BigNumber>} fee
387
410
  */
388
411
  getAvailableManagerFee(): Promise<BigNumber>;
412
+ /** Vest tokens (e.g. Ramses xoRAM)
413
+ *
414
+ * @param {string} tokenAddress Address of the token to vest
415
+ * @param {BigNumber | string } changeAmount Negative for short, positive for long
416
+ * @param {any} options Transaction options
417
+ * @returns {Promise<any>} Transaction
418
+ */
419
+ vestTokens(tokenAddress: string, amount: BigNumber | string, options?: any): Promise<any>;
420
+ /** Exit position of vested tokens (e.g. Ramses xoRAM)
421
+ *
422
+ * @param {string} tokenAddress Address of the token to vest
423
+ * @param {number } id position Id of the vested tokens
424
+ * @param {any} options Transaction options
425
+ * @returns {Promise<any>} Transaction
426
+ */
427
+ exitVestedToken(tokenAddress: string, id: number, options?: any): Promise<any>;
389
428
  }
@@ -0,0 +1,3 @@
1
+ import { BigNumber } from "ethers";
2
+ export declare function getCreateVestTxData(amount: BigNumber | string): string;
3
+ export declare function getExitVestTxData(vestId: number): string;
@@ -17,10 +17,12 @@ export declare const TEST_POOL: {
17
17
  polygon: string;
18
18
  optimism: string;
19
19
  arbitrum: string;
20
+ base: string;
20
21
  };
21
22
  export declare const CONTRACT_ADDRESS: {
22
23
  polygon: {
23
24
  USDC: string;
25
+ SWETH: string;
24
26
  WETH: string;
25
27
  WBTC: string;
26
28
  ARRAKIS_USDC_WETH_GAUGE: string;
@@ -29,17 +31,31 @@ export declare const CONTRACT_ADDRESS: {
29
31
  optimism: {
30
32
  USDC: string;
31
33
  SUSD: string;
34
+ SWETH: string;
32
35
  WETH: string;
33
36
  WBTC: string;
34
37
  KWENTA_ETH_PERP_V2: string;
35
38
  };
36
39
  arbitrum: {
37
40
  USDC: string;
41
+ SWETH: string;
38
42
  WETH: string;
39
43
  WBTC: string;
40
44
  WSTETH: string;
41
45
  BALANCER_WSTETH_WETH_POOL: string;
42
46
  BALANCER_WSTETH_WETH_GAUGE: string;
43
47
  };
48
+ base: {
49
+ USDC: string;
50
+ WETH: string;
51
+ WBTC: string;
52
+ SWETH: string;
53
+ };
44
54
  };
45
55
  export declare const MAX_AMOUNT: ethers.BigNumber;
56
+ export declare const USDC_BALANCEOF_SLOT: {
57
+ optimism: number;
58
+ arbitrum: number;
59
+ polygon: number;
60
+ base: number;
61
+ };
@@ -17,4 +17,17 @@ export declare const beforeAfterReset: ({ beforeAll, afterAll, provider }: {
17
17
  afterAll: any;
18
18
  provider: ethers.providers.JsonRpcProvider;
19
19
  }) => void;
20
+ export declare const setTokenAmount: ({ amount, userAddress, tokenAddress, slot, provider }: {
21
+ amount: string;
22
+ userAddress: string;
23
+ tokenAddress: string;
24
+ slot: number;
25
+ provider: ethers.providers.JsonRpcProvider;
26
+ }) => Promise<void>;
27
+ export declare const setUSDCAmount: ({ provider, userAddress, amount, network }: {
28
+ amount: string;
29
+ userAddress: string;
30
+ provider: ethers.providers.JsonRpcProvider;
31
+ network: Network;
32
+ }) => Promise<void>;
20
33
  export {};
@@ -5,6 +5,7 @@ export declare const networkPortMap: {
5
5
  polygon: number;
6
6
  optimism: number;
7
7
  arbitrum: number;
8
+ base: number;
8
9
  };
9
10
  export declare const getWalletData: (network: Network) => {
10
11
  wallet: ethers.Wallet;
package/dist/types.d.ts CHANGED
@@ -3,7 +3,8 @@ import { BigNumber } from "ethers";
3
3
  export declare enum Network {
4
4
  POLYGON = "polygon",
5
5
  OPTIMISM = "optimism",
6
- ARBITRUM = "arbitrum"
6
+ ARBITRUM = "arbitrum",
7
+ BASE = "base"
7
8
  }
8
9
  export declare enum Dapp {
9
10
  SUSHISWAP = "sushiswap",
@@ -19,7 +20,8 @@ export declare enum Dapp {
19
20
  VELODROME = "velodrome",
20
21
  VELODROMEV2 = "velodromeV2",
21
22
  LYRA = "lyra",
22
- ZEROEX = "0x"
23
+ ZEROEX = "0x",
24
+ RAMSES = "ramses"
23
25
  }
24
26
  export declare enum Transaction {
25
27
  SWAP = "swapExactTokensForTokens",