Contract 0x65CA30Af89af5a048Cc8B715101171fBca6452b5

 
Txn Hash Method
Block
From
To
Value
0x7178ff35cacb7410db31492e1c42ae3b7a7bc81e5366489804decf0124750a06Attack Castle49619042018-01-24 3:41:161332 days 18 hrs ago0x13dd03f76203817ee821312549682fa61e52b0bc IN  Etheremon: Battle 40 Ether0.000101664
0xd2e3fc5e7ce10973982f15824c67680599fd9ed14594b53c395c3e34938b72abAttack Castle49619012018-01-24 3:40:541332 days 18 hrs ago0x13dd03f76203817ee821312549682fa61e52b0bc IN  Etheremon: Battle 40 Ether0.000101664
0x523752586aba1ee7e7d1be853bdb7d5f7bccec9d27fa77285f8238be40296122Attack Castle49597772018-01-23 19:23:121333 days 2 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xd85701df164f38bf24b9a4a36f6bb6682d9e71ce8e65e04dd7038874c259d493Attack Castle49595992018-01-23 18:42:051333 days 3 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x191580f73cd1cffb0245c834d05fe6657e07247716b7c6827017b03bc3c67a41Attack Castle49581712018-01-23 12:44:261333 days 9 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x317e9a1aa63888f8fee3f11e6369e7ab000803013e301c92d11a11a994b0d6d7Attack Castle49581602018-01-23 12:42:411333 days 9 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xa8b2aae6e61ba24d1b24933fe7013e823b54efaac0ad26e1e2a88b422f00abecAttack Castle49571102018-01-23 8:27:351333 days 13 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x561bbbc700633b0b2949927e6ce9e8b0137f2271f2744183a787a6d87a622ff9Attack Castle49570932018-01-23 8:22:521333 days 13 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xa62c6a10d06394b850b223d4f3bf6de39a8367879df69b3ee33308480eba0b37Attack Castle49563072018-01-23 5:09:131333 days 17 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x03b84942064758f8aa42817ba57070aa82f689e7df05071efc509111491d24f3Attack Castle49552572018-01-23 0:50:491333 days 21 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x4dab94c3c0c5f8f010e6166b985130e064a83b85ca34bd8c780fc85f26748279Attack Castle49551762018-01-23 0:30:121333 days 21 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xe19c050cf443d261e9a8904812073c1a2d5d7081b661754dab596548d0d83a79Attack Castle49551752018-01-23 0:30:081333 days 21 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x2c6ac6e4ba30288644aab01902bd565fd4702cf1f6aa8243e98738e539d1fa69Attack Castle49551672018-01-23 0:28:581333 days 21 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x66f49ab9fab0e61c64860e164477fc87689f7ed0a6bedc16bba51bb03fb25b15Attack Castle49550982018-01-23 0:13:091333 days 22 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xe4a29c90a449f033b08b13d832eec925488ff42017149beb68e78ec101dcfffaAttack Castle49550972018-01-23 0:13:011333 days 22 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x946431aa9a0ec606cf2de9d73698adb1ec8ff71233a490cd89936a3658aa621cWithdraw Ether49527402018-01-22 14:31:091334 days 7 hrs agoEtheremonToken: Deployer 1 IN  Etheremon: Battle 40 Ether0.0007623420
0x2b33f97c96d9fbbcec7adc1b42e94272e1fae264d7c8d725a9cc351d9d75ebb0Attack Castle49522412018-01-22 12:26:581334 days 9 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xfa6f413bd1cf8ac0bc7d4cbebc97c754f715697f6802a8d748332c80c2553c45Attack Castle49522112018-01-22 12:19:461334 days 10 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xc7b7412efcf87ff4541b33cd51735a083fac40c335ff19bfe4b3c73ce0b4a637Attack Castle49522112018-01-22 12:19:461334 days 10 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x672caedf674a7a8820dc4e285c3e608417ef8577bdfaa045a45708b81f20c1efAttack Castle49521882018-01-22 12:15:221334 days 10 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x3453c9632208ac7fd60f20283f003a32bc0620004a91bfe746cf9ed54ba73361Attack Castle49521762018-01-22 12:11:581334 days 10 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xe0d684f3cf78aa9fd25529bf77f6b98d15f9b8d0218fa2ca6b9f88e79d42dd9bAttack Castle49521722018-01-22 12:11:221334 days 10 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0xb1b31f8068d7fe5bdcbe65e2e2718eb7be93426fa2cc3f4e15066d41ca73f435Attack Castle49514192018-01-22 9:08:001334 days 13 hrs ago0x158f1694591ba5259af8303c9546d42a6da291bf IN  Etheremon: Battle 40 Ether0.00000252230.1
0x24f7157434e2baa0541c804b0d30949cea1dd1ed5b011301a311a7eec4db5d52Attack Castle49507782018-01-22 6:25:511334 days 15 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
0x981f8f9d2d7846bb62ba913b550bbc4c9cfbc243e57268c03a73d2810a49e7a8Attack Castle49507602018-01-22 6:21:471334 days 15 hrs ago0xc7c8bbf115ca5234554a4f513c808a421c4c6be2 IN  Etheremon: Battle 40 Ether0.00000756690.3
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x946431aa9a0ec606cf2de9d73698adb1ec8ff71233a490cd89936a3658aa621c49527402018-01-22 14:31:091334 days 7 hrs ago Etheremon: Battle 40xd3b6d520906bb14c0eab0faf7a8b13fe31f8cbda39.912 Ether
0xe5ba2512d05fc83edcc7b596c612f89abbdd03b277024b5a5f30e52c000d966e48801042018-01-09 13:34:381347 days 8 hrs ago Etheremon: Battle 40xd3b6d520906bb14c0eab0faf7a8b13fe31f8cbda3.392 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EtheremonBattle

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-01-07
*/

pragma solidity ^0.4.16;

// copyright [email protected]

contract SafeMath {

    /* function assert(bool assertion) internal { */
    /*   if (!assertion) { */
    /*     throw; */
    /*   } */
    /* }      // assert no longer needed once solidity is on 0.4.10 */

    function safeAdd(uint256 x, uint256 y) pure internal returns(uint256) {
      uint256 z = x + y;
      assert((z >= x) && (z >= y));
      return z;
    }

    function safeSubtract(uint256 x, uint256 y) pure internal returns(uint256) {
      assert(x >= y);
      uint256 z = x - y;
      return z;
    }

    function safeMult(uint256 x, uint256 y) pure internal returns(uint256) {
      uint256 z = x * y;
      assert((x == 0)||(z/x == y));
      return z;
    }

}

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

    function BasicAccessControl() 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 EtheremonEnum {

    enum ResultCode {
        SUCCESS,
        ERROR_CLASS_NOT_FOUND,
        ERROR_LOW_BALANCE,
        ERROR_SEND_FAIL,
        ERROR_NOT_TRAINER,
        ERROR_NOT_ENOUGH_MONEY,
        ERROR_INVALID_AMOUNT,
        ERROR_OBJ_NOT_FOUND,
        ERROR_OBJ_INVALID_OWNERSHIP
    }
    
    enum ArrayType {
        CLASS_TYPE,
        STAT_STEP,
        STAT_START,
        STAT_BASE,
        OBJ_SKILL
    }

    enum PropertyType {
        ANCESTOR,
        XFACTOR
    }
    
    enum BattleResult {
        CASTLE_WIN,
        CASTLE_LOSE,
        CASTLE_DESTROYED
    }
    
    enum CacheClassInfoType {
        CLASS_TYPE,
        CLASS_STEP,
        CLASS_ANCESTOR
    }
}

contract EtheremonDataBase is EtheremonEnum, BasicAccessControl, SafeMath {
    
    uint64 public totalMonster;
    uint32 public totalClass;
    
    // read
    function getSizeArrayType(ArrayType _type, uint64 _id) constant public returns(uint);
    function getElementInArrayType(ArrayType _type, uint64 _id, uint _index) constant public returns(uint8);
    function getMonsterClass(uint32 _classId) constant public returns(uint32 classId, uint256 price, uint256 returnPrice, uint32 total, bool catchable);
    function getMonsterObj(uint64 _objId) constant public returns(uint64 objId, uint32 classId, address trainer, uint32 exp, uint32 createIndex, uint32 lastClaimIndex, uint createTime);
    function getMonsterName(uint64 _objId) constant public returns(string name);
    function getExtraBalance(address _trainer) constant public returns(uint256);
    function getMonsterDexSize(address _trainer) constant public returns(uint);
    function getMonsterObjId(address _trainer, uint index) constant public returns(uint64);
    function getExpectedBalance(address _trainer) constant public returns(uint256);
    function getMonsterReturn(uint64 _objId) constant public returns(uint256 current, uint256 total);
}

interface EtheremonTradeInterface {
    function isOnTrading(uint64 _objId) constant external returns(bool);
}

contract EtheremonGateway is EtheremonEnum, BasicAccessControl {
    // using for battle contract later
    function increaseMonsterExp(uint64 _objId, uint32 amount) onlyModerators public;
    function decreaseMonsterExp(uint64 _objId, uint32 amount) onlyModerators public;
    
    // read 
    function isGason(uint64 _objId) constant external returns(bool);
    function getObjBattleInfo(uint64 _objId) constant external returns(uint32 classId, uint32 exp, bool isGason, 
        uint ancestorLength, uint xfactorsLength);
    function getClassPropertySize(uint32 _classId, PropertyType _type) constant external returns(uint);
    function getClassPropertyValue(uint32 _classId, PropertyType _type, uint index) constant external returns(uint32);
}

contract EtheremonCastleContract is EtheremonEnum, BasicAccessControl{

    uint32 public totalCastle = 0;
    uint64 public totalBattle = 0;
    
    function getCastleBasicInfo(address _owner) constant external returns(uint32, uint, uint32);
    function getCastleBasicInfoById(uint32 _castleId) constant external returns(uint, address, uint32);
    function countActiveCastle() constant external returns(uint);
    function getCastleObjInfo(uint32 _castleId) constant external returns(uint64, uint64, uint64, uint64, uint64, uint64);
    function getCastleStats(uint32 _castleId) constant external returns(string, address, uint32, uint32, uint32, uint);
    function isOnCastle(uint32 _castleId, uint64 _objId) constant external returns(bool);
    function getCastleWinLose(uint32 _castleId) constant external returns(uint32, uint32, uint32);
    function getTrainerBrick(address _trainer) constant external returns(uint32);

    function addCastle(address _trainer, string _name, uint64 _a1, uint64 _a2, uint64 _a3, uint64 _s1, uint64 _s2, uint64 _s3, uint32 _brickNumber) 
        onlyModerators external returns(uint32 currentCastleId);
    function renameCastle(uint32 _castleId, string _name) onlyModerators external;
    function removeCastleFromActive(uint32 _castleId) onlyModerators external;
    function deductTrainerBrick(address _trainer, uint32 _deductAmount) onlyModerators external returns(bool);
    
    function addBattleLog(uint32 _castleId, address _attacker, 
        uint8 _ran1, uint8 _ran2, uint8 _ran3, uint8 _result, uint32 _castleExp1, uint32 _castleExp2, uint32 _castleExp3) onlyModerators external returns(uint64);
    function addBattleLogMonsterInfo(uint64 _battleId, uint64 _a1, uint64 _a2, uint64 _a3, uint64 _s1, uint64 _s2, uint64 _s3, uint32 _exp1, uint32 _exp2, uint32 _exp3) onlyModerators external;
}

