ETH Price: $2,348.06 (+0.29%)

Contract

0x77bbe12CA1F7b98BB07293Cf1AE399Be51a636D6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Factory...67799422018-11-27 3:24:112114 days ago1543289051IN
0x77bbe12C...e51a636D6
0 ETH0.0008801920.1
Mint Resource67799382018-11-27 3:23:232114 days ago1543289003IN
0x77bbe12C...e51a636D6
0 ETH0.000318448
Transfer Factory...67785592018-11-26 21:59:202115 days ago1543269560IN
0x77bbe12C...e51a636D6
0 ETH0.000349818
Transfer Factory...67785582018-11-26 21:59:112115 days ago1543269551IN
0x77bbe12C...e51a636D6
0 ETH0.000349818
Mint Resource67785532018-11-26 21:57:522115 days ago1543269472IN
0x77bbe12C...e51a636D6
0 ETH0.000317928
Mint Resource67785512018-11-26 21:57:282115 days ago1543269448IN
0x77bbe12C...e51a636D6
0 ETH0.000317928
Transfer Factory...61298052018-08-11 18:52:042222 days ago1534013524IN
0x77bbe12C...e51a636D6
0 ETH0.0002235.1
Transfer Factory...59655402018-07-14 23:45:432250 days ago1531611943IN
0x77bbe12C...e51a636D6
0 ETH0.0021426249
Transfer Factory...59655382018-07-14 23:44:442250 days ago1531611884IN
0x77bbe12C...e51a636D6
0 ETH0.0021426249
Mint Resource59655312018-07-14 23:42:392250 days ago1531611759IN
0x77bbe12C...e51a636D6
0 ETH0.0023844660
Transfer Factory...58651652018-06-27 20:15:382267 days ago1530130538IN
0x77bbe12C...e51a636D6
0 ETH0.0008789120.1
Mint Resource58651572018-06-27 20:14:322267 days ago1530130472IN
0x77bbe12C...e51a636D6
0 ETH0.0005474110
Withdraw Factory...55917792018-05-10 23:01:542315 days ago1525993314IN
0x77bbe12C...e51a636D6
0 ETH0.0004208110.1
Transfer Factory...55915722018-05-10 22:09:132315 days ago1525990153IN
0x77bbe12C...e51a636D6
0 ETH0.0008867715.1
Transfer Factory...55915682018-05-10 22:08:302315 days ago1525990110IN
0x77bbe12C...e51a636D6
0 ETH0.0008877415.1
Transfer Factory...55915642018-05-10 22:07:362315 days ago1525990056IN
0x77bbe12C...e51a636D6
0 ETH0.0007113712.1
Transfer Factory...55915422018-05-10 22:00:412315 days ago1525989641IN
0x77bbe12C...e51a636D6
0 ETH0.0011816920.1
Transfer Factory...55915312018-05-10 21:58:042315 days ago1525989484IN
0x77bbe12C...e51a636D6
0 ETH0.0005937810.1
Transfer Factory...55915192018-05-10 21:56:132315 days ago1525989373IN
0x77bbe12C...e51a636D6
0 ETH0.0005298712.1
Transfer Factory...55915162018-05-10 21:55:092315 days ago1525989309IN
0x77bbe12C...e51a636D6
0 ETH0.0005937810.1
Transfer Factory...55915102018-05-10 21:53:452315 days ago1525989225IN
0x77bbe12C...e51a636D6
0 ETH0.0005937810.1
Transfer Factory...55915052018-05-10 21:52:352315 days ago1525989155IN
0x77bbe12C...e51a636D6
0 ETH0.0005937810.1
Transfer Factory...55915032018-05-10 21:51:532315 days ago1525989113IN
0x77bbe12C...e51a636D6
0 ETH0.0007121412.1
Transfer Factory...55915002018-05-10 21:49:402315 days ago1525988980IN
0x77bbe12C...e51a636D6
0 ETH0.0005944310.1
Transfer Factory...55914972018-05-10 21:48:592315 days ago1525988939IN
0x77bbe12C...e51a636D6
0 ETH0.0005937810.1
View all transactions

Latest 12 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
55914732018-05-10 21:43:352315 days ago1525988615
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914632018-05-10 21:41:002315 days ago1525988460
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914432018-05-10 21:36:022315 days ago1525988162
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914402018-05-10 21:34:492315 days ago1525988089
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914302018-05-10 21:32:142315 days ago1525987934
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914242018-05-10 21:30:542315 days ago1525987854
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914192018-05-10 21:30:172315 days ago1525987817
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914152018-05-10 21:29:412315 days ago1525987781
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914092018-05-10 21:28:382315 days ago1525987718
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914052018-05-10 21:28:012315 days ago1525987681
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55914022018-05-10 21:26:472315 days ago1525987607
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
55913902018-05-10 21:24:012315 days ago1525987441
0x77bbe12C...e51a636D6
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CSCResourceFactory

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-05-11
*/

pragma solidity ^0.4.21;


