@dhedge/v2-sdk 1.9.2 → 1.9.4

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
@@ -375,4 +398,31 @@ export declare class Pool {
375
398
  * @returns {Promise<any>} Transaction
376
399
  */
377
400
  cancelFuturesOrder(market: string, options?: any): Promise<any>;
401
+ /**
402
+ * mintManagerFee
403
+ * @param {any} options Transaction options
404
+ * @returns {Promise<any>} Transaction
405
+ */
406
+ mintManagerFee(options?: any): Promise<any>;
407
+ /**
408
+ * getAvailableManagerFee
409
+ * @returns {Promise<BigNumber>} fee
410
+ */
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>;
378
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;
@@ -21,6 +21,7 @@ export declare const TEST_POOL: {
21
21
  export declare const CONTRACT_ADDRESS: {
22
22
  polygon: {
23
23
  USDC: string;
24
+ SWETH: string;
24
25
  WETH: string;
25
26
  WBTC: string;
26
27
  ARRAKIS_USDC_WETH_GAUGE: string;
@@ -29,11 +30,14 @@ export declare const CONTRACT_ADDRESS: {
29
30
  optimism: {
30
31
  USDC: string;
31
32
  SUSD: string;
33
+ SWETH: string;
32
34
  WETH: string;
35
+ WBTC: string;
33
36
  KWENTA_ETH_PERP_V2: string;
34
37
  };
35
38
  arbitrum: {
36
39
  USDC: string;
40
+ SWETH: string;
37
41
  WETH: string;
38
42
  WBTC: string;
39
43
  WSTETH: string;
@@ -1,8 +1,10 @@
1
+ /// <reference types="jest" />
1
2
  import { ethers } from "ethers";
2
3
  import { Network } from "../../types";
3
4
  export declare type TestingRunParams = {
4
5
  network: Network;
5
6
  wallet: ethers.Wallet;
7
+ provider: ethers.providers.JsonRpcProvider;
6
8
  };
7
9
  declare type TestHelperParams = {
8
10
  testingRun: (testingRunParams: TestingRunParams) => void;
@@ -10,4 +12,9 @@ declare type TestHelperParams = {
10
12
  network: Network;
11
13
  };
12
14
  export declare const testingHelper: ({ network, testingRun }: TestHelperParams) => void;
15
+ export declare const beforeAfterReset: ({ beforeAll, afterAll, provider }: {
16
+ beforeAll: any;
17
+ afterAll: any;
18
+ provider: ethers.providers.JsonRpcProvider;
19
+ }) => void;
13
20
  export {};
@@ -6,4 +6,7 @@ export declare const networkPortMap: {
6
6
  optimism: number;
7
7
  arbitrum: number;
8
8
  };
9
- export declare const getWallet: (network: Network) => ethers.Wallet;
9
+ export declare const getWalletData: (network: Network) => {
10
+ wallet: ethers.Wallet;
11
+ provider: ethers.providers.JsonRpcProvider;
12
+ };
package/dist/types.d.ts CHANGED
@@ -19,7 +19,8 @@ export declare enum Dapp {
19
19
  VELODROME = "velodrome",
20
20
  VELODROMEV2 = "velodromeV2",
21
21
  LYRA = "lyra",
22
- ZEROEX = "0x"
22
+ ZEROEX = "0x",
23
+ RAMSES = "ramses"
23
24
  }
24
25
  export declare enum Transaction {
25
26
  SWAP = "swapExactTokensForTokens",