contract EtheremonBattle is EtheremonEnum, BasicAccessControl, SafeMath {
    uint8 constant public NO_MONSTER = 3;
    uint8 constant public STAT_COUNT = 6;
    uint8 constant public GEN0_NO = 24;
    
    struct MonsterClassAcc {
        uint32 classId;
        uint256 price;
        uint256 returnPrice;
        uint32 total;
        bool catchable;
    }

    struct MonsterObjAcc {
        uint64 monsterId;
        uint32 classId;
        address trainer;
        string name;
        uint32 exp;
        uint32 createIndex;
        uint32 lastClaimIndex;
        uint createTime;
    }
    
    struct BattleMonsterData {
        uint64 a1;
        uint64 a2;
        uint64 a3;
        uint64 s1;
        uint64 s2;
        uint64 s3;
    }

    struct SupporterData {
        uint32 classId1;
        bool isGason1;
        uint8 type1;
        uint32 classId2;
        bool isGason2;
        uint8 type2;
        uint32 classId3;
        bool isGason3;
        uint8 type3;
    }

    struct AttackData {
        uint64 aa;
        SupporterData asup;
        uint16 aAttackSupport;
        uint64 ba;
        SupporterData bsup;
        uint16 bAttackSupport;
        uint8 index;
    }
    
    struct MonsterBattleLog {
        uint64 objId;
        uint32 exp;
    }
    
    struct BattleLogData {
        address castleOwner;
        uint64 battleId;
        uint32 castleId;
        uint32 castleBrickBonus;
        uint castleIndex;
        uint32[6] monsterExp;
        uint8[3] randoms;
        bool win;
        BattleResult result;
    }
    
    struct CacheClassInfo {
        uint8[] types;
        uint8[] steps;
        uint32[] ancestors;
    }

    // event
    event EventCreateCastle(address indexed owner, uint32 castleId);
    event EventAttackCastle(address indexed attacker, uint32 castleId, uint8 result);
    event EventRemoveCastle(uint32 indexed castleId);
    
    // linked smart contract
    address public worldContract;
    address public dataContract;
    address public tradeContract;
    address public castleContract;
    
    // global variable
    mapping(uint8 => uint8) typeAdvantages;
    mapping(uint32 => CacheClassInfo) cacheClasses;
    mapping(uint8 => uint32) levelExps;
    uint8 public ancestorBuffPercentage = 10;
    uint8 public gasonBuffPercentage = 10;
    uint8 public typeBuffPercentage = 20;
    uint8 public maxLevel = 100;
    uint16 public maxActiveCastle = 30;
    uint8 public maxRandomRound = 4;
    
    uint8 public winBrickReturn = 8;
    uint32 public castleMinBrick = 5;
    uint256 public brickPrice = 0.008 ether;
    uint8 public minHpDeducted = 10;
    
    uint256 public totalEarn = 0;
    uint256 public totalWithdraw = 0;
    
    address private lastAttacker = address(0x0);
    
    // modifier
    modifier requireDataContract {
        require(dataContract != address(0));
        _;
    }
    
    modifier requireTradeContract {
        require(tradeContract != address(0));
        _;
    }
    
    modifier requireCastleContract {
        require(castleContract != address(0));
        _;
    }
    
    modifier requireWorldContract {
        require(worldContract != address(0));
        _;
    }


    function EtheremonBattle(address _dataContract, address _worldContract, address _tradeContract, address _castleContract) public {
        dataContract = _dataContract;
        worldContract = _worldContract;
        tradeContract = _tradeContract;
        castleContract = _castleContract;
    }
    
     // admin & moderators
    function setTypeAdvantages() onlyModerators external {
        typeAdvantages[1] = 14;
        typeAdvantages[2] = 16;
        typeAdvantages[3] = 8;
        typeAdvantages[4] = 9;
        typeAdvantages[5] = 2;
        typeAdvantages[6] = 11;
        typeAdvantages[7] = 3;
        typeAdvantages[8] = 5;
        typeAdvantages[9] = 15;
        typeAdvantages[11] = 18;
        // skipp 10
        typeAdvantages[12] = 7;
        typeAdvantages[13] = 6;
        typeAdvantages[14] = 17;
        typeAdvantages[15] = 13;
        typeAdvantages[16] = 12;
        typeAdvantages[17] = 1;
        typeAdvantages[18] = 4;
    }
    
    function setTypeAdvantage(uint8 _type1, uint8 _type2) onlyModerators external {
        typeAdvantages[_type1] = _type2;
    }
    
    function setCacheClassInfo(uint32 _classId) onlyModerators requireDataContract requireWorldContract public {
        EtheremonDataBase data = EtheremonDataBase(dataContract);
         EtheremonGateway gateway = EtheremonGateway(worldContract);
        uint i = 0;
        CacheClassInfo storage classInfo = cacheClasses[_classId];

        // add type
        i = data.getSizeArrayType(ArrayType.CLASS_TYPE, uint64(_classId));
        uint8[] memory aTypes = new uint8[](i);
        for(; i > 0 ; i--) {
            aTypes[i-1] = data.getElementInArrayType(ArrayType.CLASS_TYPE, uint64(_classId), i-1);
        }
        classInfo.types = aTypes;

        // add steps
        i = data.getSizeArrayType(ArrayType.STAT_STEP, uint64(_classId));
        uint8[] memory steps = new uint8[](i);
        for(; i > 0 ; i--) {
            steps[i-1] = data.getElementInArrayType(ArrayType.STAT_STEP, uint64(_classId), i-1);
        }
        classInfo.steps = steps;
        
        // add ancestor
        i = gateway.getClassPropertySize(_classId, PropertyType.ANCESTOR);
        uint32[] memory ancestors = new uint32[](i);
        for(; i > 0 ; i--) {
            ancestors[i-1] = gateway.getClassPropertyValue(_classId, PropertyType.ANCESTOR, i-1);
        }
        classInfo.ancestors = ancestors;
    }
    
    function fastSetCacheClassInfo(uint32 _classId1, uint32 _classId2, uint32 _classId3, uint32 _classId4) onlyModerators requireDataContract requireWorldContract public {
        setCacheClassInfo(_classId1);
        setCacheClassInfo(_classId2);
        setCacheClassInfo(_classId3);
        setCacheClassInfo(_classId4);
    }    
     
    function withdrawEther(address _sendTo, uint _amount) onlyModerators external {
        if (_amount > this.balance) {
            revert();
        }
        uint256 validAmount = safeSubtract(totalEarn, totalWithdraw);
        if (_amount > validAmount) {
            revert();
        }
        totalWithdraw += _amount;
        _sendTo.transfer(_amount);
    }
    
    function setContract(address _dataContract, address _worldContract, address _tradeContract, address _castleContract) onlyModerators external {
        dataContract = _dataContract;
        worldContract = _worldContract;
        tradeContract = _tradeContract;
        castleContract = _castleContract;
    }
    
    function setConfig(uint8 _ancestorBuffPercentage, uint8 _gasonBuffPercentage, uint8 _typeBuffPercentage, uint32 _castleMinBrick, 
        uint8 _maxLevel, uint16 _maxActiveCastle, uint8 _maxRandomRound, uint8 _minHpDeducted) onlyModerators external{
        ancestorBuffPercentage = _ancestorBuffPercentage;
        gasonBuffPercentage = _gasonBuffPercentage;
        typeBuffPercentage = _typeBuffPercentage;
        castleMinBrick = _castleMinBrick;
        maxLevel = _maxLevel;
        maxActiveCastle = _maxActiveCastle;
        maxRandomRound = _maxRandomRound;
        minHpDeducted = _minHpDeducted;
    }
    
    function genLevelExp() onlyModerators external {
        uint8 level = 1;
        uint32 requirement = 100;
        uint32 sum = requirement;
        while(level <= 100) {
            levelExps[level] = sum;
            level += 1;
            requirement = (requirement * 11) / 10 + 5;
            sum += requirement;
        }
    }
    
    // public 
    function getCacheClassSize(uint32 _classId) constant public returns(uint, uint, uint) {
        CacheClassInfo storage classInfo = cacheClasses[_classId];
        return (classInfo.types.length, classInfo.steps.length, classInfo.ancestors.length);
    }
    
    function getRandom(uint8 maxRan, uint8 index, address priAddress) constant public returns(uint8) {
        uint256 genNum = uint256(block.blockhash(block.number-1)) + uint256(priAddress);
        for (uint8 i = 0; i < index && i < 6; i ++) {
            genNum /= 256;
        }
        return uint8(genNum % maxRan);
    }
    
    function getLevel(uint32 exp) view public returns (uint8) {
        uint8 minIndex = 1;
        uint8 maxIndex = 100;
        uint8 currentIndex;
     
        while (minIndex < maxIndex) {
            currentIndex = (minIndex + maxIndex) / 2;
            while (minIndex < maxIndex) {
                currentIndex = (minIndex + maxIndex) / 2;
                if (exp < levelExps[currentIndex])
                    maxIndex = currentIndex;
                else
                    minIndex = currentIndex + 1;
            }
        }
        return minIndex;
    }
    
    function getGainExp(uint32 _exp1, uint32 _exp2, bool _win) view public returns(uint32){
        uint8 level = getLevel(_exp2);
        uint8 level2 = getLevel(_exp1);
        uint8 halfLevel1 = level;
        if (level > level2 + 3) {
            halfLevel1 = (level2 + 3) / 2;
        } else {
            halfLevel1 = level / 2;
        }
        uint32 gainExp = 1;
        uint256 rate = (21 ** uint256(halfLevel1)) * 1000 / (20 ** uint256(halfLevel1));
        rate = rate * rate;
        if ((level > level2 + 3 && level2 + 3 > 2 * halfLevel1) || (level <= level2 + 3 && level > 2 * halfLevel1)) rate = rate * 21 / 20;
        if (_win) {
            gainExp = uint32(30 * rate / 1000000);
        } else {
            gainExp = uint32(10 * rate / 1000000);
        }
        
        if (level2 >= level + 5) {
            gainExp /= uint32(2) ** ((level2 - level) / 5);
        }
        return gainExp;
    }
    
    function getMonsterLevel(uint64 _objId) constant external returns(uint32, uint8) {
        EtheremonDataBase data = EtheremonDataBase(dataContract);
        MonsterObjAcc memory obj;
        uint32 _ = 0;
        (obj.monsterId, obj.classId, obj.trainer, obj.exp, _, _, obj.createTime) = data.getMonsterObj(_objId);
     
        return (obj.exp, getLevel(obj.exp));
    }
    
    function getMonsterCP(uint64 _objId) constant external returns(uint64) {
        uint16[6] memory stats;
        uint32 classId = 0;
        uint32 exp = 0;
        (classId, exp, stats) = getCurrentStats(_objId);
        
        uint256 total;
        for(uint i=0; i < STAT_COUNT; i+=1) {
            total += stats[i];
        }
        return uint64(total/STAT_COUNT);
    }
    
    function isOnBattle(uint64 _objId) constant external returns(bool) {
        EtheremonDataBase data = EtheremonDataBase(dataContract);
        EtheremonCastleContract castle = EtheremonCastleContract(castleContract);
        uint32 castleId;
        uint castleIndex = 0;
        uint256 price = 0;
        MonsterObjAcc memory obj;
        (obj.monsterId, obj.classId, obj.trainer, obj.exp, obj.createIndex, obj.lastClaimIndex, obj.createTime) = data.getMonsterObj(_objId);
        (castleId, castleIndex, price) = castle.getCastleBasicInfo(obj.trainer);
        if (castleId > 0 && castleIndex > 0)
            return castle.isOnCastle(castleId, _objId);
        return false;
    }
    
    function isValidOwner(uint64 _objId, address _owner) constant public returns(bool) {
        EtheremonDataBase data = EtheremonDataBase(dataContract);
        MonsterObjAcc memory obj;
        (obj.monsterId, obj.classId, obj.trainer, obj.exp, obj.createIndex, obj.lastClaimIndex, obj.createTime) = data.getMonsterObj(_objId);
        return (obj.trainer == _owner && obj.classId != 21);
    }
    
    function getObjExp(uint64 _objId) constant public returns(uint32, uint32) {
        EtheremonDataBase data = EtheremonDataBase(dataContract);
        MonsterObjAcc memory obj;
        uint32 _ = 0;
        (_objId, obj.classId, obj.trainer, obj.exp, _, _, obj.createTime) = data.getMonsterObj(_objId);
        return (obj.classId, obj.exp);
    }
    
    function getCurrentStats(uint64 _objId) constant public returns(uint32, uint32, uint16[6]){
        EtheremonDataBase data = EtheremonDataBase(dataContract);
        uint16[6] memory stats;
        uint32 classId;
        uint32 exp;
        (classId, exp) = getObjExp(_objId);
        if (classId == 0)
            return (classId, exp, stats);
        
        uint i = 0;
        uint8 level = getLevel(exp);
        for(i=0; i < STAT_COUNT; i+=1) {
            stats[i] = data.getElementInArrayType(ArrayType.STAT_BASE, _objId, i);
        }
        for(i=0; i < cacheClasses[classId].steps.length; i++) {
            stats[i] += uint16(safeMult(cacheClasses[classId].steps[i], level*3));
        }
        return (classId, exp, stats);
    }
    
    function safeDeduct(uint16 a, uint16 b) pure private returns(uint16){
        if (a > b) {
            return a - b;
        }
        return 0;
    }
    
    function calHpDeducted(uint16 _attack, uint16 _specialAttack, uint16 _defense, uint16 _specialDefense, bool _lucky) view public returns(uint16){
        if (_lucky) {
            _attack = _attack * 13 / 10;
            _specialAttack = _specialAttack * 13 / 10;
        }
        uint16 hpDeducted = safeDeduct(_attack, _defense * 3 /4);
        uint16 hpSpecialDeducted = safeDeduct(_specialAttack, _specialDefense* 3 / 4);
        if (hpDeducted < minHpDeducted && hpSpecialDeducted < minHpDeducted)
            return minHpDeducted;
        if (hpDeducted > hpSpecialDeducted)
            return hpDeducted;
        return hpSpecialDeducted;
    }
    
    function getAncestorBuff(uint32 _classId, SupporterData _support) constant private returns(uint16){
        // check ancestors
        uint i =0;
        uint8 countEffect = 0;
        uint ancestorSize = cacheClasses[_classId].ancestors.length;
        if (ancestorSize > 0) {
            uint32 ancestorClass = 0;
            for (i=0; i < ancestorSize; i ++) {
                ancestorClass = cacheClasses[_classId].ancestors[i];
                if (ancestorClass == _support.classId1 || ancestorClass == _support.classId2 || ancestorClass == _support.classId3) {
                    countEffect += 1;
                }
            }
        }
        return countEffect * ancestorBuffPercentage;
    }
    
    function getGasonSupport(uint32 _classId, SupporterData _sup) constant private returns(uint16 defenseSupport) {
        uint i = 0;
        uint8 classType = 0;
        defenseSupport = 0;
        for (i = 0; i < cacheClasses[_classId].types.length; i++) {
            classType = cacheClasses[_classId].types[i];
             if (_sup.isGason1) {
                if (classType == _sup.type1) {
                    defenseSupport += gasonBuffPercentage;
                    continue;
                }
            }
            if (_sup.isGason2) {
                if (classType == _sup.type2) {
                    defenseSupport += gasonBuffPercentage;
                    continue;
                }
            }
            if (_sup.isGason3) {
                if (classType == _sup.type3) {
                    defenseSupport += gasonBuffPercentage;
                    continue;
                }
            }
        }
    }
    
    function getTypeSupport(uint32 _aClassId, uint32 _bClassId) constant private returns (uint16 aAttackSupport, uint16 bAttackSupport) {
        // check types 
        bool aHasAdvantage;
        bool bHasAdvantage;
        for (uint i = 0; i < cacheClasses[_aClassId].types.length; i++) {
            for (uint j = 0; j < cacheClasses[_bClassId].types.length; j++) {
                if (typeAdvantages[cacheClasses[_aClassId].types[i]] == cacheClasses[_bClassId].types[j]) {
                    aHasAdvantage = true;
                }
                if (typeAdvantages[cacheClasses[_bClassId].types[j]] == cacheClasses[_aClassId].types[i]) {
                    bHasAdvantage = true;
                }
            }
        }
        
        if (aHasAdvantage)
            aAttackSupport += typeBuffPercentage;
        if (bHasAdvantage)
            bAttackSupport += typeBuffPercentage;
    }
    
    function calculateBattleStats(AttackData att) constant private returns(uint32 aExp, uint16[6] aStats, uint32 bExp, uint16[6] bStats) {
        uint32 aClassId = 0;
        (aClassId, aExp, aStats) = getCurrentStats(att.aa);
        uint32 bClassId = 0;
        (bClassId, bExp, bStats) = getCurrentStats(att.ba);
        
        // check gasonsupport
        (att.aAttackSupport, att.bAttackSupport) = getTypeSupport(aClassId, bClassId);
        att.aAttackSupport += getAncestorBuff(aClassId, att.asup);
        att.bAttackSupport += getAncestorBuff(bClassId, att.bsup);
        
        uint16 aDefenseBuff = getGasonSupport(aClassId, att.asup);
        uint16 bDefenseBuff = getGasonSupport(bClassId, att.bsup);
        
        // add attack
        aStats[1] += aStats[1] * att.aAttackSupport / 100;
        aStats[3] += aStats[3] * att.aAttackSupport / 100;
        bStats[1] += bStats[1] * att.bAttackSupport / 100;
        bStats[3] += bStats[3] * att.bAttackSupport / 100;
        
        // add offense
        aStats[2] += aStats[2] * aDefenseBuff / 100;
        aStats[4] += aStats[4] * aDefenseBuff / 100;
        bStats[2] += bStats[2] * bDefenseBuff / 100;
        bStats[4] += bStats[4] * bDefenseBuff / 100;
        
    }
    
    function attack(AttackData att) constant private returns(uint32 aExp, uint32 bExp, uint8 ran, bool win) {
        uint16[6] memory aStats;
        uint16[6] memory bStats;
        (aExp, aStats, bExp, bStats) = calculateBattleStats(att);
        
        ran = getRandom(maxRandomRound+2, att.index, lastAttacker);
        uint16 round = 0;
        while (round < maxRandomRound && aStats[0] > 0 && bStats[0] > 0) {
            if (aStats[5] > bStats[5]) {
                if (round % 2 == 0) {
                    // a attack 
                    bStats[0] = safeDeduct(bStats[0], calHpDeducted(aStats[1], aStats[3], bStats[2], bStats[4], round==ran));
                } else {
                    aStats[0] = safeDeduct(aStats[0], calHpDeducted(bStats[1], bStats[3], aStats[2], aStats[4], round==ran));
                }
                
            } else {
                if (round % 2 != 0) {
                    bStats[0] = safeDeduct(bStats[0], calHpDeducted(aStats[1], aStats[3], bStats[2], bStats[4], round==ran));
                } else {
                    aStats[0] = safeDeduct(aStats[0], calHpDeducted(bStats[1], bStats[3], aStats[2], aStats[4], round==ran));
                }
            }
            round+= 1;
        }
        
        win = aStats[0] >= bStats[0];
    }
    
    function destroyCastle(uint32 _castleId, bool win) requireCastleContract private returns(uint32){
        // if castle win, ignore
        if (win)
            return 0;
        EtheremonCastleContract castle = EtheremonCastleContract(castleContract);
        uint32 totalWin;
        uint32 totalLose;
        uint32 brickNumber;
        (totalWin, totalLose, brickNumber) = castle.getCastleWinLose(_castleId);
        if (brickNumber + totalWin/winBrickReturn <= totalLose + 1) {
            castle.removeCastleFromActive(_castleId);
            return brickNumber;
        }
        return 0;
    }
    
    function hasValidParam(address trainer, uint64 _a1, uint64 _a2, uint64 _a3, uint64 _s1, uint64 _s2, uint64 _s3) constant public returns(bool) {
        if (_a1 == 0 || _a2 == 0 || _a3 == 0)
            return false;
        if (_a1 == _a2 || _a1 == _a3 || _a1 == _s1 || _a1 == _s2 || _a1 == _s3)
            return false;
        if (_a2 == _a3 || _a2 == _s1 || _a2 == _s2 || _a2 == _s3)
            return false;
        if (_a3 == _s1 || _a3 == _s2 || _a3 == _s3)
            return false;
        if (_s1 > 0 && (_s1 == _s2 || _s1 == _s3))
            return false;
        if (_s2 > 0 && (_s2 == _s3))
            return false;
        
        if (!isValidOwner(_a1, trainer) || !isValidOwner(_a2, trainer) || !isValidOwner(_a3, trainer))
            return false;
        if (_s1 > 0 && !isValidOwner(_s1, trainer))
            return false;
        if (_s2 > 0 && !isValidOwner(_s2, trainer))
            return false;
        if (_s3 > 0 && !isValidOwner(_s3, trainer))
            return false;
        return true;
    }
    
    // public
    function createCastle(string _name, uint64 _a1, uint64 _a2, uint64 _a3, uint64 _s1, uint64 _s2, uint64 _s3) isActive requireDataContract 
        requireTradeContract requireCastleContract payable external {
        
        if (!hasValidParam(msg.sender, _a1, _a2, _a3, _s1, _s2, _s3))
            revert();
        
        EtheremonTradeInterface trade = EtheremonTradeInterface(tradeContract);
        if (trade.isOnTrading(_a1) || trade.isOnTrading(_a2) || trade.isOnTrading(_a3) || 
            trade.isOnTrading(_s1) || trade.isOnTrading(_s2) || trade.isOnTrading(_s3))
            revert();
        
        EtheremonCastleContract castle = EtheremonCastleContract(castleContract);
        uint32 castleId;
        uint castleIndex = 0;
        uint32 numberBrick = 0;
        (castleId, castleIndex, numberBrick) = castle.getCastleBasicInfo(msg.sender);
        if (castleId > 0 || castleIndex > 0)
            revert();

        if (castle.countActiveCastle() >= uint(maxActiveCastle))
            revert();
        numberBrick = uint32(msg.value / brickPrice) + castle.getTrainerBrick(msg.sender);
        if (numberBrick < castleMinBrick) {
            revert();
        }
        castle.deductTrainerBrick(msg.sender, castle.getTrainerBrick(msg.sender));
        totalEarn += msg.value;
        castleId = castle.addCastle(msg.sender, _name, _a1, _a2, _a3, _s1, _s2, _s3, numberBrick);
        EventCreateCastle(msg.sender, castleId);
    }
    
    function renameCastle(uint32 _castleId, string _name) isActive requireCastleContract external {
        EtheremonCastleContract castle = EtheremonCastleContract(castleContract);
        uint index;
        address owner;
        uint256 price;
        (index, owner, price) = castle.getCastleBasicInfoById(_castleId);
        if (owner != msg.sender)
            revert();
        castle.renameCastle(_castleId, _name);
    }
    
    function removeCastle(uint32 _castleId) isActive requireCastleContract external {
        EtheremonCastleContract castle = EtheremonCastleContract(castleContract);
        uint index;
        address owner;
        uint256 price;
        (index, owner, price) = castle.getCastleBasicInfoById(_castleId);
        if (owner != msg.sender)
            revert();
        if (index > 0) {
            castle.removeCastleFromActive(_castleId);
        }
        EventRemoveCastle(_castleId);
    }
    
    function getSupporterInfo(uint64 s1, uint64 s2, uint64 s3) constant public returns(SupporterData sData) {
        uint temp;
        uint32 __;
        EtheremonGateway gateway = EtheremonGateway(worldContract);
        if (s1 > 0)
            (sData.classId1, __, sData.isGason1, temp, temp) = gateway.getObjBattleInfo(s1);
        if (s2 > 0)
            (sData.classId2, __, sData.isGason2, temp, temp) = gateway.getObjBattleInfo(s2);
        if (s3 > 0)
            (sData.classId3, __, sData.isGason3, temp, temp) = gateway.getObjBattleInfo(s3);

        EtheremonDataBase data = EtheremonDataBase(dataContract);
        if (sData.isGason1) {
            sData.type1 = data.getElementInArrayType(ArrayType.CLASS_TYPE, uint64(sData.classId1), 0);
        }
        
        if (sData.isGason2) {
            sData.type2 = data.getElementInArrayType(ArrayType.CLASS_TYPE, uint64(sData.classId2), 0);
        }
        
        if (sData.isGason3) {
            sData.type3 = data.getElementInArrayType(ArrayType.CLASS_TYPE, uint64(sData.classId3), 0);
        }
    }
    
    function attackCastle(uint32 _castleId, uint64 _aa1, uint64 _aa2, uint64 _aa3, uint64 _as1, uint64 _as2, uint64 _as3) isActive requireDataContract 
        requireTradeContract requireCastleContract external {
        if (!hasValidParam(msg.sender, _aa1, _aa2, _aa3, _as1, _as2, _as3))
            revert();
        
        EtheremonCastleContract castle = EtheremonCastleContract(castleContract);
        BattleLogData memory log;
        (log.castleIndex, log.castleOwner, log.castleBrickBonus) = castle.getCastleBasicInfoById(_castleId);
        if (log.castleIndex == 0 || log.castleOwner == msg.sender)
            revert();
        
        EtheremonGateway gateway = EtheremonGateway(worldContract);
        BattleMonsterData memory b;
        (b.a1, b.a2, b.a3, b.s1, b.s2, b.s3) = castle.getCastleObjInfo(_castleId);
        lastAttacker = msg.sender;

        // init data
        uint8 countWin = 0;
        AttackData memory att;
        att.asup = getSupporterInfo(b.s1, b.s2, b.s3);
        att.bsup = getSupporterInfo(_as1, _as2, _as3);
        
        att.index = 0;
        att.aa = b.a1;
        att.ba = _aa1;
        (log.monsterExp[0], log.monsterExp[3], log.randoms[0], log.win) = attack(att);
        gateway.increaseMonsterExp(att.aa, getGainExp(log.monsterExp[0], log.monsterExp[3], log.win));
        gateway.increaseMonsterExp(att.ba, getGainExp(log.monsterExp[3], log.monsterExp[0], !log.win));
        if (log.win)
            countWin += 1;
        
        
        att.index = 1;
        att.aa = b.a2;
        att.ba = _aa2;
        (log.monsterExp[1], log.monsterExp[4], log.randoms[1], log.win) = attack(att);
        gateway.increaseMonsterExp(att.aa, getGainExp(log.monsterExp[1], log.monsterExp[4], log.win));
        gateway.increaseMonsterExp(att.ba, getGainExp(log.monsterExp[4], log.monsterExp[1], !log.win));
        if (log.win)
            countWin += 1;   

        att.index = 2;
        att.aa = b.a3;
        att.ba = _aa3;
        (log.monsterExp[2], log.monsterExp[5], log.randoms[2], log.win) = attack(att);
        gateway.increaseMonsterExp(att.aa, getGainExp(log.monsterExp[2], log.monsterExp[5], log.win));
        gateway.increaseMonsterExp(att.ba, getGainExp(log.monsterExp[5], log.monsterExp[2], !log.win));
        if (log.win)
            countWin += 1; 
        
        
        log.castleBrickBonus = destroyCastle(_castleId, countWin>1);
        if (countWin>1) {
            log.result = BattleResult.CASTLE_WIN;
        } else {
            if (log.castleBrickBonus > 0) {
                log.result = BattleResult.CASTLE_DESTROYED;
            } else {
                log.result = BattleResult.CASTLE_LOSE;
            }
        }
        
        log.battleId = castle.addBattleLog(_castleId, msg.sender, log.randoms[0], log.randoms[1], log.randoms[2], 
            uint8(log.result), log.monsterExp[0], log.monsterExp[1], log.monsterExp[2]);
        
        castle.addBattleLogMonsterInfo(log.battleId, _aa1, _aa2, _aa3, _as1, _as2, _as3, log.monsterExp[3], log.monsterExp[4], log.monsterExp[5]);
    
        EventAttackCastle(msg.sender, _castleId, uint8(log.result));
    }
    
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_objId","type":"uint64"}],"name":"getMonsterCP","outputs":[{"name":"","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"dataContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"moderators","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"worldContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"trainer","type":"address"},{"name":"_a1","type":"uint64"},{"name":"_a2","type":"uint64"},{"name":"_a3","type":"uint64"},{"name":"_s1","type":"uint64"},{"name":"_s2","type":"uint64"},{"name":"_s3","type":"uint64"}],"name":"hasValidParam","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_objId","type":"uint64"}],"name":"getObjExp","outputs":[{"name":"","type":"uint32"},{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_attack","type":"uint16"},{"name":"_specialAttack","type":"uint16"},{"name":"_defense","type":"uint16"},{"name":"_specialDefense","type":"uint16"},{"name":"_lucky","type":"bool"}],"name":"calHpDeducted","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_classId1","type":"uint32"},{"name":"_classId2","type":"uint32"},{"name":"_classId3","type":"uint32"},{"name":"_classId4","type":"uint32"}],"name":"fastSetCacheClassInfo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_type1","type":"uint8"},{"name":"_type2","type":"uint8"}],"name":"setTypeAdvantage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"genLevelExp","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"setTypeAdvantages","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_objId","type":"uint64"}],"name":"isOnBattle","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"maxRan","type":"uint8"},{"name":"index","type":"uint8"},{"name":"priAddress","type":"address"}],"name":"getRandom","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_castleId","type":"uint32"},{"name":"_name","type":"string"}],"name":"renameCastle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalWithdraw","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_castleId","type":"uint32"},{"name":"_aa1","type":"uint64"},{"name":"_aa2","type":"uint64"},{"name":"_aa3","type":"uint64"},{"name":"_as1","type":"uint64"},{"name":"_as2","type":"uint64"},{"name":"_as3","type":"uint64"}],"name":"attackCastle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_isMaintaining","type":"bool"}],"name":"UpdateMaintaining","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"castleMinBrick","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_a1","type":"uint64"},{"name":"_a2","type":"uint64"},{"name":"_a3","type":"uint64"},{"name":"_s1","type":"uint64"},{"name":"_s2","type":"uint64"},{"name":"_s3","type":"uint64"}],"name":"createCastle","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"totalModerators","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_classId","type":"uint32"}],"name":"getCacheClassSize","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_sendTo","type":"address"},{"name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"s1","type":"uint64"},{"name":"s2","type":"uint64"},{"name":"s3","type":"uint64"}],"name":"getSupporterInfo","outputs":[{"components":[{"name":"classId1","type":"uint32"},{"name":"isGason1","type":"bool"},{"name":"type1","type":"uint8"},{"name":"classId2","type":"uint32"},{"name":"isGason2","type":"bool"},{"name":"type2","type":"uint8"},{"name":"classId3","type":"uint32"},{"name":"isGason3","type":"bool"},{"name":"type3","type":"uint8"}],"name":"sData","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_dataContract","type":"address"},{"name":"_worldContract","type":"address"},{"name":"_tradeContract","type":"address"},{"name":"_castleContract","type":"address"}],"name":"setContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"winBrickReturn","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newModerator","type":"address"}],"name":"AddModerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_ancestorBuffPercentage","type":"uint8"},{"name":"_gasonBuffPercentage","type":"uint8"},{"name":"_typeBuffPercentage","type":"uint8"},{"name":"_castleMinBrick","type":"uint32"},{"name":"_maxLevel","type":"uint8"},{"name":"_maxActiveCastle","type":"uint16"},{"name":"_maxRandomRound","type":"uint8"},{"name":"_minHpDeducted","type":"uint8"}],"name":"setConfig","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"GEN0_NO","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"NO_MONSTER","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_objId","type":"uint64"}],"name":"getCurrentStats","outputs":[{"name":"","type":"uint32"},{"name":"","type":"uint32"},{"name":"","type":"uint16[6]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ancestorBuffPercentage","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"typeBuffPercentage","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_classId","type":"uint32"}],"name":"setCacheClassInfo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxActiveCastle","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"exp","type":"uint32"}],"name":"getLevel","outputs":[{"name":"","type":"uint8"}],"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":"_exp1","type":"uint32"},{"name":"_exp2","type":"uint32"},{"name":"_win","type":"bool"}],"name":"getGainExp","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxLevel","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minHpDeducted","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_objId","type":"uint64"}],"name":"getMonsterLevel","outputs":[{"name":"","type":"uint32"},{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_castleId","type":"uint32"}],"name":"removeCastle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gasonBuffPercentage","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"brickPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"STAT_COUNT","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_objId","type":"uint64"},{"name":"_owner","type":"address"}],"name":"isValidOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEarn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"castleContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxRandomRound","outputs":[{"name":"","type":"uint8"}],"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":true,"inputs":[],"name":"tradeContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_dataContract","type":"address"},{"name":"_worldContract","type":"address"},{"name":"_tradeContract","type":"address"},{"name":"_castleContract","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"castleId","type":"uint32"}],"name":"EventCreateCastle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"attacker","type":"address"},{"indexed":false,"name":"castleId","type":"uint32"},{"indexed":false,"name":"result","type":"uint8"}],"name":"EventAttackCastle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"castleId","type":"uint32"}],"name":"EventRemoveCastle","type":"event"}]

