ETH Price: $3,474.07 (+2.15%)

Token

CF Guardian (GUARDIAN)
 

Overview

Max Total Supply

4,192 GUARDIAN

Holders

752

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 GUARDIAN
0x15de6a4aea96f766a85d0a55500da18cd67c08e2
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:
Guardian

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 600 runs

Other Settings:
default evmVersion
File 1 of 13 : Guardian.sol
// SPDX-License-Identifier: MIT
// Creator: twitter.com/0xNox_ETH

//               .;::::::::::::::::::::::::::::::;.
//               ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:
//               ;XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX;
//               ;KNNNWMMWMMMMMMWWNNNNNNNNNWMMMMMN:
//                .',oXMMMMMMMNk:''''''''';OMMMMMN:
//                 ,xNMMMMMMNk;            l00000k,
//               .lNMMMMMMNk;               .....
//                'dXMMWNO;                .......
//                  'd0k;.                .dXXXXX0;
//               .,;;:lc;;;;;;;;;;;;;;;;;;c0MMMMMN:
//               ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX:
//               ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:
//               ;XWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWX:
//               .,;,;;;;;;;;;;;;;;;;;;;;;;;,;;,;,.
//               'dkxkkxxkkkkkkkkkkkkkkkkkkxxxkxkd'
//               ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:
//               ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:
//               'xkkkOOkkkkkkkkkkkkkkkkkkkkkkkkkx'
//                          .,,,,,,,,,,,,,,,,,,,,,.
//                        .lKNWWWWWWWWWWWWWWWWWWWX;
//                      .lKWMMMMMMMMMMMMMMMMMMMMMX;
//                    .lKWMMMMMMMMMMMMMMMMMMMMMMMN:
//                  .lKWMMMMMWKo:::::::::::::::::;.
//                .lKWMMMMMWKl.
//               .lNMMMMMWKl.
//                 ;kNMWKl.
//                   ;dl.
//
//               We vow to Protect
//               Against the powers of Darkness
//               To rain down Justice
//               Against all who seek to cause Harm
//               To heed the call of those in Need
//               To offer up our Arms
//               In body and name we give our Code
//
//               FOR THE BLOCKCHAIN ⚔️

pragma solidity ^0.8.17;

