ETH Price: $2,422.96 (-1.87%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...210788652024-10-30 13:51:475 days ago1730296307IN
0x100B6b92...52a7f9D09
0 ETH0.0011369515.85073156
Add Local Contra...209973962024-10-19 5:02:2316 days ago1729314143IN
0x100B6b92...52a7f9D09
0 ETH0.000864939.39010888
Safe Transfer Fr...204698402024-08-06 13:30:2390 days ago1722951023IN
0x100B6b92...52a7f9D09
0 ETH0.000494116.61119882
Set Approval For...201096112024-06-17 6:06:35140 days ago1718604395IN
0x100B6b92...52a7f9D09
0 ETH0.000279793.27933828
Set Approval For...201000032024-06-15 21:54:11141 days ago1718488451IN
0x100B6b92...52a7f9D09
0 ETH0.000183862.90210688
Set Approval For...200532102024-06-09 8:55:47148 days ago1717923347IN
0x100B6b92...52a7f9D09
0 ETH0.000382784.4863832
Safe Transfer Fr...200186692024-06-04 13:10:59153 days ago1717506659IN
0x100B6b92...52a7f9D09
0 ETH0.0011405911.18447902
Set Approval For...199628802024-05-27 18:05:11161 days ago1716833111IN
0x100B6b92...52a7f9D09
0 ETH0.0018694721.91112656
Set Approval For...199030012024-05-19 9:10:35169 days ago1716109835IN
0x100B6b92...52a7f9D09
0 ETH0.000246562.88981944
Approve198579802024-05-13 2:01:35175 days ago1715565695IN
0x100B6b92...52a7f9D09
0 ETH0.00030413.89751185
Safe Transfer Fr...198454572024-05-11 7:59:47177 days ago1715414387IN
0x100B6b92...52a7f9D09
0 ETH0.000521815.11682756
Approve197646832024-04-30 0:56:59188 days ago1714438619IN
0x100B6b92...52a7f9D09
0 ETH0.000530446.79839759
Safe Transfer Fr...197234392024-04-24 6:25:35194 days ago1713939935IN
0x100B6b92...52a7f9D09
0 ETH0.001352299.83259203
Approve196149182024-04-09 1:49:23209 days ago1712627363IN
0x100B6b92...52a7f9D09
0 ETH0.001629220.88055337
Approve196149142024-04-09 1:48:35209 days ago1712627315IN
0x100B6b92...52a7f9D09
0 ETH0.0015846320.30938742
Set Approval For...194748742024-03-20 8:57:47229 days ago1710925067IN
0x100B6b92...52a7f9D09
0 ETH0.0027968432.78029815
Approve194163282024-03-12 3:30:35237 days ago1710214235IN
0x100B6b92...52a7f9D09
0 ETH0.0049754654.55250473
Safe Transfer Fr...193587022024-03-04 2:05:47245 days ago1709517947IN
0x100B6b92...52a7f9D09
0 ETH0.0048299147.36137346
Set Contract All...193465402024-03-02 9:18:47247 days ago1709371127IN
0x100B6b92...52a7f9D09
0 ETH0.0014876451.06232334
Set Approval For...189195472024-01-02 11:57:59307 days ago1704196679IN
0x100B6b92...52a7f9D09
0 ETH0.0011247213.17476244
Safe Transfer Fr...188662972023-12-26 0:28:23314 days ago1703550503IN
0x100B6b92...52a7f9D09
0 ETH0.0013287515.65452598
Set Approval For...187527022023-12-10 2:01:47330 days ago1702173707IN
0x100B6b92...52a7f9D09
0 ETH0.0021933525.69233989
Safe Transfer Fr...187415912023-12-08 12:38:23332 days ago1702039103IN
0x100B6b92...52a7f9D09
0 ETH0.003061536.06859801
Safe Transfer Fr...187186042023-12-05 7:18:11335 days ago1701760691IN
0x100B6b92...52a7f9D09
0 ETH0.0026851843.00493255
Safe Transfer Fr...186815902023-11-30 2:57:59340 days ago1701313079IN
0x100B6b92...52a7f9D09
0 ETH0.0058417945.06720409
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
177893462023-07-28 5:03:47465 days ago1690520627
0x100B6b92...52a7f9D09
0.763 ETH
171717032023-05-02 7:47:11552 days ago1683013631
0x100B6b92...52a7f9D09
2.905 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CnpPrince

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 23 : cnpPrince.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@manifoldxyz/royalty-registry-solidity/contracts/overrides/RoyaltyOverrideCore.sol";
import "contract-allow-list/contracts/ERC721AntiScam/ERC721AntiScam.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract CnpPrince is DefaultOperatorFilterer, EIP2981RoyaltyOverrideCore, ERC721AntiScam, AccessControl, Pausable {
    // Manage
    bytes32 public constant ADMIN = "ADMIN";
    address public withdrawAddress;

    // Metadata
    string public baseURI;
    string public baseExtension;

    // SaleInfo
    uint256 public salesId;
    uint256 public maxSupply;
    uint256 public mintCost;
    bool public isBurnMint;
    bytes32 merkleRoot;
    mapping(uint256 => mapping(address => uint256)) public mintedAmountBySales;

    // Modifier
    modifier enoughEth(uint256 amount) {
        require(msg.value >= amount * mintCost, 'Not Enough Eth');
        _;
    }
    modifier withinMaxSupply(uint256 amount) {
        require(totalSupply() + amount <= maxSupply, 'Over Max Supply');
        _;
    }
    modifier withinMaxAmountPerAddress(uint256 amount, uint256 allowedAmount) {
        require(mintedAmountBySales[salesId][msg.sender] + amount <= allowedAmount, 'Over Max Amount Per Address');
        _;
    }
    modifier matchesIsBurnMintStatus(bool value) {
        require(isBurnMint == value, "Invalid IsBurnMint Status");
        _;
    }
    modifier validProof(uint256 allowedAmount, bytes32[] calldata merkleProof) {
        bytes32 node = keccak256(abi.encodePacked(msg.sender, allowedAmount));
        require(MerkleProof.verifyCalldata(merkleProof, merkleRoot, node), "Invalid proof");
        _;
    }

    // Constructor
    constructor(address _withdrawAddress) ERC721A("CNP Prince", "CNPPR") {
        grantRole(ADMIN, msg.sender);
        setWithdrawAddress(_withdrawAddress);
    }

    // AirDrop
    function airdrop(address[] calldata _addresses, uint256[] calldata _amounts) external onlyRole(ADMIN) {
        require(_addresses.length == _amounts.length, 'Invalid Arguments');
        uint256 _supply = totalSupply();
        for (uint256 i = 0; i < _addresses.length; i++) {
            uint256 _amount = _amounts[i];
            if (_supply + _amount > maxSupply) continue;
            _mint(_addresses[i], _amount);
            _supply = _supply + _amount;
        }
    }

    // Mint
    function claim(uint256 _amount, uint256 _allowedAmount, bytes32[] calldata _merkleProof) external payable
        whenNotPaused
        enoughEth(_amount)
        withinMaxSupply(_amount)
        withinMaxAmountPerAddress(_amount, _allowedAmount)
        matchesIsBurnMintStatus(false)
        validProof(_allowedAmount, _merkleProof)
    {
        mintedAmountBySales[salesId][msg.sender] += _amount;
        _mint(msg.sender, _amount);
    }

    function burnMint(uint256[] memory _burnTokenIds, uint256 _allowedAmount, bytes32[] calldata _merkleProof) external payable
        whenNotPaused
        enoughEth(_burnTokenIds.length)
        withinMaxSupply(_burnTokenIds.length)
        withinMaxAmountPerAddress(_burnTokenIds.length, _allowedAmount)
        matchesIsBurnMintStatus(true)
        validProof(_allowedAmount, _merkleProof)
    {
        uint256 _amount = _burnTokenIds.length;
        for (uint256 i = 0; i < _amount; i++) {
            uint256 _tokenId = _burnTokenIds[i];
            require(_msgSender() == ownerOf(_tokenId));
            _burn(_tokenId);
        }
        mintedAmountBySales[salesId][msg.sender] += _amount;
        _mint(msg.sender, _amount);
    }

    // Getter
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(ERC721A.tokenURI(tokenId), baseExtension));
    }
    function exists(uint256 tokenId) public view virtual returns (bool) {
        return _exists(tokenId);
    }
    function getTotalBurned() view public returns (uint256) {
        return _totalBurned();
    }
    function isTokenOwner(address _owner, uint256 _tokenId) view external returns(bool) {
        return ownerOf(_tokenId) == _owner;
    }

    // Setter
    function setWithdrawAddress(address _value) public onlyRole(ADMIN) {
        withdrawAddress = _value;
    }
    function setBaseURI(string memory _value) public onlyRole(ADMIN) {
        baseURI = _value;
    }
    function setBaseExtension(string memory _value) public onlyRole(ADMIN) {
        baseExtension = _value;
    }
    function resetBaseExtension() public onlyRole(ADMIN) {
        baseExtension = "";
    }
    function setSalesInfo(uint256 _salesId, uint256 _maxSupply, uint256 _mintCost, bool _isBurnMint, bytes32 _merkleRoot) public onlyRole(ADMIN) {
        salesId = _salesId;
        maxSupply = _maxSupply;
        mintCost = _mintCost;
        isBurnMint = _isBurnMint;
        merkleRoot = _merkleRoot;
    }
    function setSalesId(uint256 _value) public onlyRole(ADMIN) {
        salesId = _value;
    }
    function setMaxSupply(uint256 _value) public onlyRole(ADMIN) {
        maxSupply = _value;
    }
    function setMintCost(uint256 _value) public onlyRole(ADMIN) {
        mintCost = _value;
    }
    function setIsBurnMint(bool _value) public onlyRole(ADMIN) {
        isBurnMint = _value;
    }
    function setMerkleRoot(bytes32 _value) public onlyRole(ADMIN) {
        merkleRoot = _value;
    }

    // Metadata
    function withdraw() public payable onlyRole(ADMIN) {
        (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}("");
        require(os);
    }

    // Pausable
    function pause() public onlyRole(ADMIN) {
        _pause();
    }
    function unpause() public onlyRole(ADMIN) {
        _unpause();
    }

    // AccessControl
    function grantRole(bytes32 role, address account) public override onlyOwner {
        _grantRole(role, account);
    }
    function revokeRole(bytes32 role, address account) public override onlyOwner {
        _revokeRole(role, account);
    }

    // OperatorFilter
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }
    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) payable {
        super.approve(operator, tokenId);
    }
    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) payable {
        super.transferFrom(from, to, tokenId);
    }
    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) payable {
        super.safeTransferFrom(from, to, tokenId);
    }
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) payable {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    // Royalty
    function setTokenRoyalties(TokenRoyaltyConfig[] calldata royaltyConfigs) external override onlyRole(ADMIN) {
        _setTokenRoyalties(royaltyConfigs);
    }
    function setDefaultRoyalty(TokenRoyalty calldata royalty) external override onlyRole(ADMIN) {
        _setDefaultRoyalty(royalty);
    }

    // interface
    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721AntiScam, EIP2981RoyaltyOverrideCore) returns (bool) {
        return
            ERC721A.supportsInterface(interfaceId) ||
            EIP2981RoyaltyOverrideCore.supportsInterface(interfaceId) ||
            ERC721AntiScam.supportsInterface(interfaceId) ||
            AccessControl.supportsInterface(interfaceId);
    }
}

File 2 of 23 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 3 of 23 : ERC721AntiScam.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "erc721a/contracts/ERC721A.sol";
import './IERC721AntiScam.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../proxy/interface/IContractAllowListProxy.sol";

/// @title AntiScam機能付きERC721A
/// @dev Readmeを見てください。

