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