Contract Overview |  Etheremon_AdventureClaim
Balance: 0 Ether
Ether Value: $0
Transactions: 548 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xe0a66218c40230967d4240d25f6220a28e52c7ffat txn 0xb067b630490751b4696f2b649d43c8428822c0af1f8d0cbac906b0959585e1b9
 Latest 25 transactions from a total of 548 transactions

TxHash Age From To Value [TxFee]
0xc367a0e5ebd3efd609ce82d9e6f616fbbc6b173a30e9230b2501cfbb594afcb717 days 23 hrs ago0x954634d52c4ffc5687b9c9f27206d9a4f13bce08  IN   Etheremon_AdventureClaim0 Ether0.000830808
0x93fed7abe3b542160be55a87447b4d9fc0a85393e85d2ee4186cd2fd20bd1dbb50 days 15 hrs ago0x0e62df169a713eb01ebb782718aaa584e5c12b05  IN   Etheremon_AdventureClaim0 Ether0.000830808
0x0dcc66759bf81a84a206baa9a1366da00cbc9f22403132c43c8b5c7aa983515c74 days 1 hr ago0x10b5a2dcda119aaeba05af66410d0f1ca8bcd03b  IN   Etheremon_AdventureClaim0 Ether0.00096351
0xd34fb94f1a0f85f2dfd15b1929a900f2054d83ae26dad0ac69438e5aaa204b7788 days 9 hrs ago0x5dc4561125fcac2030d07301c50153cfe624391b  IN   Etheremon_AdventureClaim0 Ether0.001661616
0x31a462588e2ee5056fdecedb0c828ddf32c20b0d362eaa07e8c47ff910da9845105 days 10 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.0004046742
0xb029c08bcdbd5d080ce1120607a395a6f162e126bd885746ee48c675f0557a46105 days 10 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.0004046742
0x672a79d47da1502a6f6af42a807741b81742d02e4623cbb9bd1da578374bb2a8105 days 11 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.000385404
0x4c7ad819e7397bb40fd0349ab189a41b80f52b35732dd332b10b74b5a38c9b32105 days 11 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.000385404
0xe9bdc943c5e47e58000190323406c3c9c28e9e3818e63af94e2dc5fde66b39e2105 days 11 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.000385404
0xee0f94cfc3279a409e1623bb0b865781430605c7d2728862e1731460dee1c419105 days 11 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.000385404
0xa515096d9a52358f069450bec0185d8a35ed5ffcd766a3af7f69c94d7092fc0d105 days 11 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.000385404
0x53a85b07609a30bb16c8d72c157f8ae2f446e734444188868e309c39c0e8c35f105 days 11 hrs ago0xf3a2727a3447653a58d57e4be63d5d5cdc55421b  IN   Etheremon_AdventureClaim0 Ether0.000415404
0xc1fb92515811dbd013d00a83b87c990e28812c41315e0a170657ce99467f186b107 days 16 hrs ago0xf5891366fa972deffdd80de02244597233a0d313  IN   Etheremon_AdventureClaim0 Ether0.000207702
0x9bffe52151d0d1f47f5b9d11b371a41c5468f432919567546426a4e312afb3fa116 days 9 hrs ago0x01725ef59f4b7981e99deb9e3ae0f33d83d6c9ce  IN   Etheremon_AdventureClaim0 Ether0.001661216
0x8cd4657794341c9b3940228a9bf36e9955a312f49a4df6f311a94435cdbf805d120 days 9 hrs ago0xddfed3d757262595135587f0d937c805873366d3  IN   Etheremon_AdventureClaim0 Ether0.00096326
0x29274c9bf4772711825e0e2526b94333f4a7dc74267bb9ef305dcc59b2828219120 days 9 hrs ago0xddfed3d757262595135587f0d937c805873366d3  IN   Etheremon_AdventureClaim0 Ether0.00096351
0x037e15b4a6d9fae3e41c28b06285747b340a7e97c17595147baca9e43b12506c120 days 9 hrs ago0xddfed3d757262595135587f0d937c805873366d3  IN   Etheremon_AdventureClaim0 Ether0.00103826
0x3361b337b07e2afede5c53cf97dd9cb51c8a402e979c0e2b41b0d8042afc3238122 days 1 hr ago0xb7cbb68d685f3bd1a151663eb9679d64dfd94790  IN   Etheremon_AdventureClaim0 Ether0.00096351
0x6a8acadab6f699345b414e1855152e951dcc483dc5739fe957ef1224d083b8af123 days 19 hrs ago0x9d16adeff54bdef3ae83943c85ca02a5d34034e1  IN   Etheremon_AdventureClaim0 Ether0.001156212
0x6b17e7f992f25d829ec03dfd8062fa4db34e8281478c1d5c67957fd9413a841f123 days 19 hrs ago0x9d16adeff54bdef3ae83943c85ca02a5d34034e1  IN   Etheremon_AdventureClaim0 Ether0.001156212
0x137c3f091f2f24f8b2bdf8c35246916a7b6792f1314052539b4546401601ad32123 days 19 hrs ago0x9d16adeff54bdef3ae83943c85ca02a5d34034e1  IN   Etheremon_AdventureClaim0 Ether0.001246212
0xea593f1e1e07a5ede31c99ae854cf089f6166f1dd408ddaf6e739bc1de0243dd123 days 22 hrs ago0xb7cbb68d685f3bd1a151663eb9679d64dfd94790  IN   Etheremon_AdventureClaim0 Ether0.00415404
0xf64ecf99c4183d79413e44af9e0c006c242dddff22d55b430d1789811054b8e0124 days 4 hrs ago0x6325598b540f24fe0dcee16a203e5cedfec3adc2  IN   Etheremon_AdventureClaim0 Ether0.001246212
0xf65965d482208dec7ef2123488496fac34e62167e825f9586fd6ef63a958d5b0127 days 22 hrs ago0x88d05ce8308ed2bc9131239dc7192a14a0acd843  IN   Etheremon_AdventureClaim0 Ether0.000623106
0x2d6fb7e6468eae7ff41a635333f3bb2983c7ab8c2792c6791bf31b19b82f74dd128 days 13 hrs ago0xcca14f9625a07dcf43e9c598c49f4853f4fe9b2e  IN   Etheremon_AdventureClaim0 Ether0.000086598
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: EtheremonAdventureClaim
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.23;

