false
false

Contract Address Details

0xe9996E799A65D470eA34F21c0B96F685fb7a92D8

Contract Name
BoxV2
Creator
0x1c0e98–e64b90 at 0xec7eda–191438
Balance
0 KCS ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
35905399
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
BoxV2




Optimization enabled
true
Compiler version
v0.8.3+commit.8d00100c




Optimization runs
200
EVM Version
default




Verified at
2022-07-21T09:40:36.979328Z

Contract source code

// contracts/BoxV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;

contract BoxV2 {
    uint256 private value;

    // Emitted when the stored value changes
    event ValueChanged(uint256 newValue);

    // Stores a new value in the contract
    function store(uint256 newValue) public {
        value = newValue;
        emit ValueChanged(newValue);
    }

    // Reads the last stored value
    function retrieve() public view returns (uint256) {
        return value;
    }

    // Increments the stored value by 1
    function increment() public {
        value = value + 1;
        emit ValueChanged(value);
    }
}
        

Contract ABI

[{"type":"event","name":"ValueChanged","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"increment","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"retrieve","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"store","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5061016d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632e64cec1146100465780636057361d1461005b578063d09de08a14610070575b600080fd5b60005460405190815260200160405180910390f35b61006e6100693660046100fb565b610078565b005b61006e6100b3565b60008190556040518181527f93fe6d397c74fdf1402a8b72e47b68512f0510d7b98a4bc4cbdf6ac7108b3c599060200160405180910390a150565b6000546100c1906001610113565b60008190556040519081527f93fe6d397c74fdf1402a8b72e47b68512f0510d7b98a4bc4cbdf6ac7108b3c599060200160405180910390a1565b60006020828403121561010c578081fd5b5035919050565b6000821982111561013257634e487b7160e01b81526011600452602481fd5b50019056fea26469706673582212202eb6b654ef9e5803bafad9c886304524b803ab42aece606cf619525b13e0a81c64736f6c63430008030033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632e64cec1146100465780636057361d1461005b578063d09de08a14610070575b600080fd5b60005460405190815260200160405180910390f35b61006e6100693660046100fb565b610078565b005b61006e6100b3565b60008190556040518181527f93fe6d397c74fdf1402a8b72e47b68512f0510d7b98a4bc4cbdf6ac7108b3c599060200160405180910390a150565b6000546100c1906001610113565b60008190556040519081527f93fe6d397c74fdf1402a8b72e47b68512f0510d7b98a4bc4cbdf6ac7108b3c599060200160405180910390a1565b60006020828403121561010c578081fd5b5035919050565b6000821982111561013257634e487b7160e01b81526011600452602481fd5b50019056fea26469706673582212202eb6b654ef9e5803bafad9c886304524b803ab42aece606cf619525b13e0a81c64736f6c63430008030033