@defisaver/sdk 1.3.36 → 1.3.37-semi-continuous-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +55 -9
  2. package/docs/DEV.md +63 -0
  3. package/esm/src/Action.js +21 -13
  4. package/esm/src/ActionWithL2.js +4 -0
  5. package/esm/src/Recipe.js +5 -1
  6. package/package.json +2 -6
  7. package/src/Action.ts +18 -9
  8. package/src/ActionWithL2.ts +2 -0
  9. package/src/Recipe.ts +4 -1
  10. package/test/Action.js +83 -3
  11. package/test/ActionWithL2.js +65 -19
  12. package/test/Recipe.js +97 -0
  13. package/tsconfig.json +1 -5
  14. package/umd/index.js +24 -13
  15. package/ACTIONS.md +0 -1765
  16. package/DEV.md +0 -43
  17. package/docs/md/.nojekyll +0 -1
  18. package/docs/md/README.md +0 -12
  19. package/docs/md/classes/AaveBorrowAction.md +0 -458
  20. package/docs/md/classes/AaveClaimStkAaveAction.md +0 -455
  21. package/docs/md/classes/AaveCollateralSwitchAction.md +0 -455
  22. package/docs/md/classes/AavePaybackAction.md +0 -458
  23. package/docs/md/classes/AaveSupplyAction.md +0 -458
  24. package/docs/md/classes/AaveV2FlashLoanAction.md +0 -458
  25. package/docs/md/classes/AaveV2FlashLoanPaybackAction.md +0 -454
  26. package/docs/md/classes/AaveV3ATokenPaybackAction.md +0 -644
  27. package/docs/md/classes/AaveV3BorrowAction.md +0 -606
  28. package/docs/md/classes/AaveV3ClaimRewardsAction.md +0 -603
  29. package/docs/md/classes/AaveV3CollateralSwitchAction.md +0 -603
  30. package/docs/md/classes/AaveV3FlashLoanAction.md +0 -604
  31. package/docs/md/classes/AaveV3FlashLoanPaybackAction.md +0 -454
  32. package/docs/md/classes/AaveV3PaybackAction.md +0 -618
  33. package/docs/md/classes/AaveV3RatioCheckAction.md +0 -454
  34. package/docs/md/classes/AaveV3RatioTrigger.md +0 -454
  35. package/docs/md/classes/AaveV3SetEModeAction.md +0 -601
  36. package/docs/md/classes/AaveV3SupplyAction.md +0 -618
  37. package/docs/md/classes/AaveV3SwapBorrowRateModeAction.md +0 -602
  38. package/docs/md/classes/AaveV3WithdrawAction.md +0 -603
  39. package/docs/md/classes/AaveWithdrawAction.md +0 -456
  40. package/docs/md/classes/Action.md +0 -604
  41. package/docs/md/classes/ActionWithL2.md +0 -612
  42. package/docs/md/classes/AutomationV2Unsub.md +0 -452
  43. package/docs/md/classes/BalancerFlashLoanAction.md +0 -456
  44. package/docs/md/classes/BalancerFlashLoanPaybackAction.md +0 -454
  45. package/docs/md/classes/BalancerV2ClaimAction.md +0 -457
  46. package/docs/md/classes/BalancerV2SupplyAction.md +0 -458
  47. package/docs/md/classes/BalancerV2WithdrawAction.md +0 -470
  48. package/docs/md/classes/CBChickenInAction.md +0 -454
  49. package/docs/md/classes/CBChickenOutAction.md +0 -455
  50. package/docs/md/classes/CBCreateAction.md +0 -454
  51. package/docs/md/classes/CBRedeemAction.md +0 -456
  52. package/docs/md/classes/ChainLinkPriceTrigger.md +0 -453
  53. package/docs/md/classes/ChangeProxyOwnerAction.md +0 -453
  54. package/docs/md/classes/CompV3RatioTrigger.md +0 -454
  55. package/docs/md/classes/CompoundBorrowAction.md +0 -455
  56. package/docs/md/classes/CompoundClaimAction.md +0 -456
  57. package/docs/md/classes/CompoundCollateralSwitchAction.md +0 -454
  58. package/docs/md/classes/CompoundGetDebtAction.md +0 -452
  59. package/docs/md/classes/CompoundPaybackAction.md +0 -456
  60. package/docs/md/classes/CompoundRatioTrigger.md +0 -453
  61. package/docs/md/classes/CompoundSupplyAction.md +0 -456
  62. package/docs/md/classes/CompoundV3AllowAction.md +0 -455
  63. package/docs/md/classes/CompoundV3BorrowAction.md +0 -456
  64. package/docs/md/classes/CompoundV3ClaimAction.md +0 -456
  65. package/docs/md/classes/CompoundV3PaybackAction.md +0 -468
  66. package/docs/md/classes/CompoundV3RatioCheckAction.md +0 -456
  67. package/docs/md/classes/CompoundV3SupplyAction.md +0 -468
  68. package/docs/md/classes/CompoundV3TransferAction.md +0 -457
  69. package/docs/md/classes/CompoundV3WithdrawAction.md +0 -457
  70. package/docs/md/classes/CompoundWithdrawAction.md +0 -455
  71. package/docs/md/classes/ConvexClaimAction.md +0 -466
  72. package/docs/md/classes/ConvexDepositAction.md +0 -468
  73. package/docs/md/classes/ConvexWithdrawAction.md +0 -468
  74. package/docs/md/classes/CurveClaimFeesAction.md +0 -452
  75. package/docs/md/classes/CurveDepositAction.md +0 -467
  76. package/docs/md/classes/CurveGaugeDepositAction.md +0 -455
  77. package/docs/md/classes/CurveGaugeWithdrawAction.md +0 -454
  78. package/docs/md/classes/CurveMintCrvAction.md +0 -452
  79. package/docs/md/classes/CurveStethPoolDepositAction.md +0 -456
  80. package/docs/md/classes/CurveStethPoolWithdrawAction.md +0 -457
  81. package/docs/md/classes/CurveSwapAction.md +0 -457
  82. package/docs/md/classes/CurveWithdrawAction.md +0 -468
  83. package/docs/md/classes/DfsWeb3.md +0 -212
  84. package/docs/md/classes/DyDxFlashLoanAction.md +0 -456
  85. package/docs/md/classes/DyDxFlashLoanPaybackAction.md +0 -454
  86. package/docs/md/classes/DyDxWithdrawAction.md +0 -455
  87. package/docs/md/classes/EulerFlashLoanAction.md +0 -456
  88. package/docs/md/classes/EulerFlashLoanPaybackAction.md +0 -454
  89. package/docs/md/classes/GUniDeposit.md +0 -461
  90. package/docs/md/classes/GUniWithdraw.md +0 -458
  91. package/docs/md/classes/GasFeeAction.md +0 -454
  92. package/docs/md/classes/GasFeeActionL2.md +0 -455
  93. package/docs/md/classes/GasPriceTrigger.md +0 -35
  94. package/docs/md/classes/InstPullTokensAction.md +0 -454
  95. package/docs/md/classes/LidoStakeAction.md +0 -455
  96. package/docs/md/classes/LidoUnwrapAction.md +0 -455
  97. package/docs/md/classes/LidoWrapAction.md +0 -456
  98. package/docs/md/classes/LiquityBorrowAction.md +0 -457
  99. package/docs/md/classes/LiquityClaimAction.md +0 -453
  100. package/docs/md/classes/LiquityClaimSPRewardsAction.md +0 -454
  101. package/docs/md/classes/LiquityClaimStakingRewardsAction.md +0 -454
  102. package/docs/md/classes/LiquityCloseAction.md +0 -454
  103. package/docs/md/classes/LiquityEthGainToTroveAction.md +0 -455
  104. package/docs/md/classes/LiquityOpenAction.md +0 -459
  105. package/docs/md/classes/LiquityPaybackAction.md +0 -456
  106. package/docs/md/classes/LiquityRatioTrigger.md +0 -453
  107. package/docs/md/classes/LiquityRedeemAction.md +0 -461
  108. package/docs/md/classes/LiquitySPDepositAction.md +0 -456
  109. package/docs/md/classes/LiquitySPWithdrawAction.md +0 -458
  110. package/docs/md/classes/LiquityStakeAction.md +0 -456
  111. package/docs/md/classes/LiquitySupplyAction.md +0 -456
  112. package/docs/md/classes/LiquityUnstakeAction.md +0 -458
  113. package/docs/md/classes/LiquityWithdrawAction.md +0 -456
  114. package/docs/md/classes/MStableClaimAction.md +0 -456
  115. package/docs/md/classes/MStableDepositAction.md +0 -461
  116. package/docs/md/classes/MStableWithdrawAction.md +0 -461
  117. package/docs/md/classes/MakerClaimAction.md +0 -455
  118. package/docs/md/classes/MakerFlashLoanAction.md +0 -455
  119. package/docs/md/classes/MakerFlashLoanPaybackAction.md +0 -454
  120. package/docs/md/classes/MakerGenerateAction.md +0 -456
  121. package/docs/md/classes/MakerGiveAction.md +0 -456
  122. package/docs/md/classes/MakerMergeAction.md +0 -455
  123. package/docs/md/classes/MakerOpenVaultAction.md +0 -454
  124. package/docs/md/classes/MakerPaybackAction.md +0 -456
  125. package/docs/md/classes/MakerRatioAction.md +0 -453
  126. package/docs/md/classes/MakerRatioCheckAction.md +0 -457
  127. package/docs/md/classes/MakerRatioTrigger.md +0 -453
  128. package/docs/md/classes/MakerSupplyAction.md +0 -457
  129. package/docs/md/classes/MakerWithdrawAction.md +0 -457
  130. package/docs/md/classes/PullTokenAction.md +0 -455
  131. package/docs/md/classes/RariDepositAction.md +0 -458
  132. package/docs/md/classes/RariWithdrawAction.md +0 -459
  133. package/docs/md/classes/Recipe.md +0 -195
  134. package/docs/md/classes/ReflexerGenerateAction.md +0 -455
  135. package/docs/md/classes/ReflexerNativeUniV2SaviourDepositAction.md +0 -455
  136. package/docs/md/classes/ReflexerNativeUniV2SaviourGetReservesAction.md +0 -454
  137. package/docs/md/classes/ReflexerNativeUniV2SaviourWithdrawAction.md +0 -455
  138. package/docs/md/classes/ReflexerOpenSafeAction.md +0 -453
  139. package/docs/md/classes/ReflexerPaybackAction.md +0 -455
  140. package/docs/md/classes/ReflexerRatioTrigger.md +0 -453
  141. package/docs/md/classes/ReflexerSupplyAction.md +0 -456
  142. package/docs/md/classes/ReflexerWithdrawAction.md +0 -456
  143. package/docs/md/classes/SellAction.md +0 -613
  144. package/docs/md/classes/SendTokenAction.md +0 -467
  145. package/docs/md/classes/SendTokenAndUnwrapAction.md +0 -455
  146. package/docs/md/classes/Strategy.md +0 -195
  147. package/docs/md/classes/SubInputsAction.md +0 -454
  148. package/docs/md/classes/SumInputsAction.md +0 -454
  149. package/docs/md/classes/TimestampTrigger.md +0 -451
  150. package/docs/md/classes/ToggleSubAction.md +0 -454
  151. package/docs/md/classes/TokenBalanceAction.md +0 -452
  152. package/docs/md/classes/TrailingStopTrigger.md +0 -453
  153. package/docs/md/classes/TransferNFTAction.md +0 -454
  154. package/docs/md/classes/UniV3CurrentTickTrigger.md +0 -452
  155. package/docs/md/classes/UniswapSupplyAction.md +0 -461
  156. package/docs/md/classes/UniswapV3CollectAction.md +0 -614
  157. package/docs/md/classes/UniswapV3CreatePoolAction.md +0 -611
  158. package/docs/md/classes/UniswapV3MintAction.md +0 -610
  159. package/docs/md/classes/UniswapV3SupplyAction.md +0 -63
  160. package/docs/md/classes/UniswapV3WithdrawAction.md +0 -618
  161. package/docs/md/classes/UniswapWithdrawAction.md +0 -460
  162. package/docs/md/classes/UnwrapEthAction.md +0 -600
  163. package/docs/md/classes/UpdateSubAction.md +0 -454
  164. package/docs/md/classes/WrapEthAction.md +0 -599
  165. package/docs/md/classes/YearnSupplyAction.md +0 -456
  166. package/docs/md/classes/YearnWithdrawAction.md +0 -456
  167. package/docs/md/modules.md +0 -814
