@defisaver/positions-sdk 2.1.159 → 2.1.160-morpho-vault-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.
@@ -1,10 +1,14 @@
1
- import { MorphoVault, MorphoVaultType } from '../../types';
1
+ import {
2
+ MorphoVault, MorphoVaultType, MorphoVaultVersion, NetworkNumber,
3
+ } from '../../types';
2
4
 
3
5
  export const MORPHO_VAULT_FLAGSHIP_ETH: MorphoVault = {
4
6
  type: MorphoVaultType.MorphoVaultFlagshipEth,
5
7
  name: 'Flagship ETH',
6
8
  address: '0x38989BBA00BDF8181F4082995b3DEAe96163aC5D',
7
9
  asset: 'WETH',
10
+ network: NetworkNumber.Eth,
11
+ version: MorphoVaultVersion.V1,
8
12
  deploymentBlock: 18927491,
9
13
  isLegacy: true,
10
14
  };
@@ -14,6 +18,8 @@ export const MORPHO_VAULT_GAUNTLET_USDC_CORE: MorphoVault = {
14
18
  name: 'Gauntlet USDC Core',
15
19
  address: '0x8eB67A509616cd6A7c1B3c8C21D48FF57df3d458',
16
20
  asset: 'USDC',
21
+ network: NetworkNumber.Eth,
22
+ version: MorphoVaultVersion.V1,
17
23
  deploymentBlock: 19777569,
18
24
  isLegacy: true,
19
25
  };
@@ -23,6 +29,8 @@ export const MORPHO_VAULT_GAUNTLET_USDC_PRIME: MorphoVault = {
23
29
  name: 'Gauntlet USDC Prime',
24
30
  address: '0xdd0f28e19C1780eb6396170735D45153D261490d',
25
31
  asset: 'USDC',
32
+ network: NetworkNumber.Eth,
33
+ version: MorphoVaultVersion.V1,
26
34
  deploymentBlock: 19777569,
27
35
  isLegacy: true,
28
36
  };
@@ -32,6 +40,8 @@ export const MORPHO_VAULT_RE7_WETH: MorphoVault = {
32
40
  name: 'RE7 WETH',
33
41
  address: '0x78Fc2c2eD1A4cDb5402365934aE5648aDAd094d0',
34
42
  asset: 'WETH',
43
+ network: NetworkNumber.Eth,
44
+ version: MorphoVaultVersion.V1,
35
45
  deploymentBlock: 19121118,
36
46
  isLegacy: true,
37
47
  };
@@ -41,6 +51,8 @@ export const MORPHO_VAULT_GAUNTLET_WETH_CORE: MorphoVault = {
41
51
  name: 'Gauntlet WETH Core',
42
52
  address: '0x4881Ef0BF6d2365D3dd6499ccd7532bcdBCE0658',
43
53
  asset: 'WETH',
54
+ network: NetworkNumber.Eth,
55
+ version: MorphoVaultVersion.V1,
44
56
  deploymentBlock: 19541126,
45
57
  isLegacy: true,
46
58
  };
@@ -50,6 +62,8 @@ export const MORPHO_VAULT_GAUNTLET_WETH_PRIME: MorphoVault = {
50
62
  name: 'Gauntlet WETH Prime',
51
63
  address: '0x2371e134e3455e0593363cBF89d3b6cf53740618',
52
64
  asset: 'WETH',
65
+ network: NetworkNumber.Eth,
66
+ version: MorphoVaultVersion.V1,
53
67
  deploymentBlock: 19372149,
54
68
  isLegacy: true,
55
69
  };
@@ -59,6 +73,8 @@ export const MORPHO_VAULT_BOOSTED_USDC: MorphoVault = {
59
73
  name: 'Boosted USDC',
60
74
  address: '0xd63070114470f685b75B74D60EEc7c1113d33a3D',
61
75
  asset: 'USDC',
76
+ network: NetworkNumber.Eth,
77
+ version: MorphoVaultVersion.V1,
62
78
  deploymentBlock: 20377233,
63
79
  isLegacy: true,
64
80
  };
@@ -68,6 +84,8 @@ export const MORPHO_VAULT_FLAGSHIP_USDT: MorphoVault = {
68
84
  name: 'Flagship USDT',
69
85
  address: '0x2C25f6C25770fFEC5959D34B94Bf898865e5D6b1',
70
86
  asset: 'USDT',
87
+ network: NetworkNumber.Eth,
88
+ version: MorphoVaultVersion.V1,
71
89
  deploymentBlock: 19127039,
72
90
  isLegacy: true,
73
91
  };
