Contract 0xb37d3d79ea86B0334d9322c695339D577A3D57be 1

 
This address is a mod by Rarity's community based from this tweet.
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe7495d2090222054cb80d411a50c3c33559b8d128ccf72217c53737047cfaaccSet Approval For...427516502022-07-14 15:17:5572 days 23 hrs ago0xed8e924735f590572361b52657abd9a3260f35a0 IN  Rarity: 0xb37...7be Community Mod0 FTM0.000148901997
0xce95f5f3b2a6b72ee2f128ff584d64db9943b4566e5394e6665ab1fd8ed968d0Approve312190282022-02-17 9:33:46220 days 5 hrs ago0x6cd1b82490eb7aa18bec4305c6c2e691194c6898 IN  Rarity: 0xb37...7be Community Mod0 FTM0.011262384911
0xc1c7ee70ee44b5a91f2a186544a6049a1ddc73294f6b32e26c3b3d7b5a665ca9Approve312190152022-02-17 9:33:36220 days 5 hrs ago0x6cd1b82490eb7aa18bec4305c6c2e691194c6898 IN  Rarity: 0xb37...7be Community Mod0 FTM0.011262384911
0xc405d132803b815b163c16779fdfe72c1c632f248a2077ad1353a5b41709d883Start Research245237842021-12-10 5:42:18289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004126968436
0x6c7d984874bdf8bf643b671ca24e9dbbb52c61cd30bac1078a748a2d274a2f1fStart Research245237812021-12-10 5:42:16289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004126968436
0x1799a0497f460e7bbdb1461633d4c7b4d356298ab7fc3192edfe7e9356766e71Start Research245237782021-12-10 5:42:14289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004126968436
0x33e1f8e327d64161b26909b0d6ee38a386f0864bd029a66bc91a8ae64b1df48fStart Research245237762021-12-10 5:42:12289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004126968436
0x882c50b57c89195013ed722d5b88f2ed678d28341d6e95e35cca35b56289f33dStart Research245237742021-12-10 5:42:11289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004126968436
0x8ef391457941f88bbd4286ea783498e4965580e7c9bec5bdb606213d62a65707Start Research245237722021-12-10 5:42:09289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004126968436
0xc2685f5d673547835a7bfc00e2bd9d1f0428446792974fa6262bae361cc72249Discover245237422021-12-10 5:41:44289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018290080356
0xbc9825c244c91e180fc643ae34d3f642ae471e78d4ae2a61071137d9d586124bDiscover245237392021-12-10 5:41:42289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018290080356
0xcac22553c126b98e38ef8976c08d72786da10aef509c8f6bf1eb88da3b59d591Discover245237352021-12-10 5:41:39289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.017989884132
0x8037dc9ccf4fc26217f4a1ef71e472315dccba40a73882da0d5a8a7f358eb492Discover245237342021-12-10 5:41:37289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018290080356
0x4617d295094c4627d386fa63d63c418e9b93f6336af1b355cdff3f9b2dbef3e0Discover245237332021-12-10 5:41:36289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.016488903012
0x4289cae23a70a064bf02f0a22629e14c20307ef40ddb89485cce7a3b24dc53e0Discover245237302021-12-10 5:41:34289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018290080356
0x98a2efd16c8900051ba3551adf1f533e4413abbfe2aacb09a47689a9d6231402Start Research245236942021-12-10 5:41:03289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004145996832
0x9f18f79db7a6e54423f269e8475401b55cc3044e80ccfc7ea7934542ae80d440Start Research245236912021-12-10 5:41:01289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004145996832
0xf25d41d2ff03e1b904434e76340f028beb8f810918f140b9c9f7032ce31e2cc5Start Research245236882021-12-10 5:40:58289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004145996832
0x2cd86a999a60762f7e63f5acecdfa8201b2875cc3945cba8230d81f6e2fd6e12Start Research245236852021-12-10 5:40:56289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004145996832
0x640e7ba21c1bce72892c7325c2edbd4077ef42e365bffcafebaa70a78ae4514cDiscover245236592021-12-10 5:40:33289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018072830886
0xcfeecaa9e0d815f5817afacb0e76df24870b409ef3109a504b98aafdff1233f2Discover245236592021-12-10 5:40:33289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.014755447014
0x675a0a04c779abcd6211c5a60e3d104989008cfa7d010cac1a7da731b6d221c2Discover245236562021-12-10 5:40:30289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018072830886
0x67341ba9187ec093667b87cd7b1d64079fb5b4c0a8f8cd43fe874c0aaeff7bdcDiscover245236532021-12-10 5:40:27289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.018374411238
0x481c34577885932b618d999ec0365705a8df9e33a1c78014cb893a78786e1feaStart Research245236262021-12-10 5:40:06289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004196941145
0xcbf01497a998d6c4f8b2b00e26f264c9472fb96d032fd31fb0a403fba2d7cbb0Start Research245236212021-12-10 5:40:00289 days 9 hrs ago0xc271fa9b1afb3b9d4dd0e5eeaba92c97ba3e2b1e IN  Rarity: 0xb37...7be Community Mod0 FTM0.004196941145
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x85a2eb93eb348c26143d287367c32240c2a70c58839da97102c615edf4060bba166107062021-09-07 17:46:18382 days 21 hrs ago 0x81c0b3c7a7d1f10fff2cb0201c01c46bfe472fa5  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheRarityForest

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : theRarityForest.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./interfaces/IRarity.sol";

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