606060405260008060146101000a81548161ffff021916908361ffff1602179055506001600260006101000a81548160ff021916908315150217905550600a600960006101000a81548160ff021916908360ff160217905550600a600960016101000a81548160ff021916908360ff1602179055506014600960026101000a81548160ff021916908360ff1602179055506064600960036101000a81548160ff021916908360ff160217905550601e600960046101000a81548161ffff021916908361ffff1602179055506004600960066101000a81548160ff021916908360ff1602179055506008600960076101000a81548160ff021916908360ff1602179055506005600960086101000a81548163ffffffff021916908363ffffffff160217905550661c6bf526340000600a55600a600b60006101000a81548160ff021916908360ff1602179055506000600c556000600d556000600e60006101000a815481600160a060020a030219169083600160a060020a03160217905550341561018857600080fd5b604051608080614e888339810160405280805191906020018051919060200180519190602001805160008054600160a060020a03338116600160a060020a0319928316179092556003805498831698821698909817909755600280549682166101000261010060a860020a03199097169690961790955560048054948616948716949094179093555050600580549290911691909216179055614c58806102306000396000f3006060604052600436106102585763ffffffff60e060020a6000350416630672859b811461025d5780630d6688181461029857806314d0f1ba146102c757806318758480146102fa5780631bab09081461030d5780631cd982351461035657806320046e911461039657806325ae9c97146103de5780633171cec41461040e57806333ced3211461042d57806333d24dc41461044057806335f097f3146104535780633a34f09a1461047257806343b37b45146104b3578063455fd623146104db57806347cf89711461050057806348ef5aa8146105465780634a3d3c091461055e5780634aaff0061461058a5780634efb023e146105c9578063500e4297146105dc578063522f68151461061c57806354f0bde71461063e578063615dbebb146106695780636b2a26911461069a5780636c81fd6d146106ad578063720ffedb146106cc57806373d65c0014610715578063775e38f71461072857806384be816c1461073b57806385bbb53a146107a8578063891fe103146107bb5780638da5cb5b146107ce5780638fd8f783146107e1578063a0c66b43146107fd578063b2cad9b714610810578063b85d62751461082c578063be44bd211461084b578063cc06c35914610872578063cfa8307914610885578063d2169d2f14610898578063d4c15161146108d9578063d5425571146108f5578063d8e20e2c14610908578063d98e14bd1461091b578063da5671ad1461092e578063dffd722f14610959578063eb83f0151461096c578063ebfa3c1b1461097f578063ee4e441614610992578063f2853292146109a5578063ffa640d8146109c4575b600080fd5b341561026857600080fd5b61027c6001604060020a03600435166109d7565b6040516001604060020a03909116815260200160405180910390f35b34156102a357600080fd5b6102ab610a34565b604051600160a060020a03909116815260200160405180910390f35b34156102d257600080fd5b6102e6600160a060020a0360043516610a43565b604051901515815260200160405180910390f35b341561030557600080fd5b6102ab610a58565b341561031857600080fd5b6102e6600160a060020a03600435166001604060020a0360243581169060443581169060643581169060843581169060a43581169060c43516610a6c565b341561036157600080fd5b6103756001604060020a0360043516610d67565b60405163ffffffff9283168152911660208201526040908101905180910390f35b34156103a157600080fd5b6103c761ffff600435811690602435811690604435811690606435166084351515610e54565b60405161ffff909116815260200160405180910390f35b34156103e957600080fd5b61040c63ffffffff60043581169060243581169060443581169060643516610f00565b005b341561041957600080fd5b61040c60ff60043581169060243516610fa3565b341561043857600080fd5b61040c61100b565b341561044b57600080fd5b61040c6110b9565b341561045e57600080fd5b6102e66001604060020a03600435166113e2565b341561047d57600080fd5b61049d60ff60043581169060243516600160a060020a0360443516611614565b60405160ff909116815260200160405180910390f35b34156104be57600080fd5b61040c6004803563ffffffff16906024803590810191013561166e565b34156104e657600080fd5b6104ee6117d4565b60405190815260200160405180910390f35b341561050b57600080fd5b61040c63ffffffff600435166001604060020a0360243581169060443581169060643581169060843581169060a43581169060c435166117da565b341561055157600080fd5b61040c6004351515612183565b341561056957600080fd5b6105716121b1565b60405163ffffffff909116815260200160405180910390f35b61040c60246004803582810192910135906001604060020a03903581169060443581169060643581169060843581169060a43581169060c435166121c9565b34156105d457600080fd5b6103c7612923565b34156105e757600080fd5b6105f863ffffffff60043516612945565b60405180848152602001838152602001828152602001935050505060405180910390f35b341561062757600080fd5b61040c600160a060020a036004351660243561296a565b341561064957600080fd5b6104ee6001604060020a0360043581169060243581169060443516612a1e565b341561067457600080fd5b61040c600160a060020a0360043581169060243581169060443581169060643516612e9d565b34156106a557600080fd5b61049d612f5b565b34156106b857600080fd5b61040c600160a060020a0360043516612f6f565b34156106d757600080fd5b61040c60ff60043581169060243581169060443581169063ffffffff606435169060843581169061ffff60a435169060c43581169060e43516613019565b341561072057600080fd5b61049d613121565b341561073357600080fd5b61049d613126565b341561074657600080fd5b61075a6001604060020a036004351661312b565b60405163ffffffff808516825283166020820152604081018260c080838360005b8381101561079357808201518382015260200161077b565b50505050905001935050505060405180910390f35b34156107b357600080fd5b61049d613314565b34156107c657600080fd5b61049d61331d565b34156107d957600080fd5b6102ab61332c565b34156107ec57600080fd5b61040c63ffffffff6004351661333b565b341561080857600080fd5b6103c76138fc565b341561081b57600080fd5b61049d63ffffffff6004351661390e565b341561083757600080fd5b61040c600160a060020a036004351661398f565b341561085657600080fd5b61057163ffffffff600435811690602435166044351515613a39565b341561087d57600080fd5b61049d613b6b565b341561089057600080fd5b61049d613b7b565b34156108a357600080fd5b6108b76001604060020a0360043516613b84565b60405163ffffffff909216825260ff1660208201526040908101905180910390f35b34156108e457600080fd5b61040c63ffffffff60043516613c81565b341561090057600080fd5b61049d613df4565b341561091357600080fd5b6104ee613e02565b341561092657600080fd5b61049d613e08565b341561093957600080fd5b6102e66001604060020a0360043516600160a060020a0360243516613e0d565b341561096457600080fd5b6104ee613f2b565b341561097757600080fd5b6102ab613f31565b341561098a57600080fd5b61049d613f40565b341561099d57600080fd5b6102e6613f53565b34156109b057600080fd5b61040c600160a060020a0360043516613f5c565b34156109cf57600080fd5b6102ab613fb3565b60006109e16148ec565b60008080806109ef8761312b565b96509094509250600090505b6006811015610a2657848160068110610a1057fe5b602002015161ffff1691909101906001016109fb565b506006900495945050505050565b600354600160a060020a031681565b60016020526000908152604090205460ff1681565b6002546101009004600160a060020a031681565b60006001604060020a0387161580610a8b57506001604060020a038616155b80610a9d57506001604060020a038516155b15610aaa57506000610d5c565b856001604060020a0316876001604060020a03161480610adb5750846001604060020a0316876001604060020a0316145b80610af75750836001604060020a0316876001604060020a0316145b80610b135750826001604060020a0316876001604060020a0316145b80610b2f5750816001604060020a0316876001604060020a0316145b15610b3c57506000610d5c565b846001604060020a0316866001604060020a03161480610b6d5750836001604060020a0316866001604060020a0316145b80610b895750826001604060020a0316866001604060020a0316145b80610ba55750816001604060020a0316866001604060020a0316145b15610bb257506000610d5c565b836001604060020a0316856001604060020a03161480610be35750826001604060020a0316856001604060020a0316145b80610bff5750816001604060020a0316856001604060020a0316145b15610c0c57506000610d5c565b6000846001604060020a0316118015610c515750826001604060020a0316846001604060020a03161480610c515750816001604060020a0316846001604060020a0316145b15610c5e57506000610d5c565b6000836001604060020a0316118015610c885750816001604060020a0316836001604060020a0316145b15610c9557506000610d5c565b610c9f8789613e0d565b1580610cb25750610cb08689613e0d565b155b80610cc45750610cc28589613e0d565b155b15610cd157506000610d5c565b6000846001604060020a0316118015610cf15750610cef8489613e0d565b155b15610cfe57506000610d5c565b6000836001604060020a0316118015610d1e5750610d1c8389613e0d565b155b15610d2b57506000610d5c565b6000826001604060020a0316118015610d4b5750610d498289613e0d565b155b15610d5857506000610d5c565b5060015b979650505050505050565b6000806000610d74614914565b600354600160a060020a031691506000826307202460878360405160e0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160e060405180830381600087803b1515610dd157600080fd5b6102c65a03f11515610de257600080fd5b505050604051805190602001805190602001805190602001805190602001805190602001805190602001805160e08a0152505063ffffffff9182166080880152600160a060020a0390921660408701529190911660208501908152919750915051826080015194509450505050915091565b60008060008315610e7a57600a61ffff600d8a0216049750600a61ffff600d8902160496505b610e8f88600461ffff60038a02165b04613fc2565b9150610ea487600461ffff6003890216610e89565b600b5490915060ff1661ffff8316108015610ec75750600b5460ff1661ffff8216105b15610ed957600b5460ff169250610ef5565b8061ffff168261ffff161115610ef157819250610ef5565b8092505b505095945050505050565b60005433600160a060020a0390811691161480610f3b5750600160a060020a03331660009081526001602081905260409091205460ff161515145b1515610f4657600080fd5b600354600160a060020a03161515610f5d57600080fd5b6002546101009004600160a060020a03161515610f7957600080fd5b610f828461333b565b610f8b8361333b565b610f948261333b565b610f9d8161333b565b50505050565b60005433600160a060020a0390811691161480610fde5750600160a060020a03331660009081526001602081905260409091205460ff161515145b1515610fe957600080fd5b60ff9182166000908152600660205260409020805460ff191691909216179055565b600080548190819033600160a060020a039081169116148061104b5750600160a060020a03331660009081526001602081905260409091205460ff161515145b151561105657600080fd5b506001915060649050805b606460ff8416116110b45760ff83166000908152600860205260409020805463ffffffff191663ffffffff83811691909117909155600190930192600a90600b8402160460050191508181019050611061565b505050565b60005433600160a060020a03908116911614806110f45750600160a060020a03331660009081526001602081905260409091205460ff161515145b15156110ff57600080fd5b600660208190527f3e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a31805460ff19908116600e179091557f8819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace298054821660101790557f75f96ab15d697e93042dc45b5c896c4b27e89bb6eaf39475c5c371cb2513f7d28054821660081790557fc5069e24aaadb2addc3e52e868fcf3f4f8acf5a87e24300992fd4540c2a87eed8054821660091790557fbfd358e93f18da3ed276c3afdbdba00b8f0b6008a03476a6a86bd6320ee6938b8054821660021790557f697b2bd7bb2984c4e0dc14c79c987d37818484a62958b9c45a0e8b962f20650f80548216600b1790557f4ced6d0d36392b04cc5d8761b1327b3bbba6e1089c77f60a9a9ca18e05e4f00e8054821660031790557fb8d683c9d414f481826f3e7fe14b3ac6ae8c73450778287390c4bb8cb9f2e80b8054821660051790557fca4d0c6c94a9477136dd41a99cc19ecbe441c8f6609efe7c6fa65be007a4732380548216600f1790557f85291c2e7881182c13e19eca9b58927ebfdc2c5d04882018eeb33d8241d357118054821660129081179091557f0b94fa1b86997cc1f1148bfbe25b674e8cefc7cc6f976aa8d7c7966bd4cca3478054831660071790557f248457bacb20e239ae314d8db91c0f270e453c28ee138c84f97aea6cfcf9a499805483169093179092557faca6cdb4b5fe0ec50731a73f714dd191dc1911bfeb3f9eeb9e94ed0f6065ef8d8054821660111790557ff130046d53bc87538ab17e4752ba5f5082985eecc06ccb932c5a55e8242dd50280548216600d1790557f6fac4587033fa036e2426ad0134940d3a683633cc2b2b7862f39195344f163d180548216600c1790557f84a4048ee77615560f9afb39551a46e123dd0dd6c928af241dc565271d0325698054821660011790556000919091527fee4750d043edce57577a49a1f0c4b389e3b8c38c27dc693bc6b7154c0728077180549091166004179055565b6000806000806000806113f3614914565b600354600554600160a060020a03918216975016945060009250829150856307202460898460405160e0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160e060405180830381600087803b151561145d57600080fd5b6102c65a03f1151561146e57600080fd5b505050604051805190602001805190602001805190602001805190602001805190602001805190602001805160e08901525063ffffffff90811660c088015290811660a08701529081166080860152600160a060020a0391821660408601908152921660208501526001604060020a0390921683529086169063f8a74501905160006040516060015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401606060405180830381600087803b151561153557600080fd5b6102c65a03f1151561154657600080fd5b50505060405180519060200180519060200180519296509094505063ffffffff9081169250600090851611801561157d5750600083115b156116045784600160a060020a031663dc268db9858a60006040516020015260405163ffffffff84811660e060020a0282529290921660048301526001604060020a03166024820152604401602060405180830381600087803b15156115e257600080fd5b6102c65a03f115156115f357600080fd5b505050604051805190509650611609565b600096505b505050505050919050565b6000600019430140600160a060020a03831601815b8460ff168160ff16108015611641575060068160ff16105b156116555761010082049150600101611629565b8560ff168281151561166357fe5b069695505050505050565b60025460009081908190819060ff161561168757600080fd5b600554600160a060020a0316151561169e57600080fd5b600554600160a060020a031693508363f31dec5a8860006040516060015260405163ffffffff83811660e060020a028252919091166004820152602401606060405180830381600087803b15156116f457600080fd5b6102c65a03f1151561170557600080fd5b50505060405180519060200180519060200180519295509093505063ffffffff16905033600160a060020a039081169083161461174157600080fd5b83600160a060020a03166343b37b458888886040518463ffffffff1660e060020a028152600401808463ffffffff1663ffffffff1681526020018060200182810382528484828181526020019250808284378201915050945050505050600060405180830381600087803b15156117b757600080fd5b6102c65a03f115156117c857600080fd5b50505050505050505050565b600d5481565b60006117e4614960565b60006117ee6149b9565b60006117f86149ee565b60025460ff161561180857600080fd5b600354600160a060020a0316151561181f57600080fd5b600454600160a060020a0316151561183657600080fd5b600554600160a060020a0316151561184d57600080fd5b61185c338d8d8d8d8d8d610a6c565b151561186757600080fd5b600554600160a060020a031695508563f31dec5a8e60006040516060015260405163ffffffff83811660e060020a028252919091166004820152602401606060405180830381600087803b15156118bd57600080fd5b6102c65a03f115156118ce57600080fd5b505050604051805190602001805190602001805163ffffffff16606089015250600160a060020a031686526080860190815251158061191f5750600160a060020a0333168551600160a060020a0316145b1561192957600080fd5b600254600160a060020a036101009091048116945086166301d439458e600060405160c0015260405163ffffffff83811660e060020a02825291909116600482015260240160c060405180830381600087803b151561198757600080fd5b6102c65a03f1151561199857600080fd5b50505060405180519060200180519060200180519060200180519060200180519060200180516001604060020a0390811660a08b015291821660808a015250908116606088019081529181166040880152918216602087015291168452600e805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a031617905560009250611a35905184608001518560a00151612a1e565b6020820152611a45898989612a1e565b6080820152600060c082015282516001604060020a0390811682528c166060820152611a7081613fe7565b8860a0015160a08a015160600160c08b015192151560e08c015260ff9390931690915263ffffffff92831690915291169052600160a060020a038416635643a7118251611ad38860a00151518960a0015160035b60200201518a60e00151613a39565b60405163ffffffff84811660e060020a0282526001604060020a0393909316600482015291166024820152604401600060405180830381600087803b1515611b1a57600080fd5b6102c65a03f11515611b2b57600080fd5b50505083600160a060020a0316635643a7118260600151611b668860a00151606001518960a0015160005b60200201518a60e0015115613a39565b60405163ffffffff84811660e060020a0282526001604060020a0393909316600482015291166024820152604401600060405180830381600087803b1515611bad57600080fd5b6102c65a03f11515611bbe57600080fd5b5050508460e0015115611bd2576001820191505b600160c082015260208301516001604060020a0390811682528b166060820152611bfb81613fe7565b8860a0015160200160a08a015160800160c08b015192151560e08c015260ff9390931660209092019190915263ffffffff92831690915291169052600160a060020a038416635643a7118251611c5f8860a00151602001518960a001516004611ac4565b60405163ffffffff84811660e060020a0282526001604060020a0393909316600482015291166024820152604401600060405180830381600087803b1515611ca657600080fd5b6102c65a03f11515611cb757600080fd5b50505083600160a060020a0316635643a7118260600151611ce68860a00151608001518960a001516001611b56565b60405163ffffffff84811660e060020a0282526001604060020a0393909316600482015291166024820152604401600060405180830381600087803b1515611d2d57600080fd5b6102c65a03f11515611d3e57600080fd5b5050508460e0015115611d52576001820191505b600260c082015260408301516001604060020a0390811682528a166060820152611d7b81613fe7565b8860a0015160400160a08a015160a00160c08b015192151560e08c015260ff9390931660409092019190915263ffffffff92831690915291169052600160a060020a038416635643a7118251611ddf8860a00151604001518960a001516005611ac4565b60405163ffffffff84811660e060020a0282526001604060020a0393909316600482015291166024820152604401600060405180830381600087803b1515611e2657600080fd5b6102c65a03f11515611e3757600080fd5b50505083600160a060020a0316635643a7118260600151611e668860a0015160a001518960a001516002611b56565b60405163ffffffff84811660e060020a0282526001604060020a0393909316600482015291166024820152604401600060405180830381600087803b1515611ead57600080fd5b6102c65a03f11515611ebe57600080fd5b5050508460e0015115611ed2576001820191505b611ee28d60018460ff161161418c565b63ffffffff166060860152600160ff83161115611f1657610100850160005b90816002811115611f0e57fe5b905250611f3e565b6000856060015163ffffffff161115611f355761010085016002611f01565b60016101008601525b85600160a060020a0316631f674b5a8e338860c00151518960c00151602001518a60c00151604001518b61010001516002811115611f7857fe5b8c60a00151518d60a00151602001518e60a001516040015160006040516020015260405163ffffffff8b811660e060020a028252998a166004820152600160a060020a0398909816602489015260ff968716604489015294861660648801529285166084870152931660a485015291841660c484015290831660e483015290911661010482015261012401602060405180830381600087803b151561201c57600080fd5b6102c65a03f1151561202d57600080fd5b50505060405180516001604060020a031660208701908152600160a060020a03881691506330a8087090518e8e8e8e8e8e8d60a00151606001518e60a00151608001518f60a0015160a0015160405163ffffffff8c811660e060020a0282526001604060020a039b8c166004830152998b166024820152978a1660448901529589166064880152938816608487015291871660a486015290951660c484015293831660e4830152928216610104820152911661012482015261014401600060405180830381600087803b151561210257600080fd5b6102c65a03f1151561211357600080fd5b50505033600160a060020a03167f26194856c6c579d36bc6b21531c958237d96b3f18856c8a745fd16e0133f1e8a8e876101000151600281111561215357fe5b60405163ffffffff909216825260ff1660208201526040908101905180910390a250505050505050505050505050565b60005433600160a060020a0390811691161461219e57600080fd5b6002805460ff1916911515919091179055565b60095468010000000000000000900463ffffffff1681565b600254600090819081908190819060ff16156121e457600080fd5b600354600160a060020a031615156121fb57600080fd5b600454600160a060020a0316151561221257600080fd5b600554600160a060020a0316151561222957600080fd5b612238338c8c8c8c8c8c610a6c565b151561224357600080fd5b600454600160a060020a031694508463a847a71c8c60006040516020015260405160e060020a63ffffffff84160281526001604060020a039091166004820152602401602060405180830381600087803b151561229f57600080fd5b6102c65a03f115156122b057600080fd5b5050506040518051905080612333575084600160a060020a031663a847a71c8b60006040516020015260405160e060020a63ffffffff84160281526001604060020a039091166004820152602401602060405180830381600087803b151561231757600080fd5b6102c65a03f1151561232857600080fd5b505050604051805190505b806123ac575084600160a060020a031663a847a71c8a60006040516020015260405160e060020a63ffffffff84160281526001604060020a039091166004820152602401602060405180830381600087803b151561239057600080fd5b6102c65a03f115156123a157600080fd5b505050604051805190505b80612425575084600160a060020a031663a847a71c8960006040516020015260405160e060020a63ffffffff84160281526001604060020a039091166004820152602401602060405180830381600087803b151561240957600080fd5b6102c65a03f1151561241a57600080fd5b505050604051805190505b8061249e575084600160a060020a031663a847a71c8860006040516020015260405160e060020a63ffffffff84160281526001604060020a039091166004820152602401602060405180830381600087803b151561248257600080fd5b6102c65a03f1151561249357600080fd5b505050604051805190505b80612517575084600160a060020a031663a847a71c8760006040516020015260405160e060020a63ffffffff84160281526001604060020a039091166004820152602401602060405180830381600087803b15156124fb57600080fd5b6102c65a03f1151561250c57600080fd5b505050604051805190505b1561252157600080fd5b5050600554600160a060020a031691506000808363f8a7450133836040516060015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401606060405180830381600087803b151561258157600080fd5b6102c65a03f1151561259257600080fd5b505050604051805190602001805190602001805192955090935090915050600063ffffffff841611806125c55750600082115b156125cf57600080fd5b600954640100000000900461ffff16600160a060020a03851663d7ebf53d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561262457600080fd5b6102c65a03f1151561263557600080fd5b5050506040518051905010151561264b57600080fd5b83600160a060020a0316632ecfa02c3360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156126a257600080fd5b6102c65a03f115156126b357600080fd5b50505060405180519050600a54348115156126ca57fe5b04019050600960089054906101000a900463ffffffff1663ffffffff168163ffffffff1610156126f957600080fd5b600160a060020a038416635b188d403382632ecfa02c8260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561275757600080fd5b6102c65a03f1151561276857600080fd5b5050506040518051905060006040516020015260405163ffffffff84811660e060020a028252600160a060020a0393909316600482015291166024820152604401602060405180830381600087803b15156127c257600080fd5b6102c65a03f115156127d357600080fd5b50505060405180515050600c805434019055600160a060020a03841663b5e5a50a338f8f8f8f8f8f8f8f8b60006040516020015260405163ffffffff8c811660e060020a028252600160a060020a038c16600483019081526001604060020a038a811660448501528981166064850152888116608485015287811660a485015286811660c4850152851660e48401529083166101048301526101206024830190815261012483018b90529091610144018b8b8082843782019150509b505050505050505050505050602060405180830381600087803b15156128b457600080fd5b6102c65a03f115156128c557600080fd5b5050506040518051935050600160a060020a0333167fb67c02473855217c5523d6db57e34ef9aeea067dffec2a3e33dc642f751dc1498460405163ffffffff909116815260200160405180910390a250505050505050505050505050565b60005474010000000000000000000000000000000000000000900461ffff1681565b63ffffffff166000908152600760205260409020805460018201546002909201549092565b6000805433600160a060020a03908116911614806129a65750600160a060020a03331660009081526001602081905260409091205460ff161515145b15156129b157600080fd5b30600160a060020a0316318211156129c857600080fd5b6129d6600c54600d546142ef565b9050808211156129e557600080fd5b600d805483019055600160a060020a03831682156108fc0283604051600060405180830381858888f1935050505015156110b457600080fd5b612a26614a21565b60025460009081906101009004600160a060020a0316816001604060020a03881681901115612af05781600160a060020a031662119f3489600060405160a0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160a060405180830381600087803b1515612aa557600080fd5b6102c65a03f11515612ab657600080fd5b50505060405180519060200180519060200180519060200180519060200180515050901515602089015263ffffffff909216875290945092505b6000876001604060020a03161115612ba65781600160a060020a031662119f3488600060405160a0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160a060405180830381600087803b1515612b5857600080fd5b6102c65a03f11515612b6957600080fd5b50505060405180519060200180519060200180519060200180519060200180515050901515608089015263ffffffff909216606088015290945092505b6000866001604060020a03161115612c5c5781600160a060020a031662119f3487600060405160a0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160a060405180830381600087803b1515612c0e57600080fd5b6102c65a03f11515612c1f57600080fd5b5050506040518051906020018051906020018051906020018051906020018051505090151560e089015263ffffffff90921660c088015290945092505b50600354600160a060020a0316602085015115612d1f57600160a060020a0381166362b21ad76000875163ffffffff16600080604051602001526040518463ffffffff1660e060020a02815260040180846004811115612cb857fe5b60ff168152602001836001604060020a03166001604060020a031681526020018281526020019350505050602060405180830381600087803b1515612cfc57600080fd5b6102c65a03f11515612d0d57600080fd5b505050604051805160ff166040870152505b846080015115612dd85780600160a060020a03166362b21ad76000876060015163ffffffff16600080604051602001526040518463ffffffff1660e060020a02815260040180846004811115612d7157fe5b60ff168152602001836001604060020a03166001604060020a031681526020018281526020019350505050602060405180830381600087803b1515612db557600080fd5b6102c65a03f11515612dc657600080fd5b505050604051805160ff1660a0870152505b8460e0015115612e925780600160a060020a03166362b21ad760008760c0015163ffffffff16600080604051602001526040518463ffffffff1660e060020a02815260040180846004811115612e2a57fe5b60ff168152602001836001604060020a03166001604060020a031681526020018281526020019350505050602060405180830381600087803b1515612e6e57600080fd5b6102c65a03f11515612e7f57600080fd5b505050604051805160ff16610100870152505b505050509392505050565b60005433600160a060020a0390811691161480612ed85750600160a060020a03331660009081526001602081905260409091205460ff161515145b1515612ee357600080fd5b60038054600160a060020a0395861673ffffffffffffffffffffffffffffffffffffffff1991821617909155600280549486166101000274ffffffffffffffffffffffffffffffffffffffff001990951694909417909355600480549285169284169290921790915560058054919093169116179055565b600954670100000000000000900460ff1681565b60005433600160a060020a03908116911614612f8a57600080fd5b600160a060020a03811660009081526001602052604090205460ff16151561301657600160a060020a03811660009081526001602081905260408220805460ff191682179055815461ffff7401000000000000000000000000000000000000000080830482169093011690910275ffff0000000000000000000000000000000000000000199091161790555b50565b60005433600160a060020a03908116911614806130545750600160a060020a03331660009081526001602081905260409091205460ff161515145b151561305f57600080fd5b6009805460ff1990811660ff9a8b161761ff001916610100998b16999099029890981762ff0000191662010000978a1697909702969096176bffffffff000000000000000019166801000000000000000063ffffffff96909616959095029490941763ff00000019166301000000938816939093029290921765ffff00000000191664010000000061ffff92909216919091021766ff000000000000191666010000000000009186169190910217909155600b80549092169216919091179055565b601881565b600381565b6000806131366148ec565b60006131406148ec565b600354600160a060020a03169150600080808061315c8a610d67565b909450925063ffffffff8416151561317c57838386985098509850613307565b600091506131898361390e565b9050600091505b600682101561325f5785600160a060020a03166362b21ad760038c856000604051602001526040518463ffffffff1660e060020a028152600401808460048111156131d757fe5b60ff168152602001836001604060020a03166001604060020a031681526020018281526020019350505050602060405180830381600087803b151561321b57600080fd5b6102c65a03f1151561322c57600080fd5b505050604051805160ff16905085836006811061324557fe5b61ffff909216602092909202015260019190910190613190565b600091505b63ffffffff84166000908152600760205260409020600101548210156132fd5763ffffffff8416600090815260076020526040902060010180546132d69190849081106132ad57fe5b6000918252602091829020828204015460ff929091066101000a90048116906003840216614303565b8583600681106132e257fe5b6020020181815161ffff910116905250600190910190613264565b8383869850985098505b5050505050509193909250565b60095460ff1681565b60095462010000900460ff1681565b600054600160a060020a031681565b600080600080613349614a6d565b613351614a6d565b613359614a6d565b60005433600160a060020a03908116911614806133945750600160a060020a03331660009081526001602081905260409091205460ff161515145b151561339f57600080fd5b600354600160a060020a031615156133b657600080fd5b6002546101009004600160a060020a031615156133d257600080fd5b60035460025463ffffffff8a16600081815260076020526040808220600160a060020a039586169c506101009094049094169950975090955088916341b0eb53918891829051602001526040518363ffffffff1660e060020a0281526004018083600481111561343e57fe5b60ff168152602001826001604060020a03166001604060020a0316815260200192505050602060405180830381600087803b151561347b57600080fd5b6102c65a03f1151561348c57600080fd5b505050604051805190509450846040518059106134a65750595b908082528060200260200182016040525092505b60008511156135955786600160a060020a03166362b21ad760008a63ffffffff16600189036000604051602001526040518463ffffffff1660e060020a0281526004018084600481111561350a57fe5b60ff168152602001836001604060020a03166001604060020a031681526020018281526020019350505050602060405180830381600087803b151561354e57600080fd5b6102c65a03f1151561355f57600080fd5b5050506040518051905083600187038151811061357857fe5b60ff909216602092830290910190910152600019909401936134ba565b838380516135a7929160200190614a7f565b5086600160a060020a03166341b0eb5360018a63ffffffff166000604051602001526040518363ffffffff1660e060020a028152600401808360048111156135eb57fe5b60ff168152602001826001604060020a03166001604060020a0316815260200192505050602060405180830381600087803b151561362857600080fd5b6102c65a03f1151561363957600080fd5b505050604051805190509450846040518059106136535750595b908082528060200260200182016040525091505b60008511156137425786600160a060020a03166362b21ad760018a63ffffffff16600189036000604051602001526040518463ffffffff1660e060020a028152600401808460048111156136b757fe5b60ff168152602001836001604060020a03166001604060020a031681526020018281526020019350505050602060405180830381600087803b15156136fb57600080fd5b6102c65a03f1151561370c57600080fd5b5050506040518051905082600187038151811061372557fe5b60ff90921660209283029091019091015260001990940193613667565b60018401828051613757929160200190614a7f565b5085600160a060020a03166388e9abb689600080604051602001526040518363ffffffff1660e060020a028152600401808363ffffffff1663ffffffff1681526020018260018111156137a657fe5b60ff16815260200192505050602060405180830381600087803b15156137cb57600080fd5b6102c65a03f115156137dc57600080fd5b505050604051805190509450846040518059106137f65750595b908082528060200260200182016040525090505b60008511156138dc5785600160a060020a0316635b626339896000600189036000604051602001526040518463ffffffff1660e060020a028152600401808463ffffffff1663ffffffff16815260200183600181111561386657fe5b60ff1681526020018281526020019350505050602060405180830381600087803b151561389257600080fd5b6102c65a03f115156138a357600080fd5b505050604051805190508160018703815181106138bc57fe5b63ffffffff9092166020928302909101909101526000199094019361380a565b600284018180516138f1929160200190614b25565b505050505050505050565b600954640100000000900461ffff1681565b600060016064825b8160ff168360ff1610156139865750600281830160ff16045b8160ff168360ff16101561398157600260ff848401160460ff811660009081526008602052604090205490915063ffffffff90811690861610156139755780915061397c565b8060010192505b61392f565b613916565b50909392505050565b60005433600160a060020a039081169116146139aa57600080fd5b600160a060020a03811660009081526001602081905260409091205460ff161515141561301657600160a060020a03166000908152600160205260408120805460ff19169055805475ffff0000000000000000000000000000000000000000198116740100000000000000000000000000000000000000009182900461ffff9081166000190116909102179055565b600080600080600080613a4b8861390e565b9450613a568961390e565b93508492508360030160ff168560ff161115613a7d57600260ff6003860116049250613a87565b600260ff86160492505b600191508260ff1660140a8360ff1660150a6103e802811515613aa657fe5b048002905060ff600385018116908616118015613ace57508260020260ff168460030160ff16115b80613af557508360030160ff168560ff1611158015613af557508260020260ff168560ff16115b15613b04576014601582020490505b8615613b1a57620f4240601e8202049150613b26565b620f4240600a82020491505b60ff60058601811690851610613b5f57600560ff868603160460ff1660020a63ffffffff168263ffffffff16811515613b5b57fe5b0491505b50979650505050505050565b6009546301000000900460ff1681565b600b5460ff1681565b6000806000613b91614914565b600354600160a060020a031691506000826307202460878360405160e0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160e060405180830381600087803b1515613bee57600080fd5b6102c65a03f11515613bff57600080fd5b505050604051805190602001805190602001805190602001805190602001805190602001805190602001805160e08a0152505063ffffffff91821660808801908152600160a060020a039093166040880152921660208601526001604060020a039092168452915051613c75836080015161390e565b94509450505050915091565b60025460009081908190819060ff1615613c9a57600080fd5b600554600160a060020a03161515613cb157600080fd5b600554600160a060020a031693508363f31dec5a8660006040516060015260405163ffffffff83811660e060020a028252919091166004820152602401606060405180830381600087803b1515613d0757600080fd5b6102c65a03f11515613d1857600080fd5b50505060405180519060200180519060200180519295509093505063ffffffff16905033600160a060020a0390811690831614613d5457600080fd5b6000831115613dba5783600160a060020a0316634377c1cf8660405163ffffffff83811660e060020a028252919091166004820152602401600060405180830381600087803b1515613da557600080fd5b6102c65a03f11515613db657600080fd5b5050505b8463ffffffff167f7896e0932299b049700f86ae09c1e775b823c8527fb25549987819578913046a60405160405180910390a25050505050565b600954610100900460ff1681565b600a5481565b600681565b600080613e18614914565b600354600160a060020a0316915081630720246086600060405160e0015260405160e060020a63ffffffff84160281526001604060020a03909116600482015260240160e060405180830381600087803b1515613e7457600080fd5b6102c65a03f11515613e8557600080fd5b505050604051805190602001805190602001805190602001805190602001805190602001805190602001805160e08901525063ffffffff90811660c088015290811660a08701529081166080860152600160a060020a0391821660408601908152921660208501526001604060020a0390921683529085169051600160a060020a0316148015613f205750806020015163ffffffff16601514155b92505b505092915050565b600c5481565b600554600160a060020a031681565b6009546601000000000000900460ff1681565b60025460ff1681565b60005433600160a060020a03908116911614613f7757600080fd5b600160a060020a038116156130165760008054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff1990911617905550565b600454600160a060020a031681565b60008161ffff168361ffff161115613fdd5750808203613fe1565b5060005b92915050565b600080600080613ff56148ec565b613ffd6148ec565b60006140088861432e565b600954939a509098509094509250614040906601000000000000900460ff1660020160c08a0151600e54600160a060020a0316611614565b9450600090505b6009546601000000000000900460ff1661ffff821610801561406e57506000835161ffff16115b801561407f57506000825161ffff16115b156141725760a082015161ffff1660a084015161ffff16111561413457600261ffff82160661ffff16600014156140f6576140eb8260005b60200201516140e66020860151606087015160408701518760045b60200201518b60ff168861ffff1614610e54565b613fc2565b61ffff16825261412f565b61411c8360005b60200201516140e66020850151606086015160408801518860046140d2565b8360005b61ffff90921660209290920201525b61416a565b600261ffff82160661ffff1615614158576141508260006140b7565b826000614120565b6141638360006140fd565b61ffff1683525b600101614047565b815161ffff16835161ffff16101593505050509193509193565b6005546000908190819081908190600160a060020a031615156141ae57600080fd5b85156141bd57600094506142e5565b600554600160a060020a031693508363bb583f198860006040516060015260405163ffffffff83811660e060020a028252919091166004820152602401606060405180830381600087803b151561421357600080fd5b6102c65a03f1151561422457600080fd5b50505060405180519060200180519060200180516009549396509194509092505063ffffffff6001840181169160ff6701000000000000009091041690851681151561426c57fe5b04820163ffffffff161115156142e05783600160a060020a0316634377c1cf8860405163ffffffff83811660e060020a028252919091166004820152602401600060405180830381600087803b15156142c457600080fd5b6102c65a03f115156142d557600080fd5b5050508094506142e5565b600094505b5050505092915050565b600080828410156142fc57fe5b5050900390565b600082820283158061431f575082848281151561431c57fe5b04145b151561432757fe5b9392505050565b60006143386148ec565b60006143426148ec565b6000808080614351895161312b565b909950975093506000925061436960608a015161312b565b9097509550925061437a8484614535565b61ffff90811660a08c01521660408a01526143998460208b01516146fb565b896040018181510161ffff169052506143b68360808b01516146fb565b8960a0018181510161ffff169052506143d38460208b01516147f1565b91506143e3838a608001516147f1565b90506064896040015160208901510261ffff168115156143ff57fe5b04602088018181510161ffff16905250606460408a015160608901510261ffff1681151561442957fe5b04606088018181510161ffff16905250606460a08a015160208701510261ffff1681151561445357fe5b04602086018181510161ffff16905250606460a08a015160608701510261ffff1681151561447d57fe5b04606086018181510161ffff1690525060648260408901510261ffff168115156144a357fe5b04604088018181510161ffff1690525060648260808901510261ffff168115156144c957fe5b04608088018181510161ffff1690525060648160408701510261ffff168115156144ef57fe5b04604086018181510161ffff1690525060648160808701510261ffff1681151561451557fe5b04608086018181510161ffff169052509698959750939550919392505050565b600080808080805b63ffffffff88166000908152600760205260409020548210156146c0575060005b63ffffffff87166000908152600760205260409020548110156146b55763ffffffff8716600090815260076020526040902080548290811061459c57fe5b60009182526020808320818304015463ffffffff8c16845260078252604084208054929093066101000a900460ff16926006929091869081106145db57fe5b60009182526020808320818304015460ff928290066101000a900482168452830193909352604090910190205416141561461457600193505b63ffffffff8816600090815260076020526040902080548390811061463557fe5b60009182526020808320818304015463ffffffff8b16845260078252604084208054929093066101000a900460ff169260069290918590811061467457fe5b60009182526020808320818304015460ff928290066101000a90048216845283019390935260409091019020541614156146ad57600192505b60010161455e565b60019091019061453d565b83156146d85760095462010000900460ff1695909501945b82156146f05760095462010000900460ff1694909401935b505050509250929050565b63ffffffff82166000908152600760205260408120600201548190819081808211156147da575060009250825b818410156147da5763ffffffff8716600090815260076020526040902060020180548590811061475457fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff169050856000015163ffffffff168163ffffffff1614806147a95750856060015163ffffffff168163ffffffff16145b806147c357508560c0015163ffffffff168163ffffffff16145b156147cf576001830192505b600190930192614728565b60095460ff90811684021694505050505092915050565b600080805b63ffffffff8516600090815260076020526040902054821015613f235763ffffffff8516600090815260076020526040902080548390811061483457fe5b6000918252602091829020828204015460ff918390066101000a90041691508401511561488257836040015160ff168160ff16141561488257600954610100900460ff1692909201916148e1565b8360800151156148b3578360a0015160ff168160ff1614156148b357600954610100900460ff1692909201916148e1565b8360e00151156148e15783610100015160ff168160ff1614156148e157600954610100900460ff1692909201915b6001909101906147f6565b60c06040519081016040526006815b6000815260001990910190602001816148fb5790505090565b6101006040519081016040908152600080835260208301819052908201526060810161493e614a6d565b8152600060208201819052604082018190526060820181905260809091015290565b610200604051908101604090815260008083526020830181905290820181905260608201819052608082015260a081016149986148ec565b81526020016149a5614bd0565b815260006020820181905260409091015290565b60c06040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a082015290565b6102e06040519081016040526000815260208101614a0a614a21565b815260006020820181905260408201526060016149a55b6101206040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082015290565b60206040519081016040526000815290565b82805482825590600052602060002090601f01602090048101928215614b155791602002820160005b83821115614ae657835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302614aa8565b8015614b135782816101000a81549060ff0219169055600101602081600001049283019260010302614ae6565b505b50614b21929150614bea565b5090565b82805482825590600052602060002090600701600890048101928215614bc45791602002820160005b83821115614b9257835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302614b4e565b8015614bc25782816101000a81549063ffffffff0219169055600401602081600301049283019260010302614b92565b505b50614b21929150614c0b565b6060604051908101604052600081526002602082016148fb565b614c0891905b80821115614b2157805460ff19168155600101614bf0565b90565b614c0891905b80821115614b2157805463ffffffff19168155600101614c115600a165627a7a72305820242dbf3d07382cbde146da74911852354c708b8e751b8259c1fb2c266ba317df0029000000000000000000000000abc1c404424bdf24c19a5cc5ef8f47781d18eb3e0000000000000000000000001fc7bd85293f3982f40d52698df8d26be89360d600000000000000000000000065c440683088134aef7af22f3fad6a9ee5c19fed00000000000000000000000075aa01dc00f6aeefe14bd58a5b6cbb091c6dc57b

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

