Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Publish | 17057020 | 635 days ago | IN | 0 ETH | 0.00077319 |
Loading...
Loading
Contract Name:
Author
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-19 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract Author { address public owner; string public metadata; event ContractCreatedEvent(address indexed owner); event ReportEvent(address indexed sender, bytes32 indexed reason, string details); event PublishEvent(bytes32 indexed mimeType, bytes32 indexed licenseType, string contentCid, string metadataCid); modifier isOwner() { require(msg.sender == owner, "Caller is not owner"); _; } constructor(string memory _metadata) { metadata = _metadata; owner = msg.sender; emit ContractCreatedEvent(owner); } function publish(bytes32 mimeType, bytes32 licenseType, string calldata contentCid, string calldata metadataCid) external isOwner { emit PublishEvent(mimeType, licenseType, contentCid, metadataCid); } function report(bytes32 reason, string calldata details) external { emit ReportEvent(msg.sender, reason, details); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_metadata","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"ContractCreatedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"mimeType","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"licenseType","type":"bytes32"},{"indexed":false,"internalType":"string","name":"contentCid","type":"string"},{"indexed":false,"internalType":"string","name":"metadataCid","type":"string"}],"name":"PublishEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"bytes32","name":"reason","type":"bytes32"},{"indexed":false,"internalType":"string","name":"details","type":"string"}],"name":"ReportEvent","type":"event"},{"inputs":[],"name":"metadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mimeType","type":"bytes32"},{"internalType":"bytes32","name":"licenseType","type":"bytes32"},{"internalType":"string","name":"contentCid","type":"string"},{"internalType":"string","name":"metadataCid","type":"string"}],"name":"publish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"reason","type":"bytes32"},{"internalType":"string","name":"details","type":"string"}],"name":"report","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162000d1238038062000d12833981810160405281019062000037919062000286565b806001908162000048919062000522565b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff4bf85f7e43e5656f829aa120a1ecf6478adce5afdad66973bc4b929525d1c0760405160405180910390a25062000609565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200015c8262000111565b810181811067ffffffffffffffff821117156200017e576200017d62000122565b5b80604052505050565b600062000193620000f3565b9050620001a1828262000151565b919050565b600067ffffffffffffffff821115620001c457620001c362000122565b5b620001cf8262000111565b9050602081019050919050565b60005b83811015620001fc578082015181840152602081019050620001df565b60008484015250505050565b60006200021f6200021984620001a6565b62000187565b9050828152602081018484840111156200023e576200023d6200010c565b5b6200024b848285620001dc565b509392505050565b600082601f8301126200026b576200026a62000107565b5b81516200027d84826020860162000208565b91505092915050565b6000602082840312156200029f576200029e620000fd565b5b600082015167ffffffffffffffff811115620002c057620002bf62000102565b5b620002ce8482850162000253565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200032a57607f821691505b60208210810362000340576200033f620002e2565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003aa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200036b565b620003b686836200036b565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000403620003fd620003f784620003ce565b620003d8565b620003ce565b9050919050565b6000819050919050565b6200041f83620003e2565b620004376200042e826200040a565b84845462000378565b825550505050565b600090565b6200044e6200043f565b6200045b81848462000414565b505050565b5b8181101562000483576200047760008262000444565b60018101905062000461565b5050565b601f821115620004d2576200049c8162000346565b620004a7846200035b565b81016020851015620004b7578190505b620004cf620004c6856200035b565b83018262000460565b50505b505050565b600082821c905092915050565b6000620004f760001984600802620004d7565b1980831691505092915050565b6000620005128383620004e4565b9150826002028217905092915050565b6200052d82620002d7565b67ffffffffffffffff81111562000549576200054862000122565b5b62000555825462000311565b6200056282828562000487565b600060209050601f8311600181146200059a576000841562000585578287015190505b62000591858262000504565b86555062000601565b601f198416620005aa8662000346565b60005b82811015620005d457848901518255600182019150602085019450602081019050620005ad565b86831015620005f45784890151620005f0601f891682620004e4565b8355505b6001600288020188555050505b505050505050565b6106f980620006196000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063392f37e9146100515780635482f27b1461006f5780638da5cb5b1461008b578063b0cfbfc3146100a9575b600080fd5b6100596100c5565b6040516100669190610332565b60405180910390f35b610089600480360381019061008491906103f9565b610153565b005b6100936101a9565b6040516100a0919061049a565b60405180910390f35b6100c360048036038101906100be91906104b5565b6101cd565b005b600180546100d29061058b565b80601f01602080910402602001604051908101604052809291908181526020018280546100fe9061058b565b801561014b5780601f106101205761010080835404028352916020019161014b565b820191906000526020600020905b81548152906001019060200180831161012e57829003601f168201915b505050505081565b823373ffffffffffffffffffffffffffffffffffffffff167f97cabfd8c781abeb84ff0022c71385e7bbb0b2e8190454b762c842d050985c73848460405161019c9291906105f8565b60405180910390a3505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461025b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025290610668565b60405180910390fd5b84867f6fe95c5302c6c780376788241374616482e99ac4e0babc762c5e1316ccb2f623868686866040516102929493929190610688565b60405180910390a3505050505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156102dc5780820151818401526020810190506102c1565b60008484015250505050565b6000601f19601f8301169050919050565b6000610304826102a2565b61030e81856102ad565b935061031e8185602086016102be565b610327816102e8565b840191505092915050565b6000602082019050818103600083015261034c81846102f9565b905092915050565b600080fd5b600080fd5b6000819050919050565b6103718161035e565b811461037c57600080fd5b50565b60008135905061038e81610368565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126103b9576103b8610394565b5b8235905067ffffffffffffffff8111156103d6576103d5610399565b5b6020830191508360018202830111156103f2576103f161039e565b5b9250929050565b60008060006040848603121561041257610411610354565b5b60006104208682870161037f565b935050602084013567ffffffffffffffff81111561044157610440610359565b5b61044d868287016103a3565b92509250509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061048482610459565b9050919050565b61049481610479565b82525050565b60006020820190506104af600083018461048b565b92915050565b600080600080600080608087890312156104d2576104d1610354565b5b60006104e089828a0161037f565b96505060206104f189828a0161037f565b955050604087013567ffffffffffffffff81111561051257610511610359565b5b61051e89828a016103a3565b9450945050606087013567ffffffffffffffff81111561054157610540610359565b5b61054d89828a016103a3565b92509250509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806105a357607f821691505b6020821081036105b6576105b561055c565b5b50919050565b82818337600083830152505050565b60006105d783856102ad565b93506105e48385846105bc565b6105ed836102e8565b840190509392505050565b600060208201905081810360008301526106138184866105cb565b90509392505050565b7f43616c6c6572206973206e6f74206f776e657200000000000000000000000000600082015250565b60006106526013836102ad565b915061065d8261061c565b602082019050919050565b6000602082019050818103600083015261068181610645565b9050919050565b600060408201905081810360008301526106a38186886105cb565b905081810360208301526106b88184866105cb565b90509594505050505056fea2646970667358221220386bf5d6b9526f355b43c7cdc37ae2fb8c1af223403e3be464a6808f6a7e910364736f6c634300081200330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e516d5a52456e6a7a314a4c6759446f57473575786333396e5253676a3656794c73426d7642644867526e555a586d000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063392f37e9146100515780635482f27b1461006f5780638da5cb5b1461008b578063b0cfbfc3146100a9575b600080fd5b6100596100c5565b6040516100669190610332565b60405180910390f35b610089600480360381019061008491906103f9565b610153565b005b6100936101a9565b6040516100a0919061049a565b60405180910390f35b6100c360048036038101906100be91906104b5565b6101cd565b005b600180546100d29061058b565b80601f01602080910402602001604051908101604052809291908181526020018280546100fe9061058b565b801561014b5780601f106101205761010080835404028352916020019161014b565b820191906000526020600020905b81548152906001019060200180831161012e57829003601f168201915b505050505081565b823373ffffffffffffffffffffffffffffffffffffffff167f97cabfd8c781abeb84ff0022c71385e7bbb0b2e8190454b762c842d050985c73848460405161019c9291906105f8565b60405180910390a3505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461025b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025290610668565b60405180910390fd5b84867f6fe95c5302c6c780376788241374616482e99ac4e0babc762c5e1316ccb2f623868686866040516102929493929190610688565b60405180910390a3505050505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156102dc5780820151818401526020810190506102c1565b60008484015250505050565b6000601f19601f8301169050919050565b6000610304826102a2565b61030e81856102ad565b935061031e8185602086016102be565b610327816102e8565b840191505092915050565b6000602082019050818103600083015261034c81846102f9565b905092915050565b600080fd5b600080fd5b6000819050919050565b6103718161035e565b811461037c57600080fd5b50565b60008135905061038e81610368565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126103b9576103b8610394565b5b8235905067ffffffffffffffff8111156103d6576103d5610399565b5b6020830191508360018202830111156103f2576103f161039e565b5b9250929050565b60008060006040848603121561041257610411610354565b5b60006104208682870161037f565b935050602084013567ffffffffffffffff81111561044157610440610359565b5b61044d868287016103a3565b92509250509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061048482610459565b9050919050565b61049481610479565b82525050565b60006020820190506104af600083018461048b565b92915050565b600080600080600080608087890312156104d2576104d1610354565b5b60006104e089828a0161037f565b96505060206104f189828a0161037f565b955050604087013567ffffffffffffffff81111561051257610511610359565b5b61051e89828a016103a3565b9450945050606087013567ffffffffffffffff81111561054157610540610359565b5b61054d89828a016103a3565b92509250509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806105a357607f821691505b6020821081036105b6576105b561055c565b5b50919050565b82818337600083830152505050565b60006105d783856102ad565b93506105e48385846105bc565b6105ed836102e8565b840190509392505050565b600060208201905081810360008301526106138184866105cb565b90509392505050565b7f43616c6c6572206973206e6f74206f776e657200000000000000000000000000600082015250565b60006106526013836102ad565b915061065d8261061c565b602082019050919050565b6000602082019050818103600083015261068181610645565b9050919050565b600060408201905081810360008301526106a38186886105cb565b905081810360208301526106b88184866105cb565b90509594505050505056fea2646970667358221220386bf5d6b9526f355b43c7cdc37ae2fb8c1af223403e3be464a6808f6a7e910364736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e516d5a52456e6a7a314a4c6759446f57473575786333396e5253676a3656794c73426d7642644867526e555a586d000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _metadata (string): QmZREnjz1JLgYDoWG5uxc39nRSgj6VyLsBmvBdHgRnUZXm
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [2] : 516d5a52456e6a7a314a4c6759446f57473575786333396e5253676a3656794c
Arg [3] : 73426d7642644867526e555a586d000000000000000000000000000000000000
Deployed Bytecode Sourcemap
74:1026:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;126:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;965:130;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99:20;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;724:233;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;126:22;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;965:130::-;1071:6;1059:10;1047:40;;;1079:7;;1047:40;;;;;;;:::i;:::-;;;;;;;;965:130;;;:::o;99:20::-;;;;;;;;;;;;:::o;724:233::-;507:5;;;;;;;;;;493:19;;:10;:19;;;485:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;912:11:::1;902:8;889:60;925:10;;937:11;;889:60;;;;;;;;;:::i;:::-;;;;;;;;724:233:::0;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:246::-;368:1;378:113;392:6;389:1;386:13;378:113;;;477:1;472:3;468:11;462:18;458:1;453:3;449:11;442:39;414:2;411:1;407:10;402:15;;378:113;;;525:1;516:6;511:3;507:16;500:27;349:184;287:246;;;:::o;539:102::-;580:6;631:2;627:7;622:2;615:5;611:14;607:28;597:38;;539:102;;;:::o;647:377::-;735:3;763:39;796:5;763:39;:::i;:::-;818:71;882:6;877:3;818:71;:::i;:::-;811:78;;898:65;956:6;951:3;944:4;937:5;933:16;898:65;:::i;:::-;988:29;1010:6;988:29;:::i;:::-;983:3;979:39;972:46;;739:285;647:377;;;;:::o;1030:313::-;1143:4;1181:2;1170:9;1166:18;1158:26;;1230:9;1224:4;1220:20;1216:1;1205:9;1201:17;1194:47;1258:78;1331:4;1322:6;1258:78;:::i;:::-;1250:86;;1030:313;;;;:::o;1430:117::-;1539:1;1536;1529:12;1553:117;1662:1;1659;1652:12;1676:77;1713:7;1742:5;1731:16;;1676:77;;;:::o;1759:122::-;1832:24;1850:5;1832:24;:::i;:::-;1825:5;1822:35;1812:63;;1871:1;1868;1861:12;1812:63;1759:122;:::o;1887:139::-;1933:5;1971:6;1958:20;1949:29;;1987:33;2014:5;1987:33;:::i;:::-;1887:139;;;;:::o;2032:117::-;2141:1;2138;2131:12;2155:117;2264:1;2261;2254:12;2278:117;2387:1;2384;2377:12;2415:553;2473:8;2483:6;2533:3;2526:4;2518:6;2514:17;2510:27;2500:122;;2541:79;;:::i;:::-;2500:122;2654:6;2641:20;2631:30;;2684:18;2676:6;2673:30;2670:117;;;2706:79;;:::i;:::-;2670:117;2820:4;2812:6;2808:17;2796:29;;2874:3;2866:4;2858:6;2854:17;2844:8;2840:32;2837:41;2834:128;;;2881:79;;:::i;:::-;2834:128;2415:553;;;;;:::o;2974:674::-;3054:6;3062;3070;3119:2;3107:9;3098:7;3094:23;3090:32;3087:119;;;3125:79;;:::i;:::-;3087:119;3245:1;3270:53;3315:7;3306:6;3295:9;3291:22;3270:53;:::i;:::-;3260:63;;3216:117;3400:2;3389:9;3385:18;3372:32;3431:18;3423:6;3420:30;3417:117;;;3453:79;;:::i;:::-;3417:117;3566:65;3623:7;3614:6;3603:9;3599:22;3566:65;:::i;:::-;3548:83;;;;3343:298;2974:674;;;;;:::o;3654:126::-;3691:7;3731:42;3724:5;3720:54;3709:65;;3654:126;;;:::o;3786:96::-;3823:7;3852:24;3870:5;3852:24;:::i;:::-;3841:35;;3786:96;;;:::o;3888:118::-;3975:24;3993:5;3975:24;:::i;:::-;3970:3;3963:37;3888:118;;:::o;4012:222::-;4105:4;4143:2;4132:9;4128:18;4120:26;;4156:71;4224:1;4213:9;4209:17;4200:6;4156:71;:::i;:::-;4012:222;;;;:::o;4240:1165::-;4350:6;4358;4366;4374;4382;4390;4439:3;4427:9;4418:7;4414:23;4410:33;4407:120;;;4446:79;;:::i;:::-;4407:120;4566:1;4591:53;4636:7;4627:6;4616:9;4612:22;4591:53;:::i;:::-;4581:63;;4537:117;4693:2;4719:53;4764:7;4755:6;4744:9;4740:22;4719:53;:::i;:::-;4709:63;;4664:118;4849:2;4838:9;4834:18;4821:32;4880:18;4872:6;4869:30;4866:117;;;4902:79;;:::i;:::-;4866:117;5015:65;5072:7;5063:6;5052:9;5048:22;5015:65;:::i;:::-;4997:83;;;;4792:298;5157:2;5146:9;5142:18;5129:32;5188:18;5180:6;5177:30;5174:117;;;5210:79;;:::i;:::-;5174:117;5323:65;5380:7;5371:6;5360:9;5356:22;5323:65;:::i;:::-;5305:83;;;;5100:298;4240:1165;;;;;;;;:::o;5411:180::-;5459:77;5456:1;5449:88;5556:4;5553:1;5546:15;5580:4;5577:1;5570:15;5597:320;5641:6;5678:1;5672:4;5668:12;5658:22;;5725:1;5719:4;5715:12;5746:18;5736:81;;5802:4;5794:6;5790:17;5780:27;;5736:81;5864:2;5856:6;5853:14;5833:18;5830:38;5827:84;;5883:18;;:::i;:::-;5827:84;5648:269;5597:320;;;:::o;5923:146::-;6020:6;6015:3;6010;5997:30;6061:1;6052:6;6047:3;6043:16;6036:27;5923:146;;;:::o;6099:317::-;6197:3;6218:71;6282:6;6277:3;6218:71;:::i;:::-;6211:78;;6299:56;6348:6;6343:3;6336:5;6299:56;:::i;:::-;6380:29;6402:6;6380:29;:::i;:::-;6375:3;6371:39;6364:46;;6099:317;;;;;:::o;6422:333::-;6545:4;6583:2;6572:9;6568:18;6560:26;;6632:9;6626:4;6622:20;6618:1;6607:9;6603:17;6596:47;6660:88;6743:4;6734:6;6726;6660:88;:::i;:::-;6652:96;;6422:333;;;;;:::o;6761:169::-;6901:21;6897:1;6889:6;6885:14;6878:45;6761:169;:::o;6936:366::-;7078:3;7099:67;7163:2;7158:3;7099:67;:::i;:::-;7092:74;;7175:93;7264:3;7175:93;:::i;:::-;7293:2;7288:3;7284:12;7277:19;;6936:366;;;:::o;7308:419::-;7474:4;7512:2;7501:9;7497:18;7489:26;;7561:9;7555:4;7551:20;7547:1;7536:9;7532:17;7525:47;7589:131;7715:4;7589:131;:::i;:::-;7581:139;;7308:419;;;:::o;7733:554::-;7914:4;7952:2;7941:9;7937:18;7929:26;;8001:9;7995:4;7991:20;7987:1;7976:9;7972:17;7965:47;8029:88;8112:4;8103:6;8095;8029:88;:::i;:::-;8021:96;;8164:9;8158:4;8154:20;8149:2;8138:9;8134:18;8127:48;8192:88;8275:4;8266:6;8258;8192:88;:::i;:::-;8184:96;;7733:554;;;;;;;:::o
Swarm Source
ipfs://386bf5d6b9526f355b43c7cdc37ae2fb8c1af223403e3be464a6808f6a7e9103
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
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.