Contract Address Details
contract

0x81DcF68dB2a0E03BAB0d4705E14282C4cDec64B8

Contract Name
TokenLock
Creator
0xb67d4d–9b2335 at 0x93c396–103d02
Balance
0 xDai ( )
Tokens
Fetching tokens...
Transactions
25 Transactions
Transfers
15 Transfers
Gas Used
2,153,576
Last Balance Update
25211640
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
TokenLock




Optimization enabled
false
Compiler version
v0.7.4+commit.3f05b770




EVM Version
istanbul




Verified at
2021-04-06T23:48:15.033792Z

/Users/kaikurosawa/Desktop/code/cheemscoin/contracts/TokenLock.sol

// SPDX-License-Identifier: GPL-3.0-or-later
// https://cheemsco.in/locks
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

struct lock {
  IERC20 token;
  uint256 amount;
  uint256 requestTime;
}

struct request {
  IERC20 token;
  uint256 amount;
  uint256 unlockTime;
  address recipient;
}

uint256 constant BUFFER = 3 days;

/// @title ERC20 token locker
/// @author kowasaur
/// @notice Owner can lock tokens for specified period of time (lock meaning they can't withdraw)
/// @notice There's a 3 day buffer between requesting to unlock and being able to
/// @dev all time in this contract is in seconds
contract TokenLock is Ownable {
  using SafeMath for uint256;

  /// @notice After the lock duration, these can be added to requests
  lock[] public locks;
  /// @notice These can be withdrawn as long as the buffer has past
  request[] public requests;

  event LockCreated(IERC20 token, uint256 amount, uint256 requestTime);
  event UnlockRequested(IERC20 token, uint256 amount, uint256 unlockTime, address recipient);
  event TokenUnlocked(IERC20 token, uint256 amount, address recipient);
  event LockTimeExtended(
    IERC20 token,
    uint256 amount,
    uint256 durationExtension,
    uint256 newRequestTime
  );

  /// @notice Locks a token for the specified duration
  /// @param token an ERC20 token
  /// @param amount amount of token to be locked in wei
  /// @param duration how long the lock will last for
  function createLock(
    IERC20 token,
    uint256 amount,
    uint256 duration
  ) external onlyOwner {
    token.transferFrom(msg.sender, address(this), amount);
    uint256 requestTime = block.timestamp.add(duration);
    locks.push(lock(token, amount, requestTime));
    emit LockCreated(token, amount, requestTime);
  }

  /// @notice If the lock duration is over, requests the tokens be moved to the recipient
  /// This can then be be done with unlock() after 3 days
  /// @param lockIndex index of the lock in locks
  /// @param recipient address that will receive the tokens
  function requestLock(uint256 lockIndex, address recipient) external onlyOwner {
    lock memory l = locks[lockIndex];
    require(block.timestamp >= l.requestTime, "Can not request early");

    uint256 unlockTime = block.timestamp.add(BUFFER);
    requests.push(request(l.token, l.amount, unlockTime, recipient));
    delete locks[lockIndex];
    emit UnlockRequested(l.token, l.amount, unlockTime, recipient);
  }

  /// @notice Enacts the request if at least 3 days has passed
  /// @param requestIndex index of the request in locks
  function unlock(uint256 requestIndex) external onlyOwner {
    request memory r = requests[requestIndex];
    require(block.timestamp >= r.unlockTime, "Can not unlock early");

    r.token.transfer(r.recipient, r.amount);
    delete requests[requestIndex];
    emit TokenUnlocked(r.token, r.amount, r.recipient);
  }

  /// @notice Adds time to a lock
  /// @param lockIndex index of the lock in locks
  /// @param durationExtension time to be added to the lock
  function extendLock(uint256 lockIndex, uint256 durationExtension) external onlyOwner {
    lock memory l = locks[lockIndex];
    uint256 newRequestTime = l.requestTime.add(durationExtension);

    locks[lockIndex].requestTime = newRequestTime;
    emit LockTimeExtended(l.token, l.amount, durationExtension, newRequestTime);
  }

  /// @dev These are needed since the default getter for arrays get indivdual elements

  function getLocks() external view returns (lock[] memory) {
    return locks;
  }

  function getRequests() external view returns (request[] memory) {
    return requests;
  }
}
        

/_openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract 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 {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual 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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}
          

/_openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

/_openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}
          

/_openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}
          

Contract ABI

