github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/snapshots/abi/DataAvailabilityChallenge.json (about) 1 [ 2 { 3 "inputs": [], 4 "stateMutability": "nonpayable", 5 "type": "constructor" 6 }, 7 { 8 "stateMutability": "payable", 9 "type": "receive" 10 }, 11 { 12 "inputs": [ 13 { 14 "internalType": "address", 15 "name": "", 16 "type": "address" 17 } 18 ], 19 "name": "balances", 20 "outputs": [ 21 { 22 "internalType": "uint256", 23 "name": "", 24 "type": "uint256" 25 } 26 ], 27 "stateMutability": "view", 28 "type": "function" 29 }, 30 { 31 "inputs": [], 32 "name": "bondSize", 33 "outputs": [ 34 { 35 "internalType": "uint256", 36 "name": "", 37 "type": "uint256" 38 } 39 ], 40 "stateMutability": "view", 41 "type": "function" 42 }, 43 { 44 "inputs": [ 45 { 46 "internalType": "uint256", 47 "name": "challengedBlockNumber", 48 "type": "uint256" 49 }, 50 { 51 "internalType": "bytes", 52 "name": "challengedCommitment", 53 "type": "bytes" 54 } 55 ], 56 "name": "challenge", 57 "outputs": [], 58 "stateMutability": "payable", 59 "type": "function" 60 }, 61 { 62 "inputs": [], 63 "name": "challengeWindow", 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": "deposit", 77 "outputs": [], 78 "stateMutability": "payable", 79 "type": "function" 80 }, 81 { 82 "inputs": [], 83 "name": "fixedResolutionCost", 84 "outputs": [ 85 { 86 "internalType": "uint256", 87 "name": "", 88 "type": "uint256" 89 } 90 ], 91 "stateMutability": "view", 92 "type": "function" 93 }, 94 { 95 "inputs": [ 96 { 97 "internalType": "uint256", 98 "name": "challengedBlockNumber", 99 "type": "uint256" 100 }, 101 { 102 "internalType": "bytes", 103 "name": "challengedCommitment", 104 "type": "bytes" 105 } 106 ], 107 "name": "getChallenge", 108 "outputs": [ 109 { 110 "components": [ 111 { 112 "internalType": "address", 113 "name": "challenger", 114 "type": "address" 115 }, 116 { 117 "internalType": "uint256", 118 "name": "lockedBond", 119 "type": "uint256" 120 }, 121 { 122 "internalType": "uint256", 123 "name": "startBlock", 124 "type": "uint256" 125 }, 126 { 127 "internalType": "uint256", 128 "name": "resolvedBlock", 129 "type": "uint256" 130 } 131 ], 132 "internalType": "struct Challenge", 133 "name": "", 134 "type": "tuple" 135 } 136 ], 137 "stateMutability": "view", 138 "type": "function" 139 }, 140 { 141 "inputs": [ 142 { 143 "internalType": "uint256", 144 "name": "challengedBlockNumber", 145 "type": "uint256" 146 }, 147 { 148 "internalType": "bytes", 149 "name": "challengedCommitment", 150 "type": "bytes" 151 } 152 ], 153 "name": "getChallengeStatus", 154 "outputs": [ 155 { 156 "internalType": "enum ChallengeStatus", 157 "name": "", 158 "type": "uint8" 159 } 160 ], 161 "stateMutability": "view", 162 "type": "function" 163 }, 164 { 165 "inputs": [ 166 { 167 "internalType": "address", 168 "name": "_owner", 169 "type": "address" 170 }, 171 { 172 "internalType": "uint256", 173 "name": "_challengeWindow", 174 "type": "uint256" 175 }, 176 { 177 "internalType": "uint256", 178 "name": "_resolveWindow", 179 "type": "uint256" 180 }, 181 { 182 "internalType": "uint256", 183 "name": "_bondSize", 184 "type": "uint256" 185 }, 186 { 187 "internalType": "uint256", 188 "name": "_resolverRefundPercentage", 189 "type": "uint256" 190 } 191 ], 192 "name": "initialize", 193 "outputs": [], 194 "stateMutability": "nonpayable", 195 "type": "function" 196 }, 197 { 198 "inputs": [], 199 "name": "owner", 200 "outputs": [ 201 { 202 "internalType": "address", 203 "name": "", 204 "type": "address" 205 } 206 ], 207 "stateMutability": "view", 208 "type": "function" 209 }, 210 { 211 "inputs": [], 212 "name": "renounceOwnership", 213 "outputs": [], 214 "stateMutability": "nonpayable", 215 "type": "function" 216 }, 217 { 218 "inputs": [ 219 { 220 "internalType": "uint256", 221 "name": "challengedBlockNumber", 222 "type": "uint256" 223 }, 224 { 225 "internalType": "bytes", 226 "name": "challengedCommitment", 227 "type": "bytes" 228 }, 229 { 230 "internalType": "bytes", 231 "name": "resolveData", 232 "type": "bytes" 233 } 234 ], 235 "name": "resolve", 236 "outputs": [], 237 "stateMutability": "nonpayable", 238 "type": "function" 239 }, 240 { 241 "inputs": [], 242 "name": "resolveWindow", 243 "outputs": [ 244 { 245 "internalType": "uint256", 246 "name": "", 247 "type": "uint256" 248 } 249 ], 250 "stateMutability": "view", 251 "type": "function" 252 }, 253 { 254 "inputs": [], 255 "name": "resolverRefundPercentage", 256 "outputs": [ 257 { 258 "internalType": "uint256", 259 "name": "", 260 "type": "uint256" 261 } 262 ], 263 "stateMutability": "view", 264 "type": "function" 265 }, 266 { 267 "inputs": [ 268 { 269 "internalType": "uint256", 270 "name": "_bondSize", 271 "type": "uint256" 272 } 273 ], 274 "name": "setBondSize", 275 "outputs": [], 276 "stateMutability": "nonpayable", 277 "type": "function" 278 }, 279 { 280 "inputs": [ 281 { 282 "internalType": "uint256", 283 "name": "_resolverRefundPercentage", 284 "type": "uint256" 285 } 286 ], 287 "name": "setResolverRefundPercentage", 288 "outputs": [], 289 "stateMutability": "nonpayable", 290 "type": "function" 291 }, 292 { 293 "inputs": [ 294 { 295 "internalType": "address", 296 "name": "newOwner", 297 "type": "address" 298 } 299 ], 300 "name": "transferOwnership", 301 "outputs": [], 302 "stateMutability": "nonpayable", 303 "type": "function" 304 }, 305 { 306 "inputs": [ 307 { 308 "internalType": "uint256", 309 "name": "challengedBlockNumber", 310 "type": "uint256" 311 }, 312 { 313 "internalType": "bytes", 314 "name": "challengedCommitment", 315 "type": "bytes" 316 } 317 ], 318 "name": "unlockBond", 319 "outputs": [], 320 "stateMutability": "nonpayable", 321 "type": "function" 322 }, 323 { 324 "inputs": [ 325 { 326 "internalType": "bytes", 327 "name": "commitment", 328 "type": "bytes" 329 } 330 ], 331 "name": "validateCommitment", 332 "outputs": [], 333 "stateMutability": "pure", 334 "type": "function" 335 }, 336 { 337 "inputs": [], 338 "name": "variableResolutionCost", 339 "outputs": [ 340 { 341 "internalType": "uint256", 342 "name": "", 343 "type": "uint256" 344 } 345 ], 346 "stateMutability": "view", 347 "type": "function" 348 }, 349 { 350 "inputs": [], 351 "name": "variableResolutionCostPrecision", 352 "outputs": [ 353 { 354 "internalType": "uint256", 355 "name": "", 356 "type": "uint256" 357 } 358 ], 359 "stateMutability": "view", 360 "type": "function" 361 }, 362 { 363 "inputs": [], 364 "name": "version", 365 "outputs": [ 366 { 367 "internalType": "string", 368 "name": "", 369 "type": "string" 370 } 371 ], 372 "stateMutability": "view", 373 "type": "function" 374 }, 375 { 376 "inputs": [], 377 "name": "withdraw", 378 "outputs": [], 379 "stateMutability": "nonpayable", 380 "type": "function" 381 }, 382 { 383 "anonymous": false, 384 "inputs": [ 385 { 386 "indexed": false, 387 "internalType": "address", 388 "name": "account", 389 "type": "address" 390 }, 391 { 392 "indexed": false, 393 "internalType": "uint256", 394 "name": "balance", 395 "type": "uint256" 396 } 397 ], 398 "name": "BalanceChanged", 399 "type": "event" 400 }, 401 { 402 "anonymous": false, 403 "inputs": [ 404 { 405 "indexed": true, 406 "internalType": "uint256", 407 "name": "challengedBlockNumber", 408 "type": "uint256" 409 }, 410 { 411 "indexed": false, 412 "internalType": "bytes", 413 "name": "challengedCommitment", 414 "type": "bytes" 415 }, 416 { 417 "indexed": false, 418 "internalType": "enum ChallengeStatus", 419 "name": "status", 420 "type": "uint8" 421 } 422 ], 423 "name": "ChallengeStatusChanged", 424 "type": "event" 425 }, 426 { 427 "anonymous": false, 428 "inputs": [ 429 { 430 "indexed": false, 431 "internalType": "uint8", 432 "name": "version", 433 "type": "uint8" 434 } 435 ], 436 "name": "Initialized", 437 "type": "event" 438 }, 439 { 440 "anonymous": false, 441 "inputs": [ 442 { 443 "indexed": true, 444 "internalType": "address", 445 "name": "previousOwner", 446 "type": "address" 447 }, 448 { 449 "indexed": true, 450 "internalType": "address", 451 "name": "newOwner", 452 "type": "address" 453 } 454 ], 455 "name": "OwnershipTransferred", 456 "type": "event" 457 }, 458 { 459 "anonymous": false, 460 "inputs": [ 461 { 462 "indexed": false, 463 "internalType": "uint256", 464 "name": "challengeWindow", 465 "type": "uint256" 466 } 467 ], 468 "name": "RequiredBondSizeChanged", 469 "type": "event" 470 }, 471 { 472 "anonymous": false, 473 "inputs": [ 474 { 475 "indexed": false, 476 "internalType": "uint256", 477 "name": "resolverRefundPercentage", 478 "type": "uint256" 479 } 480 ], 481 "name": "ResolverRefundPercentageChanged", 482 "type": "event" 483 }, 484 { 485 "inputs": [ 486 { 487 "internalType": "uint256", 488 "name": "balance", 489 "type": "uint256" 490 }, 491 { 492 "internalType": "uint256", 493 "name": "required", 494 "type": "uint256" 495 } 496 ], 497 "name": "BondTooLow", 498 "type": "error" 499 }, 500 { 501 "inputs": [], 502 "name": "ChallengeExists", 503 "type": "error" 504 }, 505 { 506 "inputs": [], 507 "name": "ChallengeNotActive", 508 "type": "error" 509 }, 510 { 511 "inputs": [], 512 "name": "ChallengeNotExpired", 513 "type": "error" 514 }, 515 { 516 "inputs": [], 517 "name": "ChallengeWindowNotOpen", 518 "type": "error" 519 }, 520 { 521 "inputs": [ 522 { 523 "internalType": "uint8", 524 "name": "commitmentType", 525 "type": "uint8" 526 }, 527 { 528 "internalType": "uint256", 529 "name": "expectedLength", 530 "type": "uint256" 531 }, 532 { 533 "internalType": "uint256", 534 "name": "actualLength", 535 "type": "uint256" 536 } 537 ], 538 "name": "InvalidCommitmentLength", 539 "type": "error" 540 }, 541 { 542 "inputs": [ 543 { 544 "internalType": "bytes", 545 "name": "providedDataCommitment", 546 "type": "bytes" 547 }, 548 { 549 "internalType": "bytes", 550 "name": "expectedCommitment", 551 "type": "bytes" 552 } 553 ], 554 "name": "InvalidInputData", 555 "type": "error" 556 }, 557 { 558 "inputs": [ 559 { 560 "internalType": "uint256", 561 "name": "invalidResolverRefundPercentage", 562 "type": "uint256" 563 } 564 ], 565 "name": "InvalidResolverRefundPercentage", 566 "type": "error" 567 }, 568 { 569 "inputs": [ 570 { 571 "internalType": "uint8", 572 "name": "commitmentType", 573 "type": "uint8" 574 } 575 ], 576 "name": "UnknownCommitmentType", 577 "type": "error" 578 }, 579 { 580 "inputs": [], 581 "name": "WithdrawalFailed", 582 "type": "error" 583 } 584 ]