ETH Price: $3,456.32 (-0.02%)

Token

Autochecks (☵✓)
 

Overview

Max Total Supply

0 ☵✓

Holders

233

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
maggo.eth
Balance
1 ☵✓
0xfd37f4625ca5816157d55a5b3f7dd8dd5f8a0c2f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Autochecks

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : Autochecks.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IERC721, IERC721Enumerable, IERC721Metadata} from "forge-std/interfaces/IERC721.sol";
import {ERC721} from "solmate/tokens/ERC721.sol";
import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";
import {Strings} from "openzeppelin-contracts/contracts/utils/Strings.sol";
import {Base64} from "openzeppelin-contracts/contracts/utils/Base64.sol";
import {Array} from "utils/Array.sol";

/**
 *
 *     ✓    ✓     ✓ ✓✓✓✓✓✓✓ ✓✓✓✓✓✓✓  ✓✓✓✓✓  ✓     ✓ ✓✓✓✓✓✓✓  ✓✓✓✓✓  ✓    ✓  ✓✓✓✓✓
 *    ✓ ✓   ✓     ✓    ✓    ✓     ✓ ✓     ✓ ✓     ✓ ✓       ✓     ✓ ✓   ✓  ✓     ✓
 *   ✓   ✓  ✓     ✓    ✓    ✓     ✓ ✓       ✓     ✓ ✓       ✓       ✓  ✓   ✓
 *  ✓     ✓ ✓     ✓    ✓    ✓     ✓ ✓       ✓✓✓✓✓✓✓ ✓✓✓✓✓   ✓       ✓✓✓     ✓✓✓✓✓
 *  ✓✓✓✓✓✓✓ ✓     ✓    ✓    ✓     ✓ ✓       ✓     ✓ ✓       ✓       ✓  ✓         ✓
 *  ✓     ✓ ✓     ✓    ✓    ✓     ✓ ✓     ✓ ✓     ✓ ✓       ✓     ✓ ✓   ✓  ✓     ✓
 *  ✓     ✓  ✓✓✓✓✓     ✓    ✓✓✓✓✓✓✓  ✓✓✓✓✓  ✓     ✓ ✓✓✓✓✓✓✓  ✓✓✓✓✓  ✓    ✓  ✓✓✓✓✓
 *
 *                                                        by one of the many matts
 */
contract Autochecks is ERC721 {
    address immutable glyphs;
    address immutable receiver;
    uint256 public constant MINIMUM_DONATION = 0.02 ether;
    uint256 private constant CELL_SIZE = 3 * 24;
    // NOTE: ^ check size is 24, but we inline it elsewhere so we can store these strings as constants

    string private constant JSON_PROTOCOL_URI = "data:application/json;base64,";
    string private constant SVG_PROTOCOL_URI = "data:image/svg+xml;base64,";

    string private constant pat =
        '<use href="#c" x="0" y="0" /><use href="#c" x="24" y="0" /><use href="#c" x="48" y="0" /><use href="#c" x="0" y="24" /><use href="#c" x="48" y="24" /><use href="#c" x="0" y="48" /><use href="#c" x="24" y="48" /><use href="#c" x="48" y="48" />';

    string private constant lus =
        '<use href="#c" x="24" y="0" /><use href="#c" x="0" y="24" /><use href="#c" x="24" y="24" /><use href="#c" x="48" y="24" /><use href="#c" x="24" y="48" />';

    string private constant ex =
        '<use href="#c" x="0" y="0" /><use href="#c" x="48" y="0" /><use href="#c" x="24" y="24" /><use href="#c" x="0" y="48" /><use href="#c" x="48" y="48" />';

    string private constant bar =
        '<use href="#c" x="24" y="0" /><use href="#c" x="24" y="24" /><use href="#c" x="24" y="48" />';

    string private constant hep =
        '<use href="#c" x="0" y="24" /><use href="#c" x="24" y="24" /><use href="#c" x="48" y="24" />';

    string private constant bas =
        '<use href="#c" x="0" y="0" /><use href="#c" x="24" y="24" /><use href="#c" x="48" y="48" />';

    string private constant fas =
        '<use href="#c" x="48" y="0" /><use href="#c" x="24" y="24" /><use href="#c" x="0" y="48" />';

    string private constant hax =
        '<use href="#c" x="0" y="0" /><use href="#c" x="24" y="0" /><use href="#c" x="48" y="0" /><use href="#c" x="0" y="24" /><use href="#c" x="24" y="24" /><use href="#c" x="48" y="24" /><use href="#c" x="0" y="48" /><use href="#c" x="24" y="48" /><use href="#c" x="48" y="48" />';

    error DonatePlease();

    constructor(address _glyphs, address _receiver)
        ERC721("Autochecks", unicode"☵✓")
    {
        glyphs = _glyphs;
        receiver = _receiver;
    }

    function mint(uint256 id) external payable {
        if (msg.value < MINIMUM_DONATION) revert DonatePlease();

        IERC721(glyphs).ownerOf(id); // throws if !exists

        SafeTransferLib.safeTransferETH(receiver, msg.value);
        _mint(msg.sender, id);
    }

    function tokenURI(uint256 id)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory svg = string.concat(
            SVG_PROTOCOL_URI,
            Base64.encode(bytes(_render(id)))
        );

        string memory json = string.concat(
            '{"name":"Autocheck #',
            Strings.toString(id),
            '",',
            '"description":"one of the many matts, 2023",',
            '"image":"',
            svg,
            '"}'
        );

        return string.concat(JSON_PROTOCOL_URI, Base64.encode(bytes(json)));
    }

    function _render(uint256 id) internal view returns (string memory) {
        bytes memory instructions = bytes(IERC721Metadata(glyphs).tokenURI(id));
        uint256 len = instructions.length;
        string[] memory fragments = new string[](len);

        uint256 x = 0;
        uint256 y = 0;
        // NOTE: skip the 30-character long prefix
        for (uint256 i = 30; i < len; ) {
            bytes1 inst = instructions[i];
            if (inst == 0x25) {
                // newline is 0x25, 0x30, 0x41
                unchecked {
                    x = 0; // reset x
                    y += 1; // inc y
                    i += 2; // skip the rest of the newline encoding
                }
            } else if (inst == 0x2E) {
                // 0x2E = . = Draw nothing in the cell.
                unchecked {
                    x += 1;
                }
            } else {
                if (inst == 0x4F) {
                    // 0x4F = O = Draw a circle bounded by the cell.
                    fragments[i] = _g(x, y, pat);
                } else if (inst == 0x2B) {
                    // 0x2B = + = Draw centered lines vertically and horizontally the length of the cell.
                    fragments[i] = _g(x, y, lus);
                } else if (inst == 0x58) {
                    // 0x58 = X = Draw diagonal lines connecting opposite corners of the cell.
                    fragments[i] = _g(x, y, ex);
                } else if (inst == 0x7C) {
                    // 0x7C = | = Draw a centered vertical line the length of the cell.
                    fragments[i] = _g(x, y, bar);
                } else if (inst == 0x5F) {
                    // 0x5F = - = Draw a centered horizontal line the length of the cell.
                    fragments[i] = _g(x, y, hep);
                } else if (inst == 0x5C) {
                    // 0x5C = \ = Draw a line connecting the top left corner of the cell to the bottom right corner.
                    fragments[i] = _g(x, y, bas);
                } else if (inst == 0x2F) {
                    // 0x2F = / = Draw a line connecting the bottom left corner of teh cell to the top right corner.
                    fragments[i] = _g(x, y, fas);
                } else if (inst == 0x23) {
                    // 0x23 = # = Fill in the cell completely.
                    fragments[i] = _g(x, y, hax);
                }

                unchecked {
                    x += 1;
                }
            }

            unchecked {
                i++; // hi t11s
            }
        }

        return
            string.concat(
                '<svg viewBox="0 0 ',
                Strings.toString((64 + 24) * CELL_SIZE), // inc 12 cells of horizontal padding
                " ",
                Strings.toString((64 + 24) * CELL_SIZE), // inc 12 cells of vertical padding
                '" xmlns="http://www.w3.org/2000/svg" style="background:#ffffff"><defs><path id="c" d="M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"/></defs>',
                _g(12, 12, Array.join(fragments)),
                "</svg>"
            );
    }

    function _g(
        uint256 x,
        uint256 y,
        string memory slot
    ) internal pure returns (string memory) {
        return
            string.concat(
                '<g transform="translate(',
                Strings.toString(x * CELL_SIZE),
                ", ",
                Strings.toString(y * CELL_SIZE),
                ')">',
                slot,
                "</g>"
            );
    }
}