000000000000000000000000abc1c404424bdf24c19a5cc5ef8f47781d18eb3e0000000000000000000000001fc7bd85293f3982f40d52698df8d26be89360d600000000000000000000000065c440683088134aef7af22f3fad6a9ee5c19fed00000000000000000000000075aa01dc00f6aeefe14bd58a5b6cbb091c6dc57b

-----Decoded View---------------
Arg [0] : _dataContract (address): 0xabc1c404424bdf24c19a5cc5ef8f47781d18eb3e
Arg [1] : _worldContract (address): 0x1fc7bd85293f3982f40d52698df8d26be89360d6
Arg [2] : _tradeContract (address): 0x65c440683088134aef7af22f3fad6a9ee5c19fed
Arg [3] : _castleContract (address): 0x75aa01dc00f6aeefe14bd58a5b6cbb091c6dc57b

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000abc1c404424bdf24c19a5cc5ef8f47781d18eb3e
Arg [1] : 0000000000000000000000001fc7bd85293f3982f40d52698df8d26be89360d6
Arg [2] : 00000000000000000000000065c440683088134aef7af22f3fad6a9ee5c19fed
Arg [3] : 00000000000000000000000075aa01dc00f6aeefe14bd58a5b6cbb091c6dc57b


Swarm Source

bzzr://242dbf3d07382cbde146da74911852354c708b8e751b8259c1fb2c266ba317df
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.