Contract Overview
Balance: 2.055139929999999 Ether
Ether Value: $249.23 (@ $121.27/ETH)
Transactions: 3268 txns
 Latest 25 transactions from a total of 3268 transactions

TxHash Age From To Value [TxFee]
0x5b58a6b4baa5c8841ff9c7374babd26ab33dc42c5401fc140d2641b652b24ba743 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000177145
0x7249f47299a866a8ec1eaf13fe377a1dda041fa73f68e347f89c4732552ac09c43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000177145
0x206389e978b73dc5fc8d596a2be5daf60c70afb6857f87d14c50bc1f467bc17e43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0001984024
0xeb314cebbbe69235418dcdfffbbc3ada223109400af70ebce08845af0eebd2de43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000177145
0xaa1af695aecdb92e4b34c99b060fef8077a9ebe69406906b9ba9e53a50b19f0643 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0001018485
0x6b161bc255ef20ca1e4497528e6ca01c6dac1f9a60cb8af2447e7155b6a1e21b43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0001490706
0x0a689b875abf4b46c8f00e91aa5dbb84a65a8b78c9ae068668a7186314636ec443 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0001490706
0x26320663d37301c60b19c06d705e4c3a67ee5a268635397718b0b22b14750a5143 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0001490706
0xbf94c81e1eeb641555dceaf980d46ca8d8419f29ac291a39e9f36939daaf7a8c43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0001490706
0x22cde96b42b47575f8089304619844b09842e4aeddc41b5a3b47ea6022b01cac43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000213342
0x512dcb8e894f2a395e29fe122b03322f8eadf636d6a24ceae4e09d70b5fb48b143 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000176185
0x49317e194aaa5440798b6d4e09fc45cfae227cbec3e05c4ca49ec6471e8cbfed43 days 5 hrs ago0x6a87dd44fb782ee9b09b203ac6ad412b8c146797  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000175865
0xb36ef632d66a0e394c49b15a12750b40a619083a8fc71b8ff71fdf6757ef757b69 days 13 hrs ago0x0092e7b523bcf35d18a50ae437d36aa212002cf6  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.00040986
0x141ad257b8f11d1540a8a7bfbc1cd2dc68006fca4c3fa92ac1c6859fada74ee2113 days 14 hrs ago0x1c24e5bc9a6c15836a23fe67ced0bf1302ae4f5a  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000252772
0x9ee224eddd47e6bae44722d491375058e0fec989a128952cb7ee5682c7796161127 days 22 hrs ago0xc0682d80cb3c6bc921f3f4672f814b6b4d476a70  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000061479
0x5f76b3b343e3c9f11f2aafc6adf651d4101b654bb2a32d21e81184367dc24b20127 days 23 hrs ago0xc0682d80cb3c6bc921f3f4672f814b6b4d476a70  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000106287
0xab806f87962db78ecd5b5e482ed0eed973320453bc4db213796c1bac7e31bb3a164 days 16 hrs ago0x5372260584003e8ae3a24e9df09fa96037a04c2b  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000020493
0x5087efb7304b941934aa1f67595207f7ea483783afe4a27a004d16663819e9aa167 days 9 hrs ago0xa014609c78cbf9df20267be839de3290426c7ad3  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.02 Ether0.0001850976
0xa8a6fb5ed63a8c4ef43aba1992476d2a301cda159fef8531cd2232cc46bd0858175 days 10 hrs ago0xa1c299326473983c303eebb76e0cb062857cd9cb  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.01 Ether0.000109248
0x449182b3335f2566801d91203cd5d481dda3ec0eeb623b9a292552651eb1b8a7175 days 12 hrs ago0xa1c299326473983c303eebb76e0cb062857cd9cb  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490.005 Ether0.00022499
0xa19b8b3524f50ec5822d9db1da5f0a0ecb4daa8277d67412ff9a0598a42c639f176 days 9 hrs ago0xd497093ad0ff5f10f14fc1d371dc2a9aabe26d59  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000122958
0x48653d0862893946980c007bbbb9d82645bbfc654f79a07bca270c835ddd77c9187 days 5 hrs ago0x80dcdd08a4748c6b8d99bfab09e8527bd49c1d05  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.00020493
0xe221e3a1bc38fc094a6e4ec0c717fc05c2ea99495c18f4d92fee973eab42c06a199 days 9 hrs ago0xf2ab31b0c7e3a6e93f211e58b337653658cbca9f  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.00040986
0x5ba03a78eeb2f9901eacfcd9e7c87d4ae35dd1cd8667bbed25eaaab39c2dd2c6203 days 11 hrs ago0xdc652b6bfa2e2daf8b3919c2580a5180757c9079  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.000102465
0xc833be56e98dd8015e18c5b0ca952f9c6e2af034e80adfc628ddfcda30aab8f4215 days 10 hrs ago0x5372260584003e8ae3a24e9df09fa96037a04c2b  IN   0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490 Ether0.0000635283
[ 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
0x5b58a6b4baa5c8841ff9c7374babd26ab33dc42c5401fc140d2641b652b24ba7682111643 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.00002 Ether
0x7249f47299a866a8ec1eaf13fe377a1dda041fa73f68e347f89c4732552ac09c682110843 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.00002 Ether
0x206389e978b73dc5fc8d596a2be5daf60c70afb6857f87d14c50bc1f467bc17e682108543 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.002 Ether
0xeb314cebbbe69235418dcdfffbbc3ada223109400af70ebce08845af0eebd2de682105843 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.002 Ether
0x6b161bc255ef20ca1e4497528e6ca01c6dac1f9a60cb8af2447e7155b6a1e21b682102943 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.0019 Ether
0x0a689b875abf4b46c8f00e91aa5dbb84a65a8b78c9ae068668a7186314636ec4682100043 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.001 Ether
0x26320663d37301c60b19c06d705e4c3a67ee5a268635397718b0b22b14750a51682098943 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.001 Ether
0xbf94c81e1eeb641555dceaf980d46ca8d8419f29ac291a39e9f36939daaf7a8c682097743 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.001 Ether
0x22cde96b42b47575f8089304619844b09842e4aeddc41b5a3b47ea6022b01cac682095843 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.000999999999999999 Ether
0x512dcb8e894f2a395e29fe122b03322f8eadf636d6a24ceae4e09d70b5fb48b1682093343 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467970.000000000000001 Ether
0x49317e194aaa5440798b6d4e09fc45cfae227cbec3e05c4ca49ec6471e8cbfed682091243 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x6a87dd44fb782ee9b09b203ac6ad412b8c1467971 wei
0xb36ef632d66a0e394c49b15a12750b40a619083a8fc71b8ff71fdf6757ef757b666063769 days 13 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x0092e7b523bcf35d18a50ae437d36aa212002cf60.358 Ether
0x9ee224eddd47e6bae44722d491375058e0fec989a128952cb7ee5682c77961616304189127 days 22 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xc0682d80cb3c6bc921f3f4672f814b6b4d476a700.0497 Ether
0x5f76b3b343e3c9f11f2aafc6adf651d4101b654bb2a32d21e81184367dc24b206304037127 days 23 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xc0682d80cb3c6bc921f3f4672f814b6b4d476a700.00005 Ether
0xab806f87962db78ecd5b5e482ed0eed973320453bc4db213796c1bac7e31bb3a6086590164 days 16 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x5372260584003e8ae3a24e9df09fa96037a04c2b0.00995 Ether
0xa19b8b3524f50ec5822d9db1da5f0a0ecb4daa8277d67412ff9a0598a42c639f6017226176 days 9 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xd497093ad0ff5f10f14fc1d371dc2a9aabe26d590.0398 Ether
0x48653d0862893946980c007bbbb9d82645bbfc654f79a07bca270c835ddd77c95953244187 days 5 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x80dcdd08a4748c6b8d99bfab09e8527bd49c1d050.004975 Ether
0xe221e3a1bc38fc094a6e4ec0c717fc05c2ea99495c18f4d92fee973eab42c06a5882008199 days 9 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xf2ab31b0c7e3a6e93f211e58b337653658cbca9f0.06445 Ether
0x5ba03a78eeb2f9901eacfcd9e7c87d4ae35dd1cd8667bbed25eaaab39c2dd2c65858300203 days 11 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xdc652b6bfa2e2daf8b3919c2580a5180757c90790.00995 Ether
0xc833be56e98dd8015e18c5b0ca952f9c6e2af034e80adfc628ddfcda30aab8f45788624215 days 10 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x5372260584003e8ae3a24e9df09fa96037a04c2b0.00995 Ether
0x96fd1f7f2c1987e5c680aaad00d1075d15de4f23cfd1460c8cc8f59b8ea0fb3e5779013217 days 2 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x79e5dda6466be0637567b3aeed4aae7d445a1c450.0398 Ether
0xfea4f3a6517729bd12dc2c380b0fe6017fd97b19088896ad0a1b28ad32bc25b45717964227 days 22 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xb98d80f60bf961c3cd27df786505ea1a011a4dd00.004975 Ether
0x40f8cfc0239d74c7aff8700dfd47e6c2ab76bc1464cd4ae4cabf8aad24a959455619088245 days 10 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x328b65db8e35548c1b28a74405ba47c5fe80a2530.00995 Ether
0xd9a8b680989262723f8563f68ead35f97f8b947fed1e45efaf26ac463771704f5614776246 days 4 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490xf745f479a7da0b538ee5bbc35d719c7c481e1b7e0.0398 Ether
0x184ac146a3b56bd84e28c4249a4b5d775af1194b643ccb8fe424656400539c455501526265 days 22 hrs ago0xc3c94e2d9a33ab18d5578bd63dfdaa3e0ea74a490x2b5dddeec220bb5af3b8e7a1de1320f60003e55d0.004975 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: PyramidGame
Compiler Text: 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 transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.