@@ -1,604 +0,0 @@
1
- [@defisaver/sdk](../README.md) / [Exports](../modules.md) / Action
2
-
3
- # Class: Action
4
-
5
- Single action that can be executed directly, or combined into a set (ie. supply a vault)
6
-
7
- ## Hierarchy
8
-
9
- - **`Action`**
10
-
11
- ↳ [`ActionWithL2`](ActionWithL2.md)
12
-
13
- ↳ [`MakerOpenVaultAction`](MakerOpenVaultAction.md)
14
-
15
- ↳ [`MakerGenerateAction`](MakerGenerateAction.md)
16
-
17
- ↳ [`MakerSupplyAction`](MakerSupplyAction.md)
18
-
19
- ↳ [`MakerPaybackAction`](MakerPaybackAction.md)
20
-
21
- ↳ [`MakerWithdrawAction`](MakerWithdrawAction.md)
22
-
23
- ↳ [`MakerGiveAction`](MakerGiveAction.md)
24
-
25
- ↳ [`MakerMergeAction`](MakerMergeAction.md)
26
-
27
- ↳ [`MakerRatioAction`](MakerRatioAction.md)
28
-
29
- ↳ [`MakerClaimAction`](MakerClaimAction.md)
30
-
31
- ↳ [`AaveBorrowAction`](AaveBorrowAction.md)
32
-
33
- ↳ [`AaveSupplyAction`](AaveSupplyAction.md)
34
-
35
- ↳ [`AavePaybackAction`](AavePaybackAction.md)
36
-
37
- ↳ [`AaveWithdrawAction`](AaveWithdrawAction.md)
38
-
39
- ↳ [`AaveClaimStkAaveAction`](AaveClaimStkAaveAction.md)
40
-
41
- ↳ [`AaveCollateralSwitchAction`](AaveCollateralSwitchAction.md)
42
-
43
- ↳ [`CompoundBorrowAction`](CompoundBorrowAction.md)
44
-
45
- ↳ [`CompoundSupplyAction`](CompoundSupplyAction.md)
46
-
47
- ↳ [`CompoundPaybackAction`](CompoundPaybackAction.md)
48
-
49
- ↳ [`CompoundWithdrawAction`](CompoundWithdrawAction.md)
50
-
51
- ↳ [`CompoundClaimAction`](CompoundClaimAction.md)
52
-
53
- ↳ [`CompoundCollateralSwitchAction`](CompoundCollateralSwitchAction.md)
54
-
55
- ↳ [`CompoundGetDebtAction`](CompoundGetDebtAction.md)
56
-
57
- ↳ [`SendTokenAction`](SendTokenAction.md)
58
-
59
- ↳ [`SendTokenAndUnwrapAction`](SendTokenAndUnwrapAction.md)
60
-
61
- ↳ [`PullTokenAction`](PullTokenAction.md)
62
-
63
- ↳ [`SumInputsAction`](SumInputsAction.md)
64
-
65
- ↳ [`SubInputsAction`](SubInputsAction.md)
66
-
67
- ↳ [`ChangeProxyOwnerAction`](ChangeProxyOwnerAction.md)
68
-
69
- ↳ [`TokenBalanceAction`](TokenBalanceAction.md)
70
-
71
- ↳ [`AutomationV2Unsub`](AutomationV2Unsub.md)
72
-
73
- ↳ [`GasFeeAction`](GasFeeAction.md)
74
-
75
- ↳ [`UpdateSubAction`](UpdateSubAction.md)
76
-
77
- ↳ [`ToggleSubAction`](ToggleSubAction.md)
78
-
79
- ↳ [`GasFeeActionL2`](GasFeeActionL2.md)
80
-
81
- ↳ [`TransferNFTAction`](TransferNFTAction.md)
82
-
83
- ↳ [`DyDxFlashLoanAction`](DyDxFlashLoanAction.md)
84
-
85
- ↳ [`AaveV2FlashLoanAction`](AaveV2FlashLoanAction.md)
86
-
87
- ↳ [`MakerFlashLoanAction`](MakerFlashLoanAction.md)
88
-
89
- ↳ [`BalancerFlashLoanAction`](BalancerFlashLoanAction.md)
90
-
91
- ↳ [`EulerFlashLoanAction`](EulerFlashLoanAction.md)
92
-
93
- ↳ [`UniswapSupplyAction`](UniswapSupplyAction.md)
94
-
95
- ↳ [`UniswapWithdrawAction`](UniswapWithdrawAction.md)
96
-
97
- ↳ [`ReflexerOpenSafeAction`](ReflexerOpenSafeAction.md)
98
-
99
- ↳ [`ReflexerGenerateAction`](ReflexerGenerateAction.md)
100
-
101
- ↳ [`ReflexerSupplyAction`](ReflexerSupplyAction.md)
102
-
103
- ↳ [`ReflexerPaybackAction`](ReflexerPaybackAction.md)
104
-
105
- ↳ [`ReflexerWithdrawAction`](ReflexerWithdrawAction.md)
106
-
107
- ↳ [`ReflexerNativeUniV2SaviourDepositAction`](ReflexerNativeUniV2SaviourDepositAction.md)
108
-
109
- ↳ [`ReflexerNativeUniV2SaviourWithdrawAction`](ReflexerNativeUniV2SaviourWithdrawAction.md)
110
-
111
- ↳ [`ReflexerNativeUniV2SaviourGetReservesAction`](ReflexerNativeUniV2SaviourGetReservesAction.md)
112
-
113
- ↳ [`DyDxWithdrawAction`](DyDxWithdrawAction.md)
114
-
115
- ↳ [`MakerRatioCheckAction`](MakerRatioCheckAction.md)
116
-
117
- ↳ [`AaveV3RatioCheckAction`](AaveV3RatioCheckAction.md)
118
-
119
- ↳ [`CompoundV3RatioCheckAction`](CompoundV3RatioCheckAction.md)
120
-
121
- ↳ [`LiquityOpenAction`](LiquityOpenAction.md)
122
-
123
- ↳ [`LiquityBorrowAction`](LiquityBorrowAction.md)
124
-
125
- ↳ [`LiquityPaybackAction`](LiquityPaybackAction.md)
126
-
127
- ↳ [`LiquitySupplyAction`](LiquitySupplyAction.md)
128
-
129
- ↳ [`LiquityWithdrawAction`](LiquityWithdrawAction.md)
130
-
131
- ↳ [`LiquityCloseAction`](LiquityCloseAction.md)
132
-
133
- ↳ [`LiquityClaimAction`](LiquityClaimAction.md)
134
-
135
- ↳ [`LiquityRedeemAction`](LiquityRedeemAction.md)
136
-
137
- ↳ [`LiquitySPDepositAction`](LiquitySPDepositAction.md)
138
-
139
- ↳ [`LiquitySPWithdrawAction`](LiquitySPWithdrawAction.md)
140
-
141
- ↳ [`LiquityStakeAction`](LiquityStakeAction.md)
142
-
143
- ↳ [`LiquityUnstakeAction`](LiquityUnstakeAction.md)
144
-
145
- ↳ [`LiquityEthGainToTroveAction`](LiquityEthGainToTroveAction.md)
146
-
147
- ↳ [`YearnSupplyAction`](YearnSupplyAction.md)
148
-
149
- ↳ [`YearnWithdrawAction`](YearnWithdrawAction.md)
150
-
151
- ↳ [`LidoStakeAction`](LidoStakeAction.md)
152
-
153
- ↳ [`LidoWrapAction`](LidoWrapAction.md)
154
-
155
- ↳ [`LidoUnwrapAction`](LidoUnwrapAction.md)
156
-
157
- ↳ [`InstPullTokensAction`](InstPullTokensAction.md)
158
-
159
- ↳ [`BalancerV2SupplyAction`](BalancerV2SupplyAction.md)
160
-
161
- ↳ [`BalancerV2WithdrawAction`](BalancerV2WithdrawAction.md)
162
-
163
- ↳ [`BalancerV2ClaimAction`](BalancerV2ClaimAction.md)
164
-
165
- ↳ [`CurveSwapAction`](CurveSwapAction.md)
166
-
167
- ↳ [`CurveDepositAction`](CurveDepositAction.md)
168
-
169
- ↳ [`CurveWithdrawAction`](CurveWithdrawAction.md)
170
-
171
- ↳ [`CurveGaugeDepositAction`](CurveGaugeDepositAction.md)
172
-
173
- ↳ [`CurveGaugeWithdrawAction`](CurveGaugeWithdrawAction.md)
174
-
175
- ↳ [`CurveMintCrvAction`](CurveMintCrvAction.md)
176
-
177
- ↳ [`CurveClaimFeesAction`](CurveClaimFeesAction.md)
178
-
179
- ↳ [`CurveStethPoolDepositAction`](CurveStethPoolDepositAction.md)
180
-
181
- ↳ [`CurveStethPoolWithdrawAction`](CurveStethPoolWithdrawAction.md)
182
-
183
- ↳ [`GUniDeposit`](GUniDeposit.md)
184
-
185
- ↳ [`GUniWithdraw`](GUniWithdraw.md)
186
-
187
- ↳ [`MStableDepositAction`](MStableDepositAction.md)
188
-
189
- ↳ [`MStableWithdrawAction`](MStableWithdrawAction.md)
190
-
191
- ↳ [`MStableClaimAction`](MStableClaimAction.md)
192
-
193
- ↳ [`RariDepositAction`](RariDepositAction.md)
194
-
195
- ↳ [`RariWithdrawAction`](RariWithdrawAction.md)
196
-
197
- ↳ [`ConvexDepositAction`](ConvexDepositAction.md)
198
-
199
- ↳ [`ConvexWithdrawAction`](ConvexWithdrawAction.md)
200
-
201
- ↳ [`ConvexClaimAction`](ConvexClaimAction.md)
202
-
203
- ↳ [`CBCreateAction`](CBCreateAction.md)
204
-
205
- ↳ [`CBChickenInAction`](CBChickenInAction.md)
206
-
207
- ↳ [`CBChickenOutAction`](CBChickenOutAction.md)
208
-
209
- ↳ [`CBRedeemAction`](CBRedeemAction.md)
210
-
211
- ↳ [`CompoundV3SupplyAction`](CompoundV3SupplyAction.md)
212
-
213
- ↳ [`CompoundV3BorrowAction`](CompoundV3BorrowAction.md)
214
-
215
- ↳ [`CompoundV3PaybackAction`](CompoundV3PaybackAction.md)
216
-
217
- ↳ [`CompoundV3WithdrawAction`](CompoundV3WithdrawAction.md)
218
-
219
- ↳ [`CompoundV3ClaimAction`](CompoundV3ClaimAction.md)
220
-
221
- ↳ [`CompoundV3AllowAction`](CompoundV3AllowAction.md)
222
-
223
- ↳ [`CompoundV3TransferAction`](CompoundV3TransferAction.md)
224
-
225
- ↳ [`MakerRatioTrigger`](MakerRatioTrigger.md)
226
-
227
- ↳ [`ChainLinkPriceTrigger`](ChainLinkPriceTrigger.md)
228
-
229
- ↳ [`UniV3CurrentTickTrigger`](UniV3CurrentTickTrigger.md)
230
-
231
- ↳ [`TimestampTrigger`](TimestampTrigger.md)
232
-
233
- ↳ [`CompoundRatioTrigger`](CompoundRatioTrigger.md)
234
-
235
- ↳ [`ReflexerRatioTrigger`](ReflexerRatioTrigger.md)
236
-
237
- ↳ [`LiquityRatioTrigger`](LiquityRatioTrigger.md)
238
-
239
- ↳ [`AaveV3RatioTrigger`](AaveV3RatioTrigger.md)
240
-
241
- ↳ [`CompV3RatioTrigger`](CompV3RatioTrigger.md)
242
-
243
- ↳ [`TrailingStopTrigger`](TrailingStopTrigger.md)
244
-
245
- ## Table of contents
246
-
247
- ### Constructors
248
-
249
- - [constructor](Action.md#constructor)
250
-
251
- ### Properties
252
-
253
- - [args](Action.md#args)
254
- - [contractAddress](Action.md#contractaddress)
255
- - [mappableArgs](Action.md#mappableargs)
256
- - [name](Action.md#name)
257
- - [paramTypes](Action.md#paramtypes)
258
-
259
- ### Methods
260
-
261
- - [\_encodeForCall](Action.md#_encodeforcall)
262
- - [\_formatType](Action.md#_formattype)
263
- - [\_getArgumentMapping](Action.md#_getargumentmapping)
264
- - [\_getArgumentMappingWithSlots](Action.md#_getargumentmappingwithslots)
265
- - [\_getPlaceholderForType](Action.md#_getplaceholderfortype)
266
- - [\_replaceWithPlaceholders](Action.md#_replacewithplaceholders)
267
- - [encodeForDsProxyCall](Action.md#encodefordsproxycall)
268
- - [encodeForL2DsProxyCall](Action.md#encodeforl2dsproxycall)
269
- - [encodeForL2Recipe](Action.md#encodeforl2recipe)
270
- - [encodeForRecipe](Action.md#encodeforrecipe)
271
- - [encodeForStrategy](Action.md#encodeforstrategy)
272
- - [getAccessList](Action.md#getaccesslist)
273
- - [getAssetsToApprove](Action.md#getassetstoapprove)
274
- - [getEthValue](Action.md#getethvalue)
275
- - [getId](Action.md#getid)
276
-
277
- ## Constructors
278
-
279
- ### constructor
280
-
281
- • **new Action**(`name`, `contractAddress`, `paramTypes`, `args`)
282
-
283
- #### Parameters
284
-
285
- | Name | Type |
286
- | :------ | :------ |
287
- | `name` | `string` |
288
- | `contractAddress` | `string` |
289
- | `paramTypes` | (`string` \| `any`[])[] |
290
- | `args` | `any`[] |
291
-
292
- #### Defined in
293
-
294
- [src/Action.ts:27](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L27)
295
-
296
- ## Properties
297
-
298
- ### args
299
-
300
- • **args**: `any`[]
301
-
302
- #### Defined in
303
-
304
- [src/Action.ts:18](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L18)
305
-
306
- ___
307
-
308
- ### contractAddress
309
-
310
- • **contractAddress**: `string`
311
-
312
- #### Defined in
313
-
314
- [src/Action.ts:15](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L15)
315
-
316
- ___
317
-
318
- ### mappableArgs
319
-
320
- • **mappableArgs**: `any`[]
321
-
322
- #### Defined in
323
-
324
- [src/Action.ts:19](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L19)
325
-
326
- ___
327
-
328
- ### name
329
-
330
- • **name**: `string`
331
-
332
- #### Defined in
333
-
334
- [src/Action.ts:17](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L17)
335
-
336
- ___
337
-
338
- ### paramTypes
339
-
340
- • **paramTypes**: (`string` \| `any`[])[]
341
-
342
- #### Defined in
343
-
344
- [src/Action.ts:16](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L16)
345
-
346
- ## Methods
347
-
348
- ### \_encodeForCall
349
-
350
- ▸ `Private` **_encodeForCall**(): `string`[]
351
-
352
- Encode arguments for calling the action directly
353
-
354
- #### Returns
355
-
356
- `string`[]
357
-
358
- bytes-encoded args
359
-
360
- #### Defined in
361
-
362
- [src/Action.ts:117](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L117)
363
-
364
- ___
365
-
366
- ### \_formatType
367
-
368
- ▸ `Private` **_formatType**(`paramType`): `string`
369
-
370
- #### Parameters
371
-
372
- | Name | Type |
373
- | :------ | :------ |
374
- | `paramType` | `string` \| `any`[] |
375
-
376
- #### Returns
377
-
378
- `string`
379
-
380
- #### Defined in
381
-
382
- [src/Action.ts:107](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L107)
383
-
384
- ___
385
-
386
- ### \_getArgumentMapping
387
-
388
- ▸ `Private` **_getArgumentMapping**(): `number`[]
389
-
390
- #### Returns
391
-
392
- `number`[]
393
-
394
- #### Defined in
395
-
396
- [src/Action.ts:70](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L70)
397
-
398
- ___
399
-
400
- ### \_getArgumentMappingWithSlots
401
-
402
- ▸ `Private` **_getArgumentMappingWithSlots**(`subSlots`): `number`[]
403
-
404
- #### Parameters
405
-
406
- | Name | Type |
407
- | :------ | :------ |
408
- | `subSlots` | `any`[] |
409
-
410
- #### Returns
411
-
412
- `number`[]
413
-
414
- #### Defined in
415
-
416
- [src/Action.ts:49](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L49)
417
-
418
- ___
419
-
420
- ### \_getPlaceholderForType
421
-
422
- ▸ `Private` **_getPlaceholderForType**(`type`): `string`
423
-
424
- #### Parameters
425
-
426
- | Name | Type |
427
- | :------ | :------ |
428
- | `type` | `string` |
429
-
430
- #### Returns
431
-
432
- `string`
433
-
434
- #### Defined in
435
-
436
- [src/Action.ts:84](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L84)
437
-
438
- ___
439
-
440
- ### \_replaceWithPlaceholders
441
-
442
- ▸ `Private` **_replaceWithPlaceholders**(`arg`, `paramType`): `any`
443
-
444
- #### Parameters
445
-
446
- | Name | Type |
447
- | :------ | :------ |
448
- | `arg` | `any` |
449
- | `paramType` | `string` \| `any`[] |
450
-
451
- #### Returns
452
-
453
- `any`
454
-
455
- #### Defined in
456
-
457
- [src/Action.ts:95](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L95)
458
-
459
- ___
460
-
461
- ### encodeForDsProxyCall
462
-
463
- ▸ **encodeForDsProxyCall**(): (`string` \| `string`[])[]
464
-
465
- Encode arguments for calling the action via DsProxy
466
-
467
- #### Returns
468
-
469
- (`string` \| `string`[])[]
470
-
471
- `address` & `data` to be passed on to DSProxy's `execute(address _target, bytes memory _data)`
472
-
473
- #### Defined in
474
-
475
- [src/Action.ts:135](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L135)
476
-
477
- ___
478
-
479
- ### encodeForL2DsProxyCall
480
-
481
- ▸ **encodeForL2DsProxyCall**(): `string`
482
-
483
- #### Returns
484
-
485
- `string`
486
-
487
- #### Defined in
488
-
489
- [src/Action.ts:123](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L123)
490
-
491
- ___
492
-
493
- ### encodeForL2Recipe
494
-
495
- ▸ **encodeForL2Recipe**(): `string`
496
-
497
- #### Returns
498
-
499
- `string`
500
-
501
- #### Defined in
502
-
503
- [src/Action.ts:127](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L127)
504
-
505
- ___
506
-
507
- ### encodeForRecipe
508
-
509
- ▸ **encodeForRecipe**(): (`string` \| `string`[] \| `number`[])[]
510
-
511
- Encodes action for Recipe call
512
-
513
- #### Returns
514
-
515
- (`string` \| `string`[] \| `number`[])[]
516
-
517
- #### Defined in
518
-
519
- [src/Action.ts:150](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L150)
520
-
521
- ___
522
-
523
- ### encodeForStrategy
524
-
525
- ▸ **encodeForStrategy**(`subSlots`): (`string` \| `number`[])[]
526
-
527
- #### Parameters
528
-
529
- | Name | Type |
530
- | :------ | :------ |
531
- | `subSlots` | `any` |
532
-
533
- #### Returns
534
-
535
- (`string` \| `number`[])[]
536
-
537
- #### Defined in
538
-
539
- [src/Action.ts:159](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L159)
540
-
541
- ___
542
-
543
- ### getAccessList
544
-
545
- ▸ **getAccessList**(): [`AccessListItem`](../modules.md#accesslistitem)[]
546
-
547
- Access list for single action
548
-
549
- #### Returns
550
-
551
- [`AccessListItem`](../modules.md#accesslistitem)[]
552
-
553
- #### Defined in
554
-
555
- [src/Action.ts:185](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L185)
556
-
557
- ___
558
-
559
- ### getAssetsToApprove
560
-
561
- ▸ **getAssetsToApprove**(): `Promise`<{ `[key: string]`: `any`; `asset?`: `string` ; `owner?`: `string` }[]\>
562
-
563
- Assets requiring approval to be used by DsProxy
564
- Approval is done from owner to DsProxy
565
-
566
- #### Returns
567
-
568
- `Promise`<{ `[key: string]`: `any`; `asset?`: `string` ; `owner?`: `string` }[]\>
569
-
570
- #### Defined in
571
-
572
- [src/Action.ts:170](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L170)
573
-
574
- ___
575
-
576
- ### getEthValue
577
-
578
- ▸ **getEthValue**(): `Promise`<`string`\>
579
-
580
- ETH value to be sent with transaction
581
-
582
- #### Returns
583
-
584
- `Promise`<`string`\>
585
-
586
- ETH value in wei
587
-
588
- #### Defined in
589
-
590
- [src/Action.ts:178](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L178)
591
-
592
- ___
593
-
594
- ### getId
595
-
596
- ▸ `Private` **getId**(): `string`
597
-
598
- #### Returns
599
-
600
- `string`
601
-
602
- #### Defined in
603
-
604
- [src/Action.ts:42](https://github.com/defisaver/defisaver-sdk/blob/7ebb702/src/Action.ts#L42)