ETH Price: $3,691.20 (+2.94%)

Token

ERC-20: Nifkey (NFK)
 

Overview

Max Total Supply

0 NFK

Holders

1,143

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
cometome.eth
Balance
1 NFK
0x03a2a1FFa1F132118C2888CCfd9e39Bfa2453E08
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Nifkey

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Nifkey.sol
////////////////////////////////////////////////
////////////////////////////////////////////////
// ███╗░░██╗██╗███████╗██╗░░██╗███████╗██╗░░░██╗
// ████╗░██║██║██╔════╝██║░██╔╝██╔════╝╚██╗░██╔╝
// ██╔██╗██║██║█████╗░░█████═╝░█████╗░░░╚████╔╝░
// ██║╚████║██║██╔══╝░░██╔═██╗░██╔══╝░░░░╚██╔╝░░
// ██║░╚███║██║██║░░░░░██║░╚██╗███████╗░░░██║░░░
// ╚═╝░░╚══╝╚═╝╚═╝░░░░░╚═╝░░╚═╝╚══════╝░░░╚═╝░░░
// https://nifkey.xyz
////////////////////////////////////////////////
////////////////////////////////////////////////

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./Voucher.sol";

contract NifkeyEIP712 {
    function verify(NFKVoucher calldata voucher)
        external
        view
        returns (address)
    {}
}

contract Nifkey is ERC721, Ownable {
    using Counters for Counters.Counter;
    NifkeyEIP712 private eip712;

    uint256 public constant MAX_MINT_PRICE = 0.02 ether;
    string public baseURI = "https://nifkey.xyz/api/token/";
    uint256 public maxAssociatedWallets = 10;

    // _isMinter maps an address to whether the address has the right to mint vouchers redeemable for Nifkeys
    mapping(address => bool) private _isMinter;

    // _isAssociatedWallet maps a tokenId to a mapping that maps and address to a struct containing the index at which
    // the address appears in the _associatedWalletsForTokenId[tokenId] list (if the tokenId and address are associated at all)
    // needs to be updated when:
    // 1. a new nifkey is minted for the first time
    // 2. an associated wallet is added to a nifkey
    // 3. an associated wallet is removed from a nifkey
    // 4. a nifkey is burned
    mapping(uint256 => mapping(address => IndexOfAssociatedWallet))
        private _isAssociatedWallet;

    // _associatedWalletsForTokenId maps a tokenId to a list of addresses that are "associated wallets" for the nifkey
    // needs to be updated when:
    // 1. a new nifkey is minted for the first time
    // 2. an associated wallet is added to a nifkey
    // 3. an associated wallet is removed from a nifkey
    // 4. a nifkey is burned
    mapping(uint256 => address[]) private _associatedWalletsForTokenId;

    // tokenIdForWallet maps an address to the tokenId of the nifkey it's associated with (if any)
    // needs to be updated when
    // 1. a new nifkey is minted for the first time
    // 2. an associated wallet is added to a nifkey
    // 3. an associated wallet is removed from a nifkey
    // 4. a nifkey is burned
    mapping(address => uint256) public tokenIdForWallet;

    // twitterDataForTokenId maps a tokenId to a struct containing twitter data for the nifkey
    // needs to be updated when
    // 1. a twitter user mints a nifkey for the first time
    // 2. a twitter user re-mints their nifkey
    // 3. a nifkey is burned
    mapping(uint256 => TwitterDataParams) public twitterDataForTokenId;

    // tokenIdForTwitterUsername stores the mapping from a twitterUsername to a tokenId
    // needs to be updated when
    // 1. a twitter user mints a nifkey for the first time
    // 2. a twitter user mints a nifkey with a twitter username that previously belonged to a different nifkey
    // 3. a twitter user re-mints a nifkey after changing their twitterusername
    // 4. a nifkey is burned
    mapping(string => uint256) public tokenIdForTwitterUsername;

    // a nonce for each tokenId that is checked when a nifkey voucher is redeemed for a nifkey
    mapping(uint256 => Counters.Counter) public nonceForTokenId;

    constructor(address minter, address EIP712address) ERC721("Nifkey", "NFK") {
        _isMinter[minter] = true;
        eip712 = NifkeyEIP712(EIP712address);
    }

    event Minted(address indexed _wallet, uint256 indexed _tokenId);
    event WalletAdded(address indexed _wallet, uint256 indexed _tokenId);
    event WalletRemoved(address indexed _wallet, uint256 indexed _tokenId);
    event Burned(address indexed _wallet, uint256 indexed _tokenId);
    event BurnedAndTransferred(
        address indexed _oldOwner,
        address indexed _newOwner,
        uint256 indexed _tokenId
    );
    event OwnerTransferred(
        address indexed _oldOwner,
        address indexed _newOwner,
        uint256 indexed _tokenId
    );
    event TwitterDataUpdated(
        uint256 indexed _tokenId,
        uint256 _numFollowers,
        bool _isVerified
    );
    event UsernameUpdated(
        uint256 indexed _oldTokenId,
        uint256 indexed _newTokenId,
        string _twitterUsername
    );

    struct TwitterDataParams {
        uint64 numFollowers;
        uint64 createdAt;
        uint64 twitterId;
        bool isVerified;
        bool isValue;
        string twitterUsername;
    }

    struct IndexOfAssociatedWallet {
        uint32 index;
        bool isAssociated;
    }

    function _baseURI() internal view override(ERC721) returns (string memory) {
        return baseURI;
    }

    function associatedWalletsForTokenId(uint256 tokenId)
        external
        view
        returns (address[] memory)
    {
        return _associatedWalletsForTokenId[tokenId];
    }

    function updateBaseURI(string calldata uri) external onlyOwner {
        baseURI = uri;
    }

    function updateEIP712Contract(address EIP712Address) external onlyOwner {
        eip712 = NifkeyEIP712(EIP712Address);
    }

    function updateMaxAssociatedWallets(uint256 _maxAssociatedWallets)
        external
        onlyOwner
    {
        maxAssociatedWallets = _maxAssociatedWallets;
    }

    function addMinter(address minter) external onlyOwner {
        _isMinter[minter] = true;
    }

    function removeMinter(address minter) external onlyOwner {
        delete _isMinter[minter];
    }

    function withdraw() external onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success);
    }

    function burn(uint256 tokenId) external {
        require(
            _exists(tokenId) && tokenIdForWallet[msg.sender] == tokenId,
            "NFK: Not an associated wallet"
        );
        _delete(tokenId);
        _burn(tokenId);
        emit Burned(msg.sender, tokenId);
    }

    /// @notice Redeems an NFKVoucher for an actual NFK, creating it in the process.
    /// @param voucher A signed NFKVoucher that describes the NFK to be redeemed.
    function redeem(NFKVoucher calldata voucher) external payable {
        _verify(voucher);
        uint256 tokenId = uint256(voucher.twitterId);
        if (_intermediateSteps(tokenId, voucher)) return;

        require(
            msg.value >= voucher.mintPrice &&
                MAX_MINT_PRICE >= voucher.mintPrice,
            "NFK: Must pay mint price"
        );
        // if tokenId already exists
        if (_exists(tokenId)) {
            address owner = address(ownerOf(tokenId));
            _delete(tokenId);
            _transfer(owner, msg.sender, tokenId);
            emit BurnedAndTransferred(owner, msg.sender, tokenId);
        } else {
            _mint(msg.sender, tokenId);
            emit Minted(msg.sender, tokenId);
        }
        _addWallet(tokenId, voucher);
        nonceForTokenId[tokenId].increment();
    }

    function _delete(uint256 tokenId) internal {
        // delete all existing associated wallets from tokenIdForWallet and _isAssociatedWallet
        for (
            uint256 i = 0;
            i < _associatedWalletsForTokenId[tokenId].length;
            i++
        ) {
            delete tokenIdForWallet[_associatedWalletsForTokenId[tokenId][i]];
            delete _isAssociatedWallet[tokenId][
                _associatedWalletsForTokenId[tokenId][i]
            ];
        }
        // delete _associatedWalletsForTokenId
        delete _associatedWalletsForTokenId[tokenId];

        // delete mapping from twitterUsername to tokenId
        delete tokenIdForTwitterUsername[
            twitterDataForTokenId[tokenId].twitterUsername
        ];

        // delete twitter data associated with tokenId
        delete twitterDataForTokenId[tokenId];
    }

    function addWallet(NFKVoucher calldata voucher) external {
        _verify(voucher);
        uint256 tokenId = uint256(voucher.twitterId);
        require(_exists(tokenId), "NFK: Nifkey does not exist");
        if (_intermediateSteps(tokenId, voucher)) return;
        require(
            _associatedWalletsForTokenId[tokenId].length < maxAssociatedWallets,
            "NFK: Max associated wallets"
        );

        // delete mapping from twitterUsername to tokenId. it will be re-added or updated in _addWallet() below
        delete tokenIdForTwitterUsername[
            twitterDataForTokenId[tokenId].twitterUsername
        ];

        _addWallet(tokenId, voucher);
        nonceForTokenId[tokenId].increment();
        emit WalletAdded(msg.sender, tokenId);
    }

    function _intermediateSteps(uint256 tokenId, NFKVoucher calldata voucher)
        internal
        returns (bool)
    {
        require(
            voucher.nonce > nonceForTokenId[tokenId].current(),
            "NFK: Recycled voucher"
        );
        // If redeemer address is already an associated wallet of tokenId, then just refresh twitter data
        if (tokenIdForWallet[msg.sender] == tokenId) {
            _refresh(tokenId, voucher);
            return true;
        }
        require(tokenIdForWallet[msg.sender] == 0, "NFK: Already owner");
        return false;
    }

    function _addWallet(uint256 tokenId, NFKVoucher calldata voucher) internal {
        tokenIdForWallet[msg.sender] = tokenId;
        uint32 indexOf = uint32(_associatedWalletsForTokenId[tokenId].length);
        _associatedWalletsForTokenId[tokenId].push(msg.sender);
        _isAssociatedWallet[tokenId][msg.sender] = IndexOfAssociatedWallet(
            indexOf,
            true
        );

        _updateTwitterUsername(tokenId, voucher.twitterUsername);

        // For the current tokenId, update (or create) the twitterDataForTokenId struct
        twitterDataForTokenId[tokenId] = TwitterDataParams(
            uint64(voucher.numFollowers),
            uint64(voucher.createdAt),
            uint64(voucher.twitterId),
            voucher.isVerified,
            true,
            voucher.twitterUsername
        );

        emit TwitterDataUpdated(
            tokenId,
            voucher.numFollowers,
            voucher.isVerified
        );
    }

    function _refresh(uint256 tokenId, NFKVoucher calldata voucher) internal {
        twitterDataForTokenId[tokenId].numFollowers = uint64(
            voucher.numFollowers
        );
        twitterDataForTokenId[tokenId].isVerified = voucher.isVerified;
        if (
            keccak256(
                abi.encodePacked(
                    (twitterDataForTokenId[tokenId].twitterUsername)
                )
            ) != keccak256(abi.encodePacked((voucher.twitterUsername)))
        ) {
            // Username has been updated, so delete the mapping from the current username to tokenId
            delete tokenIdForTwitterUsername[
                twitterDataForTokenId[tokenId].twitterUsername
            ];

            _updateTwitterUsername(tokenId, voucher.twitterUsername);

            // For the current tokenId, update the twitterUsername field in the twitterDataForTokenId struct
            twitterDataForTokenId[tokenId].twitterUsername = voucher
                .twitterUsername;
        }

        nonceForTokenId[tokenId].increment();
        emit TwitterDataUpdated(
            tokenId,
            voucher.numFollowers,
            voucher.isVerified
        );
    }

    function _updateTwitterUsername(
        uint256 tokenId,
        string calldata newTwitterUsername
    ) internal {
        // It's possible that the new username was mapped to another tokenId
        // For that tokenId, delete the twitterUsername field in the twitterDataForTokenId struct
        delete twitterDataForTokenId[
            tokenIdForTwitterUsername[newTwitterUsername]
        ].twitterUsername;

        emit UsernameUpdated(
            tokenIdForTwitterUsername[newTwitterUsername],
            tokenId,
            newTwitterUsername
        );

        // Map the new username to the current tokenId
        tokenIdForTwitterUsername[newTwitterUsername] = tokenId;
    }

    function removeWallet(address toRemove) external {
        // Get tokenId of msg sender
        uint256 tokenId = tokenIdForWallet[msg.sender];

        // If msg sender doesn't own a Nifkey, they have no business calling removeWallet
        require(_exists(tokenId), "NFK: Doesn't own Nifkey");

        // Make sure that address being deleted is not the Nifkey owner
        require(toRemove != ownerOf(tokenId), "NFK: Cant remove owner");

        // Make sure the address being removed is an associated wallet for tokenId
        require(
            tokenIdForWallet[toRemove] == tokenId,
            "NFK: Not an associated wallet"
        );

        // Get last address in associatedWallets array
        address last = _associatedWalletsForTokenId[tokenId][
            _associatedWalletsForTokenId[tokenId].length - 1
        ];

        if (last != toRemove) {
            // Grab index of toRemove
            uint32 indexToRemove = _isAssociatedWallet[tokenId][toRemove].index;
            // Move last to index of toRemove
            _associatedWalletsForTokenId[tokenId][indexToRemove] = last;
            // Update index of last
            _isAssociatedWallet[tokenId][last].index = indexToRemove;
        }
        // Remove the last element from the array
        _associatedWalletsForTokenId[tokenId].pop();
        // Delete toRemove from _isAssociatedWallet[tokenId]
        delete _isAssociatedWallet[tokenId][toRemove];
        //  Delete toRemove from tokenIdForWallet
        delete tokenIdForWallet[toRemove];
        emit WalletRemoved(toRemove, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            tokenIdForWallet[to] == tokenId &&
                tokenIdForWallet[msg.sender] == tokenId,
            "NFK: not an associated wallet"
        );
        _safeTransfer(from, to, tokenId, _data);
        emit OwnerTransferred(from, to, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId);
    }

    function approve(address to, uint256 tokenId) public virtual override {}

    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {}

    /// @notice Verifies the signature for a given NFKVoucher, returning the address of the signer.
    /// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFKs.
    /// @param voucher An NFTVoucher describing an unminted NFK.
    function _verify(NFKVoucher calldata voucher) internal view {
        // make sure that the signer is authorized to mint NFTs
        require(_isMinter[eip712.verify(voucher)] == true, "NFK: Sig invalid");

        // make sure that the redeemer is calling from the right address
        require(
            voucher.redeemerAddress == msg.sender,
            "NFK: Invalid redeemer address"
        );
    }
}