File 2 of 10 : Array.sol
// SPDX-License-Identifier: MIT

/*
 * @title Arrays Utils
 * @author Clement Walter <[email protected]>
 *
 * @notice An attempt at implementing some of the widely used javascript's Array functions in solidity.
 */
pragma solidity ^0.8.12;

error EmptyArray();
error GlueOutOfBounds(uint256 length);

library Array {
    function join(string[] memory a, string memory glue)
        public
        pure
        returns (string memory)
    {
        uint256 inputPointer;
        uint256 gluePointer;

        assembly {
            inputPointer := a
            gluePointer := glue
        }
        return string(_joinReferenceType(inputPointer, gluePointer));
    }

    function join(string[] memory a) public pure returns (string memory) {
        return join(a, "");
    }

    function join(bytes[] memory a, bytes memory glue)
        public
        pure
        returns (bytes memory)
    {
        uint256 inputPointer;
        uint256 gluePointer;

        assembly {
            inputPointer := a
            gluePointer := glue
        }
        return _joinReferenceType(inputPointer, gluePointer);
    }

    function join(bytes[] memory a) public pure returns (bytes memory) {
        return join(a, bytes(""));
    }

    function join(bytes2[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 2, 0);
    }

    /// @dev Join the underlying array of bytes2 to a string.
    function join(uint16[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 2, 256 - 16);
    }

    function join(bytes3[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 3, 0);
    }

    function join(bytes4[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 4, 0);
    }

    function join(bytes8[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 8, 0);
    }

    function join(bytes16[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 16, 0);
    }

    function join(bytes32[] memory a) public pure returns (bytes memory) {
        uint256 pointer;

        assembly {
            pointer := a
        }
        return _joinValueType(pointer, 32, 0);
    }

    function _joinValueType(
        uint256 a,
        uint256 typeLength,
        uint256 shiftLeft
    ) private pure returns (bytes memory) {
        bytes memory tempBytes;

        assembly {
            let inputLength := mload(a)
            let inputData := add(a, 0x20)
            let end := add(inputData, mul(inputLength, 0x20))

            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
            tempBytes := mload(0x40)

            // Initialize the length of the final bytes: length is typeLength x inputLength (array of bytes4)
            mstore(tempBytes, mul(inputLength, typeLength))
            let memoryPointer := add(tempBytes, 0x20)

            // Iterate over all bytes4
            for {
                let pointer := inputData
            } lt(pointer, end) {
                pointer := add(pointer, 0x20)
            } {
                let currentSlot := shl(shiftLeft, mload(pointer))
                mstore(memoryPointer, currentSlot)
                memoryPointer := add(memoryPointer, typeLength)
            }

            mstore(0x40, and(add(memoryPointer, 31), not(31)))
        }
        return tempBytes;
    }

    function _joinReferenceType(uint256 inputPointer, uint256 gluePointer)
        public
        pure
        returns (bytes memory tempBytes)
    {
        assembly {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
            tempBytes := mload(0x40)

            // Skip the first 32 bytes where we will store the length of the result
            let memoryPointer := add(tempBytes, 0x20)

            // Load glue
            let glueLength := mload(gluePointer)
            if gt(glueLength, 0x20) {
                revert(gluePointer, 0x20)
            }
            let glue := mload(add(gluePointer, 0x20))

            // Load the length (first 32 bytes)
            let inputLength := mload(inputPointer)
            let inputData := add(inputPointer, 0x20)
            let end := add(inputData, mul(inputLength, 0x20))

            // Initialize the length of the final string
            let stringLength := 0

            // Iterate over all strings (a string is itself an array).
            for {
                let pointer := inputData
            } lt(pointer, end) {
                pointer := add(pointer, 0x20)
            } {
                let currentStringArray := mload(pointer)
                let currentStringLength := mload(currentStringArray)
                stringLength := add(stringLength, currentStringLength)
                let currentStringBytesCount := add(
                    div(currentStringLength, 0x20),
                    gt(mod(currentStringLength, 0x20), 0)
                )

                let currentPointer := add(currentStringArray, 0x20)

                for {
                    let copiedBytesCount := 0
                } lt(copiedBytesCount, currentStringBytesCount) {
                    copiedBytesCount := add(copiedBytesCount, 1)
                } {
                    mstore(
                        add(memoryPointer, mul(copiedBytesCount, 0x20)),
                        mload(currentPointer)
                    )
                    currentPointer := add(currentPointer, 0x20)
                }
                memoryPointer := add(memoryPointer, currentStringLength)
                mstore(memoryPointer, glue)
                memoryPointer := add(memoryPointer, glueLength)
            }

            mstore(
                tempBytes,
                add(stringLength, mul(sub(inputLength, 1), glueLength))
            )
            mstore(0x40, and(add(memoryPointer, 31), not(31)))
        }
        return tempBytes;
    }
}

