@gearbox-protocol/sdk 9.11.1 → 9.12.0
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/dist/cjs/plugins/adapters/AdaptersPlugin.js +127 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +95 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +154 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +99 -0
- package/dist/cjs/plugins/adapters/abi/index.js +26 -0
- package/dist/cjs/plugins/adapters/abi/utils.js +86 -0
- package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +39 -0
- package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +51 -0
- package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +56 -0
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +66 -0
- package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +66 -0
- package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +66 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +69 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +61 -0
- package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +69 -0
- package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +63 -0
- package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +58 -0
- package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +56 -0
- package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +52 -0
- package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +78 -0
- package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +73 -0
- package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +77 -0
- package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +177 -0
- package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +52 -0
- package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +60 -0
- package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/YearnV2AdapterContract.js +46 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +90 -0
- package/dist/cjs/plugins/adapters/contracts/types.js +60 -0
- package/dist/cjs/plugins/adapters/index.js +28 -0
- package/dist/cjs/plugins/adapters/package.json +1 -0
- package/dist/cjs/plugins/adapters/types.js +63 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +137 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +69 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +141 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +66 -0
- package/dist/esm/plugins/adapters/abi/index.js +3 -0
- package/dist/esm/plugins/adapters/abi/utils.js +64 -0
- package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +15 -0
- package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +27 -0
- package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +32 -0
- package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +42 -0
- package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +42 -0
- package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +42 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +45 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +37 -0
- package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +45 -0
- package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +39 -0
- package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +34 -0
- package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +32 -0
- package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +28 -0
- package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +54 -0
- package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +49 -0
- package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +55 -0
- package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +155 -0
- package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +28 -0
- package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +36 -0
- package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +22 -0
- package/dist/esm/plugins/adapters/contracts/index.js +35 -0
- package/dist/esm/plugins/adapters/contracts/types.js +33 -0
- package/dist/esm/plugins/adapters/index.js +4 -0
- package/dist/esm/plugins/adapters/package.json +1 -0
- package/dist/esm/plugins/adapters/types.js +39 -0
- package/dist/types/plugins/adapters/AdaptersPlugin.d.ts +11 -0
- package/dist/types/plugins/adapters/abi/actionAbi.d.ts +21 -0
- package/dist/types/plugins/adapters/abi/conctructorAbi.d.ts +7 -0
- package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +112 -0
- package/dist/types/plugins/adapters/abi/index.d.ts +3 -0
- package/dist/types/plugins/adapters/abi/utils.d.ts +30 -0
- package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +482 -0
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +198 -0
- package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +441 -0
- package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +284 -0
- package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +208 -0
- package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +481 -0
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +534 -0
- package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +535 -0
- package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +146 -0
- package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +190 -0
- package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +242 -0
- package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +225 -0
- package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +130 -0
- package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +198 -0
- package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +396 -0
- package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +121 -0
- package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +257 -0
- package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +232 -0
- package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +195 -0
- package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +203 -0
- package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +161 -0
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +823 -0
- package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +210 -0
- package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +349 -0
- package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +216 -0
- package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +384 -0
- package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +269 -0
- package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +247 -0
- package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +127 -0
- package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +185 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +35 -0
- package/dist/types/plugins/adapters/contracts/types.d.ts +23 -0
- package/dist/types/plugins/adapters/index.d.ts +4 -0
- package/dist/types/plugins/adapters/types.d.ts +39 -0
- package/package.json +2 -1
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "allowedMultiVaults";
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly internalType: "address[]";
|
|
12
|
+
readonly type: "address[]";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "contractType";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly internalType: "bytes32";
|
|
22
|
+
readonly type: "bytes32";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "creditManager";
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "token";
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "amount";
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "depositPhantomToken";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly internalType: "bool";
|
|
50
|
+
readonly type: "bool";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly name: "multiVault";
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "getMultiVaultSubvaultIndices";
|
|
61
|
+
readonly outputs: readonly [{
|
|
62
|
+
readonly name: "subvaultIndices";
|
|
63
|
+
readonly internalType: "uint256[]";
|
|
64
|
+
readonly type: "uint256[]";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "withdrawalIndices";
|
|
67
|
+
readonly internalType: "uint256[][]";
|
|
68
|
+
readonly type: "uint256[][]";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "multiVault";
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "user";
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "getUserSubvaultIndices";
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "subvaultIndices";
|
|
85
|
+
readonly internalType: "uint256[]";
|
|
86
|
+
readonly type: "uint256[]";
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "withdrawalIndices";
|
|
89
|
+
readonly internalType: "uint256[][]";
|
|
90
|
+
readonly type: "uint256[][]";
|
|
91
|
+
}];
|
|
92
|
+
readonly stateMutability: "view";
|
|
93
|
+
}, {
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly name: "multiVault";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "subvaultIndices";
|
|
101
|
+
readonly internalType: "uint256[]";
|
|
102
|
+
readonly type: "uint256[]";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "indices";
|
|
105
|
+
readonly internalType: "uint256[][]";
|
|
106
|
+
readonly type: "uint256[][]";
|
|
107
|
+
}];
|
|
108
|
+
readonly name: "multiAccept";
|
|
109
|
+
readonly outputs: readonly [{
|
|
110
|
+
readonly name: "";
|
|
111
|
+
readonly internalType: "bool";
|
|
112
|
+
readonly type: "bool";
|
|
113
|
+
}];
|
|
114
|
+
readonly stateMutability: "nonpayable";
|
|
115
|
+
}, {
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "multiVault";
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "subvaultIndices";
|
|
123
|
+
readonly internalType: "uint256[]";
|
|
124
|
+
readonly type: "uint256[]";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "indices";
|
|
127
|
+
readonly internalType: "uint256[][]";
|
|
128
|
+
readonly type: "uint256[][]";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "";
|
|
131
|
+
readonly internalType: "address";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "maxAssets";
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}];
|
|
138
|
+
readonly name: "multiAcceptAndClaim";
|
|
139
|
+
readonly outputs: readonly [{
|
|
140
|
+
readonly name: "";
|
|
141
|
+
readonly internalType: "bool";
|
|
142
|
+
readonly type: "bool";
|
|
143
|
+
}];
|
|
144
|
+
readonly stateMutability: "nonpayable";
|
|
145
|
+
}, {
|
|
146
|
+
readonly type: "function";
|
|
147
|
+
readonly inputs: readonly [];
|
|
148
|
+
readonly name: "serialize";
|
|
149
|
+
readonly outputs: readonly [{
|
|
150
|
+
readonly name: "serializedData";
|
|
151
|
+
readonly internalType: "bytes";
|
|
152
|
+
readonly type: "bytes";
|
|
153
|
+
}];
|
|
154
|
+
readonly stateMutability: "view";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
readonly inputs: readonly [{
|
|
158
|
+
readonly name: "multivaults";
|
|
159
|
+
readonly internalType: "struct MellowMultiVaultStatus[]";
|
|
160
|
+
readonly type: "tuple[]";
|
|
161
|
+
readonly components: readonly [{
|
|
162
|
+
readonly name: "multiVault";
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "stakedPhantomToken";
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "allowed";
|
|
171
|
+
readonly internalType: "bool";
|
|
172
|
+
readonly type: "bool";
|
|
173
|
+
}];
|
|
174
|
+
}];
|
|
175
|
+
readonly name: "setMultiVaultStatusBatch";
|
|
176
|
+
readonly outputs: readonly [];
|
|
177
|
+
readonly stateMutability: "nonpayable";
|
|
178
|
+
}, {
|
|
179
|
+
readonly type: "function";
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly name: "targetContract";
|
|
182
|
+
readonly outputs: readonly [{
|
|
183
|
+
readonly name: "";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}];
|
|
187
|
+
readonly stateMutability: "view";
|
|
188
|
+
}, {
|
|
189
|
+
readonly type: "function";
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly name: "version";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly name: "";
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "token";
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "amount";
|
|
206
|
+
readonly internalType: "uint256";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}];
|
|
209
|
+
readonly name: "withdrawPhantomToken";
|
|
210
|
+
readonly outputs: readonly [{
|
|
211
|
+
readonly name: "useSafePrices";
|
|
212
|
+
readonly internalType: "bool";
|
|
213
|
+
readonly type: "bool";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "nonpayable";
|
|
216
|
+
}, {
|
|
217
|
+
readonly type: "event";
|
|
218
|
+
readonly anonymous: false;
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly name: "multiVault";
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
readonly indexed: true;
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "allowed";
|
|
226
|
+
readonly internalType: "bool";
|
|
227
|
+
readonly type: "bool";
|
|
228
|
+
readonly indexed: false;
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "SetMultiVaultStatus";
|
|
231
|
+
}, {
|
|
232
|
+
readonly type: "error";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
readonly name: "IncorrectStakedPhantomTokenException";
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "error";
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
readonly name: "InsufficientClaimedException";
|
|
239
|
+
}, {
|
|
240
|
+
readonly type: "error";
|
|
241
|
+
readonly inputs: readonly [];
|
|
242
|
+
readonly name: "InvalidMultiVaultException";
|
|
243
|
+
}, {
|
|
244
|
+
readonly type: "error";
|
|
245
|
+
readonly inputs: readonly [];
|
|
246
|
+
readonly name: "InvalidStakedPhantomTokenException";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "error";
|
|
249
|
+
readonly inputs: readonly [];
|
|
250
|
+
readonly name: "MultiVaultNotAllowedException";
|
|
251
|
+
}];
|
|
252
|
+
type abi = typeof abi;
|
|
253
|
+
export declare class MellowClaimerAdapterContract extends AbstractAdapterContract<abi> {
|
|
254
|
+
readonly allowedMultiVaults: Address[];
|
|
255
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
256
|
+
}
|
|
257
|
+
export {};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [{
|
|
6
|
+
readonly type: "constructor";
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly name: "_creditManager";
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "_vault";
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}];
|
|
16
|
+
readonly stateMutability: "nonpayable";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "acl";
|
|
21
|
+
readonly outputs: readonly [{
|
|
22
|
+
readonly name: "";
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
readonly type: "address";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly inputs: readonly [];
|
|
30
|
+
readonly name: "asset";
|
|
31
|
+
readonly outputs: readonly [{
|
|
32
|
+
readonly name: "";
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}];
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
}, {
|
|
38
|
+
readonly type: "function";
|
|
39
|
+
readonly inputs: readonly [];
|
|
40
|
+
readonly name: "contractType";
|
|
41
|
+
readonly outputs: readonly [{
|
|
42
|
+
readonly name: "";
|
|
43
|
+
readonly internalType: "bytes32";
|
|
44
|
+
readonly type: "bytes32";
|
|
45
|
+
}];
|
|
46
|
+
readonly stateMutability: "view";
|
|
47
|
+
}, {
|
|
48
|
+
readonly type: "function";
|
|
49
|
+
readonly inputs: readonly [];
|
|
50
|
+
readonly name: "creditManager";
|
|
51
|
+
readonly outputs: readonly [{
|
|
52
|
+
readonly name: "";
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}];
|
|
56
|
+
readonly stateMutability: "view";
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "function";
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly name: "assets";
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "";
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "deposit";
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly internalType: "bool";
|
|
72
|
+
readonly type: "bool";
|
|
73
|
+
}];
|
|
74
|
+
readonly stateMutability: "nonpayable";
|
|
75
|
+
}, {
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly name: "leftoverAmount";
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "depositDiff";
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly internalType: "bool";
|
|
86
|
+
readonly type: "bool";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "nonpayable";
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly name: "shares";
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "mint";
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly name: "";
|
|
103
|
+
readonly internalType: "bool";
|
|
104
|
+
readonly type: "bool";
|
|
105
|
+
}];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "shares";
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "";
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "";
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "redeem";
|
|
123
|
+
readonly outputs: readonly [{
|
|
124
|
+
readonly name: "";
|
|
125
|
+
readonly internalType: "bool";
|
|
126
|
+
readonly type: "bool";
|
|
127
|
+
}];
|
|
128
|
+
readonly stateMutability: "nonpayable";
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
readonly inputs: readonly [{
|
|
132
|
+
readonly name: "leftoverAmount";
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
readonly name: "redeemDiff";
|
|
137
|
+
readonly outputs: readonly [{
|
|
138
|
+
readonly name: "";
|
|
139
|
+
readonly internalType: "bool";
|
|
140
|
+
readonly type: "bool";
|
|
141
|
+
}];
|
|
142
|
+
readonly stateMutability: "nonpayable";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
readonly inputs: readonly [];
|
|
146
|
+
readonly name: "serialize";
|
|
147
|
+
readonly outputs: readonly [{
|
|
148
|
+
readonly name: "serializedData";
|
|
149
|
+
readonly internalType: "bytes";
|
|
150
|
+
readonly type: "bytes";
|
|
151
|
+
}];
|
|
152
|
+
readonly stateMutability: "view";
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "function";
|
|
155
|
+
readonly inputs: readonly [];
|
|
156
|
+
readonly name: "targetContract";
|
|
157
|
+
readonly outputs: readonly [{
|
|
158
|
+
readonly name: "";
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
}];
|
|
162
|
+
readonly stateMutability: "view";
|
|
163
|
+
}, {
|
|
164
|
+
readonly type: "function";
|
|
165
|
+
readonly inputs: readonly [];
|
|
166
|
+
readonly name: "vault";
|
|
167
|
+
readonly outputs: readonly [{
|
|
168
|
+
readonly name: "";
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}];
|
|
172
|
+
readonly stateMutability: "view";
|
|
173
|
+
}, {
|
|
174
|
+
readonly type: "function";
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
readonly name: "version";
|
|
177
|
+
readonly outputs: readonly [{
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
}];
|
|
182
|
+
readonly stateMutability: "view";
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "function";
|
|
185
|
+
readonly inputs: readonly [{
|
|
186
|
+
readonly name: "assets";
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "";
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}];
|
|
198
|
+
readonly name: "withdraw";
|
|
199
|
+
readonly outputs: readonly [{
|
|
200
|
+
readonly name: "";
|
|
201
|
+
readonly internalType: "bool";
|
|
202
|
+
readonly type: "bool";
|
|
203
|
+
}];
|
|
204
|
+
readonly stateMutability: "nonpayable";
|
|
205
|
+
}, {
|
|
206
|
+
readonly type: "error";
|
|
207
|
+
readonly inputs: readonly [{
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly internalType: "address";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "AddressIsNotContractException";
|
|
213
|
+
}, {
|
|
214
|
+
readonly type: "error";
|
|
215
|
+
readonly inputs: readonly [];
|
|
216
|
+
readonly name: "CallerNotCreditFacadeException";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "error";
|
|
219
|
+
readonly inputs: readonly [];
|
|
220
|
+
readonly name: "NotImplementedException";
|
|
221
|
+
}, {
|
|
222
|
+
readonly type: "error";
|
|
223
|
+
readonly inputs: readonly [];
|
|
224
|
+
readonly name: "ZeroAddressException";
|
|
225
|
+
}];
|
|
226
|
+
type abi = typeof abi;
|
|
227
|
+
export declare class MellowDVVAdapterContract extends AbstractAdapterContract<abi> {
|
|
228
|
+
readonly vault: Address;
|
|
229
|
+
readonly asset: Address;
|
|
230
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
231
|
+
}
|
|
232
|
+
export {};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [{
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly name: "asset";
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "contractType";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly internalType: "bytes32";
|
|
22
|
+
readonly type: "bytes32";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "creditManager";
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "assets";
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "";
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "deposit";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "useSafePrices";
|
|
49
|
+
readonly internalType: "bool";
|
|
50
|
+
readonly type: "bool";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly inputs: readonly [{
|
|
56
|
+
readonly name: "leftoverAmount";
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "depositDiff";
|
|
61
|
+
readonly outputs: readonly [{
|
|
62
|
+
readonly name: "useSafePrices";
|
|
63
|
+
readonly internalType: "bool";
|
|
64
|
+
readonly type: "bool";
|
|
65
|
+
}];
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly name: "shares";
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "";
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}];
|
|
78
|
+
readonly name: "mint";
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly name: "useSafePrices";
|
|
81
|
+
readonly internalType: "bool";
|
|
82
|
+
readonly type: "bool";
|
|
83
|
+
}];
|
|
84
|
+
readonly stateMutability: "nonpayable";
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "function";
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly name: "shares";
|
|
89
|
+
readonly internalType: "uint256";
|
|
90
|
+
readonly type: "uint256";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "";
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "redeem";
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly name: "useSafePrices";
|
|
103
|
+
readonly internalType: "bool";
|
|
104
|
+
readonly type: "bool";
|
|
105
|
+
}];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "leftoverAmount";
|
|
111
|
+
readonly internalType: "uint256";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "redeemDiff";
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly name: "useSafePrices";
|
|
117
|
+
readonly internalType: "bool";
|
|
118
|
+
readonly type: "bool";
|
|
119
|
+
}];
|
|
120
|
+
readonly stateMutability: "nonpayable";
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly name: "serialize";
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly name: "serializedData";
|
|
127
|
+
readonly internalType: "bytes";
|
|
128
|
+
readonly type: "bytes";
|
|
129
|
+
}];
|
|
130
|
+
readonly stateMutability: "view";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly name: "targetContract";
|
|
135
|
+
readonly outputs: readonly [{
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}];
|
|
140
|
+
readonly stateMutability: "view";
|
|
141
|
+
}, {
|
|
142
|
+
readonly type: "function";
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "vault";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly internalType: "address";
|
|
148
|
+
readonly type: "address";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "version";
|
|
155
|
+
readonly outputs: readonly [{
|
|
156
|
+
readonly name: "";
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
readonly type: "uint256";
|
|
159
|
+
}];
|
|
160
|
+
readonly stateMutability: "view";
|
|
161
|
+
}, {
|
|
162
|
+
readonly type: "function";
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly name: "assets";
|
|
165
|
+
readonly internalType: "uint256";
|
|
166
|
+
readonly type: "uint256";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "";
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "";
|
|
173
|
+
readonly internalType: "address";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}];
|
|
176
|
+
readonly name: "withdraw";
|
|
177
|
+
readonly outputs: readonly [{
|
|
178
|
+
readonly name: "useSafePrices";
|
|
179
|
+
readonly internalType: "bool";
|
|
180
|
+
readonly type: "bool";
|
|
181
|
+
}];
|
|
182
|
+
readonly stateMutability: "nonpayable";
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "error";
|
|
185
|
+
readonly inputs: readonly [];
|
|
186
|
+
readonly name: "InvalidMultiVaultException";
|
|
187
|
+
}];
|
|
188
|
+
type abi = typeof abi;
|
|
189
|
+
export declare class MellowERC4626VaultAdapterContract extends AbstractAdapterContract<abi> {
|
|
190
|
+
readonly vault: Address;
|
|
191
|
+
readonly asset: Address;
|
|
192
|
+
readonly stakedPhantomToken: Address;
|
|
193
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
194
|
+
}
|
|
195
|
+
export {};
|