Sponsored Link:   Synthestech ICO - Unique project: disruptive technology of platinum synthesis. 35% Bonus! Join ICO
  Latest 25 txns from a total Of 3232 transactions View All

TxHash Age From To Value [TxFee]
0x0f22def7ef469bc3533c61d46127eb9530a052c5f6a3ba9ae312a656f832a9c71 day 1 hr ago0x1f5ba2bae997657fe1aec82930b8d7981d454cdd  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000020493
0x3b3d5c6fb7555b23be9dcb80cc26305d2e7b02d32ae1ea45c3430a66e9d708023 days 17 hrs ago0x1f5ba2bae997657fe1aec82930b8d7981d454cdd  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.01 Ether0.000109248
0xa61ad4d9e786509444821fbd9ccd059080b85e0e5f17b8563e5959e50f33d9143 days 17 hrs ago0x1f5ba2bae997657fe1aec82930b8d7981d454cdd  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00016414
0x4e0ce1e01fbfda3a232cdcc621356fd3408c834973b781c18770481ca817980c3 days 17 hrs ago0x1f5ba2bae997657fe1aec82930b8d7981d454cdd  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00022414
0x8b21baef738dc476267652ec35de13cbd3f1cbd9538bd4b0ba288f5bd2b0d8124 days 5 hrs ago0x96f0432be8d45b552b09f5a6389459944ba62dc7  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0000922015
0x618ce64d84394a0fe2352ca30790e63dfb503e11e26370ff9322045e2a1731fb6 days 11 hrs ago0x5372260584003e8ae3a24e9df09fa96037a04c2b  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000020493
0x68a77374f6280cb9cfdcaf0c581649d5b5c2f1b040d2c991eea19527c81a2be67 days 9 hrs ago0x8af0f893cdda9af1a11ebb180ed4951abfa3ad1a  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00011207
0xb84905108bf386edfe4cf1e984bd48b43ff427626d1c74ca9679ba997728e0c17 days 21 hrs ago0x94f8b95796f5de8be150402b5b6bb7e8fe905f36  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00008207
0xdcf3cd4ca8592a73d3dba17e9b02f580f424bbf240d9c81462cfdabe22f8d5307 days 21 hrs ago0x94f8b95796f5de8be150402b5b6bb7e8fe905f36  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.000112495
0x2faa4301d9b1d69985389a0e3e8e24a05111b16e1cd8ef3f123cd5f0fa84d75617 days 4 hrs ago0xd7abd9d82fa7b9d25ae2f0bad3a2c9809dc9c422  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000020493
0x126dd0422ff01623de6918ac1b39054fc199a0a03fba12c31350ef43c997230024 days 11 hrs ago0x9544a1ac0193649305a61ac21987f1025f908f39  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.01 Ether0.000308396
0x62aaea967b15308a0049bcd074cc7d5687b26e1228585942be2e2c07fe4dba3228 days 9 hrs ago0xb50cdea200bb55b7d4bcfd3d280a12b37da44ce2  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00022414
0x4560c70fccef9fe12cba087d91401b4af8be1b2be517f928accdb045a3879ef028 days 11 hrs ago0xa6976261a916a7faf30ed52125337308f251ab4c  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.000082495
0xd8f0cbc7c2e770a111a909cdf332ed3ed36b8d8ad9a97f5e4bac6482640c5b9029 days 9 hrs ago0xa25f05e1ac13dfc31b0ba86b14b0f5bc349002a0  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00016414
0x459981152be9f745e3198dce575e890b818de20ca292d760249b13d41ee8fc3829 days 9 hrs ago0xa25f05e1ac13dfc31b0ba86b14b0f5bc349002a0  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00022499
0xcadfd4d43d9f56469caa44d83a847618fc06a204a40616614d82430ae352f61b30 days 1 hr ago0x729a0904046ce0ce4fc20d4486fe11e780b3e4a5  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.01 Ether0.000109248
0xa0174135057f4414e204fa281181077368286fdea28a36a8e2820e8bef7b6cfa30 days 1 hr ago0x729a0904046ce0ce4fc20d4486fe11e780b3e4a5  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.000082495
0xc6c373a2cbacdc38cd050971e292fd23f3d692239b37f20c87ac337279f47d9430 days 1 hr ago0x729a0904046ce0ce4fc20d4486fe11e780b3e4a5  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.000112495
0xf7e121eccde5c3200040e54e9ef982edbabcaad1c7f2b0c8549a3bc4fdbc088f31 days 10 hrs ago0x5372260584003e8ae3a24e9df09fa96037a04c2b  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000070986
0xc6253575fd684c24af704eadd74a57cf62c15f71423b887eff160c22cf1463b232 days 18 hrs ago0xa6976261a916a7faf30ed52125337308f251ab4c  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000061479
0x2e10a887a8a92d4abe1efe08ccb8cb605a8177d391e39261ad1cc895467c227434 days 5 hrs ago0xaa97fca4429b6872572f08a1fa0f4129808a4e5d  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000041114
0x33a4a2e3c6196c21b7da59e919b54c724536e37b5d5b86de721299157d37c10e35 days 5 hrs ago0xd7abd9d82fa7b9d25ae2f0bad3a2c9809dc9c422  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.00023491
0xc2d41b0a845509607922853ab778a5344304b04b5df5923fffdab23e5bef58fd35 days 5 hrs ago0xd7abd9d82fa7b9d25ae2f0bad3a2c9809dc9c422  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000097445
0x3a408606ae2fa57f10a643ddbd1604f404b27ac324712ff3533156795dc4587d35 days 10 hrs ago0xa6976261a916a7faf30ed52125337308f251ab4c  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000282744
0xadeb84bf939b6aa8e82f2d6f8d3644901f823a7a0bc1b29db5d110584c32031835 days 10 hrs ago0xa6976261a916a7faf30ed52125337308f251ab4c  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.00032998
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 25 Internal Txns, Click here to View More View All
ParentTxHash Block Age From To Value
0x0f22def7ef469bc3533c61d46127eb9530a052c5f6a3ba9ae312a656f832a9c754656621 day 1 hr ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x1f5ba2bae997657fe1aec82930b8d7981d454cdd0.00995 Ether
0x618ce64d84394a0fe2352ca30790e63dfb503e11e26370ff9322045e2a1731fb54337366 days 11 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x5372260584003e8ae3a24e9df09fa96037a04c2b0.0076834101 Ether
0x2faa4301d9b1d69985389a0e3e8e24a05111b16e1cd8ef3f123cd5f0fa84d756536955517 days 4 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xd7abd9d82fa7b9d25ae2f0bad3a2c9809dc9c4220.00495 Ether
0xf7e121eccde5c3200040e54e9ef982edbabcaad1c7f2b0c8549a3bc4fdbc088f528410831 days 10 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x5372260584003e8ae3a24e9df09fa96037a04c2b0.0022665899 Ether
0xc6253575fd684c24af704eadd74a57cf62c15f71423b887eff160c22cf1463b2527634132 days 18 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xa6976261a916a7faf30ed52125337308f251ab4c0.019825 Ether
0x2e10a887a8a92d4abe1efe08ccb8cb605a8177d391e39261ad1cc895467c2274526755734 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xaa97fca4429b6872572f08a1fa0f4129808a4e5d0.15415 Ether
0x4b13adf3e1ce18b74a20636da80b25162ffad37f51d5297613df5644831ce5c0525974535 days 13 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x3bb7133cf10fa8e88688d3d61e6b95f3fc210e300.00995 Ether
0x56de4ff4fdfef2c65bee52c68562cc5b646c06f8ac8d7e741192d6c36f8f16c4525408436 days 12 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xa6976261a916a7faf30ed52125337308f251ab4c0.02985 Ether
0xc7ab2dc2c8f979bce79edac35c0e48c755175a4ddd219ca4614bcd7922ff8a56525094037 days 1 hr ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xefe5e92604b5208992c2a36ca62f596ba20f1abe0.0199 Ether
0x356fb605d5b8df9f9c85d598e2afe742bfbdb19206954db09e773e8c19de4a3a523183940 days 7 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x522273122b20212fe255875a4737b6f50cc720060.00995 Ether
0x4f1f1afcb5045fc3016ba2a4d47c2375bbd0c385f051e27b9918c43e1139b057522056742 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x4d9a2307733aa5be00a1ac3b133151351b73d6a10.1592 Ether
0x02954598a0d34e83c90db4143eb3392c224d8f1acd66f7773cda3b1a26fac537521943442 days 10 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xb98d80f60bf961c3cd27df786505ea1a011a4dd00.02485 Ether
0x8475583fe25b77da919b5a6add99d4de61c548b8548131a5edf2e126e3082463521386843 days 8 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xf2ed7f288726a781dee549876ab9c974fd7d89bf0.0199 Ether
0x6e99efacdc93b745b63aa8b8a3b7241dbf18a1602b1b75816c981ac32dd26238520339445 days 3 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x4d9a2307733aa5be00a1ac3b133151351b73d6a10.1592 Ether
0xbaf062b5f2e90f206d537664c17c55df3313b8487a2a201c71c04821801e7033520322645 days 4 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x4d9a2307733aa5be00a1ac3b133151351b73d6a10.028 Ether
0x1d38ef2322c82d9286d7df4e305b203592cef6e3b34b52a243af2fa4dddac78a517959849 days 4 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x4f52735e6bbdf7985017d16ca328dbe71c02d0c60.0199 Ether
0xeb357c4587de2bb06904e72250383784b204f4dcac4df9aa84755e36e8a0601d516483351 days 16 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x25307123102d82ae2b147bda505970297e1104d10.0398 Ether
0xcef9215e154d11c84a123588170eedf35d4f8b7760b7cfa9f98628108915a50d515393553 days 13 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xc233ecba15742eaf2ea962c5531077914fd1d4f60.0796 Ether
0x20bc4b23a34c0803b7ab9e7df878175f3ce008fe879e64245b9d7f82a50d4032513889756 days 2 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x1ff612f74a7b7149fd5731c919398f0d181b9e4f0.004975 Ether
0xc1a381403c5348aa49e92f0cbe3cd1e0ae3e54b49ac96f9f78e0c65c14b4bd79512636258 days 6 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x9c54d6c9662020692d862356639e971ee8e316010.14925 Ether
0xa88b12721366f1c0a4b6b2cebe67cdcb56aaab6ac8b37643c2c219d6f45c410e512608258 days 7 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x7ba09a0449102f7f2e6398132fde0ce35d1bc9850.02985 Ether
0xf0256c32be27cbce62b3d50efb2271bc1e021df9f41e400a3c67ee91eb1ece08512001759 days 8 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6c5f03ff766370db99c1cb65f04a2713f65e4f2a0.00995 Ether
0x1cc8f7fc96a64f76b7bf479af9dcfe74c9d568fb35cd42aa192a7ba4f96dc103509261163 days 22 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xd7abd9d82fa7b9d25ae2f0bad3a2c9809dc9c4220.04975 Ether
0x8afa5db08dec8e175792f3112a39bedbc2e673aa09d0fe736abe785cf7f2dd0f508387865 days 9 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x4da2e85d64bece663ccab06e89b970b6b077f22f0.0398 Ether
0xb513d17d354c7c3132264cf87646922e0cc84b5280d03ce3454fb8337ec986e5507971266 days 2 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x79e5dda6466be0637567b3aeed4aae7d445a1c450.0199 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: PyramidGame
Compiler Version: v0.4.17+commit.bdeb9e52
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.17;