File 3 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

interface IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceID The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    /// uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    /// `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceID) external view returns (bool);
}

File 4 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

import "./IERC165.sol";

/// @title ERC-721 Non-Fungible Token Standard
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// Note: the ERC-165 identifier for this interface is 0x80ac58cd.
interface IERC721 is IERC165 {
    /// @dev This emits when ownership of any NFT changes by any mechanism.
    /// This event emits when NFTs are created (`from` == 0) and destroyed
    /// (`to` == 0). Exception: during contract creation, any number of NFTs
    /// may be created and assigned without emitting Transfer. At the time of
    /// any transfer, the approved address for that NFT (if any) is reset to none.
    event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId);

    /// @dev This emits when the approved address for an NFT is changed or
    /// reaffirmed. The zero address indicates there is no approved address.
    /// When a Transfer event emits, this also indicates that the approved
    /// address for that NFT (if any) is reset to none.
    event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId);

    /// @dev This emits when an operator is enabled or disabled for an owner.
    /// The operator can manage all NFTs of the owner.
    event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);

    /// @notice Count all NFTs assigned to an owner
    /// @dev NFTs assigned to the zero address are considered invalid, and this
    /// function throws for queries about the zero address.
    /// @param _owner An address for whom to query the balance
    /// @return The number of NFTs owned by `_owner`, possibly zero
    function balanceOf(address _owner) external view returns (uint256);

    /// @notice Find the owner of an NFT
    /// @dev NFTs assigned to zero address are considered invalid, and queries
    /// about them do throw.
    /// @param _tokenId The identifier for an NFT
    /// @return The address of the owner of the NFT
    function ownerOf(uint256 _tokenId) external view returns (address);

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    /// operator, or the approved address for this NFT. Throws if `_from` is
    /// not the current owner. Throws if `_to` is the zero address. Throws if
    /// `_tokenId` is not a valid NFT. When transfer is complete, this function
    /// checks if `_to` is a smart contract (code size > 0). If so, it calls
    /// `onERC721Received` on `_to` and throws if the return value is not
    /// `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    /// @param data Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes calldata data) external payable;

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev This works identically to the other function with an extra data parameter,
    /// except this function just sets data to "".
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable;

    /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE
    /// TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE
    /// THEY MAY BE PERMANENTLY LOST
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    /// operator, or the approved address for this NFT. Throws if `_from` is
    /// not the current owner. Throws if `_to` is the zero address. Throws if
    /// `_tokenId` is not a valid NFT.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function transferFrom(address _from, address _to, uint256 _tokenId) external payable;

    /// @notice Change or reaffirm the approved address for an NFT
    /// @dev The zero address indicates there is no approved address.
    /// Throws unless `msg.sender` is the current NFT owner, or an authorized
    /// operator of the current owner.
    /// @param _approved The new approved NFT controller
    /// @param _tokenId The NFT to approve
    function approve(address _approved, uint256 _tokenId) external payable;

    /// @notice Enable or disable approval for a third party ("operator") to manage
    /// all of `msg.sender`'s assets
    /// @dev Emits the ApprovalForAll event. The contract MUST allow
    /// multiple operators per owner.
    /// @param _operator Address to add to the set of authorized operators
    /// @param _approved True if the operator is approved, false to revoke approval
    function setApprovalForAll(address _operator, bool _approved) external;

    /// @notice Get the approved address for a single NFT
    /// @dev Throws if `_tokenId` is not a valid NFT.
    /// @param _tokenId The NFT to find the approved address for
    /// @return The approved address for this NFT, or the zero address if there is none
    function getApproved(uint256 _tokenId) external view returns (address);

    /// @notice Query if an address is an authorized operator for another address
    /// @param _owner The address that owns the NFTs
    /// @param _operator The address that acts on behalf of the owner
    /// @return True if `_operator` is an approved operator for `_owner`, false otherwise
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
}

