@defisaver/sdk 1.3.36 → 1.3.37

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 (169) 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/esm/src/addresses.js +12 -12
  7. package/package.json +2 -6
  8. package/src/Action.ts +18 -9
  9. package/src/ActionWithL2.ts +2 -0
  10. package/src/Recipe.ts +4 -1
  11. package/src/addresses.ts +12 -12
  12. package/test/Action.js +83 -3
  13. package/test/ActionWithL2.js +65 -19
  14. package/test/Recipe.js +97 -0
  15. package/tsconfig.json +1 -5
  16. package/umd/index.js +36 -25
  17. package/ACTIONS.md +0 -1765
  18. package/DEV.md +0 -43
  19. package/docs/md/.nojekyll +0 -1
  20. package/docs/md/README.md +0 -12
  21. package/docs/md/classes/AaveBorrowAction.md +0 -458
  22. package/docs/md/classes/AaveClaimStkAaveAction.md +0 -455
  23. package/docs/md/classes/AaveCollateralSwitchAction.md +0 -455
  24. package/docs/md/classes/AavePaybackAction.md +0 -458
  25. package/docs/md/classes/AaveSupplyAction.md +0 -458
  26. package/docs/md/classes/AaveV2FlashLoanAction.md +0 -458
  27. package/docs/md/classes/AaveV2FlashLoanPaybackAction.md +0 -454
  28. package/docs/md/classes/AaveV3ATokenPaybackAction.md +0 -644
  29. package/docs/md/classes/AaveV3BorrowAction.md +0 -606
  30. package/docs/md/classes/AaveV3ClaimRewardsAction.md +0 -603
  31. package/docs/md/classes/AaveV3CollateralSwitchAction.md +0 -603
  32. package/docs/md/classes/AaveV3FlashLoanAction.md +0 -604
  33. package/docs/md/classes/AaveV3FlashLoanPaybackAction.md +0 -454
  34. package/docs/md/classes/AaveV3PaybackAction.md +0 -618
  35. package/docs/md/classes/AaveV3RatioCheckAction.md +0 -454
  36. package/docs/md/classes/AaveV3RatioTrigger.md +0 -454
  37. package/docs/md/classes/AaveV3SetEModeAction.md +0 -601
  38. package/docs/md/classes/AaveV3SupplyAction.md +0 -618
  39. package/docs/md/classes/AaveV3SwapBorrowRateModeAction.md +0 -602
  40. package/docs/md/classes/AaveV3WithdrawAction.md +0 -603
  41. package/docs/md/classes/AaveWithdrawAction.md +0 -456
  42. package/docs/md/classes/Action.md +0 -604
  43. package/docs/md/classes/ActionWithL2.md +0 -612
  44. package/docs/md/classes/AutomationV2Unsub.md +0 -452
  45. package/docs/md/classes/BalancerFlashLoanAction.md +0 -456
  46. package/docs/md/classes/BalancerFlashLoanPaybackAction.md +0 -454
  47. package/docs/md/classes/BalancerV2ClaimAction.md +0 -457
  48. package/docs/md/classes/BalancerV2SupplyAction.md +0 -458
  49. package/docs/md/classes/BalancerV2WithdrawAction.md +0 -470
  50. package/docs/md/classes/CBChickenInAction.md +0 -454
  51. package/docs/md/classes/CBChickenOutAction.md +0 -455
  52. package/docs/md/classes/CBCreateAction.md +0 -454
  53. package/docs/md/classes/CBRedeemAction.md +0 -456
  54. package/docs/md/classes/ChainLinkPriceTrigger.md +0 -453
  55. package/docs/md/classes/ChangeProxyOwnerAction.md +0 -453
  56. package/docs/md/classes/CompV3RatioTrigger.md +0 -454
  57. package/docs/md/classes/CompoundBorrowAction.md +0 -455
  58. package/docs/md/classes/CompoundClaimAction.md +0 -456
  59. package/docs/md/classes/CompoundCollateralSwitchAction.md +0 -454
  60. package/docs/md/classes/CompoundGetDebtAction.md +0 -452
  61. package/docs/md/classes/CompoundPaybackAction.md +0 -456
  62. package/docs/md/classes/CompoundRatioTrigger.md +0 -453
  63. package/docs/md/classes/CompoundSupplyAction.md +0 -456
  64. package/docs/md/classes/CompoundV3AllowAction.md +0 -455
  65. package/docs/md/classes/CompoundV3BorrowAction.md +0 -456
  66. package/docs/md/classes/CompoundV3ClaimAction.md +0 -456
  67. package/docs/md/classes/CompoundV3PaybackAction.md +0 -468
  68. package/docs/md/classes/CompoundV3RatioCheckAction.md +0 -456
  69. package/docs/md/classes/CompoundV3SupplyAction.md +0 -468
  70. package/docs/md/classes/CompoundV3TransferAction.md +0 -457
  71. package/docs/md/classes/CompoundV3WithdrawAction.md +0 -457
  72. package/docs/md/classes/CompoundWithdrawAction.md +0 -455
  73. package/docs/md/classes/ConvexClaimAction.md +0 -466
  74. package/docs/md/classes/ConvexDepositAction.md +0 -468
  75. package/docs/md/classes/ConvexWithdrawAction.md +0 -468
  76. package/docs/md/classes/CurveClaimFeesAction.md +0 -452
  77. package/docs/md/classes/CurveDepositAction.md +0 -467
  78. package/docs/md/classes/CurveGaugeDepositAction.md +0 -455
  79. package/docs/md/classes/CurveGaugeWithdrawAction.md +0 -454
  80. package/docs/md/classes/CurveMintCrvAction.md +0 -452
  81. package/docs/md/classes/CurveStethPoolDepositAction.md +0 -456
  82. package/docs/md/classes/CurveStethPoolWithdrawAction.md +0 -457
  83. package/docs/md/classes/CurveSwapAction.md +0 -457
  84. package/docs/md/classes/CurveWithdrawAction.md +0 -468
  85. package/docs/md/classes/DfsWeb3.md +0 -212
  86. package/docs/md/classes/DyDxFlashLoanAction.md +0 -456
  87. package/docs/md/classes/DyDxFlashLoanPaybackAction.md +0 -454
  88. package/docs/md/classes/DyDxWithdrawAction.md +0 -455
  89. package/docs/md/classes/EulerFlashLoanAction.md +0 -456
  90. package/docs/md/classes/EulerFlashLoanPaybackAction.md +0 -454
  91. package/docs/md/classes/GUniDeposit.md +0 -461
  92. package/docs/md/classes/GUniWithdraw.md +0 -458
  93. package/docs/md/classes/GasFeeAction.md +0 -454
  94. package/docs/md/classes/GasFeeActionL2.md +0 -455
  95. package/docs/md/classes/GasPriceTrigger.md +0 -35
  96. package/docs/md/classes/InstPullTokensAction.md +0 -454
  97. package/docs/md/classes/LidoStakeAction.md +0 -455
  98. package/docs/md/classes/LidoUnwrapAction.md +0 -455
  99. package/docs/md/classes/LidoWrapAction.md +0 -456
  100. package/docs/md/classes/LiquityBorrowAction.md +0 -457
  101. package/docs/md/classes/LiquityClaimAction.md +0 -453
  102. package/docs/md/classes/LiquityClaimSPRewardsAction.md +0 -454
  103. package/docs/md/classes/LiquityClaimStakingRewardsAction.md +0 -454
  104. package/docs/md/classes/LiquityCloseAction.md +0 -454
  105. package/docs/md/classes/LiquityEthGainToTroveAction.md +0 -455
  106. package/docs/md/classes/LiquityOpenAction.md +0 -459
  107. package/docs/md/classes/LiquityPaybackAction.md +0 -456
  108. package/docs/md/classes/LiquityRatioTrigger.md +0 -453
  109. package/docs/md/classes/LiquityRedeemAction.md +0 -461
  110. package/docs/md/classes/LiquitySPDepositAction.md +0 -456
  111. package/docs/md/classes/LiquitySPWithdrawAction.md +0 -458
  112. package/docs/md/classes/LiquityStakeAction.md +0 -456
  113. package/docs/md/classes/LiquitySupplyAction.md +0 -456
  114. package/docs/md/classes/LiquityUnstakeAction.md +0 -458
  115. package/docs/md/classes/LiquityWithdrawAction.md +0 -456
  116. package/docs/md/classes/MStableClaimAction.md +0 -456
  117. package/docs/md/classes/MStableDepositAction.md +0 -461
  118. package/docs/md/classes/MStableWithdrawAction.md +0 -461
  119. package/docs/md/classes/MakerClaimAction.md +0 -455
  120. package/docs/md/classes/MakerFlashLoanAction.md +0 -455
  121. package/docs/md/classes/MakerFlashLoanPaybackAction.md +0 -454
  122. package/docs/md/classes/MakerGenerateAction.md +0 -456
  123. package/docs/md/classes/MakerGiveAction.md +0 -456
  124. package/docs/md/classes/MakerMergeAction.md +0 -455
  125. package/docs/md/classes/MakerOpenVaultAction.md +0 -454
  126. package/docs/md/classes/MakerPaybackAction.md +0 -456
  127. package/docs/md/classes/MakerRatioAction.md +0 -453
  128. package/docs/md/classes/MakerRatioCheckAction.md +0 -457
  129. package/docs/md/classes/MakerRatioTrigger.md +0 -453
  130. package/docs/md/classes/MakerSupplyAction.md +0 -457
  131. package/docs/md/classes/MakerWithdrawAction.md +0 -457
  132. package/docs/md/classes/PullTokenAction.md +0 -455
  133. package/docs/md/classes/RariDepositAction.md +0 -458
  134. package/docs/md/classes/RariWithdrawAction.md +0 -459
  135. package/docs/md/classes/Recipe.md +0 -195
  136. package/docs/md/classes/ReflexerGenerateAction.md +0 -455
  137. package/docs/md/classes/ReflexerNativeUniV2SaviourDepositAction.md +0 -455
  138. package/docs/md/classes/ReflexerNativeUniV2SaviourGetReservesAction.md +0 -454
  139. package/docs/md/classes/ReflexerNativeUniV2SaviourWithdrawAction.md +0 -455
  140. package/docs/md/classes/ReflexerOpenSafeAction.md +0 -453
  141. package/docs/md/classes/ReflexerPaybackAction.md +0 -455
  142. package/docs/md/classes/ReflexerRatioTrigger.md +0 -453
  143. package/docs/md/classes/ReflexerSupplyAction.md +0 -456
  144. package/docs/md/classes/ReflexerWithdrawAction.md +0 -456
  145. package/docs/md/classes/SellAction.md +0 -613
  146. package/docs/md/classes/SendTokenAction.md +0 -467
  147. package/docs/md/classes/SendTokenAndUnwrapAction.md +0 -455
  148. package/docs/md/classes/Strategy.md +0 -195
  149. package/docs/md/classes/SubInputsAction.md +0 -454
  150. package/docs/md/classes/SumInputsAction.md +0 -454
  151. package/docs/md/classes/TimestampTrigger.md +0 -451
  152. package/docs/md/classes/ToggleSubAction.md +0 -454
  153. package/docs/md/classes/TokenBalanceAction.md +0 -452
  154. package/docs/md/classes/TrailingStopTrigger.md +0 -453
  155. package/docs/md/classes/TransferNFTAction.md +0 -454
  156. package/docs/md/classes/UniV3CurrentTickTrigger.md +0 -452
  157. package/docs/md/classes/UniswapSupplyAction.md +0 -461
  158. package/docs/md/classes/UniswapV3CollectAction.md +0 -614
  159. package/docs/md/classes/UniswapV3CreatePoolAction.md +0 -611
  160. package/docs/md/classes/UniswapV3MintAction.md +0 -610
  161. package/docs/md/classes/UniswapV3SupplyAction.md +0 -63
  162. package/docs/md/classes/UniswapV3WithdrawAction.md +0 -618
  163. package/docs/md/classes/UniswapWithdrawAction.md +0 -460
  164. package/docs/md/classes/UnwrapEthAction.md +0 -600
  165. package/docs/md/classes/UpdateSubAction.md +0 -454
  166. package/docs/md/classes/WrapEthAction.md +0 -599
  167. package/docs/md/classes/YearnSupplyAction.md +0 -456
  168. package/docs/md/classes/YearnWithdrawAction.md +0 -456
  169. package/docs/md/modules.md +0 -814