[{"type":"event","name":"LockCreated","inputs":[{"type":"address","name":"token","internalType":"contract IERC20","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"requestTime","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LockTimeExtended","inputs":[{"type":"address","name":"token","internalType":"contract IERC20","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"durationExtension","internalType":"uint256","indexed":false},{"type":"uint256","name":"newRequestTime","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"TokenUnlocked","inputs":[{"type":"address","name":"token","internalType":"contract IERC20","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"address","name":"recipient","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"UnlockRequested","inputs":[{"type":"address","name":"token","internalType":"contract IERC20","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"unlockTime","internalType":"uint256","indexed":false},{"type":"address","name":"recipient","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"createLock","inputs":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"duration","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"extendLock","inputs":[{"type":"uint256","name":"lockIndex","internalType":"uint256"},{"type":"uint256","name":"durationExtension","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct lock[]","components":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"requestTime","internalType":"uint256"}]}],"name":"getLocks","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct request[]","components":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"unlockTime","internalType":"uint256"},{"type":"address","name":"recipient","internalType":"address"}]}],"name":"getRequests","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"requestTime","internalType":"uint256"}],"name":"locks","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"requestLock","inputs":[{"type":"uint256","name":"lockIndex","internalType":"uint256"},{"type":"address","name":"recipient","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"unlockTime","internalType":"uint256"},{"type":"address","name":"recipient","internalType":"address"}],"name":"requests","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unlock","inputs":[{"type":"uint256","name":"requestIndex","internalType":"uint256"}]}]
            

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a61461013c57806381d12c58146101465780638813ce12146101795780638da5cb5b14610197578063f2fde38b146101b5578063f4dadc61146101d1576100a9565b8063070d66bf146100ae57806311b61fba146100ca57806344b056ed146100e65780636198e33914610104578063650e150514610120575b600080fd5b6100c860048036038101906100c39190611599565b610203565b005b6100e460048036038101906100df919061155d565b6103d5565b005b6100ee610743565b6040516100fb91906118bc565b60405180910390f35b61011e60048036038101906101199190611534565b61080c565b005b61013a600480360381019061013591906114e5565b610b53565b005b610144610da3565b005b610160600480360381019061015b9190611534565b610f10565b604051610170949392919061196e565b60405180910390f35b610181610f90565b60405161018e91906118de565b60405180910390f35b61019f6110af565b6040516101ac9190611841565b60405180910390f35b6101cf60048036038101906101ca9190611493565b6110d8565b005b6101eb60048036038101906101e69190611534565b6112ca565b6040516101fa93929190611937565b60405180910390f35b61020b611324565b73ffffffffffffffffffffffffffffffffffffffff166102296110af565b73ffffffffffffffffffffffffffffffffffffffff16146102b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6102ba6113b4565b600183815481106102c757fe5b90600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815250509050600061036583836040015161132c90919063ffffffff16565b9050806001858154811061037557fe5b9060005260206000209060030201600201819055507f0e22966190c7003626686eeb521cedae635b9d00ff03095e790b87f5ae1153728260000151836020015185846040516103c794939291906119b3565b60405180910390a150505050565b6103dd611324565b73ffffffffffffffffffffffffffffffffffffffff166103fb6110af565b73ffffffffffffffffffffffffffffffffffffffff1614610484576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61048c6113b4565b6001838154811061049957fe5b90600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505090508060400151421015610565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055c906119f8565b60405180910390fd5b600061057d6203f4804261132c90919063ffffffff16565b905060026040518060800160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015181526020018381526020018573ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050600184815481106106b057fe5b9060005260206000209060030201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160009055600282016000905550507fbca07280c9acced4d70dbe531bb93d0aac1b044f646e5b5d7d4075b1769297bc826000015183602001518386604051610735949392919061196e565b60405180910390a150505050565b60606001805480602002602001604051908101604052809291908181526020016000905b8282101561080357838290600052602060002090600302016040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815260200160028201548152505081526020019060010190610767565b50505050905090565b610814611324565b73ffffffffffffffffffffffffffffffffffffffff166108326110af565b73ffffffffffffffffffffffffffffffffffffffff16146108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6108c36113eb565b600282815481106108d057fe5b90600052602060002090600402016040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080604001514210156109f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e990611a18565b60405180910390fd5b806000015173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb826060015183602001516040518363ffffffff1660e01b8152600401610a39929190611893565b602060405180830381600087803b158015610a5357600080fd5b505af1158015610a67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8b91906114bc565b5060028281548110610a9957fe5b9060005260206000209060040201600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507ff929de967b2c8e03a98e960fbb5aa81569899dee62736a30ac4c1105ca4bde9b816000015182602001518360600151604051610b4793929190611900565b60405180910390a15050565b610b5b611324565b73ffffffffffffffffffffffffffffffffffffffff16610b796110af565b73ffffffffffffffffffffffffffffffffffffffff1614610c02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610c3f9392919061185c565b602060405180830381600087803b158015610c5957600080fd5b505af1158015610c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9191906114bc565b506000610ca7824261132c90919063ffffffff16565b9050600160405180606001604052808673ffffffffffffffffffffffffffffffffffffffff16815260200185815260200183815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015550507f167357c41e38a45e1950f61b1f5accf902c878d83f1685f7f72fb666203ce047848483604051610d9593929190611937565b60405180910390a150505050565b610dab611324565b73ffffffffffffffffffffffffffffffffffffffff16610dc96110af565b73ffffffffffffffffffffffffffffffffffffffff1614610e52576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60028181548110610f2057600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60606002805480602002602001604051908101604052809291908181526020016000905b828210156110a657838290600052602060002090600402016040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505081526020019060010190610fb4565b50505050905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110e0611324565b73ffffffffffffffffffffffffffffffffffffffff166110fe6110af565b73ffffffffffffffffffffffffffffffffffffffff1614611187576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561120d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611bcc6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600181815481106112da57600080fd5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b600033905090565b6000808284019050838110156113aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b60008135905061144e81611b6f565b92915050565b60008151905061146381611b86565b92915050565b60008135905061147881611b9d565b92915050565b60008135905061148d81611bb4565b92915050565b6000602082840312156114a557600080fd5b60006114b38482850161143f565b91505092915050565b6000602082840312156114ce57600080fd5b60006114dc84828501611454565b91505092915050565b6000806000606084860312156114fa57600080fd5b600061150886828701611469565b93505060206115198682870161147e565b925050604061152a8682870161147e565b9150509250925092565b60006020828403121561154657600080fd5b60006115548482850161147e565b91505092915050565b6000806040838503121561157057600080fd5b600061157e8582860161147e565b925050602061158f8582860161143f565b9150509250929050565b600080604083850312156115ac57600080fd5b60006115ba8582860161147e565b92505060206115cb8582860161147e565b9150509250929050565b60006115e1838361178c565b60608301905092915050565b60006115f983836117ce565b60808301905092915050565b61160e81611b15565b82525050565b61161d81611abb565b82525050565b61162c81611abb565b82525050565b600061163d82611a58565b6116478185611a88565b935061165283611a38565b8060005b8381101561168357815161166a88826115d5565b975061167583611a6e565b925050600181019050611656565b5085935050505092915050565b600061169b82611a63565b6116a58185611a99565b93506116b083611a48565b8060005b838110156116e15781516116c888826115ed565b97506116d383611a7b565b9250506001810190506116b4565b5085935050505092915050565b6116f781611b27565b82525050565b61170681611b27565b82525050565b6000611719601583611aaa565b91507f43616e206e6f742072657175657374206561726c7900000000000000000000006000830152602082019050919050565b6000611759601483611aaa565b91507f43616e206e6f7420756e6c6f636b206561726c790000000000000000000000006000830152602082019050919050565b6060820160008201516117a260008501826116ee565b5060208201516117b56020850182611823565b5060408201516117c86040850182611823565b50505050565b6080820160008201516117e460008501826116ee565b5060208201516117f76020850182611823565b50604082015161180a6040850182611823565b50606082015161181d6060850182611614565b50505050565b61182c81611b0b565b82525050565b61183b81611b0b565b82525050565b60006020820190506118566000830184611623565b92915050565b60006060820190506118716000830186611605565b61187e6020830185611623565b61188b6040830184611832565b949350505050565b60006040820190506118a86000830185611623565b6118b56020830184611832565b9392505050565b600060208201905081810360008301526118d68184611632565b905092915050565b600060208201905081810360008301526118f88184611690565b905092915050565b600060608201905061191560008301866116fd565b6119226020830185611832565b61192f6040830184611623565b949350505050565b600060608201905061194c60008301866116fd565b6119596020830185611832565b6119666040830184611832565b949350505050565b600060808201905061198360008301876116fd565b6119906020830186611832565b61199d6040830185611832565b6119aa6060830184611623565b95945050505050565b60006080820190506119c860008301876116fd565b6119d56020830186611832565b6119e26040830185611832565b6119ef6060830184611832565b95945050505050565b60006020820190508181036000830152611a118161170c565b9050919050565b60006020820190508181036000830152611a318161174c565b9050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611ac682611aeb565b9050919050565b60008115159050919050565b6000611ae482611abb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611b2082611b4b565b9050919050565b6000611b3282611b39565b9050919050565b6000611b4482611aeb565b9050919050565b6000611b5682611b5d565b9050919050565b6000611b6882611aeb565b9050919050565b611b7881611abb565b8114611b8357600080fd5b50565b611b8f81611acd565b8114611b9a57600080fd5b50565b611ba681611ad9565b8114611bb157600080fd5b50565b611bbd81611b0b565b8114611bc857600080fd5b5056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220f76350ef54f4d62e44032b8280780ff16d3444a1690e42c3106e3d07b8f022c264736f6c63430007040033