Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5390303 | 15 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
CounterStorage
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; contract CounterStorage { error CounterStorage__NotValidCaller(); mapping(address => uint256) private counterStorage; event CounterStorage__CounterIncremented(address caller); function incrementCounter() external { counterStorage[msg.sender] ++; emit CounterStorage__CounterIncremented(msg.sender); } function getCounterValue(address _counterOwner) external view returns(uint256) { return counterStorage[_counterOwner]; } }
{ "viaIR": false, "codegen": "yul", "remappings": [ "forge-std/=lib/forge-std/src/" ], "evmVersion": "cancun", "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "optimizer": { "enabled": true, "mode": "3", "fallback_to_optimizing_for_size": false, "disable_system_request_memoization": true }, "metadata": {}, "libraries": {}, "enableEraVMExtensions": false, "forceEVMLA": false }
[{"inputs":[],"name":"CounterStorage__NotValidCaller","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"CounterStorage__CounterIncremented","type":"event"},{"inputs":[{"internalType":"address","name":"_counterOwner","type":"address"}],"name":"getCounterValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementCounter","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100002765c5edf94ab5b1c6e86305508559b3040f7e41cdc4a5ffb27fdf2f8b00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0000008003000039000000400030043f0000000100200190000000280000c13d00000060021002700000001b02200197000000040020008c000000390000413d000000000301043b000000e0033002700000001d0030009c000000300000613d0000001e0030009c000000390000c13d0000000001000416000000000001004b000000390000c13d0000000001000411000000000010043f000000200000043f00000000010004140000001b0010009c0000001b01008041000000c00110021000000021011001c70000801002000039006800630000040f0000000100200190000000390000613d0000000003000411000000000101043b000000000201041a000000010220003a000000420000c13d0000002401000041000000000010043f0000001101000039000000040010043f00000025010000410000006a000104300000000001000416000000000001004b000000390000c13d0000002001000039000001000010044300000120000004430000001c01000041000000690001042e000000240020008c000000390000413d0000000002000416000000000002004b000000390000c13d0000000401100370000000000101043b0000001f0010009c0000003b0000a13d00000000010000190000006a00010430000000000010043f000000200000043f006800510000040f000000000101041a000000800010043f0000002001000041000000690001042e000000000021041b000000800030043f00000000010004140000001b0010009c0000001b01008041000000c00110021000000022011001c70000800d02000039000000010300003900000023040000410068005e0000040f0000000100200190000000390000613d0000000001000019000000690001042e00000000010004140000001b0010009c0000001b01008041000000c00110021000000021011001c70000801002000039006800630000040f00000001002001900000005c0000613d000000000101043b000000000001042d00000000010000190000006a0001043000000061002104210000000102000039000000000001042d0000000002000019000000000001042d00000066002104230000000102000039000000000001042d0000000002000019000000000001042d0000006800000432000000690001042e0000006a00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000643839bd000000000000000000000000000000000000000000000000000000005b34b966000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000002000000080000000000000000002000000000000000000000000000000000000400000000000000000000000000200000000000000000000000000000000000020000000800000000000000000cc93e32adcaef76549217bbabcc252523295866a03204d79659946bdbfed7c404e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000011ef0d6da0c6cd952e96b45f20cb1c9ee931e99454311efbce0864f42a6e6e89
Loading...
Loading
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.