Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
HashChan
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.26; contract HashChan { enum Board { pol, biz, g, sci, x } event Thread ( Board indexed board, address indexed creator, bytes32 indexed id, string imgUrl, string title, string content, uint256 timestamp ); event Comment ( address indexed creator, bytes32 indexed threadId, bytes32 indexed id, string imgUrl, string content, uint256 timestamp ); function createThread( Board board, string memory title, string memory url, string memory content ) public { bytes32 threadId = keccak256( abi.encode( board, title, msg.sender, block.timestamp )); emit Thread ( board, msg.sender, threadId, url, title, content, block.timestamp ); } function createComment( bytes32 threadId, string memory imgUrl, string memory content ) public { bytes32 id = keccak256(abi.encode(msg.sender, block.timestamp, threadId)); emit Comment ( msg.sender, threadId, id, imgUrl, content, block.timestamp ); } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"bytes32","name":"threadId","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"string","name":"imgUrl","type":"string"},{"indexed":false,"internalType":"string","name":"content","type":"string"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Comment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum HashChan.Board","name":"board","type":"uint8"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"string","name":"imgUrl","type":"string"},{"indexed":false,"internalType":"string","name":"title","type":"string"},{"indexed":false,"internalType":"string","name":"content","type":"string"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Thread","type":"event"},{"inputs":[{"internalType":"bytes32","name":"threadId","type":"bytes32"},{"internalType":"string","name":"imgUrl","type":"string"},{"internalType":"string","name":"content","type":"string"}],"name":"createComment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum HashChan.Board","name":"board","type":"uint8"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"url","type":"string"},{"internalType":"string","name":"content","type":"string"}],"name":"createThread","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052348015600f57600080fd5b5061074e8061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063204801111461003b578063cf14990f14610057575b600080fd5b6100556004803603810190610050919061031b565b610073565b005b610071600480360381019061006c919061040c565b610113565b005b60008484334260405160200161008c94939291906105e7565b604051602081830303815290604052805190602001209050803373ffffffffffffffffffffffffffffffffffffffff168660048111156100cf576100ce610497565b5b7f35c1001a21fe46194136a3e34c2a91d47d6a82c435714ad49b1671008c73a11d868887426040516101049493929190610633565b60405180910390a45050505050565b600033428560405160200161012a9392919061069c565b60405160208183030381529060405280519060200120905080843373ffffffffffffffffffffffffffffffffffffffff167fa5f4a81bfc6a98da002977340b814727dd4cdac658c732a0dce12240bf0ffe8b86864260405161018e939291906106d3565b60405180910390a450505050565b6000604051905090565b600080fd5b600080fd5b600581106101bd57600080fd5b50565b6000813590506101cf816101b0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610228826101df565b810181811067ffffffffffffffff82111715610247576102466101f0565b5b80604052505050565b600061025a61019c565b9050610266828261021f565b919050565b600067ffffffffffffffff821115610286576102856101f0565b5b61028f826101df565b9050602081019050919050565b82818337600083830152505050565b60006102be6102b98461026b565b610250565b9050828152602081018484840111156102da576102d96101da565b5b6102e584828561029c565b509392505050565b600082601f830112610302576103016101d5565b5b81356103128482602086016102ab565b91505092915050565b60008060008060808587031215610335576103346101a6565b5b6000610343878288016101c0565b945050602085013567ffffffffffffffff811115610364576103636101ab565b5b610370878288016102ed565b935050604085013567ffffffffffffffff811115610391576103906101ab565b5b61039d878288016102ed565b925050606085013567ffffffffffffffff8111156103be576103bd6101ab565b5b6103ca878288016102ed565b91505092959194509250565b6000819050919050565b6103e9816103d6565b81146103f457600080fd5b50565b600081359050610406816103e0565b92915050565b600080600060608486031215610425576104246101a6565b5b6000610433868287016103f7565b935050602084013567ffffffffffffffff811115610454576104536101ab565b5b610460868287016102ed565b925050604084013567ffffffffffffffff811115610481576104806101ab565b5b61048d868287016102ed565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581106104d7576104d6610497565b5b50565b60008190506104e8826104c6565b919050565b60006104f8826104da565b9050919050565b610508816104ed565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561054857808201518184015260208101905061052d565b60008484015250505050565b600061055f8261050e565b6105698185610519565b935061057981856020860161052a565b610582816101df565b840191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105b88261058d565b9050919050565b6105c8816105ad565b82525050565b6000819050919050565b6105e1816105ce565b82525050565b60006080820190506105fc60008301876104ff565b818103602083015261060e8186610554565b905061061d60408301856105bf565b61062a60608301846105d8565b95945050505050565b6000608082019050818103600083015261064d8187610554565b905081810360208301526106618186610554565b905081810360408301526106758185610554565b905061068460608301846105d8565b95945050505050565b610696816103d6565b82525050565b60006060820190506106b160008301866105bf565b6106be60208301856105d8565b6106cb604083018461068d565b949350505050565b600060608201905081810360008301526106ed8186610554565b905081810360208301526107018185610554565b905061071060408301846105d8565b94935050505056fea2646970667358221220e9810a6c50220d387ad13a629cdeeaf63ae8ade3f73a8baee2c4e216bc7df59364736f6c634300081a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063204801111461003b578063cf14990f14610057575b600080fd5b6100556004803603810190610050919061031b565b610073565b005b610071600480360381019061006c919061040c565b610113565b005b60008484334260405160200161008c94939291906105e7565b604051602081830303815290604052805190602001209050803373ffffffffffffffffffffffffffffffffffffffff168660048111156100cf576100ce610497565b5b7f35c1001a21fe46194136a3e34c2a91d47d6a82c435714ad49b1671008c73a11d868887426040516101049493929190610633565b60405180910390a45050505050565b600033428560405160200161012a9392919061069c565b60405160208183030381529060405280519060200120905080843373ffffffffffffffffffffffffffffffffffffffff167fa5f4a81bfc6a98da002977340b814727dd4cdac658c732a0dce12240bf0ffe8b86864260405161018e939291906106d3565b60405180910390a450505050565b6000604051905090565b600080fd5b600080fd5b600581106101bd57600080fd5b50565b6000813590506101cf816101b0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610228826101df565b810181811067ffffffffffffffff82111715610247576102466101f0565b5b80604052505050565b600061025a61019c565b9050610266828261021f565b919050565b600067ffffffffffffffff821115610286576102856101f0565b5b61028f826101df565b9050602081019050919050565b82818337600083830152505050565b60006102be6102b98461026b565b610250565b9050828152602081018484840111156102da576102d96101da565b5b6102e584828561029c565b509392505050565b600082601f830112610302576103016101d5565b5b81356103128482602086016102ab565b91505092915050565b60008060008060808587031215610335576103346101a6565b5b6000610343878288016101c0565b945050602085013567ffffffffffffffff811115610364576103636101ab565b5b610370878288016102ed565b935050604085013567ffffffffffffffff811115610391576103906101ab565b5b61039d878288016102ed565b925050606085013567ffffffffffffffff8111156103be576103bd6101ab565b5b6103ca878288016102ed565b91505092959194509250565b6000819050919050565b6103e9816103d6565b81146103f457600080fd5b50565b600081359050610406816103e0565b92915050565b600080600060608486031215610425576104246101a6565b5b6000610433868287016103f7565b935050602084013567ffffffffffffffff811115610454576104536101ab565b5b610460868287016102ed565b925050604084013567ffffffffffffffff811115610481576104806101ab565b5b61048d868287016102ed565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581106104d7576104d6610497565b5b50565b60008190506104e8826104c6565b919050565b60006104f8826104da565b9050919050565b610508816104ed565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561054857808201518184015260208101905061052d565b60008484015250505050565b600061055f8261050e565b6105698185610519565b935061057981856020860161052a565b610582816101df565b840191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105b88261058d565b9050919050565b6105c8816105ad565b82525050565b6000819050919050565b6105e1816105ce565b82525050565b60006080820190506105fc60008301876104ff565b818103602083015261060e8186610554565b905061061d60408301856105bf565b61062a60608301846105d8565b95945050505050565b6000608082019050818103600083015261064d8187610554565b905081810360208301526106618186610554565b905081810360408301526106758185610554565b905061068460608301846105d8565b95945050505050565b610696816103d6565b82525050565b60006060820190506106b160008301866105bf565b6106be60208301856105d8565b6106cb604083018461068d565b949350505050565b600060608201905081810360008301526106ed8186610554565b905081810360208301526107018185610554565b905061071060408301846105d8565b94935050505056fea2646970667358221220e9810a6c50220d387ad13a629cdeeaf63ae8ade3f73a8baee2c4e216bc7df59364736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 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.