abstract contract ERC721AntiScam is ERC721A, IERC721AntiScam, Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;

    IContractAllowListProxy public CAL;
    EnumerableSet.AddressSet localAllowedAddresses;

    /*//////////////////////////////////////////////////////////////
    ロック変数。トークンごとに個別ロック設定を行う
    //////////////////////////////////////////////////////////////*/

    // token lock
    mapping(uint256 => LockStatus) internal _tokenLockStatus;
    mapping(uint256 => uint256) internal _tokenCALLevel;

    // wallet lock
    mapping(address => LockStatus) internal _walletLockStatus;
    mapping(address => uint256) internal _walletCALLevel;

    // contract lock
    LockStatus public contractLockStatus = LockStatus.CalLock;
    uint256 public CALLevel = 1;

    /*///////////////////////////////////////////////////////////////
    ロック機能ロジック
    //////////////////////////////////////////////////////////////*/

    function getLockStatus(uint256 tokenId) public virtual view returns (LockStatus) {
        require(_exists(tokenId), "AntiScam: locking query for nonexistent token");
        return _getLockStatus(ownerOf(tokenId), tokenId);
    }

    function getTokenLocked(address operator, uint256 tokenId) public virtual view returns(bool isLocked) {
        address holder = ownerOf(tokenId);
        LockStatus status = _getLockStatus(holder, tokenId);
        uint256 level = _getCALLevel(holder, tokenId);

        if (status == LockStatus.CalLock) {
            if (ownerOf(tokenId) == msg.sender) {
                return false;
            }
        } else {
            return _getLocked(operator, status, level);
        }
    }
    
    // TODO 標準実装
    function getTokensUnderLock(address to) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    // TODO 標準実装
    function getTokensUnderLock(address to, uint256 start, uint256 end) external view returns (uint256[] memory){
        return new uint256[](0);
    }
    
    // TODO 標準実装
    function getTokensUnderLock(address holder, address to) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    // TODO 標準実装
    function getTokensUnderLock(address holder, address to, uint256 start, uint256 end) external view returns (uint256[] memory){
        return new uint256[](0);
    }

    function getLocked(address operator, address holder) public virtual view returns(bool) {
        LockStatus status = _getLockStatus(holder);
        uint256 level = _getCALLevel(holder);
        return _getLocked(operator, status, level);
    }

    function _getLocked(address operator, LockStatus status, uint256 level) internal virtual view returns(bool){
        if (status == LockStatus.UnLock) {
            return false;
        } else if (status == LockStatus.AllLock)  {
            return true;
        } else if (status == LockStatus.CalLock) {
            if (isLocalAllowed(operator)) {
                return false;
            }
            if (address(CAL) == address(0)) {
                return true;
            }
            if (CAL.isAllowed(operator, level)) {
                return false;
            } else {
                return true;
            }
        } else {
            revert("LockStatus is invalid");
        }
    }

    function addLocalContractAllowList(address _contract) external onlyOwner {
        localAllowedAddresses.add(_contract);
    }

    function removeLocalContractAllowList(address _contract) external onlyOwner {
        localAllowedAddresses.remove(_contract);
    }

    function isLocalAllowed(address _transferer)
        public
        view
        returns (bool)
    {
        bool Allowed = false;
        if(localAllowedAddresses.contains(_transferer) == true){
            Allowed = true;
        }
        return Allowed;
    }

    function _getLockStatus(address holder, uint256 tokenId) internal virtual view returns(LockStatus){
        if(_tokenLockStatus[tokenId] != LockStatus.UnSet) {
            return _tokenLockStatus[tokenId];
        }

        return _getLockStatus(holder);
    }

    function _getLockStatus(address holder) internal virtual view returns(LockStatus){
        if(_walletLockStatus[holder] != LockStatus.UnSet) {
            return _walletLockStatus[holder];
        }

        return contractLockStatus;
    }

    function _getCALLevel(address holder, uint256 tokenId) internal virtual view returns(uint256){
        if(_tokenCALLevel[tokenId] > 0) {
            return _tokenCALLevel[tokenId];
        }

        return _getCALLevel(holder);
    }

    function _getCALLevel(address holder) internal virtual view returns(uint256){
        if(_walletCALLevel[holder] > 0) {
            return _walletCALLevel[holder];
        }

        return CALLevel;
    }

    // For token lock
    function _lock(LockStatus status, uint256 id) internal virtual {
        _tokenLockStatus[id] = status;
        emit TokenLock(ownerOf(id), msg.sender, uint(status), id);
    }

    // For wallet lock
    function _setWalletLock(address to, LockStatus status) internal virtual {
        _walletLockStatus[to] = status;
    }

    function _setWalletCALLevel(address to ,uint256 level) internal virtual {
        _walletCALLevel[to] = level;
    }

    // For contract lock
    function setContractAllowListLevel(uint256 level) external onlyOwner{
        CALLevel = level;
    }

    function setContractLockStatus(LockStatus status) external onlyOwner {
       require(status != LockStatus.UnSet, "AntiScam: contract lock status can not set UNSET");
       contractLockStatus = status;
    }

    function setCAL(address _cal) external onlyOwner {
        CAL = IContractAllowListProxy(_cal);
    }

    /*///////////////////////////////////////////////////////////////
                              OVERRIDES
    //////////////////////////////////////////////////////////////*/

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        if(getLocked(operator, owner)){
            return false;
        }
        return super.isApprovedForAll(owner, operator);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require (getLocked(operator, msg.sender) == false || approved == false, "Can not approve locked token");
        super.setApprovalForAll(operator, approved);
    }

    function approve(address to, uint256 tokenId) public payable virtual override {
        require (getTokenLocked(to, tokenId) == false, "Can not approve locked token");
        super.approve(to, tokenId);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // トークンがロックされている場合、転送を許可しない
            require(getTokenLocked(to, startTokenId) == false , "LOCKED");
        }
    }

    function _afterTokenTransfers(
        address from,
        address /*to*/,
        uint256 startTokenId,
        uint256 /*quantity*/
    ) internal virtual override {
        // 転送やバーンにおいては、常にstartTokenIdは TokenIDそのものとなります。
        if (from != address(0)) {
            // ロックをデフォルトに戻す。(デフォルトは、 contractのLock status)
            delete _tokenLockStatus[startTokenId];
            delete _tokenCALLevel[startTokenId];
        }
    }


    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC721AntiScam).interfaceId ||
            super.supportsInterface(interfaceId);
    }

}

File 4 of 23 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 23 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 23 : RoyaltyOverrideCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

import "./IRoyaltyOverride.sol";
import "../specs/IEIP2981.sol";

/**
 * Simple EIP2981 reference override implementation
 */
