github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/etherman/smartcontracts/abi/polygonzkevmbridge.abi (about) 1 [ 2 { 3 "inputs": [], 4 "name": "AlreadyClaimed", 5 "type": "error" 6 }, 7 { 8 "inputs": [], 9 "name": "AmountDoesNotMatchMsgValue", 10 "type": "error" 11 }, 12 { 13 "inputs": [], 14 "name": "DestinationNetworkInvalid", 15 "type": "error" 16 }, 17 { 18 "inputs": [], 19 "name": "EtherTransferFailed", 20 "type": "error" 21 }, 22 { 23 "inputs": [], 24 "name": "GlobalExitRootInvalid", 25 "type": "error" 26 }, 27 { 28 "inputs": [], 29 "name": "InvalidSmtProof", 30 "type": "error" 31 }, 32 { 33 "inputs": [], 34 "name": "MerkleTreeFull", 35 "type": "error" 36 }, 37 { 38 "inputs": [], 39 "name": "MessageFailed", 40 "type": "error" 41 }, 42 { 43 "inputs": [], 44 "name": "MsgValueNotZero", 45 "type": "error" 46 }, 47 { 48 "inputs": [], 49 "name": "NotValidAmount", 50 "type": "error" 51 }, 52 { 53 "inputs": [], 54 "name": "NotValidOwner", 55 "type": "error" 56 }, 57 { 58 "inputs": [], 59 "name": "NotValidSignature", 60 "type": "error" 61 }, 62 { 63 "inputs": [], 64 "name": "NotValidSpender", 65 "type": "error" 66 }, 67 { 68 "inputs": [], 69 "name": "OnlyEmergencyState", 70 "type": "error" 71 }, 72 { 73 "inputs": [], 74 "name": "OnlyNotEmergencyState", 75 "type": "error" 76 }, 77 { 78 "inputs": [], 79 "name": "OnlyPolygonZkEVM", 80 "type": "error" 81 }, 82 { 83 "anonymous": false, 84 "inputs": [ 85 { 86 "indexed": false, 87 "internalType": "uint8", 88 "name": "leafType", 89 "type": "uint8" 90 }, 91 { 92 "indexed": false, 93 "internalType": "uint32", 94 "name": "originNetwork", 95 "type": "uint32" 96 }, 97 { 98 "indexed": false, 99 "internalType": "address", 100 "name": "originAddress", 101 "type": "address" 102 }, 103 { 104 "indexed": false, 105 "internalType": "uint32", 106 "name": "destinationNetwork", 107 "type": "uint32" 108 }, 109 { 110 "indexed": false, 111 "internalType": "address", 112 "name": "destinationAddress", 113 "type": "address" 114 }, 115 { 116 "indexed": false, 117 "internalType": "uint256", 118 "name": "amount", 119 "type": "uint256" 120 }, 121 { 122 "indexed": false, 123 "internalType": "bytes", 124 "name": "metadata", 125 "type": "bytes" 126 }, 127 { 128 "indexed": false, 129 "internalType": "uint32", 130 "name": "depositCount", 131 "type": "uint32" 132 } 133 ], 134 "name": "BridgeEvent", 135 "type": "event" 136 }, 137 { 138 "anonymous": false, 139 "inputs": [ 140 { 141 "indexed": false, 142 "internalType": "uint32", 143 "name": "index", 144 "type": "uint32" 145 }, 146 { 147 "indexed": false, 148 "internalType": "uint32", 149 "name": "originNetwork", 150 "type": "uint32" 151 }, 152 { 153 "indexed": false, 154 "internalType": "address", 155 "name": "originAddress", 156 "type": "address" 157 }, 158 { 159 "indexed": false, 160 "internalType": "address", 161 "name": "destinationAddress", 162 "type": "address" 163 }, 164 { 165 "indexed": false, 166 "internalType": "uint256", 167 "name": "amount", 168 "type": "uint256" 169 } 170 ], 171 "name": "ClaimEvent", 172 "type": "event" 173 }, 174 { 175 "anonymous": false, 176 "inputs": [], 177 "name": "EmergencyStateActivated", 178 "type": "event" 179 }, 180 { 181 "anonymous": false, 182 "inputs": [], 183 "name": "EmergencyStateDeactivated", 184 "type": "event" 185 }, 186 { 187 "anonymous": false, 188 "inputs": [ 189 { 190 "indexed": false, 191 "internalType": "uint8", 192 "name": "version", 193 "type": "uint8" 194 } 195 ], 196 "name": "Initialized", 197 "type": "event" 198 }, 199 { 200 "anonymous": false, 201 "inputs": [ 202 { 203 "indexed": false, 204 "internalType": "uint32", 205 "name": "originNetwork", 206 "type": "uint32" 207 }, 208 { 209 "indexed": false, 210 "internalType": "address", 211 "name": "originTokenAddress", 212 "type": "address" 213 }, 214 { 215 "indexed": false, 216 "internalType": "address", 217 "name": "wrappedTokenAddress", 218 "type": "address" 219 }, 220 { 221 "indexed": false, 222 "internalType": "bytes", 223 "name": "metadata", 224 "type": "bytes" 225 } 226 ], 227 "name": "NewWrappedToken", 228 "type": "event" 229 }, 230 { 231 "inputs": [], 232 "name": "activateEmergencyState", 233 "outputs": [], 234 "stateMutability": "nonpayable", 235 "type": "function" 236 }, 237 { 238 "inputs": [ 239 { 240 "internalType": "uint32", 241 "name": "destinationNetwork", 242 "type": "uint32" 243 }, 244 { 245 "internalType": "address", 246 "name": "destinationAddress", 247 "type": "address" 248 }, 249 { 250 "internalType": "uint256", 251 "name": "amount", 252 "type": "uint256" 253 }, 254 { 255 "internalType": "address", 256 "name": "token", 257 "type": "address" 258 }, 259 { 260 "internalType": "bool", 261 "name": "forceUpdateGlobalExitRoot", 262 "type": "bool" 263 }, 264 { 265 "internalType": "bytes", 266 "name": "permitData", 267 "type": "bytes" 268 } 269 ], 270 "name": "bridgeAsset", 271 "outputs": [], 272 "stateMutability": "payable", 273 "type": "function" 274 }, 275 { 276 "inputs": [ 277 { 278 "internalType": "uint32", 279 "name": "destinationNetwork", 280 "type": "uint32" 281 }, 282 { 283 "internalType": "address", 284 "name": "destinationAddress", 285 "type": "address" 286 }, 287 { 288 "internalType": "bool", 289 "name": "forceUpdateGlobalExitRoot", 290 "type": "bool" 291 }, 292 { 293 "internalType": "bytes", 294 "name": "metadata", 295 "type": "bytes" 296 } 297 ], 298 "name": "bridgeMessage", 299 "outputs": [], 300 "stateMutability": "payable", 301 "type": "function" 302 }, 303 { 304 "inputs": [ 305 { 306 "internalType": "bytes32[32]", 307 "name": "smtProof", 308 "type": "bytes32[32]" 309 }, 310 { 311 "internalType": "uint32", 312 "name": "index", 313 "type": "uint32" 314 }, 315 { 316 "internalType": "bytes32", 317 "name": "mainnetExitRoot", 318 "type": "bytes32" 319 }, 320 { 321 "internalType": "bytes32", 322 "name": "rollupExitRoot", 323 "type": "bytes32" 324 }, 325 { 326 "internalType": "uint32", 327 "name": "originNetwork", 328 "type": "uint32" 329 }, 330 { 331 "internalType": "address", 332 "name": "originTokenAddress", 333 "type": "address" 334 }, 335 { 336 "internalType": "uint32", 337 "name": "destinationNetwork", 338 "type": "uint32" 339 }, 340 { 341 "internalType": "address", 342 "name": "destinationAddress", 343 "type": "address" 344 }, 345 { 346 "internalType": "uint256", 347 "name": "amount", 348 "type": "uint256" 349 }, 350 { 351 "internalType": "bytes", 352 "name": "metadata", 353 "type": "bytes" 354 } 355 ], 356 "name": "claimAsset", 357 "outputs": [], 358 "stateMutability": "nonpayable", 359 "type": "function" 360 }, 361 { 362 "inputs": [ 363 { 364 "internalType": "bytes32[32]", 365 "name": "smtProof", 366 "type": "bytes32[32]" 367 }, 368 { 369 "internalType": "uint32", 370 "name": "index", 371 "type": "uint32" 372 }, 373 { 374 "internalType": "bytes32", 375 "name": "mainnetExitRoot", 376 "type": "bytes32" 377 }, 378 { 379 "internalType": "bytes32", 380 "name": "rollupExitRoot", 381 "type": "bytes32" 382 }, 383 { 384 "internalType": "uint32", 385 "name": "originNetwork", 386 "type": "uint32" 387 }, 388 { 389 "internalType": "address", 390 "name": "originAddress", 391 "type": "address" 392 }, 393 { 394 "internalType": "uint32", 395 "name": "destinationNetwork", 396 "type": "uint32" 397 }, 398 { 399 "internalType": "address", 400 "name": "destinationAddress", 401 "type": "address" 402 }, 403 { 404 "internalType": "uint256", 405 "name": "amount", 406 "type": "uint256" 407 }, 408 { 409 "internalType": "bytes", 410 "name": "metadata", 411 "type": "bytes" 412 } 413 ], 414 "name": "claimMessage", 415 "outputs": [], 416 "stateMutability": "nonpayable", 417 "type": "function" 418 }, 419 { 420 "inputs": [ 421 { 422 "internalType": "uint256", 423 "name": "", 424 "type": "uint256" 425 } 426 ], 427 "name": "claimedBitMap", 428 "outputs": [ 429 { 430 "internalType": "uint256", 431 "name": "", 432 "type": "uint256" 433 } 434 ], 435 "stateMutability": "view", 436 "type": "function" 437 }, 438 { 439 "inputs": [], 440 "name": "deactivateEmergencyState", 441 "outputs": [], 442 "stateMutability": "nonpayable", 443 "type": "function" 444 }, 445 { 446 "inputs": [], 447 "name": "depositCount", 448 "outputs": [ 449 { 450 "internalType": "uint256", 451 "name": "", 452 "type": "uint256" 453 } 454 ], 455 "stateMutability": "view", 456 "type": "function" 457 }, 458 { 459 "inputs": [], 460 "name": "getDepositRoot", 461 "outputs": [ 462 { 463 "internalType": "bytes32", 464 "name": "", 465 "type": "bytes32" 466 } 467 ], 468 "stateMutability": "view", 469 "type": "function" 470 }, 471 { 472 "inputs": [ 473 { 474 "internalType": "uint8", 475 "name": "leafType", 476 "type": "uint8" 477 }, 478 { 479 "internalType": "uint32", 480 "name": "originNetwork", 481 "type": "uint32" 482 }, 483 { 484 "internalType": "address", 485 "name": "originAddress", 486 "type": "address" 487 }, 488 { 489 "internalType": "uint32", 490 "name": "destinationNetwork", 491 "type": "uint32" 492 }, 493 { 494 "internalType": "address", 495 "name": "destinationAddress", 496 "type": "address" 497 }, 498 { 499 "internalType": "uint256", 500 "name": "amount", 501 "type": "uint256" 502 }, 503 { 504 "internalType": "bytes32", 505 "name": "metadataHash", 506 "type": "bytes32" 507 } 508 ], 509 "name": "getLeafValue", 510 "outputs": [ 511 { 512 "internalType": "bytes32", 513 "name": "", 514 "type": "bytes32" 515 } 516 ], 517 "stateMutability": "pure", 518 "type": "function" 519 }, 520 { 521 "inputs": [ 522 { 523 "internalType": "uint32", 524 "name": "originNetwork", 525 "type": "uint32" 526 }, 527 { 528 "internalType": "address", 529 "name": "originTokenAddress", 530 "type": "address" 531 } 532 ], 533 "name": "getTokenWrappedAddress", 534 "outputs": [ 535 { 536 "internalType": "address", 537 "name": "", 538 "type": "address" 539 } 540 ], 541 "stateMutability": "view", 542 "type": "function" 543 }, 544 { 545 "inputs": [], 546 "name": "globalExitRootManager", 547 "outputs": [ 548 { 549 "internalType": "contract IBasePolygonZkEVMGlobalExitRoot", 550 "name": "", 551 "type": "address" 552 } 553 ], 554 "stateMutability": "view", 555 "type": "function" 556 }, 557 { 558 "inputs": [ 559 { 560 "internalType": "uint32", 561 "name": "_networkID", 562 "type": "uint32" 563 }, 564 { 565 "internalType": "contract IBasePolygonZkEVMGlobalExitRoot", 566 "name": "_globalExitRootManager", 567 "type": "address" 568 }, 569 { 570 "internalType": "address", 571 "name": "_polygonZkEVMaddress", 572 "type": "address" 573 } 574 ], 575 "name": "initialize", 576 "outputs": [], 577 "stateMutability": "nonpayable", 578 "type": "function" 579 }, 580 { 581 "inputs": [ 582 { 583 "internalType": "uint256", 584 "name": "index", 585 "type": "uint256" 586 } 587 ], 588 "name": "isClaimed", 589 "outputs": [ 590 { 591 "internalType": "bool", 592 "name": "", 593 "type": "bool" 594 } 595 ], 596 "stateMutability": "view", 597 "type": "function" 598 }, 599 { 600 "inputs": [], 601 "name": "isEmergencyState", 602 "outputs": [ 603 { 604 "internalType": "bool", 605 "name": "", 606 "type": "bool" 607 } 608 ], 609 "stateMutability": "view", 610 "type": "function" 611 }, 612 { 613 "inputs": [], 614 "name": "lastUpdatedDepositCount", 615 "outputs": [ 616 { 617 "internalType": "uint32", 618 "name": "", 619 "type": "uint32" 620 } 621 ], 622 "stateMutability": "view", 623 "type": "function" 624 }, 625 { 626 "inputs": [], 627 "name": "networkID", 628 "outputs": [ 629 { 630 "internalType": "uint32", 631 "name": "", 632 "type": "uint32" 633 } 634 ], 635 "stateMutability": "view", 636 "type": "function" 637 }, 638 { 639 "inputs": [], 640 "name": "polygonZkEVMaddress", 641 "outputs": [ 642 { 643 "internalType": "address", 644 "name": "", 645 "type": "address" 646 } 647 ], 648 "stateMutability": "view", 649 "type": "function" 650 }, 651 { 652 "inputs": [ 653 { 654 "internalType": "uint32", 655 "name": "originNetwork", 656 "type": "uint32" 657 }, 658 { 659 "internalType": "address", 660 "name": "originTokenAddress", 661 "type": "address" 662 }, 663 { 664 "internalType": "string", 665 "name": "name", 666 "type": "string" 667 }, 668 { 669 "internalType": "string", 670 "name": "symbol", 671 "type": "string" 672 }, 673 { 674 "internalType": "uint8", 675 "name": "decimals", 676 "type": "uint8" 677 } 678 ], 679 "name": "precalculatedWrapperAddress", 680 "outputs": [ 681 { 682 "internalType": "address", 683 "name": "", 684 "type": "address" 685 } 686 ], 687 "stateMutability": "view", 688 "type": "function" 689 }, 690 { 691 "inputs": [ 692 { 693 "internalType": "bytes32", 694 "name": "", 695 "type": "bytes32" 696 } 697 ], 698 "name": "tokenInfoToWrappedToken", 699 "outputs": [ 700 { 701 "internalType": "address", 702 "name": "", 703 "type": "address" 704 } 705 ], 706 "stateMutability": "view", 707 "type": "function" 708 }, 709 { 710 "inputs": [], 711 "name": "updateGlobalExitRoot", 712 "outputs": [], 713 "stateMutability": "nonpayable", 714 "type": "function" 715 }, 716 { 717 "inputs": [ 718 { 719 "internalType": "bytes32", 720 "name": "leafHash", 721 "type": "bytes32" 722 }, 723 { 724 "internalType": "bytes32[32]", 725 "name": "smtProof", 726 "type": "bytes32[32]" 727 }, 728 { 729 "internalType": "uint32", 730 "name": "index", 731 "type": "uint32" 732 }, 733 { 734 "internalType": "bytes32", 735 "name": "root", 736 "type": "bytes32" 737 } 738 ], 739 "name": "verifyMerkleProof", 740 "outputs": [ 741 { 742 "internalType": "bool", 743 "name": "", 744 "type": "bool" 745 } 746 ], 747 "stateMutability": "pure", 748 "type": "function" 749 }, 750 { 751 "inputs": [ 752 { 753 "internalType": "address", 754 "name": "", 755 "type": "address" 756 } 757 ], 758 "name": "wrappedTokenToTokenInfo", 759 "outputs": [ 760 { 761 "internalType": "uint32", 762 "name": "originNetwork", 763 "type": "uint32" 764 }, 765 { 766 "internalType": "address", 767 "name": "originTokenAddress", 768 "type": "address" 769 } 770 ], 771 "stateMutability": "view", 772 "type": "function" 773 } 774 ]