File 2 of 14 : 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 3 of 14 : 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 4 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 14 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

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

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

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 6 of 14 : Voucher.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
/// @notice Represents an un-minted NFT, which has not yet been recorded into the blockchain. A signed voucher can be redeemed for a real NFK using the redeem function.
struct NFKVoucher {
    /// @notice String of the Twitter handle. Must be unique - if another token with this handle already exists, the redeem function will revert.
    string twitterUsername;
    // @notice The public key of the redeemer
    address redeemerAddress;
    /// @notice The number of followers
    uint256 numFollowers;
    /// @notice twitter id as string
    uint256 twitterId;
    /// @notice If the user is verified
    bool isVerified;
    /// @notice Date the account was created (unix timestamp)
    uint256 createdAt;
    /// @notice the EIP-712 signature of all other fields in the NFKVoucher struct. For a voucher to be valid, it must be signed by an account with the MINTER_ROLE.
    bytes signature;
    /// @notice Nonce to ensure that old vouchers cannot be reused
    uint256 nonce;
    /// @notice Price the minter must pay to mint a nifkey
    uint256 mintPrice;
}

File 7 of 14 : 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 8 of 14 : 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 14 : 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 14 : 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 14 : 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 14 : 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 13 of 14 : 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 14 of 14 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"address","name":"EIP712address","type":"address"}],"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":"_wallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"_newOwner","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"BurnedAndTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_wallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"_newOwner","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"OwnerTransferred","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_numFollowers","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_isVerified","type":"bool"}],"name":"TwitterDataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_oldTokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_newTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_twitterUsername","type":"string"}],"name":"UsernameUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_wallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"WalletAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_wallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"WalletRemoved","type":"event"},{"inputs":[],"name":"MAX_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"twitterUsername","type":"string"},{"internalType":"address","name":"redeemerAddress","type":"address"},{"internalType":"uint256","name":"numFollowers","type":"uint256"},{"internalType":"uint256","name":"twitterId","type":"uint256"},{"internalType":"bool","name":"isVerified","type":"bool"},{"internalType":"uint256","name":"createdAt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct NFKVoucher","name":"voucher","type":"tuple"}],"name":"addWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"associatedWalletsForTokenId","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":[{"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":"maxAssociatedWallets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonceForTokenId","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"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":[{"components":[{"internalType":"string","name":"twitterUsername","type":"string"},{"internalType":"address","name":"redeemerAddress","type":"address"},{"internalType":"uint256","name":"numFollowers","type":"uint256"},{"internalType":"uint256","name":"twitterId","type":"uint256"},{"internalType":"bool","name":"isVerified","type":"bool"},{"internalType":"uint256","name":"createdAt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"internalType":"struct NFKVoucher","name":"voucher","type":"tuple"}],"name":"redeem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toRemove","type":"address"}],"name":"removeWallet","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"tokenIdForTwitterUsername","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenIdForWallet","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":"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"twitterDataForTokenId","outputs":[{"internalType":"uint64","name":"numFollowers","type":"uint64"},{"internalType":"uint64","name":"createdAt","type":"uint64"},{"internalType":"uint64","name":"twitterId","type":"uint64"},{"internalType":"bool","name":"isVerified","type":"bool"},{"internalType":"bool","name":"isValue","type":"bool"},{"internalType":"string","name":"twitterUsername","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"EIP712Address","type":"address"}],"name":"updateEIP712Contract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAssociatedWallets","type":"uint256"}],"name":"updateMaxAssociatedWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060400160405280601d81526020017f68747470733a2f2f6e69666b65792e78797a2f6170692f746f6b656e2f0000008152506008908051906020019062000051929190620002b9565b50600a6009553480156200006457600080fd5b5060405162005b0c38038062005b0c83398181016040528101906200008a919062000380565b6040518060400160405280600681526020017f4e69666b657900000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4e464b000000000000000000000000000000000000000000000000000000000081525081600090805190602001906200010e929190620002b9565b50806001908051906020019062000127929190620002b9565b5050506200014a6200013e620001eb60201b60201c565b620001f360201b60201c565b6001600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000474565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002c790620003f5565b90600052602060002090601f016020900481019282620002eb576000855562000337565b82601f106200030657805160ff191683800117855562000337565b8280016001018555821562000337579182015b828111156200033657825182559160200191906001019062000319565b5b5090506200034691906200034a565b5090565b5b80821115620003655760008160009055506001016200034b565b5090565b6000815190506200037a816200045a565b92915050565b600080604083850312156200039457600080fd5b6000620003a48582860162000369565b9250506020620003b78582860162000369565b9150509250929050565b6000620003ce82620003d5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200040e57607f821691505b602082108114156200042557620004246200042b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200046581620003c1565b81146200047157600080fd5b50565b61568880620004846000396000f3fe6080604052600436106101f95760003560e01c80638273aff91161010d578063a75fe8e1116100a0578063c7e3d5a51161006f578063c7e3d5a514610723578063c87b56dd14610760578063e985e9c51461079d578063ecd811f8146107da578063f2fde38b14610803576101f9565b8063a75fe8e114610657578063b433116214610680578063b7dd1f32146106bd578063b88d4fde146106fa576101f9565b8063931688cb116100dc578063931688cb146105b157806395d89b41146105da578063983b2d5614610605578063a22cb4651461062e576101f9565b80638273aff9146104f55780638b26fa12146105325780638da5cb5b1461055b5780638efc919614610586576101f9565b80633ccfd60b116101905780636352211e1161015f5780636352211e146103f75780636c0360eb1461043457806370a082311461045f578063715018a61461049c5780637fdce6ad146104b3576101f9565b80633ccfd60b1461037257806342842e0e1461038957806342966c68146103b257806362d38a83146103db576101f9565b80631ef16518116101cc5780631ef16518146102cc57806323b872dd146102f75780633092afd5146103205780633346a38814610349576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190613e72565b61082c565b6040516102329190614790565b60405180910390f35b34801561024757600080fd5b5061025061090e565b60405161025d91906147cf565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190613f8b565b6109a0565b60405161029a9190614707565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190613e0d565b610a25565b005b3480156102d857600080fd5b506102e1610a29565b6040516102ee9190614ad3565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190613d07565b610a2f565b005b34801561032c57600080fd5b5061034760048036038101906103429190613c79565b610a3f565b005b34801561035557600080fd5b50610370600480360381019061036b9190613f4a565b610b0d565b005b34801561037e57600080fd5b50610387610c7b565b005b34801561039557600080fd5b506103b060048036038101906103ab9190613d07565b610d77565b005b3480156103be57600080fd5b506103d960048036038101906103d49190613f8b565b610d97565b005b6103f560048036038101906103f09190613f4a565b610e82565b005b34801561040357600080fd5b5061041e60048036038101906104199190613f8b565b611012565b60405161042b9190614707565b60405180910390f35b34801561044057600080fd5b506104496110c4565b60405161045691906147cf565b60405180910390f35b34801561046b57600080fd5b5061048660048036038101906104819190613c79565b611152565b6040516104939190614ad3565b60405180910390f35b3480156104a857600080fd5b506104b161120a565b005b3480156104bf57600080fd5b506104da60048036038101906104d59190613f8b565b611292565b6040516104ec96959493929190614b17565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613f8b565b6113ac565b6040516105299190614ad3565b60405180910390f35b34801561053e57600080fd5b5061055960048036038101906105549190613f8b565b6113ca565b005b34801561056757600080fd5b50610570611450565b60405161057d9190614707565b60405180910390f35b34801561059257600080fd5b5061059b61147a565b6040516105a89190614ad3565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d39190613ec4565b611485565b005b3480156105e657600080fd5b506105ef611517565b6040516105fc91906147cf565b60405180910390f35b34801561061157600080fd5b5061062c60048036038101906106279190613c79565b6115a9565b005b34801561063a57600080fd5b5061065560048036038101906106509190613dd1565b611680565b005b34801561066357600080fd5b5061067e60048036038101906106799190613c79565b611684565b005b34801561068c57600080fd5b506106a760048036038101906106a29190613f8b565b611bd5565b6040516106b4919061476e565b60405180910390f35b3480156106c957600080fd5b506106e460048036038101906106df9190613c79565b611c76565b6040516106f19190614ad3565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c9190613d56565b611c8e565b005b34801561072f57600080fd5b5061074a60048036038101906107459190613f09565b611dc6565b6040516107579190614ad3565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613f8b565b611df4565b60405161079491906147cf565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf9190613ccb565b611e9b565b6040516107d19190614790565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190613c79565b611f2f565b005b34801561080f57600080fd5b5061082a60048036038101906108259190613c79565b611fef565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108f757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109075750610906826120e7565b5b9050919050565b60606000805461091d90614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461094990614f93565b80156109965780601f1061096b57610100808354040283529160200191610996565b820191906000526020600020905b81548152906001019060200180831161097957829003601f168201915b5050505050905090565b60006109ab82612151565b6109ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e1906149b1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5050565b60095481565b610a3a838383610d77565b505050565b610a476121bd565b73ffffffffffffffffffffffffffffffffffffffff16610a65611450565b73ffffffffffffffffffffffffffffffffffffffff1614610abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab2906149d1565b60405180910390fd5b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff021916905550565b610b16816121c5565b600081606001359050610b2881612151565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e906147f1565b60405180910390fd5b610b718183612385565b15610b7c5750610c78565b600954600c60008381526020019081526020016000208054905010610bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcd90614831565b60405180910390fd5b600f600e6000838152602001908152602001600020600101604051610bfb91906146db565b908152602001604051809103902060009055610c1781836124ce565b610c3260106000838152602001908152602001600020612887565b803373ffffffffffffffffffffffffffffffffffffffff167ff1862e5f9ae1de1cfc1ef597ab995af1474a4e3e5deb3c5a3c228f06ac029c5260405160405180910390a3505b50565b610c836121bd565b73ffffffffffffffffffffffffffffffffffffffff16610ca1611450565b73ffffffffffffffffffffffffffffffffffffffff1614610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee906149d1565b60405180910390fd5b6000610d01611450565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d24906146f2565b60006040518083038185875af1925050503d8060008114610d61576040519150601f19603f3d011682016040523d82523d6000602084013e610d66565b606091505b5050905080610d7457600080fd5b50565b610d9283838360405180602001604052806000815250611c8e565b505050565b610da081612151565b8015610dea575080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b610e29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2090614911565b60405180910390fd5b610e328161289d565b610e3b81612b75565b803373ffffffffffffffffffffffffffffffffffffffff167f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df760405160405180910390a350565b610e8b816121c5565b600081606001359050610e9e8183612385565b15610ea9575061100f565b8161010001353410158015610eca575081610100013566470de4df82000010155b610f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0090614931565b60405180910390fd5b610f1281612151565b15610f99576000610f2282611012565b9050610f2d8261289d565b610f38813384612c86565b813373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f209433784b976a194c1fefb20a179a7f6345b4d7800c4290c5723927bc63ace560405160405180910390a450610fe8565b610fa33382612ee2565b803373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe60405160405180910390a35b610ff281836124ce565b61100d60106000838152602001908152602001600020612887565b505b50565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b290614971565b60405180910390fd5b80915050919050565b600880546110d190614f93565b80601f01602080910402602001604051908101604052809291908181526020018280546110fd90614f93565b801561114a5780601f1061111f5761010080835404028352916020019161114a565b820191906000526020600020905b81548152906001019060200180831161112d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba90614951565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112126121bd565b73ffffffffffffffffffffffffffffffffffffffff16611230611450565b73ffffffffffffffffffffffffffffffffffffffff1614611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d906149d1565b60405180910390fd5b61129060006130b0565b565b600e6020528060005260406000206000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a900467ffffffffffffffff16908060000160189054906101000a900460ff16908060000160199054906101000a900460ff169080600101805461132990614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461135590614f93565b80156113a25780601f10611377576101008083540402835291602001916113a2565b820191906000526020600020905b81548152906001019060200180831161138557829003601f168201915b5050505050905086565b60106020528060005260406000206000915090508060000154905081565b6113d26121bd565b73ffffffffffffffffffffffffffffffffffffffff166113f0611450565b73ffffffffffffffffffffffffffffffffffffffff1614611446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143d906149d1565b60405180910390fd5b8060098190555050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b66470de4df82000081565b61148d6121bd565b73ffffffffffffffffffffffffffffffffffffffff166114ab611450565b73ffffffffffffffffffffffffffffffffffffffff1614611501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f8906149d1565b60405180910390fd5b81816008919061151292919061393b565b505050565b60606001805461152690614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461155290614f93565b801561159f5780601f106115745761010080835404028352916020019161159f565b820191906000526020600020905b81548152906001019060200180831161158257829003601f168201915b5050505050905090565b6115b16121bd565b73ffffffffffffffffffffffffffffffffffffffff166115cf611450565b73ffffffffffffffffffffffffffffffffffffffff1614611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c906149d1565b60405180910390fd5b6001600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b5050565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506116d181612151565b611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790614a31565b60405180910390fd5b61171981611012565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177e90614851565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ff90614911565b60405180910390fd5b6000600c60008381526020019081526020016000206001600c6000858152602001908152602001600020805490506118409190614e95565b81548110611877577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a4d576000600b600084815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff16905081600c60008581526020019081526020016000208263ffffffff1681548110611991577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548163ffffffff021916908363ffffffff160217905550505b600c6000838152602001908152602001600020805480611a96577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055600b600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549063ffffffff02191690556000820160046101000a81549060ff02191690555050600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055818373ffffffffffffffffffffffffffffffffffffffff167f0a3b33100313c5c7733c8ba4a2354324dc8913f41e9ec580424c94525e032bd560405160405180910390a3505050565b6060600c6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c6a57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611c20575b50505050509050919050565b600d6020528060005260406000206000915090505481565b81600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054148015611d1a575081600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b611d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5090614a51565b60405180910390fd5b611d6584848484613176565b818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f3d31a89e4a3654a3fba36b07bef4af433bbf9e873f5b38e852c56f80d58e7d8c60405160405180910390a450505050565b600f818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6060611dff82612151565b611e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3590614a11565b60405180910390fd5b6000611e486131d2565b90506000815111611e685760405180602001604052806000815250611e93565b80611e7284613264565b604051602001611e839291906146b7565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f376121bd565b73ffffffffffffffffffffffffffffffffffffffff16611f55611450565b73ffffffffffffffffffffffffffffffffffffffff1614611fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa2906149d1565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611ff76121bd565b73ffffffffffffffffffffffffffffffffffffffff16612015611450565b73ffffffffffffffffffffffffffffffffffffffff161461206b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612062906149d1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290614891565b60405180910390fd5b6120e4816130b0565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b60011515600a6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a97ff8af856040518263ffffffff1660e01b81526004016122289190614ab1565b60206040518083038186803b15801561224057600080fd5b505afa158015612254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122789190613ca2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f990614a71565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1681602001602081019061232c9190613c79565b73ffffffffffffffffffffffffffffffffffffffff1614612382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237990614811565b60405180910390fd5b50565b60006123a260106000858152602001908152602001600020613411565b8260e00135116123e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123de906148d1565b60405180910390fd5b82600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561244157612438838361341f565b600190506124c8565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146124c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ba90614a91565b60405180910390fd5b600090505b92915050565b81600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600c6000848152602001908152602001600020805490509050600c6000848152602001908152602001600020339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060405180604001604052808263ffffffff16815260200160011515815250600b600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548160ff0219169083151502179055509050506126728383806000019061266d9190614b7f565b61360c565b6040518060c00160405280836040013567ffffffffffffffff1681526020018360a0013567ffffffffffffffff168152602001836060013567ffffffffffffffff1681526020018360800160208101906126cc9190613e49565b151581526020016001151581526020018380600001906126ec9190614b7f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250600e600085815260200190815260200160002060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160000160186101000a81548160ff02191690831515021790555060808201518160000160196101000a81548160ff02191690831515021790555060a082015181600101908051906020019061282e9291906139c1565b50905050827f50ecbf55ffe2bb3898117151fc1d603de74c7aea21cfc803047655d3352d4eaf836040013584608001602081019061286c9190613e49565b60405161287a929190614aee565b60405180910390a2505050565b6001816000016000828254019250508190555050565b60005b600c600083815260200190815260200160002080549050811015612a7c57600d6000600c6000858152602001908152602001600020838154811061290d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600b60008381526020019081526020016000206000600c600085815260200190815260200160002083815481106129d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549063ffffffff02191690556000820160046101000a81549060ff021916905550508080612a7490614ff6565b9150506128a0565b50600c60008281526020019081526020016000206000612a9c9190613a47565b600f600e6000838152602001908152602001600020600101604051612ac191906146db565b908152602001604051809103902060009055600e6000828152602001908152602001600020600080820160006101000a81549067ffffffffffffffff02191690556000820160086101000a81549067ffffffffffffffff02191690556000820160106101000a81549067ffffffffffffffff02191690556000820160186101000a81549060ff02191690556000820160196101000a81549060ff0219169055600182016000612b709190613a68565b505050565b6000612b8082611012565b9050612b8e816000846136d3565b612b996000836136d8565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612be99190614e95565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8273ffffffffffffffffffffffffffffffffffffffff16612ca682611012565b73ffffffffffffffffffffffffffffffffffffffff1614612cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cf3906149f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d63906148f1565b60405180910390fd5b612d778383836136d3565b612d826000826136d8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dd29190614e95565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e299190614e0e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4990614991565b60405180910390fd5b612f5b81612151565b15612f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f92906148b1565b60405180910390fd5b612fa7600083836136d3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ff79190614e0e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613181848484612c86565b61318d84848484613791565b6131cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c390614871565b60405180910390fd5b50505050565b6060600880546131e190614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461320d90614f93565b801561325a5780601f1061322f5761010080835404028352916020019161325a565b820191906000526020600020905b81548152906001019060200180831161323d57829003601f168201915b5050505050905090565b606060008214156132ac576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061340c565b600082905060005b600082146132de5780806132c790614ff6565b915050600a826132d79190614e64565b91506132b4565b60008167ffffffffffffffff811115613320577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133525781602001600182028036833780820191505090505b5090505b600085146134055760018261336b9190614e95565b9150600a8561337a919061503f565b60306133869190614e0e565b60f81b8183815181106133c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856133fe9190614e64565b9450613356565b8093505050505b919050565b600081600001549050919050565b8060400135600e600084815260200190815260200160002060000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508060800160208101906134739190613e49565b600e600084815260200190815260200160002060000160186101000a81548160ff0219169083151502179055508080600001906134b09190614b7f565b6040516020016134c192919061469e565b60405160208183030381529060405280519060200120600e60008481526020019081526020016000206001016040516020016134fd91906146db565b604051602081830303815290604052805190602001201461359d57600f600e600084815260200190815260200160002060010160405161353d91906146db565b908152602001604051809103902060009055613568828280600001906135639190614b7f565b61360c565b8080600001906135789190614b7f565b600e6000858152602001908152602001600020600101919061359b92919061393b565b505b6135b860106000848152602001908152602001600020612887565b817f50ecbf55ffe2bb3898117151fc1d603de74c7aea21cfc803047655d3352d4eaf82604001358360800160208101906135f29190613e49565b604051613600929190614aee565b60405180910390a25050565b600e6000600f848460405161362292919061469e565b9081526020016040518091039020548152602001908152602001600020600101600061364e9190613a68565b82600f838360405161366192919061469e565b9081526020016040518091039020547f474535050dadadfa7d6440e891aa2f9d00f431f593394b6b5db7daf180c1bd9a84846040516136a19291906147ab565b60405180910390a382600f83836040516136bc92919061469e565b908152602001604051809103902081905550505050565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661374b83611012565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006137b28473ffffffffffffffffffffffffffffffffffffffff16613928565b1561391b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137db6121bd565b8786866040518563ffffffff1660e01b81526004016137fd9493929190614722565b602060405180830381600087803b15801561381757600080fd5b505af192505050801561384857506040513d601f19601f820116820180604052508101906138459190613e9b565b60015b6138cb573d8060008114613878576040519150601f19603f3d011682016040523d82523d6000602084013e61387d565b606091505b506000815114156138c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ba90614871565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613920565b600190505b949350505050565b600080823b905060008111915050919050565b82805461394790614f93565b90600052602060002090601f01602090048101928261396957600085556139b0565b82601f1061398257803560ff19168380011785556139b0565b828001600101855582156139b0579182015b828111156139af578235825591602001919060010190613994565b5b5090506139bd9190613aa8565b5090565b8280546139cd90614f93565b90600052602060002090601f0160209004810192826139ef5760008555613a36565b82601f10613a0857805160ff1916838001178555613a36565b82800160010185558215613a36579182015b82811115613a35578251825591602001919060010190613a1a565b5b509050613a439190613aa8565b5090565b5080546000825590600052602060002090810190613a659190613aa8565b50565b508054613a7490614f93565b6000825580601f10613a865750613aa5565b601f016020900490600052602060002090810190613aa49190613aa8565b5b50565b5b80821115613ac1576000816000905550600101613aa9565b5090565b6000613ad8613ad384614bfb565b614bd6565b905082815260208101848484011115613af057600080fd5b613afb848285614f51565b509392505050565b6000613b16613b1184614c2c565b614bd6565b905082815260208101848484011115613b2e57600080fd5b613b39848285614f51565b509392505050565b600081359050613b50816155f6565b92915050565b600081519050613b65816155f6565b92915050565b600081359050613b7a8161560d565b92915050565b600081359050613b8f81615624565b92915050565b600081519050613ba481615624565b92915050565b600082601f830112613bbb57600080fd5b8135613bcb848260208601613ac5565b91505092915050565b60008083601f840112613be657600080fd5b8235905067ffffffffffffffff811115613bff57600080fd5b602083019150836001820283011115613c1757600080fd5b9250929050565b600082601f830112613c2f57600080fd5b8135613c3f848260208601613b03565b91505092915050565b60006101208284031215613c5b57600080fd5b81905092915050565b600081359050613c738161563b565b92915050565b600060208284031215613c8b57600080fd5b6000613c9984828501613b41565b91505092915050565b600060208284031215613cb457600080fd5b6000613cc284828501613b56565b91505092915050565b60008060408385031215613cde57600080fd5b6000613cec85828601613b41565b9250506020613cfd85828601613b41565b9150509250929050565b600080600060608486031215613d1c57600080fd5b6000613d2a86828701613b41565b9350506020613d3b86828701613b41565b9250506040613d4c86828701613c64565b9150509250925092565b60008060008060808587031215613d6c57600080fd5b6000613d7a87828801613b41565b9450506020613d8b87828801613b41565b9350506040613d9c87828801613c64565b925050606085013567ffffffffffffffff811115613db957600080fd5b613dc587828801613baa565b91505092959194509250565b60008060408385031215613de457600080fd5b6000613df285828601613b41565b9250506020613e0385828601613b6b565b9150509250929050565b60008060408385031215613e2057600080fd5b6000613e2e85828601613b41565b9250506020613e3f85828601613c64565b9150509250929050565b600060208284031215613e5b57600080fd5b6000613e6984828501613b6b565b91505092915050565b600060208284031215613e8457600080fd5b6000613e9284828501613b80565b91505092915050565b600060208284031215613ead57600080fd5b6000613ebb84828501613b95565b91505092915050565b60008060208385031215613ed757600080fd5b600083013567ffffffffffffffff811115613ef157600080fd5b613efd85828601613bd4565b92509250509250929050565b600060208284031215613f1b57600080fd5b600082013567ffffffffffffffff811115613f3557600080fd5b613f4184828501613c1e565b91505092915050565b600060208284031215613f5c57600080fd5b600082013567ffffffffffffffff811115613f7657600080fd5b613f8284828501613c48565b91505092915050565b600060208284031215613f9d57600080fd5b6000613fab84828501613c64565b91505092915050565b6000613fc08383613fcc565b60208301905092915050565b613fd581614ec9565b82525050565b613fe481614ec9565b82525050565b6000613ff582614c82565b613fff8185614cb0565b935061400a83614c5d565b8060005b8381101561403b5781516140228882613fb4565b975061402d83614ca3565b92505060018101905061400e565b5085935050505092915050565b61405181614edb565b82525050565b61406081614edb565b82525050565b60006140728385614cc1565b935061407f838584614f51565b6140888361512c565b840190509392505050565b600061409e82614c8d565b6140a88185614cd2565b93506140b8818560208601614f60565b6140c18161512c565b840191505092915050565b60006140d88385614cee565b93506140e5838584614f51565b6140ee8361512c565b840190509392505050565b60006141058385614cff565b9350614112838584614f51565b61411b8361512c565b840190509392505050565b60006141328385614d10565b935061413f838584614f51565b82840190509392505050565b600061415682614c98565b6141608185614cff565b9350614170818560208601614f60565b6141798161512c565b840191505092915050565b600061418f82614c98565b6141998185614d10565b93506141a9818560208601614f60565b80840191505092915050565b600081546141c281614f93565b6141cc8186614d10565b945060018216600081146141e757600181146141f85761422b565b60ff1983168652818601935061422b565b61420185614c6d565b60005b8381101561422357815481890152600182019150602081019050614204565b838801955050505b50505092915050565b6000614241601a83614cff565b915061424c8261513d565b602082019050919050565b6000614264601d83614cff565b915061426f82615166565b602082019050919050565b6000614287601b83614cff565b91506142928261518f565b602082019050919050565b60006142aa601683614cff565b91506142b5826151b8565b602082019050919050565b60006142cd603283614cff565b91506142d8826151e1565b604082019050919050565b60006142f0602683614cff565b91506142fb82615230565b604082019050919050565b6000614313601c83614cff565b915061431e8261527f565b602082019050919050565b6000614336601583614cff565b9150614341826152a8565b602082019050919050565b6000614359602483614cff565b9150614364826152d1565b604082019050919050565b600061437c601d83614cff565b915061438782615320565b602082019050919050565b600061439f601883614cff565b91506143aa82615349565b602082019050919050565b60006143c2602a83614cff565b91506143cd82615372565b604082019050919050565b60006143e5602983614cff565b91506143f0826153c1565b604082019050919050565b6000614408602083614cff565b915061441382615410565b602082019050919050565b600061442b602c83614cff565b915061443682615439565b604082019050919050565b600061444e602083614cff565b915061445982615488565b602082019050919050565b6000614471602983614cff565b915061447c826154b1565b604082019050919050565b6000614494602f83614cff565b915061449f82615500565b604082019050919050565b60006144b7601783614cff565b91506144c28261554f565b602082019050919050565b60006144da601d83614cff565b91506144e582615578565b602082019050919050565b60006144fd600083614ce3565b9150614508826155a1565b600082019050919050565b6000614520601083614cff565b915061452b826155a4565b602082019050919050565b6000614543601283614cff565b915061454e826155cd565b602082019050919050565b6000610120830161456d6000840184614da0565b85830360008701526145808382846140cc565b925050506145916020840184614d1b565b61459e6020860182613fcc565b506145ac6040840184614df7565b6145b96040860182614671565b506145c76060840184614df7565b6145d46060860182614671565b506145e26080840184614d32565b6145ef6080860182614048565b506145fd60a0840184614df7565b61460a60a0860182614671565b5061461860c0840184614d49565b85830360c087015261462b838284614066565b9250505061463c60e0840184614df7565b61464960e0860182614671565b50614658610100840184614df7565b614666610100860182614671565b508091505092915050565b61467a81614f33565b82525050565b61468981614f33565b82525050565b61469881614f3d565b82525050565b60006146ab828486614126565b91508190509392505050565b60006146c38285614184565b91506146cf8284614184565b91508190509392505050565b60006146e782846141b5565b915081905092915050565b60006146fd826144f0565b9150819050919050565b600060208201905061471c6000830184613fdb565b92915050565b60006080820190506147376000830187613fdb565b6147446020830186613fdb565b6147516040830185614680565b81810360608301526147638184614093565b905095945050505050565b600060208201905081810360008301526147888184613fea565b905092915050565b60006020820190506147a56000830184614057565b92915050565b600060208201905081810360008301526147c68184866140f9565b90509392505050565b600060208201905081810360008301526147e9818461414b565b905092915050565b6000602082019050818103600083015261480a81614234565b9050919050565b6000602082019050818103600083015261482a81614257565b9050919050565b6000602082019050818103600083015261484a8161427a565b9050919050565b6000602082019050818103600083015261486a8161429d565b9050919050565b6000602082019050818103600083015261488a816142c0565b9050919050565b600060208201905081810360008301526148aa816142e3565b9050919050565b600060208201905081810360008301526148ca81614306565b9050919050565b600060208201905081810360008301526148ea81614329565b9050919050565b6000602082019050818103600083015261490a8161434c565b9050919050565b6000602082019050818103600083015261492a8161436f565b9050919050565b6000602082019050818103600083015261494a81614392565b9050919050565b6000602082019050818103600083015261496a816143b5565b9050919050565b6000602082019050818103600083015261498a816143d8565b9050919050565b600060208201905081810360008301526149aa816143fb565b9050919050565b600060208201905081810360008301526149ca8161441e565b9050919050565b600060208201905081810360008301526149ea81614441565b9050919050565b60006020820190508181036000830152614a0a81614464565b9050919050565b60006020820190508181036000830152614a2a81614487565b9050919050565b60006020820190508181036000830152614a4a816144aa565b9050919050565b60006020820190508181036000830152614a6a816144cd565b9050919050565b60006020820190508181036000830152614a8a81614513565b9050919050565b60006020820190508181036000830152614aaa81614536565b9050919050565b60006020820190508181036000830152614acb8184614559565b905092915050565b6000602082019050614ae86000830184614680565b92915050565b6000604082019050614b036000830185614680565b614b106020830184614057565b9392505050565b600060c082019050614b2c600083018961468f565b614b39602083018861468f565b614b46604083018761468f565b614b536060830186614057565b614b606080830185614057565b81810360a0830152614b72818461414b565b9050979650505050505050565b60008083356001602003843603038112614b9857600080fd5b80840192508235915067ffffffffffffffff821115614bb657600080fd5b602083019250600182023603831315614bce57600080fd5b509250929050565b6000614be0614bf1565b9050614bec8282614fc5565b919050565b6000604051905090565b600067ffffffffffffffff821115614c1657614c156150fd565b5b614c1f8261512c565b9050602081019050919050565b600067ffffffffffffffff821115614c4757614c466150fd565b5b614c508261512c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d2a6020840184613b41565b905092915050565b6000614d416020840184613b6b565b905092915050565b60008083356001602003843603038112614d6257600080fd5b83810192508235915060208301925067ffffffffffffffff821115614d8657600080fd5b600182023603841315614d9857600080fd5b509250929050565b60008083356001602003843603038112614db957600080fd5b83810192508235915060208301925067ffffffffffffffff821115614ddd57600080fd5b600182023603841315614def57600080fd5b509250929050565b6000614e066020840184613c64565b905092915050565b6000614e1982614f33565b9150614e2483614f33565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614e5957614e58615070565b5b828201905092915050565b6000614e6f82614f33565b9150614e7a83614f33565b925082614e8a57614e8961509f565b5b828204905092915050565b6000614ea082614f33565b9150614eab83614f33565b925082821015614ebe57614ebd615070565b5b828203905092915050565b6000614ed482614f13565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015614f7e578082015181840152602081019050614f63565b83811115614f8d576000848401525b50505050565b60006002820490506001821680614fab57607f821691505b60208210811415614fbf57614fbe6150ce565b5b50919050565b614fce8261512c565b810181811067ffffffffffffffff82111715614fed57614fec6150fd565b5b80604052505050565b600061500182614f33565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561503457615033615070565b5b600182019050919050565b600061504a82614f33565b915061505583614f33565b9250826150655761506461509f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4e464b3a204e69666b657920646f6573206e6f74206578697374000000000000600082015250565b7f4e464b3a20496e76616c69642072656465656d65722061646472657373000000600082015250565b7f4e464b3a204d6178206173736f6369617465642077616c6c6574730000000000600082015250565b7f4e464b3a2043616e742072656d6f7665206f776e657200000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4e464b3a2052656379636c656420766f75636865720000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4e464b3a204e6f7420616e206173736f6369617465642077616c6c6574000000600082015250565b7f4e464b3a204d75737420706179206d696e742070726963650000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4e464b3a20446f65736e2774206f776e204e69666b6579000000000000000000600082015250565b7f4e464b3a206e6f7420616e206173736f6369617465642077616c6c6574000000600082015250565b50565b7f4e464b3a2053696720696e76616c696400000000000000000000000000000000600082015250565b7f4e464b3a20416c7265616479206f776e65720000000000000000000000000000600082015250565b6155ff81614ec9565b811461560a57600080fd5b50565b61561681614edb565b811461562157600080fd5b50565b61562d81614ee7565b811461563857600080fd5b50565b61564481614f33565b811461564f57600080fd5b5056fea264697066735822122021e5f06bb5ea82adff8c3b998a776e0a56d21dabadeeed37927a470d58a7e99c64736f6c6343000804003300000000000000000000000011acb12a62f23ce33f161878c3d8095ff7561f18000000000000000000000000eab9cedb43f0b9bd88a7b0d254c9c58ecf2a7284

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80638273aff91161010d578063a75fe8e1116100a0578063c7e3d5a51161006f578063c7e3d5a514610723578063c87b56dd14610760578063e985e9c51461079d578063ecd811f8146107da578063f2fde38b14610803576101f9565b8063a75fe8e114610657578063b433116214610680578063b7dd1f32146106bd578063b88d4fde146106fa576101f9565b8063931688cb116100dc578063931688cb146105b157806395d89b41146105da578063983b2d5614610605578063a22cb4651461062e576101f9565b80638273aff9146104f55780638b26fa12146105325780638da5cb5b1461055b5780638efc919614610586576101f9565b80633ccfd60b116101905780636352211e1161015f5780636352211e146103f75780636c0360eb1461043457806370a082311461045f578063715018a61461049c5780637fdce6ad146104b3576101f9565b80633ccfd60b1461037257806342842e0e1461038957806342966c68146103b257806362d38a83146103db576101f9565b80631ef16518116101cc5780631ef16518146102cc57806323b872dd146102f75780633092afd5146103205780633346a38814610349576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190613e72565b61082c565b6040516102329190614790565b60405180910390f35b34801561024757600080fd5b5061025061090e565b60405161025d91906147cf565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190613f8b565b6109a0565b60405161029a9190614707565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190613e0d565b610a25565b005b3480156102d857600080fd5b506102e1610a29565b6040516102ee9190614ad3565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190613d07565b610a2f565b005b34801561032c57600080fd5b5061034760048036038101906103429190613c79565b610a3f565b005b34801561035557600080fd5b50610370600480360381019061036b9190613f4a565b610b0d565b005b34801561037e57600080fd5b50610387610c7b565b005b34801561039557600080fd5b506103b060048036038101906103ab9190613d07565b610d77565b005b3480156103be57600080fd5b506103d960048036038101906103d49190613f8b565b610d97565b005b6103f560048036038101906103f09190613f4a565b610e82565b005b34801561040357600080fd5b5061041e60048036038101906104199190613f8b565b611012565b60405161042b9190614707565b60405180910390f35b34801561044057600080fd5b506104496110c4565b60405161045691906147cf565b60405180910390f35b34801561046b57600080fd5b5061048660048036038101906104819190613c79565b611152565b6040516104939190614ad3565b60405180910390f35b3480156104a857600080fd5b506104b161120a565b005b3480156104bf57600080fd5b506104da60048036038101906104d59190613f8b565b611292565b6040516104ec96959493929190614b17565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613f8b565b6113ac565b6040516105299190614ad3565b60405180910390f35b34801561053e57600080fd5b5061055960048036038101906105549190613f8b565b6113ca565b005b34801561056757600080fd5b50610570611450565b60405161057d9190614707565b60405180910390f35b34801561059257600080fd5b5061059b61147a565b6040516105a89190614ad3565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d39190613ec4565b611485565b005b3480156105e657600080fd5b506105ef611517565b6040516105fc91906147cf565b60405180910390f35b34801561061157600080fd5b5061062c60048036038101906106279190613c79565b6115a9565b005b34801561063a57600080fd5b5061065560048036038101906106509190613dd1565b611680565b005b34801561066357600080fd5b5061067e60048036038101906106799190613c79565b611684565b005b34801561068c57600080fd5b506106a760048036038101906106a29190613f8b565b611bd5565b6040516106b4919061476e565b60405180910390f35b3480156106c957600080fd5b506106e460048036038101906106df9190613c79565b611c76565b6040516106f19190614ad3565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c9190613d56565b611c8e565b005b34801561072f57600080fd5b5061074a60048036038101906107459190613f09565b611dc6565b6040516107579190614ad3565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613f8b565b611df4565b60405161079491906147cf565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf9190613ccb565b611e9b565b6040516107d19190614790565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190613c79565b611f2f565b005b34801561080f57600080fd5b5061082a60048036038101906108259190613c79565b611fef565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108f757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109075750610906826120e7565b5b9050919050565b60606000805461091d90614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461094990614f93565b80156109965780601f1061096b57610100808354040283529160200191610996565b820191906000526020600020905b81548152906001019060200180831161097957829003601f168201915b5050505050905090565b60006109ab82612151565b6109ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e1906149b1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5050565b60095481565b610a3a838383610d77565b505050565b610a476121bd565b73ffffffffffffffffffffffffffffffffffffffff16610a65611450565b73ffffffffffffffffffffffffffffffffffffffff1614610abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab2906149d1565b60405180910390fd5b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff021916905550565b610b16816121c5565b600081606001359050610b2881612151565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e906147f1565b60405180910390fd5b610b718183612385565b15610b7c5750610c78565b600954600c60008381526020019081526020016000208054905010610bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcd90614831565b60405180910390fd5b600f600e6000838152602001908152602001600020600101604051610bfb91906146db565b908152602001604051809103902060009055610c1781836124ce565b610c3260106000838152602001908152602001600020612887565b803373ffffffffffffffffffffffffffffffffffffffff167ff1862e5f9ae1de1cfc1ef597ab995af1474a4e3e5deb3c5a3c228f06ac029c5260405160405180910390a3505b50565b610c836121bd565b73ffffffffffffffffffffffffffffffffffffffff16610ca1611450565b73ffffffffffffffffffffffffffffffffffffffff1614610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee906149d1565b60405180910390fd5b6000610d01611450565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d24906146f2565b60006040518083038185875af1925050503d8060008114610d61576040519150601f19603f3d011682016040523d82523d6000602084013e610d66565b606091505b5050905080610d7457600080fd5b50565b610d9283838360405180602001604052806000815250611c8e565b505050565b610da081612151565b8015610dea575080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b610e29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2090614911565b60405180910390fd5b610e328161289d565b610e3b81612b75565b803373ffffffffffffffffffffffffffffffffffffffff167f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df760405160405180910390a350565b610e8b816121c5565b600081606001359050610e9e8183612385565b15610ea9575061100f565b8161010001353410158015610eca575081610100013566470de4df82000010155b610f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0090614931565b60405180910390fd5b610f1281612151565b15610f99576000610f2282611012565b9050610f2d8261289d565b610f38813384612c86565b813373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f209433784b976a194c1fefb20a179a7f6345b4d7800c4290c5723927bc63ace560405160405180910390a450610fe8565b610fa33382612ee2565b803373ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe60405160405180910390a35b610ff281836124ce565b61100d60106000838152602001908152602001600020612887565b505b50565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b290614971565b60405180910390fd5b80915050919050565b600880546110d190614f93565b80601f01602080910402602001604051908101604052809291908181526020018280546110fd90614f93565b801561114a5780601f1061111f5761010080835404028352916020019161114a565b820191906000526020600020905b81548152906001019060200180831161112d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba90614951565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112126121bd565b73ffffffffffffffffffffffffffffffffffffffff16611230611450565b73ffffffffffffffffffffffffffffffffffffffff1614611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d906149d1565b60405180910390fd5b61129060006130b0565b565b600e6020528060005260406000206000915090508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a900467ffffffffffffffff16908060000160189054906101000a900460ff16908060000160199054906101000a900460ff169080600101805461132990614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461135590614f93565b80156113a25780601f10611377576101008083540402835291602001916113a2565b820191906000526020600020905b81548152906001019060200180831161138557829003601f168201915b5050505050905086565b60106020528060005260406000206000915090508060000154905081565b6113d26121bd565b73ffffffffffffffffffffffffffffffffffffffff166113f0611450565b73ffffffffffffffffffffffffffffffffffffffff1614611446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143d906149d1565b60405180910390fd5b8060098190555050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b66470de4df82000081565b61148d6121bd565b73ffffffffffffffffffffffffffffffffffffffff166114ab611450565b73ffffffffffffffffffffffffffffffffffffffff1614611501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f8906149d1565b60405180910390fd5b81816008919061151292919061393b565b505050565b60606001805461152690614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461155290614f93565b801561159f5780601f106115745761010080835404028352916020019161159f565b820191906000526020600020905b81548152906001019060200180831161158257829003601f168201915b5050505050905090565b6115b16121bd565b73ffffffffffffffffffffffffffffffffffffffff166115cf611450565b73ffffffffffffffffffffffffffffffffffffffff1614611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c906149d1565b60405180910390fd5b6001600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b5050565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506116d181612151565b611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790614a31565b60405180910390fd5b61171981611012565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177e90614851565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ff90614911565b60405180910390fd5b6000600c60008381526020019081526020016000206001600c6000858152602001908152602001600020805490506118409190614e95565b81548110611877577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a4d576000600b600084815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff16905081600c60008581526020019081526020016000208263ffffffff1681548110611991577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548163ffffffff021916908363ffffffff160217905550505b600c6000838152602001908152602001600020805480611a96577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055600b600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549063ffffffff02191690556000820160046101000a81549060ff02191690555050600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055818373ffffffffffffffffffffffffffffffffffffffff167f0a3b33100313c5c7733c8ba4a2354324dc8913f41e9ec580424c94525e032bd560405160405180910390a3505050565b6060600c6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015611c6a57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611c20575b50505050509050919050565b600d6020528060005260406000206000915090505481565b81600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054148015611d1a575081600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b611d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5090614a51565b60405180910390fd5b611d6584848484613176565b818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f3d31a89e4a3654a3fba36b07bef4af433bbf9e873f5b38e852c56f80d58e7d8c60405160405180910390a450505050565b600f818051602081018201805184825260208301602085012081835280955050505050506000915090505481565b6060611dff82612151565b611e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3590614a11565b60405180910390fd5b6000611e486131d2565b90506000815111611e685760405180602001604052806000815250611e93565b80611e7284613264565b604051602001611e839291906146b7565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f376121bd565b73ffffffffffffffffffffffffffffffffffffffff16611f55611450565b73ffffffffffffffffffffffffffffffffffffffff1614611fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa2906149d1565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611ff76121bd565b73ffffffffffffffffffffffffffffffffffffffff16612015611450565b73ffffffffffffffffffffffffffffffffffffffff161461206b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612062906149d1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d290614891565b60405180910390fd5b6120e4816130b0565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b60011515600a6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a97ff8af856040518263ffffffff1660e01b81526004016122289190614ab1565b60206040518083038186803b15801561224057600080fd5b505afa158015612254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122789190613ca2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f990614a71565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1681602001602081019061232c9190613c79565b73ffffffffffffffffffffffffffffffffffffffff1614612382576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237990614811565b60405180910390fd5b50565b60006123a260106000858152602001908152602001600020613411565b8260e00135116123e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123de906148d1565b60405180910390fd5b82600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561244157612438838361341f565b600190506124c8565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146124c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ba90614a91565b60405180910390fd5b600090505b92915050565b81600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600c6000848152602001908152602001600020805490509050600c6000848152602001908152602001600020339080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060405180604001604052808263ffffffff16815260200160011515815250600b600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548160ff0219169083151502179055509050506126728383806000019061266d9190614b7f565b61360c565b6040518060c00160405280836040013567ffffffffffffffff1681526020018360a0013567ffffffffffffffff168152602001836060013567ffffffffffffffff1681526020018360800160208101906126cc9190613e49565b151581526020016001151581526020018380600001906126ec9190614b7f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250600e600085815260200190815260200160002060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160000160186101000a81548160ff02191690831515021790555060808201518160000160196101000a81548160ff02191690831515021790555060a082015181600101908051906020019061282e9291906139c1565b50905050827f50ecbf55ffe2bb3898117151fc1d603de74c7aea21cfc803047655d3352d4eaf836040013584608001602081019061286c9190613e49565b60405161287a929190614aee565b60405180910390a2505050565b6001816000016000828254019250508190555050565b60005b600c600083815260200190815260200160002080549050811015612a7c57600d6000600c6000858152602001908152602001600020838154811061290d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009055600b60008381526020019081526020016000206000600c600085815260200190815260200160002083815481106129d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549063ffffffff02191690556000820160046101000a81549060ff021916905550508080612a7490614ff6565b9150506128a0565b50600c60008281526020019081526020016000206000612a9c9190613a47565b600f600e6000838152602001908152602001600020600101604051612ac191906146db565b908152602001604051809103902060009055600e6000828152602001908152602001600020600080820160006101000a81549067ffffffffffffffff02191690556000820160086101000a81549067ffffffffffffffff02191690556000820160106101000a81549067ffffffffffffffff02191690556000820160186101000a81549060ff02191690556000820160196101000a81549060ff0219169055600182016000612b709190613a68565b505050565b6000612b8082611012565b9050612b8e816000846136d3565b612b996000836136d8565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612be99190614e95565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8273ffffffffffffffffffffffffffffffffffffffff16612ca682611012565b73ffffffffffffffffffffffffffffffffffffffff1614612cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cf3906149f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d63906148f1565b60405180910390fd5b612d778383836136d3565b612d826000826136d8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dd29190614e95565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e299190614e0e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4990614991565b60405180910390fd5b612f5b81612151565b15612f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f92906148b1565b60405180910390fd5b612fa7600083836136d3565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ff79190614e0e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613181848484612c86565b61318d84848484613791565b6131cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c390614871565b60405180910390fd5b50505050565b6060600880546131e190614f93565b80601f016020809104026020016040519081016040528092919081815260200182805461320d90614f93565b801561325a5780601f1061322f5761010080835404028352916020019161325a565b820191906000526020600020905b81548152906001019060200180831161323d57829003601f168201915b5050505050905090565b606060008214156132ac576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061340c565b600082905060005b600082146132de5780806132c790614ff6565b915050600a826132d79190614e64565b91506132b4565b60008167ffffffffffffffff811115613320577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133525781602001600182028036833780820191505090505b5090505b600085146134055760018261336b9190614e95565b9150600a8561337a919061503f565b60306133869190614e0e565b60f81b8183815181106133c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856133fe9190614e64565b9450613356565b8093505050505b919050565b600081600001549050919050565b8060400135600e600084815260200190815260200160002060000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508060800160208101906134739190613e49565b600e600084815260200190815260200160002060000160186101000a81548160ff0219169083151502179055508080600001906134b09190614b7f565b6040516020016134c192919061469e565b60405160208183030381529060405280519060200120600e60008481526020019081526020016000206001016040516020016134fd91906146db565b604051602081830303815290604052805190602001201461359d57600f600e600084815260200190815260200160002060010160405161353d91906146db565b908152602001604051809103902060009055613568828280600001906135639190614b7f565b61360c565b8080600001906135789190614b7f565b600e6000858152602001908152602001600020600101919061359b92919061393b565b505b6135b860106000848152602001908152602001600020612887565b817f50ecbf55ffe2bb3898117151fc1d603de74c7aea21cfc803047655d3352d4eaf82604001358360800160208101906135f29190613e49565b604051613600929190614aee565b60405180910390a25050565b600e6000600f848460405161362292919061469e565b9081526020016040518091039020548152602001908152602001600020600101600061364e9190613a68565b82600f838360405161366192919061469e565b9081526020016040518091039020547f474535050dadadfa7d6440e891aa2f9d00f431f593394b6b5db7daf180c1bd9a84846040516136a19291906147ab565b60405180910390a382600f83836040516136bc92919061469e565b908152602001604051809103902081905550505050565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661374b83611012565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006137b28473ffffffffffffffffffffffffffffffffffffffff16613928565b1561391b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137db6121bd565b8786866040518563ffffffff1660e01b81526004016137fd9493929190614722565b602060405180830381600087803b15801561381757600080fd5b505af192505050801561384857506040513d601f19601f820116820180604052508101906138459190613e9b565b60015b6138cb573d8060008114613878576040519150601f19603f3d011682016040523d82523d6000602084013e61387d565b606091505b506000815114156138c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ba90614871565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613920565b600190505b949350505050565b600080823b905060008111915050919050565b82805461394790614f93565b90600052602060002090601f01602090048101928261396957600085556139b0565b82601f1061398257803560ff19168380011785556139b0565b828001600101855582156139b0579182015b828111156139af578235825591602001919060010190613994565b5b5090506139bd9190613aa8565b5090565b8280546139cd90614f93565b90600052602060002090601f0160209004810192826139ef5760008555613a36565b82601f10613a0857805160ff1916838001178555613a36565b82800160010185558215613a36579182015b82811115613a35578251825591602001919060010190613a1a565b5b509050613a439190613aa8565b5090565b5080546000825590600052602060002090810190613a659190613aa8565b50565b508054613a7490614f93565b6000825580601f10613a865750613aa5565b601f016020900490600052602060002090810190613aa49190613aa8565b5b50565b5b80821115613ac1576000816000905550600101613aa9565b5090565b6000613ad8613ad384614bfb565b614bd6565b905082815260208101848484011115613af057600080fd5b613afb848285614f51565b509392505050565b6000613b16613b1184614c2c565b614bd6565b905082815260208101848484011115613b2e57600080fd5b613b39848285614f51565b509392505050565b600081359050613b50816155f6565b92915050565b600081519050613b65816155f6565b92915050565b600081359050613b7a8161560d565b92915050565b600081359050613b8f81615624565b92915050565b600081519050613ba481615624565b92915050565b600082601f830112613bbb57600080fd5b8135613bcb848260208601613ac5565b91505092915050565b60008083601f840112613be657600080fd5b8235905067ffffffffffffffff811115613bff57600080fd5b602083019150836001820283011115613c1757600080fd5b9250929050565b600082601f830112613c2f57600080fd5b8135613c3f848260208601613b03565b91505092915050565b60006101208284031215613c5b57600080fd5b81905092915050565b600081359050613c738161563b565b92915050565b600060208284031215613c8b57600080fd5b6000613c9984828501613b41565b91505092915050565b600060208284031215613cb457600080fd5b6000613cc284828501613b56565b91505092915050565b60008060408385031215613cde57600080fd5b6000613cec85828601613b41565b9250506020613cfd85828601613b41565b9150509250929050565b600080600060608486031215613d1c57600080fd5b6000613d2a86828701613b41565b9350506020613d3b86828701613b41565b9250506040613d4c86828701613c64565b9150509250925092565b60008060008060808587031215613d6c57600080fd5b6000613d7a87828801613b41565b9450506020613d8b87828801613b41565b9350506040613d9c87828801613c64565b925050606085013567ffffffffffffffff811115613db957600080fd5b613dc587828801613baa565b91505092959194509250565b60008060408385031215613de457600080fd5b6000613df285828601613b41565b9250506020613e0385828601613b6b565b9150509250929050565b60008060408385031215613e2057600080fd5b6000613e2e85828601613b41565b9250506020613e3f85828601613c64565b9150509250929050565b600060208284031215613e5b57600080fd5b6000613e6984828501613b6b565b91505092915050565b600060208284031215613e8457600080fd5b6000613e9284828501613b80565b91505092915050565b600060208284031215613ead57600080fd5b6000613ebb84828501613b95565b91505092915050565b60008060208385031215613ed757600080fd5b600083013567ffffffffffffffff811115613ef157600080fd5b613efd85828601613bd4565b92509250509250929050565b600060208284031215613f1b57600080fd5b600082013567ffffffffffffffff811115613f3557600080fd5b613f4184828501613c1e565b91505092915050565b600060208284031215613f5c57600080fd5b600082013567ffffffffffffffff811115613f7657600080fd5b613f8284828501613c48565b91505092915050565b600060208284031215613f9d57600080fd5b6000613fab84828501613c64565b91505092915050565b6000613fc08383613fcc565b60208301905092915050565b613fd581614ec9565b82525050565b613fe481614ec9565b82525050565b6000613ff582614c82565b613fff8185614cb0565b935061400a83614c5d565b8060005b8381101561403b5781516140228882613fb4565b975061402d83614ca3565b92505060018101905061400e565b5085935050505092915050565b61405181614edb565b82525050565b61406081614edb565b82525050565b60006140728385614cc1565b935061407f838584614f51565b6140888361512c565b840190509392505050565b600061409e82614c8d565b6140a88185614cd2565b93506140b8818560208601614f60565b6140c18161512c565b840191505092915050565b60006140d88385614cee565b93506140e5838584614f51565b6140ee8361512c565b840190509392505050565b60006141058385614cff565b9350614112838584614f51565b61411b8361512c565b840190509392505050565b60006141328385614d10565b935061413f838584614f51565b82840190509392505050565b600061415682614c98565b6141608185614cff565b9350614170818560208601614f60565b6141798161512c565b840191505092915050565b600061418f82614c98565b6141998185614d10565b93506141a9818560208601614f60565b80840191505092915050565b600081546141c281614f93565b6141cc8186614d10565b945060018216600081146141e757600181146141f85761422b565b60ff1983168652818601935061422b565b61420185614c6d565b60005b8381101561422357815481890152600182019150602081019050614204565b838801955050505b50505092915050565b6000614241601a83614cff565b915061424c8261513d565b602082019050919050565b6000614264601d83614cff565b915061426f82615166565b602082019050919050565b6000614287601b83614cff565b91506142928261518f565b602082019050919050565b60006142aa601683614cff565b91506142b5826151b8565b602082019050919050565b60006142cd603283614cff565b91506142d8826151e1565b604082019050919050565b60006142f0602683614cff565b91506142fb82615230565b604082019050919050565b6000614313601c83614cff565b915061431e8261527f565b602082019050919050565b6000614336601583614cff565b9150614341826152a8565b602082019050919050565b6000614359602483614cff565b9150614364826152d1565b604082019050919050565b600061437c601d83614cff565b915061438782615320565b602082019050919050565b600061439f601883614cff565b91506143aa82615349565b602082019050919050565b60006143c2602a83614cff565b91506143cd82615372565b604082019050919050565b60006143e5602983614cff565b91506143f0826153c1565b604082019050919050565b6000614408602083614cff565b915061441382615410565b602082019050919050565b600061442b602c83614cff565b915061443682615439565b604082019050919050565b600061444e602083614cff565b915061445982615488565b602082019050919050565b6000614471602983614cff565b915061447c826154b1565b604082019050919050565b6000614494602f83614cff565b915061449f82615500565b604082019050919050565b60006144b7601783614cff565b91506144c28261554f565b602082019050919050565b60006144da601d83614cff565b91506144e582615578565b602082019050919050565b60006144fd600083614ce3565b9150614508826155a1565b600082019050919050565b6000614520601083614cff565b915061452b826155a4565b602082019050919050565b6000614543601283614cff565b915061454e826155cd565b602082019050919050565b6000610120830161456d6000840184614da0565b85830360008701526145808382846140cc565b925050506145916020840184614d1b565b61459e6020860182613fcc565b506145ac6040840184614df7565b6145b96040860182614671565b506145c76060840184614df7565b6145d46060860182614671565b506145e26080840184614d32565b6145ef6080860182614048565b506145fd60a0840184614df7565b61460a60a0860182614671565b5061461860c0840184614d49565b85830360c087015261462b838284614066565b9250505061463c60e0840184614df7565b61464960e0860182614671565b50614658610100840184614df7565b614666610100860182614671565b508091505092915050565b61467a81614f33565b82525050565b61468981614f33565b82525050565b61469881614f3d565b82525050565b60006146ab828486614126565b91508190509392505050565b60006146c38285614184565b91506146cf8284614184565b91508190509392505050565b60006146e782846141b5565b915081905092915050565b60006146fd826144f0565b9150819050919050565b600060208201905061471c6000830184613fdb565b92915050565b60006080820190506147376000830187613fdb565b6147446020830186613fdb565b6147516040830185614680565b81810360608301526147638184614093565b905095945050505050565b600060208201905081810360008301526147888184613fea565b905092915050565b60006020820190506147a56000830184614057565b92915050565b600060208201905081810360008301526147c68184866140f9565b90509392505050565b600060208201905081810360008301526147e9818461414b565b905092915050565b6000602082019050818103600083015261480a81614234565b9050919050565b6000602082019050818103600083015261482a81614257565b9050919050565b6000602082019050818103600083015261484a8161427a565b9050919050565b6000602082019050818103600083015261486a8161429d565b9050919050565b6000602082019050818103600083015261488a816142c0565b9050919050565b600060208201905081810360008301526148aa816142e3565b9050919050565b600060208201905081810360008301526148ca81614306565b9050919050565b600060208201905081810360008301526148ea81614329565b9050919050565b6000602082019050818103600083015261490a8161434c565b9050919050565b6000602082019050818103600083015261492a8161436f565b9050919050565b6000602082019050818103600083015261494a81614392565b9050919050565b6000602082019050818103600083015261496a816143b5565b9050919050565b6000602082019050818103600083015261498a816143d8565b9050919050565b600060208201905081810360008301526149aa816143fb565b9050919050565b600060208201905081810360008301526149ca8161441e565b9050919050565b600060208201905081810360008301526149ea81614441565b9050919050565b60006020820190508181036000830152614a0a81614464565b9050919050565b60006020820190508181036000830152614a2a81614487565b9050919050565b60006020820190508181036000830152614a4a816144aa565b9050919050565b60006020820190508181036000830152614a6a816144cd565b9050919050565b60006020820190508181036000830152614a8a81614513565b9050919050565b60006020820190508181036000830152614aaa81614536565b9050919050565b60006020820190508181036000830152614acb8184614559565b905092915050565b6000602082019050614ae86000830184614680565b92915050565b6000604082019050614b036000830185614680565b614b106020830184614057565b9392505050565b600060c082019050614b2c600083018961468f565b614b39602083018861468f565b614b46604083018761468f565b614b536060830186614057565b614b606080830185614057565b81810360a0830152614b72818461414b565b9050979650505050505050565b60008083356001602003843603038112614b9857600080fd5b80840192508235915067ffffffffffffffff821115614bb657600080fd5b602083019250600182023603831315614bce57600080fd5b509250929050565b6000614be0614bf1565b9050614bec8282614fc5565b919050565b6000604051905090565b600067ffffffffffffffff821115614c1657614c156150fd565b5b614c1f8261512c565b9050602081019050919050565b600067ffffffffffffffff821115614c4757614c466150fd565b5b614c508261512c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d2a6020840184613b41565b905092915050565b6000614d416020840184613b6b565b905092915050565b60008083356001602003843603038112614d6257600080fd5b83810192508235915060208301925067ffffffffffffffff821115614d8657600080fd5b600182023603841315614d9857600080fd5b509250929050565b60008083356001602003843603038112614db957600080fd5b83810192508235915060208301925067ffffffffffffffff821115614ddd57600080fd5b600182023603841315614def57600080fd5b509250929050565b6000614e066020840184613c64565b905092915050565b6000614e1982614f33565b9150614e2483614f33565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614e5957614e58615070565b5b828201905092915050565b6000614e6f82614f33565b9150614e7a83614f33565b925082614e8a57614e8961509f565b5b828204905092915050565b6000614ea082614f33565b9150614eab83614f33565b925082821015614ebe57614ebd615070565b5b828203905092915050565b6000614ed482614f13565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015614f7e578082015181840152602081019050614f63565b83811115614f8d576000848401525b50505050565b60006002820490506001821680614fab57607f821691505b60208210811415614fbf57614fbe6150ce565b5b50919050565b614fce8261512c565b810181811067ffffffffffffffff82111715614fed57614fec6150fd565b5b80604052505050565b600061500182614f33565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561503457615033615070565b5b600182019050919050565b600061504a82614f33565b915061505583614f33565b9250826150655761506461509f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4e464b3a204e69666b657920646f6573206e6f74206578697374000000000000600082015250565b7f4e464b3a20496e76616c69642072656465656d65722061646472657373000000600082015250565b7f4e464b3a204d6178206173736f6369617465642077616c6c6574730000000000600082015250565b7f4e464b3a2043616e742072656d6f7665206f776e657200000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4e464b3a2052656379636c656420766f75636865720000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4e464b3a204e6f7420616e206173736f6369617465642077616c6c6574000000600082015250565b7f4e464b3a204d75737420706179206d696e742070726963650000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4e464b3a20446f65736e2774206f776e204e69666b6579000000000000000000600082015250565b7f4e464b3a206e6f7420616e206173736f6369617465642077616c6c6574000000600082015250565b50565b7f4e464b3a2053696720696e76616c696400000000000000000000000000000000600082015250565b7f4e464b3a20416c7265616479206f776e65720000000000000000000000000000600082015250565b6155ff81614ec9565b811461560a57600080fd5b50565b61561681614edb565b811461562157600080fd5b50565b61562d81614ee7565b811461563857600080fd5b50565b61564481614f33565b811461564f57600080fd5b5056fea264697066735822122021e5f06bb5ea82adff8c3b998a776e0a56d21dabadeeed37927a470d58a7e99c64736f6c63430008040033

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

00000000000000000000000011acb12a62f23ce33f161878c3d8095ff7561f18000000000000000000000000eab9cedb43f0b9bd88a7b0d254c9c58ecf2a7284

-----Decoded View---------------
Arg [0] : minter (address): 0x11acB12A62f23ce33F161878c3D8095FF7561f18
Arg [1] : EIP712address (address): 0xEAb9ceDB43F0b9bD88A7B0d254c9C58Ecf2A7284

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000011acb12a62f23ce33f161878c3d8095ff7561f18
Arg [1] : 000000000000000000000000eab9cedb43f0b9bd88a7b0d254c9c58ecf2a7284


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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