ETH Price: $3,342.36 (-0.96%)
Gas: 4.62 Gwei

Token

We Stand Together (STAND)
 

Overview

Max Total Supply

222 STAND

Holders

162

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
kissd.eth
Balance
1 STAND
0x9a78c0913396f8607eac7c4ae211a9138c2a1fac
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
WeStandTogether

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
File 1 of 11 : WeStandTogether.sol
// SPDX-License-Identifier: GPL-3.0-or-later

/// @title We Stand Together
/// @author Transient Labs

pragma solidity ^0.8.9;

/*
 _       __        _____ __                  __   ______                 __  __             
| |     / /__     / ___// /_____ _____  ____/ /  /_  __/___  ____ ____  / /_/ /_  ___  _____
| | /| / / _ \    \__ \/ __/ __ `/ __ \/ __  /    / / / __ \/ __ `/ _ \/ __/ __ \/ _ \/ ___/
| |/ |/ /  __/   ___/ / /_/ /_/ / / / / /_/ /    / / / /_/ / /_/ /  __/ /_/ / / /  __/ /    
|__/|__/\___/   /____/\__/\__,_/_/ /_/\__,_/    /_/  \____/\__, /\___/\__/_/ /_/\___/_/     
                                                          /____/                            
   ___       _ __   __  ___  _ ______                 __ 
  / _ )__ __(_) /__/ / / _ \(_) _/ _/__ _______ ___  / /_
 / _  / // / / / _  / / // / / _/ _/ -_) __/ -_) _ \/ __/
/____/\_,_/_/_/\_,_/ /____/_/_//_/ \__/_/  \__/_//_/\__/                                                          
 ______                  _          __    __        __     
/_  __/______ ____  ___ (_)__ ___  / /_  / /  ___ _/ /  ___
 / / / __/ _ `/ _ \(_-</ / -_) _ \/ __/ / /__/ _ `/ _ \(_-<
/_/ /_/  \_,_/_//_/___/_/\__/_//_/\__/ /____/\_,_/_.__/___/                                                           
*/

import "ERC721A.sol";
import "EIP2981AllToken.sol";
import "Ownable.sol";
import "Base64.sol";
import "Strings.sol";

contract WeStandTogether is ERC721A, EIP2981AllToken, Ownable {
    using Strings for uint256;

    bool public saleOpen;
    uint256 public mintPrice;
    address payable public payout;
    address public admin;
    string public description;
    string public image;

    modifier isEOA {
        require(msg.sender == tx.origin, "Function must be called by an EOA");
        _;
    }

    modifier adminOrOwner {
        require(msg.sender == admin || msg.sender == Ownable.owner(), "Address not admin or owner");
        _;
    }

    /// @param _price is the mint price
    /// @param _royaltyRecipient is the royalty recipient
    /// @param _royaltyPercentage is the royalty percentage to set
    /// @param _admin is the admin address
    /// @param _payout is the payout address
    /// @param _description is the piece description
    /// @param _image is the piece image URI
    constructor (uint256 _price, address _royaltyRecipient, uint256 _royaltyPercentage,
        address _admin, address _payout, string memory _description, string memory _image)
        ERC721A("We Stand Together", "STAND") EIP2981AllToken(_royaltyRecipient, _royaltyPercentage) Ownable() 
    {
        admin = _admin;
        payout = payable(_payout);
        mintPrice = _price;
        description = _description;
        image = _image;
    }

    /// @notice function to change the royalty info
    /// @dev requires admin or owner
    /// @dev this is useful if the amount was set improperly at contract creation.
    /// @param newAddr is the new royalty payout addresss
    /// @param newPerc is the new royalty percentage, in basis points (out of 10,000)
    function setRoyaltyInfo(address newAddr, uint256 newPerc) external adminOrOwner {
        require(newAddr != address(0), "Cannot set royalty receipient to the zero address");
        require(newPerc < 10000, "Cannot set royalty percentage above 10000");
        royaltyAddr = newAddr;
        royaltyPerc = newPerc;
    }

    /// @notice function to set the admin address on the contract
    /// @dev requires owner
    /// @param _admin is the new admin address
    function setAdminAddress(address _admin) external onlyOwner {
        require(_admin != address(0), "New admin cannot be the zero address");
        admin = _admin;
    }

    /// @notice function to set the payout address on the contract
    /// @dev requires owner
    /// @param _payout is the new admin address
    function setPayoutAddress(address _payout) external onlyOwner {
        require(_payout != address(0), "New payout address cannot be the zero address");
        payout = payable(_payout);
    }

    /// @notice function to set mint price
    /// @dev requires admin or owner
    /// @param _price is the new mint price
    function setMintPrice(uint256 _price) external adminOrOwner {
        mintPrice = _price;
    }

    /// @notice function to set the piece description
    /// @dev requires owner or admin
    /// @param _description is the new description
    function setDescription(string calldata _description) external adminOrOwner {
        description = _description;
    }

    /// @notice function to flip the sale state
    /// @dev requires admin or owner
    function flipSaleState() external adminOrOwner {
        saleOpen = !saleOpen;
    }

    /// @notice function to mint to the owner's wallet
    function ownerMint() external adminOrOwner {
        _mint(owner(), 1);
    }

    /// @notice function for minting the editions
    /// @dev requires owner or admin
    /// @dev using _mint function as owner() should always be an EOA or trusted entity
    /// @param _num is the number to mint
    function mint(uint256 _num) external payable {
        require(_num <= 50, "Batch size too large");
        require(msg.value >= _num * mintPrice, "Not enough ether attached to the function call");
        require(saleOpen, "Sale is not open");
        _mint(msg.sender, _num);
    }

    /// @notice function to withdraw ether
    /// @dev requires admin or owner
    function withdrawEther() external virtual adminOrOwner {
        payout.transfer(address(this).balance);
    }

    /// @notice function to override tokenURI
    function tokenURI(uint256 tokenId) override public view returns(string memory) {
        require(_exists(tokenId), "URI query for nonexistent token");
        return string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(bytes(abi.encodePacked(
                    '{"name": "We Stand Together #', tokenId.toString(), '",',
                    unicode'"description": "', description, '",',
                    '"image": "', image, '"}'
                )))
            )
        );
    }

    /// @notice function to set the start token id
     function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    /// @notice overrides supportsInterface function
    /// @param interfaceId is supplied from anyone/contract calling this function, as defined in ERC 165
    /// @return boolean saying if this contract supports the interface or not
    function supportsInterface(bytes4 interfaceId) public view override(ERC721A, EIP2981AllToken) returns (bool) {
        return ERC721A.supportsInterface(interfaceId) || EIP2981AllToken.supportsInterface(interfaceId);
    }
}

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

