ETH Price: $2,867.87 (-2.76%)
 

Overview

Max Total Supply

2,383 HF

Holders

1,441

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
boochan.base.eth
Balance
1 HF
0x4AA92b19b50b1b27daA72a6F9F463F582babAD82
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
HappyFridayMachine_1

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import 'erc721a/contracts/ERC721A.sol';
import './HappyFridayRenderer_1.sol';

// MMMMMMMMMMMMMMMMMNkc,.......'cxXMMMMMMMMMMMMMMMMMMMMMXx:'.......,lkNMM
// MMMMMMMMMMMMMMMWk, .;ok000kd:. 'dNMMMMMMMMMMMMMMMMMXd. .:dO000ko;. ,kW
// MMMMMMMMMMMMMMNo. :00dkNMNOd0Kc. cXMMMMMMMMMMMMMMMX: .lKW0ddddd0NO; .d
// KKK0KKK00K0XWMx. cNWo .kW0' cNWo  oWWMMMMMMMMMMMMWl .dWMX; .cclOWMX: .
// ...........:XWl .kMWo  ';'. cNMO' :0NMN0OOOOOk0NMX; '0MMK, .:coKMMMx. 
//    .'''''''lXWo  dWWo .lOo. cNMk. cXNM0,      ,0MN: .OMMK, ,xkONMMWo  
// ...oNNNNNNNNMMK, .kWk,cKMXl'dW0, .OMMMNOdxxxxxONMMk. ;0MNo'dWMMMMWk. ;
// KKKNMMMMMMMMMMM0; .ckKNMMMWKOl. 'OWMMMMMMMMMMMMMMMWk' .o0XNWMMWXk:. :K
// MMMMMMMMMMMMMMMMNx;...;:cc;'..,dXMMMMMMMMMMMMMMMMMMMXd,..';cc:;. .;kNM
// MMMMMMMMMMMMMMMMMMNkc..    .:xNMMMMMMMMMMMMMMMMMMMMMMMXx;.    ..cONMMM

