@gearbox-protocol/sdk 3.0.0-next.55 → 3.0.0-next.56

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 (158) hide show
  1. package/contracts/index.sol +5 -0
  2. package/lib/core/creditAccount.d.ts +1 -2
  3. package/lib/core/creditAccount.js +0 -7
  4. package/lib/core/creditManager.js +1 -1
  5. package/lib/core/trade.d.ts +9 -8
  6. package/lib/core/trade.js +25 -22
  7. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
  8. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
  9. package/lib/parsers/convexBoosterAdapterParser.js +6 -6
  10. package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
  11. package/lib/parsers/curveAdapterParser.js +10 -10
  12. package/lib/parsers/curveAdapterParser.spec.js +6 -2
  13. package/lib/parsers/lidoAdapterParser.js +3 -2
  14. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  15. package/lib/parsers/uniV2AdapterParser.js +4 -3
  16. package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
  17. package/lib/parsers/uniV3AdapterParser.js +8 -6
  18. package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
  19. package/lib/parsers/wstETHAdapterParser.js +6 -4
  20. package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
  21. package/lib/parsers/yearnAdapterParser.spec.js +4 -4
  22. package/lib/parsers/yearnV2AdapterParser.js +13 -3
  23. package/lib/pathfinder/core.d.ts +8 -9
  24. package/lib/pathfinder/pathfinder.d.ts +37 -10
  25. package/lib/pathfinder/pathfinder.js +45 -33
  26. package/lib/pathfinder/pathfinder.spec.js +4 -2
  27. package/lib/payload/creditAccount.d.ts +1 -2
  28. package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
  29. package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
  30. package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
  31. package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
  32. package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
  33. package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
  34. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
  35. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
  36. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
  37. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
  38. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
  39. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
  40. package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  41. package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
  42. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
  43. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
  44. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
  45. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
  46. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  47. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
  48. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +30 -30
  49. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +21 -17
  50. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +45 -85
  51. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +24 -26
  52. package/lib/types/ICreditFacadeV3Multicall.d.ts +32 -40
  53. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -71
  54. package/lib/types/ICurveV1Adapter.d.ts +41 -105
  55. package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
  56. package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
  57. package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
  58. package/lib/types/IDataCompressorV2_10.d.ts +1 -27
  59. package/lib/types/IDataCompressorV3_00.d.ts +1 -27
  60. package/lib/types/IERC4626Adapter.d.ts +238 -0
  61. package/lib/types/IERC4626Adapter.js +2 -0
  62. package/lib/types/ILidoV1Adapter.d.ts +9 -9
  63. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +39 -14
  64. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +5 -3
  65. package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
  66. package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
  67. package/lib/types/IYearnV2Adapter.d.ts +22 -22
  68. package/lib/types/IwstETHV1Adapter.d.ts +17 -17
  69. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
  70. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
  71. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
  72. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
  73. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
  74. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
  75. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
  76. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
  77. package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
  78. package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
  79. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
  80. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
  81. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
  82. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +24 -0
  83. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
  84. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
  85. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  86. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
  87. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
  88. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
  89. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
  90. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
  91. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  92. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
  93. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +18 -6
  94. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +22 -6
  95. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +10 -2
  96. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +12 -2
  97. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +13 -18
  98. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +14 -20
  99. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +13 -70
  100. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +14 -86
  101. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +22 -24
  102. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +28 -31
  103. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +153 -135
  104. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +191 -168
  105. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
  106. package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
  107. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
  108. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
  109. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
  110. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
  111. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
  112. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
  113. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -42
  114. package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -54
  115. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -84
  116. package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -108
  117. package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
  118. package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
  119. package/lib/types/factories/ILidoV1Adapter__factory.d.ts +6 -2
  120. package/lib/types/factories/ILidoV1Adapter__factory.js +8 -2
  121. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +5 -0
  122. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +6 -0
  123. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +45 -0
  124. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +59 -0
  125. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
  126. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
  127. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
  128. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
  129. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
  130. package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
  131. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
  132. package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
  133. package/lib/types/factories/index.d.ts +7 -2
  134. package/lib/types/factories/index.js +12 -5
  135. package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +61 -6
  136. package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +77 -6
  137. package/lib/types/factories/interfaces/index.d.ts +1 -0
  138. package/lib/types/factories/interfaces/index.js +8 -0
  139. package/lib/types/index.d.ts +39 -17
  140. package/lib/types/index.js +39 -23
  141. package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +37 -34
  142. package/lib/types/interfaces/IRouter.js +2 -0
  143. package/lib/types/interfaces/index.d.ts +1 -0
  144. package/lib/types/interfaces/index.js +2 -0
  145. package/package.json +6 -6
  146. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
  147. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
  148. package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  149. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts +0 -143
  150. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js +0 -188
  151. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts +0 -366
  152. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js +0 -479
  153. package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  154. package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
  155. /package/lib/types/{IRouter.js → IAaveV2_LendingPoolAdapter.js} +0 -0
  156. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
  157. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
  158. /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
