ETH Price: $2,638.36 (+0.09%)
Gas: 2 Gwei

Token

CuddlyCubs (HCUB)
 

Overview

Max Total Supply

64 HCUB

Holders

11

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
autofill.eth
Balance
46 HCUB
0x8bffc7415b1f8cea3bf9e1f36ebb2ff15d175cf5
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CuddlyCubsToken

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 20 : CuddlyCubsToken.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// @title CuddlyCubs Token
/// @author @MilkyTasteEth MilkyTaste:8662 https://milkytaste.xyz
/// https://www.hawaiianlions.world/

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "./ERC721Ao.sol";
import "./IHawaiianLionsToken.sol";
import "./Payable.sol";

contract CuddlyCubsToken is ERC721Ao, Payable {
    using Strings for uint256;
    using ECDSA for bytes32;

    // Token values incremented for gas efficiency
    uint16 private constant MAX_SALE_PLUS_ONE = 3334;
    uint16 private constant MAX_FANG_CLAIMS_PLUS_ONE = 668;
    uint16 private constant MAX_FOSTER_CLAIMS = 333;
    uint16 private constant MAX_RESERVED_PLUS_ONE = 51;
    uint16 private constant MAX_FREE_PLUS_ONE = 501;
    uint16 private constant MAX_PER_TRANS_PLUS_ONE = 6;

    uint16 private reserveClaimed = 0;
    uint16 private freeClaimed = 0;
    uint16 public fangsToClaim = 150;
    uint16 public fangClaims = 0;
    uint16 public cubsToFoster = 5;
    uint16 public fostered = 0;

    uint256 public constant PUBLIC_PRICE = 0.033 ether;
    uint256 public constant DISCOUNT_PRICE = 0.03 ether;

    address public presaleSigner;

    mapping(address => uint16) private presaleClaimed;

    enum ContractState {
        OFF,
        PRESALE,
        PUBLIC,
        UTILITY
    }
    ContractState public contractState = ContractState.OFF;

    IERC20 public immutable fangsToken;
    IHawaiianLionsToken public immutable lionsToken;

    string public baseURI;
    string public placeholderURI;

    constructor(address fangsAddress, address lionsAddress) ERC721Ao("CuddlyCubs", "HCUB") Payable() {
        fangsToken = IERC20(fangsAddress);
        lionsToken = IHawaiianLionsToken(lionsAddress);
    }

    //
    // Modifiers
    //

    /**
     * Do not allow calls from other contracts.
     */
    modifier noBots() {
        require(msg.sender == tx.origin, "CuddlyCubsToken: No bots");
        _;
    }

    /**
     * Ensure current state is correct for this method.
     */
    modifier isContractState(ContractState contractState_) {
        require(contractState == contractState_, "CuddlyCubsToken: Invalid state");
        _;
    }

    /**
     * Ensure amount of tokens to mint is within the limit.
     */
    modifier withinMintLimit(uint16 numTokens) {
        require((_totalMinted() + numTokens) < MAX_SALE_PLUS_ONE, "CuddlyCubsToken: Exceeds available tokens");
        _;
    }

    //
    // Minting
    //

    /**
     * Mint tokens during the public sale.
     * @param numTokens Number of tokens to mint
     */
    function mintPublic(uint16 numTokens)
        external
        payable
        noBots
        isContractState(ContractState.PUBLIC)
        withinMintLimit(numTokens)
    {
        require(numTokens < MAX_PER_TRANS_PLUS_ONE, "CuddlyCubsToken: Can only mint 5 at a time");
        require((PUBLIC_PRICE * numTokens) == msg.value, "CuddlyCubsToken: Ether value sent is not correct");
        _safeMint(msg.sender, numTokens);
    }

    /**
     * Mint free tokens during the public sale.
     * @param numTokens Number of tokens to mint
     */
    function mintFree(uint16 numTokens)
        external
        noBots
        isContractState(ContractState.PUBLIC)
        withinMintLimit(numTokens)
    {
        require((freeClaimed + numTokens) < MAX_FREE_PLUS_ONE, "CuddlyCubsToken: Exceeds free tokens");
        require(numTokens < MAX_PER_TRANS_PLUS_ONE, "CuddlyCubsToken: Can only mint 5 at a time");
        freeClaimed += numTokens;
        _safeMint(msg.sender, numTokens);
    }

    /**
     * Mint tokens during the presale.
     * @notice Do not mint from contract. Requires a signature.
     * @param numTokens Number of tokens to mint
     * @param available Number of tokens available to mint
     * @param signature Server signature
     */
    function mintPresale(
        uint16 numTokens,
        uint16 available,
        bool discount,
        bytes memory signature
    ) external payable noBots isContractState(ContractState.PRESALE) withinMintLimit(numTokens) {
        require((presaleClaimed[msg.sender] + numTokens) <= available, "CuddlyCubsToken: Exceeds presale allowance");
        if (discount) {
            require((DISCOUNT_PRICE * numTokens) == msg.value, "CuddlyCubsToken: Ether value sent is not correct");
        } else {
            require((PUBLIC_PRICE * numTokens) == msg.value, "CuddlyCubsToken: Ether value sent is not correct");
        }
        require(
            _verify(abi.encodePacked(msg.sender, available, discount), signature, presaleSigner),
            "CuddlyCubsToken: Signature not valid"
        );
        presaleClaimed[msg.sender] += numTokens;
        _safeMint(msg.sender, numTokens);
    }

    /**
     * Mints reserved tokens.
     * @param numTokens Number of tokens to mint
     * @param mintTo Address to mint tokens to
     */
    function mintReserved(uint16 numTokens, address mintTo) external onlyOwner withinMintLimit(numTokens) {
        require((reserveClaimed + numTokens) < MAX_RESERVED_PLUS_ONE, "CuddlyCubsToken: Reservation exceeded");
        reserveClaimed += numTokens;
        _safeMint(mintTo, numTokens);
    }

    /**
     * Mint using $FANGS.
     * @dev User must have approved this contract to access FANGS.
     * @param numTokens Number of tokens to mint
     */
    function mintWithFangs(uint16 numTokens) external noBots isContractState(ContractState.UTILITY) {
        require(
            (fangClaims + numTokens) < MAX_FANG_CLAIMS_PLUS_ONE,
            "CuddlyCubsToken: Purchase exceeds available tokens"
        );
        require(numTokens < MAX_PER_TRANS_PLUS_ONE, "CuddlyCubsToken: Can only mint 5 at a time");
        fangsToken.transferFrom(msg.sender, commyAddress, fangsToClaim * numTokens);
        fangClaims += numTokens;
        _safeMint(msg.sender, numTokens);
    }

    /**
     * Fostered cubs to create a genesis lion.
     * @param tokenIds Token Ids of cubs to foster
     * @param signature Server signature
     */
    function fosterCubs(uint16[] memory tokenIds, bytes memory signature)
        external
        noBots
        isContractState(ContractState.UTILITY)
    {
        require(tokenIds.length == cubsToFoster, "CuddlyCubsToken: Invalid number of cubs");
        require(fostered < MAX_FOSTER_CLAIMS, "CuddlyCubsToken: Foster limit exceeded");
        for (uint16 i = 0; i < cubsToFoster; i++) {
            require(ownerOf(tokenIds[i]) == msg.sender, "CuddlyCubsToken: Must be cubs owner");
        }
        // Verify the first cub is signature verified
        require(
            _verify(abi.encodePacked(msg.sender, tokenIds[0]), signature, presaleSigner),
            "CuddlyCubsToken: Signature not valid"
        );
        for (uint16 i = 0; i < cubsToFoster; i++) {
            _burn(tokenIds[i]);
        }
        fostered++;
        lionsToken.mintUtility(1, msg.sender);
    }

    //
    // Admin
    //

    /**
     * Set contract state.
     * @param contractState_ The new state of the contract
     */
    function setContractState(ContractState contractState_) external onlyOwner {
        contractState = contractState_;
    }

    /**
     * Update the presale signer address.
     * @param presaleSigner_ The new signer address of the presale verifier
     */
    function setPresaleSigner(address presaleSigner_) external onlyOwner {
        presaleSigner = presaleSigner_;
    }

    /**
     * Set number of fangs per cub mint.
     * @param fangsToClaim_ The amount of FANGS required
     */
    function setFangsToClaim(uint16 fangsToClaim_) external onlyOwner {
        fangsToClaim = fangsToClaim_;
    }

    /**
     * Set number of cubs required to foster a lion.
     * @param cubsToFoster_ The amount of cubs required
     */
    function setCubsToFoster(uint16 cubsToFoster_) external onlyOwner {
        cubsToFoster = cubsToFoster_;
    }

    /**
     * Sets base URI.
     * @param _newBaseURI The base URI
     */
    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    /**
     * Sets placeholder URI.
     * @param _newPlaceHolderURI The placeholder URI
     */
    function setPlaceholderURI(string memory _newPlaceHolderURI) external onlyOwner {
        placeholderURI = _newPlaceHolderURI;
    }

    //
    // Metadata
    //

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(uint16(tokenId)), "ERC721Metadata: URI query for nonexistent token");

        return
            bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : placeholderURI;
    }

    //
    // Views
    //

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId) public view override(ERC721Ao, ERC2981) returns (bool) {
        return ERC721Ao.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
    }

    /**
     * Verify a signature
     * @param data The signature data
     * @param signature The signature to verify
     * @param account The signer account
     */
    function _verify(
        bytes memory data,
        bytes memory signature,
        address account
    ) public pure returns (bool) {
        return keccak256(data).toEthSignedMessageHash().recover(signature) == account;
    }

    /**
     * @dev Returns mint details in one call
     * @param addr The address to check presale claims for
     * @return
     * contractState 0=OFF 1=PRESALE 2=PUBLIC 3=UTILTIY
     * maxSale (total available tokens)
     * totalSupply
     * publicPrice
     * discountPrice
     * reserveClaimed
     * presaleClaimed (for the given address)
     * freeClaimed
     */
    function mintDetails(address addr) public view virtual returns (uint256[8] memory) {
        return [
            uint256(contractState),
            MAX_SALE_PLUS_ONE - 1,
            totalSupply(),
            PUBLIC_PRICE,
            DISCOUNT_PRICE,
            reserveClaimed,
            presaleClaimed[addr],
            freeClaimed
        ];
    }
}

