Contract 0x4de9d18Fd8390c12465bA3C6cc8032992fD7655d 1

 
 
Txn Hash
Method
Block
From
To
Value
0x1fbe20f86b4c090d39f3e33ee7b29b43fdfcb26bbc8dfb28b389a0bd45c250eeSet Approval For...153093052022-08-09 17:30:205 days 8 hrs agoENS Name esren.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00109225 23.‍56598019
0x6a1fbb81797f16a3e3f28bb402edbe67b34ab445412616a50ad41a60ed96098bSet Approval For...153091602022-08-09 16:56:315 days 9 hrs agoENS Name esren.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00091582 19.‍79514725
0x6286069ff22da0c53df73b23207126e613937cc22e89aa27194f2f7ef2fa85c4Set Approval For...153064682022-08-09 6:40:565 days 19 hrs agoENS Name jimbol.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍0004831 10.‍42309606
0x2e5ce68331eb54c8e7145f61862271f5df99496261b376a9891be1c0b9f6afa8Set Approval For...151735912022-07-19 14:27:4726 days 11 hrs agoENS Name apely.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00258289 55.‍72709046
0xf1cc9bbb6517a377f6b2d4b877e9f2b89d82f6b77f23031ac593c5d1389f8e1fSet Approval For...151722672022-07-19 9:31:0526 days 16 hrs ago0x534d1a3374c966502e25d1d5d1e0ba9b5bd67c37 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00054242 11.‍72426059
0xffb5900cd37bda2996744ba36a4326df3dc8d28694e94e21be36c52cb7ca04e9Set Approval For...151600632022-07-17 12:05:3228 days 13 hrs agoENS Name indexdao.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00027409 11.‍21623834
0x5609adba6698d160f8c0a884eed392f202587fefc43caae6aef13b60b5bdb602Set Approval For...150865612022-07-06 3:25:0139 days 22 hrs agoENS Name shrimpwen.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍0004650319.‍02992962
0xf3ba8c6a237f26735b21626c087f10d02fca0d8943e4bfd0eaff97444c6f4801Set Approval For...150437952022-06-29 6:58:5046 days 19 hrs ago0x1a4c023eedc6ea3e96a1aef691e5e7166fcd497a IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00179111 38.‍64401201
0xbac542040d78831b8fc30b2c2d11a1d6de253a067b80d3fe7987c90777163449Set Approval For...150383492022-06-28 6:28:1947 days 19 hrs agoENS Name aussie533.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍0019913743.‍0427359
0x7d6e0d15c8abd5d5dfe27467aa7ec96732b3bc2eb6e7a9d28049b8ee0bf6d136Set Approval For...149990852022-06-20 22:49:2955 days 3 hrs ago0x2d04eff9d9a5e8a3afd2d5b68307608fcf94cc55 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00049069 20.‍08007604
0xf649d08b77a9628fb567966fb8153ba7a95aaf9fc03e99a202ea328d3d060af6Set Approval For...146789562022-04-29 11:38:34107 days 14 hrs ago0x534d1a3374c966502e25d1d5d1e0ba9b5bd67c37 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00148956 32.‍13805672
0x84e666c4c854cf629dda6ddfee74532461cbb2f8042646460487b503524320d3Set Approval For...145838362022-04-14 13:35:18122 days 12 hrs agoENS Name bufftuck.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00125035 51.‍16665107
0x23f5dab88adbf3e702d6572e1116d3facac66e360a08f4ddcfd24b6699bcd7dfSet Approval For...145141452022-04-03 16:19:54133 days 9 hrs ago0x2043c22055991f17518fe50590db0804fefcd939 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍0041714190
0xdeca6a926e6753031ee160357bc5c0adc9a22989d033dbe6f6bfbb4c71ab812cSafe Transfer Fr...143851022022-03-14 13:53:15153 days 12 hrs agoENS Name tionam.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00275981 30.‍84724399
0xc86176e2c7ee1b5f7c8199aec817213ed2a389fc24f18ce31386e07350f1e89cSet Approval For...143270142022-03-05 13:02:52162 days 12 hrs agoENS Name tionam.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00114029 24.‍60245334
0x059a67b55f8ce45ba0ea02768b8a1fb61c2c5075a03e077ecf1e8a498e26bcf5Set Approval For...142756762022-02-25 14:03:26170 days 11 hrs ago0x08f6f29ea7b285c1f6f984ae33a6fdc55522e00f IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00153026 62.‍62081731
0xba96ec2fe6a7aac0bfb3b3ba3c99dcd3754010950dbf50269bb3496a88a62849Set Approval For...142695962022-02-24 15:31:34171 days 10 hrs agoENS Name jeremygoldberg.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00366797 79.‍13812119
0x6beef609e0cdd2e535f7f15deac9c8e298a58a6f41aca6b6333f74a06b9e8e2eSet Approval For...142440162022-02-20 16:36:51175 days 9 hrs ago0x92228ffb485fe39e5479837e0697829504527fdf IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00218517 47.‍14613257
0xfaf609e23dc972db83b0b2ce525868ff441faa82daacb09730dc058381495a49Set Approval For...142420752022-02-20 9:17:54175 days 16 hrs agoENS Name mikeabundo.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00126599 51.‍80653422
0x39fda588c44456768158698999780ef33b84c3d6c95e3686ed351f00567fd62dSet Approval For...142413682022-02-20 6:33:16175 days 19 hrs ago0xf4911cb13b50d967b9603c747e558da7c1457e91 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00154192 33.‍26777177
0xc488b1b0441fe7f040e8898cfac53dce0001b2d8afb6124e5b61285164caed94Set Approval For...142411142022-02-20 5:37:02175 days 20 hrs ago0x26adf8c6e646d5c7fd1facdaa9a77989d024e41e IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍0007996 32.‍72100442
0x2ae6b3b65fdda1a2e5a8201088c7490e01c03b6a702b71a483bf4da7b93e7840Set Approval For...142411042022-02-20 5:34:54175 days 20 hrs agoENS Name rwanz.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00084948 34.‍76225771
0x20685b306f23f034ef50134fca2c5fd0a83ac41188ffb1048c6bd0dc9145860eSet Approval For...142406992022-02-20 4:05:30175 days 21 hrs ago0x1163dec1341b596daef650640ec79590b985bac8 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00176169 72.‍09122256
0x919595316dc29116b7c332042a3f2786cfe04265991eb63c797822fac20e0e89Set Approval For...142405872022-02-20 3:43:43175 days 22 hrs ago0x898b5632d5b7d818dfe03964055e804f04bea572 IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍0014822 60.‍65416862
0x897adde83a85a569c70ebbed05b7c83e837dfee1a9470ad7f5ae7f64a33767e9Set Approval For...142405752022-02-20 3:40:39175 days 22 hrs agoENS Name meta888crypto.eth IN  0x4de9d18fd8390c12465ba3c6cc8032992fd7655d0 Ether0.‍00173506 71.‍00173077
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Quests

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.0;

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