pragma solidity ^0.8.4;

import "IERC721A.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

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

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

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

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

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

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 4 of 11 : EIP2981AllToken.sol
// SPDX-License-Identifier: MIT

/**
*   @title EIP 2981 All Token
*   @notice implementation of EIP 2981, with all tokens having the same royalty amount
*   @author Transient Labs, LLC
*/

/*
   ___                            __  ___         ______                  _         __    __       __     
  / _ \___ _    _____ _______ ___/ / / _ )__ __  /_  _________ ____  ___ (____ ___ / /_  / / ___ _/ /  ___
 / ___/ _ | |/|/ / -_/ __/ -_/ _  / / _  / // /   / / / __/ _ `/ _ \(_-</ / -_/ _ / __/ / /_/ _ `/ _ \(_-<
/_/   \___|__,__/\__/_/  \__/\_,_/ /____/\_, /   /_/ /_/  \_,_/_//_/___/_/\__/_//_\__/ /____\_,_/_.__/___/
                                        /___/                                                             
*/

pragma solidity ^0.8.0;

import "ERC165.sol";
import "IEIP2981.sol";

contract EIP2981AllToken is IEIP2981, ERC165 {

    address internal royaltyAddr;
    uint256 internal royaltyPerc; // percentage in basis (out of 10,000)

    /**
    *   @notice constructor
    *   @dev need inheriting contracts to accept the parameters in their constructor
    *   @dev inheriting contracts may implement functions to re-assign the state variables in this contract
    *   @param addr is the royalty payout address
    *   @param perc is the royalty percentage, multiplied by 10000. Ex: 7.5% => 750
    */
    constructor(address addr, uint256 perc) {
        royaltyAddr = addr;
        royaltyPerc = perc;
    }

    /**
    *   @notice EIP 2981 royalty support
    *   @dev royalty amount not dependent on _tokenId
    */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address receiver, uint256 royaltyAmount) {
        return (royaltyAddr, royaltyPerc * _salePrice / 10000);
    }

    /**
    *   @notice override ERC 165 implementation of this function
    *   @dev if using this contract with another contract that suppports ERC 265, will have to override in the inheriting contract
    */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return interfaceId == type(IEIP2981).interfaceId || super.supportsInterface(interfaceId);
    }
}

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

pragma solidity ^0.8.0;

import "IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 7 of 11 : IEIP2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

