ETH Price: $2,791.62 (+6.35%)

ANDROMEDA (AND)
 

Overview

TokenID

15

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PPToken

Compiler Version
v0.5.13+commit.5b0b510c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-12-24
*/

/**
 *Submitted for verification at Etherscan.io on 2019-12-23
*/

/*
 * Copyright ©️ 2018 Galt•Project Society Construction and Terraforming Company
 * (Founded by [Nikolai Popeka](https://github.com/npopeka)
 *
 * Copyright ©️ 2018 Galt•Core Blockchain Company
 * (Founded by [Nikolai Popeka](https://github.com/npopeka) by
 * [Basic Agreement](ipfs/QmaCiXUmSrP16Gz8Jdzq6AJESY1EAANmmwha15uR3c1bsS)).
 * 
 * 🌎 Galt Project is an international decentralized land and real estate property registry
 * governed by DAO (Decentralized autonomous organization) and self-governance platform for communities
 * of homeowners on Ethereum.
 * 
 * 🏡 https://galtproject.io
 */

pragma solidity ^0.5.13;

interface IPPTokenController {
  event Mint(address indexed to, uint256 indexed tokenId);
  event SetGeoDataManager(address indexed geoDataManager);
  event SetFeeManager(address indexed feeManager);
  event SetFeeCollector(address indexed feeCollector);
  event NewProposal(
    uint256 indexed proposalId,
    uint256 indexed tokenId,
    address indexed creator
  );
  event ProposalExecuted(uint256 indexed proposalId);
  event ProposalExecutionFailed(uint256 indexed proposalId);
  event ProposalApproval(
    uint256 indexed proposalId,
    uint256 indexed tokenId
  );
  event ProposalRejection(
    uint256 indexed proposalId,
    uint256 indexed tokenId
  );
  event ProposalCancellation(
    uint256 indexed proposalId,
    uint256 indexed tokenId
  );
  event SetMinter(address indexed minter);
  event SetBurner(address indexed burner);
  event SetBurnTimeout(uint256 indexed tokenId, uint256 timeout);
  event InitiateTokenBurn(uint256 indexed tokenId, uint256 timeoutAt);
  event BurnTokenByTimeout(uint256 indexed tokenId);
  event CancelTokenBurn(uint256 indexed tokenId);
  event SetFee(bytes32 indexed key, uint256 value);
  event WithdrawEth(address indexed to, uint256 amount);
  event WithdrawErc20(address indexed to, address indexed tokenAddress, uint256 amount);

  enum PropertyInitialSetupStage {
    PENDING,
    DETAILS,
    DONE
  }

  function fees(bytes32) external view returns (uint256);
  function setBurner(address _burner) external;
  function setGeoDataManager(address _geoDataManager) external;
  function setFeeManager(address _feeManager) external;
  function setFeeCollector(address _feeCollector) external;
  function setBurnTimeoutDuration(uint256 _tokenId, uint256 _duration) external;
  function setFee(bytes32 _key, uint256 _value) external;
  function withdrawErc20(address _tokenAddress, address _to) external;
  function withdrawEth(address payable _to) external;
  function initiateTokenBurn(uint256 _tokenId) external;
  function cancelTokenBurn(uint256 _tokenId) external;
  function burnTokenByTimeout(uint256 _tokenId) external;
  function propose(bytes calldata _data, string calldata _dataLink) external payable;
  function approve(uint256 _proposalId) external;
  function execute(uint256 _proposalId) external;
  function fetchTokenId(bytes calldata _data) external pure returns (uint256 tokenId);
  function() external payable;
}

interface IACL {
  function setRole(bytes32 _role, address _candidate, bool _allow) external;
  function hasRole(address _candidate, bytes32 _role) external view returns (bool);
}

interface IPPGlobalRegistry {
  function setContract(bytes32 _key, address _value) external;

  // GETTERS
  function getContract(bytes32 _key) external view returns (address);
  function getACL() external view returns (IACL);
  function getGaltTokenAddress() external view returns (address);
  function getPPTokenRegistryAddress() external view returns (address);
  function getPPLockerRegistryAddress() external view returns (address);
  function getPPMarketAddress() external view returns (address);
}

interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of NFTs in `owner`'s account.
     */
    function balanceOf(address owner) public view returns (uint256 balance);

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);


    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

interface IPPToken {
  event SetBaseURI(string baseURI);
  event SetContractDataLink(string indexed dataLink);
  event SetLegalAgreementIpfsHash(bytes32 legalAgreementIpfsHash);
  event SetController(address indexed controller);
  event SetDetails(
    address indexed geoDataManager,
    uint256 indexed privatePropertyId
  );
  event SetContour(
    address indexed geoDataManager,
    uint256 indexed privatePropertyId
  );
  event SetHumanAddress(uint256 indexed tokenId, string humanAddress);
  event SetDataLink(uint256 indexed tokenId, string dataLink);
  event SetLedgerIdentifier(uint256 indexed tokenId, bytes32 ledgerIdentifier);
  event SetVertexRootHash(uint256 indexed tokenId, bytes32 ledgerIdentifier);
  event SetVertexStorageLink(uint256 indexed tokenId, string vertexStorageLink);
  event SetArea(uint256 indexed tokenId, uint256 area, AreaSource areaSource);
  event SetExtraData(bytes32 indexed key, bytes32 value);
  event SetPropertyExtraData(uint256 indexed propertyId, bytes32 indexed key, bytes32 value);
  event Mint(address indexed to, uint256 indexed privatePropertyId);
  event Burn(address indexed from, uint256 indexed privatePropertyId);

  enum AreaSource {
    USER_INPUT,
    CONTRACT
  }

  enum TokenType {
    NULL,
    LAND_PLOT,
    BUILDING,
    ROOM,
    PACKAGE
  }

  struct Property {
    uint256 setupStage;

    // (LAND_PLOT,BUILDING,ROOM) Type cannot be changed after token creation
    TokenType tokenType;
    // Geohash5z (x,y,z)
    uint256[] contour;
    // Meters above the sea
    int256 highestPoint;

    // USER_INPUT or CONTRACT
    AreaSource areaSource;
    // Calculated either by contract (for land plots and buildings) or by manual input
    // in sq. meters (1 sq. meter == 1 eth)
    uint256 area;

    bytes32 ledgerIdentifier;
    string humanAddress;
    string dataLink;

    // Reserved for future use
    bytes32 vertexRootHash;
    string vertexStorageLink;
  }

  // PERMISSIONED METHODS

  function setContractDataLink(string calldata _dataLink) external;
  function setLegalAgreementIpfsHash(bytes32 _legalAgreementIpfsHash) external;
  function setController(address payable _controller) external;
  function setDetails(
    uint256 _tokenId,
    TokenType _tokenType,
    AreaSource _areaSource,
    uint256 _area,
    bytes32 _ledgerIdentifier,
    string calldata _humanAddress,
    string calldata _dataLink
  )
    external;

  function setContour(
    uint256 _tokenId,
    uint256[] calldata _contour,
    int256 _highestPoint
  )
    external;

  function setArea(uint256 _tokenId, uint256 _area, AreaSource _areaSource) external;
  function setLedgerIdentifier(uint256 _tokenId, bytes32 _ledgerIdentifier) external;
  function setDataLink(uint256 _tokenId, string calldata _dataLink) external;
  function setVertexRootHash(uint256 _tokenId, bytes32 _vertexRootHash) external;
  function setVertexStorageLink(uint256 _tokenId, string calldata _vertexStorageLink) external;

  function incrementSetupStage(uint256 _tokenId) external;

  function mint(address _to) external returns (uint256);
  function burn(uint256 _tokenId) external;
  function transferFrom(address from, address to, uint256 tokenId) external;

  // GETTERS
  function controller() external view returns (address payable);

  function tokensOfOwner(address _owner) external view returns (uint256[] memory);
  function ownerOf(uint256 _tokenId) external view returns (address);
  function exists(uint256 _tokenId) external view returns (bool);
  function getType(uint256 _tokenId) external view returns (TokenType);
  function getContour(uint256 _tokenId) external view returns (uint256[] memory);
  function getContourLength(uint256 _tokenId) external view returns (uint256);
  function getHighestPoint(uint256 _tokenId) external view returns (int256);
  function getHumanAddress(uint256 _tokenId) external view returns (string memory);
  function getArea(uint256 _tokenId) external view returns (uint256);
  function getAreaSource(uint256 _tokenId) external view returns (AreaSource);
  function getLedgerIdentifier(uint256 _tokenId) external view returns (bytes32);
  function getDataLink(uint256 _tokenId) external view returns (string memory);
  function getVertexRootHash(uint256 _tokenId) external view returns (bytes32);
  function getVertexStorageLink(uint256 _tokenId) external view returns (string memory);
  function getSetupStage(uint256 _tokenId) external view returns (uint256);
  function getDetails(uint256 _tokenId)
    external
    view
    returns (
      TokenType tokenType,
      uint256[] memory contour,
      int256 highestPoint,
      AreaSource areaSource,
      uint256 area,
      bytes32 ledgerIdentifier,
      string memory humanAddress,
      string memory dataLink,
      uint256 setupStage,
      bytes32 vertexRootHash,
      string memory vertexStorageLink
    );
}

contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * IMPORTANT: It is unsafe to assume that an address for which this
     * function returns false is an externally-owned account (EOA) and not a
     * contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: 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
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

