@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
@@ -85,6 +85,10 @@ export declare class IConvexV1BoosterAdapter__factory {
85
85
  readonly type: "function";
86
86
  }, {
87
87
  readonly inputs: readonly [{
88
+ readonly internalType: "uint256";
89
+ readonly name: "leftoverAmount";
90
+ readonly type: "uint256";
91
+ }, {
88
92
  readonly internalType: "uint256";
89
93
  readonly name: "_pid";
90
94
  readonly type: "uint256";
@@ -93,7 +97,7 @@ export declare class IConvexV1BoosterAdapter__factory {
93
97
  readonly name: "_stake";
94
98
  readonly type: "bool";
95
99
  }];
96
- readonly name: "depositAll";
100
+ readonly name: "depositDiff";
97
101
  readonly outputs: readonly [{
98
102
  readonly internalType: "uint256";
99
103
  readonly name: "tokensToEnable";
@@ -159,11 +163,15 @@ export declare class IConvexV1BoosterAdapter__factory {
159
163
  readonly type: "function";
160
164
  }, {
161
165
  readonly inputs: readonly [{
166
+ readonly internalType: "uint256";
167
+ readonly name: "leftoverAmount";
168
+ readonly type: "uint256";
169
+ }, {
162
170
  readonly internalType: "uint256";
163
171
  readonly name: "_pid";
164
172
  readonly type: "uint256";
165
173
  }];
166
- readonly name: "withdrawAll";
174
+ readonly name: "withdrawDiff";
167
175
  readonly outputs: readonly [{
168
176
  readonly internalType: "uint256";
169
177
  readonly name: "tokensToEnable";
@@ -113,6 +113,11 @@ const _abi = [
113
113
  },
114
114
  {
115
115
  inputs: [
116
+ {
117
+ internalType: "uint256",
118
+ name: "leftoverAmount",
119
+ type: "uint256",
120
+ },
116
121
  {
117
122
  internalType: "uint256",
118
123
  name: "_pid",
@@ -124,7 +129,7 @@ const _abi = [
124
129
  type: "bool",
125
130
  },
126
131
  ],
127
- name: "depositAll",
132
+ name: "depositDiff",
128
133
  outputs: [
129
134
  {
130
135
  internalType: "uint256",
@@ -210,13 +215,18 @@ const _abi = [
210
215
  },
211
216
  {
212
217
  inputs: [
218
+ {
219
+ internalType: "uint256",
220
+ name: "leftoverAmount",
221
+ type: "uint256",
222
+ },
213
223
  {
214
224
  internalType: "uint256",
215
225
  name: "_pid",
216
226
  type: "uint256",
217
227
  },
218
228
  ],
219
- name: "withdrawAll",
229
+ name: "withdrawDiff",
220
230
  outputs: [
221
231
  {
222
232
  internalType: "uint256",
@@ -17,7 +17,7 @@ export declare class ICreditFacadeV3Events__factory {
17
17
  }, {
18
18
  readonly indexed: false;
19
19
  readonly internalType: "uint256";
20
- readonly name: "value";
20
+ readonly name: "amount";
21
21
  readonly type: "uint256";
22
22
  }];
23
23
  readonly name: "AddCollateral";
@@ -34,11 +34,6 @@ export declare class ICreditFacadeV3Events__factory {
34
34
  readonly internalType: "address";
35
35
  readonly name: "borrower";
36
36
  readonly type: "address";
37
- }, {
38
- readonly indexed: true;
39
- readonly internalType: "address";
40
- readonly name: "to";
41
- readonly type: "address";
42
37
  }];
43
38
  readonly name: "CloseCreditAccount";
44
39
  readonly type: "event";
@@ -114,11 +109,6 @@ export declare class ICreditFacadeV3Events__factory {
114
109
  readonly internalType: "address";
115
110
  readonly name: "to";
116
111
  readonly type: "address";
117
- }, {
118
- readonly indexed: false;
119
- readonly internalType: "enum ClosureAction";
120
- readonly name: "closureAction";
121
- readonly type: "uint8";
122
112
  }, {
123
113
  readonly indexed: false;
124
114
  readonly internalType: "uint256";
@@ -160,12 +150,12 @@ export declare class ICreditFacadeV3Events__factory {
160
150
  readonly name: "creditAccount";
161
151
  readonly type: "address";
162
152
  }, {
163
- readonly indexed: false;
164
- readonly internalType: "uint256";
165
- readonly name: "enabledTokensMask";
166
- readonly type: "uint256";
153
+ readonly indexed: true;
154
+ readonly internalType: "address";
155
+ readonly name: "caller";
156
+ readonly type: "address";
167
157
  }];
168
- readonly name: "SetEnabledTokensMask";
158
+ readonly name: "StartMultiCall";
169
159
  readonly type: "event";
170
160
  }, {
171
161
  readonly anonymous: false;
@@ -177,10 +167,15 @@ export declare class ICreditFacadeV3Events__factory {
177
167
  }, {
178
168
  readonly indexed: true;
179
169
  readonly internalType: "address";
180
- readonly name: "caller";
170
+ readonly name: "token";
181
171
  readonly type: "address";
172
+ }, {
173
+ readonly indexed: false;
174
+ readonly internalType: "uint256";
175
+ readonly name: "amount";
176
+ readonly type: "uint256";
182
177
  }];
183
- readonly name: "StartMultiCall";
178
+ readonly name: "WithdrawCollateral";
184
179
  readonly type: "event";
185
180
  }];
186
181
  static createInterface(): ICreditFacadeV3EventsInterface;
@@ -24,7 +24,7 @@ const _abi = [
24
24
  {
25
25
  indexed: false,
26
26
  internalType: "uint256",
27
- name: "value",
27
+ name: "amount",
28
28
  type: "uint256",
29
29
  },
30
30
  ],
@@ -46,12 +46,6 @@ const _abi = [
46
46
  name: "borrower",
47
47
  type: "address",
48
48
  },
49
- {
50
- indexed: true,
51
- internalType: "address",
52
- name: "to",
53
- type: "address",
54
- },
55
49
  ],
56
50
  name: "CloseCreditAccount",
57
51
  type: "event",
@@ -146,12 +140,6 @@ const _abi = [
146
140
  name: "to",
147
141
  type: "address",
148
142
  },
149
- {
150
- indexed: false,
151
- internalType: "enum ClosureAction",
152
- name: "closureAction",
153
- type: "uint8",
154
- },
155
143
  {
156
144
  indexed: false,
157
145
  internalType: "uint256",
@@ -203,13 +191,13 @@ const _abi = [
203
191
  type: "address",
204
192
  },
205
193
  {
206
- indexed: false,
207
- internalType: "uint256",
208
- name: "enabledTokensMask",
209
- type: "uint256",
194
+ indexed: true,
195
+ internalType: "address",
196
+ name: "caller",
197
+ type: "address",
210
198
  },
211
199
  ],
212
- name: "SetEnabledTokensMask",
200
+ name: "StartMultiCall",
213
201
  type: "event",
214
202
  },
215
203
  {
@@ -224,11 +212,17 @@ const _abi = [
224
212
  {
225
213
  indexed: true,
226
214
  internalType: "address",
227
- name: "caller",
215
+ name: "token",
228
216
  type: "address",
229
217
  },
218
+ {
219
+ indexed: false,
220
+ internalType: "uint256",
221
+ name: "amount",
222
+ type: "uint256",
223
+ },
230
224
  ],
231
- name: "StartMultiCall",
225
+ name: "WithdrawCollateral",
232
226
  type: "event",
233
227
  },
234
228
  ];
@@ -17,7 +17,7 @@ export declare class ICreditFacadeV3__factory {
17
17
  }, {
18
18
  readonly indexed: false;
19
19
  readonly internalType: "uint256";
20
- readonly name: "value";
20
+ readonly name: "amount";
21
21
  readonly type: "uint256";
22
22
  }];
23
23
  readonly name: "AddCollateral";
@@ -34,11 +34,6 @@ export declare class ICreditFacadeV3__factory {
34
34
  readonly internalType: "address";
35
35
  readonly name: "borrower";
36
36
  readonly type: "address";
37
- }, {
38
- readonly indexed: true;
39
- readonly internalType: "address";
40
- readonly name: "to";
41
- readonly type: "address";
42
37
  }];
43
38
  readonly name: "CloseCreditAccount";
44
39
  readonly type: "event";
@@ -114,11 +109,6 @@ export declare class ICreditFacadeV3__factory {
114
109
  readonly internalType: "address";
115
110
  readonly name: "to";
116
111
  readonly type: "address";
117
- }, {
118
- readonly indexed: false;
119
- readonly internalType: "enum ClosureAction";
120
- readonly name: "closureAction";
121
- readonly type: "uint8";
122
112
  }, {
123
113
  readonly indexed: false;
124
114
  readonly internalType: "uint256";
@@ -160,12 +150,12 @@ export declare class ICreditFacadeV3__factory {
160
150
  readonly name: "creditAccount";
161
151
  readonly type: "address";
162
152
  }, {
163
- readonly indexed: false;
164
- readonly internalType: "uint256";
165
- readonly name: "enabledTokensMask";
166
- readonly type: "uint256";
153
+ readonly indexed: true;
154
+ readonly internalType: "address";
155
+ readonly name: "caller";
156
+ readonly type: "address";
167
157
  }];
168
- readonly name: "SetEnabledTokensMask";
158
+ readonly name: "StartMultiCall";
169
159
  readonly type: "event";
170
160
  }, {
171
161
  readonly anonymous: false;
@@ -177,10 +167,15 @@ export declare class ICreditFacadeV3__factory {
177
167
  }, {
178
168
  readonly indexed: true;
179
169
  readonly internalType: "address";
180
- readonly name: "caller";
170
+ readonly name: "token";
181
171
  readonly type: "address";
172
+ }, {
173
+ readonly indexed: false;
174
+ readonly internalType: "uint256";
175
+ readonly name: "amount";
176
+ readonly type: "uint256";
182
177
  }];
183
- readonly name: "StartMultiCall";
178
+ readonly name: "WithdrawCollateral";
184
179
  readonly type: "event";
185
180
  }, {
186
181
  readonly inputs: readonly [];
@@ -234,32 +229,6 @@ export declare class ICreditFacadeV3__factory {
234
229
  readonly internalType: "address";
235
230
  readonly name: "creditAccount";
236
231
  readonly type: "address";
237
- }, {
238
- readonly internalType: "address";
239
- readonly name: "to";
240
- readonly type: "address";
241
- }];
242
- readonly name: "claimWithdrawals";
243
- readonly outputs: readonly [];
244
- readonly stateMutability: "nonpayable";
245
- readonly type: "function";
246
- }, {
247
- readonly inputs: readonly [{
248
- readonly internalType: "address";
249
- readonly name: "creditAccount";
250
- readonly type: "address";
251
- }, {
252
- readonly internalType: "address";
253
- readonly name: "to";
254
- readonly type: "address";
255
- }, {
256
- readonly internalType: "uint256";
257
- readonly name: "skipTokenMask";
258
- readonly type: "uint256";
259
- }, {
260
- readonly internalType: "bool";
261
- readonly name: "convertToETH";
262
- readonly type: "bool";
263
232
  }, {
264
233
  readonly components: readonly [{
265
234
  readonly internalType: "address";
@@ -351,14 +320,6 @@ export declare class ICreditFacadeV3__factory {
351
320
  readonly internalType: "address";
352
321
  readonly name: "to";
353
322
  readonly type: "address";
354
- }, {
355
- readonly internalType: "uint256";
356
- readonly name: "skipTokenMask";
357
- readonly type: "uint256";
358
- }, {
359
- readonly internalType: "bool";
360
- readonly name: "convertToETH";
361
- readonly type: "bool";
362
323
  }, {
363
324
  readonly components: readonly [{
364
325
  readonly internalType: "address";
@@ -498,14 +459,6 @@ export declare class ICreditFacadeV3__factory {
498
459
  readonly internalType: "uint192";
499
460
  readonly name: "permissions";
500
461
  readonly type: "uint192";
501
- }, {
502
- readonly internalType: "uint72";
503
- readonly name: "fundingAmount";
504
- readonly type: "uint72";
505
- }, {
506
- readonly internalType: "uint72";
507
- readonly name: "weeklyFundingAllowance";
508
- readonly type: "uint72";
509
462
  }];
510
463
  readonly name: "setBotPermissions";
511
464
  readonly outputs: readonly [];
@@ -601,16 +554,6 @@ export declare class ICreditFacadeV3__factory {
601
554
  }];
602
555
  readonly stateMutability: "view";
603
556
  readonly type: "function";
604
- }, {
605
- readonly inputs: readonly [];
606
- readonly name: "withdrawalManager";
607
- readonly outputs: readonly [{
608
- readonly internalType: "address";
609
- readonly name: "";
610
- readonly type: "address";
611
- }];
612
- readonly stateMutability: "view";
613
- readonly type: "function";
614
557
  }];
615
558
  static createInterface(): ICreditFacadeV3Interface;
616
559
  static connect(address: string, signerOrProvider: Signer | Provider): ICreditFacadeV3;
@@ -24,7 +24,7 @@ const _abi = [
24
24
  {
25
25
  indexed: false,
26
26
  internalType: "uint256",
27
- name: "value",
27
+ name: "amount",
28
28
  type: "uint256",
29
29
  },
30
30
  ],
@@ -46,12 +46,6 @@ const _abi = [
46
46
  name: "borrower",
47
47
  type: "address",
48
48
  },
49
- {
50
- indexed: true,
51
- internalType: "address",
52
- name: "to",
53
- type: "address",
54
- },
55
49
  ],
56
50
  name: "CloseCreditAccount",
57
51
  type: "event",
@@ -146,12 +140,6 @@ const _abi = [
146
140
  name: "to",
147
141
  type: "address",
148
142
  },
149
- {
150
- indexed: false,
151
- internalType: "enum ClosureAction",
152
- name: "closureAction",
153
- type: "uint8",
154
- },
155
143
  {
156
144
  indexed: false,
157
145
  internalType: "uint256",
@@ -203,13 +191,13 @@ const _abi = [
203
191
  type: "address",
204
192
  },
205
193
  {
206
- indexed: false,
207
- internalType: "uint256",
208
- name: "enabledTokensMask",
209
- type: "uint256",
194
+ indexed: true,
195
+ internalType: "address",
196
+ name: "caller",
197
+ type: "address",
210
198
  },
211
199
  ],
212
- name: "SetEnabledTokensMask",
200
+ name: "StartMultiCall",
213
201
  type: "event",
214
202
  },
215
203
  {
@@ -224,11 +212,17 @@ const _abi = [
224
212
  {
225
213
  indexed: true,
226
214
  internalType: "address",
227
- name: "caller",
215
+ name: "token",
228
216
  type: "address",
229
217
  },
218
+ {
219
+ indexed: false,
220
+ internalType: "uint256",
221
+ name: "amount",
222
+ type: "uint256",
223
+ },
230
224
  ],
231
- name: "StartMultiCall",
225
+ name: "WithdrawCollateral",
232
226
  type: "event",
233
227
  },
234
228
  {
@@ -300,39 +294,6 @@ const _abi = [
300
294
  name: "creditAccount",
301
295
  type: "address",
302
296
  },
303
- {
304
- internalType: "address",
305
- name: "to",
306
- type: "address",
307
- },
308
- ],
309
- name: "claimWithdrawals",
310
- outputs: [],
311
- stateMutability: "nonpayable",
312
- type: "function",
313
- },
314
- {
315
- inputs: [
316
- {
317
- internalType: "address",
318
- name: "creditAccount",
319
- type: "address",
320
- },
321
- {
322
- internalType: "address",
323
- name: "to",
324
- type: "address",
325
- },
326
- {
327
- internalType: "uint256",
328
- name: "skipTokenMask",
329
- type: "uint256",
330
- },
331
- {
332
- internalType: "bool",
333
- name: "convertToETH",
334
- type: "bool",
335
- },
336
297
  {
337
298
  components: [
338
299
  {
@@ -451,16 +412,6 @@ const _abi = [
451
412
  name: "to",
452
413
  type: "address",
453
414
  },
454
- {
455
- internalType: "uint256",
456
- name: "skipTokenMask",
457
- type: "uint256",
458
- },
459
- {
460
- internalType: "bool",
461
- name: "convertToETH",
462
- type: "bool",
463
- },
464
415
  {
465
416
  components: [
466
417
  {
@@ -642,16 +593,6 @@ const _abi = [
642
593
  name: "permissions",
643
594
  type: "uint192",
644
595
  },
645
- {
646
- internalType: "uint72",
647
- name: "fundingAmount",
648
- type: "uint72",
649
- },
650
- {
651
- internalType: "uint72",
652
- name: "weeklyFundingAllowance",
653
- type: "uint72",
654
- },
655
596
  ],
656
597
  name: "setBotPermissions",
657
598
  outputs: [],
@@ -774,19 +715,6 @@ const _abi = [
774
715
  stateMutability: "view",
775
716
  type: "function",
776
717
  },
777
- {
778
- inputs: [],
779
- name: "withdrawalManager",
780
- outputs: [
781
- {
782
- internalType: "address",
783
- name: "",
784
- type: "address",
785
- },
786
- ],
787
- stateMutability: "view",
788
- type: "function",
789
- },
790
718
  ];
791
719
  class ICreditFacadeV3__factory {
792
720
  static abi = _abi;
@@ -91,6 +91,10 @@ export declare class ICreditFacadeV3Multicall__factory {
91
91
  readonly internalType: "address";
92
92
  readonly name: "token";
93
93
  readonly type: "address";
94
+ }, {
95
+ readonly internalType: "bool";
96
+ readonly name: "reserve";
97
+ readonly type: "bool";
94
98
  }, {
95
99
  readonly internalType: "bytes";
96
100
  readonly name: "data";
@@ -100,16 +104,6 @@ export declare class ICreditFacadeV3Multicall__factory {
100
104
  readonly outputs: readonly [];
101
105
  readonly stateMutability: "nonpayable";
102
106
  readonly type: "function";
103
- }, {
104
- readonly inputs: readonly [{
105
- readonly internalType: "uint72";
106
- readonly name: "paymentAmount";
107
- readonly type: "uint72";
108
- }];
109
- readonly name: "payBot";
110
- readonly outputs: readonly [];
111
- readonly stateMutability: "nonpayable";
112
- readonly type: "function";
113
107
  }, {
114
108
  readonly inputs: readonly [{
115
109
  readonly components: readonly [{
@@ -148,20 +142,6 @@ export declare class ICreditFacadeV3Multicall__factory {
148
142
  readonly outputs: readonly [];
149
143
  readonly stateMutability: "nonpayable";
150
144
  readonly type: "function";
151
- }, {
152
- readonly inputs: readonly [{
153
- readonly internalType: "address";
154
- readonly name: "token";
155
- readonly type: "address";
156
- }, {
157
- readonly internalType: "uint256";
158
- readonly name: "amount";
159
- readonly type: "uint256";
160
- }];
161
- readonly name: "scheduleWithdrawal";
162
- readonly outputs: readonly [];
163
- readonly stateMutability: "nonpayable";
164
- readonly type: "function";
165
145
  }, {
166
146
  readonly inputs: readonly [{
167
147
  readonly internalType: "uint256[]";
@@ -194,6 +174,24 @@ export declare class ICreditFacadeV3Multicall__factory {
194
174
  readonly outputs: readonly [];
195
175
  readonly stateMutability: "nonpayable";
196
176
  readonly type: "function";
177
+ }, {
178
+ readonly inputs: readonly [{
179
+ readonly internalType: "address";
180
+ readonly name: "token";
181
+ readonly type: "address";
182
+ }, {
183
+ readonly internalType: "uint256";
184
+ readonly name: "amount";
185
+ readonly type: "uint256";
186
+ }, {
187
+ readonly internalType: "address";
188
+ readonly name: "to";
189
+ readonly type: "address";
190
+ }];
191
+ readonly name: "withdrawCollateral";
192
+ readonly outputs: readonly [];
193
+ readonly stateMutability: "nonpayable";
194
+ readonly type: "function";
197
195
  }];
198
196
  static createInterface(): ICreditFacadeV3MulticallInterface;
199
197
  static connect(address: string, signerOrProvider: Signer | Provider): ICreditFacadeV3Multicall;
@@ -121,6 +121,11 @@ const _abi = [
121
121
  name: "token",
122
122
  type: "address",
123
123
  },
124
+ {
125
+ internalType: "bool",
126
+ name: "reserve",
127
+ type: "bool",
128
+ },
124
129
  {
125
130
  internalType: "bytes",
126
131
  name: "data",
@@ -132,19 +137,6 @@ const _abi = [
132
137
  stateMutability: "nonpayable",
133
138
  type: "function",
134
139
  },
135
- {
136
- inputs: [
137
- {
138
- internalType: "uint72",
139
- name: "paymentAmount",
140
- type: "uint72",
141
- },
142
- ],
143
- name: "payBot",
144
- outputs: [],
145
- stateMutability: "nonpayable",
146
- type: "function",
147
- },
148
140
  {
149
141
  inputs: [
150
142
  {
@@ -195,24 +187,6 @@ const _abi = [
195
187
  stateMutability: "nonpayable",
196
188
  type: "function",
197
189
  },
198
- {
199
- inputs: [
200
- {
201
- internalType: "address",
202
- name: "token",
203
- type: "address",
204
- },
205
- {
206
- internalType: "uint256",
207
- name: "amount",
208
- type: "uint256",
209
- },
210
- ],
211
- name: "scheduleWithdrawal",
212
- outputs: [],
213
- stateMutability: "nonpayable",
214
- type: "function",
215
- },
216
190
  {
217
191
  inputs: [
218
192
  {
@@ -254,6 +228,29 @@ const _abi = [
254
228
  stateMutability: "nonpayable",
255
229
  type: "function",
256
230
  },
231
+ {
232
+ inputs: [
233
+ {
234
+ internalType: "address",
235
+ name: "token",
236
+ type: "address",
237
+ },
238
+ {
239
+ internalType: "uint256",
240
+ name: "amount",
241
+ type: "uint256",
242
+ },
243
+ {
244
+ internalType: "address",
245
+ name: "to",
246
+ type: "address",
247
+ },
248
+ ],
249
+ name: "withdrawCollateral",
250
+ outputs: [],
251
+ stateMutability: "nonpayable",
252
+ type: "function",
253
+ },
257
254
  ];
258
255
  class ICreditFacadeV3Multicall__factory {
259
256
  static abi = _abi;