Contract 0xb92d13833f9044eb0c14893a4bb4cb009c209beb

 

Contract Overview

Balance:
0.056 Ether

EtherValue:
$8.25 (@ $147.33/ETH)

Token:
TxHash Block Age From To Value [TxFee]
0xa221acdc4f085076be446dee16c2dc5f639e201dea725ba5b0bdd090babb2b1a5719391261 days 16 hrs ago0x2c344212f62ae8b5cf33437c45865eaaf3ed3ae3  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.000268572
0xd3f94e2fa03cd181db2f35f8ff5f32a0fa45ac707929627dbbe24c71d09ce5884929402396 days 14 hrs ago0x85e6ca85e181ebd2e4b0203c50f77f140bda97ef  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.000118812
0xed4db891ebec2135054584851d48c79d5d78cae8e607b758075409b45164570c4929072396 days 16 hrs ago0x85e6ca85e181ebd2e4b0203c50f77f140bda97ef  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.000119048
0xd98a9b2885f9b3a73a41e93ef17401c67497b98c8e415cf8deaa114dde32134a4924528397 days 11 hrs ago0xa8abbca418763f2bc0272c7a7265a82f18993723  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.002279853
0x9c974d09e6e7d62b72b9fdadc1079831035c7ec9fd1c9e6c9849590664b0b1974924524397 days 11 hrs ago0xa8abbca418763f2bc0272c7a7265a82f18993723  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.002279853
0x47189b3f85952c908905d37eabcfe484653a5d756bc977bfc2ef51166ea3dc524922804397 days 19 hrs ago0x78cc0d7dc87578c9b0393a950fe7a4f413133e57  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.0026732394
0xe4c3fcb421cdc8321b6b62f286e90e6d5c2a054d6ffe02eef6bd4b6748b878f04916094399 days 27 mins ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00179048
0x01b50363e40918af7efbb126dfececadff8026f8b143a196ef9dd0279433844c4911111399 days 22 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.0015415857
0xfbb03763b788fc0f10de7739af701fe4bfc7a8a9dea981cd759c6ccad84b92464911102399 days 22 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.0015415857
0xe211953069feb5696053a0f11b41d37ce9d027ba978c024f07afffe3d4455f5a4911101399 days 22 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.0015415857
0x3841bc28a788115f9e6e7a087307c4154fe1cbc8cf6acf5ffdadfde625f96d244911098399 days 22 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.0015415857
0x99ef1f43fff41be33a0da54c6fa816a446845b3a606db35eccf9f3f0b5f37ffd4911084399 days 22 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.0014881
0x615c5f545cfef49f622780d9ba794c41ffe11cecf83048279c901f65adfad68c4910437400 days 1 hr ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00074405
0x056ddca5b66c2f48915f10463ec1e2c18bd525b4cc33cb8129326a715a25f1e04910435400 days 1 hr ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.000742575
0x1df255c185b01fc728cbe8a57b1c8edd9e2f7cb5f0e4ee039db1ae65955121984910410400 days 1 hr ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00074405
0x536c83039e7843d78e0dc8902579ad692baf862fb530f95ac233cab1b49f2f9a4909862400 days 3 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059406
0xfe1c309f54a8b39b89c5500a81d313fb9440471ddc0a6b9f0318a1d644b1dbf84909846400 days 3 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059524
0x99ae0b6b56471c9a15db13bcbd48fa41a6ffefbb36fbe3bc8b7e7ccab29c63474908458400 days 9 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.000742575
0xd4d0135e3860ae8cc9ab7cde10a1b80d81afccb2316bc5fbb3ffccb8eaea9dbf4908359400 days 10 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059406
0xe31af19e1a7284e9982ed3f972d8165049b21b89765131dac54d9745f8c37e0c4908336400 days 10 hrs ago0xea248317f5954d5a8f5089309e6ccb8809158d74  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059524
0x435521c7c7b7d79bdf563e612022e5f3e8c07d9d79a6e2d4388582a680e61ae34908324400 days 10 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059524
0xaa00e78628059666c2148a74b28d1293ccef0870498df6ad97e94ccad4c108d74908310400 days 10 hrs ago0x332049ff41a5d727d61b28d3b2949761ab3afd65  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059406
0x8ad945dada7e90d884f40240e913194807e852439e621382329326e43e1bd4264908258400 days 10 hrs ago0xea248317f5954d5a8f5089309e6ccb8809158d74  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059406
0x8f113da7bb94d25e4a8ba425ff3d106736fa46f7e83393dd3e8647f9a71c87a54908217400 days 10 hrs ago0xea248317f5954d5a8f5089309e6ccb8809158d74  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00148515
0xe92e18ce1a4f78f5ca71852772c67060962ab679f39de0aa2f7cc94f7e1bca024908211400 days 10 hrs ago0xea248317f5954d5a8f5089309e6ccb8809158d74  IN   0xb92d13833f9044eb0c14893a4bb4cb009c209beb0.001 Ether0.00059406
[ Download CSV Export 

Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: PixelStorageWithFee
Compiler Version: v0.4.19+commit.c4cbbb05
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.18;

contract PixelStorageWithFee {
    event PixelUpdate(uint32 indexed index, uint8 color);
    byte[500000] public packedBytes;
    uint256 feeWei;
    address masterAddress;

    function PixelStorageWithFee(uint256 startingFeeWei) public {
        masterAddress = msg.sender;
        feeWei = startingFeeWei;
    }

    // Pixels are represented using 4-bits.  We pack 2 pixels into one byte like so:
    // [left_pixel|right_pixel]
    // To set these bytes, we use bitwise operations to change either the upper or
    // lower half of a packed byte.
    // [index] is the index of the pixel; not the byte
    // [color] is a 4-bit integer; the upper 4 bits of the uint8 are discarded.

    function set(uint32 index, uint8 color) public payable {
        require(index < 1000000);
        require(msg.value >= feeWei);

        uint32 packedByteIndex = index / 2;
        byte currentByte = packedBytes[packedByteIndex];
        bool left = index % 2 == 0;

        byte newByte;
        if (left) {
            // clear upper 4 bits of existing byte
            // OR with new byte shifted left 4 bits
            newByte = (currentByte & hex'0f') | bytes1(color * 2 ** 4);
        } else {
            // clear lower 4 bits of existing byte
            // OR with with new color, with upper 4 bits cleared
            newByte = (currentByte & hex'f0') | (bytes1(color) & hex'0f');
        }

        packedBytes[packedByteIndex] = newByte;
        PixelUpdate(index, color);
    }

    function getAll() public constant returns (byte[500000]) {
        return packedBytes;
    }

    modifier masterOnly() {
        require(msg.sender == masterAddress);
        _;
    }

    function setFee(uint256 fee) public masterOnly {
        feeWei = fee;
    }

    function withdraw() public masterOnly {
        masterAddress.transfer(this.balance);
    }

    function() public payable { }
}

Contract ABI
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"packedBytes","outputs":[{"name":"","type":"bytes1"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getAll","outputs":[{"name":"","type":"bytes1[500000]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"fee","type":"uint256"}],"name":"setFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"index","type":"uint32"},{"name":"color","type":"uint8"}],"name":"set","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[{"name":"startingFeeWei","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"index","type":"uint32"},{"indexed":false,"name":"color","type":"uint8"}],"name":"PixelUpdate","type":"event"}]

Contract Creation Code
6060604052341561000f57600080fd5b6040516020806104e683398101604052808051613d0a8054600160a060020a03191633600160a060020a0316179055613d0955506104929050806100546000396000f30060606040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632ffbf988811461006e5780633ccfd60b146100b957806353ed5143146100cc57806369fe0e2d14610119578063817edbd21461012f575b005b341561007957600080fd5b610084600435610146565b6040517fff00000000000000000000000000000000000000000000000000000000000000909116815260200160405180910390f35b34156100c457600080fd5b61006c610172565b34156100d757600080fd5b6100df6101e4565b604051808262f4240080838360005b838110156101065780820151838201526020016100ee565b5050505090500191505060405180910390f35b341561012457600080fd5b61006c60043561026e565b61006c63ffffffff6004351660ff6024351661029d565b6000816207a120811061015557fe5b60209182820401919006915054906101000a900460f860020a0281565b613d0a543373ffffffffffffffffffffffffffffffffffffffff90811691161461019b57600080fd5b613d0a5473ffffffffffffffffffffffffffffffffffffffff9081169030163180156108fc0290604051600060405180830381858888f1935050505015156101e257600080fd5b565b6101ec61043a565b60006207a12062f42400604051908101604052919062f424008301826000855b82829054906101000a900460f860020a027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001906001019060208260000104928301926001038202915080841161020c5790505050505050905090565b613d0a543373ffffffffffffffffffffffffffffffffffffffff90811691161461029757600080fd5b613d0955565b6000808080620f424063ffffffff8716106102b757600080fd5b613d09543410156102c757600080fd5b600263ffffffff8716049350600063ffffffff85166207a12081106102e857fe5b60208082049092015460f860020a929091066101000a9004029250600263ffffffff87160663ffffffff166000149150811561036b57507f0f0000000000000000000000000000000000000000000000000000000000000082167f10000000000000000000000000000000000000000000000000000000000000008502176103ba565b507ff00000000000000000000000000000000000000000000000000000000000000082167f0f0000000000000000000000000000000000000000000000000000000000000060f860020a860216175b80600063ffffffff86166207a12081106103d057fe5b602091828204019190066101000a81548160ff021916908360f860020a900402179055508563ffffffff167f73535aa72b1e980c735a43fd0dc4ee91843f7fab799c4e4d44fdd1bd48c1d2e08660405160ff909116815260200160405180910390a2505050505050565b62f424006040519081016040526207a120815b60008152600019909101906020018161044d57905050905600a165627a7a723058209484563216e9d2418ad53bc1a308769d56fa9587f8d577dd05a4bb1242c57532002900000000000000000000000000000000000000000000000000038d7ea4c68000


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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000038d7ea4c68000


   Swarm Source:
bzzr://9484563216e9d2418ad53bc1a308769d56fa9587f8d577dd05a4bb1242c57532
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.