ETH Price: $2,622.73 (-0.58%)

Contract

0xB1221F321062d0eB7bCf022E7F2a357bFf80FdE9
 

Overview

ETH Balance

1 wei

Eth Value

Less Than $0.01 (@ $2,622.73/ETH)
Transaction Hash
Method
Block
From
To
Set Approval For...141520532022-02-06 10:48:261099 days ago1644144506IN
0xB1221F32...bFf80FdE9
0 ETH0.0026289956.1859924
Set Approval For...140374552022-01-19 18:00:501117 days ago1642615250IN
0xB1221F32...bFf80FdE9
0 ETH0.01092423233.52871861
Set Approval For...139876652022-01-12 1:00:171124 days ago1641949217IN
0xB1221F32...bFf80FdE9
0 ETH0.00891568190.54272644
Set Approval For...137557522021-12-07 1:37:301160 days ago1638841050IN
0xB1221F32...bFf80FdE9
0 ETH0.0044712595.55799933
Withdraw All137544572021-12-06 20:47:401160 days ago1638823660IN
0xB1221F32...bFf80FdE9
0 ETH0.00531727102.56095187
Set Approval For...137358572021-12-03 21:10:211163 days ago1638565821IN
0xB1221F32...bFf80FdE9
0 ETH0.00484756103.60039074
Set Approval For...137037702021-11-28 17:44:351169 days ago1638121475IN
0xB1221F32...bFf80FdE9
0 ETH0.0045285196.78173972
Set Approval For...136785542021-11-24 17:37:261173 days ago1637775446IN
0xB1221F32...bFf80FdE9
0 ETH0.00708483151.41443383
Transfer From136691622021-11-23 6:09:371174 days ago1637647777IN
0xB1221F32...bFf80FdE9
0 ETH0.00975396111.15877463
Set Approval For...136671612021-11-22 22:28:481174 days ago1637620128IN
0xB1221F32...bFf80FdE9
0 ETH0.00858829183.54585599
Mint136630382021-11-22 6:58:581175 days ago1637564338IN
0xB1221F32...bFf80FdE9
0.05 ETH0.00428985160.62042265
Set Approval For...136604072021-11-21 20:51:471175 days ago1637527907IN
0xB1221F32...bFf80FdE9
0 ETH0.00653853139.73921303
Set Approval For...136602672021-11-21 20:22:041175 days ago1637526124IN
0xB1221F32...bFf80FdE9
0 ETH0.00435312161.88024203
Set Approval For...136602672021-11-21 20:22:041175 days ago1637526124IN
0xB1221F32...bFf80FdE9
0 ETH0.00757453161.88024203
Flip Sale136601852021-11-21 20:01:411175 days ago1637524901IN
0xB1221F32...bFf80FdE9
0 ETH0.0028221117.27007321
Mint136600502021-11-21 19:28:451176 days ago1637522925IN
0xB1221F32...bFf80FdE9
0.05 ETH0.02030839137.7092319
Mint136598802021-11-21 18:49:471176 days ago1637520587IN
0xB1221F32...bFf80FdE9
0.05 ETH0.01805866122.45403998
Mint136598242021-11-21 18:38:371176 days ago1637519917IN
0xB1221F32...bFf80FdE9
0.1 ETH0.03174907120.65376788
Mint136597122021-11-21 18:08:551176 days ago1637518135IN
0xB1221F32...bFf80FdE9
0.05 ETH0.00420004182.61073983
Mint136597062021-11-21 18:07:421176 days ago1637518062IN
0xB1221F32...bFf80FdE9
0.1 ETH0.04660151177.09645845
Mint136595832021-11-21 17:38:361176 days ago1637516316IN
0xB1221F32...bFf80FdE9
0.05 ETH0.01599003108.42685389
Mint136593552021-11-21 16:49:461176 days ago1637513386IN
0xB1221F32...bFf80FdE9
0.05 ETH0.01722267116.78525759
Mint136593292021-11-21 16:44:311176 days ago1637513071IN
0xB1221F32...bFf80FdE9
0.1 ETH0.0233603388.77464741
Mint136592862021-11-21 16:36:361176 days ago1637512596IN
0xB1221F32...bFf80FdE9
0.05 ETH0.01636807110.99032295
Mint136592532021-11-21 16:29:451176 days ago1637512185IN
0xB1221F32...bFf80FdE9
0.05 ETH0.01612781107.32342672
View all transactions

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
137544572021-12-06 20:47:401160 days ago1638823660
0xB1221F32...bFf80FdE9
0.4 ETH
137544572021-12-06 20:47:401160 days ago1638823660
0xB1221F32...bFf80FdE9
0.4 ETH
137544572021-12-06 20:47:401160 days ago1638823660
0xB1221F32...bFf80FdE9
0.4 ETH
136253472021-11-16 7:41:061181 days ago1637048466
0xB1221F32...bFf80FdE9
0.33333333 ETH
136253472021-11-16 7:41:061181 days ago1637048466
0xB1221F32...bFf80FdE9
0.33333333 ETH
136253472021-11-16 7:41:061181 days ago1637048466
0xB1221F32...bFf80FdE9
0.33333333 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChickenSuspects

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : ChickenSuspects.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;


import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

contract ChickenSuspects is  ERC721Enumerable, Ownable, VRFConsumerBase {
    
    using SafeMath for uint256;

    uint256 public constant MAX_TOKENS = 4419;
    uint256 public constant MAX_TOKENS_PER_PURCHASE = 20;
    uint256 public constant PRICE = 50000000000000000; // 0.05 Ether
    
    address private constant ADRESS1 = 0x0F9382f1d6c190d7910050FfB0BE7E1b58D99a5a;
    address private constant ADRESS2 = 0x1f800bde92bAcFcf443F2C2443b0FEb7Fa16e7F3;
    address private constant ADRESS3 = 0xc90F889a63B82650AAc4980B712EaCD0F326fEDa;
    
    uint256 public randomResult;
    uint256 public constant TIME_BETWEEN_DRAWS = 60 * 60 * 24; // 60 seconds * 60 minutes * 24 hours
    uint256 public lastDraw;
    
    bool internal canDrawWinner = false;
    bool internal saleIsActive = false;
    
    uint16[5] public suspects;
    uint16 public culprit;

    bytes32 internal keyHash;
    uint256 internal fee = 2 * 10 ** 18; // 2 LINKS;
    
    string public baseTokenURI; 
    
    constructor() 
        ERC721("Chicken Suspects", "CS") 
        VRFConsumerBase(
            0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, // VRF Coordinator
            0x514910771AF9Ca656af840dff83E8264EcF986CA  // LINK Token
        ) 
    {
        keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
        lastDraw = block.timestamp - TIME_BETWEEN_DRAWS;
    }
    
    
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }
    
    function setBaseUri(string memory baseURI) public onlyOwner{
        baseTokenURI = baseURI;
    }
    
    function flipSale() public onlyOwner {
        saleIsActive = !saleIsActive;
    }
    
    function withdrawAll() public payable onlyOwner {
        uint256 _each = address(this).balance / 3;
        require(payable(ADRESS1).send(_each));
        require(payable(ADRESS2).send(_each));
        require(payable(ADRESS3).send(_each));
    }
    
    function mint(uint256 _count) public payable {
        uint256 total = totalSupply();
        require(total + _count < MAX_TOKENS + 1, "Not enough chickens left !");

        require(saleIsActive, "Sale is not active !");
        require(_count > 0 && _count < MAX_TOKENS_PER_PURCHASE + 1, "You cannot buy that much chickens in a single transaction");
        require(msg.value >= PRICE.mul(_count), "Ether value sent is not correct");
        
        for(uint i = 0; i < _count; i++) {
            uint index = totalSupply();
            if (totalSupply() < MAX_TOKENS) {
                _safeMint(msg.sender, index);
            }
        }
    }

    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return tokenIds;
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        randomResult = randomness;
    }
    
    function getRandomNumber() internal returns (bytes32 requestId) {
        require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK");
        return requestRandomness(keyHash, fee);
    }
    
    function getCulprit() public onlyOwner {
        require(canDrawWinner == true, "You can't draw a winner yet !");
        
        bytes32 randomValue = getRandomNumber();
        
        culprit = suspects[uint256(randomValue)%5];
        
        canDrawWinner = false;
    }
    
    function getSuspect() public onlyOwner {
        
        require(lastDraw + TIME_BETWEEN_DRAWS < block.timestamp , "You need to wait more.");
        
        bytes32 randomValue = getRandomNumber();
        
        for (uint256 i = 0; i < 5; i++) {
            suspects[i] = uint16(uint256(keccak256(abi.encode(randomValue, i)))%4419);
        }
        
        lastDraw = block.timestamp;
        canDrawWinner = true;
    }
}