contract PyramidGame
{
    /////////////////////////////////////////////
    // Game parameters
    uint256 private constant BOTTOM_LAYER_BET_AMOUNT = 0.005 ether;
    uint256 private adminFeeDivisor; // e.g. 100 means a 1% fee, 200 means a 0.5% fee
    
    /////////////////////////////////////////////
    // Game owner
    address private administrator;
    
    /////////////////////////////////////////////
    // Pyramid grid data
    //
    // The uint32 is the coordinates.
    // It consists of two uint16's:
    // The x is the most significant 2 bytes (16 bits)
    // The y is the least significant 2 bytes (16 bits)
    // x = coordinates >> 16
    // y = coordinates & 0xFFFF
    // coordinates = (x << 16) | y
    // x is a 16-bit unsigned integer
    // y is a 16-bit unsigned integer
    mapping(uint32 => address) public coordinatesToAddresses;
    uint32[] public allBlockCoordinates;
    
    // In the user interface, the rows of blocks will be
    // progressively shifted more to the right, as y increases
    // 
    // For example, these blocks in the contract's coordinate system:
    //         ______
    //      2 |__A__|______
    // /|\  1 |__B__|__D__|______
    //  |   0 |__C__|__E__|__F__|
    //  y        0     1     2
    // 
    //        x -->
    // 
    // 
    // Become these blocks in the user interface:
    //    __        ______
    //    /|     __|__A__|___
    //   /    __|__B__|__D__|___
    //  y    |__C__|__E__|__F__|
    // 
    //   x -->
    // 
    // 
    
    /////////////////////////////////////////////
    // Address properties
    mapping(address => uint256) public addressesToTotalWeiPlaced;
    mapping(address => uint256) public addressBalances;
    
    ////////////////////////////////////////////
    // Game Constructor
    function PyramidGame() public
    {
        administrator = msg.sender;
        adminFeeDivisor = 200; // Default fee is 0.5%
        
        // The administrator gets a few free chat messages :-)
        addressesToChatMessagesLeft[administrator] += 5;
        
        // Set the first block in the middle of the bottom row
        coordinatesToAddresses[uint32(1 << 15) << 16] = msg.sender;
        allBlockCoordinates.push(uint32(1 << 15) << 16);
    }
    
    ////////////////////////////////////////////
    // Pyramid grid reading functions
    function getBetAmountAtLayer(uint16 y) public pure returns (uint256)
    {
        // The minimum bet doubles every time you go up 1 layer
        return BOTTOM_LAYER_BET_AMOUNT * (uint256(1) << y);
    }
    
    function isThereABlockAtCoordinates(uint16 x, uint16 y) public view returns (bool)
    {
        return coordinatesToAddresses[(uint32(x) << 16) | uint16(y)] != 0;
    }
    
    function getTotalAmountOfBlocks() public view returns (uint256)
    {
        return allBlockCoordinates.length;
    }
    
    ////////////////////////////////////////////
    // Pyramid grid writing functions
    function placeBlock(uint16 x, uint16 y) external payable
    {
        // You may only place a block on an empty spot
        require(!isThereABlockAtCoordinates(x, y));
        
        // Add the transaction amount to the person's balance
        addressBalances[msg.sender] += msg.value;
        
        // Calculate the required bet amount at the specified layer
        uint256 betAmount = getBetAmountAtLayer(y);

        // If the block is at the lowest layer...
        if (y == 0)
        {
            // There must be a block to the left or to the right of it
            require(isThereABlockAtCoordinates(x-1, y) ||
                    isThereABlockAtCoordinates(x+1, y));
        }
        
        // If the block is NOT at the lowest layer...
        else
        {
            // There must be two existing blocks below it:
            require(isThereABlockAtCoordinates(x  , y-1) &&
                    isThereABlockAtCoordinates(x+1, y-1));
        }
        
        // Subtract the bet amount from the person's balance
        addressBalances[msg.sender] -= betAmount;
        
        // Place the block
        coordinatesToAddresses[(uint32(x) << 16) | y] = msg.sender;
        allBlockCoordinates.push((uint32(x) << 16) | y);
        
        // If the block is at the lowest layer...
        if (y == 0)
        {
            // The bet goes to the administrator
            addressBalances[administrator] += betAmount;
        }
        
        // If the block is NOT at the lowest layer...
        else
        {
            // Calculate the administrator fee
            uint256 adminFee = betAmount / adminFeeDivisor;
            
            // Calculate the bet amount minus the admin fee
            uint256 betAmountMinusAdminFee = betAmount - adminFee;
            
            // Add the money to the balances of the people below
            addressBalances[coordinatesToAddresses[(uint32(x  ) << 16) | (y-1)]] += betAmountMinusAdminFee / 2;
            addressBalances[coordinatesToAddresses[(uint32(x+1) << 16) | (y-1)]] += betAmountMinusAdminFee / 2;
            
            // Give the admin fee to the admin
            addressBalances[administrator] += adminFee;
        }
        
        // The new sender's balance must not have underflowed
        // (this verifies that the sender has enough balance to place the block)
        require(addressBalances[msg.sender] < (1 << 255));
        
        // Give the sender their chat message rights
        addressesToChatMessagesLeft[msg.sender] += uint32(1) << y;
        
        // Register the sender's total bets placed
        addressesToTotalWeiPlaced[msg.sender] += betAmount;
    }
    
    ////////////////////////////////////////////
    // Withdrawing balance
    function withdrawBalance(uint256 amountToWithdraw) external
    {
        require(amountToWithdraw != 0);
        
        // The user must have enough balance to withdraw
        require(addressBalances[msg.sender] >= amountToWithdraw);
        
        // Subtract the withdrawn amount from the user's balance
        addressBalances[msg.sender] -= amountToWithdraw;
        
        // Transfer the amount to the user's address
        // If the transfer() call fails an exception will be thrown,
        // and therefore the user's balance will be automatically restored
        msg.sender.transfer(amountToWithdraw);
    }
    
    /////////////////////////////////////////////
    // Chatbox data
    struct ChatMessage
    {
        address person;
        string message;
    }
    mapping(bytes32 => address) public usernamesToAddresses;
    mapping(address => bytes32) public addressesToUsernames;
    mapping(address => uint32) public addressesToChatMessagesLeft;
    ChatMessage[] public chatMessages;
    mapping(uint256 => bool) public censoredChatMessages;
    
    /////////////////////////////////////////////
    // Chatbox functions
    function registerUsername(bytes32 username) external
    {
        // The username must not already be token
        require(usernamesToAddresses[username] == 0);
        
        // The address must not already have a username
        require(addressesToUsernames[msg.sender] == 0);
        
        // Register the new username & address combination
        usernamesToAddresses[username] = msg.sender;
        addressesToUsernames[msg.sender] = username;
    }
    
    function sendChatMessage(string message) external
    {
        // The sender must have at least 1 chat message allowance
        require(addressesToChatMessagesLeft[msg.sender] >= 1);
        
        // Deduct 1 chat message allowence from the sender
        addressesToChatMessagesLeft[msg.sender]--;
        
        // Add the chat message
        chatMessages.push(ChatMessage(msg.sender, message));
    }
    
    function getTotalAmountOfChatMessages() public view returns (uint256)
    {
        return chatMessages.length;
    }
    
    function getChatMessageAtIndex(uint256 index) public view returns (address, bytes32, string)
    {
        address person = chatMessages[index].person;
        bytes32 username = addressesToUsernames[person];
        return (person, username, chatMessages[index].message);
    }
    
    // In case of chat messages with extremely rude or inappropriate
    // content, the administrator can censor a chat message.
    function censorChatMessage(uint256 chatMessageIndex) public
    {
        require(msg.sender == administrator);
        censoredChatMessages[chatMessageIndex] = true;
    }
    
    /////////////////////////////////////////////
    // Game ownership functions
    function transferOwnership(address newAdministrator) external
    {
        require(msg.sender == administrator);
        administrator = newAdministrator;
    }
    
    function setFeeDivisor(uint256 newFeeDivisor) external
    {
        require(msg.sender == administrator);
        require(newFeeDivisor >= 20); // The fee may never exceed 5%
        adminFeeDivisor = newFeeDivisor;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"uint32"}],"name":"coordinatesToAddresses","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"y","type":"uint16"}],"name":"getBetAmountAtLayer","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"newFeeDivisor","type":"uint256"}],"name":"setFeeDivisor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressesToTotalWeiPlaced","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"x","type":"uint16"},{"name":"y","type":"uint16"}],"name":"isThereABlockAtCoordinates","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTotalAmountOfBlocks","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"chatMessageIndex","type":"uint256"}],"name":"censorChatMessage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressesToChatMessagesLeft","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"username","type":"bytes32"}],"name":"registerUsername","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"getChatMessageAtIndex","outputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressesToUsernames","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"message","type":"string"}],"name":"sendChatMessage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getTotalAmountOfChatMessages","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"chatMessages","outputs":[{"name":"person","type":"address"},{"name":"message","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amountToWithdraw","type":"uint256"}],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint16"},{"name":"y","type":"uint16"}],"name":"placeBlock","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"allBlockCoordinates","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"censoredChatMessages","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newAdministrator","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"usernamesToAddresses","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b60018054600160a060020a03338116600160a060020a0319928316811780855560c86000908155921682526008602090815260408320805463ffffffff8082166005011663ffffffff19909116179055638000000090925260029091527ffc0c227ddee9ec9d8f21c9d782cd306642b69e1b7fd65ca789f0a3f7ddf58e4c805490921617905560038054909181016100a783826100e3565b50600091825260209091206008808304909101805463ffffffff929093066004026101000a91820219909216638000000090910217905561013d565b815481835581811511610117576007016008900481600701600890048360005260206000209182019101610117919061011c565b505050565b61013a91905b808211156101365760008155600101610122565b5090565b90565b610eb88061014c6000396000f3006060604052361561011a5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166303828729811461011f57806303cbcf5714610157578063043531b114610183578063363626ad1461019b57806341e8b94c146101ba578063455f1725146101ee57806350aeddcf146102015780635bcc10721461021757806366e34dc61461024f57806379fc3682146102655780639148018a1461028457806397a432ff14610329578063a7e33a0c14610348578063c2235e7414610366578063c49d9ff814610379578063da76d5cd14610427578063da918f761461043d578063e9ffd6de14610452578063ec1024d114610468578063f2fde38b1461047e578063faae4c171461049d575b600080fd5b341561012a57600080fd5b61013b63ffffffff600435166104b3565b604051600160a060020a03909116815260200160405180910390f35b341561016257600080fd5b61017161ffff600435166104ce565b60405190815260200160405180910390f35b341561018e57600080fd5b6101996004356104e1565b005b34156101a657600080fd5b610171600160a060020a036004351661050f565b34156101c557600080fd5b6101da61ffff60043581169060243516610521565b604051901515815260200160405180910390f35b34156101f957600080fd5b610171610552565b341561020c57600080fd5b610199600435610559565b341561022257600080fd5b610236600160a060020a036004351661058f565b60405163ffffffff909116815260200160405180910390f35b341561025a57600080fd5b6101996004356105a7565b341561027057600080fd5b610171600160a060020a0360043516610632565b341561028f57600080fd5b61029a600435610644565b604051600160a060020a03841681526020810183905260606040820181815290820183818151815260200191508051906020019080838360005b838110156102ec5780820151838201526020016102d4565b50505050905090810190601f1680156103195780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b341561033457600080fd5b610171600160a060020a0360043516610760565b341561035357600080fd5b6101996004803560248101910135610772565b341561037157600080fd5b610171610894565b341561038457600080fd5b61038f60043561089a565b604051600160a060020a0383168152604060208201818152835460026000196101006001841615020190911604918301829052906060830190849080156104175780601f106103ec57610100808354040283529160200191610417565b820191906000526020600020905b8154815290600101906020018083116103fa57829003601f168201915b5050935050505060405180910390f35b341561043257600080fd5b6101996004356108cb565b61019961ffff60043581169060243516610948565b341561045d57600080fd5b610236600435610c46565b341561047357600080fd5b6101da600435610c7e565b341561048957600080fd5b610199600160a060020a0360043516610c93565b34156104a857600080fd5b61013b600435610cdd565b600260205260009081526040902054600160a060020a031681565b61ffff1660020a6611c37937e080000290565b60015433600160a060020a039081169116146104fc57600080fd5b601481101561050a57600080fd5b600055565b60046020526000908152604090205481565b6201000061ffff9283160291161763ffffffff16600090815260026020526040902054600160a060020a0316151590565b6003545b90565b60015433600160a060020a0390811691161461057457600080fd5b6000908152600a60205260409020805460ff19166001179055565b60086020526000908152604090205463ffffffff1681565b600081815260066020526040902054600160a060020a0316156105c957600080fd5b600160a060020a033316600090815260076020526040902054156105ec57600080fd5b6000818152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a031690811790915583526007909152902055565b60056020526000908152604090205481565b60008061064f610cf8565b60008060098681548110151561066157fe5b60009182526020808320600290920290910154600160a060020a03168083526007909152604090912054600980549294509092508391839190899081106106a457fe5b9060005260206000209060020201600101808054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561074a5780601f1061071f5761010080835404028352916020019161074a565b820191906000526020600020905b81548152906001019060200180831161072d57829003601f168201915b5050505050905094509450945050509193909250565b60076020526000908152604090205481565b600160a060020a033316600090815260086020526040902054600163ffffffff90911610156107a057600080fd5b33600160a060020a03166000908152600860205260409020805463ffffffff19811663ffffffff9182166000190190911617905560098054600181016107e68382610d0a565b91600052602060002090600202016000604080519081016040528033600160a060020a0316815260200186868080601f01602080910402602001604051908101604052818152929190602084018383808284375050509290935250919392508391505051815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039190911617815560208201518160010190805161088c929160200190610d3b565b505050505050565b60095490565b60098054829081106108a857fe5b600091825260209091206002909102018054600160a060020a0316915060010182565b8015156108d757600080fd5b600160a060020a033316600090815260056020526040902054819010156108fd57600080fd5b600160a060020a033316600081815260056020526040908190208054849003905582156108fc0290839051600060405180830381858888f19350505050151561094557600080fd5b50565b60008060006109578585610521565b1561096157600080fd5b600160a060020a0333166000908152600560205260409020805434019055610988846104ce565b925061ffff841615156109c5576109a26001860385610521565b806109b557506109b58560010185610521565b15156109c057600080fd5b6109f4565b6109d28560018603610521565b80156109e957506109e98560010160018603610521565b15156109f457600080fd5b33600160a060020a031660008181526005602090815260408083208054889003905563ffffffff61ffff898116908b1662010000021716835260029091529020805473ffffffffffffffffffffffffffffffffffffffff191690911790556003805460018101610a648382610db9565b91600052602060002090600891828204019190066004028661ffff1660108961ffff1663ffffffff169060020a0217909190916101000a81548163ffffffff021916908363ffffffff160217905550508361ffff1660001415610ae657600154600160a060020a03166000908152600560205260409020805484019055610bad565b60005483811515610af357fe5b0491505080820360028163ffffffff600019870161ffff90811690891662010000021716600090815260026020818152604080842054600160a060020a03168452600590915290912080549390920490920190558163ffffffff600019870161ffff90811660018a81019290921662010000021791909116600090815260026020908152604080832054600160a060020a039081168452600590925280832080549690950490950190935590549091168152208054830190555b600160a060020a0333166000908152600560205260409020547f80000000000000000000000000000000000000000000000000000000000000009010610bf257600080fd5b505033600160a060020a03166000908152600860209081526040808320805463ffffffff19811661ffff9790971660020a63ffffffff91821601169590951790945560049052919091208054909101905550565b6003805482908110610c5457fe5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b600a6020526000908152604090205460ff1681565b60015433600160a060020a03908116911614610cae57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600660205260009081526040902054600160a060020a031681565b60206040519081016040526000815290565b815481835581811511610d3657600202816002028360005260206000209182019101610d369190610ded565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610d7c57805160ff1916838001178555610da9565b82800160010185558215610da9579182015b82811115610da9578251825591602001919060010190610d8e565b50610db5929150610e2e565b5090565b815481835581811511610d36576007016008900481600701600890048360005260206000209182019101610d369190610e2e565b61055691905b80821115610db557805473ffffffffffffffffffffffffffffffffffffffff191681556000610e256001830182610e48565b50600201610df3565b61055691905b80821115610db55760008155600101610e34565b50805460018160011615610100020316600290046000825580601f10610e6e5750610945565b601f0160209004906000526020600020908101906109459190610e2e5600a165627a7a723058205e489178c96b9b3e01be40147b005910039149bcdd1130a94b42c7832784c4a50029

   Swarm Source:
bzzr://5e489178c96b9b3e01be40147b005910039149bcdd1130a94b42c7832784c4a5

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.