@defisaver/sdk 1.0.67-dev-4 → 1.0.67-dev-6

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,6 +1,6 @@
1
1
  import { AccessListItem, EthAddress } from './types';
2
- declare type ParamTypes = Array<string | Array<any>>;
3
- declare type Args = Array<any>;
2
+ type ParamTypes = Array<string | Array<any>>;
3
+ type Args = Array<any>;
4
4
  /**
5
5
  * Single action that can be executed directly, or combined into a set (ie. supply a vault)
6
6
  *
@@ -0,0 +1,14 @@
1
+ import { SendTokenAction } from '../basic';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * Generalized Flashloan Payback
5
+ *
6
+ * @category Flashloans
7
+ */
8
+ export declare class FLPaybackAction extends SendTokenAction {
9
+ /**
10
+ * @param loanAmount
11
+ * @param tokenAddr
12
+ */
13
+ constructor(loanAmount: uint256, tokenAddr: EthAddress);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { SendTokenAction } from '../basic';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * Generalized Flashloan Payback
5
+ *
6
+ * @category Flashloans
7
+ */
8
+ export class FLPaybackAction extends SendTokenAction {
9
+ /**
10
+ * @param loanAmount
11
+ * @param tokenAddr
12
+ */
13
+ constructor(loanAmount, tokenAddr) {
14
+ super(tokenAddr, getAddr('FLActionTEMP'), loanAmount);
15
+ }
16
+ }
@@ -22,3 +22,4 @@ export * from './GhoFlashLoanAction';
22
22
  export * from './GhoFlashLoanPaybackAction';
23
23
  export * from './MorphoBlueFlashLoanAction';
24
24
  export * from './MorphoBlueFlashLoanPaybackAction';
25
+ export * from './FLPaybackAction';
@@ -22,3 +22,4 @@ export * from './GhoFlashLoanAction';
22
22
  export * from './GhoFlashLoanPaybackAction';
23
23
  export * from './MorphoBlueFlashLoanAction';
24
24
  export * from './MorphoBlueFlashLoanPaybackAction';
25
+ export * from './FLPaybackAction';
@@ -28,4 +28,5 @@ import * as curveusd from './curveusd';
28
28
  import * as spark from './spark';
29
29
  import * as morphoblue from './morpho-blue';
30
30
  import * as llamalend from './llamalend';
31
- 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, };
31
+ import * as merkl from './merkl';
32
+ 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, };
@@ -28,4 +28,5 @@ import * as curveusd from './curveusd';
28
28
  import * as spark from './spark';
29
29
  import * as morphoblue from './morpho-blue';
30
30
  import * as llamalend from './llamalend';
