ETH Price: $2,017.29 (+0.86%)

Contract

0xd0e6b1dc1AEf0bE28Ada901534225adaD1776918

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HelloPolygonzkEVM

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at zkevm.polygonscan.com on 2023-08-08
*/

// SPDX-License-Identifier: MIT

// Specifies the version of Solidity, using semantic versioning.
// Learn more: https://solidity.readthedocs.io/en/v0.5.10/layout-of-source-files.html#pragma
pragma solidity ^0.8.0;

// Defines a contract named `HelloWorld`.
// A contract is a collection of functions and data (its state). Once deployed, a contract resides at a specific address on the Ethereum blockchain. Learn more: https://solidity.readthedocs.io/en/v0.5.10/structure-of-a-contract.html
contract HelloPolygonzkEVM {

   // Declares a state variable `message` of type `string`.
   // State variables are variables whose values are permanently stored in contract storage. The keyword `public` makes variables accessible from outside a contract and creates a function that other contracts or clients can call to access the value.
   string public message;

   // Similar to many class-based object-oriented languages, a constructor is a special function that is only executed upon contract creation.
   // Constructors are used to initialize the contract's data. Learn more:https://solidity.readthedocs.io/en/v0.5.10/contracts.html#constructors
   constructor(string memory initMessage) {

      // Accepts a string argument `initMessage` and sets the value into the contract's `message` storage variable).
      message = initMessage;
   }

   // A public function that accepts a string argument and updates the `message` storage variable.
   function update(string memory newMessage) public {
      message = newMessage;
   }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"initMessage","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"message","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"newMessage","type":"string"}],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162000bee38038062000bee8339818101604052810190620000379190620001e3565b80600090816200004891906200047f565b505062000566565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620000b9826200006e565b810181811067ffffffffffffffff82111715620000db57620000da6200007f565b5b80604052505050565b6000620000f062000050565b9050620000fe8282620000ae565b919050565b600067ffffffffffffffff8211156200012157620001206200007f565b5b6200012c826200006e565b9050602081019050919050565b60005b83811015620001595780820151818401526020810190506200013c565b60008484015250505050565b60006200017c620001768462000103565b620000e4565b9050828152602081018484840111156200019b576200019a62000069565b5b620001a884828562000139565b509392505050565b600082601f830112620001c857620001c762000064565b5b8151620001da84826020860162000165565b91505092915050565b600060208284031215620001fc57620001fb6200005a565b5b600082015167ffffffffffffffff8111156200021d576200021c6200005f565b5b6200022b84828501620001b0565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200028757607f821691505b6020821081036200029d576200029c6200023f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003077fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002c8565b620003138683620002c8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003606200035a62000354846200032b565b62000335565b6200032b565b9050919050565b6000819050919050565b6200037c836200033f565b620003946200038b8262000367565b848454620002d5565b825550505050565b600090565b620003ab6200039c565b620003b881848462000371565b505050565b5b81811015620003e057620003d4600082620003a1565b600181019050620003be565b5050565b601f8211156200042f57620003f981620002a3565b6200040484620002b8565b8101602085101562000414578190505b6200042c6200042385620002b8565b830182620003bd565b50505b505050565b600082821c905092915050565b6000620004546000198460080262000434565b1980831691505092915050565b60006200046f838362000441565b9150826002028217905092915050565b6200048a8262000234565b67ffffffffffffffff811115620004a657620004a56200007f565b5b620004b282546200026e565b620004bf828285620003e4565b600060209050601f831160018114620004f75760008415620004e2578287015190505b620004ee858262000461565b8655506200055e565b601f1984166200050786620002a3565b60005b8281101562000531578489015182556001820191506020850194506020810190506200050a565b868310156200055157848901516200054d601f89168262000441565b8355505b6001600288020188555050505b505050505050565b61067880620005766000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633d7403a31461003b578063e21f37ce14610057575b600080fd5b61005560048036038101906100509190610270565b610075565b005b61005f610088565b60405161006c9190610338565b60405180910390f35b80600090816100849190610570565b5050565b6000805461009590610389565b80601f01602080910402602001604051908101604052809291908181526020018280546100c190610389565b801561010e5780601f106100e35761010080835404028352916020019161010e565b820191906000526020600020905b8154815290600101906020018083116100f157829003601f168201915b505050505081565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61017d82610134565b810181811067ffffffffffffffff8211171561019c5761019b610145565b5b80604052505050565b60006101af610116565b90506101bb8282610174565b919050565b600067ffffffffffffffff8211156101db576101da610145565b5b6101e482610134565b9050602081019050919050565b82818337600083830152505050565b600061021361020e846101c0565b6101a5565b90508281526020810184848401111561022f5761022e61012f565b5b61023a8482856101f1565b509392505050565b600082601f8301126102575761025661012a565b5b8135610267848260208601610200565b91505092915050565b60006020828403121561028657610285610120565b5b600082013567ffffffffffffffff8111156102a4576102a3610125565b5b6102b084828501610242565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156102f35780820151818401526020810190506102d8565b60008484015250505050565b600061030a826102b9565b61031481856102c4565b93506103248185602086016102d5565b61032d81610134565b840191505092915050565b6000602082019050818103600083015261035281846102ff565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806103a157607f821691505b6020821081036103b4576103b361035a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261041c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826103df565b61042686836103df565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600061046d6104686104638461043e565b610448565b61043e565b9050919050565b6000819050919050565b61048783610452565b61049b61049382610474565b8484546103ec565b825550505050565b600090565b6104b06104a3565b6104bb81848461047e565b505050565b5b818110156104df576104d46000826104a8565b6001810190506104c1565b5050565b601f821115610524576104f5816103ba565b6104fe846103cf565b8101602085101561050d578190505b610521610519856103cf565b8301826104c0565b50505b505050565b600082821c905092915050565b600061054760001984600802610529565b1980831691505092915050565b60006105608383610536565b9150826002028217905092915050565b610579826102b9565b67ffffffffffffffff81111561059257610591610145565b5b61059c8254610389565b6105a78282856104e3565b600060209050601f8311600181146105da57600084156105c8578287015190505b6105d28582610554565b86555061063a565b601f1984166105e8866103ba565b60005b82811015610610578489015182556001820191506020850194506020810190506105eb565b8683101561062d5784890151610629601f891682610536565b8355505b6001600288020188555050505b50505050505056fea26469706673582212206f04c47eb669b5ee634ed13078931501d1fffc7fae8080df0bae071b2cbe9ae964736f6c634300081200330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001148656c6c6f506f6c79676f6e7a6b45564d000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c80633d7403a31461003b578063e21f37ce14610057575b600080fd5b61005560048036038101906100509190610270565b610075565b005b61005f610088565b60405161006c9190610338565b60405180910390f35b80600090816100849190610570565b5050565b6000805461009590610389565b80601f01602080910402602001604051908101604052809291908181526020018280546100c190610389565b801561010e5780601f106100e35761010080835404028352916020019161010e565b820191906000526020600020905b8154815290600101906020018083116100f157829003601f168201915b505050505081565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61017d82610134565b810181811067ffffffffffffffff8211171561019c5761019b610145565b5b80604052505050565b60006101af610116565b90506101bb8282610174565b919050565b600067ffffffffffffffff8211156101db576101da610145565b5b6101e482610134565b9050602081019050919050565b82818337600083830152505050565b600061021361020e846101c0565b6101a5565b90508281526020810184848401111561022f5761022e61012f565b5b61023a8482856101f1565b509392505050565b600082601f8301126102575761025661012a565b5b8135610267848260208601610200565b91505092915050565b60006020828403121561028657610285610120565b5b600082013567ffffffffffffffff8111156102a4576102a3610125565b5b6102b084828501610242565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156102f35780820151818401526020810190506102d8565b60008484015250505050565b600061030a826102b9565b61031481856102c4565b93506103248185602086016102d5565b61032d81610134565b840191505092915050565b6000602082019050818103600083015261035281846102ff565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806103a157607f821691505b6020821081036103b4576103b361035a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261041c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826103df565b61042686836103df565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600061046d6104686104638461043e565b610448565b61043e565b9050919050565b6000819050919050565b61048783610452565b61049b61049382610474565b8484546103ec565b825550505050565b600090565b6104b06104a3565b6104bb81848461047e565b505050565b5b818110156104df576104d46000826104a8565b6001810190506104c1565b5050565b601f821115610524576104f5816103ba565b6104fe846103cf565b8101602085101561050d578190505b610521610519856103cf565b8301826104c0565b50505b505050565b600082821c905092915050565b600061054760001984600802610529565b1980831691505092915050565b60006105608383610536565b9150826002028217905092915050565b610579826102b9565b67ffffffffffffffff81111561059257610591610145565b5b61059c8254610389565b6105a78282856104e3565b600060209050601f8311600181146105da57600084156105c8578287015190505b6105d28582610554565b86555061063a565b601f1984166105e8866103ba565b60005b82811015610610578489015182556001820191506020850194506020810190506105eb565b8683101561062d5784890151610629601f891682610536565b8355505b6001600288020188555050505b50505050505056fea26469706673582212206f04c47eb669b5ee634ed13078931501d1fffc7fae8080df0bae071b2cbe9ae964736f6c63430008120033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001148656c6c6f506f6c79676f6e7a6b45564d000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initMessage (string): HelloPolygonzkEVM

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [2] : 48656c6c6f506f6c79676f6e7a6b45564d000000000000000000000000000000


