|
1 | 1 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
2 | | -// IWithdrawalCompressorV310 |
| 2 | +// WithdrawalCompressorV310 |
3 | 3 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
4 | 4 |
|
5 | 5 | export const iWithdrawalCompressorV310Abi = [ |
| 6 | + { |
| 7 | + type: "constructor", |
| 8 | + inputs: [ |
| 9 | + { name: "_owner", internalType: "address", type: "address" }, |
| 10 | + { name: "addressProvider_", internalType: "address", type: "address" }, |
| 11 | + ], |
| 12 | + stateMutability: "nonpayable", |
| 13 | + }, |
| 14 | + { |
| 15 | + type: "function", |
| 16 | + inputs: [], |
| 17 | + name: "addressProvider", |
| 18 | + outputs: [{ name: "", internalType: "address", type: "address" }], |
| 19 | + stateMutability: "view", |
| 20 | + }, |
| 21 | + { |
| 22 | + type: "function", |
| 23 | + inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], |
| 24 | + name: "compressorTypeToCompressor", |
| 25 | + outputs: [{ name: "", internalType: "address", type: "address" }], |
| 26 | + stateMutability: "view", |
| 27 | + }, |
6 | 28 | { |
7 | 29 | type: "function", |
8 | 30 | inputs: [], |
@@ -120,7 +142,7 @@ export const iWithdrawalCompressorV310Abi = [ |
120 | 142 | name: "getWithdrawalRequestResult", |
121 | 143 | outputs: [ |
122 | 144 | { |
123 | | - name: "", |
| 145 | + name: "withdrawal", |
124 | 146 | internalType: "struct RequestableWithdrawal", |
125 | 147 | type: "tuple", |
126 | 148 | components: [ |
@@ -151,11 +173,120 @@ export const iWithdrawalCompressorV310Abi = [ |
151 | 173 | ], |
152 | 174 | stateMutability: "view", |
153 | 175 | }, |
| 176 | + // TODO: REMOVE COMMENTS AFTER MIGRATION TO MULTIPLE |
| 177 | + // { |
| 178 | + // type: "function", |
| 179 | + // inputs: [ |
| 180 | + // { name: "creditAccount", internalType: "address", type: "address" }, |
| 181 | + // { name: "token", internalType: "address", type: "address" }, |
| 182 | + // { name: "withdrawalToken", internalType: "address", type: "address" }, |
| 183 | + // { name: "amount", internalType: "uint256", type: "uint256" }, |
| 184 | + // ], |
| 185 | + // name: "getWithdrawalRequestResult", |
| 186 | + // outputs: [ |
| 187 | + // { |
| 188 | + // name: "withdrawal", |
| 189 | + // internalType: "struct RequestableWithdrawal", |
| 190 | + // type: "tuple", |
| 191 | + // components: [ |
| 192 | + // { name: "token", internalType: "address", type: "address" }, |
| 193 | + // { name: "amountIn", internalType: "uint256", type: "uint256" }, |
| 194 | + // { |
| 195 | + // name: "outputs", |
| 196 | + // internalType: "struct WithdrawalOutput[]", |
| 197 | + // type: "tuple[]", |
| 198 | + // components: [ |
| 199 | + // { name: "token", internalType: "address", type: "address" }, |
| 200 | + // { name: "isDelayed", internalType: "bool", type: "bool" }, |
| 201 | + // { name: "amount", internalType: "uint256", type: "uint256" }, |
| 202 | + // ], |
| 203 | + // }, |
| 204 | + // { |
| 205 | + // name: "requestCalls", |
| 206 | + // internalType: "struct MultiCall[]", |
| 207 | + // type: "tuple[]", |
| 208 | + // components: [ |
| 209 | + // { name: "target", internalType: "address", type: "address" }, |
| 210 | + // { name: "callData", internalType: "bytes", type: "bytes" }, |
| 211 | + // ], |
| 212 | + // }, |
| 213 | + // { name: "claimableAt", internalType: "uint256", type: "uint256" }, |
| 214 | + // ], |
| 215 | + // }, |
| 216 | + // ], |
| 217 | + // stateMutability: "view", |
| 218 | + // }, |
| 219 | + { |
| 220 | + type: "function", |
| 221 | + inputs: [], |
| 222 | + name: "owner", |
| 223 | + outputs: [{ name: "", internalType: "address", type: "address" }], |
| 224 | + stateMutability: "view", |
| 225 | + }, |
| 226 | + { |
| 227 | + type: "function", |
| 228 | + inputs: [], |
| 229 | + name: "renounceOwnership", |
| 230 | + outputs: [], |
| 231 | + stateMutability: "nonpayable", |
| 232 | + }, |
| 233 | + { |
| 234 | + type: "function", |
| 235 | + inputs: [ |
| 236 | + { name: "subcompressor", internalType: "address", type: "address" }, |
| 237 | + ], |
| 238 | + name: "setSubcompressor", |
| 239 | + outputs: [], |
| 240 | + stateMutability: "nonpayable", |
| 241 | + }, |
| 242 | + { |
| 243 | + type: "function", |
| 244 | + inputs: [ |
| 245 | + { name: "withdrawableType", internalType: "bytes32", type: "bytes32" }, |
| 246 | + { name: "compressorType", internalType: "bytes32", type: "bytes32" }, |
| 247 | + ], |
| 248 | + name: "setWithdrawableTypeToCompressorType", |
| 249 | + outputs: [], |
| 250 | + stateMutability: "nonpayable", |
| 251 | + }, |
| 252 | + { |
| 253 | + type: "function", |
| 254 | + inputs: [{ name: "newOwner", internalType: "address", type: "address" }], |
| 255 | + name: "transferOwnership", |
| 256 | + outputs: [], |
| 257 | + stateMutability: "nonpayable", |
| 258 | + }, |
154 | 259 | { |
155 | 260 | type: "function", |
156 | 261 | inputs: [], |
157 | 262 | name: "version", |
158 | 263 | outputs: [{ name: "", internalType: "uint256", type: "uint256" }], |
159 | 264 | stateMutability: "view", |
160 | 265 | }, |
| 266 | + { |
| 267 | + type: "function", |
| 268 | + inputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], |
| 269 | + name: "withdrawableTypeToCompressorType", |
| 270 | + outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }], |
| 271 | + stateMutability: "view", |
| 272 | + }, |
| 273 | + { |
| 274 | + type: "event", |
| 275 | + anonymous: false, |
| 276 | + inputs: [ |
| 277 | + { |
| 278 | + name: "previousOwner", |
| 279 | + internalType: "address", |
| 280 | + type: "address", |
| 281 | + indexed: true, |
| 282 | + }, |
| 283 | + { |
| 284 | + name: "newOwner", |
| 285 | + internalType: "address", |
| 286 | + type: "address", |
| 287 | + indexed: true, |
| 288 | + }, |
| 289 | + ], |
| 290 | + name: "OwnershipTransferred", |
| 291 | + }, |
161 | 292 | ] as const; |
0 commit comments