@defisaver/sdk 1.3.36 → 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 +2 -6
  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,603 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / AaveV3CollateralSwitchAction
2
-
3
- # Class: AaveV3CollateralSwitchAction
4
-
5
- AaveV3CollateralSwitchAction - Aave enable/disable token usage as collateral for AaveV3 position
6
-
7
- ## Hierarchy
8
-
9
- - [`ActionWithL2`](ActionWithL2.md)
10
-
11
- ↳ **`AaveV3CollateralSwitchAction`**
12
-
13
- ## Table of contents
14
-
15
- ### Constructors
16
-
17
- - [constructor](AaveV3CollateralSwitchAction.md#constructor)
18
-
19
- ### Properties
20
-
21
- - [args](AaveV3CollateralSwitchAction.md#args)
22
- - [contractAddress](AaveV3CollateralSwitchAction.md#contractaddress)
23
- - [mappableArgs](AaveV3CollateralSwitchAction.md#mappableargs)
24
- - [name](AaveV3CollateralSwitchAction.md#name)
25
- - [paramTypes](AaveV3CollateralSwitchAction.md#paramtypes)
26
-
27
- ### Methods
28
-
29
- - [\_encodeForCall](AaveV3CollateralSwitchAction.md#_encodeforcall)
30
- - [\_formatType](AaveV3CollateralSwitchAction.md#_formattype)
31
- - [\_getArgumentMapping](AaveV3CollateralSwitchAction.md#_getargumentmapping)
32
- - [\_getArgumentMappingWithSlots](AaveV3CollateralSwitchAction.md#_getargumentmappingwithslots)
33
- - [\_getPlaceholderForType](AaveV3CollateralSwitchAction.md#_getplaceholderfortype)
34
- - [\_replaceWithPlaceholders](AaveV3CollateralSwitchAction.md#_replacewithplaceholders)
35
- - [addressToBytes20](AaveV3CollateralSwitchAction.md#addresstobytes20)
36
- - [boolToBytes1](AaveV3CollateralSwitchAction.md#booltobytes1)
37
- - [encodeForDsProxyCall](AaveV3CollateralSwitchAction.md#encodefordsproxycall)
38
- - [encodeForL2DsProxyCall](AaveV3CollateralSwitchAction.md#encodeforl2dsproxycall)
39
- - [encodeForL2Recipe](AaveV3CollateralSwitchAction.md#encodeforl2recipe)
40
- - [encodeForRecipe](AaveV3CollateralSwitchAction.md#encodeforrecipe)
41
- - [encodeForStrategy](AaveV3CollateralSwitchAction.md#encodeforstrategy)
42
- - [encodeInputs](AaveV3CollateralSwitchAction.md#encodeinputs)
43
- - [getAccessList](AaveV3CollateralSwitchAction.md#getaccesslist)
44
- - [getAssetsToApprove](AaveV3CollateralSwitchAction.md#getassetstoapprove)
45
- - [getEthValue](AaveV3CollateralSwitchAction.md#getethvalue)
46
- - [getId](AaveV3CollateralSwitchAction.md#getid)
47
- - [numberToBytes1](AaveV3CollateralSwitchAction.md#numbertobytes1)
48
- - [numberToBytes2](AaveV3CollateralSwitchAction.md#numbertobytes2)
49
- - [numberToBytes32](AaveV3CollateralSwitchAction.md#numbertobytes32)
50
-
51
- ## Constructors
52
-
53
- ### constructor
54
-
55
- • **new AaveV3CollateralSwitchAction**(`useDefaultMarket`, `market`, `arrayLength`, `assetIds`, `useAsCollateral`)
56
-
57
- #### Parameters
58
-
59
- | Name | Type | Description |
60
- | :------ | :------ | :------ |
61
- | `useDefaultMarket` | `boolean` | If this is true it defaults to the hardcoded market in contract |
62
- | `market` | `string` | Address provider for specific market |
63
- | `arrayLength` | `string` | length of two arrays |
64
- | `assetIds` | `string`[] | |
65
- | `useAsCollateral` | `boolean`[] | |
66
-
67
- #### Overrides
68
-
69
- [ActionWithL2](ActionWithL2.md).[constructor](ActionWithL2.md#constructor)
70
-
71
- #### Defined in
72
-
73
- [src/actions/aaveV3/AaveV3CollateralSwitchAction.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/aaveV3/AaveV3CollateralSwitchAction.ts#L18)
74
-
75
- ## Properties
76
-
77
- ### args
78
-
79
- • **args**: `any`[]
80
-
81
- #### Inherited from
82
-
83
- [ActionWithL2](ActionWithL2.md).[args](ActionWithL2.md#args)
84
-
85
- #### Defined in
86
-
87
- [src/Action.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L18)
88
-
89
- ___
90
-
91
- ### contractAddress
92
-
93
- • **contractAddress**: `string`
94
-
95
- #### Inherited from
96
-
97
- [ActionWithL2](ActionWithL2.md).[contractAddress](ActionWithL2.md#contractaddress)
98
-
99
- #### Defined in
100
-
101
- [src/Action.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L15)
102
-
103
- ___
104
-
105
- ### mappableArgs
106
-
107
- • **mappableArgs**: `any`[]
108
-
109
- #### Inherited from
110
-
111
- [ActionWithL2](ActionWithL2.md).[mappableArgs](ActionWithL2.md#mappableargs)
112
-
113
- #### Defined in
114
-
115
- [src/Action.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L19)
116
-
117
- ___
118
-
119
- ### name
120
-
121
- • **name**: `string`
122
-
123
- #### Inherited from
124
-
125
- [ActionWithL2](ActionWithL2.md).[name](ActionWithL2.md#name)
126
-
127
- #### Defined in
128
-
129
- [src/Action.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L17)
130
-
131
- ___
132
-
133
- ### paramTypes
134
-
135
- • **paramTypes**: (`string` \| `any`[])[]
136
-
137
- #### Inherited from
138
-
139
- [ActionWithL2](ActionWithL2.md).[paramTypes](ActionWithL2.md#paramtypes)
140
-
141
- #### Defined in
142
-
143
- [src/Action.ts:16](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L16)
144
-
145
- ## Methods
146
-
147
- ### \_encodeForCall
148
-
149
- ▸ `Private` **_encodeForCall**(): `string`[]
150
-
151
- Encode arguments for calling the action directly
152
-
153
- #### Returns
154
-
155
- `string`[]
156
-
157
- bytes-encoded args
158
-
159
- #### Inherited from
160
-
161
- [ActionWithL2](ActionWithL2.md).[_encodeForCall](ActionWithL2.md#_encodeforcall)
162
-
163
- #### Defined in
164
-
165
- [src/Action.ts:117](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L117)
166
-
167
- ___
168
-
169
- ### \_formatType
170
-
171
- ▸ `Private` **_formatType**(`paramType`): `string`
172
-
173
- #### Parameters
174
-
175
- | Name | Type |
176
- | :------ | :------ |
177
- | `paramType` | `string` \| `any`[] |
178
-
179
- #### Returns
180
-
181
- `string`
182
-
183
- #### Inherited from
184
-
185
- [ActionWithL2](ActionWithL2.md).[_formatType](ActionWithL2.md#_formattype)
186
-
187
- #### Defined in
188
-
189
- [src/Action.ts:107](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L107)
190
-
191
- ___
192
-
193
- ### \_getArgumentMapping
194
-
195
- ▸ `Private` **_getArgumentMapping**(): `number`[]
196
-
197
- #### Returns
198
-
199
- `number`[]
200
-
201
- #### Inherited from
202
-
203
- [ActionWithL2](ActionWithL2.md).[_getArgumentMapping](ActionWithL2.md#_getargumentmapping)
204
-
205
- #### Defined in
206
-
207
- [src/Action.ts:70](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L70)
208
-
209
- ___
210
-
211
- ### \_getArgumentMappingWithSlots
212
-
213
- ▸ `Private` **_getArgumentMappingWithSlots**(`subSlots`): `number`[]
214
-
215
- #### Parameters
216
-
217
- | Name | Type |
218
- | :------ | :------ |
219
- | `subSlots` | `any`[] |
220
-
221
- #### Returns
222
-
223
- `number`[]
224
-
225
- #### Inherited from
226
-
227
- [ActionWithL2](ActionWithL2.md).[_getArgumentMappingWithSlots](ActionWithL2.md#_getargumentmappingwithslots)
228
-
229
- #### Defined in
230
-
231
- [src/Action.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L49)
232
-
233
- ___
234
-
235
- ### \_getPlaceholderForType
236
-
237
- ▸ `Private` **_getPlaceholderForType**(`type`): `string`
238
-
239
- #### Parameters
240
-
241
- | Name | Type |
242
- | :------ | :------ |
243
- | `type` | `string` |
244
-
245
- #### Returns
246
-
247
- `string`
248
-
249
- #### Inherited from
250
-
251
- [ActionWithL2](ActionWithL2.md).[_getPlaceholderForType](ActionWithL2.md#_getplaceholderfortype)
252
-
253
- #### Defined in
254
-
255
- [src/Action.ts:84](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L84)
256
-
257
- ___
258
-
259
- ### \_replaceWithPlaceholders
260
-
261
- ▸ `Private` **_replaceWithPlaceholders**(`arg`, `paramType`): `any`
262
-
263
- #### Parameters
264
-
265
- | Name | Type |
266
- | :------ | :------ |
267
- | `arg` | `any` |
268
- | `paramType` | `string` \| `any`[] |
269
-
270
- #### Returns
271
-
272
- `any`
273
-
274
- #### Inherited from
275
-
276
- [ActionWithL2](ActionWithL2.md).[_replaceWithPlaceholders](ActionWithL2.md#_replacewithplaceholders)
277
-
278
- #### Defined in
279
-
280
- [src/Action.ts:95](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L95)
281
-
282
- ___
283
-
284
- ### addressToBytes20
285
-
286
- ▸ **addressToBytes20**(`address`): `string`
287
-
288
- #### Parameters
289
-
290
- | Name | Type |
291
- | :------ | :------ |
292
- | `address` | `string` |
293
-
294
- #### Returns
295
-
296
- `string`
297
-
298
- #### Inherited from
299
-
300
- [ActionWithL2](ActionWithL2.md).[addressToBytes20](ActionWithL2.md#addresstobytes20)
301
-
302
- #### Defined in
303
-
304
- [src/ActionWithL2.ts:26](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L26)
305
-
306
- ___
307
-
308
- ### boolToBytes1
309
-
310
- ▸ **boolToBytes1**(`bool`): ``"01"`` \| ``"00"``
311
-
312
- #### Parameters
313
-
314
- | Name | Type |
315
- | :------ | :------ |
316
- | `bool` | `boolean` |
317
-
318
- #### Returns
319
-
320
- ``"01"`` \| ``"00"``
321
-
322
- #### Inherited from
323
-
324
- [ActionWithL2](ActionWithL2.md).[boolToBytes1](ActionWithL2.md#booltobytes1)
325
-
326
- #### Defined in
327
-
328
- [src/ActionWithL2.ts:28](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L28)
329
-
330
- ___
331
-
332
- ### encodeForDsProxyCall
333
-
334
- ▸ **encodeForDsProxyCall**(): (`string` \| `string`[])[]
335
-
336
- Encode arguments for calling the action via DsProxy
337
-
338
- #### Returns
339
-
340
- (`string` \| `string`[])[]
341
-
342
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
343
-
344
- #### Inherited from
345
-
346
- [ActionWithL2](ActionWithL2.md).[encodeForDsProxyCall](ActionWithL2.md#encodefordsproxycall)
347
-
348
- #### Defined in
349
-
350
- [src/Action.ts:135](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L135)
351
-
352
- ___
353
-
354
- ### encodeForL2DsProxyCall
355
-
356
- ▸ **encodeForL2DsProxyCall**(): `string`
357
-
358
- Encode arguments for calling the action via DsProxy
359
-
360
- #### Returns
361
-
362
- `string`
363
-
364
- #### Inherited from
365
-
366
- [ActionWithL2](ActionWithL2.md).[encodeForL2DsProxyCall](ActionWithL2.md#encodeforl2dsproxycall)
367
-
368
- #### Defined in
369
-
370
- [src/ActionWithL2.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L15)
371
-
372
- ___
373
-
374
- ### encodeForL2Recipe
375
-
376
- ▸ **encodeForL2Recipe**(): `string`
377
-
378
- #### Returns
379
-
380
- `string`
381
-
382
- #### Inherited from
383
-
384
- [ActionWithL2](ActionWithL2.md).[encodeForL2Recipe](ActionWithL2.md#encodeforl2recipe)
385
-
386
- #### Defined in
387
-
388
- [src/ActionWithL2.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L17)
389
-
390
- ___
391
-
392
- ### encodeForRecipe
393
-
394
- ▸ **encodeForRecipe**(): (`string` \| `string`[] \| `number`[])[]
395
-
396
- Encodes action for Recipe call
397
-
398
- #### Returns
399
-
400
- (`string` \| `string`[] \| `number`[])[]
401
-
402
- #### Inherited from
403
-
404
- [ActionWithL2](ActionWithL2.md).[encodeForRecipe](ActionWithL2.md#encodeforrecipe)
405
-
406
- #### Defined in
407
-
408
- [src/Action.ts:150](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L150)
409
-
410
- ___
411
-
412
- ### encodeForStrategy
413
-
414
- ▸ **encodeForStrategy**(`subSlots`): (`string` \| `number`[])[]
415
-
416
- #### Parameters
417
-
418
- | Name | Type |
419
- | :------ | :------ |
420
- | `subSlots` | `any` |
421
-
422
- #### Returns
423
-
424
- (`string` \| `number`[])[]
425
-
426
- #### Inherited from
427
-
428
- [ActionWithL2](ActionWithL2.md).[encodeForStrategy](ActionWithL2.md#encodeforstrategy)
429
-
430
- #### Defined in
431
-
432
- [src/Action.ts:159](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L159)
433
-
434
- ___
435
-
436
- ### encodeInputs
437
-
438
- ▸ **encodeInputs**(): `string`
439
-
440
- #### Returns
441
-
442
- `string`
443
-
444
- #### Overrides
445
-
446
- [ActionWithL2](ActionWithL2.md).[encodeInputs](ActionWithL2.md#encodeinputs)
447
-
448
- #### Defined in
449
-
450
- [src/actions/aaveV3/AaveV3CollateralSwitchAction.ts:26](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/aaveV3/AaveV3CollateralSwitchAction.ts#L26)
451
-
452
- ___
453
-
454
- ### getAccessList
455
-
456
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
457
-
458
- Access list for single action
459
-
460
- #### Returns
461
-
462
- [`AccessListItem`](../modules.md#accesslistitem)[]
463
-
464
- #### Inherited from
465
-
466
- [ActionWithL2](ActionWithL2.md).[getAccessList](ActionWithL2.md#getaccesslist)
467
-
468
- #### Defined in
469
-
470
- [src/Action.ts:185](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L185)
471
-
472
- ___
473
-
474
- ### getAssetsToApprove
475
-
476
- ▸ **getAssetsToApprove**(): `Promise`<{ `[key: string]`: `any`; `asset?`: `string` ; `owner?`: `string` }[]\>
477
-
478
- Assets requiring approval to be used by DsProxy
479
- Approval is done from owner to DsProxy
480
-
481
- #### Returns
482
-
483
- `Promise`<{ `[key: string]`: `any`; `asset?`: `string` ; `owner?`: `string` }[]\>
484
-
485
- #### Inherited from
486
-
487
- [ActionWithL2](ActionWithL2.md).[getAssetsToApprove](ActionWithL2.md#getassetstoapprove)
488
-
489
- #### Defined in
490
-
491
- [src/Action.ts:170](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L170)
492
-
493
- ___
494
-
495
- ### getEthValue
496
-
497
- ▸ **getEthValue**(): `Promise`<`string`\>
498
-
499
- ETH value to be sent with transaction
500
-
501
- #### Returns
502
-
503
- `Promise`<`string`\>
504
-
505
- ETH value in wei
506
-
507
- #### Inherited from
508
-
509
- [ActionWithL2](ActionWithL2.md).[getEthValue](ActionWithL2.md#getethvalue)
510
-
511
- #### Defined in
512
-
513
- [src/ActionWithL2.ts:30](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L30)
514
-
515
- ___
516
-
517
- ### getId
518
-
519
- ▸ `Private` **getId**(): `string`
520
-
521
- #### Returns
522
-
523
- `string`
524
-
525
- #### Inherited from
526
-
527
- [ActionWithL2](ActionWithL2.md).[getId](ActionWithL2.md#getid)
528
-
529
- #### Defined in
530
-
531
- [src/Action.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L42)
532
-
533
- ___
534
-
535
- ### numberToBytes1
536
-
537
- ▸ **numberToBytes1**(`number`): `string`
538
-
539
- #### Parameters
540
-
541
- | Name | Type |
542
- | :------ | :------ |
543
- | `number` | `number` |
544
-
545
- #### Returns
546
-
547
- `string`
548
-
549
- #### Inherited from
550
-
551
- [ActionWithL2](ActionWithL2.md).[numberToBytes1](ActionWithL2.md#numbertobytes1)
552
-
553
- #### Defined in
554
-
555
- [src/ActionWithL2.ts:37](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L37)
556
-
557
- ___
558
-
559
- ### numberToBytes2
560
-
561
- ▸ **numberToBytes2**(`number`): `string`
562
-
563
- #### Parameters
564
-
565
- | Name | Type |
566
- | :------ | :------ |
567
- | `number` | `number` |
568
-
569
- #### Returns
570
-
571
- `string`
572
-
573
- #### Inherited from
574
-
575
- [ActionWithL2](ActionWithL2.md).[numberToBytes2](ActionWithL2.md#numbertobytes2)
576
-
577
- #### Defined in
578
-
579
- [src/ActionWithL2.ts:32](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L32)
580
-
581
- ___
582
-
583
- ### numberToBytes32
584
-
585
- ▸ **numberToBytes32**(`number`): `string`
586
-
587
- #### Parameters
588
-
589
- | Name | Type |
590
- | :------ | :------ |
591
- | `number` | `number` |
592
-
593
- #### Returns
594
-
595
- `string`
596
-
597
- #### Inherited from
598
-
599
- [ActionWithL2](ActionWithL2.md).[numberToBytes32](ActionWithL2.md#numbertobytes32)
600
-
601
- #### Defined in
602
-
603
- [src/ActionWithL2.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/ActionWithL2.ts#L42)