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