@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,468 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / CompoundV3PaybackAction
2
-
3
- # Class: CompoundV3PaybackAction
4
-
5
- CompoundV3PaybackAction - Repays specified amount of base token
6
-
7
- ## Hierarchy
8
-
9
- - [`Action`](Action.md)
10
-
11
- ↳ **`CompoundV3PaybackAction`**
12
-
13
- ## Table of contents
14
-
15
- ### Constructors
16
-
17
- - [constructor](CompoundV3PaybackAction.md#constructor)
18
-
19
- ### Properties
20
-
21
- - [args](CompoundV3PaybackAction.md#args)
22
- - [contractAddress](CompoundV3PaybackAction.md#contractaddress)
23
- - [mappableArgs](CompoundV3PaybackAction.md#mappableargs)
24
- - [name](CompoundV3PaybackAction.md#name)
25
- - [paramTypes](CompoundV3PaybackAction.md#paramtypes)
26
- - [tokenForApproval](CompoundV3PaybackAction.md#tokenforapproval)
27
-
28
- ### Methods
29
-
30
- - [\_encodeForCall](CompoundV3PaybackAction.md#_encodeforcall)
31
- - [\_formatType](CompoundV3PaybackAction.md#_formattype)
32
- - [\_getArgumentMapping](CompoundV3PaybackAction.md#_getargumentmapping)
33
- - [\_getArgumentMappingWithSlots](CompoundV3PaybackAction.md#_getargumentmappingwithslots)
34
- - [\_getPlaceholderForType](CompoundV3PaybackAction.md#_getplaceholderfortype)
35
- - [\_replaceWithPlaceholders](CompoundV3PaybackAction.md#_replacewithplaceholders)
36
- - [encodeForDsProxyCall](CompoundV3PaybackAction.md#encodefordsproxycall)
37
- - [encodeForL2DsProxyCall](CompoundV3PaybackAction.md#encodeforl2dsproxycall)
38
- - [encodeForL2Recipe](CompoundV3PaybackAction.md#encodeforl2recipe)
39
- - [encodeForRecipe](CompoundV3PaybackAction.md#encodeforrecipe)
40
- - [encodeForStrategy](CompoundV3PaybackAction.md#encodeforstrategy)
41
- - [getAccessList](CompoundV3PaybackAction.md#getaccesslist)
42
- - [getAssetsToApprove](CompoundV3PaybackAction.md#getassetstoapprove)
43
- - [getEthValue](CompoundV3PaybackAction.md#getethvalue)
44
- - [getId](CompoundV3PaybackAction.md#getid)
45
-
46
- ## Constructors
47
-
48
- ### constructor
49
-
50
- • **new CompoundV3PaybackAction**(`market`, `amount`, `from`, `onBehalf`, `asset`)
51
-
52
- #### Parameters
53
-
54
- | Name | Type | Description |
55
- | :------ | :------ | :------ |
56
- | `market` | `string` | Comet proxy address of the market |
57
- | `amount` | `string` | amount of base token to be paid back |
58
- | `from` | `string` | address from which funds are paid |
59
- | `onBehalf` | `string` | address for which the funds are paid back |
60
- | `asset` | `string` | address for which the funds are paid back |
61
-
62
- #### Overrides
63
-
64
- [Action](Action.md).[constructor](Action.md#constructor)
65
-
66
- #### Defined in
67
-
68
- [src/actions/compoundV3/CompoundV3PaybackAction.ts:23](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/compoundV3/CompoundV3PaybackAction.ts#L23)
69
-
70
- ## Properties
71
-
72
- ### args
73
-
74
- • **args**: `any`[]
75
-
76
- #### Inherited from
77
-
78
- [Action](Action.md).[args](Action.md#args)
79
-
80
- #### Defined in
81
-
82
- [src/Action.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L18)
83
-
84
- ___
85
-
86
- ### contractAddress
87
-
88
- • **contractAddress**: `string`
89
-
90
- #### Inherited from
91
-
92
- [Action](Action.md).[contractAddress](Action.md#contractaddress)
93
-
94
- #### Defined in
95
-
96
- [src/Action.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L15)
97
-
98
- ___
99
-
100
- ### mappableArgs
101
-
102
- • **mappableArgs**: `any`[]
103
-
104
- #### Inherited from
105
-
106
- [Action](Action.md).[mappableArgs](Action.md#mappableargs)
107
-
108
- #### Defined in
109
-
110
- [src/Action.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L19)
111
-
112
- ___
113
-
114
- ### name
115
-
116
- • **name**: `string`
117
-
118
- #### Inherited from
119
-
120
- [Action](Action.md).[name](Action.md#name)
121
-
122
- #### Defined in
123
-
124
- [src/Action.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L17)
125
-
126
- ___
127
-
128
- ### paramTypes
129
-
130
- • **paramTypes**: (`string` \| `any`[])[]
131
-
132
- #### Inherited from
133
-
134
- [Action](Action.md).[paramTypes](Action.md#paramtypes)
135
-
136
- #### Defined in
137
-
138
- [src/Action.ts:16](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L16)
139
-
140
- ___
141
-
142
- ### tokenForApproval
143
-
144
- • **tokenForApproval**: `string`
145
-
146
- #### Defined in
147
-
148
- [src/actions/compoundV3/CompoundV3PaybackAction.ts:14](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/compoundV3/CompoundV3PaybackAction.ts#L14)
149
-
150
- ## Methods
151
-
152
- ### \_encodeForCall
153
-
154
- ▸ `Private` **_encodeForCall**(): `string`[]
155
-
156
- Encode arguments for calling the action directly
157
-
158
- #### Returns
159
-
160
- `string`[]
161
-
162
- bytes-encoded args
163
-
164
- #### Inherited from
165
-
166
- [Action](Action.md).[_encodeForCall](Action.md#_encodeforcall)
167
-
168
- #### Defined in
169
-
170
- [src/Action.ts:117](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L117)
171
-
172
- ___
173
-
174
- ### \_formatType
175
-
176
- ▸ `Private` **_formatType**(`paramType`): `string`
177
-
178
- #### Parameters
179
-
180
- | Name | Type |
181
- | :------ | :------ |
182
- | `paramType` | `string` \| `any`[] |
183
-
184
- #### Returns
185
-
186
- `string`
187
-
188
- #### Inherited from
189
-
190
- [Action](Action.md).[_formatType](Action.md#_formattype)
191
-
192
- #### Defined in
193
-
194
- [src/Action.ts:107](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L107)
195
-
196
- ___
197
-
198
- ### \_getArgumentMapping
199
-
200
- ▸ `Private` **_getArgumentMapping**(): `number`[]
201
-
202
- #### Returns
203
-
204
- `number`[]
205
-
206
- #### Inherited from
207
-
208
- [Action](Action.md).[_getArgumentMapping](Action.md#_getargumentmapping)
209
-
210
- #### Defined in
211
-
212
- [src/Action.ts:70](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L70)
213
-
214
- ___
215
-
216
- ### \_getArgumentMappingWithSlots
217
-
218
- ▸ `Private` **_getArgumentMappingWithSlots**(`subSlots`): `number`[]
219
-
220
- #### Parameters
221
-
222
- | Name | Type |
223
- | :------ | :------ |
224
- | `subSlots` | `any`[] |
225
-
226
- #### Returns
227
-
228
- `number`[]
229
-
230
- #### Inherited from
231
-
232
- [Action](Action.md).[_getArgumentMappingWithSlots](Action.md#_getargumentmappingwithslots)
233
-
234
- #### Defined in
235
-
236
- [src/Action.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L49)
237
-
238
- ___
239
-
240
- ### \_getPlaceholderForType
241
-
242
- ▸ `Private` **_getPlaceholderForType**(`type`): `string`
243
-
244
- #### Parameters
245
-
246
- | Name | Type |
247
- | :------ | :------ |
248
- | `type` | `string` |
249
-
250
- #### Returns
251
-
252
- `string`
253
-
254
- #### Inherited from
255
-
256
- [Action](Action.md).[_getPlaceholderForType](Action.md#_getplaceholderfortype)
257
-
258
- #### Defined in
259
-
260
- [src/Action.ts:84](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L84)
261
-
262
- ___
263
-
264
- ### \_replaceWithPlaceholders
265
-
266
- ▸ `Private` **_replaceWithPlaceholders**(`arg`, `paramType`): `any`
267
-
268
- #### Parameters
269
-
270
- | Name | Type |
271
- | :------ | :------ |
272
- | `arg` | `any` |
273
- | `paramType` | `string` \| `any`[] |
274
-
275
- #### Returns
276
-
277
- `any`
278
-
279
- #### Inherited from
280
-
281
- [Action](Action.md).[_replaceWithPlaceholders](Action.md#_replacewithplaceholders)
282
-
283
- #### Defined in
284
-
285
- [src/Action.ts:95](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L95)
286
-
287
- ___
288
-
289
- ### encodeForDsProxyCall
290
-
291
- ▸ **encodeForDsProxyCall**(): (`string` \| `string`[])[]
292
-
293
- Encode arguments for calling the action via DsProxy
294
-
295
- #### Returns
296
-
297
- (`string` \| `string`[])[]
298
-
299
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
300
-
301
- #### Inherited from
302
-
303
- [Action](Action.md).[encodeForDsProxyCall](Action.md#encodefordsproxycall)
304
-
305
- #### Defined in
306
-
307
- [src/Action.ts:135](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L135)
308
-
309
- ___
310
-
311
- ### encodeForL2DsProxyCall
312
-
313
- ▸ **encodeForL2DsProxyCall**(): `string`
314
-
315
- #### Returns
316
-
317
- `string`
318
-
319
- #### Inherited from
320
-
321
- [Action](Action.md).[encodeForL2DsProxyCall](Action.md#encodeforl2dsproxycall)
322
-
323
- #### Defined in
324
-
325
- [src/Action.ts:123](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L123)
326
-
327
- ___
328
-
329
- ### encodeForL2Recipe
330
-
331
- ▸ **encodeForL2Recipe**(): `string`
332
-
333
- #### Returns
334
-
335
- `string`
336
-
337
- #### Inherited from
338
-
339
- [Action](Action.md).[encodeForL2Recipe](Action.md#encodeforl2recipe)
340
-
341
- #### Defined in
342
-
343
- [src/Action.ts:127](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L127)
344
-
345
- ___
346
-
347
- ### encodeForRecipe
348
-
349
- ▸ **encodeForRecipe**(): (`string` \| `string`[] \| `number`[])[]
350
-
351
- Encodes action for Recipe call
352
-
353
- #### Returns
354
-
355
- (`string` \| `string`[] \| `number`[])[]
356
-
357
- #### Inherited from
358
-
359
- [Action](Action.md).[encodeForRecipe](Action.md#encodeforrecipe)
360
-
361
- #### Defined in
362
-
363
- [src/Action.ts:150](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L150)
364
-
365
- ___
366
-
367
- ### encodeForStrategy
368
-
369
- ▸ **encodeForStrategy**(`subSlots`): (`string` \| `number`[])[]
370
-
371
- #### Parameters
372
-
373
- | Name | Type |
374
- | :------ | :------ |
375
- | `subSlots` | `any` |
376
-
377
- #### Returns
378
-
379
- (`string` \| `number`[])[]
380
-
381
- #### Inherited from
382
-
383
- [Action](Action.md).[encodeForStrategy](Action.md#encodeforstrategy)
384
-
385
- #### Defined in
386
-
387
- [src/Action.ts:159](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L159)
388
-
389
- ___
390
-
391
- ### getAccessList
392
-
393
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
394
-
395
- Access list for single action
396
-
397
- #### Returns
398
-
399
- [`AccessListItem`](../modules.md#accesslistitem)[]
400
-
401
- #### Inherited from
402
-
403
- [Action](Action.md).[getAccessList](Action.md#getaccesslist)
404
-
405
- #### Defined in
406
-
407
- [src/Action.ts:185](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L185)
408
-
409
- ___
410
-
411
- ### getAssetsToApprove
412
-
413
- ▸ **getAssetsToApprove**(): `Promise`<{ `asset`: `string` ; `owner`: `any` }[]\>
414
-
415
- Assets requiring approval to be used by DsProxy
416
- Approval is done from owner to DsProxy
417
-
418
- #### Returns
419
-
420
- `Promise`<{ `asset`: `string` ; `owner`: `any` }[]\>
421
-
422
- #### Overrides
423
-
424
- [Action](Action.md).[getAssetsToApprove](Action.md#getassetstoapprove)
425
-
426
- #### Defined in
427
-
428
- [src/actions/compoundV3/CompoundV3PaybackAction.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/compoundV3/CompoundV3PaybackAction.ts#L42)
429
-
430
- ___
431
-
432
- ### getEthValue
433
-
434
- ▸ **getEthValue**(): `Promise`<`string`\>
435
-
436
- ETH value to be sent with transaction
437
-
438
- #### Returns
439
-
440
- `Promise`<`string`\>
441
-
442
- ETH value in wei
443
-
444
- #### Inherited from
445
-
446
- [Action](Action.md).[getEthValue](Action.md#getethvalue)
447
-
448
- #### Defined in
449
-
450
- [src/Action.ts:178](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L178)
451
-
452
- ___
453
-
454
- ### getId
455
-
456
- ▸ `Private` **getId**(): `string`
457
-
458
- #### Returns
459
-
460
- `string`
461
-
462
- #### Inherited from
463
-
464
- [Action](Action.md).[getId](Action.md#getid)
465
-
466
- #### Defined in
467
-
468
- [src/Action.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L42)