@defisaver/sdk 1.0.13 → 1.0.15

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 (37) hide show
  1. package/.eslintrc.js +2 -66
  2. package/docs/md/classes/AaveV3FlashLoanAction.md +5 -5
  3. package/docs/md/classes/AaveV3FlashLoanPaybackAction.md +5 -5
  4. package/docs/md/classes/ActionWithL2.md +1 -1
  5. package/docs/md/classes/SendTokenAction.md +1 -1
  6. package/docs/md/modules.md +2 -2
  7. package/esm/src/Action.d.ts +2 -2
  8. package/esm/src/actions/basic/SendTokensAction.d.ts +15 -0
  9. package/esm/src/actions/basic/SendTokensAction.js +31 -0
  10. package/esm/src/actions/basic/index.d.ts +1 -0
  11. package/esm/src/actions/basic/index.js +1 -0
  12. package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +1 -1
  13. package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +2 -2
  14. package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.d.ts +18 -0
  15. package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.js +20 -0
  16. package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeePaybackAction.d.ts +14 -0
  17. package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeePaybackAction.js +16 -0
  18. package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.d.ts +1 -1
  19. package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.js +1 -1
  20. package/esm/src/actions/flashloan/FLAction.js +3 -3
  21. package/esm/src/actions/flashloan/index.d.ts +2 -0
  22. package/esm/src/actions/flashloan/index.js +2 -0
  23. package/esm/src/addresses.d.ts +3 -0
  24. package/esm/src/addresses.js +10 -7
  25. package/esm/src/index.d.ts +12 -0
  26. package/esm/src/types.d.ts +18 -18
  27. package/package.json +2 -1
  28. package/src/actions/basic/SendTokensAction.ts +39 -0
  29. package/src/actions/basic/index.ts +2 -1
  30. package/src/actions/flashloan/AaveV3FlashLoanAction.ts +2 -2
  31. package/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.ts +27 -0
  32. package/src/actions/flashloan/AaveV3FlashLoanNoFeePaybackAction.ts +18 -0
  33. package/src/actions/flashloan/AaveV3FlashLoanPaybackAction.ts +2 -2
  34. package/src/actions/flashloan/FLAction.ts +3 -3
  35. package/src/actions/flashloan/index.ts +2 -0
  36. package/src/addresses.ts +10 -7
  37. package/umd/index.js +520 -380
