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