@@ -1,454 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV2FlashLoanPaybackAction
2
-
3
- # Class: AaveV2FlashLoanPaybackAction
4
-
5
- Pays back a single flashloan from Aave v2
6
-
7
- ## Hierarchy
8
-
9
- - [`SendTokenAction`](SendTokenAction.md)
10
-
11
- ↳ **`AaveV2FlashLoanPaybackAction`**
12
-
13
- ## Table of contents
14
-
15
- ### Constructors
16
-
17
- - [constructor](AaveV2FlashLoanPaybackAction.md#constructor)
18
-
19
- ### Properties
20
-
21
- - [args](AaveV2FlashLoanPaybackAction.md#args)
22
- - [contractAddress](AaveV2FlashLoanPaybackAction.md#contractaddress)
23
- - [mappableArgs](AaveV2FlashLoanPaybackAction.md#mappableargs)
24
- - [name](AaveV2FlashLoanPaybackAction.md#name)
25
- - [paramTypes](AaveV2FlashLoanPaybackAction.md#paramtypes)
26
-
27
- ### Methods
28
-
29
- - [\_encodeForCall](AaveV2FlashLoanPaybackAction.md#_encodeforcall)
30
- - [\_formatType](AaveV2FlashLoanPaybackAction.md#_formattype)
31
- - [\_getArgumentMapping](AaveV2FlashLoanPaybackAction.md#_getargumentmapping)
32
- - [\_getArgumentMappingWithSlots](AaveV2FlashLoanPaybackAction.md#_getargumentmappingwithslots)
33
- - [\_getPlaceholderForType](AaveV2FlashLoanPaybackAction.md#_getplaceholderfortype)
34
- - [\_replaceWithPlaceholders](AaveV2FlashLoanPaybackAction.md#_replacewithplaceholders)
35
- - [encodeForDsProxyCall](AaveV2FlashLoanPaybackAction.md#encodefordsproxycall)
36
- - [encodeForL2DsProxyCall](AaveV2FlashLoanPaybackAction.md#encodeforl2dsproxycall)
37
- - [encodeForL2Recipe](AaveV2FlashLoanPaybackAction.md#encodeforl2recipe)
38
- - [encodeForRecipe](AaveV2FlashLoanPaybackAction.md#encodeforrecipe)
39
- - [encodeForStrategy](AaveV2FlashLoanPaybackAction.md#encodeforstrategy)
40
- - [getAccessList](AaveV2FlashLoanPaybackAction.md#getaccesslist)
41
- - [getAssetsToApprove](AaveV2FlashLoanPaybackAction.md#getassetstoapprove)
42
- - [getEthValue](AaveV2FlashLoanPaybackAction.md#getethvalue)
43
- - [getId](AaveV2FlashLoanPaybackAction.md#getid)
44
-
45
- ## Constructors
46
-
47
- ### constructor
48
-
49
- • **new AaveV2FlashLoanPaybackAction**(`loanAmount`, `tokenAddr`)
50
-
51
- #### Parameters
52
-
53
- | Name | Type |
54
- | :------ | :------ |
55
- | `loanAmount` | `string` |
56
- | `tokenAddr` | `string` |
57
-
58
- #### Overrides
59
-
60
- [SendTokenAction](SendTokenAction.md).[constructor](SendTokenAction.md#constructor)
61
-
62
- #### Defined in
63
-
64
- [src/actions/flashloan/AaveV2FlashLoanPaybackAction.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/flashloan/AaveV2FlashLoanPaybackAction.ts#L15)
65
-
66
- ## Properties
67
-
68
- ### args
69
-
70
- • **args**: `any`[]
71
-
72
- #### Inherited from
73
-
74
- [SendTokenAction](SendTokenAction.md).[args](SendTokenAction.md#args)
75
-
76
- #### Defined in
77
-
78
- [src/Action.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L18)
79
-
80
- ___
81
-
82
- ### contractAddress
83
-
84
- • **contractAddress**: `string`
85
-
86
- #### Inherited from
87
-
88
- [SendTokenAction](SendTokenAction.md).[contractAddress](SendTokenAction.md#contractaddress)
89
-
90
- #### Defined in
91
-
92
- [src/Action.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L15)
93
-
94
- ___
95
-
96
- ### mappableArgs
97
-
98
- • **mappableArgs**: `any`[]
99
-
100
- #### Inherited from
101
-
102
- [SendTokenAction](SendTokenAction.md).[mappableArgs](SendTokenAction.md#mappableargs)
103
-
104
- #### Defined in
105
-
106
- [src/Action.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L19)
107
-
108
- ___
109
-
110
- ### name
111
-
112
- • **name**: `string`
113
-
114
- #### Inherited from
115
-
116
- [SendTokenAction](SendTokenAction.md).[name](SendTokenAction.md#name)
117
-
118
- #### Defined in
119
-
120
- [src/Action.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L17)
121
-
122
- ___
123
-
124
- ### paramTypes
125
-
126
- • **paramTypes**: (`string` \| `any`[])[]
127
-
128
- #### Inherited from
129
-
130
- [SendTokenAction](SendTokenAction.md).[paramTypes](SendTokenAction.md#paramtypes)
131
-
132
- #### Defined in
133
-
134
- [src/Action.ts:16](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L16)
135
-
136
- ## Methods
137
-
138
- ### \_encodeForCall
139
-
140
- ▸ `Private` **_encodeForCall**(): `string`[]
141
-
142
- Encode arguments for calling the action directly
143
-
144
- #### Returns
145
-
146
- `string`[]
147
-
148
- bytes-encoded args
149
-
150
- #### Inherited from
151
-
152
- [SendTokenAction](SendTokenAction.md).[_encodeForCall](SendTokenAction.md#_encodeforcall)
153
-
154
- #### Defined in
155
-
156
- [src/Action.ts:117](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L117)
157
-
158
- ___
159
-
160
- ### \_formatType
161
-
162
- ▸ `Private` **_formatType**(`paramType`): `string`
163
-
164
- #### Parameters
165
-
166
- | Name | Type |
167
- | :------ | :------ |
168
- | `paramType` | `string` \| `any`[] |
169
-
170
- #### Returns
171
-
172
- `string`
173
-
174
- #### Inherited from
175
-
176
- [SendTokenAction](SendTokenAction.md).[_formatType](SendTokenAction.md#_formattype)
177
-
178
- #### Defined in
179
-
180
- [src/Action.ts:107](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L107)
181
-
182
- ___
183
-
184
- ### \_getArgumentMapping
185
-
186
- ▸ `Private` **_getArgumentMapping**(): `number`[]
187
-
188
- #### Returns
189
-
190
- `number`[]
191
-
192
- #### Inherited from
193
-
194
- [SendTokenAction](SendTokenAction.md).[_getArgumentMapping](SendTokenAction.md#_getargumentmapping)
195
-
196
- #### Defined in
197
-
198
- [src/Action.ts:70](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L70)
199
-
200
- ___
201
-
202
- ### \_getArgumentMappingWithSlots
203
-
204
- ▸ `Private` **_getArgumentMappingWithSlots**(`subSlots`): `number`[]
205
-
206
- #### Parameters
207
-
208
- | Name | Type |
209
- | :------ | :------ |
210
- | `subSlots` | `any`[] |
211
-
212
- #### Returns
213
-
214
- `number`[]
215
-
216
- #### Inherited from
217
-
218
- [SendTokenAction](SendTokenAction.md).[_getArgumentMappingWithSlots](SendTokenAction.md#_getargumentmappingwithslots)
219
-
220
- #### Defined in
221
-
222
- [src/Action.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L49)
223
-
224
- ___
225
-
226
- ### \_getPlaceholderForType
227
-
228
- ▸ `Private` **_getPlaceholderForType**(`type`): `string`
229
-
230
- #### Parameters
231
-
232
- | Name | Type |
233
- | :------ | :------ |
234
- | `type` | `string` |
235
-
236
- #### Returns
237
-
238
- `string`
239
-
240
- #### Inherited from
241
-
242
- [SendTokenAction](SendTokenAction.md).[_getPlaceholderForType](SendTokenAction.md#_getplaceholderfortype)
243
-
244
- #### Defined in
245
-
246
- [src/Action.ts:84](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L84)
247
-
248
- ___
249
-
250
- ### \_replaceWithPlaceholders
251
-
252
- ▸ `Private` **_replaceWithPlaceholders**(`arg`, `paramType`): `any`
253
-
254
- #### Parameters
255
-
256
- | Name | Type |
257
- | :------ | :------ |
258
- | `arg` | `any` |
259
- | `paramType` | `string` \| `any`[] |
260
-
261
- #### Returns
262
-
263
- `any`
264
-
265
- #### Inherited from
266
-
267
- [SendTokenAction](SendTokenAction.md).[_replaceWithPlaceholders](SendTokenAction.md#_replacewithplaceholders)
268
-
269
- #### Defined in
270
-
271
- [src/Action.ts:95](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L95)
272
-
273
- ___
274
-
275
- ### encodeForDsProxyCall
276
-
277
- ▸ **encodeForDsProxyCall**(): (`string` \| `string`[])[]
278
-
279
- Encode arguments for calling the action via DsProxy
280
-
281
- #### Returns
282
-
283
- (`string` \| `string`[])[]
284
-
285
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
286
-
287
- #### Inherited from
288
-
289
- [SendTokenAction](SendTokenAction.md).[encodeForDsProxyCall](SendTokenAction.md#encodefordsproxycall)
290
-
291
- #### Defined in
292
-
293
- [src/Action.ts:135](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L135)
294
-
295
- ___
296
-
297
- ### encodeForL2DsProxyCall
298
-
299
- ▸ **encodeForL2DsProxyCall**(): `string`
300
-
301
- #### Returns
302
-
303
- `string`
304
-
305
- #### Inherited from
306
-
307
- [SendTokenAction](SendTokenAction.md).[encodeForL2DsProxyCall](SendTokenAction.md#encodeforl2dsproxycall)
308
-
309
- #### Defined in
310
-
311
- [src/Action.ts:123](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L123)
312
-
313
- ___
314
-
315
- ### encodeForL2Recipe
316
-
317
- ▸ **encodeForL2Recipe**(): `string`
318
-
319
- #### Returns
320
-
321
- `string`
322
-
323
- #### Inherited from
324
-
325
- [SendTokenAction](SendTokenAction.md).[encodeForL2Recipe](SendTokenAction.md#encodeforl2recipe)
326
-
327
- #### Defined in
328
-
329
- [src/Action.ts:127](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L127)
330
-
331
- ___
332
-
333
- ### encodeForRecipe
334
-
335
- ▸ **encodeForRecipe**(): (`string` \| `string`[] \| `number`[])[]
336
-
337
- Encodes action for Recipe call
338
-
339
- #### Returns
340
-
341
- (`string` \| `string`[] \| `number`[])[]
342
-
343
- #### Inherited from
344
-
345
- [SendTokenAction](SendTokenAction.md).[encodeForRecipe](SendTokenAction.md#encodeforrecipe)
346
-
347
- #### Defined in
348
-
349
- [src/Action.ts:150](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L150)
350
-
351
- ___
352
-
353
- ### encodeForStrategy
354
-
355
- ▸ **encodeForStrategy**(`subSlots`): (`string` \| `number`[])[]
356
-
357
- #### Parameters
358
-
359
- | Name | Type |
360
- | :------ | :------ |
361
- | `subSlots` | `any` |
362
-
363
- #### Returns
364
-
365
- (`string` \| `number`[])[]
366
-
367
- #### Inherited from
368
-
369
- [SendTokenAction](SendTokenAction.md).[encodeForStrategy](SendTokenAction.md#encodeforstrategy)
370
-
371
- #### Defined in
372
-
373
- [src/Action.ts:159](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L159)
374
-
375
- ___
376
-
377
- ### getAccessList
378
-
379
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
380
-
381
- Access list for single action
382
-
383
- #### Returns
384
-
385
- [`AccessListItem`](../modules.md#accesslistitem)[]
386
-
387
- #### Inherited from
388
-
389
- [SendTokenAction](SendTokenAction.md).[getAccessList](SendTokenAction.md#getaccesslist)
390
-
391
- #### Defined in
392
-
393
- [src/Action.ts:185](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L185)
394
-
395
- ___
396
-
397
- ### getAssetsToApprove
398
-
399
- ▸ **getAssetsToApprove**(): `Promise`<{ `[key: string]`: `any`; `asset?`: `string` ; `owner?`: `string` }[]\>
400
-
401
- Assets requiring approval to be used by DsProxy
402
- Approval is done from owner to DsProxy
403
-
404
- #### Returns
405
-
406
- `Promise`<{ `[key: string]`: `any`; `asset?`: `string` ; `owner?`: `string` }[]\>
407
-
408
- #### Inherited from
409
-
410
- [SendTokenAction](SendTokenAction.md).[getAssetsToApprove](SendTokenAction.md#getassetstoapprove)
411
-
412
- #### Defined in
413
-
414
- [src/Action.ts:170](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L170)
415
-
416
- ___
417
-
418
- ### getEthValue
419
-
420
- ▸ **getEthValue**(): `Promise`<`string`\>
421
-
422
- ETH value to be sent with transaction
423
-
424
- #### Returns
425
-
426
- `Promise`<`string`\>
427
-
428
- ETH value in wei
429
-
430
- #### Inherited from
431
-
432
- [SendTokenAction](SendTokenAction.md).[getEthValue](SendTokenAction.md#getethvalue)
433
-
434
- #### Defined in
435
-
436
- [src/Action.ts:178](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L178)
437
-
438
- ___
439
-
440
- ### getId
441
-
442
- ▸ `Private` **getId**(): `string`
443
-
444
- #### Returns
445
-
446
- `string`
447
-
448
- #### Inherited from
449
-
450
- [SendTokenAction](SendTokenAction.md).[getId](SendTokenAction.md#getid)
451
-
452
- #### Defined in
453
-
454
- [src/Action.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L42)