@defisaver/positions-sdk 0.0.183 → 0.0.185-dev

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 (73) hide show
  1. package/cjs/aaveV3/index.js +1 -1
  2. package/cjs/compoundV3/index.js +11 -1
  3. package/cjs/config/contracts.d.ts +446 -216
  4. package/cjs/config/contracts.js +22 -0
  5. package/cjs/contracts.d.ts +1 -0
  6. package/cjs/contracts.js +2 -1
  7. package/cjs/markets/aave/marketAssets.js +1 -1
  8. package/cjs/markets/compound/index.d.ts +4 -0
  9. package/cjs/markets/compound/index.js +41 -1
  10. package/cjs/markets/compound/marketsAssets.d.ts +14 -0
  11. package/cjs/markets/compound/marketsAssets.js +17 -3
  12. package/cjs/markets/morphoBlue/index.d.ts +8 -0
  13. package/cjs/markets/morphoBlue/index.js +70 -1
  14. package/cjs/services/priceService.d.ts +1 -0
  15. package/cjs/services/priceService.js +23 -1
  16. package/cjs/staking/staking.js +2 -2
  17. package/cjs/types/compound.d.ts +3 -1
  18. package/cjs/types/compound.js +2 -0
  19. package/cjs/types/contracts/generated/CUSDSv3.d.ts +441 -0
  20. package/cjs/types/contracts/generated/CUSDSv3.js +5 -0
  21. package/cjs/types/contracts/generated/CWstETHv3.d.ts +441 -0
  22. package/cjs/types/contracts/generated/CWstETHv3.js +5 -0
  23. package/cjs/types/contracts/generated/WstETHPriceFeed.d.ts +39 -0
  24. package/cjs/types/contracts/generated/WstETHPriceFeed.js +5 -0
  25. package/cjs/types/contracts/generated/index.d.ts +3 -0
  26. package/cjs/types/morphoBlue.d.ts +5 -1
  27. package/cjs/types/morphoBlue.js +4 -0
  28. package/esm/aaveV3/index.js +1 -1
  29. package/esm/compoundV3/index.js +12 -2
  30. package/esm/config/contracts.d.ts +446 -216
  31. package/esm/config/contracts.js +22 -0
  32. package/esm/contracts.d.ts +1 -0
  33. package/esm/contracts.js +1 -0
  34. package/esm/markets/aave/marketAssets.js +1 -1
  35. package/esm/markets/compound/index.d.ts +4 -0
  36. package/esm/markets/compound/index.js +39 -1
  37. package/esm/markets/compound/marketsAssets.d.ts +14 -0
  38. package/esm/markets/compound/marketsAssets.js +16 -2
  39. package/esm/markets/morphoBlue/index.d.ts +8 -0
  40. package/esm/markets/morphoBlue/index.js +64 -0
  41. package/esm/services/priceService.d.ts +1 -0
  42. package/esm/services/priceService.js +22 -1
  43. package/esm/staking/staking.js +2 -2
  44. package/esm/types/compound.d.ts +3 -1
  45. package/esm/types/compound.js +2 -0
  46. package/esm/types/contracts/generated/CUSDSv3.d.ts +441 -0
  47. package/esm/types/contracts/generated/CUSDSv3.js +4 -0
  48. package/esm/types/contracts/generated/CWstETHv3.d.ts +441 -0
  49. package/esm/types/contracts/generated/CWstETHv3.js +4 -0
  50. package/esm/types/contracts/generated/WstETHPriceFeed.d.ts +39 -0
  51. package/esm/types/contracts/generated/WstETHPriceFeed.js +4 -0
  52. package/esm/types/contracts/generated/index.d.ts +3 -0
  53. package/esm/types/morphoBlue.d.ts +5 -1
  54. package/esm/types/morphoBlue.js +4 -0
  55. package/package.json +2 -2
  56. package/src/aaveV3/index.ts +1 -1
  57. package/src/compoundV3/index.ts +15 -2
  58. package/src/config/contracts.js +22 -0
  59. package/src/contracts.ts +1 -0
  60. package/src/markets/aave/marketAssets.ts +1 -1
  61. package/src/markets/compound/index.ts +42 -2
  62. package/src/markets/compound/marketsAssets.ts +20 -2
  63. package/src/markets/morphoBlue/index.ts +69 -0
  64. package/src/services/priceService.ts +32 -1
  65. package/src/staking/staking.ts +2 -2
  66. package/src/types/compound.ts +2 -0
  67. package/src/types/contracts/generated/CUSDSv3.ts +685 -0
  68. package/src/types/contracts/generated/CWstETHv3.ts +685 -0
  69. package/src/types/contracts/generated/WstETHPriceFeed.ts +59 -0
  70. package/src/types/contracts/generated/index.ts +3 -0
  71. package/src/types/morphoBlue.ts +4 -0
  72. package/.vscode/launch.json +0 -17
  73. package/.vscode/settings.json +0 -37