///
/// @dev Interface for the NFT Royalty Standard
///
interface IEIP2981 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver,uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "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 9 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 11 of 11 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint256","name":"_royaltyPercentage","type":"uint256"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_payout","type":"address"},{"internalType":"string","name":"_description","type":"string"},{"internalType":"string","name":"_image","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"image","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"_num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","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":[],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payout","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payout","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"},{"internalType":"uint256","name":"newPerc","type":"uint256"}],"name":"setRoyaltyInfo","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":[],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200241c3803806200241c833981016040819052620000349162000332565b60408051808201825260118152702bb29029ba30b732102a37b3b2ba3432b960791b60208083019182528351808501909452600584526414d510539160da1b908401528151899389939290916200008e91600291620001a2565b508051620000a4906003906020840190620001a2565b5060016000555050600880546001600160a01b0319166001600160a01b039390931692909217909155600955620000e2620000dc3390565b62000150565b600d80546001600160a01b038087166001600160a01b031992831617909255600c805492861692909116919091179055600b87905581516200012c90600e906020850190620001a2565b5080516200014290600f906020840190620001a2565b505050505050505062000424565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b090620003e8565b90600052602060002090601f016020900481019282620001d457600085556200021f565b82601f10620001ef57805160ff19168380011785556200021f565b828001600101855582156200021f579182015b828111156200021f57825182559160200191906001019062000202565b506200022d92915062000231565b5090565b5b808211156200022d576000815560010162000232565b80516001600160a01b03811681146200026057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028d57600080fd5b81516001600160401b0380821115620002aa57620002aa62000265565b604051601f8301601f19908116603f01168101908282118183101715620002d557620002d562000265565b81604052838152602092508683858801011115620002f257600080fd5b600091505b83821015620003165785820183015181830184015290820190620002f7565b83821115620003285760008385830101525b9695505050505050565b600080600080600080600060e0888a0312156200034e57600080fd5b87519650620003606020890162000248565b955060408801519450620003776060890162000248565b9350620003876080890162000248565b60a08901519093506001600160401b0380821115620003a557600080fd5b620003b38b838c016200027b565b935060c08a0151915080821115620003ca57600080fd5b50620003d98a828b016200027b565b91505092959891949750929550565b600181811c90821680620003fd57607f821691505b6020821081036200041e57634e487b7160e01b600052602260045260246000fd5b50919050565b611fe880620004346000396000f3fe6080604052600436106101ee5760003560e01c80637284e4161161010d578063b12dc991116100a0578063e985e9c51161006f578063e985e9c514610570578063f2fde38b146105b9578063f3ccaac0146105d9578063f4a0a528146105ee578063f851a4401461060e57600080fd5b8063b12dc991146104fb578063b88d4fde14610510578063c87b56dd14610530578063e2e784d51461055057600080fd5b806395d89b41116100dc57806395d89b411461049257806399288dbb146104a7578063a0712d68146104c8578063a22cb465146104db57600080fd5b80637284e4161461042a5780637362377b1461043f5780638da5cb5b1461045457806390c3f38f1461047257600080fd5b806333ea51a81161018557806363bd1d4a1161015457806363bd1d4a146103bf5780636817c76c146103df57806370a08231146103f5578063715018a61461041557600080fd5b806333ea51a81461034a57806334918dfd1461036a57806342842e0e1461037f5780636352211e1461039f57600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102cb5780632a55205a146102eb5780632c1e816d1461032a57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046118e7565b61062e565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61064e565b60405161021f919061195c565b34801561025657600080fd5b5061026a61026536600461196f565b6106e0565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d3660046119a4565b610724565b005b3480156102b057600080fd5b5060015460005403600019015b60405190815260200161021f565b3480156102d757600080fd5b506102a26102e63660046119ce565b6107c4565b3480156102f757600080fd5b5061030b610306366004611a0a565b61095c565b604080516001600160a01b03909316835260208301919091520161021f565b34801561033657600080fd5b506102a2610345366004611a2c565b610997565b34801561035657600080fd5b506102a2610365366004611a2c565b610a4e565b34801561037657600080fd5b506102a2610b06565b34801561038b57600080fd5b506102a261039a3660046119ce565b610b66565b3480156103ab57600080fd5b5061026a6103ba36600461196f565b610b86565b3480156103cb57600080fd5b50600c5461026a906001600160a01b031681565b3480156103eb57600080fd5b506102bd600b5481565b34801561040157600080fd5b506102bd610410366004611a2c565b610b91565b34801561042157600080fd5b506102a2610be0565b34801561043657600080fd5b5061023d610c16565b34801561044b57600080fd5b506102a2610ca4565b34801561046057600080fd5b50600a546001600160a01b031661026a565b34801561047e57600080fd5b506102a261048d366004611a47565b610d1f565b34801561049e57600080fd5b5061023d610d6a565b3480156104b357600080fd5b50600a5461021390600160a01b900460ff1681565b6102a26104d636600461196f565b610d79565b3480156104e757600080fd5b506102a26104f6366004611ab9565b610e8a565b34801561050757600080fd5b506102a2610f1f565b34801561051c57600080fd5b506102a261052b366004611b0b565b610f7a565b34801561053c57600080fd5b5061023d61054b36600461196f565b610fc4565b34801561055c57600080fd5b506102a261056b3660046119a4565b611077565b34801561057c57600080fd5b5061021361058b366004611be7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105c557600080fd5b506102a26105d4366004611a2c565b6111af565b3480156105e557600080fd5b5061023d611247565b3480156105fa57600080fd5b506102a261060936600461196f565b611254565b34801561061a57600080fd5b50600d5461026a906001600160a01b031681565b600061063982611298565b806106485750610648826112e6565b92915050565b60606002805461065d90611c1a565b80601f016020809104026020016040519081016040528092919081815260200182805461068990611c1a565b80156106d65780601f106106ab576101008083540402835291602001916106d6565b820191906000526020600020905b8154815290600101906020018083116106b957829003601f168201915b5050505050905090565b60006106eb8261131b565b610708576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061072f82610b86565b9050336001600160a01b038216146107685761074b813361058b565b610768576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006107cf82611350565b9050836001600160a01b0316816001600160a01b0316146108025760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761084f57610832863361058b565b61084f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661087657604051633a954ecd60e21b815260040160405180910390fd5b801561088157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610913576001840160008181526004602052604081205490036109115760005481146109115760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60085460095460009182916001600160a01b039091169061271090610982908690611c6a565b61098c9190611c9f565b915091509250929050565b600a546001600160a01b031633146109ca5760405162461bcd60e51b81526004016109c190611cb3565b60405180910390fd5b6001600160a01b038116610a2c5760405162461bcd60e51b8152602060048201526024808201527f4e65772061646d696e2063616e6e6f7420626520746865207a65726f206164646044820152637265737360e01b60648201526084016109c1565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314610a785760405162461bcd60e51b81526004016109c190611cb3565b6001600160a01b038116610ae45760405162461bcd60e51b815260206004820152602d60248201527f4e6577207061796f757420616464726573732063616e6e6f742062652074686560448201526c207a65726f206164647265737360981b60648201526084016109c1565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b0316331480610b295750600a546001600160a01b031633145b610b455760405162461bcd60e51b81526004016109c190611ce8565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b610b8183838360405180602001604052806000815250610f7a565b505050565b600061064882611350565b60006001600160a01b038216610bba576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600a546001600160a01b03163314610c0a5760405162461bcd60e51b81526004016109c190611cb3565b610c1460006113c6565b565b600e8054610c2390611c1a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4f90611c1a565b8015610c9c5780601f10610c7157610100808354040283529160200191610c9c565b820191906000526020600020905b815481529060010190602001808311610c7f57829003601f168201915b505050505081565b600d546001600160a01b0316331480610cc75750600a546001600160a01b031633145b610ce35760405162461bcd60e51b81526004016109c190611ce8565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d1c573d6000803e3d6000fd5b50565b600d546001600160a01b0316331480610d425750600a546001600160a01b031633145b610d5e5760405162461bcd60e51b81526004016109c190611ce8565b610b81600e8383611838565b60606003805461065d90611c1a565b6032811115610dc15760405162461bcd60e51b815260206004820152601460248201527342617463682073697a6520746f6f206c6172676560601b60448201526064016109c1565b600b54610dce9082611c6a565b341015610e345760405162461bcd60e51b815260206004820152602e60248201527f4e6f7420656e6f75676820657468657220617474616368656420746f2074686560448201526d08199d5b98dd1a5bdb8818d85b1b60921b60648201526084016109c1565b600a54600160a01b900460ff16610e805760405162461bcd60e51b815260206004820152601060248201526f29b0b6329034b9903737ba1037b832b760811b60448201526064016109c1565b610d1c3382611418565b336001600160a01b03831603610eb35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600d546001600160a01b0316331480610f425750600a546001600160a01b031633145b610f5e5760405162461bcd60e51b81526004016109c190611ce8565b610c14610f73600a546001600160a01b031690565b6001611418565b610f858484846107c4565b6001600160a01b0383163b15610fbe57610fa1848484846114f8565b610fbe576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fcf8261131b565b61101b5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109c1565b611051611027836115e4565b600e600f60405160200161103d93929190611db8565b6040516020818303038152906040526116e5565b6040516020016110619190611e61565b6040516020818303038152906040529050919050565b600d546001600160a01b031633148061109a5750600a546001600160a01b031633145b6110b65760405162461bcd60e51b81526004016109c190611ce8565b6001600160a01b0382166111265760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f742073657420726f79616c74792072656365697069656e7420746f60448201527020746865207a65726f206164647265737360781b60648201526084016109c1565b61271081106111895760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f742073657420726f79616c74792070657263656e7461676520616260448201526806f76652031303030360bc1b60648201526084016109c1565b600880546001600160a01b0319166001600160a01b039390931692909217909155600955565b600a546001600160a01b031633146111d95760405162461bcd60e51b81526004016109c190611cb3565b6001600160a01b03811661123e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c1565b610d1c816113c6565b600f8054610c2390611c1a565b600d546001600160a01b03163314806112775750600a546001600160a01b031633145b6112935760405162461bcd60e51b81526004016109c190611ce8565b600b55565b60006301ffc9a760e01b6001600160e01b0319831614806112c957506380ac58cd60e01b6001600160e01b03198316145b806106485750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061064857506301ffc9a760e01b6001600160e01b0319831614610648565b60008160011115801561132f575060005482105b8015610648575050600090815260046020526040902054600160e01b161590565b600081806001116113ad576000548110156113ad5760008181526004602052604081205490600160e01b821690036113ab575b806000036113a4575060001901600081815260046020526040902054611383565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b03831661144157604051622e076360e81b815260040160405180910390fd5b816000036114625760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106114ac5760005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061152d903390899088908890600401611ea6565b6020604051808303816000875af1925050508015611568575060408051601f3d908101601f1916820190925261156591810190611ee3565b60015b6115c6573d808015611596576040519150601f19603f3d011682016040523d82523d6000602084013e61159b565b606091505b5080516000036115be576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608160000361160b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611635578061161f81611f00565b915061162e9050600a83611c9f565b915061160f565b60008167ffffffffffffffff81111561165057611650611af5565b6040519080825280601f01601f19166020018201604052801561167a576020820181803683370190505b5090505b84156115dc5761168f600183611f19565b915061169c600a86611f30565b6116a7906030611f44565b60f81b8183815181106116bc576116bc611f5c565b60200101906001600160f81b031916908160001a9053506116de600a86611c9f565b945061167e565b6060815160000361170457505060408051602081019091526000815290565b6000604051806060016040528060408152602001611f7360409139905060006003845160026117339190611f44565b61173d9190611c9f565b611748906004611c6a565b67ffffffffffffffff81111561176057611760611af5565b6040519080825280601f01601f19166020018201604052801561178a576020820181803683370190505b509050600182016020820185865187015b808210156117f6576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061179b565b505060038651066001811461181257600281146118255761182d565b603d6001830353603d600283035361182d565b603d60018303535b509195945050505050565b82805461184490611c1a565b90600052602060002090601f01602090048101928261186657600085556118ac565b82601f1061187f5782800160ff198235161785556118ac565b828001600101855582156118ac579182015b828111156118ac578235825591602001919060010190611891565b506118b89291506118bc565b5090565b5b808211156118b857600081556001016118bd565b6001600160e01b031981168114610d1c57600080fd5b6000602082840312156118f957600080fd5b81356113a4816118d1565b60005b8381101561191f578181015183820152602001611907565b83811115610fbe5750506000910152565b60008151808452611948816020860160208601611904565b601f01601f19169290920160200192915050565b6020815260006113a46020830184611930565b60006020828403121561198157600080fd5b5035919050565b80356001600160a01b038116811461199f57600080fd5b919050565b600080604083850312156119b757600080fd5b6119c083611988565b946020939093013593505050565b6000806000606084860312156119e357600080fd5b6119ec84611988565b92506119fa60208501611988565b9150604084013590509250925092565b60008060408385031215611a1d57600080fd5b50508035926020909101359150565b600060208284031215611a3e57600080fd5b6113a482611988565b60008060208385031215611a5a57600080fd5b823567ffffffffffffffff80821115611a7257600080fd5b818501915085601f830112611a8657600080fd5b813581811115611a9557600080fd5b866020828501011115611aa757600080fd5b60209290920196919550909350505050565b60008060408385031215611acc57600080fd5b611ad583611988565b915060208301358015158114611aea57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611b2157600080fd5b611b2a85611988565b9350611b3860208601611988565b925060408501359150606085013567ffffffffffffffff80821115611b5c57600080fd5b818701915087601f830112611b7057600080fd5b813581811115611b8257611b82611af5565b604051601f8201601f19908116603f01168101908382118183101715611baa57611baa611af5565b816040528281528a6020848701011115611bc357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611bfa57600080fd5b611c0383611988565b9150611c1160208401611988565b90509250929050565b600181811c90821680611c2e57607f821691505b602082108103611c4e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611c8457611c84611c54565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611cae57611cae611c89565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f41646472657373206e6f742061646d696e206f72206f776e6572000000000000604082015260600190565b8054600090600181811c9080831680611d3957607f831692505b60208084108203611d5a57634e487b7160e01b600052602260045260246000fd5b818015611d6e5760018114611d7f57611dac565b60ff19861689528489019650611dac565b60008881526020902060005b86811015611da45781548b820152908501908301611d8b565b505084890196505b50505050505092915050565b7f7b226e616d65223a20225765205374616e6420546f6765746865722023000000815260008451611df081601d850160208901611904565b61088b60f21b601d9184019182018190526f113232b9b1b934b83a34b7b7111d101160811b601f830152611e27602f830187611d1f565b908152691134b6b0b3b2911d101160b11b60028201529050611e4c600c820185611d1f565b61227d60f01b81526002019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611e9981601d850160208701611904565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ed990830184611930565b9695505050505050565b600060208284031215611ef557600080fd5b81516113a4816118d1565b600060018201611f1257611f12611c54565b5060010190565b600082821015611f2b57611f2b611c54565b500390565b600082611f3f57611f3f611c89565b500690565b60008219821115611f5757611f57611c54565b500190565b634e487b7160e01b600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212200fd89129ba43d91b707e88a9a39ce6db43801e2855101eb7dea59f9503924a9464736f6c634300080e0033000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000083416faef4d62178afbe246f4a41f82dca13ae0200000000000000000000000000000000000000000000000000000000000003e800000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a800000000000000000000000083416faef4d62178afbe246f4a41f82dca13ae0200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000047454686572652061726520736f206d616e7920636f6e74726f7665727369616c207375626a6563747320776520666163652061732068756d616e732e204675747572652067656e65726174696f6e7320646570656e64206f6e20757320746f206c6179206f7574207468652067756964656c696e65732e205468657265206973206e6f207175657374696f6e20696e206d6f7374206f66206f7572206d696e64732074686174207468652066726565646f6d20746f2063686f6f7365207768617420796f752063616e206f722063616ee280997420646f207769746820796f757220626f6479206973206120676976656e2068756d616e2072696768742e205768656e204920746f6f6b207468697320696d6167652049207761736ee28099742065786163746c792073757265207768617420492077616e74656420746f20646f20776974682069742c206f6e6c792077686174206974206d65616e7420746f206d652061732061206661746865722c2062726f746865722c20616e6420736f6e2e20e2809c5765207374616e6420746f676574686572e2809d2069736ee2809974206a75737420612073746174656d656e74206f6620756e697479206974e28099732061206d657373616765206f66207065727365766572616e63652e20546861742077652077696c6c206e6f7420676f2071756965746c7920696e746f20746865206e696768742c2077652077696c6c206e6f742062652073696c656e6365642c20616e642077652077696c6c20646566656e642074686520726967687420616e64206c696265727479206f662063686f6963652e20546869732069732077687920492072656163686564206f757420746f206f6e65206f66206d79206661766f72697465206172746973747320416e6e61204d634e617567687420746f206164642068657220617274697374696320766973696f6e20696e746f207468652070686f746f2e2049207468696e6b2077686174207765206372656174656420746f6765746865722073686f756c64206265207265636f676e697a656420666f722074686520636f6c6c61626f726174696f6e20746861742069742069732e2054776f20617274697374732077697468207468652062656c6965662074686174207468657920686176652074686520706f77657220746f2068656c70206368616e67652074686520776f726c642e2031303025206f6620746865207072696d61727920616e64207365636f6e646172792073616c65732077696c6c20626520646f6e6174656420746f20556e69636f726e64616f2f6c6567616c61626f7274696f6e2e65746820746f2070726f7465637420776f6d656ee280997320726570726f64756374697665207269676874732e2054686973206973206e6f7420616e20696e766573746d656e742e2054686973206973206172742e2054686572652077696c6c206e6576657220626520616e79206164646564207574696c69747920746f20746869732061727420736f20706c6561736520616374206163636f7264696e676c7920616e6420656e6a6f792e20f09fabb60000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d51746b5a6e4563645265475a6e6a71427a6635464c4274424375424b6b474637514d353356595636646d39720000000000000000000000

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80637284e4161161010d578063b12dc991116100a0578063e985e9c51161006f578063e985e9c514610570578063f2fde38b146105b9578063f3ccaac0146105d9578063f4a0a528146105ee578063f851a4401461060e57600080fd5b8063b12dc991146104fb578063b88d4fde14610510578063c87b56dd14610530578063e2e784d51461055057600080fd5b806395d89b41116100dc57806395d89b411461049257806399288dbb146104a7578063a0712d68146104c8578063a22cb465146104db57600080fd5b80637284e4161461042a5780637362377b1461043f5780638da5cb5b1461045457806390c3f38f1461047257600080fd5b806333ea51a81161018557806363bd1d4a1161015457806363bd1d4a146103bf5780636817c76c146103df57806370a08231146103f5578063715018a61461041557600080fd5b806333ea51a81461034a57806334918dfd1461036a57806342842e0e1461037f5780636352211e1461039f57600080fd5b806318160ddd116101c157806318160ddd146102a457806323b872dd146102cb5780632a55205a146102eb5780632c1e816d1461032a57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046118e7565b61062e565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d61064e565b60405161021f919061195c565b34801561025657600080fd5b5061026a61026536600461196f565b6106e0565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d3660046119a4565b610724565b005b3480156102b057600080fd5b5060015460005403600019015b60405190815260200161021f565b3480156102d757600080fd5b506102a26102e63660046119ce565b6107c4565b3480156102f757600080fd5b5061030b610306366004611a0a565b61095c565b604080516001600160a01b03909316835260208301919091520161021f565b34801561033657600080fd5b506102a2610345366004611a2c565b610997565b34801561035657600080fd5b506102a2610365366004611a2c565b610a4e565b34801561037657600080fd5b506102a2610b06565b34801561038b57600080fd5b506102a261039a3660046119ce565b610b66565b3480156103ab57600080fd5b5061026a6103ba36600461196f565b610b86565b3480156103cb57600080fd5b50600c5461026a906001600160a01b031681565b3480156103eb57600080fd5b506102bd600b5481565b34801561040157600080fd5b506102bd610410366004611a2c565b610b91565b34801561042157600080fd5b506102a2610be0565b34801561043657600080fd5b5061023d610c16565b34801561044b57600080fd5b506102a2610ca4565b34801561046057600080fd5b50600a546001600160a01b031661026a565b34801561047e57600080fd5b506102a261048d366004611a47565b610d1f565b34801561049e57600080fd5b5061023d610d6a565b3480156104b357600080fd5b50600a5461021390600160a01b900460ff1681565b6102a26104d636600461196f565b610d79565b3480156104e757600080fd5b506102a26104f6366004611ab9565b610e8a565b34801561050757600080fd5b506102a2610f1f565b34801561051c57600080fd5b506102a261052b366004611b0b565b610f7a565b34801561053c57600080fd5b5061023d61054b36600461196f565b610fc4565b34801561055c57600080fd5b506102a261056b3660046119a4565b611077565b34801561057c57600080fd5b5061021361058b366004611be7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105c557600080fd5b506102a26105d4366004611a2c565b6111af565b3480156105e557600080fd5b5061023d611247565b3480156105fa57600080fd5b506102a261060936600461196f565b611254565b34801561061a57600080fd5b50600d5461026a906001600160a01b031681565b600061063982611298565b806106485750610648826112e6565b92915050565b60606002805461065d90611c1a565b80601f016020809104026020016040519081016040528092919081815260200182805461068990611c1a565b80156106d65780601f106106ab576101008083540402835291602001916106d6565b820191906000526020600020905b8154815290600101906020018083116106b957829003601f168201915b5050505050905090565b60006106eb8261131b565b610708576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061072f82610b86565b9050336001600160a01b038216146107685761074b813361058b565b610768576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006107cf82611350565b9050836001600160a01b0316816001600160a01b0316146108025760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761084f57610832863361058b565b61084f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661087657604051633a954ecd60e21b815260040160405180910390fd5b801561088157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610913576001840160008181526004602052604081205490036109115760005481146109115760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60085460095460009182916001600160a01b039091169061271090610982908690611c6a565b61098c9190611c9f565b915091509250929050565b600a546001600160a01b031633146109ca5760405162461bcd60e51b81526004016109c190611cb3565b60405180910390fd5b6001600160a01b038116610a2c5760405162461bcd60e51b8152602060048201526024808201527f4e65772061646d696e2063616e6e6f7420626520746865207a65726f206164646044820152637265737360e01b60648201526084016109c1565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03163314610a785760405162461bcd60e51b81526004016109c190611cb3565b6001600160a01b038116610ae45760405162461bcd60e51b815260206004820152602d60248201527f4e6577207061796f757420616464726573732063616e6e6f742062652074686560448201526c207a65726f206164647265737360981b60648201526084016109c1565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b0316331480610b295750600a546001600160a01b031633145b610b455760405162461bcd60e51b81526004016109c190611ce8565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b610b8183838360405180602001604052806000815250610f7a565b505050565b600061064882611350565b60006001600160a01b038216610bba576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600a546001600160a01b03163314610c0a5760405162461bcd60e51b81526004016109c190611cb3565b610c1460006113c6565b565b600e8054610c2390611c1a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4f90611c1a565b8015610c9c5780601f10610c7157610100808354040283529160200191610c9c565b820191906000526020600020905b815481529060010190602001808311610c7f57829003601f168201915b505050505081565b600d546001600160a01b0316331480610cc75750600a546001600160a01b031633145b610ce35760405162461bcd60e51b81526004016109c190611ce8565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610d1c573d6000803e3d6000fd5b50565b600d546001600160a01b0316331480610d425750600a546001600160a01b031633145b610d5e5760405162461bcd60e51b81526004016109c190611ce8565b610b81600e8383611838565b60606003805461065d90611c1a565b6032811115610dc15760405162461bcd60e51b815260206004820152601460248201527342617463682073697a6520746f6f206c6172676560601b60448201526064016109c1565b600b54610dce9082611c6a565b341015610e345760405162461bcd60e51b815260206004820152602e60248201527f4e6f7420656e6f75676820657468657220617474616368656420746f2074686560448201526d08199d5b98dd1a5bdb8818d85b1b60921b60648201526084016109c1565b600a54600160a01b900460ff16610e805760405162461bcd60e51b815260206004820152601060248201526f29b0b6329034b9903737ba1037b832b760811b60448201526064016109c1565b610d1c3382611418565b336001600160a01b03831603610eb35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600d546001600160a01b0316331480610f425750600a546001600160a01b031633145b610f5e5760405162461bcd60e51b81526004016109c190611ce8565b610c14610f73600a546001600160a01b031690565b6001611418565b610f858484846107c4565b6001600160a01b0383163b15610fbe57610fa1848484846114f8565b610fbe576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fcf8261131b565b61101b5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109c1565b611051611027836115e4565b600e600f60405160200161103d93929190611db8565b6040516020818303038152906040526116e5565b6040516020016110619190611e61565b6040516020818303038152906040529050919050565b600d546001600160a01b031633148061109a5750600a546001600160a01b031633145b6110b65760405162461bcd60e51b81526004016109c190611ce8565b6001600160a01b0382166111265760405162461bcd60e51b815260206004820152603160248201527f43616e6e6f742073657420726f79616c74792072656365697069656e7420746f60448201527020746865207a65726f206164647265737360781b60648201526084016109c1565b61271081106111895760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f742073657420726f79616c74792070657263656e7461676520616260448201526806f76652031303030360bc1b60648201526084016109c1565b600880546001600160a01b0319166001600160a01b039390931692909217909155600955565b600a546001600160a01b031633146111d95760405162461bcd60e51b81526004016109c190611cb3565b6001600160a01b03811661123e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c1565b610d1c816113c6565b600f8054610c2390611c1a565b600d546001600160a01b03163314806112775750600a546001600160a01b031633145b6112935760405162461bcd60e51b81526004016109c190611ce8565b600b55565b60006301ffc9a760e01b6001600160e01b0319831614806112c957506380ac58cd60e01b6001600160e01b03198316145b806106485750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061064857506301ffc9a760e01b6001600160e01b0319831614610648565b60008160011115801561132f575060005482105b8015610648575050600090815260046020526040902054600160e01b161590565b600081806001116113ad576000548110156113ad5760008181526004602052604081205490600160e01b821690036113ab575b806000036113a4575060001901600081815260046020526040902054611383565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b03831661144157604051622e076360e81b815260040160405180910390fd5b816000036114625760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106114ac5760005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061152d903390899088908890600401611ea6565b6020604051808303816000875af1925050508015611568575060408051601f3d908101601f1916820190925261156591810190611ee3565b60015b6115c6573d808015611596576040519150601f19603f3d011682016040523d82523d6000602084013e61159b565b606091505b5080516000036115be576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608160000361160b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611635578061161f81611f00565b915061162e9050600a83611c9f565b915061160f565b60008167ffffffffffffffff81111561165057611650611af5565b6040519080825280601f01601f19166020018201604052801561167a576020820181803683370190505b5090505b84156115dc5761168f600183611f19565b915061169c600a86611f30565b6116a7906030611f44565b60f81b8183815181106116bc576116bc611f5c565b60200101906001600160f81b031916908160001a9053506116de600a86611c9f565b945061167e565b6060815160000361170457505060408051602081019091526000815290565b6000604051806060016040528060408152602001611f7360409139905060006003845160026117339190611f44565b61173d9190611c9f565b611748906004611c6a565b67ffffffffffffffff81111561176057611760611af5565b6040519080825280601f01601f19166020018201604052801561178a576020820181803683370190505b509050600182016020820185865187015b808210156117f6576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061179b565b505060038651066001811461181257600281146118255761182d565b603d6001830353603d600283035361182d565b603d60018303535b509195945050505050565b82805461184490611c1a565b90600052602060002090601f01602090048101928261186657600085556118ac565b82601f1061187f5782800160ff198235161785556118ac565b828001600101855582156118ac579182015b828111156118ac578235825591602001919060010190611891565b506118b89291506118bc565b5090565b5b808211156118b857600081556001016118bd565b6001600160e01b031981168114610d1c57600080fd5b6000602082840312156118f957600080fd5b81356113a4816118d1565b60005b8381101561191f578181015183820152602001611907565b83811115610fbe5750506000910152565b60008151808452611948816020860160208601611904565b601f01601f19169290920160200192915050565b6020815260006113a46020830184611930565b60006020828403121561198157600080fd5b5035919050565b80356001600160a01b038116811461199f57600080fd5b919050565b600080604083850312156119b757600080fd5b6119c083611988565b946020939093013593505050565b6000806000606084860312156119e357600080fd5b6119ec84611988565b92506119fa60208501611988565b9150604084013590509250925092565b60008060408385031215611a1d57600080fd5b50508035926020909101359150565b600060208284031215611a3e57600080fd5b6113a482611988565b60008060208385031215611a5a57600080fd5b823567ffffffffffffffff80821115611a7257600080fd5b818501915085601f830112611a8657600080fd5b813581811115611a9557600080fd5b866020828501011115611aa757600080fd5b60209290920196919550909350505050565b60008060408385031215611acc57600080fd5b611ad583611988565b915060208301358015158114611aea57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611b2157600080fd5b611b2a85611988565b9350611b3860208601611988565b925060408501359150606085013567ffffffffffffffff80821115611b5c57600080fd5b818701915087601f830112611b7057600080fd5b813581811115611b8257611b82611af5565b604051601f8201601f19908116603f01168101908382118183101715611baa57611baa611af5565b816040528281528a6020848701011115611bc357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611bfa57600080fd5b611c0383611988565b9150611c1160208401611988565b90509250929050565b600181811c90821680611c2e57607f821691505b602082108103611c4e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611c8457611c84611c54565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611cae57611cae611c89565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f41646472657373206e6f742061646d696e206f72206f776e6572000000000000604082015260600190565b8054600090600181811c9080831680611d3957607f831692505b60208084108203611d5a57634e487b7160e01b600052602260045260246000fd5b818015611d6e5760018114611d7f57611dac565b60ff19861689528489019650611dac565b60008881526020902060005b86811015611da45781548b820152908501908301611d8b565b505084890196505b50505050505092915050565b7f7b226e616d65223a20225765205374616e6420546f6765746865722023000000815260008451611df081601d850160208901611904565b61088b60f21b601d9184019182018190526f113232b9b1b934b83a34b7b7111d101160811b601f830152611e27602f830187611d1f565b908152691134b6b0b3b2911d101160b11b60028201529050611e4c600c820185611d1f565b61227d60f01b81526002019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611e9981601d850160208701611904565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ed990830184611930565b9695505050505050565b600060208284031215611ef557600080fd5b81516113a4816118d1565b600060018201611f1257611f12611c54565b5060010190565b600082821015611f2b57611f2b611c54565b500390565b600082611f3f57611f3f611c89565b500690565b60008219821115611f5757611f57611c54565b500190565b634e487b7160e01b600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212200fd89129ba43d91b707e88a9a39ce6db43801e2855101eb7dea59f9503924a9464736f6c634300080e0033

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

