@defisaver/positions-sdk 0.0.16 → 0.0.17

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.
Files changed (83) hide show
  1. package/cjs/compoundV3/index.d.ts +1 -1
  2. package/cjs/compoundV3/index.js +3 -2
  3. package/cjs/config/contracts.d.ts +72 -184
  4. package/cjs/config/contracts.js +0 -16
  5. package/cjs/helpers/compoundHelpers/index.js +2 -2
  6. package/cjs/markets/curveUsd/index.d.ts +0 -2
  7. package/cjs/markets/curveUsd/index.js +1 -14
  8. package/cjs/types/compound.d.ts +1 -0
  9. package/cjs/types/contracts/generated/index.d.ts +0 -2
  10. package/cjs/types/curveUsd.d.ts +1 -2
  11. package/cjs/types/curveUsd.js +0 -1
  12. package/esm/compoundV3/index.d.ts +1 -1
  13. package/esm/compoundV3/index.js +3 -2
  14. package/esm/config/contracts.d.ts +72 -184
  15. package/esm/config/contracts.js +0 -16
  16. package/esm/helpers/compoundHelpers/index.js +2 -2
  17. package/esm/markets/curveUsd/index.d.ts +0 -2
  18. package/esm/markets/curveUsd/index.js +0 -12
  19. package/esm/types/compound.d.ts +1 -0
  20. package/esm/types/contracts/generated/index.d.ts +0 -2
  21. package/esm/types/curveUsd.d.ts +1 -2
  22. package/esm/types/curveUsd.js +0 -1
  23. package/package.json +40 -40
  24. package/src/aaveV2/index.ts +220 -220
  25. package/src/aaveV3/index.ts +556 -556
  26. package/src/assets/index.ts +60 -60
  27. package/src/chickenBonds/index.ts +123 -123
  28. package/src/compoundV2/index.ts +206 -206
  29. package/src/compoundV3/index.ts +273 -269
  30. package/src/config/contracts.js +651 -651
  31. package/src/constants/index.ts +3 -3
  32. package/src/contracts.ts +100 -100
  33. package/src/curveUsd/index.ts +228 -228
  34. package/src/exchange/index.ts +17 -17
  35. package/src/helpers/aaveHelpers/index.ts +134 -134
  36. package/src/helpers/chickenBondsHelpers/index.ts +23 -23
  37. package/src/helpers/compoundHelpers/index.ts +181 -181
  38. package/src/helpers/curveUsdHelpers/index.ts +32 -32
  39. package/src/helpers/index.ts +5 -5
  40. package/src/helpers/makerHelpers/index.ts +94 -94
  41. package/src/helpers/sparkHelpers/index.ts +106 -106
  42. package/src/index.ts +40 -40
  43. package/src/liquity/index.ts +103 -103
  44. package/src/maker/index.ts +101 -101
  45. package/src/markets/aave/index.ts +80 -80
  46. package/src/markets/aave/marketAssets.ts +32 -32
  47. package/src/markets/compound/index.ts +85 -85
  48. package/src/markets/compound/marketsAssets.ts +35 -35
  49. package/src/markets/curveUsd/index.ts +69 -69
  50. package/src/markets/index.ts +3 -3
  51. package/src/markets/spark/index.ts +29 -29
  52. package/src/markets/spark/marketAssets.ts +9 -9
  53. package/src/moneymarket/moneymarketCommonService.ts +75 -75
  54. package/src/morpho/markets.ts +39 -39
  55. package/src/morphoAaveV2/index.ts +254 -254
  56. package/src/morphoAaveV3/index.ts +617 -617
  57. package/src/multicall/index.ts +22 -22
  58. package/src/services/dsrService.ts +15 -15
  59. package/src/services/priceService.ts +21 -21
  60. package/src/services/utils.ts +34 -34
  61. package/src/spark/index.ts +413 -413
  62. package/src/staking/staking.ts +167 -167
  63. package/src/types/aave.ts +256 -256
  64. package/src/types/chickenBonds.ts +45 -45
  65. package/src/types/common.ts +83 -83
  66. package/src/types/compound.ts +122 -121
  67. package/src/types/contracts/generated/index.ts +0 -2
  68. package/src/types/curveUsd.ts +112 -112
  69. package/src/types/index.ts +6 -6
  70. package/src/types/liquity.ts +29 -29
  71. package/src/types/maker.ts +50 -50
  72. package/src/types/spark.ts +106 -106
  73. package/cjs/types/contracts/generated/CrvUSDsfrxETHAmm.d.ts +0 -139
  74. package/cjs/types/contracts/generated/CrvUSDsfrxETHAmm.js +0 -5
  75. package/cjs/types/contracts/generated/CrvUSDsfrxETHController.d.ts +0 -205
  76. package/cjs/types/contracts/generated/CrvUSDsfrxETHController.js +0 -5
  77. package/esm/types/contracts/generated/CrvUSDsfrxETHAmm.d.ts +0 -139
  78. package/esm/types/contracts/generated/CrvUSDsfrxETHAmm.js +0 -4
  79. package/esm/types/contracts/generated/CrvUSDsfrxETHController.d.ts +0 -205
  80. package/esm/types/contracts/generated/CrvUSDsfrxETHController.js +0 -4
  81. package/src/types/contracts/generated/CrvUSDsfrxETHAmm.ts +0 -286
  82. package/src/types/contracts/generated/CrvUSDsfrxETHController.ts +0 -403
  83. package/yarn-error.log +0 -64