@@ -77,6 +95,8 @@ export const MORPHO_VAULT_GAUNTLET_USDA_CORE: MorphoVault = {
77
95
  name: 'Gauntlet USDA Core',
78
96
  address: '0x125D41A6e5dbf455cD9Df8F80BCC6fd172D52Cc6',
79
97
  asset: 'USDA',
98
+ network: NetworkNumber.Eth,
99
+ version: MorphoVaultVersion.V1,
80
100
  deploymentBlock: 19633608,
81
101
  isLegacy: true,
82
102
  };
@@ -86,6 +106,8 @@ export const MORPHO_VAULT_GAUNTLET_USDT_PRIME: MorphoVault = {
86
106
  name: 'Gauntlet USDT Prime',
87
107
  address: '0x8CB3649114051cA5119141a34C200D65dc0Faa73',
88
108
  asset: 'USDT',
109
+ network: NetworkNumber.Eth,
110
+ version: MorphoVaultVersion.V1,
89
111
  deploymentBlock: 19486541,
90
112
  isLegacy: true,
91
113
  };
@@ -95,6 +117,8 @@ export const MORPHO_VAULT_GAUNTLET_RESOLV_USDC: MorphoVault = {
95
117
  name: 'Gauntlet Resolv USDC',
96
118
  address: '0x132E6C9C33A62D7727cd359b1f51e5B566E485Eb',
97
119
  asset: 'USDC',
120
+ network: NetworkNumber.Eth,
121
+ version: MorphoVaultVersion.V1,
98
122
  deploymentBlock: 21487882,
99
123
  isLegacy: true,
100
124
  };
@@ -106,6 +130,8 @@ export const MORPHO_VAULT_STEAKHOUSE_USDT: MorphoVault = {
106
130
  name: 'Steakhouse USDT',
107
131
  address: '0xbEef047a543E45807105E51A8BBEFCc5950fcfBa',
108
132
  asset: 'USDT',
133
+ network: NetworkNumber.Eth,
134
+ version: MorphoVaultVersion.V1,
109
135
  deploymentBlock: 19043398,
110
136
  isLegacy: false,
111
137
  };
@@ -115,6 +141,8 @@ export const MORPHO_VAULT_STEAKHOUSE_USDC: MorphoVault = {
115
141
  name: 'Steakhouse USDC',
116
142
  address: '0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB',
117
143
  asset: 'USDC',
144
+ network: NetworkNumber.Eth,
145
+ version: MorphoVaultVersion.V1,
118
146
  deploymentBlock: 18928285,
119
147
  isLegacy: false,
120
148
  };
@@ -124,6 +152,8 @@ export const MORPHO_VAULT_STEAKHOUSE_ETH: MorphoVault = {
124
152
  name: 'Steakhouse WETH',
125
153
  address: '0xBEEf050ecd6a16c4e7bfFbB52Ebba7846C4b8cD4',
126
154
  asset: 'WETH',
155
+ network: NetworkNumber.Eth,
156
+ version: MorphoVaultVersion.V1,
127
157
  deploymentBlock: 19380443,
128
158
  isLegacy: false,
129
159
  };
@@ -133,6 +163,8 @@ export const MORPHO_VAULT_STEAKHOUSE_PYUSD: MorphoVault = {
133
163
  name: 'Steakhouse PYUSD',
134
164
  address: '0xbEEF02e5E13584ab96848af90261f0C8Ee04722a',
135
165
  asset: 'PYUSD',
166
+ network: NetworkNumber.Eth,
167
+ version: MorphoVaultVersion.V1,
136
168
  deploymentBlock: 19043398,
137
169
  isLegacy: false,
138
170
  };
@@ -144,6 +176,8 @@ export const MORPHO_VAULT_SMOKEHOUSE_USDT: MorphoVault = {
144
176
  name: 'Smokehouse USDT',
145
177
  address: '0xA0804346780b4c2e3bE118ac957D1DB82F9d7484',
146
178
  asset: 'USDT',
179
+ network: NetworkNumber.Eth,
180
+ version: MorphoVaultVersion.V1,
147
181
  deploymentBlock: 21522238,
148
182
  isLegacy: false,
149
183
  };