contract BasicAccessControl {
    address public owner;
    // address[] public moderators;
    uint16 public totalModerators = 0;
    mapping (address => bool) public moderators;
    bool public isMaintaining = false;

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    modifier onlyModerators() {
        require(msg.sender == owner || moderators[msg.sender] == true);
        _;
    }

    modifier isActive {
        require(!isMaintaining);
        _;
    }

    function ChangeOwner(address _newOwner) onlyOwner public {
        if (_newOwner != address(0)) {
            owner = _newOwner;
        }
    }


    function AddModerator(address _newModerator) onlyOwner public {
        if (moderators[_newModerator] == false) {
            moderators[_newModerator] = true;
            totalModerators += 1;
        }
    }
    
    function RemoveModerator(address _oldModerator) onlyOwner public {
        if (moderators[_oldModerator] == true) {
            moderators[_oldModerator] = false;
            totalModerators -= 1;
        }
    }

    function UpdateMaintaining(bool _isMaintaining) onlyOwner public {
        isMaintaining = _isMaintaining;
    }
}

contract EtheremonAdventurePresale {
    function getBidBySiteIndex(uint8 _siteId, uint _index) constant external returns(address bidder, uint32 bidId, uint8 siteId, uint amount, uint time);
}

interface EtheremonAdventureItem {
    function spawnSite(uint _classId, uint _tokenId, address _owner) external;
}

contract EtheremonAdventureClaim is BasicAccessControl {
    uint constant public MAX_SITE_ID = 108;
    uint constant public MIN_SITE_ID = 1;
    
    struct BiddingInfo {
        address bidder;
        uint32 bidId;
        uint amount;
        uint time;
        uint8 siteId;
    }
    
    mapping(uint32 => uint) public bidTokens;
    
    address public adventureItem;
    address public adventurePresale;
    
    modifier requireAdventureItem {
        require(adventureItem != address(0));
        _;        
    }
    
    modifier requireAdventurePresale {
        require(adventurePresale != address(0));
        _;        
    }
    
    function setContract(address _adventureItem, address _adventurePresale) onlyOwner public {
        adventureItem = _adventureItem;
        adventurePresale = _adventurePresale;
    }
    
    function claimSiteToken(uint8 _siteId, uint _index) isActive requireAdventureItem requireAdventurePresale public {
        if (_siteId < MIN_SITE_ID || _siteId > MAX_SITE_ID || _index >= 10) revert();
        BiddingInfo memory bidInfo;
        (bidInfo.bidder, bidInfo.bidId, bidInfo.siteId, bidInfo.amount, bidInfo.time) = EtheremonAdventurePresale(adventurePresale).getBidBySiteIndex(_siteId, _index);
        if (bidInfo.bidId == 0 || bidTokens[bidInfo.bidId] > 0) revert();
        uint tokenId = (uint(_siteId) - 1) * 10 + _index + 1;
        bidTokens[bidInfo.bidId] = tokenId;
        EtheremonAdventureItem(adventureItem).spawnSite(_siteId, tokenId, bidInfo.bidder);
    }
    
    function getTokenByBid(uint32 _bidId) constant public returns(uint) {
        return bidTokens[_bidId];
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"moderators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAX_SITE_ID","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_adventureItem","type":"address"},{"name":"_adventurePresale","type":"address"}],"name":"setContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"adventurePresale","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_bidId","type":"uint32"}],"name":"getTokenByBid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_isMaintaining","type":"bool"}],"name":"UpdateMaintaining","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalModerators","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newModerator","type":"address"}],"name":"AddModerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"adventureItem","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MIN_SITE_ID","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_oldModerator","type":"address"}],"name":"RemoveModerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint32"}],"name":"bidTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isMaintaining","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"ChangeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_siteId","type":"uint8"},{"name":"_index","type":"uint256"}],"name":"claimSiteToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

  Contract Creation Code Switch To Opcodes View