contract TheRarityForest is ERC721 {

    using Counters for Counters.Counter;
    using Strings for uint256;

    constructor(address _rarityAddr) ERC721("TheRarityForest", "TRF") {
        rarityContract = IRarity(_rarityAddr);
    }

    uint256 private globalSeed;
    IRarity public rarityContract;
    mapping(address => mapping(uint256 => Research)) researchs;
    mapping(uint256 => string) items;
    mapping(uint256 => uint256) magic;
    mapping(uint256 => uint256) level;
    Counters.Counter public _tokenIdCounter;

    string[] sevenDaysItems = [
        "Dead King crown", 
        "Black gauntlet",
        "Haunted ring",
        "Ancient book",
        "Enchanted book",
        "Gold ring",
        "Treasure map",
        "Spell book",
        "Silver sword",
        "Ancient Prince Andre's Sword",
        "Old damaged coin",
        "Magic necklace",
        "Mechanical hand"
    ];
    string[] sixDaysItems = [
        "Silver sword",
        "Haunted ring",
        "War helmet",
        "Fire boots",
        "War trophy",
        "Elf skull",
        "Unknown ring",
        "Silver ring",
        "War book",
        "Gold pot",
        "Demon head",
        "Unknown key",
        "Cursed book",
        "Giant plant seed",
        "Old farmer sickle",
        "War trophy",
        "Enchanted useless tool"
    ];
    string[] fiveDaysItems = [
        "Dragon egg",
        "Bear claw",
        "Silver sword",
        "Rare ring",
        "Glove with diamonds",
        "Haunted cloak",
        "Dead hero cape",
        "Cursed talisman",
        "Enchanted talisman",
        "Haunted ring",
        "Time crystal",
        "Warrior watch",
        "Paladin eye",
        "Metal horse saddle",
        "Witcher book",
        "Witch book",
        "Unknown animal eye"
    ];
    string[] fourDaysItems = [
        "Slain warrior armor",
        "Witcher book",
        "Cursed talisman",
        "Antique ring",
        "Ancient Prince Andre's Sword",
        "King's son sword",
        "Old damaged coin",
        "Thunder hammer",
        "Time crystal",
        "Skull fragment",
        "Hawk eye",
        "Meteorite fragment",
        "Mutant fisheye",
        "Wolf necklace",
        "Shadowy rabbit paw",
        "Paladin eye"
    ];

    event ResearchStarted(uint256 summonerId, address owner);
    event TreasureDiscovered(address owner, uint256 treasureId);
    event TreasureLevelUp(uint256 treasureId, uint256 summonerId, uint256 newLevel);

    struct Research {
        uint256 timeInDays;
        uint256 initBlock; //Block when research started
        bool discovered;
        uint256 summonerId;
        address owner;
    }

    //Gen random
    function _random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    //Return required XP to levelup a treasure
    function xpRequired(uint currentLevel) public pure returns (uint xpToNextLevel) {
        xpToNextLevel = currentLevel * 1000e18;
        for (uint i = 1; i < currentLevel; i++) {
            xpToNextLevel += currentLevel * 1000e18;
        }
    }

    //Get random treasure
    function _randomTreasure(Research memory research) internal returns (string memory, uint256, uint256){
        string memory _string = string(abi.encodePacked(research.summonerId, abi.encodePacked(research.owner), abi.encodePacked(research.initBlock), abi.encodePacked(globalSeed)));
        uint256 index = _random(_string);
        globalSeed = index;

        if (research.timeInDays == 7) {
            //(itemName, magic, level)
            return (sevenDaysItems[index % sevenDaysItems.length], index % 11, index % 6);
        }
        if (research.timeInDays == 6) {
            //(itemName, magic, level)
            return (sixDaysItems[index % sixDaysItems.length], index % 11, index % 6);
        }
        if (research.timeInDays == 5) {
            //(itemName, magic, level)
            return (fiveDaysItems[index % fiveDaysItems.length], index % 11, index % 6);
        }
        if (research.timeInDays == 4) {
            //(itemName, magic, level)
            return (fourDaysItems[index % fourDaysItems.length], index % 11, index % 6);
        }
        
    }

    //Is owner of summoner or is approved
    function _isApprovedOrOwnerOfSummoner(uint256 summonerId, address _owner) internal view virtual returns (bool) {
        //_owner => expected owner
        address spender = address(this);
        address owner = rarityContract.ownerOf(summonerId);
        return (owner == _owner || rarityContract.getApproved(summonerId) == spender || rarityContract.isApprovedForAll(owner, spender));
    }

    //Mint a new ERC721
    function safeMint(address to) internal returns (uint256){
        uint256 counter = _tokenIdCounter.current();
        _safeMint(to, counter);
        _tokenIdCounter.increment();
        return counter;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        string[7] 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">';

        parts[1] = string(abi.encodePacked("name", " ", items[tokenId]));

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

        parts[3] = string(abi.encodePacked("magic", " ", magic[tokenId].toString()));

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

        parts[5] = string(abi.encodePacked("level", " ", level[tokenId].toString()));

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

        string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6]));

        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "treasure #', tokenId.toString(), '", "description": "Rarity is achieved through good luck and intelligence", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

    //Research for new treasuries
    function startResearch(uint256 summonerId, uint256 timeInDays) public returns (uint256) {
        //timeInDays -> time to research the forest
        require(timeInDays >= 4 && timeInDays <= 7, "not valid");
        require(_isApprovedOrOwnerOfSummoner(summonerId, msg.sender), "not your summoner");
        (,,,uint256 summonerLevel) = rarityContract.summoner(summonerId);
        require(summonerLevel >= 2, "not level >= 2");
        require(researchs[msg.sender][summonerId].timeInDays == 0 || researchs[msg.sender][summonerId].discovered == true, "not empty or not discovered yet"); //If empty or already discovered
        researchs[msg.sender][summonerId] = Research(timeInDays, block.timestamp, false, summonerId, msg.sender);
        emit ResearchStarted(summonerId, msg.sender);
        return summonerId;
    }

    //Discover a treasure
    function discover(uint256 summonerId) public returns (uint256){
        Research memory research = researchs[msg.sender][summonerId];
        require(!research.discovered && research.timeInDays > 0, "already discovered or not initialized");
        require(research.initBlock + (research.timeInDays * 1 days) < block.timestamp, "not finish yet");
        //mint erc721 based on pseudo random things
        (string memory _itemName, uint256 _magic, uint256 _level) = _randomTreasure(research);
        uint256 newTokenId = safeMint(msg.sender);
        items[newTokenId] = _itemName;
        magic[newTokenId] = _magic;
        level[newTokenId] = _level;
        research.discovered = true;
        researchs[msg.sender][summonerId] = research;
        emit TreasureDiscovered(msg.sender, newTokenId);
        return newTokenId;
    }

    //Level up an item, spending summoner XP (need approval)
    function levelUp(uint256 summonerId, uint256 tokenId) public {
        require(_isApprovedOrOwnerOfSummoner(summonerId, msg.sender), "not your treasure");
        uint256 current = level[tokenId];
        rarityContract.spend_xp(summonerId, xpRequired(current));
        level[tokenId] += 1;
        emit TreasureLevelUp(tokenId, summonerId, current + 1);
    }

    //View your treasure
    function treasure(uint tokenId) external view returns (string memory _itemName, uint _magic, uint _level) {
        _itemName = items[tokenId];
        _magic = magic[tokenId];
        _level = level[tokenId];
    }

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 12 : IRarity.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