abstract contract EIP2981RoyaltyOverrideCore is IEIP2981, IEIP2981RoyaltyOverride, ERC165 {
    using EnumerableSet for EnumerableSet.UintSet;

    TokenRoyalty public defaultRoyalty;
    mapping(uint256 => TokenRoyalty) private _tokenRoyalties;
    EnumerableSet.UintSet private _tokensWithRoyalties;

    function supportsInterface(bytes4 interfaceId) public view virtual override (ERC165, IERC165) returns (bool) {
        return interfaceId == type(IEIP2981).interfaceId || interfaceId == type(IEIP2981RoyaltyOverride).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Sets token royalties. When you override this in the implementation contract
     * ensure that you access restrict it to the contract owner or admin
     */
    function _setTokenRoyalties(TokenRoyaltyConfig[] memory royaltyConfigs) internal {
        for (uint256 i = 0; i < royaltyConfigs.length; i++) {
            TokenRoyaltyConfig memory royaltyConfig = royaltyConfigs[i];
            require(royaltyConfig.bps < 10000, "Invalid bps");
            if (royaltyConfig.recipient == address(0)) {
                delete _tokenRoyalties[royaltyConfig.tokenId];
                _tokensWithRoyalties.remove(royaltyConfig.tokenId);
                emit TokenRoyaltyRemoved(royaltyConfig.tokenId);
            } else {
                _tokenRoyalties[royaltyConfig.tokenId] = TokenRoyalty(royaltyConfig.recipient, royaltyConfig.bps);
                _tokensWithRoyalties.add(royaltyConfig.tokenId);
                emit TokenRoyaltySet(royaltyConfig.tokenId, royaltyConfig.recipient, royaltyConfig.bps);
            }
        }
    }

    /**
     * @dev Sets default royalty. When you override this in the implementation contract
     * ensure that you access restrict it to the contract owner or admin
     */
    function _setDefaultRoyalty(TokenRoyalty memory royalty) internal {
        require(royalty.bps < 10000, "Invalid bps");
        defaultRoyalty = TokenRoyalty(royalty.recipient, royalty.bps);
        emit DefaultRoyaltySet(royalty.recipient, royalty.bps);
    }

    /**
     * @dev See {IEIP2981RoyaltyOverride-getTokenRoyaltiesCount}.
     */
    function getTokenRoyaltiesCount() external view override returns (uint256) {
        return _tokensWithRoyalties.length();
    }

    /**
     * @dev See {IEIP2981RoyaltyOverride-getTokenRoyaltyByIndex}.
     */
    function getTokenRoyaltyByIndex(uint256 index) external view override returns (TokenRoyaltyConfig memory) {
        uint256 tokenId = _tokensWithRoyalties.at(index);
        TokenRoyalty memory royalty = _tokenRoyalties[tokenId];
        return TokenRoyaltyConfig(tokenId, royalty.recipient, royalty.bps);
    }

    /**
     * @dev See {IEIP2981RoyaltyOverride-royaltyInfo}.
     */
    function royaltyInfo(uint256 tokenId, uint256 value) public view override returns (address, uint256) {
        if (_tokenRoyalties[tokenId].recipient != address(0)) {
            return (_tokenRoyalties[tokenId].recipient, value * _tokenRoyalties[tokenId].bps / 10000);
        }
        if (defaultRoyalty.recipient != address(0) && defaultRoyalty.bps != 0) {
            return (defaultRoyalty.recipient, value * defaultRoyalty.bps / 10000);
        }
        return (address(0), 0);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    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(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // 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) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 9 of 23 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

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

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 11 of 23 : 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 12 of 23 : IERC721AntiScam.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/// @title IERC721AntiScam
/// @dev 詐欺防止機能付きコントラクトのインターフェース
/// @author hayatti.eth

interface IERC721AntiScam {

   enum LockStatus {
      UnSet,
      UnLock,
      CalLock,
      AllLock
   }

    /**
     * @dev 個別ロックが指定された場合のイベント
     */
    event TokenLock(address indexed owner, address indexed from, uint lockStatus, uint256 indexed tokenId);

    /**
     * @dev 該当トークンIDにおけるロックレベルを return で返す。
     */
    function getLockStatus(uint256 tokenId) external view returns (LockStatus);

    /**
     * @dev 該当トークンIDにおいて、該当コントラクトの転送が許可されているかを返す
     */
    function getTokenLocked(address to ,uint256 tokenId) external view returns (bool);
    
    /**
     * @dev 該当コントラクトの転送が拒否されているトークンを全て返す
     */
    function getTokensUnderLock(address to) external view returns (uint256[] memory);

    /**
     * @dev 該当コントラクトの転送が拒否されているstartからstopまでのトークンIDを返す
     */
    function getTokensUnderLock(address to, uint256 start, uint256 end) external view returns (uint256[] memory);

    
    /**
     * @dev holderが所有するトークンのうち、該当コントラクトの転送が拒否されているトークンを全て返す
     */
    function getTokensUnderLock(address holder, address to) external view returns (uint256[] memory);

    /**
     * @dev holderが所有するトークンのうち、該当コントラクトの転送が拒否されているstartからstopまでのトークンIDを返す
     */
    function getTokensUnderLock(address holder, address to, uint256 start, uint256 end) external view returns (uint256[] memory);

    /**
     * @dev 該当ウォレットアドレスにおいて、該当コントラクトの転送が許可されているかを返す
     */
    function getLocked(address to ,address holder) external view returns (bool);

    /**
     * @dev CALのリストに無い独自の許可アドレスを追加する場合、こちらにアドレスを記載する。
     */
    function addLocalContractAllowList(address _contract) external;

    /**
     * @dev CALのリストにある独自の許可アドレスを削除する場合、こちらにアドレスを記載する。
     */
    function removeLocalContractAllowList(address _contract) external;


    /**
     * @dev CALを利用する場合のCALのレベルを設定する。レベルが高いほど、許可されるコントラクトの範囲が狭い。
     */
    function setContractAllowListLevel(uint256 level) external;

    /**
     * @dev デフォルトでのロックレベルを指定する。
     */
    function setContractLockStatus(LockStatus status) external;

}

File 13 of 23 : 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 14 of 23 : IContractAllowListProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

interface IContractAllowListProxy {
    function isAllowed(address _transferer, uint256 _level)
        external
        view
        returns (bool);
}

File 15 of 23 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 16 of 23 : 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 17 of 23 : 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 18 of 23 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 19 of 23 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 21 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 22 of 23 : IEIP2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * EIP-2981
 */
interface IEIP2981 {
    /**
     * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
     *
     * => 0x2a55205a = 0x2a55205a
     */
    function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256);
}

File 23 of 23 : IRoyaltyOverride.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * Simple EIP2981 reference override implementation
 */
interface IEIP2981RoyaltyOverride is IERC165 {
    event TokenRoyaltyRemoved(uint256 tokenId);
    event TokenRoyaltySet(uint256 tokenId, address recipient, uint16 bps);
    event DefaultRoyaltySet(address recipient, uint16 bps);

    struct TokenRoyalty {
        address recipient;
        uint16 bps;
    }

    struct TokenRoyaltyConfig {
        uint256 tokenId;
        address recipient;
        uint16 bps;
    }

    /**
     * @dev Set per token royalties.  Passing a recipient of address(0) will delete any existing configuration
     */
    function setTokenRoyalties(TokenRoyaltyConfig[] calldata royalties) external;

    /**
     * @dev Get the number of token specific overrides.  Used to enumerate over all configurations
     */
    function getTokenRoyaltiesCount() external view returns (uint256);

    /**
     * @dev Get a token royalty configuration by index.  Use in conjunction with getTokenRoyaltiesCount to get all per token configurations
     */
    function getTokenRoyaltyByIndex(uint256 index) external view returns (TokenRoyaltyConfig memory);

    /**
     * @dev Set a default royalty configuration.  Will be used if no token specific configuration is set
     */
    function setDefaultRoyalty(TokenRoyalty calldata royalty) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_withdrawAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","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":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"DefaultRoyaltySet","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"lockStatus","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenRoyaltyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"TokenRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CAL","outputs":[{"internalType":"contract IContractAllowListProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CALLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"burnMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractLockStatus","outputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLockStatus","outputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"holder","type":"address"}],"name":"getLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenLocked","outputs":[{"internalType":"bool","name":"isLocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenRoyaltiesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenRoyaltyByIndex","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyaltyConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokensUnderLock","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_transferer","type":"address"}],"name":"isLocalAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isTokenOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountBySales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"removeLocalContractAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":[],"name":"salesId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cal","type":"address"}],"name":"setCAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setContractAllowListLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IERC721AntiScam.LockStatus","name":"status","type":"uint8"}],"name":"setContractLockStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyalty","name":"royalty","type":"tuple"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setIsBurnMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setSalesId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salesId","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintCost","type":"uint256"},{"internalType":"bool","name":"_isBurnMint","type":"bool"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setSalesInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyaltyConfig[]","name":"royaltyConfigs","type":"tuple[]"}],"name":"setTokenRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setWithdrawAddress","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060409080825234620007d95760009080620050248038038091620000268285620007fa565b8339602092839181010312620007d55751916001600160a01b03908184168403620007d2578451916200005983620007de565b600a835269434e50205072696e636560b01b848401528551926200007d84620007de565b600584526421a728282960d91b858501526daaeb6d7670e522a718067333cd4e803b6200075c575b508051926001600160401b039283851162000748576002958654956001948588811c981680156200073d575b8a89101462000729578190601f98898111620006d6575b508a908983116001146200067157869262000665575b5050600019600383901b1c191690851b1787555b8051858111620006515760039182548681811c9116801562000646575b8b8210146200063257908189849311620005df575b508a908983116001146200057b5786926200056f575b505060001982841b1c191690851b1790555b828255600c543360018060a01b0319821617600c55895191339082167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08580a360ff199687601454161760145583601555866017541660175533908333911617036200052f575087906420a226a4a760d91b958682526016885282822033600052885260ff83600020541615620004e5575b50858152601687522033600052855260ff876000205416156200024b5760178054610100600160a81b031916600888901b610100600160a81b031617905586516147ae9081620008568239f35b8695503391865194606086018681108382111762000457578852602a86528686019388368637865115620004415760308553865184101562000441576078602188015360295b8481116200049e57506200046d578751916080830190811183821017620004575788526042825286820192606036853782511562000441576030845382518110156200044157607860218401536041905b808211620003e2575050620003b15795620003806048604497969594620003a594620003709a85519b8c93620003468c86019b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008d5251809260378801906200081e565b8401917001034b99036b4b9b9b4b733903937b6329607d1b6037840152518093868401906200081e565b0103602881018a520188620007fa565b5195869462461bcd60e51b86526004860152518093816024870152868601906200081e565b01601f19168101030190fd5b60648688519062461bcd60e51b82528060048301526024820152600080516020620050048339815191526044820152fd5b9091600f8116601081101562000441576f181899199a1a9b1b9c1cb0b131b232b360811b901a62000414848662000843565b5360041c9180156200042b576000190190620002e2565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60648789519062461bcd60e51b82528060048301526024820152600080516020620050048339815191526044820152fd5b90600f8116601081101562000441576f181899199a1a9b1b9c1cb0b131b232b360811b901a620004cf838a62000843565b5360041c9080156200042b576000190162000291565b868252601688528282203360005288528383600020918254161790553333877f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a438620001fe565b6064908762461bcd60e51b825280600483015260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b0151905038806200015a565b8487528b87208894509190601f198416888e5b828210620005c75750508411620005ae575b505050811b0190556200016c565b015160001983861b60f8161c19169055388080620005a0565b8385015186558b979095019493840193018e6200058e565b9091508386528a86208980850160051c8201928d861062000628575b918991869594930160051c01915b8281106200061957505062000144565b88815585945089910162000609565b92508192620005fb565b634e487b7160e01b86526022600452602486fd5b90607f16906200012f565b634e487b7160e01b84526041600452602484fd5b015190503880620000fe565b8a87528b87208894509190601f198416888e5b828210620006be5750508411620006a4575b505050811b01875562000112565b015160001960f88460031b161c1916905538808062000696565b8385015186558b979095019493840193018e62000684565b9091508986528a86208980850160051c8201928d86106200071f575b918991869594930160051c01915b82811062000710575050620000e8565b88815585945089910162000700565b92508192620006f2565b634e487b7160e01b85526022600452602485fd5b97607f1697620000d1565b634e487b7160e01b82526041600452602482fd5b803b15620007ce5783809160448a5180948193633e9f1edf60e11b8352306004840152733cc6cdda760b79bafa08df41ecfa224f810dceb660248401525af18015620007c45715620000a5579092906001600160401b038111620007485787529138620000a5565b88513d86823e3d90fd5b8380fd5b80fd5b8280fd5b600080fd5b604081019081106001600160401b038211176200045757604052565b601f909101601f19168101906001600160401b038211908210176200045757604052565b60005b838110620008325750506000910152565b818101518382015260200162000821565b9081518110156200044157016020019056fe60806040526004361015610013575b600080fd5b60003560e01c8063018d9b50146105ef57806301ffc9a7146105e6578063025e332e146105dd5780630653aca5146105d457806306fdde03146105cb578063081812fc146105c2578063095ea7b3146105b95780630eda8f56146105b057806310c395bf146105a75780631581b6001461059e57806318160ddd1461059557806323b872dd1461058c578063248a9ca314610583578063285d47ea1461057a5780632a0acc6a146105715780632a55205a146105685780632f2ff15d1461055f57806336568abe146105565780633656e9351461054d578063396e8f53146105445780633ab1a4941461053b5780633ccfd60b146105325780633f4ba83a1461052957806341f434341461052057806342842e0e146105175780634e4ab1221461050e5780634f3db346146105055780634f558e79146104fc578063501c9be2146104f35780635136dcc7146104ea57806355f804b3146104e15780635c975abb146104d85780635eeb618f146104cf5780635f1b1b86146104c65780636352211e146104bd57806367243482146104b45780636c0360eb146104ab5780636f8b44b0146104a257806370a0823114610499578063715018a61461049057806372b44d71146104875780637885fdc71461047e5780637cb64759146104755780637e9803421461046c5780638456cb59146104635780638545f4ea1461045a5780638978b2da146104515780638da5cb5b146104485780638df70c021461043f57806391d148541461043657806395d89b411461042d57806398f7ceab146104245780639feeb9d71461041b578063a217fddf14610412578063a22cb46514610409578063a30dd98814610400578063a86e6ee4146103f7578063ae0b51df146103ee578063af994151146103e5578063b55cd04b146103dc578063b88d4fde146103d3578063bdb4b848146103ca578063c6682862146103c1578063c87b56dd146103b8578063d547741f146103af578063d5abeb01146103a6578063da3ef23f1461039d578063e985e9c514610394578063eabf719c1461038b578063ef60ceaf14610382578063f2fde38b14610379578063f678fbad14610370578063f7510ba614610367578063fb684df61461035e5763ff7682121461035657600080fd5b61000e612cd4565b5061000e612cac565b5061000e612c02565b5061000e612be0565b5061000e612b02565b5061000e6129ed565b5061000e6129d0565b5061000e6129b6565b5061000e6128a8565b5061000e612889565b5061000e612858565b5061000e612760565b5061000e6126b8565b5061000e612699565b5061000e612442565b5061000e612423565b5061000e612407565b5061000e612279565b5061000e61224d565b5061000e612209565b5061000e61212d565b5061000e612110565b5061000e6120d5565b5061000e612095565b5061000e611fed565b5061000e611f95565b5061000e611ef3565b5061000e611ea4565b5061000e611dec565b5061000e611dca565b5061000e611d6f565b5061000e611d50565b5061000e611d2e565b5061000e611cf7565b5061000e611cc0565b5061000e611c63565b5061000e611c02565b5061000e611be0565b5061000e611b38565b5061000e611928565b5061000e6118c7565b5061000e61184b565b5061000e6117f8565b5061000e6117ca565b5061000e6116bc565b5061000e61147a565b5061000e611458565b5061000e611439565b5061000e61141a565b5061000e6113ee565b5061000e6111d2565b5061000e6111a8565b5061000e61110a565b5061000e6110cc565b5061000e61105c565b5061000e611034565b5061000e611010565b5061000e610f6b565b5061000e610ea1565b5061000e610e64565b5061000e610e40565b5061000e610ded565b5061000e610dbd565b5061000e610beb565b5061000e610b97565b5061000e610b6c565b5061000e610b45565b5061000e610ade565b5061000e6109de565b5061000e610988565b5061000e6108a6565b5061000e610773565b5061000e61072e565b5061000e61064d565b5061000e610609565b6001600160a01b0381160361000e57565b503461000e57602036600319011261000e57602061063160043561062c816105f8565b613612565b6040519015158152f35b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e576106bc60043561066e8161063b565b6001600160e01b031981166301ffc9a760e01b81149190821561071d575b821561070c575b82156106fb575b82156106ea575b82156106c0575b505060405190151581529081906020820190565b0390f35b637965db0b60e01b14915081156106da575b5038806106a8565b6106e4915061439a565b386106d2565b91506106f58161439a565b916106a1565b915061070681614356565b9161069a565b635b5e139f60e01b81149250610693565b6380ac58cd60e01b8114925061068c565b503461000e57602036600319011261000e576001600160a01b03600435610754816105f8565b61075c612e95565b166001600160a01b0319600d541617600d55600080f35b503461000e57602036600319011261000e576106bc6040600081805161079881611563565b82815282602082015201526107ae600435612f04565b90549060031b1c90816000526009602052610818602061080e836000208451906107d78261158c565b549061ffff6001600160a01b0383169283835260a01c1693849101526107fb611602565b9586526001600160a01b03166020860152565b61ffff1683830152565b5191829182919091604061ffff816060840195805185526001600160a01b036020820151166020860152015116910152565b60005b83811061085d5750506000910152565b818101518382015260200161084d565b906020916108868151809281855285808601910161084a565b601f01601f1916010190565b9060206108a392818152019061086d565b90565b503461000e576000806003193601126109855760405190806002546108ca81611a42565b8085529160019180831690811561095b5750600114610900575b6106bc856108f4818703826115e0565b60405191829182610892565b9250600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8284106109435750505081016020016108f4826106bc6108e4565b80546020858701810191909152909301928101610928565b8695506106bc969350602092506108f494915060ff191682840152151560051b82010192936108e4565b80fd5b503461000e57602036600319011261000e576004356109a68161443b565b156109cc57600052600660205260206001600160a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b50604036600319011261000e576004356109f7816105f8565b602435610a03826146f4565b610a16610a108284612ff5565b156140c4565b6001600160a01b0380610a28836143c3565b1690813303610a83575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b610a8d3383613732565b610a32576040516367d9dca160e11b8152600490fd5b6020908160408183019282815285518094520193019160005b828110610aca575050505090565b835185529381019392810192600101610abc565b503461000e57602036600319011261000e57610afb6004356105f8565b6106bc610b06613049565b60405191829182610aa3565b60041115610b1c57565b634e487b7160e01b600052602160045260246000fd5b919060208301926004821015610b1c5752565b503461000e57600036600319011261000e576106bc60ff6014541660405191829182610b32565b503461000e57600036600319011261000e5760206001600160a01b0360175460081c16604051908152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e57600435610bd7816105f8565b90602435610be4816105f8565b9060443590565b50610bf536610bbf565b90916001600160a01b03808216338103610daf575b610c13846143c3565b908083831603610d9e57600085815260066020526040902080549093909290610c4f6001600160a01b03871633908114908614171590565b1590565b610d7a575b8716928315610d6857878795610cb692610c7288610d129c8b6144da565b610d5e575b50610c95876001600160a01b03166000526005602052604060002090565b80546000190190556001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b851717610cde866000526004602052604060002090565b55811615610d14575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46144f7565b005b60018401610d2c816000526004602052604060002090565b5415610d39575b50610ce7565b6000548114610d3357610d56906000526004602052604060002090565b553880610d33565b6000905538610c77565b604051633a954ecd60e21b8152600490fd5b610d87610c4b3388613732565b15610c5457604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b610db8336146f4565b610c0a565b503461000e57602036600319011261000e5760043560005260166020526020600160406000200154604051908152f35b503461000e57604036600319011261000e576020610e37602435610e10816105f8565b600435600052601f83526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e5760206040516420a226a4a760d91b8152f35b503461000e57604036600319011261000e57610e84602435600435612d3d565b604080516001600160a01b03939093168352602083019190915290f35b503461000e57604036600319011261000e57600435602435610ec2816105f8565b610eca612e95565b600091808352601660205260ff610ef78360408620906001600160a01b0316600052602052604060002090565b541615610f02578280f35b8083526016602052610f2a8260408520906001600160a01b0316600052602052604060002090565b805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a438808280f35b503461000e57604036600319011261000e57602435610f89816105f8565b336001600160a01b03821603610fa557610d1290600435612dfc565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e57602060ff601d54166040519015158152f35b503461000e57600036600319011261000e5760206001600160a01b03600d5416604051908152f35b503461000e57602036600319011261000e5760043561107a816105f8565b6110826137d7565b7fffffffffffffffffffffff0000000000000000000000000000000000000000ff74ffffffffffffffffffffffffffffffffffffffff006017549260081b16911617601755600080f35b50600080600319360112610985576110e26137d7565b808080806001600160a01b0360175460081c1647905af1611101614094565b50156109855780f35b503461000e57600036600319011261000e576111246137d7565b60175460ff8116156111635760ff19166017557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606490fd5b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b506111dc36610bbf565b916001600160a01b0392838216903382141594856113e0575b60405192611202846115a8565b600096808886526113d2575b6113c4575b61121c836143c3565b908083831603610d9e576000848152600660205260409020805490939092906112546001600160a01b03891633908114908614171590565b6113a0575b8816928315610d685785948a91611271878c8c6144da565b611398575b5050611295876001600160a01b03166000526005602052604060002090565b80546000190190556112ba886001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b8517176112e2866000526004602052604060002090565b5581161561134f575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8880a461131a81846144f7565b833b611324578480f35b61133193610c4b9361456e565b61133d57388080808480f35b6040516368d2bf6b60e11b8152600490fd5b60018401611367816000526004602052604060002090565b5415611374575b506112eb565b8954811461136e57611390906000526004602052604060002090565b55388061136e565b558838611276565b6113ad610c4b338a613732565b1561125957604051632ce44b5f60e11b8152600490fd5b6113cd336146f4565b611213565b6113db336146f4565b61120e565b6113e9336146f4565b6111f5565b503461000e57604036600319011261000e576020610631600435611411816105f8565b60243590612ff5565b503461000e57600036600319011261000e576020601554604051908152f35b503461000e57602036600319011261000e57602061063160043561443b565b503461000e57602036600319011261000e57611472612e95565b600435601555005b503461000e5760208060031936011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e57806004013591821161000e5760609260248484028301019136831161000e576114d26137d7565b6114db84611ecc565b936040906114eb825196876115e0565b855260248386019201915b84831061150657610d128661417c565b868336031261000e57838791835161151d81611563565b853581528286013561152e816105f8565b8382015261153d858701614121565b858201528152019201916114f6565b50634e487b7160e01b600052604160045260246000fd5b6060810190811067ffffffffffffffff82111761157f57604052565b61158761154c565b604052565b6040810190811067ffffffffffffffff82111761157f57604052565b6020810190811067ffffffffffffffff82111761157f57604052565b6080810190811067ffffffffffffffff82111761157f57604052565b90601f8019910116810190811067ffffffffffffffff82111761157f57604052565b6040519061160f82611563565b565b6040519061160f8261158c565b60209067ffffffffffffffff811161163c575b601f01601f19160190565b61164461154c565b611631565b9291926116558261161e565b9161166360405193846115e0565b82948184528183011161000e578281602093846000960137010152565b602060031982011261000e576004359067ffffffffffffffff821161000e578060238301121561000e578160246108a393600401359101611649565b503461000e576116cb36611680565b6116d36137d7565b805167ffffffffffffffff81116117bd575b6116f9816116f4601854611a42565b613fdd565b602080601f83116001146117365750819260009261172b575b5050600019600383901b1c191660019190911b17601855005b015190503880611712565b90601f1983169361176960186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e90565b926000905b8682106117a5575050836001951061178c575b505050811b01601855005b015160001960f88460031b161c19169055388080611781565b8060018596829496860151815501950193019061176e565b6117c561154c565b6116e5565b503461000e57600036600319011261000e57602060ff601754166040519015158152f35b8015150361000e57565b503461000e5760a036600319011261000e57606435611816816117ee565b61181e6137d7565b600435601a55602435601b55604435601c5560ff8019601d54169115151617601d55608435601e55600080f35b503461000e57600080600319360112610985576118666137d7565b611871601954611a42565b601f8111611883575b50600060195580f35b601f7f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695910160051c8101905b8181106118bc575061187a565b8281556001016118af565b503461000e57602036600319011261000e5760206001600160a01b036118ee6004356143c3565b16604051908152f35b9181601f8401121561000e5782359167ffffffffffffffff831161000e576020808501948460051b01011161000e57565b503461000e57604036600319011261000e5767ffffffffffffffff60043581811161000e5761195b9036906004016118f7565b909160243590811161000e576119759036906004016118f7565b9190926119806137d7565b8282036119fd57600080546001546000199103015b83821061199e57005b6119a98286886137a8565b35906119b582826137c0565b601b54106119f257816119e6916119e16119ec946119dc6119d7888b8b6137a8565b6137cd565b614617565b6137c0565b9161378c565b90611995565b916119ec915061378c565b60405162461bcd60e51b815260206004820152601160248201527f496e76616c696420417267756d656e74730000000000000000000000000000006044820152606490fd5b90600182811c92168015611a72575b6020831014611a5c57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611a51565b6040519060008260185491611a9083611a42565b80835292600190818116908115611b165750600114611ab7575b5061160f925003836115e0565b6018600090815291507fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e5b848310611afb575061160f935050810160200138611aaa565b81935090816020925483858a01015201910190918592611ae2565b90506020925061160f94915060ff191682840152151560051b82010138611aaa565b503461000e57600080600319360112610985576040519080601854611b5c81611a42565b8085529160019180831690811561095b5750600114611b85576106bc856108f4818703826115e0565b9250601883527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e5b828410611bc85750505081016020016108f4826106bc6108e4565b80546020858701810191909152909301928101611bad565b503461000e57602036600319011261000e57611bfa6137d7565b600435601b55005b503461000e57602036600319011261000e576001600160a01b03600435611c28816105f8565b168015611c51576000526005602052602067ffffffffffffffff60406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e5760008060031936011261098557611c7e612e95565b806001600160a01b03600c546001600160a01b03198116600c55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461000e57602036600319011261000e57610d126001600160a01b03600435611ce9816105f8565b611cf1612e95565b16613471565b503461000e57600036600319011261000e57600854604080516001600160a01b038316815260a09290921c61ffff16602083015290f35b503461000e57602036600319011261000e57611d486137d7565b600435601e55005b503461000e57600036600319011261000e576020600a54604051908152f35b503461000e57600036600319011261000e57611d896137d7565b611d91613c0a565b600160ff1960175416176017557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461000e57602036600319011261000e57611de46137d7565b600435601c55005b503461000e57602036600319011261000e57600435611e0a8161443b565b15611e3957611e2d816001600160a01b03611e276106bc946143c3565b16613636565b60405191829182610b32565b60405162461bcd60e51b815260206004820152602d60248201527f416e74695363616d3a206c6f636b696e6720717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e5760206001600160a01b03600c5416604051908152f35b60209067ffffffffffffffff8111611ee6575b60051b0190565b611eee61154c565b611edf565b50606036600319011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e578060040135611f2c81611ecc565b91611f3a60405193846115e0565b81835260209160248385019160051b8301019136831161000e57602401905b828210611f86576044358587821161000e57611f7c610d129236906004016118f7565b9160243590613cb9565b81358152908301908301611f59565b503461000e57604036600319011261000e57602060ff611fe1602435611fba816105f8565b600435600052601684526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b503461000e5760008060031936011261098557604051908060035461201181611a42565b8085529160019180831690811561095b575060011461203a576106bc856108f4818703826115e0565b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061207d5750505081016020016108f4826106bc6108e4565b80546020858701810191909152909301928101612062565b503461000e57604036600319011261000e5760206004356120b5816105f8565b6001600160a01b03806120c96024356143c3565b16906040519216148152f35b503461000e57602036600319011261000e576004356120f3816117ee565b6120fb6137d7565b60ff8019601d54169115151617601d55600080f35b503461000e57600036600319011261000e57602060405160008152f35b503461000e57604036600319011261000e5760043561214b816105f8565b6001600160a01b0360243591612160836117ee565b612169816146f4565b61218561217533613688565b61217e33613708565b90836131dd565b158015612201575b612196906140c4565b3360005260076020526121c0816040600020906001600160a01b0316600052602052604060002090565b9215159260ff1981541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50821561218d565b503461000e57600036600319011261000e576020601a54604051908152f35b604090600319011261000e57600435612240816105f8565b906024356108a3816105f8565b503461000e57602061063161226136612228565b61227361226d82613688565b91613708565b916131dd565b50606036600319011261000e5760243560443560043567ffffffffffffffff821161000e5761239c926123a16122b66123dd9436906004016118f7565b6122c1969196613c0a565b6122d86122d0601c5487612d22565b341015613a8e565b6000966123028854600154900360001990818982010191829101116123fa575b601b541015613ada565b601a5494858952601f6020526123448161233160408c20336001600160a01b0316600052602052604060002090565b548981018091116123ed575b1115613b26565b61235360ff601d541615613b72565b6040513360601b6bffffffffffffffffffffffff191660208201908152603482019290925261238f81605481015b03601f1981018352826115e0565b51902091601e5491613c5b565b613bbe565b8352601f6020526123c83360408520906001600160a01b0316600052602052604060002090565b8054908282018092116123e0575b5533614617565b80f35b6123e8612d0b565b6123d6565b6123f5612d0b565b61233d565b612402612d0b565b6122f8565b503461000e5761241636612228565b50506106bc610b06613049565b503461000e57600036600319011261000e576020600154604051908152f35b50608036600319011261000e576004803561245c816105f8565b60243590612469826105f8565b60443560643567ffffffffffffffff811161000e573660238201121561000e5761249c9036906024818801359101611649565b906001600160a01b0380841690338214158061268b575b61267d575b6124c1836143c3565b91808284160361266d57600084815260066020526040902080549390926124f76001600160a01b03891633908114908714171590565b61264a575b8816928315612639578594612512868b8b6144da565b61262f575b50612535876001600160a01b03166000526005602052604060002090565b805460001901905561255a886001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b851717612582866000526004602052604060002090565b558116156125e5575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46125bb81846144f7565b833b6125c357005b6125d093610c4b9361456e565b6125d657005b6040516368d2bf6b60e11b8152fd5b600184016125fd816000526004602052604060002090565b541561260a575b5061258b565b600054811461260457612627906000526004602052604060002090565b553880612604565b6000905538612517565b604051633a954ecd60e21b81528a90fd5b612657610c4b338a613732565b156124fc57604051632ce44b5f60e11b81528a90fd5b60405162a1148160e81b81528890fd5b612686336146f4565b6124b8565b612694336146f4565b6124b3565b503461000e57600036600319011261000e576020601c54604051908152f35b503461000e576000806003193601126109855760405190806019546126dc81611a42565b8085529160019180831690811561095b5750600114612705576106bc856108f4818703826115e0565b9250601983527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96955b8284106127485750505081016020016108f4826106bc6108e4565b8054602085870181019190915290930192810161272d565b503461000e57602036600319011261000e5760043561277e8161443b565b156128465761278b611a7c565b80519091906000901561282557506040519060a08201604052608082019060008252905b6000190190600a9060308282060183530490816127af576108f4915061280d6127fb916106bc95612801612820966080601f1994858101920301815260405195869360208501906138b3565b906138b3565b039081018352826115e0565b61238160405193849260208401906138b3565b613f37565b6040516106bc935061282092506108f49161283f826115a8565b815261280d565b604051630a14c4b560e41b8152600490fd5b503461000e57604036600319011261000e57610d12602435612879816105f8565b612881612e95565b600435612dfc565b503461000e57600036600319011261000e576020601b54604051908152f35b503461000e576128b736611680565b6128bf6137d7565b805167ffffffffffffffff81116129a9575b6128e5816128e0601954611a42565b61403e565b602080601f831160011461292257508192600092612917575b5050600019600383901b1c191660019190911b17601955005b0151905038806128fe565b90601f1983169361295560196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c969590565b926000905b8682106129915750508360019510612978575b505050811b01601955005b015160001960f88460031b161c1916905538808061296d565b8060018596829496860151815501950193019061295a565b6129b161154c565b6128d1565b503461000e5760206106316129ca36612228565b90613732565b503461000e57606036600319011261000e57610afb6004356105f8565b503461000e57604036600319011261000e57612a076137d7565b7f2c5ea6e4103e78cb101e796fb2dace540362fc542cbff5145eaa24af7dd8fe41604051612a348161158c565b600435612a40816105f8565b8152612ae0612ad7612a50614110565b926020810193808552612a6b61271061ffff80931610614130565b612aaf6001600160a01b03835116865192602060405191612a8b8361158c565b83835285169101526001600160a01b03166001600160a01b03196008541617600855565b61ffff60a01b1961ffff60a01b6008549260a01b16911617600855516001600160a01b031690565b915161ffff1690565b604080516001600160a01b0393909316835261ffff91909116602083015290a1005b503461000e57602036600319011261000e57600435612b20816105f8565b612b28612e95565b6001600160a01b03809116908115612b7557600c54826001600160a01b0319821617600c55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b503461000e57602036600319011261000e57612bfa6137d7565b600435601a55005b503461000e57602036600319011261000e57600435600481101561000e57612c28612e95565b8015612c415760ff801960145416911617601455600080f35b60405162461bcd60e51b815260206004820152603060248201527f416e74695363616d3a20636f6e7472616374206c6f636b20737461747573206360448201527f616e206e6f742073657420554e534554000000000000000000000000000000006064820152608490fd5b503461000e57608036600319011261000e57612cc96004356105f8565b610afb6024356105f8565b503461000e57602036600319011261000e57610d126001600160a01b03600435612cfd816105f8565b612d05612e95565b16613295565b50634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715612d3557565b61160f612d0b565b91908260005260096020526001600160a01b03928360406000205416612dab57506008549283169283151580612d9b575b612d7e5750509050600090600090565b6108a39161ffff612d939260a01c1690612d22565b612710900490565b5061ffff8160a01c161515612d6e565b926108a391612df6612def612de4612d9394612dd1896000526009602052604060002090565b5416976000526009602052604060002090565b5460a01c61ffff1690565b61ffff1690565b90612d22565b600090808252601660205260ff612e298460408520906001600160a01b0316600052602052604060002090565b5416612e3457505050565b8082526016602052612e5c8360408420906001600160a01b0316600052602052604060002090565b60ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6001600160a01b033394169280a4565b6001600160a01b03600c54163303612ea957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b50634e487b7160e01b600052603260045260246000fd5b600a54811015612f3c575b600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b612f44612eed565b612f0f565b600e54811015612f81575b600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0190600090565b612f89612eed565b612f54565b906000916001600160a01b039081612fa5826143c3565b16612fba82612fb48184613636565b926136e2565b90612fc481610b12565b60028103612fe6575050612fd7906143c3565b163314612fe057565b60009150565b915091506108a3929350613083565b600092916001600160a01b03918261300c836143c3565b1661301b83612fb48184613636565b9161302582610b12565b6002820361303957505050612fd7906143c3565b91935091506108a39394506131dd565b604051613055816115a8565b60008152906000368137565b9081602091031261000e57516108a3816117ee565b506040513d6000823e3d90fd5b61308c81610b12565b6001810361309b575050600090565b6130a481610b12565b600381036130b3575050600190565b806130bf600292610b12565b03613194576130cc6135d4565b61318e576130f16130e5600d546001600160a01b031690565b6001600160a01b031690565b6001600160a01b0381161561318757604051630f8350ed60e41b815260006004820152602481019290925260209082908180604481015b03915afa90811561317a575b60009161314c575b501561314757600090565b600190565b61316d915060203d8111613173575b61316581836115e0565b810190613061565b3861313c565b503d61315b565b613182613076565b613134565b5050600190565b50600090565b60405162461bcd60e51b815260206004820152601560248201527f4c6f636b53746174757320697320696e76616c696400000000000000000000006044820152606490fd5b0390fd5b906131e781610b12565b600181036131f757505050600090565b61320081610b12565b6003810361321057505050600190565b8061321c600292610b12565b036131945761322a81613612565b61328e576132436130e5600d546001600160a01b031690565b916001600160a01b0383161561328657604051630f8350ed60e41b81526001600160a01b0390921660048301526024820152906020908290818060448101613128565b505050600190565b5050600090565b80600052600f6020526040600020541560001461318e5780600e5468010000000000000000811015613319575b6001810180600e5581101561330c575b7fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155600e5490600052600f602052604060002055600190565b613314612eed565b6132d2565b61332161154c565b6132c2565b80600052600b6020526040600020541560001461318e5780600a54680100000000000000008110156133aa575b6001810180600a5581101561339d575b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155600a5490600052600b602052604060002055600190565b6133a5612eed565b613363565b6133b261154c565b613353565b600e5480156134095760007fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fc8119830192808410156133fc575b600e83520155600e55565b613404612eed565b6133f1565b634e487b7160e01b600052603160045260246000fd5b600a5480156134095760007fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a7811983019280841015613464575b600a83520155600a55565b61346c612eed565b613459565b6000818152600f6020526040902054801561328e576000916134cc9160001980820182811161352b575b600e5491820191821161351e575b8082036134d2575b5050506134bc6133b7565b600052600f602052604060002090565b55600190565b6134bc6134fa916134f26134e861351595612f49565b90549060031b1c90565b928391612f49565b90919082549060031b600019811b9283911b16911916179055565b553880806134b1565b613526612d0b565b6134a9565b613533612d0b565b61349b565b6000818152600b6020526040902054801561328e576000916134cc916000198082018281116135c7575b600a549182019182116135ba575b808203613593575b50505061358361341f565b600052600b602052604060002090565b6135836134fa916135a96134e86135b195612f04565b928391612f04565b55388080613578565b6135c2612d0b565b613570565b6135cf612d0b565b613562565b6000808052600f6020527ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec37554151560011461360c5790565b50600190565b6001600160a01b03600091168152600f6020526001604082205415151461360c5790565b6000828152601060205260ff60408220541660048110156136745761366057506108a39150613688565b6040915060ff928152601060205220541690565b634e487b7160e01b82526021600452602482fd5b6001600160a01b0316600090808252601260205260ff60408320541660048110156136ce576136bc57505060ff6014541690565b81526012602052604090205460ff1690565b634e487b7160e01b83526021600452602483fd5b9060005260116020526040600020546136fe576108a390613708565b5060406000205490565b6001600160a01b031660005260136020526040600020546137295760155490565b60406000205490565b61374e61373e82613688565b61374783613708565b90846131dd565b61328e5760ff916001600160a01b03613787921660005260076020526040600020906001600160a01b0316600052602052604060002090565b541690565b600190600019811461379c570190565b6137a4612d0b565b0190565b91908110156137b85760051b0190565b611eee612eed565b91908201809211612d3557565b356108a3816105f8565b3360009081527f3835dd571b9a380a03cb4b8ddc8ac8b23604b3d676d215313b9d5f8efd29d90c602052604090205460ff161561381057565b6131d9604861389b61382133613972565b61238161382c613a08565b6040519485937f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000602086015261386c81518092602060378901910161084a565b84017f206973206d697373696e6720726f6c6520000000000000000000000000000000603782015201906138b3565b60405162461bcd60e51b815291829160048301610892565b906137a46020928281519485920161084a565b6020908051156138d4570190565b6137a4612eed565b6021908051600110156138d4570190565b9060209180518210156138ff57010190565b613907612eed565b010190565b801561391a575b6000190190565b613922612d0b565b613913565b1561392e57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b6040519061397f82611563565b602a825260403660208401376030613996836138c6565b5360786139a2836138dc565b536029905b600182116139ba576108a3915015613927565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f6139f5931660108110156139fb575b1a6139eb84866138ed565b5360041c9161390c565b906139a7565b613a03612eed565b6139e0565b6040516420a226a4a760d91b613a1d826115c4565b6042825260603660208401376030613a34836138c6565b536078613a40836138dc565b536041905b60018211613a58576108a3915015613927565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f613a88931660108110156139fb571a6139eb84866138ed565b90613a45565b15613a9557565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b15613ae157565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b15613b2d57565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b15613b7957565b60405162461bcd60e51b815260206004820152601960248201527f496e76616c69642049734275726e4d696e7420537461747573000000000000006044820152606490fd5b15613bc557565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b60ff60175416613c1657565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b9192916000915b808310613c70575050501490565b909192613c7e8483856137a8565b3590600082821015613ca75750600052602052613ca060406000205b9361378c565b9190613c62565b604091613ca093825260205220613c9a565b90919261239c613d5d91613ccb613c0a565b613cdc6122d08551601c5490612d22565b835195600095613d0a8754986001998a549003600019809282010191829101116123fa57601b541015613ada565b613d4b818751601a548a52601f602052613d3960408b20336001600160a01b0316600052602052604060002090565b549081018091116123ed571115613b26565b6123538860ff601d5416151514613b72565b8051924260a01b835b858110613dbb57505050505061160f90613da833613d90601a54600052601f602052604060002090565b906001600160a01b0316600052602052604060002090565b613db38282546137c0565b905533614617565b613dc58185613f15565b516001600160a01b0380613dd8836143c3565b163303613f115781613ea491613df1613ebc95946143c3565b9081169089613e0d846000526006602052604060002090815490565b613e178686614476565b613f09575b5050613e3b826001600160a01b03166000526005602052604060002090565b80546fffffffffffffffffffffffffffffffff0190556000838152600460205260409020828817600360e01b179055600160e11b811615613ec1575b508189827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a46144f7565b613eb7613eb2855460010190565b600155565b61378c565b613d66565b878301613ed8816000526004602052604060002090565b5415613ee5575b50613e77565b8a548114613edf57613f01906000526004602052604060002090565b553880613edf565b558938613e1c565b8680fd5b6020918151811015613f2a575b60051b010190565b613f32612eed565b613f22565b60195460009291613f4782611a42565b91600190818116908115613fb35750600114613f6257505050565b909192935060196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695906000915b848310613fa0575050500190565b8181602092548587015201920191613f92565b60ff191683525050811515909102019150565b818110613fd1575050565b60008155600101613fc6565b90601f8211613fea575050565b61160f9160186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e906020601f840160051c83019310614034575b601f0160051c0190613fc6565b9091508190614027565b90601f821161404b575050565b61160f9160196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695906020601f840160051c8301931061403457601f0160051c0190613fc6565b3d156140bf573d906140a58261161e565b916140b360405193846115e0565b82523d6000602084013e565b606090565b156140cb57565b60405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420617070726f7665206c6f636b656420746f6b656e000000006044820152606490fd5b6024359061ffff8216820361000e57565b359061ffff8216820361000e57565b1561413757565b60405162461bcd60e51b815260206004820152600b60248201527f496e76616c6964206270730000000000000000000000000000000000000000006044820152606490fd5b906000805b835181101561435057806141986142449286613f15565b516040908181016141ba6127106141b4612def845161ffff1690565b10614130565b6020808301906141d182516001600160a01b031690565b906001600160a01b03821661424957505050507fa2870857763bd9ae76c957f869f16b31c18dd3bb4c7b4d3a4496dc5c57c657f991818661422061423c94516000526009602052604060002090565b5561422b8151613538565b505190519081529081906020820190565b0390a161378c565b614181565b61431d84956143037f389b70fb0887f01e83784eb1c4c589f740eca53b00ed0f45e41db5d079719abb98946142b16143269561428b61423c999a5161ffff1690565b906142a6614297611611565b6001600160a01b039095168552565b83019061ffff169052565b6142c683516000526009602052604060002090565b815181546001600160a01b0319166001600160a01b0391909116178155906020015161ffff60a01b1961ffff60a01b83549260a01b169116179055565b61430d8151613326565b505194516001600160a01b031690565b945161ffff1690565b90519283526001600160a01b03909316602083015261ffff90921660408201529081906060820190565b50509050565b63ffffffff60e01b1663152a902d60e11b8114908115614389575b811561437b575090565b6301ffc9a760e01b14919050565b63c69dbd8f60e01b81149150614371565b6001600160e01b03198116637aa3e02b60e11b149081156143b9575090565b6108a39150614356565b60008180600111156143e2575b604051636f96cda160e11b8152600490fd5b81548110156143d05781526004906020918083526040928383205494600160e01b861615614412575050506143d0565b93929190935b851561442657505050505090565b60001901808352818552838320549550614418565b8060011115908161446a575b81614450575090565b90506000526004602052600160e01b604060002054161590565b60005481109150614447565b6001600160a01b03166144865750565b61448f90612f8e565b61449557565b60405162461bcd60e51b815260206004820152600660248201527f4c4f434b454400000000000000000000000000000000000000000000000000006044820152606490fd5b9091906001600160a01b03166144ee575050565b61448f91612ff5565b6001600160a01b03166145075750565b6000526010602052604060002060ff198154169055601160205260006040812055565b9081602091031261000e57516108a38161063b565b90926108a394936080936001600160a01b0380921684521660208301526040820152816060820152019061086d565b9260209161459f9360006001600160a01b03604051809781968295630a85bd0160e11b9b8c8552336004860161453f565b0393165af1600091816145e7575b506145d9576145ba614094565b805190816145d4576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b61460991925060203d8111614610575b61460181836115e0565b81019061452a565b90386145ad565b503d6145f7565b9060009081549281156146e257614641816001600160a01b03166000526005602052604060002090565b68010000000000000001830281540190556001600160a01b03600191169181811460e11b4260a01b178317614680866000526004602052604060002090565b55840193817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91808587858180a4015b8581036146d357505050156146c25755565b604051622e076360e81b8152600490fd5b8083918587858180a4016146b0565b60405163b562e8dd60e01b8152600490fd5b6daaeb6d7670e522a718067333cd4e803b61470d575050565b602060449160405192838092633185c44d60e21b82523060048301526001600160a01b03871660248301525afa908115614794575b600091614776575b50156147535750565b604051633b79c77360e21b81526001600160a01b03919091166004820152602490fd5b61478e915060203d81116131735761316581836115e0565b3861474a565b61479c613076565b61474256fea164736f6c6343000811000a537472696e67733a20686578206c656e67746820696e73756666696369656e74000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931

