ETH Price: $2,726.66 (-1.40%)

Contract

0x03Ade60cE17FDefaCD5A28b1059aFC5760397D3B
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...199902082024-05-31 13:48:3587 days ago1717163315IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0009526420.68637999
Set Approval For...199898392024-05-31 12:33:4787 days ago1717158827IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0007017515.23822467
Set Approval For...184693262023-10-31 9:49:59300 days ago1698745799IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0007417616.10716925
Set Approval For...184103492023-10-23 3:37:47308 days ago1698032267IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0004641610.07917191
Set Approval For...183446742023-10-13 23:13:35317 days ago1697238815IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.000255255.54277144
Set Token URI176800442023-07-12 21:07:23410 days ago1689196043IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0009641623.76146281
Set Approval For...170650812023-04-17 7:39:23497 days ago1681717163IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0012450627.03607289
Set Approval For...170450122023-04-14 11:05:35500 days ago1681470335IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0007203227.54386886
Set Approval For...170450112023-04-14 11:05:23500 days ago1681470323IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0012786127.76468515
Set Approval For...169846892023-04-05 19:41:23508 days ago1680723683IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0013759529.87833354
Safe Transfer Fr...168593632023-03-19 4:22:59526 days ago1679199779IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0008032313.3483165
Set Approval For...168578012023-03-18 23:06:11526 days ago1679180771IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0006435913.97540726
Set Approval For...168228902023-03-14 1:20:59531 days ago1678756859IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0004274417.70673985
Safe Transfer Fr...168002162023-03-10 20:52:23534 days ago1678481543IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0025298742.04193022
Set Approval For...167376492023-03-02 1:34:23543 days ago1677720863IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0014065430.54262996
Safe Transfer Fr...166390222023-02-16 4:51:11557 days ago1676523071IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0020458831.48730311
Set Approval For...166323152023-02-15 6:19:59558 days ago1676441999IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0006158725.51262712
Safe Transfer Fr...165977352023-02-10 10:23:11563 days ago1676024591IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0012879519.82227575
Safe Transfer Fr...165949102023-02-10 0:55:59563 days ago1675990559IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0015093725.08304348
Set Approval For...165207912023-01-30 16:19:23573 days ago1675095563IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.000491318.78658279
Set Approval For...165207902023-01-30 16:19:11573 days ago1675095551IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0008555918.57884378
Set Approval For...165010092023-01-27 22:03:47576 days ago1674857027IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0009141119.8496138
Safe Transfer Fr...164799672023-01-24 23:31:11579 days ago1674603071IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0010683925.14047079
Set Approval For...164787272023-01-24 19:21:59579 days ago1674588119IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0009060219.67397853
Set Approval For...164612352023-01-22 8:45:23582 days ago1674377123IN
Wearable: Drug Receipts: Wearables Token
0 ETH0.0003654515.1389614
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
163799002023-01-11 0:11:11593 days ago1673395871
Wearable: Drug Receipts: Wearables Token
28.72 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Wearable

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : TraitDrop.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;

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

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Address.sol";