contract PPTokenController is IPPTokenController, Ownable {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  uint256 public constant VERSION = 3;

  bytes32 public constant PROPOSAL_GALT_FEE_KEY = bytes32("CONTROLLER_PROPOSAL_GALT");
  bytes32 public constant PROPOSAL_ETH_FEE_KEY = bytes32("CONTROLLER_PROPOSAL_ETH");

  enum ProposalStatus {
    NULL,
    PENDING,
    APPROVED,
    EXECUTED,
    REJECTED,
    CANCELLED
  }

  struct Proposal {
    address creator;
    ProposalStatus status;
    bool tokenOwnerApproved;
    bool geoDataManagerApproved;
    bytes data;
    string dataLink;
  }

  IPPGlobalRegistry public globalRegistry;
  IPPToken public tokenContract;
  address public geoDataManager;
  address public feeManager;
  address public feeCollector;
  address public minter;
  address public burner;
  uint256 public defaultBurnTimeoutDuration;
  uint256 internal idCounter;

  mapping(uint256 => Proposal) public proposals;
  // tokenId => timeoutDuration (in seconds)
  mapping(uint256 => uint256) public burnTimeoutDuration;
  // tokenId => burnTimeoutAt
  mapping(uint256 => uint256) public burnTimeoutAt;
  // key => fee
  mapping(bytes32 => uint256) public fees;

  modifier onlyMinter() {
    require(msg.sender == minter, "Only minter allowed");

    _;
  }

  constructor(IPPGlobalRegistry _globalRegistry, IPPToken _tokenContract, uint256 _defaultBurnTimeoutDuration) public {
    require(_defaultBurnTimeoutDuration > 0, "Invalid burn timeout duration");

    defaultBurnTimeoutDuration = _defaultBurnTimeoutDuration;
    tokenContract = _tokenContract;
    globalRegistry = _globalRegistry;
  }

  function() external payable {
  }

  // CONTRACT OWNER INTERFACE

  function setGeoDataManager(address _geoDataManager) external onlyOwner {
    geoDataManager = _geoDataManager;

    emit SetGeoDataManager(_geoDataManager);
  }

  function setFeeManager(address _feeManager) external onlyOwner {
    feeManager = _feeManager;

    emit SetFeeManager(_feeManager);
  }

  function setFeeCollector(address _feeCollector) external onlyOwner {
    feeCollector = _feeCollector;

    emit SetFeeCollector(_feeCollector);
  }

  function setMinter(address _minter) external onlyOwner {
    minter = _minter;

    emit SetMinter(_minter);
  }

  function setBurner(address _burner) external onlyOwner {
    burner = _burner;

    emit SetBurner(_burner);
  }

  function withdrawErc20(address _tokenAddress, address _to) external {
    require(msg.sender == feeCollector, "Missing permissions");

    uint256 balance = IERC20(_tokenAddress).balanceOf(address(this));

    IERC20(_tokenAddress).transfer(_to, balance);

    emit WithdrawErc20(_to, _tokenAddress, balance);
  }

  function withdrawEth(address payable _to) external {
    require(msg.sender == feeCollector, "Missing permissions");

    uint256 balance = address(this).balance;

    _to.transfer(balance);

    emit WithdrawEth(_to, balance);
  }

  function setFee(bytes32 _key, uint256 _value) external {
    require(msg.sender == feeManager, "Missing permissions");

    fees[_key] = _value;
    emit SetFee(_key, _value);
  }

  // BURNER INTERFACE

  function initiateTokenBurn(uint256 _tokenId) external {
    require(msg.sender == burner, "Only burner allowed");
    require(burnTimeoutAt[_tokenId] == 0, "Burn already initiated");
    require(tokenContract.ownerOf(_tokenId) != address(0), "Token doesn't exists");

    uint256 duration = burnTimeoutDuration[_tokenId];
    if (duration == 0) {
      duration = defaultBurnTimeoutDuration;
    }

    uint256 timeoutAt = block.timestamp.add(duration);
    burnTimeoutAt[_tokenId] = timeoutAt;

    emit InitiateTokenBurn(_tokenId, timeoutAt);
  }

  // MINTER INTERFACE
  function mint(address _to) external onlyMinter {
    uint256 _tokenId = tokenContract.mint(_to);

    emit Mint(_to, _tokenId);
  }

  // CONTROLLER INTERFACE

  function setInitialDetails(
    uint256 _privatePropertyId,
    IPPToken.TokenType _tokenType,
    IPPToken.AreaSource _areaSource,
    uint256 _area,
    bytes32 _ledgerIdentifier,
    string calldata _humanAddress,
    string calldata _dataLink
  )
    external
    onlyMinter
  {
    // Will REVERT if there is no owner assigned to the token
    tokenContract.ownerOf(_privatePropertyId);

    uint256 setupStage = tokenContract.getSetupStage(_privatePropertyId);
    require(setupStage == uint256(PropertyInitialSetupStage.PENDING), "Requires PENDING setup stage");

    tokenContract.setDetails(_privatePropertyId, _tokenType, _areaSource, _area, _ledgerIdentifier, _humanAddress, _dataLink);

    tokenContract.incrementSetupStage(_privatePropertyId);
  }

  function setInitialContour(
    uint256 _privatePropertyId,
    uint256[] calldata _contour,
    int256 _highestPoint
  )
    external
    onlyMinter
  {
    uint256 setupStage = tokenContract.getSetupStage(_privatePropertyId);

    require(setupStage == uint256(PropertyInitialSetupStage.DETAILS), "Requires DETAILS setup stage");

    tokenContract.setContour(_privatePropertyId, _contour, _highestPoint);

    tokenContract.incrementSetupStage(_privatePropertyId);
  }

  // TOKEN OWNER INTERFACE

  function setBurnTimeoutDuration(uint256 _tokenId, uint256 _duration) external {
    require(tokenContract.ownerOf(_tokenId) == msg.sender, "Only token owner allowed");
    require(_duration > 0, "Invalid timeout duration");

    burnTimeoutDuration[_tokenId] = _duration;

    emit SetBurnTimeout(_tokenId, _duration);
  }

  function cancelTokenBurn(uint256 _tokenId) external {
    require(burnTimeoutAt[_tokenId] != 0, "Burn not initiated");
    require(tokenContract.ownerOf(_tokenId) == msg.sender, "Only token owner allowed");

    burnTimeoutAt[_tokenId] = 0;

    emit CancelTokenBurn(_tokenId);
  }

  // COMMON INTERFACE

  function propose(
    bytes calldata _data,
    string calldata _dataLink
  )
    external
    payable
  {
    address msgSender = msg.sender;
    uint256 tokenId = fetchTokenId(_data);
    uint256 proposalId = _nextId();

    Proposal storage p = proposals[proposalId];

    if (msgSender == geoDataManager) {
      p.geoDataManagerApproved = true;
    } else if (msgSender == tokenContract.ownerOf(tokenId)) {
      _acceptProposalFee();
      p.tokenOwnerApproved = true;
    } else {
      revert("Missing permissions");
    }

    p.creator = msgSender;
    p.data = _data;
    p.dataLink = _dataLink;
    p.status = ProposalStatus.PENDING;

    emit NewProposal(proposalId, tokenId, msg.sender);
  }

  function approve(uint256 _proposalId) external {
    Proposal storage p = proposals[_proposalId];
    uint256 tokenId = fetchTokenId(p.data);

    require(p.status == ProposalStatus.PENDING, "Expect PENDING status");

    if (p.geoDataManagerApproved == true) {
      require(msg.sender == tokenContract.ownerOf(tokenId), "Missing permissions");
      p.tokenOwnerApproved = true;
    } else if (p.tokenOwnerApproved == true) {
      require(msg.sender == geoDataManager, "Missing permissions");
      p.geoDataManagerApproved = true;
    } else {
      revert("Missing permissions");
    }

    emit ProposalApproval(_proposalId, tokenId);

    p.status = ProposalStatus.APPROVED;

    execute(_proposalId);
  }

  function reject(uint256 _proposalId) external {
    Proposal storage p = proposals[_proposalId];
    uint256 tokenId = fetchTokenId(p.data);

    require(p.status == ProposalStatus.PENDING, "Expect PENDING status");

    if (p.geoDataManagerApproved == true) {
      require(msg.sender == tokenContract.ownerOf(tokenId), "Missing permissions");
    } else if (p.tokenOwnerApproved == true) {
      require(msg.sender == geoDataManager, "Missing permissions");
    } else {
      revert("Missing permissions");
    }

    p.status = ProposalStatus.REJECTED;

    emit ProposalRejection(_proposalId, tokenId);
  }

  function cancel(uint256 _proposalId) external {
    Proposal storage p = proposals[_proposalId];
    uint256 tokenId = fetchTokenId(p.data);

    require(p.status == ProposalStatus.PENDING, "Expect PENDING status");

    if (msg.sender == geoDataManager) {
      require(p.geoDataManagerApproved == true, "Only own proposals can be cancelled");
    } else if (msg.sender == tokenContract.ownerOf(tokenId)) {
      require(p.tokenOwnerApproved == true, "Only own proposals can be cancelled");
    } else {
      revert("Missing permissions");
    }

    p.status = ProposalStatus.CANCELLED;

    emit ProposalCancellation(_proposalId, tokenId);
  }

  // PERMISSIONLESS INTERFACE

  function execute(uint256 _proposalId) public {
    Proposal storage p = proposals[_proposalId];

    require(p.tokenOwnerApproved == true, "Token owner approval required");
    require(p.geoDataManagerApproved == true, "GeoDataManager approval required");
    require(p.status == ProposalStatus.APPROVED, "Expect APPROVED status");

    p.status = ProposalStatus.EXECUTED;

    (bool ok,) = address(tokenContract)
      .call
      .gas(gasleft().sub(50000))(p.data);

    if (ok == false) {
      emit ProposalExecutionFailed(_proposalId);
      p.status = ProposalStatus.APPROVED;
    } else {
      emit ProposalExecuted(_proposalId);
    }
  }

  function burnTokenByTimeout(uint256 _tokenId) external {
    require(burnTimeoutAt[_tokenId] != 0, "Timeout not set");
    require(block.timestamp > burnTimeoutAt[_tokenId], "Timeout has not passed yet");
    require(tokenContract.ownerOf(_tokenId) != address(0), "Token already burned");

    tokenContract.burn(_tokenId);

    emit BurnTokenByTimeout(_tokenId);
  }

  // @dev Assuming that a tokenId is always the first argument in a method
  function fetchTokenId(bytes memory _data) public pure returns (uint256 tokenId) {
    assembly {
      tokenId := mload(add(_data, 0x24))
    }

    require(tokenId > 0, "Failed fetching tokenId from encoded data");
  }

  // INTERNAL

  function _nextId() internal returns (uint256) {
    idCounter += 1;
    return idCounter;
  }

  function _galtToken() internal view returns (IERC20) {
    return IERC20(globalRegistry.getGaltTokenAddress());
  }

  function _acceptProposalFee() internal {
    if (msg.value == 0) {
      _galtToken().transferFrom(msg.sender, address(this), fees[PROPOSAL_GALT_FEE_KEY]);
    } else {
      require(msg.value == fees[PROPOSAL_ETH_FEE_KEY], "Invalid fee");
    }
  }
}