Deployed Bytecode Sourcemap

499:1057:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1468:85;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;846:21;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1468:85;1536:10;1526:7;:20;;;;;;:::i;:::-;;1468:85;:::o;846:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:117;443:1;440;433:12;457:117;566:1;563;556:12;580:102;621:6;672:2;668:7;663:2;656:5;652:14;648:28;638:38;;580:102;;;:::o;688:180::-;736:77;733:1;726:88;833:4;830:1;823:15;857:4;854:1;847:15;874:281;957:27;979:4;957:27;:::i;:::-;949:6;945:40;1087:6;1075:10;1072:22;1051:18;1039:10;1036:34;1033:62;1030:88;;;1098:18;;:::i;:::-;1030:88;1138:10;1134:2;1127:22;917:238;874:281;;:::o;1161:129::-;1195:6;1222:20;;:::i;:::-;1212:30;;1251:33;1279:4;1271:6;1251:33;:::i;:::-;1161:129;;;:::o;1296:308::-;1358:4;1448:18;1440:6;1437:30;1434:56;;;1470:18;;:::i;:::-;1434:56;1508:29;1530:6;1508:29;:::i;:::-;1500:37;;1592:4;1586;1582:15;1574:23;;1296:308;;;:::o;1610:146::-;1707:6;1702:3;1697;1684:30;1748:1;1739:6;1734:3;1730:16;1723:27;1610:146;;;:::o;1762:425::-;1840:5;1865:66;1881:49;1923:6;1881:49;:::i;:::-;1865:66;:::i;:::-;1856:75;;1954:6;1947:5;1940:21;1992:4;1985:5;1981:16;2030:3;2021:6;2016:3;2012:16;2009:25;2006:112;;;2037:79;;:::i;:::-;2006:112;2127:54;2174:6;2169:3;2164;2127:54;:::i;:::-;1846:341;1762:425;;;;;:::o;2207:340::-;2263:5;2312:3;2305:4;2297:6;2293:17;2289:27;2279:122;;2320:79;;:::i;:::-;2279:122;2437:6;2424:20;2462:79;2537:3;2529:6;2522:4;2514:6;2510:17;2462:79;:::i;:::-;2453:88;;2269:278;2207:340;;;;:::o;2553:509::-;2622:6;2671:2;2659:9;2650:7;2646:23;2642:32;2639:119;;;2677:79;;:::i;:::-;2639:119;2825:1;2814:9;2810:17;2797:31;2855:18;2847:6;2844:30;2841:117;;;2877:79;;:::i;:::-;2841:117;2982:63;3037:7;3028:6;3017:9;3013:22;2982:63;:::i;:::-;2972:73;;2768:287;2553:509;;;;:::o;3068:99::-;3120:6;3154:5;3148:12;3138:22;;3068:99;;;:::o;3173:169::-;3257:11;3291:6;3286:3;3279:19;3331:4;3326:3;3322:14;3307:29;;3173:169;;;;:::o;3348:246::-;3429:1;3439:113;3453:6;3450:1;3447:13;3439:113;;;3538:1;3533:3;3529:11;3523:18;3519:1;3514:3;3510:11;3503:39;3475:2;3472:1;3468:10;3463:15;;3439:113;;;3586:1;3577:6;3572:3;3568:16;3561:27;3410:184;3348:246;;;:::o;3600:377::-;3688:3;3716:39;3749:5;3716:39;:::i;:::-;3771:71;3835:6;3830:3;3771:71;:::i;:::-;3764:78;;3851:65;3909:6;3904:3;3897:4;3890:5;3886:16;3851:65;:::i;:::-;3941:29;3963:6;3941:29;:::i;:::-;3936:3;3932:39;3925:46;;3692:285;3600:377;;;;:::o;3983:313::-;4096:4;4134:2;4123:9;4119:18;4111:26;;4183:9;4177:4;4173:20;4169:1;4158:9;4154:17;4147:47;4211:78;4284:4;4275:6;4211:78;:::i;:::-;4203:86;;3983:313;;;;:::o;4302:180::-;4350:77;4347:1;4340:88;4447:4;4444:1;4437:15;4471:4;4468:1;4461:15;4488:320;4532:6;4569:1;4563:4;4559:12;4549:22;;4616:1;4610:4;4606:12;4637:18;4627:81;;4693:4;4685:6;4681:17;4671:27;;4627:81;4755:2;4747:6;4744:14;4724:18;4721:38;4718:84;;4774:18;;:::i;:::-;4718:84;4539:269;4488:320;;;:::o;4814:141::-;4863:4;4886:3;4878:11;;4909:3;4906:1;4899:14;4943:4;4940:1;4930:18;4922:26;;4814:141;;;:::o;4961:93::-;4998:6;5045:2;5040;5033:5;5029:14;5025:23;5015:33;;4961:93;;;:::o;5060:107::-;5104:8;5154:5;5148:4;5144:16;5123:37;;5060:107;;;;:::o;5173:393::-;5242:6;5292:1;5280:10;5276:18;5315:97;5345:66;5334:9;5315:97;:::i;:::-;5433:39;5463:8;5452:9;5433:39;:::i;:::-;5421:51;;5505:4;5501:9;5494:5;5490:21;5481:30;;5554:4;5544:8;5540:19;5533:5;5530:30;5520:40;;5249:317;;5173:393;;;;;:::o;5572:77::-;5609:7;5638:5;5627:16;;5572:77;;;:::o;5655:60::-;5683:3;5704:5;5697:12;;5655:60;;;:::o;5721:142::-;5771:9;5804:53;5822:34;5831:24;5849:5;5831:24;:::i;:::-;5822:34;:::i;:::-;5804:53;:::i;:::-;5791:66;;5721:142;;;:::o;5869:75::-;5912:3;5933:5;5926:12;;5869:75;;;:::o;5950:269::-;6060:39;6091:7;6060:39;:::i;:::-;6121:91;6170:41;6194:16;6170:41;:::i;:::-;6162:6;6155:4;6149:11;6121:91;:::i;:::-;6115:4;6108:105;6026:193;5950:269;;;:::o;6225:73::-;6270:3;6225:73;:::o;6304:189::-;6381:32;;:::i;:::-;6422:65;6480:6;6472;6466:4;6422:65;:::i;:::-;6357:136;6304:189;;:::o;6499:186::-;6559:120;6576:3;6569:5;6566:14;6559:120;;;6630:39;6667:1;6660:5;6630:39;:::i;:::-;6603:1;6596:5;6592:13;6583:22;;6559:120;;;6499:186;;:::o;6691:543::-;6792:2;6787:3;6784:11;6781:446;;;6826:38;6858:5;6826:38;:::i;:::-;6910:29;6928:10;6910:29;:::i;:::-;6900:8;6896:44;7093:2;7081:10;7078:18;7075:49;;;7114:8;7099:23;;7075:49;7137:80;7193:22;7211:3;7193:22;:::i;:::-;7183:8;7179:37;7166:11;7137:80;:::i;:::-;6796:431;;6781:446;6691:543;;;:::o;7240:117::-;7294:8;7344:5;7338:4;7334:16;7313:37;;7240:117;;;;:::o;7363:169::-;7407:6;7440:51;7488:1;7484:6;7476:5;7473:1;7469:13;7440:51;:::i;:::-;7436:56;7521:4;7515;7511:15;7501:25;;7414:118;7363:169;;;;:::o;7537:295::-;7613:4;7759:29;7784:3;7778:4;7759:29;:::i;:::-;7751:37;;7821:3;7818:1;7814:11;7808:4;7805:21;7797:29;;7537:295;;;;:::o;7837:1395::-;7954:37;7987:3;7954:37;:::i;:::-;8056:18;8048:6;8045:30;8042:56;;;8078:18;;:::i;:::-;8042:56;8122:38;8154:4;8148:11;8122:38;:::i;:::-;8207:67;8267:6;8259;8253:4;8207:67;:::i;:::-;8301:1;8325:4;8312:17;;8357:2;8349:6;8346:14;8374:1;8369:618;;;;9031:1;9048:6;9045:77;;;9097:9;9092:3;9088:19;9082:26;9073:35;;9045:77;9148:67;9208:6;9201:5;9148:67;:::i;:::-;9142:4;9135:81;9004:222;8339:887;;8369:618;8421:4;8417:9;8409:6;8405:22;8455:37;8487:4;8455:37;:::i;:::-;8514:1;8528:208;8542:7;8539:1;8536:14;8528:208;;;8621:9;8616:3;8612:19;8606:26;8598:6;8591:42;8672:1;8664:6;8660:14;8650:24;;8719:2;8708:9;8704:18;8691:31;;8565:4;8562:1;8558:12;8553:17;;8528:208;;;8764:6;8755:7;8752:19;8749:179;;;8822:9;8817:3;8813:19;8807:26;8865:48;8907:4;8899:6;8895:17;8884:9;8865:48;:::i;:::-;8857:6;8850:64;8772:156;8749:179;8974:1;8970;8962:6;8958:14;8954:22;8948:4;8941:36;8376:611;;;8339:887;;7929:1303;;;7837:1395;;:::o

Swarm Source

ipfs://6f04c47eb669b5ee634ed13078931501d1fffc7fae8080df0bae071b2cbe9ae9

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.