ETH Price: $3,348.25 (-0.46%)

Contract

0xC92528B4AB6fd7c1F5012CD049c2A48e6a0400dE
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...206519192024-08-31 23:45:11117 days ago1725147911IN
0xC92528B4...e6a0400dE
0 ETH0.000028051.15761563
Set Approval For...202938352024-07-12 23:53:23167 days ago1720828403IN
0xC92528B4...e6a0400dE
0 ETH0.000043121.77402426
Set Approval For...195992842024-04-06 21:13:11264 days ago1712437991IN
0xC92528B4...e6a0400dE
0 ETH0.000273211.27127367
Set Approval For...191136352024-01-29 17:20:59332 days ago1706548859IN
0xC92528B4...e6a0400dE
0 ETH0.0005634223.1756029
Set Approval For...190931922024-01-26 20:35:35335 days ago1706301335IN
0xC92528B4...e6a0400dE
0 ETH0.0003863715.89314661
Set Approval For...190578272024-01-21 21:22:47340 days ago1705872167IN
0xC92528B4...e6a0400dE
0 ETH0.0003625314.91224138
Set Approval For...189360642024-01-04 19:31:59357 days ago1704396719IN
0xC92528B4...e6a0400dE
0 ETH0.0006422126.41665861
Set Approval For...189325092024-01-04 7:34:23358 days ago1704353663IN
0xC92528B4...e6a0400dE
0 ETH0.0003762615.52310105
Set Approval For...189324802024-01-04 7:28:35358 days ago1704353315IN
0xC92528B4...e6a0400dE
0 ETH0.0003680615.13969328
Set Approval For...189035272023-12-31 5:57:59362 days ago1704002279IN
0xC92528B4...e6a0400dE
0 ETH0.0003219913.28403428
Set Approval For...188910522023-12-29 11:50:59363 days ago1703850659IN
0xC92528B4...e6a0400dE
0 ETH0.0004399218.09555021
Set Approval For...187520002023-12-09 23:40:35383 days ago1702165235IN
0xC92528B4...e6a0400dE
0 ETH0.0008675335.79093602
Set Approval For...184033872023-10-22 4:14:35432 days ago1697948075IN
0xC92528B4...e6a0400dE
0 ETH0.00014986.16199476
Set Approval For...183041602023-10-08 7:05:11446 days ago1696748711IN
0xC92528B4...e6a0400dE
0 ETH0.000139685.76287925
Set Approval For...183041592023-10-08 7:04:59446 days ago1696748699IN
0xC92528B4...e6a0400dE
0 ETH0.000149936.16746256
Set Approval For...177954222023-07-29 1:28:59517 days ago1690594139IN
0xC92528B4...e6a0400dE
0 ETH0.0004132817
Set Approval For...177954182023-07-29 1:28:11517 days ago1690594091IN
0xC92528B4...e6a0400dE
0 ETH0.0004009716.542371
Set Approval For...174778852023-06-14 11:28:47561 days ago1686742127IN
0xC92528B4...e6a0400dE
0 ETH0.0004200917.33151149
Set Approval For...172491862023-05-13 6:08:23594 days ago1683958103IN
0xC92528B4...e6a0400dE
0 ETH0.0009848240.50959887
Set Approval For...169934302023-04-07 1:38:35630 days ago1680831515IN
0xC92528B4...e6a0400dE
0 ETH0.0010001221.67072116
Set Approval For...169793772023-04-05 1:33:47632 days ago1680658427IN
0xC92528B4...e6a0400dE
0 ETH0.0018347639.75577077
Transfer From169470412023-03-31 11:59:23636 days ago1680263963IN
0xC92528B4...e6a0400dE
0 ETH0.0012815520.84274249
Set Approval For...169440032023-03-31 1:45:35637 days ago1680227135IN
0xC92528B4...e6a0400dE
0 ETH0.0012005926.01447915
Set Approval For...168204852023-03-13 17:15:23654 days ago1678727723IN
0xC92528B4...e6a0400dE
0 ETH0.0016556235.87398773
Approve168191832023-03-13 12:51:11654 days ago1678711871IN
0xC92528B4...e6a0400dE
0 ETH0.0010951321.63394681
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
151216592022-07-11 13:44:52899 days ago1657547092
0xC92528B4...e6a0400dE
8.16 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Savior

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 1337 runs

Other Settings:
default evmVersion
File 1 of 12 : Savior.sol
pragma solidity ^0.8.12;

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "erc721a/contracts/interfaces/IERC721ABurnable.sol";

contract Savior is ERC721AQueryable, Ownable {
    using ECDSA for bytes32;
    using Strings for uint256;

    struct AuctionConfig {
        uint8 maxPerWallet;
        uint16 maxAuctionSupply;
        uint16 auctionMinted;
        uint16 curveLength; 
        uint16 intervalDrop; 
        uint32 startTime; 
        uint112 startPrice; 
        uint112 endPrice;  
        uint112 stepSize;
    }

    struct MintTimes {
        uint112 startTime;
        uint112 endTime;
    }

    IERC721ABurnable public vitriolToken;
    IERC20 public suckerToken;
    address private signer;

    AuctionConfig public auctionConfig;
    MintTimes public timeForMint;

    uint256 constant public maxSupply = 4444;
    uint256 constant public suckerNeeded = 5000000000 * 10 ** 18; 

    string private _baseTokenURI;
    bool revealed;

    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    address private _royaltyAddress;
    uint256 private _royaltyPercentage;

    mapping (bytes => bool) public claimed;

    constructor(MintTimes memory _mintTimes, AuctionConfig memory _auctionConfig, IERC721ABurnable _vitriolToken, IERC20 _suckerToken, address _signer, address royaltyAddress, uint256 royaltyPercentage, string memory baseTokenURI) ERC721A("Saviors", "SAVIOR") {
        timeForMint = _mintTimes;
        auctionConfig = _auctionConfig;
        vitriolToken = _vitriolToken;
        suckerToken = _suckerToken;
        signer = _signer;
        _baseTokenURI = baseTokenURI;
    }
    
    function holderClaim(uint256[] memory tokenIds) external {
        require(block.timestamp >= timeForMint.startTime, "NOT_ACTIVE");
        require(tokenIds.length > 0 && totalSupply() + tokenIds.length <= maxSupply, "MAX_SUPPLY");
        uint256 i;
        for(i; i < tokenIds.length;) {
            uint256 vitriolId = tokenIds[i];
            require(vitriolToken.ownerOf(vitriolId) == msg.sender, "NOT_OWNER");
            vitriolToken.burn(vitriolId);
            unchecked { ++i; }
        }
        require(suckerToken.transferFrom(msg.sender, address(this), suckerNeeded * tokenIds.length), "FAILED_TRANSFER");
        _mint(msg.sender, tokenIds.length * 2);
    }

    function freeMint(bytes calldata signature) external {
        require(block.timestamp >= timeForMint.startTime && block.timestamp <= timeForMint.endTime, "NOT_ACTIVE");
        require(totalSupply() + 1 <= maxSupply);
        require(!claimed[signature], "ALREADY_CLAIMED");
        require(keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32",
            keccak256(abi.encodePacked(msg.sender))
        )).recover(signature) == signer);
        claimed[signature] = true;
        _mint(msg.sender, 1);
    }

    function auctionBuy(uint256 quantity) public payable {
        AuctionConfig memory _auctionConfig = auctionConfig;
        require(_auctionConfig.auctionMinted + quantity <= _auctionConfig.maxAuctionSupply, "MAX_SUPPLY");
        require(quantity <= _auctionConfig.maxPerWallet, "MAX_PER_WALLET");
        uint256 startTime = uint256(auctionConfig.startTime);
        require(startTime != 0 && block.timestamp >= startTime, "NOT_ACTIVE");
        uint256 cost = getPrice() * quantity;
        require(msg.value >= cost, "NOT_ENOUGH_ETHER");
        auctionConfig.auctionMinted += uint16(quantity);
        _mint(msg.sender, quantity);
    }


    function ownerMint(uint256 quantity) external onlyOwner {
        require(totalSupply() + quantity <= maxSupply, "MAX_SUPPLY");
        _mint(msg.sender, quantity);
    }

    function editMintTimes(MintTimes memory _mintTime) external onlyOwner {
        timeForMint = _mintTime;
    }

    function editAuctionSupply(uint16 _newSupply) external onlyOwner {
        auctionConfig.maxAuctionSupply = _newSupply;
    }

    function editAuctionConfig(AuctionConfig memory newConfig) external onlyOwner {
        auctionConfig = newConfig;
    }
    
    function editSigner(address _newSigner) external onlyOwner {
        signer = _newSigner;
    }

    function editBaseURI(string memory _base) external onlyOwner {
        _baseTokenURI = _base;
    }

    function reveal(string memory _newBase) external onlyOwner {
        revealed = true;
        _baseTokenURI = _newBase;
    }

    function editRoyaltyFee(address to, uint256 percent) external onlyOwner {
        _royaltyAddress = to;
        _royaltyPercentage = percent;
    }

    function withdraw() external onlyOwner {
        (bool sent, ) = payable(msg.sender).call{value: address(this).balance }("");
        require(sent, "FAILED");
    }

    function getPrice() public view returns (uint256) {
      if(block.timestamp < auctionConfig.startTime) {
        return auctionConfig.startPrice;
      }
      uint256 timeLeft = block.timestamp - auctionConfig.startTime;
      if(timeLeft >= auctionConfig.curveLength) {
        return auctionConfig.endPrice;
      } else {
        uint256 steps = timeLeft / auctionConfig.intervalDrop;
        return auctionConfig.startPrice - (steps * auctionConfig.stepSize);
      }
    }

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

    function tokenURI(uint256 tokenId) public view override(ERC721A, IERC721A) returns (string memory) {
        require(_exists(tokenId),"ERC721Metadata: URI query for nonexistent token");
        string memory currentBaseURI = _baseURI();
        if(revealed) {
            return string(abi.encodePacked(currentBaseURI, tokenId.toString(), ".json"));
        } else {
            return currentBaseURI;
        }
    } 

    function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) {
        return (_royaltyAddress, value * _royaltyPercentage / 10000);
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }
}

