ETH Price: $3,313.27 (-4.29%)

Token

RugPullGuardianV2 (RPGV2)
 

Overview

Max Total Supply

3,152 RPGV2

Holders

136

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
manaadd1ct.eth
Balance
21 RPGV2
0xd4Af804b5fc981c889E7b7c3af0E8D8aC2e2630D
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
RugPullGuardian

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 666 runs

Other Settings:
default evmVersion
File 1 of 13 : RPG_simple.sol
/*                                                                                                                                                                                                                                                                                                        
________                            ________            ___ ___          ____                                   ___                                 
`MMMMMMMb.                          `MMMMMMMb.          `MM `MM         6MMMMb/                                 `MM 68b                             
 MM    `Mb                           MM    `Mb           MM  MM        8P    YM                                  MM Y89                             
 MM     MM ___   ___   __            MM     MM ___   ___ MM  MM       6M      Y ___   ___    ___   ___  __   ____MM ___    ___   ___  __     ____   
 MM     MM `MM    MM  6MMbMMM        MM     MM `MM    MM MM  MM       MM        `MM    MM  6MMMMb  `MM 6MM  6MMMMMM `MM  6MMMMb  `MM 6MMb   6MMMMb\ 
 MM    .M9  MM    MM 6M'`Mb          MM    .M9  MM    MM MM  MM       MM         MM    MM 8M'  `Mb  MM69 " 6M'  `MM  MM 8M'  `Mb  MMM9 `Mb MM'    ` 
 MMMMMMM9'  MM    MM MM  MM          MMMMMMM9'  MM    MM MM  MM       MM     ___ MM    MM     ,oMM  MM'    MM    MM  MM     ,oMM  MM'   MM YM.      
 MM  \M\    MM    MM YM.,M9          MM         MM    MM MM  MM       MM     `M' MM    MM ,6MM9'MM  MM     MM    MM  MM ,6MM9'MM  MM    MM  YMMMMb  
 MM   \M\   MM    MM  YMM9           MM         MM    MM MM  MM       YM      M  MM    MM MM'   MM  MM     MM    MM  MM MM'   MM  MM    MM      `Mb 
 MM    \M\  YM.   MM (M              MM         YM.   MM MM  MM        8b    d9  YM.   MM MM.  ,MM  MM     YM.  ,MM  MM MM.  ,MM  MM    MM L    ,MM 
_MM_    \M\_ YMMM9MM_ YMMMMb.       _MM_         YMMM9MM_MM__MM_        YMMMM9    YMMM9MM_`YMMM9'Yb_MM_     YMMMMMM__MM_`YMMM9'Yb_MM_  _MM_MYMMMM9  
                     6M    Yb                                                                                                                       
                     YM.   d9                                                                                                                       
                      YMMMM9                                                                                                                        
*/
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract RugPullGuardian is ERC721A, ReentrancyGuard, Ownable {

    using Address for address;
    using Strings for uint256;
    
    uint256 public RugPullTreasure; // Rugpull has treasures plundered from the world.
    uint256 public GuardianSummonEnergy = 0.001 ether;
    uint256 public ResisterSummonEnergy = 0.001 ether;
    uint256 public GuardianWins;
    uint256 public ResisterWins;
    uint256 public PowerGain;
    uint256 public GuardianCount;
    uint256 public ResisterCount;
    uint256 public GuardianIncrease = 0;
    uint256 public ResisterIncrease = 0;
    uint256 public WatchersEnergy;
    uint256 public RugPullEndsAt;
    uint256 public ConscriptionStartsAt;
    uint256 public winner;
    uint256 public imageValid = 10000; // Not everyone is happy to show their faces, but after a while they will.
    bool public activated_ = false;
    bool public gameover = false;
    string private _summonURI;
    string private _guardianURI;
    string private _resisterURI;
    bytes32 private _root;

    // The Rule
    uint256 constant private _RugPullLPInit = 12 hours;    
    uint256 constant private _guardianLPInc = 10 minutes;              
    uint256 constant private _resistersLPInc = 5 minutes;
    uint256 constant private _RugPullLPMax = 24 hours;
    uint256 constant private _lootTime = 1 hours;
    uint256 constant private _guardianTreasure = 15;
    uint256 constant private _resisterTreasure = 25;
    uint256 constant private _summonEnergyInc = 0.00008 ether;
    uint256 constant private _watcherEXP = 5;
    uint256 constant private _increaseCount = 9;
    uint256 constant private _maxMint = 10;

    mapping (uint256 => bool) public isGuardian;
    mapping (uint256 => bool) public claimed;

    event onCharacterSummon (
        uint256 indexed startId,
        uint256 indexed teamId,
        uint256 indexed quantity,
        uint256 energy,
        bool guardian,
        string signal,
        address summoner
    );


    event onEndGame (
        uint256 indexed winnerId,
        address indexed owner,
        bool guardian,
        uint256 treasure
    );

    event onWithdraw (
        uint256 tokenId,
        address owner,
        uint256 exp
    );

    modifier isActivated() 
    {
        require(activated_ == true, "Rugpull wasn't summoned."); 
        _;
    }

    modifier isHuman() {
        require(tx.origin == msg.sender, "Watchers defend the power from another world.");
        _;
    }

    constructor() ERC721A("RugPullGuardianV2", "RPGV2") {
    }

    // Advent ceremony
    function activate()
        payable
        external
        onlyOwner
    {        
        require(activated_ == false, "Rugpull is summoned.");
        
        // Watchers thought it was too boring, and created the devil Rug Pull, so that the devil wants to destroy this boring world.
        activated_ = true; 
        // Although the time in this world is limited, its power is enough to destroy the world.
        RugPullEndsAt = block.timestamp + _RugPullLPInit; 
        ConscriptionStartsAt = block.timestamp + _lootTime;
        RugPullTreasure += msg.value;

        _safeMint(msg.sender, 1);
        // Rug Pull The Dread kept summoning his ferocious space troops "Guardian" from The Void and dealt a devastating blow to mankind.
        _initCharacter(0, true);
    }

    // Rugpull has a strong army, guardians. They make Rugpull more powerful.
    function summonGuardians(uint256 quantity, string calldata inviteCode, bytes32[] calldata proof) 
        public
        payable
        isActivated()
        isHuman()
        nonReentrant
    {
        if (getRugpullLP() > 0) {
            require(quantity <= _maxMint, "Exceeded max summon limit. There was no response in the dark.");
            require(msg.value == GuardianSummonEnergy * quantity, "Energy not match. There was no response in the dark.");
            if (block.timestamp <= ConscriptionStartsAt){
                require(_verify(_leaf(msg.sender), proof), "Not the pioneer.");
            }
            
            // Rugpull keep looting.
            RugPullTreasure += msg.value * _guardianTreasure / 100;
            // Guardians gain power.
            uint256 startTokenId = _currentIndex;
            // Its LP increase.
            _increaseRugpullLP(_guardianLPInc * quantity);

            if ( GuardianIncrease < _increaseCount ) {
                GuardianIncrease++;
            }    
            else {
                GuardianIncrease = 0;
                // The energy required for summoning has been increased.
                GuardianSummonEnergy += _summonEnergyInc;
            }
            
            emit onCharacterSummon(startTokenId, GuardianCount, quantity, msg.value, true, inviteCode, msg.sender);
            // The guardians come from the darkness.
            for (uint256 i; i < quantity; i++) {
                _initCharacter(startTokenId + i, true);
            } 
            _safeMint(msg.sender, quantity);
        }
        else {  // RugPull is defeated
            require(gameover == false, "Game Over");
            Address.sendValue(payable(msg.sender), msg.value);
            endGame();
        }
    }

    // Resisters, it's time to unite.
    function summonResisters(uint256 quantity, string calldata inviteCode, bytes32[] calldata proof) 
        public
        payable
        isActivated()
        isHuman()
        nonReentrant
    {
        if (getRugpullLP() > 0) {
            require(quantity <= _maxMint, "Exceeded max summon limit. There was no response from the altar.");
            require(msg.value == ResisterSummonEnergy * quantity, "Energy not match. There was no response from the altar.");
            if (block.timestamp <= ConscriptionStartsAt){
                require(_verify(_leaf(msg.sender), proof), "Not the pioneer.");
            }
            
            // Rugpull keep looting.
            RugPullTreasure += msg.value * _resisterTreasure / 100;
            // Resisters gain power.
            uint256 startTokenId = _currentIndex;
            // Its LP increase.
            _increaseRugpullLP(_resistersLPInc * quantity);

            if ( ResisterIncrease < _increaseCount ) {
                ResisterIncrease++;
            }    
            else {
                ResisterIncrease = 0;
                // The energy required for summoning has been increased.
                ResisterSummonEnergy += _summonEnergyInc;
            }

            emit onCharacterSummon(startTokenId, ResisterCount, quantity, msg.value, false, inviteCode, msg.sender);

            // The resisters assemble.
            for (uint256 i; i < quantity; i++) {
                _initCharacter(startTokenId + i, false);
            } 
            _safeMint(msg.sender, quantity);
        }
        else {  // RugPull is defeated
            require(gameover == false, "Game Over");
            Address.sendValue(payable(msg.sender), msg.value);
            endGame();
        }
    }



    function _leaf(address account)
        internal 
        pure 
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(account));
    }

    function _verify(bytes32 leaf, bytes32[] memory proof)
        internal 
        view 
        returns (bool)
    {
        return MerkleProof.verify(proof, _root, leaf);
    }

    function endGame()
        private
    {
        uint256 winnerID = totalSupply() - 1;
        winner = winnerID;
        uint256 treasure = 0;
        gameover = true;
        if(isGuardian[winnerID] == true) { // Although RugPull was defeated, the Guardians triumphed and divided the treasure.
            treasure = RugPullTreasure / GuardianCount;
            GuardianWins += treasure;
        }
        else {  // The last resister defeated RugPull and obtained all the treasures.
            treasure = RugPullTreasure;
            ResisterWins += treasure;
        }

        emit onEndGame(winnerID, ownerOf(winnerID), getTeam(winnerID), treasure);
    }
    
    /*---Request The Oracle---*/
    function getTeam(uint256 tokenId)
        public
        view
        returns(bool)
    {
        return isGuardian[tokenId];
    }

    function getRugpullLP()
        public
        view
        returns(uint256)
    {        
        uint256 _now = block.timestamp;
        
        if (_now < RugPullEndsAt)
            return( RugPullEndsAt - _now );
        else
            return(0);
    }

    function getOwnCharacters(address summoner)
        public
        view
        returns(uint256[] memory)
    {
        uint256[] memory characters = new uint256[](balanceOf(summoner));
        uint256 mobIndex = 0;
        for (uint256 i; i < totalSupply(); i++) {
            if (ownerOf(i) == summoner) {
                characters[mobIndex] = i;
                mobIndex++;
            }
        }
        return characters;
    }

    function getPower(uint256 tokenId)
        public
        view
        returns(uint256)
    {    
        uint256 power = 0;
        if(isGuardian[tokenId] == true) {
            power = GuardianWins;
        }else {
            power = tokenId == winner?ResisterWins:0;
        }
        return power;
    }

    function gainEnergy(uint256 tokenId)
        external
        isActivated()
        isHuman()
        nonReentrant
    {
        require(ownerOf(tokenId) == msg.sender, "Not the summoner.");
        require(gameover == true, "Game is not over.");
        require(claimed[tokenId] == false, "Already claimed.");
        gainEnergyCore(tokenId);
    }

    function gainEnergyCore(uint256 tokenId)
        private
        isActivated()
        isHuman()
    {
        uint256 power = getPower(tokenId);
        Address.sendValue(payable(msg.sender), power);
        emit onWithdraw(tokenId, msg.sender, power);
        claimed[tokenId] = true;
    }

    function _initCharacter(uint256 id, bool guardian)
        private
    {
        isGuardian[id] = guardian;

        if(guardian)
            GuardianCount++;
        else
            ResisterCount++;
        
    }

    function _increaseRugpullLP(uint256 inc)
        private
    {
        if( RugPullEndsAt + inc - block.timestamp > _RugPullLPMax ) 
            RugPullEndsAt = block.timestamp + _RugPullLPMax;
        else 
            RugPullEndsAt = RugPullEndsAt + inc;
    }

    

    function tokenURI(uint256 tokenId) 
        public 
        override 
        view 
        returns (string memory) 
    {
        if(tokenId > imageValid)
            return _summonURI;
        else if(getTeam(tokenId) == true)  // Guardian's form
            return string(abi.encodePacked(_guardianURI, tokenId.toString()));
        else  // if he is a resister
            return string(abi.encodePacked(_resisterURI, tokenId.toString()));
    }

    /*---Watchers power---*/
    function setImageValid(uint256 inc)
        external
        onlyOwner
    {
        imageValid += inc;
    }

    function setSummonURI(string calldata uri)
        external
        onlyOwner
    {
        _summonURI = uri;
    }

    function setGuardianURI(string calldata uri)
        external
        onlyOwner
    {
        _guardianURI = uri;
    }

    function setResisterURI(string calldata uri)
        external
        onlyOwner
    {
        _resisterURI = uri;
    }

    function setRoot(bytes32 merkleroot)
        external
        onlyOwner
    {
        _root = merkleroot;
    }

    function watcherEnergy() 
        external 
        onlyOwner
        nonReentrant
    {
        require(address(this).balance>=RugPullTreasure, "Watcher can't touch the treasure.");
        Address.sendValue(payable(msg.sender), address(this).balance-RugPullTreasure);
        emit onWithdraw(0, msg.sender, address(this).balance-RugPullTreasure);
    }

    function watcherEndEnergy() 
        external 
        onlyOwner
        nonReentrant
    {
        require(block.timestamp >= RugPullEndsAt + 1 days, "Not the end.");
        Address.sendValue(payable(msg.sender), address(this).balance);
        emit onWithdraw(0, msg.sender, address(this).balance);
    }
}