/// @dev Note: the ERC-165 identifier for this interface is 0x150b7a02.
interface IERC721TokenReceiver {
    /// @notice Handle the receipt of an NFT
    /// @dev The ERC721 smart contract calls this function on the recipient
    /// after a `transfer`. This function MAY throw to revert and reject the
    /// transfer. Return of other than the magic value MUST result in the
    /// transaction being reverted.
    /// Note: the contract address is always the message sender.
    /// @param _operator The address which called `safeTransferFrom` function
    /// @param _from The address which previously owned the token
    /// @param _tokenId The NFT identifier which is being transferred
    /// @param _data Additional data with no specified format
    /// @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    ///  unless throwing
    function onERC721Received(address _operator, address _from, uint256 _tokenId, bytes calldata _data)
        external
        returns (bytes4);
}

/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// Note: the ERC-165 identifier for this interface is 0x5b5e139f.
interface IERC721Metadata is IERC721 {
    /// @notice A descriptive name for a collection of NFTs in this contract
    function name() external view returns (string memory _name);

    /// @notice An abbreviated name for NFTs in this contract
    function symbol() external view returns (string memory _symbol);

    /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
    /// @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
    /// 3986. The URI may point to a JSON file that conforms to the "ERC721
    /// Metadata JSON Schema".
    function tokenURI(uint256 _tokenId) external view returns (string memory);
}

/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
/// Note: the ERC-165 identifier for this interface is 0x780e9d63.
interface IERC721Enumerable is IERC721 {
    /// @notice Count NFTs tracked by this contract
    /// @return A count of valid NFTs tracked by this contract, where each one of
    /// them has an assigned and queryable owner not equal to the zero address
    function totalSupply() external view returns (uint256);

    /// @notice Enumerate valid NFTs
    /// @dev Throws if `_index` >= `totalSupply()`.
    /// @param _index A counter less than `totalSupply()`
    /// @return The token identifier for the `_index`th NFT,
    /// (sort order not specified)
    function tokenByIndex(uint256 _index) external view returns (uint256);

    /// @notice Enumerate NFTs assigned to an owner
    /// @dev Throws if `_index` >= `balanceOf(_owner)` or if
    /// `_owner` is the zero address, representing invalid NFTs.
    /// @param _owner An address where we are interested in NFTs owned by them
    /// @param _index A counter less than `balanceOf(_owner)`
    /// @return The token identifier for the `_index`th NFT assigned to `_owner`,
    /// (sort order not specified)
    function tokenOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256);
}

