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