interface IRarity {
    function ownerOf(uint256 tokenId) external view returns (address owner);
    function summoner(uint _summoner) external view returns (uint _xp, uint _log, uint _class, uint _level);
    function spend_xp(uint _summoner, uint _xp) external;
    function getApproved(uint256 tokenId) external view returns (address);
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 5 of 12 : 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 6 of 12 : 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 7 of 12 : 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 8 of 12 : 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 9 of 12 : 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 10 of 12 : 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 11 of 12 : 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 12 of 12 : 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
{
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rarityAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"summonerId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"ResearchStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"treasureId","type":"uint256"}],"name":"TreasureDiscovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"treasureId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"summonerId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLevel","type":"uint256"}],"name":"TreasureLevelUp","type":"event"},{"inputs":[],"name":"_tokenIdCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"summonerId","type":"uint256"}],"name":"discover","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"summonerId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"rarityContract","outputs":[{"internalType":"contract IRarity","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"summonerId","type":"uint256"},{"internalType":"uint256","name":"timeInDays","type":"uint256"}],"name":"startResearch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"treasure","outputs":[{"internalType":"string","name":"_itemName","type":"string"},{"internalType":"uint256","name":"_magic","type":"uint256"},{"internalType":"uint256","name":"_level","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"currentLevel","type":"uint256"}],"name":"xpRequired","outputs":[{"internalType":"uint256","name":"xpToNextLevel","type":"uint256"}],"stateMutability":"pure","type":"function"}]