package/.eslintrc.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module.exports = {
3
- extends: ['airbnb'],
3
+ extends: ['@defisaver/eslint-config/base-config'],
4
4
  plugins: ['import'],
5
5
  parser: '@babel/eslint-parser',
6
6
  env: {
@@ -10,81 +10,17 @@ module.exports = {
10
10
  overrides: [{
11
11
  // these are overrides for .ts files, meaning these are only applied to .ts files
12
12
  files: ['*.ts', '*.tsx'],
13
- extends: ['airbnb-typescript'],
14
- plugins: ['@typescript-eslint'],
13
+ extends: ['@defisaver/eslint-config/base-config-typescript'],
15
14
  parser: '@typescript-eslint/parser',
16
15
  parserOptions: { project: ['./tsconfig.json'] },
17
16
  // typescript rules must be added here to work
18
- rules: {
19
- '@typescript-eslint/no-unused-vars': 0,
20
- '@typescript-eslint/naming-convention': 0,
21
- '@typescript-eslint/default-param-last': 0,
22
- },
23
17
  }],
24
18
  parserOptions: {
25
19
  ecmaVersion: 2018,
26
20
  sourceType: 'module',
27
21
  },
28
22
  rules: {
29
- 'no-restricted-syntax': 0,
30
- 'no-continue': 0,
31
- 'jsx-a11y/control-has-associated-label': 0,
32
- 'arrow-parens': 0,
33
- 'no-async-promise-executor': 0,
34
- 'no-multiple-empty-lines': [2, { max: 2 }],
35
- camelcase: [2, { allow: ['^UNSAFE_'] }],
36
- 'no-mixed-operators': [2, { allowSamePrecedence: true }],
37
- 'no-plusplus': 0,
38
- 'no-minusminus': 0,
39
- 'prefer-destructuring': 0,
40
23
  'max-len': 0,
41
- 'class-methods-use-this': 0,
42
- 'jsx-a11y/href-no-hash': 'off',
43
- 'jsx-a11y/no-autofocus': 0,
44
- 'no-unused-vars': 0,
45
- 'no-underscore-dangle': 0,
46
- 'global-require': 0,
47
- 'no-console': 0,
48
- 'new-cap': 0,
49
- 'eol-last': 0,
50
- 'jsx-a11y/label-has-for': 0,
51
- 'linebreak-style': 0,
52
- 'consistent-return': 0,
53
- 'import/prefer-default-export': 0,
54
- 'no-unescaped-entities': 0,
55
- 'jsx-a11y/no-static-element-interactions': 0,
56
- 'jsx-a11y/click-events-have-key-events': 0,
57
- 'jsx-a11y/anchor-is-valid': 0,
58
- 'no-shadow': 0,
59
- 'prefer-promise-reject-errors': 0,
60
- 'function-paren-newline': 0,
61
- 'operator-linebreak': 0,
62
- 'jsx-a11y/no-noninteractive-element-interactions': 0,
63
- 'jsx-a11y/label-has-associated-control': 0,
64
- 'no-nested-ternary': 0,
65
- 'import/no-cycle': 0,
66
- 'import/no-unresolved': 0,
67
- 'function-call-argument-newline': 0,
68
- 'import/extensions': [
69
- 'error',
70
- 'always',
71
- {
72
- pattern: {
73
- js: 'never',
74
- ts: 'never',
75
- },
76
- },
77
- ],
78
- },
79
- globals: {
80
- web3: true,
81
- ethereum: true,
82
- $: true,
83
- window: true,
84
- document: true,
85
- fetch: true,
86
- location: true,
87
- localStorage: true,
88
24
  },
89
25
  settings: {
90
26
  'import/resolver': {
@@ -1,6 +1,6 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV3FlashLoanAction
1
+ [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV3FlashLoanNoFeeAction
2
2
 
3
- # Class: AaveV3FlashLoanAction
3
+ # Class: AaveV3FlashLoanNoFeeAction
4
4
 
5
5
  Gets a flashloan from Aave v3
6
6
 
@@ -8,7 +8,7 @@ Gets a flashloan from Aave v3
8
8
 
9
9
  - [`ActionWithL2`](ActionWithL2.md)
10
10
 
11
- ↳ **`AaveV3FlashLoanAction`**
11
+ ↳ **`AaveV3FlashLoanNoFeeAction`**
12
12
 
13
13
  ## Table of contents
14
14
 
@@ -52,7 +52,7 @@ Gets a flashloan from Aave v3
52
52
 
53
53
  ### constructor
54
54
 
55
- • **new AaveV3FlashLoanAction**(`tokens`, `loanAmounts`, `modes`, `loanPayer`, `flParamGetterAddr?`, `flParamGetterData?`)
55
+ • **new AaveV3FlashLoanNoFeeAction**(`tokens`, `loanAmounts`, `modes`, `loanPayer`, `flParamGetterAddr?`, `flParamGetterData?`)
56
56
 
57
57
  #### Parameters
58
58
 
@@ -71,7 +71,7 @@ Gets a flashloan from Aave v3
71
71
 
72
72
  #### Defined in
73
73
 
74
- [src/actions/flashloan/AaveV3FlashLoanAction.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/flashloan/AaveV3FlashLoanAction.ts#L19)
74
+ [src/actions/flashloan/AaveV3FlashLoanNoFeeAction.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/flashloan/AaveV3FlashLoanAction.ts#L19)
75
75
 
76
76
  ## Properties
77
77
 
@@ -1,6 +1,6 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV3FlashLoanPaybackAction
1
+ [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV3FlashLoanNoFeePaybackAction
2
2
 
3
- # Class: AaveV3FlashLoanPaybackAction
3
+ # Class: AaveV3FlashLoanNoFeePaybackAction
4
4
 
5
5
  Pays back a single flashloan from Aave v3
6
6
 
@@ -8,7 +8,7 @@ Pays back a single flashloan from Aave v3
8
8
 
9
9
  - [`SendTokenAction`](SendTokenAction.md)
10
10
 
11
- ↳ **`AaveV3FlashLoanPaybackAction`**
11
+ ↳ **`AaveV3FlashLoanNoFeePaybackAction`**
12
12
 
13
13
  ## Table of contents
14
14
 
@@ -46,7 +46,7 @@ Pays back a single flashloan from Aave v3
46
46
 
47
47
  ### constructor
48
48
 
49
- • **new AaveV3FlashLoanPaybackAction**(`loanAmount`, `tokenAddr`)
49
+ • **new AaveV3FlashLoanNoFeePaybackAction**(`loanAmount`, `tokenAddr`)
50
50
 
51
51
  #### Parameters
52
52
 
@@ -61,7 +61,7 @@ Pays back a single flashloan from Aave v3
61
61
 
62
62
  #### Defined in
63
63
 
64
- [src/actions/flashloan/AaveV3FlashLoanPaybackAction.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/flashloan/AaveV3FlashLoanPaybackAction.ts#L15)
64
+ [src/actions/flashloan/AaveV3FlashLoanNoFeePaybackAction.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/flashloan/AaveV3FlashLoanPaybackAction.ts#L15)
65
65
 
66
66
  ## Properties
67
67
 
@@ -16,7 +16,7 @@ Single L2 action that can be executed directly, or combined into a set (ie. supp
16
16
 
17
17
  ↳↳ [`UnwrapEthAction`](UnwrapEthAction.md)
18
18
 
19
- ↳↳ [`AaveV3FlashLoanAction`](AaveV3FlashLoanAction.md)
19
+ ↳↳ [`AaveV3FlashLoanNoFeeAction`](AaveV3FlashLoanAction.md)
20
20
 
21
21
  ↳↳ [`UniswapV3MintAction`](UniswapV3MintAction.md)
22
22
 
@@ -14,7 +14,7 @@ Transfers specified token from recipe (DsProxy) to specified address
14
14
 
15
15
  ↳↳ [`AaveV2FlashLoanPaybackAction`](AaveV2FlashLoanPaybackAction.md)
16
16
 
17
- ↳↳ [`AaveV3FlashLoanPaybackAction`](AaveV3FlashLoanPaybackAction.md)
17
+ ↳↳ [`AaveV3FlashLoanNoFeePaybackAction`](AaveV3FlashLoanPaybackAction.md)
18
18
 
19
19
  ↳↳ [`MakerFlashLoanPaybackAction`](MakerFlashLoanPaybackAction.md)
20
20
 
@@ -117,8 +117,8 @@
117
117
 
118
118
  - [AaveV2FlashLoanAction](classes/AaveV2FlashLoanAction.md)
119
119
  - [AaveV2FlashLoanPaybackAction](classes/AaveV2FlashLoanPaybackAction.md)
120
- - [AaveV3FlashLoanAction](classes/AaveV3FlashLoanAction.md)
121
- - [AaveV3FlashLoanPaybackAction](classes/AaveV3FlashLoanPaybackAction.md)
120
+ - [AaveV3FlashLoanNoFeeAction](classes/AaveV3FlashLoanAction.md)
121
+ - [AaveV3FlashLoanNoFeePaybackAction](classes/AaveV3FlashLoanPaybackAction.md)
122
122
  - [BalancerFlashLoanAction](classes/BalancerFlashLoanAction.md)
123
123
  - [BalancerFlashLoanPaybackAction](classes/BalancerFlashLoanPaybackAction.md)
124
124
  - [DyDxFlashLoanAction](classes/DyDxFlashLoanAction.md)
@@ -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,15 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * Transfers specified tokens from recipe (DsProxy) to specified addresses
5
+ *
6
+ * @category BasicActions
7
+ */
8
+ export declare class SendTokensAction extends Action {
9
+ /**
10
+ * @param tokens Token addressess
11
+ * @param receivers Transfer recipients
12
+ * @param amounts Transfer amounts (-1 for whole Recipe (DsProxy) balance)
13
+ */
14
+ constructor(tokens: Array<EthAddress>, receivers: Array<EthAddress>, amounts: Array<uint256>);
15
+ }
@@ -0,0 +1,31 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * Transfers specified tokens from recipe (DsProxy) to specified addresses
5
+ *
6
+ * @category BasicActions
7
+ */
8
+ export class SendTokensAction extends Action {
9
+ /**
10
+ * @param tokens Token addressess
11
+ * @param receivers Transfer recipients
12
+ * @param amounts Transfer amounts (-1 for whole Recipe (DsProxy) balance)
13
+ */
14
+ constructor(tokens, receivers, amounts) {
15
+ super('SendTokens', getAddr('SendTokens'), [
16
+ 'address[]',
17
+ 'address[]',
18
+ 'uint256[]',
19
+ ], [tokens, receivers, amounts]);
20
+ this.mappableArgs = [];
21
+ for (let i = 0; i < this.args[0].length; i++) {
22
+ this.mappableArgs.push(this.args[0][i]);
23
+ }
24
+ for (let i = 0; i < this.args[1].length; i++) {
25
+ this.mappableArgs.push(this.args[1][i]);
26
+ }
27
+ for (let i = 0; i < this.args[2].length; i++) {
28
+ this.mappableArgs.push(this.args[2][i]);
29
+ }
30
+ }
31
+ }
@@ -14,4 +14,5 @@ export * from './UpdateSubAction';
14
14
  export * from './ToggleSubAction';
15
15
  export * from './GasFeeActionL2';
16
16
  export * from './TransferNFTAction';
17
+ export * from './SendTokensAction';
17
18
  export * from './CreateSubAction';
@@ -14,4 +14,5 @@ export * from './UpdateSubAction';
14
14
  export * from './ToggleSubAction';
15
15
  export * from './GasFeeActionL2';
16
16
  export * from './TransferNFTAction';
17
+ export * from './SendTokensAction';
17
18
  export * from './CreateSubAction';
@@ -1,7 +1,7 @@
1
1
  import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint256, bytes } from '../../types';
3
3
  /**
4
- * Gets a flashloan from Aave v3
4
+ * Gets a flashloan from Aave v3 with fee enabled
5
5
  *
6
6
  * @category Flashloans
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
- * Gets a flashloan from Aave v3
4
+ * Gets a flashloan from Aave v3 with fee enabled
5
5
  *
6
6
  * @category Flashloans
7
7
  */
@@ -15,6 +15,6 @@ export class AaveV3FlashLoanAction extends ActionWithL2 {
15
15
  * @param flParamGetterData
16
16
  */
17
17
  constructor(tokens, loanAmounts, modes, loanPayer, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
18
- super('FLAaveV3', getAddr('FLAaveV3'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [tokens, loanAmounts, modes, loanPayer, flParamGetterAddr, flParamGetterData, []]);
18
+ super('FLAaveV3WithFee', getAddr('FLAaveV3'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [tokens, loanAmounts, modes, loanPayer, flParamGetterAddr, flParamGetterData, []]);
19
19
  }
20
20
  }
@@ -0,0 +1,18 @@
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
+ import { EthAddress, uint256, bytes } from '../../types';
3
+ /**
4
+ * Gets a flashloan from Aave v3
5
+ *
6
+ * @category Flashloans
7
+ */
8
+ export declare class AaveV3FlashLoanNoFeeAction extends ActionWithL2 {
9
+ /**
10
+ * @param loanAmounts
11
+ * @param tokens
12
+ * @param modes
13
+ * @param loanPayer
14
+ * @param flParamGetterAddr
15
+ * @param flParamGetterData
16
+ */
17
+ constructor(tokens: Array<EthAddress>, loanAmounts: Array<uint256>, modes: Array<uint256>, loanPayer: EthAddress, flParamGetterAddr?: EthAddress, flParamGetterData?: bytes);
18
+ }
@@ -0,0 +1,20 @@
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * Gets a flashloan from Aave v3
5
+ *
6
+ * @category Flashloans
7
+ */
8
+ export class AaveV3FlashLoanNoFeeAction extends ActionWithL2 {
9
+ /**
10
+ * @param loanAmounts
11
+ * @param tokens
12
+ * @param modes
13
+ * @param loanPayer
14
+ * @param flParamGetterAddr
15
+ * @param flParamGetterData
16
+ */
17
+ constructor(tokens, loanAmounts, modes, loanPayer, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
18
+ super('FLAaveV3', getAddr('FLAaveV3NoFee'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [tokens, loanAmounts, modes, loanPayer, flParamGetterAddr, flParamGetterData, []]);
19
+ }
20
+ }
@@ -0,0 +1,14 @@
1
+ import { SendTokenAction } from '../basic';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * Pays back a single flashloan from Aave v3
5
+ *
6
+ * @category Flashloans
7
+ */
8
+ export declare class AaveV3FlashLoanNoFeePaybackAction 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
+ * Pays back a single flashloan from Aave v3
5
+ *
6
+ * @category Flashloans
7
+ */
8
+ export class AaveV3FlashLoanNoFeePaybackAction extends SendTokenAction {
9
+ /**
10
+ * @param loanAmount
11
+ * @param tokenAddr
12
+ */
13
+ constructor(loanAmount, tokenAddr) {
14
+ super(tokenAddr, getAddr('FLAaveV3NoFee'), loanAmount);
15
+ }
16
+ }
@@ -1,7 +1,7 @@
1
1
  import { SendTokenAction } from '../basic';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
- * Pays back a single flashloan from Aave v3
4
+ * Pays back a single flashloan from Aave v3 with fee enabled
5
5
  *
6
6
  * @category Flashloans
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { SendTokenAction } from '../basic';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
- * Pays back a single flashloan from Aave v3
4
+ * Pays back a single flashloan from Aave v3 with fee enabled
5
5
  *
6
6
  * @category Flashloans
7
7
  */
@@ -32,9 +32,6 @@ _FLAction_instances = new WeakSet(), _FLAction_handleArgs = function _FLAction_h
32
32
  if (specificFLAction.constructor.name === 'AaveV2FlashLoanAction') {
33
33
  argsToReturn[5] = [1];
34
34
  }
35
- if (specificFLAction.constructor.name === 'AaveV3FlashLoanAction') {
36
- argsToReturn[5] = [1];
37
- }
38
35
  if (specificFLAction.constructor.name === 'BalancerFlashLoanAction') {
39
36
  argsToReturn[5] = [2];
40
37
  }
@@ -44,5 +41,8 @@ _FLAction_instances = new WeakSet(), _FLAction_handleArgs = function _FLAction_h
44
41
  if (specificFLAction.constructor.name === 'MakerFlashLoanAction') {
45
42
  argsToReturn[5] = [4];
46
43
  }
44
+ if (specificFLAction.constructor.name === 'AaveV3FlashLoanNoFeeAction') {
45
+ argsToReturn[5] = [5];
46
+ }
47
47
  return argsToReturn;
48
48
  };
@@ -4,6 +4,8 @@ export * from './AaveV2FlashLoanAction';
4
4
  export * from './AaveV2FlashLoanPaybackAction';
5
5
  export * from './AaveV3FlashLoanAction';
6
6
  export * from './AaveV3FlashLoanPaybackAction';
7
+ export * from './AaveV3FlashLoanNoFeeAction';
8
+ export * from './AaveV3FlashLoanNoFeePaybackAction';
7
9
  export * from './MakerFlashLoanAction';
8
10
  export * from './MakerFlashLoanPaybackAction';
9
11
  export * from './BalancerFlashLoanAction';
@@ -4,6 +4,8 @@ export * from './AaveV2FlashLoanAction';
4
4
  export * from './AaveV2FlashLoanPaybackAction';
5
5
  export * from './AaveV3FlashLoanAction';
6
6
  export * from './AaveV3FlashLoanPaybackAction';
7
+ export * from './AaveV3FlashLoanNoFeeAction';
8
+ export * from './AaveV3FlashLoanNoFeePaybackAction';
7
9
  export * from './MakerFlashLoanAction';
8
10
  export * from './MakerFlashLoanPaybackAction';
9
11
  export * from './BalancerFlashLoanAction';
@@ -60,6 +60,7 @@ export declare const actionAddresses: {
60
60
  CompGetDebt: string;
61
61
  CompCollateralSwitch: string;
62
62
  FLAaveV2: string;
63
+ FLAaveV3NoFee: string;
63
64
  FLAaveV3: string;
64
65
  FLDyDx: string;
65
66
  FLMaker: string;
@@ -151,6 +152,7 @@ export declare const actionAddresses: {
151
152
  AaveV3SwapBorrowRateMode: string;
152
153
  AaveV3Withdraw: string;
153
154
  AaveV3ClaimRewards: string;
155
+ FLAaveV3NoFee: string;
154
156
  FLAaveV3: string;
155
157
  FLBalancer: string;
156
158
  FLAction: string;
@@ -283,6 +285,7 @@ export declare const actionAddresses: {
283
285
  AaveV3Supply: string;
284
286
  AaveV3SwapBorrowRateMode: string;
285
287
  AaveV3Withdraw: string;
288
+ FLAaveV3NoFee: string;
286
289
  FLAaveV3: string;
287
290
  FLBalancer: string;
288
291
  FLAction: string;
@@ -58,7 +58,7 @@ export const actionAddresses = {
58
58
  MorphoAaveV2Borrow: '0xa85C3E41Bf9F75a381927e1Aa9b00f77C4631109',
59
59
  MorphoAaveV2Payback: '0x5dd0E0835acbb08aa4A4599d70fB2d93969fa7b7',
60
60
  MorphoAaveV2Supply: '0x60ED1Cf5Da785AA4FD4A4fF3f8cFc0682d60E0F3',
61
- MorphoAaveV2Withdraw: '0x391bAbCcBDa1d591a0Bb91730B525d6E596dc88a',
61
+ MorphoAaveV2Withdraw: '0x29a8b5a8889f465c85b778edccf984e44ad70f12',
62
62
  MorphoClaim: '0xa269C841E26EA8Ee1F0350a2E5905F71446998dC',
63
63
  // compound
64
64
  CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
@@ -70,11 +70,12 @@ export const actionAddresses = {
70
70
  CompCollateralSwitch: '0xC3d89139508A3883775D3d1E62E2A0fea363b448',
71
71
  // flashloan
72
72
  FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
73
- FLAaveV3: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
73
+ FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
74
+ FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
74
75
  FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
75
76
  FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
76
77
  FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
77
- FLAction: '0x9eC9E483Edb2dACA782222fF32b261AD56e43879',
78
+ FLAction: '0x72915D41982DfCAf30b871290618E59C45Edba7F',
78
79
  // uniswap
79
80
  UniSupply: '0x9935e12F0218E61c27D7f23eAC9A9D6881a078eC',
80
81
  UniWithdraw: '0xf8bb8F68b0A45DC315F3f7602a60cfb274B00951',
@@ -177,9 +178,10 @@ export const actionAddresses = {
177
178
  AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
178
179
  AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
179
180
  // flashloan
180
- FLAaveV3: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
181
+ FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
182
+ FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
181
183
  FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
182
- FLAction: '0x5fA356C700F0C8A6f445B8a36Eb6e108590919D4',
184
+ FLAction: '0xE668197A175E7A2143222a028470c6ABBBD183F6',
183
185
  AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
184
186
  GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
185
187
  AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
@@ -210,9 +212,10 @@ export const actionAddresses = {
210
212
  AaveV3SwapBorrowRateMode: '0x738042389A8d6B0F6D6ab009c42dfF84ebB737C0',
211
213
  AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
212
214
  // flashloan
213
- FLAaveV3: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
215
+ FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
216
+ FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
214
217
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
215
- FLAction: '0xFbd213073FC4f597C840B1ee202678d210d765fb',
218
+ FLAction: '0x1561EAF39c98d45C55C7dC605E627672F4406819',
216
219
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
217
220
  AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
218
221
  // uniswap V3
@@ -71,6 +71,7 @@ declare const actionAddressesAllChains: {
71
71
  CompGetDebt: string;
72
72
  CompCollateralSwitch: string;
73
73
  FLAaveV2: string;
74
+ FLAaveV3NoFee: string;
74
75
  FLAaveV3: string;
75
76
  FLDyDx: string;
76
77
  FLMaker: string;
@@ -162,6 +163,7 @@ declare const actionAddressesAllChains: {
162
163
  AaveV3SwapBorrowRateMode: string;
163
164
  AaveV3Withdraw: string;
164
165
  AaveV3ClaimRewards: string;
166
+ FLAaveV3NoFee: string;
165
167
  FLAaveV3: string;
166
168
  FLBalancer: string;
167
169
  FLAction: string;
@@ -294,6 +296,7 @@ declare const actionAddressesAllChains: {
294
296
  AaveV3Supply: string;
295
297
  AaveV3SwapBorrowRateMode: string;
296
298
  AaveV3Withdraw: string;
299
+ FLAaveV3NoFee: string;
297
300
  FLAaveV3: string;
298
301
  FLBalancer: string;
299
302
  FLAction: string;
@@ -472,6 +475,7 @@ declare const actionAddresses: (chainId?: null) => {
472
475
  CompGetDebt: string;
473
476
  CompCollateralSwitch: string;
474
477
  FLAaveV2: string;
478
+ FLAaveV3NoFee: string;
475
479
  FLAaveV3: string;
476
480
  FLDyDx: string;
477
481
  FLMaker: string;
@@ -563,6 +567,7 @@ declare const actionAddresses: (chainId?: null) => {
563
567
  AaveV3SwapBorrowRateMode: string;
564
568
  AaveV3Withdraw: string;
565
569
  AaveV3ClaimRewards: string;
570
+ FLAaveV3NoFee: string;
566
571
  FLAaveV3: string;
567
572
  FLBalancer: string;
568
573
  FLAction: string;
@@ -695,6 +700,7 @@ declare const actionAddresses: (chainId?: null) => {
695
700
  AaveV3Supply: string;
696
701
  AaveV3SwapBorrowRateMode: string;
697
702
  AaveV3Withdraw: string;
703
+ FLAaveV3NoFee: string;
698
704
  FLAaveV3: string;
699
705
  FLBalancer: string;
700
706
  FLAction: string;
@@ -970,6 +976,7 @@ declare const _default: {
970
976
  CompGetDebt: string;
971
977
  CompCollateralSwitch: string;
972
978
  FLAaveV2: string;
979
+ FLAaveV3NoFee: string;
973
980
  FLAaveV3: string;
974
981
  FLDyDx: string;
975
982
  FLMaker: string;
@@ -1061,6 +1068,7 @@ declare const _default: {
1061
1068
  AaveV3SwapBorrowRateMode: string;
1062
1069
  AaveV3Withdraw: string;
1063
1070
  AaveV3ClaimRewards: string;
1071
+ FLAaveV3NoFee: string;
1064
1072
  FLAaveV3: string;
1065
1073
  FLBalancer: string;
1066
1074
  FLAction: string;
@@ -1193,6 +1201,7 @@ declare const _default: {
1193
1201
  AaveV3Supply: string;
1194
1202
  AaveV3SwapBorrowRateMode: string;
1195
1203
  AaveV3Withdraw: string;
1204
+ FLAaveV3NoFee: string;
1196
1205
  FLAaveV3: string;
1197
1206
  FLBalancer: string;
1198
1207
  FLAction: string;
@@ -1371,6 +1380,7 @@ declare const _default: {
1371
1380
  CompGetDebt: string;
1372
1381
  CompCollateralSwitch: string;
1373
1382
  FLAaveV2: string;
1383
+ FLAaveV3NoFee: string;
1374
1384
  FLAaveV3: string;
1375
1385
  FLDyDx: string;
1376
1386
  FLMaker: string;
@@ -1462,6 +1472,7 @@ declare const _default: {
1462
1472
  AaveV3SwapBorrowRateMode: string;
1463
1473
  AaveV3Withdraw: string;
1464
1474
  AaveV3ClaimRewards: string;
1475
+ FLAaveV3NoFee: string;
1465
1476
  FLAaveV3: string;
1466
1477
  FLBalancer: string;
1467
1478
  FLAction: string;
@@ -1594,6 +1605,7 @@ declare const _default: {
1594
1605
  AaveV3Supply: string;
1595
1606
  AaveV3SwapBorrowRateMode: string;
1596
1607
  AaveV3Withdraw: string;
1608
+ FLAaveV3NoFee: string;
1597
1609
  FLAaveV3: string;
1598
1610
  FLBalancer: string;
1599
1611
  FLAction: string;
@@ -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,21 +23,21 @@ 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
  };
31
- declare type EthAddress = string;
32
- declare type bytes32 = string;
33
- declare type bytes = string | Array<any>;
34
- declare type uint256 = string;
35
- declare type uint160 = string;
36
- declare type uint128 = string;
37
- declare type uint80 = string;
38
- declare type uint64 = string;
39
- declare type uint24 = string;
40
- declare type uint16 = string;
41
- declare type uint8 = string;
42
- declare type int24 = string;
31
+ type EthAddress = string;
32
+ type bytes32 = string;
33
+ type bytes = string | Array<any>;
34
+ type uint256 = string;
35
+ type uint160 = string;
36
+ type uint128 = string;
37
+ type uint80 = string;
38
+ type uint64 = string;
39
+ type uint24 = string;
40
+ type uint16 = string;
41
+ type uint8 = string;
42
+ type int24 = string;
43
43
  export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint128, uint80, uint64, uint24, uint16, uint8, int24, };