@@ -0,0 +1,59 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type BN from "bn.js";
6
+ import type { ContractOptions } from "web3-eth-contract";
7
+ import type { EventLog } from "web3-core";
8
+ import type { EventEmitter } from "events";
9
+ import type {
10
+ Callback,
11
+ PayableTransactionObject,
12
+ NonPayableTransactionObject,
13
+ BlockType,
14
+ ContractEventLog,
15
+ BaseContract,
16
+ } from "./types";
17
+
18
+ export interface EventOptions {
19
+ filter?: object;
20
+ fromBlock?: BlockType;
21
+ topics?: string[];
22
+ }
23
+
24
+ export interface WstETHPriceFeed extends BaseContract {
25
+ constructor(
26
+ jsonInterface: any[],
27
+ address?: string,
28
+ options?: ContractOptions
29
+ ): WstETHPriceFeed;
30
+ clone(): WstETHPriceFeed;
31
+ methods: {
32
+ decimals(): NonPayableTransactionObject<string>;
33
+
34
+ description(): NonPayableTransactionObject<string>;
35
+
36
+ latestRoundData(): NonPayableTransactionObject<
37
+ [string, string, string, string, string] & {
38
+ roundId: string;
39
+ answer: string;
40
+ startedAt: string;
41
+ updatedAt: string;
42
+ answeredInRound: string;
43
+ }
44
+ >;
45
+
46
+ stETHToETHPriceFeedDecimals(): NonPayableTransactionObject<string>;
47
+
48
+ stETHtoETHPriceFeed(): NonPayableTransactionObject<string>;
49
+
50
+ version(): NonPayableTransactionObject<string>;
51
+
52
+ wstETH(): NonPayableTransactionObject<string>;
53
+
54
+ wstETHScale(): NonPayableTransactionObject<string>;
55
+ };
56
+ events: {
57
+ allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
58
+ };
59
+ }
@@ -61,11 +61,14 @@ export type { SparkView } from "./SparkView";
61
61
  export type { TroveManager } from "./TroveManager";
62
62
  export type { USDCPriceFeed } from "./USDCPriceFeed";
63
63
  export type { UniMulticall } from "./UniMulticall";
64
+ export type { WstETHPriceFeed } from "./WstETHPriceFeed";
64
65
  export type { CETHv3 } from "./CETHv3";
65
66
  export type { CUSDCev3 } from "./CUSDCev3";
66
67
  export type { CUSDCv3 } from "./CUSDCv3";
68
+ export type { CUSDSv3 } from "./CUSDSv3";
67
69
  export type { CUSDTv3 } from "./CUSDTv3";
68
70
  export type { CUSDbCv3 } from "./CUSDbCv3";
71
+ export type { CWstETHv3 } from "./CWstETHv3";
69
72
  export type { CrvUSDETHAmm } from "./CrvUSDETHAmm";
70
73
  export type { CrvUSDETHController } from "./CrvUSDETHController";
