Contract 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a 3

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2f8d247da73c529833a78e04b8219ebffe8179cedf220e8481592d9623ab9a7cUnwrap283679522022-10-04 16:47:3813 hrs 39 mins ago0xfacc632b4abe9173afafb58b75f933b33b1b31e6 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00004545
0x4e9dcfca5e04a0a52da7de361d0f7b4be2a76fb8801bebd80e9f3f6cabaa6f7cUnwrap282516002022-10-04 3:04:481 day 3 hrs ago0xec7147565efcd1131a5a091c9b6c2d8fd0aeac8c IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003396
0x854cf1fc3fd10e74060a1b1ece1fd72f8f91b6a65d5f8c82f461ed3bfe0ee6d0Unwrap282515882022-10-04 3:04:421 day 3 hrs ago0xec7147565efcd1131a5a091c9b6c2d8fd0aeac8c IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003617
0xbb4436ae7d387f0ff94aecaa3858bb26ca52528698fabd76b430465605f7cf6bUnwrap282384942022-10-04 0:38:401 day 5 hrs ago0xc68f411bed6acd3c03fabe72d238dcf9428b7629 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00004246
0x19f7bb21563f96d78f1299e86f61224076185c122ce5b991f374645f9bb7facfSet Approval For...281392512022-10-03 9:19:401 day 21 hrs ago0x76ea289c8dc50446ea604b89cbbfaf6086fd38a6 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00001289
0xec245f90f27212c138878509951853da097de4bd826cf2f929cc9c8bf42f54f7Set Approval For...281389372022-10-03 9:17:291 day 21 hrs ago0x76ea289c8dc50446ea604b89cbbfaf6086fd38a6 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00001488
0xdeb42e2f6bf51372b7706ce9423d93fa1597433937482e9f56f3ac8247cc4a44Wrap281018202022-10-03 4:48:322 days 1 hr ago0x00d153ab2ef484abbca29f8c896808687ddb54b3 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.0000368
0x10cb977aa626f06ac07d8ceb64d266886075e5ead82f0cdbded8c1d091b951f0Wrap281017972022-10-03 4:48:212 days 1 hr ago0x00d153ab2ef484abbca29f8c896808687ddb54b3 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003529
0x5d27d856323903b27b6dad738371978ec249f74d5bfc5dce172088c2aa28f55cUnwrap280543872022-10-02 20:48:122 days 9 hrs ago0xb75e6a898f4d7dd32efea8d27094432b0f90618d IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002841
0x3fb23e4574d28d5cec66b2256e3fda55da207c57f9de33894f73341762f4edd4Unwrap280514362022-10-02 20:08:312 days 10 hrs ago0x40b6a6321c52ad83631259a651283e4eaf942023 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002817
0x46d332666304160917ee24ffa2e8cb9b5c28d7a2ceeb9a159c4a6560fe986fdeUnwrap280513742022-10-02 20:07:392 days 10 hrs ago0x40b6a6321c52ad83631259a651283e4eaf942023 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003038
0xb3e294b6410fe1ad994382c54dd48c8f6ab93c580b05a151fb34bc0927aa6181Unwrap280435592022-10-02 18:44:012 days 11 hrs ago0x5601d73c16fc7790cb934efc8dbb92f81cc6d871 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002817
0x999096d8d5c37f68cd3349987cc14ba0105b5b14662820246b57151bec47402dWrap280434892022-10-02 18:43:112 days 11 hrs ago0x5601d73c16fc7790cb934efc8dbb92f81cc6d871 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003547
0x27381146f0e67eaa656847717886f7fe32f5bfc9cc533a4597ac62d73c234668Wrap280434752022-10-02 18:43:002 days 11 hrs ago0x5601d73c16fc7790cb934efc8dbb92f81cc6d871 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003622
0x948376e12556230941b1a340ecb14f7d7593d58fb07dd81de7cd866a7db72fd3Unwrap280268172022-10-02 16:11:542 days 14 hrs ago0x246181547aadb8d8060b20158762cef81cd666e9 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003123
0x6b26ae776007e2f1e99b6d002633d0ae8e92480e0dd6bd25d24e093826eb6611Unwrap280263132022-10-02 16:08:102 days 14 hrs ago0x3e8c7e7bb012f349d3166f8cbdb2767cff4df732 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003165
0x80ab730a77d77a4ac6cf1f5778605948034c415a402487cd21a39051c06dc7d8Unwrap279115832022-10-02 5:52:263 days 34 mins ago0xa422d516d9dfdaeac2699c4d5f2caf2b67798cbc IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002559
0xdd35cc3c4a61d8cf61543fc672be9cbfd84adb9e5ef0450d544db664293842edUnwrap279115092022-10-02 5:52:023 days 34 mins ago0xa422d516d9dfdaeac2699c4d5f2caf2b67798cbc IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002779
0x8d8ed24aa720772f12163f79d68ff595bd6c50d192682ab8dd40e4fef5d9a0dbUnwrap279029602022-10-02 4:51:233 days 1 hr ago0xf3f0b2aa46847231f021f685a106a9183da2ab8a IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002634
0xb60d5d48432b233637963a732c2b246465e893d55c3fab706d80b7700ed0ca56Unwrap279029052022-10-02 4:50:583 days 1 hr ago0xf3f0b2aa46847231f021f685a106a9183da2ab8a IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002854
0x33c07db5f38be3cffd9263c91cfb9ff10e5132c442fd0b6697bae71849422bd2Unwrap279002502022-10-02 4:31:393 days 1 hr ago0xab60673060509d15bd2e84c5dd4595eb04bb14f7 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002603
0x3aef84d5971f0c709e31522c5ebbc8667aaf4f72a4cce40707085de3d267f2bdUnwrap279001582022-10-02 4:30:563 days 1 hr ago0xab60673060509d15bd2e84c5dd4595eb04bb14f7 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00002762
0x2bdf5b7d2842f3e5f0209ee6cdbd87bf259293d1c1c090d19914be0329f039b8Unwrap278287052022-10-01 17:33:573 days 12 hrs ago0xaa00c627b777f5376e84f70a590342969c50ef59 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003604
0x8e29c66cb2827d52555d70465c5418f86d1361894cf9163d540610068b70c8d5Unwrap278281302022-10-01 17:30:193 days 12 hrs ago0xaa00c627b777f5376e84f70a590342969c50ef59 IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003829
0xcd8a9a5de6195122a3bd9a6bc0e5488edbbb7eb9ef0a27f79b0ab178558825b8Unwrap278262262022-10-01 17:20:133 days 13 hrs ago0xdaac9faf9eb748a5bfbfd9b0d1383e9ada4ccecf IN  0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH0.00003699
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xeb75b8c1bdfbc841c734d28507c24e5dac3d1779bfee1a2be67709536c6a91f8284419972022-10-05 5:57:1229 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x37d4ed46dbab5a310ff17738695a82bb55e5dabbf6ce778cd6847f13d45192af284419492022-10-05 5:56:4830 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xa9b00fe8a6f2f64ed3a0eac50da2a39d9fe903b8ff9aecf2fce0e90ca8c8b6c9284418252022-10-05 5:55:4531 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xe7bd2ebd582251f1ec64bcec82027056cedc62703e71d02199f69c0af4cb6fb2284416692022-10-05 5:54:2332 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x917dd42de905a9440ab73df77c737511a30183b1b7b06f07f501ed935094b570284416282022-10-05 5:54:0132 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x1fb145dd12e737dc2d895641ce8d2a987d772f703e0a3d1c3fe06991f28d3432284415312022-10-05 5:53:0633 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x8e3ec63f0a571d42649e92ae276be61f658b60f124879960823c819681b39274284414022022-10-05 5:51:5834 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xa9f9eca570258dff0d7246dad0cbb7ccf7799348a2e80d3650451e456dad741d283989712022-10-04 22:30:127 hrs 56 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x34262a6e14a7e6346da12b552cd7e3c09f48abf46746ec5ef05f7a2a0bf539b5283989532022-10-04 22:30:017 hrs 56 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x2f8d247da73c529833a78e04b8219ebffe8179cedf220e8481592d9623ab9a7c283679522022-10-04 16:47:3813 hrs 39 mins ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a Smolverse: Smol Brains0 ETH
0x2f8d247da73c529833a78e04b8219ebffe8179cedf220e8481592d9623ab9a7c283679522022-10-04 16:47:3813 hrs 39 mins ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xaa475cf945d91a94b3c0cf47b1902b1b380ebe2d47877bd63ade5ee2d1ba4033282718242022-10-04 5:45:401 day 41 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x7ca950c8e7fef9bfde1334a579c2859c31a5524ff436045575abde338f20b5b7282717802022-10-04 5:45:211 day 41 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x0451191b2be9755c1ba51262b2ac3c0d5c6f7f996f731667a36cd92a92273869282716802022-10-04 5:44:271 day 42 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xbaaf23a6b7fce0fd38533e1aad3be29515238f735c29511984946ca522ee497c282715702022-10-04 5:43:311 day 43 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x32029732e9499cce8867d677b991f6f7985f7d2aa320a81d340dfd1ca7a6aa0e282715372022-10-04 5:43:141 day 43 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x967260c953488d3b83daeccca0ee45aebd64c01ecf1d1d8bc65e89ac5bdafd9b282714722022-10-04 5:42:361 day 44 mins ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xd6493159b9085bd12bbe115ddbbb7834abe49331654845739e7ae2fabf2c1d2f282681522022-10-04 5:15:181 day 1 hr ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x4e9dcfca5e04a0a52da7de361d0f7b4be2a76fb8801bebd80e9f3f6cabaa6f7c282516002022-10-04 3:04:481 day 3 hrs ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a Smolverse: Smol Brains0 ETH
0x4e9dcfca5e04a0a52da7de361d0f7b4be2a76fb8801bebd80e9f3f6cabaa6f7c282516002022-10-04 3:04:481 day 3 hrs ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x854cf1fc3fd10e74060a1b1ece1fd72f8f91b6a65d5f8c82f461ed3bfe0ee6d0282515882022-10-04 3:04:421 day 3 hrs ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a Smolverse: Smol Brains0 ETH
0x854cf1fc3fd10e74060a1b1ece1fd72f8f91b6a65d5f8c82f461ed3bfe0ee6d0282515882022-10-04 3:04:421 day 3 hrs ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0xbb4436ae7d387f0ff94aecaa3858bb26ca52528698fabd76b430465605f7cf6b282384942022-10-04 0:38:401 day 5 hrs ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a Smolverse: Smol Brains0 ETH
0xbb4436ae7d387f0ff94aecaa3858bb26ca52528698fabd76b430465605f7cf6b282384942022-10-04 0:38:401 day 5 hrs ago 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
0x053d8e9a10f1744b5216dbdc5d2cb51a534a9db9e504934fd84c708dbc563ec8281992962022-10-03 16:58:251 day 13 hrs ago 0x1a5261041e9340579f58401389d6dee185b62804 0x1f245e83fb88a1e85b4a1c3e4b3c16660d54319a0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
wSMOL

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 14 : wSMOL.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