contract Quests is ERC721Enumerable, Ownable, ReentrancyGuard {

    ERC721 loot = ERC721(0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7);

    string[] private questWord0 = [
        "Abandoned",
        "Blind",
        "Broken",
        "Charming",
        "Corrupt",
        "Cruel",
        "Cursed",
        "Damned",
        "Deadly",
        "Disappearing",
        "Drunken",
        "Evil",
        "Fading",
        "Forgotten",
        "Hidden",
        "Legendary",
        "Lingering",
        "Lost",
        "Menacing",
        "Sacred",
        "Smelly",
        "Sticky",
        "Stolen",
        "Terrible"
        "Toxic"
    ];

    string[] private questWord1 = [
        "Journal",
        "Map",
        "Secret",
        "Trials",
        "Fate",
        "Innocence",
        "Legion",
        "Lore",
        "Puzzle",
        "Barter",
        "End",
        "Legacy",
        "Maze",
        "Cult",
        "Blade",
        "Mystery",
        "Ritual",
        "Fury",
        "Spell",
        "Curse",
        "Conspiracy",
        "Night",
        "Circle",
        "Avatar",
        "Castle"
        "Guild",
        "Nightmare",
        "Destiny",
        "Plague",
        "Song",
        "Prophecy",
        "Crown",
        "Gem",
        "Key",
        "Treasure"
    ];

    string[] private questWord2 = [
        "Izith",
        "Edali",
        "Refora",
        "Adeis",
        "Omaxaryl",
        "Ixius",
        "Togron",
        "Proxon",
        "Juwyn",
        "Moryen",
        "Fenhorn",
        "Sylvaris",
        "Valtris",
        "Urimys",
        "Thefir",
        "Keafaren",
        "Glynydark",
        "Benmek"
        "Thorrom",
        "Theldain"
        "Bunthran",
        "Brilgiel",
        "Gwanra",
        "Nasnas",
        "Daerwyn",
        "Bazur",
        "Klog",
        "Karguk",
        "Bor",
        "Homraz",
        "Nargol",
        "Snak",
        "Mor"
    ];

    string[] private actions = [
        "Kiss the princess",
        "Kiss the prince",
        "Swim with the merfolk",
        "Sneak into the dungeon",
        "Sail with pirates",
        "Infiltrate the City Watch",
        "Pay the toll to the troll",
        "Duel the Black Knight",
        "Ride your steed",
        "Trap the genie in its bottle",
        "Solve the murder",
        "Collect the unicorn's horn",
        "Flirt with the innkeeper",
        "Join the Thieves' Guild",
        "Trial by combat",
        "Avenge your father",
        "Steal from the rich",
        "Give to the poor",
        "Take a long rest",
        "Stay awhile and listen",
        "Drink all the mead",
        "Befriend the elves",
        "Mine with dwarves",
        "Inspire a bard",
        "Cast lightning bolt",
        "Grow a wizard's beard",
        "Revive a fallen comrade"
    ];

    string[] private rareActions = [
        "Slay the Dragon",
        "Save the World",
        "Find the Holy Grail",
        "Make a Wish",
        "Become the King",
        "Pull the Sword from the Stone"
    ];

    constructor() ERC721("Quests", "QUESTS") Ownable() {}
    
    function claim(uint256 tokenId) public nonReentrant {
        require(tokenId > 8000 && tokenId < 10001, "Token ID invalid");
        _safeMint(_msgSender(), tokenId);
        _safeMint(_msgSender(), tokenId + 10000);
        _safeMint(_msgSender(), tokenId + 20000);
        _safeMint(_msgSender(), tokenId + 30000);
        _safeMint(_msgSender(), tokenId + 40000);
    }

    function claimForLoot(uint256 tokenId) public nonReentrant {
        require(tokenId > 0 && tokenId < 8001, "Token ID invalid");
        require(loot.ownerOf(tokenId) == msg.sender, "Not Loot owner");
        _safeMint(_msgSender(), tokenId);
        _safeMint(_msgSender(), tokenId + 10000);
        _safeMint(_msgSender(), tokenId + 20000);
        _safeMint(_msgSender(), tokenId + 30000);
        _safeMint(_msgSender(), tokenId + 40000);
    }
    
    function getQuestName(uint256 tokenId) public view returns (string memory) {
        require(tokenId < 10001, "Token ID invalid");
        string[3] memory parts;
        uint256 rand0 = random(string(abi.encodePacked(toString(tokenId), "0")));
        parts[0] = questWord0[rand0 % questWord0.length];
        uint256 rand1 = random(string(abi.encodePacked(toString(tokenId), "1")));
        parts[1] = questWord1[rand1 % questWord1.length];
        uint256 rand2 = random(string(abi.encodePacked(toString(tokenId), "2")));
        parts[2] = questWord2[rand2 % questWord2.length];
        return string(abi.encodePacked("The ", parts[0], " ", parts[1], " of ", parts[2]));
    }

    function getQuestActions(uint256 tokenId) public view returns (string[4] memory) {
        string[4] memory questActions;

        uint256 rand1 = random(string(abi.encodePacked(toString(tokenId), "1")));
        if (rand1 % 21 == 0) {
            questActions[0] = rareActions[rand1 % rareActions.length];
        } else {
            questActions[0] = actions[rand1 % actions.length];
        }
        
        uint256 rand2 = random(string(abi.encodePacked(toString(tokenId), "2")));
        if (rand2 % 21 == 0) {
            questActions[1] = rareActions[rand2 % rareActions.length];
        } else {
            questActions[1] = actions[rand2 % actions.length];
        }
        
        uint256 rand3 = random(string(abi.encodePacked(toString(tokenId), "3")));
        if (rand3 % 21 == 0) {
            questActions[2] = rareActions[rand3 % rareActions.length];
        } else {
            questActions[2] = actions[rand3 % actions.length];
        }

        uint256 rand4 = random(string(abi.encodePacked(toString(tokenId), "4")));
        if (rand4 % 21 == 0) {
            questActions[3] = rareActions[rand4 % rareActions.length];
        } else {
            questActions[3] = actions[rand4 % actions.length];
        }

        return questActions;
    }

    function getAction(uint256 tokenId) public view returns (string memory) {
        uint256 rand = random(string(toString(tokenId)));
        if (rand % 21 == 0) {
            return rareActions[rand % rareActions.length];
        } else {
            return actions[rand % actions.length];
        }
    }

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        if (tokenId < 10001) {
            return questTokenUri(tokenId);
        } else {
            return actionTokenUri(tokenId);
        }
    }

    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }
    
    function questTokenUri(uint256 tokenId) internal view returns (string memory) {
        string[4] memory questActions = getQuestActions(tokenId);
        string[11] memory parts;

        parts[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base" text-decoration="underline">';

        parts[1] = getQuestName(tokenId);

        parts[2] = '</text><text x="10" y="40" class="base">';

        parts[3] = questActions[0];

        parts[4] = '</text><text x="10" y="60" class="base">';

        parts[5] = questActions[1];

        parts[6] = '</text><text x="10" y="80" class="base">';

        parts[7] = questActions[2];

        parts[8] = '</text><text x="10" y="100" class="base">';

        parts[9] = questActions[3];

        parts[10] = '</text></svg>';

        string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6], parts[7], parts[8]));
        output = string(abi.encodePacked(output, parts[9], parts[10]));
        
        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "', parts[1], '", "description": "Quests.", "attributes": [ { "trait_type": "Step 1", "value": "', questActions[0], '" }, { "trait_type": "Step 2", "value": "', questActions[1], '" }, { "trait_type": "Step 3", "value": "', questActions[2], '" }, { "trait_type": "Step 4", "value": "', questActions[3], '" } ], "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }
    
    function actionTokenUri(uint256 tokenId) internal view returns (string memory) {
        string[3] memory parts;

        parts[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: black; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="white" /><text x="10" y="20" class="base">';

        parts[1] = getAction(tokenId);

        parts[2] = '</text></svg>';

        string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2]));
        
        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "', parts[1], '", "description": "Quests.", "attributes": [ { "trait_type": "Action Type", "value": "', parts[1], '" } ], "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

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

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

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

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