File 5 of 10 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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));

        /// @solidity memory-safe-assembly
        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 6 of 10 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 8 of 10 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 9 of 10 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 10 of 10 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        /// @solidity memory-safe-assembly
        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "eth-projects-monorepo/=lib/eth-projects-monorepo/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "renderers/=lib/eth-projects-monorepo/packages/eth-projects-contracts/contracts/lib/renderers/",
    "solmate/=lib/solmate/src/",
    "utils/=lib/eth-projects-monorepo/packages/eth-projects-contracts/contracts/lib/utils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {
    "lib/eth-projects-monorepo/packages/eth-projects-contracts/contracts/lib/utils/Array.sol": {
      "Array": "0xf4a8fb323c935ee62fd654b55b62f0d856421cfe"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_glyphs","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DonatePlease","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MINIMUM_DONATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200250a3803806200250a833981016040819052620000349162000178565b604080518082018252600a8152694175746f636865636b7360b01b602080830191825283518085019094526006845265e298b5e29c9360d01b9084015281519192916200008491600091620000b5565b5080516200009a906001906020840190620000b5565b5050506001600160a01b039182166080521660a052620001ec565b828054620000c390620001b0565b90600052602060002090601f016020900481019282620000e7576000855562000132565b82601f106200010257805160ff191683800117855562000132565b8280016001018555821562000132579182015b828111156200013257825182559160200191906001019062000115565b506200014092915062000144565b5090565b5b8082111562000140576000815560010162000145565b80516001600160a01b03811681146200017357600080fd5b919050565b600080604083850312156200018c57600080fd5b62000197836200015b565b9150620001a7602084016200015b565b90509250929050565b600181811c90821680620001c557607f821691505b602082108103620001e657634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516122f16200021960003960006109240152600081816108ab0152610d2501526122f16000f3fe6080604052600436106100e85760003560e01c80636352211e1161008a578063a22cb46511610059578063a22cb46514610285578063b88d4fde146102a5578063c87b56dd146102c5578063e985e9c5146102e557600080fd5b80636352211e1461021d57806370a082311461023d57806395d89b411461025d578063a0712d681461027257600080fd5b8063095ea7b3116100c6578063095ea7b31461019257806323b872dd146101b4578063426cd7a7146101d457806342842e0e146101fd57600080fd5b806301ffc9a7146100ed57806306fdde0314610122578063081812fc14610144575b600080fd5b3480156100f957600080fd5b5061010d610108366004611467565b610320565b60405190151581526020015b60405180910390f35b34801561012e57600080fd5b50610137610372565b60405161011991906114e7565b34801561015057600080fd5b5061017a61015f3660046114fa565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610119565b34801561019e57600080fd5b506101b26101ad366004611528565b610400565b005b3480156101c057600080fd5b506101b26101cf366004611554565b6104e7565b3480156101e057600080fd5b506101ef66470de4df82000081565b604051908152602001610119565b34801561020957600080fd5b506101b2610218366004611554565b6106ae565b34801561022957600080fd5b5061017a6102383660046114fa565b6107a6565b34801561024957600080fd5b506101ef610258366004611595565b6107fd565b34801561026957600080fd5b50610137610860565b6101b26102803660046114fa565b61086d565b34801561029157600080fd5b506101b26102a03660046115b2565b610956565b3480156102b157600080fd5b506101b26102c03660046115f0565b6109c2565b3480156102d157600080fd5b506101376102e03660046114fa565b610aaa565b3480156102f157600080fd5b5061010d61030036600461168f565b600560209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b03198316148061035157506380ac58cd60e01b6001600160e01b03198316145b8061036c5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6000805461037f906116bd565b80601f01602080910402602001604051908101604052809291908181526020018280546103ab906116bd565b80156103f85780601f106103cd576101008083540402835291602001916103f8565b820191906000526020600020905b8154815290600101906020018083116103db57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061044957506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b61048b5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461053d5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610482565b6001600160a01b0382166105875760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610482565b336001600160a01b03841614806105c157506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806105e257506000818152600460205260409020546001600160a01b031633145b61061f5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610482565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6106b98383836104e7565b6001600160a01b0382163b15806107625750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075691906116f7565b6001600160e01b031916145b6107a15760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610482565b505050565b6000818152600260205260409020546001600160a01b0316806107f85760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610482565b919050565b60006001600160a01b0382166108445760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610482565b506001600160a01b031660009081526003602052604090205490565b6001805461037f906116bd565b66470de4df820000341015610895576040516317c07ea160e21b815260040160405180910390fd5b6040516331a9108f60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e90602401602060405180830381865afa1580156108fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091e9190611714565b506109497f000000000000000000000000000000000000000000000000000000000000000034610ba5565b6109533382610bf6565b50565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6109cd8585856104e7565b6001600160a01b0384163b1580610a645750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610a159033908a90899089908990600401611731565b6020604051808303816000875af1158015610a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5891906116f7565b6001600160e01b031916145b610aa35760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610482565b5050505050565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815250610af5610af085610d01565b61114a565b604051602001610b069291906117a1565b60405160208183030381529060405290506000610b228461129d565b82604051602001610b349291906117d0565b60408051601f19818403018152828201909152601d82527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208301529150610b7c8261114a565b604051602001610b8d9291906117a1565b60405160208183030381529060405292505050919050565b600080600080600085875af19050806107a15760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610482565b6001600160a01b038216610c405760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610482565b6000818152600260205260409020546001600160a01b031615610c965760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610482565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60405163c87b56dd60e01b8152600481018290526060906000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c87b56dd90602401600060405180830381865afa158015610d6c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d9491908101906118a0565b805190915060008167ffffffffffffffff811115610db457610db461188a565b604051908082528060200260200182016040528015610de757816020015b6060815260200190600190039081610dd25790505b509050600080601e5b84811015611072576000868281518110610e0c57610e0c61194d565b01602001516001600160f81b0319169050602560f81b819003610e3e5760009350600183019250600282019150611069565b6001600160f81b03198116601760f91b03610e5e57600184019350611069565b6001600160f81b03198116604f60f81b03610eb957610e97848460405180610120016040528060f28152602001611ecf60f29139611330565b858381518110610ea957610ea961194d565b6020026020010181905250611062565b6001600160f81b03198116602b60f81b03610ef157610e9784846040518060c0016040528060998152602001611e3660999139611330565b6001600160f81b03198116600b60fb1b03610f2957610e9784846040518060c00160405280609781526020016121c960979139611330565b6001600160f81b03198116601f60fa1b03610f6157610e9784846040518060800160405280605c8152602001612260605c9139611330565b6001600160f81b03198116605f60f81b03610f9957610e9784846040518060800160405280605c8152602001611fc1605c9139611330565b6001600160f81b03198116601760fa1b03610fd157610e9784846040518060800160405280605b8152602001611ddb605b9139611330565b6001600160f81b03198116602f60f81b0361100957610e9784846040518060800160405280605b815260200161216e605b9139611330565b6001600160f81b03198116602360f81b03611062576110448484604051806101400160405280610111815260200161205d6101119139611330565b8583815181106110565761105661194d565b60200260200101819052505b6001840193505b50600101610df0565b5061108761108260486058611979565b61129d565b61109661108260486058611979565b61111d600c8073f4a8fb323c935ee62fd654b55b62f0d856421cfe639bce4e14896040518263ffffffff1660e01b81526004016110d39190611998565b600060405180830381865af41580156110f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261111891908101906118a0565b611330565b60405160200161112f939291906119fa565b60405160208183030381529060405295505050505050919050565b6060815160000361116957505060408051602081019091526000815290565b600060405180606001604052806040815260200161201d60409139905060006003845160026111989190611d04565b6111a29190611d1c565b6111ad906004611979565b67ffffffffffffffff8111156111c5576111c561188a565b6040519080825280601f01601f1916602001820160405280156111ef576020820181803683370190505b509050600182016020820185865187015b8082101561125b576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611200565b5050600386510660018114611277576002811461128a57611292565b603d6001830353603d6002830353611292565b603d60018303535b509195945050505050565b606060006112aa83611379565b600101905060008167ffffffffffffffff8111156112ca576112ca61188a565b6040519080825280601f01601f1916602001820160405280156112f4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112fe57509392505050565b6060611340611082604886611979565b61134e611082604886611979565b8360405160200161136193929190611d3e565b60405160208183030381529060405290509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113b85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113e4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061140257662386f26fc10000830492506010015b6305f5e100831061141a576305f5e100830492506008015b612710831061142e57612710830492506004015b60648310611440576064830492506002015b600a831061036c5760010192915050565b6001600160e01b03198116811461095357600080fd5b60006020828403121561147957600080fd5b813561148481611451565b9392505050565b60005b838110156114a657818101518382015260200161148e565b838111156114b5576000848401525b50505050565b600081518084526114d381602086016020860161148b565b601f01601f19169290920160200192915050565b60208152600061148460208301846114bb565b60006020828403121561150c57600080fd5b5035919050565b6001600160a01b038116811461095357600080fd5b6000806040838503121561153b57600080fd5b823561154681611513565b946020939093013593505050565b60008060006060848603121561156957600080fd5b833561157481611513565b9250602084013561158481611513565b929592945050506040919091013590565b6000602082840312156115a757600080fd5b813561148481611513565b600080604083850312156115c557600080fd5b82356115d081611513565b9150602083013580151581146115e557600080fd5b809150509250929050565b60008060008060006080868803121561160857600080fd5b853561161381611513565b9450602086013561162381611513565b935060408601359250606086013567ffffffffffffffff8082111561164757600080fd5b818801915088601f83011261165b57600080fd5b81358181111561166a57600080fd5b89602082850101111561167c57600080fd5b9699959850939650602001949392505050565b600080604083850312156116a257600080fd5b82356116ad81611513565b915060208301356115e581611513565b600181811c908216806116d157607f821691505b6020821081036116f157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561170957600080fd5b815161148481611451565b60006020828403121561172657600080fd5b815161148481611513565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000815161179781856020860161148b565b9290920192915050565b600083516117b381846020880161148b565b8351908301906117c781836020880161148b565b01949350505050565b737b226e616d65223a224175746f636865636b202360601b8152825160009061180081601485016020880161148b565b61088b60f21b6014918401918201527f226465736372697074696f6e223a226f6e65206f6620746865206d616e79206d60168201526b185d1d1ccb080c8c0c8cc88b60a21b6036820152681134b6b0b3b2911d1160b91b6042820152835161186f81604b84016020880161148b565b61227d60f01b604b9290910191820152604d01949350505050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156118b257600080fd5b815167ffffffffffffffff808211156118ca57600080fd5b818401915084601f8301126118de57600080fd5b8151818111156118f0576118f061188a565b604051601f8201601f19908116603f011681019083821181831017156119185761191861188a565b8160405282815287602084870101111561193157600080fd5b61194283602083016020880161148b565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561199357611993611963565b500290565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156119ed57603f198886030184526119db8583516114bb565b945092850192908501906001016119bf565b5092979650505050505050565b7101e39bb33903b34b2bba137bc1e91181018160751b81528351600090611a2881601285016020890161148b565b600160fd1b6012918401918201528451611a4981601384016020890161148b565b7f2220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f601392909101918201527f73766722207374796c653d226261636b67726f756e643a23666666666666223e60338201527f3c646566733e3c706174682069643d22632220643d224d32322e32352031326360538201527f302d312e34332d2e38382d322e36372d322e31392d332e33342e34362d312e3360738201527f392e322d322e392d2e38312d332e3931732d322e35322d312e32372d332e393160938201527f2d2e3831632d2e36362d312e33312d312e39312d322e31392d332e33342d322e60b38201527f3139732d322e36372e38382d332e333320322e3139632d312e342d2e34362d3260d38201527f2e39312d2e322d332e39322e3831732d312e323620322e35322d2e3820332e3960f38201527f31632d312e33312e36372d322e3220312e39312d322e3220332e3334732e38396101138201527f20322e363720322e3220332e3334632d2e343620312e33392d2e323120322e396101338201527f2e3820332e393173322e353220312e323620332e39312e3831632e363720312e6101538201527f333120312e393120322e313920332e333420322e313973322e36382d2e3838206101738201527f332e33342d322e313963312e33392e343520322e392e3220332e39312d2e38316101938201527f73312e32372d322e35322e38312d332e393163312e33312d2e363720322e31396101b38201527f2d312e393120322e31392d332e33347a6d2d31312e373120342e324c362e38206101d38201527f31322e34366c312e34312d312e343220322e323620322e323620342e382d352e6101f38201527f323320312e343720312e33362d362e3220362e37377a222f3e3c2f646566733e610213820152611ceb610233820185611785565b651e17b9bb339f60d11b81526006019695505050505050565b60008219821115611d1757611d17611963565b500190565b600082611d3957634e487b7160e01b600052601260045260246000fd5b500490565b7f3c67207472616e73666f726d3d227472616e736c617465280000000000000000815260008451611d7681601885016020890161148b565b61016160f51b6018918401918201528451611d9881601a84016020890161148b565b6214911f60e91b601a92909101918201528351611dbc81601d84016020880161148b565b631e17b39f60e11b601d92909101918201526021019594505050505056fe3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3e3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3ea2646970667358221220a4e0b28525b47c4052129fc2c2e91fae6dc9170a307d0aec5a33ec076c03e0de64736f6c634300080d0033000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a9861977820000000000000000000000000498f2634af1ad24791f6dc91cf95d9effab5d19

Deployed Bytecode

0x6080604052600436106100e85760003560e01c80636352211e1161008a578063a22cb46511610059578063a22cb46514610285578063b88d4fde146102a5578063c87b56dd146102c5578063e985e9c5146102e557600080fd5b80636352211e1461021d57806370a082311461023d57806395d89b411461025d578063a0712d681461027257600080fd5b8063095ea7b3116100c6578063095ea7b31461019257806323b872dd146101b4578063426cd7a7146101d457806342842e0e146101fd57600080fd5b806301ffc9a7146100ed57806306fdde0314610122578063081812fc14610144575b600080fd5b3480156100f957600080fd5b5061010d610108366004611467565b610320565b60405190151581526020015b60405180910390f35b34801561012e57600080fd5b50610137610372565b60405161011991906114e7565b34801561015057600080fd5b5061017a61015f3660046114fa565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610119565b34801561019e57600080fd5b506101b26101ad366004611528565b610400565b005b3480156101c057600080fd5b506101b26101cf366004611554565b6104e7565b3480156101e057600080fd5b506101ef66470de4df82000081565b604051908152602001610119565b34801561020957600080fd5b506101b2610218366004611554565b6106ae565b34801561022957600080fd5b5061017a6102383660046114fa565b6107a6565b34801561024957600080fd5b506101ef610258366004611595565b6107fd565b34801561026957600080fd5b50610137610860565b6101b26102803660046114fa565b61086d565b34801561029157600080fd5b506101b26102a03660046115b2565b610956565b3480156102b157600080fd5b506101b26102c03660046115f0565b6109c2565b3480156102d157600080fd5b506101376102e03660046114fa565b610aaa565b3480156102f157600080fd5b5061010d61030036600461168f565b600560209081526000928352604080842090915290825290205460ff1681565b60006301ffc9a760e01b6001600160e01b03198316148061035157506380ac58cd60e01b6001600160e01b03198316145b8061036c5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6000805461037f906116bd565b80601f01602080910402602001604051908101604052809291908181526020018280546103ab906116bd565b80156103f85780601f106103cd576101008083540402835291602001916103f8565b820191906000526020600020905b8154815290600101906020018083116103db57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061044957506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b61048b5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461053d5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610482565b6001600160a01b0382166105875760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610482565b336001600160a01b03841614806105c157506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806105e257506000818152600460205260409020546001600160a01b031633145b61061f5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610482565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6106b98383836104e7565b6001600160a01b0382163b15806107625750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075691906116f7565b6001600160e01b031916145b6107a15760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610482565b505050565b6000818152600260205260409020546001600160a01b0316806107f85760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610482565b919050565b60006001600160a01b0382166108445760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610482565b506001600160a01b031660009081526003602052604090205490565b6001805461037f906116bd565b66470de4df820000341015610895576040516317c07ea160e21b815260040160405180910390fd5b6040516331a9108f60e11b8152600481018290527f000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a9861977826001600160a01b031690636352211e90602401602060405180830381865afa1580156108fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091e9190611714565b506109497f0000000000000000000000000498f2634af1ad24791f6dc91cf95d9effab5d1934610ba5565b6109533382610bf6565b50565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6109cd8585856104e7565b6001600160a01b0384163b1580610a645750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610a159033908a90899089908990600401611731565b6020604051808303816000875af1158015610a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5891906116f7565b6001600160e01b031916145b610aa35760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610482565b5050505050565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815250610af5610af085610d01565b61114a565b604051602001610b069291906117a1565b60405160208183030381529060405290506000610b228461129d565b82604051602001610b349291906117d0565b60408051601f19818403018152828201909152601d82527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208301529150610b7c8261114a565b604051602001610b8d9291906117a1565b60405160208183030381529060405292505050919050565b600080600080600085875af19050806107a15760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610482565b6001600160a01b038216610c405760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610482565b6000818152600260205260409020546001600160a01b031615610c965760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610482565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60405163c87b56dd60e01b8152600481018290526060906000906001600160a01b037f000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a986197782169063c87b56dd90602401600060405180830381865afa158015610d6c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d9491908101906118a0565b805190915060008167ffffffffffffffff811115610db457610db461188a565b604051908082528060200260200182016040528015610de757816020015b6060815260200190600190039081610dd25790505b509050600080601e5b84811015611072576000868281518110610e0c57610e0c61194d565b01602001516001600160f81b0319169050602560f81b819003610e3e5760009350600183019250600282019150611069565b6001600160f81b03198116601760f91b03610e5e57600184019350611069565b6001600160f81b03198116604f60f81b03610eb957610e97848460405180610120016040528060f28152602001611ecf60f29139611330565b858381518110610ea957610ea961194d565b6020026020010181905250611062565b6001600160f81b03198116602b60f81b03610ef157610e9784846040518060c0016040528060998152602001611e3660999139611330565b6001600160f81b03198116600b60fb1b03610f2957610e9784846040518060c00160405280609781526020016121c960979139611330565b6001600160f81b03198116601f60fa1b03610f6157610e9784846040518060800160405280605c8152602001612260605c9139611330565b6001600160f81b03198116605f60f81b03610f9957610e9784846040518060800160405280605c8152602001611fc1605c9139611330565b6001600160f81b03198116601760fa1b03610fd157610e9784846040518060800160405280605b8152602001611ddb605b9139611330565b6001600160f81b03198116602f60f81b0361100957610e9784846040518060800160405280605b815260200161216e605b9139611330565b6001600160f81b03198116602360f81b03611062576110448484604051806101400160405280610111815260200161205d6101119139611330565b8583815181106110565761105661194d565b60200260200101819052505b6001840193505b50600101610df0565b5061108761108260486058611979565b61129d565b61109661108260486058611979565b61111d600c8073f4a8fb323c935ee62fd654b55b62f0d856421cfe639bce4e14896040518263ffffffff1660e01b81526004016110d39190611998565b600060405180830381865af41580156110f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261111891908101906118a0565b611330565b60405160200161112f939291906119fa565b60405160208183030381529060405295505050505050919050565b6060815160000361116957505060408051602081019091526000815290565b600060405180606001604052806040815260200161201d60409139905060006003845160026111989190611d04565b6111a29190611d1c565b6111ad906004611979565b67ffffffffffffffff8111156111c5576111c561188a565b6040519080825280601f01601f1916602001820160405280156111ef576020820181803683370190505b509050600182016020820185865187015b8082101561125b576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611200565b5050600386510660018114611277576002811461128a57611292565b603d6001830353603d6002830353611292565b603d60018303535b509195945050505050565b606060006112aa83611379565b600101905060008167ffffffffffffffff8111156112ca576112ca61188a565b6040519080825280601f01601f1916602001820160405280156112f4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846112fe57509392505050565b6060611340611082604886611979565b61134e611082604886611979565b8360405160200161136193929190611d3e565b60405160208183030381529060405290509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106113b85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106113e4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061140257662386f26fc10000830492506010015b6305f5e100831061141a576305f5e100830492506008015b612710831061142e57612710830492506004015b60648310611440576064830492506002015b600a831061036c5760010192915050565b6001600160e01b03198116811461095357600080fd5b60006020828403121561147957600080fd5b813561148481611451565b9392505050565b60005b838110156114a657818101518382015260200161148e565b838111156114b5576000848401525b50505050565b600081518084526114d381602086016020860161148b565b601f01601f19169290920160200192915050565b60208152600061148460208301846114bb565b60006020828403121561150c57600080fd5b5035919050565b6001600160a01b038116811461095357600080fd5b6000806040838503121561153b57600080fd5b823561154681611513565b946020939093013593505050565b60008060006060848603121561156957600080fd5b833561157481611513565b9250602084013561158481611513565b929592945050506040919091013590565b6000602082840312156115a757600080fd5b813561148481611513565b600080604083850312156115c557600080fd5b82356115d081611513565b9150602083013580151581146115e557600080fd5b809150509250929050565b60008060008060006080868803121561160857600080fd5b853561161381611513565b9450602086013561162381611513565b935060408601359250606086013567ffffffffffffffff8082111561164757600080fd5b818801915088601f83011261165b57600080fd5b81358181111561166a57600080fd5b89602082850101111561167c57600080fd5b9699959850939650602001949392505050565b600080604083850312156116a257600080fd5b82356116ad81611513565b915060208301356115e581611513565b600181811c908216806116d157607f821691505b6020821081036116f157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561170957600080fd5b815161148481611451565b60006020828403121561172657600080fd5b815161148481611513565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000815161179781856020860161148b565b9290920192915050565b600083516117b381846020880161148b565b8351908301906117c781836020880161148b565b01949350505050565b737b226e616d65223a224175746f636865636b202360601b8152825160009061180081601485016020880161148b565b61088b60f21b6014918401918201527f226465736372697074696f6e223a226f6e65206f6620746865206d616e79206d60168201526b185d1d1ccb080c8c0c8cc88b60a21b6036820152681134b6b0b3b2911d1160b91b6042820152835161186f81604b84016020880161148b565b61227d60f01b604b9290910191820152604d01949350505050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156118b257600080fd5b815167ffffffffffffffff808211156118ca57600080fd5b818401915084601f8301126118de57600080fd5b8151818111156118f0576118f061188a565b604051601f8201601f19908116603f011681019083821181831017156119185761191861188a565b8160405282815287602084870101111561193157600080fd5b61194283602083016020880161148b565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561199357611993611963565b500290565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156119ed57603f198886030184526119db8583516114bb565b945092850192908501906001016119bf565b5092979650505050505050565b7101e39bb33903b34b2bba137bc1e91181018160751b81528351600090611a2881601285016020890161148b565b600160fd1b6012918401918201528451611a4981601384016020890161148b565b7f2220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f601392909101918201527f73766722207374796c653d226261636b67726f756e643a23666666666666223e60338201527f3c646566733e3c706174682069643d22632220643d224d32322e32352031326360538201527f302d312e34332d2e38382d322e36372d322e31392d332e33342e34362d312e3360738201527f392e322d322e392d2e38312d332e3931732d322e35322d312e32372d332e393160938201527f2d2e3831632d2e36362d312e33312d312e39312d322e31392d332e33342d322e60b38201527f3139732d322e36372e38382d332e333320322e3139632d312e342d2e34362d3260d38201527f2e39312d2e322d332e39322e3831732d312e323620322e35322d2e3820332e3960f38201527f31632d312e33312e36372d322e3220312e39312d322e3220332e3334732e38396101138201527f20322e363720322e3220332e3334632d2e343620312e33392d2e323120322e396101338201527f2e3820332e393173322e353220312e323620332e39312e3831632e363720312e6101538201527f333120312e393120322e313920332e333420322e313973322e36382d2e3838206101738201527f332e33342d322e313963312e33392e343520322e392e3220332e39312d2e38316101938201527f73312e32372d322e35322e38312d332e393163312e33312d2e363720322e31396101b38201527f2d312e393120322e31392d332e33347a6d2d31312e373120342e324c362e38206101d38201527f31322e34366c312e34312d312e343220322e323620322e323620342e382d352e6101f38201527f323320312e343720312e33362d362e3220362e37377a222f3e3c2f646566733e610213820152611ceb610233820185611785565b651e17b9bb339f60d11b81526006019695505050505050565b60008219821115611d1757611d17611963565b500190565b600082611d3957634e487b7160e01b600052601260045260246000fd5b500490565b7f3c67207472616e73666f726d3d227472616e736c617465280000000000000000815260008451611d7681601885016020890161148b565b61016160f51b6018918401918201528451611d9881601a84016020890161148b565b6214911f60e91b601a92909101918201528351611dbc81601d84016020880161148b565b631e17b39f60e11b601d92909101918201526021019594505050505056fe3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3e3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d22302220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2234382220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d22302220793d223022202f3e3c75736520687265663d2223632220783d2234382220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d22302220793d22343822202f3e3c75736520687265663d2223632220783d2234382220793d22343822202f3e3c75736520687265663d2223632220783d2232342220793d223022202f3e3c75736520687265663d2223632220783d2232342220793d22323422202f3e3c75736520687265663d2223632220783d2232342220793d22343822202f3ea2646970667358221220a4e0b28525b47c4052129fc2c2e91fae6dc9170a307d0aec5a33ec076c03e0de64736f6c634300080d0033

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

000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a9861977820000000000000000000000000498f2634af1ad24791f6dc91cf95d9effab5d19

-----Decoded View---------------
Arg [0] : _glyphs (address): 0xd4e4078ca3495DE5B1d4dB434BEbc5a986197782
Arg [1] : _receiver (address): 0x0498F2634Af1Ad24791F6dc91Cf95D9EFfaB5d19

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a986197782
Arg [1] : 0000000000000000000000000498f2634af1ad24791f6dc91cf95d9effab5d19


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.