@defisaver/sdk 1.3.35 → 1.3.37-semi-continuous-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +55 -9
  2. package/docs/DEV.md +63 -0
  3. package/esm/src/Action.js +21 -13
  4. package/esm/src/ActionWithL2.js +4 -0
  5. package/esm/src/Recipe.js +5 -1
  6. package/package.json +3 -7
  7. package/src/Action.ts +18 -9
  8. package/src/ActionWithL2.ts +2 -0
  9. package/src/Recipe.ts +4 -1
  10. package/test/Action.js +83 -3
  11. package/test/ActionWithL2.js +65 -19
  12. package/test/Recipe.js +97 -0
  13. package/tsconfig.json +1 -5
  14. package/umd/index.js +24 -13
  15. package/ACTIONS.md +0 -1765
  16. package/DEV.md +0 -43
  17. package/docs/md/.nojekyll +0 -1
  18. package/docs/md/README.md +0 -12
  19. package/docs/md/classes/AaveBorrowAction.md +0 -458
  20. package/docs/md/classes/AaveClaimStkAaveAction.md +0 -455
  21. package/docs/md/classes/AaveCollateralSwitchAction.md +0 -455
  22. package/docs/md/classes/AavePaybackAction.md +0 -458
  23. package/docs/md/classes/AaveSupplyAction.md +0 -458
  24. package/docs/md/classes/AaveV2FlashLoanAction.md +0 -458
  25. package/docs/md/classes/AaveV2FlashLoanPaybackAction.md +0 -454
  26. package/docs/md/classes/AaveV3ATokenPaybackAction.md +0 -644
  27. package/docs/md/classes/AaveV3BorrowAction.md +0 -606
  28. package/docs/md/classes/AaveV3ClaimRewardsAction.md +0 -603
  29. package/docs/md/classes/AaveV3CollateralSwitchAction.md +0 -603
  30. package/docs/md/classes/AaveV3FlashLoanAction.md +0 -604
  31. package/docs/md/classes/AaveV3FlashLoanPaybackAction.md +0 -454
  32. package/docs/md/classes/AaveV3PaybackAction.md +0 -618
  33. package/docs/md/classes/AaveV3RatioCheckAction.md +0 -454
  34. package/docs/md/classes/AaveV3RatioTrigger.md +0 -454
  35. package/docs/md/classes/AaveV3SetEModeAction.md +0 -601
  36. package/docs/md/classes/AaveV3SupplyAction.md +0 -618
  37. package/docs/md/classes/AaveV3SwapBorrowRateModeAction.md +0 -602
  38. package/docs/md/classes/AaveV3WithdrawAction.md +0 -603
  39. package/docs/md/classes/AaveWithdrawAction.md +0 -456
  40. package/docs/md/classes/Action.md +0 -604
  41. package/docs/md/classes/ActionWithL2.md +0 -612
  42. package/docs/md/classes/AutomationV2Unsub.md +0 -452
  43. package/docs/md/classes/BalancerFlashLoanAction.md +0 -456
  44. package/docs/md/classes/BalancerFlashLoanPaybackAction.md +0 -454
  45. package/docs/md/classes/BalancerV2ClaimAction.md +0 -457
  46. package/docs/md/classes/BalancerV2SupplyAction.md +0 -458
  47. package/docs/md/classes/BalancerV2WithdrawAction.md +0 -470
  48. package/docs/md/classes/CBChickenInAction.md +0 -454
  49. package/docs/md/classes/CBChickenOutAction.md +0 -455
  50. package/docs/md/classes/CBCreateAction.md +0 -454
  51. package/docs/md/classes/CBRedeemAction.md +0 -456
  52. package/docs/md/classes/ChainLinkPriceTrigger.md +0 -453
  53. package/docs/md/classes/ChangeProxyOwnerAction.md +0 -453
  54. package/docs/md/classes/CompV3RatioTrigger.md +0 -454
  55. package/docs/md/classes/CompoundBorrowAction.md +0 -455
  56. package/docs/md/classes/CompoundClaimAction.md +0 -456
  57. package/docs/md/classes/CompoundCollateralSwitchAction.md +0 -454
  58. package/docs/md/classes/CompoundGetDebtAction.md +0 -452
  59. package/docs/md/classes/CompoundPaybackAction.md +0 -456
  60. package/docs/md/classes/CompoundRatioTrigger.md +0 -453
  61. package/docs/md/classes/CompoundSupplyAction.md +0 -456
  62. package/docs/md/classes/CompoundV3AllowAction.md +0 -455
  63. package/docs/md/classes/CompoundV3BorrowAction.md +0 -456
  64. package/docs/md/classes/CompoundV3ClaimAction.md +0 -456
  65. package/docs/md/classes/CompoundV3PaybackAction.md +0 -468
  66. package/docs/md/classes/CompoundV3RatioCheckAction.md +0 -456
  67. package/docs/md/classes/CompoundV3SupplyAction.md +0 -468
  68. package/docs/md/classes/CompoundV3TransferAction.md +0 -457
  69. package/docs/md/classes/CompoundV3WithdrawAction.md +0 -457
  70. package/docs/md/classes/CompoundWithdrawAction.md +0 -455
  71. package/docs/md/classes/ConvexClaimAction.md +0 -466
  72. package/docs/md/classes/ConvexDepositAction.md +0 -468
  73. package/docs/md/classes/ConvexWithdrawAction.md +0 -468
  74. package/docs/md/classes/CurveClaimFeesAction.md +0 -452
  75. package/docs/md/classes/CurveDepositAction.md +0 -467
  76. package/docs/md/classes/CurveGaugeDepositAction.md +0 -455
  77. package/docs/md/classes/CurveGaugeWithdrawAction.md +0 -454
  78. package/docs/md/classes/CurveMintCrvAction.md +0 -452
  79. package/docs/md/classes/CurveStethPoolDepositAction.md +0 -456
  80. package/docs/md/classes/CurveStethPoolWithdrawAction.md +0 -457
  81. package/docs/md/classes/CurveSwapAction.md +0 -457
  82. package/docs/md/classes/CurveWithdrawAction.md +0 -468
  83. package/docs/md/classes/DfsWeb3.md +0 -212
  84. package/docs/md/classes/DyDxFlashLoanAction.md +0 -456
  85. package/docs/md/classes/DyDxFlashLoanPaybackAction.md +0 -454
  86. package/docs/md/classes/DyDxWithdrawAction.md +0 -455
  87. package/docs/md/classes/EulerFlashLoanAction.md +0 -456
  88. package/docs/md/classes/EulerFlashLoanPaybackAction.md +0 -454
  89. package/docs/md/classes/GUniDeposit.md +0 -461
  90. package/docs/md/classes/GUniWithdraw.md +0 -458
  91. package/docs/md/classes/GasFeeAction.md +0 -454
  92. package/docs/md/classes/GasFeeActionL2.md +0 -455
  93. package/docs/md/classes/GasPriceTrigger.md +0 -35
  94. package/docs/md/classes/InstPullTokensAction.md +0 -454
  95. package/docs/md/classes/LidoStakeAction.md +0 -455
  96. package/docs/md/classes/LidoUnwrapAction.md +0 -455
  97. package/docs/md/classes/LidoWrapAction.md +0 -456
  98. package/docs/md/classes/LiquityBorrowAction.md +0 -457
  99. package/docs/md/classes/LiquityClaimAction.md +0 -453
  100. package/docs/md/classes/LiquityClaimSPRewardsAction.md +0 -454
  101. package/docs/md/classes/LiquityClaimStakingRewardsAction.md +0 -454
  102. package/docs/md/classes/LiquityCloseAction.md +0 -454
  103. package/docs/md/classes/LiquityEthGainToTroveAction.md +0 -455
  104. package/docs/md/classes/LiquityOpenAction.md +0 -459
  105. package/docs/md/classes/LiquityPaybackAction.md +0 -456
  106. package/docs/md/classes/LiquityRatioTrigger.md +0 -453
  107. package/docs/md/classes/LiquityRedeemAction.md +0 -461
  108. package/docs/md/classes/LiquitySPDepositAction.md +0 -456
  109. package/docs/md/classes/LiquitySPWithdrawAction.md +0 -458
  110. package/docs/md/classes/LiquityStakeAction.md +0 -456
  111. package/docs/md/classes/LiquitySupplyAction.md +0 -456
  112. package/docs/md/classes/LiquityUnstakeAction.md +0 -458
  113. package/docs/md/classes/LiquityWithdrawAction.md +0 -456
  114. package/docs/md/classes/MStableClaimAction.md +0 -456
  115. package/docs/md/classes/MStableDepositAction.md +0 -461
  116. package/docs/md/classes/MStableWithdrawAction.md +0 -461
  117. package/docs/md/classes/MakerClaimAction.md +0 -455
  118. package/docs/md/classes/MakerFlashLoanAction.md +0 -455
  119. package/docs/md/classes/MakerFlashLoanPaybackAction.md +0 -454
  120. package/docs/md/classes/MakerGenerateAction.md +0 -456
  121. package/docs/md/classes/MakerGiveAction.md +0 -456
  122. package/docs/md/classes/MakerMergeAction.md +0 -455
  123. package/docs/md/classes/MakerOpenVaultAction.md +0 -454
  124. package/docs/md/classes/MakerPaybackAction.md +0 -456
  125. package/docs/md/classes/MakerRatioAction.md +0 -453
  126. package/docs/md/classes/MakerRatioCheckAction.md +0 -457
  127. package/docs/md/classes/MakerRatioTrigger.md +0 -453
  128. package/docs/md/classes/MakerSupplyAction.md +0 -457
  129. package/docs/md/classes/MakerWithdrawAction.md +0 -457
  130. package/docs/md/classes/PullTokenAction.md +0 -455
  131. package/docs/md/classes/RariDepositAction.md +0 -458
  132. package/docs/md/classes/RariWithdrawAction.md +0 -459
  133. package/docs/md/classes/Recipe.md +0 -195
  134. package/docs/md/classes/ReflexerGenerateAction.md +0 -455
  135. package/docs/md/classes/ReflexerNativeUniV2SaviourDepositAction.md +0 -455
  136. package/docs/md/classes/ReflexerNativeUniV2SaviourGetReservesAction.md +0 -454
  137. package/docs/md/classes/ReflexerNativeUniV2SaviourWithdrawAction.md +0 -455
  138. package/docs/md/classes/ReflexerOpenSafeAction.md +0 -453
  139. package/docs/md/classes/ReflexerPaybackAction.md +0 -455
  140. package/docs/md/classes/ReflexerRatioTrigger.md +0 -453
  141. package/docs/md/classes/ReflexerSupplyAction.md +0 -456
  142. package/docs/md/classes/ReflexerWithdrawAction.md +0 -456
  143. package/docs/md/classes/SellAction.md +0 -613
  144. package/docs/md/classes/SendTokenAction.md +0 -467
  145. package/docs/md/classes/SendTokenAndUnwrapAction.md +0 -455
  146. package/docs/md/classes/Strategy.md +0 -195
  147. package/docs/md/classes/SubInputsAction.md +0 -454
  148. package/docs/md/classes/SumInputsAction.md +0 -454
  149. package/docs/md/classes/TimestampTrigger.md +0 -451
  150. package/docs/md/classes/ToggleSubAction.md +0 -454
  151. package/docs/md/classes/TokenBalanceAction.md +0 -452
  152. package/docs/md/classes/TrailingStopTrigger.md +0 -453
  153. package/docs/md/classes/TransferNFTAction.md +0 -454
  154. package/docs/md/classes/UniV3CurrentTickTrigger.md +0 -452
  155. package/docs/md/classes/UniswapSupplyAction.md +0 -461
  156. package/docs/md/classes/UniswapV3CollectAction.md +0 -614
  157. package/docs/md/classes/UniswapV3CreatePoolAction.md +0 -611
  158. package/docs/md/classes/UniswapV3MintAction.md +0 -610
  159. package/docs/md/classes/UniswapV3SupplyAction.md +0 -63
  160. package/docs/md/classes/UniswapV3WithdrawAction.md +0 -618
  161. package/docs/md/classes/UniswapWithdrawAction.md +0 -460
  162. package/docs/md/classes/UnwrapEthAction.md +0 -600
  163. package/docs/md/classes/UpdateSubAction.md +0 -454
  164. package/docs/md/classes/WrapEthAction.md +0 -599
  165. package/docs/md/classes/YearnSupplyAction.md +0 -456
  166. package/docs/md/classes/YearnWithdrawAction.md +0 -456
  167. package/docs/md/modules.md +0 -814
