ETH Price: $3,204.09 (+2.34%)

Contract

0x5e549Fe8CD7e6676080E0d05d56df73C50a53077
 

Overview

ETH Balance

7.91 ETH

Eth Value

$25,344.31 (@ $3,204.09/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...195891102024-04-05 11:02:11222 days ago1712314931IN
0x5e549Fe8...C50a53077
0 ETH0.0005820412.55030694
Set Approval For...166441432023-02-16 22:01:47636 days ago1676584907IN
0x5e549Fe8...C50a53077
0 ETH0.0009834640.19893928
Approve162841902022-12-28 15:36:47686 days ago1672241807IN
0x5e549Fe8...C50a53077
0 ETH0.0008931218.30255401
Set Approval For...153452622022-08-15 9:27:40821 days ago1660555660IN
0x5e549Fe8...C50a53077
0 ETH0.0004720610.17885665
Set Approval For...153055802022-08-09 3:22:44828 days ago1660015364IN
0x5e549Fe8...C50a53077
0 ETH0.000373768.059297
Set Approval For...149996782022-06-21 1:05:28877 days ago1655773528IN
0x5e549Fe8...C50a53077
0 ETH0.0010837523.36843426
Set Approval For...147763482022-05-14 22:44:43914 days ago1652568283IN
0x5e549Fe8...C50a53077
0 ETH0.0004633918.94113297
Set Approval For...147763262022-05-14 22:40:15914 days ago1652568015IN
0x5e549Fe8...C50a53077
0 ETH0.001227726.47226713
Set Approval For...145386082022-04-07 12:02:20951 days ago1649332940IN
0x5e549Fe8...C50a53077
0 ETH0.0044111295.11440119
Set Approval For...145167042022-04-04 1:44:49955 days ago1649036689IN
0x5e549Fe8...C50a53077
0 ETH0.0020551144.31318995
Transfer From145098362022-04-03 0:04:27956 days ago1648944267IN
0x5e549Fe8...C50a53077
0 ETH0.0043691552.11922616
Set Approval For...144015132022-03-17 3:06:38973 days ago1647486398IN
0x5e549Fe8...C50a53077
0 ETH0.0008033517.32237726
Set Approval For...143910182022-03-15 11:57:11974 days ago1647345431IN
0x5e549Fe8...C50a53077
0 ETH0.0009066319.54914491
Transfer From143431152022-03-08 1:02:13982 days ago1646701333IN
0x5e549Fe8...C50a53077
0 ETH0.0037044944.19059322
Set Approval For...142339092022-02-19 2:38:34999 days ago1645238314IN
0x5e549Fe8...C50a53077
0 ETH0.0019532142.11609235
Set Approval For...142268622022-02-18 0:23:431000 days ago1645143823IN
0x5e549Fe8...C50a53077
0 ETH0.00430392.78319771
Set Approval For...142180172022-02-16 15:44:431001 days ago1645026283IN
0x5e549Fe8...C50a53077
0 ETH0.0032920870.98529408
Set Approval For...142136072022-02-15 23:07:491002 days ago1644966469IN
0x5e549Fe8...C50a53077
0 ETH0.00252583103.24292356
Set Approval For...142133792022-02-15 22:18:071002 days ago1644963487IN
0x5e549Fe8...C50a53077
0 ETH0.0032608170.31097013
Start A Relation...141516772022-02-06 9:26:581011 days ago1644139618IN
0x5e549Fe8...C50a53077
0.07 ETH0.0076496643.73108488
Set Approval For...140713882022-01-24 23:46:141024 days ago1643067974IN
0x5e549Fe8...C50a53077
0 ETH0.00275691112.68816504
Start A Relation...140193962022-01-16 23:02:061032 days ago1642374126IN
0x5e549Fe8...C50a53077
0.07 ETH0.0245164140.15378815
Start A Relation...140186732022-01-16 20:18:381032 days ago1642364318IN
0x5e549Fe8...C50a53077
0.07 ETH0.02607463146.71340149
Start A Relation...140186682022-01-16 20:17:401032 days ago1642364260IN
0x5e549Fe8...C50a53077
0.07 ETH0.02686326153.57017462
Start A Relation...139820002022-01-11 4:14:241038 days ago1641874464IN
0x5e549Fe8...C50a53077
0.07 ETH0.02844319162.6022194
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
139599322022-01-07 18:36:231041 days ago1641580583
0x5e549Fe8...C50a53077
0.735 ETH
137105742021-11-29 20:08:091080 days ago1638216489
0x5e549Fe8...C50a53077
5.985 ETH
136543252021-11-20 21:49:551089 days ago1637444995
0x5e549Fe8...C50a53077
0.07 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OurGirlfriend

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 14 : OurGirlfriend.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract OurGirlfriend is ERC721Enumerable, Ownable, ReentrancyGuard {

    event Wooed(address _wooer, uint256 tokenId, uint256 _newScore);

    mapping (uint256 => uint256) public relationshipScores;
    address public soulmate;
    uint256 public lastWooed;

    uint256 public mintRevenue;
    uint256 private creatorShareClaimed;
    uint256 public constant PRICE = 0.07 ether;
    uint256 public constant MAX_SUPPLY = 7777;

    string[] private HOBBIES = [
        "Play vidya",
        "Eat ramen",
        "Watch anime",
        "Cuddle",
        "Go on a hike",
        "Read to each other",
        "Night on the town",
        "Walk on the beach",
        "Role play",
        "Shop together",
        "Redecorate",
        "Go to the gym",
        "Dance",
        "Travel",
        "Gossip about friends",
        "Go sightseeing",
        "Clean the house",
        "Make home movies",
        "Fight"
    ];

    constructor() ERC721("Asami", "ASAMI") Ownable() {}

    function startARelationship() payable public nonReentrant { 
        require(msg.value == PRICE, "It costs 0.07 ETH to start a relationship");
        require(totalSupply() < MAX_SUPPLY, "Our GF is at max social capacity.");
        // Our GF is exclusive once she has found her soulmate.
        require(soulmate == address(0), "Our GF has found her soulmate.");
        relationshipScores[totalSupply()] = 1;
        mintRevenue += PRICE;
        _safeMint(_msgSender(), totalSupply());

    }

    function isGfTired() internal view returns (bool) {
        return lastWooed + 1 hours > block.timestamp;
    }

    function woo(uint256 tokenId) public nonReentrant { 
        // Our GF is sleeping until all her relationships have been started.
        require(totalSupply() == MAX_SUPPLY, "Our GF is sleeping.");
        // Please be respectful of other people's relationships with our GF.
        require(ownerOf(tokenId) == _msgSender(), "That isn't your relationship.");
        // Our GF gets tired for a bit after she is wooed.
        require(!isGfTired(), "Our GF is tired.");
        require(soulmate == address(0), "Our GF has found her soulmate.");

        relationshipScores[tokenId] += 1;
        lastWooed = block.timestamp;

        emit Wooed(_msgSender(), tokenId, relationshipScores[tokenId]);

        // If your relationship score goes to 30, you become Our GF's soulmate
        if (relationshipScores[tokenId] == 30) {
            soulmate = _msgSender();
            _safeMint(_msgSender(), MAX_SUPPLY);
            // Our GF's soulmate gets half the mint revenue and Our GF's heart
            payable(_msgSender()).transfer(mintRevenue / 2);
        }
    }

    function creatorWithdraw() public nonReentrant onlyOwner {
        uint256 claimableAmount = (mintRevenue / 2) - creatorShareClaimed;
        creatorShareClaimed += claimableAmount;
        payable(owner()).transfer(claimableAmount);
    }

    function relationshipStatus(uint256 tokenId) public view returns (string memory) {
        uint256 relationshipScore = relationshipScores[tokenId];
        if (relationshipScore < 1) {
            return "Stranger";
        } else if (relationshipScore < 2) {
            return "Friend";
        } else if (relationshipScore < 10) {
            return "Someone Special";
        } else if (relationshipScore < 30) {
            return "Lover";
        } else {
            return "Soulmate";
        }
    }

    function relationshipLevel(uint256 tokenId) internal view returns (string memory) {
        uint256 relationshipScore = relationshipScores[tokenId];
        if (relationshipScore < 1) {
            return "1";
        } else if (relationshipScore < 2) {
            return "2";
        } else if (relationshipScore < 10) {
            return "3";
        } else if (relationshipScore < 30) {
            return "4";
        } else {
            return "5";
        }
    }

    function howIsSheFeeling() public view returns (string memory) {
        if (totalSupply() < MAX_SUPPLY) {
            return "Asleep.";
        } else if (isGfTired()) {
            return "Tired.";
        } else {
            // This means she can be wooed
            return "Excited to see you.";
        }
    }

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        if (tokenId == 7777) {
            return string(abi.encodePacked('data:application/json;base64,', Base64.encode(bytes(string(abi.encodePacked('{"name": "Asami (v0.1)`s Heart", "description": "Asami has found her soulmate.", "animation_url": "https://assets.idolresearchersapi.com/ASAMI-HEART.mp4", "attributes": [ { "trait_type": "Feels", "value": "Fulfilled" } ], "image": "https://assets.idolresearchersapi.com/ASAMI-HEART.png"}'))))));
        }

        string memory paddedTokenId = Strings.toString(tokenId);
        if (tokenId < 10) {
            paddedTokenId = string(abi.encodePacked('000', Strings.toString(tokenId)));
        } else if (tokenId < 100) {
            paddedTokenId = string(abi.encodePacked('00', Strings.toString(tokenId)));
        } else if (tokenId < 1000) {
            paddedTokenId = string(abi.encodePacked('0', Strings.toString(tokenId)));
        }

        uint256 rand = uint256(keccak256(abi.encodePacked(tokenId)));
        string memory imageUrl = string(abi.encodePacked('https://assets.idolresearchersapi.com/ASAMI-', paddedTokenId, '-' , relationshipLevel(tokenId), '.svg'));

        return string(abi.encodePacked('data:application/json;base64,', Base64.encode(bytes(string(abi.encodePacked('{"name": "Asami (v0.1) #', paddedTokenId, '", "description": "Asami is looking for her soulmate.", "attributes": [ { "trait_type": "Relationship Status", "', relationshipStatus(tokenId) , '" }, { "trait_type": "Alignment", "value": "', tokenId % 2 == 0 ? 'Light' : 'Dark', '" }, { "trait_type": "Auspicious Number", "value": ', Strings.toString(tokenId % 7 + 1) , ' }, { "trait_type": "Zodiac", "value": "Scorpio" }, { "trait_type": "Anon Let`s", "value": "', HOBBIES[rand % HOBBIES.length], '" } ], "image": "', imageUrl, '"}'))))));
    }
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

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

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 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 6 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 7 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 8 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 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 10 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 11 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 12 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 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": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_wooer","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newScore","type":"uint256"}],"name":"Wooed","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"howIsSheFeeling","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"lastWooed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRevenue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"relationshipScores","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"relationshipStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[],"name":"soulmate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startARelationship","outputs":[],"stateMutability":"payable","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":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"woo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600a6102e081815269506c617920766964796160b01b61030052608090815260096103208181526822b0ba103930b6b2b760b91b6103405260a052600b6103609081526a576174636820616e696d6560a81b6103805260c05260066103a081815265437564646c6560d01b6103c05260e052600c6103e09081526b476f206f6e20612068696b6560a01b61040052610100526012610420908152712932b0b2103a379032b0b1b41037ba3432b960711b61044052610120526011610460818152702734b3b43a1037b7103a3432903a37bbb760791b61048052610140526104a0818152700aec2d8d640dedc40e8d0ca40c4cac2c6d607b1b6104c052610160526104e092835268526f6c6520706c617960b81b6105005261018092909252600d6105208181526c29b437b8103a37b3b2ba3432b960991b610540526101a0526105609485526952656465636f7261746560b01b610580526101c0949094526105a09384526c476f20746f207468652067796d60981b6105c0526101e09390935260056105e08181526444616e636560d81b610600526102005261062093845265151c985d995b60d21b610640526102209390935260146106609081527f476f737369702061626f757420667269656e64730000000000000000000000006106805261024052600e6106a09081526d476f207369676874736565696e6760901b6106c05261026052600f6106e09081526e436c65616e2074686520686f75736560881b610700526102805260106107209081526f4d616b6520686f6d65206d6f7669657360801b610740526102a0526107a060405261076092835264119a59da1d60da1b610780526102c0929092526200027b9190601362000372565b503480156200028957600080fd5b50604051806040016040528060058152602001644173616d6960d81b815250604051806040016040528060058152602001644153414d4960d81b8152508160009080519060200190620002de929190620003d6565b508051620002f4906001906020840190620003d6565b505050620003116200030b6200031c60201b60201c565b62000320565b6001600b556200051b565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620003c4579160200282015b82811115620003c45782518051620003b3918491602090910190620003d6565b509160200191906001019062000393565b50620003d292915062000461565b5090565b828054620003e490620004de565b90600052602060002090601f01602090048101928262000408576000855562000453565b82601f106200042357805160ff191683800117855562000453565b8280016001018555821562000453579182015b828111156200045357825182559160200191906001019062000436565b50620003d292915062000482565b80821115620003d257600062000478828262000499565b5060010162000461565b5b80821115620003d2576000815560010162000483565b508054620004a790620004de565b6000825580601f10620004bb5750620004db565b601f016020900490600052602060002090810190620004db919062000482565b50565b600281046001821680620004f357607f821691505b602082108114156200051557634e487b7160e01b600052602260045260246000fd5b50919050565b613261806200052b6000396000f3fe6080604052600436106101cd5760003560e01c806370a08231116100f7578063b88d4fde11610095578063e7c4858a11610064578063e7c4858a146104c0578063e985e9c5146104d5578063eb660e77146104f5578063f2fde38b14610515576101cd565b8063b88d4fde14610456578063c13ec1f614610476578063c87b56dd1461048b578063dcc2e438146104ab576101cd565b80638da5cb5b116100d15780638da5cb5b146103ec57806395d89b4114610401578063a22cb46514610416578063ab0254a814610436576101cd565b806370a08231146103a2578063715018a6146103c25780638d859f3e146103d7576101cd565b806332cb6b0c1161016f578063594f32c81161013e578063594f32c81461034557806362e8142a1461034d5780636352211e1461036d57806364ec8bdb1461038d576101cd565b806332cb6b0c146102db57806342842e0e146102f057806344585c25146103105780634f6ccce714610325576101cd565b8063095ea7b3116101ab578063095ea7b31461025757806318160ddd1461027957806323b872dd1461029b5780632f745c59146102bb576101cd565b806301ffc9a7146101d257806306fdde0314610208578063081812fc1461022a575b600080fd5b3480156101de57600080fd5b506101f26101ed3660046121ca565b610535565b6040516101ff919061293b565b60405180910390f35b34801561021457600080fd5b5061021d61057b565b6040516101ff9190612946565b34801561023657600080fd5b5061024a610245366004612202565b61060e565b6040516101ff91906128ca565b34801561026357600080fd5b506102776102723660046121a1565b61065a565b005b34801561028557600080fd5b5061028e6106f2565b6040516101ff91906128c1565b3480156102a757600080fd5b506102776102b6366004612060565b6106f8565b3480156102c757600080fd5b5061028e6102d63660046121a1565b610730565b3480156102e757600080fd5b5061028e610782565b3480156102fc57600080fd5b5061027761030b366004612060565b610788565b34801561031c57600080fd5b5061021d6107a3565b34801561033157600080fd5b5061028e610340366004612202565b610871565b6102776108cc565b34801561035957600080fd5b5061021d610368366004612202565b6109c9565b34801561037957600080fd5b5061024a610388366004612202565b610b2c565b34801561039957600080fd5b50610277610b61565b3480156103ae57600080fd5b5061028e6103bd36600461200d565b610c49565b3480156103ce57600080fd5b50610277610c8d565b3480156103e357600080fd5b5061028e610cd8565b3480156103f857600080fd5b5061024a610ce3565b34801561040d57600080fd5b5061021d610cf2565b34801561042257600080fd5b50610277610431366004612167565b610d01565b34801561044257600080fd5b5061028e610451366004612202565b610dcf565b34801561046257600080fd5b5061027761047136600461209b565b610de1565b34801561048257600080fd5b5061028e610e20565b34801561049757600080fd5b5061021d6104a6366004612202565b610e26565b3480156104b757600080fd5b5061024a611098565b3480156104cc57600080fd5b5061028e6110a7565b3480156104e157600080fd5b506101f26104f036600461202e565b6110ad565b34801561050157600080fd5b50610277610510366004612202565b6110db565b34801561052157600080fd5b5061027761053036600461200d565b6112d6565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610573575061057382611347565b90505b919050565b60606000805461058a9061312f565b80601f01602080910402602001604051908101604052809291908181526020018280546105b69061312f565b80156106035780601f106105d857610100808354040283529160200191610603565b820191906000526020600020905b8154815290600101906020018083116105e657829003601f168201915b505050505090505b90565b6000610619826113b9565b61063e5760405162461bcd60e51b815260040161063590612d41565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061066582610b2c565b9050806001600160a01b0316836001600160a01b031614156106995760405162461bcd60e51b815260040161063590612e1f565b806001600160a01b03166106ab6113d6565b6001600160a01b031614806106c757506106c7816104f06113d6565b6106e35760405162461bcd60e51b815260040161063590612bbe565b6106ed83836113da565b505050565b60085490565b6107096107036113d6565b82611448565b6107255760405162461bcd60e51b815260040161063590612ed9565b6106ed8383836114cd565b600061073b83610c49565b82106107595760405162461bcd60e51b815260040161063590612959565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b611e6181565b6106ed83838360405180602001604052806000815250610de1565b6060611e616107b06106f2565b10156107f0575060408051808201909152600781527f41736c6565702e00000000000000000000000000000000000000000000000000602082015261060b565b6107f86115fa565b15610837575060408051808201909152600681527f54697265642e0000000000000000000000000000000000000000000000000000602082015261060b565b5060408051808201909152601381527f4578636974656420746f2073656520796f752e00000000000000000000000000602082015261060b565b600061087b6106f2565b82106108995760405162461bcd60e51b815260040161063590612fa4565b600882815481106108ba57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6002600b5414156108ef5760405162461bcd60e51b81526004016106359061305e565b6002600b553466f8b0a10e4700001461091a5760405162461bcd60e51b815260040161063590612e7c565b611e616109256106f2565b106109425760405162461bcd60e51b815260040161063590613001565b600d546001600160a01b03161561096b5760405162461bcd60e51b815260040161063590612aa7565b6001600c60006109796106f2565b81526020019081526020016000208190555066f8b0a10e470000600f60008282546109a491906130a1565b909155506109c290506109b56113d6565b6109bd6106f2565b611613565b6001600b55565b6000818152600c60205260409020546060906001811015610a1f57505060408051808201909152600881527f537472616e6765720000000000000000000000000000000000000000000000006020820152610576565b6002811015610a6357505060408051808201909152600681527f467269656e6400000000000000000000000000000000000000000000000000006020820152610576565b600a811015610aa757505060408051808201909152600f81527f536f6d656f6e65205370656369616c00000000000000000000000000000000006020820152610576565b601e811015610aeb57505060408051808201909152600581527f4c6f7665720000000000000000000000000000000000000000000000000000006020820152610576565b505060408051808201909152600881527f536f756c6d6174650000000000000000000000000000000000000000000000006020820152610576565b50919050565b6000818152600260205260408120546001600160a01b0316806105735760405162461bcd60e51b815260040161063590612caf565b6002600b541415610b845760405162461bcd60e51b81526004016106359061305e565b6002600b55610b916113d6565b6001600160a01b0316610ba2610ce3565b6001600160a01b031614610bc85760405162461bcd60e51b815260040161063590612d8d565b60006010546002600f54610bdc91906130b9565b610be691906130ec565b90508060106000828254610bfa91906130a1565b90915550610c089050610ce3565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610c40573d6000803e3d6000fd5b50506001600b55565b60006001600160a01b038216610c715760405162461bcd60e51b815260040161063590612c52565b506001600160a01b031660009081526003602052604090205490565b610c956113d6565b6001600160a01b0316610ca6610ce3565b6001600160a01b031614610ccc5760405162461bcd60e51b815260040161063590612d8d565b610cd66000611631565b565b66f8b0a10e47000081565b600a546001600160a01b031690565b60606001805461058a9061312f565b610d096113d6565b6001600160a01b0316826001600160a01b03161415610d3a5760405162461bcd60e51b815260040161063590612b3b565b8060056000610d476113d6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d8b6113d6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610dc3919061293b565b60405180910390a35050565b600c6020526000908152604090205481565b610df2610dec6113d6565b83611448565b610e0e5760405162461bcd60e51b815260040161063590612ed9565b610e1a84848484611683565b50505050565b600f5481565b606081611e611415610e7e57610e58604051602001610e449061247e565b6040516020818303038152906040526116b6565b604051602001610e6891906125d9565b6040516020818303038152906040529050610576565b6000610e8983611861565b9050600a831015610ec357610e9d83611861565b604051602001610ead9190612439565b6040516020818303038152906040529050610f1a565b6064831015610ee557610ed583611861565b604051602001610ead91906126ef565b6103e8831015610f1a57610ef883611861565b604051602001610f089190612410565b60405160208183030381529060405290505b600083604051602001610f2d91906128c1565b6040516020818303038152906040528051906020012060001c9050600082610f5486611994565b604051602001610f6592919061261e565b604051602081830303815290604052905061106f83610f83876109c9565b610f8e60028961317f565b15610fce576040518060400160405280600481526020017f4461726b00000000000000000000000000000000000000000000000000000000815250611005565b6040518060400160405280600581526020017f4c696768740000000000000000000000000000000000000000000000000000008152505b61102361101360078b61317f565b61101e9060016130a1565b611861565b60118054611031908961317f565b8154811061104f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200186604051602001610e4496959493929190612734565b60405160200161107f91906125d9565b6040516020818303038152906040529350505050919050565b600d546001600160a01b031681565b600e5481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6002600b5414156110fe5760405162461bcd60e51b81526004016106359061305e565b6002600b55611e6161110e6106f2565b1461112b5760405162461bcd60e51b815260040161063590612f6d565b6111336113d6565b6001600160a01b031661114582610b2c565b6001600160a01b03161461116b5760405162461bcd60e51b815260040161063590612c1b565b6111736115fa565b156111905760405162461bcd60e51b815260040161063590612f36565b600d546001600160a01b0316156111b95760405162461bcd60e51b815260040161063590612aa7565b6000818152600c602052604081208054600192906111d89084906130a1565b909155505042600e557fa41348ded2f7bdca31ec42531856e0491b28beda6ef83a18e52c096b9bb5357d61120a6113d6565b6000838152600c6020526040908190205490516112299291859161291a565b60405180910390a16000818152600c6020526040902054601e14156112ce576112506113d6565b600d80546001600160a01b0319166001600160a01b039290921691909117905561128361127b6113d6565b611e61611613565b61128b6113d6565b6001600160a01b03166108fc6002600f546112a691906130b9565b6040518115909202916000818181858888f19350505050158015610c40573d6000803e3d6000fd5b506001600b55565b6112de6113d6565b6001600160a01b03166112ef610ce3565b6001600160a01b0316146113155760405162461bcd60e51b815260040161063590612d8d565b6001600160a01b03811661133b5760405162461bcd60e51b815260040161063590612a13565b61134481611631565b50565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806113aa57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610573575061057382611af1565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061140f82610b2c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611453826113b9565b61146f5760405162461bcd60e51b815260040161063590612b72565b600061147a83610b2c565b9050806001600160a01b0316846001600160a01b031614806114b55750836001600160a01b03166114aa8461060e565b6001600160a01b0316145b806114c557506114c581856110ad565b949350505050565b826001600160a01b03166114e082610b2c565b6001600160a01b0316146115065760405162461bcd60e51b815260040161063590612dc2565b6001600160a01b03821661152c5760405162461bcd60e51b815260040161063590612ade565b611537838383611b23565b6115426000826113da565b6001600160a01b038316600090815260036020526040812080546001929061156b9084906130ec565b90915550506001600160a01b03821660009081526003602052604081208054600192906115999084906130a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600042600e54610e1061160d91906130a1565b11905090565b61162d828260405180602001604052806000815250611bac565b5050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61168e8484846114cd565b61169a84848484611bdf565b610e1a5760405162461bcd60e51b8152600401610635906129b6565b8051606090806116d6575050604080516020810190915260008152610576565b600060036116e58360026130a1565b6116ef91906130b9565b6116fa9060046130cd565b905060006117098260206130a1565b67ffffffffffffffff81111561172f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611759576020820181803683370190505b50905060006040518060600160405280604081526020016131ec604091399050600181016020830160005b868110156117e5576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611784565b5060038606600181146117ff576002811461182b57611853565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152611853565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b60608161188657506040805180820190915260018152600360fc1b6020820152610576565b8160005b81156118b0578061189a81613164565b91506118a99050600a836130b9565b915061188a565b60008167ffffffffffffffff8111156118d957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611903576020820181803683370190505b5090505b84156114c5576119186001836130ec565b9150611925600a8661317f565b6119309060306130a1565b60f81b81838151811061195357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061198d600a866130b9565b9450611907565b6000818152600c602052604090205460609060018110156119ea57505060408051808201909152600181527f31000000000000000000000000000000000000000000000000000000000000006020820152610576565b6002811015611a2e57505060408051808201909152600181527f32000000000000000000000000000000000000000000000000000000000000006020820152610576565b600a811015611a7257505060408051808201909152600181527f33000000000000000000000000000000000000000000000000000000000000006020820152610576565b601e811015611ab657505060408051808201909152600181527f34000000000000000000000000000000000000000000000000000000000000006020820152610576565b505060408051808201909152600181527f35000000000000000000000000000000000000000000000000000000000000006020820152610576565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b611b2e8383836106ed565b6001600160a01b038316611b4a57611b4581611d13565b611b6d565b816001600160a01b0316836001600160a01b031614611b6d57611b6d8382611d57565b6001600160a01b038216611b8957611b8481611df4565b6106ed565b826001600160a01b0316826001600160a01b0316146106ed576106ed8282611ecd565b611bb68383611f11565b611bc36000848484611bdf565b6106ed5760405162461bcd60e51b8152600401610635906129b6565b6000611bf3846001600160a01b0316611ff0565b15611d0857836001600160a01b031663150b7a02611c0f6113d6565b8786866040518563ffffffff1660e01b8152600401611c3194939291906128de565b602060405180830381600087803b158015611c4b57600080fd5b505af1925050508015611c7b575060408051601f3d908101601f19168201909252611c78918101906121e6565b60015b611cd5573d808015611ca9576040519150601f19603f3d011682016040523d82523d6000602084013e611cae565b606091505b508051611ccd5760405162461bcd60e51b8152600401610635906129b6565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506114c5565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611d6484610c49565b611d6e91906130ec565b600083815260076020526040902054909150808214611dc1576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611e06906001906130ec565b60008381526009602052604081205460088054939450909284908110611e3c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611e6b57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611eb157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611ed883610c49565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611f375760405162461bcd60e51b815260040161063590612d0c565b611f40816113b9565b15611f5d5760405162461bcd60e51b815260040161063590612a70565b611f6960008383611b23565b6001600160a01b0382166000908152600360205260408120805460019290611f929084906130a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b80356001600160a01b038116811461057657600080fd5b60006020828403121561201e578081fd5b61202782611ff6565b9392505050565b60008060408385031215612040578081fd5b61204983611ff6565b915061205760208401611ff6565b90509250929050565b600080600060608486031215612074578081fd5b61207d84611ff6565b925061208b60208501611ff6565b9150604084013590509250925092565b600080600080608085870312156120b0578081fd5b6120b985611ff6565b935060206120c8818701611ff6565b935060408601359250606086013567ffffffffffffffff808211156120eb578384fd5b818801915088601f8301126120fe578384fd5b813581811115612110576121106131bf565b604051601f8201601f1916810185018381118282101715612133576121336131bf565b60405281815283820185018b1015612149578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612179578182fd5b61218283611ff6565b915060208301358015158114612196578182fd5b809150509250929050565b600080604083850312156121b3578182fd5b6121bc83611ff6565b946020939093013593505050565b6000602082840312156121db578081fd5b8135612027816131d5565b6000602082840312156121f7578081fd5b8151612027816131d5565b600060208284031215612213578081fd5b5035919050565b60008151808452612232816020860160208601613103565b601f01601f19169290920160200192915050565b60008151612258818560208601613103565b9290920192915050565b80546000906002810460018083168061227c57607f831692505b602080841082141561229c57634e487b7160e01b86526022600452602486fd5b8180156122b057600181146122c1576122ee565b60ff198616895284890196506122ee565b6122ca88613095565b60005b868110156122e65781548b8201529085019083016122cd565b505084890196505b50505050505092915050565b7f227d000000000000000000000000000000000000000000000000000000000000815260020190565b7f22207d205d2c2022696d616765223a2022000000000000000000000000000000815260110190565b7f207d2c207b202274726169745f74797065223a20225a6f64696163222c20227681527f616c7565223a202253636f7270696f22207d2c207b202274726169745f74797060208201527f65223a2022416e6f6e204c65746073222c202276616c7565223a2022000000006040820152605c0190565b7f22207d2c207b202274726169745f74797065223a2022417573706963696f757381527f204e756d626572222c202276616c7565223a2000000000000000000000000000602082015260330190565b6000600360fc1b8252825161242c816001850160208701613103565b9190910160010192915050565b60007f303030000000000000000000000000000000000000000000000000000000000082528251612471816003850160208701613103565b9190910160030192915050565b7f7b226e616d65223a20224173616d69202876302e31296073204865617274222c81527f20226465736372697074696f6e223a20224173616d692068617320666f756e6460208201527f2068657220736f756c6d6174652e222c2022616e696d6174696f6e5f75726c2260408201527f3a202268747470733a2f2f6173736574732e69646f6c7265736561726368657260608201527f736170692e636f6d2f4153414d492d48454152542e6d7034222c20226174747260808201527f696275746573223a205b207b202274726169745f74797065223a20224665656c60a08201527f73222c202276616c7565223a202246756c66696c6c656422207d205d2c20226960c08201527f6d616765223a202268747470733a2f2f6173736574732e69646f6c726573656160e08201527f7263686572736170692e636f6d2f4153414d492d48454152542e706e67227d0061010082015261011f0190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008252825161261181601d850160208701613103565b91909101601d0192915050565b60007f68747470733a2f2f6173736574732e69646f6c7265736561726368657273617082527f692e636f6d2f4153414d492d00000000000000000000000000000000000000006020830152835161267c81602c850160208801613103565b7f2d00000000000000000000000000000000000000000000000000000000000000602c9184019182015283516126b981602d840160208801613103565b7f2e73766700000000000000000000000000000000000000000000000000000000602d9290910191820152603101949350505050565b60007f303000000000000000000000000000000000000000000000000000000000000082528251612727816002850160208701613103565b9190910160020192915050565b60007f7b226e616d65223a20224173616d69202876302e3129202300000000000000008252875161276c816018850160208c01613103565b7f222c20226465736372697074696f6e223a20224173616d69206973206c6f6f6b6018918401918201527f696e6720666f722068657220736f756c6d6174652e222c20226174747269627560388201527f746573223a205b207b202274726169745f74797065223a202252656c6174696f60588201527f6e7368697020537461747573222c2022000000000000000000000000000000006078820152875161281b816088840160208c01613103565b7f22207d2c207b202274726169745f74797065223a2022416c69676e6d656e7422608892909101918201527f2c202276616c7565223a2022000000000000000000000000000000000000000060a88201526128b46128af6128a96128a461289e61289961289361288e60b489018f612246565b6123c1565b8c612246565b61234c565b89612262565b612323565b86612246565b6122fa565b9998505050505050505050565b90815260200190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612910608083018461221a565b9695505050505050565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b600060208252612027602083018461221a565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601e908201527f4f75722047462068617320666f756e642068657220736f756c6d6174652e0000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601d908201527f546861742069736e277420796f75722072656c6174696f6e736869702e000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f497420636f73747320302e30372045544820746f20737461727420612072656c60408201527f6174696f6e736869700000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526010908201527f4f75722047462069732074697265642e00000000000000000000000000000000604082015260600190565b60208082526013908201527f4f757220474620697320736c656570696e672e00000000000000000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4f7572204746206973206174206d617820736f6369616c20636170616369747960408201527f2e00000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60009081526020902090565b600082198211156130b4576130b4613193565b500190565b6000826130c8576130c86131a9565b500490565b60008160001904831182151516156130e7576130e7613193565b500290565b6000828210156130fe576130fe613193565b500390565b60005b8381101561311e578181015183820152602001613106565b83811115610e1a5750506000910152565b60028104600182168061314357607f821691505b60208210811415610b2657634e487b7160e01b600052602260045260246000fd5b600060001982141561317857613178613193565b5060010190565b60008261318e5761318e6131a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461134457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122030363575517be7205f7cdb07ed2e28e13c83e8842daee3e46c0cbd73d295761464736f6c63430008000033

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c806370a08231116100f7578063b88d4fde11610095578063e7c4858a11610064578063e7c4858a146104c0578063e985e9c5146104d5578063eb660e77146104f5578063f2fde38b14610515576101cd565b8063b88d4fde14610456578063c13ec1f614610476578063c87b56dd1461048b578063dcc2e438146104ab576101cd565b80638da5cb5b116100d15780638da5cb5b146103ec57806395d89b4114610401578063a22cb46514610416578063ab0254a814610436576101cd565b806370a08231146103a2578063715018a6146103c25780638d859f3e146103d7576101cd565b806332cb6b0c1161016f578063594f32c81161013e578063594f32c81461034557806362e8142a1461034d5780636352211e1461036d57806364ec8bdb1461038d576101cd565b806332cb6b0c146102db57806342842e0e146102f057806344585c25146103105780634f6ccce714610325576101cd565b8063095ea7b3116101ab578063095ea7b31461025757806318160ddd1461027957806323b872dd1461029b5780632f745c59146102bb576101cd565b806301ffc9a7146101d257806306fdde0314610208578063081812fc1461022a575b600080fd5b3480156101de57600080fd5b506101f26101ed3660046121ca565b610535565b6040516101ff919061293b565b60405180910390f35b34801561021457600080fd5b5061021d61057b565b6040516101ff9190612946565b34801561023657600080fd5b5061024a610245366004612202565b61060e565b6040516101ff91906128ca565b34801561026357600080fd5b506102776102723660046121a1565b61065a565b005b34801561028557600080fd5b5061028e6106f2565b6040516101ff91906128c1565b3480156102a757600080fd5b506102776102b6366004612060565b6106f8565b3480156102c757600080fd5b5061028e6102d63660046121a1565b610730565b3480156102e757600080fd5b5061028e610782565b3480156102fc57600080fd5b5061027761030b366004612060565b610788565b34801561031c57600080fd5b5061021d6107a3565b34801561033157600080fd5b5061028e610340366004612202565b610871565b6102776108cc565b34801561035957600080fd5b5061021d610368366004612202565b6109c9565b34801561037957600080fd5b5061024a610388366004612202565b610b2c565b34801561039957600080fd5b50610277610b61565b3480156103ae57600080fd5b5061028e6103bd36600461200d565b610c49565b3480156103ce57600080fd5b50610277610c8d565b3480156103e357600080fd5b5061028e610cd8565b3480156103f857600080fd5b5061024a610ce3565b34801561040d57600080fd5b5061021d610cf2565b34801561042257600080fd5b50610277610431366004612167565b610d01565b34801561044257600080fd5b5061028e610451366004612202565b610dcf565b34801561046257600080fd5b5061027761047136600461209b565b610de1565b34801561048257600080fd5b5061028e610e20565b34801561049757600080fd5b5061021d6104a6366004612202565b610e26565b3480156104b757600080fd5b5061024a611098565b3480156104cc57600080fd5b5061028e6110a7565b3480156104e157600080fd5b506101f26104f036600461202e565b6110ad565b34801561050157600080fd5b50610277610510366004612202565b6110db565b34801561052157600080fd5b5061027761053036600461200d565b6112d6565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610573575061057382611347565b90505b919050565b60606000805461058a9061312f565b80601f01602080910402602001604051908101604052809291908181526020018280546105b69061312f565b80156106035780601f106105d857610100808354040283529160200191610603565b820191906000526020600020905b8154815290600101906020018083116105e657829003601f168201915b505050505090505b90565b6000610619826113b9565b61063e5760405162461bcd60e51b815260040161063590612d41565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061066582610b2c565b9050806001600160a01b0316836001600160a01b031614156106995760405162461bcd60e51b815260040161063590612e1f565b806001600160a01b03166106ab6113d6565b6001600160a01b031614806106c757506106c7816104f06113d6565b6106e35760405162461bcd60e51b815260040161063590612bbe565b6106ed83836113da565b505050565b60085490565b6107096107036113d6565b82611448565b6107255760405162461bcd60e51b815260040161063590612ed9565b6106ed8383836114cd565b600061073b83610c49565b82106107595760405162461bcd60e51b815260040161063590612959565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b611e6181565b6106ed83838360405180602001604052806000815250610de1565b6060611e616107b06106f2565b10156107f0575060408051808201909152600781527f41736c6565702e00000000000000000000000000000000000000000000000000602082015261060b565b6107f86115fa565b15610837575060408051808201909152600681527f54697265642e0000000000000000000000000000000000000000000000000000602082015261060b565b5060408051808201909152601381527f4578636974656420746f2073656520796f752e00000000000000000000000000602082015261060b565b600061087b6106f2565b82106108995760405162461bcd60e51b815260040161063590612fa4565b600882815481106108ba57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6002600b5414156108ef5760405162461bcd60e51b81526004016106359061305e565b6002600b553466f8b0a10e4700001461091a5760405162461bcd60e51b815260040161063590612e7c565b611e616109256106f2565b106109425760405162461bcd60e51b815260040161063590613001565b600d546001600160a01b03161561096b5760405162461bcd60e51b815260040161063590612aa7565b6001600c60006109796106f2565b81526020019081526020016000208190555066f8b0a10e470000600f60008282546109a491906130a1565b909155506109c290506109b56113d6565b6109bd6106f2565b611613565b6001600b55565b6000818152600c60205260409020546060906001811015610a1f57505060408051808201909152600881527f537472616e6765720000000000000000000000000000000000000000000000006020820152610576565b6002811015610a6357505060408051808201909152600681527f467269656e6400000000000000000000000000000000000000000000000000006020820152610576565b600a811015610aa757505060408051808201909152600f81527f536f6d656f6e65205370656369616c00000000000000000000000000000000006020820152610576565b601e811015610aeb57505060408051808201909152600581527f4c6f7665720000000000000000000000000000000000000000000000000000006020820152610576565b505060408051808201909152600881527f536f756c6d6174650000000000000000000000000000000000000000000000006020820152610576565b50919050565b6000818152600260205260408120546001600160a01b0316806105735760405162461bcd60e51b815260040161063590612caf565b6002600b541415610b845760405162461bcd60e51b81526004016106359061305e565b6002600b55610b916113d6565b6001600160a01b0316610ba2610ce3565b6001600160a01b031614610bc85760405162461bcd60e51b815260040161063590612d8d565b60006010546002600f54610bdc91906130b9565b610be691906130ec565b90508060106000828254610bfa91906130a1565b90915550610c089050610ce3565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015610c40573d6000803e3d6000fd5b50506001600b55565b60006001600160a01b038216610c715760405162461bcd60e51b815260040161063590612c52565b506001600160a01b031660009081526003602052604090205490565b610c956113d6565b6001600160a01b0316610ca6610ce3565b6001600160a01b031614610ccc5760405162461bcd60e51b815260040161063590612d8d565b610cd66000611631565b565b66f8b0a10e47000081565b600a546001600160a01b031690565b60606001805461058a9061312f565b610d096113d6565b6001600160a01b0316826001600160a01b03161415610d3a5760405162461bcd60e51b815260040161063590612b3b565b8060056000610d476113d6565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d8b6113d6565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610dc3919061293b565b60405180910390a35050565b600c6020526000908152604090205481565b610df2610dec6113d6565b83611448565b610e0e5760405162461bcd60e51b815260040161063590612ed9565b610e1a84848484611683565b50505050565b600f5481565b606081611e611415610e7e57610e58604051602001610e449061247e565b6040516020818303038152906040526116b6565b604051602001610e6891906125d9565b6040516020818303038152906040529050610576565b6000610e8983611861565b9050600a831015610ec357610e9d83611861565b604051602001610ead9190612439565b6040516020818303038152906040529050610f1a565b6064831015610ee557610ed583611861565b604051602001610ead91906126ef565b6103e8831015610f1a57610ef883611861565b604051602001610f089190612410565b60405160208183030381529060405290505b600083604051602001610f2d91906128c1565b6040516020818303038152906040528051906020012060001c9050600082610f5486611994565b604051602001610f6592919061261e565b604051602081830303815290604052905061106f83610f83876109c9565b610f8e60028961317f565b15610fce576040518060400160405280600481526020017f4461726b00000000000000000000000000000000000000000000000000000000815250611005565b6040518060400160405280600581526020017f4c696768740000000000000000000000000000000000000000000000000000008152505b61102361101360078b61317f565b61101e9060016130a1565b611861565b60118054611031908961317f565b8154811061104f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200186604051602001610e4496959493929190612734565b60405160200161107f91906125d9565b6040516020818303038152906040529350505050919050565b600d546001600160a01b031681565b600e5481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6002600b5414156110fe5760405162461bcd60e51b81526004016106359061305e565b6002600b55611e6161110e6106f2565b1461112b5760405162461bcd60e51b815260040161063590612f6d565b6111336113d6565b6001600160a01b031661114582610b2c565b6001600160a01b03161461116b5760405162461bcd60e51b815260040161063590612c1b565b6111736115fa565b156111905760405162461bcd60e51b815260040161063590612f36565b600d546001600160a01b0316156111b95760405162461bcd60e51b815260040161063590612aa7565b6000818152600c602052604081208054600192906111d89084906130a1565b909155505042600e557fa41348ded2f7bdca31ec42531856e0491b28beda6ef83a18e52c096b9bb5357d61120a6113d6565b6000838152600c6020526040908190205490516112299291859161291a565b60405180910390a16000818152600c6020526040902054601e14156112ce576112506113d6565b600d80546001600160a01b0319166001600160a01b039290921691909117905561128361127b6113d6565b611e61611613565b61128b6113d6565b6001600160a01b03166108fc6002600f546112a691906130b9565b6040518115909202916000818181858888f19350505050158015610c40573d6000803e3d6000fd5b506001600b55565b6112de6113d6565b6001600160a01b03166112ef610ce3565b6001600160a01b0316146113155760405162461bcd60e51b815260040161063590612d8d565b6001600160a01b03811661133b5760405162461bcd60e51b815260040161063590612a13565b61134481611631565b50565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806113aa57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610573575061057382611af1565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061140f82610b2c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611453826113b9565b61146f5760405162461bcd60e51b815260040161063590612b72565b600061147a83610b2c565b9050806001600160a01b0316846001600160a01b031614806114b55750836001600160a01b03166114aa8461060e565b6001600160a01b0316145b806114c557506114c581856110ad565b949350505050565b826001600160a01b03166114e082610b2c565b6001600160a01b0316146115065760405162461bcd60e51b815260040161063590612dc2565b6001600160a01b03821661152c5760405162461bcd60e51b815260040161063590612ade565b611537838383611b23565b6115426000826113da565b6001600160a01b038316600090815260036020526040812080546001929061156b9084906130ec565b90915550506001600160a01b03821660009081526003602052604081208054600192906115999084906130a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600042600e54610e1061160d91906130a1565b11905090565b61162d828260405180602001604052806000815250611bac565b5050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61168e8484846114cd565b61169a84848484611bdf565b610e1a5760405162461bcd60e51b8152600401610635906129b6565b8051606090806116d6575050604080516020810190915260008152610576565b600060036116e58360026130a1565b6116ef91906130b9565b6116fa9060046130cd565b905060006117098260206130a1565b67ffffffffffffffff81111561172f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611759576020820181803683370190505b50905060006040518060600160405280604081526020016131ec604091399050600181016020830160005b868110156117e5576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611784565b5060038606600181146117ff576002811461182b57611853565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152611853565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b60608161188657506040805180820190915260018152600360fc1b6020820152610576565b8160005b81156118b0578061189a81613164565b91506118a99050600a836130b9565b915061188a565b60008167ffffffffffffffff8111156118d957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611903576020820181803683370190505b5090505b84156114c5576119186001836130ec565b9150611925600a8661317f565b6119309060306130a1565b60f81b81838151811061195357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061198d600a866130b9565b9450611907565b6000818152600c602052604090205460609060018110156119ea57505060408051808201909152600181527f31000000000000000000000000000000000000000000000000000000000000006020820152610576565b6002811015611a2e57505060408051808201909152600181527f32000000000000000000000000000000000000000000000000000000000000006020820152610576565b600a811015611a7257505060408051808201909152600181527f33000000000000000000000000000000000000000000000000000000000000006020820152610576565b601e811015611ab657505060408051808201909152600181527f34000000000000000000000000000000000000000000000000000000000000006020820152610576565b505060408051808201909152600181527f35000000000000000000000000000000000000000000000000000000000000006020820152610576565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b611b2e8383836106ed565b6001600160a01b038316611b4a57611b4581611d13565b611b6d565b816001600160a01b0316836001600160a01b031614611b6d57611b6d8382611d57565b6001600160a01b038216611b8957611b8481611df4565b6106ed565b826001600160a01b0316826001600160a01b0316146106ed576106ed8282611ecd565b611bb68383611f11565b611bc36000848484611bdf565b6106ed5760405162461bcd60e51b8152600401610635906129b6565b6000611bf3846001600160a01b0316611ff0565b15611d0857836001600160a01b031663150b7a02611c0f6113d6565b8786866040518563ffffffff1660e01b8152600401611c3194939291906128de565b602060405180830381600087803b158015611c4b57600080fd5b505af1925050508015611c7b575060408051601f3d908101601f19168201909252611c78918101906121e6565b60015b611cd5573d808015611ca9576040519150601f19603f3d011682016040523d82523d6000602084013e611cae565b606091505b508051611ccd5760405162461bcd60e51b8152600401610635906129b6565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506114c5565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611d6484610c49565b611d6e91906130ec565b600083815260076020526040902054909150808214611dc1576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611e06906001906130ec565b60008381526009602052604081205460088054939450909284908110611e3c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611e6b57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611eb157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611ed883610c49565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611f375760405162461bcd60e51b815260040161063590612d0c565b611f40816113b9565b15611f5d5760405162461bcd60e51b815260040161063590612a70565b611f6960008383611b23565b6001600160a01b0382166000908152600360205260408120805460019290611f929084906130a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b80356001600160a01b038116811461057657600080fd5b60006020828403121561201e578081fd5b61202782611ff6565b9392505050565b60008060408385031215612040578081fd5b61204983611ff6565b915061205760208401611ff6565b90509250929050565b600080600060608486031215612074578081fd5b61207d84611ff6565b925061208b60208501611ff6565b9150604084013590509250925092565b600080600080608085870312156120b0578081fd5b6120b985611ff6565b935060206120c8818701611ff6565b935060408601359250606086013567ffffffffffffffff808211156120eb578384fd5b818801915088601f8301126120fe578384fd5b813581811115612110576121106131bf565b604051601f8201601f1916810185018381118282101715612133576121336131bf565b60405281815283820185018b1015612149578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612179578182fd5b61218283611ff6565b915060208301358015158114612196578182fd5b809150509250929050565b600080604083850312156121b3578182fd5b6121bc83611ff6565b946020939093013593505050565b6000602082840312156121db578081fd5b8135612027816131d5565b6000602082840312156121f7578081fd5b8151612027816131d5565b600060208284031215612213578081fd5b5035919050565b60008151808452612232816020860160208601613103565b601f01601f19169290920160200192915050565b60008151612258818560208601613103565b9290920192915050565b80546000906002810460018083168061227c57607f831692505b602080841082141561229c57634e487b7160e01b86526022600452602486fd5b8180156122b057600181146122c1576122ee565b60ff198616895284890196506122ee565b6122ca88613095565b60005b868110156122e65781548b8201529085019083016122cd565b505084890196505b50505050505092915050565b7f227d000000000000000000000000000000000000000000000000000000000000815260020190565b7f22207d205d2c2022696d616765223a2022000000000000000000000000000000815260110190565b7f207d2c207b202274726169745f74797065223a20225a6f64696163222c20227681527f616c7565223a202253636f7270696f22207d2c207b202274726169745f74797060208201527f65223a2022416e6f6e204c65746073222c202276616c7565223a2022000000006040820152605c0190565b7f22207d2c207b202274726169745f74797065223a2022417573706963696f757381527f204e756d626572222c202276616c7565223a2000000000000000000000000000602082015260330190565b6000600360fc1b8252825161242c816001850160208701613103565b9190910160010192915050565b60007f303030000000000000000000000000000000000000000000000000000000000082528251612471816003850160208701613103565b9190910160030192915050565b7f7b226e616d65223a20224173616d69202876302e31296073204865617274222c81527f20226465736372697074696f6e223a20224173616d692068617320666f756e6460208201527f2068657220736f756c6d6174652e222c2022616e696d6174696f6e5f75726c2260408201527f3a202268747470733a2f2f6173736574732e69646f6c7265736561726368657260608201527f736170692e636f6d2f4153414d492d48454152542e6d7034222c20226174747260808201527f696275746573223a205b207b202274726169745f74797065223a20224665656c60a08201527f73222c202276616c7565223a202246756c66696c6c656422207d205d2c20226960c08201527f6d616765223a202268747470733a2f2f6173736574732e69646f6c726573656160e08201527f7263686572736170692e636f6d2f4153414d492d48454152542e706e67227d0061010082015261011f0190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008252825161261181601d850160208701613103565b91909101601d0192915050565b60007f68747470733a2f2f6173736574732e69646f6c7265736561726368657273617082527f692e636f6d2f4153414d492d00000000000000000000000000000000000000006020830152835161267c81602c850160208801613103565b7f2d00000000000000000000000000000000000000000000000000000000000000602c9184019182015283516126b981602d840160208801613103565b7f2e73766700000000000000000000000000000000000000000000000000000000602d9290910191820152603101949350505050565b60007f303000000000000000000000000000000000000000000000000000000000000082528251612727816002850160208701613103565b9190910160020192915050565b60007f7b226e616d65223a20224173616d69202876302e3129202300000000000000008252875161276c816018850160208c01613103565b7f222c20226465736372697074696f6e223a20224173616d69206973206c6f6f6b6018918401918201527f696e6720666f722068657220736f756c6d6174652e222c20226174747269627560388201527f746573223a205b207b202274726169745f74797065223a202252656c6174696f60588201527f6e7368697020537461747573222c2022000000000000000000000000000000006078820152875161281b816088840160208c01613103565b7f22207d2c207b202274726169745f74797065223a2022416c69676e6d656e7422608892909101918201527f2c202276616c7565223a2022000000000000000000000000000000000000000060a88201526128b46128af6128a96128a461289e61289961289361288e60b489018f612246565b6123c1565b8c612246565b61234c565b89612262565b612323565b86612246565b6122fa565b9998505050505050505050565b90815260200190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612910608083018461221a565b9695505050505050565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b600060208252612027602083018461221a565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601e908201527f4f75722047462068617320666f756e642068657220736f756c6d6174652e0000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601d908201527f546861742069736e277420796f75722072656c6174696f6e736869702e000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f497420636f73747320302e30372045544820746f20737461727420612072656c60408201527f6174696f6e736869700000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526010908201527f4f75722047462069732074697265642e00000000000000000000000000000000604082015260600190565b60208082526013908201527f4f757220474620697320736c656570696e672e00000000000000000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4f7572204746206973206174206d617820736f6369616c20636170616369747960408201527f2e00000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60009081526020902090565b600082198211156130b4576130b4613193565b500190565b6000826130c8576130c86131a9565b500490565b60008160001904831182151516156130e7576130e7613193565b500290565b6000828210156130fe576130fe613193565b500390565b60005b8381101561311e578181015183820152602001613106565b83811115610e1a5750506000910152565b60028104600182168061314357607f821691505b60208210811415610b2657634e487b7160e01b600052602260045260246000fd5b600060001982141561317857613178613193565b5060010190565b60008261318e5761318e6131a9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461134457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122030363575517be7205f7cdb07ed2e28e13c83e8842daee3e46c0cbd73d295761464736f6c63430008000033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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