6080604052600080546002805460ff19169055600160b060020a0319163317905561085b8061002f6000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166314d0f1ba81146100ea5780631a5b8f961461011f5780632bf6e0a514610146578063445264db1461016f5780634833c47c146101a057806348ef5aa8146101be5780634efb023e146101d85780636c81fd6d146102045780637138364b146102255780638da5cb5b1461023a578063addb246b1461024f578063b85d627514610264578063c0ee954f14610285578063ee4e4416146102a3578063f2853292146102b8578063fda27af2146102d9575b600080fd5b3480156100f657600080fd5b5061010b600160a060020a03600435166102f7565b604080519115158252519081900360200190f35b34801561012b57600080fd5b5061013461030c565b60408051918252519081900360200190f35b34801561015257600080fd5b5061016d600160a060020a0360043581169060243516610311565b005b34801561017b57600080fd5b50610184610363565b60408051600160a060020a039092168252519081900360200190f35b3480156101ac57600080fd5b5061013463ffffffff60043516610372565b3480156101ca57600080fd5b5061016d600435151561038a565b3480156101e457600080fd5b506101ed6103b4565b6040805161ffff9092168252519081900360200190f35b34801561021057600080fd5b5061016d600160a060020a03600435166103d6565b34801561023157600080fd5b5061018461047c565b34801561024657600080fd5b5061018461048b565b34801561025b57600080fd5b5061013461049a565b34801561027057600080fd5b5061016d600160a060020a036004351661049f565b34801561029157600080fd5b5061013463ffffffff60043516610545565b3480156102af57600080fd5b5061010b610557565b3480156102c457600080fd5b5061016d600160a060020a0360043516610560565b3480156102e557600080fd5b5061016d60ff600435166024356105b3565b60016020526000908152604090205460ff1681565b606c81565b600054600160a060020a0316331461032857600080fd5b60048054600160a060020a0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560058054929093169116179055565b600554600160a060020a031681565b63ffffffff1660009081526003602052604090205490565b600054600160a060020a031633146103a157600080fd5b6002805460ff1916911515919091179055565b60005474010000000000000000000000000000000000000000900461ffff1681565b600054600160a060020a031633146103ed57600080fd5b600160a060020a03811660009081526001602052604090205460ff16151561047957600160a060020a03811660009081526001602081905260408220805460ff191682179055815461ffff7401000000000000000000000000000000000000000080830482169093011690910275ffff0000000000000000000000000000000000000000199091161790555b50565b600454600160a060020a031681565b600054600160a060020a031681565b600181565b600054600160a060020a031633146104b657600080fd5b600160a060020a03811660009081526001602081905260409091205460ff161515141561047957600160a060020a03166000908152600160205260408120805460ff19169055805475ffff0000000000000000000000000000000000000000198116740100000000000000000000000000000000000000009182900461ffff9081166000190116909102179055565b60036020526000908152604090205481565b60025460ff1681565b600054600160a060020a0316331461057757600080fd5b600160a060020a038116156104795760008054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff1990911617905550565b6105bb610801565b60025460009060ff16156105ce57600080fd5b600454600160a060020a031615156105e557600080fd5b600554600160a060020a031615156105fc57600080fd5b60018460ff1610806106115750606c8460ff16115b8061061d5750600a8310155b1561062757600080fd5b600554604080517f968f0a6a00000000000000000000000000000000000000000000000000000000815260ff87166004820152602481018690529051600160a060020a039092169163968f0a6a9160448082019260a0929091908290030181600087803b15801561069757600080fd5b505af11580156106ab573d6000803e3d6000fd5b505050506040513d60a08110156106c157600080fd5b508051602080830151604080850151606080870151608097880151918a01919091529188019190915260ff169386019390935263ffffffff909216918401829052600160a060020a031683521580610731575060208083015163ffffffff16600090815260039091526040812054115b1561073b57600080fd5b5060208181015163ffffffff16600090815260039091526040808220600160ff87166000198101600a028701919091019182905560048054865185517febf06bcb0000000000000000000000000000000000000000000000000000000081529283019390935260248201849052600160a060020a03928316604483015293519294919093169263ebf06bcb926064808301939282900301818387803b1580156107e357600080fd5b505af11580156107f7573d6000803e3d6000fd5b5050505050505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152905600a165627a7a723058201f69d61b9fb634e1a643c9713737160197544d248a12ea0a3739cc10d22215cc0029

   Swarm Source:
bzzr://1f69d61b9fb634e1a643c9713737160197544d248a12ea0a3739cc10d22215cc

 

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.