File 2 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

File 10 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 12 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"teamId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"energy","type":"uint256"},{"indexed":false,"internalType":"bool","name":"guardian","type":"bool"},{"indexed":false,"internalType":"string","name":"signal","type":"string"},{"indexed":false,"internalType":"address","name":"summoner","type":"address"}],"name":"onCharacterSummon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"winnerId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"bool","name":"guardian","type":"bool"},{"indexed":false,"internalType":"uint256","name":"treasure","type":"uint256"}],"name":"onEndGame","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"exp","type":"uint256"}],"name":"onWithdraw","type":"event"},{"inputs":[],"name":"ConscriptionStartsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GuardianCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GuardianIncrease","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GuardianSummonEnergy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GuardianWins","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PowerGain","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ResisterCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ResisterIncrease","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ResisterSummonEnergy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ResisterWins","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RugPullEndsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RugPullTreasure","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WatchersEnergy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"activated_","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"gainEnergy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gameover","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"summoner","type":"address"}],"name":"getOwnCharacters","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRugpullLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTeam","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageValid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isGuardian","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setGuardianURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"inc","type":"uint256"}],"name":"setImageValid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setResisterURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setSummonURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"string","name":"inviteCode","type":"string"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"summonGuardians","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"string","name":"inviteCode","type":"string"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"summonResisters","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"watcherEndEnergy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"watcherEnergy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"winner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405266038d7ea4c68000600b819055600c55600060128190556013556127106018556019805461ffff191690553480156200003c57600080fd5b506040805180820182526011815270293ab3a83ab63623bab0b93234b0b72b1960791b602080830191825283518085019094526005845264292823ab1960d91b908401528151919291620000939160029162000118565b508051620000a990600390602084019062000118565b506000805550506001600855620000c033620000c6565b620001fb565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012690620001be565b90600052602060002090601f0160209004810192826200014a576000855562000195565b82601f106200016557805160ff191683800117855562000195565b8280016001018555821562000195579182015b828111156200019557825182559160200191906001019062000178565b50620001a3929150620001a7565b5090565b5b80821115620001a35760008155600101620001a8565b600181811c90821680620001d357607f821691505b60208210811415620001f557634e487b7160e01b600052602260045260246000fd5b50919050565b61333e806200020b6000396000f3fe6080604052600436106103325760003560e01c806353f68891116101b0578063a33dee6f116100ec578063d53b267911610095578063dfbf53ae1161006f578063dfbf53ae14610899578063e985e9c5146108af578063eef1f5c6146108f8578063f2fde38b1461090d57600080fd5b8063d53b26791461082f578063dab5f34014610849578063dbe7e3bd1461086957600080fd5b8063bc33fa25116100c6578063bc33fa25146107d9578063c87b56dd146107f9578063d49dff2c1461081957600080fd5b8063a33dee6f14610783578063af69f8bc14610799578063b88d4fde146107b957600080fd5b806374498b17116101595780639467072211610133578063946707221461071957806395d89b411461072e578063a09f0c2514610743578063a22cb4651461076357600080fd5b806374498b17146106c557806379af23dd146106db5780638da5cb5b146106fb57600080fd5b80636ff566841161018a5780636ff566841461067a57806370a0823114610690578063715018a6146106b057600080fd5b806353f688911461062757806362ad3d22146106475780636352211e1461065a57600080fd5b806318160ddd1161027f578063352653d6116102285780633d9f5209116102025780633d9f5209146105b157806342842e0e146105de578063450311c5146105fe57806348d047721461061457600080fd5b8063352653d61461056f57806336f9be44146105855780633acd65451461059b57600080fd5b806328634a321161025957806328634a321461050b5780632d175f111461053b5780633088e5a51461055a57600080fd5b806318160ddd146104bc578063227c58c7146104d557806323b872dd146104eb57600080fd5b8063081812fc116102e15780630ab49572116102bb5780630ab49572146104885780630f15f4c01461049e578063124380b1146104a657600080fd5b8063081812fc14610418578063095ea7b314610450578063097313b91461047257600080fd5b806301ffc9a71161031257806301ffc9a7146103c057806305c38cf1146103e057806306fdde03146103f657600080fd5b80627b829a146103375780628e0f1b14610360578063017fe809146103a0575b600080fd5b34801561034357600080fd5b5061034d600f5481565b6040519081526020015b60405180910390f35b34801561036c57600080fd5b5061039061037b366004612e6b565b6000908152601e602052604090205460ff1690565b6040519015158152602001610357565b3480156103ac57600080fd5b5061034d6103bb366004612e6b565b61092d565b3480156103cc57600080fd5b506103906103db366004612e84565b610971565b3480156103ec57600080fd5b5061034d60125481565b34801561040257600080fd5b5061040b6109c1565b604051610357919061311d565b34801561042457600080fd5b50610438610433366004612e6b565b610a53565b6040516001600160a01b039091168152602001610357565b34801561045c57600080fd5b5061047061046b366004612e41565b610a97565b005b34801561047e57600080fd5b5061034d60165481565b34801561049457600080fd5b5061034d60185481565b610470610b25565b3480156104b257600080fd5b5061034d60135481565b3480156104c857600080fd5b506001546000540361034d565b3480156104e157600080fd5b5061034d600a5481565b3480156104f757600080fd5b50610470610506366004612ced565b610c24565b34801561051757600080fd5b50610390610526366004612e6b565b601e6020526000908152604090205460ff1681565b34801561054757600080fd5b5060195461039090610100900460ff1681565b34801561056657600080fd5b5061034d610c2f565b34801561057b57600080fd5b5061034d60115481565b34801561059157600080fd5b5061034d600d5481565b3480156105a757600080fd5b5061034d600b5481565b3480156105bd57600080fd5b506105d16105cc366004612c9f565b610c5e565b60405161035791906130d9565b3480156105ea57600080fd5b506104706105f9366004612ced565b610d2a565b34801561060a57600080fd5b5061034d60145481565b610470610622366004612f07565b610d45565b34801561063357600080fd5b50610470610642366004612e6b565b611193565b610470610655366004612f07565b6111f5565b34801561066657600080fd5b50610438610675366004612e6b565b611594565b34801561068657600080fd5b5061034d600e5481565b34801561069c57600080fd5b5061034d6106ab366004612c9f565b6115a6565b3480156106bc57600080fd5b506104706115f5565b3480156106d157600080fd5b5061034d600c5481565b3480156106e757600080fd5b506104706106f6366004612ec5565b611647565b34801561070757600080fd5b506009546001600160a01b0316610438565b34801561072557600080fd5b5061047061169b565b34801561073a57600080fd5b5061040b6117ef565b34801561074f57600080fd5b5061047061075e366004612e6b565b6117fe565b34801561076f57600080fd5b5061047061077e366004612e05565b611a3a565b34801561078f57600080fd5b5061034d60105481565b3480156107a557600080fd5b506104706107b4366004612ec5565b611ad1565b3480156107c557600080fd5b506104706107d4366004612d29565b611b25565b3480156107e557600080fd5b506104706107f4366004612ec5565b611b76565b34801561080557600080fd5b5061040b610814366004612e6b565b611bca565b34801561082557600080fd5b5061034d60155481565b34801561083b57600080fd5b506019546103909060ff1681565b34801561085557600080fd5b50610470610864366004612e6b565b611cc6565b34801561087557600080fd5b50610390610884366004612e6b565b601f6020526000908152604090205460ff1681565b3480156108a557600080fd5b5061034d60175481565b3480156108bb57600080fd5b506103906108ca366004612cba565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561090457600080fd5b50610470611d13565b34801561091957600080fd5b50610470610928366004612c9f565b611e7b565b6000818152601e6020526040812054819060ff161515600114156109545750600d5461096b565b6017548314610964576000610968565b600e545b90505b92915050565b60006001600160e01b031982166380ac58cd60e01b14806109a257506001600160e01b03198216635b5e139f60e01b145b8061096b57506301ffc9a760e01b6001600160e01b031983161461096b565b6060600280546109d090613210565b80601f01602080910402602001604051908101604052809291908181526020018280546109fc90613210565b8015610a495780601f10610a1e57610100808354040283529160200191610a49565b820191906000526020600020905b815481529060010190602001808311610a2c57829003601f168201915b5050505050905090565b6000610a5e82611f34565b610a7b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610aa282611594565b9050806001600160a01b0316836001600160a01b03161415610ad75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610af75750610af581336108ca565b155b15610b15576040516367d9dca160e11b815260040160405180910390fd5b610b20838383611f5f565b505050565b6009546001600160a01b03163314610b725760405162461bcd60e51b815260206004820181905260248201526000805160206132e983398151915260448201526064015b60405180910390fd5b60195460ff1615610bc55760405162461bcd60e51b815260206004820152601460248201527f52756770756c6c2069732073756d6d6f6e65642e0000000000000000000000006044820152606401610b69565b6019805460ff19166001179055610bde61a8c042613182565b601555610bed610e1042613182565b60168190555034600a6000828254610c059190613182565b90915550610c169050336001611fc8565b610c2260006001611fe6565b565b610b20838383612032565b6015546000904290811015610c525780601554610c4c91906131cd565b91505090565b600091505090565b5090565b60606000610c6b836115a6565b67ffffffffffffffff811115610c8357610c836132bc565b604051908082528060200260200182016040528015610cac578160200160208202803683370190505b5090506000805b60015460005403811015610d2157846001600160a01b0316610cd482611594565b6001600160a01b03161415610d0f5780838381518110610cf657610cf66132a6565b602090810291909101015281610d0b8161324b565b9250505b80610d198161324b565b915050610cb3565b50909392505050565b610b2083838360405180602001604052806000815250611b25565b60195460ff161515600114610d975760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b323314610dfc5760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b60026008541415610e4f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b60026008556000610e5e610c2f565b111561113157600a851115610edd576040805162461bcd60e51b81526020600482015260248101919091527f4578636565646564206d61782073756d6d6f6e206c696d69742e20546865726560448201527f20776173206e6f20726573706f6e73652066726f6d2074686520616c7461722e6064820152608401610b69565b84600c54610eeb91906131ae565b3414610f5f5760405162461bcd60e51b815260206004820152603760248201527f456e65726779206e6f74206d617463682e20546865726520776173206e6f207260448201527f6573706f6e73652066726f6d2074686520616c7461722e0000000000000000006064820152608401610b69565b601654421161101c57604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610fdd905b83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061222292505050565b61101c5760405162461bcd60e51b815260206004820152601060248201526f2737ba103a3432903834b7b732b2b91760811b6044820152606401610b69565b60646110296019346131ae565b611033919061319a565b600a60008282546110449190613182565b909155505060005461106061105b8761012c6131ae565b612231565b60096013541015611085576013805490600061107b8361324b565b91905055506110ab565b60006013819055506548c273950000600c60008282546110a59190613182565b90915550505b85601154827e99df52088395f0c2c79dc2ae8d6e10a00ab45962e32cc72db01e3ce167d80d3460008a8a336040516110e7959493929190613130565b60405180910390a460005b868110156111205761110e6111078284613182565b6000611fe6565b806111188161324b565b9150506110f2565b5061112b3387611fc8565b50611187565b601954610100900460ff16156111755760405162461bcd60e51b815260206004820152600960248201526823b0b6b29027bb32b960b91b6044820152606401610b69565b61117f3334612275565b61118761238e565b50506001600855505050565b6009546001600160a01b031633146111db5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b80601860008282546111ed9190613182565b909155505050565b60195460ff1615156001146112475760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b3233146112ac5760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b600260085414156112ff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b6002600855600061130e610c2f565b111561113157600a85111561138b5760405162461bcd60e51b815260206004820152603d60248201527f4578636565646564206d61782073756d6d6f6e206c696d69742e20546865726560448201527f20776173206e6f20726573706f6e736520696e20746865206461726b2e0000006064820152608401610b69565b84600b5461139991906131ae565b341461140d5760405162461bcd60e51b815260206004820152603460248201527f456e65726779206e6f74206d617463682e20546865726520776173206e6f207260448201527f6573706f6e736520696e20746865206461726b2e0000000000000000000000006064820152608401610b69565b601654421161149557604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012061145690610fa4565b6114955760405162461bcd60e51b815260206004820152601060248201526f2737ba103a3432903834b7b732b2b91760811b6044820152606401610b69565b60646114a2600f346131ae565b6114ac919061319a565b600a60008282546114bd9190613182565b90915550506000546114d461105b876102586131ae565b600960125410156114f957601280549060006114ef8361324b565b919050555061151f565b60006012819055506548c273950000600b60008282546115199190613182565b90915550505b85601054827e99df52088395f0c2c79dc2ae8d6e10a00ab45962e32cc72db01e3ce167d80d3460018a8a3360405161155b959493929190613130565b60405180910390a460005b868110156111205761158261157b8284613182565b6001611fe6565b8061158c8161324b565b915050611566565b600061159f8261248c565b5192915050565b60006001600160a01b0382166115cf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b0316331461163d5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610c2260006125a8565b6009546001600160a01b0316331461168f5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610b20601a8383612baf565b6009546001600160a01b031633146116e35760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b600260085414156117365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b600260085560155461174b9062015180613182565b42101561179a5760405162461bcd60e51b815260206004820152600c60248201527f4e6f742074686520656e642e00000000000000000000000000000000000000006044820152606401610b69565b6117a43347612275565b604080516000815233602082015247918101919091527fffb7a058f3489b3f4215d0517dd9bd49ccec359af5bf041d75894d2cb84385ca906060015b60405180910390a16001600855565b6060600380546109d090613210565b60195460ff1615156001146118505760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b3233146118b55760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b600260085414156119085760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b60026008553361191782611594565b6001600160a01b03161461196d5760405162461bcd60e51b815260206004820152601160248201527f4e6f74207468652073756d6d6f6e65722e0000000000000000000000000000006044820152606401610b69565b60195460ff6101009091041615156001146119ca5760405162461bcd60e51b815260206004820152601160248201527f47616d65206973206e6f74206f7665722e0000000000000000000000000000006044820152606401610b69565b6000818152601f602052604090205460ff1615611a295760405162461bcd60e51b815260206004820152601060248201527f416c726561647920636c61696d65642e000000000000000000000000000000006044820152606401610b69565b611a3281612607565b506001600855565b6001600160a01b038216331415611a645760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a35050565b6009546001600160a01b03163314611b195760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610b20601c8383612baf565b611b30848484612032565b6001600160a01b0383163b15158015611b525750611b5084848484612731565b155b15611b70576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6009546001600160a01b03163314611bbe5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610b20601b8383612baf565b6060601854821115611c6857601a8054611be390613210565b80601f0160208091040260200160405190810160405280929190818152602001828054611c0f90613210565b8015611c5c5780601f10611c3157610100808354040283529160200191611c5c565b820191906000526020600020905b815481529060010190602001808311611c3f57829003601f168201915b50505050509050919050565b6000828152601e602052604090205460ff16151560011415611cb657601b611c8f83612829565b604051602001611ca0929190612ff6565b6040516020818303038152906040529050919050565b601c611c8f83612829565b919050565b6009546001600160a01b03163314611d0e5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b601d55565b6009546001600160a01b03163314611d5b5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b60026008541415611dae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b6002600855600a54471015611e0f5760405162461bcd60e51b815260206004820152602160248201527f576174636865722063616e277420746f756368207468652074726561737572656044820152601760f91b6064820152608401610b69565b611e2633600a5447611e2191906131cd565b612275565b7fffb7a058f3489b3f4215d0517dd9bd49ccec359af5bf041d75894d2cb84385ca600033600a5447611e5891906131cd565b604080519384526001600160a01b039092166020840152908201526060016117e0565b6009546001600160a01b03163314611ec35760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b6001600160a01b038116611f285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b69565b611f31816125a8565b50565b600080548210801561096b575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611fe282826040518060200160405280600081525061293f565b5050565b6000828152601e60205260409020805460ff1916821580159190911790915561202257601080549060006120198361324b565b91905055505050565b601180549060006120198361324b565b600061203d8261248c565b9050836001600160a01b031681600001516001600160a01b0316146120745760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612092575061209285336108ca565b806120ad5750336120a284610a53565b6001600160a01b0316145b9050806120cd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166120f457604051633a954ecd60e21b815260040160405180910390fd5b61210060008487611f5f565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166121d65760005482146121d6578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600061096882601d548561294c565b6201518042826015546122449190613182565b61224e91906131cd565b1115612267576122616201518042613182565b60155550565b806015546122619190613182565b804710156122c55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b69565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612312576040519150601f19603f3d011682016040523d82523d6000602084013e612317565b606091505b5050905080610b205760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b69565b6000600161239f6001546000540390565b6123a991906131cd565b60178190556019805461ff0019166101001790556000818152601e60205260408120549192509060ff1615156001141561240c57601054600a546123ed919061319a565b905080600d60008282546124019190613182565b909155506124299050565b600a54905080600e60008282546124239190613182565b90915550505b61243282611594565b6001600160a01b0316827f4f9427d78ae260a712337c9314df299fc0395098599ae6efdf4f30700eb63113612476856000908152601e602052604090205460ff1690565b6040805191151582526020820186905201611ac5565b60408051606081018252600080825260208201819052918101919091528160005481101561258f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061258d5780516001600160a01b031615612523579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612588579392505050565b612523565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60195460ff1615156001146126595760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b3233146126be5760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b60006126c98261092d565b90506126d53382612275565b604080518381523360208201529081018290527fffb7a058f3489b3f4215d0517dd9bd49ccec359af5bf041d75894d2cb84385ca9060600160405180910390a1506000908152601f60205260409020805460ff19166001179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061276690339089908890889060040161309d565b602060405180830381600087803b15801561278057600080fd5b505af19250505080156127b0575060408051601f3d908101601f191682019092526127ad91810190612ea8565b60015b61280b573d8080156127de576040519150601f19603f3d011682016040523d82523d6000602084013e6127e3565b606091505b508051612803576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161284d5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561287757806128618161324b565b91506128709050600a8361319a565b9150612851565b60008167ffffffffffffffff811115612892576128926132bc565b6040519080825280601f01601f1916602001820160405280156128bc576020820181803683370190505b5090505b8415612821576128d16001836131cd565b91506128de600a86613266565b6128e9906030613182565b60f81b8183815181106128fe576128fe6132a6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612938600a8661319a565b94506128c0565b610b208383836001612962565b6000826129598584612b33565b14949350505050565b6000546001600160a01b03851661298b57604051622e076360e81b815260040160405180910390fd5b836129a95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a5b57506001600160a01b0387163b15155b15612ae4575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612aac6000888480600101955088612731565b612ac9576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612a61578260005414612adf57600080fd5b612b2a565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612ae5575b5060005561221b565b600081815b8451811015612b7857612b6482868381518110612b5757612b576132a6565b6020026020010151612b80565b915080612b708161324b565b915050612b38565b509392505050565b6000818310612b9c576000828152602084905260409020610968565b6000838152602083905260409020610968565b828054612bbb90613210565b90600052602060002090601f016020900481019282612bdd5760008555612c23565b82601f10612bf65782800160ff19823516178555612c23565b82800160010185558215612c23579182015b82811115612c23578235825591602001919060010190612c08565b50610c5a9291505b80821115610c5a5760008155600101612c2b565b80356001600160a01b0381168114611cc157600080fd5b60008083601f840112612c6857600080fd5b50813567ffffffffffffffff811115612c8057600080fd5b602083019150836020828501011115612c9857600080fd5b9250929050565b600060208284031215612cb157600080fd5b61096882612c3f565b60008060408385031215612ccd57600080fd5b612cd683612c3f565b9150612ce460208401612c3f565b90509250929050565b600080600060608486031215612d0257600080fd5b612d0b84612c3f565b9250612d1960208501612c3f565b9150604084013590509250925092565b60008060008060808587031215612d3f57600080fd5b612d4885612c3f565b9350612d5660208601612c3f565b925060408501359150606085013567ffffffffffffffff80821115612d7a57600080fd5b818701915087601f830112612d8e57600080fd5b813581811115612da057612da06132bc565b604051601f8201601f19908116603f01168101908382118183101715612dc857612dc86132bc565b816040528281528a6020848701011115612de157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612e1857600080fd5b612e2183612c3f565b915060208301358015158114612e3657600080fd5b809150509250929050565b60008060408385031215612e5457600080fd5b612e5d83612c3f565b946020939093013593505050565b600060208284031215612e7d57600080fd5b5035919050565b600060208284031215612e9657600080fd5b8135612ea1816132d2565b9392505050565b600060208284031215612eba57600080fd5b8151612ea1816132d2565b60008060208385031215612ed857600080fd5b823567ffffffffffffffff811115612eef57600080fd5b612efb85828601612c56565b90969095509350505050565b600080600080600060608688031215612f1f57600080fd5b85359450602086013567ffffffffffffffff80821115612f3e57600080fd5b612f4a89838a01612c56565b90965094506040880135915080821115612f6357600080fd5b818801915088601f830112612f7757600080fd5b813581811115612f8657600080fd5b8960208260051b8501011115612f9b57600080fd5b9699959850939650602001949392505050565b60008151808452612fc68160208601602086016131e4565b601f01601f19169290920160200192915050565b60008151612fec8185602086016131e4565b9290920192915050565b600080845481600182811c91508083168061301257607f831692505b602080841082141561303257634e487b7160e01b86526022600452602486fd5b818015613046576001811461305757613084565b60ff19861689528489019650613084565b60008b81526020902060005b8681101561307c5781548b820152908501908301613063565b505084890196505b5050505050506130948185612fda565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130cf6080830184612fae565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613111578351835292840192918401916001016130f5565b50909695505050505050565b6020815260006109686020830184612fae565b858152841515602082015260806040820152826080820152828460a0830137600060a08483010152600060a0601f19601f86011683010190506001600160a01b03831660608301529695505050505050565b600082198211156131955761319561327a565b500190565b6000826131a9576131a9613290565b500490565b60008160001904831182151516156131c8576131c861327a565b500290565b6000828210156131df576131df61327a565b500390565b60005b838110156131ff5781810151838201526020016131e7565b83811115611b705750506000910152565b600181811c9082168061322457607f821691505b6020821081141561324557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561325f5761325f61327a565b5060010190565b60008261327557613275613290565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611f3157600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220863947394ed080d3b59abcfefd0802075e51c1ba19b7640993401fbcf22a0e2364736f6c63430008070033

