@defisaver/sdk 1.2.9-dev-ether-fi → 1.2.10-dev-ezeth-weeth

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.
@@ -32,5 +32,6 @@ import * as merkl from './merkl';
32
32
  import * as eulerV2 from './eulerV2';
33
33
  import * as sky from './sky';
34
34
  import * as stkgho from './stkgho';
35
+ import * as renzo from './renzo';
35
36
  import * as etherfi from './etherfi';
36
- export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, stkgho, etherfi, };
37
+ export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, stkgho, renzo, etherfi, };
@@ -32,5 +32,6 @@ import * as merkl from './merkl';
32
32
  import * as eulerV2 from './eulerV2';
33
33
  import * as sky from './sky';
34
34
  import * as stkgho from './stkgho';
35
+ import * as renzo from './renzo';
35
36
  import * as etherfi from './etherfi';
36
- export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, stkgho, etherfi, };
37
+ export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, stkgho, renzo, etherfi, };
@@ -0,0 +1,14 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * MorphoTokenWrapAction - Wraps Legacy MORPHO token on wallet to new Wrapped MORPHO token
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export declare class MorphoTokenWrapAction extends Action {
9
+ /**
10
+ * @param to - The address to which to send the new Wrapped MORPHO tokens
11
+ * @param amount - The amount of Legacy MORPHO tokens to wrap, if type(uint256).max wraps whole wallet balance
12
+ */
13
+ constructor(to: EthAddress, amount: uint256);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * MorphoTokenWrapAction - Wraps Legacy MORPHO token on wallet to new Wrapped MORPHO token
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export class MorphoTokenWrapAction extends Action {
9
+ /**
10
+ * @param to - The address to which to send the new Wrapped MORPHO tokens
11
+ * @param amount - The amount of Legacy MORPHO tokens to wrap, if type(uint256).max wraps whole wallet balance
12
+ */
13
+ constructor(to, amount) {
14
+ super('MorphoTokenWrap', getAddr('MorphoTokenWrap'), ['address', 'uint256'], [to, amount]);
15
+ this.mappableArgs = [
16
+ this.args[0],
17
+ this.args[1],
18
+ ];
19
+ }
20
+ }
@@ -6,3 +6,4 @@ export * from './MorphoBlueWithdrawCollateralAction';
6
6
  export * from './MorphoBlueWithdrawAction';
7
7
  export * from './MorphoBlueSetAuthAction';
8
8
  export * from './MorphoBlueSetAuthWithSigAction';
9
+ export * from './MorphoTokenWrapAction';
@@ -6,3 +6,4 @@ export * from './MorphoBlueWithdrawCollateralAction';
6
6
  export * from './MorphoBlueWithdrawAction';
7
7
  export * from './MorphoBlueSetAuthAction';
8
8
  export * from './MorphoBlueSetAuthWithSigAction';
9
+ export * from './MorphoTokenWrapAction';
@@ -0,0 +1,19 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * RenzoStakeAction - Supplies ETH (action receives WETH) to Renzo for ETH2 Staking. Receives ezETH in return
5
+ *
6
+ * @category Renzo
7
+ */
8
+ export declare class RenzoStakeAction extends Action {
9
+ /**
10
+ * @param amount - amount of WETH to pull
11
+ * @param from - address from which to pull WETH from
12
+ * @param to - address where received ezETH will be sent to
13
+ */
14
+ constructor(amount: uint256, from: EthAddress, to: EthAddress);
15
+ getAssetsToApprove(): Promise<{
16
+ asset: string;
17
+ owner: any;
18
+ }[]>;
19
+ }
@@ -0,0 +1,39 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAssetInfo } from '@defisaver/tokens';
11
+ import { Action } from '../../Action';
12
+ import { getAddr } from '../../addresses';
13
+ import { requireAddress } from '../../utils/general';
14
+ /**
15
+ * RenzoStakeAction - Supplies ETH (action receives WETH) to Renzo for ETH2 Staking. Receives ezETH in return
16
+ *
17
+ * @category Renzo
18
+ */
19
+ export class RenzoStakeAction extends Action {
20
+ /**
21
+ * @param amount - amount of WETH to pull
22
+ * @param from - address from which to pull WETH from
23
+ * @param to - address where received ezETH will be sent to
24
+ */
25
+ constructor(amount, from, to) {
26
+ requireAddress(to);
27
+ super('RenzoStake', getAddr('RenzoStake'), ['uint256', 'address', 'address'], [amount, from, to]);
28
+ this.mappableArgs = [
29
+ this.args[0],
30
+ this.args[1],
31
+ this.args[2],
32
+ ];
33
+ }
34
+ getAssetsToApprove() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return [{ asset: getAssetInfo('WETH').address, owner: this.args[1] }];
37
+ });
38
+ }
39
+ }
@@ -0,0 +1 @@
1
+ export * from './RenzoStakeAction';
@@ -0,0 +1 @@
1
+ export * from './RenzoStakeAction';
@@ -203,6 +203,7 @@ export declare const actionAddresses: {
203
203
  MorphoBluePayback: string;
204
204
  MorphoBlueSetAuth: string;
205
205
  MorphoBlueSetAuthWithSig: string;
206
+ MorphoTokenWrap: string;
206
207
  LlamaLendCreate: string;
207
208
  LlamaLendSupply: string;
208
209
  LlamaLendBorrow: string;
@@ -221,6 +222,7 @@ export declare const actionAddresses: {
221
222
  EulerV2CollateralSwitch: string;
222
223
  EulerV2View: string;
223
224
  MerklClaim: string;
225
+ RenzoStake: string;
224
226
  EtherFiStake: string;
225
227
  EtherFiWrap: string;
226
228
  EtherFiUnwrap: string;
@@ -436,6 +438,7 @@ export declare const actionAddresses: {
436
438
  MorphoBluePayback?: undefined;
437
439
  MorphoBlueSetAuth?: undefined;
438
440
  MorphoBlueSetAuthWithSig?: undefined;
441
+ MorphoTokenWrap?: undefined;
439
442
  LlamaLendCreate?: undefined;
440
443
  LlamaLendSupply?: undefined;
441
444
  LlamaLendBorrow?: undefined;
@@ -454,6 +457,7 @@ export declare const actionAddresses: {
454
457
  EulerV2CollateralSwitch?: undefined;
455
458
  EulerV2View?: undefined;
456
459
  MerklClaim?: undefined;
460
+ RenzoStake?: undefined;
457
461
  EtherFiStake?: undefined;
458
462
  EtherFiWrap?: undefined;
459
463
  EtherFiUnwrap?: undefined;
@@ -674,6 +678,7 @@ export declare const actionAddresses: {
674
678
  MorphoBluePayback?: undefined;
675
679
  MorphoBlueSetAuth?: undefined;
676
680
  MorphoBlueSetAuthWithSig?: undefined;
681
+ MorphoTokenWrap?: undefined;
677
682
  EulerV2Supply?: undefined;
678
683
  EulerV2Withdraw?: undefined;
679
684
  EulerV2Borrow?: undefined;
@@ -681,6 +686,7 @@ export declare const actionAddresses: {
681
686
  EulerV2CollateralSwitch?: undefined;
682
687
  EulerV2View?: undefined;
683
688
  MerklClaim?: undefined;
689
+ RenzoStake?: undefined;
684
690
  EtherFiStake?: undefined;
685
691
  EtherFiWrap?: undefined;
686
692
  EtherFiUnwrap?: undefined;
@@ -891,6 +897,7 @@ export declare const actionAddresses: {
891
897
  CurveUsdGetDebt?: undefined;
892
898
  CurveUsdCollRatioTrigger?: undefined;
893
899
  CurveUsdCollRatioCheck?: undefined;
900
+ MorphoTokenWrap?: undefined;
894
901
  LlamaLendCreate?: undefined;
895
902
  LlamaLendSupply?: undefined;
896
903
  LlamaLendBorrow?: undefined;
@@ -909,6 +916,7 @@ export declare const actionAddresses: {
909
916
  EulerV2CollateralSwitch?: undefined;
910
917
  EulerV2View?: undefined;
911
918
  MerklClaim?: undefined;
919
+ RenzoStake?: undefined;
912
920
  EtherFiStake?: undefined;
913
921
  EtherFiWrap?: undefined;
914
922
  EtherFiUnwrap?: undefined;
@@ -234,6 +234,7 @@ export const actionAddresses = {
234
234
  MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
235
235
  MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
236
236
  MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
237
+ MorphoTokenWrap: '0x71b6d268c2Aabcb0dA16CbA4c77e65d9e29b0644',
237
238
  // llamalend
238
239
  LlamaLendCreate: '0x4349be191ea63173eD98b7fC1b0DeC1ef9Bc6c11',
239
240
  LlamaLendSupply: '0x1900eF943bD1b038c58d9F35C3825F119F9BB730',
@@ -254,6 +255,7 @@ export const actionAddresses = {
254
255
  EulerV2CollateralSwitch: '0x38950b50Fb38aC19D06e8CE5AAE632D6dF1EEb1a',
255
256
  EulerV2View: '0x8932E46Ecf96b5Fe033F5e27Ab6dC755Cb668967',
256
257
  MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5',
258
+ RenzoStake: '0x1E68038608F181432F666bbD2FB5C5a2E1Bf8fd4',
257
259
  // etherFi
258
260
  EtherFiStake: '0x8D9cDA62DC7Bf75f687c6C8729ABB51ac82E20d5',
259
261
  EtherFiWrap: '0x2b10B000292745099Deb15304A247c0816bd8b73',
@@ -214,6 +214,7 @@ declare const actionAddressesAllChains: {
214
214
  MorphoBluePayback: string;
215
215
  MorphoBlueSetAuth: string;
216
216
  MorphoBlueSetAuthWithSig: string;
217
+ MorphoTokenWrap: string;
217
218
  LlamaLendCreate: string;
218
219
  LlamaLendSupply: string;
219
220
  LlamaLendBorrow: string;
@@ -232,6 +233,7 @@ declare const actionAddressesAllChains: {
232
233
  EulerV2CollateralSwitch: string;
233
234
  EulerV2View: string;
234
235
  MerklClaim: string;
236
+ RenzoStake: string;
235
237
  EtherFiStake: string;
236
238
  EtherFiWrap: string;
237
239
  EtherFiUnwrap: string;
@@ -447,6 +449,7 @@ declare const actionAddressesAllChains: {
447
449
  MorphoBluePayback?: undefined;
448
450
  MorphoBlueSetAuth?: undefined;
449
451
  MorphoBlueSetAuthWithSig?: undefined;
452
+ MorphoTokenWrap?: undefined;
450
453
  LlamaLendCreate?: undefined;
451
454
  LlamaLendSupply?: undefined;
452
455
  LlamaLendBorrow?: undefined;
@@ -465,6 +468,7 @@ declare const actionAddressesAllChains: {
465
468
  EulerV2CollateralSwitch?: undefined;
466
469
  EulerV2View?: undefined;
467
470
  MerklClaim?: undefined;
471
+ RenzoStake?: undefined;
468
472
  EtherFiStake?: undefined;
469
473
  EtherFiWrap?: undefined;
470
474
  EtherFiUnwrap?: undefined;
@@ -685,6 +689,7 @@ declare const actionAddressesAllChains: {
685
689
  MorphoBluePayback?: undefined;
686
690
  MorphoBlueSetAuth?: undefined;
687
691
  MorphoBlueSetAuthWithSig?: undefined;
692
+ MorphoTokenWrap?: undefined;
688
693
  EulerV2Supply?: undefined;
689
694
  EulerV2Withdraw?: undefined;
690
695
  EulerV2Borrow?: undefined;
@@ -692,6 +697,7 @@ declare const actionAddressesAllChains: {
692
697
  EulerV2CollateralSwitch?: undefined;
693
698
  EulerV2View?: undefined;
694
699
  MerklClaim?: undefined;
700
+ RenzoStake?: undefined;
695
701
  EtherFiStake?: undefined;
696
702
  EtherFiWrap?: undefined;
697
703
  EtherFiUnwrap?: undefined;
@@ -902,6 +908,7 @@ declare const actionAddressesAllChains: {
902
908
  CurveUsdGetDebt?: undefined;
903
909
  CurveUsdCollRatioTrigger?: undefined;
904
910
  CurveUsdCollRatioCheck?: undefined;
911
+ MorphoTokenWrap?: undefined;
905
912
  LlamaLendCreate?: undefined;
906
913
  LlamaLendSupply?: undefined;
907
914
  LlamaLendBorrow?: undefined;
@@ -920,6 +927,7 @@ declare const actionAddressesAllChains: {
920
927
  EulerV2CollateralSwitch?: undefined;
921
928
  EulerV2View?: undefined;
922
929
  MerklClaim?: undefined;
930
+ RenzoStake?: undefined;
923
931
  EtherFiStake?: undefined;
924
932
  EtherFiWrap?: undefined;
925
933
  EtherFiUnwrap?: undefined;
@@ -1132,6 +1140,7 @@ declare const actionAddresses: (chainId?: null) => {
1132
1140
  MorphoBluePayback: string;
1133
1141
  MorphoBlueSetAuth: string;
1134
1142
  MorphoBlueSetAuthWithSig: string;
1143
+ MorphoTokenWrap: string;
1135
1144
  LlamaLendCreate: string;
1136
1145
  LlamaLendSupply: string;
1137
1146
  LlamaLendBorrow: string;
@@ -1150,6 +1159,7 @@ declare const actionAddresses: (chainId?: null) => {
1150
1159
  EulerV2CollateralSwitch: string;
1151
1160
  EulerV2View: string;
1152
1161
  MerklClaim: string;
1162
+ RenzoStake: string;
1153
1163
  EtherFiStake: string;
1154
1164
  EtherFiWrap: string;
1155
1165
  EtherFiUnwrap: string;
@@ -1365,6 +1375,7 @@ declare const actionAddresses: (chainId?: null) => {
1365
1375
  MorphoBluePayback?: undefined;
1366
1376
  MorphoBlueSetAuth?: undefined;
1367
1377
  MorphoBlueSetAuthWithSig?: undefined;
1378
+ MorphoTokenWrap?: undefined;
1368
1379
  LlamaLendCreate?: undefined;
1369
1380
  LlamaLendSupply?: undefined;
1370
1381
  LlamaLendBorrow?: undefined;
@@ -1383,6 +1394,7 @@ declare const actionAddresses: (chainId?: null) => {
1383
1394
  EulerV2CollateralSwitch?: undefined;
1384
1395
  EulerV2View?: undefined;
1385
1396
  MerklClaim?: undefined;
1397
+ RenzoStake?: undefined;
1386
1398
  EtherFiStake?: undefined;
1387
1399
  EtherFiWrap?: undefined;
1388
1400
  EtherFiUnwrap?: undefined;
@@ -1603,6 +1615,7 @@ declare const actionAddresses: (chainId?: null) => {
1603
1615
  MorphoBluePayback?: undefined;
1604
1616
  MorphoBlueSetAuth?: undefined;
1605
1617
  MorphoBlueSetAuthWithSig?: undefined;
1618
+ MorphoTokenWrap?: undefined;
1606
1619
  EulerV2Supply?: undefined;
1607
1620
  EulerV2Withdraw?: undefined;
1608
1621
  EulerV2Borrow?: undefined;
@@ -1610,6 +1623,7 @@ declare const actionAddresses: (chainId?: null) => {
1610
1623
  EulerV2CollateralSwitch?: undefined;
1611
1624
  EulerV2View?: undefined;
1612
1625
  MerklClaim?: undefined;
1626
+ RenzoStake?: undefined;
1613
1627
  EtherFiStake?: undefined;
1614
1628
  EtherFiWrap?: undefined;
1615
1629
  EtherFiUnwrap?: undefined;
@@ -1820,6 +1834,7 @@ declare const actionAddresses: (chainId?: null) => {
1820
1834
  CurveUsdGetDebt?: undefined;
1821
1835
  CurveUsdCollRatioTrigger?: undefined;
1822
1836
  CurveUsdCollRatioCheck?: undefined;
1837
+ MorphoTokenWrap?: undefined;
1823
1838
  LlamaLendCreate?: undefined;
1824
1839
  LlamaLendSupply?: undefined;
1825
1840
  LlamaLendBorrow?: undefined;
@@ -1838,6 +1853,7 @@ declare const actionAddresses: (chainId?: null) => {
1838
1853
  EulerV2CollateralSwitch?: undefined;
1839
1854
  EulerV2View?: undefined;
1840
1855
  MerklClaim?: undefined;
1856
+ RenzoStake?: undefined;
1841
1857
  EtherFiStake?: undefined;
1842
1858
  EtherFiWrap?: undefined;
1843
1859
  EtherFiUnwrap?: undefined;
@@ -2193,6 +2209,7 @@ declare const _default: {
2193
2209
  MorphoBluePayback: string;
2194
2210
  MorphoBlueSetAuth: string;
2195
2211
  MorphoBlueSetAuthWithSig: string;
2212
+ MorphoTokenWrap: string;
2196
2213
  LlamaLendCreate: string;
2197
2214
  LlamaLendSupply: string;
2198
2215
  LlamaLendBorrow: string;
@@ -2211,6 +2228,7 @@ declare const _default: {
2211
2228
  EulerV2CollateralSwitch: string;
2212
2229
  EulerV2View: string;
2213
2230
  MerklClaim: string;
2231
+ RenzoStake: string;
2214
2232
  EtherFiStake: string;
2215
2233
  EtherFiWrap: string;
2216
2234
  EtherFiUnwrap: string;
@@ -2426,6 +2444,7 @@ declare const _default: {
2426
2444
  MorphoBluePayback?: undefined;
2427
2445
  MorphoBlueSetAuth?: undefined;
2428
2446
  MorphoBlueSetAuthWithSig?: undefined;
2447
+ MorphoTokenWrap?: undefined;
2429
2448
  LlamaLendCreate?: undefined;
2430
2449
  LlamaLendSupply?: undefined;
2431
2450
  LlamaLendBorrow?: undefined;
@@ -2444,6 +2463,7 @@ declare const _default: {
2444
2463
  EulerV2CollateralSwitch?: undefined;
2445
2464
  EulerV2View?: undefined;
2446
2465
  MerklClaim?: undefined;
2466
+ RenzoStake?: undefined;
2447
2467
  EtherFiStake?: undefined;
2448
2468
  EtherFiWrap?: undefined;
2449
2469
  EtherFiUnwrap?: undefined;
@@ -2664,6 +2684,7 @@ declare const _default: {
2664
2684
  MorphoBluePayback?: undefined;
2665
2685
  MorphoBlueSetAuth?: undefined;
2666
2686
  MorphoBlueSetAuthWithSig?: undefined;
2687
+ MorphoTokenWrap?: undefined;
2667
2688
  EulerV2Supply?: undefined;
2668
2689
  EulerV2Withdraw?: undefined;
2669
2690
  EulerV2Borrow?: undefined;
@@ -2671,6 +2692,7 @@ declare const _default: {
2671
2692
  EulerV2CollateralSwitch?: undefined;
2672
2693
  EulerV2View?: undefined;
2673
2694
  MerklClaim?: undefined;
2695
+ RenzoStake?: undefined;
2674
2696
  EtherFiStake?: undefined;
2675
2697
  EtherFiWrap?: undefined;
2676
2698
  EtherFiUnwrap?: undefined;
@@ -2881,6 +2903,7 @@ declare const _default: {
2881
2903
  CurveUsdGetDebt?: undefined;
2882
2904
  CurveUsdCollRatioTrigger?: undefined;
2883
2905
  CurveUsdCollRatioCheck?: undefined;
2906
+ MorphoTokenWrap?: undefined;
2884
2907
  LlamaLendCreate?: undefined;
2885
2908
  LlamaLendSupply?: undefined;
2886
2909
  LlamaLendBorrow?: undefined;
@@ -2899,6 +2922,7 @@ declare const _default: {
2899
2922
  EulerV2CollateralSwitch?: undefined;
2900
2923
  EulerV2View?: undefined;
2901
2924
  MerklClaim?: undefined;
2925
+ RenzoStake?: undefined;
2902
2926
  EtherFiStake?: undefined;
2903
2927
  EtherFiWrap?: undefined;
2904
2928
  EtherFiUnwrap?: undefined;
@@ -3111,6 +3135,7 @@ declare const _default: {
3111
3135
  MorphoBluePayback: string;
3112
3136
  MorphoBlueSetAuth: string;
3113
3137
  MorphoBlueSetAuthWithSig: string;
3138
+ MorphoTokenWrap: string;
3114
3139
  LlamaLendCreate: string;
3115
3140
  LlamaLendSupply: string;
3116
3141
  LlamaLendBorrow: string;
@@ -3129,6 +3154,7 @@ declare const _default: {
3129
3154
  EulerV2CollateralSwitch: string;
3130
3155
  EulerV2View: string;
3131
3156
  MerklClaim: string;
3157
+ RenzoStake: string;
3132
3158
  EtherFiStake: string;
3133
3159
  EtherFiWrap: string;
3134
3160
  EtherFiUnwrap: string;
@@ -3344,6 +3370,7 @@ declare const _default: {
3344
3370
  MorphoBluePayback?: undefined;
3345
3371
  MorphoBlueSetAuth?: undefined;
3346
3372
  MorphoBlueSetAuthWithSig?: undefined;
3373
+ MorphoTokenWrap?: undefined;
3347
3374
  LlamaLendCreate?: undefined;
3348
3375
  LlamaLendSupply?: undefined;
3349
3376
  LlamaLendBorrow?: undefined;
@@ -3362,6 +3389,7 @@ declare const _default: {
3362
3389
  EulerV2CollateralSwitch?: undefined;
3363
3390
  EulerV2View?: undefined;
3364
3391
  MerklClaim?: undefined;
3392
+ RenzoStake?: undefined;
3365
3393
  EtherFiStake?: undefined;
3366
3394
  EtherFiWrap?: undefined;
3367
3395
  EtherFiUnwrap?: undefined;
@@ -3582,6 +3610,7 @@ declare const _default: {
3582
3610
  MorphoBluePayback?: undefined;
3583
3611
  MorphoBlueSetAuth?: undefined;
3584
3612
  MorphoBlueSetAuthWithSig?: undefined;
3613
+ MorphoTokenWrap?: undefined;
3585
3614
  EulerV2Supply?: undefined;
3586
3615
  EulerV2Withdraw?: undefined;
3587
3616
  EulerV2Borrow?: undefined;
@@ -3589,6 +3618,7 @@ declare const _default: {
3589
3618
  EulerV2CollateralSwitch?: undefined;
3590
3619
  EulerV2View?: undefined;
3591
3620
  MerklClaim?: undefined;
3621
+ RenzoStake?: undefined;
3592
3622
  EtherFiStake?: undefined;
3593
3623
  EtherFiWrap?: undefined;
3594
3624
  EtherFiUnwrap?: undefined;
@@ -3799,6 +3829,7 @@ declare const _default: {
3799
3829
  CurveUsdGetDebt?: undefined;
3800
3830
  CurveUsdCollRatioTrigger?: undefined;
3801
3831
  CurveUsdCollRatioCheck?: undefined;
3832
+ MorphoTokenWrap?: undefined;
3802
3833
  LlamaLendCreate?: undefined;
3803
3834
  LlamaLendSupply?: undefined;
3804
3835
  LlamaLendBorrow?: undefined;
@@ -3817,6 +3848,7 @@ declare const _default: {
3817
3848
  EulerV2CollateralSwitch?: undefined;
3818
3849
  EulerV2View?: undefined;
3819
3850
  MerklClaim?: undefined;
3851
+ RenzoStake?: undefined;
3820
3852
  EtherFiStake?: undefined;
3821
3853
  EtherFiWrap?: undefined;
3822
3854
  EtherFiUnwrap?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.2.9-dev-ether-fi",
3
+ "version": "1.2.10-dev-ezeth-weeth",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -23,7 +23,7 @@
23
23
  "license": "ISC",
24
24
  "dependencies": {
25
25
  "@defisaver/eslint-config": "^1.0.0",
26
- "@defisaver/tokens": "^1.5.46",
26
+ "@defisaver/tokens": "^1.5.48",
27
27
  "@ethersproject/address": "^5.0.10",
28
28
  "@ethersproject/solidity": "^5.0.9",
29
29
  "@types/web3-eth-abi": "^1.2.2",
@@ -32,6 +32,7 @@ import * as merkl from './merkl';
32
32
  import * as eulerV2 from './eulerV2';
33
33
  import * as sky from './sky';
34
34
  import * as stkgho from './stkgho';
35
+ import * as renzo from './renzo';
35
36
  import * as etherfi from './etherfi';
36
37
 
37
38
  export {
@@ -69,5 +70,6 @@ export {
69
70
  eulerV2,
70
71
  sky,
71
72
  stkgho,
73
+ renzo,
72
74
  etherfi,
73
75
  };
@@ -0,0 +1,23 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * MorphoTokenWrapAction - Wraps Legacy MORPHO token on wallet to new Wrapped MORPHO token
7
+ *
8
+ * @category Morpho
9
+ */
10
+ export class MorphoTokenWrapAction extends Action {
11
+ /**
12
+ * @param to - The address to which to send the new Wrapped MORPHO tokens
13
+ * @param amount - The amount of Legacy MORPHO tokens to wrap, if type(uint256).max wraps whole wallet balance
14
+ */
15
+ constructor(to:EthAddress, amount:uint256) {
16
+ super('MorphoTokenWrap', getAddr('MorphoTokenWrap'), ['address', 'uint256'], [to, amount]);
17
+
18
+ this.mappableArgs = [
19
+ this.args[0],
20
+ this.args[1],
21
+ ];
22
+ }
23
+ }
@@ -5,4 +5,5 @@ export * from './MorphoBluePaybackAction';
5
5
  export * from './MorphoBlueWithdrawCollateralAction';
6
6
  export * from './MorphoBlueWithdrawAction';
7
7
  export * from './MorphoBlueSetAuthAction';
8
- export * from './MorphoBlueSetAuthWithSigAction';
8
+ export * from './MorphoBlueSetAuthWithSigAction';
9
+ export * from './MorphoTokenWrapAction';
@@ -0,0 +1,33 @@
1
+ import { getAssetInfo } from '@defisaver/tokens';
2
+ import { Action } from '../../Action';
3
+ import { getAddr } from '../../addresses';
4
+ import { EthAddress, uint256 } from '../../types';
5
+ import { requireAddress } from '../../utils/general';
6
+
7
+ /**
8
+ * RenzoStakeAction - Supplies ETH (action receives WETH) to Renzo for ETH2 Staking. Receives ezETH in return
9
+ *
10
+ * @category Renzo
11
+ */
12
+ export class RenzoStakeAction extends Action {
13
+ /**
14
+ * @param amount - amount of WETH to pull
15
+ * @param from - address from which to pull WETH from
16
+ * @param to - address where received ezETH will be sent to
17
+ */
18
+ constructor(amount:uint256, from:EthAddress, to:EthAddress) {
19
+ requireAddress(to);
20
+ super(
21
+ 'RenzoStake', getAddr('RenzoStake'), ['uint256', 'address', 'address'], [amount, from, to],
22
+ );
23
+ this.mappableArgs = [
24
+ this.args[0],
25
+ this.args[1],
26
+ this.args[2],
27
+ ];
28
+ }
29
+
30
+ async getAssetsToApprove() {
31
+ return [{ asset: getAssetInfo('WETH').address, owner: this.args[1] }];
32
+ }
33
+ }
@@ -0,0 +1 @@
1
+ export * from './RenzoStakeAction';
package/src/addresses.ts CHANGED
@@ -271,6 +271,7 @@ export const actionAddresses = {
271
271
  MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
272
272
  MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
273
273
  MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
274
+ MorphoTokenWrap: '0x71b6d268c2Aabcb0dA16CbA4c77e65d9e29b0644',
274
275
 
275
276
  // llamalend
276
277
  LlamaLendCreate: '0x4349be191ea63173eD98b7fC1b0DeC1ef9Bc6c11',
@@ -295,6 +296,8 @@ export const actionAddresses = {
295
296
 
296
297
  MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5',
297
298
 
299
+ RenzoStake: '0x1E68038608F181432F666bbD2FB5C5a2E1Bf8fd4',
300
+
298
301
  // etherFi
299
302
  EtherFiStake: '0x8D9cDA62DC7Bf75f687c6C8729ABB51ac82E20d5',
300
303
  EtherFiWrap: '0x2b10B000292745099Deb15304A247c0816bd8b73',
@@ -0,0 +1,37 @@
1
+ const dfs = require('../../../src');
2
+ const {encodeForDsProxyCall, encodeForRecipe} = require('../../_actionUtils');
3
+ const {assert} = require('chai');
4
+
5
+ describe('Action: MorphoTokenWrapAction', () => {
6
+ let action;
7
+ context('Wraps 100 MORPHO tokens', () => {
8
+ it('constructor', () => {
9
+ const to = '0x80788de454ad3681d357dc7FcB13c72333f684a7';
10
+ const amount = 100;
11
+ action = new dfs.actions.morphoblue.MorphoTokenWrapAction(to, amount);
12
+ assert.equal(action.args[0], to);
13
+ assert.equal(action.args[1], amount);
14
+ })
15
+ it('encodeForDsProxyCall', () => encodeForDsProxyCall(action));
16
+ it('encodeForRecipe', () => encodeForRecipe(action));
17
+ it('getEthValue', async () => {
18
+ const ethValue = await action.getEthValue();
19
+ assert.equal(ethValue, '0');
20
+ })
21
+ })
22
+ context('Wraps MaxUint256 MORPHO tokens', () => {
23
+ it('constructor', () => {
24
+ const to = '0x80788de454ad3681d357dc7FcB13c72333f684a7';
25
+ const amount = '115792089237316195423570985008687907853269984665640564039457584007913129639935';
26
+ action = new dfs.actions.morphoblue.MorphoTokenWrapAction(to, amount);
27
+ assert.equal(action.args[0], to);
28
+ assert.equal(action.args[1], amount);
29
+ })
30
+ it('encodeForDsProxyCall', () => encodeForDsProxyCall(action));
31
+ it('encodeForRecipe', () => encodeForRecipe(action));
32
+ it('getEthValue', async () => {
33
+ const ethValue = await action.getEthValue();
34
+ assert.equal(ethValue, '0');
35
+ })
36
+ })
37
+ })