000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000083416faef4d62178afbe246f4a41f82dca13ae0200000000000000000000000000000000000000000000000000000000000003e800000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a800000000000000000000000083416faef4d62178afbe246f4a41f82dca13ae0200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000047454686572652061726520736f206d616e7920636f6e74726f7665727369616c207375626a6563747320776520666163652061732068756d616e732e204675747572652067656e65726174696f6e7320646570656e64206f6e20757320746f206c6179206f7574207468652067756964656c696e65732e205468657265206973206e6f207175657374696f6e20696e206d6f7374206f66206f7572206d696e64732074686174207468652066726565646f6d20746f2063686f6f7365207768617420796f752063616e206f722063616ee280997420646f207769746820796f757220626f6479206973206120676976656e2068756d616e2072696768742e205768656e204920746f6f6b207468697320696d6167652049207761736ee28099742065786163746c792073757265207768617420492077616e74656420746f20646f20776974682069742c206f6e6c792077686174206974206d65616e7420746f206d652061732061206661746865722c2062726f746865722c20616e6420736f6e2e20e2809c5765207374616e6420746f676574686572e2809d2069736ee2809974206a75737420612073746174656d656e74206f6620756e697479206974e28099732061206d657373616765206f66207065727365766572616e63652e20546861742077652077696c6c206e6f7420676f2071756965746c7920696e746f20746865206e696768742c2077652077696c6c206e6f742062652073696c656e6365642c20616e642077652077696c6c20646566656e642074686520726967687420616e64206c696265727479206f662063686f6963652e20546869732069732077687920492072656163686564206f757420746f206f6e65206f66206d79206661766f72697465206172746973747320416e6e61204d634e617567687420746f206164642068657220617274697374696320766973696f6e20696e746f207468652070686f746f2e2049207468696e6b2077686174207765206372656174656420746f6765746865722073686f756c64206265207265636f676e697a656420666f722074686520636f6c6c61626f726174696f6e20746861742069742069732e2054776f20617274697374732077697468207468652062656c6965662074686174207468657920686176652074686520706f77657220746f2068656c70206368616e67652074686520776f726c642e2031303025206f6620746865207072696d61727920616e64207365636f6e646172792073616c65732077696c6c20626520646f6e6174656420746f20556e69636f726e64616f2f6c6567616c61626f7274696f6e2e65746820746f2070726f7465637420776f6d656ee280997320726570726f64756374697665207269676874732e2054686973206973206e6f7420616e20696e766573746d656e742e2054686973206973206172742e2054686572652077696c6c206e6576657220626520616e79206164646564207574696c69747920746f20746869732061727420736f20706c6561736520616374206163636f7264696e676c7920616e6420656e6a6f792e20f09fabb60000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d51746b5a6e4563645265475a6e6a71427a6635464c4274424375424b6b474637514d353356595636646d39720000000000000000000000