library strings {
    
    struct slice {
        uint _len;
        uint _ptr;
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string self) internal pure returns (slice) {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    function memcpy(uint dest, uint src, uint len) private pure {
        // Copy word-length chunks while possible
        for(; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = 256 ** (32 - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    
    function concat(slice self, slice other) internal returns (string) {
        var ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }

    /*
     * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return The number of occurrences of `needle` found in `self`.
     */
    function count(slice self, slice needle) internal returns (uint cnt) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
        while (ptr <= self._ptr + self._len) {
            cnt++;
            ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len;
        }
    }

    // Returns the memory address of the first byte of the first occurrence of
    // `needle` in `self`, or the first byte after `self` if not found.
    function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private returns (uint) {
        uint ptr;
        uint idx;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                // Optimized assembly for 68 gas per byte on short strings
                assembly {
                    let mask := not(sub(exp(2, mul(8, sub(32, needlelen))), 1))
                    let needledata := and(mload(needleptr), mask)
                    let end := add(selfptr, sub(selflen, needlelen))
                    ptr := selfptr
                    loop:
                    jumpi(exit, eq(and(mload(ptr), mask), needledata))
                    ptr := add(ptr, 1)
                    jumpi(loop, lt(sub(ptr, 1), end))
                    ptr := add(selfptr, selflen)
                    exit:
                }
                return ptr;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := sha3(needleptr, needlelen) }
                ptr = selfptr;
                for (idx = 0; idx <= selflen - needlelen; idx++) {
                    bytes32 testHash;
                    assembly { testHash := sha3(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr;
                    ptr += 1;
                }
            }
        }
        return selfptr + selflen;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and `token` to everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function split(slice self, slice needle, slice token) internal returns (slice) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = self._ptr;
        token._len = ptr - self._ptr;
        if (ptr == self._ptr + self._len) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
            self._ptr = ptr + needle._len;
        }
        return token;
    }

     /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and returning everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` up to the first occurrence of `delim`.
     */
    function split(slice self, slice needle) internal returns (slice token) {
        split(self, needle, token);
    }

    /*
     * @dev Copies a slice to a new string.
     * @param self The slice to copy.
     * @return A newly allocated string containing the slice's text.
     */
    function toString(slice self) internal pure returns (string) {
        var ret = new string(self._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        memcpy(retptr, self._ptr, self._len);
        return ret;
    }

}

/* Helper String Functions for Game Manager Contract
 * @title String Healpers
 * @author Fazri Zubair & Farhan Khwaja (Lucid Sight, Inc.)
 */
contract StringHelpers {
    using strings for *;
    
    function stringToBytes32(string memory source) internal returns (bytes32 result) {
        bytes memory tempEmptyStringTest = bytes(source);
        if (tempEmptyStringTest.length == 0) {
            return 0x0;
        }
    
        assembly {
            result := mload(add(source, 32))
        }
    }

    function bytes32ToString(bytes32 x) constant internal returns (string) {
        bytes memory bytesString = new bytes(32);
        uint charCount = 0;
        for (uint j = 0; j < 32; j++) {
            byte char = byte(bytes32(uint(x) * 2 ** (8 * j)));
            if (char != 0) {
                bytesString[charCount] = char;
                charCount++;
            }
        }
        bytes memory bytesStringTrimmed = new bytes(charCount);
        for (j = 0; j < charCount; j++) {
            bytesStringTrimmed[j] = bytesString[j];
        }
        return string(bytesStringTrimmed);
    }
}


/* Controls state and access rights for contract functions
 * @title Operational Control
 * @author Fazri Zubair & Farhan Khwaja (Lucid Sight, Inc.)
 * Inspired and adapted from contract created by OpenZeppelin
 * Ref: https://github.com/OpenZeppelin/zeppelin-solidity/
 */
contract OperationalControl {
    // Facilitates access & control for the game.
    // Roles:
    //  -The Managers (Primary/Secondary): Has universal control of all elements (No ability to withdraw)
    //  -The Banker: The Bank can withdraw funds and adjust fees / prices.
    //  -otherManagers: Contracts that need access to functions for gameplay

    /// @dev Emited when contract is upgraded
    event ContractUpgrade(address newContract);

    // The addresses of the accounts (or contracts) that can execute actions within each roles.
    address public managerPrimary;
    address public managerSecondary;
    address public bankManager;

    // Contracts that require access for gameplay
    mapping(address => uint8) public otherManagers;

    // @dev Keeps track whether the contract is paused. When that is true, most actions are blocked
    bool public paused = false;

    // @dev Keeps track whether the contract erroredOut. When that is true, most actions are blocked & refund can be claimed
    bool public error = false;

    /// @dev Operation modifiers for limiting access
    modifier onlyManager() {
        require(msg.sender == managerPrimary || msg.sender == managerSecondary);
        _;
    }

    modifier onlyBanker() {
        require(msg.sender == bankManager);
        _;
    }

    modifier onlyOtherManagers() {
        require(otherManagers[msg.sender] == 1);
        _;
    }


    modifier anyOperator() {
        require(
            msg.sender == managerPrimary ||
            msg.sender == managerSecondary ||
            msg.sender == bankManager ||
            otherManagers[msg.sender] == 1
        );
        _;
    }

    /// @dev Assigns a new address to act as the Other Manager. (State = 1 is active, 0 is disabled)
    function setOtherManager(address _newOp, uint8 _state) external onlyManager {
        require(_newOp != address(0));

        otherManagers[_newOp] = _state;
    }

    /// @dev Assigns a new address to act as the Primary Manager.
    function setPrimaryManager(address _newGM) external onlyManager {
        require(_newGM != address(0));

        managerPrimary = _newGM;
    }

    /// @dev Assigns a new address to act as the Secondary Manager.
    function setSecondaryManager(address _newGM) external onlyManager {
        require(_newGM != address(0));

        managerSecondary = _newGM;
    }

    /// @dev Assigns a new address to act as the Banker.
    function setBanker(address _newBK) external onlyManager {
        require(_newBK != address(0));

        bankManager = _newBK;
    }

    /*** Pausable functionality adapted from OpenZeppelin ***/

    /// @dev Modifier to allow actions only when the contract IS NOT paused
    modifier whenNotPaused() {
        require(!paused);
        _;
    }

    /// @dev Modifier to allow actions only when the contract IS paused
    modifier whenPaused {
        require(paused);
        _;
    }

    /// @dev Modifier to allow actions only when the contract has Error
    modifier whenError {
        require(error);
        _;
    }

    /// @dev Called by any Operator role to pause the contract.
    /// Used only if a bug or exploit is discovered (Here to limit losses / damage)
    function pause() external onlyManager whenNotPaused {
        paused = true;
    }

    /// @dev Unpauses the smart contract. Can only be called by the Game Master
    /// @notice This is public rather than external so it can be called by derived contracts. 
    function unpause() public onlyManager whenPaused {
        // can't unpause if contract was upgraded
        paused = false;
    }

    /// @dev Unpauses the smart contract. Can only be called by the Game Master
    /// @notice This is public rather than external so it can be called by derived contracts. 
    function hasError() public onlyManager whenPaused {
        error = true;
    }

    /// @dev Unpauses the smart contract. Can only be called by the Game Master
    /// @notice This is public rather than external so it can be called by derived contracts. 
    function noError() public onlyManager whenPaused {
        error = false;
    }
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    if (a == 0) {
      return 0;
    }
    c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    // uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return a / b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  uint256 totalSupply_;

  /**
  * @dev total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return totalSupply_;
  }

  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256) {
    return balances[_owner];
  }

}


/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}


/**
 * @title ERC827 interface, an extension of ERC20 token standard
 *
 * @dev Interface of a ERC827 token, following the ERC20 standard with extra
 * @dev methods to transfer value and data and execute calls in transfers and
 * @dev approvals.
 */
contract ERC827 is ERC20 {
  function approveAndCall( address _spender, uint256 _value, bytes _data) public payable returns (bool);
  function transferAndCall( address _to, uint256 _value, bytes _data) public payable returns (bool);
  function transferFromAndCall(
    address _from,
    address _to,
    uint256 _value,
    bytes _data
  )
    public
    payable
    returns (bool);
}

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
    allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   *
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
    uint oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}


/* solium-disable security/no-low-level-calls */
/**
 * @title ERC827, an extension of ERC20 token standard
 *
 * @dev Implementation the ERC827, following the ERC20 standard with extra
 * @dev methods to transfer value and data and execute calls in transfers and
 * @dev approvals.
 *
 * @dev Uses OpenZeppelin StandardToken.
 */
contract ERC827Token is ERC827, StandardToken {

  /**
   * @dev Addition to ERC20 token methods. It allows to
   * @dev approve the transfer of value and execute a call with the sent data.
   *
   * @dev Beware that changing an allowance with this method brings the risk that
   * @dev someone may use both the old and the new allowance by unfortunate
   * @dev transaction ordering. One possible solution to mitigate this race condition
   * @dev is to first reduce the spender's allowance to 0 and set the desired value
   * @dev afterwards:
   * @dev https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   *
   * @param _spender The address that will spend the funds.
   * @param _value The amount of tokens to be spent.
   * @param _data ABI-encoded contract call to call `_to` address.
   *
   * @return true if the call function was executed successfully
   */
  function approveAndCall(address _spender, uint256 _value, bytes _data) public payable returns (bool) {
    require(_spender != address(this));

    super.approve(_spender, _value);

    // solium-disable-next-line security/no-call-value
    require(_spender.call.value(msg.value)(_data));

    return true;
  }

  /**
   * @dev Addition to ERC20 token methods. Transfer tokens to a specified
   * @dev address and execute a call with the sent data on the same transaction
   *
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amout of tokens to be transfered
   * @param _data ABI-encoded contract call to call `_to` address.
   *
   * @return true if the call function was executed successfully
   */
  function transferAndCall(address _to, uint256 _value, bytes _data) public payable returns (bool) {
    require(_to != address(this));

    super.transfer(_to, _value);

    // solium-disable-next-line security/no-call-value
    require(_to.call.value(msg.value)(_data));
    return true;
  }

  /**
   * @dev Addition to ERC20 token methods. Transfer tokens from one address to
   * @dev another and make a contract call on the same transaction
   *
   * @param _from The address which you want to send tokens from
   * @param _to The address which you want to transfer to
   * @param _value The amout of tokens to be transferred
   * @param _data ABI-encoded contract call to call `_to` address.
   *
   * @return true if the call function was executed successfully
   */
  function transferFromAndCall(
    address _from,
    address _to,
    uint256 _value,
    bytes _data
  )
    public payable returns (bool)
  {
    require(_to != address(this));

    super.transferFrom(_from, _to, _value);

    // solium-disable-next-line security/no-call-value
    require(_to.call.value(msg.value)(_data));
    return true;
  }

  /**
   * @dev Addition to StandardToken methods. Increase the amount of tokens that
   * @dev an owner allowed to a spender and execute a call with the sent data.
   *
   * @dev approve should be called when allowed[_spender] == 0. To increment
   * @dev allowed value is better to use this function to avoid 2 calls (and wait until
   * @dev the first transaction is mined)
   * @dev From MonolithDAO Token.sol
   *
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   * @param _data ABI-encoded contract call to call `_spender` address.
   */
  function increaseApprovalAndCall(address _spender, uint _addedValue, bytes _data) public payable returns (bool) {
    require(_spender != address(this));

    super.increaseApproval(_spender, _addedValue);

    // solium-disable-next-line security/no-call-value
    require(_spender.call.value(msg.value)(_data));

    return true;
  }

  /**
   * @dev Addition to StandardToken methods. Decrease the amount of tokens that
   * @dev an owner allowed to a spender and execute a call with the sent data.
   *
   * @dev approve should be called when allowed[_spender] == 0. To decrement
   * @dev allowed value is better to use this function to avoid 2 calls (and wait until
   * @dev the first transaction is mined)
   * @dev From MonolithDAO Token.sol
   *
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   * @param _data ABI-encoded contract call to call `_spender` address.
   */
  function decreaseApprovalAndCall(address _spender, uint _subtractedValue, bytes _data) public payable returns (bool) {
    require(_spender != address(this));

    super.decreaseApproval(_spender, _subtractedValue);

    // solium-disable-next-line security/no-call-value
    require(_spender.call.value(msg.value)(_data));

    return true;
  }

}


 /**
 * @title Mintable token
 * @title Burnable Token
 * @dev Token that can be irreversibly burned (destroyed).
 * @dev Simple ERC20 Token example, with mintable token creation
 * @dev Issue: * https://github.com/OpenZeppelin/openzeppelin-solidity/issues/120
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */

contract CSCResource is ERC827Token, OperationalControl {

  event Burn(address indexed burner, uint256 value);
  event Mint(address indexed to, uint256 amount);

  // Token Name
  string public NAME;

  // Token Symbol
  string public SYMBOL;

  // Token decimals
  uint public constant DECIMALS = 0;

  /**
   * Construct the token.
   *
   * This token must be created through a team multisig wallet, so that it is owned by that wallet.
   *
   */
  function CSCResource(string _name, string _symbol, uint _initialSupply) public {

    // Create any address, can be transferred
    managerPrimary = msg.sender;
    managerSecondary = msg.sender;
    bankManager = msg.sender;

    NAME = _name;
    SYMBOL = _symbol;
    
    // Create initial supply
    totalSupply_ = totalSupply_.add(_initialSupply);
    balances[msg.sender] = balances[msg.sender].add(_initialSupply);

    emit Mint(msg.sender, _initialSupply);
    emit Transfer(address(0), msg.sender, _initialSupply);

  }

  /**
   * @dev Burns a specific amount of tokens.
   * @param _value The amount of token to be burned.
   */
  function burn(uint256 _value) public {
    _burn(msg.sender, _value);
  }

  function _burn(address _who, uint256 _value) internal {
    require(_value <= balances[_who]);
    // no need to require value <= totalSupply, since that would imply the
    // sender's balance is greater than the totalSupply, which *should* be an assertion failure

    balances[_who] = balances[_who].sub(_value);
    totalSupply_ = totalSupply_.sub(_value);
    emit Burn(_who, _value);
    emit Transfer(_who, address(0), _value);
  }  

  /**
   * @dev Function to mint tokens
   * @param _to The address that will receive the minted tokens.
   * @param _amount The amount of tokens to mint.
   * @return A boolean that indicates if the operation was successful.
   */
    function mint(address _to, uint256 _amount)  public anyOperator returns (bool) {
        totalSupply_ = totalSupply_.add(_amount);
        balances[_to] = balances[_to].add(_amount);
        emit Mint(_to, _amount);
        emit Transfer(address(0), _to, _amount);
        return true;
    }

}

contract CSCResourceFactory is OperationalControl, StringHelpers {

    event CSCResourceCreated(string resourceContract, address contractAddress, uint256 amount); 

    mapping(uint16 => address) public resourceIdToAddress; 
    mapping(bytes32 => address) public resourceNameToAddress; 
    mapping(uint16 => bytes32) public resourceIdToName; 

    uint16 resourceTypeCount;

    function CSCResourceFactory() public {
        managerPrimary = msg.sender;
        managerSecondary = msg.sender;
        bankManager = msg.sender;

    }

    function createNewCSCResource(string _name, string _symbol, uint _initialSupply) public anyOperator {

        require(resourceNameToAddress[stringToBytes32(_name)] == 0x0);

        address resourceContract = new CSCResource(_name, _symbol, _initialSupply);

        
        resourceIdToAddress[resourceTypeCount] = resourceContract;
        resourceNameToAddress[stringToBytes32(_name)] = resourceContract;
        resourceIdToName[resourceTypeCount] = stringToBytes32(_name);
        
        emit CSCResourceCreated(_name, resourceContract, _initialSupply);

        //Inc. for next resource
        resourceTypeCount += 1;

    }

    function setResourcesPrimaryManager(address _op) public onlyManager {
        
        require(_op != address(0));

        uint16 totalResources = getResourceCount();

        for(uint16 i = 0; i < totalResources; i++) {
            CSCResource resContract = CSCResource(resourceIdToAddress[i]);
            resContract.setPrimaryManager(_op);
        }

    }

    function setResourcesSecondaryManager(address _op) public onlyManager {

        require(_op != address(0));

        uint16 totalResources = getResourceCount();

        for(uint16 i = 0; i < totalResources; i++) {
            CSCResource resContract = CSCResource(resourceIdToAddress[i]);
            resContract.setSecondaryManager(_op);
        }

    }

    function setResourcesBanker(address _op) public onlyManager {

        require(_op != address(0));

        uint16 totalResources = getResourceCount();

        for(uint16 i = 0; i < totalResources; i++) {
            CSCResource resContract = CSCResource(resourceIdToAddress[i]);
            resContract.setBanker(_op);
        }

    }

    function setResourcesOtherManager(address _op, uint8 _state) public anyOperator {

        require(_op != address(0));

        uint16 totalResources = getResourceCount();

        for(uint16 i = 0; i < totalResources; i++) {
            CSCResource resContract = CSCResource(resourceIdToAddress[i]);
            resContract.setOtherManager(_op, _state);
        }

    }

    function withdrawFactoryResourceBalance(uint16 _resId) public onlyBanker {

        require(resourceIdToAddress[_resId] != 0);

        CSCResource resContract = CSCResource(resourceIdToAddress[_resId]);
        uint256 resBalance = resContract.balanceOf(this);
        resContract.transfer(bankManager, resBalance);

    }

    function transferFactoryResourceAmount(uint16 _resId, address _to, uint256 _amount) public onlyBanker {

        require(resourceIdToAddress[_resId] != 0);
        require(_to != address(0));

        CSCResource resContract = CSCResource(resourceIdToAddress[_resId]);
        uint256 resBalance = resContract.balanceOf(this);
        require(resBalance >= _amount);

        resContract.transfer(_to, _amount);
    }

    function mintResource(uint16 _resId, uint256 _amount) public onlyBanker {

        require(resourceIdToAddress[_resId] != 0);
        CSCResource resContract = CSCResource(resourceIdToAddress[_resId]);
        resContract.mint(this, _amount);
    }

    function burnResource(uint16 _resId, uint256 _amount) public onlyBanker {

        require(resourceIdToAddress[_resId] != 0);
        CSCResource resContract = CSCResource(resourceIdToAddress[_resId]);
        resContract.burn(_amount);
    }

    function getResourceName(uint16 _resId) public view returns (bytes32 name) {
        return resourceIdToName[_resId];
    }

    function getResourceCount() public view returns (uint16 resourceTotal) {
        return resourceTypeCount;
    }

    function getResourceBalance(uint16 _resId, address _wallet) public view returns (uint256 amt) {

        require(resourceIdToAddress[_resId] != 0);

        CSCResource resContract = CSCResource(resourceIdToAddress[_resId]);
        return resContract.balanceOf(_wallet);

    }

    /**
    * @dev helps in fetching the wallet resouce balance
    * @param _wallet The wallet address
    */
    function getWalletResourceBalance(address _wallet) external view returns(uint256[] resourceBalance){
        require(_wallet != address(0));
        
        uint16 totalResources = getResourceCount();
        
        uint256[] memory result = new uint256[](totalResources);
        
        for(uint16 i = 0; i < totalResources; i++) {
            CSCResource resContract = CSCResource(resourceIdToAddress[i]);
            result[i] = resContract.balanceOf(_wallet);
        }
        
        return result;
    }

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_resId","type":"uint16"},{"name":"_amount","type":"uint256"}],"name":"mintResource","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"otherManagers","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"resourceNameToAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_resId","type":"uint16"}],"name":"withdrawFactoryResourceBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_initialSupply","type":"uint256"}],"name":"createNewCSCResource","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_op","type":"address"}],"name":"setResourcesBanker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_op","type":"address"}],"name":"setResourcesPrimaryManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newGM","type":"address"}],"name":"setSecondaryManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint16"}],"name":"resourceIdToName","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_op","type":"address"},{"name":"_state","type":"uint8"}],"name":"setResourcesOtherManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"noError","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_op","type":"address"}],"name":"setResourcesSecondaryManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getResourceCount","outputs":[{"name":"resourceTotal","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_resId","type":"uint16"},{"name":"_wallet","type":"address"}],"name":"getResourceBalance","outputs":[{"name":"amt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"hasError","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"managerPrimary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_resId","type":"uint16"},{"name":"_amount","type":"uint256"}],"name":"burnResource","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOp","type":"address"},{"name":"_state","type":"uint8"}],"name":"setOtherManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newGM","type":"address"}],"name":"setPrimaryManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"error","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint16"}],"name":"resourceIdToAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_wallet","type":"address"}],"name":"getWalletResourceBalance","outputs":[{"name":"resourceBalance","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_resId","type":"uint16"}],"name":"getResourceName","outputs":[{"name":"name","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_resId","type":"uint16"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFactoryResourceAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"bankManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"managerSecondary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newBK","type":"address"}],"name":"setBanker","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"resourceContract","type":"string"},{"indexed":false,"name":"contractAddress","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"CSCResourceCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newContract","type":"address"}],"name":"ContractUpgrade","type":"event"}]

60606040526004805461ffff19169055341561001a57600080fd5b60008054600160a060020a033316600160a060020a0319918216811790925560018054821683179055600280549091169091179055612fa98061005e6000396000f300606060405260043610620001855763ffffffff60e060020a60003504166323539cd481146200018a57806323d7af2414620001ac57806335e08fa514620001e45780633f4ba83a14620002195780635c975abb146200022f5780635f184eda1462000259578063607dc1d614620002765780637af915af146200030e5780637cc2fe491462000330578063825bdb74146200035257806382ff84ae14620003745780638456cb5914620003a357806385c95d3014620003b95780638a53f23014620003e157806392008bfa14620003f75780639f96de0f1462000419578063a0c6e65e1462000446578063ad5e46cb146200046f578063b777cad71462000485578063b8c9c4d2146200049b578063bb1d45fc14620004bb578063c0619c7014620004e3578063c79f8b621462000505578063ce8808ea146200051b578063d04b019e1462000538578063d9964d9214620005af578063e2877e0414620005cc578063e9e2990e14620005f8578063ee70f392146200060e578063f1ff732b1462000624575b600080fd5b34156200019657600080fd5b620001aa61ffff6004351660243562000646565b005b3415620001b857600080fd5b620001ce600160a060020a03600435166200071a565b60405160ff909116815260200160405180910390f35b3415620001f057600080fd5b620001fd6004356200072f565b604051600160a060020a03909116815260200160405180910390f35b34156200022557600080fd5b620001aa6200074a565b34156200023b57600080fd5b62000245620007a0565b604051901515815260200160405180910390f35b34156200026557600080fd5b620001aa61ffff60043516620007a9565b34156200028257600080fd5b620001aa60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496505093359350620008d092505050565b34156200031a57600080fd5b620001aa600160a060020a036004351662000c08565b34156200033c57600080fd5b620001aa600160a060020a036004351662000d08565b34156200035e57600080fd5b620001aa600160a060020a036004351662000e02565b34156200038057600080fd5b6200039161ffff6004351662000e7f565b60405190815260200160405180910390f35b3415620003af57600080fd5b620001aa62000e91565b3415620003c557600080fd5b620001aa600160a060020a036004351660ff6024351662000ee9565b3415620003ed57600080fd5b620001aa62001035565b34156200040357600080fd5b620001aa600160a060020a03600435166200108c565b34156200042557600080fd5b6200042f62001186565b60405161ffff909116815260200160405180910390f35b34156200045257600080fd5b6200039161ffff60043516600160a060020a036024351662001190565b34156200047b57600080fd5b620001aa62001242565b34156200049157600080fd5b620001fd6200129d565b3415620004a757600080fd5b620001aa61ffff60043516602435620012ac565b3415620004c757600080fd5b620001aa600160a060020a036004351660ff602435166200136a565b3415620004ef57600080fd5b620001aa600160a060020a0360043516620013e5565b34156200051157600080fd5b6200024562001462565b34156200052757600080fd5b620001fd61ffff6004351662001470565b34156200054457600080fd5b6200055a600160a060020a03600435166200148b565b60405160208082528190810183818151815260200191508051906020019060200280838360005b838110156200059b57808201518382015260200162000581565b505050509050019250505060405180910390f35b3415620005bb57600080fd5b6200039161ffff60043516620015b3565b3415620005d857600080fd5b620001aa61ffff60043516600160a060020a0360243516604435620015c9565b34156200060457600080fd5b620001fd6200172c565b34156200061a57600080fd5b620001fd6200173b565b34156200063057600080fd5b620001aa600160a060020a03600435166200174a565b60025460009033600160a060020a039081169116146200066557600080fd5b61ffff8316600090815260056020526040902054600160a060020a031615156200068e57600080fd5b5061ffff82166000908152600560205260409081902054600160a060020a03169081906340c10f1990309085905160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515620006fd57600080fd5b5af115156200070b57600080fd5b50505060405180515050505050565b60036020526000908152604090205460ff1681565b600660205260009081526040902054600160a060020a031681565b60005433600160a060020a039081169116148062000776575060015433600160a060020a039081169116145b15156200078257600080fd5b60045460ff1615156200079457600080fd5b6004805460ff19169055565b60045460ff1681565b600254600090819033600160a060020a03908116911614620007ca57600080fd5b61ffff8316600090815260056020526040902054600160a060020a03161515620007f357600080fd5b61ffff83166000908152600560205260409081902054600160a060020a0316925082906370a082319030905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200085b57600080fd5b5af115156200086957600080fd5b5050506040518051600254909250600160a060020a03808516925063a9059cbb91168360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515620006fd57600080fd5b6000805433600160a060020a0390811691161480620008fd575060015433600160a060020a039081169116145b8062000917575060025433600160a060020a039081169116145b806200093e5750600160a060020a03331660009081526003602052604090205460ff166001145b15156200094a57600080fd5b600660006200095986620017c7565b8152602081019190915260400160002054600160a060020a0316156200097e57600080fd5b8383836200098b620017f6565b808060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015620009d1578082015183820152602001620009b7565b50505050905090810190601f168015620009ff5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101562000a3757808201518382015260200162000a1d565b50505050905090810190601f16801562000a655780820380516001836020036101000a031916815260200191505b5095505050505050604051809103906000f080151562000a8457600080fd5b60085461ffff166000908152600560205260408120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038416179055909150819060069062000ad287620017c7565b81526020810191909152604001600020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905562000b1884620017c7565b60085461ffff1660009081526007602052604090819020919091557fbf1f3f85d21501d67a387954b397e53af20e9342befb560fe816f5be449e43229085908390859051600160a060020a03831660208201526040810182905260608082528190810185818151815260200191508051906020019080838360005b8381101562000bad57808201518382015260200162000b93565b50505050905090810190601f16801562000bdb5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150506008805461ffff8082166001011661ffff199091161790555050565b600080548190819033600160a060020a039081169116148062000c39575060015433600160a060020a039081169116145b151562000c4557600080fd5b600160a060020a038416151562000c5b57600080fd5b62000c6562001186565b9250600091505b8261ffff168261ffff16101562000d02575061ffff81166000908152600560205260409081902054600160a060020a031690819063f1ff732b9086905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b151562000ce557600080fd5b5af1151562000cf357600080fd5b50506001909201915062000c6c565b50505050565b600080548190819033600160a060020a039081169116148062000d39575060015433600160a060020a039081169116145b151562000d4557600080fd5b600160a060020a038416151562000d5b57600080fd5b62000d6562001186565b9250600091505b8261ffff168261ffff16101562000d02575061ffff81166000908152600560205260409081902054600160a060020a031690819063c0619c709086905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b151562000de557600080fd5b5af1151562000df357600080fd5b50506001909201915062000d6c565b60005433600160a060020a039081169116148062000e2e575060015433600160a060020a039081169116145b151562000e3a57600080fd5b600160a060020a038116151562000e5057600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60076020526000908152604090205481565b60005433600160a060020a039081169116148062000ebd575060015433600160a060020a039081169116145b151562000ec957600080fd5b60045460ff161562000eda57600080fd5b6004805460ff19166001179055565b600080548190819033600160a060020a039081169116148062000f1a575060015433600160a060020a039081169116145b8062000f34575060025433600160a060020a039081169116145b8062000f5b5750600160a060020a03331660009081526003602052604090205460ff166001145b151562000f6757600080fd5b600160a060020a038516151562000f7d57600080fd5b62000f8762001186565b9250600091505b8261ffff168261ffff1610156200102e575061ffff81166000908152600560205260409081902054600160a060020a031690819063bb1d45fc90879087905160e060020a63ffffffff8516028152600160a060020a03909216600483015260ff166024820152604401600060405180830381600087803b15156200101157600080fd5b5af115156200101f57600080fd5b50506001909201915062000f8e565b5050505050565b60005433600160a060020a039081169116148062001061575060015433600160a060020a039081169116145b15156200106d57600080fd5b60045460ff1615156200107f57600080fd5b6004805461ff0019169055565b600080548190819033600160a060020a0390811691161480620010bd575060015433600160a060020a039081169116145b1515620010c957600080fd5b600160a060020a0384161515620010df57600080fd5b620010e962001186565b9250600091505b8261ffff168261ffff16101562000d02575061ffff81166000908152600560205260409081902054600160a060020a031690819063825bdb749086905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200116957600080fd5b5af115156200117757600080fd5b505060019092019150620010f0565b60085461ffff1690565b61ffff82166000908152600560205260408120548190600160a060020a03161515620011bb57600080fd5b5061ffff83166000908152600560205260409081902054600160a060020a03169081906370a082319085905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200122357600080fd5b5af115156200123157600080fd5b505050604051805195945050505050565b60005433600160a060020a03908116911614806200126e575060015433600160a060020a039081169116145b15156200127a57600080fd5b60045460ff1615156200128c57600080fd5b6004805461ff001916610100179055565b600054600160a060020a031681565b60025460009033600160a060020a03908116911614620012cb57600080fd5b61ffff8316600090815260056020526040902054600160a060020a03161515620012f457600080fd5b5061ffff82166000908152600560205260409081902054600160a060020a03169081906342966c689084905160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b15156200135457600080fd5b5af115156200136257600080fd5b505050505050565b60005433600160a060020a039081169116148062001396575060015433600160a060020a039081169116145b1515620013a257600080fd5b600160a060020a0382161515620013b857600080fd5b600160a060020a03919091166000908152600360205260409020805460ff191660ff909216919091179055565b60005433600160a060020a039081169116148062001411575060015433600160a060020a039081169116145b15156200141d57600080fd5b600160a060020a03811615156200143357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600454610100900460ff1681565b600560205260009081526040902054600160a060020a031681565b6200149562001807565b6000620014a162001807565b600080600160a060020a0386161515620014ba57600080fd5b620014c462001186565b93508361ffff16604051805910620014d95750595b90808252806020026020018201604052509250600091505b8361ffff168261ffff161015620015a9575061ffff81166000908152600560205260409081902054600160a060020a03169081906370a082319088905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200156a57600080fd5b5af115156200157857600080fd5b50505060405180519050838361ffff16815181106200159357fe5b60209081029091010152600190910190620014f1565b5090949350505050565b61ffff1660009081526007602052604090205490565b600254600090819033600160a060020a03908116911614620015ea57600080fd5b61ffff8516600090815260056020526040902054600160a060020a031615156200161357600080fd5b600160a060020a03841615156200162957600080fd5b61ffff85166000908152600560205260409081902054600160a060020a0316925082906370a082319030905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200169157600080fd5b5af115156200169f57600080fd5b505050604051805191505082811015620016b857600080fd5b81600160a060020a031663a9059cbb858560405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200170d57600080fd5b5af115156200171b57600080fd5b505050604051805150505050505050565b600254600160a060020a031681565b600154600160a060020a031681565b60005433600160a060020a039081169116148062001776575060015433600160a060020a039081169116145b15156200178257600080fd5b600160a060020a03811615156200179857600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000620017d362001807565b508180511515620017e85760009150620017f0565b602083015191505b50919050565b604051611764806200181a83390190565b60206040519081016040526000815290560060606040526007805461ffff1916905534156200001b57600080fd5b60405162001764380380620017648339810160405280805182019190602001805182019190602001805160038054600160a060020a033316600160a060020a031991821681179092556004805482168317905560058054909116909117905591506008905083805162000093929160200190620001ab565b506009828051620000a9929160200190620001ab565b50600154620000c79082640100000000620013ba6200019782021704565b600155600160a060020a033316600090815260208190526040902054620000fd9082640100000000620013ba6200019782021704565b600160a060020a0333166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859083905190815260200160405180910390a2600160a060020a03331660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a350505062000250565b81810182811015620001a557fe5b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000230565b5090565b6200024d91905b808211156200022c576000815560010162000237565b90565b61150480620002606000396000f3006060604052600436106101955763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461019a57806318160ddd146101d057806323b872dd146101f557806323d7af241461021d5780632e0f2625146102525780633f4ba83a146102655780634000aea01461027a57806340c10f19146102d457806342966c68146102f65780635c975abb1461030c578063661884631461031f57806370a0823114610341578063825bdb74146103605780638456cb591461037f5780638a53f2301461039257806390db623f146103a5578063a3f4df7e146103ff578063a9059cbb14610489578063ad5e46cb146104ab578063b777cad7146104be578063bb1d45fc146104ed578063c0619c7014610512578063c1d34b8914610531578063c79f8b6214610592578063cae9ca51146105a5578063cb3993be146105ff578063d73dd62314610659578063dd62ed3e1461067b578063e9e2990e146106a0578063ee70f392146106b3578063f1ff732b146106c6578063f76f8d78146106e5575b600080fd5b34156101a557600080fd5b6101bc600160a060020a03600435166024356106f8565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101e3610764565b60405190815260200160405180910390f35b341561020057600080fd5b6101bc600160a060020a036004358116906024351660443561076a565b341561022857600080fd5b61023c600160a060020a03600435166108d8565b60405160ff909116815260200160405180910390f35b341561025d57600080fd5b6101e36108ed565b341561027057600080fd5b6102786108f2565b005b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061094595505050505050565b34156102df57600080fd5b6101bc600160a060020a0360043516602435610a00565b341561030157600080fd5b610278600435610b3f565b341561031757600080fd5b6101bc610b4c565b341561032a57600080fd5b6101bc600160a060020a0360043516602435610b55565b341561034c57600080fd5b6101e3600160a060020a0360043516610c4f565b341561036b57600080fd5b610278600160a060020a0360043516610c6a565b341561038a57600080fd5b610278610ce4565b341561039d57600080fd5b610278610d39565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610d8d95505050505050565b341561040a57600080fd5b610412610dba565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561044e578082015183820152602001610436565b50505050905090810190601f16801561047b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561049457600080fd5b6101bc600160a060020a0360043516602435610e58565b34156104b657600080fd5b610278610f58565b34156104c957600080fd5b6104d1610fb0565b604051600160a060020a03909116815260200160405180910390f35b34156104f857600080fd5b610278600160a060020a036004351660ff60243516610fbf565b341561051d57600080fd5b610278600160a060020a0360043516611037565b6101bc600160a060020a036004803582169160248035909116916044359160849060643590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506110b195505050505050565b341561059d57600080fd5b6101bc61116e565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061117c95505050505050565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506111a995505050505050565b341561066457600080fd5b6101bc600160a060020a03600435166024356111d6565b341561068657600080fd5b6101e3600160a060020a036004358116906024351661127a565b34156106ab57600080fd5b6104d16112a5565b34156106be57600080fd5b6104d16112b4565b34156106d157600080fd5b610278600160a060020a03600435166112c3565b34156106f057600080fd5b61041261133d565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015490565b6000600160a060020a038316151561078157600080fd5b600160a060020a0384166000908152602081905260409020548211156107a657600080fd5b600160a060020a03808516600090815260026020908152604080832033909416835292905220548211156107d957600080fd5b600160a060020a038416600090815260208190526040902054610802908363ffffffff6113a816565b600160a060020a038086166000908152602081905260408082209390935590851681522054610837908363ffffffff6113ba16565b600160a060020a038085166000908152602081815260408083209490945587831682526002815283822033909316825291909152205461087d908363ffffffff6113a816565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516916000805160206114b98339815191529085905190815260200160405180910390a35060019392505050565b60066020526000908152604090205460ff1681565b600081565b60035433600160a060020a039081169116148061091d575060045433600160a060020a039081169116145b151561092857600080fd5b60075460ff16151561093957600080fd5b6007805460ff19169055565b600030600160a060020a031684600160a060020a03161415151561096857600080fd5b6109728484610e58565b5083600160a060020a0316348360405180828051906020019080838360005b838110156109a9578082015183820152602001610991565b50505050905090810190601f1680156109d65780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af19250505015156109f657600080fd5b5060019392505050565b60035460009033600160a060020a0390811691161480610a2e575060045433600160a060020a039081169116145b80610a47575060055433600160a060020a039081169116145b80610a6d5750600160a060020a03331660009081526006602052604090205460ff166001145b1515610a7857600080fd5b600154610a8b908363ffffffff6113ba16565b600155600160a060020a038316600090815260208190526040902054610ab7908363ffffffff6113ba16565b600160a060020a0384166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a03831660006000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b610b4933826113cd565b50565b60075460ff1681565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205480831115610bb257600160a060020a033381166000908152600260209081526040808320938816835292905290812055610be9565b610bc2818463ffffffff6113a816565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526020819052604090205490565b60035433600160a060020a0390811691161480610c95575060045433600160a060020a039081169116145b1515610ca057600080fd5b600160a060020a0381161515610cb557600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035433600160a060020a0390811691161480610d0f575060045433600160a060020a039081169116145b1515610d1a57600080fd5b60075460ff1615610d2a57600080fd5b6007805460ff19166001179055565b60035433600160a060020a0390811691161480610d64575060045433600160a060020a039081169116145b1515610d6f57600080fd5b60075460ff161515610d8057600080fd5b6007805461ff0019169055565b600030600160a060020a031684600160a060020a031614151515610db057600080fd5b61097284846111d6565b60088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b820191906000526020600020905b815481529060010190602001808311610e3357829003601f168201915b505050505081565b6000600160a060020a0383161515610e6f57600080fd5b600160a060020a033316600090815260208190526040902054821115610e9457600080fd5b600160a060020a033316600090815260208190526040902054610ebd908363ffffffff6113a816565b600160a060020a033381166000908152602081905260408082209390935590851681522054610ef2908363ffffffff6113ba16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03166000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b60035433600160a060020a0390811691161480610f83575060045433600160a060020a039081169116145b1515610f8e57600080fd5b60075460ff161515610f9f57600080fd5b6007805461ff001916610100179055565b600354600160a060020a031681565b60035433600160a060020a0390811691161480610fea575060045433600160a060020a039081169116145b1515610ff557600080fd5b600160a060020a038216151561100a57600080fd5b600160a060020a03919091166000908152600660205260409020805460ff191660ff909216919091179055565b60035433600160a060020a0390811691161480611062575060045433600160a060020a039081169116145b151561106d57600080fd5b600160a060020a038116151561108257600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600030600160a060020a031684600160a060020a0316141515156110d457600080fd5b6110df85858561076a565b5083600160a060020a0316348360405180828051906020019080838360005b838110156111165780820151838201526020016110fe565b50505050905090810190601f1680156111435780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af192505050151561116357600080fd5b506001949350505050565b600754610100900460ff1681565b600030600160a060020a031684600160a060020a03161415151561119f57600080fd5b61097284846106f8565b600030600160a060020a031684600160a060020a0316141515156111cc57600080fd5b6109728484610b55565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205461120e908363ffffffff6113ba16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600554600160a060020a031681565b600454600160a060020a031681565b60035433600160a060020a03908116911614806112ee575060045433600160a060020a039081169116145b15156112f957600080fd5b600160a060020a038116151561130e57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b6000828211156113b457fe5b50900390565b818101828110156113c757fe5b92915050565b600160a060020a0382166000908152602081905260409020548111156113f257600080fd5b600160a060020a03821660009081526020819052604090205461141b908263ffffffff6113a816565b600160a060020a038316600090815260208190526040902055600154611447908263ffffffff6113a816565b600155600160a060020a0382167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a26000600160a060020a0383166000805160206114b98339815191528360405190815260200160405180910390a350505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820817ec102c5e476fd238656600cb6c88534196ae894806746d6b59682322f4dd50029a165627a7a72305820efd64036ded6dadd24925b64afe8a0d8e5a8a7ad7591a9c349553d445d3135840029

Deployed Bytecode

0x606060405260043610620001855763ffffffff60e060020a60003504166323539cd481146200018a57806323d7af2414620001ac57806335e08fa514620001e45780633f4ba83a14620002195780635c975abb146200022f5780635f184eda1462000259578063607dc1d614620002765780637af915af146200030e5780637cc2fe491462000330578063825bdb74146200035257806382ff84ae14620003745780638456cb5914620003a357806385c95d3014620003b95780638a53f23014620003e157806392008bfa14620003f75780639f96de0f1462000419578063a0c6e65e1462000446578063ad5e46cb146200046f578063b777cad71462000485578063b8c9c4d2146200049b578063bb1d45fc14620004bb578063c0619c7014620004e3578063c79f8b621462000505578063ce8808ea146200051b578063d04b019e1462000538578063d9964d9214620005af578063e2877e0414620005cc578063e9e2990e14620005f8578063ee70f392146200060e578063f1ff732b1462000624575b600080fd5b34156200019657600080fd5b620001aa61ffff6004351660243562000646565b005b3415620001b857600080fd5b620001ce600160a060020a03600435166200071a565b60405160ff909116815260200160405180910390f35b3415620001f057600080fd5b620001fd6004356200072f565b604051600160a060020a03909116815260200160405180910390f35b34156200022557600080fd5b620001aa6200074a565b34156200023b57600080fd5b62000245620007a0565b604051901515815260200160405180910390f35b34156200026557600080fd5b620001aa61ffff60043516620007a9565b34156200028257600080fd5b620001aa60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496505093359350620008d092505050565b34156200031a57600080fd5b620001aa600160a060020a036004351662000c08565b34156200033c57600080fd5b620001aa600160a060020a036004351662000d08565b34156200035e57600080fd5b620001aa600160a060020a036004351662000e02565b34156200038057600080fd5b6200039161ffff6004351662000e7f565b60405190815260200160405180910390f35b3415620003af57600080fd5b620001aa62000e91565b3415620003c557600080fd5b620001aa600160a060020a036004351660ff6024351662000ee9565b3415620003ed57600080fd5b620001aa62001035565b34156200040357600080fd5b620001aa600160a060020a03600435166200108c565b34156200042557600080fd5b6200042f62001186565b60405161ffff909116815260200160405180910390f35b34156200045257600080fd5b6200039161ffff60043516600160a060020a036024351662001190565b34156200047b57600080fd5b620001aa62001242565b34156200049157600080fd5b620001fd6200129d565b3415620004a757600080fd5b620001aa61ffff60043516602435620012ac565b3415620004c757600080fd5b620001aa600160a060020a036004351660ff602435166200136a565b3415620004ef57600080fd5b620001aa600160a060020a0360043516620013e5565b34156200051157600080fd5b6200024562001462565b34156200052757600080fd5b620001fd61ffff6004351662001470565b34156200054457600080fd5b6200055a600160a060020a03600435166200148b565b60405160208082528190810183818151815260200191508051906020019060200280838360005b838110156200059b57808201518382015260200162000581565b505050509050019250505060405180910390f35b3415620005bb57600080fd5b6200039161ffff60043516620015b3565b3415620005d857600080fd5b620001aa61ffff60043516600160a060020a0360243516604435620015c9565b34156200060457600080fd5b620001fd6200172c565b34156200061a57600080fd5b620001fd6200173b565b34156200063057600080fd5b620001aa600160a060020a03600435166200174a565b60025460009033600160a060020a039081169116146200066557600080fd5b61ffff8316600090815260056020526040902054600160a060020a031615156200068e57600080fd5b5061ffff82166000908152600560205260409081902054600160a060020a03169081906340c10f1990309085905160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515620006fd57600080fd5b5af115156200070b57600080fd5b50505060405180515050505050565b60036020526000908152604090205460ff1681565b600660205260009081526040902054600160a060020a031681565b60005433600160a060020a039081169116148062000776575060015433600160a060020a039081169116145b15156200078257600080fd5b60045460ff1615156200079457600080fd5b6004805460ff19169055565b60045460ff1681565b600254600090819033600160a060020a03908116911614620007ca57600080fd5b61ffff8316600090815260056020526040902054600160a060020a03161515620007f357600080fd5b61ffff83166000908152600560205260409081902054600160a060020a0316925082906370a082319030905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200085b57600080fd5b5af115156200086957600080fd5b5050506040518051600254909250600160a060020a03808516925063a9059cbb91168360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515620006fd57600080fd5b6000805433600160a060020a0390811691161480620008fd575060015433600160a060020a039081169116145b8062000917575060025433600160a060020a039081169116145b806200093e5750600160a060020a03331660009081526003602052604090205460ff166001145b15156200094a57600080fd5b600660006200095986620017c7565b8152602081019190915260400160002054600160a060020a0316156200097e57600080fd5b8383836200098b620017f6565b808060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015620009d1578082015183820152602001620009b7565b50505050905090810190601f168015620009ff5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101562000a3757808201518382015260200162000a1d565b50505050905090810190601f16801562000a655780820380516001836020036101000a031916815260200191505b5095505050505050604051809103906000f080151562000a8457600080fd5b60085461ffff166000908152600560205260408120805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038416179055909150819060069062000ad287620017c7565b81526020810191909152604001600020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905562000b1884620017c7565b60085461ffff1660009081526007602052604090819020919091557fbf1f3f85d21501d67a387954b397e53af20e9342befb560fe816f5be449e43229085908390859051600160a060020a03831660208201526040810182905260608082528190810185818151815260200191508051906020019080838360005b8381101562000bad57808201518382015260200162000b93565b50505050905090810190601f16801562000bdb5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a150506008805461ffff8082166001011661ffff199091161790555050565b600080548190819033600160a060020a039081169116148062000c39575060015433600160a060020a039081169116145b151562000c4557600080fd5b600160a060020a038416151562000c5b57600080fd5b62000c6562001186565b9250600091505b8261ffff168261ffff16101562000d02575061ffff81166000908152600560205260409081902054600160a060020a031690819063f1ff732b9086905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b151562000ce557600080fd5b5af1151562000cf357600080fd5b50506001909201915062000c6c565b50505050565b600080548190819033600160a060020a039081169116148062000d39575060015433600160a060020a039081169116145b151562000d4557600080fd5b600160a060020a038416151562000d5b57600080fd5b62000d6562001186565b9250600091505b8261ffff168261ffff16101562000d02575061ffff81166000908152600560205260409081902054600160a060020a031690819063c0619c709086905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b151562000de557600080fd5b5af1151562000df357600080fd5b50506001909201915062000d6c565b60005433600160a060020a039081169116148062000e2e575060015433600160a060020a039081169116145b151562000e3a57600080fd5b600160a060020a038116151562000e5057600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60076020526000908152604090205481565b60005433600160a060020a039081169116148062000ebd575060015433600160a060020a039081169116145b151562000ec957600080fd5b60045460ff161562000eda57600080fd5b6004805460ff19166001179055565b600080548190819033600160a060020a039081169116148062000f1a575060015433600160a060020a039081169116145b8062000f34575060025433600160a060020a039081169116145b8062000f5b5750600160a060020a03331660009081526003602052604090205460ff166001145b151562000f6757600080fd5b600160a060020a038516151562000f7d57600080fd5b62000f8762001186565b9250600091505b8261ffff168261ffff1610156200102e575061ffff81166000908152600560205260409081902054600160a060020a031690819063bb1d45fc90879087905160e060020a63ffffffff8516028152600160a060020a03909216600483015260ff166024820152604401600060405180830381600087803b15156200101157600080fd5b5af115156200101f57600080fd5b50506001909201915062000f8e565b5050505050565b60005433600160a060020a039081169116148062001061575060015433600160a060020a039081169116145b15156200106d57600080fd5b60045460ff1615156200107f57600080fd5b6004805461ff0019169055565b600080548190819033600160a060020a0390811691161480620010bd575060015433600160a060020a039081169116145b1515620010c957600080fd5b600160a060020a0384161515620010df57600080fd5b620010e962001186565b9250600091505b8261ffff168261ffff16101562000d02575061ffff81166000908152600560205260409081902054600160a060020a031690819063825bdb749086905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156200116957600080fd5b5af115156200117757600080fd5b505060019092019150620010f0565b60085461ffff1690565b61ffff82166000908152600560205260408120548190600160a060020a03161515620011bb57600080fd5b5061ffff83166000908152600560205260409081902054600160a060020a03169081906370a082319085905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200122357600080fd5b5af115156200123157600080fd5b505050604051805195945050505050565b60005433600160a060020a03908116911614806200126e575060015433600160a060020a039081169116145b15156200127a57600080fd5b60045460ff1615156200128c57600080fd5b6004805461ff001916610100179055565b600054600160a060020a031681565b60025460009033600160a060020a03908116911614620012cb57600080fd5b61ffff8316600090815260056020526040902054600160a060020a03161515620012f457600080fd5b5061ffff82166000908152600560205260409081902054600160a060020a03169081906342966c689084905160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b15156200135457600080fd5b5af115156200136257600080fd5b505050505050565b60005433600160a060020a039081169116148062001396575060015433600160a060020a039081169116145b1515620013a257600080fd5b600160a060020a0382161515620013b857600080fd5b600160a060020a03919091166000908152600360205260409020805460ff191660ff909216919091179055565b60005433600160a060020a039081169116148062001411575060015433600160a060020a039081169116145b15156200141d57600080fd5b600160a060020a03811615156200143357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600454610100900460ff1681565b600560205260009081526040902054600160a060020a031681565b6200149562001807565b6000620014a162001807565b600080600160a060020a0386161515620014ba57600080fd5b620014c462001186565b93508361ffff16604051805910620014d95750595b90808252806020026020018201604052509250600091505b8361ffff168261ffff161015620015a9575061ffff81166000908152600560205260409081902054600160a060020a03169081906370a082319088905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200156a57600080fd5b5af115156200157857600080fd5b50505060405180519050838361ffff16815181106200159357fe5b60209081029091010152600190910190620014f1565b5090949350505050565b61ffff1660009081526007602052604090205490565b600254600090819033600160a060020a03908116911614620015ea57600080fd5b61ffff8516600090815260056020526040902054600160a060020a031615156200161357600080fd5b600160a060020a03841615156200162957600080fd5b61ffff85166000908152600560205260409081902054600160a060020a0316925082906370a082319030905160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156200169157600080fd5b5af115156200169f57600080fd5b505050604051805191505082811015620016b857600080fd5b81600160a060020a031663a9059cbb858560405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156200170d57600080fd5b5af115156200171b57600080fd5b505050604051805150505050505050565b600254600160a060020a031681565b600154600160a060020a031681565b60005433600160a060020a039081169116148062001776575060015433600160a060020a039081169116145b15156200178257600080fd5b600160a060020a03811615156200179857600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000620017d362001807565b508180511515620017e85760009150620017f0565b602083015191505b50919050565b604051611764806200181a83390190565b60206040519081016040526000815290560060606040526007805461ffff1916905534156200001b57600080fd5b60405162001764380380620017648339810160405280805182019190602001805182019190602001805160038054600160a060020a033316600160a060020a031991821681179092556004805482168317905560058054909116909117905591506008905083805162000093929160200190620001ab565b506009828051620000a9929160200190620001ab565b50600154620000c79082640100000000620013ba6200019782021704565b600155600160a060020a033316600090815260208190526040902054620000fd9082640100000000620013ba6200019782021704565b600160a060020a0333166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859083905190815260200160405180910390a2600160a060020a03331660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a350505062000250565b81810182811015620001a557fe5b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000230565b5090565b6200024d91905b808211156200022c576000815560010162000237565b90565b61150480620002606000396000f3006060604052600436106101955763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461019a57806318160ddd146101d057806323b872dd146101f557806323d7af241461021d5780632e0f2625146102525780633f4ba83a146102655780634000aea01461027a57806340c10f19146102d457806342966c68146102f65780635c975abb1461030c578063661884631461031f57806370a0823114610341578063825bdb74146103605780638456cb591461037f5780638a53f2301461039257806390db623f146103a5578063a3f4df7e146103ff578063a9059cbb14610489578063ad5e46cb146104ab578063b777cad7146104be578063bb1d45fc146104ed578063c0619c7014610512578063c1d34b8914610531578063c79f8b6214610592578063cae9ca51146105a5578063cb3993be146105ff578063d73dd62314610659578063dd62ed3e1461067b578063e9e2990e146106a0578063ee70f392146106b3578063f1ff732b146106c6578063f76f8d78146106e5575b600080fd5b34156101a557600080fd5b6101bc600160a060020a03600435166024356106f8565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101e3610764565b60405190815260200160405180910390f35b341561020057600080fd5b6101bc600160a060020a036004358116906024351660443561076a565b341561022857600080fd5b61023c600160a060020a03600435166108d8565b60405160ff909116815260200160405180910390f35b341561025d57600080fd5b6101e36108ed565b341561027057600080fd5b6102786108f2565b005b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061094595505050505050565b34156102df57600080fd5b6101bc600160a060020a0360043516602435610a00565b341561030157600080fd5b610278600435610b3f565b341561031757600080fd5b6101bc610b4c565b341561032a57600080fd5b6101bc600160a060020a0360043516602435610b55565b341561034c57600080fd5b6101e3600160a060020a0360043516610c4f565b341561036b57600080fd5b610278600160a060020a0360043516610c6a565b341561038a57600080fd5b610278610ce4565b341561039d57600080fd5b610278610d39565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610d8d95505050505050565b341561040a57600080fd5b610412610dba565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561044e578082015183820152602001610436565b50505050905090810190601f16801561047b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561049457600080fd5b6101bc600160a060020a0360043516602435610e58565b34156104b657600080fd5b610278610f58565b34156104c957600080fd5b6104d1610fb0565b604051600160a060020a03909116815260200160405180910390f35b34156104f857600080fd5b610278600160a060020a036004351660ff60243516610fbf565b341561051d57600080fd5b610278600160a060020a0360043516611037565b6101bc600160a060020a036004803582169160248035909116916044359160849060643590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506110b195505050505050565b341561059d57600080fd5b6101bc61116e565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061117c95505050505050565b6101bc60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506111a995505050505050565b341561066457600080fd5b6101bc600160a060020a03600435166024356111d6565b341561068657600080fd5b6101e3600160a060020a036004358116906024351661127a565b34156106ab57600080fd5b6104d16112a5565b34156106be57600080fd5b6104d16112b4565b34156106d157600080fd5b610278600160a060020a03600435166112c3565b34156106f057600080fd5b61041261133d565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60015490565b6000600160a060020a038316151561078157600080fd5b600160a060020a0384166000908152602081905260409020548211156107a657600080fd5b600160a060020a03808516600090815260026020908152604080832033909416835292905220548211156107d957600080fd5b600160a060020a038416600090815260208190526040902054610802908363ffffffff6113a816565b600160a060020a038086166000908152602081905260408082209390935590851681522054610837908363ffffffff6113ba16565b600160a060020a038085166000908152602081815260408083209490945587831682526002815283822033909316825291909152205461087d908363ffffffff6113a816565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516916000805160206114b98339815191529085905190815260200160405180910390a35060019392505050565b60066020526000908152604090205460ff1681565b600081565b60035433600160a060020a039081169116148061091d575060045433600160a060020a039081169116145b151561092857600080fd5b60075460ff16151561093957600080fd5b6007805460ff19169055565b600030600160a060020a031684600160a060020a03161415151561096857600080fd5b6109728484610e58565b5083600160a060020a0316348360405180828051906020019080838360005b838110156109a9578082015183820152602001610991565b50505050905090810190601f1680156109d65780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af19250505015156109f657600080fd5b5060019392505050565b60035460009033600160a060020a0390811691161480610a2e575060045433600160a060020a039081169116145b80610a47575060055433600160a060020a039081169116145b80610a6d5750600160a060020a03331660009081526006602052604090205460ff166001145b1515610a7857600080fd5b600154610a8b908363ffffffff6113ba16565b600155600160a060020a038316600090815260208190526040902054610ab7908363ffffffff6113ba16565b600160a060020a0384166000818152602081905260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a2600160a060020a03831660006000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b610b4933826113cd565b50565b60075460ff1681565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205480831115610bb257600160a060020a033381166000908152600260209081526040808320938816835292905290812055610be9565b610bc2818463ffffffff6113a816565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526020819052604090205490565b60035433600160a060020a0390811691161480610c95575060045433600160a060020a039081169116145b1515610ca057600080fd5b600160a060020a0381161515610cb557600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035433600160a060020a0390811691161480610d0f575060045433600160a060020a039081169116145b1515610d1a57600080fd5b60075460ff1615610d2a57600080fd5b6007805460ff19166001179055565b60035433600160a060020a0390811691161480610d64575060045433600160a060020a039081169116145b1515610d6f57600080fd5b60075460ff161515610d8057600080fd5b6007805461ff0019169055565b600030600160a060020a031684600160a060020a031614151515610db057600080fd5b61097284846111d6565b60088054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b820191906000526020600020905b815481529060010190602001808311610e3357829003601f168201915b505050505081565b6000600160a060020a0383161515610e6f57600080fd5b600160a060020a033316600090815260208190526040902054821115610e9457600080fd5b600160a060020a033316600090815260208190526040902054610ebd908363ffffffff6113a816565b600160a060020a033381166000908152602081905260408082209390935590851681522054610ef2908363ffffffff6113ba16565b60008085600160a060020a0316600160a060020a031681526020019081526020016000208190555082600160a060020a031633600160a060020a03166000805160206114b98339815191528460405190815260200160405180910390a350600192915050565b60035433600160a060020a0390811691161480610f83575060045433600160a060020a039081169116145b1515610f8e57600080fd5b60075460ff161515610f9f57600080fd5b6007805461ff001916610100179055565b600354600160a060020a031681565b60035433600160a060020a0390811691161480610fea575060045433600160a060020a039081169116145b1515610ff557600080fd5b600160a060020a038216151561100a57600080fd5b600160a060020a03919091166000908152600660205260409020805460ff191660ff909216919091179055565b60035433600160a060020a0390811691161480611062575060045433600160a060020a039081169116145b151561106d57600080fd5b600160a060020a038116151561108257600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600030600160a060020a031684600160a060020a0316141515156110d457600080fd5b6110df85858561076a565b5083600160a060020a0316348360405180828051906020019080838360005b838110156111165780820151838201526020016110fe565b50505050905090810190601f1680156111435780820380516001836020036101000a031916815260200191505b5091505060006040518083038185875af192505050151561116357600080fd5b506001949350505050565b600754610100900460ff1681565b600030600160a060020a031684600160a060020a03161415151561119f57600080fd5b61097284846106f8565b600030600160a060020a031684600160a060020a0316141515156111cc57600080fd5b6109728484610b55565b600160a060020a03338116600090815260026020908152604080832093861683529290529081205461120e908363ffffffff6113ba16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600554600160a060020a031681565b600454600160a060020a031681565b60035433600160a060020a03908116911614806112ee575060045433600160a060020a039081169116145b15156112f957600080fd5b600160a060020a038116151561130e57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e505780601f10610e2557610100808354040283529160200191610e50565b6000828211156113b457fe5b50900390565b818101828110156113c757fe5b92915050565b600160a060020a0382166000908152602081905260409020548111156113f257600080fd5b600160a060020a03821660009081526020819052604090205461141b908263ffffffff6113a816565b600160a060020a038316600090815260208190526040902055600154611447908263ffffffff6113a816565b600155600160a060020a0382167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405190815260200160405180910390a26000600160a060020a0383166000805160206114b98339815191528360405190815260200160405180910390a350505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820817ec102c5e476fd238656600cb6c88534196ae894806746d6b59682322f4dd50029a165627a7a72305820efd64036ded6dadd24925b64afe8a0d8e5a8a7ad7591a9c349553d445d3135840029

Swarm Source

bzzr://efd64036ded6dadd24925b64afe8a0d8e5a8a7ad7591a9c349553d445d313584

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.