@@ -153,6 +187,8 @@ export const MORPHO_VAULT_SMOKEHOUSE_USDC: MorphoVault = {
153
187
  name: 'Smokehouse USDC',
154
188
  address: '0xBEeFFF209270748ddd194831b3fa287a5386f5bC',
155
189
  asset: 'USDC',
190
+ network: NetworkNumber.Eth,
191
+ version: MorphoVaultVersion.V1,
156
192
  deploymentBlock: 21337719,
157
193
  isLegacy: false,
158
194
  };
@@ -162,10 +198,25 @@ export const MORPHO_VAULT_SMOKEHOUSE_DAI: MorphoVault = {
162
198
  name: 'Smokehouse DAI',
163
199
  address: '0xbeeFfF68CC520D68f82641EFF84330C631E2490E',
164
200
  asset: 'DAI',
201
+ network: NetworkNumber.Eth,
202
+ version: MorphoVaultVersion.V1,
165
203
  deploymentBlock: 21343808,
166
204
  isLegacy: false,
167
205
  };
168
206
 
207
+ // Vault V2
208
+
209
+ export const MORPHO_VAULT_GAUNTLET_USDG_PREMIUM: MorphoVault = {
210
+ type: MorphoVaultType.MorphoVaultGauntletUSDGPremium,
211
+ name: 'Gauntlet USDG Premium',
212
+ address: '0x390c1bb01F3F627144a40617e287d4cE3D5aBCfa',
213
+ asset: 'USDG',
214
+ network: NetworkNumber.Arb,
215
+ version: MorphoVaultVersion.V2,
216
+ deploymentBlock: 510799903,
217
+ isLegacy: false,
218
+ };
219
+
169
220
  export const MORPHO_VAULTS: Record<MorphoVaultType, MorphoVault> = {
170
221
  [MorphoVaultType.MorphoVaultFlagshipEth]: MORPHO_VAULT_FLAGSHIP_ETH,
171
222
  [MorphoVaultType.MorphoVaultGauntletUSDCCore]: MORPHO_VAULT_GAUNTLET_USDC_CORE,
@@ -189,6 +240,9 @@ export const MORPHO_VAULTS: Record<MorphoVaultType, MorphoVault> = {
189
240
  [MorphoVaultType.MorphoVaultSmokehouseUSDT]: MORPHO_VAULT_SMOKEHOUSE_USDT,
190
241
  [MorphoVaultType.MorphoVaultSmokehouseUSDC]: MORPHO_VAULT_SMOKEHOUSE_USDC,
191
242
  [MorphoVaultType.MorphoVaultSmokehouseDAI]: MORPHO_VAULT_SMOKEHOUSE_DAI,
243
+
244
+ // Vault V2
245
+ [MorphoVaultType.MorphoVaultGauntletUSDGPremium]: MORPHO_VAULT_GAUNTLET_USDG_PREMIUM,
192
246
  };
193
247
 
194
248
  export const getMorphoVault = (type: MorphoVaultType): MorphoVault => MORPHO_VAULTS[type];
@@ -1,4 +1,4 @@
1
- import { EthAddress } from '../common';
1
+ import { EthAddress, NetworkNumber } from '../common';
2
2
 
3
3
  export enum MorphoVaultType {
4
4
  MorphoVaultFlagshipEth = 'morpho_vault_flagship_eth',
@@ -21,6 +21,13 @@ export enum MorphoVaultType {
21
21
  MorphoVaultSmokehouseUSDT = 'morpho_vault_smokehouse_usdt',
22
22
  MorphoVaultSmokehouseUSDC = 'morpho_vault_smokehouse_usdc',
23
23
  MorphoVaultSmokehouseDAI = 'morpho_vault_smokehouse_dai',
24
+ // Vault V2
25
+ MorphoVaultGauntletUSDGPremium = 'morpho_vault_gauntlet_usdg_premium',
26
+ }
27
+
28
+ export enum MorphoVaultVersion {
29
+ V1 = 1,
30
+ V2 = 2,
24
31
  }
25
32
 
26
33
  export interface MorphoVault {
@@ -28,6 +35,8 @@ export interface MorphoVault {
28
35
  name: string;
29
36
  address: EthAddress;
30
37
  asset: string;
38
+ network: NetworkNumber;
39
+ version: MorphoVaultVersion;
31
40
  deploymentBlock: number;
32
41
  isLegacy: boolean;
33
42
  }