31
- 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, };
31
+ import * as merkl from './merkl';
32
+ 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, };
@@ -0,0 +1,19 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256, bytes32 } from '../../types';
3
+ /**
4
+ * MerklClaimAction - Claim Merkl rewards
5
+ *
6
+ * @category Merkl
7
+ */
8
+ export declare class MerklClaimAction extends Action {
9
+ /**
10
+ * @param users - Array filled with smart wallet addresses for each claim
11
+ * @param tokens - Token that is being claimed
12
+ * @param amounts - Amount that is being claimed
13
+ * @param proofs - Array of merkle proofs
14
+ * @param distinctTokens - Distinct tokens that are claimed inside one claim call
15
+ * @param amountsClaimedPerDistinctToken - Sum of amounts per distinct token being claimed
16
+ * @param to - Address which will receive claimed tokens
17
+ */
18
+ constructor(users: Array<EthAddress>, tokens: Array<EthAddress>, amounts: Array<uint256>, proofs: Array<Array<bytes32>>, distinctTokens: Array<EthAddress>, amountsClaimedPerDistinctToken: Array<uint256>, to: EthAddress);
19
+ }
@@ -0,0 +1,21 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * MerklClaimAction - Claim Merkl rewards
5
+ *
6
+ * @category Merkl
7
+ */
8
+ export class MerklClaimAction extends Action {
9
+ /**
10
+ * @param users - Array filled with smart wallet addresses for each claim
11
+ * @param tokens - Token that is being claimed
12
+ * @param amounts - Amount that is being claimed
13
+ * @param proofs - Array of merkle proofs
14
+ * @param distinctTokens - Distinct tokens that are claimed inside one claim call
15
+ * @param amountsClaimedPerDistinctToken - Sum of amounts per distinct token being claimed
16
+ * @param to - Address which will receive claimed tokens
17
+ */
18
+ constructor(users, tokens, amounts, proofs, distinctTokens, amountsClaimedPerDistinctToken, to) {
19
+ super('MerklClaim', getAddr('MerklClaim'), ['address[]', 'address[]', 'uint256[]', 'bytes32[][]', 'address[]', 'uint256[]', 'address'], [users, tokens, amounts, proofs, distinctTokens, amountsClaimedPerDistinctToken, to]);
20
+ }
21
+ }
@@ -0,0 +1 @@
1
+ export * from './MerklClaimAction';
@@ -0,0 +1 @@
1
+ export * from './MerklClaimAction';
@@ -199,6 +199,7 @@ export declare const actionAddresses: {
199
199
  LlamaLendWithdraw: string;
200
200
  LlamaLendPayback: string;
201
201
  LlamaLendSelfLiquidate: string;
202
+ MerklClaim: string;
202
203
  AaveV3DelegateCredit?: undefined;
203
204
  AaveV3RatioTrigger?: undefined;
204
205
  GasFeeTakerL2?: undefined;
@@ -406,6 +407,7 @@ export declare const actionAddresses: {
406
407
  LlamaLendWithdraw?: undefined;
407
408
  LlamaLendPayback?: undefined;
408
409
  LlamaLendSelfLiquidate?: undefined;
410
+ MerklClaim?: undefined;
409
411
  } | {
410
412
  DFSSell: string;
411
413
  DFSSellTEMP: string;
@@ -607,6 +609,7 @@ export declare const actionAddresses: {
607
609
  LlamaLendWithdraw?: undefined;
608
610
  LlamaLendPayback?: undefined;
609
611
  LlamaLendSelfLiquidate?: undefined;
612
+ MerklClaim?: undefined;
610
613
  AaveV3DelegateCredit?: undefined;
611
614
  AaveV3RatioTrigger?: undefined;
612
615
  } | {
@@ -808,6 +811,7 @@ export declare const actionAddresses: {
808
811
  LlamaLendWithdraw?: undefined;
809
812
  LlamaLendPayback?: undefined;
810
813
  LlamaLendSelfLiquidate?: undefined;
814
+ MerklClaim?: undefined;
811
815
  AaveV3DelegateCredit?: undefined;
812
816
  AaveV3RatioTrigger?: undefined;
813
817
  GasFeeTakerL2?: undefined;
@@ -5,17 +5,17 @@ export const actionAddresses = {
5
5
  WrapEth: '0x8EbBd35f84D7f0DFCBEf08fD30CD09176133251A',
6
6
  UnwrapEth: '0xDB6C8cFDd7c1C0F8895CDBC01Dbf4A6D4B6d2a29',
7
7
  PullToken: '0x254cA89a00d53ab61de2Ba5641DBDC01aE48aed4',
8
- SendToken: '0x5612e490c9549486dF16b34EBfD0E8b6cF6a1717',
8
+ SendToken: '0x5c19aF6F5de91209c3bc2Ba447b1f5eb53c50759',
9
9
  SumInputs: '0x70907d840aBBc984Fd949311d2f005e6aC4a4D7a',
10
10
  SubInputs: '0xe1804b756188F63f723d2FECc02988D0Cc1aB823',
11
11
  ChangeProxyOwner: '0x81cA52CfE66421d0ceF82d5F33230e43b5F23D2B',
12
12
  TokenBalance: '0xa92B177950F1460119940436515FD857C24494BC',
13
13
  AutomationV2Unsub: '0xe35Fb12fE9796847751076aCf5ee7d124108612C',
14
- SendTokenAndUnwrap: '0xeecd376026335261c89faD40D89625391b1eFF6a',
14
+ SendTokenAndUnwrap: '0x4155537e6933E59a62deb68f6ad93d237d07242a',
15
15
  ToggleSub: '0x9A78E9d6538cfDbA0242Ca5eC46771E6132E8085',
16
16
  UpdateSub: '0xF6Cb8f7e61a64075ec8FAC3f298745605E543233',
17
17
  TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
18
- CreateSub: '0x7308e88BB21B934478E75bB6A2143b8cfDFf2961',
18
+ CreateSub: '0xEB13C96257667cF0A037305A46092bf7C70A61e1',
19
19
  ApproveToken: '0xA4161cED7A29F0a3424e464a4a2dBf75888c5BF9',
20
20
  SDaiWrap: '0xac7Ac294F29d818D26Bd9DF86d36904B1Ed346Ae',
21
21
  SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
@@ -107,8 +107,8 @@ export const actionAddresses = {
107
107
  FLAaveV3CarryDebt: '0x7BdD8ACE8a48B7032Df68B7f53E0D6D9Ea9411A7',
108
108
  FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
109
109
  FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
110
- FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
111
- FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
110
+ FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
111
+ FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
112
112
  FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
113
113
  FLAction: '0xC2b92B6c69e5c3b6b29385C1a17FEe906e0CA910',
114
114
  FLActionTEMP: '0xC2b92B6c69e5c3b6b29385C1a17FEe906e0CA910',
@@ -194,21 +194,21 @@ export const actionAddresses = {
194
194
  FetchBondId: '0xA3331A6aE1BC901b8136E6Fe622890B3Fa3dC80e',
195
195
  // CompV3
196
196
  CompV3Allow: '0xC4a80f22bf56E0dFa2CB378561B934F41E14bc9f',
197
- CompV3Borrow: '0x11e7b984299a771C92CD42A87358a32791A75CEA',
197
+ CompV3Borrow: '0xd3e87D6b69d09527624919d6d68868331Ae39Df6',
198
198
  CompV3Claim: '0x4CEa369B63daAc0dA3423c5038a57483c5150986',
199
- CompV3Payback: '0x6d14b9d69aADcb0d31a3e5d89fba75AB053fc9f0',
200
- CompV3Supply: '0xaF36Eca43bb26468078B8163fe5Bc1fCFc292095',
199
+ CompV3Payback: '0xC825e06333a1d0F72334d2D929Ef4D9eb928D691',
200
+ CompV3Supply: '0xcc073e12fE8d8035389954Bf2BF6C3AAcaDaDC39',
201
201
  CompV3Transfer: '0xeD7450e9C17146476137b77198DFfB17857906c4',
202
- CompV3Withdraw: '0x0b0F21EDE32DE4243D9145a899E97FC2366Aec46',
202
+ CompV3Withdraw: '0xf1406deC224750CEfA709e4bcA6a3a3f458F0f7B',
203
203
  // crvUSD
204
204
  CurveUsdBorrow: '0x2512A976227a82Ef0F6bDdb463cBcD5B732596BF',
205
205
  CurveUsdCreate: '0x715B40970dac1cfAf0bB85C4Fe64921b44b3f73e',
206
- CurveUsdPayback: '0xbcAd628159ab0f3d7F391dBb4c3553aFCD61CA80',
206
+ CurveUsdPayback: '0x3Aa0F8Ff9419Cd5f6e73F3274b8bF86965Cd282c',
207
207
  CurveUsdSupply: '0xa55B3CE5ae7E59002f53b2153ABe326823ccCDE2',
208
208
  CurveUsdAdjust: '0x6f69A7d0B1BE7602381d9cCE6B29F05B9D0b85e6',
209
209
  CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
210
210
  CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
211
- CurveUsdRepay: '0xd12785e4834C1421fC7B64ca57d64E886e39b80F',
211
+ CurveUsdRepay: '0x6F91E8671d17ecEE3D3fb17DcCA87E86B8D83807',
212
212
  CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
213
213
  CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
214
214
  CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
@@ -230,6 +230,7 @@ export const actionAddresses = {
230
230
  LlamaLendWithdraw: '0x2593Da3c4110C531541424e9e847cd7905894C52',
231
231
  LlamaLendPayback: '0x5b506b7a0117dbcd086632575da599bb603eb602',
232
232
  LlamaLendSelfLiquidate: '0xe4944e0e46177300fa4c351ef72b95b9655e8394',
233
+ MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5',
233
234
  },
234
235
  [NETWORKS.optimism.chainId]: {
235
236
  DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
@@ -237,12 +238,12 @@ export const actionAddresses = {
237
238
  // basic
238
239
  WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
239
240
  UnwrapEth: '0x1Fa75B00A05C2EbBd0EDF253a63c209966337A0d',
240
- SendToken: '0xEbA499702856f1EFda2546e9fEFC1319A3b40538',
241
+ SendToken: '0xA9ae6D43C259697384AdAC38bA3c7b76Bff56408',
241
242
  PullToken: '0x392579E020a688068422A925c85f28bFD12a7EBB',
242
243
  SumInputs: '0xd19C646Be027a7a04ea4201f116d43659b8b5f65',
243
244
  SubInputs: '0x60d00020f12dd202eAfDba84e8F69E165a84c64D',
244
245
  ApproveToken: '0xA4161cED7A29F0a3424e464a4a2dBf75888c5BF9',
245
- SendTokenAndUnwrap: '0x8000174366066923D554cb466e190258A6FF3b1f',
246
+ SendTokenAndUnwrap: '0xd4f69250cb4d1f083Dd372FEace391A16ABbfBDc',
246
247
  ToggleSub: '0x988C5C24AE6348404196267e19962f36961CAc29',
247
248
  TokenBalance: '0xC6FF5b01f7c7b35b6e093fF70D2332B361C5Be5A',
248
249
  TokenizedVaultAdapter: '0xdf31669FEd440f5BfF658ca0bBF0D22B8abdeb73',
@@ -280,11 +281,11 @@ export const actionAddresses = {
280
281
  // basic
281
282
  WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
282
283
  UnwrapEth: '0x2B69d494536098700910D167902D1d397dcA2B61',
283
- SendToken: '0xb022BaFfcEdc0ceA15aF6B2B744795A12D21F2a9',
284
+ SendToken: '0x57E4563D9fA4cbaA174ce7B918ccBb6A3F51665b',
284
285
  PullToken: '0xD8B3769f74bd9F196C3416a42a91E786948898e6',
285
286
  SumInputs: '0xc530f49c11e5946735df8bad41bc6a64d32b56bc',
286
287
  SubInputs: '0x8ec14f9568e1d7cf73b68df899808abd7fe6fc8d',
287
- SendTokenAndUnwrap: '0x0fb867A5Ee1CA9426D3dAb95e613Be166218b977',
288
+ SendTokenAndUnwrap: '0x009C5B1c7C844Bd662Da3991295b1B3Bd71a430c',
288
289
  ToggleSub: '0x71015226EADFd4aC887fB56556F64338e352439b',
289
290
  TokenBalance: '0x483B903E702F60698Dd8124558C6199922737f1F',
290
291
  TokenizedVaultAdapter: '0xD05C512bDFf6D3eAc5328807B3bC075F35271167',
@@ -210,6 +210,7 @@ declare const actionAddressesAllChains: {
210
210
  LlamaLendWithdraw: string;
211
211
  LlamaLendPayback: string;
212
212
  LlamaLendSelfLiquidate: string;
213
+ MerklClaim: string;
213
214
  AaveV3DelegateCredit?: undefined;
214
215
  AaveV3RatioTrigger?: undefined;
215
216
  GasFeeTakerL2?: undefined;
@@ -417,6 +418,7 @@ declare const actionAddressesAllChains: {
417
418
  LlamaLendWithdraw?: undefined;
418
419
  LlamaLendPayback?: undefined;
419
420
  LlamaLendSelfLiquidate?: undefined;
421
+ MerklClaim?: undefined;
420
422
  } | {
421
423
  DFSSell: string;
422
424
  DFSSellTEMP: string;
@@ -618,6 +620,7 @@ declare const actionAddressesAllChains: {
618
620
  LlamaLendWithdraw?: undefined;
619
621
  LlamaLendPayback?: undefined;
620
622
  LlamaLendSelfLiquidate?: undefined;
623
+ MerklClaim?: undefined;
621
624
  AaveV3DelegateCredit?: undefined;
622
625
  AaveV3RatioTrigger?: undefined;
623
626
  } | {
@@ -819,6 +822,7 @@ declare const actionAddressesAllChains: {
819
822
  LlamaLendWithdraw?: undefined;
820
823
  LlamaLendPayback?: undefined;
821
824
  LlamaLendSelfLiquidate?: undefined;
825
+ MerklClaim?: undefined;
822
826
  AaveV3DelegateCredit?: undefined;
823
827
  AaveV3RatioTrigger?: undefined;
824
828
  GasFeeTakerL2?: undefined;
@@ -1024,6 +1028,7 @@ declare const actionAddresses: (chainId?: null) => {
1024
1028
  LlamaLendWithdraw: string;
1025
1029
  LlamaLendPayback: string;
1026
1030
  LlamaLendSelfLiquidate: string;
1031
+ MerklClaim: string;
1027
1032
  AaveV3DelegateCredit?: undefined;
1028
1033
  AaveV3RatioTrigger?: undefined;
1029
1034
  GasFeeTakerL2?: undefined;
@@ -1231,6 +1236,7 @@ declare const actionAddresses: (chainId?: null) => {
1231
1236
  LlamaLendWithdraw?: undefined;
1232
1237
  LlamaLendPayback?: undefined;
1233
1238
  LlamaLendSelfLiquidate?: undefined;
1239
+ MerklClaim?: undefined;
1234
1240
  } | {
1235
1241
  DFSSell: string;
1236
1242
  DFSSellTEMP: string;
@@ -1432,6 +1438,7 @@ declare const actionAddresses: (chainId?: null) => {
1432
1438
  LlamaLendWithdraw?: undefined;
1433
1439
  LlamaLendPayback?: undefined;
1434
1440
  LlamaLendSelfLiquidate?: undefined;
1441
+ MerklClaim?: undefined;
1435
1442
  AaveV3DelegateCredit?: undefined;
1436
1443
  AaveV3RatioTrigger?: undefined;
1437
1444
  } | {
@@ -1633,6 +1640,7 @@ declare const actionAddresses: (chainId?: null) => {
1633
1640
  LlamaLendWithdraw?: undefined;
1634
1641
  LlamaLendPayback?: undefined;
1635
1642
  LlamaLendSelfLiquidate?: undefined;
1643
+ MerklClaim?: undefined;
1636
1644
  AaveV3DelegateCredit?: undefined;
1637
1645
  AaveV3RatioTrigger?: undefined;
1638
1646
  GasFeeTakerL2?: undefined;
@@ -1981,6 +1989,7 @@ declare const _default: {
1981
1989
  LlamaLendWithdraw: string;
1982
1990
  LlamaLendPayback: string;
1983
1991
  LlamaLendSelfLiquidate: string;
1992
+ MerklClaim: string;
1984
1993
  AaveV3DelegateCredit?: undefined;
1985
1994
  AaveV3RatioTrigger?: undefined;
1986
1995
  GasFeeTakerL2?: undefined;
@@ -2188,6 +2197,7 @@ declare const _default: {
2188
2197
  LlamaLendWithdraw?: undefined;
2189
2198
  LlamaLendPayback?: undefined;
2190
2199
  LlamaLendSelfLiquidate?: undefined;
2200
+ MerklClaim?: undefined;
2191
2201
  } | {
2192
2202
  DFSSell: string;
2193
2203
  DFSSellTEMP: string;
@@ -2389,6 +2399,7 @@ declare const _default: {
2389
2399
  LlamaLendWithdraw?: undefined;
2390
2400
  LlamaLendPayback?: undefined;
2391
2401
  LlamaLendSelfLiquidate?: undefined;
2402
+ MerklClaim?: undefined;
2392
2403
  AaveV3DelegateCredit?: undefined;
2393
2404
  AaveV3RatioTrigger?: undefined;
2394
2405
  } | {
@@ -2590,6 +2601,7 @@ declare const _default: {
2590
2601
  LlamaLendWithdraw?: undefined;
2591
2602
  LlamaLendPayback?: undefined;
2592
2603
  LlamaLendSelfLiquidate?: undefined;
2604
+ MerklClaim?: undefined;
2593
2605
  AaveV3DelegateCredit?: undefined;
2594
2606
  AaveV3RatioTrigger?: undefined;
2595
2607
  GasFeeTakerL2?: undefined;
@@ -2795,6 +2807,7 @@ declare const _default: {
2795
2807
  LlamaLendWithdraw: string;
2796
2808
  LlamaLendPayback: string;
2797
2809
  LlamaLendSelfLiquidate: string;
2810
+ MerklClaim: string;
2798
2811
  AaveV3DelegateCredit?: undefined;
2799
2812
  AaveV3RatioTrigger?: undefined;
2800
2813
  GasFeeTakerL2?: undefined;
@@ -3002,6 +3015,7 @@ declare const _default: {
3002
3015
  LlamaLendWithdraw?: undefined;
3003
3016
  LlamaLendPayback?: undefined;
3004
3017
  LlamaLendSelfLiquidate?: undefined;
3018
+ MerklClaim?: undefined;
3005
3019
  } | {
3006
3020
  DFSSell: string;
3007
3021
  DFSSellTEMP: string;
@@ -3203,6 +3217,7 @@ declare const _default: {
3203
3217
  LlamaLendWithdraw?: undefined;
3204
3218
  LlamaLendPayback?: undefined;
3205
3219
  LlamaLendSelfLiquidate?: undefined;
3220
+ MerklClaim?: undefined;
3206
3221
  AaveV3DelegateCredit?: undefined;
3207
3222
  AaveV3RatioTrigger?: undefined;
3208
3223
  } | {
@@ -3404,6 +3419,7 @@ declare const _default: {
3404
3419
  LlamaLendWithdraw?: undefined;
3405
3420
  LlamaLendPayback?: undefined;
3406
3421
  LlamaLendSelfLiquidate?: undefined;
3422
+ MerklClaim?: undefined;
3407
3423
  AaveV3DelegateCredit?: undefined;
3408
3424
  AaveV3RatioTrigger?: undefined;
3409
3425
  GasFeeTakerL2?: undefined;
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class CurveUsdHealthRatioTrigger extends Action {
9
+ constructor(user: EthAddress, controller: EthAddress, ratio: uint256);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class CurveUsdHealthRatioTrigger extends Action {
9
+ constructor(user, controller, ratio) {
10
+ super('CurveUsdHealthRatioTrigger', getAddr('CurveUsdHealthRatioTrigger'), [['address', 'address', 'uint256']], [[user, controller, ratio]]);
11
+ }
12
+ }
@@ -17,5 +17,6 @@ export * from './SparkRatioTrigger';
17
17
  export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
+ export * from './CurveUsdHealthRatioTrigger';
20
21
  export * from './MorphoBlueRatioTrigger';
21
22
  export * from './OffchainPriceTrigger';
@@ -17,5 +17,6 @@ export * from './SparkRatioTrigger';
17
17
  export * from './SparkQuotePriceTrigger';
18
18
  export * from './LiquityDebtInFrontWithLimitTrigger';
19
19
  export * from './CurveUsdCollRatioTrigger';
20
+ export * from './CurveUsdHealthRatioTrigger';
20
21
  export * from './MorphoBlueRatioTrigger';
21
22
  export * from './OffchainPriceTrigger';
@@ -1,17 +1,17 @@
1
- declare type AccessListItem = {
1
+ type AccessListItem = {
2
2
  address: EthAddress;
3
3
  storageKeys: Array<any>;
4
4
  };
5
- declare type AccessList = Array<Array<any>>;
6
- declare type AccessLists = {
5
+ type AccessList = Array<Array<any>>;
6
+ type AccessLists = {
7
7
  [key: string]: AccessList;
8
8
  };
9
- declare type Config = {
9
+ type Config = {
10
10
  chainId: number;
11
11
  testingMode: boolean;
12
12
  [key: string]: any;
13
13
  };
14
- declare type Network = {
14
+ type Network = {
15
15
  chainId: number;
16
16
  chainName: string;
17
17
  blockExplorerUrls: Array<string>;
@@ -23,24 +23,24 @@ declare type Network = {
23
23
  symbol: string;
24
24
  };
25
25
  };
26
- declare type Networks = {
26
+ type Networks = {
27
27
  ethereum: Network;
28
28
  optimism: Network;
29
29
  arbitrum: Network;
30
30
  base: Network;
31
31
  };
32
- declare type EthAddress = string;
33
- declare type bytes32 = string;
34
- declare type bytes = string | Array<any>;
35
- declare type uint256 = string;
36
- declare type uint32 = string;
37
- declare type uint160 = string;
38
- declare type uint128 = string;
39
- declare type uint80 = string;
40
- declare type uint64 = string;
41
- declare type uint24 = string;
42
- declare type uint16 = string;
43
- declare type uint8 = string;
44
- declare type int256 = string;
45
- declare type int24 = string;
32
+ type EthAddress = string;
33
+ type bytes32 = string;
34
+ type bytes = string | Array<any>;
35
+ type uint256 = string;
36
+ type uint32 = string;
37
+ type uint160 = string;
38
+ type uint128 = string;
39
+ type uint80 = string;
40
+ type uint64 = string;
41
+ type uint24 = string;
42
+ type uint16 = string;
43
+ type uint8 = string;
44
+ type int256 = string;
45
+ type int24 = string;
46
46
  export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint32, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.0.67-dev-4",
3
+ "version": "1.0.67-dev-6",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -0,0 +1,18 @@
1
+ import { SendTokenAction } from '../basic';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * Generalized Flashloan Payback
7
+ *
8
+ * @category Flashloans
9
+ */
10
+ export class FLPaybackAction extends SendTokenAction {
11
+ /**
12
+ * @param loanAmount
13
+ * @param tokenAddr
14
+ */
15
+ constructor(loanAmount: uint256, tokenAddr: EthAddress) {
16
+ super(tokenAddr, getAddr('FLActionTEMP'), loanAmount);
17
+ }
18
+ }
@@ -21,4 +21,5 @@ export * from './UniV3FlashLoanPaybackAction';
21
21
  export * from './GhoFlashLoanAction';
22
22
  export * from './GhoFlashLoanPaybackAction';
23
23
  export * from './MorphoBlueFlashLoanAction';
24
- export * from './MorphoBlueFlashLoanPaybackAction';
24
+ export * from './MorphoBlueFlashLoanPaybackAction';
25
+ export * from './FLPaybackAction';
@@ -28,6 +28,7 @@ import * as curveusd from './curveusd';
28
28
  import * as spark from './spark';
29
29
  import * as morphoblue from './morpho-blue';
30
30
  import * as llamalend from './llamalend';
31
+ import * as merkl from './merkl';
31
32
 
32
33
  export {
33
34
  aave,
@@ -60,4 +61,5 @@ export {
60
61
  curveusd,
61
62
  morphoblue,
62
63
  llamalend,
64
+ merkl,
63
65
  };
@@ -0,0 +1,36 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256, bytes32 } from '../../types';
4
+
5
+ /**
6
+ * MerklClaimAction - Claim Merkl rewards
7
+ *
8
+ * @category Merkl
9
+ */
10
+ export class MerklClaimAction extends Action {
11
+ /**
12
+ * @param users - Array filled with smart wallet addresses for each claim
13
+ * @param tokens - Token that is being claimed
14
+ * @param amounts - Amount that is being claimed
15
+ * @param proofs - Array of merkle proofs
16
+ * @param distinctTokens - Distinct tokens that are claimed inside one claim call
17
+ * @param amountsClaimedPerDistinctToken - Sum of amounts per distinct token being claimed
18
+ * @param to - Address which will receive claimed tokens
19
+ */
20
+ constructor(
21
+ users:Array<EthAddress>,
22
+ tokens:Array<EthAddress>,
23
+ amounts:Array<uint256>,
24
+ proofs:Array<Array<bytes32>>,
25
+ distinctTokens:Array<EthAddress>,
26
+ amountsClaimedPerDistinctToken:Array<uint256>,
27
+ to:EthAddress,
28
+ ) {
29
+ super(
30
+ 'MerklClaim',
31
+ getAddr('MerklClaim'),
32
+ ['address[]', 'address[]', 'uint256[]', 'bytes32[][]', 'address[]', 'uint256[]', 'address'],
33
+ [users, tokens, amounts, proofs, distinctTokens, amountsClaimedPerDistinctToken, to],
34
+ );
35
+ }
36
+ }
@@ -0,0 +1 @@
1
+ export * from './MerklClaimAction';