-----Decoded View---------------
Arg [0] : _price (uint256): 100000000000000000
Arg [1] : _royaltyRecipient (address): 0x83416faef4D62178afbE246F4a41f82DcA13Ae02
Arg [2] : _royaltyPercentage (uint256): 1000
Arg [3] : _admin (address): 0x72DBe00dE00eDF158AEbEE2c82B7E2f19A8c19a8
Arg [4] : _payout (address): 0x83416faef4D62178afbE246F4a41f82DcA13Ae02
Arg [5] : _description (string): There are so many controversial subjects we face as humans. Future generations depend on us to lay out the guidelines. There is no question in most of our minds that the freedom to choose what you can or can’t do with your body is a given human right. When I took this image I wasn’t exactly sure what I wanted to do with it, only what it meant to me as a father, brother, and son. “We stand together” isn’t just a statement of unity it’s a message of perseverance. That we will not go quietly into the night, we will not be silenced, and we will defend the right and liberty of choice. This is why I reached out to one of my favorite artists Anna McNaught to add her artistic vision into the photo. I think what we created together should be recognized for the collaboration that it is. Two artists with the belief that they have the power to help change the world. 100% of the primary and secondary sales will be donated to Unicorndao/legalabortion.eth to protect women’s reproductive rights. This is not an investment. This is art. There will never be any added utility to this art so please act accordingly and enjoy. 🫶
Arg [6] : _image (string): ipfs://QmQtkZnEcdReGZnjqBzf5FLBtBCuBKkGF7QM53VYV6dm9r