contract HappyFridayMachine_1 is ERC721A {
  address payable public owner;
  uint256 private _rn;
  uint256 public fee = 70000000000000;

  HappyFridayRenderer_1 public renderer;

  mapping(uint256 => string) public tokenIdToDesign;

  struct FullHF {
    uint256 earToken;
    uint256 hToken;
    uint256 noseToken;
    uint256 fToken;
  }

  constructor(address _rendererAddress) ERC721A('HappyFriday', 'HF') {
    owner = payable(msg.sender);
    renderer = HappyFridayRenderer_1(_rendererAddress);
  }

  event Withdrawal(uint amount);
  event RendererUpdated(address renderer);
  event FeeUpdated(uint256 fee);

  function getOwnersHfsTokenIds(
    address _owner
  ) public view returns (uint256[] memory) {
    uint256[] memory result = new uint256[](balanceOf(_owner));
    uint256 counter = 0;
    for (uint256 i = 0; i < _totalMinted(); i++) {
      if (_exists(i) && ownerOf(i) == _owner) {
        result[counter] = i;
        counter++;
      }
    }
    return result;
  }

  function getOwnersHfsTokenUris(
    address _owner
  ) public view returns (string[] memory) {
    uint256[] memory tokenIds = getOwnersHfsTokenIds(_owner);
    string[] memory result = new string[](tokenIds.length);
    for (uint256 i = 0; i < tokenIds.length; i++) {
      result[i] = tokenURI(tokenIds[i]);
    }
    return result;
  }

  function burn(FullHF calldata fullHf) public {
    require(
      keccak256(bytes(tokenIdToDesign[fullHf.earToken])) ==
        keccak256(bytes('ear')),
      'this is not an ear'
    );
    require(
      keccak256(bytes(tokenIdToDesign[fullHf.hToken])) == keccak256(bytes('h')),
      'this is not an h'
    );
    require(
      keccak256(bytes(tokenIdToDesign[fullHf.noseToken])) ==
        keccak256(bytes('nose')),
      'this is not a nose'
    );
    require(
      keccak256(bytes(tokenIdToDesign[fullHf.fToken])) == keccak256(bytes('f')),
      'this is not an f'
    );

    // Ensure that the caller is the owner of all the tokens being burned
    require(
      ownerOf(fullHf.earToken) == msg.sender &&
        ownerOf(fullHf.hToken) == msg.sender &&
        ownerOf(fullHf.noseToken) == msg.sender &&
        ownerOf(fullHf.fToken) == msg.sender,
      'caller is not the owner of all the tokens'
    );

    _burn(fullHf.earToken);
    _burn(fullHf.hToken);
    _burn(fullHf.noseToken);
    _burn(fullHf.fToken);

    uint256 tokenId = _nextTokenId();
    _mint(msg.sender, 1);
    tokenIdToDesign[tokenId] = 'HF';
  }

  function mint() external payable {
    require(msg.value >= fee, 'not enough fee');
    uint256 tokenId = _nextTokenId();
    _mint(msg.sender, 1);
    uint256 _randomNumber = randomise();
    string memory design;
    if (_randomNumber == 0) {
      design = 'ear';
    }
    if (_randomNumber == 1) {
      design = 'h';
    }
    if (_randomNumber == 2) {
      design = 'nose';
    }
    if (_randomNumber == 3) {
      design = 'f';
    }
    tokenIdToDesign[tokenId] = design;
    _rn++;
  }

  function adminMint(string calldata design, address recipient) public {
    require(msg.sender == owner, 'only owner can mint');
    uint256 tokenId = _nextTokenId();
    _mint(recipient, 1);
    tokenIdToDesign[tokenId] = design;
  }

  function updateRenderer(address _rendererAddress) public {
    require(msg.sender == owner, 'only owner can update renderer');
    renderer = HappyFridayRenderer_1(_rendererAddress);
    emit RendererUpdated(_rendererAddress);
  }

  function tokenURI(
    uint256 tokenId
  ) public view override returns (string memory) {
    if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
    return renderer.render(tokenIdToDesign[tokenId], tokenId);
  }

  function incrementR() public {
    _rn++;
  }

  function randomise() public view returns (uint256) {
    bytes32 hash = blockhash(block.number - 1);
    uint256 _raw = uint256(
      keccak256(abi.encodePacked(hash, block.timestamp, block.number, _rn))
    );
    return _raw % 4;
  }

  function withdraw() public {
    emit Withdrawal(address(this).balance);

    owner.transfer(address(this).balance);
  }

  function updateFee(uint256 newFee) public {
    require(msg.sender == owner, 'only owner can update fee');
    fee = newFee;
    emit FeeUpdated(newFee);
  }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract HappyFridayRenderer_1 {
    string constant earDesign = "ear";
    string constant EAR_SVG =
        '<svg id="ear" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="17.1 9.88 6.9 9.88 6.94 14.12" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="3"/></svg>';

    string constant hDesign = "h";
    string constant H_SVG =
        '<svg id="h" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m1.99,11.99C1.99,6.51,6.51,1.99,11.99,1.99s10.01,4.52,10.01,10-4.51,10.01-10,10.01S1.99,17.49,1.99,11.99Zm17.36,0c0-4.07-3.28-7.35-7.36-7.35s-7.34,3.28-7.34,7.35,3.27,7.36,7.35,7.36,7.35-3.28,7.35-7.36Zm-11.36,2.91v-5.9c0-.89.47-1.41,1.27-1.41s1.27.52,1.27,1.41v1.95h2.91v-1.95c0-.89.47-1.41,1.26-1.41s1.29.52,1.29,1.41v5.9c0,.89-.48,1.4-1.29,1.4s-1.26-.52-1.26-1.4v-2.03h-2.91v2.03c0,.89-.47,1.4-1.27,1.4s-1.27-.52-1.27-1.4Z" stroke-width="0"/></svg>';

    string constant noseDesign = "nose";
    string constant NOSE_SVG =
        '<svg id="nose" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m8.11,10.47h7.78v3.06h-7.78v-3.06Z" stroke-width="0"/></svg>';

    string constant fDesign = "f";
    string constant F_SVG =
        '<svg id="f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m1.99,11.99C1.99,6.51,6.51,1.99,11.99,1.99s10.01,4.52,10.01,10-4.51,10.01-10,10.01S1.99,17.49,1.99,11.99Zm17.36,0c0-4.07-3.28-7.35-7.36-7.35s-7.34,3.28-7.34,7.35,3.27,7.36,7.35,7.36,7.35-3.28,7.35-7.36Zm-10.5,2.94v-5.79c0-.89.44-1.4,1.33-1.4h4c.62,0,1.02.35,1.02.94s-.4.94-1.02.94h-2.89v1.62h2.71c.55,0,.9.31.9.85s-.35.84-.9.84h-2.69v2c0,.85-.46,1.37-1.24,1.37s-1.23-.52-1.23-1.37Z" stroke-width="0"/></svg>';

    string constant HFDesign = "HF";
    string constant HF_SVG =
        '<svg id="HF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 24"><path d="m19.25,11.99c0-5.49,4.51-10,10-10s10.01,4.52,10.01,10-4.51,10.01-10,10.01-10.01-4.51-10.01-10.01Zm17.36,0c0-4.07-3.28-7.35-7.36-7.35s-7.34,3.28-7.34,7.35,3.27,7.36,7.35,7.36,7.35-3.28,7.35-7.36Zm-11.36,2.91v-5.9c0-.89.47-1.41,1.27-1.41s1.27.52,1.27,1.41v1.95h2.91v-1.95c0-.89.47-1.41,1.26-1.41s1.29.52,1.29,1.41v5.9c0,.89-.48,1.4-1.29,1.4s-1.26-.52-1.26-1.4v-2.03h-2.91v2.03c0,.89-.47,1.4-1.27,1.4s-1.27-.52-1.27-1.4Z" stroke-width="0"/><path d="m42.49,12.09h7.78v3.06h-7.78v-3.06Z" stroke-width="0"/><path d="m53.48,11.99c0-5.49,4.51-10,10-10s10.01,4.52,10.01,10-4.51,10.01-10,10.01-10.01-4.51-10.01-10.01Zm17.36,0c0-4.07-3.28-7.35-7.36-7.35s-7.34,3.28-7.34,7.35,3.27,7.36,7.35,7.36,7.35-3.28,7.35-7.36Zm-10.5,2.94v-5.79c0-.89.44-1.4,1.33-1.4h4c.62,0,1.02.35,1.02.94s-.4.94-1.02.94h-2.89v1.62h2.71c.55,0,.9.31.9.85s-.35.84-.9.84h-2.69v2c0,.85-.46,1.37-1.24,1.37s-1.23-.52-1.23-1.37Z" stroke-width="0"/><polyline points="16.71 12.32 6.5 12.32 6.55 16.55" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="3"/></svg>';

    struct HFMetadata {
        string name;
        string description;
        string image;
    }

    function _designReducer(
        string calldata designKey
    ) private pure returns (HFMetadata memory) {
        if (keccak256(bytes(designKey)) == keccak256(bytes(earDesign))) {
            return HFMetadata("Ear", "Happy Friday - Ear", EAR_SVG);
        }
        if (keccak256(bytes(designKey)) == keccak256(bytes(hDesign))) {
            return HFMetadata("H", "Happy Friday - H", H_SVG);
        }
        if (keccak256(bytes(designKey)) == keccak256(bytes(noseDesign))) {
            return HFMetadata("Nose", "Happy Friday - Nose", NOSE_SVG);
        }
        if (keccak256(bytes(designKey)) == keccak256(bytes(fDesign))) {
            return HFMetadata("F", "Happy Friday - F", F_SVG);
        }
        if (keccak256(bytes(designKey)) == keccak256(bytes(HFDesign))) {
            return HFMetadata("Happy Friday", "Happy Friday", HF_SVG);
        }
        return HFMetadata("Happy Friday", "Happy Friday", "<svg></svg>");
    }

    function render(
        string calldata design, uint256 tokenId
    ) public pure returns (string memory) {
        HFMetadata memory metadata = _designReducer(design);

        string memory json = string.concat(
            '{"name":"',
            metadata.name,
            '",',
            '"description":"',
            metadata.description,
            '",',
            '"tokenId":"',
            Strings.toString(tokenId),
            '",',
            '"image":"data:image/svg+xml;base64,',
            Base64.encode(bytes(metadata.image)),
            '",',
            '"attributes":[',
            "{",
            '"trait_type":"Generation",',
            '"value":"',
            "1"
            '"}]'
            "}"
        );
        return
            string.concat(
                "data:application/json;base64,",
                Base64.encode(bytes(json))
            );
    }
}

File 7 of 8 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

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

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

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

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

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

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

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

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

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

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

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

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

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

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

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

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

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

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

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

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

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

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

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

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

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

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

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

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

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

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

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

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

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

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

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

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

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

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

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

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

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

// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

    // =============================================================
    //                            STRUCTS
    // =============================================================

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

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_rendererAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"FeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"renderer","type":"address"}],"name":"RendererUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[{"internalType":"string","name":"design","type":"string"},{"internalType":"address","name":"recipient","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"earToken","type":"uint256"},{"internalType":"uint256","name":"hToken","type":"uint256"},{"internalType":"uint256","name":"noseToken","type":"uint256"},{"internalType":"uint256","name":"fToken","type":"uint256"}],"internalType":"struct HappyFridayMachine_1.FullHF","name":"fullHf","type":"tuple"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getOwnersHfsTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getOwnersHfsTokenUris","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomise","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract HappyFridayRenderer_1","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"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":"","type":"uint256"}],"name":"tokenIdToDesign","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rendererAddress","type":"address"}],"name":"updateRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052653faa25226000600a553480156200001b57600080fd5b5060405162004189380380620041898339818101604052810190620000419190620001e1565b6040518060400160405280600b81526020017f48617070794672696461790000000000000000000000000000000000000000008152506040518060400160405280600281526020017f48460000000000000000000000000000000000000000000000000000000000008152508160029081620000be91906200048d565b508060039081620000d091906200048d565b50620000e16200017260201b60201c565b600081905550505033600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000574565b600090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001a9826200017c565b9050919050565b620001bb816200019c565b8114620001c757600080fd5b50565b600081519050620001db81620001b0565b92915050565b600060208284031215620001fa57620001f962000177565b5b60006200020a84828501620001ca565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200029557607f821691505b602082108103620002ab57620002aa6200024d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002d6565b620003218683620002d6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200036e62000368620003628462000339565b62000343565b62000339565b9050919050565b6000819050919050565b6200038a836200034d565b620003a2620003998262000375565b848454620002e3565b825550505050565b600090565b620003b9620003aa565b620003c68184846200037f565b505050565b5b81811015620003ee57620003e2600082620003af565b600181019050620003cc565b5050565b601f8211156200043d576200040781620002b1565b6200041284620002c6565b8101602085101562000422578190505b6200043a6200043185620002c6565b830182620003cb565b50505b505050565b600082821c905092915050565b6000620004626000198460080262000442565b1980831691505092915050565b60006200047d83836200044f565b9150826002028217905092915050565b620004988262000213565b67ffffffffffffffff811115620004b457620004b36200021e565b5b620004c082546200027c565b620004cd828285620003f2565b600060209050601f831160018114620005055760008415620004f0578287015190505b620004fc85826200046f565b8655506200056c565b601f1984166200051586620002b1565b60005b828110156200053f5784890151825560018201915060208501945060208101905062000518565b868310156200055f57848901516200055b601f8916826200044f565b8355505b6001600288020188555050505b505050505050565b613c0580620005846000396000f3fe6080604052600436106101b75760003560e01c80636352211e116100ec578063b88d4fde1161008a578063c87b56dd11610064578063c87b56dd146105b3578063ddca3f43146105f0578063df51f7221461061b578063e985e9c514610646576101b7565b8063b88d4fde14610531578063b8b860c81461054d578063be610c591461058a576101b7565b80638da5cb5b116100c65780638da5cb5b146104895780639012c4a8146104b457806395d89b41146104dd578063a22cb46514610508576101b7565b80636352211e146103e457806370a08231146104215780638ada6b0f1461045e576101b7565b806318160ddd1161015957806333f222ec1161013357806333f222ec1461035f5780633ccfd60b1461038857806342842e0e1461039f578063594db9f6146103bb576101b7565b806318160ddd1461030157806323b872dd1461032c5780632b44ea4814610348576101b7565b8063081812fc11610195578063081812fc14610261578063095ea7b31461029e5780631249c58b146102ba578063134be3bb146102c4576101b7565b806301ffc9a7146101bc57806304fcc76a146101f957806306fdde0314610236575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de91906125fc565b610683565b6040516101f09190612644565b60405180910390f35b34801561020557600080fd5b50610220600480360381019061021b9190612695565b610715565b60405161022d9190612752565b60405180910390f35b34801561024257600080fd5b5061024b6107b5565b6040516102589190612752565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190612695565b610847565b60405161029591906127b5565b60405180910390f35b6102b860048036038101906102b391906127fc565b6108c6565b005b6102c2610a0a565b005b3480156102d057600080fd5b506102eb60048036038101906102e6919061283c565b610bb6565b6040516102f89190612927565b60405180910390f35b34801561030d57600080fd5b50610316610cba565b6040516103239190612958565b60405180910390f35b61034660048036038101906103419190612973565b610cd1565b005b34801561035457600080fd5b5061035d610ff3565b005b34801561036b57600080fd5b50610386600480360381019061038191906129ea565b61100d565b005b34801561039457600080fd5b5061039d611499565b005b6103b960048036038101906103b49190612973565b61153b565b005b3480156103c757600080fd5b506103e260048036038101906103dd9190612a7c565b61155b565b005b3480156103f057600080fd5b5061040b60048036038101906104069190612695565b61162b565b60405161041891906127b5565b60405180910390f35b34801561042d57600080fd5b506104486004803603810190610443919061283c565b61163d565b6040516104559190612958565b60405180910390f35b34801561046a57600080fd5b506104736116f5565b6040516104809190612b3b565b60405180910390f35b34801561049557600080fd5b5061049e61171b565b6040516104ab9190612b77565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d69190612695565b611741565b005b3480156104e957600080fd5b506104f2611812565b6040516104ff9190612752565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190612bbe565b6118a4565b005b61054b60048036038101906105469190612d2e565b6119af565b005b34801561055957600080fd5b50610574600480360381019061056f919061283c565b611a22565b6040516105819190612ebd565b60405180910390f35b34801561059657600080fd5b506105b160048036038101906105ac919061283c565b611aef565b005b3480156105bf57600080fd5b506105da60048036038101906105d59190612695565b611bfa565b6040516105e79190612752565b60405180910390f35b3480156105fc57600080fd5b50610605611cf7565b6040516106129190612958565b60405180910390f35b34801561062757600080fd5b50610630611cfd565b60405161063d9190612958565b60405180910390f35b34801561065257600080fd5b5061066d60048036038101906106689190612edf565b611d5a565b60405161067a9190612644565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106de57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061070e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600c602052806000526040600020600091509050805461073490612f4e565b80601f016020809104026020016040519081016040528092919081815260200182805461076090612f4e565b80156107ad5780601f10610782576101008083540402835291602001916107ad565b820191906000526020600020905b81548152906001019060200180831161079057829003601f168201915b505050505081565b6060600280546107c490612f4e565b80601f01602080910402602001604051908101604052809291908181526020018280546107f090612f4e565b801561083d5780601f106108125761010080835404028352916020019161083d565b820191906000526020600020905b81548152906001019060200180831161082057829003601f168201915b5050505050905090565b600061085282611dee565b610888576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d18261162b565b90508073ffffffffffffffffffffffffffffffffffffffff166108f2611e4d565b73ffffffffffffffffffffffffffffffffffffffff16146109555761091e81610919611e4d565b611d5a565b610954576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a54341015610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4690612fcb565b60405180910390fd5b6000610a59611e55565b9050610a66336001611e5e565b6000610a70611cfd565b9050606060008203610ab5576040518060400160405280600381526020017f656172000000000000000000000000000000000000000000000000000000000081525090505b60018203610af6576040518060400160405280600181526020017f680000000000000000000000000000000000000000000000000000000000000081525090505b60028203610b37576040518060400160405280600481526020017f6e6f73650000000000000000000000000000000000000000000000000000000081525090505b60038203610b78576040518060400160405280600181526020017f660000000000000000000000000000000000000000000000000000000000000081525090505b80600c60008581526020019081526020016000209081610b98919061318d565b5060096000815480929190610bac9061328e565b9190505550505050565b60606000610bc38361163d565b67ffffffffffffffff811115610bdc57610bdb612c03565b5b604051908082528060200260200182016040528015610c0a5781602001602082028036833780820191505090505b5090506000805b610c19612019565b811015610caf57610c2981611dee565b8015610c6857508473ffffffffffffffffffffffffffffffffffffffff16610c508261162b565b73ffffffffffffffffffffffffffffffffffffffff16145b15610c9c5780838381518110610c8157610c806132d6565b5b6020026020010181815250508180610c989061328e565b9250505b8080610ca79061328e565b915050610c11565b508192505050919050565b6000610cc461202c565b6001546000540303905090565b6000610cdc82612031565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d43576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d4f846120fd565b91509150610d658187610d60611e4d565b612124565b610db157610d7a86610d75611e4d565b611d5a565b610db0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610e17576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e248686866001612168565b8015610e2f57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610efd85610ed988888761216e565b7c020000000000000000000000000000000000000000000000000000000017612196565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610f835760006001850190506000600460008381526020019081526020016000205403610f81576000548114610f80578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610feb86868660016121c1565b505050505050565b600960008154809291906110069061328e565b9190505550565b6040518060400160405280600381526020017f656172000000000000000000000000000000000000000000000000000000000081525080519060200120600c60008360000135815260200190815260200160002060405161106e91906133a8565b6040518091039020146110b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ad9061340b565b60405180910390fd5b6040518060400160405280600181526020017f680000000000000000000000000000000000000000000000000000000000000081525080519060200120600c60008360200135815260200190815260200160002060405161111791906133a8565b60405180910390201461115f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115690613477565b60405180910390fd5b6040518060400160405280600481526020017f6e6f73650000000000000000000000000000000000000000000000000000000081525080519060200120600c6000836040013581526020019081526020016000206040516111c091906133a8565b604051809103902014611208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ff906134e3565b60405180910390fd5b6040518060400160405280600181526020017f660000000000000000000000000000000000000000000000000000000000000081525080519060200120600c60008360600135815260200190815260200160002060405161126991906133a8565b6040518091039020146112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a89061354f565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166112d5826000013561162b565b73ffffffffffffffffffffffffffffffffffffffff1614801561132f57503373ffffffffffffffffffffffffffffffffffffffff16611317826020013561162b565b73ffffffffffffffffffffffffffffffffffffffff16145b801561137257503373ffffffffffffffffffffffffffffffffffffffff1661135a826040013561162b565b73ffffffffffffffffffffffffffffffffffffffff16145b80156113b557503373ffffffffffffffffffffffffffffffffffffffff1661139d826060013561162b565b73ffffffffffffffffffffffffffffffffffffffff16145b6113f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113eb906135e1565b60405180910390fd5b61140181600001356121c7565b61140e81602001356121c7565b61141b81604001356121c7565b61142881606001356121c7565b6000611432611e55565b905061143f336001611e5e565b6040518060400160405280600281526020017f4846000000000000000000000000000000000000000000000000000000000000815250600c60008381526020019081526020016000209081611494919061318d565b505050565b7f4e70a604b23a8edee2b1d0a656e9b9c00b73ad8bb1afc2c59381ee9f69197de7476040516114c89190612958565b60405180910390a1600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611538573d6000803e3d6000fd5b50565b611556838383604051806020016040528060008152506119af565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e29061364d565b60405180910390fd5b60006115f5611e55565b9050611602826001611e5e565b8383600c60008481526020019081526020016000209182611624929190613678565b5050505050565b600061163682612031565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116a4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c890613794565b60405180910390fd5b80600a819055507f8c4d35e54a3f2ef1134138fd8ea3daee6a3c89e10d2665996babdf70261e2c76816040516118079190612958565b60405180910390a150565b60606003805461182190612f4e565b80601f016020809104026020016040519081016040528092919081815260200182805461184d90612f4e565b801561189a5780601f1061186f5761010080835404028352916020019161189a565b820191906000526020600020905b81548152906001019060200180831161187d57829003601f168201915b5050505050905090565b80600760006118b1611e4d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661195e611e4d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119a39190612644565b60405180910390a35050565b6119ba848484610cd1565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a1c576119e5848484846121d5565b611a1b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606000611a2f83610bb6565b90506000815167ffffffffffffffff811115611a4e57611a4d612c03565b5b604051908082528060200260200182016040528015611a8157816020015b6060815260200190600190039081611a6c5790505b50905060005b8251811015611ae457611ab3838281518110611aa657611aa56132d6565b5b6020026020010151611bfa565b828281518110611ac657611ac56132d6565b5b60200260200101819052508080611adc9061328e565b915050611a87565b508092505050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7690613800565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f482cbbbcf912da3be80deb8503ae1e94c0b7d5d1d0ec0af3d9d6403e06e609ee81604051611bef91906127b5565b60405180910390a150565b6060611c0582611dee565b611c3b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663217fe238600c6000858152602001908152602001600020846040518363ffffffff1660e01b8152600401611caa9291906138a4565b600060405180830381865afa158015611cc7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611cf09190613975565b9050919050565b600a5481565b600080600143611d0d91906139be565b4090506000814243600954604051602001611d2b9493929190613a3e565b6040516020818303038152906040528051906020012060001c9050600481611d539190613abb565b9250505090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081611df961202c565b11158015611e08575060005482105b8015611e46575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60008054905090565b60008054905060008203611e9e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611eab6000848385612168565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611f2283611f13600086600061216e565b611f1c85612325565b17612196565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611fc357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611f88565b5060008203611ffe576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061201460008483856121c1565b505050565b600061202361202c565b60005403905090565b600090565b6000808290508061204061202c565b116120c6576000548110156120c55760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036120c3575b600081036120b957600460008360019003935083815260200190815260200160002054905061208f565b80925050506120f8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612185868684612335565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6121d281600061233e565b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121fb611e4d565b8786866040518563ffffffff1660e01b815260040161221d9493929190613b41565b6020604051808303816000875af192505050801561225957506040513d601f19601f820116820180604052508101906122569190613ba2565b60015b6122d2573d8060008114612289576040519150601f19603f3d011682016040523d82523d6000602084013e61228e565b606091505b5060008151036122ca576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60006001821460e11b9050919050565b60009392505050565b600061234983612031565b9050600081905060008061235c866120fd565b9150915084156123c5576123788184612373611e4d565b612124565b6123c45761238d83612388611e4d565b611d5a565b6123c3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6123d3836000886001612168565b80156123de57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612486836124438560008861216e565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612196565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085160361250c576000600187019050600060046000838152602001908152602001600020540361250a576000548114612509578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125768360008860016121c1565b600160008154809291906001019190505550505050505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125d9816125a4565b81146125e457600080fd5b50565b6000813590506125f6816125d0565b92915050565b6000602082840312156126125761261161259a565b5b6000612620848285016125e7565b91505092915050565b60008115159050919050565b61263e81612629565b82525050565b60006020820190506126596000830184612635565b92915050565b6000819050919050565b6126728161265f565b811461267d57600080fd5b50565b60008135905061268f81612669565b92915050565b6000602082840312156126ab576126aa61259a565b5b60006126b984828501612680565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126fc5780820151818401526020810190506126e1565b60008484015250505050565b6000601f19601f8301169050919050565b6000612724826126c2565b61272e81856126cd565b935061273e8185602086016126de565b61274781612708565b840191505092915050565b6000602082019050818103600083015261276c8184612719565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061279f82612774565b9050919050565b6127af81612794565b82525050565b60006020820190506127ca60008301846127a6565b92915050565b6127d981612794565b81146127e457600080fd5b50565b6000813590506127f6816127d0565b92915050565b600080604083850312156128135761281261259a565b5b6000612821858286016127e7565b925050602061283285828601612680565b9150509250929050565b6000602082840312156128525761285161259a565b5b6000612860848285016127e7565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61289e8161265f565b82525050565b60006128b08383612895565b60208301905092915050565b6000602082019050919050565b60006128d482612869565b6128de8185612874565b93506128e983612885565b8060005b8381101561291a57815161290188826128a4565b975061290c836128bc565b9250506001810190506128ed565b5085935050505092915050565b6000602082019050818103600083015261294181846128c9565b905092915050565b6129528161265f565b82525050565b600060208201905061296d6000830184612949565b92915050565b60008060006060848603121561298c5761298b61259a565b5b600061299a868287016127e7565b93505060206129ab868287016127e7565b92505060406129bc86828701612680565b9150509250925092565b600080fd5b6000608082840312156129e1576129e06129c6565b5b81905092915050565b600060808284031215612a00576129ff61259a565b5b6000612a0e848285016129cb565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612a3c57612a3b612a17565b5b8235905067ffffffffffffffff811115612a5957612a58612a1c565b5b602083019150836001820283011115612a7557612a74612a21565b5b9250929050565b600080600060408486031215612a9557612a9461259a565b5b600084013567ffffffffffffffff811115612ab357612ab261259f565b5b612abf86828701612a26565b93509350506020612ad2868287016127e7565b9150509250925092565b6000819050919050565b6000612b01612afc612af784612774565b612adc565b612774565b9050919050565b6000612b1382612ae6565b9050919050565b6000612b2582612b08565b9050919050565b612b3581612b1a565b82525050565b6000602082019050612b506000830184612b2c565b92915050565b6000612b6182612774565b9050919050565b612b7181612b56565b82525050565b6000602082019050612b8c6000830184612b68565b92915050565b612b9b81612629565b8114612ba657600080fd5b50565b600081359050612bb881612b92565b92915050565b60008060408385031215612bd557612bd461259a565b5b6000612be3858286016127e7565b9250506020612bf485828601612ba9565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c3b82612708565b810181811067ffffffffffffffff82111715612c5a57612c59612c03565b5b80604052505050565b6000612c6d612590565b9050612c798282612c32565b919050565b600067ffffffffffffffff821115612c9957612c98612c03565b5b612ca282612708565b9050602081019050919050565b82818337600083830152505050565b6000612cd1612ccc84612c7e565b612c63565b905082815260208101848484011115612ced57612cec612bfe565b5b612cf8848285612caf565b509392505050565b600082601f830112612d1557612d14612a17565b5b8135612d25848260208601612cbe565b91505092915050565b60008060008060808587031215612d4857612d4761259a565b5b6000612d56878288016127e7565b9450506020612d67878288016127e7565b9350506040612d7887828801612680565b925050606085013567ffffffffffffffff811115612d9957612d9861259f565b5b612da587828801612d00565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000612df9826126c2565b612e038185612ddd565b9350612e138185602086016126de565b612e1c81612708565b840191505092915050565b6000612e338383612dee565b905092915050565b6000602082019050919050565b6000612e5382612db1565b612e5d8185612dbc565b935083602082028501612e6f85612dcd565b8060005b85811015612eab5784840389528151612e8c8582612e27565b9450612e9783612e3b565b925060208a01995050600181019050612e73565b50829750879550505050505092915050565b60006020820190508181036000830152612ed78184612e48565b905092915050565b60008060408385031215612ef657612ef561259a565b5b6000612f04858286016127e7565b9250506020612f15858286016127e7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612f6657607f821691505b602082108103612f7957612f78612f1f565b5b50919050565b7f6e6f7420656e6f75676820666565000000000000000000000000000000000000600082015250565b6000612fb5600e836126cd565b9150612fc082612f7f565b602082019050919050565b60006020820190508181036000830152612fe481612fa8565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261304d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613010565b6130578683613010565b95508019841693508086168417925050509392505050565b600061308a6130856130808461265f565b612adc565b61265f565b9050919050565b6000819050919050565b6130a48361306f565b6130b86130b082613091565b84845461301d565b825550505050565b600090565b6130cd6130c0565b6130d881848461309b565b505050565b5b818110156130fc576130f16000826130c5565b6001810190506130de565b5050565b601f8211156131415761311281612feb565b61311b84613000565b8101602085101561312a578190505b61313e61313685613000565b8301826130dd565b50505b505050565b600082821c905092915050565b600061316460001984600802613146565b1980831691505092915050565b600061317d8383613153565b9150826002028217905092915050565b613196826126c2565b67ffffffffffffffff8111156131af576131ae612c03565b5b6131b98254612f4e565b6131c4828285613100565b600060209050601f8311600181146131f757600084156131e5578287015190505b6131ef8582613171565b865550613257565b601f19841661320586612feb565b60005b8281101561322d57848901518255600182019150602085019450602081019050613208565b8683101561324a5784890151613246601f891682613153565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132998261265f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036132cb576132ca61325f565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60008190508160005260206000209050919050565b6000815461333281612f4e565b61333c8186613305565b94506001821660008114613357576001811461336c5761339f565b60ff198316865281151582028601935061339f565b61337585613310565b60005b8381101561339757815481890152600182019150602081019050613378565b838801955050505b50505092915050565b60006133b48284613325565b915081905092915050565b7f74686973206973206e6f7420616e206561720000000000000000000000000000600082015250565b60006133f56012836126cd565b9150613400826133bf565b602082019050919050565b60006020820190508181036000830152613424816133e8565b9050919050565b7f74686973206973206e6f7420616e206800000000000000000000000000000000600082015250565b60006134616010836126cd565b915061346c8261342b565b602082019050919050565b6000602082019050818103600083015261349081613454565b9050919050565b7f74686973206973206e6f742061206e6f73650000000000000000000000000000600082015250565b60006134cd6012836126cd565b91506134d882613497565b602082019050919050565b600060208201905081810360008301526134fc816134c0565b9050919050565b7f74686973206973206e6f7420616e206600000000000000000000000000000000600082015250565b60006135396010836126cd565b915061354482613503565b602082019050919050565b600060208201905081810360008301526135688161352c565b9050919050565b7f63616c6c6572206973206e6f7420746865206f776e6572206f6620616c6c207460008201527f686520746f6b656e730000000000000000000000000000000000000000000000602082015250565b60006135cb6029836126cd565b91506135d68261356f565b604082019050919050565b600060208201905081810360008301526135fa816135be565b9050919050565b7f6f6e6c79206f776e65722063616e206d696e7400000000000000000000000000600082015250565b60006136376013836126cd565b915061364282613601565b602082019050919050565b600060208201905081810360008301526136668161362a565b9050919050565b600082905092915050565b613682838361366d565b67ffffffffffffffff81111561369b5761369a612c03565b5b6136a58254612f4e565b6136b0828285613100565b6000601f8311600181146136df57600084156136cd578287013590505b6136d78582613171565b86555061373f565b601f1984166136ed86612feb565b60005b82811015613715578489013582556001820191506020850194506020810190506136f0565b86831015613732578489013561372e601f891682613153565b8355505b6001600288020188555050505b50505050505050565b7f6f6e6c79206f776e65722063616e207570646174652066656500000000000000600082015250565b600061377e6019836126cd565b915061378982613748565b602082019050919050565b600060208201905081810360008301526137ad81613771565b9050919050565b7f6f6e6c79206f776e65722063616e207570646174652072656e64657265720000600082015250565b60006137ea601e836126cd565b91506137f5826137b4565b602082019050919050565b60006020820190508181036000830152613819816137dd565b9050919050565b6000815461382d81612f4e565b61383781866126cd565b9450600182166000811461385257600181146138685761389b565b60ff19831686528115156020028601935061389b565b61387185612feb565b60005b8381101561389357815481890152600182019150602081019050613874565b808801955050505b50505092915050565b600060408201905081810360008301526138be8185613820565b90506138cd6020830184612949565b9392505050565b600067ffffffffffffffff8211156138ef576138ee612c03565b5b6138f882612708565b9050602081019050919050565b6000613918613913846138d4565b612c63565b90508281526020810184848401111561393457613933612bfe565b5b61393f8482856126de565b509392505050565b600082601f83011261395c5761395b612a17565b5b815161396c848260208601613905565b91505092915050565b60006020828403121561398b5761398a61259a565b5b600082015167ffffffffffffffff8111156139a9576139a861259f565b5b6139b584828501613947565b91505092915050565b60006139c98261265f565b91506139d48361265f565b92508282039050818111156139ec576139eb61325f565b5b92915050565b6000819050919050565b6000819050919050565b613a17613a12826139f2565b6139fc565b82525050565b6000819050919050565b613a38613a338261265f565b613a1d565b82525050565b6000613a4a8287613a06565b602082019150613a5a8286613a27565b602082019150613a6a8285613a27565b602082019150613a7a8284613a27565b60208201915081905095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ac68261265f565b9150613ad18361265f565b925082613ae157613ae0613a8c565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000613b1382613aec565b613b1d8185613af7565b9350613b2d8185602086016126de565b613b3681612708565b840191505092915050565b6000608082019050613b5660008301876127a6565b613b6360208301866127a6565b613b706040830185612949565b8181036060830152613b828184613b08565b905095945050505050565b600081519050613b9c816125d0565b92915050565b600060208284031215613bb857613bb761259a565b5b6000613bc684828501613b8d565b9150509291505056fea26469706673582212201c2814dcbd3b0e3c8344830958ba9281aaa848e38775836a5c7671aaefc1417264736f6c6343000813003300000000000000000000000029e6121ef4682613377b8cc999f05b08eff214fb

Deployed Bytecode

0x6080604052600436106101b75760003560e01c80636352211e116100ec578063b88d4fde1161008a578063c87b56dd11610064578063c87b56dd146105b3578063ddca3f43146105f0578063df51f7221461061b578063e985e9c514610646576101b7565b8063b88d4fde14610531578063b8b860c81461054d578063be610c591461058a576101b7565b80638da5cb5b116100c65780638da5cb5b146104895780639012c4a8146104b457806395d89b41146104dd578063a22cb46514610508576101b7565b80636352211e146103e457806370a08231146104215780638ada6b0f1461045e576101b7565b806318160ddd1161015957806333f222ec1161013357806333f222ec1461035f5780633ccfd60b1461038857806342842e0e1461039f578063594db9f6146103bb576101b7565b806318160ddd1461030157806323b872dd1461032c5780632b44ea4814610348576101b7565b8063081812fc11610195578063081812fc14610261578063095ea7b31461029e5780631249c58b146102ba578063134be3bb146102c4576101b7565b806301ffc9a7146101bc57806304fcc76a146101f957806306fdde0314610236575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de91906125fc565b610683565b6040516101f09190612644565b60405180910390f35b34801561020557600080fd5b50610220600480360381019061021b9190612695565b610715565b60405161022d9190612752565b60405180910390f35b34801561024257600080fd5b5061024b6107b5565b6040516102589190612752565b60405180910390f35b34801561026d57600080fd5b5061028860048036038101906102839190612695565b610847565b60405161029591906127b5565b60405180910390f35b6102b860048036038101906102b391906127fc565b6108c6565b005b6102c2610a0a565b005b3480156102d057600080fd5b506102eb60048036038101906102e6919061283c565b610bb6565b6040516102f89190612927565b60405180910390f35b34801561030d57600080fd5b50610316610cba565b6040516103239190612958565b60405180910390f35b61034660048036038101906103419190612973565b610cd1565b005b34801561035457600080fd5b5061035d610ff3565b005b34801561036b57600080fd5b50610386600480360381019061038191906129ea565b61100d565b005b34801561039457600080fd5b5061039d611499565b005b6103b960048036038101906103b49190612973565b61153b565b005b3480156103c757600080fd5b506103e260048036038101906103dd9190612a7c565b61155b565b005b3480156103f057600080fd5b5061040b60048036038101906104069190612695565b61162b565b60405161041891906127b5565b60405180910390f35b34801561042d57600080fd5b506104486004803603810190610443919061283c565b61163d565b6040516104559190612958565b60405180910390f35b34801561046a57600080fd5b506104736116f5565b6040516104809190612b3b565b60405180910390f35b34801561049557600080fd5b5061049e61171b565b6040516104ab9190612b77565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d69190612695565b611741565b005b3480156104e957600080fd5b506104f2611812565b6040516104ff9190612752565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190612bbe565b6118a4565b005b61054b60048036038101906105469190612d2e565b6119af565b005b34801561055957600080fd5b50610574600480360381019061056f919061283c565b611a22565b6040516105819190612ebd565b60405180910390f35b34801561059657600080fd5b506105b160048036038101906105ac919061283c565b611aef565b005b3480156105bf57600080fd5b506105da60048036038101906105d59190612695565b611bfa565b6040516105e79190612752565b60405180910390f35b3480156105fc57600080fd5b50610605611cf7565b6040516106129190612958565b60405180910390f35b34801561062757600080fd5b50610630611cfd565b60405161063d9190612958565b60405180910390f35b34801561065257600080fd5b5061066d60048036038101906106689190612edf565b611d5a565b60405161067a9190612644565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106de57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061070e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600c602052806000526040600020600091509050805461073490612f4e565b80601f016020809104026020016040519081016040528092919081815260200182805461076090612f4e565b80156107ad5780601f10610782576101008083540402835291602001916107ad565b820191906000526020600020905b81548152906001019060200180831161079057829003601f168201915b505050505081565b6060600280546107c490612f4e565b80601f01602080910402602001604051908101604052809291908181526020018280546107f090612f4e565b801561083d5780601f106108125761010080835404028352916020019161083d565b820191906000526020600020905b81548152906001019060200180831161082057829003601f168201915b5050505050905090565b600061085282611dee565b610888576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d18261162b565b90508073ffffffffffffffffffffffffffffffffffffffff166108f2611e4d565b73ffffffffffffffffffffffffffffffffffffffff16146109555761091e81610919611e4d565b611d5a565b610954576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a54341015610a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4690612fcb565b60405180910390fd5b6000610a59611e55565b9050610a66336001611e5e565b6000610a70611cfd565b9050606060008203610ab5576040518060400160405280600381526020017f656172000000000000000000000000000000000000000000000000000000000081525090505b60018203610af6576040518060400160405280600181526020017f680000000000000000000000000000000000000000000000000000000000000081525090505b60028203610b37576040518060400160405280600481526020017f6e6f73650000000000000000000000000000000000000000000000000000000081525090505b60038203610b78576040518060400160405280600181526020017f660000000000000000000000000000000000000000000000000000000000000081525090505b80600c60008581526020019081526020016000209081610b98919061318d565b5060096000815480929190610bac9061328e565b9190505550505050565b60606000610bc38361163d565b67ffffffffffffffff811115610bdc57610bdb612c03565b5b604051908082528060200260200182016040528015610c0a5781602001602082028036833780820191505090505b5090506000805b610c19612019565b811015610caf57610c2981611dee565b8015610c6857508473ffffffffffffffffffffffffffffffffffffffff16610c508261162b565b73ffffffffffffffffffffffffffffffffffffffff16145b15610c9c5780838381518110610c8157610c806132d6565b5b6020026020010181815250508180610c989061328e565b9250505b8080610ca79061328e565b915050610c11565b508192505050919050565b6000610cc461202c565b6001546000540303905090565b6000610cdc82612031565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d43576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d4f846120fd565b91509150610d658187610d60611e4d565b612124565b610db157610d7a86610d75611e4d565b611d5a565b610db0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610e17576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e248686866001612168565b8015610e2f57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610efd85610ed988888761216e565b7c020000000000000000000000000000000000000000000000000000000017612196565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610f835760006001850190506000600460008381526020019081526020016000205403610f81576000548114610f80578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610feb86868660016121c1565b505050505050565b600960008154809291906110069061328e565b9190505550565b6040518060400160405280600381526020017f656172000000000000000000000000000000000000000000000000000000000081525080519060200120600c60008360000135815260200190815260200160002060405161106e91906133a8565b6040518091039020146110b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ad9061340b565b60405180910390fd5b6040518060400160405280600181526020017f680000000000000000000000000000000000000000000000000000000000000081525080519060200120600c60008360200135815260200190815260200160002060405161111791906133a8565b60405180910390201461115f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115690613477565b60405180910390fd5b6040518060400160405280600481526020017f6e6f73650000000000000000000000000000000000000000000000000000000081525080519060200120600c6000836040013581526020019081526020016000206040516111c091906133a8565b604051809103902014611208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ff906134e3565b60405180910390fd5b6040518060400160405280600181526020017f660000000000000000000000000000000000000000000000000000000000000081525080519060200120600c60008360600135815260200190815260200160002060405161126991906133a8565b6040518091039020146112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a89061354f565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166112d5826000013561162b565b73ffffffffffffffffffffffffffffffffffffffff1614801561132f57503373ffffffffffffffffffffffffffffffffffffffff16611317826020013561162b565b73ffffffffffffffffffffffffffffffffffffffff16145b801561137257503373ffffffffffffffffffffffffffffffffffffffff1661135a826040013561162b565b73ffffffffffffffffffffffffffffffffffffffff16145b80156113b557503373ffffffffffffffffffffffffffffffffffffffff1661139d826060013561162b565b73ffffffffffffffffffffffffffffffffffffffff16145b6113f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113eb906135e1565b60405180910390fd5b61140181600001356121c7565b61140e81602001356121c7565b61141b81604001356121c7565b61142881606001356121c7565b6000611432611e55565b905061143f336001611e5e565b6040518060400160405280600281526020017f4846000000000000000000000000000000000000000000000000000000000000815250600c60008381526020019081526020016000209081611494919061318d565b505050565b7f4e70a604b23a8edee2b1d0a656e9b9c00b73ad8bb1afc2c59381ee9f69197de7476040516114c89190612958565b60405180910390a1600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611538573d6000803e3d6000fd5b50565b611556838383604051806020016040528060008152506119af565b505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e29061364d565b60405180910390fd5b60006115f5611e55565b9050611602826001611e5e565b8383600c60008481526020019081526020016000209182611624929190613678565b5050505050565b600061163682612031565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116a4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c890613794565b60405180910390fd5b80600a819055507f8c4d35e54a3f2ef1134138fd8ea3daee6a3c89e10d2665996babdf70261e2c76816040516118079190612958565b60405180910390a150565b60606003805461182190612f4e565b80601f016020809104026020016040519081016040528092919081815260200182805461184d90612f4e565b801561189a5780601f1061186f5761010080835404028352916020019161189a565b820191906000526020600020905b81548152906001019060200180831161187d57829003601f168201915b5050505050905090565b80600760006118b1611e4d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661195e611e4d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119a39190612644565b60405180910390a35050565b6119ba848484610cd1565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a1c576119e5848484846121d5565b611a1b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606000611a2f83610bb6565b90506000815167ffffffffffffffff811115611a4e57611a4d612c03565b5b604051908082528060200260200182016040528015611a8157816020015b6060815260200190600190039081611a6c5790505b50905060005b8251811015611ae457611ab3838281518110611aa657611aa56132d6565b5b6020026020010151611bfa565b828281518110611ac657611ac56132d6565b5b60200260200101819052508080611adc9061328e565b915050611a87565b508092505050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7690613800565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f482cbbbcf912da3be80deb8503ae1e94c0b7d5d1d0ec0af3d9d6403e06e609ee81604051611bef91906127b5565b60405180910390a150565b6060611c0582611dee565b611c3b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663217fe238600c6000858152602001908152602001600020846040518363ffffffff1660e01b8152600401611caa9291906138a4565b600060405180830381865afa158015611cc7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611cf09190613975565b9050919050565b600a5481565b600080600143611d0d91906139be565b4090506000814243600954604051602001611d2b9493929190613a3e565b6040516020818303038152906040528051906020012060001c9050600481611d539190613abb565b9250505090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081611df961202c565b11158015611e08575060005482105b8015611e46575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60008054905090565b60008054905060008203611e9e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611eab6000848385612168565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611f2283611f13600086600061216e565b611f1c85612325565b17612196565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611fc357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611f88565b5060008203611ffe576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061201460008483856121c1565b505050565b600061202361202c565b60005403905090565b600090565b6000808290508061204061202c565b116120c6576000548110156120c55760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036120c3575b600081036120b957600460008360019003935083815260200190815260200160002054905061208f565b80925050506120f8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612185868684612335565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6121d281600061233e565b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121fb611e4d565b8786866040518563ffffffff1660e01b815260040161221d9493929190613b41565b6020604051808303816000875af192505050801561225957506040513d601f19601f820116820180604052508101906122569190613ba2565b60015b6122d2573d8060008114612289576040519150601f19603f3d011682016040523d82523d6000602084013e61228e565b606091505b5060008151036122ca576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60006001821460e11b9050919050565b60009392505050565b600061234983612031565b9050600081905060008061235c866120fd565b9150915084156123c5576123788184612373611e4d565b612124565b6123c45761238d83612388611e4d565b611d5a565b6123c3576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6123d3836000886001612168565b80156123de57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612486836124438560008861216e565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612196565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085160361250c576000600187019050600060046000838152602001908152602001600020540361250a576000548114612509578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125768360008860016121c1565b600160008154809291906001019190505550505050505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125d9816125a4565b81146125e457600080fd5b50565b6000813590506125f6816125d0565b92915050565b6000602082840312156126125761261161259a565b5b6000612620848285016125e7565b91505092915050565b60008115159050919050565b61263e81612629565b82525050565b60006020820190506126596000830184612635565b92915050565b6000819050919050565b6126728161265f565b811461267d57600080fd5b50565b60008135905061268f81612669565b92915050565b6000602082840312156126ab576126aa61259a565b5b60006126b984828501612680565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126fc5780820151818401526020810190506126e1565b60008484015250505050565b6000601f19601f8301169050919050565b6000612724826126c2565b61272e81856126cd565b935061273e8185602086016126de565b61274781612708565b840191505092915050565b6000602082019050818103600083015261276c8184612719565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061279f82612774565b9050919050565b6127af81612794565b82525050565b60006020820190506127ca60008301846127a6565b92915050565b6127d981612794565b81146127e457600080fd5b50565b6000813590506127f6816127d0565b92915050565b600080604083850312156128135761281261259a565b5b6000612821858286016127e7565b925050602061283285828601612680565b9150509250929050565b6000602082840312156128525761285161259a565b5b6000612860848285016127e7565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61289e8161265f565b82525050565b60006128b08383612895565b60208301905092915050565b6000602082019050919050565b60006128d482612869565b6128de8185612874565b93506128e983612885565b8060005b8381101561291a57815161290188826128a4565b975061290c836128bc565b9250506001810190506128ed565b5085935050505092915050565b6000602082019050818103600083015261294181846128c9565b905092915050565b6129528161265f565b82525050565b600060208201905061296d6000830184612949565b92915050565b60008060006060848603121561298c5761298b61259a565b5b600061299a868287016127e7565b93505060206129ab868287016127e7565b92505060406129bc86828701612680565b9150509250925092565b600080fd5b6000608082840312156129e1576129e06129c6565b5b81905092915050565b600060808284031215612a00576129ff61259a565b5b6000612a0e848285016129cb565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612a3c57612a3b612a17565b5b8235905067ffffffffffffffff811115612a5957612a58612a1c565b5b602083019150836001820283011115612a7557612a74612a21565b5b9250929050565b600080600060408486031215612a9557612a9461259a565b5b600084013567ffffffffffffffff811115612ab357612ab261259f565b5b612abf86828701612a26565b93509350506020612ad2868287016127e7565b9150509250925092565b6000819050919050565b6000612b01612afc612af784612774565b612adc565b612774565b9050919050565b6000612b1382612ae6565b9050919050565b6000612b2582612b08565b9050919050565b612b3581612b1a565b82525050565b6000602082019050612b506000830184612b2c565b92915050565b6000612b6182612774565b9050919050565b612b7181612b56565b82525050565b6000602082019050612b8c6000830184612b68565b92915050565b612b9b81612629565b8114612ba657600080fd5b50565b600081359050612bb881612b92565b92915050565b60008060408385031215612bd557612bd461259a565b5b6000612be3858286016127e7565b9250506020612bf485828601612ba9565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c3b82612708565b810181811067ffffffffffffffff82111715612c5a57612c59612c03565b5b80604052505050565b6000612c6d612590565b9050612c798282612c32565b919050565b600067ffffffffffffffff821115612c9957612c98612c03565b5b612ca282612708565b9050602081019050919050565b82818337600083830152505050565b6000612cd1612ccc84612c7e565b612c63565b905082815260208101848484011115612ced57612cec612bfe565b5b612cf8848285612caf565b509392505050565b600082601f830112612d1557612d14612a17565b5b8135612d25848260208601612cbe565b91505092915050565b60008060008060808587031215612d4857612d4761259a565b5b6000612d56878288016127e7565b9450506020612d67878288016127e7565b9350506040612d7887828801612680565b925050606085013567ffffffffffffffff811115612d9957612d9861259f565b5b612da587828801612d00565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000612df9826126c2565b612e038185612ddd565b9350612e138185602086016126de565b612e1c81612708565b840191505092915050565b6000612e338383612dee565b905092915050565b6000602082019050919050565b6000612e5382612db1565b612e5d8185612dbc565b935083602082028501612e6f85612dcd565b8060005b85811015612eab5784840389528151612e8c8582612e27565b9450612e9783612e3b565b925060208a01995050600181019050612e73565b50829750879550505050505092915050565b60006020820190508181036000830152612ed78184612e48565b905092915050565b60008060408385031215612ef657612ef561259a565b5b6000612f04858286016127e7565b9250506020612f15858286016127e7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612f6657607f821691505b602082108103612f7957612f78612f1f565b5b50919050565b7f6e6f7420656e6f75676820666565000000000000000000000000000000000000600082015250565b6000612fb5600e836126cd565b9150612fc082612f7f565b602082019050919050565b60006020820190508181036000830152612fe481612fa8565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261304d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613010565b6130578683613010565b95508019841693508086168417925050509392505050565b600061308a6130856130808461265f565b612adc565b61265f565b9050919050565b6000819050919050565b6130a48361306f565b6130b86130b082613091565b84845461301d565b825550505050565b600090565b6130cd6130c0565b6130d881848461309b565b505050565b5b818110156130fc576130f16000826130c5565b6001810190506130de565b5050565b601f8211156131415761311281612feb565b61311b84613000565b8101602085101561312a578190505b61313e61313685613000565b8301826130dd565b50505b505050565b600082821c905092915050565b600061316460001984600802613146565b1980831691505092915050565b600061317d8383613153565b9150826002028217905092915050565b613196826126c2565b67ffffffffffffffff8111156131af576131ae612c03565b5b6131b98254612f4e565b6131c4828285613100565b600060209050601f8311600181146131f757600084156131e5578287015190505b6131ef8582613171565b865550613257565b601f19841661320586612feb565b60005b8281101561322d57848901518255600182019150602085019450602081019050613208565b8683101561324a5784890151613246601f891682613153565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132998261265f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036132cb576132ca61325f565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60008190508160005260206000209050919050565b6000815461333281612f4e565b61333c8186613305565b94506001821660008114613357576001811461336c5761339f565b60ff198316865281151582028601935061339f565b61337585613310565b60005b8381101561339757815481890152600182019150602081019050613378565b838801955050505b50505092915050565b60006133b48284613325565b915081905092915050565b7f74686973206973206e6f7420616e206561720000000000000000000000000000600082015250565b60006133f56012836126cd565b9150613400826133bf565b602082019050919050565b60006020820190508181036000830152613424816133e8565b9050919050565b7f74686973206973206e6f7420616e206800000000000000000000000000000000600082015250565b60006134616010836126cd565b915061346c8261342b565b602082019050919050565b6000602082019050818103600083015261349081613454565b9050919050565b7f74686973206973206e6f742061206e6f73650000000000000000000000000000600082015250565b60006134cd6012836126cd565b91506134d882613497565b602082019050919050565b600060208201905081810360008301526134fc816134c0565b9050919050565b7f74686973206973206e6f7420616e206600000000000000000000000000000000600082015250565b60006135396010836126cd565b915061354482613503565b602082019050919050565b600060208201905081810360008301526135688161352c565b9050919050565b7f63616c6c6572206973206e6f7420746865206f776e6572206f6620616c6c207460008201527f686520746f6b656e730000000000000000000000000000000000000000000000602082015250565b60006135cb6029836126cd565b91506135d68261356f565b604082019050919050565b600060208201905081810360008301526135fa816135be565b9050919050565b7f6f6e6c79206f776e65722063616e206d696e7400000000000000000000000000600082015250565b60006136376013836126cd565b915061364282613601565b602082019050919050565b600060208201905081810360008301526136668161362a565b9050919050565b600082905092915050565b613682838361366d565b67ffffffffffffffff81111561369b5761369a612c03565b5b6136a58254612f4e565b6136b0828285613100565b6000601f8311600181146136df57600084156136cd578287013590505b6136d78582613171565b86555061373f565b601f1984166136ed86612feb565b60005b82811015613715578489013582556001820191506020850194506020810190506136f0565b86831015613732578489013561372e601f891682613153565b8355505b6001600288020188555050505b50505050505050565b7f6f6e6c79206f776e65722063616e207570646174652066656500000000000000600082015250565b600061377e6019836126cd565b915061378982613748565b602082019050919050565b600060208201905081810360008301526137ad81613771565b9050919050565b7f6f6e6c79206f776e65722063616e207570646174652072656e64657265720000600082015250565b60006137ea601e836126cd565b91506137f5826137b4565b602082019050919050565b60006020820190508181036000830152613819816137dd565b9050919050565b6000815461382d81612f4e565b61383781866126cd565b9450600182166000811461385257600181146138685761389b565b60ff19831686528115156020028601935061389b565b61387185612feb565b60005b8381101561389357815481890152600182019150602081019050613874565b808801955050505b50505092915050565b600060408201905081810360008301526138be8185613820565b90506138cd6020830184612949565b9392505050565b600067ffffffffffffffff8211156138ef576138ee612c03565b5b6138f882612708565b9050602081019050919050565b6000613918613913846138d4565b612c63565b90508281526020810184848401111561393457613933612bfe565b5b61393f8482856126de565b509392505050565b600082601f83011261395c5761395b612a17565b5b815161396c848260208601613905565b91505092915050565b60006020828403121561398b5761398a61259a565b5b600082015167ffffffffffffffff8111156139a9576139a861259f565b5b6139b584828501613947565b91505092915050565b60006139c98261265f565b91506139d48361265f565b92508282039050818111156139ec576139eb61325f565b5b92915050565b6000819050919050565b6000819050919050565b613a17613a12826139f2565b6139fc565b82525050565b6000819050919050565b613a38613a338261265f565b613a1d565b82525050565b6000613a4a8287613a06565b602082019150613a5a8286613a27565b602082019150613a6a8285613a27565b602082019150613a7a8284613a27565b60208201915081905095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ac68261265f565b9150613ad18361265f565b925082613ae157613ae0613a8c565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000613b1382613aec565b613b1d8185613af7565b9350613b2d8185602086016126de565b613b3681612708565b840191505092915050565b6000608082019050613b5660008301876127a6565b613b6360208301866127a6565b613b706040830185612949565b8181036060830152613b828184613b08565b905095945050505050565b600081519050613b9c816125d0565b92915050565b600060208284031215613bb857613bb761259a565b5b6000613bc684828501613b8d565b9150509291505056fea26469706673582212201c2814dcbd3b0e3c8344830958ba9281aaa848e38775836a5c7671aaefc1417264736f6c63430008130033

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

00000000000000000000000029e6121ef4682613377b8cc999f05b08eff214fb

-----Decoded View---------------
Arg [0] : _rendererAddress (address): 0x29E6121EF4682613377B8Cc999f05B08EFF214fB

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000029e6121ef4682613377b8cc999f05b08eff214fb


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.