interface IEpisodes {
    function tokenURI(uint _id) external view returns (string memory);
    function getEpisodeStat(uint _tokenid) external view returns (uint);
}

contract wSMOL is ERC721Enumerable, ERC721Holder, Ownable {


    uint public currentEpisode;
    mapping(uint => IEpisodes) public episodes;

    IERC721 public SMOLBRAINS;  //0x6325439389E0797Ab35752B4F43a14C004f22A9c

    mapping(uint => uint) public defaultEpisode; // token id => episode id

    constructor(IERC721 _smolbrains) ERC721("Wrapped SMOL", "wSMOL") {
        SMOLBRAINS = _smolbrains; 
        currentEpisode = 0;
    }

    function wrap(uint _tokenid) external {
        SMOLBRAINS.safeTransferFrom(msg.sender, address(this), _tokenid);  
        _safeMint(msg.sender, _tokenid);
    }

    function unwrap(uint _tokenid) external {
        defaultEpisode[_tokenid] = 0;
        safeTransferFrom(msg.sender, address(this), _tokenid);       
        _burn(_tokenid);
        SMOLBRAINS.safeTransferFrom(address(this), msg.sender, _tokenid);
    }

    function tokenURI(uint _id) public view override returns (string memory) {
        if (defaultEpisode[_id] == 0) {
            return episodes[currentEpisode].tokenURI(_id);
        } else {
            uint myEpisode = defaultEpisode[_id];
            return episodes[myEpisode].tokenURI(_id);
        }   
    }

    function getEpisodeStats(uint _tokenid) public view returns (uint[] memory) {
        uint[] memory episodeStats = new uint[](currentEpisode);
        for (uint i = 1; i <= currentEpisode; i++) {
            episodeStats[i-1] = episodes[i].getEpisodeStat(_tokenid);
        }
        return episodeStats;
    }
    

    function setMyFavoriteEpisode(uint _id, uint _episodeId) external {
        require(ownerOf(_id) == msg.sender, "not owner");
        defaultEpisode[_id] = _episodeId;
    }

    // ** //
    function addEpisode(uint _episodeNumber, IEpisodes _episodeAddress) external onlyOwner {
        episodes[_episodeNumber] = _episodeAddress;
    }
    function setCurrentEpisode(uint _episodeNumber) external onlyOwner {
        currentEpisode = _episodeNumber;
    }

}