@@ -1,644 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV3ATokenPaybackAction
2
-
3
- # Class: AaveV3ATokenPaybackAction
4
-
5
- AaveV3ATokenPaybackAction - Repay Aave V3 debt using aTokens
6
-
7
- ## Hierarchy
8
-
9
- - [`ActionWithL2`](ActionWithL2.md)
10
-
11
- ↳ **`AaveV3ATokenPaybackAction`**
12
-
13
- ## Table of contents
14
-
15
- ### Constructors
16
-
17
- - [constructor](AaveV3ATokenPaybackAction.md#constructor)
18
-
19
- ### Properties
20
-
21
- - [addressForApproval](AaveV3ATokenPaybackAction.md#addressforapproval)
22
- - [args](AaveV3ATokenPaybackAction.md#args)
23
- - [contractAddress](AaveV3ATokenPaybackAction.md#contractaddress)
24
- - [mappableArgs](AaveV3ATokenPaybackAction.md#mappableargs)
25
- - [name](AaveV3ATokenPaybackAction.md#name)
26
- - [paramTypes](AaveV3ATokenPaybackAction.md#paramtypes)
27
-
28
- ### Methods
29
-
30
- - [\_encodeForCall](AaveV3ATokenPaybackAction.md#_encodeforcall)
31
- - [\_formatType](AaveV3ATokenPaybackAction.md#_formattype)
32
- - [\_getArgumentMapping](AaveV3ATokenPaybackAction.md#_getargumentmapping)
33
- - [\_getArgumentMappingWithSlots](AaveV3ATokenPaybackAction.md#_getargumentmappingwithslots)
34
- - [\_getPlaceholderForType](AaveV3ATokenPaybackAction.md#_getplaceholderfortype)
35
- - [\_replaceWithPlaceholders](AaveV3ATokenPaybackAction.md#_replacewithplaceholders)
36
- - [addressToBytes20](AaveV3ATokenPaybackAction.md#addresstobytes20)
37
- - [boolToBytes1](AaveV3ATokenPaybackAction.md#booltobytes1)
38
- - [encodeForDsProxyCall](AaveV3ATokenPaybackAction.md#encodefordsproxycall)
39
- - [encodeForL2DsProxyCall](AaveV3ATokenPaybackAction.md#encodeforl2dsproxycall)
40
- - [encodeForL2Recipe](AaveV3ATokenPaybackAction.md#encodeforl2recipe)
41
- - [encodeForRecipe](AaveV3ATokenPaybackAction.md#encodeforrecipe)
42
- - [encodeForStrategy](AaveV3ATokenPaybackAction.md#encodeforstrategy)
43
- - [encodeInputs](AaveV3ATokenPaybackAction.md#encodeinputs)
44
- - [getAccessList](AaveV3ATokenPaybackAction.md#getaccesslist)
45
- - [getAssetsToApprove](AaveV3ATokenPaybackAction.md#getassetstoapprove)
46
- - [getEthValue](AaveV3ATokenPaybackAction.md#getethvalue)
47
- - [getId](AaveV3ATokenPaybackAction.md#getid)
48
- - [numberToBytes1](AaveV3ATokenPaybackAction.md#numbertobytes1)
49
- - [numberToBytes2](AaveV3ATokenPaybackAction.md#numbertobytes2)
50
- - [numberToBytes32](AaveV3ATokenPaybackAction.md#numbertobytes32)
51
-
52
- ## Constructors
53
-
54
- ### constructor
55
-
56
- • **new AaveV3ATokenPaybackAction**(`aTokenAddr`, `useDefaultMarket`, `market`, `amount`, `from`, `rateMode`, `assetId`)
57
-
58
- #### Parameters
59
-
60
- | Name | Type |
61
- | :------ | :------ |
62
- | `aTokenAddr` | `string` |
63
- | `useDefaultMarket` | `boolean` |
64
- | `market` | `string` |
65
- | `amount` | `string` |
66
- | `from` | `string` |
67
- | `rateMode` | `string` |
68
- | `assetId` | `string` |
69
-
70
- #### Overrides
71
-
72
- [ActionWithL2](ActionWithL2.md).[constructor](ActionWithL2.md#constructor)
73
-
74
- #### Defined in
75
-
76
- [src/actions/aaveV3/AaveV3ATokenPaybackAction.ts:24](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/aaveV3/AaveV3ATokenPaybackAction.ts#L24)
77
-
78
- ## Properties
79
-
80
- ### addressForApproval
81
-
82
- • **addressForApproval**: `string`
83
-
84
- **`Param`**
85
-
86
- If this is true it defaults to the hardcoded market in contract
87
-
88
- **`Param`**
89
-
90
- Address provider for specific market
91
-
92
- **`Param`**
93
-
94
- Amount of tokens to be payed back (uint.max for full debt)
95
-
96
- **`Param`**
97
-
98
- Where are we pulling the payback aTokens from
99
-
100
- **`Param`**
101
-
102
- Type of borrow debt [Stable: 1, Variable: 2]
103
-
104
- **`Param`**
105
-
106
- address of the aToken to be pulled
107
-
108
- **`Param`**
109
-
110
- The id of the underlying asset to be repaid
111
-
112
- #### Defined in
113
-
114
- [src/actions/aaveV3/AaveV3ATokenPaybackAction.ts:22](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/aaveV3/AaveV3ATokenPaybackAction.ts#L22)
115
-
116
- ___
117
-
118
- ### args
119
-
120
- • **args**: `any`[]
121
-
122
- #### Inherited from
123
-
124
- [ActionWithL2](ActionWithL2.md).[args](ActionWithL2.md#args)
125
-
126
- #### Defined in
127
-
128
- [src/Action.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L18)
129
-
130
- ___
131
-
132
- ### contractAddress
133
-
134
- • **contractAddress**: `string`
135
-
136
- #### Inherited from
137
-
138
- [ActionWithL2](ActionWithL2.md).[contractAddress](ActionWithL2.md#contractaddress)
139
-
140
- #### Defined in
141
-
142
- [src/Action.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L15)
143
-
144
- ___
145
-
146
- ### mappableArgs
147
-
148
- • **mappableArgs**: `any`[]
149
-
150
- #### Inherited from
151
-
152
- [ActionWithL2](ActionWithL2.md).[mappableArgs](ActionWithL2.md#mappableargs)
153
-
154
- #### Defined in
155
-
156
- [src/Action.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L19)
157
-
158
- ___
159
-
160
- ### name
161
-
162
- • **name**: `string`
163
-
164
- #### Inherited from
165
-
166
- [ActionWithL2](ActionWithL2.md).[name](ActionWithL2.md#name)
167
-
168
- #### Defined in
169
-
170
- [src/Action.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L17)
171
-
172
- ___
173
-
174
- ### paramTypes
175
-
176
- • **paramTypes**: (`string` \| `any`[])[]
177
-
178
- #### Inherited from
179
-
180
- [ActionWithL2](ActionWithL2.md).[paramTypes](ActionWithL2.md#paramtypes)
181
-
182
- #### Defined in
183
-
184
- [src/Action.ts:16](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L16)
185
-
186
- ## Methods
187
-
188
- ### \_encodeForCall
189
-
190
- ▸ `Private` **_encodeForCall**(): `string`[]
191
-
192
- Encode arguments for calling the action directly
193
-
194
- #### Returns
195
-
196
- `string`[]
197
-
198
- bytes-encoded args
199
-
200
- #### Inherited from
201
-
202
- [ActionWithL2](ActionWithL2.md).[_encodeForCall](ActionWithL2.md#_encodeforcall)
203
-
204
- #### Defined in
205
-
206
- [src/Action.ts:117](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L117)
207
-
208
- ___
209
-
210
- ### \_formatType
211
-
212
- ▸ `Private` **_formatType**(`paramType`): `string`
213
-
214
- #### Parameters
215
-
216
- | Name | Type |
217
- | :------ | :------ |
218
- | `paramType` | `string` \| `any`[] |
219
-
220
- #### Returns
221
-
222
- `string`
223
-
224
- #### Inherited from
225
-
226
- [ActionWithL2](ActionWithL2.md).[_formatType](ActionWithL2.md#_formattype)
227
-
228
- #### Defined in
229
-
230
- [src/Action.ts:107](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L107)
231
-
232
- ___
233
-
234
- ### \_getArgumentMapping
235
-
236
- ▸ `Private` **_getArgumentMapping**(): `number`[]
237
-
238
- #### Returns
239
-
240
- `number`[]
241
-
242
- #### Inherited from
243
-
244
- [ActionWithL2](ActionWithL2.md).[_getArgumentMapping](ActionWithL2.md#_getargumentmapping)
245
-
246
- #### Defined in
247
-
248
- [src/Action.ts:70](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L70)
249
-
250
- ___
251
-
252
- ### \_getArgumentMappingWithSlots
253
-
254
- ▸ `Private` **_getArgumentMappingWithSlots**(`subSlots`): `number`[]
255
-
256
- #### Parameters
257
-
258
- | Name | Type |
259
- | :------ | :------ |
260
- | `subSlots` | `any`[] |
261
-
262
- #### Returns
263
-
264
- `number`[]
265
-
266
- #### Inherited from
267
-
268
- [ActionWithL2](ActionWithL2.md).[_getArgumentMappingWithSlots](ActionWithL2.md#_getargumentmappingwithslots)
269
-
270
- #### Defined in
271
-
272
- [src/Action.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L49)
273
-
274
- ___
275
-
276
- ### \_getPlaceholderForType
277
-
278
- ▸ `Private` **_getPlaceholderForType**(`type`): `string`
279
-
280
- #### Parameters
281
-
282
- | Name | Type |
283
- | :------ | :------ |
284
- | `type` | `string` |
285
-
286
- #### Returns
287
-
288
- `string`
289
-
290
- #### Inherited from
291
-
292
- [ActionWithL2](ActionWithL2.md).[_getPlaceholderForType](ActionWithL2.md#_getplaceholderfortype)
293
-
294
- #### Defined in
295
-
296
- [src/Action.ts:84](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L84)
297
-
298
- ___
299
-
300
- ### \_replaceWithPlaceholders
301
-
302
- ▸ `Private` **_replaceWithPlaceholders**(`arg`, `paramType`): `any`
303
-
304
- #### Parameters
305
-
306
- | Name | Type |
307
- | :------ | :------ |
308
- | `arg` | `any` |
309
- | `paramType` | `string` \| `any`[] |
310
-
311
- #### Returns
312
-
313
- `any`
314
-
315
- #### Inherited from
316
-
317
- [ActionWithL2](ActionWithL2.md).[_replaceWithPlaceholders](ActionWithL2.md#_replacewithplaceholders)
318
-
319
- #### Defined in
320
-
321
- [src/Action.ts:95](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L95)
322
-
323
- ___
324
-
325
- ### addressToBytes20
326
-
327
- ▸ **addressToBytes20**(`address`): `string`
328
-
329
- #### Parameters
330
-
331
- | Name | Type |
332
- | :------ | :------ |
333
- | `address` | `string` |
334
-
335
- #### Returns
336
-
337
- `string`
338
-
339
- #### Inherited from
340
-
341
- [ActionWithL2](ActionWithL2.md).[addressToBytes20](ActionWithL2.md#addresstobytes20)
342
-
343
- #### Defined in
344
-
345
- [src/ActionWithL2.ts:26](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L26)
346
-
347
- ___
348
-
349
- ### boolToBytes1
350
-
351
- ▸ **boolToBytes1**(`bool`): ``"01"`` \| ``"00"``
352
-
353
- #### Parameters
354
-
355
- | Name | Type |
356
- | :------ | :------ |
357
- | `bool` | `boolean` |
358
-
359
- #### Returns
360
-
361
- ``"01"`` \| ``"00"``
362
-
363
- #### Inherited from
364
-
365
- [ActionWithL2](ActionWithL2.md).[boolToBytes1](ActionWithL2.md#booltobytes1)
366
-
367
- #### Defined in
368
-
369
- [src/ActionWithL2.ts:28](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L28)
370
-
371
- ___
372
-
373
- ### encodeForDsProxyCall
374
-
375
- ▸ **encodeForDsProxyCall**(): (`string` \| `string`[])[]
376
-
377
- Encode arguments for calling the action via DsProxy
378
-
379
- #### Returns
380
-
381
- (`string` \| `string`[])[]
382
-
383
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
384
-
385
- #### Inherited from
386
-
387
- [ActionWithL2](ActionWithL2.md).[encodeForDsProxyCall](ActionWithL2.md#encodefordsproxycall)
388
-
389
- #### Defined in
390
-
391
- [src/Action.ts:135](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L135)
392
-
393
- ___
394
-
395
- ### encodeForL2DsProxyCall
396
-
397
- ▸ **encodeForL2DsProxyCall**(): `string`
398
-
399
- Encode arguments for calling the action via DsProxy
400
-
401
- #### Returns
402
-
403
- `string`
404
-
405
- #### Inherited from
406
-
407
- [ActionWithL2](ActionWithL2.md).[encodeForL2DsProxyCall](ActionWithL2.md#encodeforl2dsproxycall)
408
-
409
- #### Defined in
410
-
411
- [src/ActionWithL2.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L15)
412
-
413
- ___
414
-
415
- ### encodeForL2Recipe
416
-
417
- ▸ **encodeForL2Recipe**(): `string`
418
-
419
- #### Returns
420
-
421
- `string`
422
-
423
- #### Inherited from
424
-
425
- [ActionWithL2](ActionWithL2.md).[encodeForL2Recipe](ActionWithL2.md#encodeforl2recipe)
426
-
427
- #### Defined in
428
-
429
- [src/ActionWithL2.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L17)
430
-
431
- ___
432
-
433
- ### encodeForRecipe
434
-
435
- ▸ **encodeForRecipe**(): (`string` \| `string`[] \| `number`[])[]
436
-
437
- Encodes action for Recipe call
438
-
439
- #### Returns
440
-
441
- (`string` \| `string`[] \| `number`[])[]
442
-
443
- #### Inherited from
444
-
445
- [ActionWithL2](ActionWithL2.md).[encodeForRecipe](ActionWithL2.md#encodeforrecipe)
446
-
447
- #### Defined in
448
-
449
- [src/Action.ts:150](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L150)
450
-
451
- ___
452
-
453
- ### encodeForStrategy
454
-
455
- ▸ **encodeForStrategy**(`subSlots`): (`string` \| `number`[])[]
456
-
457
- #### Parameters
458
-
459
- | Name | Type |
460
- | :------ | :------ |
461
- | `subSlots` | `any` |
462
-
463
- #### Returns
464
-
465
- (`string` \| `number`[])[]
466
-
467
- #### Inherited from
468
-
469
- [ActionWithL2](ActionWithL2.md).[encodeForStrategy](ActionWithL2.md#encodeforstrategy)
470
-
471
- #### Defined in
472
-
473
- [src/Action.ts:159](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L159)
474
-
475
- ___
476
-
477
- ### encodeInputs
478
-
479
- ▸ **encodeInputs**(): `string`
480
-
481
- #### Returns
482
-
483
- `string`
484
-
485
- #### Overrides
486
-
487
- [ActionWithL2](ActionWithL2.md).[encodeInputs](ActionWithL2.md#encodeinputs)
488
-
489
- #### Defined in
490
-
491
- [src/actions/aaveV3/AaveV3ATokenPaybackAction.ts:43](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/aaveV3/AaveV3ATokenPaybackAction.ts#L43)
492
-
493
- ___
494
-
495
- ### getAccessList
496
-
497
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
498
-
499
- Access list for single action
500
-
501
- #### Returns
502
-
503
- [`AccessListItem`](../modules.md#accesslistitem)[]
504
-
505
- #### Inherited from
506
-
507
- [ActionWithL2](ActionWithL2.md).[getAccessList](ActionWithL2.md#getaccesslist)
508
-
509
- #### Defined in
510
-
511
- [src/Action.ts:185](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L185)
512
-
513
- ___
514
-
515
- ### getAssetsToApprove
516
-
517
- ▸ **getAssetsToApprove**(): `Promise`<{ `asset`: `string` ; `owner`: `any` }[]\>
518
-
519
- Assets requiring approval to be used by DsProxy
520
- Approval is done from owner to DsProxy
521
-
522
- #### Returns
523
-
524
- `Promise`<{ `asset`: `string` ; `owner`: `any` }[]\>
525
-
526
- #### Overrides
527
-
528
- [ActionWithL2](ActionWithL2.md).[getAssetsToApprove](ActionWithL2.md#getassetstoapprove)
529
-
530
- #### Defined in
531
-
532
- [src/actions/aaveV3/AaveV3ATokenPaybackAction.ts:38](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/aaveV3/AaveV3ATokenPaybackAction.ts#L38)
533
-
534
- ___
535
-
536
- ### getEthValue
537
-
538
- ▸ **getEthValue**(): `Promise`<`string`\>
539
-
540
- ETH value to be sent with transaction
541
-
542
- #### Returns
543
-
544
- `Promise`<`string`\>
545
-
546
- ETH value in wei
547
-
548
- #### Inherited from
549
-
550
- [ActionWithL2](ActionWithL2.md).[getEthValue](ActionWithL2.md#getethvalue)
551
-
552
- #### Defined in
553
-
554
- [src/ActionWithL2.ts:30](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L30)
555
-
556
- ___
557
-
558
- ### getId
559
-
560
- ▸ `Private` **getId**(): `string`
561
-
562
- #### Returns
563
-
564
- `string`
565
-
566
- #### Inherited from
567
-
568
- [ActionWithL2](ActionWithL2.md).[getId](ActionWithL2.md#getid)
569
-
570
- #### Defined in
571
-
572
- [src/Action.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L42)
573
-
574
- ___
575
-
576
- ### numberToBytes1
577
-
578
- ▸ **numberToBytes1**(`number`): `string`
579
-
580
- #### Parameters
581
-
582
- | Name | Type |
583
- | :------ | :------ |
584
- | `number` | `number` |
585
-
586
- #### Returns
587
-
588
- `string`
589
-
590
- #### Inherited from
591
-
592
- [ActionWithL2](ActionWithL2.md).[numberToBytes1](ActionWithL2.md#numbertobytes1)
593
-
594
- #### Defined in
595
-
596
- [src/ActionWithL2.ts:37](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L37)
597
-
598
- ___
599
-
600
- ### numberToBytes2
601
-
602
- ▸ **numberToBytes2**(`number`): `string`
603
-
604
- #### Parameters
605
-
606
- | Name | Type |
607
- | :------ | :------ |
608
- | `number` | `number` |
609
-
610
- #### Returns
611
-
612
- `string`
613
-
614
- #### Inherited from
615
-
616
- [ActionWithL2](ActionWithL2.md).[numberToBytes2](ActionWithL2.md#numbertobytes2)
617
-
618
- #### Defined in
619
-
620
- [src/ActionWithL2.ts:32](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L32)
621
-
622
- ___
623
-
624
- ### numberToBytes32
625
-
626
- ▸ **numberToBytes32**(`number`): `string`
627
-
628
- #### Parameters
629
-
630
- | Name | Type |
631
- | :------ | :------ |
632
- | `number` | `number` |
633
-
634
- #### Returns
635
-
636
- `string`
637
-
638
- #### Inherited from
639
-
640
- [ActionWithL2](ActionWithL2.md).[numberToBytes32](ActionWithL2.md#numbertobytes32)
641
-
642
- #### Defined in
643
-
644
- [src/ActionWithL2.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L42)