Deployed Bytecode

0x6080604052600436106103325760003560e01c806353f68891116101b0578063a33dee6f116100ec578063d53b267911610095578063dfbf53ae1161006f578063dfbf53ae14610899578063e985e9c5146108af578063eef1f5c6146108f8578063f2fde38b1461090d57600080fd5b8063d53b26791461082f578063dab5f34014610849578063dbe7e3bd1461086957600080fd5b8063bc33fa25116100c6578063bc33fa25146107d9578063c87b56dd146107f9578063d49dff2c1461081957600080fd5b8063a33dee6f14610783578063af69f8bc14610799578063b88d4fde146107b957600080fd5b806374498b17116101595780639467072211610133578063946707221461071957806395d89b411461072e578063a09f0c2514610743578063a22cb4651461076357600080fd5b806374498b17146106c557806379af23dd146106db5780638da5cb5b146106fb57600080fd5b80636ff566841161018a5780636ff566841461067a57806370a0823114610690578063715018a6146106b057600080fd5b806353f688911461062757806362ad3d22146106475780636352211e1461065a57600080fd5b806318160ddd1161027f578063352653d6116102285780633d9f5209116102025780633d9f5209146105b157806342842e0e146105de578063450311c5146105fe57806348d047721461061457600080fd5b8063352653d61461056f57806336f9be44146105855780633acd65451461059b57600080fd5b806328634a321161025957806328634a321461050b5780632d175f111461053b5780633088e5a51461055a57600080fd5b806318160ddd146104bc578063227c58c7146104d557806323b872dd146104eb57600080fd5b8063081812fc116102e15780630ab49572116102bb5780630ab49572146104885780630f15f4c01461049e578063124380b1146104a657600080fd5b8063081812fc14610418578063095ea7b314610450578063097313b91461047257600080fd5b806301ffc9a71161031257806301ffc9a7146103c057806305c38cf1146103e057806306fdde03146103f657600080fd5b80627b829a146103375780628e0f1b14610360578063017fe809146103a0575b600080fd5b34801561034357600080fd5b5061034d600f5481565b6040519081526020015b60405180910390f35b34801561036c57600080fd5b5061039061037b366004612e6b565b6000908152601e602052604090205460ff1690565b6040519015158152602001610357565b3480156103ac57600080fd5b5061034d6103bb366004612e6b565b61092d565b3480156103cc57600080fd5b506103906103db366004612e84565b610971565b3480156103ec57600080fd5b5061034d60125481565b34801561040257600080fd5b5061040b6109c1565b604051610357919061311d565b34801561042457600080fd5b50610438610433366004612e6b565b610a53565b6040516001600160a01b039091168152602001610357565b34801561045c57600080fd5b5061047061046b366004612e41565b610a97565b005b34801561047e57600080fd5b5061034d60165481565b34801561049457600080fd5b5061034d60185481565b610470610b25565b3480156104b257600080fd5b5061034d60135481565b3480156104c857600080fd5b506001546000540361034d565b3480156104e157600080fd5b5061034d600a5481565b3480156104f757600080fd5b50610470610506366004612ced565b610c24565b34801561051757600080fd5b50610390610526366004612e6b565b601e6020526000908152604090205460ff1681565b34801561054757600080fd5b5060195461039090610100900460ff1681565b34801561056657600080fd5b5061034d610c2f565b34801561057b57600080fd5b5061034d60115481565b34801561059157600080fd5b5061034d600d5481565b3480156105a757600080fd5b5061034d600b5481565b3480156105bd57600080fd5b506105d16105cc366004612c9f565b610c5e565b60405161035791906130d9565b3480156105ea57600080fd5b506104706105f9366004612ced565b610d2a565b34801561060a57600080fd5b5061034d60145481565b610470610622366004612f07565b610d45565b34801561063357600080fd5b50610470610642366004612e6b565b611193565b610470610655366004612f07565b6111f5565b34801561066657600080fd5b50610438610675366004612e6b565b611594565b34801561068657600080fd5b5061034d600e5481565b34801561069c57600080fd5b5061034d6106ab366004612c9f565b6115a6565b3480156106bc57600080fd5b506104706115f5565b3480156106d157600080fd5b5061034d600c5481565b3480156106e757600080fd5b506104706106f6366004612ec5565b611647565b34801561070757600080fd5b506009546001600160a01b0316610438565b34801561072557600080fd5b5061047061169b565b34801561073a57600080fd5b5061040b6117ef565b34801561074f57600080fd5b5061047061075e366004612e6b565b6117fe565b34801561076f57600080fd5b5061047061077e366004612e05565b611a3a565b34801561078f57600080fd5b5061034d60105481565b3480156107a557600080fd5b506104706107b4366004612ec5565b611ad1565b3480156107c557600080fd5b506104706107d4366004612d29565b611b25565b3480156107e557600080fd5b506104706107f4366004612ec5565b611b76565b34801561080557600080fd5b5061040b610814366004612e6b565b611bca565b34801561082557600080fd5b5061034d60155481565b34801561083b57600080fd5b506019546103909060ff1681565b34801561085557600080fd5b50610470610864366004612e6b565b611cc6565b34801561087557600080fd5b50610390610884366004612e6b565b601f6020526000908152604090205460ff1681565b3480156108a557600080fd5b5061034d60175481565b3480156108bb57600080fd5b506103906108ca366004612cba565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561090457600080fd5b50610470611d13565b34801561091957600080fd5b50610470610928366004612c9f565b611e7b565b6000818152601e6020526040812054819060ff161515600114156109545750600d5461096b565b6017548314610964576000610968565b600e545b90505b92915050565b60006001600160e01b031982166380ac58cd60e01b14806109a257506001600160e01b03198216635b5e139f60e01b145b8061096b57506301ffc9a760e01b6001600160e01b031983161461096b565b6060600280546109d090613210565b80601f01602080910402602001604051908101604052809291908181526020018280546109fc90613210565b8015610a495780601f10610a1e57610100808354040283529160200191610a49565b820191906000526020600020905b815481529060010190602001808311610a2c57829003601f168201915b5050505050905090565b6000610a5e82611f34565b610a7b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610aa282611594565b9050806001600160a01b0316836001600160a01b03161415610ad75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610af75750610af581336108ca565b155b15610b15576040516367d9dca160e11b815260040160405180910390fd5b610b20838383611f5f565b505050565b6009546001600160a01b03163314610b725760405162461bcd60e51b815260206004820181905260248201526000805160206132e983398151915260448201526064015b60405180910390fd5b60195460ff1615610bc55760405162461bcd60e51b815260206004820152601460248201527f52756770756c6c2069732073756d6d6f6e65642e0000000000000000000000006044820152606401610b69565b6019805460ff19166001179055610bde61a8c042613182565b601555610bed610e1042613182565b60168190555034600a6000828254610c059190613182565b90915550610c169050336001611fc8565b610c2260006001611fe6565b565b610b20838383612032565b6015546000904290811015610c525780601554610c4c91906131cd565b91505090565b600091505090565b5090565b60606000610c6b836115a6565b67ffffffffffffffff811115610c8357610c836132bc565b604051908082528060200260200182016040528015610cac578160200160208202803683370190505b5090506000805b60015460005403811015610d2157846001600160a01b0316610cd482611594565b6001600160a01b03161415610d0f5780838381518110610cf657610cf66132a6565b602090810291909101015281610d0b8161324b565b9250505b80610d198161324b565b915050610cb3565b50909392505050565b610b2083838360405180602001604052806000815250611b25565b60195460ff161515600114610d975760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b323314610dfc5760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b60026008541415610e4f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b60026008556000610e5e610c2f565b111561113157600a851115610edd576040805162461bcd60e51b81526020600482015260248101919091527f4578636565646564206d61782073756d6d6f6e206c696d69742e20546865726560448201527f20776173206e6f20726573706f6e73652066726f6d2074686520616c7461722e6064820152608401610b69565b84600c54610eeb91906131ae565b3414610f5f5760405162461bcd60e51b815260206004820152603760248201527f456e65726779206e6f74206d617463682e20546865726520776173206e6f207260448201527f6573706f6e73652066726f6d2074686520616c7461722e0000000000000000006064820152608401610b69565b601654421161101c57604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610fdd905b83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061222292505050565b61101c5760405162461bcd60e51b815260206004820152601060248201526f2737ba103a3432903834b7b732b2b91760811b6044820152606401610b69565b60646110296019346131ae565b611033919061319a565b600a60008282546110449190613182565b909155505060005461106061105b8761012c6131ae565b612231565b60096013541015611085576013805490600061107b8361324b565b91905055506110ab565b60006013819055506548c273950000600c60008282546110a59190613182565b90915550505b85601154827e99df52088395f0c2c79dc2ae8d6e10a00ab45962e32cc72db01e3ce167d80d3460008a8a336040516110e7959493929190613130565b60405180910390a460005b868110156111205761110e6111078284613182565b6000611fe6565b806111188161324b565b9150506110f2565b5061112b3387611fc8565b50611187565b601954610100900460ff16156111755760405162461bcd60e51b815260206004820152600960248201526823b0b6b29027bb32b960b91b6044820152606401610b69565b61117f3334612275565b61118761238e565b50506001600855505050565b6009546001600160a01b031633146111db5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b80601860008282546111ed9190613182565b909155505050565b60195460ff1615156001146112475760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b3233146112ac5760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b600260085414156112ff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b6002600855600061130e610c2f565b111561113157600a85111561138b5760405162461bcd60e51b815260206004820152603d60248201527f4578636565646564206d61782073756d6d6f6e206c696d69742e20546865726560448201527f20776173206e6f20726573706f6e736520696e20746865206461726b2e0000006064820152608401610b69565b84600b5461139991906131ae565b341461140d5760405162461bcd60e51b815260206004820152603460248201527f456e65726779206e6f74206d617463682e20546865726520776173206e6f207260448201527f6573706f6e736520696e20746865206461726b2e0000000000000000000000006064820152608401610b69565b601654421161149557604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012061145690610fa4565b6114955760405162461bcd60e51b815260206004820152601060248201526f2737ba103a3432903834b7b732b2b91760811b6044820152606401610b69565b60646114a2600f346131ae565b6114ac919061319a565b600a60008282546114bd9190613182565b90915550506000546114d461105b876102586131ae565b600960125410156114f957601280549060006114ef8361324b565b919050555061151f565b60006012819055506548c273950000600b60008282546115199190613182565b90915550505b85601054827e99df52088395f0c2c79dc2ae8d6e10a00ab45962e32cc72db01e3ce167d80d3460018a8a3360405161155b959493929190613130565b60405180910390a460005b868110156111205761158261157b8284613182565b6001611fe6565b8061158c8161324b565b915050611566565b600061159f8261248c565b5192915050565b60006001600160a01b0382166115cf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b0316331461163d5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610c2260006125a8565b6009546001600160a01b0316331461168f5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610b20601a8383612baf565b6009546001600160a01b031633146116e35760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b600260085414156117365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b600260085560155461174b9062015180613182565b42101561179a5760405162461bcd60e51b815260206004820152600c60248201527f4e6f742074686520656e642e00000000000000000000000000000000000000006044820152606401610b69565b6117a43347612275565b604080516000815233602082015247918101919091527fffb7a058f3489b3f4215d0517dd9bd49ccec359af5bf041d75894d2cb84385ca906060015b60405180910390a16001600855565b6060600380546109d090613210565b60195460ff1615156001146118505760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b3233146118b55760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b600260085414156119085760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b60026008553361191782611594565b6001600160a01b03161461196d5760405162461bcd60e51b815260206004820152601160248201527f4e6f74207468652073756d6d6f6e65722e0000000000000000000000000000006044820152606401610b69565b60195460ff6101009091041615156001146119ca5760405162461bcd60e51b815260206004820152601160248201527f47616d65206973206e6f74206f7665722e0000000000000000000000000000006044820152606401610b69565b6000818152601f602052604090205460ff1615611a295760405162461bcd60e51b815260206004820152601060248201527f416c726561647920636c61696d65642e000000000000000000000000000000006044820152606401610b69565b611a3281612607565b506001600855565b6001600160a01b038216331415611a645760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a35050565b6009546001600160a01b03163314611b195760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610b20601c8383612baf565b611b30848484612032565b6001600160a01b0383163b15158015611b525750611b5084848484612731565b155b15611b70576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6009546001600160a01b03163314611bbe5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b610b20601b8383612baf565b6060601854821115611c6857601a8054611be390613210565b80601f0160208091040260200160405190810160405280929190818152602001828054611c0f90613210565b8015611c5c5780601f10611c3157610100808354040283529160200191611c5c565b820191906000526020600020905b815481529060010190602001808311611c3f57829003601f168201915b50505050509050919050565b6000828152601e602052604090205460ff16151560011415611cb657601b611c8f83612829565b604051602001611ca0929190612ff6565b6040516020818303038152906040529050919050565b601c611c8f83612829565b919050565b6009546001600160a01b03163314611d0e5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b601d55565b6009546001600160a01b03163314611d5b5760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b60026008541415611dae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b69565b6002600855600a54471015611e0f5760405162461bcd60e51b815260206004820152602160248201527f576174636865722063616e277420746f756368207468652074726561737572656044820152601760f91b6064820152608401610b69565b611e2633600a5447611e2191906131cd565b612275565b7fffb7a058f3489b3f4215d0517dd9bd49ccec359af5bf041d75894d2cb84385ca600033600a5447611e5891906131cd565b604080519384526001600160a01b039092166020840152908201526060016117e0565b6009546001600160a01b03163314611ec35760405162461bcd60e51b815260206004820181905260248201526000805160206132e98339815191526044820152606401610b69565b6001600160a01b038116611f285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b69565b611f31816125a8565b50565b600080548210801561096b575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611fe282826040518060200160405280600081525061293f565b5050565b6000828152601e60205260409020805460ff1916821580159190911790915561202257601080549060006120198361324b565b91905055505050565b601180549060006120198361324b565b600061203d8261248c565b9050836001600160a01b031681600001516001600160a01b0316146120745760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612092575061209285336108ca565b806120ad5750336120a284610a53565b6001600160a01b0316145b9050806120cd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166120f457604051633a954ecd60e21b815260040160405180910390fd5b61210060008487611f5f565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166121d65760005482146121d6578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600061096882601d548561294c565b6201518042826015546122449190613182565b61224e91906131cd565b1115612267576122616201518042613182565b60155550565b806015546122619190613182565b804710156122c55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b69565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612312576040519150601f19603f3d011682016040523d82523d6000602084013e612317565b606091505b5050905080610b205760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b69565b6000600161239f6001546000540390565b6123a991906131cd565b60178190556019805461ff0019166101001790556000818152601e60205260408120549192509060ff1615156001141561240c57601054600a546123ed919061319a565b905080600d60008282546124019190613182565b909155506124299050565b600a54905080600e60008282546124239190613182565b90915550505b61243282611594565b6001600160a01b0316827f4f9427d78ae260a712337c9314df299fc0395098599ae6efdf4f30700eb63113612476856000908152601e602052604090205460ff1690565b6040805191151582526020820186905201611ac5565b60408051606081018252600080825260208201819052918101919091528160005481101561258f57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061258d5780516001600160a01b031615612523579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612588579392505050565b612523565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60195460ff1615156001146126595760405162461bcd60e51b8152602060048201526018602482015277293ab3b83ab636103bb0b9b713ba1039bab6b6b7b732b21760411b6044820152606401610b69565b3233146126be5760405162461bcd60e51b815260206004820152602d60248201527f576174636865727320646566656e642074686520706f7765722066726f6d206160448201526c3737ba3432b9103bb7b936321760991b6064820152608401610b69565b60006126c98261092d565b90506126d53382612275565b604080518381523360208201529081018290527fffb7a058f3489b3f4215d0517dd9bd49ccec359af5bf041d75894d2cb84385ca9060600160405180910390a1506000908152601f60205260409020805460ff19166001179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061276690339089908890889060040161309d565b602060405180830381600087803b15801561278057600080fd5b505af19250505080156127b0575060408051601f3d908101601f191682019092526127ad91810190612ea8565b60015b61280b573d8080156127de576040519150601f19603f3d011682016040523d82523d6000602084013e6127e3565b606091505b508051612803576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161284d5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561287757806128618161324b565b91506128709050600a8361319a565b9150612851565b60008167ffffffffffffffff811115612892576128926132bc565b6040519080825280601f01601f1916602001820160405280156128bc576020820181803683370190505b5090505b8415612821576128d16001836131cd565b91506128de600a86613266565b6128e9906030613182565b60f81b8183815181106128fe576128fe6132a6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612938600a8661319a565b94506128c0565b610b208383836001612962565b6000826129598584612b33565b14949350505050565b6000546001600160a01b03851661298b57604051622e076360e81b815260040160405180910390fd5b836129a95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a5b57506001600160a01b0387163b15155b15612ae4575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612aac6000888480600101955088612731565b612ac9576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612a61578260005414612adf57600080fd5b612b2a565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612ae5575b5060005561221b565b600081815b8451811015612b7857612b6482868381518110612b5757612b576132a6565b6020026020010151612b80565b915080612b708161324b565b915050612b38565b509392505050565b6000818310612b9c576000828152602084905260409020610968565b6000838152602083905260409020610968565b828054612bbb90613210565b90600052602060002090601f016020900481019282612bdd5760008555612c23565b82601f10612bf65782800160ff19823516178555612c23565b82800160010185558215612c23579182015b82811115612c23578235825591602001919060010190612c08565b50610c5a9291505b80821115610c5a5760008155600101612c2b565b80356001600160a01b0381168114611cc157600080fd5b60008083601f840112612c6857600080fd5b50813567ffffffffffffffff811115612c8057600080fd5b602083019150836020828501011115612c9857600080fd5b9250929050565b600060208284031215612cb157600080fd5b61096882612c3f565b60008060408385031215612ccd57600080fd5b612cd683612c3f565b9150612ce460208401612c3f565b90509250929050565b600080600060608486031215612d0257600080fd5b612d0b84612c3f565b9250612d1960208501612c3f565b9150604084013590509250925092565b60008060008060808587031215612d3f57600080fd5b612d4885612c3f565b9350612d5660208601612c3f565b925060408501359150606085013567ffffffffffffffff80821115612d7a57600080fd5b818701915087601f830112612d8e57600080fd5b813581811115612da057612da06132bc565b604051601f8201601f19908116603f01168101908382118183101715612dc857612dc86132bc565b816040528281528a6020848701011115612de157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612e1857600080fd5b612e2183612c3f565b915060208301358015158114612e3657600080fd5b809150509250929050565b60008060408385031215612e5457600080fd5b612e5d83612c3f565b946020939093013593505050565b600060208284031215612e7d57600080fd5b5035919050565b600060208284031215612e9657600080fd5b8135612ea1816132d2565b9392505050565b600060208284031215612eba57600080fd5b8151612ea1816132d2565b60008060208385031215612ed857600080fd5b823567ffffffffffffffff811115612eef57600080fd5b612efb85828601612c56565b90969095509350505050565b600080600080600060608688031215612f1f57600080fd5b85359450602086013567ffffffffffffffff80821115612f3e57600080fd5b612f4a89838a01612c56565b90965094506040880135915080821115612f6357600080fd5b818801915088601f830112612f7757600080fd5b813581811115612f8657600080fd5b8960208260051b8501011115612f9b57600080fd5b9699959850939650602001949392505050565b60008151808452612fc68160208601602086016131e4565b601f01601f19169290920160200192915050565b60008151612fec8185602086016131e4565b9290920192915050565b600080845481600182811c91508083168061301257607f831692505b602080841082141561303257634e487b7160e01b86526022600452602486fd5b818015613046576001811461305757613084565b60ff19861689528489019650613084565b60008b81526020902060005b8681101561307c5781548b820152908501908301613063565b505084890196505b5050505050506130948185612fda565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130cf6080830184612fae565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613111578351835292840192918401916001016130f5565b50909695505050505050565b6020815260006109686020830184612fae565b858152841515602082015260806040820152826080820152828460a0830137600060a08483010152600060a0601f19601f86011683010190506001600160a01b03831660608301529695505050505050565b600082198211156131955761319561327a565b500190565b6000826131a9576131a9613290565b500490565b60008160001904831182151516156131c8576131c861327a565b500290565b6000828210156131df576131df61327a565b500390565b60005b838110156131ff5781810151838201526020016131e7565b83811115611b705750506000910152565b600181811c9082168061322457607f821691505b6020821081141561324557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561325f5761325f61327a565b5060010190565b60008261327557613275613290565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611f3157600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220863947394ed080d3b59abcfefd0802075e51c1ba19b7640993401fbcf22a0e2364736f6c63430008070033

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

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