@defisaver/sdk 1.3.35 → 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 +3 -7
  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,459 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / RariWithdrawAction
2
-
3
- # Class: RariWithdrawAction
4
-
5
- RariWithdrawAction - Send pool tokens to fund manager which burns them, receive underlying stablecoin back
6
-
7
- ## Hierarchy
8
-
9
- - [`Action`](Action.md)
10
-
11
- ↳ **`RariWithdrawAction`**
12
-
13
- ## Table of contents
14
-
15
- ### Constructors
16
-
17
- - [constructor](RariWithdrawAction.md#constructor)
18
-
19
- ### Properties
20
-
21
- - [args](RariWithdrawAction.md#args)
22
- - [contractAddress](RariWithdrawAction.md#contractaddress)
23
- - [mappableArgs](RariWithdrawAction.md#mappableargs)
24
- - [name](RariWithdrawAction.md#name)
25
- - [paramTypes](RariWithdrawAction.md#paramtypes)
26
-
27
- ### Methods
28
-
29
- - [\_encodeForCall](RariWithdrawAction.md#_encodeforcall)
30
- - [\_formatType](RariWithdrawAction.md#_formattype)
31
- - [\_getArgumentMapping](RariWithdrawAction.md#_getargumentmapping)
32
- - [\_getArgumentMappingWithSlots](RariWithdrawAction.md#_getargumentmappingwithslots)
33
- - [\_getPlaceholderForType](RariWithdrawAction.md#_getplaceholderfortype)
34
- - [\_replaceWithPlaceholders](RariWithdrawAction.md#_replacewithplaceholders)
35
- - [encodeForDsProxyCall](RariWithdrawAction.md#encodefordsproxycall)
36
- - [encodeForL2DsProxyCall](RariWithdrawAction.md#encodeforl2dsproxycall)
37
- - [encodeForL2Recipe](RariWithdrawAction.md#encodeforl2recipe)
38
- - [encodeForRecipe](RariWithdrawAction.md#encodeforrecipe)
39
- - [encodeForStrategy](RariWithdrawAction.md#encodeforstrategy)
40
- - [getAccessList](RariWithdrawAction.md#getaccesslist)
41
- - [getAssetsToApprove](RariWithdrawAction.md#getassetstoapprove)
42
- - [getEthValue](RariWithdrawAction.md#getethvalue)
43
- - [getId](RariWithdrawAction.md#getid)
44
-
45
- ## Constructors
46
-
47
- ### constructor
48
-
49
- • **new RariWithdrawAction**(`fundManager`, `poolTokenAddress`, `poolTokensAmountToPull`, `from`, `stablecoinAddress`, `stablecoinAmountToWithdraw`, `to`)
50
-
51
- #### Parameters
52
-
53
- | Name | Type | Description |
54
- | :------ | :------ | :------ |
55
- | `fundManager` | `string` | fundManager for the pool which we want to withdraw from |
56
- | `poolTokenAddress` | `string` | poolToken address |
57
- | `poolTokensAmountToPull` | `string` | amount of tokens to pull to proxy |
58
- | `from` | `string` | poolTokens will be taken from this address |
59
- | `stablecoinAddress` | `string` | stablecoin token address |
60
- | `stablecoinAmountToWithdraw` | `string` | amount of stablecoin to withdraw from Rari |
61
- | `to` | `string` | stablecoins withdrawn will be sent to this address |
62
-
63
- #### Overrides
64
-
65
- [Action](Action.md).[constructor](Action.md#constructor)
66
-
67
- #### Defined in
68
-
69
- [src/actions/rari/RariWithdrawAction.ts:21](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/rari/RariWithdrawAction.ts#L21)
70
-
71
- ## Properties
72
-
73
- ### args
74
-
75
- • **args**: `any`[]
76
-
77
- #### Inherited from
78
-
79
- [Action](Action.md).[args](Action.md#args)
80
-
81
- #### Defined in
82
-
83
- [src/Action.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L18)
84
-
85
- ___
86
-
87
- ### contractAddress
88
-
89
- • **contractAddress**: `string`
90
-
91
- #### Inherited from
92
-
93
- [Action](Action.md).[contractAddress](Action.md#contractaddress)
94
-
95
- #### Defined in
96
-
97
- [src/Action.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L15)
98
-
99
- ___
100
-
101
- ### mappableArgs
102
-
103
- • **mappableArgs**: `any`[]
104
-
105
- #### Inherited from
106
-
107
- [Action](Action.md).[mappableArgs](Action.md#mappableargs)
108
-
109
- #### Defined in
110
-
111
- [src/Action.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L19)
112
-
113
- ___
114
-
115
- ### name
116
-
117
- • **name**: `string`
118
-
119
- #### Inherited from
120
-
121
- [Action](Action.md).[name](Action.md#name)
122
-
123
- #### Defined in
124
-
125
- [src/Action.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L17)
126
-
127
- ___
128
-
129
- ### paramTypes
130
-
131
- • **paramTypes**: (`string` \| `any`[])[]
132
-
133
- #### Inherited from
134
-
135
- [Action](Action.md).[paramTypes](Action.md#paramtypes)
136
-
137
- #### Defined in
138
-
139
- [src/Action.ts:16](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L16)
140
-
141
- ## Methods
142
-
143
- ### \_encodeForCall
144
-
145
- ▸ `Private` **_encodeForCall**(): `string`[]
146
-
147
- Encode arguments for calling the action directly
148
-
149
- #### Returns
150
-
151
- `string`[]
152
-
153
- bytes-encoded args
154
-
155
- #### Inherited from
156
-
157
- [Action](Action.md).[_encodeForCall](Action.md#_encodeforcall)
158
-
159
- #### Defined in
160
-
161
- [src/Action.ts:117](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L117)
162
-
163
- ___
164
-
165
- ### \_formatType
166
-
167
- ▸ `Private` **_formatType**(`paramType`): `string`
168
-
169
- #### Parameters
170
-
171
- | Name | Type |
172
- | :------ | :------ |
173
- | `paramType` | `string` \| `any`[] |
174
-
175
- #### Returns
176
-
177
- `string`
178
-
179
- #### Inherited from
180
-
181
- [Action](Action.md).[_formatType](Action.md#_formattype)
182
-
183
- #### Defined in
184
-
185
- [src/Action.ts:107](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L107)
186
-
187
- ___
188
-
189
- ### \_getArgumentMapping
190
-
191
- ▸ `Private` **_getArgumentMapping**(): `number`[]
192
-
193
- #### Returns
194
-
195
- `number`[]
196
-
197
- #### Inherited from
198
-
199
- [Action](Action.md).[_getArgumentMapping](Action.md#_getargumentmapping)
200
-
201
- #### Defined in
202
-
203
- [src/Action.ts:70](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L70)
204
-
205
- ___
206
-
207
- ### \_getArgumentMappingWithSlots
208
-
209
- ▸ `Private` **_getArgumentMappingWithSlots**(`subSlots`): `number`[]
210
-
211
- #### Parameters
212
-
213
- | Name | Type |
214
- | :------ | :------ |
215
- | `subSlots` | `any`[] |
216
-
217
- #### Returns
218
-
219
- `number`[]
220
-
221
- #### Inherited from
222
-
223
- [Action](Action.md).[_getArgumentMappingWithSlots](Action.md#_getargumentmappingwithslots)
224
-
225
- #### Defined in
226
-
227
- [src/Action.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L49)
228
-
229
- ___
230
-
231
- ### \_getPlaceholderForType
232
-
233
- ▸ `Private` **_getPlaceholderForType**(`type`): `string`
234
-
235
- #### Parameters
236
-
237
- | Name | Type |
238
- | :------ | :------ |
239
- | `type` | `string` |
240
-
241
- #### Returns
242
-
243
- `string`
244
-
245
- #### Inherited from
246
-
247
- [Action](Action.md).[_getPlaceholderForType](Action.md#_getplaceholderfortype)
248
-
249
- #### Defined in
250
-
251
- [src/Action.ts:84](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L84)
252
-
253
- ___
254
-
255
- ### \_replaceWithPlaceholders
256
-
257
- ▸ `Private` **_replaceWithPlaceholders**(`arg`, `paramType`): `any`
258
-
259
- #### Parameters
260
-
261
- | Name | Type |
262
- | :------ | :------ |
263
- | `arg` | `any` |
264
- | `paramType` | `string` \| `any`[] |
265
-
266
- #### Returns
267
-
268
- `any`
269
-
270
- #### Inherited from
271
-
272
- [Action](Action.md).[_replaceWithPlaceholders](Action.md#_replacewithplaceholders)
273
-
274
- #### Defined in
275
-
276
- [src/Action.ts:95](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L95)
277
-
278
- ___
279
-
280
- ### encodeForDsProxyCall
281
-
282
- ▸ **encodeForDsProxyCall**(): (`string` \| `string`[])[]
283
-
284
- Encode arguments for calling the action via DsProxy
285
-
286
- #### Returns
287
-
288
- (`string` \| `string`[])[]
289
-
290
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
291
-
292
- #### Inherited from
293
-
294
- [Action](Action.md).[encodeForDsProxyCall](Action.md#encodefordsproxycall)
295
-
296
- #### Defined in
297
-
298
- [src/Action.ts:135](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L135)
299
-
300
- ___
301
-
302
- ### encodeForL2DsProxyCall
303
-
304
- ▸ **encodeForL2DsProxyCall**(): `string`
305
-
306
- #### Returns
307
-
308
- `string`
309
-
310
- #### Inherited from
311
-
312
- [Action](Action.md).[encodeForL2DsProxyCall](Action.md#encodeforl2dsproxycall)
313
-
314
- #### Defined in
315
-
316
- [src/Action.ts:123](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L123)
317
-
318
- ___
319
-
320
- ### encodeForL2Recipe
321
-
322
- ▸ **encodeForL2Recipe**(): `string`
323
-
324
- #### Returns
325
-
326
- `string`
327
-
328
- #### Inherited from
329
-
330
- [Action](Action.md).[encodeForL2Recipe](Action.md#encodeforl2recipe)
331
-
332
- #### Defined in
333
-
334
- [src/Action.ts:127](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L127)
335
-
336
- ___
337
-
338
- ### encodeForRecipe
339
-
340
- ▸ **encodeForRecipe**(): (`string` \| `string`[] \| `number`[])[]
341
-
342
- Encodes action for Recipe call
343
-
344
- #### Returns
345
-
346
- (`string` \| `string`[] \| `number`[])[]
347
-
348
- #### Inherited from
349
-
350
- [Action](Action.md).[encodeForRecipe](Action.md#encodeforrecipe)
351
-
352
- #### Defined in
353
-
354
- [src/Action.ts:150](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L150)
355
-
356
- ___
357
-
358
- ### encodeForStrategy
359
-
360
- ▸ **encodeForStrategy**(`subSlots`): (`string` \| `number`[])[]
361
-
362
- #### Parameters
363
-
364
- | Name | Type |
365
- | :------ | :------ |
366
- | `subSlots` | `any` |
367
-
368
- #### Returns
369
-
370
- (`string` \| `number`[])[]
371
-
372
- #### Inherited from
373
-
374
- [Action](Action.md).[encodeForStrategy](Action.md#encodeforstrategy)
375
-
376
- #### Defined in
377
-
378
- [src/Action.ts:159](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L159)
379
-
380
- ___
381
-
382
- ### getAccessList
383
-
384
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
385
-
386
- Access list for single action
387
-
388
- #### Returns
389
-
390
- [`AccessListItem`](../modules.md#accesslistitem)[]
391
-
392
- #### Inherited from
393
-
394
- [Action](Action.md).[getAccessList](Action.md#getaccesslist)
395
-
396
- #### Defined in
397
-
398
- [src/Action.ts:185](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L185)
399
-
400
- ___
401
-
402
- ### getAssetsToApprove
403
-
404
- ▸ **getAssetsToApprove**(): `Promise`<{ `asset`: `any` ; `owner`: `any` }[]\>
405
-
406
- Assets requiring approval to be used by DsProxy
407
- Approval is done from owner to DsProxy
408
-
409
- #### Returns
410
-
411
- `Promise`<{ `asset`: `any` ; `owner`: `any` }[]\>
412
-
413
- #### Overrides
414
-
415
- [Action](Action.md).[getAssetsToApprove](Action.md#getassetstoapprove)
416
-
417
- #### Defined in
418
-
419
- [src/actions/rari/RariWithdrawAction.ts:32](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/actions/rari/RariWithdrawAction.ts#L32)
420
-
421
- ___
422
-
423
- ### getEthValue
424
-
425
- ▸ **getEthValue**(): `Promise`<`string`\>
426
-
427
- ETH value to be sent with transaction
428
-
429
- #### Returns
430
-
431
- `Promise`<`string`\>
432
-
433
- ETH value in wei
434
-
435
- #### Inherited from
436
-
437
- [Action](Action.md).[getEthValue](Action.md#getethvalue)
438
-
439
- #### Defined in
440
-
441
- [src/Action.ts:178](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L178)
442
-
443
- ___
444
-
445
- ### getId
446
-
447
- ▸ `Private` **getId**(): `string`
448
-
449
- #### Returns
450
-
451
- `string`
452
-
453
- #### Inherited from
454
-
455
- [Action](Action.md).[getId](Action.md#getid)
456
-
457
- #### Defined in
458
-
459
- [src/Action.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L42)
@@ -1,195 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / Recipe
2
-
3
- # Class: Recipe
4
-
5
- Set of Actions to be performed sequentially in a single transaction
6
-
7
- ## Table of contents
8
-
9
- ### Constructors
10
-
11
- - [constructor](Recipe.md#constructor)
12
-
13
- ### Properties
14
-
15
- - [actions](Recipe.md#actions)
16
- - [name](Recipe.md#name)
17
- - [recipeExecutorAddress](Recipe.md#recipeexecutoraddress)
18
-
19
- ### Methods
20
-
21
- - [\_encodeForCall](Recipe.md#_encodeforcall)
22
- - [\_validateParamMappings](Recipe.md#_validateparammappings)
23
- - [addAction](Recipe.md#addaction)
24
- - [encodeForDsProxyCall](Recipe.md#encodefordsproxycall)
25
- - [getAccessList](Recipe.md#getaccesslist)
26
- - [getAssetsToApprove](Recipe.md#getassetstoapprove)
27
- - [getEthValue](Recipe.md#getethvalue)
28
-
29
- ## Constructors
30
-
31
- ### constructor
32
-
33
- • **new Recipe**(`name`, `actions?`)
34
-
35
- #### Parameters
36
-
37
- | Name | Type | Default value |
38
- | :------ | :------ | :------ |
39
- | `name` | `string` | `undefined` |
40
- | `actions` | [`Action`](Action.md)[] | `[]` |
41
-
42
- #### Defined in
43
-
44
- [src/Recipe.ts:25](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L25)
45
-
46
- ## Properties
47
-
48
- ### actions
49
-
50
- • **actions**: [`Action`](Action.md)[]
51
-
52
- #### Defined in
53
-
54
- [src/Recipe.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L18)
55
-
56
- ___
57
-
58
- ### name
59
-
60
- • **name**: `string`
61
-
62
- #### Defined in
63
-
64
- [src/Recipe.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L17)
65
-
66
- ___
67
-
68
- ### recipeExecutorAddress
69
-
70
- • **recipeExecutorAddress**: `string`
71
-
72
- #### Defined in
73
-
74
- [src/Recipe.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L19)
75
-
76
- ## Methods
77
-
78
- ### \_encodeForCall
79
-
80
- ▸ `Private` **_encodeForCall**(): (`string` \| `any`[])[]
81
-
82
- Encode arguments for calling the action set directly
83
-
84
- #### Returns
85
-
86
- (`string` \| `any`[])[]
87
-
88
- #### Defined in
89
-
90
- [src/Recipe.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L49)
91
-
92
- ___
93
-
94
- ### \_validateParamMappings
95
-
96
- ▸ **_validateParamMappings**(): `void`
97
-
98
- Logs parameter mapping in verbose format for validation. Used for testing in development.
99
-
100
- #### Returns
101
-
102
- `void`
103
-
104
- #### Defined in
105
-
106
- [src/Recipe.ts:76](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L76)
107
-
108
- ___
109
-
110
- ### addAction
111
-
112
- ▸ **addAction**(`action`): [`Recipe`](Recipe.md)
113
-
114
- #### Parameters
115
-
116
- | Name | Type |
117
- | :------ | :------ |
118
- | `action` | [`Action`](Action.md) |
119
-
120
- #### Returns
121
-
122
- [`Recipe`](Recipe.md)
123
-
124
- #### Defined in
125
-
126
- [src/Recipe.ts:39](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L39)
127
-
128
- ___
129
-
130
- ### encodeForDsProxyCall
131
-
132
- ▸ **encodeForDsProxyCall**(): `string`[]
133
-
134
- Encode arguments for calling the action set via DsProxy
135
-
136
- #### Returns
137
-
138
- `string`[]
139
-
140
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
141
-
142
- #### Defined in
143
-
144
- [src/Recipe.ts:63](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L63)
145
-
146
- ___
147
-
148
- ### getAccessList
149
-
150
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
151
-
152
- Generates an access list for the recipe
153
-
154
- #### Returns
155
-
156
- [`AccessListItem`](../modules.md#accesslistitem)[]
157
-
158
- #### Defined in
159
-
160
- [src/Recipe.ts:115](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L115)
161
-
162
- ___
163
-
164
- ### getAssetsToApprove
165
-
166
- ▸ **getAssetsToApprove**(): `Promise`<{ `asset`: `string` ; `owner`: `string` }[]\>
167
-
168
- Assets requiring approval to be used by DsProxy
169
- Approval is done from owner to DsProxy
170
-
171
- #### Returns
172
-
173
- `Promise`<{ `asset`: `string` ; `owner`: `string` }[]\>
174
-
175
- #### Defined in
176
-
177
- [src/Recipe.ts:88](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L88)
178
-
179
- ___
180
-
181
- ### getEthValue
182
-
183
- ▸ **getEthValue**(): `Promise`<`string`\>
184
-
185
- ETH value to be sent with transaction
186
-
187
- #### Returns
188
-
189
- `Promise`<`string`\>
190
-
191
- ETH value in wei
192
-
193
- #### Defined in
194
-
195
- [src/Recipe.ts:106](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Recipe.ts#L106)