File 2 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => 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;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @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 {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @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 = ERC721.balanceOf(from) - 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
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @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 - 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
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 3 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @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 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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 17 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 6 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.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"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), 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.
     *
     * @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
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 7 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 8 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 9 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is 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.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 13 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 14 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
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);
}

File 16 of 17 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}

File 17 of 17 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIME_BETWEEN_DRAWS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"culprit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCulprit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getSuspect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"suspects","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

60c06040526000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff021916908315150217905550671bc16d674ec800006012553480156200005357600080fd5b5073f0d54349addcf704f77ae15b96510dea15cb795273514910771af9ca656af840dff83e8264ecf986ca6040518060400160405280601081526020017f436869636b656e205375737065637473000000000000000000000000000000008152506040518060400160405280600281526020017f4353000000000000000000000000000000000000000000000000000000000000815250816000908051906020019062000102929190620002c3565b5080600190805190602001906200011b929190620002c3565b5050506200013e62000132620001f560201b60201c565b620001fd60201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050507faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44560001b6011819055506201518042620001e9919062000373565b600d819055506200044c565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002d190620003b8565b90600052602060002090601f016020900481019282620002f5576000855562000341565b82601f106200031057805160ff191683800117855562000341565b8280016001018555821562000341579182015b828111156200034057825182559160200191906001019062000323565b5b50905062000350919062000354565b5090565b5b808211156200036f57600081600090555060010162000355565b5090565b60006200038082620003ae565b91506200038d83620003ae565b925082821015620003a357620003a2620003ee565b5b828203905092915050565b6000819050919050565b60006002820490506001821680620003d157607f821691505b60208210811415620003e857620003e76200041d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60805160601c60a05160601c614ca862000486600039600081816111ad01526128b201526000818161234f01526128760152614ca86000f3fe60806040526004361061020f5760003560e01c8063853828b611610118578063ab9deec7116100a0578063d547cfb71161006f578063d547cfb71461075d578063e985e9c514610788578063ef8fb8d6146107c5578063f2fde38b146107f0578063f47c84c5146108195761020f565b8063ab9deec7146106a3578063b88d4fde146106ba578063c02cbcaf146106e3578063c87b56dd146107205761020f565b806395d89b41116100e757806395d89b41146105f3578063a0712d681461061e578063a0bcfc7f1461063a578063a1134a7514610663578063a22cb4651461067a5761020f565b8063853828b61461056a5780638d859f3e146105745780638da5cb5b1461059f57806394985ddd146105ca5761020f565b806342842e0e1161019b5780636352211e1161016a5780636352211e1461048557806370a08231146104c2578063715018a6146104ff5780637ba5e621146105165780638462151c1461052d5761020f565b806342842e0e146103c95780634ee27684146103f25780634f6ccce71461041d5780635dd577ec1461045a5761020f565b806310007380116101e257806310007380146102e257806318160ddd1461030d57806323b872dd146103385780632f745c591461036157806342619f661461039e5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613521565b610844565b6040516102489190613c64565b60405180910390f35b34801561025d57600080fd5b506102666108be565b6040516102739190613ced565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e91906135c4565b610950565b6040516102b09190613b9d565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613474565b6109d5565b005b3480156102ee57600080fd5b506102f7610aed565b604051610304919061406a565b60405180910390f35b34801561031957600080fd5b50610322610af2565b60405161032f919061406a565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a919061335e565b610aff565b005b34801561036d57600080fd5b5061038860048036038101906103839190613474565b610b5f565b604051610395919061406a565b60405180910390f35b3480156103aa57600080fd5b506103b3610c04565b6040516103c0919061406a565b60405180910390f35b3480156103d557600080fd5b506103f060048036038101906103eb919061335e565b610c0a565b005b3480156103fe57600080fd5b50610407610c2a565b604051610414919061406a565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f91906135c4565b610c31565b604051610451919061406a565b60405180910390f35b34801561046657600080fd5b5061046f610ca2565b60405161047c919061406a565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a791906135c4565b610ca8565b6040516104b99190613b9d565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e491906132f1565b610d5a565b6040516104f6919061406a565b60405180910390f35b34801561050b57600080fd5b50610514610e12565b005b34801561052257600080fd5b5061052b610e9a565b005b34801561053957600080fd5b50610554600480360381019061054f91906132f1565b610f42565b6040516105619190613c42565b60405180910390f35b610572610ff0565b005b34801561058057600080fd5b50610589611176565b604051610596919061406a565b60405180910390f35b3480156105ab57600080fd5b506105b4611181565b6040516105c19190613b9d565b60405180910390f35b3480156105d657600080fd5b506105f160048036038101906105ec91906134e1565b6111ab565b005b3480156105ff57600080fd5b50610608611247565b6040516106159190613ced565b60405180910390f35b610638600480360381019061063391906135c4565b6112d9565b005b34801561064657600080fd5b50610661600480360381019061065c919061357b565b611492565b005b34801561066f57600080fd5b50610678611528565b005b34801561068657600080fd5b506106a1600480360381019061069c9190613434565b6116b9565b005b3480156106af57600080fd5b506106b861183a565b005b3480156106c657600080fd5b506106e160048036038101906106dc91906133b1565b61198f565b005b3480156106ef57600080fd5b5061070a600480360381019061070591906135c4565b6119f1565b604051610717919061404f565b60405180910390f35b34801561072c57600080fd5b50610747600480360381019061074291906135c4565b611a1f565b6040516107549190613ced565b60405180910390f35b34801561076957600080fd5b50610772611ac6565b60405161077f9190613ced565b60405180910390f35b34801561079457600080fd5b506107af60048036038101906107aa919061331e565b611b54565b6040516107bc9190613c64565b60405180910390f35b3480156107d157600080fd5b506107da611be8565b6040516107e7919061404f565b60405180910390f35b3480156107fc57600080fd5b50610817600480360381019061081291906132f1565b611bfc565b005b34801561082557600080fd5b5061082e611cf4565b60405161083b919061406a565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108b757506108b682611cfa565b5b9050919050565b6060600080546108cd9061436b565b80601f01602080910402602001604051908101604052809291908181526020018280546108f99061436b565b80156109465780601f1061091b57610100808354040283529160200191610946565b820191906000526020600020905b81548152906001019060200180831161092957829003601f168201915b5050505050905090565b600061095b82611ddc565b61099a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099190613f0f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e082610ca8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4890613faf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a70611e48565b73ffffffffffffffffffffffffffffffffffffffff161480610a9f5750610a9e81610a99611e48565b611b54565b5b610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad590613e8f565b60405180910390fd5b610ae88383611e50565b505050565b601481565b6000600880549050905090565b610b10610b0a611e48565b82611f09565b610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690613fef565b60405180910390fd5b610b5a838383611fe7565b505050565b6000610b6a83610d5a565b8210610bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba290613d2f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600c5481565b610c258383836040518060200160405280600081525061198f565b505050565b6201518081565b6000610c3b610af2565b8210610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c739061400f565b60405180910390fd5b60088281548110610c9057610c8f614518565b5b90600052602060002001549050919050565b600d5481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4890613ecf565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610dcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc290613eaf565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e1a611e48565b73ffffffffffffffffffffffffffffffffffffffff16610e38611181565b73ffffffffffffffffffffffffffffffffffffffff1614610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590613f2f565b60405180910390fd5b610e986000612243565b565b610ea2611e48565b73ffffffffffffffffffffffffffffffffffffffff16610ec0611181565b73ffffffffffffffffffffffffffffffffffffffff1614610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d90613f2f565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b60606000610f4f83610d5a565b905060008167ffffffffffffffff811115610f6d57610f6c614547565b5b604051908082528060200260200182016040528015610f9b5781602001602082028036833780820191505090505b50905060005b82811015610fe557610fb38582610b5f565b828281518110610fc657610fc5614518565b5b6020026020010181815250508080610fdd906143ce565b915050610fa1565b508092505050919050565b610ff8611e48565b73ffffffffffffffffffffffffffffffffffffffff16611016611181565b73ffffffffffffffffffffffffffffffffffffffff161461106c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106390613f2f565b60405180910390fd5b600060034761107b91906141de565b9050730f9382f1d6c190d7910050ffb0be7e1b58d99a5a73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050506110cf57600080fd5b731f800bde92bacfcf443f2c2443b0feb7fa16e7f373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061112157600080fd5b73c90f889a63b82650aac4980b712eacd0f326feda73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061117357600080fd5b50565b66b1a2bc2ec5000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123090613f8f565b60405180910390fd5b6112438282612309565b5050565b6060600180546112569061436b565b80601f01602080910402602001604051908101604052809291908181526020018280546112829061436b565b80156112cf5780601f106112a4576101008083540402835291602001916112cf565b820191906000526020600020905b8154815290600101906020018083116112b257829003601f168201915b5050505050905090565b60006112e3610af2565b905060016111436112f49190614188565b82826113009190614188565b10611340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133790613dcf565b60405180910390fd5b600e60019054906101000a900460ff1661138f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113869061402f565b60405180910390fd5b6000821180156113ab5750600160146113a89190614188565b82105b6113ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e190613daf565b60405180910390fd5b6114048266b1a2bc2ec5000061231490919063ffffffff16565b341015611446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143d90613e2f565b60405180910390fd5b60005b8281101561148d57600061145b610af2565b9050611143611468610af2565b101561147957611478338261232a565b5b508080611485906143ce565b915050611449565b505050565b61149a611e48565b73ffffffffffffffffffffffffffffffffffffffff166114b8611181565b73ffffffffffffffffffffffffffffffffffffffff161461150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590613f2f565b60405180910390fd5b80601390805190602001906115249291906130c6565b5050565b611530611e48565b73ffffffffffffffffffffffffffffffffffffffff1661154e611181565b73ffffffffffffffffffffffffffffffffffffffff16146115a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159b90613f2f565b60405180910390fd5b4262015180600d546115b69190614188565b106115f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ed90613d0f565b60405180910390fd5b6000611600612348565b905060005b6005811015611693576111438282604051602001611624929190613c7f565b6040516020818303038152906040528051906020012060001c611647919061442b565b600f826005811061165b5761165a614518565b5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550808061168b906143ce565b915050611605565b5042600d819055506001600e60006101000a81548160ff02191690831515021790555050565b6116c1611e48565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561172f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172690613e0f565b60405180910390fd5b806005600061173c611e48565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117e9611e48565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161182e9190613c64565b60405180910390a35050565b611842611e48565b73ffffffffffffffffffffffffffffffffffffffff16611860611181565b73ffffffffffffffffffffffffffffffffffffffff16146118b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ad90613f2f565b60405180910390fd5b60011515600e60009054906101000a900460ff1615151461190c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190390613fcf565b60405180910390fd5b6000611916612348565b9050600f60058260001c61192a919061442b565b6005811061193b5761193a614518565b5b601091828204019190066002029054906101000a900461ffff16601060006101000a81548161ffff021916908361ffff1602179055506000600e60006101000a81548160ff02191690831515021790555050565b6119a061199a611e48565b83611f09565b6119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d690613fef565b60405180910390fd5b6119eb8484848461244a565b50505050565b600f8160058110611a0157600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b6060611a2a82611ddc565b611a69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6090613f6f565b60405180910390fd5b6000611a736124a6565b90506000815111611a935760405180602001604052806000815250611abe565b80611a9d84612538565b604051602001611aae929190613b79565b6040516020818303038152906040525b915050919050565b60138054611ad39061436b565b80601f0160208091040260200160405190810160405280929190818152602001828054611aff9061436b565b8015611b4c5780601f10611b2157610100808354040283529160200191611b4c565b820191906000526020600020905b815481529060010190602001808311611b2f57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601060009054906101000a900461ffff1681565b611c04611e48565b73ffffffffffffffffffffffffffffffffffffffff16611c22611181565b73ffffffffffffffffffffffffffffffffffffffff1614611c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6f90613f2f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ce8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdf90613d6f565b60405180910390fd5b611cf181612243565b50565b61114381565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dc557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611dd55750611dd482612699565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ec383610ca8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f1482611ddc565b611f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4a90613e4f565b60405180910390fd5b6000611f5e83610ca8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fcd57508373ffffffffffffffffffffffffffffffffffffffff16611fb584610950565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fde5750611fdd8185611b54565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661200782610ca8565b73ffffffffffffffffffffffffffffffffffffffff161461205d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205490613f4f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c490613def565b60405180910390fd5b6120d8838383612703565b6120e3600082611e50565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121339190614269565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461218a9190614188565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600c819055505050565b60008183612322919061420f565b905092915050565b612344828260405180602001604052806000815250612817565b5050565b60006012547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123a69190613b9d565b60206040518083038186803b1580156123be57600080fd5b505afa1580156123d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f691906135f1565b1015612437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242e90613e6f565b60405180910390fd5b612445601154601254612872565b905090565b612455848484611fe7565b612461848484846129d4565b6124a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249790613d4f565b60405180910390fd5b50505050565b6060601380546124b59061436b565b80601f01602080910402602001604051908101604052809291908181526020018280546124e19061436b565b801561252e5780601f106125035761010080835404028352916020019161252e565b820191906000526020600020905b81548152906001019060200180831161251157829003601f168201915b5050505050905090565b60606000821415612580576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612694565b600082905060005b600082146125b257808061259b906143ce565b915050600a826125ab91906141de565b9150612588565b60008167ffffffffffffffff8111156125ce576125cd614547565b5b6040519080825280601f01601f1916602001820160405280156126005781602001600182028036833780820191505090505b5090505b6000851461268d576001826126199190614269565b9150600a85612628919061442b565b60306126349190614188565b60f81b81838151811061264a57612649614518565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561268691906141de565b9450612604565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61270e838383612b6b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127515761274c81612b70565b612790565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461278f5761278e8382612bb9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127d3576127ce81612d26565b612812565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612811576128108282612df7565b5b5b505050565b6128218383612e76565b61282e60008484846129d4565b61286d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286490613d4f565b60405180910390fd5b505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016128e6929190613c7f565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161291393929190613c04565b602060405180830381600087803b15801561292d57600080fd5b505af1158015612941573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061296591906134b4565b50600061298884600030600b600089815260200190815260200160002054613044565b90506001600b6000868152602001908152602001600020546129aa9190614188565b600b6000868152602001908152602001600020819055506129cb8482613080565b91505092915050565b60006129f58473ffffffffffffffffffffffffffffffffffffffff166130b3565b15612b5e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a1e611e48565b8786866040518563ffffffff1660e01b8152600401612a409493929190613bb8565b602060405180830381600087803b158015612a5a57600080fd5b505af1925050508015612a8b57506040513d601f19601f82011682018060405250810190612a88919061354e565b60015b612b0e573d8060008114612abb576040519150601f19603f3d011682016040523d82523d6000602084013e612ac0565b606091505b50600081511415612b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afd90613d4f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612b63565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612bc684610d5a565b612bd09190614269565b9050600060076000848152602001908152602001600020549050818114612cb5576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612d3a9190614269565b9050600060096000848152602001908152602001600020549050600060088381548110612d6a57612d69614518565b5b906000526020600020015490508060088381548110612d8c57612d8b614518565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612ddb57612dda6144e9565b5b6001900381819060005260206000200160009055905550505050565b6000612e0283610d5a565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612edd90613eef565b60405180910390fd5b612eef81611ddc565b15612f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2690613d8f565b60405180910390fd5b612f3b60008383612703565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f8b9190614188565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008484848460405160200161305d9493929190613ca8565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001613095929190613b4d565b60405160208183030381529060405280519060200120905092915050565b600080823b905060008111915050919050565b8280546130d29061436b565b90600052602060002090601f0160209004810192826130f4576000855561313b565b82601f1061310d57805160ff191683800117855561313b565b8280016001018555821561313b579182015b8281111561313a57825182559160200191906001019061311f565b5b509050613148919061314c565b5090565b5b8082111561316557600081600090555060010161314d565b5090565b600061317c613177846140aa565b614085565b9050828152602081018484840111156131985761319761457b565b5b6131a3848285614329565b509392505050565b60006131be6131b9846140db565b614085565b9050828152602081018484840111156131da576131d961457b565b5b6131e5848285614329565b509392505050565b6000813590506131fc81614bff565b92915050565b60008135905061321181614c16565b92915050565b60008151905061322681614c16565b92915050565b60008135905061323b81614c2d565b92915050565b60008135905061325081614c44565b92915050565b60008151905061326581614c44565b92915050565b600082601f8301126132805761327f614576565b5b8135613290848260208601613169565b91505092915050565b600082601f8301126132ae576132ad614576565b5b81356132be8482602086016131ab565b91505092915050565b6000813590506132d681614c5b565b92915050565b6000815190506132eb81614c5b565b92915050565b60006020828403121561330757613306614585565b5b6000613315848285016131ed565b91505092915050565b6000806040838503121561333557613334614585565b5b6000613343858286016131ed565b9250506020613354858286016131ed565b9150509250929050565b60008060006060848603121561337757613376614585565b5b6000613385868287016131ed565b9350506020613396868287016131ed565b92505060406133a7868287016132c7565b9150509250925092565b600080600080608085870312156133cb576133ca614585565b5b60006133d9878288016131ed565b94505060206133ea878288016131ed565b93505060406133fb878288016132c7565b925050606085013567ffffffffffffffff81111561341c5761341b614580565b5b6134288782880161326b565b91505092959194509250565b6000806040838503121561344b5761344a614585565b5b6000613459858286016131ed565b925050602061346a85828601613202565b9150509250929050565b6000806040838503121561348b5761348a614585565b5b6000613499858286016131ed565b92505060206134aa858286016132c7565b9150509250929050565b6000602082840312156134ca576134c9614585565b5b60006134d884828501613217565b91505092915050565b600080604083850312156134f8576134f7614585565b5b60006135068582860161322c565b9250506020613517858286016132c7565b9150509250929050565b60006020828403121561353757613536614585565b5b600061354584828501613241565b91505092915050565b60006020828403121561356457613563614585565b5b600061357284828501613256565b91505092915050565b60006020828403121561359157613590614585565b5b600082013567ffffffffffffffff8111156135af576135ae614580565b5b6135bb84828501613299565b91505092915050565b6000602082840312156135da576135d9614585565b5b60006135e8848285016132c7565b91505092915050565b60006020828403121561360757613606614585565b5b6000613615848285016132dc565b91505092915050565b600061362a8383613b18565b60208301905092915050565b61363f8161429d565b82525050565b60006136508261411c565b61365a818561414a565b93506136658361410c565b8060005b8381101561369657815161367d888261361e565b97506136888361413d565b925050600181019050613669565b5085935050505092915050565b6136ac816142af565b82525050565b6136bb816142bb565b82525050565b6136d26136cd826142bb565b614417565b82525050565b60006136e382614127565b6136ed818561415b565b93506136fd818560208601614338565b6137068161458a565b840191505092915050565b600061371c82614132565b613726818561416c565b9350613736818560208601614338565b61373f8161458a565b840191505092915050565b600061375582614132565b61375f818561417d565b935061376f818560208601614338565b80840191505092915050565b600061378860168361416c565b91506137938261459b565b602082019050919050565b60006137ab602b8361416c565b91506137b6826145c4565b604082019050919050565b60006137ce60328361416c565b91506137d982614613565b604082019050919050565b60006137f160268361416c565b91506137fc82614662565b604082019050919050565b6000613814601c8361416c565b915061381f826146b1565b602082019050919050565b600061383760398361416c565b9150613842826146da565b604082019050919050565b600061385a601a8361416c565b915061386582614729565b602082019050919050565b600061387d60248361416c565b915061388882614752565b604082019050919050565b60006138a060198361416c565b91506138ab826147a1565b602082019050919050565b60006138c3601f8361416c565b91506138ce826147ca565b602082019050919050565b60006138e6602c8361416c565b91506138f1826147f3565b604082019050919050565b6000613909600f8361416c565b915061391482614842565b602082019050919050565b600061392c60388361416c565b91506139378261486b565b604082019050919050565b600061394f602a8361416c565b915061395a826148ba565b604082019050919050565b600061397260298361416c565b915061397d82614909565b604082019050919050565b600061399560208361416c565b91506139a082614958565b602082019050919050565b60006139b8602c8361416c565b91506139c382614981565b604082019050919050565b60006139db60208361416c565b91506139e6826149d0565b602082019050919050565b60006139fe60298361416c565b9150613a09826149f9565b604082019050919050565b6000613a21602f8361416c565b9150613a2c82614a48565b604082019050919050565b6000613a44601f8361416c565b9150613a4f82614a97565b602082019050919050565b6000613a6760218361416c565b9150613a7282614ac0565b604082019050919050565b6000613a8a601d8361416c565b9150613a9582614b0f565b602082019050919050565b6000613aad60318361416c565b9150613ab882614b38565b604082019050919050565b6000613ad0602c8361416c565b9150613adb82614b87565b604082019050919050565b6000613af360148361416c565b9150613afe82614bd6565b602082019050919050565b613b12816142f1565b82525050565b613b218161431f565b82525050565b613b308161431f565b82525050565b613b47613b428261431f565b614421565b82525050565b6000613b5982856136c1565b602082019150613b698284613b36565b6020820191508190509392505050565b6000613b85828561374a565b9150613b91828461374a565b91508190509392505050565b6000602082019050613bb26000830184613636565b92915050565b6000608082019050613bcd6000830187613636565b613bda6020830186613636565b613be76040830185613b27565b8181036060830152613bf981846136d8565b905095945050505050565b6000606082019050613c196000830186613636565b613c266020830185613b27565b8181036040830152613c3881846136d8565b9050949350505050565b60006020820190508181036000830152613c5c8184613645565b905092915050565b6000602082019050613c7960008301846136a3565b92915050565b6000604082019050613c9460008301856136b2565b613ca16020830184613b27565b9392505050565b6000608082019050613cbd60008301876136b2565b613cca6020830186613b27565b613cd76040830185613636565b613ce46060830184613b27565b95945050505050565b60006020820190508181036000830152613d078184613711565b905092915050565b60006020820190508181036000830152613d288161377b565b9050919050565b60006020820190508181036000830152613d488161379e565b9050919050565b60006020820190508181036000830152613d68816137c1565b9050919050565b60006020820190508181036000830152613d88816137e4565b9050919050565b60006020820190508181036000830152613da881613807565b9050919050565b60006020820190508181036000830152613dc88161382a565b9050919050565b60006020820190508181036000830152613de88161384d565b9050919050565b60006020820190508181036000830152613e0881613870565b9050919050565b60006020820190508181036000830152613e2881613893565b9050919050565b60006020820190508181036000830152613e48816138b6565b9050919050565b60006020820190508181036000830152613e68816138d9565b9050919050565b60006020820190508181036000830152613e88816138fc565b9050919050565b60006020820190508181036000830152613ea88161391f565b9050919050565b60006020820190508181036000830152613ec881613942565b9050919050565b60006020820190508181036000830152613ee881613965565b9050919050565b60006020820190508181036000830152613f0881613988565b9050919050565b60006020820190508181036000830152613f28816139ab565b9050919050565b60006020820190508181036000830152613f48816139ce565b9050919050565b60006020820190508181036000830152613f68816139f1565b9050919050565b60006020820190508181036000830152613f8881613a14565b9050919050565b60006020820190508181036000830152613fa881613a37565b9050919050565b60006020820190508181036000830152613fc881613a5a565b9050919050565b60006020820190508181036000830152613fe881613a7d565b9050919050565b6000602082019050818103600083015261400881613aa0565b9050919050565b6000602082019050818103600083015261402881613ac3565b9050919050565b6000602082019050818103600083015261404881613ae6565b9050919050565b60006020820190506140646000830184613b09565b92915050565b600060208201905061407f6000830184613b27565b92915050565b600061408f6140a0565b905061409b828261439d565b919050565b6000604051905090565b600067ffffffffffffffff8211156140c5576140c4614547565b5b6140ce8261458a565b9050602081019050919050565b600067ffffffffffffffff8211156140f6576140f5614547565b5b6140ff8261458a565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006141938261431f565b915061419e8361431f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156141d3576141d261445c565b5b828201905092915050565b60006141e98261431f565b91506141f48361431f565b9250826142045761420361448b565b5b828204905092915050565b600061421a8261431f565b91506142258361431f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561425e5761425d61445c565b5b828202905092915050565b60006142748261431f565b915061427f8361431f565b9250828210156142925761429161445c565b5b828203905092915050565b60006142a8826142ff565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561435657808201518184015260208101905061433b565b83811115614365576000848401525b50505050565b6000600282049050600182168061438357607f821691505b60208210811415614397576143966144ba565b5b50919050565b6143a68261458a565b810181811067ffffffffffffffff821117156143c5576143c4614547565b5b80604052505050565b60006143d98261431f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561440c5761440b61445c565b5b600182019050919050565b6000819050919050565b6000819050919050565b60006144368261431f565b91506144418361431f565b9250826144515761445061448b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f596f75206e65656420746f2077616974206d6f72652e00000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f596f752063616e6e6f74206275792074686174206d75636820636869636b656e60008201527f7320696e20612073696e676c65207472616e73616374696f6e00000000000000602082015250565b7f4e6f7420656e6f75676820636869636b656e73206c6566742021000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f596f752063616e2774206472617720612077696e6e6572207965742021000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f53616c65206973206e6f74206163746976652021000000000000000000000000600082015250565b614c088161429d565b8114614c1357600080fd5b50565b614c1f816142af565b8114614c2a57600080fd5b50565b614c36816142bb565b8114614c4157600080fd5b50565b614c4d816142c5565b8114614c5857600080fd5b50565b614c648161431f565b8114614c6f57600080fd5b5056fea2646970667358221220c9b8bc597a66f893ee855cb1ab1cb32c657296cd88f7bc7c4862930f81a4e87f64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061020f5760003560e01c8063853828b611610118578063ab9deec7116100a0578063d547cfb71161006f578063d547cfb71461075d578063e985e9c514610788578063ef8fb8d6146107c5578063f2fde38b146107f0578063f47c84c5146108195761020f565b8063ab9deec7146106a3578063b88d4fde146106ba578063c02cbcaf146106e3578063c87b56dd146107205761020f565b806395d89b41116100e757806395d89b41146105f3578063a0712d681461061e578063a0bcfc7f1461063a578063a1134a7514610663578063a22cb4651461067a5761020f565b8063853828b61461056a5780638d859f3e146105745780638da5cb5b1461059f57806394985ddd146105ca5761020f565b806342842e0e1161019b5780636352211e1161016a5780636352211e1461048557806370a08231146104c2578063715018a6146104ff5780637ba5e621146105165780638462151c1461052d5761020f565b806342842e0e146103c95780634ee27684146103f25780634f6ccce71461041d5780635dd577ec1461045a5761020f565b806310007380116101e257806310007380146102e257806318160ddd1461030d57806323b872dd146103385780632f745c591461036157806342619f661461039e5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613521565b610844565b6040516102489190613c64565b60405180910390f35b34801561025d57600080fd5b506102666108be565b6040516102739190613ced565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e91906135c4565b610950565b6040516102b09190613b9d565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613474565b6109d5565b005b3480156102ee57600080fd5b506102f7610aed565b604051610304919061406a565b60405180910390f35b34801561031957600080fd5b50610322610af2565b60405161032f919061406a565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a919061335e565b610aff565b005b34801561036d57600080fd5b5061038860048036038101906103839190613474565b610b5f565b604051610395919061406a565b60405180910390f35b3480156103aa57600080fd5b506103b3610c04565b6040516103c0919061406a565b60405180910390f35b3480156103d557600080fd5b506103f060048036038101906103eb919061335e565b610c0a565b005b3480156103fe57600080fd5b50610407610c2a565b604051610414919061406a565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f91906135c4565b610c31565b604051610451919061406a565b60405180910390f35b34801561046657600080fd5b5061046f610ca2565b60405161047c919061406a565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a791906135c4565b610ca8565b6040516104b99190613b9d565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e491906132f1565b610d5a565b6040516104f6919061406a565b60405180910390f35b34801561050b57600080fd5b50610514610e12565b005b34801561052257600080fd5b5061052b610e9a565b005b34801561053957600080fd5b50610554600480360381019061054f91906132f1565b610f42565b6040516105619190613c42565b60405180910390f35b610572610ff0565b005b34801561058057600080fd5b50610589611176565b604051610596919061406a565b60405180910390f35b3480156105ab57600080fd5b506105b4611181565b6040516105c19190613b9d565b60405180910390f35b3480156105d657600080fd5b506105f160048036038101906105ec91906134e1565b6111ab565b005b3480156105ff57600080fd5b50610608611247565b6040516106159190613ced565b60405180910390f35b610638600480360381019061063391906135c4565b6112d9565b005b34801561064657600080fd5b50610661600480360381019061065c919061357b565b611492565b005b34801561066f57600080fd5b50610678611528565b005b34801561068657600080fd5b506106a1600480360381019061069c9190613434565b6116b9565b005b3480156106af57600080fd5b506106b861183a565b005b3480156106c657600080fd5b506106e160048036038101906106dc91906133b1565b61198f565b005b3480156106ef57600080fd5b5061070a600480360381019061070591906135c4565b6119f1565b604051610717919061404f565b60405180910390f35b34801561072c57600080fd5b50610747600480360381019061074291906135c4565b611a1f565b6040516107549190613ced565b60405180910390f35b34801561076957600080fd5b50610772611ac6565b60405161077f9190613ced565b60405180910390f35b34801561079457600080fd5b506107af60048036038101906107aa919061331e565b611b54565b6040516107bc9190613c64565b60405180910390f35b3480156107d157600080fd5b506107da611be8565b6040516107e7919061404f565b60405180910390f35b3480156107fc57600080fd5b50610817600480360381019061081291906132f1565b611bfc565b005b34801561082557600080fd5b5061082e611cf4565b60405161083b919061406a565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108b757506108b682611cfa565b5b9050919050565b6060600080546108cd9061436b565b80601f01602080910402602001604051908101604052809291908181526020018280546108f99061436b565b80156109465780601f1061091b57610100808354040283529160200191610946565b820191906000526020600020905b81548152906001019060200180831161092957829003601f168201915b5050505050905090565b600061095b82611ddc565b61099a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099190613f0f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e082610ca8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4890613faf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a70611e48565b73ffffffffffffffffffffffffffffffffffffffff161480610a9f5750610a9e81610a99611e48565b611b54565b5b610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad590613e8f565b60405180910390fd5b610ae88383611e50565b505050565b601481565b6000600880549050905090565b610b10610b0a611e48565b82611f09565b610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690613fef565b60405180910390fd5b610b5a838383611fe7565b505050565b6000610b6a83610d5a565b8210610bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba290613d2f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600c5481565b610c258383836040518060200160405280600081525061198f565b505050565b6201518081565b6000610c3b610af2565b8210610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c739061400f565b60405180910390fd5b60088281548110610c9057610c8f614518565b5b90600052602060002001549050919050565b600d5481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4890613ecf565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610dcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc290613eaf565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e1a611e48565b73ffffffffffffffffffffffffffffffffffffffff16610e38611181565b73ffffffffffffffffffffffffffffffffffffffff1614610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590613f2f565b60405180910390fd5b610e986000612243565b565b610ea2611e48565b73ffffffffffffffffffffffffffffffffffffffff16610ec0611181565b73ffffffffffffffffffffffffffffffffffffffff1614610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d90613f2f565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b60606000610f4f83610d5a565b905060008167ffffffffffffffff811115610f6d57610f6c614547565b5b604051908082528060200260200182016040528015610f9b5781602001602082028036833780820191505090505b50905060005b82811015610fe557610fb38582610b5f565b828281518110610fc657610fc5614518565b5b6020026020010181815250508080610fdd906143ce565b915050610fa1565b508092505050919050565b610ff8611e48565b73ffffffffffffffffffffffffffffffffffffffff16611016611181565b73ffffffffffffffffffffffffffffffffffffffff161461106c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106390613f2f565b60405180910390fd5b600060034761107b91906141de565b9050730f9382f1d6c190d7910050ffb0be7e1b58d99a5a73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050506110cf57600080fd5b731f800bde92bacfcf443f2c2443b0feb7fa16e7f373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061112157600080fd5b73c90f889a63b82650aac4980b712eacd0f326feda73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061117357600080fd5b50565b66b1a2bc2ec5000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123090613f8f565b60405180910390fd5b6112438282612309565b5050565b6060600180546112569061436b565b80601f01602080910402602001604051908101604052809291908181526020018280546112829061436b565b80156112cf5780601f106112a4576101008083540402835291602001916112cf565b820191906000526020600020905b8154815290600101906020018083116112b257829003601f168201915b5050505050905090565b60006112e3610af2565b905060016111436112f49190614188565b82826113009190614188565b10611340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133790613dcf565b60405180910390fd5b600e60019054906101000a900460ff1661138f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113869061402f565b60405180910390fd5b6000821180156113ab5750600160146113a89190614188565b82105b6113ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e190613daf565b60405180910390fd5b6114048266b1a2bc2ec5000061231490919063ffffffff16565b341015611446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143d90613e2f565b60405180910390fd5b60005b8281101561148d57600061145b610af2565b9050611143611468610af2565b101561147957611478338261232a565b5b508080611485906143ce565b915050611449565b505050565b61149a611e48565b73ffffffffffffffffffffffffffffffffffffffff166114b8611181565b73ffffffffffffffffffffffffffffffffffffffff161461150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590613f2f565b60405180910390fd5b80601390805190602001906115249291906130c6565b5050565b611530611e48565b73ffffffffffffffffffffffffffffffffffffffff1661154e611181565b73ffffffffffffffffffffffffffffffffffffffff16146115a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159b90613f2f565b60405180910390fd5b4262015180600d546115b69190614188565b106115f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ed90613d0f565b60405180910390fd5b6000611600612348565b905060005b6005811015611693576111438282604051602001611624929190613c7f565b6040516020818303038152906040528051906020012060001c611647919061442b565b600f826005811061165b5761165a614518565b5b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550808061168b906143ce565b915050611605565b5042600d819055506001600e60006101000a81548160ff02191690831515021790555050565b6116c1611e48565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561172f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172690613e0f565b60405180910390fd5b806005600061173c611e48565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117e9611e48565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161182e9190613c64565b60405180910390a35050565b611842611e48565b73ffffffffffffffffffffffffffffffffffffffff16611860611181565b73ffffffffffffffffffffffffffffffffffffffff16146118b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ad90613f2f565b60405180910390fd5b60011515600e60009054906101000a900460ff1615151461190c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190390613fcf565b60405180910390fd5b6000611916612348565b9050600f60058260001c61192a919061442b565b6005811061193b5761193a614518565b5b601091828204019190066002029054906101000a900461ffff16601060006101000a81548161ffff021916908361ffff1602179055506000600e60006101000a81548160ff02191690831515021790555050565b6119a061199a611e48565b83611f09565b6119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d690613fef565b60405180910390fd5b6119eb8484848461244a565b50505050565b600f8160058110611a0157600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b6060611a2a82611ddc565b611a69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6090613f6f565b60405180910390fd5b6000611a736124a6565b90506000815111611a935760405180602001604052806000815250611abe565b80611a9d84612538565b604051602001611aae929190613b79565b6040516020818303038152906040525b915050919050565b60138054611ad39061436b565b80601f0160208091040260200160405190810160405280929190818152602001828054611aff9061436b565b8015611b4c5780601f10611b2157610100808354040283529160200191611b4c565b820191906000526020600020905b815481529060010190602001808311611b2f57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601060009054906101000a900461ffff1681565b611c04611e48565b73ffffffffffffffffffffffffffffffffffffffff16611c22611181565b73ffffffffffffffffffffffffffffffffffffffff1614611c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6f90613f2f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ce8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdf90613d6f565b60405180910390fd5b611cf181612243565b50565b61114381565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611dc557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611dd55750611dd482612699565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611ec383610ca8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f1482611ddc565b611f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4a90613e4f565b60405180910390fd5b6000611f5e83610ca8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fcd57508373ffffffffffffffffffffffffffffffffffffffff16611fb584610950565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fde5750611fdd8185611b54565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661200782610ca8565b73ffffffffffffffffffffffffffffffffffffffff161461205d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205490613f4f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c490613def565b60405180910390fd5b6120d8838383612703565b6120e3600082611e50565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121339190614269565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461218a9190614188565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600c819055505050565b60008183612322919061420f565b905092915050565b612344828260405180602001604052806000815250612817565b5050565b60006012547f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016123a69190613b9d565b60206040518083038186803b1580156123be57600080fd5b505afa1580156123d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f691906135f1565b1015612437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242e90613e6f565b60405180910390fd5b612445601154601254612872565b905090565b612455848484611fe7565b612461848484846129d4565b6124a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249790613d4f565b60405180910390fd5b50505050565b6060601380546124b59061436b565b80601f01602080910402602001604051908101604052809291908181526020018280546124e19061436b565b801561252e5780601f106125035761010080835404028352916020019161252e565b820191906000526020600020905b81548152906001019060200180831161251157829003601f168201915b5050505050905090565b60606000821415612580576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612694565b600082905060005b600082146125b257808061259b906143ce565b915050600a826125ab91906141de565b9150612588565b60008167ffffffffffffffff8111156125ce576125cd614547565b5b6040519080825280601f01601f1916602001820160405280156126005781602001600182028036833780820191505090505b5090505b6000851461268d576001826126199190614269565b9150600a85612628919061442b565b60306126349190614188565b60f81b81838151811061264a57612649614518565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561268691906141de565b9450612604565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61270e838383612b6b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127515761274c81612b70565b612790565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461278f5761278e8382612bb9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127d3576127ce81612d26565b612812565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612811576128108282612df7565b5b5b505050565b6128218383612e76565b61282e60008484846129d4565b61286d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286490613d4f565b60405180910390fd5b505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016128e6929190613c7f565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161291393929190613c04565b602060405180830381600087803b15801561292d57600080fd5b505af1158015612941573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061296591906134b4565b50600061298884600030600b600089815260200190815260200160002054613044565b90506001600b6000868152602001908152602001600020546129aa9190614188565b600b6000868152602001908152602001600020819055506129cb8482613080565b91505092915050565b60006129f58473ffffffffffffffffffffffffffffffffffffffff166130b3565b15612b5e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a1e611e48565b8786866040518563ffffffff1660e01b8152600401612a409493929190613bb8565b602060405180830381600087803b158015612a5a57600080fd5b505af1925050508015612a8b57506040513d601f19601f82011682018060405250810190612a88919061354e565b60015b612b0e573d8060008114612abb576040519150601f19603f3d011682016040523d82523d6000602084013e612ac0565b606091505b50600081511415612b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afd90613d4f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612b63565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612bc684610d5a565b612bd09190614269565b9050600060076000848152602001908152602001600020549050818114612cb5576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612d3a9190614269565b9050600060096000848152602001908152602001600020549050600060088381548110612d6a57612d69614518565b5b906000526020600020015490508060088381548110612d8c57612d8b614518565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612ddb57612dda6144e9565b5b6001900381819060005260206000200160009055905550505050565b6000612e0283610d5a565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612edd90613eef565b60405180910390fd5b612eef81611ddc565b15612f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2690613d8f565b60405180910390fd5b612f3b60008383612703565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f8b9190614188565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008484848460405160200161305d9493929190613ca8565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001613095929190613b4d565b60405160208183030381529060405280519060200120905092915050565b600080823b905060008111915050919050565b8280546130d29061436b565b90600052602060002090601f0160209004810192826130f4576000855561313b565b82601f1061310d57805160ff191683800117855561313b565b8280016001018555821561313b579182015b8281111561313a57825182559160200191906001019061311f565b5b509050613148919061314c565b5090565b5b8082111561316557600081600090555060010161314d565b5090565b600061317c613177846140aa565b614085565b9050828152602081018484840111156131985761319761457b565b5b6131a3848285614329565b509392505050565b60006131be6131b9846140db565b614085565b9050828152602081018484840111156131da576131d961457b565b5b6131e5848285614329565b509392505050565b6000813590506131fc81614bff565b92915050565b60008135905061321181614c16565b92915050565b60008151905061322681614c16565b92915050565b60008135905061323b81614c2d565b92915050565b60008135905061325081614c44565b92915050565b60008151905061326581614c44565b92915050565b600082601f8301126132805761327f614576565b5b8135613290848260208601613169565b91505092915050565b600082601f8301126132ae576132ad614576565b5b81356132be8482602086016131ab565b91505092915050565b6000813590506132d681614c5b565b92915050565b6000815190506132eb81614c5b565b92915050565b60006020828403121561330757613306614585565b5b6000613315848285016131ed565b91505092915050565b6000806040838503121561333557613334614585565b5b6000613343858286016131ed565b9250506020613354858286016131ed565b9150509250929050565b60008060006060848603121561337757613376614585565b5b6000613385868287016131ed565b9350506020613396868287016131ed565b92505060406133a7868287016132c7565b9150509250925092565b600080600080608085870312156133cb576133ca614585565b5b60006133d9878288016131ed565b94505060206133ea878288016131ed565b93505060406133fb878288016132c7565b925050606085013567ffffffffffffffff81111561341c5761341b614580565b5b6134288782880161326b565b91505092959194509250565b6000806040838503121561344b5761344a614585565b5b6000613459858286016131ed565b925050602061346a85828601613202565b9150509250929050565b6000806040838503121561348b5761348a614585565b5b6000613499858286016131ed565b92505060206134aa858286016132c7565b9150509250929050565b6000602082840312156134ca576134c9614585565b5b60006134d884828501613217565b91505092915050565b600080604083850312156134f8576134f7614585565b5b60006135068582860161322c565b9250506020613517858286016132c7565b9150509250929050565b60006020828403121561353757613536614585565b5b600061354584828501613241565b91505092915050565b60006020828403121561356457613563614585565b5b600061357284828501613256565b91505092915050565b60006020828403121561359157613590614585565b5b600082013567ffffffffffffffff8111156135af576135ae614580565b5b6135bb84828501613299565b91505092915050565b6000602082840312156135da576135d9614585565b5b60006135e8848285016132c7565b91505092915050565b60006020828403121561360757613606614585565b5b6000613615848285016132dc565b91505092915050565b600061362a8383613b18565b60208301905092915050565b61363f8161429d565b82525050565b60006136508261411c565b61365a818561414a565b93506136658361410c565b8060005b8381101561369657815161367d888261361e565b97506136888361413d565b925050600181019050613669565b5085935050505092915050565b6136ac816142af565b82525050565b6136bb816142bb565b82525050565b6136d26136cd826142bb565b614417565b82525050565b60006136e382614127565b6136ed818561415b565b93506136fd818560208601614338565b6137068161458a565b840191505092915050565b600061371c82614132565b613726818561416c565b9350613736818560208601614338565b61373f8161458a565b840191505092915050565b600061375582614132565b61375f818561417d565b935061376f818560208601614338565b80840191505092915050565b600061378860168361416c565b91506137938261459b565b602082019050919050565b60006137ab602b8361416c565b91506137b6826145c4565b604082019050919050565b60006137ce60328361416c565b91506137d982614613565b604082019050919050565b60006137f160268361416c565b91506137fc82614662565b604082019050919050565b6000613814601c8361416c565b915061381f826146b1565b602082019050919050565b600061383760398361416c565b9150613842826146da565b604082019050919050565b600061385a601a8361416c565b915061386582614729565b602082019050919050565b600061387d60248361416c565b915061388882614752565b604082019050919050565b60006138a060198361416c565b91506138ab826147a1565b602082019050919050565b60006138c3601f8361416c565b91506138ce826147ca565b602082019050919050565b60006138e6602c8361416c565b91506138f1826147f3565b604082019050919050565b6000613909600f8361416c565b915061391482614842565b602082019050919050565b600061392c60388361416c565b91506139378261486b565b604082019050919050565b600061394f602a8361416c565b915061395a826148ba565b604082019050919050565b600061397260298361416c565b915061397d82614909565b604082019050919050565b600061399560208361416c565b91506139a082614958565b602082019050919050565b60006139b8602c8361416c565b91506139c382614981565b604082019050919050565b60006139db60208361416c565b91506139e6826149d0565b602082019050919050565b60006139fe60298361416c565b9150613a09826149f9565b604082019050919050565b6000613a21602f8361416c565b9150613a2c82614a48565b604082019050919050565b6000613a44601f8361416c565b9150613a4f82614a97565b602082019050919050565b6000613a6760218361416c565b9150613a7282614ac0565b604082019050919050565b6000613a8a601d8361416c565b9150613a9582614b0f565b602082019050919050565b6000613aad60318361416c565b9150613ab882614b38565b604082019050919050565b6000613ad0602c8361416c565b9150613adb82614b87565b604082019050919050565b6000613af360148361416c565b9150613afe82614bd6565b602082019050919050565b613b12816142f1565b82525050565b613b218161431f565b82525050565b613b308161431f565b82525050565b613b47613b428261431f565b614421565b82525050565b6000613b5982856136c1565b602082019150613b698284613b36565b6020820191508190509392505050565b6000613b85828561374a565b9150613b91828461374a565b91508190509392505050565b6000602082019050613bb26000830184613636565b92915050565b6000608082019050613bcd6000830187613636565b613bda6020830186613636565b613be76040830185613b27565b8181036060830152613bf981846136d8565b905095945050505050565b6000606082019050613c196000830186613636565b613c266020830185613b27565b8181036040830152613c3881846136d8565b9050949350505050565b60006020820190508181036000830152613c5c8184613645565b905092915050565b6000602082019050613c7960008301846136a3565b92915050565b6000604082019050613c9460008301856136b2565b613ca16020830184613b27565b9392505050565b6000608082019050613cbd60008301876136b2565b613cca6020830186613b27565b613cd76040830185613636565b613ce46060830184613b27565b95945050505050565b60006020820190508181036000830152613d078184613711565b905092915050565b60006020820190508181036000830152613d288161377b565b9050919050565b60006020820190508181036000830152613d488161379e565b9050919050565b60006020820190508181036000830152613d68816137c1565b9050919050565b60006020820190508181036000830152613d88816137e4565b9050919050565b60006020820190508181036000830152613da881613807565b9050919050565b60006020820190508181036000830152613dc88161382a565b9050919050565b60006020820190508181036000830152613de88161384d565b9050919050565b60006020820190508181036000830152613e0881613870565b9050919050565b60006020820190508181036000830152613e2881613893565b9050919050565b60006020820190508181036000830152613e48816138b6565b9050919050565b60006020820190508181036000830152613e68816138d9565b9050919050565b60006020820190508181036000830152613e88816138fc565b9050919050565b60006020820190508181036000830152613ea88161391f565b9050919050565b60006020820190508181036000830152613ec881613942565b9050919050565b60006020820190508181036000830152613ee881613965565b9050919050565b60006020820190508181036000830152613f0881613988565b9050919050565b60006020820190508181036000830152613f28816139ab565b9050919050565b60006020820190508181036000830152613f48816139ce565b9050919050565b60006020820190508181036000830152613f68816139f1565b9050919050565b60006020820190508181036000830152613f8881613a14565b9050919050565b60006020820190508181036000830152613fa881613a37565b9050919050565b60006020820190508181036000830152613fc881613a5a565b9050919050565b60006020820190508181036000830152613fe881613a7d565b9050919050565b6000602082019050818103600083015261400881613aa0565b9050919050565b6000602082019050818103600083015261402881613ac3565b9050919050565b6000602082019050818103600083015261404881613ae6565b9050919050565b60006020820190506140646000830184613b09565b92915050565b600060208201905061407f6000830184613b27565b92915050565b600061408f6140a0565b905061409b828261439d565b919050565b6000604051905090565b600067ffffffffffffffff8211156140c5576140c4614547565b5b6140ce8261458a565b9050602081019050919050565b600067ffffffffffffffff8211156140f6576140f5614547565b5b6140ff8261458a565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006141938261431f565b915061419e8361431f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156141d3576141d261445c565b5b828201905092915050565b60006141e98261431f565b91506141f48361431f565b9250826142045761420361448b565b5b828204905092915050565b600061421a8261431f565b91506142258361431f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561425e5761425d61445c565b5b828202905092915050565b60006142748261431f565b915061427f8361431f565b9250828210156142925761429161445c565b5b828203905092915050565b60006142a8826142ff565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561435657808201518184015260208101905061433b565b83811115614365576000848401525b50505050565b6000600282049050600182168061438357607f821691505b60208210811415614397576143966144ba565b5b50919050565b6143a68261458a565b810181811067ffffffffffffffff821117156143c5576143c4614547565b5b80604052505050565b60006143d98261431f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561440c5761440b61445c565b5b600182019050919050565b6000819050919050565b6000819050919050565b60006144368261431f565b91506144418361431f565b9250826144515761445061448b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f596f75206e65656420746f2077616974206d6f72652e00000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f596f752063616e6e6f74206275792074686174206d75636820636869636b656e60008201527f7320696e20612073696e676c65207472616e73616374696f6e00000000000000602082015250565b7f4e6f7420656e6f75676820636869636b656e73206c6566742021000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f596f752063616e2774206472617720612077696e6e6572207965742021000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f53616c65206973206e6f74206163746976652021000000000000000000000000600082015250565b614c088161429d565b8114614c1357600080fd5b50565b614c1f816142af565b8114614c2a57600080fd5b50565b614c36816142bb565b8114614c4157600080fd5b50565b614c4d816142c5565b8114614c5857600080fd5b50565b614c648161431f565b8114614c6f57600080fd5b5056fea2646970667358221220c9b8bc597a66f893ee855cb1ab1cb32c657296cd88f7bc7c4862930f81a4e87f64736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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