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