File 2 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 3 of 14 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 4 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

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 6 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 7 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 9 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

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 overridden 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 {
        _setApprovalForAll(_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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 10 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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);

    /**
     * @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 11 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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;
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IERC721","name":"_smolbrains","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"SMOLBRAINS","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_episodeNumber","type":"uint256"},{"internalType":"contract IEpisodes","name":"_episodeAddress","type":"address"}],"name":"addEpisode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEpisode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"defaultEpisode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"episodes","outputs":[{"internalType":"contract IEpisodes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"}],"name":"getEpisodeStats","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_episodeNumber","type":"uint256"}],"name":"setCurrentEpisode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_episodeId","type":"uint256"}],"name":"setMyFavoriteEpisode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"_id","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":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200415138038062004151833981810160405281019062000037919062000343565b6040518060400160405280600c81526020017f5772617070656420534d4f4c00000000000000000000000000000000000000008152506040518060400160405280600581526020017f77534d4f4c0000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb92919062000215565b508060019080519060200190620000d492919062000215565b505050620000f7620000eb6200014760201b60201c565b6200014f60201b60201c565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600b8190555050620003d9565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200022390620003a4565b90600052602060002090601f01602090048101928262000247576000855562000293565b82601f106200026257805160ff191683800117855562000293565b8280016001018555821562000293579182015b828111156200029257825182559160200191906001019062000275565b5b509050620002a29190620002a6565b5090565b5b80821115620002c1576000816000905550600101620002a7565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002f782620002ca565b9050919050565b60006200030b82620002ea565b9050919050565b6200031d81620002fe565b81146200032957600080fd5b50565b6000815190506200033d8162000312565b92915050565b6000602082840312156200035c576200035b620002c5565b5b60006200036c848285016200032c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003bd57607f821691505b602082108103620003d357620003d262000375565b5b50919050565b613d6880620003e96000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806386f328a911610104578063b88d4fde116100a2578063e8bc356d11610071578063e8bc356d1461058b578063e985e9c5146105a9578063ea598cb0146105d9578063f2fde38b146105f5576101da565b8063b88d4fde146104f3578063c5c2b8be1461050f578063c87b56dd1461053f578063de0e9a3e1461056f576101da565b806398dbf732116100de57806398dbf7321461046f578063a22cb4651461048b578063afd8e608146104a7578063b73c714a146104d7576101da565b806386f328a9146104035780638da5cb5b1461043357806395d89b4114610451576101da565b80632f745c591161017c5780636162ff781161014b5780636162ff781461037d5780636352211e1461039957806370a08231146103c9578063715018a6146103f9576101da565b80632f745c59146102e35780633bd787031461031357806342842e0e146103315780634f6ccce71461034d576101da565b8063095ea7b3116101b8578063095ea7b31461025d578063150b7a021461027957806318160ddd146102a957806323b872dd146102c7576101da565b806301ffc9a7146101df57806306fdde031461020f578063081812fc1461022d575b600080fd5b6101f960048036038101906101f491906127d2565b610611565b604051610206919061281a565b60405180910390f35b61021761068b565b60405161022491906128ce565b60405180910390f35b61024760048036038101906102429190612926565b61071d565b6040516102549190612994565b60405180910390f35b610277600480360381019061027291906129db565b6107a2565b005b610293600480360381019061028e9190612b50565b6108b9565b6040516102a09190612be2565b60405180910390f35b6102b16108cd565b6040516102be9190612c0c565b60405180910390f35b6102e160048036038101906102dc9190612c27565b6108da565b005b6102fd60048036038101906102f891906129db565b61093a565b60405161030a9190612c0c565b60405180910390f35b61031b6109df565b6040516103289190612c0c565b60405180910390f35b61034b60048036038101906103469190612c27565b6109e5565b005b61036760048036038101906103629190612926565b610a05565b6040516103749190612c0c565b60405180910390f35b61039760048036038101906103929190612c7a565b610a76565b005b6103b360048036038101906103ae9190612926565b610b08565b6040516103c09190612994565b60405180910390f35b6103e360048036038101906103de9190612cba565b610bb9565b6040516103f09190612c0c565b60405180910390f35b610401610c70565b005b61041d60048036038101906104189190612926565b610cf8565b60405161042a9190612d46565b60405180910390f35b61043b610d2b565b6040516104489190612994565b60405180910390f35b610459610d55565b60405161046691906128ce565b60405180910390f35b61048960048036038101906104849190612926565b610de7565b005b6104a560048036038101906104a09190612d8d565b610e6d565b005b6104c160048036038101906104bc9190612926565b610e83565b6040516104ce9190612e8b565b60405180910390f35b6104f160048036038101906104ec9190612eeb565b610fd9565b005b61050d60048036038101906105089190612b50565b6110ab565b005b61052960048036038101906105249190612926565b61110d565b6040516105369190612c0c565b60405180910390f35b61055960048036038101906105549190612926565b611125565b60405161056691906128ce565b60405180910390f35b61058960048036038101906105849190612926565b6112d0565b005b610593611391565b6040516105a09190612f4c565b60405180910390f35b6105c360048036038101906105be9190612f67565b6113b7565b6040516105d0919061281a565b60405180910390f35b6105f360048036038101906105ee9190612926565b61144b565b005b61060f600480360381019061060a9190612cba565b6114e9565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106845750610683826115e0565b5b9050919050565b60606000805461069a90612fd6565b80601f01602080910402602001604051908101604052809291908181526020018280546106c690612fd6565b80156107135780601f106106e857610100808354040283529160200191610713565b820191906000526020600020905b8154815290600101906020018083116106f657829003601f168201915b5050505050905090565b6000610728826116c2565b610767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075e90613079565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107ad82610b08565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361081d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108149061310b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661083c61172e565b73ffffffffffffffffffffffffffffffffffffffff16148061086b575061086a8161086561172e565b6113b7565b5b6108aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a19061319d565b60405180910390fd5b6108b48383611736565b505050565b600063150b7a0260e01b9050949350505050565b6000600880549050905090565b6108eb6108e561172e565b826117ef565b61092a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109219061322f565b60405180910390fd5b6109358383836118cd565b505050565b600061094583610bb9565b8210610986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097d906132c1565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600b5481565b610a00838383604051806020016040528060008152506110ab565b505050565b6000610a0f6108cd565b8210610a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4790613353565b60405180910390fd5b60088281548110610a6457610a63613373565b5b90600052602060002001549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610a9683610b08565b73ffffffffffffffffffffffffffffffffffffffff1614610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae3906133ee565b60405180910390fd5b80600e6000848152602001908152602001600020819055505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790613480565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2090613512565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c7861172e565b73ffffffffffffffffffffffffffffffffffffffff16610c96610d2b565b73ffffffffffffffffffffffffffffffffffffffff1614610cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce39061357e565b60405180910390fd5b610cf66000611b33565b565b600c6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610d6490612fd6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9090612fd6565b8015610ddd5780601f10610db257610100808354040283529160200191610ddd565b820191906000526020600020905b815481529060010190602001808311610dc057829003601f168201915b5050505050905090565b610def61172e565b73ffffffffffffffffffffffffffffffffffffffff16610e0d610d2b565b73ffffffffffffffffffffffffffffffffffffffff1614610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a9061357e565b60405180910390fd5b80600b8190555050565b610e7f610e7861172e565b8383611bf9565b5050565b60606000600b5467ffffffffffffffff811115610ea357610ea2612a25565b5b604051908082528060200260200182016040528015610ed15781602001602082028036833780820191505090505b5090506000600190505b600b548111610fcf57600c600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663764ceba7856040518263ffffffff1660e01b8152600401610f509190612c0c565b602060405180830381865afa158015610f6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9191906135b3565b82600183610f9f919061360f565b81518110610fb057610faf613373565b5b6020026020010181815250508080610fc790613643565b915050610edb565b5080915050919050565b610fe161172e565b73ffffffffffffffffffffffffffffffffffffffff16610fff610d2b565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c9061357e565b60405180910390fd5b80600c600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6110bc6110b661172e565b836117ef565b6110fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f29061322f565b60405180910390fd5b61110784848484611d65565b50505050565b600e6020528060005260406000206000915090505481565b60606000600e600084815260200190815260200160002054036111fd57600c6000600b54815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b81526004016111b09190612c0c565b600060405180830381865afa1580156111cd573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906111f6919061372c565b90506112cb565b6000600e6000848152602001908152602001600020549050600c600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd846040518263ffffffff1660e01b81526004016112819190612c0c565b600060405180830381865afa15801561129e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906112c7919061372c565b9150505b919050565b6000600e6000838152602001908152602001600020819055506112f43330836109e5565b6112fd81611dc1565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161135c93929190613775565b600060405180830381600087803b15801561137657600080fd5b505af115801561138a573d6000803e3d6000fd5b5050505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b81526004016114aa93929190613775565b600060405180830381600087803b1580156114c457600080fd5b505af11580156114d8573d6000803e3d6000fd5b505050506114e63382611ede565b50565b6114f161172e565b73ffffffffffffffffffffffffffffffffffffffff1661150f610d2b565b73ffffffffffffffffffffffffffffffffffffffff1614611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c9061357e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb9061381e565b60405180910390fd5b6115dd81611b33565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806116ab57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806116bb57506116ba82611efc565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166117a983610b08565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117fa826116c2565b611839576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611830906138b0565b60405180910390fd5b600061184483610b08565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611886575061188581856113b7565b5b806118c457508373ffffffffffffffffffffffffffffffffffffffff166118ac8461071d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166118ed82610b08565b73ffffffffffffffffffffffffffffffffffffffff1614611943576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193a90613942565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a9906139d4565b60405180910390fd5b6119bd838383611f66565b6119c8600082611736565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a18919061360f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a6f91906139f4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b2e838383612078565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5e90613a96565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d58919061281a565b60405180910390a3505050565b611d708484846118cd565b611d7c8484848461207d565b611dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db290613b28565b60405180910390fd5b50505050565b6000611dcc82610b08565b9050611dda81600084611f66565b611de5600083611736565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e35919061360f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611eda81600084612078565b5050565b611ef8828260405180602001604052806000815250612204565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f7183838361225f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611fb357611fae81612264565b611ff2565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611ff157611ff083826122ad565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120345761202f8161241a565b612073565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146120725761207182826124eb565b5b5b505050565b505050565b600061209e8473ffffffffffffffffffffffffffffffffffffffff1661256a565b156121f7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120c761172e565b8786866040518563ffffffff1660e01b81526004016120e99493929190613b9d565b6020604051808303816000875af192505050801561212557506040513d601f19601f820116820180604052508101906121229190613bfe565b60015b6121a7573d8060008114612155576040519150601f19603f3d011682016040523d82523d6000602084013e61215a565b606091505b50600081510361219f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219690613b28565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121fc565b600190505b949350505050565b61220e838361258d565b61221b600084848461207d565b61225a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225190613b28565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016122ba84610bb9565b6122c4919061360f565b90506000600760008481526020019081526020016000205490508181146123a9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061242e919061360f565b905060006009600084815260200190815260200160002054905060006008838154811061245e5761245d613373565b5b9060005260206000200154905080600883815481106124805761247f613373565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806124cf576124ce613c2b565b5b6001900381819060005260206000200160009055905550505050565b60006124f683610bb9565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036125fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f390613ca6565b60405180910390fd5b612605816116c2565b15612645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263c90613d12565b60405180910390fd5b61265160008383611f66565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126a191906139f4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461276260008383612078565b5050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6127af8161277a565b81146127ba57600080fd5b50565b6000813590506127cc816127a6565b92915050565b6000602082840312156127e8576127e7612770565b5b60006127f6848285016127bd565b91505092915050565b60008115159050919050565b612814816127ff565b82525050565b600060208201905061282f600083018461280b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561286f578082015181840152602081019050612854565b8381111561287e576000848401525b50505050565b6000601f19601f8301169050919050565b60006128a082612835565b6128aa8185612840565b93506128ba818560208601612851565b6128c381612884565b840191505092915050565b600060208201905081810360008301526128e88184612895565b905092915050565b6000819050919050565b612903816128f0565b811461290e57600080fd5b50565b600081359050612920816128fa565b92915050565b60006020828403121561293c5761293b612770565b5b600061294a84828501612911565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061297e82612953565b9050919050565b61298e81612973565b82525050565b60006020820190506129a96000830184612985565b92915050565b6129b881612973565b81146129c357600080fd5b50565b6000813590506129d5816129af565b92915050565b600080604083850312156129f2576129f1612770565b5b6000612a00858286016129c6565b9250506020612a1185828601612911565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a5d82612884565b810181811067ffffffffffffffff82111715612a7c57612a7b612a25565b5b80604052505050565b6000612a8f612766565b9050612a9b8282612a54565b919050565b600067ffffffffffffffff821115612abb57612aba612a25565b5b612ac482612884565b9050602081019050919050565b82818337600083830152505050565b6000612af3612aee84612aa0565b612a85565b905082815260208101848484011115612b0f57612b0e612a20565b5b612b1a848285612ad1565b509392505050565b600082601f830112612b3757612b36612a1b565b5b8135612b47848260208601612ae0565b91505092915050565b60008060008060808587031215612b6a57612b69612770565b5b6000612b78878288016129c6565b9450506020612b89878288016129c6565b9350506040612b9a87828801612911565b925050606085013567ffffffffffffffff811115612bbb57612bba612775565b5b612bc787828801612b22565b91505092959194509250565b612bdc8161277a565b82525050565b6000602082019050612bf76000830184612bd3565b92915050565b612c06816128f0565b82525050565b6000602082019050612c216000830184612bfd565b92915050565b600080600060608486031215612c4057612c3f612770565b5b6000612c4e868287016129c6565b9350506020612c5f868287016129c6565b9250506040612c7086828701612911565b9150509250925092565b60008060408385031215612c9157612c90612770565b5b6000612c9f85828601612911565b9250506020612cb085828601612911565b9150509250929050565b600060208284031215612cd057612ccf612770565b5b6000612cde848285016129c6565b91505092915050565b6000819050919050565b6000612d0c612d07612d0284612953565b612ce7565b612953565b9050919050565b6000612d1e82612cf1565b9050919050565b6000612d3082612d13565b9050919050565b612d4081612d25565b82525050565b6000602082019050612d5b6000830184612d37565b92915050565b612d6a816127ff565b8114612d7557600080fd5b50565b600081359050612d8781612d61565b92915050565b60008060408385031215612da457612da3612770565b5b6000612db2858286016129c6565b9250506020612dc385828601612d78565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612e02816128f0565b82525050565b6000612e148383612df9565b60208301905092915050565b6000602082019050919050565b6000612e3882612dcd565b612e428185612dd8565b9350612e4d83612de9565b8060005b83811015612e7e578151612e658882612e08565b9750612e7083612e20565b925050600181019050612e51565b5085935050505092915050565b60006020820190508181036000830152612ea58184612e2d565b905092915050565b6000612eb882612973565b9050919050565b612ec881612ead565b8114612ed357600080fd5b50565b600081359050612ee581612ebf565b92915050565b60008060408385031215612f0257612f01612770565b5b6000612f1085828601612911565b9250506020612f2185828601612ed6565b9150509250929050565b6000612f3682612d13565b9050919050565b612f4681612f2b565b82525050565b6000602082019050612f616000830184612f3d565b92915050565b60008060408385031215612f7e57612f7d612770565b5b6000612f8c858286016129c6565b9250506020612f9d858286016129c6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fee57607f821691505b60208210810361300157613000612fa7565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613063602c83612840565b915061306e82613007565b604082019050919050565b6000602082019050818103600083015261309281613056565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006130f5602183612840565b915061310082613099565b604082019050919050565b60006020820190508181036000830152613124816130e8565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613187603883612840565b91506131928261312b565b604082019050919050565b600060208201905081810360008301526131b68161317a565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613219603183612840565b9150613224826131bd565b604082019050919050565b600060208201905081810360008301526132488161320c565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006132ab602b83612840565b91506132b68261324f565b604082019050919050565b600060208201905081810360008301526132da8161329e565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061333d602c83612840565b9150613348826132e1565b604082019050919050565b6000602082019050818103600083015261336c81613330565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6e6f74206f776e65720000000000000000000000000000000000000000000000600082015250565b60006133d8600983612840565b91506133e3826133a2565b602082019050919050565b60006020820190508181036000830152613407816133cb565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061346a602983612840565b91506134758261340e565b604082019050919050565b600060208201905081810360008301526134998161345d565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006134fc602a83612840565b9150613507826134a0565b604082019050919050565b6000602082019050818103600083015261352b816134ef565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613568602083612840565b915061357382613532565b602082019050919050565b600060208201905081810360008301526135978161355b565b9050919050565b6000815190506135ad816128fa565b92915050565b6000602082840312156135c9576135c8612770565b5b60006135d78482850161359e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361a826128f0565b9150613625836128f0565b925082821015613638576136376135e0565b5b828203905092915050565b600061364e826128f0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036136805761367f6135e0565b5b600182019050919050565b600067ffffffffffffffff8211156136a6576136a5612a25565b5b6136af82612884565b9050602081019050919050565b60006136cf6136ca8461368b565b612a85565b9050828152602081018484840111156136eb576136ea612a20565b5b6136f6848285612851565b509392505050565b600082601f83011261371357613712612a1b565b5b81516137238482602086016136bc565b91505092915050565b60006020828403121561374257613741612770565b5b600082015167ffffffffffffffff8111156137605761375f612775565b5b61376c848285016136fe565b91505092915050565b600060608201905061378a6000830186612985565b6137976020830185612985565b6137a46040830184612bfd565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613808602683612840565b9150613813826137ac565b604082019050919050565b60006020820190508181036000830152613837816137fb565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061389a602c83612840565b91506138a58261383e565b604082019050919050565b600060208201905081810360008301526138c98161388d565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061392c602583612840565b9150613937826138d0565b604082019050919050565b6000602082019050818103600083015261395b8161391f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006139be602483612840565b91506139c982613962565b604082019050919050565b600060208201905081810360008301526139ed816139b1565b9050919050565b60006139ff826128f0565b9150613a0a836128f0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a3f57613a3e6135e0565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613a80601983612840565b9150613a8b82613a4a565b602082019050919050565b60006020820190508181036000830152613aaf81613a73565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613b12603283612840565b9150613b1d82613ab6565b604082019050919050565b60006020820190508181036000830152613b4181613b05565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613b6f82613b48565b613b798185613b53565b9350613b89818560208601612851565b613b9281612884565b840191505092915050565b6000608082019050613bb26000830187612985565b613bbf6020830186612985565b613bcc6040830185612bfd565b8181036060830152613bde8184613b64565b905095945050505050565b600081519050613bf8816127a6565b92915050565b600060208284031215613c1457613c13612770565b5b6000613c2284828501613be9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613c90602083612840565b9150613c9b82613c5a565b602082019050919050565b60006020820190508181036000830152613cbf81613c83565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613cfc601c83612840565b9150613d0782613cc6565b602082019050919050565b60006020820190508181036000830152613d2b81613cef565b905091905056fea26469706673582212201df51f1bc8f5867f579d7d98bf8f0a57342a65885129a68f0c191d4f0d95998a64736f6c634300080d00330000000000000000000000006325439389e0797ab35752b4f43a14c004f22a9c

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

0000000000000000000000006325439389e0797ab35752b4f43a14c004f22a9c

-----Decoded View---------------
Arg [0] : _smolbrains (address): 0x6325439389e0797ab35752b4f43a14c004f22a9c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006325439389e0797ab35752b4f43a14c004f22a9c


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.