import "./extensions/IERC721ABurnable.sol";
import "./extensions/ERC721AQueryable.sol";
import "./ICloneforceAirdropManager.sol";
import "./DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Guardian is
    Ownable,
    ReentrancyGuard,
    ERC721AQueryable,
    IERC721ABurnable,
    DefaultOperatorFilterer
{
    event PermanentURI(string _value, uint256 indexed _id);

    bool public relicMigrationPaused;
    bool public contractPaused;

    string private _baseTokenURI;
    bool public baseURILocked;

    address private _nexusContract;
    address private _burnAuthorizedContract;
    address private _admin;

    // Shard related storage

    address private _shardContract;

    // 0: None (No DNA), 1: Human, 2: Robot
    // 3: Demon, 4: Angel, 5: Reptile
    // 6: Undead, 7: Alien, 8: Kami, ...
    mapping(uint256 => uint256) public tokenIdToDna;

    struct EquippedBoundlessShard {
        uint256 tokenId;
        uint256 count;
    }
    mapping(uint256 => EquippedBoundlessShard[]) public equippedBoundlessShardsMap;
    mapping(uint256 => uint256[]) public lastBoundlessShardAddTimes;
    uint256 public maxBoundlessShardEquipPerPeriod = 3;
    uint256 public boundlessShardEquipLimitPeriodDays = 7;

    // Armor piece related storage

    struct EquippedArmorPiece {
        address tokenAddress;
        uint256 tokenId;
        uint256 bodyPart;
    }
    mapping(address => bool) public armorPieceContracts;
    mapping(uint256 => EquippedArmorPiece[]) public equippedArmorPiecesMap;

    mapping(uint256 => bool) public isUnequippableBodyPartMap;
    mapping(uint256 => uint256) public lastArmorPieceUnequipTimeMap;

    constructor(
        string memory baseTokenURI,
        address admin,
        address nexusContract
    ) ERC721A("CF Guardian", "GUARDIAN") {
        _baseTokenURI = baseTokenURI;
        _admin = admin;
        _nexusContract = nexusContract;

        relicMigrationPaused = true;

        _safeMint(msg.sender, 1);
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Caller is another contract");
        _;
    }

    modifier onlyOwnerOrAdmin() {
        require(msg.sender == owner() || msg.sender == _admin, "Not owner or admin");
        _;
    }

    // Burns `count` number of Relics and mints new Guardians
    function migrateRelic(uint256 count) external nonReentrant callerIsUser {
        require(!relicMigrationPaused && !contractPaused, "Migration is paused");
        require(count > 0, "Count must be greater than 0");

        INexusContract nexus = INexusContract(_nexusContract);
        uint256 relicBalance = nexus.balanceOf(msg.sender, 0);
        require(relicBalance >= count, "You don't have enough Relics");

        // burn Relics
        nexus.burn(msg.sender, 0, count);

        // mint Guardians
        _safeMint(msg.sender, count);
    }

    // Only the owner of the token and its approved operators, and the authorized contract
    // can call this function.
    function burn(uint256 tokenId) public virtual override {
        // Avoid unnecessary approvals for the authorized contract
        bool approvalCheck = msg.sender != _burnAuthorizedContract;
        _burn(tokenId, approvalCheck);
    }

    function pauseRelicMigration(bool paused) external onlyOwnerOrAdmin {
        relicMigrationPaused = paused;
    }

    function pauseContract(bool paused) external onlyOwnerOrAdmin {
        contractPaused = paused;
    }

    function equipDnaShard(uint256 tokenId, uint256 shardId) external nonReentrant callerIsUser {
        require(msg.sender == ownerOf(tokenId), "Only owner can equip");
        require(tokenIdToDna[tokenId] == 0, "Token already has a DNA");

        ICloneforceShard shard = ICloneforceShard(_shardContract);
        require(shard.balanceOf(msg.sender, shardId) > 0, "Not enough shards");

        // it must be a DNA shard
        require(shard.getShardType(shardId) == 0, "Not a DNA shard");

        uint256 dnaType = shard.getDnaType(shardId);

        // burn the shard
        shard.burn(msg.sender, shardId, 1);

        // equip the shard
        tokenIdToDna[tokenId] = dnaType;
    }

    function equipBoundlessShard(
        uint256 tokenId,
        uint256 shardId,
        uint256 count
    ) external nonReentrant callerIsUser {
        require(msg.sender == ownerOf(tokenId), "Only owner can equip");
        require(count > 0 && count <= maxBoundlessShardEquipPerPeriod, "Invalid equip count");

        ICloneforceShard shard = ICloneforceShard(_shardContract);
        require(shard.balanceOf(msg.sender, shardId) >= count, "Not enough shards");

        // it must be a Boundless shard
        require(shard.getShardType(shardId) == 1, "Not a Boundless shard");

        unchecked {
            // can only equip a specific number of shards in a while
            uint maxPossibleEquipCount = maxBoundlessShardEquipPerPeriod;
            uint periodDays = boundlessShardEquipLimitPeriodDays * 1 days;
            uint256[] storage lastAddTimes = lastBoundlessShardAddTimes[tokenId];
            for (uint i = 0; i < lastAddTimes.length; i++) {
                if (block.timestamp - lastAddTimes[i] < periodDays) {
                    maxPossibleEquipCount--;
                }
            }

            if (maxPossibleEquipCount < 1) {
                revert("Can't equip more shards in this period");
            }

            if (maxPossibleEquipCount < count) {
                count = maxPossibleEquipCount;
            }

            // burn the shard(s)
            shard.burn(msg.sender, shardId, count);

            // if shard is already equipped, add to count
            EquippedBoundlessShard[] storage equippedShards = equippedBoundlessShardsMap[tokenId];
            bool found = false;
            for (uint256 i = 0; i < equippedShards.length; i++) {
                if (equippedShards[i].tokenId == shardId) {
                    equippedShards[i].count += count;
                    found = true;
                    break;
                }
            }

            // not equipped, add to array
            if (!found) {
                equippedShards.push(EquippedBoundlessShard(shardId, count));
            }

            // log the add times
            for (uint iter = 0; iter < count; iter++) {
                if (lastAddTimes.length < maxBoundlessShardEquipPerPeriod) {
                    lastAddTimes.push(block.timestamp);
                } else {
                    uint256 minTimeIdx = 0;
                    for (uint256 i = 1; i < maxBoundlessShardEquipPerPeriod; i++) {
                        if (lastAddTimes[i] < lastAddTimes[minTimeIdx]) {
                            minTimeIdx = i;
                        }
                    }
                    lastAddTimes[minTimeIdx] = block.timestamp;
                }
            }
        }
    }

    function equipArmorPiece(
        uint256 tokenId,
        address armorPieceContract,
        uint256 armorPieceId
    ) external nonReentrant callerIsUser {
        bool isOwnerOrAdmin = msg.sender == owner() || msg.sender == _admin;
        address tokenOwner = ownerOf(tokenId);
        require(msg.sender == tokenOwner || isOwnerOrAdmin, "Only owner can equip");
        require(armorPieceContracts[armorPieceContract], "Not an armor piece contract");

        ICloneforceArmorPiece armorPiece = ICloneforceArmorPiece(armorPieceContract);
        require(
            armorPiece.ownerOf(armorPieceId) == msg.sender || isOwnerOrAdmin,
            "You don't own the armor piece"
        );

        uint256 bodyPart = armorPiece.getBodyPart(armorPieceId);

        // burn the armor piece
        armorPiece.burn(armorPieceId);

        // check if there's an existing armor piece of the same body part
        EquippedArmorPiece[] storage equippedArmorPieces = equippedArmorPiecesMap[tokenId];
        for (uint256 i = 0; i < equippedArmorPieces.length; i++) {
            if (equippedArmorPieces[i].bodyPart == bodyPart) {
                // if it's an unequippable armor piece, un-equip it
                if (isUnequippableBodyPartMap[bodyPart]) {
                    // re-mint the armor piece
                    ICloneforceArmorPiece remintedArmorPiece = ICloneforceArmorPiece(
                        equippedArmorPieces[i].tokenAddress
                    );
                    remintedArmorPiece.mint(tokenOwner, equippedArmorPieces[i].tokenId);

                    // set the unequip time
                    lastArmorPieceUnequipTimeMap[tokenId] = block.timestamp;
                }
                // replace the existing armor piece
                equippedArmorPieces[i].tokenAddress = armorPieceContract;
                equippedArmorPieces[i].tokenId = armorPieceId;
                return;
            }
        }

        // there's no armor piece on this body part, equip it
        equippedArmorPieces.push(
            EquippedArmorPiece({
                tokenAddress: armorPieceContract,
                tokenId: armorPieceId,
                bodyPart: bodyPart
            })
        );
    }

    function unequipArmorPiece(uint256 tokenId, uint256 bodyPart)
        external
        nonReentrant
        callerIsUser
    {
        bool isOwnerOrAdmin = msg.sender == owner() || msg.sender == _admin;
        address tokenOwner = ownerOf(tokenId);
        require(msg.sender == tokenOwner || isOwnerOrAdmin, "Only owner can unequip");
        // check if unequipping is allowed for the body part
        require(isUnequippableBodyPartMap[bodyPart], "Unequipping not allowed for this body part");

        unchecked {
            EquippedArmorPiece[] storage equippedArmorPieces = equippedArmorPiecesMap[tokenId];
            for (uint256 i = 0; i < equippedArmorPieces.length; i++) {
                if (equippedArmorPieces[i].bodyPart == bodyPart) {
                    // re-mint the armor piece
                    ICloneforceArmorPiece armorPiece = ICloneforceArmorPiece(
                        equippedArmorPieces[i].tokenAddress
                    );
                    armorPiece.mint(tokenOwner, equippedArmorPieces[i].tokenId);

                    // remove the armor piece
                    equippedArmorPieces[i] = equippedArmorPieces[equippedArmorPieces.length - 1];
                    equippedArmorPieces.pop();

                    // set the unequip time
                    lastArmorPieceUnequipTimeMap[tokenId] = block.timestamp;
                    return;
                }
            }
        }
    }

    // Returns the DNA type of the Guardian.
    function getDna(uint256 tokenId) external view returns (uint256) {
        require(_exists(tokenId), "Token does not exist");
        return tokenIdToDna[tokenId];
    }

    // Returns the equipped boundless shards of the Guardian.
    function getEquippedBoundlessShards(uint256 tokenId)
        external
        view
        returns (uint256[] memory equippedTokenIds, uint256[] memory equippedCounts)
    {
        require(_exists(tokenId), "Token does not exist");
        EquippedBoundlessShard[] memory equippedShards = equippedBoundlessShardsMap[tokenId];
        uint256[] memory tokenIds = new uint256[](equippedShards.length);
        uint256[] memory counts = new uint256[](equippedShards.length);
        for (uint256 i = 0; i < equippedShards.length; i++) {
            tokenIds[i] = equippedShards[i].tokenId;
            counts[i] = equippedShards[i].count;
        }
        return (tokenIds, counts);
    }

    // Returns the equipped armor pieces of the Guardian.
    function getEquippedArmorPieces(uint256 tokenId)
        external
        view
        returns (
            address[] memory equippedTokenAddresses,
            uint256[] memory equippedTokenIds,
            uint256[] memory equippedBodyParts
        )
    {
        require(_exists(tokenId), "Token does not exist");
        EquippedArmorPiece[] memory equippedArmorPieces = equippedArmorPiecesMap[tokenId];
        address[] memory tokenAddresses = new address[](equippedArmorPieces.length);
        uint256[] memory tokenIds = new uint256[](equippedArmorPieces.length);
        uint256[] memory bodyParts = new uint256[](equippedArmorPieces.length);
        for (uint256 i = 0; i < equippedArmorPieces.length; i++) {
            tokenAddresses[i] = equippedArmorPieces[i].tokenAddress;
            tokenIds[i] = equippedArmorPieces[i].tokenId;
            bodyParts[i] = equippedArmorPieces[i].bodyPart;
        }
        return (tokenAddresses, tokenIds, bodyParts);
    }

    function _beforeTokenTransfers(
        address, /* from */
        address, /* to */
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        require(!contractPaused, "Contract is paused");
        // enumerate token ids `from` to `to` and check the last armor piece unequip time, it must be more than an hour
        for (uint256 i = 0; i < quantity; i++) {
            uint256 tokenId = startTokenId + i;
            require(
                block.timestamp - lastArmorPieceUnequipTimeMap[tokenId] > 1 hours,
                "Can only transfer after 1h of unequipping armor piece"
            );
        }
    }

    // Locks base token URI forever and emits PermanentURI for marketplaces (e.g. OpenSea)
    function lockBaseURI() external onlyOwnerOrAdmin {
        baseURILocked = true;
        for (uint256 i = 0; i < _nextTokenId(); i++) {
            if (_exists(i)) {
                emit PermanentURI(tokenURI(i), i);
            }
        }
    }

    function ownerMint(address to, uint256 quantity) external onlyOwnerOrAdmin {
        _safeMint(to, quantity);
    }

    function setDna(uint256 tokenId, uint256 dnaType) external onlyOwnerOrAdmin {
        tokenIdToDna[tokenId] = dnaType;
    }

    function setBaseURI(string calldata newBaseURI) external onlyOwnerOrAdmin {
        require(!baseURILocked, "Base URI is locked");
        _baseTokenURI = newBaseURI;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function totalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    function setAdmin(address admin) external onlyOwner {
        _admin = admin;
    }

    function setNexusContract(address addr) external onlyOwnerOrAdmin {
        _nexusContract = addr;
    }

    function setBurnAuthorizedContract(address addr) external onlyOwnerOrAdmin {
        _burnAuthorizedContract = addr;
    }

    function setShardContract(address addr) external onlyOwnerOrAdmin {
        _shardContract = addr;
    }

    function setArmorPieceContract(address addr, bool isEquippable) external onlyOwnerOrAdmin {
        armorPieceContracts[addr] = isEquippable;
    }

    function setBoundlessShardEquipLimit(uint256 count, uint256 periodDays)
        external
        onlyOwnerOrAdmin
    {
        maxBoundlessShardEquipPerPeriod = count;
        boundlessShardEquipLimitPeriodDays = periodDays;
    }

    function setUnequippableBodyPart(uint256 bodyPart, bool isUnequippable)
        external
        onlyOwnerOrAdmin
    {
        isUnequippableBodyPartMap[bodyPart] = isUnequippable;
    }

    // OpenSea metadata initialization
    function contractURI() public pure returns (string memory) {
        return "https://cloneforce.xyz/api/guardian/marketplace-metadata";
    }

    // OpenSea operator filtering
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function withdrawMoney(address to) external onlyOwnerOrAdmin {
        (bool success, ) = to.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }
}

interface ICloneforceShard {
    function getShardType(uint256 tokenId) external view returns (uint256); // 0 = dna shard, 1 = boundless shard

    function getDnaType(uint256 tokenId) external view returns (uint256); // returns 0 if not a dna shard, otherwise the DNA type

    function burn(
        address from,
        uint256 id,
        uint256 amount
    ) external;

    function balanceOf(address account, uint256 id) external view returns (uint256);
}

interface ICloneforceArmorPiece {
    function getBodyPart(uint256 tokenId) external view returns (uint256);

    function burn(uint256 tokenId) external;

    function mint(address to, uint256 tokenId) external;

    function ownerOf(uint256 tokenId) external view returns (address owner);
}

interface INexusContract {
    function burn(
        address from,
        uint256 id,
        uint256 amount
    ) external;

    function balanceOf(address account, uint256 id) external view returns (uint256);
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 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 : 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 5 of 13 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 6 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "./IERC721A.sol";

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _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 {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return
            (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) &
            _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed =
            (packed & _BITMASK_AUX_COMPLEMENT) |
            (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, _toString(tokenId)))
                : "";
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId)
        internal
        view
        virtual
        returns (TokenOwnership memory)
    {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index)
        internal
        view
        virtual
        returns (TokenOwnership memory)
    {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId)
        private
        view
        returns (uint256)
    {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed)
        private
        pure
        returns (TokenOwnership memory ownership)
    {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags)
        private
        view
        returns (uint256 result)
    {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(
                owner,
                or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)
            )
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity)
        private
        pure
        returns (uint256 result)
    {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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)
        public
        payable
        virtual
        override
    {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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)
        public
        virtual
        override
    {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from)
            revert TransferFromIncorrectOwner();

        (
            uint256 approvedAddressSlot,
            address approvedAddress
        ) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (
            !_isSenderApprovedOrOwner(
                approvedAddress,
                from,
                _msgSenderERC721A()
            )
        )
            if (!isApprovedForAll(from, _msgSenderERC721A()))
                revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED |
                    _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try
            ERC721A__IERC721Receiver(to).onERC721Received(
                _msgSenderERC721A(),
                from,
                tokenId,
                _data
            )
        returns (bytes4 retval) {
            return
                retval ==
                ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] +=
                quantity *
                ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) |
                    _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT)
            revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] +=
                quantity *
                ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) |
                    _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(
                startTokenId,
                startTokenId + quantity - 1,
                address(0),
                to
            );

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (
                        !_checkContractOnERC721Received(
                            address(0),
                            to,
                            index++,
                            _data
                        )
                    ) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, "");
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev 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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (
            uint256 approvedAddressSlot,
            address approvedAddress
        ) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (
                !_isSenderApprovedOrOwner(
                    approvedAddress,
                    from,
                    _msgSenderERC721A()
                )
            )
                if (!isApprovedForAll(from, _msgSenderERC721A()))
                    revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) |
                    _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed =
            (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) |
            (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value)
        internal
        pure
        virtual
        returns (string memory str)
    {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

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

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 8 of 13 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 9 of 13 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 10 of 13 : ICloneforceAirdropManager.sol
// SPDX-License-Identifier: MIT
// Creator: twitter.com/0xNox_ETH

pragma solidity ^0.8.16;

interface ICloneforceAirdropManager {
    function hasAirdrops() external view returns (bool value);
    function remainingClaims(address baseContract, uint256 tokenId, address airdropContract, uint256 airdropTokenId) external view returns (uint256 count);
    function claim(address to, uint256 baseTokenId, address airdropContract, uint256 airdropTokenId, uint256 count) external;
    function claimAll(address to, uint256 baseTokenId) external;
}

File 11 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 12 of 13 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 13 of 13 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (subscribe) {
                operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    operatorFilterRegistry.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (
                !(
                    operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)
                        && operatorFilterRegistry.isOperatorAllowed(address(this), from)
                )
            ) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"nexusContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"armorPieceContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boundlessShardEquipLimitPeriodDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"armorPieceContract","type":"address"},{"internalType":"uint256","name":"armorPieceId","type":"uint256"}],"name":"equipArmorPiece","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"shardId","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"equipBoundlessShard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"shardId","type":"uint256"}],"name":"equipDnaShard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"equippedArmorPiecesMap","outputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"bodyPart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"equippedBoundlessShardsMap","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDna","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getEquippedArmorPieces","outputs":[{"internalType":"address[]","name":"equippedTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"equippedTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"equippedBodyParts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getEquippedBoundlessShards","outputs":[{"internalType":"uint256[]","name":"equippedTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"equippedCounts","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":"isUnequippableBodyPartMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastArmorPieceUnequipTimeMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastBoundlessShardAddTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBoundlessShardEquipPerPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"migrateRelic","outputs":[],"stateMutability":"nonpayable","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"pauseRelicMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"relicMigrationPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","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":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isEquippable","type":"bool"}],"name":"setArmorPieceContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"periodDays","type":"uint256"}],"name":"setBoundlessShardEquipLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setBurnAuthorizedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"dnaType","type":"uint256"}],"name":"setDna","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setNexusContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setShardContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bodyPart","type":"uint256"},{"internalType":"bool","name":"isUnequippable","type":"bool"}],"name":"setUnequippableBodyPart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToDna","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"bodyPart","type":"uint256"}],"name":"unequipArmorPiece","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600360135560076014553480156200001b57600080fd5b506040516200565f3803806200565f8339810160408190526200003e91620006e0565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a21a31023bab0b93234b0b760a91b8152506040518060400160405280600881526020016723aaa0a92224a0a760c11b815250620000b4620000ae6200029960201b60201c565b6200029d565b600180556004620000c683826200084d565b506005620000d582826200084d565b50600060025550506daaeb6d7670e522a718067333cd4e3b15620002225780156200017057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015157600080fd5b505af115801562000166573d6000803e3d6000fd5b5050505062000222565b6001600160a01b03821615620001c15760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000136565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020857600080fd5b505af11580156200021d573d6000803e3d6000fd5b505050505b50600b90506200023384826200084d565b50600e80546001600160a01b0319166001600160a01b0384811691909117909155600c8054610100600160a81b03191661010092841692909202919091179055600a805460ff1916600190811790915562000290903390620002ed565b50505062000a06565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200030f8282604051806020016040528060008152506200031360201b60201c565b5050565b6200031f83836200038a565b6001600160a01b0383163b1562000385576002548281035b60018101906200034d9060009087908662000479565b6200036b576040516368d2bf6b60e11b815260040160405180910390fd5b818110620003375781600254146200038257600080fd5b50505b505050565b6002546000829003620003b05760405163b562e8dd60e01b815260040160405180910390fd5b620003bf60008483856200056d565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083906000805160206200563f8339815191528180a4600183015b8181146200044e57808360006000805160206200563f833981519152600080a460010162000425565b50816000036200047057604051622e076360e81b815260040160405180910390fd5b60025550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620004b090339089908890889060040162000919565b6020604051808303816000875af1925050508015620004ee575060408051601f3d908101601f19168201909252620004eb918101906200096f565b60015b62000550573d8080156200051f576040519150601f19603f3d011682016040523d82523d6000602084013e62000524565b606091505b50805160000362000548576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600a54610100900460ff1615620005c05760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064015b60405180910390fd5b60005b8181101562000382576000620005da8285620009b8565b600081815260186020526040902054909150610e1090620005fc9042620009d4565b11620006715760405162461bcd60e51b815260206004820152603560248201527f43616e206f6e6c79207472616e73666572206166746572203168206f6620756e60448201527f657175697070696e672061726d6f7220706965636500000000000000000000006064820152608401620005b7565b50806200067e81620009ea565b915050620005c3565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620006ba578181015183820152602001620006a0565b50506000910152565b80516001600160a01b0381168114620006db57600080fd5b919050565b600080600060608486031215620006f657600080fd5b83516001600160401b03808211156200070e57600080fd5b818601915086601f8301126200072357600080fd5b81518181111562000738576200073862000687565b604051601f8201601f19908116603f0116810190838211818310171562000763576200076362000687565b816040528281528960208487010111156200077d57600080fd5b620007908360208301602088016200069d565b8097505050505050620007a660208501620006c3565b9150620007b660408501620006c3565b90509250925092565b600181811c90821680620007d457607f821691505b602082108103620007f557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200038557600081815260208120601f850160051c81016020861015620008245750805b601f850160051c820191505b81811015620008455782815560010162000830565b505050505050565b81516001600160401b0381111562000869576200086962000687565b62000881816200087a8454620007bf565b84620007fb565b602080601f831160018114620008b95760008415620008a05750858301515b600019600386901b1c1916600185901b17855562000845565b600085815260208120601f198616915b82811015620008ea57888601518255948401946001909101908401620008c9565b5085821015620009095787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620009588160a08501602087016200069d565b601f01601f19169190910160a00195945050505050565b6000602082840312156200098257600080fd5b81516001600160e01b0319811681146200099b57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115620009ce57620009ce620009a2565b92915050565b81810381811115620009ce57620009ce620009a2565b600060018201620009ff57620009ff620009a2565b5060010190565b614c298062000a166000396000f3fe6080604052600436106103815760003560e01c8063715018a6116101d1578063a2309ff811610102578063d8f2a29b116100a0578063e8a3d4851161006f578063e8a3d48514610abd578063e985e9c514610ad2578063f2fde38b14610b1b578063ffc68cb614610b3b57600080fd5b8063d8f2a29b14610a28578063e260774714610a5d578063e272b89214610a7d578063e599e00d14610a9d57600080fd5b8063b88d4fde116100dc578063b88d4fde146109a8578063c23dc68f146109bb578063c87b56dd146109e8578063ce40022214610a0857600080fd5b8063a2309ff81461092e578063af1d3ce014610943578063b4b57e6e1461098857600080fd5b80638a67456a1161016f57806395d89b411161014957806395d89b41146108b9578063971f2e16146108ce57806399a2557a146108ee578063a22cb4651461090e57600080fd5b80638a67456a1461085c5780638da5cb5b1461087b5780639583b9c61461089957600080fd5b806372f66a43116101ab57806372f66a43146107c15780637dafb1c0146107ef578063818160091461080f5780638462151c1461082f57600080fd5b8063715018a61461076c57806371f64d871461078157806372098200146107a157600080fd5b80633e7528b9116102b65780634b4aed74116102545780635d148e5c116102235780635d148e5c146106f25780636352211e1461070c578063704b6c021461072c57806370a082311461074c57600080fd5b80634b4aed741461066357806353df5c7c1461069057806355f804b3146106a55780635bbb2177146106c557600080fd5b806342966c681161029057806342966c68146105d457806346b800ff146105f4578063484b973c1461061457806348f981f21461063457600080fd5b80633e7528b914610581578063422627c3146105a157806342842e0e146105c157600080fd5b806318160ddd116103235780632f971029116102fd5780632f971029146104ea578063302861081461050a57806335cd22d61461053a57806338df9bde1461055457600080fd5b806318160ddd1461048e57806323b872dd146104a757806327739bc1146104ba57600080fd5b806306fdde031161035f57806306fdde03146103fd578063081812fc1461041f578063095ea7b3146104575780630e9202701461046a57600080fd5b806301ffc9a71461038657806305e491e2146103bb578063067b61f2146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004614312565b610b51565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d636600461432f565b610ba3565b005b3480156103e957600080fd5b506103db6103f836600461432f565b610f45565b34801561040957600080fd5b50610412610fbb565b6040516103b291906143a1565b34801561042b57600080fd5b5061043f61043a3660046143b4565b61104d565b6040516001600160a01b0390911681526020016103b2565b6103db6104653660046143e2565b611091565b34801561047657600080fd5b5061048060135481565b6040519081526020016103b2565b34801561049a57600080fd5b5060035460025403610480565b6103db6104b536600461440e565b611131565b3480156104c657600080fd5b506103a66104d536600461444f565b60156020526000908152604090205460ff1681565b3480156104f657600080fd5b506103db61050536600461444f565b61128d565b34801561051657600080fd5b506103a66105253660046143b4565b60176020526000908152604090205460ff1681565b34801561054657600080fd5b50600a546103a69060ff1681565b34801561056057600080fd5b5061048061056f3660046143b4565b60106020526000908152604090205481565b34801561058d57600080fd5b506103db61059c36600461432f565b611398565b3480156105ad57600080fd5b506104806105bc3660046143b4565b611758565b6103db6105cf36600461440e565b6117b9565b3480156105e057600080fd5b506103db6105ef3660046143b4565b61190a565b34801561060057600080fd5b506103db61060f36600461444f565b611923565b34801561062057600080fd5b506103db61062f3660046143e2565b6119a9565b34801561064057600080fd5b5061065461064f3660046143b4565b611a17565b6040516103b2939291906144a7565b34801561066f57600080fd5b5061048061067e3660046143b4565b60186020526000908152604090205481565b34801561069c57600080fd5b506103db611cbb565b3480156106b157600080fd5b506103db6106c036600461451c565b611d9d565b3480156106d157600080fd5b506106e56106e036600461458e565b611e66565b6040516103b291906145f1565b3480156106fe57600080fd5b50600c546103a69060ff1681565b34801561071857600080fd5b5061043f6107273660046143b4565b611f32565b34801561073857600080fd5b506103db61074736600461444f565b611f3d565b34801561075857600080fd5b5061048061076736600461444f565b611f67565b34801561077857600080fd5b506103db611fb6565b34801561078d57600080fd5b5061048061079c36600461432f565b611fca565b3480156107ad57600080fd5b506103db6107bc36600461444f565b611ffb565b3480156107cd57600080fd5b506107e16107dc3660046143b4565b612094565b6040516103b292919061466e565b3480156107fb57600080fd5b506103db61080a3660046146aa565b61228c565b34801561081b57600080fd5b506103db61082a3660046146e3565b61231b565b34801561083b57600080fd5b5061084f61084a36600461444f565b612876565b6040516103b2919061470a565b34801561086857600080fd5b50600a546103a690610100900460ff1681565b34801561088757600080fd5b506000546001600160a01b031661043f565b3480156108a557600080fd5b506103db6108b436600461444f565b612977565b3480156108c557600080fd5b506104126129fd565b3480156108da57600080fd5b506103db6108e936600461471d565b612a0c565b3480156108fa57600080fd5b5061084f610909366004614742565b612a90565b34801561091a57600080fd5b506103db6109293660046146aa565b612c0a565b34801561093a57600080fd5b50610480612c76565b34801561094f57600080fd5b5061096361095e36600461432f565b612c86565b604080516001600160a01b0390941684526020840192909252908201526060016103b2565b34801561099457600080fd5b506103db6109a3366004614777565b612cd2565b6103db6109b63660046147b9565b61325c565b3480156109c757600080fd5b506109db6109d63660046143b4565b6133bb565b6040516103b29190614899565b3480156109f457600080fd5b50610412610a033660046143b4565b613433565b348015610a1457600080fd5b506103db610a2336600461432f565b6134b6565b348015610a3457600080fd5b50610a48610a4336600461432f565b613525565b604080519283526020830191909152016103b2565b348015610a6957600080fd5b506103db610a783660046143b4565b613561565b348015610a8957600080fd5b506103db610a983660046148de565b6137fb565b348015610aa957600080fd5b506103db610ab83660046148de565b613879565b348015610ac957600080fd5b506104126138f0565b348015610ade57600080fd5b506103a6610aed3660046148fb565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610b2757600080fd5b506103db610b3636600461444f565b613910565b348015610b4757600080fd5b5061048060145481565b60006301ffc9a760e01b6001600160e01b031983161480610b8257506380ac58cd60e01b6001600160e01b03198316145b80610b9d5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600260015403610bfa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155323314610c4e5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b600080546001600160a01b0316331480610c725750600e546001600160a01b031633145b90506000610c7f84611f32565b9050336001600160a01b0382161480610c955750815b610ce15760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e20756e6571756970000000000000000000006044820152606401610bf1565b60008381526017602052604090205460ff16610d525760405162461bcd60e51b815260206004820152602a60248201527f556e657175697070696e67206e6f7420616c6c6f77656420666f72207468697360448201526908189bd91e481c185c9d60b21b6064820152608401610bf1565b6000848152601660205260408120905b8154811015610f385784828281548110610d7e57610d7e614929565b90600052602060002090600302016002015403610f30576000828281548110610da957610da9614929565b600091825260209091206003909102015483546001600160a01b03909116915081906340c10f19908690869086908110610de557610de5614929565b60009182526020909120600160039092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610e3f57600080fd5b505af1158015610e53573d6000803e3d6000fd5b50508454859250600019810191508110610e6f57610e6f614929565b9060005260206000209060030201838381548110610e8f57610e8f614929565b60009182526020909120825460039092020180546001600160a01b0319166001600160a01b03909216919091178155600180830154908201556002918201549101558254839080610ee257610ee261493f565b6000828152602080822060036000199094019384020180546001600160a01b03191681556001810183905560020182905591909255888252601890526040902042905550610f3d9350505050565b600101610d62565b505050505b505060018055565b6000546001600160a01b0316331480610f685750600e546001600160a01b031633145b610fa95760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b60009182526010602052604090912055565b606060048054610fca90614955565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff690614955565b80156110435780601f1061101857610100808354040283529160200191611043565b820191906000526020600020905b81548152906001019060200180831161102657829003601f168201915b5050505050905090565b600061105882613986565b611075576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061109c82611f32565b9050336001600160a01b038216146110d5576110b88133610aed565b6110d5576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b826daaeb6d7670e522a718067333cd4e3b1561127c57336001600160a01b03821603611167576111628484846139ae565b611287565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156111b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111da919061498f565b801561125d5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125d919061498f565b61127c57604051633b79c77360e21b8152336004820152602401610bf1565b6112878484846139ae565b50505050565b6000546001600160a01b03163314806112b05750600e546001600160a01b031633145b6112f15760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461133e576040519150601f19603f3d011682016040523d82523d6000602084013e611343565b606091505b50509050806113945760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610bf1565b5050565b6002600154036113ea5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b600260015532331461143e5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b61144782611f32565b6001600160a01b0316336001600160a01b03161461149e5760405162461bcd60e51b815260206004820152601460248201527304f6e6c79206f776e65722063616e2065717569760641b6044820152606401610bf1565b600082815260106020526040902054156114fa5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20616c726561647920686173206120444e410000000000000000006044820152606401610bf1565b600f54604051627eeac760e11b8152336004820152602481018390526001600160a01b0390911690600090829062fdd58e90604401602060405180830381865afa15801561154c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157091906149ac565b116115b15760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682073686172647360781b6044820152606401610bf1565b60405163b444445960e01b8152600481018390526001600160a01b0382169063b444445990602401602060405180830381865afa1580156115f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161a91906149ac565b156116675760405162461bcd60e51b815260206004820152600f60248201527f4e6f74206120444e4120736861726400000000000000000000000000000000006044820152606401610bf1565b604051637cfcd31360e01b8152600481018390526000906001600160a01b03831690637cfcd31390602401602060405180830381865afa1580156116af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d391906149ac565b604051637a94c56560e11b815233600482015260248101859052600160448201529091506001600160a01b0383169063f5298aca90606401600060405180830381600087803b15801561172557600080fd5b505af1158015611739573d6000803e3d6000fd5b5050506000948552506010602052604090932092909255505060018055565b600061176382613986565b6117a65760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610bf1565b5060009081526010602052604090205490565b826daaeb6d7670e522a718067333cd4e3b156118ff57336001600160a01b038216036117ea57611162848484613b5e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185d919061498f565b80156118e05750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156118bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e0919061498f565b6118ff57604051633b79c77360e21b8152336004820152602401610bf1565b611287848484613b5e565b600d546001600160a01b03163314156113948282613b79565b6000546001600160a01b03163314806119465750600e546001600160a01b031633145b6119875760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314806119cc5750600e546001600160a01b031633145b611a0d5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b6113948282613cd2565b6060806060611a2584613986565b611a685760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610bf1565b600084815260166020908152604080832080548251818502810185019093528083529192909190849084015b82821015611ae9576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018082015484860152600290910154918301919091529083529092019101611a94565b5050505090506000815167ffffffffffffffff811115611b0b57611b0b6147a3565b604051908082528060200260200182016040528015611b34578160200160208202803683370190505b5090506000825167ffffffffffffffff811115611b5357611b536147a3565b604051908082528060200260200182016040528015611b7c578160200160208202803683370190505b5090506000835167ffffffffffffffff811115611b9b57611b9b6147a3565b604051908082528060200260200182016040528015611bc4578160200160208202803683370190505b50905060005b8451811015611cac57848181518110611be557611be5614929565b602002602001015160000151848281518110611c0357611c03614929565b60200260200101906001600160a01b031690816001600160a01b031681525050848181518110611c3557611c35614929565b602002602001015160200151838281518110611c5357611c53614929565b602002602001018181525050848181518110611c7157611c71614929565b602002602001015160400151828281518110611c8f57611c8f614929565b602090810291909101015280611ca4816149db565b915050611bca565b50919790965090945092505050565b6000546001600160a01b0316331480611cde5750600e546001600160a01b031633145b611d1f5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600c805460ff1916600117905560005b600254811015611d9a57611d4281613986565b15611d8857807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207611d7283613433565b604051611d7f91906143a1565b60405180910390a25b80611d92816149db565b915050611d2f565b50565b6000546001600160a01b0316331480611dc05750600e546001600160a01b031633145b611e015760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600c5460ff1615611e545760405162461bcd60e51b815260206004820152601260248201527f4261736520555249206973206c6f636b656400000000000000000000000000006044820152606401610bf1565b600b611e61828483614a3a565b505050565b60608160008167ffffffffffffffff811115611e8457611e846147a3565b604051908082528060200260200182016040528015611ed657816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611ea25790505b50905060005b828114611f2957611f04868683818110611ef857611ef8614929565b905060200201356133bb565b828281518110611f1657611f16614929565b6020908102919091010152600101611edc565b50949350505050565b6000610b9d82613cec565b611f45613d53565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611f90576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b611fbe613d53565b611fc86000613dad565b565b60126020528160005260406000208181548110611fe657600080fd5b90600052602060002001600091509150505481565b6000546001600160a01b031633148061201e5750600e546001600160a01b031633145b61205f5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600c80546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b6060806120a083613986565b6120e35760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610bf1565b600083815260116020908152604080832080548251818502810185019093528083529192909190849084015b828210156121555783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061210f565b5050505090506000815167ffffffffffffffff811115612177576121776147a3565b6040519080825280602002602001820160405280156121a0578160200160208202803683370190505b5090506000825167ffffffffffffffff8111156121bf576121bf6147a3565b6040519080825280602002602001820160405280156121e8578160200160208202803683370190505b50905060005b83518110156122805783818151811061220957612209614929565b60200260200101516000015183828151811061222757612227614929565b60200260200101818152505083818151811061224557612245614929565b60200260200101516020015182828151811061226357612263614929565b602090810291909101015280612278816149db565b9150506121ee565b50909590945092505050565b6000546001600160a01b03163314806122af5750600e546001600160a01b031633145b6122f05760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b60026001540361236d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b60026001553233146123c15760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b600080546001600160a01b03163314806123e55750600e546001600160a01b031633145b905060006123f285611f32565b9050336001600160a01b03821614806124085750815b61244b5760405162461bcd60e51b815260206004820152601460248201527304f6e6c79206f776e65722063616e2065717569760641b6044820152606401610bf1565b6001600160a01b03841660009081526015602052604090205460ff166124b35760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420616e2061726d6f7220706965636520636f6e747261637400000000006044820152606401610bf1565b6040516331a9108f60e11b815260048101849052849033906001600160a01b03831690636352211e90602401602060405180830381865afa1580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125209190614afa565b6001600160a01b031614806125325750825b61257e5760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f6e2774206f776e207468652061726d6f722070696563650000006044820152606401610bf1565b604051635199a6a160e11b8152600481018590526000906001600160a01b0383169063a3334d4290602401602060405180830381865afa1580156125c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ea91906149ac565b604051630852cd8d60e31b8152600481018790529091506001600160a01b038316906342966c6890602401600060405180830381600087803b15801561262f57600080fd5b505af1158015612643573d6000803e3d6000fd5b505050600088815260166020526040812091505b8154811015612803578282828154811061267357612673614929565b906000526020600020906003020160020154036127f15760008381526017602052604090205460ff16156127765760008282815481106126b5576126b5614929565b600091825260209091206003909102015483546001600160a01b03909116915081906340c10f199088908690869081106126f1576126f1614929565b60009182526020909120600160039092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561274b57600080fd5b505af115801561275f573d6000803e3d6000fd5b50505060008b815260186020526040902042905550505b8782828154811061278957612789614929565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550868282815481106127d1576127d1614929565b90600052602060002090600302016001018190555050505050505061286d565b806127fb816149db565b915050612657565b50604080516060810182526001600160a01b03898116825260208083018a81529383019586528454600180820187556000968752919095209251600390950290920180546001600160a01b0319169490911693909317835590519082015590516002909101555050505b50506001805550565b6060600080600061288685611f67565b905060008167ffffffffffffffff8111156128a3576128a36147a3565b6040519080825280602002602001820160405280156128cc578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b83861461296b5761290481613dfd565b915081604001516129635781516001600160a01b03161561292457815194505b876001600160a01b0316856001600160a01b031603612963578083878060010198508151811061295657612956614929565b6020026020010181815250505b6001016128f4565b50909695505050505050565b6000546001600160a01b031633148061299a5750600e546001600160a01b031633145b6129db5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b606060058054610fca90614955565b6000546001600160a01b0316331480612a2f5750600e546001600160a01b031633145b612a705760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600091825260176020526040909120805460ff1916911515919091179055565b6060818310612ab257604051631960ccad60e11b815260040160405180910390fd5b600080612abe60025490565b905080841115612acc578093505b6000612ad787611f67565b905084861015612af65785850381811015612af0578091505b50612afa565b5060005b60008167ffffffffffffffff811115612b1557612b156147a3565b604051908082528060200260200182016040528015612b3e578160200160208202803683370190505b50905081600003612b54579350612c0392505050565b6000612b5f886133bb565b905060008160400151612b70575080515b885b888114158015612b825750848714155b15612bf757612b9081613dfd565b92508260400151612bef5782516001600160a01b031615612bb057825191505b8a6001600160a01b0316826001600160a01b031603612bef5780848880600101995081518110612be257612be2614929565b6020026020010181815250505b600101612b72565b50505092835250909150505b9392505050565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000612c8160025490565b905090565b60166020528160005260406000208181548110612ca257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116935090915083565b600260015403612d245760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b6002600155323314612d785760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b612d8183611f32565b6001600160a01b0316336001600160a01b031614612dd85760405162461bcd60e51b815260206004820152601460248201527304f6e6c79206f776e65722063616e2065717569760641b6044820152606401610bf1565b600081118015612dea57506013548111155b612e365760405162461bcd60e51b815260206004820152601360248201527f496e76616c696420657175697020636f756e74000000000000000000000000006044820152606401610bf1565b600f54604051627eeac760e11b8152336004820152602481018490526001600160a01b03909116908290829062fdd58e90604401602060405180830381865afa158015612e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eab91906149ac565b1015612eed5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682073686172647360781b6044820152606401610bf1565b60405163b444445960e01b8152600481018490526001600160a01b0382169063b444445990602401602060405180830381865afa158015612f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5691906149ac565b600114612fa55760405162461bcd60e51b815260206004820152601560248201527f4e6f74206120426f756e646c65737320736861726400000000000000000000006044820152606401610bf1565b60135460145460008681526012602052604081206201518090920291905b81548110156130025782828281548110612fdf57612fdf614929565b906000526020600020015442031015612ffa57600019909301925b600101612fc3565b5060018310156130635760405162461bcd60e51b815260206004820152602660248201527f43616e2774206571756970206d6f72652073686172647320696e2074686973206044820152651c195c9a5bd960d21b6064820152608401610bf1565b8483101561306f578294505b604051637a94c56560e11b815233600482015260248101879052604481018690526001600160a01b0385169063f5298aca90606401600060405180830381600087803b1580156130be57600080fd5b505af11580156130d2573d6000803e3d6000fd5b50505060008881526011602052604081209150805b8254811015613158578883828154811061310357613103614929565b90600052602060002090600202016000015403613150578783828154811061312d5761312d614929565b600091825260209091206001600290920201810180549092019091559150613158565b6001016130e7565b50806131975760408051808201909152888152602080820189815284546001818101875560008781529390932093516002909102909301928355519101555b60005b8781101561324c57601354845410156131c757835460018101855560008581526020902042910155613244565b600060015b601354811015613222578582815481106131e8576131e8614929565b906000526020600020015486828154811061320557613205614929565b9060005260206000200154101561321a578091505b6001016131cc565b504285828154811061323657613236614929565b600091825260209091200155505b60010161319a565b5050600180555050505050505050565b836daaeb6d7670e522a718067333cd4e3b156133a857336001600160a01b038216036132935761328e85858585613e7c565b6133b4565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156132e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613306919061498f565b80156133895750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015613365573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613389919061498f565b6133a857604051633b79c77360e21b8152336004820152602401610bf1565b6133b485858585613e7c565b5050505050565b604080516080808201835260008083526020808401829052838501829052606080850183905285519384018652828452908301829052938201819052928101839052909150600254831061340f5792915050565b61341883613dfd565b905080604001511561342a5792915050565b612c0383613ec0565b606061343e82613986565b61345b57604051630a14c4b560e41b815260040160405180910390fd5b6000613465613f38565b905080516000036134855760405180602001604052806000815250612c03565b8061348f84613f47565b6040516020016134a0929190614b17565b6040516020818303038152906040529392505050565b6000546001600160a01b03163314806134d95750600e546001600160a01b031633145b61351a5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b601391909155601455565b6011602052816000526040600020818154811061354157600080fd5b600091825260209091206002909102018054600190910154909250905082565b6002600154036135b35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b60026001553233146136075760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b600a5460ff161580156136225750600a54610100900460ff16155b61366e5760405162461bcd60e51b815260206004820152601360248201527f4d6967726174696f6e20697320706175736564000000000000000000000000006044820152606401610bf1565b600081116136be5760405162461bcd60e51b815260206004820152601c60248201527f436f756e74206d7573742062652067726561746572207468616e2030000000006044820152606401610bf1565b600c54604051627eeac760e11b81523360048201526000602482018190526101009092046001600160a01b03169190829062fdd58e90604401602060405180830381865afa158015613714573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373891906149ac565b90508281101561378a5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206861766520656e6f7567682052656c696373000000006044820152606401610bf1565b604051637a94c56560e11b815233600482015260006024820152604481018490526001600160a01b0383169063f5298aca90606401600060405180830381600087803b1580156137d957600080fd5b505af11580156137ed573d6000803e3d6000fd5b5050505061286d3384613cd2565b6000546001600160a01b031633148061381e5750600e546001600160a01b031633145b61385f5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600a80549115156101000261ff0019909216919091179055565b6000546001600160a01b031633148061389c5750600e546001600160a01b031633145b6138dd5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600a805460ff1916911515919091179055565b6060604051806060016040528060388152602001614bbc60389139905090565b613918613d53565b6001600160a01b03811661397d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf1565b611d9a81613dad565b600060025482108015610b9d575050600090815260066020526040902054600160e01b161590565b60006139b982613cec565b9050836001600160a01b0316816001600160a01b0316146139ec5760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054613a188187335b6001600160a01b039081169116811491141790565b613a4357613a268633610aed565b613a4357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516613a6a57604051633a954ecd60e21b815260040160405180910390fd5b613a778686866001613f8b565b8015613a8257600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003613b1457600184016000818152600660205260408120549003613b12576002548114613b125760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b611e618383836040518060200160405280600081525061325c565b6000613b8483613cec565b905080600080613ba286600090815260086020526040902080549091565b915091508415613be257613bb7818433613a03565b613be257613bc58333610aed565b613be257604051632ce44b5f60e11b815260040160405180910390fd5b613bf0836000886001613f8b565b8015613bfb57600082555b6001600160a01b038316600081815260076020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260066020526040812091909155600160e11b85169003613c8957600186016000818152600660205260408120549003613c87576002548114613c875760008181526006602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060038054600101905550505050565b6113948282604051806020016040528060008152506140a0565b600081600254811015613d3a5760008181526006602052604081205490600160e01b82169003613d38575b80600003612c03575060001901600081815260066020526040902054613d17565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314611fc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260066020526040902054610b9d90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b613e87848484611131565b6001600160a01b0383163b1561128757613ea384848484614106565b611287576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610b9d613ef083613cec565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6060600b8054610fca90614955565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480613f615750819003601f19909101908152919050565b600a54610100900460ff1615613fe35760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732070617573656400000000000000000000000000006044820152606401610bf1565b60005b818110156133b4576000613ffa8285614b46565b600081815260186020526040902054909150610e109061401a9042614b59565b1161408d5760405162461bcd60e51b815260206004820152603560248201527f43616e206f6e6c79207472616e73666572206166746572203168206f6620756e60448201527f657175697070696e672061726d6f7220706965636500000000000000000000006064820152608401610bf1565b5080614098816149db565b915050613fe6565b6140aa83836141f1565b6001600160a01b0383163b15611e61576002548281035b6140d46000868380600101945086614106565b6140f1576040516368d2bf6b60e11b815260040160405180910390fd5b8181106140c15781600254146133b457600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061413b903390899088908890600401614b6c565b6020604051808303816000875af1925050508015614176575060408051601f3d908101601f1916820190925261417391810190614b9e565b60015b6141d4573d8080156141a4576040519150601f19603f3d011682016040523d82523d6000602084013e6141a9565b606091505b5080516000036141cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60025460008290036142165760405163b562e8dd60e01b815260040160405180910390fd5b6142236000848385613f8b565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146142d257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161429a565b50816000036142f357604051622e076360e81b815260040160405180910390fd5b60025550505050565b6001600160e01b031981168114611d9a57600080fd5b60006020828403121561432457600080fd5b8135612c03816142fc565b6000806040838503121561434257600080fd5b50508035926020909101359150565b60005b8381101561436c578181015183820152602001614354565b50506000910152565b6000815180845261438d816020860160208601614351565b601f01601f19169290920160200192915050565b602081526000612c036020830184614375565b6000602082840312156143c657600080fd5b5035919050565b6001600160a01b0381168114611d9a57600080fd5b600080604083850312156143f557600080fd5b8235614400816143cd565b946020939093013593505050565b60008060006060848603121561442357600080fd5b833561442e816143cd565b9250602084013561443e816143cd565b929592945050506040919091013590565b60006020828403121561446157600080fd5b8135612c03816143cd565b600081518084526020808501945080840160005b8381101561449c57815187529582019590820190600101614480565b509495945050505050565b606080825284519082018190526000906020906080840190828801845b828110156144e95781516001600160a01b0316845292840192908401906001016144c4565b505050838103828501526144fd818761446c565b9150508281036040840152614512818561446c565b9695505050505050565b6000806020838503121561452f57600080fd5b823567ffffffffffffffff8082111561454757600080fd5b818501915085601f83011261455b57600080fd5b81358181111561456a57600080fd5b86602082850101111561457c57600080fd5b60209290920196919550909350505050565b600080602083850312156145a157600080fd5b823567ffffffffffffffff808211156145b957600080fd5b818501915085601f8301126145cd57600080fd5b8135818111156145dc57600080fd5b8660208260051b850101111561457c57600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561296b5761465b8385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b928401926080929092019160010161460d565b604081526000614681604083018561446c565b8281036020840152614693818561446c565b95945050505050565b8015158114611d9a57600080fd5b600080604083850312156146bd57600080fd5b82356146c8816143cd565b915060208301356146d88161469c565b809150509250929050565b6000806000606084860312156146f857600080fd5b83359250602084013561443e816143cd565b602081526000612c03602083018461446c565b6000806040838503121561473057600080fd5b8235915060208301356146d88161469c565b60008060006060848603121561475757600080fd5b8335614762816143cd565b95602085013595506040909401359392505050565b60008060006060848603121561478c57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156147cf57600080fd5b84356147da816143cd565b935060208501356147ea816143cd565b925060408501359150606085013567ffffffffffffffff8082111561480e57600080fd5b818701915087601f83011261482257600080fd5b813581811115614834576148346147a3565b604051601f8201601f19908116603f0116810190838211818310171561485c5761485c6147a3565b816040528281528a602084870101111561487557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610b9d565b6000602082840312156148f057600080fd5b8135612c038161469c565b6000806040838503121561490e57600080fd5b8235614919816143cd565b915060208301356146d8816143cd565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600181811c9082168061496957607f821691505b60208210810361498957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156149a157600080fd5b8151612c038161469c565b6000602082840312156149be57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016149ed576149ed6149c5565b5060010190565b601f821115611e6157600081815260208120601f850160051c81016020861015614a1b5750805b601f850160051c820191505b81811015613b5657828155600101614a27565b67ffffffffffffffff831115614a5257614a526147a3565b614a6683614a608354614955565b836149f4565b6000601f841160018114614a9a5760008515614a825750838201355b600019600387901b1c1916600186901b1783556133b4565b600083815260209020601f19861690835b82811015614acb5786850135825560209485019460019092019101614aab565b5086821015614ae85760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060208284031215614b0c57600080fd5b8151612c03816143cd565b60008351614b29818460208801614351565b835190830190614b3d818360208801614351565b01949350505050565b80820180821115610b9d57610b9d6149c5565b81810381811115610b9d57610b9d6149c5565b60006001600160a01b038087168352808616602084015250836040830152608060608301526145126080830184614375565b600060208284031215614bb057600080fd5b8151612c03816142fc56fe68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f677561726469616e2f6d61726b6574706c6163652d6d65746164617461a2646970667358221220043661f3706ff487eed605061088297a4542fee58c6a1dd764db79e880ff199464736f6c63430008110033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000600000000000000000000000003be3a8613dc18554a73773a5bfb8e9819d360dc0000000000000000000000000bcd114d4256f8d9ec4fd85181583f183b34e9c89000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f677561726469616e2f6d657461646174612f00000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103815760003560e01c8063715018a6116101d1578063a2309ff811610102578063d8f2a29b116100a0578063e8a3d4851161006f578063e8a3d48514610abd578063e985e9c514610ad2578063f2fde38b14610b1b578063ffc68cb614610b3b57600080fd5b8063d8f2a29b14610a28578063e260774714610a5d578063e272b89214610a7d578063e599e00d14610a9d57600080fd5b8063b88d4fde116100dc578063b88d4fde146109a8578063c23dc68f146109bb578063c87b56dd146109e8578063ce40022214610a0857600080fd5b8063a2309ff81461092e578063af1d3ce014610943578063b4b57e6e1461098857600080fd5b80638a67456a1161016f57806395d89b411161014957806395d89b41146108b9578063971f2e16146108ce57806399a2557a146108ee578063a22cb4651461090e57600080fd5b80638a67456a1461085c5780638da5cb5b1461087b5780639583b9c61461089957600080fd5b806372f66a43116101ab57806372f66a43146107c15780637dafb1c0146107ef578063818160091461080f5780638462151c1461082f57600080fd5b8063715018a61461076c57806371f64d871461078157806372098200146107a157600080fd5b80633e7528b9116102b65780634b4aed74116102545780635d148e5c116102235780635d148e5c146106f25780636352211e1461070c578063704b6c021461072c57806370a082311461074c57600080fd5b80634b4aed741461066357806353df5c7c1461069057806355f804b3146106a55780635bbb2177146106c557600080fd5b806342966c681161029057806342966c68146105d457806346b800ff146105f4578063484b973c1461061457806348f981f21461063457600080fd5b80633e7528b914610581578063422627c3146105a157806342842e0e146105c157600080fd5b806318160ddd116103235780632f971029116102fd5780632f971029146104ea578063302861081461050a57806335cd22d61461053a57806338df9bde1461055457600080fd5b806318160ddd1461048e57806323b872dd146104a757806327739bc1146104ba57600080fd5b806306fdde031161035f57806306fdde03146103fd578063081812fc1461041f578063095ea7b3146104575780630e9202701461046a57600080fd5b806301ffc9a71461038657806305e491e2146103bb578063067b61f2146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004614312565b610b51565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d636600461432f565b610ba3565b005b3480156103e957600080fd5b506103db6103f836600461432f565b610f45565b34801561040957600080fd5b50610412610fbb565b6040516103b291906143a1565b34801561042b57600080fd5b5061043f61043a3660046143b4565b61104d565b6040516001600160a01b0390911681526020016103b2565b6103db6104653660046143e2565b611091565b34801561047657600080fd5b5061048060135481565b6040519081526020016103b2565b34801561049a57600080fd5b5060035460025403610480565b6103db6104b536600461440e565b611131565b3480156104c657600080fd5b506103a66104d536600461444f565b60156020526000908152604090205460ff1681565b3480156104f657600080fd5b506103db61050536600461444f565b61128d565b34801561051657600080fd5b506103a66105253660046143b4565b60176020526000908152604090205460ff1681565b34801561054657600080fd5b50600a546103a69060ff1681565b34801561056057600080fd5b5061048061056f3660046143b4565b60106020526000908152604090205481565b34801561058d57600080fd5b506103db61059c36600461432f565b611398565b3480156105ad57600080fd5b506104806105bc3660046143b4565b611758565b6103db6105cf36600461440e565b6117b9565b3480156105e057600080fd5b506103db6105ef3660046143b4565b61190a565b34801561060057600080fd5b506103db61060f36600461444f565b611923565b34801561062057600080fd5b506103db61062f3660046143e2565b6119a9565b34801561064057600080fd5b5061065461064f3660046143b4565b611a17565b6040516103b2939291906144a7565b34801561066f57600080fd5b5061048061067e3660046143b4565b60186020526000908152604090205481565b34801561069c57600080fd5b506103db611cbb565b3480156106b157600080fd5b506103db6106c036600461451c565b611d9d565b3480156106d157600080fd5b506106e56106e036600461458e565b611e66565b6040516103b291906145f1565b3480156106fe57600080fd5b50600c546103a69060ff1681565b34801561071857600080fd5b5061043f6107273660046143b4565b611f32565b34801561073857600080fd5b506103db61074736600461444f565b611f3d565b34801561075857600080fd5b5061048061076736600461444f565b611f67565b34801561077857600080fd5b506103db611fb6565b34801561078d57600080fd5b5061048061079c36600461432f565b611fca565b3480156107ad57600080fd5b506103db6107bc36600461444f565b611ffb565b3480156107cd57600080fd5b506107e16107dc3660046143b4565b612094565b6040516103b292919061466e565b3480156107fb57600080fd5b506103db61080a3660046146aa565b61228c565b34801561081b57600080fd5b506103db61082a3660046146e3565b61231b565b34801561083b57600080fd5b5061084f61084a36600461444f565b612876565b6040516103b2919061470a565b34801561086857600080fd5b50600a546103a690610100900460ff1681565b34801561088757600080fd5b506000546001600160a01b031661043f565b3480156108a557600080fd5b506103db6108b436600461444f565b612977565b3480156108c557600080fd5b506104126129fd565b3480156108da57600080fd5b506103db6108e936600461471d565b612a0c565b3480156108fa57600080fd5b5061084f610909366004614742565b612a90565b34801561091a57600080fd5b506103db6109293660046146aa565b612c0a565b34801561093a57600080fd5b50610480612c76565b34801561094f57600080fd5b5061096361095e36600461432f565b612c86565b604080516001600160a01b0390941684526020840192909252908201526060016103b2565b34801561099457600080fd5b506103db6109a3366004614777565b612cd2565b6103db6109b63660046147b9565b61325c565b3480156109c757600080fd5b506109db6109d63660046143b4565b6133bb565b6040516103b29190614899565b3480156109f457600080fd5b50610412610a033660046143b4565b613433565b348015610a1457600080fd5b506103db610a2336600461432f565b6134b6565b348015610a3457600080fd5b50610a48610a4336600461432f565b613525565b604080519283526020830191909152016103b2565b348015610a6957600080fd5b506103db610a783660046143b4565b613561565b348015610a8957600080fd5b506103db610a983660046148de565b6137fb565b348015610aa957600080fd5b506103db610ab83660046148de565b613879565b348015610ac957600080fd5b506104126138f0565b348015610ade57600080fd5b506103a6610aed3660046148fb565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610b2757600080fd5b506103db610b3636600461444f565b613910565b348015610b4757600080fd5b5061048060145481565b60006301ffc9a760e01b6001600160e01b031983161480610b8257506380ac58cd60e01b6001600160e01b03198316145b80610b9d5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600260015403610bfa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155323314610c4e5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b600080546001600160a01b0316331480610c725750600e546001600160a01b031633145b90506000610c7f84611f32565b9050336001600160a01b0382161480610c955750815b610ce15760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e20756e6571756970000000000000000000006044820152606401610bf1565b60008381526017602052604090205460ff16610d525760405162461bcd60e51b815260206004820152602a60248201527f556e657175697070696e67206e6f7420616c6c6f77656420666f72207468697360448201526908189bd91e481c185c9d60b21b6064820152608401610bf1565b6000848152601660205260408120905b8154811015610f385784828281548110610d7e57610d7e614929565b90600052602060002090600302016002015403610f30576000828281548110610da957610da9614929565b600091825260209091206003909102015483546001600160a01b03909116915081906340c10f19908690869086908110610de557610de5614929565b60009182526020909120600160039092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610e3f57600080fd5b505af1158015610e53573d6000803e3d6000fd5b50508454859250600019810191508110610e6f57610e6f614929565b9060005260206000209060030201838381548110610e8f57610e8f614929565b60009182526020909120825460039092020180546001600160a01b0319166001600160a01b03909216919091178155600180830154908201556002918201549101558254839080610ee257610ee261493f565b6000828152602080822060036000199094019384020180546001600160a01b03191681556001810183905560020182905591909255888252601890526040902042905550610f3d9350505050565b600101610d62565b505050505b505060018055565b6000546001600160a01b0316331480610f685750600e546001600160a01b031633145b610fa95760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b60009182526010602052604090912055565b606060048054610fca90614955565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff690614955565b80156110435780601f1061101857610100808354040283529160200191611043565b820191906000526020600020905b81548152906001019060200180831161102657829003601f168201915b5050505050905090565b600061105882613986565b611075576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061109c82611f32565b9050336001600160a01b038216146110d5576110b88133610aed565b6110d5576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b826daaeb6d7670e522a718067333cd4e3b1561127c57336001600160a01b03821603611167576111628484846139ae565b611287565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156111b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111da919061498f565b801561125d5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125d919061498f565b61127c57604051633b79c77360e21b8152336004820152602401610bf1565b6112878484846139ae565b50505050565b6000546001600160a01b03163314806112b05750600e546001600160a01b031633145b6112f15760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461133e576040519150601f19603f3d011682016040523d82523d6000602084013e611343565b606091505b50509050806113945760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610bf1565b5050565b6002600154036113ea5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b600260015532331461143e5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b61144782611f32565b6001600160a01b0316336001600160a01b03161461149e5760405162461bcd60e51b815260206004820152601460248201527304f6e6c79206f776e65722063616e2065717569760641b6044820152606401610bf1565b600082815260106020526040902054156114fa5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20616c726561647920686173206120444e410000000000000000006044820152606401610bf1565b600f54604051627eeac760e11b8152336004820152602481018390526001600160a01b0390911690600090829062fdd58e90604401602060405180830381865afa15801561154c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157091906149ac565b116115b15760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682073686172647360781b6044820152606401610bf1565b60405163b444445960e01b8152600481018390526001600160a01b0382169063b444445990602401602060405180830381865afa1580156115f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161a91906149ac565b156116675760405162461bcd60e51b815260206004820152600f60248201527f4e6f74206120444e4120736861726400000000000000000000000000000000006044820152606401610bf1565b604051637cfcd31360e01b8152600481018390526000906001600160a01b03831690637cfcd31390602401602060405180830381865afa1580156116af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d391906149ac565b604051637a94c56560e11b815233600482015260248101859052600160448201529091506001600160a01b0383169063f5298aca90606401600060405180830381600087803b15801561172557600080fd5b505af1158015611739573d6000803e3d6000fd5b5050506000948552506010602052604090932092909255505060018055565b600061176382613986565b6117a65760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610bf1565b5060009081526010602052604090205490565b826daaeb6d7670e522a718067333cd4e3b156118ff57336001600160a01b038216036117ea57611162848484613b5e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185d919061498f565b80156118e05750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156118bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e0919061498f565b6118ff57604051633b79c77360e21b8152336004820152602401610bf1565b611287848484613b5e565b600d546001600160a01b03163314156113948282613b79565b6000546001600160a01b03163314806119465750600e546001600160a01b031633145b6119875760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314806119cc5750600e546001600160a01b031633145b611a0d5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b6113948282613cd2565b6060806060611a2584613986565b611a685760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610bf1565b600084815260166020908152604080832080548251818502810185019093528083529192909190849084015b82821015611ae9576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018082015484860152600290910154918301919091529083529092019101611a94565b5050505090506000815167ffffffffffffffff811115611b0b57611b0b6147a3565b604051908082528060200260200182016040528015611b34578160200160208202803683370190505b5090506000825167ffffffffffffffff811115611b5357611b536147a3565b604051908082528060200260200182016040528015611b7c578160200160208202803683370190505b5090506000835167ffffffffffffffff811115611b9b57611b9b6147a3565b604051908082528060200260200182016040528015611bc4578160200160208202803683370190505b50905060005b8451811015611cac57848181518110611be557611be5614929565b602002602001015160000151848281518110611c0357611c03614929565b60200260200101906001600160a01b031690816001600160a01b031681525050848181518110611c3557611c35614929565b602002602001015160200151838281518110611c5357611c53614929565b602002602001018181525050848181518110611c7157611c71614929565b602002602001015160400151828281518110611c8f57611c8f614929565b602090810291909101015280611ca4816149db565b915050611bca565b50919790965090945092505050565b6000546001600160a01b0316331480611cde5750600e546001600160a01b031633145b611d1f5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600c805460ff1916600117905560005b600254811015611d9a57611d4281613986565b15611d8857807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207611d7283613433565b604051611d7f91906143a1565b60405180910390a25b80611d92816149db565b915050611d2f565b50565b6000546001600160a01b0316331480611dc05750600e546001600160a01b031633145b611e015760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600c5460ff1615611e545760405162461bcd60e51b815260206004820152601260248201527f4261736520555249206973206c6f636b656400000000000000000000000000006044820152606401610bf1565b600b611e61828483614a3a565b505050565b60608160008167ffffffffffffffff811115611e8457611e846147a3565b604051908082528060200260200182016040528015611ed657816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611ea25790505b50905060005b828114611f2957611f04868683818110611ef857611ef8614929565b905060200201356133bb565b828281518110611f1657611f16614929565b6020908102919091010152600101611edc565b50949350505050565b6000610b9d82613cec565b611f45613d53565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611f90576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b611fbe613d53565b611fc86000613dad565b565b60126020528160005260406000208181548110611fe657600080fd5b90600052602060002001600091509150505481565b6000546001600160a01b031633148061201e5750600e546001600160a01b031633145b61205f5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600c80546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b6060806120a083613986565b6120e35760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610bf1565b600083815260116020908152604080832080548251818502810185019093528083529192909190849084015b828210156121555783829060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508152602001906001019061210f565b5050505090506000815167ffffffffffffffff811115612177576121776147a3565b6040519080825280602002602001820160405280156121a0578160200160208202803683370190505b5090506000825167ffffffffffffffff8111156121bf576121bf6147a3565b6040519080825280602002602001820160405280156121e8578160200160208202803683370190505b50905060005b83518110156122805783818151811061220957612209614929565b60200260200101516000015183828151811061222757612227614929565b60200260200101818152505083818151811061224557612245614929565b60200260200101516020015182828151811061226357612263614929565b602090810291909101015280612278816149db565b9150506121ee565b50909590945092505050565b6000546001600160a01b03163314806122af5750600e546001600160a01b031633145b6122f05760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b60026001540361236d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b60026001553233146123c15760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b600080546001600160a01b03163314806123e55750600e546001600160a01b031633145b905060006123f285611f32565b9050336001600160a01b03821614806124085750815b61244b5760405162461bcd60e51b815260206004820152601460248201527304f6e6c79206f776e65722063616e2065717569760641b6044820152606401610bf1565b6001600160a01b03841660009081526015602052604090205460ff166124b35760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420616e2061726d6f7220706965636520636f6e747261637400000000006044820152606401610bf1565b6040516331a9108f60e11b815260048101849052849033906001600160a01b03831690636352211e90602401602060405180830381865afa1580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125209190614afa565b6001600160a01b031614806125325750825b61257e5760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f6e2774206f776e207468652061726d6f722070696563650000006044820152606401610bf1565b604051635199a6a160e11b8152600481018590526000906001600160a01b0383169063a3334d4290602401602060405180830381865afa1580156125c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ea91906149ac565b604051630852cd8d60e31b8152600481018790529091506001600160a01b038316906342966c6890602401600060405180830381600087803b15801561262f57600080fd5b505af1158015612643573d6000803e3d6000fd5b505050600088815260166020526040812091505b8154811015612803578282828154811061267357612673614929565b906000526020600020906003020160020154036127f15760008381526017602052604090205460ff16156127765760008282815481106126b5576126b5614929565b600091825260209091206003909102015483546001600160a01b03909116915081906340c10f199088908690869081106126f1576126f1614929565b60009182526020909120600160039092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561274b57600080fd5b505af115801561275f573d6000803e3d6000fd5b50505060008b815260186020526040902042905550505b8782828154811061278957612789614929565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550868282815481106127d1576127d1614929565b90600052602060002090600302016001018190555050505050505061286d565b806127fb816149db565b915050612657565b50604080516060810182526001600160a01b03898116825260208083018a81529383019586528454600180820187556000968752919095209251600390950290920180546001600160a01b0319169490911693909317835590519082015590516002909101555050505b50506001805550565b6060600080600061288685611f67565b905060008167ffffffffffffffff8111156128a3576128a36147a3565b6040519080825280602002602001820160405280156128cc578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b83861461296b5761290481613dfd565b915081604001516129635781516001600160a01b03161561292457815194505b876001600160a01b0316856001600160a01b031603612963578083878060010198508151811061295657612956614929565b6020026020010181815250505b6001016128f4565b50909695505050505050565b6000546001600160a01b031633148061299a5750600e546001600160a01b031633145b6129db5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b606060058054610fca90614955565b6000546001600160a01b0316331480612a2f5750600e546001600160a01b031633145b612a705760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600091825260176020526040909120805460ff1916911515919091179055565b6060818310612ab257604051631960ccad60e11b815260040160405180910390fd5b600080612abe60025490565b905080841115612acc578093505b6000612ad787611f67565b905084861015612af65785850381811015612af0578091505b50612afa565b5060005b60008167ffffffffffffffff811115612b1557612b156147a3565b604051908082528060200260200182016040528015612b3e578160200160208202803683370190505b50905081600003612b54579350612c0392505050565b6000612b5f886133bb565b905060008160400151612b70575080515b885b888114158015612b825750848714155b15612bf757612b9081613dfd565b92508260400151612bef5782516001600160a01b031615612bb057825191505b8a6001600160a01b0316826001600160a01b031603612bef5780848880600101995081518110612be257612be2614929565b6020026020010181815250505b600101612b72565b50505092835250909150505b9392505050565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000612c8160025490565b905090565b60166020528160005260406000208181548110612ca257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116935090915083565b600260015403612d245760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b6002600155323314612d785760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b612d8183611f32565b6001600160a01b0316336001600160a01b031614612dd85760405162461bcd60e51b815260206004820152601460248201527304f6e6c79206f776e65722063616e2065717569760641b6044820152606401610bf1565b600081118015612dea57506013548111155b612e365760405162461bcd60e51b815260206004820152601360248201527f496e76616c696420657175697020636f756e74000000000000000000000000006044820152606401610bf1565b600f54604051627eeac760e11b8152336004820152602481018490526001600160a01b03909116908290829062fdd58e90604401602060405180830381865afa158015612e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eab91906149ac565b1015612eed5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682073686172647360781b6044820152606401610bf1565b60405163b444445960e01b8152600481018490526001600160a01b0382169063b444445990602401602060405180830381865afa158015612f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5691906149ac565b600114612fa55760405162461bcd60e51b815260206004820152601560248201527f4e6f74206120426f756e646c65737320736861726400000000000000000000006044820152606401610bf1565b60135460145460008681526012602052604081206201518090920291905b81548110156130025782828281548110612fdf57612fdf614929565b906000526020600020015442031015612ffa57600019909301925b600101612fc3565b5060018310156130635760405162461bcd60e51b815260206004820152602660248201527f43616e2774206571756970206d6f72652073686172647320696e2074686973206044820152651c195c9a5bd960d21b6064820152608401610bf1565b8483101561306f578294505b604051637a94c56560e11b815233600482015260248101879052604481018690526001600160a01b0385169063f5298aca90606401600060405180830381600087803b1580156130be57600080fd5b505af11580156130d2573d6000803e3d6000fd5b50505060008881526011602052604081209150805b8254811015613158578883828154811061310357613103614929565b90600052602060002090600202016000015403613150578783828154811061312d5761312d614929565b600091825260209091206001600290920201810180549092019091559150613158565b6001016130e7565b50806131975760408051808201909152888152602080820189815284546001818101875560008781529390932093516002909102909301928355519101555b60005b8781101561324c57601354845410156131c757835460018101855560008581526020902042910155613244565b600060015b601354811015613222578582815481106131e8576131e8614929565b906000526020600020015486828154811061320557613205614929565b9060005260206000200154101561321a578091505b6001016131cc565b504285828154811061323657613236614929565b600091825260209091200155505b60010161319a565b5050600180555050505050505050565b836daaeb6d7670e522a718067333cd4e3b156133a857336001600160a01b038216036132935761328e85858585613e7c565b6133b4565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156132e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613306919061498f565b80156133895750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015613365573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613389919061498f565b6133a857604051633b79c77360e21b8152336004820152602401610bf1565b6133b485858585613e7c565b5050505050565b604080516080808201835260008083526020808401829052838501829052606080850183905285519384018652828452908301829052938201819052928101839052909150600254831061340f5792915050565b61341883613dfd565b905080604001511561342a5792915050565b612c0383613ec0565b606061343e82613986565b61345b57604051630a14c4b560e41b815260040160405180910390fd5b6000613465613f38565b905080516000036134855760405180602001604052806000815250612c03565b8061348f84613f47565b6040516020016134a0929190614b17565b6040516020818303038152906040529392505050565b6000546001600160a01b03163314806134d95750600e546001600160a01b031633145b61351a5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b601391909155601455565b6011602052816000526040600020818154811061354157600080fd5b600091825260209091206002909102018054600190910154909250905082565b6002600154036135b35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf1565b60026001553233146136075760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610bf1565b600a5460ff161580156136225750600a54610100900460ff16155b61366e5760405162461bcd60e51b815260206004820152601360248201527f4d6967726174696f6e20697320706175736564000000000000000000000000006044820152606401610bf1565b600081116136be5760405162461bcd60e51b815260206004820152601c60248201527f436f756e74206d7573742062652067726561746572207468616e2030000000006044820152606401610bf1565b600c54604051627eeac760e11b81523360048201526000602482018190526101009092046001600160a01b03169190829062fdd58e90604401602060405180830381865afa158015613714573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373891906149ac565b90508281101561378a5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f6e2774206861766520656e6f7567682052656c696373000000006044820152606401610bf1565b604051637a94c56560e11b815233600482015260006024820152604481018490526001600160a01b0383169063f5298aca90606401600060405180830381600087803b1580156137d957600080fd5b505af11580156137ed573d6000803e3d6000fd5b5050505061286d3384613cd2565b6000546001600160a01b031633148061381e5750600e546001600160a01b031633145b61385f5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600a80549115156101000261ff0019909216919091179055565b6000546001600160a01b031633148061389c5750600e546001600160a01b031633145b6138dd5760405162461bcd60e51b81526020600482015260126024820152712737ba1037bbb732b91037b91030b236b4b760711b6044820152606401610bf1565b600a805460ff1916911515919091179055565b6060604051806060016040528060388152602001614bbc60389139905090565b613918613d53565b6001600160a01b03811661397d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf1565b611d9a81613dad565b600060025482108015610b9d575050600090815260066020526040902054600160e01b161590565b60006139b982613cec565b9050836001600160a01b0316816001600160a01b0316146139ec5760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054613a188187335b6001600160a01b039081169116811491141790565b613a4357613a268633610aed565b613a4357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516613a6a57604051633a954ecd60e21b815260040160405180910390fd5b613a778686866001613f8b565b8015613a8257600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040812091909155600160e11b84169003613b1457600184016000818152600660205260408120549003613b12576002548114613b125760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b611e618383836040518060200160405280600081525061325c565b6000613b8483613cec565b905080600080613ba286600090815260086020526040902080549091565b915091508415613be257613bb7818433613a03565b613be257613bc58333610aed565b613be257604051632ce44b5f60e11b815260040160405180910390fd5b613bf0836000886001613f8b565b8015613bfb57600082555b6001600160a01b038316600081815260076020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260066020526040812091909155600160e11b85169003613c8957600186016000818152600660205260408120549003613c87576002548114613c875760008181526006602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060038054600101905550505050565b6113948282604051806020016040528060008152506140a0565b600081600254811015613d3a5760008181526006602052604081205490600160e01b82169003613d38575b80600003612c03575060001901600081815260066020526040902054613d17565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b03163314611fc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260066020526040902054610b9d90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b613e87848484611131565b6001600160a01b0383163b1561128757613ea384848484614106565b611287576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610b9d613ef083613cec565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6060600b8054610fca90614955565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480613f615750819003601f19909101908152919050565b600a54610100900460ff1615613fe35760405162461bcd60e51b815260206004820152601260248201527f436f6e74726163742069732070617573656400000000000000000000000000006044820152606401610bf1565b60005b818110156133b4576000613ffa8285614b46565b600081815260186020526040902054909150610e109061401a9042614b59565b1161408d5760405162461bcd60e51b815260206004820152603560248201527f43616e206f6e6c79207472616e73666572206166746572203168206f6620756e60448201527f657175697070696e672061726d6f7220706965636500000000000000000000006064820152608401610bf1565b5080614098816149db565b915050613fe6565b6140aa83836141f1565b6001600160a01b0383163b15611e61576002548281035b6140d46000868380600101945086614106565b6140f1576040516368d2bf6b60e11b815260040160405180910390fd5b8181106140c15781600254146133b457600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061413b903390899088908890600401614b6c565b6020604051808303816000875af1925050508015614176575060408051601f3d908101601f1916820190925261417391810190614b9e565b60015b6141d4573d8080156141a4576040519150601f19603f3d011682016040523d82523d6000602084013e6141a9565b606091505b5080516000036141cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60025460008290036142165760405163b562e8dd60e01b815260040160405180910390fd5b6142236000848385613f8b565b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146142d257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161429a565b50816000036142f357604051622e076360e81b815260040160405180910390fd5b60025550505050565b6001600160e01b031981168114611d9a57600080fd5b60006020828403121561432457600080fd5b8135612c03816142fc565b6000806040838503121561434257600080fd5b50508035926020909101359150565b60005b8381101561436c578181015183820152602001614354565b50506000910152565b6000815180845261438d816020860160208601614351565b601f01601f19169290920160200192915050565b602081526000612c036020830184614375565b6000602082840312156143c657600080fd5b5035919050565b6001600160a01b0381168114611d9a57600080fd5b600080604083850312156143f557600080fd5b8235614400816143cd565b946020939093013593505050565b60008060006060848603121561442357600080fd5b833561442e816143cd565b9250602084013561443e816143cd565b929592945050506040919091013590565b60006020828403121561446157600080fd5b8135612c03816143cd565b600081518084526020808501945080840160005b8381101561449c57815187529582019590820190600101614480565b509495945050505050565b606080825284519082018190526000906020906080840190828801845b828110156144e95781516001600160a01b0316845292840192908401906001016144c4565b505050838103828501526144fd818761446c565b9150508281036040840152614512818561446c565b9695505050505050565b6000806020838503121561452f57600080fd5b823567ffffffffffffffff8082111561454757600080fd5b818501915085601f83011261455b57600080fd5b81358181111561456a57600080fd5b86602082850101111561457c57600080fd5b60209290920196919550909350505050565b600080602083850312156145a157600080fd5b823567ffffffffffffffff808211156145b957600080fd5b818501915085601f8301126145cd57600080fd5b8135818111156145dc57600080fd5b8660208260051b850101111561457c57600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561296b5761465b8385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b928401926080929092019160010161460d565b604081526000614681604083018561446c565b8281036020840152614693818561446c565b95945050505050565b8015158114611d9a57600080fd5b600080604083850312156146bd57600080fd5b82356146c8816143cd565b915060208301356146d88161469c565b809150509250929050565b6000806000606084860312156146f857600080fd5b83359250602084013561443e816143cd565b602081526000612c03602083018461446c565b6000806040838503121561473057600080fd5b8235915060208301356146d88161469c565b60008060006060848603121561475757600080fd5b8335614762816143cd565b95602085013595506040909401359392505050565b60008060006060848603121561478c57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156147cf57600080fd5b84356147da816143cd565b935060208501356147ea816143cd565b925060408501359150606085013567ffffffffffffffff8082111561480e57600080fd5b818701915087601f83011261482257600080fd5b813581811115614834576148346147a3565b604051601f8201601f19908116603f0116810190838211818310171561485c5761485c6147a3565b816040528281528a602084870101111561487557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610b9d565b6000602082840312156148f057600080fd5b8135612c038161469c565b6000806040838503121561490e57600080fd5b8235614919816143cd565b915060208301356146d8816143cd565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600181811c9082168061496957607f821691505b60208210810361498957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156149a157600080fd5b8151612c038161469c565b6000602082840312156149be57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016149ed576149ed6149c5565b5060010190565b601f821115611e6157600081815260208120601f850160051c81016020861015614a1b5750805b601f850160051c820191505b81811015613b5657828155600101614a27565b67ffffffffffffffff831115614a5257614a526147a3565b614a6683614a608354614955565b836149f4565b6000601f841160018114614a9a5760008515614a825750838201355b600019600387901b1c1916600186901b1783556133b4565b600083815260209020601f19861690835b82811015614acb5786850135825560209485019460019092019101614aab565b5086821015614ae85760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600060208284031215614b0c57600080fd5b8151612c03816143cd565b60008351614b29818460208801614351565b835190830190614b3d818360208801614351565b01949350505050565b80820180821115610b9d57610b9d6149c5565b81810381811115610b9d57610b9d6149c5565b60006001600160a01b038087168352808616602084015250836040830152608060608301526145126080830184614375565b600060208284031215614bb057600080fd5b8151612c03816142fc56fe68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f677561726469616e2f6d61726b6574706c6163652d6d65746164617461a2646970667358221220043661f3706ff487eed605061088297a4542fee58c6a1dd764db79e880ff199464736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000600000000000000000000000003be3a8613dc18554a73773a5bfb8e9819d360dc0000000000000000000000000bcd114d4256f8d9ec4fd85181583f183b34e9c89000000000000000000000000000000000000000000000000000000000000002d68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f677561726469616e2f6d657461646174612f00000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://cloneforce.xyz/api/guardian/metadata/
Arg [1] : admin (address): 0x3be3A8613dC18554a73773a5Bfb8E9819d360Dc0
Arg [2] : nexusContract (address): 0xbcd114D4256F8d9ec4fD85181583F183B34e9c89

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000003be3a8613dc18554a73773a5bfb8e9819d360dc0
Arg [2] : 000000000000000000000000bcd114d4256f8d9ec4fd85181583f183b34e9c89
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [4] : 68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f6775617264
Arg [5] : 69616e2f6d657461646174612f00000000000000000000000000000000000000


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.