@defisaver/sdk 1.0.67-dev-4 → 1.0.67

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 (31) hide show
  1. package/esm/src/actions/basic/SellAction.js +1 -1
  2. package/esm/src/actions/basic/index.d.ts +0 -3
  3. package/esm/src/actions/basic/index.js +0 -3
  4. package/esm/src/actions/flashloan/FLAction.js +1 -1
  5. package/esm/src/actions/maker/MakerGiveAction.d.ts +2 -1
  6. package/esm/src/actions/maker/MakerGiveAction.js +3 -2
  7. package/esm/src/addresses.d.ts +7 -15
  8. package/esm/src/addresses.js +7 -22
  9. package/esm/src/index.d.ts +28 -60
  10. package/esm/src/triggers/index.d.ts +0 -1
  11. package/esm/src/triggers/index.js +0 -1
  12. package/package.json +1 -1
  13. package/src/actions/basic/SellAction.ts +2 -2
  14. package/src/actions/basic/index.ts +0 -3
  15. package/src/actions/flashloan/FLAction.ts +2 -2
  16. package/src/actions/maker/MakerGiveAction.ts +3 -2
  17. package/src/addresses.ts +7 -22
  18. package/src/triggers/index.ts +0 -2
  19. package/umd/index.js +497 -699
  20. package/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +0 -23
  21. package/esm/src/actions/basic/ExecuteSafeTxAction.js +0 -60
  22. package/esm/src/actions/basic/LimitSellAction.d.ts +0 -24
  23. package/esm/src/actions/basic/LimitSellAction.js +0 -63
  24. package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +0 -15
  25. package/esm/src/actions/basic/RemoveTokenApprovalAction.js +0 -42
  26. package/esm/src/triggers/OffchainPriceTrigger.d.ts +0 -10
  27. package/esm/src/triggers/OffchainPriceTrigger.js +0 -12
  28. package/src/actions/basic/ExecuteSafeTxAction.ts +0 -85
  29. package/src/actions/basic/LimitSellAction.ts +0 -63
  30. package/src/actions/basic/RemoveTokenApprovalAction.ts +0 -39
  31. package/src/triggers/OffchainPriceTrigger.ts +0 -14