library Strings {
    /**
     * @dev Converts a `uint256` to a `string`.
     * via OraclizeAPI - MIT licence
     * https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
     */
    function fromUint256(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

contract IERC721Metadata is IERC721 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

contract ERC721 is Context, ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;
    using Counters for Counters.Counter;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from token ID to owner
    mapping (uint256 => address) private _tokenOwner;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to number of owned token
    mapping (address => Counters.Counter) private _ownedTokensCount;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    constructor () public {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _ownedTokensCount[owner].current();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        address owner = _tokenOwner[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");

        return owner;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf.
     * @param to operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address to, bool approved) public {
        require(to != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][to] = approved;
        emit ApprovalForAll(_msgSender(), to, approved);
    }

    /**
     * @dev Tells whether an operator is approved by a given owner.
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator) public view returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address.
     * Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     * Requires the msg.sender to be the owner, approved, or operator.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function transferFrom(address from, address to, uint256 tokenId) public {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transferFrom(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the _msgSender() to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransferFrom(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) internal {
        _transferFrom(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether the specified token exists.
     * @param tokenId uint256 ID of the token to query the existence of
     * @return bool whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        address owner = _tokenOwner[tokenId];
        return owner != address(0);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to].increment();

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use {_burn} instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own");

        _clearApproval(tokenId);

        _ownedTokensCount[owner].decrement();
        _tokenOwner[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal {
        _burn(ownerOf(tokenId), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _clearApproval(tokenId);

        _ownedTokensCount[from].decrement();
        _ownedTokensCount[to].increment();

        _tokenOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * This function is deprecated.
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }

        bytes4 retval = IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data);
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Private function to clear current approval of a given token ID.
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _clearApproval(uint256 tokenId) private {
        if (_tokenApprovals[tokenId] != address(0)) {
            _tokenApprovals[tokenId] = address(0);
        }
    }
}

contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /**
     * @dev Constructor function
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

    /**
     * @dev Gets the token name.
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol.
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns an URI for a given token ID.
     * Throws if the token ID does not exist. May return an empty string.
     * @param tokenId uint256 ID of the token to query
     */
    function tokenURI(uint256 tokenId) external view returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return _tokenURIs[tokenId];
    }

    /**
     * @dev Internal function to set the token URI for a given token.
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to set its URI
     * @param uri string URI to assign
     */
    function _setTokenURI(uint256 tokenId, string memory uri) internal {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use _burn(uint256) instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned by the msg.sender
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

contract IERC721Enumerable is IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => uint256[]) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Constructor function.
     */
    constructor () public {
        // register the supported interface to conform to ERC721Enumerable via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner.
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens.
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view returns (uint256) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        super._transferFrom(from, to, tokenId);

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to address the beneficiary that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        super._mint(to, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use {ERC721-_burn} instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        _removeTokenFromOwnerEnumeration(owner, tokenId);
        // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
        _ownedTokensIndex[tokenId] = 0;

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Gets the list of token IDs of the requested owner.
     * @param owner address owning the tokens
     * @return uint256[] List of token IDs owned by the requested address
     */
    function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
        return _ownedTokens[owner];
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        _ownedTokensIndex[tokenId] = _ownedTokens[to].length;
        _ownedTokens[to].push(tokenId);
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        _ownedTokens[from].length--;

        // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by
        // lastTokenId, or just over the end of the array if the token was the last one).
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length.sub(1);
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        _allTokens.length--;
        _allTokensIndex[tokenId] = 0;
    }
}

contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {
    constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
        // solhint-disable-previous-line no-empty-blocks
    }
}

contract PPToken is IPPToken, ERC721Full, Ownable {

  uint256 public constant VERSION = 2;

  uint256 public tokenIdCounter;
  address payable public controller;
  string public contractDataLink;
  string public baseURI;

  bytes32[] public legalAgreementIpfsHashList;

  // tokenId => details
  mapping(uint256 => Property) internal properties;
  // tokenId => timestamp
  mapping(uint256 => uint256) public propertyCreatedAt;
  // tokenId => (key => value)
  mapping(uint256 => mapping(bytes32 => bytes32)) public propertyExtraData;
  // key => value
  mapping(bytes32 => bytes32) public extraData;

  modifier onlyController() {
    require(msg.sender == controller, "Only controller allowed");

    _;
  }

  constructor(string memory _name, string memory _symbol) public ERC721Full(_name, _symbol) {
    baseURI = "";
  }

  // OWNER INTERFACE

  function setBaseURI(string calldata _baseURI) external onlyOwner {
    baseURI = _baseURI;

    emit SetBaseURI(baseURI);
  }

  function setContractDataLink(string calldata _dataLink) external onlyOwner {
    contractDataLink = _dataLink;

    emit SetContractDataLink(_dataLink);
  }

  function setLegalAgreementIpfsHash(bytes32 _legalAgreementIpfsHash) external onlyOwner {
    legalAgreementIpfsHashList.push(_legalAgreementIpfsHash);

    emit SetLegalAgreementIpfsHash(_legalAgreementIpfsHash);
  }

  function setController(address payable _controller) external onlyOwner {
    controller = _controller;

    emit SetController(_controller);
  }

  // CONTROLLER INTERFACE

  function mint(address _to) external onlyController returns(uint256) {
    uint256 id = nextTokenId();

    emit Mint(_to, id);

    _mint(_to, id);

    propertyCreatedAt[id] = block.timestamp;

    return id;
  }

  function incrementSetupStage(uint256 _tokenId) external onlyController {
    properties[_tokenId].setupStage += 1;
  }

  function setDetails(
    uint256 _tokenId,
    TokenType _tokenType,
    AreaSource _areaSource,
    uint256 _area,
    bytes32 _ledgerIdentifier,
    string calldata _humanAddress,
    string calldata _dataLink
  )
    external
    onlyController
  {
    Property storage p = properties[_tokenId];

    p.tokenType = _tokenType;
    p.areaSource = _areaSource;
    p.area = _area;
    p.ledgerIdentifier = _ledgerIdentifier;
    p.humanAddress = _humanAddress;
    p.dataLink = _dataLink;

    emit SetDetails(msg.sender, _tokenId);
  }

  function setContour(
    uint256 _tokenId,
    uint256[] calldata _contour,
    int256 _highestPoint
  )
    external
    onlyController
  {
    Property storage p = properties[_tokenId];

    p.contour = _contour;
    p.highestPoint = _highestPoint;

    emit SetContour(msg.sender, _tokenId);
  }

  function setHumanAddress(uint256 _tokenId, string calldata _humanAddress) external onlyController {
    properties[_tokenId].humanAddress = _humanAddress;

    emit SetHumanAddress(_tokenId, _humanAddress);
  }

  function setArea(uint256 _tokenId, uint256 _area, AreaSource _areaSource) external onlyController {
    properties[_tokenId].area = _area;
    properties[_tokenId].areaSource = _areaSource;

    emit SetArea(_tokenId, _area, _areaSource);
  }

  function setLedgerIdentifier(uint256 _tokenId, bytes32 _ledgerIdentifier) external onlyController {
    properties[_tokenId].ledgerIdentifier = _ledgerIdentifier;

    emit SetLedgerIdentifier(_tokenId, _ledgerIdentifier);
  }

  function setDataLink(uint256 _tokenId, string calldata _dataLink) external onlyController {
    properties[_tokenId].dataLink = _dataLink;

    emit SetDataLink(_tokenId, _dataLink);
  }

  function setVertexRootHash(uint256 _tokenId, bytes32 _vertexRootHash) external onlyController {
    properties[_tokenId].vertexRootHash = _vertexRootHash;

    emit SetVertexRootHash(_tokenId, _vertexRootHash);
  }

  function setVertexStorageLink(uint256 _tokenId, string calldata _vertexStorageLink) external onlyController {
    properties[_tokenId].vertexStorageLink = _vertexStorageLink;

    emit SetVertexStorageLink(_tokenId, _vertexStorageLink);
  }

  function setExtraData(bytes32 _key, bytes32 _value) external onlyController {
    extraData[_key] = _value;

    emit SetExtraData(_key, _value);
  }

  function setPropertyExtraData(uint256 _tokenId, bytes32 _key, bytes32 _value) external onlyController {
    propertyExtraData[_tokenId][_key] = _value;

    emit SetPropertyExtraData(_tokenId, _key, _value);
  }

  function burn(uint256 _tokenId) external onlyController {
    address owner = ownerOf(_tokenId);

    delete properties[_tokenId];

    _burn(owner, _tokenId);

    emit Burn(owner, _tokenId);
  }

  // INTERNAL

  function nextTokenId() internal returns (uint256) {
    tokenIdCounter += 1;
    return tokenIdCounter;
  }

  // GETTERS

  /**
    * @dev Returns the URI for a given token ID. May return an empty string.
    *
    * If the token's URI is non-empty and a base URI was set (via
    * {_setBaseURI}), it will be added to the token ID's URI as a prefix.
    *
    * Reverts if the token ID does not exist.
    */
  function tokenURI(uint256 _tokenId) external view returns (string memory) {
    require(_exists(_tokenId), "PPToken: URI query for nonexistent token");

    // abi.encodePacked is being used to concatenate strings
    return string(abi.encodePacked(baseURI, Strings.fromUint256(_tokenId)));
  }

  function getLastLegalAgreementIpfsHash() external view returns (bytes32) {
    return legalAgreementIpfsHashList[legalAgreementIpfsHashList.length - 1];
  }

  function tokensOfOwner(address _owner) external view returns (uint256[] memory) {
    return _tokensOfOwner(_owner);
  }

  function exists(uint256 _tokenId) external view returns (bool) {
    return _exists(_tokenId);
  }

  function getType(uint256 _tokenId) external view returns (TokenType) {
    return properties[_tokenId].tokenType;
  }

  function getContour(uint256 _tokenId) external view returns (uint256[] memory) {
    return properties[_tokenId].contour;
  }

  function getHighestPoint(uint256 _tokenId) external view returns (int256) {
    return properties[_tokenId].highestPoint;
  }

  function getHumanAddress(uint256 _tokenId) external view returns (string memory) {
    return properties[_tokenId].humanAddress;
  }

  function getArea(uint256 _tokenId) external view returns (uint256) {
    return properties[_tokenId].area;
  }

  function getAreaSource(uint256 _tokenId) external view returns (AreaSource) {
    return properties[_tokenId].areaSource;
  }

  function getLedgerIdentifier(uint256 _tokenId) external view returns (bytes32) {
    return properties[_tokenId].ledgerIdentifier;
  }

  function getDataLink(uint256 _tokenId) external view returns (string memory) {
    return properties[_tokenId].dataLink;
  }

  function getContourLength(uint256 _tokenId) external view returns (uint256) {
    return properties[_tokenId].contour.length;
  }

  function getVertexRootHash(uint256 _tokenId) external view returns (bytes32) {
    return properties[_tokenId].vertexRootHash;
  }

  function getVertexStorageLink(uint256 _tokenId) external view returns (string memory) {
    return properties[_tokenId].vertexStorageLink;
  }

  function getSetupStage(uint256 _tokenId) external view returns(uint256) {
    return properties[_tokenId].setupStage;
  }

  function getDetails(uint256 _tokenId)
    external
    view
    returns (
      TokenType tokenType,
      uint256[] memory contour,
      int256 highestPoint,
      AreaSource areaSource,
      uint256 area,
      bytes32 ledgerIdentifier,
      string memory humanAddress,
      string memory dataLink,
      uint256 setupStage,
      bytes32 vertexRootHash,
      string memory vertexStorageLink
    )
  {
    Property storage p = properties[_tokenId];

    return (
      p.tokenType,
      p.contour,
      p.highestPoint,
      p.areaSource,
      p.area,
      p.ledgerIdentifier,
      p.humanAddress,
      p.dataLink,
      p.setupStage,
      p.vertexRootHash,
      p.vertexStorageLink
    );
  }
}

interface IPPTokenRegistry {
  event AddToken(address indexed token, address indexed owener, address indexed factory);
  event SetFactory(address factory);
  event SetLockerRegistry(address lockerRegistry);

  function tokenList(uint256 _index) external view returns (address);
  function isValid(address _tokenContract) external view returns (bool);
  function requireValidToken(address _token) external view;
  function addToken(address _privatePropertyToken) external;
  function getAllTokens() external view returns (address[] memory);
}

contract ChargesFee is Ownable {
  using SafeERC20 for IERC20;

  event SetFeeManager(address addr);
  event SetFeeCollector(address addr);
  event SetEthFee(uint256 ethFee);
  event SetGaltFee(uint256 ethFee);
  event WithdrawEth(address indexed to, uint256 amount);
  event WithdrawErc20(address indexed to, address indexed tokenAddress, uint256 amount);
  event WithdrawErc721(address indexed to, address indexed tokenAddress, uint256 tokenId);

  uint256 public ethFee;
  uint256 public galtFee;

  address public feeManager;
  address public feeCollector;

  modifier onlyFeeManager() {
    require(msg.sender == feeManager, "ChargesFee: caller is not the feeManager");
    _;
  }

  modifier onlyFeeCollector() {
    require(msg.sender == feeCollector, "ChargesFee: caller is not the feeCollector");
    _;
  }

  constructor(uint256 _ethFee, uint256 _galtFee) public {
    ethFee = _ethFee;
    galtFee = _galtFee;
  }

  // ABSTRACT

  function _galtToken() internal view returns (IERC20);

  // SETTERS

  function setFeeManager(address _addr) external onlyOwner {
    feeManager = _addr;

    emit SetFeeManager(_addr);
  }

  function setFeeCollector(address _addr) external onlyOwner {
    feeCollector = _addr;

    emit SetFeeCollector(_addr);
  }

  function setEthFee(uint256 _ethFee) external onlyFeeManager {
    ethFee = _ethFee;

    emit SetEthFee(_ethFee);
  }

  function setGaltFee(uint256 _galtFee) external onlyFeeManager {
    galtFee = _galtFee;

    emit SetGaltFee(_galtFee);
  }

  // WITHDRAWERS

  function withdrawErc20(address _tokenAddress, address _to) external onlyFeeCollector {
    uint256 balance = IERC20(_tokenAddress).balanceOf(address(this));

    IERC20(_tokenAddress).transfer(_to, balance);

    emit WithdrawErc20(_to, _tokenAddress, balance);
  }

  function withdrawErc721(address _tokenAddress, address _to, uint256 _tokenId) external onlyFeeCollector {
    IERC721(_tokenAddress).transferFrom(address(this), _to, _tokenId);

    emit WithdrawErc721(_to, _tokenAddress, _tokenId);
  }

  function withdrawEth(address payable _to) external onlyFeeCollector {
    uint256 balance = address(this).balance;

    _to.transfer(balance);

    emit WithdrawEth(_to, balance);
  }

  // INTERNAL

  function _acceptPayment() internal {
    if (msg.value == 0) {
      _galtToken().transferFrom(msg.sender, address(this), galtFee);
    } else {
      require(msg.value == ethFee, "Fee and msg.value not equal");
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"privatePropertyId","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"privatePropertyId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"area","type":"uint256"},{"indexed":false,"internalType":"enum IPPToken.AreaSource","name":"areaSource","type":"uint8"}],"name":"SetArea","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"geoDataManager","type":"address"},{"indexed":true,"internalType":"uint256","name":"privatePropertyId","type":"uint256"}],"name":"SetContour","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"dataLink","type":"string"}],"name":"SetContractDataLink","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"controller","type":"address"}],"name":"SetController","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"dataLink","type":"string"}],"name":"SetDataLink","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"geoDataManager","type":"address"},{"indexed":true,"internalType":"uint256","name":"privatePropertyId","type":"uint256"}],"name":"SetDetails","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"SetExtraData","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"humanAddress","type":"string"}],"name":"SetHumanAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"ledgerIdentifier","type":"bytes32"}],"name":"SetLedgerIdentifier","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"legalAgreementIpfsHash","type":"bytes32"}],"name":"SetLegalAgreementIpfsHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"propertyId","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"SetPropertyExtraData","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"ledgerIdentifier","type":"bytes32"}],"name":"SetVertexRootHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"vertexStorageLink","type":"string"}],"name":"SetVertexStorageLink","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractDataLink","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"extraData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getArea","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getAreaSource","outputs":[{"internalType":"enum IPPToken.AreaSource","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getContour","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getContourLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getDataLink","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getDetails","outputs":[{"internalType":"enum IPPToken.TokenType","name":"tokenType","type":"uint8"},{"internalType":"uint256[]","name":"contour","type":"uint256[]"},{"internalType":"int256","name":"highestPoint","type":"int256"},{"internalType":"enum IPPToken.AreaSource","name":"areaSource","type":"uint8"},{"internalType":"uint256","name":"area","type":"uint256"},{"internalType":"bytes32","name":"ledgerIdentifier","type":"bytes32"},{"internalType":"string","name":"humanAddress","type":"string"},{"internalType":"string","name":"dataLink","type":"string"},{"internalType":"uint256","name":"setupStage","type":"uint256"},{"internalType":"bytes32","name":"vertexRootHash","type":"bytes32"},{"internalType":"string","name":"vertexStorageLink","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getHighestPoint","outputs":[{"internalType":"int256","name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getHumanAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLastLegalAgreementIpfsHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getLedgerIdentifier","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSetupStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getType","outputs":[{"internalType":"enum IPPToken.TokenType","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getVertexRootHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getVertexStorageLink","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"incrementSetupStage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"legalAgreementIpfsHashList","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"propertyCreatedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"propertyExtraData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_area","type":"uint256"},{"internalType":"enum IPPToken.AreaSource","name":"_areaSource","type":"uint8"}],"name":"setArea","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256[]","name":"_contour","type":"uint256[]"},{"internalType":"int256","name":"_highestPoint","type":"int256"}],"name":"setContour","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_dataLink","type":"string"}],"name":"setContractDataLink","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_controller","type":"address"}],"name":"setController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_dataLink","type":"string"}],"name":"setDataLink","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"enum IPPToken.TokenType","name":"_tokenType","type":"uint8"},{"internalType":"enum IPPToken.AreaSource","name":"_areaSource","type":"uint8"},{"internalType":"uint256","name":"_area","type":"uint256"},{"internalType":"bytes32","name":"_ledgerIdentifier","type":"bytes32"},{"internalType":"string","name":"_humanAddress","type":"string"},{"internalType":"string","name":"_dataLink","type":"string"}],"name":"setDetails","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setExtraData","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_humanAddress","type":"string"}],"name":"setHumanAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_ledgerIdentifier","type":"bytes32"}],"name":"setLedgerIdentifier","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_legalAgreementIpfsHash","type":"bytes32"}],"name":"setLegalAgreementIpfsHash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setPropertyExtraData","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_vertexRootHash","type":"bytes32"}],"name":"setVertexRootHash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_vertexStorageLink","type":"string"}],"name":"setVertexStorageLink","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620041b8380380620041b8833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052508391508290508181620001d97f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b036200032a16565b6200020d7f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b036200032a16565b620002417f780e9d63000000000000000000000000000000000000000000000000000000006001600160e01b036200032a16565b815162000256906009906020850190620003fe565b5080516200026c90600a906020840190620003fe565b50620002a17f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b036200032a16565b50505050620002b5620003f960201b60201c565b600c80546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36040805160208101918290526000908190526200032191601091620003fe565b505050620004a0565b7fffffffff000000000000000000000000000000000000000000000000000000008082161415620003bc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200044157805160ff191683800117855562000471565b8280016001018555821562000471579182015b828111156200047157825182559160200191906001019062000454565b506200047f92915062000483565b5090565b620003fb91905b808211156200047f57600081556001016200048a565b613d0880620004b06000396000f3fe608060405234801561001057600080fd5b50600436106103ba5760003560e01c806370a08231116101f4578063b93a89f71161011a578063f2809351116100ad578063f77c47911161007c578063f77c479114611086578063f9bf4b2b1461108e578063fe63640c146110ab578063ffa1ad7414611120576103ba565b8063f28093511461101e578063f2df2b7f14611026578063f2fde38b14611043578063f631087d14611069576103ba565b8063c87b56dd116100e9578063c87b56dd14610f87578063c9462e0114610fa4578063e985e9c514610fcd578063f1c393b814610ffb576103ba565b8063b93a89f714610d3d578063c289856814610f30578063c2997e5b14610f4d578063c5a8dc6c14610f6a576103ba565b80638f32d59b11610192578063a0311f4811610161578063a0311f4814610c0b578063a22cb46514610c2e578063b669ba2614610c5c578063b88d4fde14610c79576103ba565b80638f32d59b14610bcd57806392eefe9b14610bd557806395d89b4114610bfb57806398bdf6f514610c03576103ba565b80638462151c116101ce5780638462151c14610ab757806389e8915f14610b2d5780638d18643d14610ba25780638da5cb5b14610bc5576103ba565b806370a0823114610a6c578063715018a614610a92578063731a301e14610a9a576103ba565b806342966c68116102e457806355f804b3116102775780636a627842116102465780636a627842146109f45780636c0360eb14610a1a5780636d26aaa914610a225780636fa56c1414610a3f576103ba565b806355f804b31461092f5780636352211e1461099d578063637d28c6146109ba5780636490c7a8146109d7576103ba565b80634f558e79116102b35780634f558e79146108785780634f6ccce7146108955780634ff68468146108b25780635020f3d414610927576103ba565b806342966c68146107b357806348f105ac146107d05780634d82950c146107ed5780634e55168f1461080a576103ba565b806318160ddd1161035c5780632f745c591161032b5780632f745c59146106ed5780633a17da95146107195780634036ab781461073c57806342842e0e1461077d576103ba565b806318160ddd146105ae57806318212fc6146105b657806323b872dd1461069a5780632b7256d5146106d0576103ba565b8063081812fc11610398578063081812fc146104a6578063095ea7b3146104df5780631437594b1461050d578063145a0adc14610539576103ba565b806301ffc9a7146103bf57806302b902c3146103fa57806306fdde0314610429575b600080fd5b6103e6600480360360208110156103d557600080fd5b50356001600160e01b031916611128565b604080519115158252519081900360200190f35b6104176004803603602081101561041057600080fd5b503561114b565b60408051918252519081900360200190f35b610431611160565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104c3600480360360208110156104bc57600080fd5b50356111f7565b604080516001600160a01b039092168252519081900360200190f35b61050b600480360360408110156104f557600080fd5b506001600160a01b038135169060200135611259565b005b61050b6004803603606081101561052357600080fd5b508035906020810135906040013560ff16611381565b61050b6004803603604081101561054f57600080fd5b81359190810190604081016020820135600160201b81111561057057600080fd5b82018360208201111561058257600080fd5b803590602001918460018302840111600160201b831117156105a357600080fd5b509092509050611454565b610417611524565b61050b600480360360e08110156105cc57600080fd5b81359160ff60208201358116926040830135909116916060810135916080820135919081019060c0810160a0820135600160201b81111561060c57600080fd5b82018360208201111561061e57600080fd5b803590602001918460018302840111600160201b8311171561063f57600080fd5b919390929091602081019035600160201b81111561065c57600080fd5b82018360208201111561066e57600080fd5b803590602001918460018302840111600160201b8311171561068f57600080fd5b50909250905061152a565b61050b600480360360608110156106b057600080fd5b506001600160a01b0381358116916020810135909116906040013561162a565b610431600480360360208110156106e657600080fd5b5035611686565b6104176004803603604081101561070357600080fd5b506001600160a01b03813516906020013561172a565b61050b6004803603604081101561072f57600080fd5b50803590602001356117a9565b6107596004803603602081101561075257600080fd5b5035611844565b6040518082600481111561076957fe5b60ff16815260200191505060405180910390f35b61050b6004803603606081101561079357600080fd5b506001600160a01b0381358116916020810135909116906040013561185c565b61050b600480360360208110156107c957600080fd5b5035611877565b61050b600480360360208110156107e657600080fd5b5035611999565b61050b6004803603602081101561080357600080fd5b50356119fd565b61050b6004803603602081101561082057600080fd5b810190602081018135600160201b81111561083a57600080fd5b82018360208201111561084c57600080fd5b803590602001918460018302840111600160201b8311171561086d57600080fd5b509092509050611aaf565b6103e66004803603602081101561088e57600080fd5b5035611b48565b610417600480360360208110156108ab57600080fd5b5035611b59565b61050b600480360360408110156108c857600080fd5b81359190810190604081016020820135600160201b8111156108e957600080fd5b8201836020820111156108fb57600080fd5b803590602001918460018302840111600160201b8311171561091c57600080fd5b509092509050611bbf565b610431611c8f565b61050b6004803603602081101561094557600080fd5b810190602081018135600160201b81111561095f57600080fd5b82018360208201111561097157600080fd5b803590602001918460018302840111600160201b8311171561099257600080fd5b509092509050611d1d565b6104c3600480360360208110156109b357600080fd5b5035611e22565b610417600480360360208110156109d057600080fd5b5035611e76565b610417600480360360208110156109ed57600080fd5b5035611e8b565b61041760048036036020811015610a0a57600080fd5b50356001600160a01b0316611ea0565b610431611f54565b61041760048036036020811015610a3857600080fd5b5035611faf565b610a5c60048036036020811015610a5557600080fd5b5035611fc1565b6040518082600181111561076957fe5b61041760048036036020811015610a8257600080fd5b50356001600160a01b0316611fd9565b61050b612041565b61043160048036036020811015610ab057600080fd5b50356120d2565b610add60048036036020811015610acd57600080fd5b50356001600160a01b031661213f565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610b19578181015183820152602001610b01565b505050509050019250505060405180910390f35b61050b60048036036060811015610b4357600080fd5b81359190810190604081016020820135600160201b811115610b6457600080fd5b820183602082011115610b7657600080fd5b803590602001918460208302840111600160201b83111715610b9757600080fd5b91935091503561219f565b61050b60048036036040811015610bb857600080fd5b5080359060200135612244565b6104c36122dc565b6103e66122eb565b61050b60048036036020811015610beb57600080fd5b50356001600160a01b0316612311565b6104316123a2565b610417612403565b61050b60048036036040811015610c2157600080fd5b5080359060200135612409565b61050b60048036036040811015610c4457600080fd5b506001600160a01b03813516906020013515156124a4565b61041760048036036020811015610c7257600080fd5b50356125a9565b61050b60048036036080811015610c8f57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610cc957600080fd5b820183602082011115610cdb57600080fd5b803590602001918460018302840111600160201b83111715610cfc57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506125c7945050505050565b610d5a60048036036020811015610d5357600080fd5b5035612625565b604051808c6004811115610d6a57fe5b60ff168152602001806020018b81526020018a6001811115610d8857fe5b60ff16815260200189815260200188815260200180602001806020018781526020018681526020018060200185810385528f818151815260200191508051906020019060200280838360005b83811015610dec578181015183820152602001610dd4565b5050505090500185810384528a818151815260200191508051906020019080838360005b83811015610e28578181015183820152602001610e10565b50505050905090810190601f168015610e555780820380516001836020036101000a031916815260200191505b5085810383528951815289516020918201918b019080838360005b83811015610e88578181015183820152602001610e70565b50505050905090810190601f168015610eb55780820380516001836020036101000a031916815260200191505b50858103825286518152865160209182019188019080838360005b83811015610ee8578181015183820152602001610ed0565b50505050905090810190601f168015610f155780820380516001836020036101000a031916815260200191505b509f5050505050505050505050505050505060405180910390f35b61041760048036036020811015610f4657600080fd5b50356128bd565b61041760048036036020811015610f6357600080fd5b50356128d2565b61041760048036036020811015610f8057600080fd5b50356128e7565b61043160048036036020811015610f9d57600080fd5b50356128f9565b61050b60048036036060811015610fba57600080fd5b5080359060208101359060400135612a10565b6103e660048036036040811015610fe357600080fd5b506001600160a01b0381358116916020013516612ab3565b6104176004803603604081101561101157600080fd5b5080359060200135612ae1565b610417612afe565b610add6004803603602081101561103c57600080fd5b5035612b24565b61050b6004803603602081101561105957600080fd5b50356001600160a01b0316612b87565b6104176004803603602081101561107f57600080fd5b5035612bda565b6104c3612bec565b610431600480360360208110156110a457600080fd5b5035612bfb565b61050b600480360360408110156110c157600080fd5b81359190810190604081016020820135600160201b8111156110e257600080fd5b8201836020820111156110f457600080fd5b803590602001918460018302840111600160201b8311171561111557600080fd5b509092509050612c68565b610417612d38565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60009081526012602052604090206003015490565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156111ec5780601f106111c1576101008083540402835291602001916111ec565b820191906000526020600020905b8154815290600101906020018083116111cf57829003601f168201915b505050505090505b90565b600061120282612d3d565b61123d5760405162461bcd60e51b815260040180806020018281038252602c815260200180613b9c602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b600061126482611e22565b9050806001600160a01b0316836001600160a01b031614156112b75760405162461bcd60e51b8152600401808060200182810382526021815260200180613c316021913960400191505060405180910390fd5b806001600160a01b03166112c9612d5a565b6001600160a01b031614806112ea57506112ea816112e5612d5a565b612ab3565b6113255760405162461bcd60e51b8152600401808060200182810382526038815260200180613ae96038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600e546001600160a01b031633146113ce576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b600083815260126020526040902060058101839055600401805482919060ff1916600183818111156113fc57fe5b0217905550827f74ec101dabaaed0b3e3c999c8ce61b4e86439d7c6e2cc7c06f0808ff6f6a879d83836040518083815260200182600181111561143b57fe5b60ff1681526020019250505060405180910390a2505050565b600e546001600160a01b031633146114a1576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b60008381526012602052604090206114bd9060080183836138c1565b50827f9fd49d7b0b37161b66268d5d2f8bc3bf5f24a38f914849671ff03abdd9a4ab8f838360405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a2505050565b60075490565b600e546001600160a01b03163314611577576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000898152601260205260409020600180820180548b9260ff19909116908360048111156115a157fe5b021790555060048101805489919060ff1916600183818111156115c057fe5b021790555060058101879055600681018690556115e16007820186866138c1565b506115f06008820184846138c1565b506040518a9033907f29364ad0cf59153c5a94ed382993f62ed000f38365b57e1515d5ca97fc02a0c190600090a350505050505050505050565b61163b611635612d5a565b82612d5e565b6116765760405162461bcd60e51b8152600401808060200182810382526031815260200180613c526031913960400191505060405180910390fd5b611681838383612e02565b505050565b60008181526012602090815260409182902060070180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561171e5780601f106116f35761010080835404028352916020019161171e565b820191906000526020600020905b81548152906001019060200180831161170157829003601f168201915b50505050509050919050565b600061173583611fd9565b82106117725760405162461bcd60e51b815260040180806020018281038252602b815260200180613a16602b913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902080548390811061179657fe5b9060005260206000200154905092915050565b600e546001600160a01b031633146117f6576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000828152601260209081526040918290206009018390558151838152915184927fafd4aa82b9749c46eabf48d654bdaf8035955bdd3e94d35418f19bcc4cf1625892908290030190a25050565b60009081526012602052604090206001015460ff1690565b611681838383604051806020016040528060008152506125c7565b600e546001600160a01b031633146118c4576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b60006118cf82611e22565b600083815260126020526040812081815560018101805460ff191690559192506118fc600283018261393f565b60006003830181905560048301805460ff19169055600583018190556006830181905561192d90600784019061395d565b61193b60088301600061395d565b6009820160009055600a82016000611953919061395d565b505061195f8183612e21565b60405182906001600160a01b038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590600090a35050565b600e546001600160a01b031633146119e6576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b600090815260126020526040902080546001019055565b611a056122eb565b611a44576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68018190556040805182815290517f230ddd15b60e3fda77fdce3e2004219cd3466d4cf7b00482e836b65d75db40f29181900360200190a150565b611ab76122eb565b611af6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b611b02600f83836138c1565b508181604051808383808284376040519201829003822094507ffa5e2fc0cf934f6162cd1e5a5e1e3be043138129552df145f4646b3b173c942493506000925050a25050565b6000611b5382612d3d565b92915050565b6000611b63611524565b8210611ba05760405162461bcd60e51b815260040180806020018281038252602c815260200180613c83602c913960400191505060405180910390fd5b60078281548110611bad57fe5b90600052602060002001549050919050565b600e546001600160a01b03163314611c0c576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000838152601260205260409020611c289060070183836138c1565b50827f6beb82254835772dd24a9576abac38fe3abea579a458137f109809ab4bb5a533838360405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a2505050565b600f805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015611d155780601f10611cea57610100808354040283529160200191611d15565b820191906000526020600020905b815481529060010190602001808311611cf857829003601f168201915b505050505081565b611d256122eb565b611d64576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b611d70601083836138c1565b5060408051602080825260108054600260001961010060018416150201909116049183018290527f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa93909291829182019084908015611e105780601f10611de557610100808354040283529160200191611e10565b820191906000526020600020905b815481529060010190602001808311611df357829003601f168201915b50509250505060405180910390a15050565b6000818152600160205260408120546001600160a01b031680611b535760405162461bcd60e51b8152600401808060200182810382526029815260200180613b4b6029913960400191505060405180910390fd5b60009081526012602052604090206006015490565b60009081526012602052604090206005015490565b600e546000906001600160a01b03163314611ef0576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000611efa612e6d565b905080836001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a3611f3d8382612e7b565b600081815260136020526040902042905592915050565b6010805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015611d155780601f10611cea57610100808354040283529160200191611d15565b60009081526012602052604090205490565b60009081526012602052604090206004015460ff1690565b60006001600160a01b0382166120205760405162461bcd60e51b815260040180806020018281038252602a815260200180613b21602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600360205260409020611b5390612e98565b6120496122eb565b612088576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b600c546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600c80546001600160a01b0319169055565b600081815260126020908152604091829020600a0180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561171e5780601f106116f35761010080835404028352916020019161171e565b606061214a82612e9c565b80548060200260200160405190810160405280929190818152602001828054801561171e57602002820191906000526020600020905b8154815260200190600101908083116121805750505050509050919050565b600e546001600160a01b031633146121ec576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b60008481526012602052604090206122086002820185856139a1565b5060038101829055604051859033907f9ace85c72c9af7a03ca2baab87ad65b648a8816ee857b232ccfeaefe18b7b14390600090a35050505050565b600e546001600160a01b03163314612291576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000828152601560209081526040918290208390558151838152915184927f26e216cdb8b090b844e6c17c2b1a48cb8229e3a97d7b016ffae14b7346d93a4f92908290030190a25050565b600c546001600160a01b031690565b600c546000906001600160a01b0316612302612d5a565b6001600160a01b031614905090565b6123196122eb565b612358576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b0383169081179091556040517f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090600090a250565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156111ec5780601f106111c1576101008083540402835291602001916111ec565b600d5481565b600e546001600160a01b03163314612456576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000828152601260209081526040918290206006018390558151838152915184927f17aa83c0c199e4c57171ab5a46ede2e42e6f91226745b57b405a142f7f9c860e92908290030190a25050565b6124ac612d5a565b6001600160a01b0316826001600160a01b03161415612512576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806004600061251f612d5a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612563612d5a565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b601181815481106125b657fe5b600091825260209091200154905081565b6125d86125d2612d5a565b83612d5e565b6126135760405162461bcd60e51b8152600401808060200182810382526031815260200180613c526031913960400191505060405180910390fd5b61261f84848484612eb6565b50505050565b6000606060008060008060608060008060606000601260008e815260200190815260200160002090508060010160009054906101000a900460ff168160020182600301548360040160009054906101000a900460ff16846005015485600601548660070187600801886000015489600901548a600a01898054806020026020016040519081016040528092919081815260200182805480156126e657602002820191906000526020600020905b8154815260200190600101908083116126d2575b5050885460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959f508a9450925084019050828280156127745780601f1061274957610100808354040283529160200191612774565b820191906000526020600020905b81548152906001019060200180831161275757829003601f168201915b5050875460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959a50899450925084019050828280156128025780601f106127d757610100808354040283529160200191612802565b820191906000526020600020905b8154815290600101906020018083116127e557829003601f168201915b5050845460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959950869450925084019050828280156128905780601f1061286557610100808354040283529160200191612890565b820191906000526020600020905b81548152906001019060200180831161287357829003601f168201915b505050505090509b509b509b509b509b509b509b509b509b509b509b505091939597999b90929496989a50565b60009081526012602052604090206009015490565b60009081526012602052604090206002015490565b60136020526000908152604090205481565b606061290482612d3d565b61293f5760405162461bcd60e51b8152600401808060200182810382526028815260200180613b746028913960400191505060405180910390fd5b601061294a83612f08565b60405160200180838054600181600116156101000203166002900480156129a85780601f106129865761010080835404028352918201916129a8565b820191906000526020600020905b815481529060010190602001808311612994575b5050825160208401908083835b602083106129d45780518252601f1990920191602091820191016129b5565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529050919050565b600e546001600160a01b03163314612a5d576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b600083815260146020908152604080832085845282529182902083905581518381529151849286927fa65e1f696941557a657a1fd86be2e031780eb8fe542f296d403d47444b328c7892918290030190a3505050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b601460209081526000928352604080842090915290825290205481565b60118054600091906000198101908110612b1457fe5b9060005260206000200154905090565b60008181526012602090815260409182902060020180548351818402810184019094528084526060939283018282801561171e57602002820191906000526020600020908154815260200190600101908083116121805750505050509050919050565b612b8f6122eb565b612bce576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b612bd781612fcc565b50565b60156020526000908152604090205481565b600e546001600160a01b031681565b60008181526012602090815260409182902060080180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561171e5780601f106116f35761010080835404028352916020019161171e565b600e546001600160a01b03163314612cb5576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000838152601260205260409020612cd190600a0183836138c1565b50827f79fe64554db4d54db27f9ca2f8d60099a1f229acb03e4216c0e669bf936c8ace838360405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a2505050565b600281565b6000908152600160205260409020546001600160a01b0316151590565b3390565b6000612d6982612d3d565b612da45760405162461bcd60e51b815260040180806020018281038252602c815260200180613abd602c913960400191505060405180910390fd5b6000612daf83611e22565b9050806001600160a01b0316846001600160a01b03161480612dea5750836001600160a01b0316612ddf846111f7565b6001600160a01b0316145b80612dfa5750612dfa8185612ab3565b949350505050565b612e0d83838361306d565b612e1783826131b1565b61168182826132a6565b612e2b82826132e4565b6000818152600b60205260409020546002600019610100600184161502019091160415612e69576000818152600b60205260408120612e699161395d565b5050565b600d80546001019081905590565b612e858282613310565b612e8f82826132a6565b612e6981613441565b5490565b6001600160a01b0316600090815260056020526040902090565b612ec1848484612e02565b612ecd84848484613485565b61261f5760405162461bcd60e51b8152600401808060200182810382526032815260200180613a416032913960400191505060405180910390fd5b606081612f2d57506040805180820190915260018152600360fc1b6020820152611146565b8160005b8115612f4557600101600a82049150612f31565b6060816040519080825280601f01601f191660200182016040528015612f72576020820181803883390190505b50859350905060001982015b8315612fc357600a840660300160f81b82828060019003935081518110612fa157fe5b60200101906001600160f81b031916908160001a905350600a84049350612f7e565b50949350505050565b6001600160a01b0381166130115760405162461bcd60e51b8152600401808060200182810382526026815260200180613a736026913960400191505060405180910390fd5b600c546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661308082611e22565b6001600160a01b0316146130c55760405162461bcd60e51b8152600401808060200182810382526029815260200180613be86029913960400191505060405180910390fd5b6001600160a01b03821661310a5760405162461bcd60e51b8152600401808060200182810382526024815260200180613a996024913960400191505060405180910390fd5b613113816135dc565b6001600160a01b038316600090815260036020526040902061313490613617565b6001600160a01b03821660009081526003602052604090206131559061362e565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166000908152600560205260408120546131db90600163ffffffff61363716565b600083815260066020526040902054909150808214613276576001600160a01b038416600090815260056020526040812080548490811061321857fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061325657fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b038416600090815260056020526040902080549061329f9060001983016139db565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6132ee8282613680565b6132f882826131b1565b600081815260066020526040812055612e6981613757565b6001600160a01b03821661336b576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61337481612d3d565b156133c6576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558352600390915290206134059061362e565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000613499846001600160a01b03166137f3565b6134a557506001612dfa565b6000846001600160a01b031663150b7a026134be612d5a565b8887876040518563ffffffff1660e01b815260040180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561354357818101518382015260200161352b565b50505050905090810190601f1680156135705780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561359257600080fd5b505af11580156135a6573d6000803e3d6000fd5b505050506040513d60208110156135bc57600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b6000818152600260205260409020546001600160a01b031615612bd757600090815260026020526040902080546001600160a01b0319169055565b805461362a90600163ffffffff61363716565b9055565b80546001019055565b600061367983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061382a565b9392505050565b816001600160a01b031661369382611e22565b6001600160a01b0316146136d85760405162461bcd60e51b8152600401808060200182810382526025815260200180613caf6025913960400191505060405180910390fd5b6136e1816135dc565b6001600160a01b038216600090815260036020526040902061370290613617565b60008181526001602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60075460009061376e90600163ffffffff61363716565b6000838152600860205260408120546007805493945090928490811061379057fe5b9060005260206000200154905080600783815481106137ab57fe5b600091825260208083209091019290925582815260089091526040902082905560078054906137de9060001983016139db565b50505060009182525060086020526040812055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590612dfa5750141592915050565b600081848411156138b95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561387e578181015183820152602001613866565b50505050905090810190601f1680156138ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106139025782800160ff1982351617855561392f565b8280016001018555821561392f579182015b8281111561392f578235825591602001919060010190613914565b5061393b9291506139fb565b5090565b5080546000825590600052602060002090810190612bd791906139fb565b50805460018160011615610100020316600290046000825580601f106139835750612bd7565b601f016020900490600052602060002090810190612bd791906139fb565b82805482825590600052602060002090810192821561392f579160200282018281111561392f578235825591602001919060010190613914565b815481835581811115611681576000838152602090206116819181019083015b6111f491905b8082111561393b5760008155600101613a0156fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e5050546f6b656e3a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4f6e6c7920636f6e74726f6c6c657220616c6c6f7765640000000000000000004552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776ea265627a7a7231582014aa39d1002a2a41511106a19b57606f3865dc282d7e452f818aa80a641041f964736f6c634300050d0032000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000009414e44524f4d45444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003414e440000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103ba5760003560e01c806370a08231116101f4578063b93a89f71161011a578063f2809351116100ad578063f77c47911161007c578063f77c479114611086578063f9bf4b2b1461108e578063fe63640c146110ab578063ffa1ad7414611120576103ba565b8063f28093511461101e578063f2df2b7f14611026578063f2fde38b14611043578063f631087d14611069576103ba565b8063c87b56dd116100e9578063c87b56dd14610f87578063c9462e0114610fa4578063e985e9c514610fcd578063f1c393b814610ffb576103ba565b8063b93a89f714610d3d578063c289856814610f30578063c2997e5b14610f4d578063c5a8dc6c14610f6a576103ba565b80638f32d59b11610192578063a0311f4811610161578063a0311f4814610c0b578063a22cb46514610c2e578063b669ba2614610c5c578063b88d4fde14610c79576103ba565b80638f32d59b14610bcd57806392eefe9b14610bd557806395d89b4114610bfb57806398bdf6f514610c03576103ba565b80638462151c116101ce5780638462151c14610ab757806389e8915f14610b2d5780638d18643d14610ba25780638da5cb5b14610bc5576103ba565b806370a0823114610a6c578063715018a614610a92578063731a301e14610a9a576103ba565b806342966c68116102e457806355f804b3116102775780636a627842116102465780636a627842146109f45780636c0360eb14610a1a5780636d26aaa914610a225780636fa56c1414610a3f576103ba565b806355f804b31461092f5780636352211e1461099d578063637d28c6146109ba5780636490c7a8146109d7576103ba565b80634f558e79116102b35780634f558e79146108785780634f6ccce7146108955780634ff68468146108b25780635020f3d414610927576103ba565b806342966c68146107b357806348f105ac146107d05780634d82950c146107ed5780634e55168f1461080a576103ba565b806318160ddd1161035c5780632f745c591161032b5780632f745c59146106ed5780633a17da95146107195780634036ab781461073c57806342842e0e1461077d576103ba565b806318160ddd146105ae57806318212fc6146105b657806323b872dd1461069a5780632b7256d5146106d0576103ba565b8063081812fc11610398578063081812fc146104a6578063095ea7b3146104df5780631437594b1461050d578063145a0adc14610539576103ba565b806301ffc9a7146103bf57806302b902c3146103fa57806306fdde0314610429575b600080fd5b6103e6600480360360208110156103d557600080fd5b50356001600160e01b031916611128565b604080519115158252519081900360200190f35b6104176004803603602081101561041057600080fd5b503561114b565b60408051918252519081900360200190f35b610431611160565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561046b578181015183820152602001610453565b50505050905090810190601f1680156104985780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104c3600480360360208110156104bc57600080fd5b50356111f7565b604080516001600160a01b039092168252519081900360200190f35b61050b600480360360408110156104f557600080fd5b506001600160a01b038135169060200135611259565b005b61050b6004803603606081101561052357600080fd5b508035906020810135906040013560ff16611381565b61050b6004803603604081101561054f57600080fd5b81359190810190604081016020820135600160201b81111561057057600080fd5b82018360208201111561058257600080fd5b803590602001918460018302840111600160201b831117156105a357600080fd5b509092509050611454565b610417611524565b61050b600480360360e08110156105cc57600080fd5b81359160ff60208201358116926040830135909116916060810135916080820135919081019060c0810160a0820135600160201b81111561060c57600080fd5b82018360208201111561061e57600080fd5b803590602001918460018302840111600160201b8311171561063f57600080fd5b919390929091602081019035600160201b81111561065c57600080fd5b82018360208201111561066e57600080fd5b803590602001918460018302840111600160201b8311171561068f57600080fd5b50909250905061152a565b61050b600480360360608110156106b057600080fd5b506001600160a01b0381358116916020810135909116906040013561162a565b610431600480360360208110156106e657600080fd5b5035611686565b6104176004803603604081101561070357600080fd5b506001600160a01b03813516906020013561172a565b61050b6004803603604081101561072f57600080fd5b50803590602001356117a9565b6107596004803603602081101561075257600080fd5b5035611844565b6040518082600481111561076957fe5b60ff16815260200191505060405180910390f35b61050b6004803603606081101561079357600080fd5b506001600160a01b0381358116916020810135909116906040013561185c565b61050b600480360360208110156107c957600080fd5b5035611877565b61050b600480360360208110156107e657600080fd5b5035611999565b61050b6004803603602081101561080357600080fd5b50356119fd565b61050b6004803603602081101561082057600080fd5b810190602081018135600160201b81111561083a57600080fd5b82018360208201111561084c57600080fd5b803590602001918460018302840111600160201b8311171561086d57600080fd5b509092509050611aaf565b6103e66004803603602081101561088e57600080fd5b5035611b48565b610417600480360360208110156108ab57600080fd5b5035611b59565b61050b600480360360408110156108c857600080fd5b81359190810190604081016020820135600160201b8111156108e957600080fd5b8201836020820111156108fb57600080fd5b803590602001918460018302840111600160201b8311171561091c57600080fd5b509092509050611bbf565b610431611c8f565b61050b6004803603602081101561094557600080fd5b810190602081018135600160201b81111561095f57600080fd5b82018360208201111561097157600080fd5b803590602001918460018302840111600160201b8311171561099257600080fd5b509092509050611d1d565b6104c3600480360360208110156109b357600080fd5b5035611e22565b610417600480360360208110156109d057600080fd5b5035611e76565b610417600480360360208110156109ed57600080fd5b5035611e8b565b61041760048036036020811015610a0a57600080fd5b50356001600160a01b0316611ea0565b610431611f54565b61041760048036036020811015610a3857600080fd5b5035611faf565b610a5c60048036036020811015610a5557600080fd5b5035611fc1565b6040518082600181111561076957fe5b61041760048036036020811015610a8257600080fd5b50356001600160a01b0316611fd9565b61050b612041565b61043160048036036020811015610ab057600080fd5b50356120d2565b610add60048036036020811015610acd57600080fd5b50356001600160a01b031661213f565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610b19578181015183820152602001610b01565b505050509050019250505060405180910390f35b61050b60048036036060811015610b4357600080fd5b81359190810190604081016020820135600160201b811115610b6457600080fd5b820183602082011115610b7657600080fd5b803590602001918460208302840111600160201b83111715610b9757600080fd5b91935091503561219f565b61050b60048036036040811015610bb857600080fd5b5080359060200135612244565b6104c36122dc565b6103e66122eb565b61050b60048036036020811015610beb57600080fd5b50356001600160a01b0316612311565b6104316123a2565b610417612403565b61050b60048036036040811015610c2157600080fd5b5080359060200135612409565b61050b60048036036040811015610c4457600080fd5b506001600160a01b03813516906020013515156124a4565b61041760048036036020811015610c7257600080fd5b50356125a9565b61050b60048036036080811015610c8f57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610cc957600080fd5b820183602082011115610cdb57600080fd5b803590602001918460018302840111600160201b83111715610cfc57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506125c7945050505050565b610d5a60048036036020811015610d5357600080fd5b5035612625565b604051808c6004811115610d6a57fe5b60ff168152602001806020018b81526020018a6001811115610d8857fe5b60ff16815260200189815260200188815260200180602001806020018781526020018681526020018060200185810385528f818151815260200191508051906020019060200280838360005b83811015610dec578181015183820152602001610dd4565b5050505090500185810384528a818151815260200191508051906020019080838360005b83811015610e28578181015183820152602001610e10565b50505050905090810190601f168015610e555780820380516001836020036101000a031916815260200191505b5085810383528951815289516020918201918b019080838360005b83811015610e88578181015183820152602001610e70565b50505050905090810190601f168015610eb55780820380516001836020036101000a031916815260200191505b50858103825286518152865160209182019188019080838360005b83811015610ee8578181015183820152602001610ed0565b50505050905090810190601f168015610f155780820380516001836020036101000a031916815260200191505b509f5050505050505050505050505050505060405180910390f35b61041760048036036020811015610f4657600080fd5b50356128bd565b61041760048036036020811015610f6357600080fd5b50356128d2565b61041760048036036020811015610f8057600080fd5b50356128e7565b61043160048036036020811015610f9d57600080fd5b50356128f9565b61050b60048036036060811015610fba57600080fd5b5080359060208101359060400135612a10565b6103e660048036036040811015610fe357600080fd5b506001600160a01b0381358116916020013516612ab3565b6104176004803603604081101561101157600080fd5b5080359060200135612ae1565b610417612afe565b610add6004803603602081101561103c57600080fd5b5035612b24565b61050b6004803603602081101561105957600080fd5b50356001600160a01b0316612b87565b6104176004803603602081101561107f57600080fd5b5035612bda565b6104c3612bec565b610431600480360360208110156110a457600080fd5b5035612bfb565b61050b600480360360408110156110c157600080fd5b81359190810190604081016020820135600160201b8111156110e257600080fd5b8201836020820111156110f457600080fd5b803590602001918460018302840111600160201b8311171561111557600080fd5b509092509050612c68565b610417612d38565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60009081526012602052604090206003015490565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156111ec5780601f106111c1576101008083540402835291602001916111ec565b820191906000526020600020905b8154815290600101906020018083116111cf57829003601f168201915b505050505090505b90565b600061120282612d3d565b61123d5760405162461bcd60e51b815260040180806020018281038252602c815260200180613b9c602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b600061126482611e22565b9050806001600160a01b0316836001600160a01b031614156112b75760405162461bcd60e51b8152600401808060200182810382526021815260200180613c316021913960400191505060405180910390fd5b806001600160a01b03166112c9612d5a565b6001600160a01b031614806112ea57506112ea816112e5612d5a565b612ab3565b6113255760405162461bcd60e51b8152600401808060200182810382526038815260200180613ae96038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600e546001600160a01b031633146113ce576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b600083815260126020526040902060058101839055600401805482919060ff1916600183818111156113fc57fe5b0217905550827f74ec101dabaaed0b3e3c999c8ce61b4e86439d7c6e2cc7c06f0808ff6f6a879d83836040518083815260200182600181111561143b57fe5b60ff1681526020019250505060405180910390a2505050565b600e546001600160a01b031633146114a1576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b60008381526012602052604090206114bd9060080183836138c1565b50827f9fd49d7b0b37161b66268d5d2f8bc3bf5f24a38f914849671ff03abdd9a4ab8f838360405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a2505050565b60075490565b600e546001600160a01b03163314611577576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000898152601260205260409020600180820180548b9260ff19909116908360048111156115a157fe5b021790555060048101805489919060ff1916600183818111156115c057fe5b021790555060058101879055600681018690556115e16007820186866138c1565b506115f06008820184846138c1565b506040518a9033907f29364ad0cf59153c5a94ed382993f62ed000f38365b57e1515d5ca97fc02a0c190600090a350505050505050505050565b61163b611635612d5a565b82612d5e565b6116765760405162461bcd60e51b8152600401808060200182810382526031815260200180613c526031913960400191505060405180910390fd5b611681838383612e02565b505050565b60008181526012602090815260409182902060070180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561171e5780601f106116f35761010080835404028352916020019161171e565b820191906000526020600020905b81548152906001019060200180831161170157829003601f168201915b50505050509050919050565b600061173583611fd9565b82106117725760405162461bcd60e51b815260040180806020018281038252602b815260200180613a16602b913960400191505060405180910390fd5b6001600160a01b038316600090815260056020526040902080548390811061179657fe5b9060005260206000200154905092915050565b600e546001600160a01b031633146117f6576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000828152601260209081526040918290206009018390558151838152915184927fafd4aa82b9749c46eabf48d654bdaf8035955bdd3e94d35418f19bcc4cf1625892908290030190a25050565b60009081526012602052604090206001015460ff1690565b611681838383604051806020016040528060008152506125c7565b600e546001600160a01b031633146118c4576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b60006118cf82611e22565b600083815260126020526040812081815560018101805460ff191690559192506118fc600283018261393f565b60006003830181905560048301805460ff19169055600583018190556006830181905561192d90600784019061395d565b61193b60088301600061395d565b6009820160009055600a82016000611953919061395d565b505061195f8183612e21565b60405182906001600160a01b038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590600090a35050565b600e546001600160a01b031633146119e6576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b600090815260126020526040902080546001019055565b611a056122eb565b611a44576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68018190556040805182815290517f230ddd15b60e3fda77fdce3e2004219cd3466d4cf7b00482e836b65d75db40f29181900360200190a150565b611ab76122eb565b611af6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b611b02600f83836138c1565b508181604051808383808284376040519201829003822094507ffa5e2fc0cf934f6162cd1e5a5e1e3be043138129552df145f4646b3b173c942493506000925050a25050565b6000611b5382612d3d565b92915050565b6000611b63611524565b8210611ba05760405162461bcd60e51b815260040180806020018281038252602c815260200180613c83602c913960400191505060405180910390fd5b60078281548110611bad57fe5b90600052602060002001549050919050565b600e546001600160a01b03163314611c0c576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000838152601260205260409020611c289060070183836138c1565b50827f6beb82254835772dd24a9576abac38fe3abea579a458137f109809ab4bb5a533838360405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a2505050565b600f805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015611d155780601f10611cea57610100808354040283529160200191611d15565b820191906000526020600020905b815481529060010190602001808311611cf857829003601f168201915b505050505081565b611d256122eb565b611d64576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b611d70601083836138c1565b5060408051602080825260108054600260001961010060018416150201909116049183018290527f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa93909291829182019084908015611e105780601f10611de557610100808354040283529160200191611e10565b820191906000526020600020905b815481529060010190602001808311611df357829003601f168201915b50509250505060405180910390a15050565b6000818152600160205260408120546001600160a01b031680611b535760405162461bcd60e51b8152600401808060200182810382526029815260200180613b4b6029913960400191505060405180910390fd5b60009081526012602052604090206006015490565b60009081526012602052604090206005015490565b600e546000906001600160a01b03163314611ef0576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000611efa612e6d565b905080836001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a3611f3d8382612e7b565b600081815260136020526040902042905592915050565b6010805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015611d155780601f10611cea57610100808354040283529160200191611d15565b60009081526012602052604090205490565b60009081526012602052604090206004015460ff1690565b60006001600160a01b0382166120205760405162461bcd60e51b815260040180806020018281038252602a815260200180613b21602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600360205260409020611b5390612e98565b6120496122eb565b612088576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b600c546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600c80546001600160a01b0319169055565b600081815260126020908152604091829020600a0180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561171e5780601f106116f35761010080835404028352916020019161171e565b606061214a82612e9c565b80548060200260200160405190810160405280929190818152602001828054801561171e57602002820191906000526020600020905b8154815260200190600101908083116121805750505050509050919050565b600e546001600160a01b031633146121ec576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b60008481526012602052604090206122086002820185856139a1565b5060038101829055604051859033907f9ace85c72c9af7a03ca2baab87ad65b648a8816ee857b232ccfeaefe18b7b14390600090a35050505050565b600e546001600160a01b03163314612291576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000828152601560209081526040918290208390558151838152915184927f26e216cdb8b090b844e6c17c2b1a48cb8229e3a97d7b016ffae14b7346d93a4f92908290030190a25050565b600c546001600160a01b031690565b600c546000906001600160a01b0316612302612d5a565b6001600160a01b031614905090565b6123196122eb565b612358576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b0383169081179091556040517f4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f7090600090a250565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156111ec5780601f106111c1576101008083540402835291602001916111ec565b600d5481565b600e546001600160a01b03163314612456576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000828152601260209081526040918290206006018390558151838152915184927f17aa83c0c199e4c57171ab5a46ede2e42e6f91226745b57b405a142f7f9c860e92908290030190a25050565b6124ac612d5a565b6001600160a01b0316826001600160a01b03161415612512576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806004600061251f612d5a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612563612d5a565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b601181815481106125b657fe5b600091825260209091200154905081565b6125d86125d2612d5a565b83612d5e565b6126135760405162461bcd60e51b8152600401808060200182810382526031815260200180613c526031913960400191505060405180910390fd5b61261f84848484612eb6565b50505050565b6000606060008060008060608060008060606000601260008e815260200190815260200160002090508060010160009054906101000a900460ff168160020182600301548360040160009054906101000a900460ff16846005015485600601548660070187600801886000015489600901548a600a01898054806020026020016040519081016040528092919081815260200182805480156126e657602002820191906000526020600020905b8154815260200190600101908083116126d2575b5050885460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959f508a9450925084019050828280156127745780601f1061274957610100808354040283529160200191612774565b820191906000526020600020905b81548152906001019060200180831161275757829003601f168201915b5050875460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959a50899450925084019050828280156128025780601f106127d757610100808354040283529160200191612802565b820191906000526020600020905b8154815290600101906020018083116127e557829003601f168201915b5050845460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959950869450925084019050828280156128905780601f1061286557610100808354040283529160200191612890565b820191906000526020600020905b81548152906001019060200180831161287357829003601f168201915b505050505090509b509b509b509b509b509b509b509b509b509b509b505091939597999b90929496989a50565b60009081526012602052604090206009015490565b60009081526012602052604090206002015490565b60136020526000908152604090205481565b606061290482612d3d565b61293f5760405162461bcd60e51b8152600401808060200182810382526028815260200180613b746028913960400191505060405180910390fd5b601061294a83612f08565b60405160200180838054600181600116156101000203166002900480156129a85780601f106129865761010080835404028352918201916129a8565b820191906000526020600020905b815481529060010190602001808311612994575b5050825160208401908083835b602083106129d45780518252601f1990920191602091820191016129b5565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529050919050565b600e546001600160a01b03163314612a5d576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b600083815260146020908152604080832085845282529182902083905581518381529151849286927fa65e1f696941557a657a1fd86be2e031780eb8fe542f296d403d47444b328c7892918290030190a3505050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b601460209081526000928352604080842090915290825290205481565b60118054600091906000198101908110612b1457fe5b9060005260206000200154905090565b60008181526012602090815260409182902060020180548351818402810184019094528084526060939283018282801561171e57602002820191906000526020600020908154815260200190600101908083116121805750505050509050919050565b612b8f6122eb565b612bce576040805162461bcd60e51b81526020600482018190526024820152600080516020613bc8833981519152604482015290519081900360640190fd5b612bd781612fcc565b50565b60156020526000908152604090205481565b600e546001600160a01b031681565b60008181526012602090815260409182902060080180548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084526060939283018282801561171e5780601f106116f35761010080835404028352916020019161171e565b600e546001600160a01b03163314612cb5576040805162461bcd60e51b81526020600482015260176024820152600080516020613c11833981519152604482015290519081900360640190fd5b6000838152601260205260409020612cd190600a0183836138c1565b50827f79fe64554db4d54db27f9ca2f8d60099a1f229acb03e4216c0e669bf936c8ace838360405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a2505050565b600281565b6000908152600160205260409020546001600160a01b0316151590565b3390565b6000612d6982612d3d565b612da45760405162461bcd60e51b815260040180806020018281038252602c815260200180613abd602c913960400191505060405180910390fd5b6000612daf83611e22565b9050806001600160a01b0316846001600160a01b03161480612dea5750836001600160a01b0316612ddf846111f7565b6001600160a01b0316145b80612dfa5750612dfa8185612ab3565b949350505050565b612e0d83838361306d565b612e1783826131b1565b61168182826132a6565b612e2b82826132e4565b6000818152600b60205260409020546002600019610100600184161502019091160415612e69576000818152600b60205260408120612e699161395d565b5050565b600d80546001019081905590565b612e858282613310565b612e8f82826132a6565b612e6981613441565b5490565b6001600160a01b0316600090815260056020526040902090565b612ec1848484612e02565b612ecd84848484613485565b61261f5760405162461bcd60e51b8152600401808060200182810382526032815260200180613a416032913960400191505060405180910390fd5b606081612f2d57506040805180820190915260018152600360fc1b6020820152611146565b8160005b8115612f4557600101600a82049150612f31565b6060816040519080825280601f01601f191660200182016040528015612f72576020820181803883390190505b50859350905060001982015b8315612fc357600a840660300160f81b82828060019003935081518110612fa157fe5b60200101906001600160f81b031916908160001a905350600a84049350612f7e565b50949350505050565b6001600160a01b0381166130115760405162461bcd60e51b8152600401808060200182810382526026815260200180613a736026913960400191505060405180910390fd5b600c546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661308082611e22565b6001600160a01b0316146130c55760405162461bcd60e51b8152600401808060200182810382526029815260200180613be86029913960400191505060405180910390fd5b6001600160a01b03821661310a5760405162461bcd60e51b8152600401808060200182810382526024815260200180613a996024913960400191505060405180910390fd5b613113816135dc565b6001600160a01b038316600090815260036020526040902061313490613617565b6001600160a01b03821660009081526003602052604090206131559061362e565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166000908152600560205260408120546131db90600163ffffffff61363716565b600083815260066020526040902054909150808214613276576001600160a01b038416600090815260056020526040812080548490811061321857fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061325657fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b038416600090815260056020526040902080549061329f9060001983016139db565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6132ee8282613680565b6132f882826131b1565b600081815260066020526040812055612e6981613757565b6001600160a01b03821661336b576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61337481612d3d565b156133c6576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558352600390915290206134059061362e565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000613499846001600160a01b03166137f3565b6134a557506001612dfa565b6000846001600160a01b031663150b7a026134be612d5a565b8887876040518563ffffffff1660e01b815260040180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561354357818101518382015260200161352b565b50505050905090810190601f1680156135705780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561359257600080fd5b505af11580156135a6573d6000803e3d6000fd5b505050506040513d60208110156135bc57600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b6000818152600260205260409020546001600160a01b031615612bd757600090815260026020526040902080546001600160a01b0319169055565b805461362a90600163ffffffff61363716565b9055565b80546001019055565b600061367983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061382a565b9392505050565b816001600160a01b031661369382611e22565b6001600160a01b0316146136d85760405162461bcd60e51b8152600401808060200182810382526025815260200180613caf6025913960400191505060405180910390fd5b6136e1816135dc565b6001600160a01b038216600090815260036020526040902061370290613617565b60008181526001602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60075460009061376e90600163ffffffff61363716565b6000838152600860205260408120546007805493945090928490811061379057fe5b9060005260206000200154905080600783815481106137ab57fe5b600091825260208083209091019290925582815260089091526040902082905560078054906137de9060001983016139db565b50505060009182525060086020526040812055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590612dfa5750141592915050565b600081848411156138b95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561387e578181015183820152602001613866565b50505050905090810190601f1680156138ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106139025782800160ff1982351617855561392f565b8280016001018555821561392f579182015b8281111561392f578235825591602001919060010190613914565b5061393b9291506139fb565b5090565b5080546000825590600052602060002090810190612bd791906139fb565b50805460018160011615610100020316600290046000825580601f106139835750612bd7565b601f016020900490600052602060002090810190612bd791906139fb565b82805482825590600052602060002090810192821561392f579160200282018281111561392f578235825591602001919060010190613914565b815481835581811115611681576000838152602090206116819181019083015b6111f491905b8082111561393b5760008155600101613a0156fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e5050546f6b656e3a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4f6e6c7920636f6e74726f6c6c657220616c6c6f7765640000000000000000004552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776ea265627a7a7231582014aa39d1002a2a41511106a19b57606f3865dc282d7e452f818aa80a641041f964736f6c634300050d0032

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000009414e44524f4d45444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003414e440000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): ANDROMEDA
Arg [1] : _symbol (string): AND

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [3] : 414e44524f4d4544410000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 414e440000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