@@ -0,0 +1,297 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IERC4626Adapter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "_gearboxAdapterType",
12
+ outputs: [
13
+ {
14
+ internalType: "enum AdapterType",
15
+ name: "",
16
+ type: "uint8",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "_gearboxAdapterVersion",
25
+ outputs: [
26
+ {
27
+ internalType: "uint16",
28
+ name: "",
29
+ type: "uint16",
30
+ },
31
+ ],
32
+ stateMutability: "view",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "addressProvider",
38
+ outputs: [
39
+ {
40
+ internalType: "address",
41
+ name: "",
42
+ type: "address",
43
+ },
44
+ ],
45
+ stateMutability: "view",
46
+ type: "function",
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "asset",
51
+ outputs: [
52
+ {
53
+ internalType: "address",
54
+ name: "",
55
+ type: "address",
56
+ },
57
+ ],
58
+ stateMutability: "view",
59
+ type: "function",
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: "assetMask",
64
+ outputs: [
65
+ {
66
+ internalType: "uint256",
67
+ name: "",
68
+ type: "uint256",
69
+ },
70
+ ],
71
+ stateMutability: "view",
72
+ type: "function",
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: "creditManager",
77
+ outputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "",
81
+ type: "address",
82
+ },
83
+ ],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "uint256",
91
+ name: "assets",
92
+ type: "uint256",
93
+ },
94
+ {
95
+ internalType: "address",
96
+ name: "",
97
+ type: "address",
98
+ },
99
+ ],
100
+ name: "deposit",
101
+ outputs: [
102
+ {
103
+ internalType: "uint256",
104
+ name: "tokensToEnable",
105
+ type: "uint256",
106
+ },
107
+ {
108
+ internalType: "uint256",
109
+ name: "tokensToDisable",
110
+ type: "uint256",
111
+ },
112
+ ],
113
+ stateMutability: "nonpayable",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ internalType: "uint256",
120
+ name: "leftoverAmount",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ name: "depositDiff",
125
+ outputs: [
126
+ {
127
+ internalType: "uint256",
128
+ name: "tokensToEnable",
129
+ type: "uint256",
130
+ },
131
+ {
132
+ internalType: "uint256",
133
+ name: "tokensToDisable",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "nonpayable",
138
+ type: "function",
139
+ },
140
+ {
141
+ inputs: [
142
+ {
143
+ internalType: "uint256",
144
+ name: "shares",
145
+ type: "uint256",
146
+ },
147
+ {
148
+ internalType: "address",
149
+ name: "",
150
+ type: "address",
151
+ },
152
+ ],
153
+ name: "mint",
154
+ outputs: [
155
+ {
156
+ internalType: "uint256",
157
+ name: "tokensToEnable",
158
+ type: "uint256",
159
+ },
160
+ {
161
+ internalType: "uint256",
162
+ name: "tokensToDisable",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ stateMutability: "nonpayable",
167
+ type: "function",
168
+ },
169
+ {
170
+ inputs: [
171
+ {
172
+ internalType: "uint256",
173
+ name: "shares",
174
+ type: "uint256",
175
+ },
176
+ {
177
+ internalType: "address",
178
+ name: "",
179
+ type: "address",
180
+ },
181
+ {
182
+ internalType: "address",
183
+ name: "",
184
+ type: "address",
185
+ },
186
+ ],
187
+ name: "redeem",
188
+ outputs: [
189
+ {
190
+ internalType: "uint256",
191
+ name: "tokensToEnable",
192
+ type: "uint256",
193
+ },
194
+ {
195
+ internalType: "uint256",
196
+ name: "tokensToDisable",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ stateMutability: "nonpayable",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [
205
+ {
206
+ internalType: "uint256",
207
+ name: "leftoverAmount",
208
+ type: "uint256",
209
+ },
210
+ ],
211
+ name: "redeemDiff",
212
+ outputs: [
213
+ {
214
+ internalType: "uint256",
215
+ name: "tokensToEnable",
216
+ type: "uint256",
217
+ },
218
+ {
219
+ internalType: "uint256",
220
+ name: "tokensToDisable",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ stateMutability: "nonpayable",
225
+ type: "function",
226
+ },
227
+ {
228
+ inputs: [],
229
+ name: "sharesMask",
230
+ outputs: [
231
+ {
232
+ internalType: "uint256",
233
+ name: "",
234
+ type: "uint256",
235
+ },
236
+ ],
237
+ stateMutability: "view",
238
+ type: "function",
239
+ },
240
+ {
241
+ inputs: [],
242
+ name: "targetContract",
243
+ outputs: [
244
+ {
245
+ internalType: "address",
246
+ name: "",
247
+ type: "address",
248
+ },
249
+ ],
250
+ stateMutability: "view",
251
+ type: "function",
252
+ },
253
+ {
254
+ inputs: [
255
+ {
256
+ internalType: "uint256",
257
+ name: "assets",
258
+ type: "uint256",
259
+ },
260
+ {
261
+ internalType: "address",
262
+ name: "",
263
+ type: "address",
264
+ },
265
+ {
266
+ internalType: "address",
267
+ name: "",
268
+ type: "address",
269
+ },
270
+ ],
271
+ name: "withdraw",
272
+ outputs: [
273
+ {
274
+ internalType: "uint256",
275
+ name: "tokensToEnable",
276
+ type: "uint256",
277
+ },
278
+ {
279
+ internalType: "uint256",
280
+ name: "tokensToDisable",
281
+ type: "uint256",
282
+ },
283
+ ],
284
+ stateMutability: "nonpayable",
285
+ type: "function",
286
+ },
287
+ ];
288
+ class IERC4626Adapter__factory {
289
+ static abi = _abi;
290
+ static createInterface() {
291
+ return new ethers_1.utils.Interface(_abi);
292
+ }
293
+ static connect(address, signerOrProvider) {
294
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
295
+ }
296
+ }
297
+ exports.IERC4626Adapter__factory = IERC4626Adapter__factory;
@@ -81,8 +81,12 @@ export declare class ILidoV1Adapter__factory {
81
81
  readonly stateMutability: "nonpayable";
82
82
  readonly type: "function";
83
83
  }, {
84
- readonly inputs: readonly [];
85
- readonly name: "submitAll";
84
+ readonly inputs: readonly [{
85
+ readonly internalType: "uint256";
86
+ readonly name: "leftoverAmount";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly name: "submitDiff";
86
90
  readonly outputs: readonly [{
87
91
  readonly internalType: "uint256";
88
92
  readonly name: "tokensToEnable";
@@ -109,8 +109,14 @@ const _abi = [
109
109
  type: "function",
110
110
  },
111
111
  {
112
- inputs: [],
113
- name: "submitAll",
112
+ inputs: [
113
+ {
114
+ internalType: "uint256",
115
+ name: "leftoverAmount",
116
+ type: "uint256",
117
+ },
118
+ ],
119
+ name: "submitDiff",
114
120
  outputs: [
115
121
  {
116
122
  internalType: "uint256",
@@ -24,6 +24,11 @@ export declare class IPriceOracleV3Events__factory {
24
24
  readonly internalType: "bool";
25
25
  readonly name: "skipCheck";
26
26
  readonly type: "bool";
27
+ }, {
28
+ readonly indexed: false;
29
+ readonly internalType: "bool";
30
+ readonly name: "trusted";
31
+ readonly type: "bool";
27
32
  }];
28
33
  readonly name: "SetPriceFeed";
29
34
  readonly type: "event";
@@ -33,6 +33,12 @@ const _abi = [
33
33
  name: "skipCheck",
34
34
  type: "bool",
35
35
  },
36
+ {
37
+ indexed: false,
38
+ internalType: "bool",
39
+ name: "trusted",
40
+ type: "bool",
41
+ },
36
42
  ],
37
43
  name: "SetPriceFeed",
38
44
  type: "event",
@@ -24,6 +24,11 @@ export declare class IPriceOracleV3__factory {
24
24
  readonly internalType: "bool";
25
25
  readonly name: "skipCheck";
26
26
  readonly type: "bool";
27
+ }, {
28
+ readonly indexed: false;
29
+ readonly internalType: "bool";
30
+ readonly name: "trusted";
31
+ readonly type: "bool";
27
32
  }];
28
33
  readonly name: "SetPriceFeed";
29
34
  readonly type: "event";
@@ -157,6 +162,20 @@ export declare class IPriceOracleV3__factory {
157
162
  }];
158
163
  readonly stateMutability: "view";
159
164
  readonly type: "function";
165
+ }, {
166
+ readonly inputs: readonly [{
167
+ readonly internalType: "address";
168
+ readonly name: "token";
169
+ readonly type: "address";
170
+ }];
171
+ readonly name: "getPriceSafe";
172
+ readonly outputs: readonly [{
173
+ readonly internalType: "uint256";
174
+ readonly name: "";
175
+ readonly type: "uint256";
176
+ }];
177
+ readonly stateMutability: "view";
178
+ readonly type: "function";
160
179
  }, {
161
180
  readonly inputs: readonly [{
162
181
  readonly internalType: "address";
@@ -180,6 +199,10 @@ export declare class IPriceOracleV3__factory {
180
199
  readonly internalType: "uint8";
181
200
  readonly name: "decimals";
182
201
  readonly type: "uint8";
202
+ }, {
203
+ readonly internalType: "bool";
204
+ readonly name: "trusted";
205
+ readonly type: "bool";
183
206
  }];
184
207
  readonly stateMutability: "view";
185
208
  readonly type: "function";
@@ -215,6 +238,24 @@ export declare class IPriceOracleV3__factory {
215
238
  }];
216
239
  readonly stateMutability: "view";
217
240
  readonly type: "function";
241
+ }, {
242
+ readonly inputs: readonly [{
243
+ readonly internalType: "uint256";
244
+ readonly name: "amount";
245
+ readonly type: "uint256";
246
+ }, {
247
+ readonly internalType: "address";
248
+ readonly name: "token";
249
+ readonly type: "address";
250
+ }];
251
+ readonly name: "safeConvertToUSD";
252
+ readonly outputs: readonly [{
253
+ readonly internalType: "uint256";
254
+ readonly name: "";
255
+ readonly type: "uint256";
256
+ }];
257
+ readonly stateMutability: "view";
258
+ readonly type: "function";
218
259
  }, {
219
260
  readonly inputs: readonly [{
220
261
  readonly internalType: "address";
@@ -228,6 +269,10 @@ export declare class IPriceOracleV3__factory {
228
269
  readonly internalType: "uint32";
229
270
  readonly name: "stalenessPeriod";
230
271
  readonly type: "uint32";
272
+ }, {
273
+ readonly internalType: "bool";
274
+ readonly name: "trusted";
275
+ readonly type: "bool";
231
276
  }];
232
277
  readonly name: "setPriceFeed";
233
278
  readonly outputs: readonly [];
@@ -33,6 +33,12 @@ const _abi = [
33
33
  name: "skipCheck",
34
34
  type: "bool",
35
35
  },
36
+ {
37
+ indexed: false,
38
+ internalType: "bool",
39
+ name: "trusted",
40
+ type: "bool",
41
+ },
36
42
  ],
37
43
  name: "SetPriceFeed",
38
44
  type: "event",
@@ -207,6 +213,25 @@ const _abi = [
207
213
  stateMutability: "view",
208
214
  type: "function",
209
215
  },
216
+ {
217
+ inputs: [
218
+ {
219
+ internalType: "address",
220
+ name: "token",
221
+ type: "address",
222
+ },
223
+ ],
224
+ name: "getPriceSafe",
225
+ outputs: [
226
+ {
227
+ internalType: "uint256",
228
+ name: "",
229
+ type: "uint256",
230
+ },
231
+ ],
232
+ stateMutability: "view",
233
+ type: "function",
234
+ },
210
235
  {
211
236
  inputs: [
212
237
  {
@@ -237,6 +262,11 @@ const _abi = [
237
262
  name: "decimals",
238
263
  type: "uint8",
239
264
  },
265
+ {
266
+ internalType: "bool",
267
+ name: "trusted",
268
+ type: "bool",
269
+ },
240
270
  ],
241
271
  stateMutability: "view",
242
272
  type: "function",
@@ -284,6 +314,30 @@ const _abi = [
284
314
  stateMutability: "view",
285
315
  type: "function",
286
316
  },
317
+ {
318
+ inputs: [
319
+ {
320
+ internalType: "uint256",
321
+ name: "amount",
322
+ type: "uint256",
323
+ },
324
+ {
325
+ internalType: "address",
326
+ name: "token",
327
+ type: "address",
328
+ },
329
+ ],
330
+ name: "safeConvertToUSD",
331
+ outputs: [
332
+ {
333
+ internalType: "uint256",
334
+ name: "",
335
+ type: "uint256",
336
+ },
337
+ ],
338
+ stateMutability: "view",
339
+ type: "function",
340
+ },
287
341
  {
288
342
  inputs: [
289
343
  {
@@ -301,6 +355,11 @@ const _abi = [
301
355
  name: "stalenessPeriod",
302
356
  type: "uint32",
303
357
  },
358
+ {
359
+ internalType: "bool",
360
+ name: "trusted",
361
+ type: "bool",
362
+ },
304
363
  ],
305
364
  name: "setPriceFeed",
306
365
  outputs: [],
@@ -109,6 +109,10 @@ export declare class IUniswapV2Adapter__factory {
109
109
  readonly type: "function";
110
110
  }, {
111
111
  readonly inputs: readonly [{
112
+ readonly internalType: "uint256";
113
+ readonly name: "leftoverAmount";
114
+ readonly type: "uint256";
115
+ }, {
112
116
  readonly internalType: "uint256";
113
117
  readonly name: "rateMinRAY";
114
118
  readonly type: "uint256";
@@ -121,7 +125,7 @@ export declare class IUniswapV2Adapter__factory {
121
125
  readonly name: "deadline";
122
126
  readonly type: "uint256";
123
127
  }];
124
- readonly name: "swapAllTokensForTokens";
128
+ readonly name: "swapDiffTokensForTokens";
125
129
  readonly outputs: readonly [{
126
130
  readonly internalType: "uint256";
127
131
  readonly name: "tokensToEnable";
@@ -144,6 +144,11 @@ const _abi = [
144
144
  },
145
145
  {
146
146
  inputs: [
147
+ {
148
+ internalType: "uint256",
149
+ name: "leftoverAmount",
150
+ type: "uint256",
151
+ },
147
152
  {
148
153
  internalType: "uint256",
149
154
  name: "rateMinRAY",
@@ -160,7 +165,7 @@ const _abi = [
160
165
  type: "uint256",
161
166
  },
162
167
  ],
163
- name: "swapAllTokensForTokens",
168
+ name: "swapDiffTokensForTokens",
164
169
  outputs: [
165
170
  {
166
171
  internalType: "uint256",
@@ -81,16 +81,20 @@ export declare class IUniswapV3Adapter__factory {
81
81
  readonly internalType: "uint256";
82
82
  readonly name: "deadline";
83
83
  readonly type: "uint256";
84
+ }, {
85
+ readonly internalType: "uint256";
86
+ readonly name: "leftoverAmount";
87
+ readonly type: "uint256";
84
88
  }, {
85
89
  readonly internalType: "uint256";
86
90
  readonly name: "rateMinRAY";
87
91
  readonly type: "uint256";
88
92
  }];
89
- readonly internalType: "struct IUniswapV3AdapterTypes.ExactAllInputParams";
93
+ readonly internalType: "struct IUniswapV3AdapterTypes.ExactDiffInputParams";
90
94
  readonly name: "params";
91
95
  readonly type: "tuple";
92
96
  }];
93
- readonly name: "exactAllInput";
97
+ readonly name: "exactDiffInput";
94
98
  readonly outputs: readonly [{
95
99
  readonly internalType: "uint256";
96
100
  readonly name: "tokensToEnable";
@@ -120,6 +124,10 @@ export declare class IUniswapV3Adapter__factory {
120
124
  readonly internalType: "uint256";
121
125
  readonly name: "deadline";
122
126
  readonly type: "uint256";
127
+ }, {
128
+ readonly internalType: "uint256";
129
+ readonly name: "leftoverAmount";
130
+ readonly type: "uint256";
123
131
  }, {
124
132
  readonly internalType: "uint256";
125
133
  readonly name: "rateMinRAY";
@@ -129,11 +137,11 @@ export declare class IUniswapV3Adapter__factory {
129
137
  readonly name: "sqrtPriceLimitX96";
130
138
  readonly type: "uint160";
131
139
  }];
132
- readonly internalType: "struct IUniswapV3AdapterTypes.ExactAllInputSingleParams";
140
+ readonly internalType: "struct IUniswapV3AdapterTypes.ExactDiffInputSingleParams";
133
141
  readonly name: "params";
134
142
  readonly type: "tuple";
135
143
  }];
136
- readonly name: "exactAllInputSingle";
144
+ readonly name: "exactDiffInputSingle";
137
145
  readonly outputs: readonly [{
138
146
  readonly internalType: "uint256";
139
147
  readonly name: "tokensToEnable";
@@ -108,18 +108,23 @@ const _abi = [
108
108
  name: "deadline",
109
109
  type: "uint256",
110
110
  },
111
+ {
112
+ internalType: "uint256",
113
+ name: "leftoverAmount",
114
+ type: "uint256",
115
+ },
111
116
  {
112
117
  internalType: "uint256",
113
118
  name: "rateMinRAY",
114
119
  type: "uint256",
115
120
  },
116
121
  ],
117
- internalType: "struct IUniswapV3AdapterTypes.ExactAllInputParams",
122
+ internalType: "struct IUniswapV3AdapterTypes.ExactDiffInputParams",
118
123
  name: "params",
119
124
  type: "tuple",
120
125
  },
121
126
  ],
122
- name: "exactAllInput",
127
+ name: "exactDiffInput",
123
128
  outputs: [
124
129
  {
125
130
  internalType: "uint256",
@@ -159,6 +164,11 @@ const _abi = [
159
164
  name: "deadline",
160
165
  type: "uint256",
161
166
  },
167
+ {
168
+ internalType: "uint256",
169
+ name: "leftoverAmount",
170
+ type: "uint256",
171
+ },
162
172
  {
163
173
  internalType: "uint256",
164
174
  name: "rateMinRAY",
@@ -170,12 +180,12 @@ const _abi = [
170
180
  type: "uint160",
171
181
  },
172
182
  ],
173
- internalType: "struct IUniswapV3AdapterTypes.ExactAllInputSingleParams",
183
+ internalType: "struct IUniswapV3AdapterTypes.ExactDiffInputSingleParams",
174
184
  name: "params",
175
185
  type: "tuple",
176
186
  },
177
187
  ],
178
- name: "exactAllInputSingle",
188
+ name: "exactDiffInputSingle",
179
189
  outputs: [
180
190
  {
181
191
  internalType: "uint256",