contract Wearable is ERC721A, ReentrancyGuard, Ownable {
    using Address for address;
    string public _tokenUriBase;
    State public _state;

    IERC721 private drugReceiptToken;
    IERC721 private seekerToken;

    uint256 public mintingSupply = 359;

    // mint price is 0.08 ether
    uint256 public mintPrice = 0.08 ether;

    mapping(uint256 => mapping(address => bool)) public mintedInBlock;

    event Minted(address indexed minter, uint256 amount);

    enum State {
        DrugReceiptsClaim,
        SeekersClaim,
        Public,
        Closed
    }

    constructor(
        string memory name,
        string memory symbol,
        address _drugReceiptToken,
        address _seekerToken
    ) ERC721A(name, symbol) {
        _state = State.Closed;
        drugReceiptToken = IERC721(_drugReceiptToken);
        seekerToken = IERC721(_seekerToken);
    }

    /* @dev: Setter for minting Supply
     * @param _mintingSupply: uint256
     * @return: void
     */
    function setMintingSupply(uint256 _mintingSupply) external onlyOwner {
        mintingSupply = _mintingSupply;
    }

    /* @dev: Setter for DrupReceipt holders minting stage
     */
    function setDrugReceiptsClaim() external onlyOwner {
        _state = State.DrugReceiptsClaim;
    }

    /* @dev: Setter for Seekers holders minting stage
     */
    function setSeekersClaim() external onlyOwner {
        _state = State.SeekersClaim;
    }

    /* @dev: Setter for Public minting stage
     */
    function setPublic() external onlyOwner {
        _state = State.Public;
    }

    /* @dev: Setter for Closed minting stage
     */
    function setClosed() external onlyOwner {
        _state = State.Closed;
    }

    /* @dev: Setter mint price
     * @param _mintPrice: uint256
     */
    function setMintPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
    }

    /* @dev: Airdrop tokens to the contract
     * @param wallets: address
     */
    function airdrop(address[] calldata wallets) external onlyOwner {
        unchecked {
            for (uint8 i = 0; i < wallets.length; i++) {
                _safeMint(wallets[i], 1);
                emit Minted(wallets[i], 1);
            }
        }
    }

    modifier mintingGuard(uint256 amount) {
        require(msg.sender == tx.origin, "contract not allowed");
        require(!Address.isContract(msg.sender), "contract not allowed");
        require(msg.value >= amount * mintPrice, "invalid amount");
        require(amount > 0, "You must mint at least 1 token");
        require(amount < 6, "You can't claim more than 5 tokens at a time");
        require(
            totalSupply() + amount <= mintingSupply,
            "claim has reached max supply"
        );
        _;
    }

    /* @dev: DrugReceipt holders minting stage
     * @param amount: uint256
     */
    function mintDrugReceiptsClaim(uint256 amount)
        external
        payable
        nonReentrant
        mintingGuard(amount)
    {
        require(
            _state == State.DrugReceiptsClaim,
            "Claim is not available at this time"
        );
        require(
            drugReceiptToken.balanceOf(msg.sender) > 0,
            "You don't have any drug receipts"
        );

        require(
            mintedInBlock[block.number][msg.sender] == false,
            "already minted in block"
        );
        mintedInBlock[block.number][msg.sender] = true;

        _safeMint(msg.sender, amount);
    }

    /* @dev: Seeker holders minting stage
     * @param amount: uint256
     */
    function mintSeekersClaim(uint256 amount)
        external
        payable
        nonReentrant
        mintingGuard(amount)
    {
        require(
            _state == State.SeekersClaim,
            "Claim is not available at this time"
        );
        require(
            seekerToken.balanceOf(msg.sender) > 0 ||
                drugReceiptToken.balanceOf(msg.sender) > 0,
            "You don't have any Seekers or DrugReceipts"
        );

        require(
            mintedInBlock[block.number][msg.sender] == false,
            "already minted in block"
        );
        mintedInBlock[block.number][msg.sender] = true;

        _safeMint(msg.sender, amount);
    }

    /* @dev: Public minting stage
     * @param amount: uint256
     */
    function mintPublic(uint16 amount)
        external
        payable
        nonReentrant
        mintingGuard(amount)
    {
        require(_state == State.Public, "Claim has not started yet");
        require(
            mintedInBlock[block.number][msg.sender] == false,
            "already minted in block"
        );
        mintedInBlock[block.number][msg.sender] = true;

        _safeMint(msg.sender, amount);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A)
        returns (string memory)
    {
        return
            string(abi.encodePacked(_tokenUriBase, Strings.toString(tokenId)));
    }

    function setTokenURI(string memory tokenUriBase_) public onlyOwner {
        _tokenUriBase = tokenUriBase_;
    }

    /* @dev: Withdraw all ETH to a given address
     * @param recipient: address
     */
    function withdrawAll(address recipient) public onlyOwner {
        uint256 balance = address(this).balance;
        payable(recipient).transfer(balance);
    }

    function withdrawAllViaCall(address payable _to) public onlyOwner {
        uint256 balance = address(this).balance;
        (bool sent, bytes memory data) = _to.call{value: balance}("");
        require(sent, "Failed to send Ether");
    }
}