Deployed Bytecode

0x60806040526004361015610013575b600080fd5b60003560e01c8063018d9b50146105ef57806301ffc9a7146105e6578063025e332e146105dd5780630653aca5146105d457806306fdde03146105cb578063081812fc146105c2578063095ea7b3146105b95780630eda8f56146105b057806310c395bf146105a75780631581b6001461059e57806318160ddd1461059557806323b872dd1461058c578063248a9ca314610583578063285d47ea1461057a5780632a0acc6a146105715780632a55205a146105685780632f2ff15d1461055f57806336568abe146105565780633656e9351461054d578063396e8f53146105445780633ab1a4941461053b5780633ccfd60b146105325780633f4ba83a1461052957806341f434341461052057806342842e0e146105175780634e4ab1221461050e5780634f3db346146105055780634f558e79146104fc578063501c9be2146104f35780635136dcc7146104ea57806355f804b3146104e15780635c975abb146104d85780635eeb618f146104cf5780635f1b1b86146104c65780636352211e146104bd57806367243482146104b45780636c0360eb146104ab5780636f8b44b0146104a257806370a0823114610499578063715018a61461049057806372b44d71146104875780637885fdc71461047e5780637cb64759146104755780637e9803421461046c5780638456cb59146104635780638545f4ea1461045a5780638978b2da146104515780638da5cb5b146104485780638df70c021461043f57806391d148541461043657806395d89b411461042d57806398f7ceab146104245780639feeb9d71461041b578063a217fddf14610412578063a22cb46514610409578063a30dd98814610400578063a86e6ee4146103f7578063ae0b51df146103ee578063af994151146103e5578063b55cd04b146103dc578063b88d4fde146103d3578063bdb4b848146103ca578063c6682862146103c1578063c87b56dd146103b8578063d547741f146103af578063d5abeb01146103a6578063da3ef23f1461039d578063e985e9c514610394578063eabf719c1461038b578063ef60ceaf14610382578063f2fde38b14610379578063f678fbad14610370578063f7510ba614610367578063fb684df61461035e5763ff7682121461035657600080fd5b61000e612cd4565b5061000e612cac565b5061000e612c02565b5061000e612be0565b5061000e612b02565b5061000e6129ed565b5061000e6129d0565b5061000e6129b6565b5061000e6128a8565b5061000e612889565b5061000e612858565b5061000e612760565b5061000e6126b8565b5061000e612699565b5061000e612442565b5061000e612423565b5061000e612407565b5061000e612279565b5061000e61224d565b5061000e612209565b5061000e61212d565b5061000e612110565b5061000e6120d5565b5061000e612095565b5061000e611fed565b5061000e611f95565b5061000e611ef3565b5061000e611ea4565b5061000e611dec565b5061000e611dca565b5061000e611d6f565b5061000e611d50565b5061000e611d2e565b5061000e611cf7565b5061000e611cc0565b5061000e611c63565b5061000e611c02565b5061000e611be0565b5061000e611b38565b5061000e611928565b5061000e6118c7565b5061000e61184b565b5061000e6117f8565b5061000e6117ca565b5061000e6116bc565b5061000e61147a565b5061000e611458565b5061000e611439565b5061000e61141a565b5061000e6113ee565b5061000e6111d2565b5061000e6111a8565b5061000e61110a565b5061000e6110cc565b5061000e61105c565b5061000e611034565b5061000e611010565b5061000e610f6b565b5061000e610ea1565b5061000e610e64565b5061000e610e40565b5061000e610ded565b5061000e610dbd565b5061000e610beb565b5061000e610b97565b5061000e610b6c565b5061000e610b45565b5061000e610ade565b5061000e6109de565b5061000e610988565b5061000e6108a6565b5061000e610773565b5061000e61072e565b5061000e61064d565b5061000e610609565b6001600160a01b0381160361000e57565b503461000e57602036600319011261000e57602061063160043561062c816105f8565b613612565b6040519015158152f35b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e576106bc60043561066e8161063b565b6001600160e01b031981166301ffc9a760e01b81149190821561071d575b821561070c575b82156106fb575b82156106ea575b82156106c0575b505060405190151581529081906020820190565b0390f35b637965db0b60e01b14915081156106da575b5038806106a8565b6106e4915061439a565b386106d2565b91506106f58161439a565b916106a1565b915061070681614356565b9161069a565b635b5e139f60e01b81149250610693565b6380ac58cd60e01b8114925061068c565b503461000e57602036600319011261000e576001600160a01b03600435610754816105f8565b61075c612e95565b166001600160a01b0319600d541617600d55600080f35b503461000e57602036600319011261000e576106bc6040600081805161079881611563565b82815282602082015201526107ae600435612f04565b90549060031b1c90816000526009602052610818602061080e836000208451906107d78261158c565b549061ffff6001600160a01b0383169283835260a01c1693849101526107fb611602565b9586526001600160a01b03166020860152565b61ffff1683830152565b5191829182919091604061ffff816060840195805185526001600160a01b036020820151166020860152015116910152565b60005b83811061085d5750506000910152565b818101518382015260200161084d565b906020916108868151809281855285808601910161084a565b601f01601f1916010190565b9060206108a392818152019061086d565b90565b503461000e576000806003193601126109855760405190806002546108ca81611a42565b8085529160019180831690811561095b5750600114610900575b6106bc856108f4818703826115e0565b60405191829182610892565b9250600283527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b8284106109435750505081016020016108f4826106bc6108e4565b80546020858701810191909152909301928101610928565b8695506106bc969350602092506108f494915060ff191682840152151560051b82010192936108e4565b80fd5b503461000e57602036600319011261000e576004356109a68161443b565b156109cc57600052600660205260206001600160a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b50604036600319011261000e576004356109f7816105f8565b602435610a03826146f4565b610a16610a108284612ff5565b156140c4565b6001600160a01b0380610a28836143c3565b1690813303610a83575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b610a8d3383613732565b610a32576040516367d9dca160e11b8152600490fd5b6020908160408183019282815285518094520193019160005b828110610aca575050505090565b835185529381019392810192600101610abc565b503461000e57602036600319011261000e57610afb6004356105f8565b6106bc610b06613049565b60405191829182610aa3565b60041115610b1c57565b634e487b7160e01b600052602160045260246000fd5b919060208301926004821015610b1c5752565b503461000e57600036600319011261000e576106bc60ff6014541660405191829182610b32565b503461000e57600036600319011261000e5760206001600160a01b0360175460081c16604051908152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e57600435610bd7816105f8565b90602435610be4816105f8565b9060443590565b50610bf536610bbf565b90916001600160a01b03808216338103610daf575b610c13846143c3565b908083831603610d9e57600085815260066020526040902080549093909290610c4f6001600160a01b03871633908114908614171590565b1590565b610d7a575b8716928315610d6857878795610cb692610c7288610d129c8b6144da565b610d5e575b50610c95876001600160a01b03166000526005602052604060002090565b80546000190190556001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b851717610cde866000526004602052604060002090565b55811615610d14575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46144f7565b005b60018401610d2c816000526004602052604060002090565b5415610d39575b50610ce7565b6000548114610d3357610d56906000526004602052604060002090565b553880610d33565b6000905538610c77565b604051633a954ecd60e21b8152600490fd5b610d87610c4b3388613732565b15610c5457604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b610db8336146f4565b610c0a565b503461000e57602036600319011261000e5760043560005260166020526020600160406000200154604051908152f35b503461000e57604036600319011261000e576020610e37602435610e10816105f8565b600435600052601f83526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461000e57600036600319011261000e5760206040516420a226a4a760d91b8152f35b503461000e57604036600319011261000e57610e84602435600435612d3d565b604080516001600160a01b03939093168352602083019190915290f35b503461000e57604036600319011261000e57600435602435610ec2816105f8565b610eca612e95565b600091808352601660205260ff610ef78360408620906001600160a01b0316600052602052604060002090565b541615610f02578280f35b8083526016602052610f2a8260408520906001600160a01b0316600052602052604060002090565b805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a438808280f35b503461000e57604036600319011261000e57602435610f89816105f8565b336001600160a01b03821603610fa557610d1290600435612dfc565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e57602060ff601d54166040519015158152f35b503461000e57600036600319011261000e5760206001600160a01b03600d5416604051908152f35b503461000e57602036600319011261000e5760043561107a816105f8565b6110826137d7565b7fffffffffffffffffffffff0000000000000000000000000000000000000000ff74ffffffffffffffffffffffffffffffffffffffff006017549260081b16911617601755600080f35b50600080600319360112610985576110e26137d7565b808080806001600160a01b0360175460081c1647905af1611101614094565b50156109855780f35b503461000e57600036600319011261000e576111246137d7565b60175460ff8116156111635760ff19166017557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606490fd5b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b506111dc36610bbf565b916001600160a01b0392838216903382141594856113e0575b60405192611202846115a8565b600096808886526113d2575b6113c4575b61121c836143c3565b908083831603610d9e576000848152600660205260409020805490939092906112546001600160a01b03891633908114908614171590565b6113a0575b8816928315610d685785948a91611271878c8c6144da565b611398575b5050611295876001600160a01b03166000526005602052604060002090565b80546000190190556112ba886001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b8517176112e2866000526004602052604060002090565b5581161561134f575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8880a461131a81846144f7565b833b611324578480f35b61133193610c4b9361456e565b61133d57388080808480f35b6040516368d2bf6b60e11b8152600490fd5b60018401611367816000526004602052604060002090565b5415611374575b506112eb565b8954811461136e57611390906000526004602052604060002090565b55388061136e565b558838611276565b6113ad610c4b338a613732565b1561125957604051632ce44b5f60e11b8152600490fd5b6113cd336146f4565b611213565b6113db336146f4565b61120e565b6113e9336146f4565b6111f5565b503461000e57604036600319011261000e576020610631600435611411816105f8565b60243590612ff5565b503461000e57600036600319011261000e576020601554604051908152f35b503461000e57602036600319011261000e57602061063160043561443b565b503461000e57602036600319011261000e57611472612e95565b600435601555005b503461000e5760208060031936011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e57806004013591821161000e5760609260248484028301019136831161000e576114d26137d7565b6114db84611ecc565b936040906114eb825196876115e0565b855260248386019201915b84831061150657610d128661417c565b868336031261000e57838791835161151d81611563565b853581528286013561152e816105f8565b8382015261153d858701614121565b858201528152019201916114f6565b50634e487b7160e01b600052604160045260246000fd5b6060810190811067ffffffffffffffff82111761157f57604052565b61158761154c565b604052565b6040810190811067ffffffffffffffff82111761157f57604052565b6020810190811067ffffffffffffffff82111761157f57604052565b6080810190811067ffffffffffffffff82111761157f57604052565b90601f8019910116810190811067ffffffffffffffff82111761157f57604052565b6040519061160f82611563565b565b6040519061160f8261158c565b60209067ffffffffffffffff811161163c575b601f01601f19160190565b61164461154c565b611631565b9291926116558261161e565b9161166360405193846115e0565b82948184528183011161000e578281602093846000960137010152565b602060031982011261000e576004359067ffffffffffffffff821161000e578060238301121561000e578160246108a393600401359101611649565b503461000e576116cb36611680565b6116d36137d7565b805167ffffffffffffffff81116117bd575b6116f9816116f4601854611a42565b613fdd565b602080601f83116001146117365750819260009261172b575b5050600019600383901b1c191660019190911b17601855005b015190503880611712565b90601f1983169361176960186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e90565b926000905b8682106117a5575050836001951061178c575b505050811b01601855005b015160001960f88460031b161c19169055388080611781565b8060018596829496860151815501950193019061176e565b6117c561154c565b6116e5565b503461000e57600036600319011261000e57602060ff601754166040519015158152f35b8015150361000e57565b503461000e5760a036600319011261000e57606435611816816117ee565b61181e6137d7565b600435601a55602435601b55604435601c5560ff8019601d54169115151617601d55608435601e55600080f35b503461000e57600080600319360112610985576118666137d7565b611871601954611a42565b601f8111611883575b50600060195580f35b601f7f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695910160051c8101905b8181106118bc575061187a565b8281556001016118af565b503461000e57602036600319011261000e5760206001600160a01b036118ee6004356143c3565b16604051908152f35b9181601f8401121561000e5782359167ffffffffffffffff831161000e576020808501948460051b01011161000e57565b503461000e57604036600319011261000e5767ffffffffffffffff60043581811161000e5761195b9036906004016118f7565b909160243590811161000e576119759036906004016118f7565b9190926119806137d7565b8282036119fd57600080546001546000199103015b83821061199e57005b6119a98286886137a8565b35906119b582826137c0565b601b54106119f257816119e6916119e16119ec946119dc6119d7888b8b6137a8565b6137cd565b614617565b6137c0565b9161378c565b90611995565b916119ec915061378c565b60405162461bcd60e51b815260206004820152601160248201527f496e76616c696420417267756d656e74730000000000000000000000000000006044820152606490fd5b90600182811c92168015611a72575b6020831014611a5c57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611a51565b6040519060008260185491611a9083611a42565b80835292600190818116908115611b165750600114611ab7575b5061160f925003836115e0565b6018600090815291507fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e5b848310611afb575061160f935050810160200138611aaa565b81935090816020925483858a01015201910190918592611ae2565b90506020925061160f94915060ff191682840152151560051b82010138611aaa565b503461000e57600080600319360112610985576040519080601854611b5c81611a42565b8085529160019180831690811561095b5750600114611b85576106bc856108f4818703826115e0565b9250601883527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e5b828410611bc85750505081016020016108f4826106bc6108e4565b80546020858701810191909152909301928101611bad565b503461000e57602036600319011261000e57611bfa6137d7565b600435601b55005b503461000e57602036600319011261000e576001600160a01b03600435611c28816105f8565b168015611c51576000526005602052602067ffffffffffffffff60406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e5760008060031936011261098557611c7e612e95565b806001600160a01b03600c546001600160a01b03198116600c55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461000e57602036600319011261000e57610d126001600160a01b03600435611ce9816105f8565b611cf1612e95565b16613471565b503461000e57600036600319011261000e57600854604080516001600160a01b038316815260a09290921c61ffff16602083015290f35b503461000e57602036600319011261000e57611d486137d7565b600435601e55005b503461000e57600036600319011261000e576020600a54604051908152f35b503461000e57600036600319011261000e57611d896137d7565b611d91613c0a565b600160ff1960175416176017557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461000e57602036600319011261000e57611de46137d7565b600435601c55005b503461000e57602036600319011261000e57600435611e0a8161443b565b15611e3957611e2d816001600160a01b03611e276106bc946143c3565b16613636565b60405191829182610b32565b60405162461bcd60e51b815260206004820152602d60248201527f416e74695363616d3a206c6f636b696e6720717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608490fd5b503461000e57600036600319011261000e5760206001600160a01b03600c5416604051908152f35b60209067ffffffffffffffff8111611ee6575b60051b0190565b611eee61154c565b611edf565b50606036600319011261000e5767ffffffffffffffff60043581811161000e573660238201121561000e578060040135611f2c81611ecc565b91611f3a60405193846115e0565b81835260209160248385019160051b8301019136831161000e57602401905b828210611f86576044358587821161000e57611f7c610d129236906004016118f7565b9160243590613cb9565b81358152908301908301611f59565b503461000e57604036600319011261000e57602060ff611fe1602435611fba816105f8565b600435600052601684526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b503461000e5760008060031936011261098557604051908060035461201181611a42565b8085529160019180831690811561095b575060011461203a576106bc856108f4818703826115e0565b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061207d5750505081016020016108f4826106bc6108e4565b80546020858701810191909152909301928101612062565b503461000e57604036600319011261000e5760206004356120b5816105f8565b6001600160a01b03806120c96024356143c3565b16906040519216148152f35b503461000e57602036600319011261000e576004356120f3816117ee565b6120fb6137d7565b60ff8019601d54169115151617601d55600080f35b503461000e57600036600319011261000e57602060405160008152f35b503461000e57604036600319011261000e5760043561214b816105f8565b6001600160a01b0360243591612160836117ee565b612169816146f4565b61218561217533613688565b61217e33613708565b90836131dd565b158015612201575b612196906140c4565b3360005260076020526121c0816040600020906001600160a01b0316600052602052604060002090565b9215159260ff1981541660ff851617905560405192835216907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50821561218d565b503461000e57600036600319011261000e576020601a54604051908152f35b604090600319011261000e57600435612240816105f8565b906024356108a3816105f8565b503461000e57602061063161226136612228565b61227361226d82613688565b91613708565b916131dd565b50606036600319011261000e5760243560443560043567ffffffffffffffff821161000e5761239c926123a16122b66123dd9436906004016118f7565b6122c1969196613c0a565b6122d86122d0601c5487612d22565b341015613a8e565b6000966123028854600154900360001990818982010191829101116123fa575b601b541015613ada565b601a5494858952601f6020526123448161233160408c20336001600160a01b0316600052602052604060002090565b548981018091116123ed575b1115613b26565b61235360ff601d541615613b72565b6040513360601b6bffffffffffffffffffffffff191660208201908152603482019290925261238f81605481015b03601f1981018352826115e0565b51902091601e5491613c5b565b613bbe565b8352601f6020526123c83360408520906001600160a01b0316600052602052604060002090565b8054908282018092116123e0575b5533614617565b80f35b6123e8612d0b565b6123d6565b6123f5612d0b565b61233d565b612402612d0b565b6122f8565b503461000e5761241636612228565b50506106bc610b06613049565b503461000e57600036600319011261000e576020600154604051908152f35b50608036600319011261000e576004803561245c816105f8565b60243590612469826105f8565b60443560643567ffffffffffffffff811161000e573660238201121561000e5761249c9036906024818801359101611649565b906001600160a01b0380841690338214158061268b575b61267d575b6124c1836143c3565b91808284160361266d57600084815260066020526040902080549390926124f76001600160a01b03891633908114908714171590565b61264a575b8816928315612639578594612512868b8b6144da565b61262f575b50612535876001600160a01b03166000526005602052604060002090565b805460001901905561255a886001600160a01b03166000526005602052604060002090565b80546001019055600160e11b804260a01b851717612582866000526004602052604060002090565b558116156125e5575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46125bb81846144f7565b833b6125c357005b6125d093610c4b9361456e565b6125d657005b6040516368d2bf6b60e11b8152fd5b600184016125fd816000526004602052604060002090565b541561260a575b5061258b565b600054811461260457612627906000526004602052604060002090565b553880612604565b6000905538612517565b604051633a954ecd60e21b81528a90fd5b612657610c4b338a613732565b156124fc57604051632ce44b5f60e11b81528a90fd5b60405162a1148160e81b81528890fd5b612686336146f4565b6124b8565b612694336146f4565b6124b3565b503461000e57600036600319011261000e576020601c54604051908152f35b503461000e576000806003193601126109855760405190806019546126dc81611a42565b8085529160019180831690811561095b5750600114612705576106bc856108f4818703826115e0565b9250601983527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96955b8284106127485750505081016020016108f4826106bc6108e4565b8054602085870181019190915290930192810161272d565b503461000e57602036600319011261000e5760043561277e8161443b565b156128465761278b611a7c565b80519091906000901561282557506040519060a08201604052608082019060008252905b6000190190600a9060308282060183530490816127af576108f4915061280d6127fb916106bc95612801612820966080601f1994858101920301815260405195869360208501906138b3565b906138b3565b039081018352826115e0565b61238160405193849260208401906138b3565b613f37565b6040516106bc935061282092506108f49161283f826115a8565b815261280d565b604051630a14c4b560e41b8152600490fd5b503461000e57604036600319011261000e57610d12602435612879816105f8565b612881612e95565b600435612dfc565b503461000e57600036600319011261000e576020601b54604051908152f35b503461000e576128b736611680565b6128bf6137d7565b805167ffffffffffffffff81116129a9575b6128e5816128e0601954611a42565b61403e565b602080601f831160011461292257508192600092612917575b5050600019600383901b1c191660019190911b17601955005b0151905038806128fe565b90601f1983169361295560196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c969590565b926000905b8682106129915750508360019510612978575b505050811b01601955005b015160001960f88460031b161c1916905538808061296d565b8060018596829496860151815501950193019061295a565b6129b161154c565b6128d1565b503461000e5760206106316129ca36612228565b90613732565b503461000e57606036600319011261000e57610afb6004356105f8565b503461000e57604036600319011261000e57612a076137d7565b7f2c5ea6e4103e78cb101e796fb2dace540362fc542cbff5145eaa24af7dd8fe41604051612a348161158c565b600435612a40816105f8565b8152612ae0612ad7612a50614110565b926020810193808552612a6b61271061ffff80931610614130565b612aaf6001600160a01b03835116865192602060405191612a8b8361158c565b83835285169101526001600160a01b03166001600160a01b03196008541617600855565b61ffff60a01b1961ffff60a01b6008549260a01b16911617600855516001600160a01b031690565b915161ffff1690565b604080516001600160a01b0393909316835261ffff91909116602083015290a1005b503461000e57602036600319011261000e57600435612b20816105f8565b612b28612e95565b6001600160a01b03809116908115612b7557600c54826001600160a01b0319821617600c55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b503461000e57602036600319011261000e57612bfa6137d7565b600435601a55005b503461000e57602036600319011261000e57600435600481101561000e57612c28612e95565b8015612c415760ff801960145416911617601455600080f35b60405162461bcd60e51b815260206004820152603060248201527f416e74695363616d3a20636f6e7472616374206c6f636b20737461747573206360448201527f616e206e6f742073657420554e534554000000000000000000000000000000006064820152608490fd5b503461000e57608036600319011261000e57612cc96004356105f8565b610afb6024356105f8565b503461000e57602036600319011261000e57610d126001600160a01b03600435612cfd816105f8565b612d05612e95565b16613295565b50634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715612d3557565b61160f612d0b565b91908260005260096020526001600160a01b03928360406000205416612dab57506008549283169283151580612d9b575b612d7e5750509050600090600090565b6108a39161ffff612d939260a01c1690612d22565b612710900490565b5061ffff8160a01c161515612d6e565b926108a391612df6612def612de4612d9394612dd1896000526009602052604060002090565b5416976000526009602052604060002090565b5460a01c61ffff1690565b61ffff1690565b90612d22565b600090808252601660205260ff612e298460408520906001600160a01b0316600052602052604060002090565b5416612e3457505050565b8082526016602052612e5c8360408420906001600160a01b0316600052602052604060002090565b60ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6001600160a01b033394169280a4565b6001600160a01b03600c54163303612ea957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b50634e487b7160e01b600052603260045260246000fd5b600a54811015612f3c575b600a6000527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b612f44612eed565b612f0f565b600e54811015612f81575b600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0190600090565b612f89612eed565b612f54565b906000916001600160a01b039081612fa5826143c3565b16612fba82612fb48184613636565b926136e2565b90612fc481610b12565b60028103612fe6575050612fd7906143c3565b163314612fe057565b60009150565b915091506108a3929350613083565b600092916001600160a01b03918261300c836143c3565b1661301b83612fb48184613636565b9161302582610b12565b6002820361303957505050612fd7906143c3565b91935091506108a39394506131dd565b604051613055816115a8565b60008152906000368137565b9081602091031261000e57516108a3816117ee565b506040513d6000823e3d90fd5b61308c81610b12565b6001810361309b575050600090565b6130a481610b12565b600381036130b3575050600190565b806130bf600292610b12565b03613194576130cc6135d4565b61318e576130f16130e5600d546001600160a01b031690565b6001600160a01b031690565b6001600160a01b0381161561318757604051630f8350ed60e41b815260006004820152602481019290925260209082908180604481015b03915afa90811561317a575b60009161314c575b501561314757600090565b600190565b61316d915060203d8111613173575b61316581836115e0565b810190613061565b3861313c565b503d61315b565b613182613076565b613134565b5050600190565b50600090565b60405162461bcd60e51b815260206004820152601560248201527f4c6f636b53746174757320697320696e76616c696400000000000000000000006044820152606490fd5b0390fd5b906131e781610b12565b600181036131f757505050600090565b61320081610b12565b6003810361321057505050600190565b8061321c600292610b12565b036131945761322a81613612565b61328e576132436130e5600d546001600160a01b031690565b916001600160a01b0383161561328657604051630f8350ed60e41b81526001600160a01b0390921660048301526024820152906020908290818060448101613128565b505050600190565b5050600090565b80600052600f6020526040600020541560001461318e5780600e5468010000000000000000811015613319575b6001810180600e5581101561330c575b7fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155600e5490600052600f602052604060002055600190565b613314612eed565b6132d2565b61332161154c565b6132c2565b80600052600b6020526040600020541560001461318e5780600a54680100000000000000008110156133aa575b6001810180600a5581101561339d575b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155600a5490600052600b602052604060002055600190565b6133a5612eed565b613363565b6133b261154c565b613353565b600e5480156134095760007fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fc8119830192808410156133fc575b600e83520155600e55565b613404612eed565b6133f1565b634e487b7160e01b600052603160045260246000fd5b600a5480156134095760007fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a7811983019280841015613464575b600a83520155600a55565b61346c612eed565b613459565b6000818152600f6020526040902054801561328e576000916134cc9160001980820182811161352b575b600e5491820191821161351e575b8082036134d2575b5050506134bc6133b7565b600052600f602052604060002090565b55600190565b6134bc6134fa916134f26134e861351595612f49565b90549060031b1c90565b928391612f49565b90919082549060031b600019811b9283911b16911916179055565b553880806134b1565b613526612d0b565b6134a9565b613533612d0b565b61349b565b6000818152600b6020526040902054801561328e576000916134cc916000198082018281116135c7575b600a549182019182116135ba575b808203613593575b50505061358361341f565b600052600b602052604060002090565b6135836134fa916135a96134e86135b195612f04565b928391612f04565b55388080613578565b6135c2612d0b565b613570565b6135cf612d0b565b613562565b6000808052600f6020527ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec37554151560011461360c5790565b50600190565b6001600160a01b03600091168152600f6020526001604082205415151461360c5790565b6000828152601060205260ff60408220541660048110156136745761366057506108a39150613688565b6040915060ff928152601060205220541690565b634e487b7160e01b82526021600452602482fd5b6001600160a01b0316600090808252601260205260ff60408320541660048110156136ce576136bc57505060ff6014541690565b81526012602052604090205460ff1690565b634e487b7160e01b83526021600452602483fd5b9060005260116020526040600020546136fe576108a390613708565b5060406000205490565b6001600160a01b031660005260136020526040600020546137295760155490565b60406000205490565b61374e61373e82613688565b61374783613708565b90846131dd565b61328e5760ff916001600160a01b03613787921660005260076020526040600020906001600160a01b0316600052602052604060002090565b541690565b600190600019811461379c570190565b6137a4612d0b565b0190565b91908110156137b85760051b0190565b611eee612eed565b91908201809211612d3557565b356108a3816105f8565b3360009081527f3835dd571b9a380a03cb4b8ddc8ac8b23604b3d676d215313b9d5f8efd29d90c602052604090205460ff161561381057565b6131d9604861389b61382133613972565b61238161382c613a08565b6040519485937f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000602086015261386c81518092602060378901910161084a565b84017f206973206d697373696e6720726f6c6520000000000000000000000000000000603782015201906138b3565b60405162461bcd60e51b815291829160048301610892565b906137a46020928281519485920161084a565b6020908051156138d4570190565b6137a4612eed565b6021908051600110156138d4570190565b9060209180518210156138ff57010190565b613907612eed565b010190565b801561391a575b6000190190565b613922612d0b565b613913565b1561392e57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b6040519061397f82611563565b602a825260403660208401376030613996836138c6565b5360786139a2836138dc565b536029905b600182116139ba576108a3915015613927565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f6139f5931660108110156139fb575b1a6139eb84866138ed565b5360041c9161390c565b906139a7565b613a03612eed565b6139e0565b6040516420a226a4a760d91b613a1d826115c4565b6042825260603660208401376030613a34836138c6565b536078613a40836138dc565b536041905b60018211613a58576108a3915015613927565b806f181899199a1a9b1b9c1cb0b131b232b360811b600f613a88931660108110156139fb571a6139eb84866138ed565b90613a45565b15613a9557565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b15613ae157565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b15613b2d57565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b15613b7957565b60405162461bcd60e51b815260206004820152601960248201527f496e76616c69642049734275726e4d696e7420537461747573000000000000006044820152606490fd5b15613bc557565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b60ff60175416613c1657565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b9192916000915b808310613c70575050501490565b909192613c7e8483856137a8565b3590600082821015613ca75750600052602052613ca060406000205b9361378c565b9190613c62565b604091613ca093825260205220613c9a565b90919261239c613d5d91613ccb613c0a565b613cdc6122d08551601c5490612d22565b835195600095613d0a8754986001998a549003600019809282010191829101116123fa57601b541015613ada565b613d4b818751601a548a52601f602052613d3960408b20336001600160a01b0316600052602052604060002090565b549081018091116123ed571115613b26565b6123538860ff601d5416151514613b72565b8051924260a01b835b858110613dbb57505050505061160f90613da833613d90601a54600052601f602052604060002090565b906001600160a01b0316600052602052604060002090565b613db38282546137c0565b905533614617565b613dc58185613f15565b516001600160a01b0380613dd8836143c3565b163303613f115781613ea491613df1613ebc95946143c3565b9081169089613e0d846000526006602052604060002090815490565b613e178686614476565b613f09575b5050613e3b826001600160a01b03166000526005602052604060002090565b80546fffffffffffffffffffffffffffffffff0190556000838152600460205260409020828817600360e01b179055600160e11b811615613ec1575b508189827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a46144f7565b613eb7613eb2855460010190565b600155565b61378c565b613d66565b878301613ed8816000526004602052604060002090565b5415613ee5575b50613e77565b8a548114613edf57613f01906000526004602052604060002090565b553880613edf565b558938613e1c565b8680fd5b6020918151811015613f2a575b60051b010190565b613f32612eed565b613f22565b60195460009291613f4782611a42565b91600190818116908115613fb35750600114613f6257505050565b909192935060196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695906000915b848310613fa0575050500190565b8181602092548587015201920191613f92565b60ff191683525050811515909102019150565b818110613fd1575050565b60008155600101613fc6565b90601f8211613fea575050565b61160f9160186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e906020601f840160051c83019310614034575b601f0160051c0190613fc6565b9091508190614027565b90601f821161404b575050565b61160f9160196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695906020601f840160051c8301931061403457601f0160051c0190613fc6565b3d156140bf573d906140a58261161e565b916140b360405193846115e0565b82523d6000602084013e565b606090565b156140cb57565b60405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420617070726f7665206c6f636b656420746f6b656e000000006044820152606490fd5b6024359061ffff8216820361000e57565b359061ffff8216820361000e57565b1561413757565b60405162461bcd60e51b815260206004820152600b60248201527f496e76616c6964206270730000000000000000000000000000000000000000006044820152606490fd5b906000805b835181101561435057806141986142449286613f15565b516040908181016141ba6127106141b4612def845161ffff1690565b10614130565b6020808301906141d182516001600160a01b031690565b906001600160a01b03821661424957505050507fa2870857763bd9ae76c957f869f16b31c18dd3bb4c7b4d3a4496dc5c57c657f991818661422061423c94516000526009602052604060002090565b5561422b8151613538565b505190519081529081906020820190565b0390a161378c565b614181565b61431d84956143037f389b70fb0887f01e83784eb1c4c589f740eca53b00ed0f45e41db5d079719abb98946142b16143269561428b61423c999a5161ffff1690565b906142a6614297611611565b6001600160a01b039095168552565b83019061ffff169052565b6142c683516000526009602052604060002090565b815181546001600160a01b0319166001600160a01b0391909116178155906020015161ffff60a01b1961ffff60a01b83549260a01b169116179055565b61430d8151613326565b505194516001600160a01b031690565b945161ffff1690565b90519283526001600160a01b03909316602083015261ffff90921660408201529081906060820190565b50509050565b63ffffffff60e01b1663152a902d60e11b8114908115614389575b811561437b575090565b6301ffc9a760e01b14919050565b63c69dbd8f60e01b81149150614371565b6001600160e01b03198116637aa3e02b60e11b149081156143b9575090565b6108a39150614356565b60008180600111156143e2575b604051636f96cda160e11b8152600490fd5b81548110156143d05781526004906020918083526040928383205494600160e01b861615614412575050506143d0565b93929190935b851561442657505050505090565b60001901808352818552838320549550614418565b8060011115908161446a575b81614450575090565b90506000526004602052600160e01b604060002054161590565b60005481109150614447565b6001600160a01b03166144865750565b61448f90612f8e565b61449557565b60405162461bcd60e51b815260206004820152600660248201527f4c4f434b454400000000000000000000000000000000000000000000000000006044820152606490fd5b9091906001600160a01b03166144ee575050565b61448f91612ff5565b6001600160a01b03166145075750565b6000526010602052604060002060ff198154169055601160205260006040812055565b9081602091031261000e57516108a38161063b565b90926108a394936080936001600160a01b0380921684521660208301526040820152816060820152019061086d565b9260209161459f9360006001600160a01b03604051809781968295630a85bd0160e11b9b8c8552336004860161453f565b0393165af1600091816145e7575b506145d9576145ba614094565b805190816145d4576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b61460991925060203d8111614610575b61460181836115e0565b81019061452a565b90386145ad565b503d6145f7565b9060009081549281156146e257614641816001600160a01b03166000526005602052604060002090565b68010000000000000001830281540190556001600160a01b03600191169181811460e11b4260a01b178317614680866000526004602052604060002090565b55840193817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91808587858180a4015b8581036146d357505050156146c25755565b604051622e076360e81b8152600490fd5b8083918587858180a4016146b0565b60405163b562e8dd60e01b8152600490fd5b6daaeb6d7670e522a718067333cd4e803b61470d575050565b602060449160405192838092633185c44d60e21b82523060048301526001600160a01b03871660248301525afa908115614794575b600091614776575b50156147535750565b604051633b79c77360e21b81526001600160a01b03919091166004820152602490fd5b61478e915060203d81116131735761316581836115e0565b3861474a565b61479c613076565b61474256fea164736f6c6343000811000a

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

000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931

-----Decoded View---------------
Arg [0] : _withdrawAddress (address): 0x474f057fFd4184cE80236d39C88E8ECFe8589931

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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