File 2 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 3 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 4 of 20 : ERC721Ao.sol
// SPDX-License-Identifier: MIT
/// @author Chiru Labs
/// @author Optimisations by MilkyTaste#8662 @MilkyTasteEth https://milkytaste.xyz

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error OwnerQueryForNotExplicitlySet();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that the maximum token id cannot exceed 2**16 - 1 (max value of uint16).
 *
 * This contract has been further optimised for gas efficiency during minting and transfers.
 * This impacts read functions like `balanceOf`.
 * Instead use `explicitOwnerOf` passing in a `tokenId` that the user explicitly owns.
 */
contract ERC721Ao is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // The tokenId of the next token to be minted.
    uint16 internal _currentIndex;

    // The number of tokens burned.
    uint16 internal _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 ownershipOf implementation for details.
    mapping(uint16 => TokenOwnership) internal _ownerships;

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

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

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint16) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev An extension of enumerable.
     * @notice Use this method to get a list of all tokens owned by a given address.
     */
    function tokensOfOwner(address addr) external view returns (uint256[] memory) {
        uint256 balance = balanceOf(addr);
        if (balance == 0) {
            return new uint256[](0);
        }
        uint256[] memory tokenIds = new uint256[](balance);
        uint256 counter = 0;
        for (uint16 tokenId = _startTokenId(); tokenId < _currentIndex; tokenId++) {
            if (!_ownerships[tokenId].burned && ownerOf(tokenId) == addr) {
                tokenIds[counter] = tokenId;
                counter++;
                if (counter == balance) {
                    return tokenIds;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address addr, uint256 index) external view returns (uint256) {
        uint256 counter = 0;
        for (uint16 tokenId = _startTokenId(); tokenId < _currentIndex; tokenId++) {
            if (!_ownerships[tokenId].burned && ownerOf(tokenId) == addr) {
                if (counter == index) {
                    return tokenId;
                }
                counter++;
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) external view returns (uint256) {
        // We have to iterate to exclude burned tokens
        uint256 counter = 0;
        for (uint16 tokenId = _startTokenId(); tokenId < _currentIndex; tokenId++) {
            if (_ownerships[tokenId].burned == false) {
                if (counter == index) {
                    return tokenId;
                }
                counter++;
            }
        }
        revert TokenIndexOutOfBounds();
    }

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     * @dev This is NOT gas efficient.
     * @dev Highly recommend NOT integrating to this function into other contract's write functions.
     * @dev Use `explicitOwnerOf(id) == owner` instead.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        uint16 owned = 0;
        // Loop through tokens to find the owner
        for (uint16 i = _startTokenId(); i < _currentIndex; i++) {
            if (ownerOf(i) == owner) {
                owned++;
            }
        }
        return owned;
    }

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

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

    /**
     * Check the explicitly set ownership of a token.
     * @notice This reverts of the token owner is 0x0.
     * @notice This does not indicate the token is unowned, only that the ownership is not explicitly recorded.
     * @dev Use this method as a gas optimised version of `ownerOf`.
     * @dev Be sure the `tokenId` used has the ownership explicitly set.
     * @param tokenId The tokenId to be checked.
     */
    function explicitOwnerOf(uint256 tokenId) public view returns (address) {
        TokenOwnership memory ownership = _ownerships[uint16(tokenId)];
        if (ownership.burned) revert OwnerQueryForNonexistentToken();
        if (ownership.addr == address(0)) revert OwnerQueryForNotExplicitlySet();
        return ownership.addr;
    }

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

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

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

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

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

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

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

        _approve(to, uint16(tokenId), owner);
    }

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

        return _tokenApprovals[tokenId16];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, uint16(tokenId));
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    function _safeMint(address to, uint16 quantity) internal {
        _safeMint(to, quantity, "");
    }

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

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

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

        // Overflows are incredibly unrealistic.
        // updatedIndex overflows if _currentIndex + quantity > 65,535 (2**16) - 1
        unchecked {
            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint16 updatedIndex = startTokenId;
            uint16 end = updatedIndex + quantity;

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

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

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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**16.
        unchecked {
            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint16 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint16 tokenId) internal virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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**16.
        unchecked {
            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint16 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint16 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

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

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

File 5 of 20 : IHawaiianLionsToken.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// @title HawaiianLions Token Interface
/// @author @MilkyTasteEth MilkyTaste:8662 https://milkytaste.xyz
/// https://www.hawaiianlions.world/

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

interface IHawaiianLionsToken is IERC721 {

    /**
     * Mint by utility contract.
     * @dev This function is reserved for future utility.
     */
    function mintUtility(uint256 numTokens, address mintTo) external;

    function totalSupply() external view returns (uint256);

}

File 6 of 20 : Payable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// @title Payable
/// @author MilkyTaste#8662 @MilkyTasteEth https://milkytaste.xyz
/// Manage payables

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./ERC2981.sol";

contract Payable is Ownable, ERC2981, ReentrancyGuard {

    address internal commyAddress = 0x6716D41029631116c5245096c46b04aca47D0Bd0;
    address private constant ADDR1 = 0x8bffc7415B1F8ceA3BF9e1f36EBb2FF15d175CF5;
    address private constant ADDR2 = 0x4c54b734471EF8080C5c252e5588F625D2e5E93E;

    constructor() {
        _setRoyalties(commyAddress, 690); // 6.9% royalties
    }

    /**
     * Set the royalties information
     * @param recipient recipient of the royalties
     * @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
     */
    function setRoyalties(address recipient, uint256 value) external onlyOwner {
        require(recipient != address(0), "Payable: Zero address");
        _setRoyalties(recipient, value);
    }

    /**
     * Withdraw funds
     */
    function withdraw() external nonReentrant() {
        require(msg.sender == owner() || msg.sender == ADDR2, "Payable: Locked withdraw");
        uint256 twenty = address(this).balance / 5;
        Address.sendValue(payable(ADDR1), twenty * 2);
        Address.sendValue(payable(ADDR2), twenty);
        Address.sendValue(payable(commyAddress), address(this).balance); // The rest
    }

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 11 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 17 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 18 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;

import "@openzeppelin/contracts/interfaces/IERC2981.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
contract ERC2981 is IERC2981 {
  struct RoyaltyInfo {
    address recipient;
    uint24 amount;
  }

  RoyaltyInfo private _royalties;

  /// @dev Sets token royalties
  /// @param recipient recipient of the royalties
  /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
  function _setRoyalties(address recipient, uint256 value) internal {
    require(value <= 10000, "ERC2981Royalties: Too high");
    _royalties = RoyaltyInfo(recipient, uint24(value));
  }

  /// @inheritdoc IERC2981
  function royaltyInfo(uint256, uint256 value)
    external
    view
    override
    returns (address receiver, uint256 royaltyAmount)
  {
    RoyaltyInfo memory royalties = _royalties;
    receiver = royalties.recipient;
    royaltyAmount = (value * royalties.amount) / 10000;
  }

  /// @inheritdoc IERC165
  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override
    returns (bool)
  {
    return
      interfaceId == type(IERC2981).interfaceId ||
      interfaceId == type(IERC165).interfaceId;
  }
}

File 19 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 20 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"fangsAddress","type":"address"},{"internalType":"address","name":"lionsAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnerQueryForNotExplicitlySet","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DISCOUNT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"account","type":"address"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractState","outputs":[{"internalType":"enum CuddlyCubsToken.ContractState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cubsToFoster","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fangClaims","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fangsToClaim","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fangsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"fosterCubs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fostered","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lionsToken","outputs":[{"internalType":"contract IHawaiianLionsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"mintDetails","outputs":[{"internalType":"uint256[8]","name":"","type":"uint256[8]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"numTokens","type":"uint16"}],"name":"mintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"numTokens","type":"uint16"},{"internalType":"uint16","name":"available","type":"uint16"},{"internalType":"bool","name":"discount","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"numTokens","type":"uint16"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"numTokens","type":"uint16"},{"internalType":"address","name":"mintTo","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"numTokens","type":"uint16"}],"name":"mintWithFangs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CuddlyCubsToken.ContractState","name":"contractState_","type":"uint8"}],"name":"setContractState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"cubsToFoster_","type":"uint16"}],"name":"setCubsToFoster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"fangsToClaim_","type":"uint16"}],"name":"setFangsToClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newPlaceHolderURI","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"presaleSigner_","type":"address"}],"name":"setPresaleSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040527c0500000096000000006716d41029631116c5245096c46b04aca47d0bd0600855600b805460ff191690553480156200003c57600080fd5b5060405162004874380380620048748339810160408190526200005f91620002e4565b6040518060400160405280600a815260200169437564646c794375627360b01b815250604051806040016040528060048152602001632421aaa160e11b815250620000b9620000b36200012c60201b60201c565b62000130565b8151620000ce90600190602085019062000221565b508051620000e490600290602084019062000221565b50506000805461ffff60a01b1916905550600160075560085462000114906001600160a01b03166102b262000180565b6001600160a01b039182166080521660a05262000359565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612710811115620001d75760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093026001600160b81b0319909316909117919091179055565b8280546200022f906200031c565b90600052602060002090601f0160209004810192826200025357600085556200029e565b82601f106200026e57805160ff19168380011785556200029e565b828001600101855582156200029e579182015b828111156200029e57825182559160200191906001019062000281565b50620002ac929150620002b0565b5090565b5b80821115620002ac5760008155600101620002b1565b80516001600160a01b0381168114620002df57600080fd5b919050565b60008060408385031215620002f857600080fd5b6200030383620002c7565b91506200031360208401620002c7565b90509250929050565b600181811c908216806200033157607f821691505b602082108114156200035357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516144e76200038d600039600081816107a9015261159d0152600081816108bf015261232d01526144e76000f3fe6080604052600436106103295760003560e01c80637514023f116101a5578063b87cd3a9116100ec578063d9ea971211610095578063f1545cf31161006f578063f1545cf31461098c578063f2fde38b146109ac578063f7b4c187146109cc578063f8d0762e146109ec57600080fd5b8063d9ea971214610901578063e985e9c514610923578063ee0db0ef1461096c57600080fd5b8063bbea7eef116100c6578063bbea7eef14610880578063c0a544be146108ad578063c87b56dd146108e157600080fd5b8063b87cd3a914610820578063b88d4fde14610840578063b9f67b251461086057600080fd5b80638c7ea24b1161014e57806391ceb80c1161012857806391ceb80c146107cb57806395d89b41146107eb578063a22cb4651461080057600080fd5b80638c7ea24b146107595780638da5cb5b146107795780638e230f831461079757600080fd5b80638462151c1161017f5780638462151c146106e357806385209ee01461071057806389e758121461073757600080fd5b80637514023f14610690578063765fdf88146106b05780638336f274146106c357600080fd5b80633ccfd60b1161027457806359543f791161021d5780636c0360eb116101f75780636c0360eb1461063157806370a0823114610646578063715018a6146106665780637313cba91461067b57600080fd5b806359543f79146105d6578063611f3f10146105f65780636352211e1461061157600080fd5b80634f6ccce71161024e5780634f6ccce71461057457806355f804b314610594578063570fde4f146105b457600080fd5b80633ccfd60b1461051f5780633ea85b901461053457806342842e0e1461055457600080fd5b806316755b57116102d65780632a55205a116102b05780632a55205a146104a05780632f745c59146104df5780633574a2dd146104ff57600080fd5b806316755b571461043d57806318160ddd1461045057806323b872dd1461048057600080fd5b806306fdde031161030757806306fdde03146103c1578063081812fc146103e3578063095ea7b31461041b57600080fd5b806301ffc9a71461032e578063057707a01461036357806305a5b0e21461038c575b600080fd5b34801561033a57600080fd5b5061034e610349366004613bb3565b610a0c565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b5061037e666a94d74f43000081565b60405190815260200161035a565b34801561039857600080fd5b506008546103ae90600160d01b900461ffff1681565b60405161ffff909116815260200161035a565b3480156103cd57600080fd5b506103d6610a2c565b60405161035a9190613c2f565b3480156103ef57600080fd5b506104036103fe366004613c42565b610abe565b6040516001600160a01b03909116815260200161035a565b34801561042757600080fd5b5061043b610436366004613c77565b610b09565b005b61043b61044b366004613cb3565b610b97565b34801561045c57600080fd5b5060005461ffff600160b01b82048116600160a01b9092048116919091031661037e565b34801561048c57600080fd5b5061043b61049b366004613cce565b610dc1565b3480156104ac57600080fd5b506104c06104bb366004613d0a565b610dcc565b604080516001600160a01b03909316835260208301919091520161035a565b3480156104eb57600080fd5b5061037e6104fa366004613c77565b610e21565b34801561050b57600080fd5b5061043b61051a366004613dcb565b610edb565b34801561052b57600080fd5b5061043b610f3a565b34801561054057600080fd5b50600954610403906001600160a01b031681565b34801561056057600080fd5b5061043b61056f366004613cce565b61107d565b34801561058057600080fd5b5061037e61058f366004613c42565b611098565b3480156105a057600080fd5b5061043b6105af366004613dcb565b61110b565b3480156105c057600080fd5b506008546103ae90600160e01b900461ffff1681565b3480156105e257600080fd5b5061043b6105f1366004613e34565b611166565b34801561060257600080fd5b5061037e66753d533d96800081565b34801561061d57600080fd5b5061040361062c366004613c42565b6115fe565b34801561063d57600080fd5b506103d6611610565b34801561065257600080fd5b5061037e610661366004613ef9565b61169e565b34801561067257600080fd5b5061043b611735565b34801561068757600080fd5b506103d6611789565b34801561069c57600080fd5b5061043b6106ab366004613cb3565b611796565b61043b6106be366004613f22565b61181a565b3480156106cf57600080fd5b5061034e6106de366004613f93565b611c13565b3480156106ef57600080fd5b506107036106fe366004613ef9565b611c99565b60405161035a9190614007565b34801561071c57600080fd5b50600b5461072a9060ff1681565b60405161035a9190614061565b34801561074357600080fd5b506008546103ae90600160f01b900461ffff1681565b34801561076557600080fd5b5061043b610774366004613c77565b611dcb565b34801561078557600080fd5b506000546001600160a01b0316610403565b3480156107a357600080fd5b506104037f000000000000000000000000000000000000000000000000000000000000000081565b3480156107d757600080fd5b5061043b6107e6366004613cb3565b611e73565b3480156107f757600080fd5b506103d66120cf565b34801561080c57600080fd5b5061043b61081b366004614089565b6120de565b34801561082c57600080fd5b5061043b61083b366004613cb3565b612174565b34801561084c57600080fd5b5061043b61085b3660046140c0565b612441565b34801561086c57600080fd5b5061043b61087b366004613ef9565b612492565b34801561088c57600080fd5b506108a061089b366004613ef9565b612509565b60405161035a9190614110565b3480156108b957600080fd5b506104037f000000000000000000000000000000000000000000000000000000000000000081565b3480156108ed57600080fd5b506103d66108fc366004613c42565b6125dc565b34801561090d57600080fd5b506008546103ae90600160c01b900461ffff1681565b34801561092f57600080fd5b5061034e61093e366004614142565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561097857600080fd5b5061043b610987366004613cb3565b612730565b34801561099857600080fd5b5061043b6109a7366004614175565b6127b4565b3480156109b857600080fd5b5061043b6109c7366004613ef9565b612959565b3480156109d857600080fd5b5061043b6109e7366004614191565b612a29565b3480156109f857600080fd5b50610403610a07366004613c42565b612a98565b6000610a1782612b36565b80610a265750610a2682612b86565b92915050565b606060018054610a3b906141b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a67906141b2565b8015610ab45780601f10610a8957610100808354040283529160200191610ab4565b820191906000526020600020905b815481529060010190602001808311610a9757829003601f168201915b5050505050905090565b600081610aca81612bbc565b610ae7576040516333d1c03960e21b815260040160405180910390fd5b61ffff166000908152600460205260409020546001600160a01b031692915050565b6000610b14826115fe565b9050806001600160a01b0316836001600160a01b03161415610b495760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b695750610b67813361093e565b155b15610b87576040516367d9dca160e11b815260040160405180910390fd5b610b92838383612bfa565b505050565b333214610be65760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b60448201526064015b60405180910390fd5b600280600b5460ff166003811115610c0057610c0061404b565b14610c4d5760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b81610d0681610c6760005461ffff600160a01b9091041690565b610c719190614203565b61ffff1610610cd45760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b600661ffff841610610d3b5760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2043616e206f6e6c79206d696e74203560448201526920617420612074696d6560b01b6064820152608401610bdd565b34610d5161ffff851666753d533d968000614229565b14610db75760405162461bcd60e51b815260206004820152603060248201527f437564646c7943756273546f6b656e3a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b6064820152608401610bdd565b610b923384612c69565b610b92838383612c83565b604080518082019091526006546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610e0d9086614229565b610e17919061425e565b9150509250929050565b600080805b60005461ffff600160a01b90910481169082161015610ec15761ffff8116600090815260036020526040902054600160e01b900460ff16158015610e875750846001600160a01b0316610e7c8261ffff166115fe565b6001600160a01b0316145b15610eaf5783821415610ea15761ffff169150610a269050565b81610eab81614272565b9250505b80610eb98161428d565b915050610e26565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b03163314610f235760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b8051610f3690600d906020840190613ae5565b5050565b60026007541415610f8d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bdd565b60026007556000546001600160a01b0316331480610fbe575033734c54b734471ef8080c5c252e5588f625d2e5e93e145b61100a5760405162461bcd60e51b815260206004820152601860248201527f50617961626c653a204c6f636b656420776974686472617700000000000000006044820152606401610bdd565b600061101760054761425e565b9050611041738bffc7415b1f8cea3bf9e1f36ebb2ff15d175cf561103c836002614229565b612e77565b61105f734c54b734471ef8080c5c252e5588f625d2e5e93e82612e77565b600854611075906001600160a01b031647612e77565b506001600755565b610b9283838360405180602001604052806000815250612441565b600080805b60005461ffff600160a01b90910481169082161015610ec15761ffff8116600090815260036020526040902054600160e01b900460ff166110f957838214156110eb5761ffff169392505050565b816110f581614272565b9250505b806111038161428d565b91505061109d565b6000546001600160a01b031633146111535760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b8051610f3690600c906020840190613ae5565b3332146111b05760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600380600b5460ff1660038111156111ca576111ca61404b565b146112175760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b6008548351600160e01b90910461ffff161461129b5760405162461bcd60e51b815260206004820152602760248201527f437564646c7943756273546f6b656e3a20496e76616c6964206e756d6265722060448201527f6f662063756273000000000000000000000000000000000000000000000000006064820152608401610bdd565b60085461014d600160f01b90910461ffff16106113205760405162461bcd60e51b815260206004820152602660248201527f437564646c7943756273546f6b656e3a20466f73746572206c696d697420657860448201527f63656564656400000000000000000000000000000000000000000000000000006064820152608401610bdd565b60005b60085461ffff600160e01b909104811690821610156113e457336001600160a01b0316611370858361ffff168151811061135f5761135f6142af565b602002602001015161ffff166115fe565b6001600160a01b0316146113d25760405162461bcd60e51b815260206004820152602360248201527f437564646c7943756273546f6b656e3a204d7573742062652063756273206f776044820152623732b960e91b6064820152608401610bdd565b806113dc8161428d565b915050611323565b5061147a33846000815181106113fc576113fc6142af565b602002602001015160405160200161145792919060609290921b6bffffffffffffffffffffffff1916825260f01b7fffff00000000000000000000000000000000000000000000000000000000000016601482015260160190565b60408051601f1981840301815291905260095484906001600160a01b0316611c13565b6114d25760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a205369676e6174757265206e6f742076604482015263185b1a5960e21b6064820152608401610bdd565b60005b60085461ffff600160e01b9091048116908216101561152657611514848261ffff1681518110611507576115076142af565b6020026020010151612f90565b8061151e8161428d565b9150506114d5565b5060088054600160f01b900461ffff1690601e6115428361428d565b825461ffff9182166101009390930a9283029190920219909116179055506040517fff6438c2000000000000000000000000000000000000000000000000000000008152600160048201523360248201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ff6438c290604401600060405180830381600087803b1580156115e157600080fd5b505af11580156115f5573d6000803e3d6000fd5b50505050505050565b60006116098261311e565b5192915050565b600c805461161d906141b2565b80601f0160208091040260200160405190810160405280929190818152602001828054611649906141b2565b80156116965780601f1061166b57610100808354040283529160200191611696565b820191906000526020600020905b81548152906001019060200180831161167957829003601f168201915b505050505081565b60006001600160a01b0382166116c7576040516323d3ad8160e21b815260040160405180910390fd5b6000805b60005461ffff600160a01b9091048116908216101561172a57836001600160a01b03166116fb8261ffff166115fe565b6001600160a01b0316141561171857816117148161428d565b9250505b806117228161428d565b9150506116cb565b5061ffff1692915050565b6000546001600160a01b0316331461177d5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6117876000613253565b565b600d805461161d906141b2565b6000546001600160a01b031633146117de5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6008805461ffff909216600160c01b027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3332146118645760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600180600b5460ff16600381111561187e5761187e61404b565b146118cb5760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b84610d06816118e560005461ffff600160a01b9091041690565b6118ef9190614203565b61ffff16106119525760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b336000908152600a602052604090205461ffff8087169161197591899116614203565b61ffff1611156119ed5760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a20457863656564732070726573616c6560448201527f20616c6c6f77616e6365000000000000000000000000000000000000000000006064820152608401610bdd565b8315611a745734611a0961ffff8816666a94d74f430000614229565b14611a6f5760405162461bcd60e51b815260206004820152603060248201527f437564646c7943756273546f6b656e3a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b6064820152608401610bdd565b611af0565b34611a8a61ffff881666753d533d968000614229565b14611af05760405162461bcd60e51b815260206004820152603060248201527f437564646c7943756273546f6b656e3a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b6064820152608401610bdd565b6040516bffffffffffffffffffffffff193360601b1660208201527fffff00000000000000000000000000000000000000000000000000000000000060f087901b16603482015284151560f81b6036820152611b6c9060370160408051601f1981840301815291905260095485906001600160a01b0316611c13565b611bc45760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a205369676e6174757265206e6f742076604482015263185b1a5960e21b6064820152608401610bdd565b336000908152600a602052604081208054889290611be790849061ffff16614203565b92506101000a81548161ffff021916908361ffff160217905550611c0b3387612c69565b505050505050565b6000816001600160a01b0316611c8784611c8187805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906132b0565b6001600160a01b031614949350505050565b60606000611ca68361169e565b905080611cc75760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611ce257611ce2613d2c565b604051908082528060200260200182016040528015611d0b578160200160208202803683370190505b5090506000805b60005461ffff600160a01b90910481169082161015610ec15761ffff8116600090815260036020526040902054600160e01b900460ff16158015611d735750856001600160a01b0316611d688261ffff166115fe565b6001600160a01b0316145b15611db9578061ffff16838381518110611d8f57611d8f6142af565b602090810291909101015281611da481614272565b92505083821415611db9575090949350505050565b80611dc38161428d565b915050611d12565b6000546001600160a01b03163314611e135760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6001600160a01b038216611e695760405162461bcd60e51b815260206004820152601560248201527f50617961626c653a205a65726f206164647265737300000000000000000000006044820152606401610bdd565b610f3682826132cc565b333214611ebd5760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600280600b5460ff166003811115611ed757611ed761404b565b14611f245760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b81610d0681611f3e60005461ffff600160a01b9091041690565b611f489190614203565b61ffff1610611fab5760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b6008546101f590611fc8908590600160b01b900461ffff16614203565b61ffff16106120255760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a2045786365656473206672656520746f6044820152636b656e7360e01b6064820152608401610bdd565b600661ffff84161061208c5760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2043616e206f6e6c79206d696e74203560448201526920617420612074696d6560b01b6064820152608401610bdd565b82600860168282829054906101000a900461ffff166120ab9190614203565b92506101000a81548161ffff021916908361ffff160217905550610b923384612c69565b606060028054610a3b906141b2565b6001600160a01b0382163314156121085760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3332146121be5760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600380600b5460ff1660038111156121d8576121d861404b565b146122255760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b60085461029c90612242908490600160d01b900461ffff16614203565b61ffff16106122b95760405162461bcd60e51b815260206004820152603260248201527f437564646c7943756273546f6b656e3a2050757263686173652065786365656460448201527f7320617661696c61626c6520746f6b656e7300000000000000000000000000006064820152608401610bdd565b600661ffff8316106123205760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2043616e206f6e6c79206d696e74203560448201526920617420612074696d6560b01b6064820152608401610bdd565b6008546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116916323b872dd9133919081169061237290879061ffff600160c01b909104166142c5565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015261ffff166044820152606401602060405180830381600087803b1580156123c557600080fd5b505af11580156123d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fd91906142ef565b50816008601a8282829054906101000a900461ffff1661241d9190614203565b92506101000a81548161ffff021916908361ffff160217905550610f363383612c69565b61244c848484612c83565b6001600160a01b0383163b1515801561246e575061246c84848484613380565b155b1561248c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b031633146124da5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b612511613b69565b604080516101008101909152600b54819060ff1660038111156125365761253661404b565b81526020016125486001610d0661430c565b61ffff9081168252600054602090920191600160b01b81048216600160a01b90910482160316815266753d533d968000602080830191909152666a94d74f43000060408084019190915260085461ffff600160a01b8204811660608601526001600160a01b039097166000908152600a90935291205485166080830152600160b01b900490931660a0909301929092525090565b60606125e782612bbc565b6126595760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610bdd565b6000600c8054612668906141b2565b9050116126ff57600d805461267c906141b2565b80601f01602080910402602001604051908101604052809291908181526020018280546126a8906141b2565b80156126f55780601f106126ca576101008083540402835291602001916126f5565b820191906000526020600020905b8154815290600101906020018083116126d857829003601f168201915b5050505050610a26565b600c61270a83613478565b60405160200161271b92919061434b565b60405160208183030381529060405292915050565b6000546001600160a01b031633146127785760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6008805461ffff909216600160e01b027fffff0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146127fc5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b81610d068161281660005461ffff600160a01b9091041690565b6128209190614203565b61ffff16106128835760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b60085460339061289f908590600160a01b900461ffff16614203565b61ffff16106129165760405162461bcd60e51b815260206004820152602560248201527f437564646c7943756273546f6b656e3a205265736572766174696f6e2065786360448201527f65656465640000000000000000000000000000000000000000000000000000006064820152608401610bdd565b82600860148282829054906101000a900461ffff166129359190614203565b92506101000a81548161ffff021916908361ffff160217905550610b928284612c69565b6000546001600160a01b031633146129a15760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6001600160a01b038116612a1d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bdd565b612a2681613253565b50565b6000546001600160a01b03163314612a715760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b600b805482919060ff19166001836003811115612a9057612a9061404b565b021790555050565b61ffff81166000908152600360209081526040808320815160608101835290546001600160a01b0381168252600160a01b810467ffffffffffffffff1693820193909352600160e01b90920460ff1615801591830191909152612b0e57604051636f96cda160e11b815260040160405180910390fd5b80516001600160a01b03166116095760405163a47c070d60e01b815260040160405180910390fd5b60006001600160e01b031982166380ac58cd60e01b1480612b6757506001600160e01b03198216635b5e139f60e01b145b80610a2657506301ffc9a760e01b6001600160e01b0319831614610a26565b60006001600160e01b0319821663152a902d60e11b1480610a2657506001600160e01b031982166301ffc9a760e01b1492915050565b6000805461ffff600160a01b9091048116908316108015610a2657505061ffff16600090815260036020526040902054600160e01b900460ff161590565b61ffff8216600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388811691821790925591519192908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b610f3682826040518060200160405280600081525061358e565b6000612c928261ffff1661311e565b80519091506000906001600160a01b0316336001600160a01b03161480612cc057508151612cc0903361093e565b80612cdf575033612cd461ffff8516610abe565b6001600160a01b0316145b905080612cff57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612d345760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416612d5b57604051633a954ecd60e21b815260040160405180910390fd5b612d6b6000848460000151612bfa565b61ffff83811660009081526003602052604080822080546001600160a01b038981166001600160e01b031990921691909117600160a01b4267ffffffffffffffff16021790915560018701938416835291205416612e295760005461ffff600160a01b90910481169082161015612e2957825161ffff8216600090815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b508261ffff16846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b80471015612ec75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610bdd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612f14576040519150601f19603f3d011682016040523d82523d6000602084013e612f19565b606091505b5050905080610b925760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610bdd565b6000612f9f8261ffff1661311e565b9050612fb16000838360000151612bfa565b805161ffff80841660009081526003602052604080822080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff4216600160a01b026001600160e01b03199092166001600160a01b03978816179190911716600160e01b17905560018601928316825290205490911661309a5760005461ffff600160a01b9091048116908216101561309a57815161ffff8216600090815260036020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405161ffff8416916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060008054600161ffff600160b01b80840482169290920116027fffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffff909116179055565b60408051606081018252600080825260208201819052918101919091528160005461ffff600160a01b9091048116908216101561323a5761ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906132385780516001600160a01b0316156131c9579392505050565b506000190161ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613233579392505050565b6131c9565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060006132bf858561359b565b91509150611cbf8161360b565b61271081111561331e5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610bdd565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906133b590339089908890889060040161441e565b602060405180830381600087803b1580156133cf57600080fd5b505af19250505080156133ff575060408051601f3d908101601f191682019092526133fc9181019061445a565b60015b61345a573d80801561342d576040519150601f19603f3d011682016040523d82523d6000602084013e613432565b606091505b508051613452576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161349c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156134c657806134b081614272565b91506134bf9050600a8361425e565b91506134a0565b60008167ffffffffffffffff8111156134e1576134e1613d2c565b6040519080825280601f01601f19166020018201604052801561350b576020820181803683370190505b5090505b841561347057613520600183614477565b915061352d600a8661448e565b6135389060306144a2565b60f81b81838151811061354d5761354d6142af565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613587600a8661425e565b945061350f565b610b9283838360016137c6565b6000808251604114156135d25760208301516040840151606085015160001a6135c6878285856139b0565b94509450505050613604565b8251604014156135fc57602083015160408401516135f1868383613a9d565b935093505050613604565b506000905060025b9250929050565b600081600481111561361f5761361f61404b565b14156136285750565b600181600481111561363c5761363c61404b565b141561368a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bdd565b600281600481111561369e5761369e61404b565b14156136ec5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bdd565b60038160048111156137005761370061404b565b14156137595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bdd565b600481600481111561376d5761376d61404b565b1415612a265760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bdd565b600054600160a01b900461ffff166001600160a01b0385166137fa57604051622e076360e81b815260040160405180910390fd5b61ffff841661381c5760405163b562e8dd60e01b815260040160405180910390fd5b61ffff81166000908152600360205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b038816171790558084810183801561387657506001600160a01b0387163b15155b1561391d575b60405161ffff8316906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138cf6000888480600101955061ffff1688613380565b6138ec576040516368d2bf6b60e11b815260040160405180910390fd5b8061ffff168261ffff16141561387c5760005461ffff848116600160a01b909204161461391857600080fd5b61396f565b5b604051600183019261ffff16906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061ffff168261ffff16141561391e575b506000805461ffff92909216600160a01b027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff909216919091179055612e70565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156139e75750600090506003613a94565b8460ff16601b141580156139ff57508460ff16601c14155b15613a105750600090506004613a94565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a64573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613a8d57600060019250925050613a94565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613ad7878288856139b0565b935093505050935093915050565b828054613af1906141b2565b90600052602060002090601f016020900481019282613b135760008555613b59565b82601f10613b2c57805160ff1916838001178555613b59565b82800160010185558215613b59579182015b82811115613b59578251825591602001919060010190613b3e565b50613b65929150613b88565b5090565b6040518061010001604052806008906020820280368337509192915050565b5b80821115613b655760008155600101613b89565b6001600160e01b031981168114612a2657600080fd5b600060208284031215613bc557600080fd5b8135613bd081613b9d565b9392505050565b60005b83811015613bf2578181015183820152602001613bda565b8381111561248c5750506000910152565b60008151808452613c1b816020860160208601613bd7565b601f01601f19169290920160200192915050565b602081526000613bd06020830184613c03565b600060208284031215613c5457600080fd5b5035919050565b80356001600160a01b0381168114613c7257600080fd5b919050565b60008060408385031215613c8a57600080fd5b613c9383613c5b565b946020939093013593505050565b803561ffff81168114613c7257600080fd5b600060208284031215613cc557600080fd5b613bd082613ca1565b600080600060608486031215613ce357600080fd5b613cec84613c5b565b9250613cfa60208501613c5b565b9150604084013590509250925092565b60008060408385031215613d1d57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613d6b57613d6b613d2c565b604052919050565b600067ffffffffffffffff831115613d8d57613d8d613d2c565b613da0601f8401601f1916602001613d42565b9050828152838383011115613db457600080fd5b828260208301376000602084830101529392505050565b600060208284031215613ddd57600080fd5b813567ffffffffffffffff811115613df457600080fd5b8201601f81018413613e0557600080fd5b61347084823560208401613d73565b600082601f830112613e2557600080fd5b613bd083833560208501613d73565b60008060408385031215613e4757600080fd5b823567ffffffffffffffff80821115613e5f57600080fd5b818501915085601f830112613e7357600080fd5b8135602082821115613e8757613e87613d2c565b8160051b613e96828201613d42565b928352848101820192828101908a851115613eb057600080fd5b958301955b84871015613ed557613ec687613ca1565b82529583019590830190613eb5565b9750505086013592505080821115613eec57600080fd5b50610e1785828601613e14565b600060208284031215613f0b57600080fd5b613bd082613c5b565b8015158114612a2657600080fd5b60008060008060808587031215613f3857600080fd5b613f4185613ca1565b9350613f4f60208601613ca1565b92506040850135613f5f81613f14565b9150606085013567ffffffffffffffff811115613f7b57600080fd5b613f8787828801613e14565b91505092959194509250565b600080600060608486031215613fa857600080fd5b833567ffffffffffffffff80821115613fc057600080fd5b613fcc87838801613e14565b94506020860135915080821115613fe257600080fd5b50613fef86828701613e14565b925050613ffe60408501613c5b565b90509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561403f57835183529284019291840191600101614023565b50909695505050505050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061408357634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561409c57600080fd5b6140a583613c5b565b915060208301356140b581613f14565b809150509250929050565b600080600080608085870312156140d657600080fd5b6140df85613c5b565b93506140ed60208601613c5b565b925060408501359150606085013567ffffffffffffffff811115613f7b57600080fd5b6101008101818360005b600881101561413957815183526020928301929091019060010161411a565b50505092915050565b6000806040838503121561415557600080fd5b61415e83613c5b565b915061416c60208401613c5b565b90509250929050565b6000806040838503121561418857600080fd5b61415e83613ca1565b6000602082840312156141a357600080fd5b813560048110613bd057600080fd5b600181811c908216806141c657607f821691505b602082108114156141e757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818516808303821115614220576142206141ed565b01949350505050565b6000816000190483118215151615614243576142436141ed565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261426d5761426d614248565b500490565b6000600019821415614286576142866141ed565b5060010190565b600061ffff808316818114156142a5576142a56141ed565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff808316818516818304811182151516156142e6576142e66141ed565b02949350505050565b60006020828403121561430157600080fd5b8151613bd081613f14565b600061ffff83811690831681811015614327576143276141ed565b039392505050565b60008151614341818560208601613bd7565b9290920192915050565b600080845481600182811c91508083168061436757607f831692505b602080841082141561438757634e487b7160e01b86526022600452602486fd5b81801561439b57600181146143ac576143d9565b60ff198616895284890196506143d9565b60008b81526020902060005b868110156143d15781548b8201529085019083016143b8565b505084890196505b5050505050506144156143ec828661432f565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526144506080830184613c03565b9695505050505050565b60006020828403121561446c57600080fd5b8151613bd081613b9d565b600082821015614489576144896141ed565b500390565b60008261449d5761449d614248565b500690565b600082198211156144b5576144b56141ed565b50019056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a00000000000000000000000044da528cde933688dffd4317774fd474298a356f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9

Deployed Bytecode

0x6080604052600436106103295760003560e01c80637514023f116101a5578063b87cd3a9116100ec578063d9ea971211610095578063f1545cf31161006f578063f1545cf31461098c578063f2fde38b146109ac578063f7b4c187146109cc578063f8d0762e146109ec57600080fd5b8063d9ea971214610901578063e985e9c514610923578063ee0db0ef1461096c57600080fd5b8063bbea7eef116100c6578063bbea7eef14610880578063c0a544be146108ad578063c87b56dd146108e157600080fd5b8063b87cd3a914610820578063b88d4fde14610840578063b9f67b251461086057600080fd5b80638c7ea24b1161014e57806391ceb80c1161012857806391ceb80c146107cb57806395d89b41146107eb578063a22cb4651461080057600080fd5b80638c7ea24b146107595780638da5cb5b146107795780638e230f831461079757600080fd5b80638462151c1161017f5780638462151c146106e357806385209ee01461071057806389e758121461073757600080fd5b80637514023f14610690578063765fdf88146106b05780638336f274146106c357600080fd5b80633ccfd60b1161027457806359543f791161021d5780636c0360eb116101f75780636c0360eb1461063157806370a0823114610646578063715018a6146106665780637313cba91461067b57600080fd5b806359543f79146105d6578063611f3f10146105f65780636352211e1461061157600080fd5b80634f6ccce71161024e5780634f6ccce71461057457806355f804b314610594578063570fde4f146105b457600080fd5b80633ccfd60b1461051f5780633ea85b901461053457806342842e0e1461055457600080fd5b806316755b57116102d65780632a55205a116102b05780632a55205a146104a05780632f745c59146104df5780633574a2dd146104ff57600080fd5b806316755b571461043d57806318160ddd1461045057806323b872dd1461048057600080fd5b806306fdde031161030757806306fdde03146103c1578063081812fc146103e3578063095ea7b31461041b57600080fd5b806301ffc9a71461032e578063057707a01461036357806305a5b0e21461038c575b600080fd5b34801561033a57600080fd5b5061034e610349366004613bb3565b610a0c565b60405190151581526020015b60405180910390f35b34801561036f57600080fd5b5061037e666a94d74f43000081565b60405190815260200161035a565b34801561039857600080fd5b506008546103ae90600160d01b900461ffff1681565b60405161ffff909116815260200161035a565b3480156103cd57600080fd5b506103d6610a2c565b60405161035a9190613c2f565b3480156103ef57600080fd5b506104036103fe366004613c42565b610abe565b6040516001600160a01b03909116815260200161035a565b34801561042757600080fd5b5061043b610436366004613c77565b610b09565b005b61043b61044b366004613cb3565b610b97565b34801561045c57600080fd5b5060005461ffff600160b01b82048116600160a01b9092048116919091031661037e565b34801561048c57600080fd5b5061043b61049b366004613cce565b610dc1565b3480156104ac57600080fd5b506104c06104bb366004613d0a565b610dcc565b604080516001600160a01b03909316835260208301919091520161035a565b3480156104eb57600080fd5b5061037e6104fa366004613c77565b610e21565b34801561050b57600080fd5b5061043b61051a366004613dcb565b610edb565b34801561052b57600080fd5b5061043b610f3a565b34801561054057600080fd5b50600954610403906001600160a01b031681565b34801561056057600080fd5b5061043b61056f366004613cce565b61107d565b34801561058057600080fd5b5061037e61058f366004613c42565b611098565b3480156105a057600080fd5b5061043b6105af366004613dcb565b61110b565b3480156105c057600080fd5b506008546103ae90600160e01b900461ffff1681565b3480156105e257600080fd5b5061043b6105f1366004613e34565b611166565b34801561060257600080fd5b5061037e66753d533d96800081565b34801561061d57600080fd5b5061040361062c366004613c42565b6115fe565b34801561063d57600080fd5b506103d6611610565b34801561065257600080fd5b5061037e610661366004613ef9565b61169e565b34801561067257600080fd5b5061043b611735565b34801561068757600080fd5b506103d6611789565b34801561069c57600080fd5b5061043b6106ab366004613cb3565b611796565b61043b6106be366004613f22565b61181a565b3480156106cf57600080fd5b5061034e6106de366004613f93565b611c13565b3480156106ef57600080fd5b506107036106fe366004613ef9565b611c99565b60405161035a9190614007565b34801561071c57600080fd5b50600b5461072a9060ff1681565b60405161035a9190614061565b34801561074357600080fd5b506008546103ae90600160f01b900461ffff1681565b34801561076557600080fd5b5061043b610774366004613c77565b611dcb565b34801561078557600080fd5b506000546001600160a01b0316610403565b3480156107a357600080fd5b506104037f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d981565b3480156107d757600080fd5b5061043b6107e6366004613cb3565b611e73565b3480156107f757600080fd5b506103d66120cf565b34801561080c57600080fd5b5061043b61081b366004614089565b6120de565b34801561082c57600080fd5b5061043b61083b366004613cb3565b612174565b34801561084c57600080fd5b5061043b61085b3660046140c0565b612441565b34801561086c57600080fd5b5061043b61087b366004613ef9565b612492565b34801561088c57600080fd5b506108a061089b366004613ef9565b612509565b60405161035a9190614110565b3480156108b957600080fd5b506104037f00000000000000000000000044da528cde933688dffd4317774fd474298a356f81565b3480156108ed57600080fd5b506103d66108fc366004613c42565b6125dc565b34801561090d57600080fd5b506008546103ae90600160c01b900461ffff1681565b34801561092f57600080fd5b5061034e61093e366004614142565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561097857600080fd5b5061043b610987366004613cb3565b612730565b34801561099857600080fd5b5061043b6109a7366004614175565b6127b4565b3480156109b857600080fd5b5061043b6109c7366004613ef9565b612959565b3480156109d857600080fd5b5061043b6109e7366004614191565b612a29565b3480156109f857600080fd5b50610403610a07366004613c42565b612a98565b6000610a1782612b36565b80610a265750610a2682612b86565b92915050565b606060018054610a3b906141b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a67906141b2565b8015610ab45780601f10610a8957610100808354040283529160200191610ab4565b820191906000526020600020905b815481529060010190602001808311610a9757829003601f168201915b5050505050905090565b600081610aca81612bbc565b610ae7576040516333d1c03960e21b815260040160405180910390fd5b61ffff166000908152600460205260409020546001600160a01b031692915050565b6000610b14826115fe565b9050806001600160a01b0316836001600160a01b03161415610b495760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b695750610b67813361093e565b155b15610b87576040516367d9dca160e11b815260040160405180910390fd5b610b92838383612bfa565b505050565b333214610be65760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b60448201526064015b60405180910390fd5b600280600b5460ff166003811115610c0057610c0061404b565b14610c4d5760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b81610d0681610c6760005461ffff600160a01b9091041690565b610c719190614203565b61ffff1610610cd45760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b600661ffff841610610d3b5760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2043616e206f6e6c79206d696e74203560448201526920617420612074696d6560b01b6064820152608401610bdd565b34610d5161ffff851666753d533d968000614229565b14610db75760405162461bcd60e51b815260206004820152603060248201527f437564646c7943756273546f6b656e3a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b6064820152608401610bdd565b610b923384612c69565b610b92838383612c83565b604080518082019091526006546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610e0d9086614229565b610e17919061425e565b9150509250929050565b600080805b60005461ffff600160a01b90910481169082161015610ec15761ffff8116600090815260036020526040902054600160e01b900460ff16158015610e875750846001600160a01b0316610e7c8261ffff166115fe565b6001600160a01b0316145b15610eaf5783821415610ea15761ffff169150610a269050565b81610eab81614272565b9250505b80610eb98161428d565b915050610e26565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b03163314610f235760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b8051610f3690600d906020840190613ae5565b5050565b60026007541415610f8d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bdd565b60026007556000546001600160a01b0316331480610fbe575033734c54b734471ef8080c5c252e5588f625d2e5e93e145b61100a5760405162461bcd60e51b815260206004820152601860248201527f50617961626c653a204c6f636b656420776974686472617700000000000000006044820152606401610bdd565b600061101760054761425e565b9050611041738bffc7415b1f8cea3bf9e1f36ebb2ff15d175cf561103c836002614229565b612e77565b61105f734c54b734471ef8080c5c252e5588f625d2e5e93e82612e77565b600854611075906001600160a01b031647612e77565b506001600755565b610b9283838360405180602001604052806000815250612441565b600080805b60005461ffff600160a01b90910481169082161015610ec15761ffff8116600090815260036020526040902054600160e01b900460ff166110f957838214156110eb5761ffff169392505050565b816110f581614272565b9250505b806111038161428d565b91505061109d565b6000546001600160a01b031633146111535760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b8051610f3690600c906020840190613ae5565b3332146111b05760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600380600b5460ff1660038111156111ca576111ca61404b565b146112175760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b6008548351600160e01b90910461ffff161461129b5760405162461bcd60e51b815260206004820152602760248201527f437564646c7943756273546f6b656e3a20496e76616c6964206e756d6265722060448201527f6f662063756273000000000000000000000000000000000000000000000000006064820152608401610bdd565b60085461014d600160f01b90910461ffff16106113205760405162461bcd60e51b815260206004820152602660248201527f437564646c7943756273546f6b656e3a20466f73746572206c696d697420657860448201527f63656564656400000000000000000000000000000000000000000000000000006064820152608401610bdd565b60005b60085461ffff600160e01b909104811690821610156113e457336001600160a01b0316611370858361ffff168151811061135f5761135f6142af565b602002602001015161ffff166115fe565b6001600160a01b0316146113d25760405162461bcd60e51b815260206004820152602360248201527f437564646c7943756273546f6b656e3a204d7573742062652063756273206f776044820152623732b960e91b6064820152608401610bdd565b806113dc8161428d565b915050611323565b5061147a33846000815181106113fc576113fc6142af565b602002602001015160405160200161145792919060609290921b6bffffffffffffffffffffffff1916825260f01b7fffff00000000000000000000000000000000000000000000000000000000000016601482015260160190565b60408051601f1981840301815291905260095484906001600160a01b0316611c13565b6114d25760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a205369676e6174757265206e6f742076604482015263185b1a5960e21b6064820152608401610bdd565b60005b60085461ffff600160e01b9091048116908216101561152657611514848261ffff1681518110611507576115076142af565b6020026020010151612f90565b8061151e8161428d565b9150506114d5565b5060088054600160f01b900461ffff1690601e6115428361428d565b825461ffff9182166101009390930a9283029190920219909116179055506040517fff6438c2000000000000000000000000000000000000000000000000000000008152600160048201523360248201526001600160a01b037f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9169063ff6438c290604401600060405180830381600087803b1580156115e157600080fd5b505af11580156115f5573d6000803e3d6000fd5b50505050505050565b60006116098261311e565b5192915050565b600c805461161d906141b2565b80601f0160208091040260200160405190810160405280929190818152602001828054611649906141b2565b80156116965780601f1061166b57610100808354040283529160200191611696565b820191906000526020600020905b81548152906001019060200180831161167957829003601f168201915b505050505081565b60006001600160a01b0382166116c7576040516323d3ad8160e21b815260040160405180910390fd5b6000805b60005461ffff600160a01b9091048116908216101561172a57836001600160a01b03166116fb8261ffff166115fe565b6001600160a01b0316141561171857816117148161428d565b9250505b806117228161428d565b9150506116cb565b5061ffff1692915050565b6000546001600160a01b0316331461177d5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6117876000613253565b565b600d805461161d906141b2565b6000546001600160a01b031633146117de5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6008805461ffff909216600160c01b027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3332146118645760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600180600b5460ff16600381111561187e5761187e61404b565b146118cb5760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b84610d06816118e560005461ffff600160a01b9091041690565b6118ef9190614203565b61ffff16106119525760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b336000908152600a602052604090205461ffff8087169161197591899116614203565b61ffff1611156119ed5760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a20457863656564732070726573616c6560448201527f20616c6c6f77616e6365000000000000000000000000000000000000000000006064820152608401610bdd565b8315611a745734611a0961ffff8816666a94d74f430000614229565b14611a6f5760405162461bcd60e51b815260206004820152603060248201527f437564646c7943756273546f6b656e3a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b6064820152608401610bdd565b611af0565b34611a8a61ffff881666753d533d968000614229565b14611af05760405162461bcd60e51b815260206004820152603060248201527f437564646c7943756273546f6b656e3a2045746865722076616c75652073656e60448201526f1d081a5cc81b9bdd0818dbdc9c9958dd60821b6064820152608401610bdd565b6040516bffffffffffffffffffffffff193360601b1660208201527fffff00000000000000000000000000000000000000000000000000000000000060f087901b16603482015284151560f81b6036820152611b6c9060370160408051601f1981840301815291905260095485906001600160a01b0316611c13565b611bc45760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a205369676e6174757265206e6f742076604482015263185b1a5960e21b6064820152608401610bdd565b336000908152600a602052604081208054889290611be790849061ffff16614203565b92506101000a81548161ffff021916908361ffff160217905550611c0b3387612c69565b505050505050565b6000816001600160a01b0316611c8784611c8187805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906132b0565b6001600160a01b031614949350505050565b60606000611ca68361169e565b905080611cc75760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611ce257611ce2613d2c565b604051908082528060200260200182016040528015611d0b578160200160208202803683370190505b5090506000805b60005461ffff600160a01b90910481169082161015610ec15761ffff8116600090815260036020526040902054600160e01b900460ff16158015611d735750856001600160a01b0316611d688261ffff166115fe565b6001600160a01b0316145b15611db9578061ffff16838381518110611d8f57611d8f6142af565b602090810291909101015281611da481614272565b92505083821415611db9575090949350505050565b80611dc38161428d565b915050611d12565b6000546001600160a01b03163314611e135760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6001600160a01b038216611e695760405162461bcd60e51b815260206004820152601560248201527f50617961626c653a205a65726f206164647265737300000000000000000000006044820152606401610bdd565b610f3682826132cc565b333214611ebd5760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600280600b5460ff166003811115611ed757611ed761404b565b14611f245760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b81610d0681611f3e60005461ffff600160a01b9091041690565b611f489190614203565b61ffff1610611fab5760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b6008546101f590611fc8908590600160b01b900461ffff16614203565b61ffff16106120255760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a2045786365656473206672656520746f6044820152636b656e7360e01b6064820152608401610bdd565b600661ffff84161061208c5760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2043616e206f6e6c79206d696e74203560448201526920617420612074696d6560b01b6064820152608401610bdd565b82600860168282829054906101000a900461ffff166120ab9190614203565b92506101000a81548161ffff021916908361ffff160217905550610b923384612c69565b606060028054610a3b906141b2565b6001600160a01b0382163314156121085760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3332146121be5760405162461bcd60e51b8152602060048201526018602482015277437564646c7943756273546f6b656e3a204e6f20626f747360401b6044820152606401610bdd565b600380600b5460ff1660038111156121d8576121d861404b565b146122255760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610bdd565b60085461029c90612242908490600160d01b900461ffff16614203565b61ffff16106122b95760405162461bcd60e51b815260206004820152603260248201527f437564646c7943756273546f6b656e3a2050757263686173652065786365656460448201527f7320617661696c61626c6520746f6b656e7300000000000000000000000000006064820152608401610bdd565b600661ffff8316106123205760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2043616e206f6e6c79206d696e74203560448201526920617420612074696d6560b01b6064820152608401610bdd565b6008546001600160a01b037f00000000000000000000000044da528cde933688dffd4317774fd474298a356f8116916323b872dd9133919081169061237290879061ffff600160c01b909104166142c5565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015261ffff166044820152606401602060405180830381600087803b1580156123c557600080fd5b505af11580156123d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fd91906142ef565b50816008601a8282829054906101000a900461ffff1661241d9190614203565b92506101000a81548161ffff021916908361ffff160217905550610f363383612c69565b61244c848484612c83565b6001600160a01b0383163b1515801561246e575061246c84848484613380565b155b1561248c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b031633146124da5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b612511613b69565b604080516101008101909152600b54819060ff1660038111156125365761253661404b565b81526020016125486001610d0661430c565b61ffff9081168252600054602090920191600160b01b81048216600160a01b90910482160316815266753d533d968000602080830191909152666a94d74f43000060408084019190915260085461ffff600160a01b8204811660608601526001600160a01b039097166000908152600a90935291205485166080830152600160b01b900490931660a0909301929092525090565b60606125e782612bbc565b6126595760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610bdd565b6000600c8054612668906141b2565b9050116126ff57600d805461267c906141b2565b80601f01602080910402602001604051908101604052809291908181526020018280546126a8906141b2565b80156126f55780601f106126ca576101008083540402835291602001916126f5565b820191906000526020600020905b8154815290600101906020018083116126d857829003601f168201915b5050505050610a26565b600c61270a83613478565b60405160200161271b92919061434b565b60405160208183030381529060405292915050565b6000546001600160a01b031633146127785760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6008805461ffff909216600160e01b027fffff0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b031633146127fc5760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b81610d068161281660005461ffff600160a01b9091041690565b6128209190614203565b61ffff16106128835760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610bdd565b60085460339061289f908590600160a01b900461ffff16614203565b61ffff16106129165760405162461bcd60e51b815260206004820152602560248201527f437564646c7943756273546f6b656e3a205265736572766174696f6e2065786360448201527f65656465640000000000000000000000000000000000000000000000000000006064820152608401610bdd565b82600860148282829054906101000a900461ffff166129359190614203565b92506101000a81548161ffff021916908361ffff160217905550610b928284612c69565b6000546001600160a01b031633146129a15760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b6001600160a01b038116612a1d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bdd565b612a2681613253565b50565b6000546001600160a01b03163314612a715760405162461bcd60e51b815260206004820181905260248201526000805160206144bb8339815191526044820152606401610bdd565b600b805482919060ff19166001836003811115612a9057612a9061404b565b021790555050565b61ffff81166000908152600360209081526040808320815160608101835290546001600160a01b0381168252600160a01b810467ffffffffffffffff1693820193909352600160e01b90920460ff1615801591830191909152612b0e57604051636f96cda160e11b815260040160405180910390fd5b80516001600160a01b03166116095760405163a47c070d60e01b815260040160405180910390fd5b60006001600160e01b031982166380ac58cd60e01b1480612b6757506001600160e01b03198216635b5e139f60e01b145b80610a2657506301ffc9a760e01b6001600160e01b0319831614610a26565b60006001600160e01b0319821663152a902d60e11b1480610a2657506001600160e01b031982166301ffc9a760e01b1492915050565b6000805461ffff600160a01b9091048116908316108015610a2657505061ffff16600090815260036020526040902054600160e01b900460ff161590565b61ffff8216600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388811691821790925591519192908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b610f3682826040518060200160405280600081525061358e565b6000612c928261ffff1661311e565b80519091506000906001600160a01b0316336001600160a01b03161480612cc057508151612cc0903361093e565b80612cdf575033612cd461ffff8516610abe565b6001600160a01b0316145b905080612cff57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614612d345760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416612d5b57604051633a954ecd60e21b815260040160405180910390fd5b612d6b6000848460000151612bfa565b61ffff83811660009081526003602052604080822080546001600160a01b038981166001600160e01b031990921691909117600160a01b4267ffffffffffffffff16021790915560018701938416835291205416612e295760005461ffff600160a01b90910481169082161015612e2957825161ffff8216600090815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b508261ffff16846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b80471015612ec75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610bdd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612f14576040519150601f19603f3d011682016040523d82523d6000602084013e612f19565b606091505b5050905080610b925760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610bdd565b6000612f9f8261ffff1661311e565b9050612fb16000838360000151612bfa565b805161ffff80841660009081526003602052604080822080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff4216600160a01b026001600160e01b03199092166001600160a01b03978816179190911716600160e01b17905560018601928316825290205490911661309a5760005461ffff600160a01b9091048116908216101561309a57815161ffff8216600090815260036020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405161ffff8416916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060008054600161ffff600160b01b80840482169290920116027fffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffff909116179055565b60408051606081018252600080825260208201819052918101919091528160005461ffff600160a01b9091048116908216101561323a5761ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906132385780516001600160a01b0316156131c9579392505050565b506000190161ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215613233579392505050565b6131c9565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060006132bf858561359b565b91509150611cbf8161360b565b61271081111561331e5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610bdd565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906133b590339089908890889060040161441e565b602060405180830381600087803b1580156133cf57600080fd5b505af19250505080156133ff575060408051601f3d908101601f191682019092526133fc9181019061445a565b60015b61345a573d80801561342d576040519150601f19603f3d011682016040523d82523d6000602084013e613432565b606091505b508051613452576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161349c5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156134c657806134b081614272565b91506134bf9050600a8361425e565b91506134a0565b60008167ffffffffffffffff8111156134e1576134e1613d2c565b6040519080825280601f01601f19166020018201604052801561350b576020820181803683370190505b5090505b841561347057613520600183614477565b915061352d600a8661448e565b6135389060306144a2565b60f81b81838151811061354d5761354d6142af565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613587600a8661425e565b945061350f565b610b9283838360016137c6565b6000808251604114156135d25760208301516040840151606085015160001a6135c6878285856139b0565b94509450505050613604565b8251604014156135fc57602083015160408401516135f1868383613a9d565b935093505050613604565b506000905060025b9250929050565b600081600481111561361f5761361f61404b565b14156136285750565b600181600481111561363c5761363c61404b565b141561368a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bdd565b600281600481111561369e5761369e61404b565b14156136ec5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bdd565b60038160048111156137005761370061404b565b14156137595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bdd565b600481600481111561376d5761376d61404b565b1415612a265760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bdd565b600054600160a01b900461ffff166001600160a01b0385166137fa57604051622e076360e81b815260040160405180910390fd5b61ffff841661381c5760405163b562e8dd60e01b815260040160405180910390fd5b61ffff81166000908152600360205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b038816171790558084810183801561387657506001600160a01b0387163b15155b1561391d575b60405161ffff8316906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138cf6000888480600101955061ffff1688613380565b6138ec576040516368d2bf6b60e11b815260040160405180910390fd5b8061ffff168261ffff16141561387c5760005461ffff848116600160a01b909204161461391857600080fd5b61396f565b5b604051600183019261ffff16906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061ffff168261ffff16141561391e575b506000805461ffff92909216600160a01b027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff909216919091179055612e70565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156139e75750600090506003613a94565b8460ff16601b141580156139ff57508460ff16601c14155b15613a105750600090506004613a94565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613a64573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613a8d57600060019250925050613a94565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613ad7878288856139b0565b935093505050935093915050565b828054613af1906141b2565b90600052602060002090601f016020900481019282613b135760008555613b59565b82601f10613b2c57805160ff1916838001178555613b59565b82800160010185558215613b59579182015b82811115613b59578251825591602001919060010190613b3e565b50613b65929150613b88565b5090565b6040518061010001604052806008906020820280368337509192915050565b5b80821115613b655760008155600101613b89565b6001600160e01b031981168114612a2657600080fd5b600060208284031215613bc557600080fd5b8135613bd081613b9d565b9392505050565b60005b83811015613bf2578181015183820152602001613bda565b8381111561248c5750506000910152565b60008151808452613c1b816020860160208601613bd7565b601f01601f19169290920160200192915050565b602081526000613bd06020830184613c03565b600060208284031215613c5457600080fd5b5035919050565b80356001600160a01b0381168114613c7257600080fd5b919050565b60008060408385031215613c8a57600080fd5b613c9383613c5b565b946020939093013593505050565b803561ffff81168114613c7257600080fd5b600060208284031215613cc557600080fd5b613bd082613ca1565b600080600060608486031215613ce357600080fd5b613cec84613c5b565b9250613cfa60208501613c5b565b9150604084013590509250925092565b60008060408385031215613d1d57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613d6b57613d6b613d2c565b604052919050565b600067ffffffffffffffff831115613d8d57613d8d613d2c565b613da0601f8401601f1916602001613d42565b9050828152838383011115613db457600080fd5b828260208301376000602084830101529392505050565b600060208284031215613ddd57600080fd5b813567ffffffffffffffff811115613df457600080fd5b8201601f81018413613e0557600080fd5b61347084823560208401613d73565b600082601f830112613e2557600080fd5b613bd083833560208501613d73565b60008060408385031215613e4757600080fd5b823567ffffffffffffffff80821115613e5f57600080fd5b818501915085601f830112613e7357600080fd5b8135602082821115613e8757613e87613d2c565b8160051b613e96828201613d42565b928352848101820192828101908a851115613eb057600080fd5b958301955b84871015613ed557613ec687613ca1565b82529583019590830190613eb5565b9750505086013592505080821115613eec57600080fd5b50610e1785828601613e14565b600060208284031215613f0b57600080fd5b613bd082613c5b565b8015158114612a2657600080fd5b60008060008060808587031215613f3857600080fd5b613f4185613ca1565b9350613f4f60208601613ca1565b92506040850135613f5f81613f14565b9150606085013567ffffffffffffffff811115613f7b57600080fd5b613f8787828801613e14565b91505092959194509250565b600080600060608486031215613fa857600080fd5b833567ffffffffffffffff80821115613fc057600080fd5b613fcc87838801613e14565b94506020860135915080821115613fe257600080fd5b50613fef86828701613e14565b925050613ffe60408501613c5b565b90509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561403f57835183529284019291840191600101614023565b50909695505050505050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061408357634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561409c57600080fd5b6140a583613c5b565b915060208301356140b581613f14565b809150509250929050565b600080600080608085870312156140d657600080fd5b6140df85613c5b565b93506140ed60208601613c5b565b925060408501359150606085013567ffffffffffffffff811115613f7b57600080fd5b6101008101818360005b600881101561413957815183526020928301929091019060010161411a565b50505092915050565b6000806040838503121561415557600080fd5b61415e83613c5b565b915061416c60208401613c5b565b90509250929050565b6000806040838503121561418857600080fd5b61415e83613ca1565b6000602082840312156141a357600080fd5b813560048110613bd057600080fd5b600181811c908216806141c657607f821691505b602082108114156141e757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818516808303821115614220576142206141ed565b01949350505050565b6000816000190483118215151615614243576142436141ed565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261426d5761426d614248565b500490565b6000600019821415614286576142866141ed565b5060010190565b600061ffff808316818114156142a5576142a56141ed565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff808316818516818304811182151516156142e6576142e66141ed565b02949350505050565b60006020828403121561430157600080fd5b8151613bd081613f14565b600061ffff83811690831681811015614327576143276141ed565b039392505050565b60008151614341818560208601613bd7565b9290920192915050565b600080845481600182811c91508083168061436757607f831692505b602080841082141561438757634e487b7160e01b86526022600452602486fd5b81801561439b57600181146143ac576143d9565b60ff198616895284890196506143d9565b60008b81526020902060005b868110156143d15781548b8201529085019083016143b8565b505084890196505b5050505050506144156143ec828661432f565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526144506080830184613c03565b9695505050505050565b60006020828403121561446c57600080fd5b8151613bd081613b9d565b600082821015614489576144896141ed565b500390565b60008261449d5761449d614248565b500690565b600082198211156144b5576144b56141ed565b50019056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a

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

00000000000000000000000044da528cde933688dffd4317774fd474298a356f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9

-----Decoded View---------------
Arg [0] : fangsAddress (address): 0x44dA528CdE933688Dffd4317774fd474298a356f
Arg [1] : lionsAddress (address): 0xFD2043f00450ed34589DffEDC85875B9eE9855D9

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000044da528cde933688dffd4317774fd474298a356f
Arg [1] : 000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9


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.