69457:8303:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69457:8303:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40018:135;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40018:135:0;-1:-1:-1;;;;;;40018:135:0;;:::i;:::-;;;;;;;;;;;;;;;;;;75665:127;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75665:127:0;;:::i;:::-;;;;;;;;;;;;;;;;58576:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;58576:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46580:204;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46580:204:0;;:::i;:::-;;;;-1:-1:-1;;;;;46580:204:0;;;;;;;;;;;;;;45862:425;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;45862:425:0;;;;;;;;:::i;:::-;;72510:247;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72510:247:0;;;;;;;;;;;;;;:::i;72999:190::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;72999:190:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;72999:190:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;72999:190:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;72999:190:0;;-1:-1:-1;72999:190:0;-1:-1:-1;72999:190:0;:::i;62480:96::-;;;:::i;71407:559::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;71407:559:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;71407:559:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;71407:559:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;71407:559:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;71407:559:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;71407:559:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;71407:559:0;;-1:-1:-1;71407:559:0;-1:-1:-1;71407:559:0;:::i;48263:292::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;48263:292:0;;;;;;;;;;;;;;;;;:::i;75798:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75798:134:0;;:::i;62089:232::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;62089:232:0;;;;;;;;:::i;73195:218::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73195:218:0;;;;;;;:::i;75407:119::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75407:119:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49217:134;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49217:134:0;;;;;;;;;;;;;;;;;:::i;74049:204::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74049:204:0;;:::i;71281:120::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71281:120:0;;:::i;70643:220::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70643:220:0;;:::i;70477:160::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;70477:160:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;70477:160:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;70477:160:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;70477:160:0;;-1:-1:-1;70477:160:0;-1:-1:-1;70477:160:0;:::i;75301:100::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75301:100:0;;:::i;62922:199::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62922:199:0;;:::i;72290:214::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;72290:214:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;72290:214:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;72290:214:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;72290:214:0;;-1:-1:-1;72290:214:0;-1:-1:-1;72290:214:0;:::i;69628:30::-;;;:::i;70342:129::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;70342:129:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;70342:129:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;70342:129:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;70342:129:0;;-1:-1:-1;70342:129:0;-1:-1:-1;70342:129:0;:::i;45203:228::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45203:228:0;;:::i;76189:136::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76189:136:0;;:::i;75938:112::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75938:112:0;;:::i;71052:223::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71052:223:0;-1:-1:-1;;;;;71052:223:0;;:::i;69663:21::-;;;:::i;76888:123::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76888:123:0;;:::i;76056:127::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76056:127:0;;:::i;:::-;;;;;;;;;;;;44766:211;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44766:211:0;-1:-1:-1;;;;;44766:211:0;;:::i;13089:140::-;;;:::i;76738:144::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76738:144:0;;:::i;75173:122::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75173:122:0;-1:-1:-1;;;;;75173:122:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;75173:122:0;;;;;;;;;;;;;;;;;71972:312;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;71972:312:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;71972:312:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;71972:312:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;71972:312:0;;-1:-1:-1;71972:312:0;-1:-1:-1;71972:312:0;;:::i;73669:153::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73669:153:0;;;;;;;:::i;12278:79::-;;;:::i;12644:94::-;;;:::i;70869:148::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70869:148:0;-1:-1:-1;;;;;70869:148:0;;:::i;58776:89::-;;;:::i;69556:29::-;;;:::i;72763:230::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72763:230:0;;;;;;;:::i;47085:254::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;47085:254:0;;;;;;;;;;:::i;69691:43::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69691:43:0;;:::i;50088:272::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;50088:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;50088:272:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;50088:272:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;50088:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;50088:272:0;;-1:-1:-1;50088:272:0;;-1:-1:-1;;;;;50088:272:0:i;77017:740::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77017:740:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;77017:740:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;77017:740:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77017:740:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;77017:740:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77017:740:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;77017:740:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76600:132;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76600:132:0;;:::i;76463:131::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76463:131:0;;:::i;69846:52::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69846:52:0;;:::i;74704:299::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74704:299:0;;:::i;73828:215::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73828:215:0;;;;;;;;;;;;:::i;47669:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;47669:147:0;;;;;;;;;;:::i;69935:72::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69935:72:0;;;;;;;:::i;75009:158::-;;;:::i;75532:127::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75532:127:0;;:::i;13384:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13384:109:0;-1:-1:-1;;;;;13384:109:0;;:::i;70031:44::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70031:44:0;;:::i;69590:33::-;;;:::i;76331:126::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76331:126:0;;:::i;73419:244::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;73419:244:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;73419:244:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;73419:244:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;73419:244:0;;-1:-1:-1;73419:244:0;-1:-1:-1;73419:244:0;:::i;69514:35::-;;;:::i;40018:135::-;-1:-1:-1;;;;;;40112:33:0;;40088:4;40112:33;;;;;;;;;;;;;40018:135;;;;:::o;75665:127::-;75731:6;75753:20;;;:10;:20;;;;;:33;;;;75665:127::o;58576:85::-;58648:5;58641:12;;;;;;;;-1:-1:-1;;58641:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58615:13;;58641:12;;58648:5;;58641:12;;58648:5;58641:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58576:85;;:::o;46580:204::-;46639:7;46667:16;46675:7;46667;:16::i;:::-;46659:73;;;;-1:-1:-1;;;46659:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46752:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;46752:24:0;;46580:204::o;45862:425::-;45926:13;45942:16;45950:7;45942;:16::i;:::-;45926:32;;45983:5;-1:-1:-1;;;;;45977:11:0;:2;-1:-1:-1;;;;;45977:11:0;;;45969:57;;;;-1:-1:-1;;;45969:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46063:5;-1:-1:-1;;;;;46047:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;46047:21:0;;:62;;;;46072:37;46089:5;46096:12;:10;:12::i;:::-;46072:16;:37::i;:::-;46039:154;;;;-1:-1:-1;;;46039:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46206:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;46206:29:0;-1:-1:-1;;;;;46206:29:0;;;;;;;;;46251:28;;46206:24;;46251:28;;;;;;;45862:425;;;:::o;72510:247::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;72615:20;;;;:10;:20;;;;;:25;;;:33;;;72655:31;;:45;;72689:11;;72655:31;-1:-1:-1;;72655:45:0;;72689:11;72655:45;;;;;;;;;;;;;72722:8;72714:37;72732:5;72739:11;72714:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72510:247;;;:::o;72999:190::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;73096:20;;;;:10;:20;;;;;:41;;:29;;73128:9;;73096:41;:::i;:::-;;73163:8;73151:32;73173:9;;73151:32;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;73151:32:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;73151:32:0;;;;-1:-1:-1;73151:32:0;;-1:-1:-1;;;;73151:32:0;72999:190;;;:::o;62480:96::-;62551:10;:17;62480:96;:::o;71407:559::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;71675:18;71696:20;;;:10;:20;;;;;71725:11;;;;:24;;71739:10;;-1:-1:-1;;71725:24:0;;;;71739:10;71725:24;;;;;;;;;;;;-1:-1:-1;71756:12:0;;;:26;;71771:11;;71756:12;-1:-1:-1;;71756:26:0;;71771:11;71756:26;;;;;;;;;;;;-1:-1:-1;71789:6:0;;;:14;;;71810:18;;;:38;;;71855:30;:14;;;71872:13;;71855:30;:::i;:::-;-1:-1:-1;71892:22:0;:10;;;71905:9;;71892:22;:::i;:::-;-1:-1:-1;71928:32:0;;71951:8;;71939:10;;71928:32;;;;;70184:1;71407:559;;;;;;;;;:::o;48263:292::-;48407:41;48426:12;:10;:12::i;:::-;48440:7;48407:18;:41::i;:::-;48399:103;;;;-1:-1:-1;;;48399:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48515:32;48529:4;48535:2;48539:7;48515:13;:32::i;:::-;48263:292;;;:::o;75798:134::-;75893:20;;;;:10;:20;;;;;;;;;:33;;75886:40;;;;;;-1:-1:-1;;75886:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75864:13;;75886:40;;;75893:33;75886:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75798:134;;;:::o;62089:232::-;62169:7;62205:16;62215:5;62205:9;:16::i;:::-;62197:5;:24;62189:80;;;;-1:-1:-1;;;62189:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;62287:19:0;;;;;;:12;:19;;;;;:26;;62307:5;;62287:26;;;;;;;;;;;;;;62280:33;;62089:232;;;;:::o;73195:218::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;73296:20;;;;:10;:20;;;;;;;;;:35;;:53;;;73363:44;;;;;;;73307:8;;73363:44;;;;;;;;;73195:218;;:::o;75407:119::-;75465:9;75490:20;;;:10;:20;;;;;:30;;;;;;75407:119::o;49217:134::-;49304:39;49321:4;49327:2;49331:7;49304:39;;;;;;;;;;;;:16;:39::i;74049:204::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;74112:13;74128:17;74136:8;74128:7;:17::i;:::-;74161:20;;;;:10;:20;;;;;74154:27;;;;;;;;-1:-1:-1;;74154:27:0;;;74112:33;;-1:-1:-1;74154:27:0;;;;74161:20;74154:27;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;74154:27:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;74190:22;74196:5;74203:8;74190:5;:22::i;:::-;74226:21;;74238:8;;-1:-1:-1;;;;;74226:21:0;;;;;;;;70184:1;74049:204;:::o;71281:120::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;71359:20;;;;:10;:20;;;;;:36;;71394:1;71359:36;;;71281:120::o;70643:220::-;12490:9;:7;:9::i;:::-;12482:54;;;;;-1:-1:-1;;;12482:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12482:54:0;;;;;;;;;;;;;;;70737:26;27:10:-1;;39:1;23:18;;45:23;;-1:-1;70737:56:0;;;;;;;;;70807:50;;;;;;;;;;;;;70737:56;70807:50;;;70643:220;:::o;70477:160::-;12490:9;:7;:9::i;:::-;12482:54;;;;;-1:-1:-1;;;12482:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12482:54:0;;;;;;;;;;;;;;;70559:28;:16;70578:9;;70559:28;:::i;:::-;;70621:9;;70601:30;;;;;30:3:-1;22:6;14;1:33;70601:30:0;;45:16:-1;;70601:30:0;;;;;;-1:-1:-1;70601:30:0;;-1:-1:-1;70601:30:0;;-1:-1:-1;;70601:30:0;70477:160;;:::o;75301:100::-;75358:4;75378:17;75386:8;75378:7;:17::i;:::-;75371:24;75301:100;-1:-1:-1;;75301:100:0:o;62922:199::-;62980:7;63016:13;:11;:13::i;:::-;63008:5;:21;63000:78;;;;-1:-1:-1;;;63000:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63096:10;63107:5;63096:17;;;;;;;;;;;;;;;;63089:24;;62922:199;;;:::o;72290:214::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;72395:20;;;;:10;:20;;;;;:49;;:33;;72431:13;;72395:49;:::i;:::-;;72474:8;72458:40;72484:13;;72458:40;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;72458:40:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;72458:40:0;;;;-1:-1:-1;72458:40:0;;-1:-1:-1;;;;72458:40:0;72290:214;;;:::o;69628:30::-;;;;;;;;;;;;;;;-1:-1:-1;;69628:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;70342:129::-;12490:9;:7;:9::i;:::-;12482:54;;;;;-1:-1:-1;;;12482:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12482:54:0;;;;;;;;;;;;;;;70414:18;:7;70424:8;;70414:18;:::i;:::-;-1:-1:-1;70446:19:0;;;;;;;70457:7;70446:19;;;-1:-1:-1;;70446:19:0;;;;;;;;;;;;;;;;;;;70457:7;;70446:19;;;;;;70457:7;;70446:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70342:129;;:::o;45203:228::-;45258:7;45294:20;;;:11;:20;;;;;;-1:-1:-1;;;;;45294:20:0;45333:19;45325:73;;;;-1:-1:-1;;;45325:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76189:136;76259:7;76282:20;;;:10;:20;;;;;:37;;;;76189:136::o;75938:112::-;75996:7;76019:20;;;:10;:20;;;;;:25;;;;75938:112::o;71052:223::-;70137:10;;71111:7;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;71127:10;71140:13;:11;:13::i;:::-;71127:26;;71177:2;71172:3;-1:-1:-1;;;;;71167:13:0;;;;;;;;;;;71189:14;71195:3;71200:2;71189:5;:14::i;:::-;71212:21;;;;:17;:21;;;;;71236:15;71212:39;;:21;71052:223;-1:-1:-1;;71052:223:0:o;69663:21::-;;;;;;;;;;;;;;;-1:-1:-1;;69663:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76888:123;76951:7;76974:20;;;:10;:20;;;;;:31;;76888:123::o;76056:127::-;76120:10;76146:20;;;:10;:20;;;;;:31;;;;;;76056:127::o;44766:211::-;44821:7;-1:-1:-1;;;;;44849:19:0;;44841:74;;;;-1:-1:-1;;;44841:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44935:24:0;;;;;;:17;:24;;;;;:34;;:32;:34::i;13089:140::-;12490:9;:7;:9::i;:::-;12482:54;;;;;-1:-1:-1;;;12482:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12482:54:0;;;;;;;;;;;;;;;13172:6;;13151:40;;13188:1;;-1:-1:-1;;;;;13172:6:0;;13151:40;;13188:1;;13151:40;13202:6;:19;;-1:-1:-1;;;;;;13202:19:0;;;13089:140::o;76738:144::-;76838:20;;;;:10;:20;;;;;;;;;:38;;76831:45;;;;;;-1:-1:-1;;76831:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76809:13;;76831:45;;;76838:38;76831:45;;;;;;;;;;;;;;;;;;;;;;;;75173:122;75235:16;75267:22;75282:6;75267:14;:22::i;:::-;75260:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75173:122;;;:::o;71972:312::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;72125:18;72146:20;;;:10;:20;;;;;72175;:9;;;72187:8;;72175:20;:::i;:::-;-1:-1:-1;72202:14:0;;;:30;;;72246:32;;72269:8;;72257:10;;72246:32;;;;;70184:1;71972:312;;;;:::o;73669:153::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;73752:15;;;;:9;:15;;;;;;;;;:24;;;73790:26;;;;;;;73762:4;;73790:26;;;;;;;;;73669:153;;:::o;12278:79::-;12343:6;;-1:-1:-1;;;;;12343:6:0;12278:79;:::o;12644:94::-;12724:6;;12684:4;;-1:-1:-1;;;;;12724:6:0;12708:12;:10;:12::i;:::-;-1:-1:-1;;;;;12708:22:0;;12701:29;;12644:94;:::o;70869:148::-;12490:9;:7;:9::i;:::-;12482:54;;;;;-1:-1:-1;;;12482:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12482:54:0;;;;;;;;;;;;;;;70947:10;:24;;-1:-1:-1;;;;;;70947:24:0;-1:-1:-1;;;;;70947:24:0;;;;;;;;70985:26;;;;-1:-1:-1;;70985:26:0;70869:148;:::o;58776:89::-;58850:7;58843:14;;;;;;;;-1:-1:-1;;58843:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58817:13;;58843:14;;58850:7;;58843:14;;58850:7;58843:14;;;;;;;;;;;;;;;;;;;;;;;;69556:29;;;;:::o;72763:230::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;72868:20;;;;:10;:20;;;;;;;;;:37;;:57;;;72939:48;;;;;;;72879:8;;72939:48;;;;;;;;;72763:230;;:::o;47085:254::-;47171:12;:10;:12::i;:::-;-1:-1:-1;;;;;47165:18:0;:2;-1:-1:-1;;;;;47165:18:0;;;47157:56;;;;;-1:-1:-1;;;47157:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;47265:8;47226:18;:32;47245:12;:10;:12::i;:::-;-1:-1:-1;;;;;47226:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;47226:32:0;;;:36;;;;;;;;;;;;:47;;-1:-1:-1;;47226:47:0;;;;;;;;;;;47304:12;:10;:12::i;:::-;47289:42;;;;;;;;;;-1:-1:-1;;;;;47289:42:0;;;;;;;;;;;;;;47085:254;;:::o;69691:43::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69691:43:0;:::o;50088:272::-;50203:41;50222:12;:10;:12::i;:::-;50236:7;50203:18;:41::i;:::-;50195:103;;;;-1:-1:-1;;;50195:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50309:43;50327:4;50333:2;50337:7;50346:5;50309:17;:43::i;:::-;50088:272;;;;:::o;77017:740::-;77101:19;77129:24;77162:19;77190:21;77220:12;77241:24;77274:26;77309:22;77340:18;77367:22;77398:31;77447:18;77468:10;:20;77479:8;77468:20;;;;;;;;;;;77447:41;;77513:1;:11;;;;;;;;;;;;77533:1;:9;;77551:1;:14;;;77574:1;:12;;;;;;;;;;;;77595:1;:6;;;77610:1;:18;;;77637:1;:14;;77660:1;:10;;77679:1;:12;;;77700:1;:16;;;77725:1;:19;;77497:254;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77497:254:0;;;;;;;;;;;;;-1:-1:-1;;77497:254:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77497:254:0;;-1:-1:-1;77497:254:0;-1:-1:-1;77497:254:0;;;-1:-1:-1;77497:254:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77497:254:0;;;;;;;;;;;;;-1:-1:-1;;77497:254:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77497:254:0;;-1:-1:-1;77497:254:0;-1:-1:-1;77497:254:0;;;-1:-1:-1;77497:254:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77497:254:0;;;;;;;;;;;;;-1:-1:-1;;77497:254:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77497:254:0;;-1:-1:-1;77497:254:0;-1:-1:-1;77497:254:0;;;-1:-1:-1;77497:254:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77017:740;;;;;;;;;;;;;:::o;76600:132::-;76668:7;76691:20;;;:10;:20;;;;;:35;;;;76600:132::o;76463:131::-;76530:7;76553:20;;;:10;:20;;;;;:28;;:35;;76463:131::o;69846:52::-;;;;;;;;;;;;;:::o;74704:299::-;74763:13;74793:17;74801:8;74793:7;:17::i;:::-;74785:70;;;;-1:-1:-1;;;74785:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74957:7;74966:29;74986:8;74966:19;:29::i;:::-;74940:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;74940:56:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;74940:56:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;74940:56:0;;;74926:71;;74704:299;;;:::o;73828:215::-;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;73937:27;;;;:17;:27;;;;;;;;:33;;;;;;;;;:42;;;73993:44;;;;;;;73965:4;;73955:8;;73993:44;;;;;;;;;73828:215;;;:::o;47669:147::-;-1:-1:-1;;;;;47773:25:0;;;47749:4;47773:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47669:147::o;69935:72::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;75009:158::-;75096:26;75123:33;;75073:7;;75096:26;-1:-1:-1;;75123:37:0;;;75096:65;;;;;;;;;;;;;;75089:72;;75009:158;:::o;75532:127::-;75625:20;;;;:10;:20;;;;;;;;;:28;;75618:35;;;;;;;;;;;;;;;;;75593:16;;75618:35;;;75625:28;75618:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75532:127;;;:::o;13384:109::-;12490:9;:7;:9::i;:::-;12482:54;;;;;-1:-1:-1;;;12482:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12482:54:0;;;;;;;;;;;;;;;13457:28;13476:8;13457:18;:28::i;:::-;13384:109;:::o;70031:44::-;;;;;;;;;;;;;:::o;69590:33::-;;;-1:-1:-1;;;;;69590:33:0;;:::o;76331:126::-;76422:20;;;;:10;:20;;;;;;;;;:29;;76415:36;;;;;;-1:-1:-1;;76415:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76393:13;;76415:36;;;76422:29;76415:36;;;;;;;;;;;;;;;;;;;;;;;;73419:244;70137:10;;-1:-1:-1;;;;;70137:10:0;70123;:24;70115:60;;;;;-1:-1:-1;;;70115:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;70115:60:0;;;;;;;;;;;;;;;73534:20;;;;:10;:20;;;;;:59;;:38;;73575:18;;73534:59;:::i;:::-;;73628:8;73607:50;73638:18;;73607:50;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;73607:50:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;73607:50:0;;;;-1:-1:-1;73607:50:0;;-1:-1:-1;;;;73607:50:0;73419:244;;;:::o;69514:35::-;69548:1;69514:35;:::o;51553:155::-;51610:4;51643:20;;;:11;:20;;;;;;-1:-1:-1;;;;;51643:20:0;51681:19;;;51553:155::o;11482:98::-;11562:10;11482:98;:::o;52078:333::-;52163:4;52188:16;52196:7;52188;:16::i;:::-;52180:73;;;;-1:-1:-1;;;52180:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52264:13;52280:16;52288:7;52280;:16::i;:::-;52264:32;;52326:5;-1:-1:-1;;;;;52315:16:0;:7;-1:-1:-1;;;;;52315:16:0;;:51;;;;52359:7;-1:-1:-1;;;;;52335:31:0;:20;52347:7;52335:11;:20::i;:::-;-1:-1:-1;;;;;52335:31:0;;52315:51;:87;;;;52370:32;52387:5;52394:7;52370:16;:32::i;:::-;52307:96;52078:333;-1:-1:-1;;;;52078:333:0:o;63505:245::-;63591:38;63611:4;63617:2;63621:7;63591:19;:38::i;:::-;63642:47;63675:4;63681:7;63642:32;:47::i;:::-;63702:40;63730:2;63734:7;63702:27;:40::i;60021:247::-;60088:27;60100:5;60107:7;60088:11;:27::i;:::-;60174:19;;;;:10;:19;;;;;60168:33;;-1:-1:-1;;60168:33:0;;;;;;;;;;;:38;60164:97;;60230:19;;;;:10;:19;;;;;60223:26;;;:::i;:::-;60021:247;;:::o;74276:110::-;74333:14;:19;;74351:1;74333:19;;;;;74276:110;:::o;64015:202::-;64079:24;64091:2;64095:7;64079:11;:24::i;:::-;64116:40;64144:2;64148:7;64116:27;:40::i;:::-;64169;64201:7;64169:31;:40::i;41206:114::-;41298:14;;41206:114::o;65085:126::-;-1:-1:-1;;;;;65184:19:0;65147:17;65184:19;;;:12;:19;;;;;;65085:126::o;51079:272::-;51189:32;51203:4;51209:2;51213:7;51189:13;:32::i;:::-;51240:48;51263:4;51269:2;51273:7;51282:5;51240:22;:48::i;:::-;51232:111;;;;-1:-1:-1;;;51232:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38495:556;38554:13;38584:10;38580:53;;-1:-1:-1;38611:10:0;;;;;;;;;;;;-1:-1:-1;;;38611:10:0;;;;;;38580:53;38658:5;38643:12;38699:78;38706:9;;38699:78;;38732:8;;38763:2;38755:10;;;;38699:78;;;38787:19;38819:6;38809:17;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;38809:17:0;87:34:-1;135:17;;-1:-1;38809:17:0;-1:-1:-1;38881:5:0;;-1:-1:-1;38787:39:0;-1:-1:-1;;;38853:10:0;;38897:115;38904:9;;38897:115;;38971:2;38964:4;:9;38959:2;:14;38948:27;;38930:6;38937:7;;;;;;;38930:15;;;;;;;;;;;:45;-1:-1:-1;;;;;38930:45:0;;;;;;;;-1:-1:-1;38998:2:0;38990:10;;;;38897:115;;;-1:-1:-1;39036:6:0;38495:556;-1:-1:-1;;;;38495:556:0:o;13599:229::-;-1:-1:-1;;;;;13673:22:0;;13665:73;;;;-1:-1:-1;;;13665:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13775:6;;13754:38;;-1:-1:-1;;;;;13754:38:0;;;;13775:6;;13754:38;;13775:6;;13754:38;13803:6;:17;;-1:-1:-1;;;;;;13803:17:0;-1:-1:-1;;;;;13803:17:0;;;;;;;;;;13599:229::o;55774:459::-;55888:4;-1:-1:-1;;;;;55868:24:0;:16;55876:7;55868;:16::i;:::-;-1:-1:-1;;;;;55868:24:0;;55860:78;;;;-1:-1:-1;;;55860:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55957:16:0;;55949:65;;;;-1:-1:-1;;;55949:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56027:23;56042:7;56027:14;:23::i;:::-;-1:-1:-1;;;;;56063:23:0;;;;;;:17;:23;;;;;:35;;:33;:35::i;:::-;-1:-1:-1;;;;;56109:21:0;;;;;;:17;:21;;;;;:33;;:31;:33::i;:::-;56155:20;;;;:11;:20;;;;;;:25;;-1:-1:-1;;;;;;56155:25:0;-1:-1:-1;;;;;56155:25:0;;;;;;;;;56198:27;;56155:20;;56198:27;;;;;;;55774:459;;;:::o;66690:1148::-;-1:-1:-1;;;;;66981:18:0;;66956:22;66981:18;;;:12;:18;;;;;:25;:32;;67011:1;66981:32;:29;:32;:::i;:::-;67024:18;67045:26;;;:17;:26;;;;;;66956:57;;-1:-1:-1;67178:28:0;;;67174:328;;-1:-1:-1;;;;;67245:18:0;;67223:19;67245:18;;;:12;:18;;;;;:34;;67264:14;;67245:34;;;;;;;;;;;;;;67223:56;;67329:11;67296:12;:18;67309:4;-1:-1:-1;;;;;67296:18:0;-1:-1:-1;;;;;67296:18:0;;;;;;;;;;;;67315:10;67296:30;;;;;;;;;;;;;;;;;;;:44;;;;67413:30;;;:17;:30;;;;;:43;;;67174:328;-1:-1:-1;;;;;67591:18:0;;;;;;:12;:18;;;;;:27;;;;;-1:-1:-1;;67591:27:0;;;:::i;:::-;;66690:1148;;;;:::o;65512:186::-;-1:-1:-1;;;;;65626:16:0;;;;;;;:12;:16;;;;;;;;:23;;65597:26;;;:17;:26;;;;;:52;;;65660:16;;;39:1:-1;23:18;;45:23;;65660:30:0;;;;;;;;65512:186::o;64501:372::-;64568:27;64580:5;64587:7;64568:11;:27::i;:::-;64608:48;64641:5;64648:7;64608:32;:48::i;:::-;64806:1;64777:26;;;:17;:26;;;;;:30;64820:45;64795:7;64820:36;:45::i;54163:335::-;-1:-1:-1;;;;;54235:16:0;;54227:61;;;;;-1:-1:-1;;;54227:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54308:16;54316:7;54308;:16::i;:::-;54307:17;54299:58;;;;;-1:-1:-1;;;54299:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54370:20;;;;:11;:20;;;;;;;;:25;;-1:-1:-1;;;;;;54370:25:0;-1:-1:-1;;;;;54370:25:0;;;;;;;;54406:21;;:17;:21;;;;;:33;;:31;:33::i;:::-;54457;;54482:7;;-1:-1:-1;;;;;54457:33:0;;;54474:1;;54457:33;;54474:1;;54457:33;54163:335;;:::o;65899:164::-;66003:10;:17;;65976:24;;;;:15;:24;;;;;:44;;;39:1:-1;23:18;;45:23;;66031:24:0;;;;;;;65899:164::o;56835:358::-;56957:4;56984:15;:2;-1:-1:-1;;;;;56984:13:0;;:15::i;:::-;56979:60;;-1:-1:-1;57023:4:0;57016:11;;56979:60;57051:13;57083:2;-1:-1:-1;;;;;57067:36:0;;57104:12;:10;:12::i;:::-;57118:4;57124:7;57133:5;57067:72;;;;;;;;;;;;;-1:-1:-1;;;;;57067:72:0;-1:-1:-1;;;;;57067:72:0;;;;;;-1:-1:-1;;;;;57067:72:0;-1:-1:-1;;;;;57067:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;57067:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57067:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57067:72:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57067:72:0;-1:-1:-1;;;;;;57158:26:0;-1:-1:-1;;;57158:26:0;;-1:-1:-1;;56835:358:0;;;;;;:::o;57361:175::-;57461:1;57425:24;;;:15;:24;;;;;;-1:-1:-1;;;;;57425:24:0;:38;57421:108;;57515:1;57480:24;;;:15;:24;;;;;:37;;-1:-1:-1;;;;;;57480:37:0;;;57361:175::o;41427:110::-;41508:14;;:21;;41527:1;41508:21;:18;:21;:::i;:::-;41491:38;;41427:110::o;41328:91::-;41392:19;;41410:1;41392:19;;;41328:91::o;17531:136::-;17589:7;17616:43;17620:1;17623;17616:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;17609:50;17531:136;-1:-1:-1;;;17531:136:0:o;54775:333::-;54870:5;-1:-1:-1;;;;;54850:25:0;:16;54858:7;54850;:16::i;:::-;-1:-1:-1;;;;;54850:25:0;;54842:75;;;;-1:-1:-1;;;54842:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54930:23;54945:7;54930:14;:23::i;:::-;-1:-1:-1;;;;;54966:24:0;;;;;;:17;:24;;;;;:36;;:34;:36::i;:::-;55044:1;55013:20;;;:11;:20;;;;;;:33;;-1:-1:-1;;;;;;55013:33:0;;;55064:36;55025:7;;55044:1;-1:-1:-1;;;;;55064:36:0;;;;;55044:1;;55064:36;54775:333;;:::o;68133:1082::-;68411:10;:17;68386:22;;68411:24;;68433:1;68411:24;:21;:24;:::i;:::-;68446:18;68467:24;;;:15;:24;;;;;;68840:10;:26;;68386:49;;-1:-1:-1;68467:24:0;;68386:49;;68840:26;;;;;;;;;;;;;;68818:48;;68904:11;68879:10;68890;68879:22;;;;;;;;;;;;;;;;;;;:36;;;;68984:28;;;:15;:28;;;;;;:41;;;69149:10;:19;;;;;-1:-1:-1;;69149:19:0;;;:::i;:::-;-1:-1:-1;;;69206:1:0;69179:24;;;-1:-1:-1;69179:15:0;:24;;;;;:28;68133:1082::o;14311:810::-;14371:4;15030:20;;14873:66;15070:15;;;;;:42;;-1:-1:-1;15089:23:0;;;15062:51;-1:-1:-1;;14311:810:0:o;18004:192::-;18090:7;18126:12;18118:6;;;;18110:29;;;;-1:-1:-1;;;18110:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;18110:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;18162:5:0;;;18004:192::o;69457:8303::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69457:8303:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69457:8303:0;;;-1:-1:-1;69457:8303:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://14aa39d1002a2a41511106a19b57606f3865dc282d7e452f818aa80a641041f9
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.