File 2 of 10 : 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 3 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 10 : 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 10 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.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 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`
    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 auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            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;
    }

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

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

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

        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-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

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

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

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

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // 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 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 6 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 10 : 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 9 of 10 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.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();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_drugReceiptToken","type":"address"},{"internalType":"address","name":"_seekerToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","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":[],"name":"_state","outputs":[{"internalType":"enum Wearable.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenUriBase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintDrugReceiptsClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintSeekersClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedInBlock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setClosed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setDrugReceiptsClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintingSupply","type":"uint256"}],"name":"setMintingSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSeekersClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenUriBase_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawAllViaCall","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052610167600d5567011c37937e080000600e553480156200002357600080fd5b5060405162002950380380620029508339810160408190526200004691620001fb565b8383600262000056838262000319565b50600362000065828262000319565b5060008055505060016008556200007c33620000bf565b600b805460036001600160a81b03199091166101006001600160a01b039586160217179055600c80546001600160a01b0319169190921617905550620003e59050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013957600080fd5b81516001600160401b038082111562000156576200015662000111565b604051601f8301601f19908116603f0116810190828211818310171562000181576200018162000111565b816040528381526020925086838588010111156200019e57600080fd5b600091505b83821015620001c25785820183015181830184015290820190620001a3565b83821115620001d45760008385830101525b9695505050505050565b80516001600160a01b0381168114620001f657600080fd5b919050565b600080600080608085870312156200021257600080fd5b84516001600160401b03808211156200022a57600080fd5b620002388883890162000127565b955060208701519150808211156200024f57600080fd5b506200025e8782880162000127565b9350506200026f60408601620001de565b91506200027f60608601620001de565b905092959194509250565b600181811c908216806200029f57607f821691505b602082108103620002c057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031457600081815260208120601f850160051c81016020861015620002ef5750805b601f850160051c820191505b818110156200031057828155600101620002fb565b5050505b505050565b81516001600160401b0381111562000335576200033562000111565b6200034d816200034684546200028a565b84620002c6565b602080601f8311600181146200038557600084156200036c5750858301515b600019600386901b1c1916600185901b17855562000310565b600085815260208120601f198616915b82811015620003b65788860151825594840194600190910190840162000395565b5085821015620003d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61255b80620003f56000396000f3fe6080604052600436106102045760003560e01c80638da5cb5b11610118578063c9cee0e2116100a0578063f2dc6b331161006f578063f2dc6b33146105d6578063f2fde38b146105eb578063f4a0a5281461060b578063fa09e6301461062b578063fa23987c1461064b57600080fd5b8063c9cee0e21461051d578063cf7a0c4714610532578063e0df5b6f1461056d578063e985e9c51461058d57600080fd5b8063a22cb465116100e7578063a22cb46514610487578063a905821a146104a7578063b88d4fde146104c7578063c87b56dd146104e7578063c933d09a1461050757600080fd5b80638da5cb5b1461040d57806395d89b411461042b5780639f26620814610440578063a1cb31b71461046057600080fd5b806336047fed1161019b5780636942a8b01161016a5780636942a8b01461039057806370a08231146103a3578063715018a6146103c3578063729ad39e146103d857806377e56357146103f857600080fd5b806336047fed1461032557806342842e0e1461033a5780636352211e1461035a5780636817c76c1461037a57600080fd5b80630e176e02116101d75780630e176e02146102ba57806316755b57146102cf57806318160ddd146102e257806323b872dd1461030557600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611c56565b61065e565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106b0565b6040516102359190611ccb565b34801561026c57600080fd5b5061028061027b366004611cde565b610742565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611d0c565b610786565b005b3480156102c657600080fd5b50610253610858565b6102b86102dd366004611d38565b6108e6565b3480156102ee57600080fd5b50600154600054035b604051908152602001610235565b34801561031157600080fd5b506102b8610320366004611d5c565b610b06565b34801561033157600080fd5b506102b8610b16565b34801561034657600080fd5b506102b8610355366004611d5c565b610b57565b34801561036657600080fd5b50610280610375366004611cde565b610b72565b34801561038657600080fd5b506102f7600e5481565b6102b861039e366004611cde565b610b7d565b3480156103af57600080fd5b506102f76103be366004611d9d565b610e12565b3480156103cf57600080fd5b506102b8610e61565b3480156103e457600080fd5b506102b86103f3366004611dba565b610e97565b34801561040457600080fd5b506102b8610f78565b34801561041957600080fd5b506009546001600160a01b0316610280565b34801561043757600080fd5b50610253610fb6565b34801561044c57600080fd5b506102b861045b366004611cde565b610fc5565b34801561046c57600080fd5b50600b5461047a9060ff1681565b6040516102359190611e45565b34801561049357600080fd5b506102b86104a2366004611e6d565b610ff4565b3480156104b357600080fd5b506102b86104c2366004611d9d565b611089565b3480156104d357600080fd5b506102b86104e2366004611f37565b611156565b3480156104f357600080fd5b50610253610502366004611cde565b61119a565b34801561051357600080fd5b506102f7600d5481565b34801561052957600080fd5b506102b86111ce565b34801561053e57600080fd5b5061022961054d366004611fb7565b600f60209081526000928352604080842090915290825290205460ff1681565b34801561057957600080fd5b506102b8610588366004611fdc565b61120b565b34801561059957600080fd5b506102296105a8366004612025565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105e257600080fd5b506102b8611245565b3480156105f757600080fd5b506102b8610606366004611d9d565b611283565b34801561061757600080fd5b506102b8610626366004611cde565b61131e565b34801561063757600080fd5b506102b8610646366004611d9d565b61134d565b6102b8610659366004611cde565b6113af565b60006301ffc9a760e01b6001600160e01b03198316148061068f57506380ac58cd60e01b6001600160e01b03198316145b806106aa5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106bf90612053565b80601f01602080910402602001604051908101604052809291908181526020018280546106eb90612053565b80156107385780601f1061070d57610100808354040283529160200191610738565b820191906000526020600020905b81548152906001019060200180831161071b57829003601f168201915b5050505050905090565b600061074d82611637565b61076a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107918261165e565b9050806001600160a01b0316836001600160a01b0316036107c55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107fc576107df81336105a8565b6107fc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a805461086590612053565b80601f016020809104026020016040519081016040528092919081815260200182805461089190612053565b80156108de5780601f106108b3576101008083540402835291602001916108de565b820191906000526020600020905b8154815290600101906020018083116108c157829003601f168201915b505050505081565b6002600854036109115760405162461bcd60e51b81526004016109089061208d565b60405180910390fd5b600260085561ffff811633321461093a5760405162461bcd60e51b8152600401610908906120c4565b333b156109595760405162461bcd60e51b8152600401610908906120c4565b600e546109669082612108565b3410156109855760405162461bcd60e51b815260040161090890612127565b600081116109a55760405162461bcd60e51b81526004016109089061214f565b600681106109c55760405162461bcd60e51b815260040161090890612186565b600d54816109d66001546000540390565b6109e091906121d2565b11156109fe5760405162461bcd60e51b8152600401610908906121ea565b6002600b5460ff166003811115610a1757610a17611e2f565b14610a645760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610908565b436000908152600f6020908152604080832033845290915290205460ff1615610ac95760405162461bcd60e51b8152602060048201526017602482015276616c7265616479206d696e74656420696e20626c6f636b60481b6044820152606401610908565b436000908152600f60209081526040808320338085529252909120805460ff19166001179055610afd9061ffff84166116cc565b50506001600855565b610b118383836116e6565b505050565b6009546001600160a01b03163314610b405760405162461bcd60e51b815260040161090890612221565b600b80546000919060ff19166001835b0217905550565b610b1183838360405180602001604052806000815250611156565b60006106aa8261165e565b600260085403610b9f5760405162461bcd60e51b81526004016109089061208d565b600260085580333214610bc45760405162461bcd60e51b8152600401610908906120c4565b333b15610be35760405162461bcd60e51b8152600401610908906120c4565b600e54610bf09082612108565b341015610c0f5760405162461bcd60e51b815260040161090890612127565b60008111610c2f5760405162461bcd60e51b81526004016109089061214f565b60068110610c4f5760405162461bcd60e51b815260040161090890612186565b600d5481610c606001546000540390565b610c6a91906121d2565b1115610c885760405162461bcd60e51b8152600401610908906121ea565b6000600b5460ff166003811115610ca157610ca1611e2f565b14610cbe5760405162461bcd60e51b815260040161090890612256565b600b546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610d0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d309190612299565b11610d7d5760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e7920647275672072656365697074736044820152606401610908565b436000908152600f6020908152604080832033845290915290205460ff1615610de25760405162461bcd60e51b8152602060048201526017602482015276616c7265616479206d696e74656420696e20626c6f636b60481b6044820152606401610908565b436000908152600f60209081526040808320338085529252909120805460ff19166001179055610afd90836116cc565b60006001600160a01b038216610e3b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b03163314610e8b5760405162461bcd60e51b815260040161090890612221565b610e95600061188d565b565b6009546001600160a01b03163314610ec15760405162461bcd60e51b815260040161090890612221565b60005b60ff8116821115610b1157610f0383838360ff16818110610ee757610ee76122b2565b9050602002016020810190610efc9190611d9d565b60016116cc565b82828260ff16818110610f1857610f186122b2565b9050602002016020810190610f2d9190611d9d565b6001600160a01b03167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe6001604051610f6891815260200190565b60405180910390a2600101610ec4565b6009546001600160a01b03163314610fa25760405162461bcd60e51b815260040161090890612221565b600b80546002919060ff1916600183610b50565b6060600380546106bf90612053565b6009546001600160a01b03163314610fef5760405162461bcd60e51b815260040161090890612221565b600d55565b336001600160a01b0383160361101d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b031633146110b35760405162461bcd60e51b815260040161090890612221565b604051479060009081906001600160a01b0385169084908381818185875af1925050503d8060008114611102576040519150601f19603f3d011682016040523d82523d6000602084013e611107565b606091505b5091509150816111505760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610908565b50505050565b6111618484846116e6565b6001600160a01b0383163b156111505761117d848484846118df565b611150576040516368d2bf6b60e11b815260040160405180910390fd5b6060600a6111a7836119cb565b6040516020016111b89291906122c8565b6040516020818303038152906040529050919050565b6009546001600160a01b031633146111f85760405162461bcd60e51b815260040161090890612221565b600b80546001919060ff19168280610b50565b6009546001600160a01b031633146112355760405162461bcd60e51b815260040161090890612221565b600a611241828261239d565b5050565b6009546001600160a01b0316331461126f5760405162461bcd60e51b815260040161090890612221565b600b80546003919060ff1916600183610b50565b6009546001600160a01b031633146112ad5760405162461bcd60e51b815260040161090890612221565b6001600160a01b0381166113125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610908565b61131b8161188d565b50565b6009546001600160a01b031633146113485760405162461bcd60e51b815260040161090890612221565b600e55565b6009546001600160a01b031633146113775760405162461bcd60e51b815260040161090890612221565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610b11573d6000803e3d6000fd5b6002600854036113d15760405162461bcd60e51b81526004016109089061208d565b6002600855803332146113f65760405162461bcd60e51b8152600401610908906120c4565b333b156114155760405162461bcd60e51b8152600401610908906120c4565b600e546114229082612108565b3410156114415760405162461bcd60e51b815260040161090890612127565b600081116114615760405162461bcd60e51b81526004016109089061214f565b600681106114815760405162461bcd60e51b815260040161090890612186565b600d54816114926001546000540390565b61149c91906121d2565b11156114ba5760405162461bcd60e51b8152600401610908906121ea565b6001600b5460ff1660038111156114d3576114d3611e2f565b146114f05760405162461bcd60e51b815260040161090890612256565b600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611539573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155d9190612299565b11806115d85750600b546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156115b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d69190612299565b115b610d7d5760405162461bcd60e51b815260206004820152602a60248201527f596f7520646f6e2774206861766520616e79205365656b657273206f722044726044820152697567526563656970747360b01b6064820152608401610908565b60008054821080156106aa575050600090815260046020526040902054600160e01b161590565b6000816000548110156116b35760008181526004602052604081205490600160e01b821690036116b1575b806000036116aa575060001901600081815260046020526040902054611689565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b611241828260405180602001604052806000815250611acc565b60006116f18261165e565b9050836001600160a01b0316816001600160a01b0316146117245760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611742575061174285336105a8565b8061175d57503361175284610742565b6001600160a01b0316145b90508061177d57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166117a457604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611845576001830160008181526004602052604081205490036118435760005481146118435760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061191490339089908890889060040161245d565b6020604051808303816000875af192505050801561194f575060408051601f3d908101601f1916820190925261194c9181019061249a565b60015b6119ad573d80801561197d576040519150601f19603f3d011682016040523d82523d6000602084013e611982565b606091505b5080516000036119a5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036119f25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a1c5780611a06816124b7565b9150611a159050600a836124e6565b91506119f6565b60008167ffffffffffffffff811115611a3757611a37611eab565b6040519080825280601f01601f191660200182016040528015611a61576020820181803683370190505b5090505b84156119c357611a766001836124fa565b9150611a83600a86612511565b611a8e9060306121d2565b60f81b818381518110611aa357611aa36122b2565b60200101906001600160f81b031916908160001a905350611ac5600a866124e6565b9450611a65565b6000546001600160a01b038416611af557604051622e076360e81b815260040160405180910390fd5b82600003611b165760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611beb575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611bb460008784806001019550876118df565b611bd1576040516368d2bf6b60e11b815260040160405180910390fd5b808210611b69578260005414611be657600080fd5b611c30565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611bec575b5060009081556111509085838684565b6001600160e01b03198116811461131b57600080fd5b600060208284031215611c6857600080fd5b81356116aa81611c40565b60005b83811015611c8e578181015183820152602001611c76565b838111156111505750506000910152565b60008151808452611cb7816020860160208601611c73565b601f01601f19169290920160200192915050565b6020815260006116aa6020830184611c9f565b600060208284031215611cf057600080fd5b5035919050565b6001600160a01b038116811461131b57600080fd5b60008060408385031215611d1f57600080fd5b8235611d2a81611cf7565b946020939093013593505050565b600060208284031215611d4a57600080fd5b813561ffff811681146116aa57600080fd5b600080600060608486031215611d7157600080fd5b8335611d7c81611cf7565b92506020840135611d8c81611cf7565b929592945050506040919091013590565b600060208284031215611daf57600080fd5b81356116aa81611cf7565b60008060208385031215611dcd57600080fd5b823567ffffffffffffffff80821115611de557600080fd5b818501915085601f830112611df957600080fd5b813581811115611e0857600080fd5b8660208260051b8501011115611e1d57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052602160045260246000fd5b6020810160048310611e6757634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611e8057600080fd5b8235611e8b81611cf7565b915060208301358015158114611ea057600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611edc57611edc611eab565b604051601f8501601f19908116603f01168101908282118183101715611f0457611f04611eab565b81604052809350858152868686011115611f1d57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215611f4d57600080fd5b8435611f5881611cf7565b93506020850135611f6881611cf7565b925060408501359150606085013567ffffffffffffffff811115611f8b57600080fd5b8501601f81018713611f9c57600080fd5b611fab87823560208401611ec1565b91505092959194509250565b60008060408385031215611fca57600080fd5b823591506020830135611ea081611cf7565b600060208284031215611fee57600080fd5b813567ffffffffffffffff81111561200557600080fd5b8201601f8101841361201657600080fd5b6119c384823560208401611ec1565b6000806040838503121561203857600080fd5b823561204381611cf7565b91506020830135611ea081611cf7565b600181811c9082168061206757607f821691505b60208210810361208757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526014908201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612122576121226120f2565b500290565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b6020808252601e908201527f596f75206d757374206d696e74206174206c65617374203120746f6b656e0000604082015260600190565b6020808252602c908201527f596f752063616e277420636c61696d206d6f7265207468616e203520746f6b6560408201526b6e7320617420612074696d6560a01b606082015260800190565b600082198211156121e5576121e56120f2565b500190565b6020808252601c908201527f636c61696d206861732072656163686564206d617820737570706c7900000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f436c61696d206973206e6f7420617661696c61626c6520617420746869732074604082015262696d6560e81b606082015260800190565b6000602082840312156122ab57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60008084546122d681612053565b600182811680156122ee576001811461230357612332565b60ff1984168752821515830287019450612332565b8860005260208060002060005b858110156123295781548a820152908401908201612310565b50505082870194505b505050508351612346818360208801611c73565b01949350505050565b601f821115610b1157600081815260208120601f850160051c810160208610156123765750805b601f850160051c820191505b8181101561239557828155600101612382565b505050505050565b815167ffffffffffffffff8111156123b7576123b7611eab565b6123cb816123c58454612053565b8461234f565b602080601f83116001811461240057600084156123e85750858301515b600019600386901b1c1916600185901b178555612395565b600085815260208120601f198616915b8281101561242f57888601518255948401946001909101908401612410565b508582101561244d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061249090830184611c9f565b9695505050505050565b6000602082840312156124ac57600080fd5b81516116aa81611c40565b6000600182016124c9576124c96120f2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826124f5576124f56124d0565b500490565b60008282101561250c5761250c6120f2565b500390565b600082612520576125206124d0565b50069056fea2646970667358221220231a0e12b3fff853e82661cf42e1fb742c06dc9dc0254f4a276764445a3eca6864736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000ea2894fe840f105ab99a8f8f75b1f17e94843a000000000000000000000000aaf03a65cbd8f01b512cd8d530a675b3963de25500000000000000000000000000000000000000000000000000000000000000085765617261626c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018447275672052656365697074733a205765617261626c65730000000000000000

Deployed Bytecode

0x6080604052600436106102045760003560e01c80638da5cb5b11610118578063c9cee0e2116100a0578063f2dc6b331161006f578063f2dc6b33146105d6578063f2fde38b146105eb578063f4a0a5281461060b578063fa09e6301461062b578063fa23987c1461064b57600080fd5b8063c9cee0e21461051d578063cf7a0c4714610532578063e0df5b6f1461056d578063e985e9c51461058d57600080fd5b8063a22cb465116100e7578063a22cb46514610487578063a905821a146104a7578063b88d4fde146104c7578063c87b56dd146104e7578063c933d09a1461050757600080fd5b80638da5cb5b1461040d57806395d89b411461042b5780639f26620814610440578063a1cb31b71461046057600080fd5b806336047fed1161019b5780636942a8b01161016a5780636942a8b01461039057806370a08231146103a3578063715018a6146103c3578063729ad39e146103d857806377e56357146103f857600080fd5b806336047fed1461032557806342842e0e1461033a5780636352211e1461035a5780636817c76c1461037a57600080fd5b80630e176e02116101d75780630e176e02146102ba57806316755b57146102cf57806318160ddd146102e257806323b872dd1461030557600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611c56565b61065e565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106b0565b6040516102359190611ccb565b34801561026c57600080fd5b5061028061027b366004611cde565b610742565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611d0c565b610786565b005b3480156102c657600080fd5b50610253610858565b6102b86102dd366004611d38565b6108e6565b3480156102ee57600080fd5b50600154600054035b604051908152602001610235565b34801561031157600080fd5b506102b8610320366004611d5c565b610b06565b34801561033157600080fd5b506102b8610b16565b34801561034657600080fd5b506102b8610355366004611d5c565b610b57565b34801561036657600080fd5b50610280610375366004611cde565b610b72565b34801561038657600080fd5b506102f7600e5481565b6102b861039e366004611cde565b610b7d565b3480156103af57600080fd5b506102f76103be366004611d9d565b610e12565b3480156103cf57600080fd5b506102b8610e61565b3480156103e457600080fd5b506102b86103f3366004611dba565b610e97565b34801561040457600080fd5b506102b8610f78565b34801561041957600080fd5b506009546001600160a01b0316610280565b34801561043757600080fd5b50610253610fb6565b34801561044c57600080fd5b506102b861045b366004611cde565b610fc5565b34801561046c57600080fd5b50600b5461047a9060ff1681565b6040516102359190611e45565b34801561049357600080fd5b506102b86104a2366004611e6d565b610ff4565b3480156104b357600080fd5b506102b86104c2366004611d9d565b611089565b3480156104d357600080fd5b506102b86104e2366004611f37565b611156565b3480156104f357600080fd5b50610253610502366004611cde565b61119a565b34801561051357600080fd5b506102f7600d5481565b34801561052957600080fd5b506102b86111ce565b34801561053e57600080fd5b5061022961054d366004611fb7565b600f60209081526000928352604080842090915290825290205460ff1681565b34801561057957600080fd5b506102b8610588366004611fdc565b61120b565b34801561059957600080fd5b506102296105a8366004612025565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105e257600080fd5b506102b8611245565b3480156105f757600080fd5b506102b8610606366004611d9d565b611283565b34801561061757600080fd5b506102b8610626366004611cde565b61131e565b34801561063757600080fd5b506102b8610646366004611d9d565b61134d565b6102b8610659366004611cde565b6113af565b60006301ffc9a760e01b6001600160e01b03198316148061068f57506380ac58cd60e01b6001600160e01b03198316145b806106aa5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106bf90612053565b80601f01602080910402602001604051908101604052809291908181526020018280546106eb90612053565b80156107385780601f1061070d57610100808354040283529160200191610738565b820191906000526020600020905b81548152906001019060200180831161071b57829003601f168201915b5050505050905090565b600061074d82611637565b61076a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107918261165e565b9050806001600160a01b0316836001600160a01b0316036107c55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107fc576107df81336105a8565b6107fc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a805461086590612053565b80601f016020809104026020016040519081016040528092919081815260200182805461089190612053565b80156108de5780601f106108b3576101008083540402835291602001916108de565b820191906000526020600020905b8154815290600101906020018083116108c157829003601f168201915b505050505081565b6002600854036109115760405162461bcd60e51b81526004016109089061208d565b60405180910390fd5b600260085561ffff811633321461093a5760405162461bcd60e51b8152600401610908906120c4565b333b156109595760405162461bcd60e51b8152600401610908906120c4565b600e546109669082612108565b3410156109855760405162461bcd60e51b815260040161090890612127565b600081116109a55760405162461bcd60e51b81526004016109089061214f565b600681106109c55760405162461bcd60e51b815260040161090890612186565b600d54816109d66001546000540390565b6109e091906121d2565b11156109fe5760405162461bcd60e51b8152600401610908906121ea565b6002600b5460ff166003811115610a1757610a17611e2f565b14610a645760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610908565b436000908152600f6020908152604080832033845290915290205460ff1615610ac95760405162461bcd60e51b8152602060048201526017602482015276616c7265616479206d696e74656420696e20626c6f636b60481b6044820152606401610908565b436000908152600f60209081526040808320338085529252909120805460ff19166001179055610afd9061ffff84166116cc565b50506001600855565b610b118383836116e6565b505050565b6009546001600160a01b03163314610b405760405162461bcd60e51b815260040161090890612221565b600b80546000919060ff19166001835b0217905550565b610b1183838360405180602001604052806000815250611156565b60006106aa8261165e565b600260085403610b9f5760405162461bcd60e51b81526004016109089061208d565b600260085580333214610bc45760405162461bcd60e51b8152600401610908906120c4565b333b15610be35760405162461bcd60e51b8152600401610908906120c4565b600e54610bf09082612108565b341015610c0f5760405162461bcd60e51b815260040161090890612127565b60008111610c2f5760405162461bcd60e51b81526004016109089061214f565b60068110610c4f5760405162461bcd60e51b815260040161090890612186565b600d5481610c606001546000540390565b610c6a91906121d2565b1115610c885760405162461bcd60e51b8152600401610908906121ea565b6000600b5460ff166003811115610ca157610ca1611e2f565b14610cbe5760405162461bcd60e51b815260040161090890612256565b600b546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610d0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d309190612299565b11610d7d5760405162461bcd60e51b815260206004820181905260248201527f596f7520646f6e2774206861766520616e7920647275672072656365697074736044820152606401610908565b436000908152600f6020908152604080832033845290915290205460ff1615610de25760405162461bcd60e51b8152602060048201526017602482015276616c7265616479206d696e74656420696e20626c6f636b60481b6044820152606401610908565b436000908152600f60209081526040808320338085529252909120805460ff19166001179055610afd90836116cc565b60006001600160a01b038216610e3b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b03163314610e8b5760405162461bcd60e51b815260040161090890612221565b610e95600061188d565b565b6009546001600160a01b03163314610ec15760405162461bcd60e51b815260040161090890612221565b60005b60ff8116821115610b1157610f0383838360ff16818110610ee757610ee76122b2565b9050602002016020810190610efc9190611d9d565b60016116cc565b82828260ff16818110610f1857610f186122b2565b9050602002016020810190610f2d9190611d9d565b6001600160a01b03167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe6001604051610f6891815260200190565b60405180910390a2600101610ec4565b6009546001600160a01b03163314610fa25760405162461bcd60e51b815260040161090890612221565b600b80546002919060ff1916600183610b50565b6060600380546106bf90612053565b6009546001600160a01b03163314610fef5760405162461bcd60e51b815260040161090890612221565b600d55565b336001600160a01b0383160361101d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b031633146110b35760405162461bcd60e51b815260040161090890612221565b604051479060009081906001600160a01b0385169084908381818185875af1925050503d8060008114611102576040519150601f19603f3d011682016040523d82523d6000602084013e611107565b606091505b5091509150816111505760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610908565b50505050565b6111618484846116e6565b6001600160a01b0383163b156111505761117d848484846118df565b611150576040516368d2bf6b60e11b815260040160405180910390fd5b6060600a6111a7836119cb565b6040516020016111b89291906122c8565b6040516020818303038152906040529050919050565b6009546001600160a01b031633146111f85760405162461bcd60e51b815260040161090890612221565b600b80546001919060ff19168280610b50565b6009546001600160a01b031633146112355760405162461bcd60e51b815260040161090890612221565b600a611241828261239d565b5050565b6009546001600160a01b0316331461126f5760405162461bcd60e51b815260040161090890612221565b600b80546003919060ff1916600183610b50565b6009546001600160a01b031633146112ad5760405162461bcd60e51b815260040161090890612221565b6001600160a01b0381166113125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610908565b61131b8161188d565b50565b6009546001600160a01b031633146113485760405162461bcd60e51b815260040161090890612221565b600e55565b6009546001600160a01b031633146113775760405162461bcd60e51b815260040161090890612221565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610b11573d6000803e3d6000fd5b6002600854036113d15760405162461bcd60e51b81526004016109089061208d565b6002600855803332146113f65760405162461bcd60e51b8152600401610908906120c4565b333b156114155760405162461bcd60e51b8152600401610908906120c4565b600e546114229082612108565b3410156114415760405162461bcd60e51b815260040161090890612127565b600081116114615760405162461bcd60e51b81526004016109089061214f565b600681106114815760405162461bcd60e51b815260040161090890612186565b600d54816114926001546000540390565b61149c91906121d2565b11156114ba5760405162461bcd60e51b8152600401610908906121ea565b6001600b5460ff1660038111156114d3576114d3611e2f565b146114f05760405162461bcd60e51b815260040161090890612256565b600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611539573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155d9190612299565b11806115d85750600b546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156115b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d69190612299565b115b610d7d5760405162461bcd60e51b815260206004820152602a60248201527f596f7520646f6e2774206861766520616e79205365656b657273206f722044726044820152697567526563656970747360b01b6064820152608401610908565b60008054821080156106aa575050600090815260046020526040902054600160e01b161590565b6000816000548110156116b35760008181526004602052604081205490600160e01b821690036116b1575b806000036116aa575060001901600081815260046020526040902054611689565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b611241828260405180602001604052806000815250611acc565b60006116f18261165e565b9050836001600160a01b0316816001600160a01b0316146117245760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611742575061174285336105a8565b8061175d57503361175284610742565b6001600160a01b0316145b90508061177d57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166117a457604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611845576001830160008181526004602052604081205490036118435760005481146118435760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061191490339089908890889060040161245d565b6020604051808303816000875af192505050801561194f575060408051601f3d908101601f1916820190925261194c9181019061249a565b60015b6119ad573d80801561197d576040519150601f19603f3d011682016040523d82523d6000602084013e611982565b606091505b5080516000036119a5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036119f25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a1c5780611a06816124b7565b9150611a159050600a836124e6565b91506119f6565b60008167ffffffffffffffff811115611a3757611a37611eab565b6040519080825280601f01601f191660200182016040528015611a61576020820181803683370190505b5090505b84156119c357611a766001836124fa565b9150611a83600a86612511565b611a8e9060306121d2565b60f81b818381518110611aa357611aa36122b2565b60200101906001600160f81b031916908160001a905350611ac5600a866124e6565b9450611a65565b6000546001600160a01b038416611af557604051622e076360e81b815260040160405180910390fd5b82600003611b165760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611beb575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611bb460008784806001019550876118df565b611bd1576040516368d2bf6b60e11b815260040160405180910390fd5b808210611b69578260005414611be657600080fd5b611c30565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611bec575b5060009081556111509085838684565b6001600160e01b03198116811461131b57600080fd5b600060208284031215611c6857600080fd5b81356116aa81611c40565b60005b83811015611c8e578181015183820152602001611c76565b838111156111505750506000910152565b60008151808452611cb7816020860160208601611c73565b601f01601f19169290920160200192915050565b6020815260006116aa6020830184611c9f565b600060208284031215611cf057600080fd5b5035919050565b6001600160a01b038116811461131b57600080fd5b60008060408385031215611d1f57600080fd5b8235611d2a81611cf7565b946020939093013593505050565b600060208284031215611d4a57600080fd5b813561ffff811681146116aa57600080fd5b600080600060608486031215611d7157600080fd5b8335611d7c81611cf7565b92506020840135611d8c81611cf7565b929592945050506040919091013590565b600060208284031215611daf57600080fd5b81356116aa81611cf7565b60008060208385031215611dcd57600080fd5b823567ffffffffffffffff80821115611de557600080fd5b818501915085601f830112611df957600080fd5b813581811115611e0857600080fd5b8660208260051b8501011115611e1d57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052602160045260246000fd5b6020810160048310611e6757634e487b7160e01b600052602160045260246000fd5b91905290565b60008060408385031215611e8057600080fd5b8235611e8b81611cf7565b915060208301358015158114611ea057600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611edc57611edc611eab565b604051601f8501601f19908116603f01168101908282118183101715611f0457611f04611eab565b81604052809350858152868686011115611f1d57600080fd5b858560208301376000602087830101525050509392505050565b60008060008060808587031215611f4d57600080fd5b8435611f5881611cf7565b93506020850135611f6881611cf7565b925060408501359150606085013567ffffffffffffffff811115611f8b57600080fd5b8501601f81018713611f9c57600080fd5b611fab87823560208401611ec1565b91505092959194509250565b60008060408385031215611fca57600080fd5b823591506020830135611ea081611cf7565b600060208284031215611fee57600080fd5b813567ffffffffffffffff81111561200557600080fd5b8201601f8101841361201657600080fd5b6119c384823560208401611ec1565b6000806040838503121561203857600080fd5b823561204381611cf7565b91506020830135611ea081611cf7565b600181811c9082168061206757607f821691505b60208210810361208757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526014908201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612122576121226120f2565b500290565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b6020808252601e908201527f596f75206d757374206d696e74206174206c65617374203120746f6b656e0000604082015260600190565b6020808252602c908201527f596f752063616e277420636c61696d206d6f7265207468616e203520746f6b6560408201526b6e7320617420612074696d6560a01b606082015260800190565b600082198211156121e5576121e56120f2565b500190565b6020808252601c908201527f636c61696d206861732072656163686564206d617820737570706c7900000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f436c61696d206973206e6f7420617661696c61626c6520617420746869732074604082015262696d6560e81b606082015260800190565b6000602082840312156122ab57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60008084546122d681612053565b600182811680156122ee576001811461230357612332565b60ff1984168752821515830287019450612332565b8860005260208060002060005b858110156123295781548a820152908401908201612310565b50505082870194505b505050508351612346818360208801611c73565b01949350505050565b601f821115610b1157600081815260208120601f850160051c810160208610156123765750805b601f850160051c820191505b8181101561239557828155600101612382565b505050505050565b815167ffffffffffffffff8111156123b7576123b7611eab565b6123cb816123c58454612053565b8461234f565b602080601f83116001811461240057600084156123e85750858301515b600019600386901b1c1916600185901b178555612395565b600085815260208120601f198616915b8281101561242f57888601518255948401946001909101908401612410565b508582101561244d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061249090830184611c9f565b9695505050505050565b6000602082840312156124ac57600080fd5b81516116aa81611c40565b6000600182016124c9576124c96120f2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826124f5576124f56124d0565b500490565b60008282101561250c5761250c6120f2565b500390565b600082612520576125206124d0565b50069056fea2646970667358221220231a0e12b3fff853e82661cf42e1fb742c06dc9dc0254f4a276764445a3eca6864736f6c634300080f0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000ea2894fe840f105ab99a8f8f75b1f17e94843a000000000000000000000000aaf03a65cbd8f01b512cd8d530a675b3963de25500000000000000000000000000000000000000000000000000000000000000085765617261626c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018447275672052656365697074733a205765617261626c65730000000000000000

-----Decoded View---------------
Arg [0] : name (string): Wearable
Arg [1] : symbol (string): Drug Receipts: Wearables
Arg [2] : _drugReceiptToken (address): 0x00Ea2894FE840F105ab99A8f8F75B1F17e94843A
Arg [3] : _seekerToken (address): 0xaAF03a65CbD8f01b512Cd8d530a675b3963dE255

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 00000000000000000000000000ea2894fe840f105ab99a8f8f75b1f17e94843a
Arg [3] : 000000000000000000000000aaf03a65cbd8f01b512cd8d530a675b3963de255
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 5765617261626c65000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [7] : 447275672052656365697074733a205765617261626c65730000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Don’t Just Fit InDrug Receipts is leading the way into the future of brands with innovative augmented reality (AR) apparel that you can wear in the IRL universe, and 3D rendered wearables for your avatars to wear in the URL metaverse. Don’t settle for the status quo. Dare to...

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.