71
74
  export type { CrvUSDFactory } from "./CrvUSDFactory";
@@ -21,6 +21,7 @@ export enum MorphoBlueVersions {
21
21
  MorphoBlueCbBTCEth_915 = 'morphobluecbbtceth', // cbBTC/Eth
22
22
  MorphoBlueCbBTCUSDC_860 = 'morphobluecbbtcusdc', // cbBTC/USDC
23
23
  MorphoBlueSUSDeUSDC_915 = 'morphobluesusdeusdc_915', // sUSDe/USDC
24
+ MorphoBlueLBTVWBTC_945 = 'morphobluelbtcwbtc_945', // LBTC/WBTC
24
25
  // ezETH/ETH
25
26
  MorphoBlueEzEthEth_860 = 'morphoblueezetheth_860',
26
27
  MorphoBlueEzEthEth_945 = 'morphoblueezetheth_945',
@@ -57,6 +58,9 @@ export enum MorphoBlueVersions {
57
58
  MorphoBlueCbBTCEth_915_Base = 'morphobluecbbtceth_915_base',
58
59
  MorphoBlueCbBTCUSDC_860_Base = 'morphobluecbbtcusdc_860_base',
59
60
  MorphoBlueWsuperOETHbWETH_915_Base = 'morphobluewsuperoethbweth_915_base',
61
+ MorphoBlueLBTCCbBTC_945_Base = 'morphobluelbtccbbtc_945_base', // LBTC/cbBTC
62
+ MorphoBlueWstEthEURC_860_Base = 'morphobluewstetheurc_860_base', // wstETH/EURC
63
+ MorphoBlueCbBTCEURC_860_Base = 'morphobluecbbtceurc_860_base', // cbBTC/EURC
60
64
  }
61
65
 
62
66
  export enum MorphoBlueOracleType {
@@ -1,17 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "name": "Attach by Process ID",
9
- "processId": "${command:PickProcess}",
10
- "request": "attach",
11
- "skipFiles": [
12
- "<node_internals>/**"
13
- ],
14
- "type": "node"
15
- }
16
- ]
17
- }
@@ -1,37 +0,0 @@
1
- {
2
- "workbench.colorCustomizations": {
3
- "activityBar.activeBackground": "#f2255a",
4
- "activityBar.background": "#f2255a",
5
- "activityBar.foreground": "#e7e7e7",
6
- "activityBar.inactiveForeground": "#e7e7e799",
7
- "activityBarBadge.background": "#40d30d",
8
- "activityBarBadge.foreground": "#15202b",
9
- "commandCenter.border": "#e7e7e799",
10
- "sash.hoverBorder": "#f2255a",
11
- "statusBar.background": "#d70d41",
12
- "statusBar.foreground": "#e7e7e7",
13
- "statusBarItem.hoverBackground": "#f2255a",
14
- "statusBarItem.remoteBackground": "#d70d41",
15
- "statusBarItem.remoteForeground": "#e7e7e7",
16
- "titleBar.activeBackground": "#d70d41",
17
- "titleBar.activeForeground": "#e7e7e7",
18
- "titleBar.inactiveBackground": "#d70d4199",
19
- "titleBar.inactiveForeground": "#e7e7e799"
20
- },
21
- "peacock.color": "#d70d41",
22
- "editor.defaultFormatter": "dbaeumer.vscode-eslint",
23
- "eslint.format.enable": true,
24
-
25
- "[javascript]": {
26
- "editor.defaultFormatter": "dbaeumer.vscode-eslint"
27
- },
28
- "[typescript]": {
29
- "editor.defaultFormatter": "dbaeumer.vscode-eslint"
30
- },
31
- "[vue]": {
32
- "editor.defaultFormatter": "dbaeumer.vscode-eslint"
33
- },
34
- "[typescriptreact]": {
35
- "editor.defaultFormatter": "dbaeumer.vscode-eslint"
36
- }
37
- }