File 3 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimForLoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAction","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"getQuestActions","outputs":[{"internalType":"string[4]","name":"","type":"string[4]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getQuestName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600c80546001600160a01b03191673ff9c1b15b16263c61d017ee9f65c50e4ae0113d71781556009610380818152681058985b991bdb995960ba1b6103a052608090815260056103c081815264109b1a5b9960da1b6103e05260a052600661040081815265213937b5b2b760d11b6104205260c052600861044081815267436861726d696e6760c01b6104605260e05260076104808181526610dbdc9c9d5c1d60ca1b6104a052610100526104c09384526410dc9d595b60da1b6104e052610120939093526105008281526510dd5c9cd95960d21b61052052610140526105408281526511185b5b995960d21b610560526101605261058082815265446561646c7960d01b6105a052610180526105c09586526b446973617070656172696e6760a01b6105e0526101a0959095526106009182526622393ab735b2b760c91b610620526101c091909152600461064081815263115d9a5b60e21b610660526101e05261068082815265466164696e6760d01b6106a052610200526106c0848152682337b933b7ba3a32b760b91b6106e05261022052610700828152652434b23232b760d11b6107205261024052610740848152684c6567656e6461727960b81b6107605261026052610780938452684c696e676572696e6760b81b6107a052610280939093526107c092835263131bdcdd60e21b6107e0526102a092909252610800928352674d656e6163696e6760c01b610820526102c0929092526108408181526514d858dc995960d21b610860526102e05261088081815265536d656c6c7960d01b6108a052610300526108c081815265537469636b7960d01b6108e052610320526109009081526529ba37b632b760d11b6109205261034052610980604052600d6109408181526c5465727269626c65546f78696360981b6109605261036052620002af91601862001239565b5060408051610480810182526007610440820181815266129bdd5c9b985b60ca1b61046084015282528251808401845260038082526204d61760ec1b602083810191909152808501929092528451808601865260068082526514d958dc995d60d21b82850152858701919091528551808701875281815265547269616c7360d01b818501526060860152855180870187526004808252634661746560e01b82860152608087019190915286518088018852600980825268496e6e6f63656e636560b81b8287015260a088019190915287518089018952838152652632b3b4b7b760d11b8187015260c088015287518089018952828152634c6f726560e01b8187015260e0880152875180890189528381526550757a7a6c6560d01b8187015261010088015287518089018952838152652130b93a32b960d11b818701526101208801528751808901895284815262115b9960ea1b8187015261014088015287518089018952838152654c656761637960d01b8187015261016088015287518089018952828152634d617a6560e01b81870152610180880152875180890189528281526310dd5b1d60e21b818701526101a088015287518089018952600580825264426c61646560d81b828801526101c08901919091528851808a018a52878152664d79737465727960c81b818801526101e08901528851808a018a5284815265149a5d1d585b60d21b818801526102008901528851808a018a52838152634675727960e01b818801526102208901528851808a018a528181526414dc195b1b60da1b818801526102408901528851808a018a5281815264437572736560d81b818801526102608901528851808a018a52600a815269436f6e7370697261637960b01b818801526102808901528851808a018a5281815264139a59da1d60da1b818801526102a08901528851808a018a5284815265436972636c6560d01b818801526102c08901528851808a018a528481526520bb30ba30b960d11b818801526102e08901528851808a018a52600b81526a10d85cdd1b1951dd5a5b1960aa1b818801526103008901528851808a018a52918252684e696768746d61726560b81b82870152610320880191909152875180890189529586526644657374696e7960c81b868601526103408701959095528651808801885291825265506c6167756560d01b828501526103608601919091528551808701875290815263536f6e6760e01b818401526103808501528451808601865260088082526750726f706865637960c01b828501526103a0860191909152855180870187529384526421b937bbb760d91b848401526103c0850193909352845180860186528181526247656d60e81b818401526103e085015284518086018652908152624b657960e81b81830152610400840152835180850190945290835267547265617375726560c01b90830152610420810191909152620006ea90600e9060226200129d565b50604080516104208101825260056103e0820181815264092f4d2e8d60db1b610400840152825282518084018452818152644564616c6960d81b60208281019190915280840191909152835180850185526006808252655265666f726160d01b82840152848601919091528451808601865283815264416465697360d81b8184015260608501528451808601865260088082526713db585e185c9e5b60c21b8285015260808601919091528551808701875284815264497869757360d81b8185015260a086015285518087018752828152652a37b3b937b760d11b8185015260c08601528551808701875282815265283937bc37b760d11b8185015260e08601528551808701875284815264253abbbcb760d91b81850152610100860152855180870187528281526526b7b93cb2b760d11b81850152610120860152855180870187526007808252662332b73437b93760c91b82860152610140870191909152865180880188528281526753796c766172697360c01b81860152610160870152865180880188528181526656616c7472697360c81b8186015261018087015286518088018852838152655572696d797360d01b818601526101a087015286518088018852838152652a3432b334b960d11b818601526101c0870152865180880188528281526725b2b0b330b932b760c11b818601526101e0870152865180880188526009815268476c796e796461726b60b81b8186015261020087015286518088018852600d81526c42656e6d656b54686f72726f6d60981b8186015261022087015286518088018852601081526f2a3432b63230b4b7213ab73a343930b760811b818601526102408701528651808801885291825267109c9a5b19da595b60c21b8285015261026086019190915285518087018752828152654777616e726160d01b8185015261028086015285518087018752828152654e61736e617360d01b818501526102a086015285518087018752908152662230b2b93bbcb760c91b818401526102c085015284518086018652928352642130bd3ab960d91b838301526102e0840192909252835180850185526004808252634b6c6f6760e01b8284015261030085019190915284518086018652838152654b617267756b60d01b81840152610320850152845180860186526003808252622137b960e91b8285015261034086019190915285518087018752848152652437b6b930bd60d11b81850152610360860152855180870187529384526513985c99dbdb60d21b848401526103808501939093528451808601865290815263536e616b60e01b818301526103a084015283518085019094529083526226b7b960e91b908301526103c081019190915262000add90600f90601f620012ef565b50604080516103a08101825260116103608201818152704b69737320746865207072696e6365737360781b610380840152825282518084018452600f8082526e4b69737320746865207072696e636560881b602083810191909152808501929092528451808601865260158082527f5377696d207769746820746865206d6572666f6c6b000000000000000000000082850152858701919091528551808701875260168082527f536e65616b20696e746f207468652064756e67656f6e0000000000000000000082860152606087019190915286518088018852858152705361696c2077697468207069726174657360781b8186015260808701528651808801885260198082527f496e66696c7472617465207468652043697479205761746368000000000000008287015260a0880191909152875180890189529081527f5061792074686520746f6c6c20746f207468652074726f6c6c000000000000008186015260c0870152865180880188528281527f4475656c2074686520426c61636b204b6e6967687400000000000000000000008186015260e0870152865180880188528381526e149a5919481e5bdd5c881cdd195959608a1b8186015261010087015286518088018852601c81527f54726170207468652067656e696520696e2069747320626f74746c6500000000818601526101208701528651808801885260108082526f29b7b63b32903a34329036bab93232b960811b8287015261014088019190915287518089018952601a81527f436f6c6c6563742074686520756e69636f726e277320686f726e0000000000008187015261016088015287518089018952601881527f466c69727420776974682074686520696e6e6b65657065720000000000000000818701526101808801528751808901895260178082527f4a6f696e20746865205468696576657327204775696c64000000000000000000828801526101a08901919091528851808a018a529485526e151c9a585b08189e4818dbdb58985d608a1b858701526101c08801949094528751808901895260128082527120bb32b733b2903cb7bab9103330ba3432b960711b828801526101e08901919091528851808a018a5260138082527f537465616c2066726f6d20746865207269636800000000000000000000000000828901526102008a01919091528951808b018b528381526f23b4bb32903a37903a3432903837b7b960811b818901526102208a01528951808b018b528381526f15185ad94818481b1bdb99c81c995cdd60821b818901526102408a01528951808b018b529384527f5374617920617768696c6520616e64206c697374656e00000000000000000000848801526102608901939093528851808a018a5281815271111c9a5b9ac8185b1b081d1a19481b59585960721b818801526102808901528851808a018a52908152714265667269656e642074686520656c76657360701b818701526102a088015287518089018952958652704d696e652077697468206477617276657360781b868601526102c087019590955286518088018852600e81526d125b9cdc1a5c9948184818985c9960921b818601526102e0870152865180880188529081527f43617374206c696768746e696e6720626f6c740000000000000000000000000081850152610300860152855180870187529081527f47726f7720612077697a6172642773206265617264000000000000000000000081840152610320850152845180860190955284527f52657669766520612066616c6c656e20636f6d72616465000000000000000000908401526103408201929092526200101b9190601b62001341565b506040805161010081018252600f60c082018181526e29b630bc903a343290223930b3b7b760891b60e0840152825282518084018452600e81526d14d85d99481d1a194815dbdc9b1960921b6020828101919091528084019190915283518085018552601381527f46696e642074686520486f6c7920477261696c00000000000000000000000000818301528385015283518085018552600b81526a09ac2d6ca40c240aed2e6d60ab1b818301526060840152835180850185529182526e4265636f6d6520746865204b696e6760881b8282015260808301919091528251808401909352601d83527f50756c6c207468652053776f72642066726f6d207468652053746f6e650000009083015260a08101919091526200114090601190600662001393565b503480156200114e57600080fd5b506040518060400160405280600681526020016551756573747360d01b8152506040518060400160405280600681526020016551554553545360d01b8152508160009080519060200190620011a5929190620013e5565b508051620011bb906001906020840190620013e5565b505050620011d8620011d2620011e360201b60201c565b620011e7565b6001600b556200152a565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200128b579160200282015b828111156200128b57825180516200127a918491602090910190620013e5565b50916020019190600101906200125a565b506200129992915062001470565b5090565b8280548282559060005260206000209081019282156200128b579160200282015b828111156200128b5782518051620012de918491602090910190620013e5565b5091602001919060010190620012be565b8280548282559060005260206000209081019282156200128b579160200282015b828111156200128b578251805162001330918491602090910190620013e5565b509160200191906001019062001310565b8280548282559060005260206000209081019282156200128b579160200282015b828111156200128b578251805162001382918491602090910190620013e5565b509160200191906001019062001362565b8280548282559060005260206000209081019282156200128b579160200282015b828111156200128b5782518051620013d4918491602090910190620013e5565b5091602001919060010190620013b4565b828054620013f390620014ed565b90600052602060002090601f01602090048101928262001417576000855562001462565b82601f106200143257805160ff191683800117855562001462565b8280016001018555821562001462579182015b828111156200146257825182559160200191906001019062001445565b506200129992915062001491565b8082111562001299576000620014878282620014a8565b5060010162001470565b5b8082111562001299576000815560010162001492565b508054620014b690620014ed565b6000825580601f10620014ca5750620014ea565b601f016020900490600052602060002090810190620014ea919062001491565b50565b6002810460018216806200150257607f821691505b602082108114156200152457634e487b7160e01b600052602260045260246000fd5b50919050565b613a7f806200153a6000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c806370a08231116100e3578063b88d4fde1161008c578063da1970e611610066578063da1970e614610334578063e985e9c514610354578063f2fde38b1461036757610198565b8063b88d4fde146102fb578063c599242e1461030e578063c87b56dd1461032157610198565b806395d89b41116100bd57806395d89b41146102cd578063a22cb465146102d5578063b6e76873146102e857610198565b806370a08231146102aa578063715018a6146102bd5780638da5cb5b146102c557610198565b80632f745c591161014557806347d8636a1161011f57806347d8636a146102715780634f6ccce7146102845780636352211e1461029757610198565b80632f745c5914610238578063379607f51461024b57806342842e0e1461025e57610198565b8063095ea7b311610176578063095ea7b3146101fb57806318160ddd1461021057806323b872dd1461022557610198565b806301ffc9a71461019d57806306fdde03146101c6578063081812fc146101db575b600080fd5b6101b06101ab366004612830565b61037a565b6040516101bd9190612fb8565b60405180910390f35b6101ce6103c0565b6040516101bd9190612fc3565b6101ee6101e9366004612868565b610452565b6040516101bd9190612f1b565b61020e610209366004612805565b61049e565b005b610218610536565b6040516101bd91906135ea565b61020e6102333660046126c4565b61053c565b610218610246366004612805565b610574565b61020e610259366004612868565b6105c6565b61020e61026c3660046126c4565b610696565b61020e61027f366004612868565b6106b1565b610218610292366004612868565b6107c4565b6101ee6102a5366004612868565b61081f565b6102186102b836600461264d565b610854565b61020e610898565b6101ee6108e3565b6101ce6108f2565b61020e6102e33660046127d4565b610901565b6101ce6102f6366004612868565b6109cf565b61020e610309366004612704565b610ad0565b6101ce61031c366004612868565b610b0f565b6101ce61032f366004612868565b610e9d565b610347610342366004612868565b610ec2565b6040516101bd9190612f6b565b6101b061036236600461268c565b6116b9565b61020e61037536600461264d565b6116e7565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806103b857506103b882611758565b90505b919050565b6060600080546103cf90613681565b80601f01602080910402602001604051908101604052809291908181526020018280546103fb90613681565b80156104485780601f1061041d57610100808354040283529160200191610448565b820191906000526020600020905b81548152906001019060200180831161042b57829003601f168201915b5050505050905090565b600061045d826117ca565b6104825760405162461bcd60e51b815260040161047990613387565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104a98261081f565b9050806001600160a01b0316836001600160a01b031614156104dd5760405162461bcd60e51b81526004016104799061349c565b806001600160a01b03166104ef6117e7565b6001600160a01b0316148061050b575061050b816103626117e7565b6105275760405162461bcd60e51b81526004016104799061323b565b61053183836117eb565b505050565b60085490565b61054d6105476117e7565b82611866565b6105695760405162461bcd60e51b8152600401610479906134f9565b6105318383836118eb565b600061057f83610854565b821061059d5760405162461bcd60e51b815260040161047990612fd6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b5414156105e95760405162461bcd60e51b8152600401610479906135b3565b6002600b55611f4081118015610600575061271181105b61061c5760405162461bcd60e51b815260040161047990613408565b61062d6106276117e7565b82611a25565b6106496106386117e7565b610644836127106135f3565b611a25565b6106606106546117e7565b61064483614e206135f3565b61067761066b6117e7565b610644836175306135f3565b61068e6106826117e7565b61064483619c406135f3565b506001600b55565b61053183838360405180602001604052806000815250610ad0565b6002600b5414156106d45760405162461bcd60e51b8152600401610479906135b3565b6002600b5580158015906106e95750611f4181105b6107055760405162461bcd60e51b815260040161047990613408565b600c546040517f6352211e00000000000000000000000000000000000000000000000000000000815233916001600160a01b031690636352211e9061074e9085906004016135ea565b60206040518083038186803b15801561076657600080fd5b505afa15801561077a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079e9190612670565b6001600160a01b03161461061c5760405162461bcd60e51b815260040161047990613124565b60006107ce610536565b82106107ec5760405162461bcd60e51b815260040161047990613556565b6008828154811061080d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103b85760405162461bcd60e51b8152600401610479906132f5565b60006001600160a01b03821661087c5760405162461bcd60e51b815260040161047990613298565b506001600160a01b031660009081526003602052604090205490565b6108a06117e7565b6001600160a01b03166108b16108e3565b6001600160a01b0316146108d75760405162461bcd60e51b8152600401610479906133d3565b6108e16000611a43565b565b600a546001600160a01b031690565b6060600180546103cf90613681565b6109096117e7565b6001600160a01b0316826001600160a01b0316141561093a5760405162461bcd60e51b8152600401610479906131b8565b80600560006109476117e7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561098b6117e7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516109c39190612fb8565b60405180910390a35050565b606060006109e46109df84611aa2565b611bd5565b90506109f16015826136d1565b610abc5760118054610a0390836136d1565b81548110610a2157634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610a3690613681565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6290613681565b8015610aaf5780601f10610a8457610100808354040283529160200191610aaf565b820191906000526020600020905b815481529060010190602001808311610a9257829003601f168201915b50505050509150506103bb565b60108054610a0390836136d1565b50919050565b610ae1610adb6117e7565b83611866565b610afd5760405162461bcd60e51b8152600401610479906134f9565b610b0984848484611c06565b50505050565b60606127118210610b325760405162461bcd60e51b815260040161047990613408565b610b3a6125f1565b6000610b6c610b4885611aa2565b604051602001610b589190612aba565b604051602081830303815290604052611bd5565b600d805491925090610b7e90836136d1565b81548110610b9c57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610bb190613681565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdd90613681565b8015610c2a5780601f10610bff57610100808354040283529160200191610c2a565b820191906000526020600020905b815481529060010190602001808311610c0d57829003601f168201915b505050505082600060038110610c5057634e487b7160e01b600052603260045260246000fd5b60200201526000610c73610c6386611aa2565b604051602001610b589190612ba2565b600e805491925090610c8590836136d1565b81548110610ca357634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610cb890613681565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce490613681565b8015610d315780601f10610d0657610100808354040283529160200191610d31565b820191906000526020600020905b815481529060010190602001808311610d1457829003601f168201915b505050505083600160038110610d5757634e487b7160e01b600052603260045260246000fd5b60200201526000610d7a610d6a87611aa2565b604051602001610b589190612b61565b600f805491925090610d8c90836136d1565b81548110610daa57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610dbf90613681565b80601f0160208091040260200160405190810160405280929190818152602001828054610deb90613681565b8015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b505050505084600260038110610e5e57634e487b7160e01b600052603260045260246000fd5b602090810291909101919091528451858201516040808801519051610e839401612be3565b604051602081830303815290604052945050505050919050565b6060612711821015610eb957610eb282611c39565b90506103bb565b610eb282611e57565b610eca612618565b610ed2612618565b6000610ee0610c6385611aa2565b9050610eed6015826136d1565b610fdb5760118054610eff90836136d1565b81548110610f1d57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610f3290613681565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5e90613681565b8015610fab5780601f10610f8057610100808354040283529160200191610fab565b820191906000526020600020905b815481529060010190602001808311610f8e57829003601f168201915b505050505082600060048110610fd157634e487b7160e01b600052603260045260246000fd5b60200201526110c1565b60108054610fe990836136d1565b8154811061100757634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461101c90613681565b80601f016020809104026020016040519081016040528092919081815260200182805461104890613681565b80156110955780601f1061106a57610100808354040283529160200191611095565b820191906000526020600020905b81548152906001019060200180831161107857829003601f168201915b5050505050826000600481106110bb57634e487b7160e01b600052603260045260246000fd5b60200201525b60006110cf610d6a86611aa2565b90506110dc6015826136d1565b6111ca57601180546110ee90836136d1565b8154811061110c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461112190613681565b80601f016020809104026020016040519081016040528092919081815260200182805461114d90613681565b801561119a5780601f1061116f5761010080835404028352916020019161119a565b820191906000526020600020905b81548152906001019060200180831161117d57829003601f168201915b5050505050836001600481106111c057634e487b7160e01b600052603260045260246000fd5b60200201526112b0565b601080546111d890836136d1565b815481106111f657634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461120b90613681565b80601f016020809104026020016040519081016040528092919081815260200182805461123790613681565b80156112845780601f1061125957610100808354040283529160200191611284565b820191906000526020600020905b81548152906001019060200180831161126757829003601f168201915b5050505050836001600481106112aa57634e487b7160e01b600052603260045260246000fd5b60200201525b60006112ce6112be87611aa2565b604051602001610b589190612b20565b90506112db6015826136d1565b6113c957601180546112ed90836136d1565b8154811061130b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461132090613681565b80601f016020809104026020016040519081016040528092919081815260200182805461134c90613681565b80156113995780601f1061136e57610100808354040283529160200191611399565b820191906000526020600020905b81548152906001019060200180831161137c57829003601f168201915b5050505050846002600481106113bf57634e487b7160e01b600052603260045260246000fd5b60200201526114af565b601080546113d790836136d1565b815481106113f557634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461140a90613681565b80601f016020809104026020016040519081016040528092919081815260200182805461143690613681565b80156114835780601f1061145857610100808354040283529160200191611483565b820191906000526020600020905b81548152906001019060200180831161146657829003601f168201915b5050505050846002600481106114a957634e487b7160e01b600052603260045260246000fd5b60200201525b60006114cd6114bd88611aa2565b604051602001610b589190612adf565b90506114da6015826136d1565b6115c857601180546114ec90836136d1565b8154811061150a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461151f90613681565b80601f016020809104026020016040519081016040528092919081815260200182805461154b90613681565b80156115985780601f1061156d57610100808354040283529160200191611598565b820191906000526020600020905b81548152906001019060200180831161157b57829003601f168201915b5050505050856003600481106115be57634e487b7160e01b600052603260045260246000fd5b60200201526116ae565b601080546115d690836136d1565b815481106115f457634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461160990613681565b80601f016020809104026020016040519081016040528092919081815260200182805461163590613681565b80156116825780601f1061165757610100808354040283529160200191611682565b820191906000526020600020905b81548152906001019060200180831161166557829003601f168201915b5050505050856003600481106116a857634e487b7160e01b600052603260045260246000fd5b60200201525b509295945050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6116ef6117e7565b6001600160a01b03166117006108e3565b6001600160a01b0316146117265760405162461bcd60e51b8152600401610479906133d3565b6001600160a01b03811661174c5760405162461bcd60e51b815260040161047990613090565b61175581611a43565b50565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806117bb57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806103b857506103b882611f34565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061182d8261081f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611871826117ca565b61188d5760405162461bcd60e51b8152600401610479906131ef565b60006118988361081f565b9050806001600160a01b0316846001600160a01b031614806118d35750836001600160a01b03166118c884610452565b6001600160a01b0316145b806118e357506118e381856116b9565b949350505050565b826001600160a01b03166118fe8261081f565b6001600160a01b0316146119245760405162461bcd60e51b81526004016104799061343f565b6001600160a01b03821661194a5760405162461bcd60e51b81526004016104799061315b565b611955838383611f66565b6119606000826117eb565b6001600160a01b038316600090815260036020526040812080546001929061198990849061363e565b90915550506001600160a01b03821660009081526003602052604081208054600192906119b79084906135f3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611a3f828260405180602001604052806000815250611fef565b5050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606081611ac757506040805180820190915260018152600360fc1b60208201526103bb565b8160005b8115611af15780611adb816136b6565b9150611aea9050600a8361360b565b9150611acb565b60008167ffffffffffffffff811115611b1a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b44576020820181803683370190505b5090505b84156118e357611b5960018361363e565b9150611b66600a866136d1565b611b719060306135f3565b60f81b818381518110611b9457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611bce600a8661360b565b9450611b48565b600081604051602001611be8919061299b565b60408051601f19818403018152919052805160209091012092915050565b611c118484846118eb565b611c1d84848484612022565b610b095760405162461bcd60e51b815260040161047990613033565b60606000611c4683610ec2565b9050611c50612632565b604051806101400160405280610119815260200161375361011991398152611c7784610b0f565b81600160200201819052506040518060600160405280602881526020016139256028913960408083019190915282516060808401919091528151908101909152602880825261386c6020830139608082015260208281015160a08301526040805160608101909152602880825290916138949083013960c082015260408083015160e083015280516060810190915260298082526138bc6020830139610100820152606082015161012082015260408051808201909152600d81526c1e17ba32bc3a1f1e17b9bb339f60991b602082015281600a602090810291909101919091528151828201516040808501516060860151608087015160a088015160c089015160e08a01516101008b0151965160009a611d959a999891016129fa565b60408051808303601f1901815290829052610120840151610140850151919350611dc4928492906020016129b7565b60408051808303601f19018152918152602080850151865191870151928701516060880151949550600094611e2a949293929190611e0188612156565b604051602001611e1696959493929190612ca3565b604051602081830303815290604052612156565b905080604051602001611e3d9190612ed6565b60408051808303601f190181529190529695505050505050565b6060611e616125f1565b60405180610120016040528060fd815260200161394d60fd91398152611e86836109cf565b6020828101918252604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b81840152818501819052845193519151600094611ecd9490939291016129b7565b60408051808303601f190181529190526020830151909150600090611f089080611ef685612156565b604051602001611e1693929190612df0565b905080604051602001611f1b9190612ed6565b60408051808303601f1901815291905295945050505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b611f71838383610531565b6001600160a01b038316611f8d57611f8881612301565b611fb0565b816001600160a01b0316836001600160a01b031614611fb057611fb08382612345565b6001600160a01b038216611fcc57611fc7816123e2565b610531565b826001600160a01b0316826001600160a01b0316146105315761053182826124bb565b611ff983836124ff565b6120066000848484612022565b6105315760405162461bcd60e51b815260040161047990613033565b6000612036846001600160a01b03166125eb565b1561214b57836001600160a01b031663150b7a026120526117e7565b8786866040518563ffffffff1660e01b81526004016120749493929190612f2f565b602060405180830381600087803b15801561208e57600080fd5b505af19250505080156120be575060408051601f3d908101601f191682019092526120bb9181019061284c565b60015b612118573d8080156120ec576040519150601f19603f3d011682016040523d82523d6000602084013e6120f1565b606091505b5080516121105760405162461bcd60e51b815260040161047990613033565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506118e3565b506001949350505050565b8051606090806121765750506040805160208101909152600081526103bb565b600060036121858360026135f3565b61218f919061360b565b61219a90600461361f565b905060006121a98260206135f3565b67ffffffffffffffff8111156121cf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121f9576020820181803683370190505b50905060006040518060600160405280604081526020016138e5604091399050600181016020830160005b86811015612285576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612224565b50600386066001811461229f57600281146122cb576122f3565b7f3d3d0000000000000000000000000000000000000000000000000000000000006001198301526122f3565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161235284610854565b61235c919061363e565b6000838152600760205260409020549091508082146123af576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906123f49060019061363e565b6000838152600960205260408120546008805493945090928490811061242a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061245957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061249f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006124c683610854565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166125255760405162461bcd60e51b815260040161047990613352565b61252e816117ca565b1561254b5760405162461bcd60e51b8152600401610479906130ed565b61255760008383611f66565b6001600160a01b03821660009081526003602052604081208054600192906125809084906135f3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b60405180606001604052806003905b60608152602001906001900390816126005790505090565b604080516080810190915260608152600360208201612600565b60408051610160810190915260608152600a60208201612600565b60006020828403121561265e578081fd5b813561266981613727565b9392505050565b600060208284031215612681578081fd5b815161266981613727565b6000806040838503121561269e578081fd5b82356126a981613727565b915060208301356126b981613727565b809150509250929050565b6000806000606084860312156126d8578081fd5b83356126e381613727565b925060208401356126f381613727565b929592945050506040919091013590565b60008060008060808587031215612719578081fd5b843561272481613727565b935060208581013561273581613727565b935060408601359250606086013567ffffffffffffffff80821115612758578384fd5b818801915088601f83011261276b578384fd5b81358181111561277d5761277d613711565b604051601f8201601f19168101850183811182821017156127a0576127a0613711565b60405281815283820185018b10156127b6578586fd5b81858501868301379081019093019390935250939692955090935050565b600080604083850312156127e6578182fd5b82356127f181613727565b9150602083013580151581146126b9578182fd5b60008060408385031215612817578182fd5b823561282281613727565b946020939093013593505050565b600060208284031215612841578081fd5b81356126698161373c565b60006020828403121561285d578081fd5b81516126698161373c565b600060208284031215612879578081fd5b5035919050565b60008151808452612898816020860160208601613655565b601f01601f19169290920160200192915050565b600081516128be818560208601613655565b9290920192915050565b7f22207d205d2c2022696d616765223a2022646174613a696d6167652f7376672b81527f786d6c3b6261736536342c0000000000000000000000000000000000000000006020820152602b0190565b7f22207d2c207b202274726169745f74797065223a2022537465702033222c20228152683b30b63ab2911d101160b91b602082015260290190565b61227d60f01b815260020190565b7f22207d2c207b202274726169745f74797065223a2022537465702034222c20228152683b30b63ab2911d101160b91b602082015260290190565b600082516129ad818460208701613655565b9190910192915050565b600084516129c9818460208901613655565b8451908301906129dd818360208901613655565b84519101906129f0818360208801613655565b0195945050505050565b60008a51612a0c818460208f01613655565b8a51612a1e8183860160208f01613655565b8a519184010190612a33818360208e01613655565b8951612a458183850160208e01613655565b8951929091010190612a5b818360208c01613655565b8751612a6d8183850160208c01613655565b8751929091010190612a83818360208a01613655565b8551910190612a96818360208901613655565b8451612aa88183850160208901613655565b9101019b9a5050505050505050505050565b60008251612acc818460208701613655565b600360fc1b920191825250600101919050565b60008251612af1818460208701613655565b7f3400000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60008251612b32818460208701613655565b7f3300000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60008251612b73818460208701613655565b7f3200000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60008251612bb4818460208701613655565b7f3100000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60007f546865200000000000000000000000000000000000000000000000000000000082528451612c1b816004850160208901613655565b7f20000000000000000000000000000000000000000000000000000000000000006004918401918201528451612c58816005840160208901613655565b7f206f662000000000000000000000000000000000000000000000000000000000600592909101918201528351612c96816009840160208801613655565b0160090195945050505050565b6000693d913730b6b2911d101160b11b82528751612cc881600a850160208c01613655565b7f222c20226465736372697074696f6e223a20225175657374732e222c20226174600a918401918201527f7472696275746573223a205b207b202274726169745f74797065223a20225374602a8201527f65702031222c202276616c7565223a2022000000000000000000000000000000604a8201528751612d5181605b840160208c01613655565b7f22207d2c207b202274726169745f74797065223a2022537465702032222c2022605b9290910191820152683b30b63ab2911d101160b91b607b8201528651612da1816084840160208b01613655565b612de2612ddd612dd7612dd2612dcc612dc7612dc16084888a0101612917565b8d6128ac565b612960565b8a6128ac565b6128c8565b876128ac565b612952565b9a9950505050505050505050565b6000693d913730b6b2911d101160b11b82528451612e1581600a850160208901613655565b7f222c20226465736372697074696f6e223a20225175657374732e222c20226174600a918401918201527f7472696275746573223a205b207b202274726169745f74797065223a20224163602a8201527f74696f6e2054797065222c202276616c7565223a202200000000000000000000604a8201528451612e9e816060840160208901613655565b612eac6060828401016128c8565b9150508351612ebf818360208801613655565b61227d60f01b910190815260020195945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612f0e81601d850160208701613655565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f616080830184612880565b9695505050505050565b602080825260009060a0830183820185845b6004811015612fac57601f19878503018352612f9a848351612880565b93509184019190840190600101612f7d565b50919695505050505050565b901515815260200190565b6000602082526126696020830184612880565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600e908201527f4e6f74204c6f6f74206f776e6572000000000000000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201527f546f6b656e20494420696e76616c696400000000000000000000000000000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60008219821115613606576136066136e5565b500190565b60008261361a5761361a6136fb565b500490565b6000816000190483118215151615613639576136396136e5565b500290565b600082821015613650576136506136e5565b500390565b60005b83811015613670578181015183820152602001613658565b83811115610b095750506000910152565b60028104600182168061369557607f821691505b60208210811415610aca57634e487b7160e01b600052602260045260246000fd5b60006000198214156136ca576136ca6136e5565b5060010190565b6000826136e0576136e06136fb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461175557600080fd5b6001600160e01b03198116811461175557600080fdfe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d22626173652220746578742d6465636f726174696f6e3d22756e6465726c696e65223e3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22776869746522202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223ea26469706673582212203d652ce61821fc7911007fa30e59fe91819ebed3980bca7460ee3ca5dd2ba80d64736f6c63430008000033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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