6080604052604051806101a001604052806040518060400160405280600f81526020017f44656164204b696e672063726f776e000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f426c61636b206761756e746c657400000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4861756e7465642072696e67000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f416e6369656e7420626f6f6b000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f456e6368616e74656420626f6f6b00000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f476f6c642072696e67000000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5472656173757265206d6170000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f5370656c6c20626f6f6b0000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f53696c7665722073776f7264000000000000000000000000000000000000000081525081526020016040518060400160405280601c81526020017f416e6369656e74205072696e636520416e64726527732053776f72640000000081525081526020016040518060400160405280601081526020017f4f6c642064616d6167656420636f696e0000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4d61676963206e65636b6c61636500000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4d656368616e6963616c2068616e640000000000000000000000000000000000815250815250600d90600d6200031f92919062001018565b506040518061022001604052806040518060400160405280600c81526020017f53696c7665722073776f7264000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4861756e7465642072696e67000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f5761722068656c6d65740000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f4669726520626f6f74730000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f5761722074726f7068790000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f456c6620736b756c6c000000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f556e6b6e6f776e2072696e67000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f53696c7665722072696e6700000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f57617220626f6f6b00000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f476f6c6420706f7400000000000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f44656d6f6e20686561640000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f556e6b6e6f776e206b657900000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f43757273656420626f6f6b00000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4769616e7420706c616e7420736565640000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f6c64206661726d6572207369636b6c6500000000000000000000000000000081525081526020016040518060400160405280600a81526020017f5761722074726f7068790000000000000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f456e6368616e746564207573656c65737320746f6f6c00000000000000000000815250815250600e906011620007279291906200107f565b506040518061022001604052806040518060400160405280600a81526020017f447261676f6e206567670000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f4265617220636c6177000000000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f53696c7665722073776f7264000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f526172652072696e67000000000000000000000000000000000000000000000081525081526020016040518060400160405280601381526020017f476c6f76652077697468206469616d6f6e64730000000000000000000000000081525081526020016040518060400160405280600d81526020017f4861756e74656420636c6f616b0000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f44656164206865726f206361706500000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4375727365642074616c69736d616e000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f456e6368616e7465642074616c69736d616e000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4861756e7465642072696e67000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f54696d65206372797374616c000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f57617272696f722077617463680000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f50616c6164696e2065796500000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f4d6574616c20686f72736520736164646c65000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5769746368657220626f6f6b000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f576974636820626f6f6b0000000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f556e6b6e6f776e20616e696d616c206579650000000000000000000000000000815250815250600f90601162000b2f9291906200107f565b506040518061020001604052806040518060400160405280601381526020017f536c61696e2077617272696f722061726d6f720000000000000000000000000081525081526020016040518060400160405280600c81526020017f5769746368657220626f6f6b000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4375727365642074616c69736d616e000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f416e74697175652072696e67000000000000000000000000000000000000000081525081526020016040518060400160405280601c81526020017f416e6369656e74205072696e636520416e64726527732053776f72640000000081525081526020016040518060400160405280601081526020017f4b696e67277320736f6e2073776f72640000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4f6c642064616d6167656420636f696e0000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5468756e6465722068616d6d657200000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f54696d65206372797374616c000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f536b756c6c20667261676d656e7400000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f4861776b2065796500000000000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f4d6574656f7269746520667261676d656e74000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4d7574616e74206669736865796500000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f576f6c66206e65636b6c6163650000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f536861646f77792072616262697420706177000000000000000000000000000081525081526020016040518060400160405280600b81526020017f50616c6164696e20657965000000000000000000000000000000000000000000815250815250601090601062000efc929190620010e6565b5034801562000f0a57600080fd5b506040516200604338038062006043833981810160405281019062000f30919062001282565b6040518060400160405280600f81526020017f546865526172697479466f7265737400000000000000000000000000000000008152506040518060400160405280600381526020017f5452460000000000000000000000000000000000000000000000000000000000815250816000908051906020019062000fb49291906200114d565b50806001908051906020019062000fcd9291906200114d565b50505080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062001361565b8280548282559060005260206000209081019282156200106c579160200282015b828111156200106b5782518290805190602001906200105a9291906200114d565b509160200191906001019062001039565b5b5090506200107b9190620011de565b5090565b828054828255906000526020600020908101928215620010d3579160200282015b82811115620010d2578251829080519060200190620010c19291906200114d565b5091602001919060010190620010a0565b5b509050620010e29190620011de565b5090565b8280548282559060005260206000209081019282156200113a579160200282015b8281111562001139578251829080519060200190620011289291906200114d565b509160200191906001019062001107565b5b509050620011499190620011de565b5090565b8280546200115b90620012e2565b90600052602060002090601f0160209004810192826200117f5760008555620011cb565b82601f106200119a57805160ff1916838001178555620011cb565b82800160010185558215620011cb579182015b82811115620011ca578251825591602001919060010190620011ad565b5b509050620011da919062001206565b5090565b5b80821115620012025760008181620011f8919062001225565b50600101620011df565b5090565b5b808211156200122157600081600090555060010162001207565b5090565b5080546200123390620012e2565b6000825580601f1062001247575062001268565b601f01602090049060005260206000209081019062001267919062001206565b5b50565b6000815190506200127c8162001347565b92915050565b6000602082840312156200129557600080fd5b6000620012a5848285016200126b565b91505092915050565b6000620012bb82620012c2565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620012fb57607f821691505b6020821081141562001312576200131162001318565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200135281620012ae565b81146200135e57600080fd5b50565b614cd280620013716000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806377600891116100ad578063a22cb46511610071578063a22cb4651461037d578063b88d4fde14610399578063c87b56dd146103b5578063e177164f146103e5578063e985e9c5146104035761012c565b806377600891146102af57806384c4bd4b146102df57806395d89b41146102fd57806398552bb71461031b578063a1cc1b821461034b5761012c565b806342842e0e116100f457806342842e0e146101e75780635226dc93146102035780636352211e1461021f57806370a082311461024f5780637291d2cc1461027f5761012c565b806301ffc9a71461013157806306fdde0314610161578063081812fc1461017f578063095ea7b3146101af57806323b872dd146101cb575b600080fd5b61014b6004803603810190610146919061340c565b610433565b6040516101589190614292565b60405180910390f35b610169610515565b60405161017691906142c8565b60405180910390f35b6101996004803603810190610194919061345e565b6105a7565b6040516101a691906141d9565b60405180910390f35b6101c960048036038101906101c491906133a7565b61062c565b005b6101e560048036038101906101e091906132a1565b610744565b005b61020160048036038101906101fc91906132a1565b6107a4565b005b61021d60048036038101906102189190613487565b6107c4565b005b6102396004803603810190610234919061345e565b610933565b60405161024691906141d9565b60405180910390f35b61026960048036038101906102649190613213565b6109e5565b60405161027691906145a8565b60405180910390f35b61029960048036038101906102949190613487565b610a9d565b6040516102a691906145a8565b60405180910390f35b6102c960048036038101906102c4919061345e565b610e8f565b6040516102d691906145a8565b60405180910390f35b6102e76111df565b6040516102f491906145a8565b60405180910390f35b6103056111eb565b60405161031291906142c8565b60405180910390f35b6103356004803603810190610330919061345e565b61127d565b60405161034291906145a8565b60405180910390f35b6103656004803603810190610360919061345e565b6112e0565b604051610374939291906142ea565b60405180910390f35b6103976004803603810190610392919061336b565b6113b6565b005b6103b360048036038101906103ae91906132f0565b611537565b005b6103cf60048036038101906103ca919061345e565b611599565b6040516103dc91906142c8565b60405180910390f35b6103ed611ae8565b6040516103fa91906142ad565b60405180910390f35b61041d60048036038101906104189190613265565b611b0e565b60405161042a9190614292565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104fe57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061050e575061050d82611ba2565b5b9050919050565b606060008054610524906148ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610550906148ff565b801561059d5780601f106105725761010080835404028352916020019161059d565b820191906000526020600020905b81548152906001019060200180831161058057829003601f168201915b5050505050905090565b60006105b282611c0c565b6105f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105e8906144c8565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061063782610933565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156106a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069f90614528565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166106c7611c78565b73ffffffffffffffffffffffffffffffffffffffff1614806106f657506106f5816106f0611c78565b611b0e565b5b610735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072c90614408565b60405180910390fd5b61073f8383611c80565b505050565b61075561074f611c78565b82611d39565b610794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078b90614548565b60405180910390fd5b61079f838383611e17565b505050565b6107bf83838360405180602001604052806000815250611537565b505050565b6107ce8233612073565b61080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080490614568565b60405180910390fd5b6000600b6000838152602001908152602001600020549050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e58410bb8461086d8461127d565b6040518363ffffffff1660e01b815260040161088a9291906145ec565b600060405180830381600087803b1580156108a457600080fd5b505af11580156108b8573d6000803e3d6000fd5b505050506001600b600084815260200190815260200160002060008282546108e09190614710565b925050819055507fcbd5ac7b0051db886c3d484832859f91e269ac5e496be1dad4d233bbe0c6fa3c82846001846109179190614710565b60405161092693929190614615565b60405180910390a1505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d390614448565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4d90614428565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060048210158015610ab1575060078211155b610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae790614488565b60405180910390fd5b610afa8333612073565b610b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3090614388565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c363b9eb856040518263ffffffff1660e01b8152600401610b9691906145a8565b60806040518083038186803b158015610bae57600080fd5b505afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be691906134c3565b93505050506002811015610c2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2690614508565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868152602001908152602001600020600001541480610cf5575060011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060020160009054906101000a900460ff161515145b610d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2b90614588565b60405180910390fd5b6040518060a001604052808481526020014281526020016000151581526020018581526020013373ffffffffffffffffffffffffffffffffffffffff16815250600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000868152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff0219169083151502179055506060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507ff7756f88326e9b723a3d8ce90694916624f7200a409584df9de5ea36d55734628433604051610e7d9291906145c3565b60405180910390a18391505092915050565b600080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820160009054906101000a900460ff16151515158152602001600382015481526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508060400151158015610f94575060008160000151115b610fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fca90614328565b60405180910390fd5b42620151808260000151610fe79190614797565b8260200151610ff69190614710565b10611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d906144a8565b60405180910390fd5b6000806000611044846122f5565b9250925092506000611055336127f9565b90508360096000838152602001908152602001600020908051906020019061107e929190613039565b5082600a60008381526020019081526020016000208190555081600b600083815260200190815260200160002081905550600185604001901515908115158152505084600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000898152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff0219169083151502179055506060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507fa30d3b2e0d2377eaf00d1b10f0c807512ba4a91c4ee8d3f7e6543a1291148d8933826040516111ca929190614269565b60405180910390a18095505050505050919050565b600c8060000154905081565b6060600180546111fa906148ff565b80601f0160208091040260200160405190810160405280929190818152602001828054611226906148ff565b80156112735780601f1061124857610100808354040283529160200191611273565b820191906000526020600020905b81548152906001019060200180831161125657829003601f168201915b5050505050905090565b6000683635c9adc5dea00000826112949190614797565b90506000600190505b828110156112da57683635c9adc5dea00000836112ba9190614797565b826112c59190614710565b915080806112d290614931565b91505061129d565b50919050565b6060600080600960008581526020019081526020016000208054611303906148ff565b80601f016020809104026020016040519081016040528092919081815260200182805461132f906148ff565b801561137c5780601f106113515761010080835404028352916020019161137c565b820191906000526020600020905b81548152906001019060200180831161135f57829003601f168201915b50505050509250600a6000858152602001908152602001600020549150600b60008581526020019081526020016000205490509193909250565b6113be611c78565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561142c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611423906143c8565b60405180910390fd5b8060056000611439611c78565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114e6611c78565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161152b9190614292565b60405180910390a35050565b611548611542611c78565b83611d39565b611587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157e90614548565b60405180910390fd5b61159384848484612825565b50505050565b60606115a36130bf565b60405180610120016040528060fd8152602001614b3860fd9139816000600781106115f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002018190525060096000848152602001908152602001600020604051602001611622919061408e565b6040516020818303038152906040528160016007811061166b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250604051806060016040528060288152602001614c7560289139816002600781106116c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052506116ea600a600085815260200190815260200160002054612881565b6040516020016116fa91906140bb565b60405160208183030381529060405281600360078110611743577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250604051806060016040528060288152602001614b10602891398160046007811061179e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052506117c2600b600085815260200190815260200160002054612881565b6040516020016117d2919061414f565b6040516020818303038152906040528160056007811061181b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052506040518060400160405280600d81526020017f3c2f746578743e3c2f7376673e0000000000000000000000000000000000000081525081600660078110611893577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052506000816000600781106118d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015182600160078110611916577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015183600260078110611955577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015184600360078110611994577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151856004600781106119d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015186600560078110611a12577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015187600660078110611a51577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151604051602001611a6c9796959493929190614029565b60405160208183030381529060405290506000611ab9611a8b86612881565b611a9484612a2e565b604051602001611aa59291906140e8565b604051602081830303815290604052612a2e565b905080604051602001611acc919061412d565b6040516020818303038152906040529150819350505050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cf383610933565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d4482611c0c565b611d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7a906143e8565b60405180910390fd5b6000611d8e83610933565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611dfd57508373ffffffffffffffffffffffffffffffffffffffff16611de5846105a7565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e0e5750611e0d8185611b0e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e3782610933565b73ffffffffffffffffffffffffffffffffffffffff1614611e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e84906144e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef4906143a8565b60405180910390fd5b611f08838383612bec565b611f13600082611c80565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f6391906147f1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fba9190614710565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000803090506000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b81526004016120d691906145a8565b60206040518083038186803b1580156120ee57600080fd5b505afa158015612102573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612126919061323c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061223757508173ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663081812fc876040518263ffffffff1660e01b81526004016121cf91906145a8565b60206040518083038186803b1580156121e757600080fd5b505afa1580156121fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221f919061323c565b73ffffffffffffffffffffffffffffffffffffffff16145b806122eb5750600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c582846040518363ffffffff1660e01b815260040161229a9291906141f4565b60206040518083038186803b1580156122b257600080fd5b505afa1580156122c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ea91906133e3565b5b9250505092915050565b60606000806000846060015185608001516040516020016123169190613ff7565b604051602081830303815290604052866020015160405160200161233a919061417c565b60405160208183030381529060405260065460405160200161235c919061417c565b60405160208183030381529060405260405160200161237e9493929190614197565b6040516020818303038152906040529050600061239a82612bf1565b9050806006819055506007866000015114156124b657600d8080549050826123c291906149a8565b815481106123f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600b8261241091906149a8565b60068361241d91906149a8565b828054612429906148ff565b80601f0160208091040260200160405190810160405280929190818152602001828054612455906148ff565b80156124a25780601f10612477576101008083540402835291602001916124a2565b820191906000526020600020905b81548152906001019060200180831161248557829003601f168201915b5050505050925094509450945050506127f2565b6006866000015114156125c957600e8080549050826124d591906149a8565b8154811061250c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600b8261252391906149a8565b60068361253091906149a8565b82805461253c906148ff565b80601f0160208091040260200160405190810160405280929190818152602001828054612568906148ff565b80156125b55780601f1061258a576101008083540402835291602001916125b5565b820191906000526020600020905b81548152906001019060200180831161259857829003601f168201915b5050505050925094509450945050506127f2565b6005866000015114156126dc57600f8080549050826125e891906149a8565b8154811061261f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600b8261263691906149a8565b60068361264391906149a8565b82805461264f906148ff565b80601f016020809104026020016040519081016040528092919081815260200182805461267b906148ff565b80156126c85780601f1061269d576101008083540402835291602001916126c8565b820191906000526020600020905b8154815290600101906020018083116126ab57829003601f168201915b5050505050925094509450945050506127f2565b6004866000015114156127ef5760108080549050826126fb91906149a8565b81548110612732577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600b8261274991906149a8565b60068361275691906149a8565b828054612762906148ff565b80601f016020809104026020016040519081016040528092919081815260200182805461278e906148ff565b80156127db5780601f106127b0576101008083540402835291602001916127db565b820191906000526020600020905b8154815290600101906020018083116127be57829003601f168201915b5050505050925094509450945050506127f2565b50505b9193909250565b600080612806600c612c24565b90506128128382612c32565b61281c600c612c50565b80915050919050565b612830848484611e17565b61283c84848484612c66565b61287b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287290614348565b60405180910390fd5b50505050565b606060008214156128c9576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a29565b600082905060005b600082146128fb5780806128e490614931565b915050600a826128f49190614766565b91506128d1565b60008167ffffffffffffffff81111561293d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561296f5781602001600182028036833780820191505090505b5090505b60008514612a225760018261298891906147f1565b9150600a8561299791906149a8565b60306129a39190614710565b60f81b8183815181106129df577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a1b9190614766565b9450612973565b8093505050505b919050565b60606000825190506000811415612a575760405180602001604052806000815250915050612be7565b60006003600283612a689190614710565b612a729190614766565b6004612a7e9190614797565b90506000602082612a8f9190614710565b67ffffffffffffffff811115612ace577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b005781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001614c35604091399050600181016020830160005b86811015612ba45760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050612b2b565b506003860660018114612bbe5760028114612bce57612bd9565b613d3d60f01b6002830352612bd9565b603d60f81b60018303525b508484525050819450505050505b919050565b505050565b600081604051602001612c049190614012565b6040516020818303038152906040528051906020012060001c9050919050565b600081600001549050919050565b612c4c828260405180602001604052806000815250612dfd565b5050565b6001816000016000828254019250508190555050565b6000612c878473ffffffffffffffffffffffffffffffffffffffff16612e58565b15612df0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cb0611c78565b8786866040518563ffffffff1660e01b8152600401612cd2949392919061421d565b602060405180830381600087803b158015612cec57600080fd5b505af1925050508015612d1d57506040513d601f19601f82011682018060405250810190612d1a9190613435565b60015b612da0573d8060008114612d4d576040519150601f19603f3d011682016040523d82523d6000602084013e612d52565b606091505b50600081511415612d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8f90614348565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612df5565b600190505b949350505050565b612e078383612e6b565b612e146000848484612c66565b612e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4a90614348565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed290614468565b60405180910390fd5b612ee481611c0c565b15612f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1b90614368565b60405180910390fd5b612f3060008383612bec565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f809190614710565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613045906148ff565b90600052602060002090601f01602090048101928261306757600085556130ae565b82601f1061308057805160ff19168380011785556130ae565b828001600101855582156130ae579182015b828111156130ad578251825591602001919060010190613092565b5b5090506130bb91906130e6565b5090565b6040518060e001604052806007905b60608152602001906001900390816130ce5790505090565b5b808211156130ff5760008160009055506001016130e7565b5090565b60006131166131118461467d565b61464c565b90508281526020810184848401111561312e57600080fd5b6131398482856148bd565b509392505050565b60008135905061315081614ab3565b92915050565b60008151905061316581614ab3565b92915050565b60008135905061317a81614aca565b92915050565b60008151905061318f81614aca565b92915050565b6000813590506131a481614ae1565b92915050565b6000815190506131b981614ae1565b92915050565b600082601f8301126131d057600080fd5b81356131e0848260208601613103565b91505092915050565b6000813590506131f881614af8565b92915050565b60008151905061320d81614af8565b92915050565b60006020828403121561322557600080fd5b600061323384828501613141565b91505092915050565b60006020828403121561324e57600080fd5b600061325c84828501613156565b91505092915050565b6000806040838503121561327857600080fd5b600061328685828601613141565b925050602061329785828601613141565b9150509250929050565b6000806000606084860312156132b657600080fd5b60006132c486828701613141565b93505060206132d586828701613141565b92505060406132e6868287016131e9565b9150509250925092565b6000806000806080858703121561330657600080fd5b600061331487828801613141565b945050602061332587828801613141565b9350506040613336878288016131e9565b925050606085013567ffffffffffffffff81111561335357600080fd5b61335f878288016131bf565b91505092959194509250565b6000806040838503121561337e57600080fd5b600061338c85828601613141565b925050602061339d8582860161316b565b9150509250929050565b600080604083850312156133ba57600080fd5b60006133c885828601613141565b92505060206133d9858286016131e9565b9150509250929050565b6000602082840312156133f557600080fd5b600061340384828501613180565b91505092915050565b60006020828403121561341e57600080fd5b600061342c84828501613195565b91505092915050565b60006020828403121561344757600080fd5b6000613455848285016131aa565b91505092915050565b60006020828403121561347057600080fd5b600061347e848285016131e9565b91505092915050565b6000806040838503121561349a57600080fd5b60006134a8858286016131e9565b92505060206134b9858286016131e9565b9150509250929050565b600080600080608085870312156134d957600080fd5b60006134e7878288016131fe565b94505060206134f8878288016131fe565b9350506040613509878288016131fe565b925050606061351a878288016131fe565b91505092959194509250565b61352f81614825565b82525050565b61354661354182614825565b61497a565b82525050565b61355581614837565b82525050565b6000613566826146c2565b61357081856146d8565b93506135808185602086016148cc565b61358981614a95565b840191505092915050565b600061359f826146c2565b6135a981856146e9565b93506135b98185602086016148cc565b80840191505092915050565b6135ce81614899565b82525050565b60006135df826146cd565b6135e981856146f4565b93506135f98185602086016148cc565b61360281614a95565b840191505092915050565b6000613618826146cd565b6136228185614705565b93506136328185602086016148cc565b80840191505092915050565b6000815461364b816148ff565b6136558186614705565b945060018216600081146136705760018114613681576136b4565b60ff198316865281860193506136b4565b61368a856146ad565b60005b838110156136ac5781548189015260018201915060208101905061368d565b838801955050505b50505092915050565b60006136ca6025836146f4565b91507f616c726561647920646973636f7665726564206f72206e6f7420696e6974696160008301527f6c697a65640000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006137306032836146f4565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613796600483614705565b91507f6e616d65000000000000000000000000000000000000000000000000000000006000830152600482019050919050565b60006137d6601c836146f4565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613816600583614705565b91507f6d616769630000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006138566011836146f4565b91507f6e6f7420796f75722073756d6d6f6e65720000000000000000000000000000006000830152602082019050919050565b60006138966024836146f4565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006138fc6019836146f4565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061393c601483614705565b91507f7b226e616d65223a2022747265617375726520230000000000000000000000006000830152601482019050919050565b600061397c602c836146f4565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006139e2600183614705565b91507f20000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000613a226038836146f4565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613a88602a836146f4565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613aee6029836146f4565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b54600283614705565b91507f227d0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b6000613b946020836146f4565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613bd46009836146f4565b91507f6e6f742076616c696400000000000000000000000000000000000000000000006000830152602082019050919050565b6000613c14600e836146f4565b91507f6e6f742066696e697368207965740000000000000000000000000000000000006000830152602082019050919050565b6000613c54602c836146f4565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613cba6029836146f4565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d20600e836146f4565b91507f6e6f74206c6576656c203e3d20320000000000000000000000000000000000006000830152602082019050919050565b6000613d606021836146f4565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613dc6601d83614705565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b6000613e066031836146f4565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000613e6c6011836146f4565b91507f6e6f7420796f75722074726561737572650000000000000000000000000000006000830152602082019050919050565b6000613eac600583614705565b91507f6c6576656c0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000613eec601f836146f4565b91507f6e6f7420656d707479206f72206e6f7420646973636f766572656420796574006000830152602082019050919050565b6000613f2c606f83614705565b91507f222c20226465736372697074696f6e223a20225261726974792069732061636860008301527f6965766564207468726f75676820676f6f64206c75636b20616e6420696e746560208301527f6c6c6967656e6365222c2022696d616765223a2022646174613a696d6167652f60408301527f7376672b786d6c3b6261736536342c00000000000000000000000000000000006060830152606f82019050919050565b613fda8161488f565b82525050565b613ff1613fec8261488f565b61499e565b82525050565b60006140038284613535565b60148201915081905092915050565b600061401e828461360d565b915081905092915050565b6000614035828a61360d565b9150614041828961360d565b915061404d828861360d565b9150614059828761360d565b9150614065828661360d565b9150614071828561360d565b915061407d828461360d565b915081905098975050505050505050565b600061409982613789565b91506140a4826139d5565b91506140b0828461363e565b915081905092915050565b60006140c682613809565b91506140d1826139d5565b91506140dd828461360d565b915081905092915050565b60006140f38261392f565b91506140ff828561360d565b915061410a82613f1f565b9150614116828461360d565b915061412182613b47565b91508190509392505050565b600061413882613db9565b9150614144828461360d565b915081905092915050565b600061415a82613e9f565b9150614165826139d5565b9150614171828461360d565b915081905092915050565b60006141888284613fe0565b60208201915081905092915050565b60006141a38287613fe0565b6020820191506141b38286613594565b91506141bf8285613594565b91506141cb8284613594565b915081905095945050505050565b60006020820190506141ee6000830184613526565b92915050565b60006040820190506142096000830185613526565b6142166020830184613526565b9392505050565b60006080820190506142326000830187613526565b61423f6020830186613526565b61424c6040830185613fd1565b818103606083015261425e818461355b565b905095945050505050565b600060408201905061427e6000830185613526565b61428b6020830184613fd1565b9392505050565b60006020820190506142a7600083018461354c565b92915050565b60006020820190506142c260008301846135c5565b92915050565b600060208201905081810360008301526142e281846135d4565b905092915050565b6000606082019050818103600083015261430481866135d4565b90506143136020830185613fd1565b6143206040830184613fd1565b949350505050565b60006020820190508181036000830152614341816136bd565b9050919050565b6000602082019050818103600083015261436181613723565b9050919050565b60006020820190508181036000830152614381816137c9565b9050919050565b600060208201905081810360008301526143a181613849565b9050919050565b600060208201905081810360008301526143c181613889565b9050919050565b600060208201905081810360008301526143e1816138ef565b9050919050565b600060208201905081810360008301526144018161396f565b9050919050565b6000602082019050818103600083015261442181613a15565b9050919050565b6000602082019050818103600083015261444181613a7b565b9050919050565b6000602082019050818103600083015261446181613ae1565b9050919050565b6000602082019050818103600083015261448181613b87565b9050919050565b600060208201905081810360008301526144a181613bc7565b9050919050565b600060208201905081810360008301526144c181613c07565b9050919050565b600060208201905081810360008301526144e181613c47565b9050919050565b6000602082019050818103600083015261450181613cad565b9050919050565b6000602082019050818103600083015261452181613d13565b9050919050565b6000602082019050818103600083015261454181613d53565b9050919050565b6000602082019050818103600083015261456181613df9565b9050919050565b6000602082019050818103600083015261458181613e5f565b9050919050565b600060208201905081810360008301526145a181613edf565b9050919050565b60006020820190506145bd6000830184613fd1565b92915050565b60006040820190506145d86000830185613fd1565b6145e56020830184613526565b9392505050565b60006040820190506146016000830185613fd1565b61460e6020830184613fd1565b9392505050565b600060608201905061462a6000830186613fd1565b6146376020830185613fd1565b6146446040830184613fd1565b949350505050565b6000604051905081810181811067ffffffffffffffff8211171561467357614672614a66565b5b8060405250919050565b600067ffffffffffffffff82111561469857614697614a66565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061471b8261488f565b91506147268361488f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561475b5761475a6149d9565b5b828201905092915050565b60006147718261488f565b915061477c8361488f565b92508261478c5761478b614a08565b5b828204905092915050565b60006147a28261488f565b91506147ad8361488f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147e6576147e56149d9565b5b828202905092915050565b60006147fc8261488f565b91506148078361488f565b92508282101561481a576148196149d9565b5b828203905092915050565b60006148308261486f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006148a4826148ab565b9050919050565b60006148b68261486f565b9050919050565b82818337600083830152505050565b60005b838110156148ea5780820151818401526020810190506148cf565b838111156148f9576000848401525b50505050565b6000600282049050600182168061491757607f821691505b6020821081141561492b5761492a614a37565b5b50919050565b600061493c8261488f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561496f5761496e6149d9565b5b600182019050919050565b60006149858261498c565b9050919050565b600061499782614aa6565b9050919050565b6000819050919050565b60006149b38261488f565b91506149be8361488f565b9250826149ce576149cd614a08565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b614abc81614825565b8114614ac757600080fd5b50565b614ad381614837565b8114614ade57600080fd5b50565b614aea81614843565b8114614af557600080fd5b50565b614b018161488f565b8114614b0c57600080fd5b5056fe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea26469706673582212201a409ba0fb54cc68d268e93eebe795e574cd0cba5a578727c1f1bbbf40d1081764736f6c63430008000033000000000000000000000000ce761d788df608bd21bdd59d6f4b54b2e27f25bb

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

000000000000000000000000ce761d788df608bd21bdd59d6f4b54b2e27f25bb

-----Decoded View---------------
Arg [0] : _rarityAddr (address): 0xce761d788df608bd21bdd59d6f4b54b2e27f25bb

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ce761d788df608bd21bdd59d6f4b54b2e27f25bb


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.