File 2 of 12 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../extensions/IERC721ABurnable.sol';

File 3 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

File 9 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
 * including the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at `_startTokenId()`
 * (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // 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 tokenId of the next token 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 => address) private _tokenApprovals;

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

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

    /**
     * @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 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 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 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 returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    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: 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.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view 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 {
        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;
    }

    /**
     * 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 ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

    /**
     * @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 See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _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 '';
    }

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ownerOf(tokenId);

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

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

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _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 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 {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` 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 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _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 {
        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 Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(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++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try 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))
                }
            }
        }
    }

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        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 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;
    }

    /**
     * @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 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 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 returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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

File 10 of 12 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

File 11 of 12 : 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 12 of 12 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

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

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev 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 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"uint112","name":"startTime","type":"uint112"},{"internalType":"uint112","name":"endTime","type":"uint112"}],"internalType":"struct Savior.MintTimes","name":"_mintTimes","type":"tuple"},{"components":[{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint16","name":"maxAuctionSupply","type":"uint16"},{"internalType":"uint16","name":"auctionMinted","type":"uint16"},{"internalType":"uint16","name":"curveLength","type":"uint16"},{"internalType":"uint16","name":"intervalDrop","type":"uint16"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint112","name":"startPrice","type":"uint112"},{"internalType":"uint112","name":"endPrice","type":"uint112"},{"internalType":"uint112","name":"stepSize","type":"uint112"}],"internalType":"struct Savior.AuctionConfig","name":"_auctionConfig","type":"tuple"},{"internalType":"contract IERC721ABurnable","name":"_vitriolToken","type":"address"},{"internalType":"contract IERC20","name":"_suckerToken","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"address","name":"royaltyAddress","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"},{"internalType":"string","name":"baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"auctionBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"auctionConfig","outputs":[{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint16","name":"maxAuctionSupply","type":"uint16"},{"internalType":"uint16","name":"auctionMinted","type":"uint16"},{"internalType":"uint16","name":"curveLength","type":"uint16"},{"internalType":"uint16","name":"intervalDrop","type":"uint16"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint112","name":"startPrice","type":"uint112"},{"internalType":"uint112","name":"endPrice","type":"uint112"},{"internalType":"uint112","name":"stepSize","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint16","name":"maxAuctionSupply","type":"uint16"},{"internalType":"uint16","name":"auctionMinted","type":"uint16"},{"internalType":"uint16","name":"curveLength","type":"uint16"},{"internalType":"uint16","name":"intervalDrop","type":"uint16"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint112","name":"startPrice","type":"uint112"},{"internalType":"uint112","name":"endPrice","type":"uint112"},{"internalType":"uint112","name":"stepSize","type":"uint112"}],"internalType":"struct Savior.AuctionConfig","name":"newConfig","type":"tuple"}],"name":"editAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newSupply","type":"uint16"}],"name":"editAuctionSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"}],"name":"editBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint112","name":"startTime","type":"uint112"},{"internalType":"uint112","name":"endTime","type":"uint112"}],"internalType":"struct Savior.MintTimes","name":"_mintTime","type":"tuple"}],"name":"editMintTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"editRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"editSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"holderClaim","outputs":[],"stateMutability":"nonpayable","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":"maxSupply","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":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBase","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"suckerNeeded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"suckerToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"timeForMint","outputs":[{"internalType":"uint112","name":"startTime","type":"uint112"},{"internalType":"uint112","name":"endTime","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vitriolToken","outputs":[{"internalType":"contract IERC721ABurnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200400a3803806200400a83398101604081905262000034916200066a565b6040805180820182526007815266536176696f727360c81b60208083019182528351808501909452600684526529a0ab24a7a960d11b90840152815191929162000081916002916200035a565b508051620000979060039060208401906200035a565b5050600160005550620000aa3362000308565b87600e60008201518160000160006101000a8154816001600160701b0302191690836001600160701b03160217905550602082015181600001600e6101000a8154816001600160701b0302191690836001600160701b0316021790555090505086600c60008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548161ffff021916908361ffff16021790555060408201518160000160036101000a81548161ffff021916908361ffff16021790555060608201518160000160056101000a81548161ffff021916908361ffff16021790555060808201518160000160076101000a81548161ffff021916908361ffff16021790555060a08201518160000160096101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600001600d6101000a8154816001600160701b0302191690836001600160701b0316021790555060e08201518160010160006101000a8154816001600160701b0302191690836001600160701b0316021790555061010082015181600101600e6101000a8154816001600160701b0302191690836001600160701b0316021790555090505085600960006101000a8154816001600160a01b0302191690836001600160a01b0316021790555084600a60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083600b60006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600f9080519060200190620002f99291906200035a565b50505050505050505062000799565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000368906200075c565b90600052602060002090601f0160209004810192826200038c5760008555620003d7565b82601f10620003a757805160ff1916838001178555620003d7565b82800160010185558215620003d7579182015b82811115620003d7578251825591602001919060010190620003ba565b50620003e5929150620003e9565b5090565b5b80821115620003e55760008155600101620003ea565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b03811182821017156200043c576200043c62000400565b60405290565b604080519081016001600160401b03811182821017156200043c576200043c62000400565b604051601f8201601f191681016001600160401b038111828210171562000492576200049262000400565b604052919050565b80516001600160701b0381168114620004b257600080fd5b919050565b805160ff81168114620004b257600080fd5b805161ffff81168114620004b257600080fd5b805163ffffffff81168114620004b257600080fd5b600061012082840312156200050557600080fd5b6200050f62000416565b90506200051c82620004b7565b81526200052c60208301620004c9565b60208201526200053f60408301620004c9565b60408201526200055260608301620004c9565b60608201526200056560808301620004c9565b60808201526200057860a08301620004dc565b60a08201526200058b60c083016200049a565b60c08201526200059e60e083016200049a565b60e0820152610100620005b38184016200049a565b9082015292915050565b80516001600160a01b0381168114620004b257600080fd5b600082601f830112620005e757600080fd5b81516001600160401b0381111562000603576200060362000400565b602062000619601f8301601f1916820162000467565b82815285828487010111156200062e57600080fd5b60005b838110156200064e57858101830151828201840152820162000631565b83811115620006605760008385840101525b5095945050505050565b600080600080600080600080888a036102208112156200068957600080fd5b60408112156200069857600080fd5b50620006a362000442565b620006ae8a6200049a565b8152620006be60208b016200049a565b60208201529750620006d48a60408b01620004f1565b9650620006e56101608a01620005bd565b9550620006f66101808a01620005bd565b9450620007076101a08a01620005bd565b9350620007186101c08a01620005bd565b6101e08a01516102008b015191945092506001600160401b038111156200073e57600080fd5b6200074c8b828c01620005d5565b9150509295985092959890939650565b600181811c908216806200077157607f821691505b602082108114156200079357634e487b7160e01b600052602260045260246000fd5b50919050565b61386180620007a96000396000f3fe6080604052600436106102d15760003560e01c806395d89b4111610179578063bb406135116100d6578063d5abeb011161008a578063f19e75d411610064578063f19e75d414610921578063f2fde38b14610941578063f4a7370f1461096157600080fd5b8063d5abeb01146108a2578063e3ec7b72146108b8578063e985e9c5146108d857600080fd5b8063c23dc68f116100bb578063c23dc68f14610835578063c87b56dd14610862578063d0413b9f1461088257600080fd5b8063bb40613514610717578063bbac408c146107fa57600080fd5b8063a4513e921161012d578063b7e6570011610112578063b7e65700146106b7578063b88d4fde146106d7578063b95901a2146106f757600080fd5b8063a4513e9214610684578063ae47a182146106a457600080fd5b806399a2557a1161015e57806399a2557a146105f95780639e0670be14610619578063a22cb4651461066457600080fd5b806395d89b41146105cf57806398d5fdca146105e457600080fd5b806342842e0e1161023257806364febc38116101e6578063715018a6116101c0578063715018a61461056f5780638462151c146105845780638da5cb5b146105b157600080fd5b806364febc381461050f5780636e7625271461052f57806370a082311461054f57600080fd5b80635bbb2177116102175780635bbb2177146104a25780636352211e146104cf57806363f5c9e4146104ef57600080fd5b806342842e0e146104625780634c2612471461048257600080fd5b8063184d6753116102895780632a55205a1161026e5780632a55205a146103ee5780633441d93b1461042d5780633ccfd60b1461044d57600080fd5b8063184d6753146103ae57806323b872dd146103ce57600080fd5b8063081812fc116102ba578063081812fc1461032d578063095ea7b31461036557806318160ddd1461038757600080fd5b806301ffc9a7146102d657806306fdde031461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612e7d565b610981565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610320610a1e565b6040516103029190612ef2565b34801561033957600080fd5b5061034d610348366004612f05565b610ab0565b6040516001600160a01b039091168152602001610302565b34801561037157600080fd5b50610385610380366004612f33565b610b0d565b005b34801561039357600080fd5b5060015460005403600019015b604051908152602001610302565b3480156103ba57600080fd5b5060095461034d906001600160a01b031681565b3480156103da57600080fd5b506103856103e9366004612f5f565b610bf0565b3480156103fa57600080fd5b5061040e610409366004612fa0565b610dea565b604080516001600160a01b039093168352602083019190915201610302565b34801561043957600080fd5b506103a06b1027e72f1f1281308800000081565b34801561045957600080fd5b50610385610e2a565b34801561046e57600080fd5b5061038561047d366004612f5f565b610f24565b34801561048e57600080fd5b5061038561049d36600461308b565b610f44565b3480156104ae57600080fd5b506104c26104bd3660046130d4565b610fc2565b604051610302919061317a565b3480156104db57600080fd5b5061034d6104ea366004612f05565b611090565b3480156104fb57600080fd5b50600a5461034d906001600160a01b031681565b34801561051b57600080fd5b5061038561052a3660046130d4565b61109b565b34801561053b57600080fd5b5061038561054a36600461308b565b6113e8565b34801561055b57600080fd5b506103a061056a3660046131f7565b611455565b34801561057b57600080fd5b506103856114bd565b34801561059057600080fd5b506105a461059f3660046131f7565b611523565b6040516103029190613214565b3480156105bd57600080fd5b506008546001600160a01b031661034d565b3480156105db57600080fd5b5061032061162e565b3480156105f057600080fd5b506103a061163d565b34801561060557600080fd5b506105a461061436600461324c565b611728565b34801561062557600080fd5b50600e54610644906001600160701b0380821691600160701b90041682565b604080516001600160701b03938416815292909116602083015201610302565b34801561067057600080fd5b5061038561067f36600461328f565b6118cd565b34801561069057600080fd5b5061038561069f3660046132c8565b61197c565b6103856106b2366004612f05565b611bb7565b3480156106c357600080fd5b506103856106d2366004612f33565b611e02565b3480156106e357600080fd5b506103856106f236600461335a565b611e9f565b34801561070357600080fd5b506103856107123660046133e2565b611ee3565b34801561072357600080fd5b50600c54600d546107979160ff81169161ffff6101008304811692630100000081048216926501000000000082048316926701000000000000008304169163ffffffff6901000000000000000000820416916001600160701b03600160681b90920482169181811691600160701b90041689565b6040805160ff909a168a5261ffff98891660208b015296881696890196909652938616606088015294909116608086015263ffffffff1660a08501526001600160701b0392831660c0850152821660e08401521661010082015261012001610302565b34801561080657600080fd5b506102f661081536600461343d565b805160208183018101805160128252928201919093012091525460ff1681565b34801561084157600080fd5b50610855610850366004612f05565b611f74565b6040516103029190613472565b34801561086e57600080fd5b5061032061087d366004612f05565b611ffc565b34801561088e57600080fd5b5061038561089d3660046131f7565b6120c9565b3480156108ae57600080fd5b506103a061115c81565b3480156108c457600080fd5b506103856108d33660046134ee565b612152565b3480156108e457600080fd5b506102f66108f33660046135a4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561092d57600080fd5b5061038561093c366004612f05565b6122fc565b34801561094d57600080fd5b5061038561095c3660046131f7565b6123b6565b34801561096d57600080fd5b5061038561097c3660046135d2565b612495565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806109e457507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b80610a1857507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610a2d906135ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610a59906135ed565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b6000610abb8261250d565b610af1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b1882611090565b9050336001600160a01b03821614610b87576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16610b87576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610bfb82612542565b9050836001600160a01b0316816001600160a01b031614610c48576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610ccb576001600160a01b038616600090815260076020908152604080832033845290915290205460ff16610ccb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610d0b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610d1657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610da15760018401600081815260046020526040902054610d9f576000548114610d9f5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080601060019054906101000a90046001600160a01b031661271060115485610e149190613638565b610e1e919061366d565b915091505b9250929050565b6008546001600160a01b03163314610e895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b604051600090339047908381818185875af1925050503d8060008114610ecb576040519150601f19603f3d011682016040523d82523d6000602084013e610ed0565b606091505b5050905080610f215760405162461bcd60e51b815260206004820152600660248201527f4641494c454400000000000000000000000000000000000000000000000000006044820152606401610e80565b50565b610f3f83838360405180602001604052806000815250611e9f565b505050565b6008546001600160a01b03163314610f9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b6010805460ff191660011790558051610fbe90600f906020840190612dd7565b5050565b805160609060008167ffffffffffffffff811115610fe257610fe2612fc2565b60405190808252806020026020018201604052801561103457816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816110005790505b50905060005b8281146110885761106385828151811061105657611056613681565b6020026020010151611f74565b82828151811061107557611075613681565b602090810291909101015260010161103a565b509392505050565b6000610a1882612542565b600e546001600160701b03164210156110e35760405162461bcd60e51b815260206004820152600a6024820152694e4f545f41435449564560b01b6044820152606401610e80565b60008151118015611114575061115c81516111076001546000546000199190030190565b6111119190613697565b11155b61114d5760405162461bcd60e51b815260206004820152600a6024820152694d41585f535550504c5960b01b6044820152606401610e80565b60005b81518110156112dc57600082828151811061116d5761116d613681565b60209081029190910101516009546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156111df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120391906136af565b6001600160a01b0316146112595760405162461bcd60e51b815260206004820152600960248201527f4e4f545f4f574e455200000000000000000000000000000000000000000000006044820152606401610e80565b6009546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b1580156112b857600080fd5b505af11580156112cc573d6000803e3d6000fd5b5050505081600101915050611150565b600a5482516001600160a01b03909116906323b872dd903390309061130d906b1027e72f1f12813088000000613638565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611361573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138591906136cc565b6113d15760405162461bcd60e51b815260206004820152600f60248201527f4641494c45445f5452414e5346455200000000000000000000000000000000006044820152606401610e80565b610fbe33835160026113e39190613638565b6125c4565b6008546001600160a01b031633146114425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b8051610fbe90600f906020840190612dd7565b60006001600160a01b038216611497576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146115175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b61152160006126d4565b565b6060600080600061153385611455565b905060008167ffffffffffffffff81111561155057611550612fc2565b604051908082528060200260200182016040528015611579578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081019190915290915060015b838614611622576115b481612733565b91508160400151156115c55761161a565b81516001600160a01b0316156115da57815194505b876001600160a01b0316856001600160a01b0316141561161a578083878060010198508151811061160d5761160d613681565b6020026020010181815250505b6001016115a4565b50909695505050505050565b606060038054610a2d906135ed565b600c546000906901000000000000000000900463ffffffff164210156116745750600c54600160681b90046001600160701b031690565b600c54600090611697906901000000000000000000900463ffffffff16426136e9565b600c5490915065010000000000900461ffff1681106116c1575050600d546001600160701b031690565b600c546000906116e090670100000000000000900461ffff168361366d565b600d5490915061170090600160701b90046001600160701b031682613638565b600c5461171d9190600160681b90046001600160701b03166136e9565b9250505090565b5090565b6060818310611763576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061176f60005490565b9050600185101561177f57600194505b8084111561178b578093505b600061179687611455565b9050848610156117b557858503818110156117af578091505b506117b9565b5060005b60008167ffffffffffffffff8111156117d4576117d4612fc2565b6040519080825280602002602001820160405280156117fd578160200160208202803683370190505b509050816118105793506118c692505050565b600061181b88611f74565b90506000816040015161182c575080515b885b88811415801561183e5750848714155b156118ba5761184c81612733565b925082604001511561185d576118b2565b82516001600160a01b03161561187257825191505b8a6001600160a01b0316826001600160a01b031614156118b257808488806001019950815181106118a5576118a5613681565b6020026020010181815250505b60010161182e565b50505092835250909150505b9392505050565b6001600160a01b038216331415611910576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160701b031642108015906119a95750600e54600160701b90046001600160701b03164211155b6119e25760405162461bcd60e51b815260206004820152600a6024820152694e4f545f41435449564560b01b6044820152606401610e80565b60015460005461115c919003600019016119fd906001613697565b1115611a0857600080fd5b60128282604051611a1a929190613700565b9081526040519081900360200190205460ff1615611a7a5760405162461bcd60e51b815260206004820152600f60248201527f414c52454144595f434c41494d454400000000000000000000000000000000006044820152606401610e80565b600b54604080516020601f85018190048102820181019092528381526001600160a01b0390921691611b65918590859081908401838280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201526034019150611af89050565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001206127b290919063ffffffff16565b6001600160a01b031614611b7857600080fd5b600160128383604051611b8c929190613700565b908152604051908190036020019020805491151560ff19909216919091179055610fbe3360016125c4565b6040805161012081018252600c5460ff8116825261010080820461ffff9081166020850181905263010000008404821695850186905265010000000000840482166060860152670100000000000000840490911660808501526901000000000000000000830463ffffffff1660a0850152600160681b9092046001600160701b0390811660c0850152600d5480821660e0860152600160701b900416908301529091611c64908490613697565b1115611c9f5760405162461bcd60e51b815260206004820152600a6024820152694d41585f535550504c5960b01b6044820152606401610e80565b805160ff16821115611cf35760405162461bcd60e51b815260206004820152600e60248201527f4d41585f5045525f57414c4c45540000000000000000000000000000000000006044820152606401610e80565b600c546901000000000000000000900463ffffffff168015801590611d185750804210155b611d515760405162461bcd60e51b815260206004820152600a6024820152694e4f545f41435449564560b01b6044820152606401610e80565b600083611d5c61163d565b611d669190613638565b905080341015611db85760405162461bcd60e51b815260206004820152601060248201527f4e4f545f454e4f5547485f4554484552000000000000000000000000000000006044820152606401610e80565b600c8054859190600390611dd89084906301000000900461ffff16613710565b92506101000a81548161ffff021916908361ffff160217905550611dfc33856125c4565b50505050565b6008546001600160a01b03163314611e5c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b601080546001600160a01b03909316610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90931692909217909155601155565b611eaa848484610bf0565b6001600160a01b0383163b15611dfc57611ec6848484846127ce565b611dfc576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b03163314611f3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b8051600e80546020909301516001600160701b03908116600160701b026001600160e01b0319909416921691909117919091179055565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611fcd57506000548310155b15611fd85792915050565b611fe183612733565b9050806040015115611ff35792915050565b6118c6836128b7565b60606120078261250d565b6120795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610e80565b600061208361292f565b60105490915060ff1615610a18578061209b8461293e565b6040516020016120ac929190613736565b604051602081830303815290604052915050919050565b50919050565b6008546001600160a01b031633146121235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b600b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146121ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b8051600c8054602084015160408501516060860151608087015160a088015160c08901516001600160701b03908116600160681b027fffffffffff0000000000000000000000000000ffffffffffffffffffffffffff63ffffffff9093166901000000000000000000027fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff61ffff95861667010000000000000002167fffffffffffffffffffffffffffffffffffffff000000000000ffffffffffffff968616650100000000000266ffff0000000000199887166301000000029890981666ffffffff000000199690991661010090810262ffffff19909b1660ff909d169c909c1799909917949094169690961794909417929092169490941793909317929092161790915560e0830151600d805493909401518216600160701b026001600160e01b0319909316911617179055565b6008546001600160a01b031633146123565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b60015460005461115c91839103600019016123719190613697565b11156123ac5760405162461bcd60e51b815260206004820152600a6024820152694d41585f535550504c5960b01b6044820152606401610e80565b610f2133826125c4565b6008546001600160a01b031633146124105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b6001600160a01b03811661248c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e80565b610f21816126d4565b6008546001600160a01b031633146124ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b600c805461ffff9092166101000262ffff0019909216919091179055565b600081600111158015612521575060005482105b8015610a18575050600090815260046020526040902054600160e01b161590565b600081806001116125925760005481101561259257600081815260046020526040902054600160e01b8116612590575b806118c6575060001901600081815260046020526040902054612572565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b038316612607576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8161263e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126885760005550505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610a1890604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b60008060006127c18585612a70565b9150915061108881612add565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061280390339089908890889060040161378d565b6020604051808303816000875af192505050801561283e575060408051601f3d908101601f1916820190925261283b918101906137c9565b60015b612899573d80801561286c576040519150601f19603f3d011682016040523d82523d6000602084013e612871565b606091505b508051612891576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610a186128e783612542565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6060600f8054610a2d906135ed565b60608161297e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129a85780612992816137e6565b91506129a19050600a8361366d565b9150612982565b60008167ffffffffffffffff8111156129c3576129c3612fc2565b6040519080825280601f01601f1916602001820160405280156129ed576020820181803683370190505b5090505b84156128af57612a026001836136e9565b9150612a0f600a86613801565b612a1a906030613697565b60f81b818381518110612a2f57612a2f613681565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a69600a8661366d565b94506129f1565b600080825160411415612aa75760208301516040840151606085015160001a612a9b87828585612c98565b94509450505050610e23565b825160401415612ad15760208301516040840151612ac6868383612d85565b935093505050610e23565b50600090506002610e23565b6000816004811115612af157612af1613815565b1415612afa5750565b6001816004811115612b0e57612b0e613815565b1415612b5c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610e80565b6002816004811115612b7057612b70613815565b1415612bbe5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610e80565b6003816004811115612bd257612bd2613815565b1415612c2b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610e80565b6004816004811115612c3f57612c3f613815565b1415610f215760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610e80565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ccf5750600090506003612d7c565b8460ff16601b14158015612ce757508460ff16601c14155b15612cf85750600090506004612d7c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d4c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d7557600060019250925050612d7c565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612dbb60ff86901c601b613697565b9050612dc987828885612c98565b935093505050935093915050565b828054612de3906135ed565b90600052602060002090601f016020900481019282612e055760008555612e4b565b82601f10612e1e57805160ff1916838001178555612e4b565b82800160010185558215612e4b579182015b82811115612e4b578251825591602001919060010190612e30565b506117249291505b808211156117245760008155600101612e53565b6001600160e01b031981168114610f2157600080fd5b600060208284031215612e8f57600080fd5b81356118c681612e67565b60005b83811015612eb5578181015183820152602001612e9d565b83811115611dfc5750506000910152565b60008151808452612ede816020860160208601612e9a565b601f01601f19169290920160200192915050565b6020815260006118c66020830184612ec6565b600060208284031215612f1757600080fd5b5035919050565b6001600160a01b0381168114610f2157600080fd5b60008060408385031215612f4657600080fd5b8235612f5181612f1e565b946020939093013593505050565b600080600060608486031215612f7457600080fd5b8335612f7f81612f1e565b92506020840135612f8f81612f1e565b929592945050506040919091013590565b60008060408385031215612fb357600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715612ffc57612ffc612fc2565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561302b5761302b612fc2565b604052919050565b600067ffffffffffffffff83111561304d5761304d612fc2565b613060601f8401601f1916602001613002565b905082815283838301111561307457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561309d57600080fd5b813567ffffffffffffffff8111156130b457600080fd5b8201601f810184136130c557600080fd5b6128af84823560208401613033565b600060208083850312156130e757600080fd5b823567ffffffffffffffff808211156130ff57600080fd5b818501915085601f83011261311357600080fd5b81358181111561312557613125612fc2565b8060051b9150613136848301613002565b818152918301840191848101908884111561315057600080fd5b938501935b8385101561316e57843582529385019390850190613155565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611622576131e48385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b9284019260809290920191600101613196565b60006020828403121561320957600080fd5b81356118c681612f1e565b6020808252825182820181905260009190848201906040850190845b8181101561162257835183529284019291840191600101613230565b60008060006060848603121561326157600080fd5b833561326c81612f1e565b95602085013595506040909401359392505050565b8015158114610f2157600080fd5b600080604083850312156132a257600080fd5b82356132ad81612f1e565b915060208301356132bd81613281565b809150509250929050565b600080602083850312156132db57600080fd5b823567ffffffffffffffff808211156132f357600080fd5b818501915085601f83011261330757600080fd5b81358181111561331657600080fd5b86602082850101111561332857600080fd5b60209290920196919550909350505050565b600082601f83011261334b57600080fd5b6118c683833560208501613033565b6000806000806080858703121561337057600080fd5b843561337b81612f1e565b9350602085013561338b81612f1e565b925060408501359150606085013567ffffffffffffffff8111156133ae57600080fd5b6133ba8782880161333a565b91505092959194509250565b80356001600160701b03811681146133dd57600080fd5b919050565b6000604082840312156133f457600080fd5b6040516040810181811067ffffffffffffffff8211171561341757613417612fc2565b604052613423836133c6565b8152613431602084016133c6565b60208201529392505050565b60006020828403121561344f57600080fd5b813567ffffffffffffffff81111561346657600080fd5b6128af8482850161333a565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610a18565b803560ff811681146133dd57600080fd5b803561ffff811681146133dd57600080fd5b803563ffffffff811681146133dd57600080fd5b6000610120828403121561350157600080fd5b613509612fd8565b613512836134b7565b8152613520602084016134c8565b6020820152613531604084016134c8565b6040820152613542606084016134c8565b6060820152613553608084016134c8565b608082015261356460a084016134da565b60a082015261357560c084016133c6565b60c082015261358660e084016133c6565b60e08201526101006135998185016133c6565b908201529392505050565b600080604083850312156135b757600080fd5b82356135c281612f1e565b915060208301356132bd81612f1e565b6000602082840312156135e457600080fd5b6118c6826134c8565b600181811c9082168061360157607f821691505b602082108114156120c357634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561365257613652613622565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261367c5761367c613657565b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156136aa576136aa613622565b500190565b6000602082840312156136c157600080fd5b81516118c681612f1e565b6000602082840312156136de57600080fd5b81516118c681613281565b6000828210156136fb576136fb613622565b500390565b8183823760009101908152919050565b600061ffff80831681851680830382111561372d5761372d613622565b01949350505050565b60008351613748818460208801612e9a565b83519083019061375c818360208801612e9a565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137bf6080830184612ec6565b9695505050505050565b6000602082840312156137db57600080fd5b81516118c681612e67565b60006000198214156137fa576137fa613622565b5060010190565b60008261381057613810613657565b500690565b634e487b7160e01b600052602160045260246000fdfea26469706673582212206e5dab9763eb9645493eabd00ad2c77c9ebfe551b8f6bb3a3e9755ab607a4c2464736f6c634300080c00330000000000000000000000000000000000000000000000000000000062c4a6500000000000000000000000000000000000000000000000000000000062c4ad58000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001068000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000062c4ad58000000000000000000000000000000000000000000000000006a94d74f43000000000000000000000000000000000000000000000000000000071afd498d000000000000000000000000000000000000000000000000000000071afd498d0000000000000000000000000000f872857390285037ff6eb97266171890e7bb135d00000000000000000000000035bcf2b1c21562579c3d88ceb9d7149c963975450000000000000000000000008b699ff7609b564868333912c53cc72fe5647ae00000000000000000000000007600347a149f44ba8f5117592c09dd9417314da000000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000002a30783736303033343741313439463434624138663531313735393263303964643934313733313444613000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102d15760003560e01c806395d89b4111610179578063bb406135116100d6578063d5abeb011161008a578063f19e75d411610064578063f19e75d414610921578063f2fde38b14610941578063f4a7370f1461096157600080fd5b8063d5abeb01146108a2578063e3ec7b72146108b8578063e985e9c5146108d857600080fd5b8063c23dc68f116100bb578063c23dc68f14610835578063c87b56dd14610862578063d0413b9f1461088257600080fd5b8063bb40613514610717578063bbac408c146107fa57600080fd5b8063a4513e921161012d578063b7e6570011610112578063b7e65700146106b7578063b88d4fde146106d7578063b95901a2146106f757600080fd5b8063a4513e9214610684578063ae47a182146106a457600080fd5b806399a2557a1161015e57806399a2557a146105f95780639e0670be14610619578063a22cb4651461066457600080fd5b806395d89b41146105cf57806398d5fdca146105e457600080fd5b806342842e0e1161023257806364febc38116101e6578063715018a6116101c0578063715018a61461056f5780638462151c146105845780638da5cb5b146105b157600080fd5b806364febc381461050f5780636e7625271461052f57806370a082311461054f57600080fd5b80635bbb2177116102175780635bbb2177146104a25780636352211e146104cf57806363f5c9e4146104ef57600080fd5b806342842e0e146104625780634c2612471461048257600080fd5b8063184d6753116102895780632a55205a1161026e5780632a55205a146103ee5780633441d93b1461042d5780633ccfd60b1461044d57600080fd5b8063184d6753146103ae57806323b872dd146103ce57600080fd5b8063081812fc116102ba578063081812fc1461032d578063095ea7b31461036557806318160ddd1461038757600080fd5b806301ffc9a7146102d657806306fdde031461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612e7d565b610981565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610320610a1e565b6040516103029190612ef2565b34801561033957600080fd5b5061034d610348366004612f05565b610ab0565b6040516001600160a01b039091168152602001610302565b34801561037157600080fd5b50610385610380366004612f33565b610b0d565b005b34801561039357600080fd5b5060015460005403600019015b604051908152602001610302565b3480156103ba57600080fd5b5060095461034d906001600160a01b031681565b3480156103da57600080fd5b506103856103e9366004612f5f565b610bf0565b3480156103fa57600080fd5b5061040e610409366004612fa0565b610dea565b604080516001600160a01b039093168352602083019190915201610302565b34801561043957600080fd5b506103a06b1027e72f1f1281308800000081565b34801561045957600080fd5b50610385610e2a565b34801561046e57600080fd5b5061038561047d366004612f5f565b610f24565b34801561048e57600080fd5b5061038561049d36600461308b565b610f44565b3480156104ae57600080fd5b506104c26104bd3660046130d4565b610fc2565b604051610302919061317a565b3480156104db57600080fd5b5061034d6104ea366004612f05565b611090565b3480156104fb57600080fd5b50600a5461034d906001600160a01b031681565b34801561051b57600080fd5b5061038561052a3660046130d4565b61109b565b34801561053b57600080fd5b5061038561054a36600461308b565b6113e8565b34801561055b57600080fd5b506103a061056a3660046131f7565b611455565b34801561057b57600080fd5b506103856114bd565b34801561059057600080fd5b506105a461059f3660046131f7565b611523565b6040516103029190613214565b3480156105bd57600080fd5b506008546001600160a01b031661034d565b3480156105db57600080fd5b5061032061162e565b3480156105f057600080fd5b506103a061163d565b34801561060557600080fd5b506105a461061436600461324c565b611728565b34801561062557600080fd5b50600e54610644906001600160701b0380821691600160701b90041682565b604080516001600160701b03938416815292909116602083015201610302565b34801561067057600080fd5b5061038561067f36600461328f565b6118cd565b34801561069057600080fd5b5061038561069f3660046132c8565b61197c565b6103856106b2366004612f05565b611bb7565b3480156106c357600080fd5b506103856106d2366004612f33565b611e02565b3480156106e357600080fd5b506103856106f236600461335a565b611e9f565b34801561070357600080fd5b506103856107123660046133e2565b611ee3565b34801561072357600080fd5b50600c54600d546107979160ff81169161ffff6101008304811692630100000081048216926501000000000082048316926701000000000000008304169163ffffffff6901000000000000000000820416916001600160701b03600160681b90920482169181811691600160701b90041689565b6040805160ff909a168a5261ffff98891660208b015296881696890196909652938616606088015294909116608086015263ffffffff1660a08501526001600160701b0392831660c0850152821660e08401521661010082015261012001610302565b34801561080657600080fd5b506102f661081536600461343d565b805160208183018101805160128252928201919093012091525460ff1681565b34801561084157600080fd5b50610855610850366004612f05565b611f74565b6040516103029190613472565b34801561086e57600080fd5b5061032061087d366004612f05565b611ffc565b34801561088e57600080fd5b5061038561089d3660046131f7565b6120c9565b3480156108ae57600080fd5b506103a061115c81565b3480156108c457600080fd5b506103856108d33660046134ee565b612152565b3480156108e457600080fd5b506102f66108f33660046135a4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561092d57600080fd5b5061038561093c366004612f05565b6122fc565b34801561094d57600080fd5b5061038561095c3660046131f7565b6123b6565b34801561096d57600080fd5b5061038561097c3660046135d2565b612495565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806109e457507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b80610a1857507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610a2d906135ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610a59906135ed565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b6000610abb8261250d565b610af1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b1882611090565b9050336001600160a01b03821614610b87576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16610b87576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610bfb82612542565b9050836001600160a01b0316816001600160a01b031614610c48576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610ccb576001600160a01b038616600090815260076020908152604080832033845290915290205460ff16610ccb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516610d0b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610d1657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610da15760018401600081815260046020526040902054610d9f576000548114610d9f5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080601060019054906101000a90046001600160a01b031661271060115485610e149190613638565b610e1e919061366d565b915091505b9250929050565b6008546001600160a01b03163314610e895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b604051600090339047908381818185875af1925050503d8060008114610ecb576040519150601f19603f3d011682016040523d82523d6000602084013e610ed0565b606091505b5050905080610f215760405162461bcd60e51b815260206004820152600660248201527f4641494c454400000000000000000000000000000000000000000000000000006044820152606401610e80565b50565b610f3f83838360405180602001604052806000815250611e9f565b505050565b6008546001600160a01b03163314610f9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b6010805460ff191660011790558051610fbe90600f906020840190612dd7565b5050565b805160609060008167ffffffffffffffff811115610fe257610fe2612fc2565b60405190808252806020026020018201604052801561103457816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816110005790505b50905060005b8281146110885761106385828151811061105657611056613681565b6020026020010151611f74565b82828151811061107557611075613681565b602090810291909101015260010161103a565b509392505050565b6000610a1882612542565b600e546001600160701b03164210156110e35760405162461bcd60e51b815260206004820152600a6024820152694e4f545f41435449564560b01b6044820152606401610e80565b60008151118015611114575061115c81516111076001546000546000199190030190565b6111119190613697565b11155b61114d5760405162461bcd60e51b815260206004820152600a6024820152694d41585f535550504c5960b01b6044820152606401610e80565b60005b81518110156112dc57600082828151811061116d5761116d613681565b60209081029190910101516009546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa1580156111df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120391906136af565b6001600160a01b0316146112595760405162461bcd60e51b815260206004820152600960248201527f4e4f545f4f574e455200000000000000000000000000000000000000000000006044820152606401610e80565b6009546040517f42966c68000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b1580156112b857600080fd5b505af11580156112cc573d6000803e3d6000fd5b5050505081600101915050611150565b600a5482516001600160a01b03909116906323b872dd903390309061130d906b1027e72f1f12813088000000613638565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611361573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138591906136cc565b6113d15760405162461bcd60e51b815260206004820152600f60248201527f4641494c45445f5452414e5346455200000000000000000000000000000000006044820152606401610e80565b610fbe33835160026113e39190613638565b6125c4565b6008546001600160a01b031633146114425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b8051610fbe90600f906020840190612dd7565b60006001600160a01b038216611497576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146115175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b61152160006126d4565b565b6060600080600061153385611455565b905060008167ffffffffffffffff81111561155057611550612fc2565b604051908082528060200260200182016040528015611579578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081019190915290915060015b838614611622576115b481612733565b91508160400151156115c55761161a565b81516001600160a01b0316156115da57815194505b876001600160a01b0316856001600160a01b0316141561161a578083878060010198508151811061160d5761160d613681565b6020026020010181815250505b6001016115a4565b50909695505050505050565b606060038054610a2d906135ed565b600c546000906901000000000000000000900463ffffffff164210156116745750600c54600160681b90046001600160701b031690565b600c54600090611697906901000000000000000000900463ffffffff16426136e9565b600c5490915065010000000000900461ffff1681106116c1575050600d546001600160701b031690565b600c546000906116e090670100000000000000900461ffff168361366d565b600d5490915061170090600160701b90046001600160701b031682613638565b600c5461171d9190600160681b90046001600160701b03166136e9565b9250505090565b5090565b6060818310611763576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061176f60005490565b9050600185101561177f57600194505b8084111561178b578093505b600061179687611455565b9050848610156117b557858503818110156117af578091505b506117b9565b5060005b60008167ffffffffffffffff8111156117d4576117d4612fc2565b6040519080825280602002602001820160405280156117fd578160200160208202803683370190505b509050816118105793506118c692505050565b600061181b88611f74565b90506000816040015161182c575080515b885b88811415801561183e5750848714155b156118ba5761184c81612733565b925082604001511561185d576118b2565b82516001600160a01b03161561187257825191505b8a6001600160a01b0316826001600160a01b031614156118b257808488806001019950815181106118a5576118a5613681565b6020026020010181815250505b60010161182e565b50505092835250909150505b9392505050565b6001600160a01b038216331415611910576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160701b031642108015906119a95750600e54600160701b90046001600160701b03164211155b6119e25760405162461bcd60e51b815260206004820152600a6024820152694e4f545f41435449564560b01b6044820152606401610e80565b60015460005461115c919003600019016119fd906001613697565b1115611a0857600080fd5b60128282604051611a1a929190613700565b9081526040519081900360200190205460ff1615611a7a5760405162461bcd60e51b815260206004820152600f60248201527f414c52454144595f434c41494d454400000000000000000000000000000000006044820152606401610e80565b600b54604080516020601f85018190048102820181019092528381526001600160a01b0390921691611b65918590859081908401838280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201526034019150611af89050565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c01604051602081830303815290604052805190602001206127b290919063ffffffff16565b6001600160a01b031614611b7857600080fd5b600160128383604051611b8c929190613700565b908152604051908190036020019020805491151560ff19909216919091179055610fbe3360016125c4565b6040805161012081018252600c5460ff8116825261010080820461ffff9081166020850181905263010000008404821695850186905265010000000000840482166060860152670100000000000000840490911660808501526901000000000000000000830463ffffffff1660a0850152600160681b9092046001600160701b0390811660c0850152600d5480821660e0860152600160701b900416908301529091611c64908490613697565b1115611c9f5760405162461bcd60e51b815260206004820152600a6024820152694d41585f535550504c5960b01b6044820152606401610e80565b805160ff16821115611cf35760405162461bcd60e51b815260206004820152600e60248201527f4d41585f5045525f57414c4c45540000000000000000000000000000000000006044820152606401610e80565b600c546901000000000000000000900463ffffffff168015801590611d185750804210155b611d515760405162461bcd60e51b815260206004820152600a6024820152694e4f545f41435449564560b01b6044820152606401610e80565b600083611d5c61163d565b611d669190613638565b905080341015611db85760405162461bcd60e51b815260206004820152601060248201527f4e4f545f454e4f5547485f4554484552000000000000000000000000000000006044820152606401610e80565b600c8054859190600390611dd89084906301000000900461ffff16613710565b92506101000a81548161ffff021916908361ffff160217905550611dfc33856125c4565b50505050565b6008546001600160a01b03163314611e5c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b601080546001600160a01b03909316610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90931692909217909155601155565b611eaa848484610bf0565b6001600160a01b0383163b15611dfc57611ec6848484846127ce565b611dfc576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b03163314611f3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b8051600e80546020909301516001600160701b03908116600160701b026001600160e01b0319909416921691909117919091179055565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611fcd57506000548310155b15611fd85792915050565b611fe183612733565b9050806040015115611ff35792915050565b6118c6836128b7565b60606120078261250d565b6120795760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610e80565b600061208361292f565b60105490915060ff1615610a18578061209b8461293e565b6040516020016120ac929190613736565b604051602081830303815290604052915050919050565b50919050565b6008546001600160a01b031633146121235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b600b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146121ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b8051600c8054602084015160408501516060860151608087015160a088015160c08901516001600160701b03908116600160681b027fffffffffff0000000000000000000000000000ffffffffffffffffffffffffff63ffffffff9093166901000000000000000000027fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff61ffff95861667010000000000000002167fffffffffffffffffffffffffffffffffffffff000000000000ffffffffffffff968616650100000000000266ffff0000000000199887166301000000029890981666ffffffff000000199690991661010090810262ffffff19909b1660ff909d169c909c1799909917949094169690961794909417929092169490941793909317929092161790915560e0830151600d805493909401518216600160701b026001600160e01b0319909316911617179055565b6008546001600160a01b031633146123565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b60015460005461115c91839103600019016123719190613697565b11156123ac5760405162461bcd60e51b815260206004820152600a6024820152694d41585f535550504c5960b01b6044820152606401610e80565b610f2133826125c4565b6008546001600160a01b031633146124105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b6001600160a01b03811661248c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e80565b610f21816126d4565b6008546001600160a01b031633146124ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e80565b600c805461ffff9092166101000262ffff0019909216919091179055565b600081600111158015612521575060005482105b8015610a18575050600090815260046020526040902054600160e01b161590565b600081806001116125925760005481101561259257600081815260046020526040902054600160e01b8116612590575b806118c6575060001901600081815260046020526040902054612572565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b038316612607576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8161263e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126885760005550505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610a1890604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b60008060006127c18585612a70565b9150915061108881612add565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061280390339089908890889060040161378d565b6020604051808303816000875af192505050801561283e575060408051601f3d908101601f1916820190925261283b918101906137c9565b60015b612899573d80801561286c576040519150601f19603f3d011682016040523d82523d6000602084013e612871565b606091505b508051612891576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610a186128e783612542565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6060600f8054610a2d906135ed565b60608161297e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129a85780612992816137e6565b91506129a19050600a8361366d565b9150612982565b60008167ffffffffffffffff8111156129c3576129c3612fc2565b6040519080825280601f01601f1916602001820160405280156129ed576020820181803683370190505b5090505b84156128af57612a026001836136e9565b9150612a0f600a86613801565b612a1a906030613697565b60f81b818381518110612a2f57612a2f613681565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a69600a8661366d565b94506129f1565b600080825160411415612aa75760208301516040840151606085015160001a612a9b87828585612c98565b94509450505050610e23565b825160401415612ad15760208301516040840151612ac6868383612d85565b935093505050610e23565b50600090506002610e23565b6000816004811115612af157612af1613815565b1415612afa5750565b6001816004811115612b0e57612b0e613815565b1415612b5c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610e80565b6002816004811115612b7057612b70613815565b1415612bbe5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610e80565b6003816004811115612bd257612bd2613815565b1415612c2b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610e80565b6004816004811115612c3f57612c3f613815565b1415610f215760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610e80565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612ccf5750600090506003612d7c565b8460ff16601b14158015612ce757508460ff16601c14155b15612cf85750600090506004612d7c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d4c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612d7557600060019250925050612d7c565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612dbb60ff86901c601b613697565b9050612dc987828885612c98565b935093505050935093915050565b828054612de3906135ed565b90600052602060002090601f016020900481019282612e055760008555612e4b565b82601f10612e1e57805160ff1916838001178555612e4b565b82800160010185558215612e4b579182015b82811115612e4b578251825591602001919060010190612e30565b506117249291505b808211156117245760008155600101612e53565b6001600160e01b031981168114610f2157600080fd5b600060208284031215612e8f57600080fd5b81356118c681612e67565b60005b83811015612eb5578181015183820152602001612e9d565b83811115611dfc5750506000910152565b60008151808452612ede816020860160208601612e9a565b601f01601f19169290920160200192915050565b6020815260006118c66020830184612ec6565b600060208284031215612f1757600080fd5b5035919050565b6001600160a01b0381168114610f2157600080fd5b60008060408385031215612f4657600080fd5b8235612f5181612f1e565b946020939093013593505050565b600080600060608486031215612f7457600080fd5b8335612f7f81612f1e565b92506020840135612f8f81612f1e565b929592945050506040919091013590565b60008060408385031215612fb357600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715612ffc57612ffc612fc2565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561302b5761302b612fc2565b604052919050565b600067ffffffffffffffff83111561304d5761304d612fc2565b613060601f8401601f1916602001613002565b905082815283838301111561307457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561309d57600080fd5b813567ffffffffffffffff8111156130b457600080fd5b8201601f810184136130c557600080fd5b6128af84823560208401613033565b600060208083850312156130e757600080fd5b823567ffffffffffffffff808211156130ff57600080fd5b818501915085601f83011261311357600080fd5b81358181111561312557613125612fc2565b8060051b9150613136848301613002565b818152918301840191848101908884111561315057600080fd5b938501935b8385101561316e57843582529385019390850190613155565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611622576131e48385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b9284019260809290920191600101613196565b60006020828403121561320957600080fd5b81356118c681612f1e565b6020808252825182820181905260009190848201906040850190845b8181101561162257835183529284019291840191600101613230565b60008060006060848603121561326157600080fd5b833561326c81612f1e565b95602085013595506040909401359392505050565b8015158114610f2157600080fd5b600080604083850312156132a257600080fd5b82356132ad81612f1e565b915060208301356132bd81613281565b809150509250929050565b600080602083850312156132db57600080fd5b823567ffffffffffffffff808211156132f357600080fd5b818501915085601f83011261330757600080fd5b81358181111561331657600080fd5b86602082850101111561332857600080fd5b60209290920196919550909350505050565b600082601f83011261334b57600080fd5b6118c683833560208501613033565b6000806000806080858703121561337057600080fd5b843561337b81612f1e565b9350602085013561338b81612f1e565b925060408501359150606085013567ffffffffffffffff8111156133ae57600080fd5b6133ba8782880161333a565b91505092959194509250565b80356001600160701b03811681146133dd57600080fd5b919050565b6000604082840312156133f457600080fd5b6040516040810181811067ffffffffffffffff8211171561341757613417612fc2565b604052613423836133c6565b8152613431602084016133c6565b60208201529392505050565b60006020828403121561344f57600080fd5b813567ffffffffffffffff81111561346657600080fd5b6128af8482850161333a565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610a18565b803560ff811681146133dd57600080fd5b803561ffff811681146133dd57600080fd5b803563ffffffff811681146133dd57600080fd5b6000610120828403121561350157600080fd5b613509612fd8565b613512836134b7565b8152613520602084016134c8565b6020820152613531604084016134c8565b6040820152613542606084016134c8565b6060820152613553608084016134c8565b608082015261356460a084016134da565b60a082015261357560c084016133c6565b60c082015261358660e084016133c6565b60e08201526101006135998185016133c6565b908201529392505050565b600080604083850312156135b757600080fd5b82356135c281612f1e565b915060208301356132bd81612f1e565b6000602082840312156135e457600080fd5b6118c6826134c8565b600181811c9082168061360157607f821691505b602082108114156120c357634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561365257613652613622565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261367c5761367c613657565b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156136aa576136aa613622565b500190565b6000602082840312156136c157600080fd5b81516118c681612f1e565b6000602082840312156136de57600080fd5b81516118c681613281565b6000828210156136fb576136fb613622565b500390565b8183823760009101908152919050565b600061ffff80831681851680830382111561372d5761372d613622565b01949350505050565b60008351613748818460208801612e9a565b83519083019061375c818360208801612e9a565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137bf6080830184612ec6565b9695505050505050565b6000602082840312156137db57600080fd5b81516118c681612e67565b60006000198214156137fa576137fa613622565b5060010190565b60008261381057613810613657565b500690565b634e487b7160e01b600052602160045260246000fdfea26469706673582212206e5dab9763eb9645493eabd00ad2c77c9ebfe551b8f6bb3a3e9755ab607a4c2464736f6c634300080c0033

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

0000000000000000000000000000000000000000000000000000000062c4a6500000000000000000000000000000000000000000000000000000000062c4ad58000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001068000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000062c4ad58000000000000000000000000000000000000000000000000006a94d74f43000000000000000000000000000000000000000000000000000000071afd498d000000000000000000000000000000000000000000000000000000071afd498d0000000000000000000000000000f872857390285037ff6eb97266171890e7bb135d00000000000000000000000035bcf2b1c21562579c3d88ceb9d7149c963975450000000000000000000000008b699ff7609b564868333912c53cc72fe5647ae00000000000000000000000007600347a149f44ba8f5117592c09dd9417314da000000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000002a30783736303033343741313439463434624138663531313735393263303964643934313733313444613000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _mintTimes (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : _auctionConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [2] : _vitriolToken (address): 0xF872857390285037ff6EB97266171890e7bB135d
Arg [3] : _suckerToken (address): 0x35bCF2B1c21562579C3d88CeB9D7149c96397545
Arg [4] : _signer (address): 0x8b699fF7609B564868333912C53Cc72fe5647ae0
Arg [5] : royaltyAddress (address): 0x7600347A149F44bA8f5117592c09dd9417314Da0
Arg [6] : royaltyPercentage (uint256): 750
Arg [7] : baseTokenURI (string): 0x7600347A149F44bA8f5117592c09dd9417314Da0

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000062c4a650
Arg [1] : 0000000000000000000000000000000000000000000000000000000062c4ad58
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000640
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000001068
Arg [6] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [7] : 0000000000000000000000000000000000000000000000000000000062c4ad58
Arg [8] : 000000000000000000000000000000000000000000000000006a94d74f430000
Arg [9] : 00000000000000000000000000000000000000000000000000071afd498d0000
Arg [10] : 00000000000000000000000000000000000000000000000000071afd498d0000
Arg [11] : 000000000000000000000000f872857390285037ff6eb97266171890e7bb135d
Arg [12] : 00000000000000000000000035bcf2b1c21562579c3d88ceb9d7149c96397545
Arg [13] : 0000000000000000000000008b699ff7609b564868333912c53cc72fe5647ae0
Arg [14] : 0000000000000000000000007600347a149f44ba8f5117592c09dd9417314da0
Arg [15] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [17] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [18] : 3078373630303334374131343946343462413866353131373539326330396464
Arg [19] : 3934313733313444613000000000000000000000000000000000000000000000


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.