-----Encoded View---------------
47 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [1] : 00000000000000000000000083416faef4d62178afbe246f4a41f82dca13ae02
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 00000000000000000000000072dbe00de00edf158aebee2c82b7e2f19a8c19a8
Arg [4] : 00000000000000000000000083416faef4d62178afbe246f4a41f82dca13ae02
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000580
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000474
Arg [8] : 54686572652061726520736f206d616e7920636f6e74726f7665727369616c20
Arg [9] : 7375626a6563747320776520666163652061732068756d616e732e2046757475
Arg [10] : 72652067656e65726174696f6e7320646570656e64206f6e20757320746f206c
Arg [11] : 6179206f7574207468652067756964656c696e65732e20546865726520697320
Arg [12] : 6e6f207175657374696f6e20696e206d6f7374206f66206f7572206d696e6473
Arg [13] : 2074686174207468652066726565646f6d20746f2063686f6f73652077686174
Arg [14] : 20796f752063616e206f722063616ee280997420646f207769746820796f7572
Arg [15] : 20626f6479206973206120676976656e2068756d616e2072696768742e205768
Arg [16] : 656e204920746f6f6b207468697320696d6167652049207761736ee280997420
Arg [17] : 65786163746c792073757265207768617420492077616e74656420746f20646f
Arg [18] : 20776974682069742c206f6e6c792077686174206974206d65616e7420746f20
Arg [19] : 6d652061732061206661746865722c2062726f746865722c20616e6420736f6e
Arg [20] : 2e20e2809c5765207374616e6420746f676574686572e2809d2069736ee28099
Arg [21] : 74206a75737420612073746174656d656e74206f6620756e697479206974e280
Arg [22] : 99732061206d657373616765206f66207065727365766572616e63652e205468
Arg [23] : 61742077652077696c6c206e6f7420676f2071756965746c7920696e746f2074
Arg [24] : 6865206e696768742c2077652077696c6c206e6f742062652073696c656e6365
Arg [25] : 642c20616e642077652077696c6c20646566656e642074686520726967687420
Arg [26] : 616e64206c696265727479206f662063686f6963652e20546869732069732077
Arg [27] : 687920492072656163686564206f757420746f206f6e65206f66206d79206661
Arg [28] : 766f72697465206172746973747320416e6e61204d634e617567687420746f20
Arg [29] : 6164642068657220617274697374696320766973696f6e20696e746f20746865
Arg [30] : 2070686f746f2e2049207468696e6b2077686174207765206372656174656420
Arg [31] : 746f6765746865722073686f756c64206265207265636f676e697a656420666f
Arg [32] : 722074686520636f6c6c61626f726174696f6e20746861742069742069732e20
Arg [33] : 54776f20617274697374732077697468207468652062656c6965662074686174
Arg [34] : 207468657920686176652074686520706f77657220746f2068656c7020636861
Arg [35] : 6e67652074686520776f726c642e2031303025206f6620746865207072696d61
Arg [36] : 727920616e64207365636f6e646172792073616c65732077696c6c2062652064
Arg [37] : 6f6e6174656420746f20556e69636f726e64616f2f6c6567616c61626f727469
Arg [38] : 6f6e2e65746820746f2070726f7465637420776f6d656ee28099732072657072
Arg [39] : 6f64756374697665207269676874732e2054686973206973206e6f7420616e20
Arg [40] : 696e766573746d656e742e2054686973206973206172742e2054686572652077
Arg [41] : 696c6c206e6576657220626520616e79206164646564207574696c6974792074
Arg [42] : 6f20746869732061727420736f20706c6561736520616374206163636f726469
Arg [43] : 6e676c7920616e6420656e6a6f792e20f09fabb6000000000000000000000000
Arg [44] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [45] : 697066733a2f2f516d51746b5a6e4563645265475a6e6a71427a6635464c4274
Arg [46] : 424375424b6b474637514d353356595636646d39720000000000000000000000


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

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