@@ -27,7 +27,7 @@ export class SellAction extends ActionWithL2 {
27
27
  */
28
28
  constructor(exchangeOrder, from, to, protocolFee = '0') {
29
29
  requireAddress(to);
30
- super('DFSSellTEMP', getAddr('DFSSellTEMP'), [
30
+ super('DFSSell', getAddr('DFSSell'), [
31
31
  ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
32
32
  'address',
33
33
  'address',
@@ -24,6 +24,3 @@ export * from './TokenizedVaultAdapterDepositAction';
24
24
  export * from './TokenizedVaultAdapterMintAction';
25
25
  export * from './TokenizedVaultAdapterRedeemAction';
26
26
  export * from './TokenizedVaultAdapterWithdrawAction';
27
- export * from './LimitSellAction';
28
- export * from './ExecuteSafeTxAction';
29
- export * from './RemoveTokenApprovalAction';
@@ -24,6 +24,3 @@ export * from './TokenizedVaultAdapterDepositAction';
24
24
  export * from './TokenizedVaultAdapterMintAction';
25
25
  export * from './TokenizedVaultAdapterRedeemAction';
26
26
  export * from './TokenizedVaultAdapterWithdrawAction';
27
- export * from './LimitSellAction';
28
- export * from './ExecuteSafeTxAction';
29
- export * from './RemoveTokenApprovalAction';
@@ -13,7 +13,7 @@ import { getAddr } from '../../addresses';
13
13
  */
14
14
  export class FLAction extends Action {
15
15
  constructor(specificFLAction) {
16
- super('FLActionTEMP', getAddr('FLActionTEMP'), [], []);
16
+ super('FLAction', getAddr('FLAction'), [], []);
17
17
  _FLAction_instances.add(this);
18
18
  this.paramTypes = ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'];
19
19
  this.args = __classPrivateFieldGet(this, _FLAction_instances, "m", _FLAction_handleArgs).call(this, specificFLAction);
@@ -9,7 +9,8 @@ export declare class MakerGiveAction extends Action {
9
9
  /**
10
10
  * @param vaultId
11
11
  * @param newOwner
12
+ * @param createProxy
12
13
  * @param mcdManager
13
14
  */
14
- constructor(vaultId: uint256, newOwner: EthAddress, mcdManager?: EthAddress);
15
+ constructor(vaultId: uint256, newOwner: EthAddress, createProxy: boolean, mcdManager?: EthAddress);
15
16
  }
@@ -10,11 +10,12 @@ export class MakerGiveAction extends Action {
10
10
  /**
11
11
  * @param vaultId
12
12
  * @param newOwner
13
+ * @param createProxy
13
14
  * @param mcdManager
14
15
  */
15
- constructor(vaultId, newOwner, mcdManager = getAddr('McdCdpManager')) {
16
+ constructor(vaultId, newOwner, createProxy, mcdManager = getAddr('McdCdpManager')) {
16
17
  requireAddress(newOwner);
17
- super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'address'], [vaultId, newOwner, mcdManager]);
18
+ super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'bool', 'address'], [vaultId, newOwner, createProxy, mcdManager]);
18
19
  this.mappableArgs = [
19
20
  this.args[0],
20
21
  this.args[1],
@@ -20,7 +20,6 @@ export declare const actionAddresses: {
20
20
  SDaiUnwrap: string;
21
21
  TokenizedVaultAdapter: string;
22
22
  DFSSell: string;
23
- DFSSellTEMP: string;
24
23
  McdGenerate: string;
25
24
  McdGive: string;
26
25
  McdMerge: string;
@@ -98,7 +97,6 @@ export declare const actionAddresses: {
98
97
  FLBalancer: string;
99
98
  FLSpark: string;
100
99
  FLAction: string;
101
- FLActionTEMP: string;
102
100
  FLUniV3: string;
103
101
  FLGho: string;
104
102
  FLMorphoBlue: string;
@@ -205,13 +203,10 @@ export declare const actionAddresses: {
205
203
  AaveV3RatioCheck?: undefined;
206
204
  } | {
207
205
  DFSSell: string;
208
- DFSSellTEMP: string;
209
206
  WrapEth: string;
210
207
  UnwrapEth: string;
211
208
  SendToken: string;
212
209
  PullToken: string;
213
- SumInputs: string;
214
- SubInputs: string;
215
210
  ApproveToken: string;
216
211
  SendTokenAndUnwrap: string;
217
212
  ToggleSub: string;
@@ -232,7 +227,6 @@ export declare const actionAddresses: {
232
227
  FLAaveV3: string;
233
228
  FLBalancer: string;
234
229
  FLAction: string;
235
- FLActionTEMP: string;
236
230
  AaveV3RatioTrigger: string;
237
231
  GasFeeTakerL2: string;
238
232
  AaveV3RatioCheck: string;
@@ -241,6 +235,8 @@ export declare const actionAddresses: {
241
235
  UniSupplyV3: string;
242
236
  UniWithdrawV3: string;
243
237
  UniCreatePoolV3: string;
238
+ SumInputs?: undefined;
239
+ SubInputs?: undefined;
244
240
  AutomationV2Unsub?: undefined;
245
241
  UpdateSub?: undefined;
246
242
  TransferNFT?: undefined;
@@ -408,13 +404,10 @@ export declare const actionAddresses: {
408
404
  LlamaLendSelfLiquidate?: undefined;
409
405
  } | {
410
406
  DFSSell: string;
411
- DFSSellTEMP: string;
412
407
  WrapEth: string;
413
408
  UnwrapEth: string;
414
409
  SendToken: string;
415
410
  PullToken: string;
416
- SumInputs: string;
417
- SubInputs: string;
418
411
  SendTokenAndUnwrap: string;
419
412
  ToggleSub: string;
420
413
  TokenBalance: string;
@@ -439,7 +432,6 @@ export declare const actionAddresses: {
439
432
  FLAaveV3: string;
440
433
  FLBalancer: string;
441
434
  FLAction: string;
442
- FLActionTEMP: string;
443
435
  GasFeeTakerL2: string;
444
436
  AaveV3RatioCheck: string;
445
437
  UniCollectV3: string;
@@ -447,6 +439,8 @@ export declare const actionAddresses: {
447
439
  UniSupplyV3: string;
448
440
  UniWithdrawV3: string;
449
441
  UniCreatePoolV3: string;
442
+ SumInputs?: undefined;
443
+ SubInputs?: undefined;
450
444
  AutomationV2Unsub?: undefined;
451
445
  UpdateSub?: undefined;
452
446
  TransferNFT?: undefined;
@@ -611,20 +605,15 @@ export declare const actionAddresses: {
611
605
  AaveV3RatioTrigger?: undefined;
612
606
  } | {
613
607
  DFSSell: string;
614
- DFSSellTEMP: string;
615
608
  WrapEth: string;
616
609
  UnwrapEth: string;
617
610
  SendToken: string;
618
611
  PullToken: string;
619
- SumInputs: string;
620
- SubInputs: string;
621
612
  TokenBalance: string;
622
613
  ChangeProxyOwner: string;
623
614
  FLAaveV3: string;
624
615
  FLBalancer: string;
625
616
  FLUniV3: string;
626
- FLAction: string;
627
- FLActionTEMP: string;
628
617
  AaveV3Withdraw: string;
629
618
  AaveV3SwapBorrowRateMode: string;
630
619
  AaveV3Supply: string;
@@ -642,6 +631,8 @@ export declare const actionAddresses: {
642
631
  CompV3Supply: string;
643
632
  CompV3Transfer: string;
644
633
  CompV3Withdraw: string;
634
+ SumInputs?: undefined;
635
+ SubInputs?: undefined;
645
636
  AutomationV2Unsub?: undefined;
646
637
  SendTokenAndUnwrap?: undefined;
647
638
  ToggleSub?: undefined;
@@ -716,6 +707,7 @@ export declare const actionAddresses: {
716
707
  FLDyDx?: undefined;
717
708
  FLMaker?: undefined;
718
709
  FLSpark?: undefined;
710
+ FLAction?: undefined;
719
711
  FLGho?: undefined;
720
712
  FLMorphoBlue?: undefined;
721
713
  UniSupply?: undefined;
@@ -22,7 +22,6 @@ export const actionAddresses = {
22
22
  TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
23
23
  // exchange
24
24
  DFSSell: '0x951D7B421f45FF0e4A8ddE0288aE3f9C2C69b784',
25
- DFSSellTEMP: '0x8bfc99652358884AF965324e6A233014510F0CFc',
26
25
  // maker
27
26
  McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
28
27
  McdGive: '0xf9556A87BF424834FDe7De0547b58E36Cb42EF01',
@@ -110,8 +109,7 @@ export const actionAddresses = {
110
109
  FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
111
110
  FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
112
111
  FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
113
- FLAction: '0xC2b92B6c69e5c3b6b29385C1a17FEe906e0CA910',
114
- FLActionTEMP: '0xC2b92B6c69e5c3b6b29385C1a17FEe906e0CA910',
112
+ FLAction: '0x72915D41982DfCAf30b871290618E59C45Edba7F',
115
113
  FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
116
114
  FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
117
115
  FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
@@ -233,14 +231,11 @@ export const actionAddresses = {
233
231
  },
234
232
  [NETWORKS.optimism.chainId]: {
235
233
  DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
236
- DFSSellTEMP: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
237
234
  // basic
238
235
  WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
239
236
  UnwrapEth: '0x1Fa75B00A05C2EbBd0EDF253a63c209966337A0d',
240
237
  SendToken: '0xEbA499702856f1EFda2546e9fEFC1319A3b40538',
241
238
  PullToken: '0x392579E020a688068422A925c85f28bFD12a7EBB',
242
- SumInputs: '0xd19C646Be027a7a04ea4201f116d43659b8b5f65',
243
- SubInputs: '0x60d00020f12dd202eAfDba84e8F69E165a84c64D',
244
239
  ApproveToken: '0xA4161cED7A29F0a3424e464a4a2dBf75888c5BF9',
245
240
  SendTokenAndUnwrap: '0x8000174366066923D554cb466e190258A6FF3b1f',
246
241
  ToggleSub: '0x988C5C24AE6348404196267e19962f36961CAc29',
@@ -262,8 +257,7 @@ export const actionAddresses = {
262
257
  FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
263
258
  FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
264
259
  FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
265
- FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
266
- FLActionTEMP: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
260
+ FLAction: '0xE668197A175E7A2143222a028470c6ABBBD183F6',
267
261
  AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
268
262
  GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
269
263
  AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
@@ -276,14 +270,11 @@ export const actionAddresses = {
276
270
  },
277
271
  [NETWORKS.arbitrum.chainId]: {
278
272
  DFSSell: '0x9109F34AB28D369cF894aF45C50E976B8E312a82',
279
- DFSSellTEMP: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
280
273
  // basic
281
274
  WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
282
275
  UnwrapEth: '0x2B69d494536098700910D167902D1d397dcA2B61',
283
276
  SendToken: '0xb022BaFfcEdc0ceA15aF6B2B744795A12D21F2a9',
284
277
  PullToken: '0xD8B3769f74bd9F196C3416a42a91E786948898e6',
285
- SumInputs: '0xc530f49c11e5946735df8bad41bc6a64d32b56bc',
286
- SubInputs: '0x8ec14f9568e1d7cf73b68df899808abd7fe6fc8d',
287
278
  SendTokenAndUnwrap: '0x0fb867A5Ee1CA9426D3dAb95e613Be166218b977',
288
279
  ToggleSub: '0x71015226EADFd4aC887fB56556F64338e352439b',
289
280
  TokenBalance: '0x483B903E702F60698Dd8124558C6199922737f1F',
@@ -310,8 +301,7 @@ export const actionAddresses = {
310
301
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
311
302
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
312
303
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
313
- FLAction: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3',
314
- FLActionTEMP: '0xab4AA2fcEA33205b44a556f8C48ceC3f21aFf0C3',
304
+ FLAction: '0x1561EAF39c98d45C55C7dC605E627672F4406819',
315
305
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
316
306
  AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
317
307
  // uniswap V3
@@ -324,21 +314,16 @@ export const actionAddresses = {
324
314
  [NETWORKS.base.chainId]: {
325
315
  // Basic
326
316
  DFSSell: '0xCc0f04e8c34B670a1D06f4978C843952F690d3f4',
327
- DFSSellTEMP: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
328
317
  WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
329
318
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
330
319
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
331
320
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
332
- SumInputs: '0xC856ef8fe425B2EFe373e0e7038fAFF4a4f764fE',
333
- SubInputs: '0xd244B1991Fcb8FC0f32FA55bce37714fc5929B95',
334
321
  TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
335
322
  ChangeProxyOwner: '0x1947a44d3717a47556175d64fdc208619aa08874',
336
323
  // Flashloan
337
324
  FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
338
325
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
339
326
  FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
340
- FLAction: '0xAAbd4B0372240E319F9722c4Fd1e2FE0C8d422D2',
341
- FLActionTEMP: '0xAAbd4B0372240E319F9722c4Fd1e2FE0C8d422D2',
342
327
  // AaveV3
343
328
  AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
344
329
  AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
@@ -362,7 +347,7 @@ export const actionAddresses = {
362
347
  };
363
348
  export const otherAddresses = {
364
349
  [NETWORKS.ethereum.chainId]: {
365
- RecipeExecutor: '0x5029336642814bC51a42bA80BF83a6322110035D',
350
+ RecipeExecutor: '0x1D6DEdb49AF91A11B5C5F34954FD3E8cC4f03A86',
366
351
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
367
352
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
368
353
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -381,7 +366,7 @@ export const otherAddresses = {
381
366
  Empty: '0x0000000000000000000000000000000000000000',
382
367
  },
383
368
  [NETWORKS.optimism.chainId]: {
384
- RecipeExecutor: '0xA532771BD90dAf94b456A4acC9E9cbBdF1367572',
369
+ RecipeExecutor: '0x44FDe16DDCd7c02bE28de52CEc08997336051735',
385
370
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
386
371
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
387
372
  DSGuardFactory: '0xc19d0F1E2b38AA283E226Ca4044766A43aA7B02b',
@@ -391,7 +376,7 @@ export const otherAddresses = {
391
376
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
392
377
  },
393
378
  [NETWORKS.arbitrum.chainId]: {
394
- RecipeExecutor: '0x4417bffFD5e3131069f62Fac07e40704EE234404',
379
+ RecipeExecutor: '0xe775c59e5662597bcE8aB4432C06380709554883',
395
380
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
396
381
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
397
382
  DSGuardFactory: '0x5261abC3a94a6475D0A1171daE94A5f84fbaEcD2',
@@ -401,7 +386,7 @@ export const otherAddresses = {
401
386
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
402
387
  },
403
388
  [NETWORKS.base.chainId]: {
404
- RecipeExecutor: '0xd0Ae279e330f98C399375f80968C8bf860202766',
389
+ RecipeExecutor: '0xdDFFd19564F9703800Da8a2FB9c2b4a7242bf01F',
405
390
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
406
391
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
407
392
  DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',