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