@@ -1,30 +1,30 @@
1
- export enum LIQUITY_TROVE_STATUS_ENUM {
2
- nonExistent,
3
- active,
4
- closedByOwner,
5
- closedByLiquidation,
6
- closedByRedemption,
7
- }
8
-
9
- export const LIQUITY_STATUS_MAPPING = {
10
- nonExistent: 'Non existent',
11
- active: 'Active',
12
- closedByOwner: 'Closed',
13
- closedByLiquidation: 'Liquidated',
14
- closedByRedemption: 'Redeemed',
15
- };
16
-
17
- export interface LiquityTroveInfo {
18
- troveStatus: string,
19
- collateral: string,
20
- debtInAsset: string,
21
- TCRatio: string,
22
- recoveryMode: boolean,
23
- claimableCollateral: string,
24
- borrowingRateWithDecay: string,
25
- assetPrice: string,
26
- totalETH: string,
27
- totalLUSD: string,
28
- minCollateralRatio: number,
29
- priceForRecovery: string,
1
+ export enum LIQUITY_TROVE_STATUS_ENUM {
2
+ nonExistent,
3
+ active,
4
+ closedByOwner,
5
+ closedByLiquidation,
6
+ closedByRedemption,
7
+ }
8
+
9
+ export const LIQUITY_STATUS_MAPPING = {
10
+ nonExistent: 'Non existent',
11
+ active: 'Active',
12
+ closedByOwner: 'Closed',
13
+ closedByLiquidation: 'Liquidated',
14
+ closedByRedemption: 'Redeemed',
15
+ };
16
+
17
+ export interface LiquityTroveInfo {
18
+ troveStatus: string,
19
+ collateral: string,
20
+ debtInAsset: string,
21
+ TCRatio: string,
22
+ recoveryMode: boolean,
23
+ claimableCollateral: string,
24
+ borrowingRateWithDecay: string,
25
+ assetPrice: string,
26
+ totalETH: string,
27
+ totalLUSD: string,
28
+ minCollateralRatio: number,
29
+ priceForRecovery: string,
30
30
  }
@@ -1,51 +1,51 @@
1
- import { EthAddress } from './common';
2
-
3
- export interface IlkInfo {
4
- ilkLabel: string;
5
- currentRate: string;
6
- futureRate: string;
7
- minDebt: string;
8
- globalDebtCeiling: string;
9
- globalDebtCurrent: string;
10
- assetPrice: string;
11
- liqRatio: string;
12
- liqPercent: number;
13
- stabilityFee: number;
14
- liquidationFee: string;
15
- creatableDebt: string;
16
- }
17
-
18
- export interface CdpData {
19
- owner: EthAddress,
20
- userAddress: EthAddress,
21
- id: string,
22
- urn: EthAddress,
23
- type: string,
24
- ilk: string,
25
- ilkLabel: string,
26
- asset: string,
27
- collateral: string,
28
- collateralUsd: string,
29
- futureDebt: string,
30
- debtDai: string,
31
- debtUsd: string,
32
- debtInAsset: string,
33
- debtAssetPrice: string,
34
- debtAssetMarketPrice: string,
35
- liquidationPrice: string,
36
- ratio: string,
37
- liqRatio: string,
38
- liqPercent: number,
39
- assetPrice: string,
40
- daiLabel: string,
41
- debtAsset: string,
42
- unclaimedCollateral: string,
43
- debtTooLow: boolean,
44
- minDebt: string,
45
- stabilityFee: number,
46
- creatableDebt: string,
47
- globalDebtCeiling: string,
48
- globalDebtCurrent: string,
49
- liquidationFee: string,
50
- lastUpdated: number,
1
+ import { EthAddress } from './common';
2
+
3
+ export interface IlkInfo {
4
+ ilkLabel: string;
5
+ currentRate: string;
6
+ futureRate: string;
7
+ minDebt: string;
8
+ globalDebtCeiling: string;
9
+ globalDebtCurrent: string;
10
+ assetPrice: string;
11
+ liqRatio: string;
12
+ liqPercent: number;
13
+ stabilityFee: number;
14
+ liquidationFee: string;
15
+ creatableDebt: string;
16
+ }
17
+
18
+ export interface CdpData {
19
+ owner: EthAddress,
20
+ userAddress: EthAddress,
21
+ id: string,
22
+ urn: EthAddress,
23
+ type: string,
24
+ ilk: string,
25
+ ilkLabel: string,
26
+ asset: string,
27
+ collateral: string,
28
+ collateralUsd: string,
29
+ futureDebt: string,
30
+ debtDai: string,
31
+ debtUsd: string,
32
+ debtInAsset: string,
33
+ debtAssetPrice: string,
34
+ debtAssetMarketPrice: string,
35
+ liquidationPrice: string,
36
+ ratio: string,
37
+ liqRatio: string,
38
+ liqPercent: number,
39
+ assetPrice: string,
40
+ daiLabel: string,
41
+ debtAsset: string,
42
+ unclaimedCollateral: string,
43
+ debtTooLow: boolean,
44
+ minDebt: string,
45
+ stabilityFee: number,
46
+ creatableDebt: string,
47
+ globalDebtCeiling: string,
48
+ globalDebtCurrent: string,
49
+ liquidationFee: string,
50
+ lastUpdated: number,
51
51
  }
@@ -1,107 +1,107 @@
1
- import { EModeCategoryData, EModeCategoryDataMapping } from './aave';
2
- import {
3
- MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
4
- } from './common';
5
-
6
- export enum SparkVersions {
7
- SparkV1 = 'v1default',
8
- }
9
-
10
- export interface SparkMarketData {
11
- chainIds: NetworkNumber[],
12
- label: string,
13
- shortLabel: string,
14
- url: string,
15
- value: SparkVersions,
16
- assets: readonly string[],
17
- provider: '' | 'SparkPoolAddressesProvider',
18
- providerAddress: string,
19
- lendingPool: 'SparkLendingPool',
20
- lendingPoolAddress: string,
21
- protocolData: '' | 'SparkProtocolDataProvider',
22
- protocolDataAddress: string
23
- subVersionLabel?: string
24
- // icon: Function,
25
- protocolName: string,
26
- disabled?: boolean,
27
- }
28
-
29
- export interface SparkAssetData extends MMAssetData {
30
- totalBorrowVar: string,
31
- sortIndex?: number,
32
- usageAsCollateralEnabled: boolean,
33
- isIsolated: boolean,
34
- eModeCategory: number,
35
- eModeCategoryData: EModeCategoryData,
36
- liquidationRatio: string,
37
- }
38
-
39
- export interface SparkAssetsData {
40
- [token: string]: SparkAssetData,
41
- }
42
-
43
- export type SparkMarketsData = { assetsData: SparkAssetsData };
44
-
45
- export interface SparkUsedAsset extends MMUsedAsset {
46
- stableBorrowRate: string,
47
- borrowedStable: string,
48
- borrowedVariable: string,
49
- borrowedUsdStable: string,
50
- borrowedUsdVariable: string,
51
- stableLimit: string,
52
- variableLimit: string,
53
- limit: string,
54
- eModeCategory: number,
55
- }
56
-
57
- export interface SparkUsedAssets {
58
- [token: string]: SparkUsedAsset,
59
- }
60
-
61
- export interface SparkHelperCommon {
62
- usedAssets: SparkUsedAssets,
63
- eModeCategory: number,
64
- eModeCategories?: object,
65
- assetsData: SparkAssetsData,
66
- selectedMarket?: SparkMarketData,
67
- network?: NetworkNumber,
68
- }
69
-
70
- export interface SparkAggregatedPositionData {
71
- suppliedUsd: string,
72
- suppliedCollateralUsd: string,
73
- borrowedUsd: string,
74
- borrowLimitUsd: string,
75
- liquidationLimitUsd: string,
76
- leftToBorrowUsd: string,
77
- ratio: string,
78
- collRatio: string,
79
- netApy: string,
80
- incentiveUsd: string,
81
- totalInterestUsd: string,
82
- liqRatio: string,
83
- liqPercent: string,
84
- leveragedType: string,
85
- leveragedAsset?: string,
86
- leveragedLsdAssetRatio?: string,
87
- liquidationPrice?: string,
88
- }
89
-
90
- export interface SparkPositionData extends MMPositionData {
91
- ratio: string,
92
- minRatio: string,
93
- collRatio: string,
94
- borrowedUsd: string,
95
- borrowLimitUsd: string,
96
- suppliedCollateralUsd: string,
97
- incentiveUsd: string,
98
- totalInterestUsd: string,
99
- isSubscribedToAutomation?: boolean,
100
- automationResubscribeRequired?: boolean,
101
- totalSupplied: string,
102
- usedAssets: SparkUsedAssets,
103
- eModeCategory: number,
104
- isInIsolationMode: boolean,
105
- isInSiloedMode: boolean,
106
- eModeCategories: { [key: number]: EModeCategoryDataMapping },
1
+ import { EModeCategoryData, EModeCategoryDataMapping } from './aave';
2
+ import {
3
+ MMAssetData, MMPositionData, MMUsedAsset, NetworkNumber,
4
+ } from './common';
5
+
6
+ export enum SparkVersions {
7
+ SparkV1 = 'v1default',
8
+ }
9
+
10
+ export interface SparkMarketData {
11
+ chainIds: NetworkNumber[],
12
+ label: string,
13
+ shortLabel: string,
14
+ url: string,
15
+ value: SparkVersions,
16
+ assets: readonly string[],
17
+ provider: '' | 'SparkPoolAddressesProvider',
18
+ providerAddress: string,
19
+ lendingPool: 'SparkLendingPool',
20
+ lendingPoolAddress: string,
21
+ protocolData: '' | 'SparkProtocolDataProvider',
22
+ protocolDataAddress: string
23
+ subVersionLabel?: string
24
+ // icon: Function,
25
+ protocolName: string,
26
+ disabled?: boolean,
27
+ }
28
+
29
+ export interface SparkAssetData extends MMAssetData {
30
+ totalBorrowVar: string,
31
+ sortIndex?: number,
32
+ usageAsCollateralEnabled: boolean,
33
+ isIsolated: boolean,
34
+ eModeCategory: number,
35
+ eModeCategoryData: EModeCategoryData,
36
+ liquidationRatio: string,
37
+ }
38
+
39
+ export interface SparkAssetsData {
40
+ [token: string]: SparkAssetData,
41
+ }
42
+
43
+ export type SparkMarketsData = { assetsData: SparkAssetsData };
44
+
45
+ export interface SparkUsedAsset extends MMUsedAsset {
46
+ stableBorrowRate: string,
47
+ borrowedStable: string,
48
+ borrowedVariable: string,
49
+ borrowedUsdStable: string,
50
+ borrowedUsdVariable: string,
51
+ stableLimit: string,
52
+ variableLimit: string,
53
+ limit: string,
54
+ eModeCategory: number,
55
+ }
56
+
57
+ export interface SparkUsedAssets {
58
+ [token: string]: SparkUsedAsset,
59
+ }
60
+
61
+ export interface SparkHelperCommon {
62
+ usedAssets: SparkUsedAssets,
63
+ eModeCategory: number,
64
+ eModeCategories?: object,
65
+ assetsData: SparkAssetsData,
66
+ selectedMarket?: SparkMarketData,
67
+ network?: NetworkNumber,
68
+ }
69
+
70
+ export interface SparkAggregatedPositionData {
71
+ suppliedUsd: string,
72
+ suppliedCollateralUsd: string,
73
+ borrowedUsd: string,
74
+ borrowLimitUsd: string,
75
+ liquidationLimitUsd: string,
76
+ leftToBorrowUsd: string,
77
+ ratio: string,
78
+ collRatio: string,
79
+ netApy: string,
80
+ incentiveUsd: string,
81
+ totalInterestUsd: string,
82
+ liqRatio: string,
83
+ liqPercent: string,
84
+ leveragedType: string,
85
+ leveragedAsset?: string,
86
+ leveragedLsdAssetRatio?: string,
87
+ liquidationPrice?: string,
88
+ }
89
+
90
+ export interface SparkPositionData extends MMPositionData {
91
+ ratio: string,
92
+ minRatio: string,
93
+ collRatio: string,
94
+ borrowedUsd: string,
95
+ borrowLimitUsd: string,
96
+ suppliedCollateralUsd: string,
97
+ incentiveUsd: string,
98
+ totalInterestUsd: string,
99
+ isSubscribedToAutomation?: boolean,
100
+ automationResubscribeRequired?: boolean,
101
+ totalSupplied: string,
102
+ usedAssets: SparkUsedAssets,
103
+ eModeCategory: number,
104
+ isInIsolationMode: boolean,
105
+ isInSiloedMode: boolean,
106
+ eModeCategories: { [key: number]: EModeCategoryDataMapping },
107
107
  }
@@ -1,139 +0,0 @@
1
- /// <reference types="node" />
2
- import type BN from "bn.js";
3
- import type { ContractOptions } from "web3-eth-contract";
4
- import type { EventLog } from "web3-core";
5
- import type { EventEmitter } from "events";
6
- import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types";
7
- export interface EventOptions {
8
- filter?: object;
9
- fromBlock?: BlockType;
10
- topics?: string[];
11
- }
12
- export type TokenExchange = ContractEventLog<{
13
- buyer: string;
14
- sold_id: string;
15
- tokens_sold: string;
16
- bought_id: string;
17
- tokens_bought: string;
18
- 0: string;
19
- 1: string;
20
- 2: string;
21
- 3: string;
22
- 4: string;
23
- }>;
24
- export type Deposit = ContractEventLog<{
25
- provider: string;
26
- amount: string;
27
- n1: string;
28
- n2: string;
29
- 0: string;
30
- 1: string;
31
- 2: string;
32
- 3: string;
33
- }>;
34
- export type Withdraw = ContractEventLog<{
35
- provider: string;
36
- amount_borrowed: string;
37
- amount_collateral: string;
38
- 0: string;
39
- 1: string;
40
- 2: string;
41
- }>;
42
- export type SetRate = ContractEventLog<{
43
- rate: string;
44
- rate_mul: string;
45
- time: string;
46
- 0: string;
47
- 1: string;
48
- 2: string;
49
- }>;
50
- export type SetFee = ContractEventLog<{
51
- fee: string;
52
- 0: string;
53
- }>;
54
- export type SetAdminFee = ContractEventLog<{
55
- fee: string;
56
- 0: string;
57
- }>;
58
- export interface CrvUSDsfrxETHAmm extends BaseContract {
59
- constructor(jsonInterface: any[], address?: string, options?: ContractOptions): CrvUSDsfrxETHAmm;
60
- clone(): CrvUSDsfrxETHAmm;
61
- methods: {
62
- set_admin(_admin: string): NonPayableTransactionObject<void>;
63
- coins(i: number | string | BN): NonPayableTransactionObject<string>;
64
- price_oracle(): NonPayableTransactionObject<string>;
65
- dynamic_fee(): NonPayableTransactionObject<string>;
66
- get_rate_mul(): NonPayableTransactionObject<string>;
67
- get_base_price(): NonPayableTransactionObject<string>;
68
- p_current_up(n: number | string | BN): NonPayableTransactionObject<string>;
69
- p_current_down(n: number | string | BN): NonPayableTransactionObject<string>;
70
- p_oracle_up(n: number | string | BN): NonPayableTransactionObject<string>;
71
- p_oracle_down(n: number | string | BN): NonPayableTransactionObject<string>;
72
- get_p(): NonPayableTransactionObject<string>;
73
- read_user_tick_numbers(user: string): NonPayableTransactionObject<[string, string]>;
74
- can_skip_bands(n_end: number | string | BN): NonPayableTransactionObject<boolean>;
75
- active_band_with_skip(): NonPayableTransactionObject<string>;
76
- has_liquidity(user: string): NonPayableTransactionObject<boolean>;
77
- deposit_range(user: string, amount: number | string | BN, n1: number | string | BN, n2: number | string | BN): NonPayableTransactionObject<void>;
78
- withdraw(user: string, frac: number | string | BN): NonPayableTransactionObject<[string, string]>;
79
- get_dy(i: number | string | BN, j: number | string | BN, in_amount: number | string | BN): NonPayableTransactionObject<string>;
80
- get_dxdy(i: number | string | BN, j: number | string | BN, in_amount: number | string | BN): NonPayableTransactionObject<[string, string]>;
81
- get_dx(i: number | string | BN, j: number | string | BN, out_amount: number | string | BN): NonPayableTransactionObject<string>;
82
- get_dydx(i: number | string | BN, j: number | string | BN, out_amount: number | string | BN): NonPayableTransactionObject<[string, string]>;
83
- "exchange(uint256,uint256,uint256,uint256)"(i: number | string | BN, j: number | string | BN, in_amount: number | string | BN, min_amount: number | string | BN): NonPayableTransactionObject<[string, string]>;
84
- "exchange(uint256,uint256,uint256,uint256,address)"(i: number | string | BN, j: number | string | BN, in_amount: number | string | BN, min_amount: number | string | BN, _for: string): NonPayableTransactionObject<[string, string]>;
85
- "exchange_dy(uint256,uint256,uint256,uint256)"(i: number | string | BN, j: number | string | BN, out_amount: number | string | BN, max_amount: number | string | BN): NonPayableTransactionObject<[string, string]>;
86
- "exchange_dy(uint256,uint256,uint256,uint256,address)"(i: number | string | BN, j: number | string | BN, out_amount: number | string | BN, max_amount: number | string | BN, _for: string): NonPayableTransactionObject<[string, string]>;
87
- get_y_up(user: string): NonPayableTransactionObject<string>;
88
- get_x_down(user: string): NonPayableTransactionObject<string>;
89
- get_sum_xy(user: string): NonPayableTransactionObject<[string, string]>;
90
- get_xy(user: string): NonPayableTransactionObject<[string[], string[]]>;
91
- get_amount_for_price(p: number | string | BN): NonPayableTransactionObject<[string, boolean]>;
92
- set_rate(rate: number | string | BN): NonPayableTransactionObject<string>;
93
- set_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
94
- set_admin_fee(fee: number | string | BN): NonPayableTransactionObject<void>;
95
- reset_admin_fees(): NonPayableTransactionObject<void>;
96
- set_callback(liquidity_mining_callback: string): NonPayableTransactionObject<void>;
97
- admin(): NonPayableTransactionObject<string>;
98
- A(): NonPayableTransactionObject<string>;
99
- fee(): NonPayableTransactionObject<string>;
100
- admin_fee(): NonPayableTransactionObject<string>;
101
- rate(): NonPayableTransactionObject<string>;
102
- active_band(): NonPayableTransactionObject<string>;
103
- min_band(): NonPayableTransactionObject<string>;
104
- max_band(): NonPayableTransactionObject<string>;
105
- admin_fees_x(): NonPayableTransactionObject<string>;
106
- admin_fees_y(): NonPayableTransactionObject<string>;
107
- price_oracle_contract(): NonPayableTransactionObject<string>;
108
- bands_x(arg0: number | string | BN): NonPayableTransactionObject<string>;
109
- bands_y(arg0: number | string | BN): NonPayableTransactionObject<string>;
110
- liquidity_mining_callback(): NonPayableTransactionObject<string>;
111
- };
112
- events: {
113
- TokenExchange(cb?: Callback<TokenExchange>): EventEmitter;
114
- TokenExchange(options?: EventOptions, cb?: Callback<TokenExchange>): EventEmitter;
115
- Deposit(cb?: Callback<Deposit>): EventEmitter;
116
- Deposit(options?: EventOptions, cb?: Callback<Deposit>): EventEmitter;
117
- Withdraw(cb?: Callback<Withdraw>): EventEmitter;
118
- Withdraw(options?: EventOptions, cb?: Callback<Withdraw>): EventEmitter;
119
- SetRate(cb?: Callback<SetRate>): EventEmitter;
120
- SetRate(options?: EventOptions, cb?: Callback<SetRate>): EventEmitter;
121
- SetFee(cb?: Callback<SetFee>): EventEmitter;
122
- SetFee(options?: EventOptions, cb?: Callback<SetFee>): EventEmitter;
123
- SetAdminFee(cb?: Callback<SetAdminFee>): EventEmitter;
124
- SetAdminFee(options?: EventOptions, cb?: Callback<SetAdminFee>): EventEmitter;
125
- allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
126
- };
127
- once(event: "TokenExchange", cb: Callback<TokenExchange>): void;
128
- once(event: "TokenExchange", options: EventOptions, cb: Callback<TokenExchange>): void;
129
- once(event: "Deposit", cb: Callback<Deposit>): void;
130
- once(event: "Deposit", options: EventOptions, cb: Callback<Deposit>): void;
131
- once(event: "Withdraw", cb: Callback<Withdraw>): void;
132
- once(event: "Withdraw", options: EventOptions, cb: Callback<Withdraw>): void;
133
- once(event: "SetRate", cb: Callback<SetRate>): void;
134
- once(event: "SetRate", options: EventOptions, cb: Callback<SetRate>): void;
135
- once(event: "SetFee", cb: Callback<SetFee>): void;
136
- once(event: "SetFee", options: EventOptions, cb: Callback<SetFee>): void;
137
- once(event: "SetAdminFee", cb: Callback<SetAdminFee>): void;
138
- once(event: "SetAdminFee", options: EventOptions, cb: Callback<SetAdminFee>): void;
139
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });