ETH Price: $3,408.57 (-0.71%)

Token

CuddlyCubs (HCUB)
 

Overview

Max Total Supply

913 HCUB

Holders

415

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
alihas.eth
Balance
0 HCUB
0x82dcba7a8bf3aa462040038ecb3d5d90901676e8
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 = 1001;
    uint16 private constant MAX_FANG_CLAIMS_PLUS_ONE = 666;
    uint16 private constant MAX_FOSTER_CLAIMS = 333;
    uint16 private constant MAX_PER_TRANS_PLUS_ONE = 3;
    uint16 private constant MAX_PER_WALLET_PLUS_ONE = 7;

    uint16 public fangsToClaim = 150;
    uint16 public fangClaims = 0;
    uint16 public cubsToFoster = 5;
    uint16 public fostered = 0;

    address public signer;

    mapping(address => uint16) private claimed;

    enum ContractState {
        OFF,
        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: Exceeds transaction limit");
        require(claimed[msg.sender] + numTokens < MAX_PER_WALLET_PLUS_ONE, "CuddlyCubsToken: Exceeds wallet limit");
        claimed[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) {
        _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: Exceeds transaction limit");
        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, signer),
            "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 signer address.
     * @param signer_ The new signer address of the verifier
     */
    function setSigner(address signer_) external onlyOwner {
        signer = signer_;
    }

    /**
     * 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 claims against
     * @return
     * contractState 0=OFF 1=PRESALE 2=PUBLIC 3=UTILTIY
     * maxSale (total available tokens)
     * totalSupply
     * claimed (by address provided)
     */
    function mintDetails(address addr) public view virtual returns (uint256[4] memory) {
        return [
            uint256(contractState),
            MAX_SALE_PLUS_ONE - 1,
            totalSupply(),
            claimed[addr]
        ];
    }
}

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":[{"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[4]","name":"","type":"uint256[4]"}],"stateMutability":"view","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":"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":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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"}]

60c0604052600880546001600160e01b0319167805000000966716d41029631116c5245096c46b04aca47d0bd0179055600b805460ff191690553480156200004657600080fd5b506040516200405c3803806200405c8339810160408190526200006991620002ee565b6040518060400160405280600a815260200169437564646c794375627360b01b815250604051806040016040528060048152602001632421aaa160e11b815250620000c3620000bd6200013660201b60201c565b6200013a565b8151620000d89060019060208501906200022b565b508051620000ee9060029060208401906200022b565b50506000805461ffff60a01b191690555060016007556008546200011e906001600160a01b03166102b26200018a565b6001600160a01b039182166080521660a05262000363565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612710811115620001e15760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093026001600160b81b0319909316909117919091179055565b828054620002399062000326565b90600052602060002090601f0160209004810192826200025d5760008555620002a8565b82601f106200027857805160ff1916838001178555620002a8565b82800160010185558215620002a8579182015b82811115620002a85782518255916020019190600101906200028b565b50620002b6929150620002ba565b5090565b5b80821115620002b65760008155600101620002bb565b80516001600160a01b0381168114620002e957600080fd5b919050565b600080604083850312156200030257600080fd5b6200030d83620002d1565b91506200031d60208401620002d1565b90509250929050565b600181811c908216806200033b57607f821691505b602082108114156200035d57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613cc5620003976000396000818161075001526115680152600081816108260152611d050152613cc56000f3fe6080604052600436106102fd5760003560e01c80637313cba91161018f578063b87cd3a9116100e1578063e985e9c51161008a578063f2fde38b11610064578063f2fde38b14610913578063f7b4c18714610933578063f8d0762e1461095357600080fd5b8063e985e9c51461088a578063ee0db0ef146108d3578063f1545cf3146108f357600080fd5b8063c0a544be116100bb578063c0a544be14610814578063c87b56dd14610848578063d9ea97121461086857600080fd5b8063b87cd3a9146107a7578063b88d4fde146107c7578063bbea7eef146107e757600080fd5b806389e75812116101435780638e230f831161011d5780638e230f831461073e57806395d89b4114610772578063a22cb4651461078757600080fd5b806389e75812146106de5780638c7ea24b146107005780638da5cb5b1461072057600080fd5b80638336f274116101745780638336f2741461066a5780638462151c1461068a57806385209ee0146106b757600080fd5b80637313cba9146106355780637514023f1461064a57600080fd5b80633574a2dd1161025357806359543f79116101fc5780636c19e783116101d65780636c19e783146105e057806370a0823114610600578063715018a61461062057600080fd5b806359543f791461058b5780636352211e146105ab5780636c0360eb146105cb57600080fd5b80634f6ccce71161022d5780634f6ccce71461052957806355f804b314610549578063570fde4f1461056957600080fd5b80633574a2dd146104d45780633ccfd60b146104f457806342842e0e1461050957600080fd5b806316755b57116102b557806323b872dd1161028f57806323b872dd146104555780632a55205a146104755780632f745c59146104b457600080fd5b806316755b57146103e857806318160ddd146103fb578063238ac9331461043557600080fd5b806306fdde03116102e657806306fdde031461036c578063081812fc1461038e578063095ea7b3146103c657600080fd5b806301ffc9a71461030257806305a5b0e214610337575b600080fd5b34801561030e57600080fd5b5061032261031d3660046133eb565b610973565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5060085461035990600160b01b900461ffff1681565b60405161ffff909116815260200161032e565b34801561037857600080fd5b50610381610993565b60405161032e9190613467565b34801561039a57600080fd5b506103ae6103a936600461347a565b610a25565b6040516001600160a01b03909116815260200161032e565b3480156103d257600080fd5b506103e66103e13660046134af565b610a70565b005b6103e66103f63660046134eb565b610afe565b34801561040757600080fd5b5060005461ffff600160b01b82048116600160a01b909204811691909103165b60405190815260200161032e565b34801561044157600080fd5b506009546103ae906001600160a01b031681565b34801561046157600080fd5b506103e6610470366004613506565b610d87565b34801561048157600080fd5b50610495610490366004613542565b610d92565b604080516001600160a01b03909316835260208301919091520161032e565b3480156104c057600080fd5b506104276104cf3660046134af565b610de7565b3480156104e057600080fd5b506103e66104ef366004613603565b610ea1565b34801561050057600080fd5b506103e6610f00565b34801561051557600080fd5b506103e6610524366004613506565b611043565b34801561053557600080fd5b5061042761054436600461347a565b61105e565b34801561055557600080fd5b506103e6610564366004613603565b6110d1565b34801561057557600080fd5b5060085461035990600160c01b900461ffff1681565b34801561059757600080fd5b506103e66105a636600461366c565b61112c565b3480156105b757600080fd5b506103ae6105c636600461347a565b6115c9565b3480156105d757600080fd5b506103816115db565b3480156105ec57600080fd5b506103e66105fb366004613731565b611669565b34801561060c57600080fd5b5061042761061b366004613731565b6116e0565b34801561062c57600080fd5b506103e6611777565b34801561064157600080fd5b506103816117cb565b34801561065657600080fd5b506103e66106653660046134eb565b6117d8565b34801561067657600080fd5b5061032261068536600461374c565b611842565b34801561069657600080fd5b506106aa6106a5366004613731565b6118c8565b60405161032e91906137c0565b3480156106c357600080fd5b50600b546106d19060ff1681565b60405161032e919061381a565b3480156106ea57600080fd5b5060085461035990600160d01b900461ffff1681565b34801561070c57600080fd5b506103e661071b3660046134af565b6119fa565b34801561072c57600080fd5b506000546001600160a01b03166103ae565b34801561074a57600080fd5b506103ae7f000000000000000000000000000000000000000000000000000000000000000081565b34801561077e57600080fd5b50610381611aa2565b34801561079357600080fd5b506103e66107a2366004613850565b611ab1565b3480156107b357600080fd5b506103e66107c23660046134eb565b611b47565b3480156107d357600080fd5b506103e66107e2366004613887565b611e19565b3480156107f357600080fd5b50610807610802366004613731565b611e6a565b60405161032e91906138ef565b34801561082057600080fd5b506103ae7f000000000000000000000000000000000000000000000000000000000000000081565b34801561085457600080fd5b5061038161086336600461347a565b611efb565b34801561087457600080fd5b5060085461035990600160a01b900461ffff1681565b34801561089657600080fd5b506103226108a5366004613920565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108df57600080fd5b506103e66108ee3660046134eb565b61204f565b3480156108ff57600080fd5b506103e661090e366004613953565b6120d3565b34801561091f57600080fd5b506103e661092e366004613731565b6121ac565b34801561093f57600080fd5b506103e661094e36600461396f565b61227c565b34801561095f57600080fd5b506103ae61096e36600461347a565b6122eb565b600061097e82612389565b8061098d575061098d826123d9565b92915050565b6060600180546109a290613990565b80601f01602080910402602001604051908101604052809291908181526020018280546109ce90613990565b8015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b5050505050905090565b600081610a318161240f565b610a4e576040516333d1c03960e21b815260040160405180910390fd5b61ffff166000908152600460205260409020546001600160a01b031692915050565b6000610a7b826115c9565b9050806001600160a01b0316836001600160a01b03161415610ab05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ad05750610ace81336108a5565b155b15610aee576040516367d9dca160e11b815260040160405180910390fd5b610af983838361244d565b505050565b333214610b525760405162461bcd60e51b815260206004820152601860248201527f437564646c7943756273546f6b656e3a204e6f20626f7473000000000000000060448201526064015b60405180910390fd5b600180600b5460ff166002811115610b6c57610b6c613804565b14610bb95760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610b49565b816103e981610bd360005461ffff600160a01b9091041690565b610bdd91906139e1565b61ffff1610610c405760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610b49565b600361ffff841610610ca75760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2045786365656473207472616e7361636044820152691d1a5bdb881b1a5b5a5d60b21b6064820152608401610b49565b336000908152600a6020526040902054600790610cc990859061ffff166139e1565b61ffff1610610d405760405162461bcd60e51b815260206004820152602560248201527f437564646c7943756273546f6b656e3a20457863656564732077616c6c65742060448201527f6c696d69740000000000000000000000000000000000000000000000000000006064820152608401610b49565b336000908152600a602052604081208054859290610d6390849061ffff166139e1565b92506101000a81548161ffff021916908361ffff160217905550610af933846124bc565b610af98383836124d6565b604080518082019091526006546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610dd39086613a07565b610ddd9190613a3c565b9150509250929050565b600080805b60005461ffff600160a01b90910481169082161015610e875761ffff8116600090815260036020526040902054600160e01b900460ff16158015610e4d5750846001600160a01b0316610e428261ffff166115c9565b6001600160a01b0316145b15610e755783821415610e675761ffff16915061098d9050565b81610e7181613a50565b9250505b80610e7f81613a6b565b915050610dec565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b03163314610ee95760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b8051610efc90600d90602084019061331e565b5050565b60026007541415610f535760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b49565b60026007556000546001600160a01b0316331480610f84575033734c54b734471ef8080c5c252e5588f625d2e5e93e145b610fd05760405162461bcd60e51b815260206004820152601860248201527f50617961626c653a204c6f636b656420776974686472617700000000000000006044820152606401610b49565b6000610fdd600547613a3c565b9050611007738bffc7415b1f8cea3bf9e1f36ebb2ff15d175cf5611002836002613a07565b6126ca565b611025734c54b734471ef8080c5c252e5588f625d2e5e93e826126ca565b60085461103b906001600160a01b0316476126ca565b506001600755565b610af983838360405180602001604052806000815250611e19565b600080805b60005461ffff600160a01b90910481169082161015610e875761ffff8116600090815260036020526040902054600160e01b900460ff166110bf57838214156110b15761ffff169392505050565b816110bb81613a50565b9250505b806110c981613a6b565b915050611063565b6000546001600160a01b031633146111195760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b8051610efc90600c90602084019061331e565b33321461117b5760405162461bcd60e51b815260206004820152601860248201527f437564646c7943756273546f6b656e3a204e6f20626f747300000000000000006044820152606401610b49565b600280600b5460ff16600281111561119557611195613804565b146111e25760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610b49565b6008548351600160c01b90910461ffff16146112665760405162461bcd60e51b815260206004820152602760248201527f437564646c7943756273546f6b656e3a20496e76616c6964206e756d6265722060448201527f6f662063756273000000000000000000000000000000000000000000000000006064820152608401610b49565b60085461014d600160d01b90910461ffff16106112eb5760405162461bcd60e51b815260206004820152602660248201527f437564646c7943756273546f6b656e3a20466f73746572206c696d697420657860448201527f63656564656400000000000000000000000000000000000000000000000000006064820152608401610b49565b60005b60085461ffff600160c01b909104811690821610156113af57336001600160a01b031661133b858361ffff168151811061132a5761132a613a8d565b602002602001015161ffff166115c9565b6001600160a01b03161461139d5760405162461bcd60e51b815260206004820152602360248201527f437564646c7943756273546f6b656e3a204d7573742062652063756273206f776044820152623732b960e91b6064820152608401610b49565b806113a781613a6b565b9150506112ee565b5061144533846000815181106113c7576113c7613a8d565b602002602001015160405160200161142292919060609290921b6bffffffffffffffffffffffff1916825260f01b7fffff00000000000000000000000000000000000000000000000000000000000016601482015260160190565b60408051601f1981840301815291905260095484906001600160a01b0316611842565b61149d5760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a205369676e6174757265206e6f742076604482015263185b1a5960e21b6064820152608401610b49565b60005b60085461ffff600160c01b909104811690821610156114f1576114df848261ffff16815181106114d2576114d2613a8d565b60200260200101516127e3565b806114e981613a6b565b9150506114a0565b5060088054600160d01b900461ffff1690601a61150d83613a6b565b825461ffff9182166101009390930a9283029190920219909116179055506040517fff6438c2000000000000000000000000000000000000000000000000000000008152600160048201523360248201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ff6438c290604401600060405180830381600087803b1580156115ac57600080fd5b505af11580156115c0573d6000803e3d6000fd5b50505050505050565b60006115d482612971565b5192915050565b600c80546115e890613990565b80601f016020809104026020016040519081016040528092919081815260200182805461161490613990565b80156116615780601f1061163657610100808354040283529160200191611661565b820191906000526020600020905b81548152906001019060200180831161164457829003601f168201915b505050505081565b6000546001600160a01b031633146116b15760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160a01b038216611709576040516323d3ad8160e21b815260040160405180910390fd5b6000805b60005461ffff600160a01b9091048116908216101561176c57836001600160a01b031661173d8261ffff166115c9565b6001600160a01b0316141561175a578161175681613a6b565b9250505b8061176481613a6b565b91505061170d565b5061ffff1692915050565b6000546001600160a01b031633146117bf5760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6117c96000612aa6565b565b600d80546115e890613990565b6000546001600160a01b031633146118205760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6008805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6000816001600160a01b03166118b6846118b087805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612b03565b6001600160a01b031614949350505050565b606060006118d5836116e0565b9050806118f65760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff81111561191157611911613564565b60405190808252806020026020018201604052801561193a578160200160208202803683370190505b5090506000805b60005461ffff600160a01b90910481169082161015610e875761ffff8116600090815260036020526040902054600160e01b900460ff161580156119a25750856001600160a01b03166119978261ffff166115c9565b6001600160a01b0316145b156119e8578061ffff168383815181106119be576119be613a8d565b6020908102919091010152816119d381613a50565b925050838214156119e8575090949350505050565b806119f281613a6b565b915050611941565b6000546001600160a01b03163314611a425760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6001600160a01b038216611a985760405162461bcd60e51b815260206004820152601560248201527f50617961626c653a205a65726f206164647265737300000000000000000000006044820152606401610b49565b610efc8282612b1f565b6060600280546109a290613990565b6001600160a01b038216331415611adb5760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b333214611b965760405162461bcd60e51b815260206004820152601860248201527f437564646c7943756273546f6b656e3a204e6f20626f747300000000000000006044820152606401610b49565b600280600b5460ff166002811115611bb057611bb0613804565b14611bfd5760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610b49565b60085461029a90611c1a908490600160b01b900461ffff166139e1565b61ffff1610611c915760405162461bcd60e51b815260206004820152603260248201527f437564646c7943756273546f6b656e3a2050757263686173652065786365656460448201527f7320617661696c61626c6520746f6b656e7300000000000000000000000000006064820152608401610b49565b600361ffff831610611cf85760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2045786365656473207472616e7361636044820152691d1a5bdb881b1a5b5a5d60b21b6064820152608401610b49565b6008546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116916323b872dd91339190811690611d4a90879061ffff600160a01b90910416613aa3565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015261ffff166044820152606401602060405180830381600087803b158015611d9d57600080fd5b505af1158015611db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd59190613acd565b5081600860168282829054906101000a900461ffff16611df591906139e1565b92506101000a81548161ffff021916908361ffff160217905550610efc33836124bc565b611e248484846124d6565b6001600160a01b0383163b15158015611e465750611e4484848484612bd3565b155b15611e64576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611e726133a2565b6040805160808101909152600b54819060ff166002811115611e9657611e96613804565b8152602001611ea860016103e9613aea565b61ffff9081168252600054602090920191600160b01b81048216600160a01b9091048216031681526001600160a01b039093166000908152600a602090815260409091205461ffff169301929092525090565b6060611f068261240f565b611f785760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b49565b6000600c8054611f8790613990565b90501161201e57600d8054611f9b90613990565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc790613990565b80156120145780601f10611fe957610100808354040283529160200191612014565b820191906000526020600020905b815481529060010190602001808311611ff757829003601f168201915b505050505061098d565b600c61202983612ccb565b60405160200161203a929190613b29565b60405160208183030381529060405292915050565b6000546001600160a01b031633146120975760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6008805461ffff909216600160c01b027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b0316331461211b5760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b816103e98161213560005461ffff600160a01b9091041690565b61213f91906139e1565b61ffff16106121a25760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610b49565b610af982846124bc565b6000546001600160a01b031633146121f45760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6001600160a01b0381166122705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b49565b61227981612aa6565b50565b6000546001600160a01b031633146122c45760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b600b805482919060ff191660018360028111156122e3576122e3613804565b021790555050565b61ffff81166000908152600360209081526040808320815160608101835290546001600160a01b0381168252600160a01b810467ffffffffffffffff1693820193909352600160e01b90920460ff161580159183019190915261236157604051636f96cda160e11b815260040160405180910390fd5b80516001600160a01b03166115d45760405163a47c070d60e01b815260040160405180910390fd5b60006001600160e01b031982166380ac58cd60e01b14806123ba57506001600160e01b03198216635b5e139f60e01b145b8061098d57506301ffc9a760e01b6001600160e01b031983161461098d565b60006001600160e01b0319821663152a902d60e11b148061098d57506001600160e01b031982166301ffc9a760e01b1492915050565b6000805461ffff600160a01b909104811690831610801561098d57505061ffff16600090815260036020526040902054600160e01b900460ff161590565b61ffff8216600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388811691821790925591519192908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b610efc828260405180602001604052806000815250612de1565b60006124e58261ffff16612971565b80519091506000906001600160a01b0316336001600160a01b031614806125135750815161251390336108a5565b8061253257503361252761ffff8516610a25565b6001600160a01b0316145b90508061255257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146125875760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166125ae57604051633a954ecd60e21b815260040160405180910390fd5b6125be600084846000015161244d565b61ffff83811660009081526003602052604080822080546001600160a01b038981166001600160e01b031990921691909117600160a01b4267ffffffffffffffff1602179091556001870193841683529120541661267c5760005461ffff600160a01b9091048116908216101561267c57825161ffff8216600090815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b508261ffff16846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b8047101561271a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b49565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612767576040519150601f19603f3d011682016040523d82523d6000602084013e61276c565b606091505b5050905080610af95760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b49565b60006127f28261ffff16612971565b9050612804600083836000015161244d565b805161ffff80841660009081526003602052604080822080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff4216600160a01b026001600160e01b03199092166001600160a01b03978816179190911716600160e01b1790556001860192831682529020549091166128ed5760005461ffff600160a01b909104811690821610156128ed57815161ffff8216600090815260036020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405161ffff8416916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060008054600161ffff600160b01b80840482169290920116027fffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffff909116179055565b60408051606081018252600080825260208201819052918101919091528160005461ffff600160a01b90910481169082161015612a8d5761ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a8b5780516001600160a01b031615612a1c579392505050565b506000190161ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a86579392505050565b612a1c565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000612b128585612dee565b915091506118ee81612e5e565b612710811115612b715760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610b49565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c08903390899088908890600401613bfc565b602060405180830381600087803b158015612c2257600080fd5b505af1925050508015612c52575060408051601f3d908101601f19168201909252612c4f91810190613c38565b60015b612cad573d808015612c80576040519150601f19603f3d011682016040523d82523d6000602084013e612c85565b606091505b508051612ca5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612cef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d195780612d0381613a50565b9150612d129050600a83613a3c565b9150612cf3565b60008167ffffffffffffffff811115612d3457612d34613564565b6040519080825280601f01601f191660200182016040528015612d5e576020820181803683370190505b5090505b8415612cc357612d73600183613c55565b9150612d80600a86613c6c565b612d8b906030613c80565b60f81b818381518110612da057612da0613a8d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612dda600a86613a3c565b9450612d62565b610af98383836001613019565b600080825160411415612e255760208301516040840151606085015160001a612e19878285856131e9565b94509450505050612e57565b825160401415612e4f5760208301516040840151612e448683836132d6565b935093505050612e57565b506000905060025b9250929050565b6000816004811115612e7257612e72613804565b1415612e7b5750565b6001816004811115612e8f57612e8f613804565b1415612edd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b49565b6002816004811115612ef157612ef1613804565b1415612f3f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b49565b6003816004811115612f5357612f53613804565b1415612fac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b49565b6004816004811115612fc057612fc0613804565b14156122795760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b49565b600054600160a01b900461ffff166001600160a01b03851661304d57604051622e076360e81b815260040160405180910390fd5b61ffff841661306f5760405163b562e8dd60e01b815260040160405180910390fd5b61ffff81166000908152600360205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b03881617179055808481018380156130c957506001600160a01b0387163b15155b15613170575b60405161ffff8316906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131226000888480600101955061ffff1688612bd3565b61313f576040516368d2bf6b60e11b815260040160405180910390fd5b8061ffff168261ffff1614156130cf5760005461ffff848116600160a01b909204161461316b57600080fd5b6131c2565b5b604051600183019261ffff16906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061ffff168261ffff161415613171575b506000805461ffff92909216600160a01b0261ffff60a01b199092169190911790556126c3565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561322057506000905060036132cd565b8460ff16601b1415801561323857508460ff16601c14155b1561324957506000905060046132cd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561329d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132c6576000600192509250506132cd565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613310878288856131e9565b935093505050935093915050565b82805461332a90613990565b90600052602060002090601f01602090048101928261334c5760008555613392565b82601f1061336557805160ff1916838001178555613392565b82800160010185558215613392579182015b82811115613392578251825591602001919060010190613377565b5061339e9291506133c0565b5090565b60405180608001604052806004906020820280368337509192915050565b5b8082111561339e57600081556001016133c1565b6001600160e01b03198116811461227957600080fd5b6000602082840312156133fd57600080fd5b8135613408816133d5565b9392505050565b60005b8381101561342a578181015183820152602001613412565b83811115611e645750506000910152565b6000815180845261345381602086016020860161340f565b601f01601f19169290920160200192915050565b602081526000613408602083018461343b565b60006020828403121561348c57600080fd5b5035919050565b80356001600160a01b03811681146134aa57600080fd5b919050565b600080604083850312156134c257600080fd5b6134cb83613493565b946020939093013593505050565b803561ffff811681146134aa57600080fd5b6000602082840312156134fd57600080fd5b613408826134d9565b60008060006060848603121561351b57600080fd5b61352484613493565b925061353260208501613493565b9150604084013590509250925092565b6000806040838503121561355557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156135a3576135a3613564565b604052919050565b600067ffffffffffffffff8311156135c5576135c5613564565b6135d8601f8401601f191660200161357a565b90508281528383830111156135ec57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561361557600080fd5b813567ffffffffffffffff81111561362c57600080fd5b8201601f8101841361363d57600080fd5b612cc3848235602084016135ab565b600082601f83011261365d57600080fd5b613408838335602085016135ab565b6000806040838503121561367f57600080fd5b823567ffffffffffffffff8082111561369757600080fd5b818501915085601f8301126136ab57600080fd5b81356020828211156136bf576136bf613564565b8160051b6136ce82820161357a565b928352848101820192828101908a8511156136e857600080fd5b958301955b8487101561370d576136fe876134d9565b825295830195908301906136ed565b975050508601359250508082111561372457600080fd5b50610ddd8582860161364c565b60006020828403121561374357600080fd5b61340882613493565b60008060006060848603121561376157600080fd5b833567ffffffffffffffff8082111561377957600080fd5b6137858783880161364c565b9450602086013591508082111561379b57600080fd5b506137a88682870161364c565b9250506137b760408501613493565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156137f8578351835292840192918401916001016137dc565b50909695505050505050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061383c57634e487b7160e01b600052602160045260246000fd5b91905290565b801515811461227957600080fd5b6000806040838503121561386357600080fd5b61386c83613493565b9150602083013561387c81613842565b809150509250929050565b6000806000806080858703121561389d57600080fd5b6138a685613493565b93506138b460208601613493565b925060408501359150606085013567ffffffffffffffff8111156138d757600080fd5b6138e38782880161364c565b91505092959194509250565b60808101818360005b60048110156139175781518352602092830192909101906001016138f8565b50505092915050565b6000806040838503121561393357600080fd5b61393c83613493565b915061394a60208401613493565b90509250929050565b6000806040838503121561396657600080fd5b61393c836134d9565b60006020828403121561398157600080fd5b81356003811061340857600080fd5b600181811c908216806139a457607f821691505b602082108114156139c557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168185168083038211156139fe576139fe6139cb565b01949350505050565b6000816000190483118215151615613a2157613a216139cb565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a4b57613a4b613a26565b500490565b6000600019821415613a6457613a646139cb565b5060010190565b600061ffff80831681811415613a8357613a836139cb565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff80831681851681830481118215151615613ac457613ac46139cb565b02949350505050565b600060208284031215613adf57600080fd5b815161340881613842565b600061ffff83811690831681811015613b0557613b056139cb565b039392505050565b60008151613b1f81856020860161340f565b9290920192915050565b600080845481600182811c915080831680613b4557607f831692505b6020808410821415613b6557634e487b7160e01b86526022600452602486fd5b818015613b795760018114613b8a57613bb7565b60ff19861689528489019650613bb7565b60008b81526020902060005b86811015613baf5781548b820152908501908301613b96565b505084890196505b505050505050613bf3613bca8286613b0d565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c2e608083018461343b565b9695505050505050565b600060208284031215613c4a57600080fd5b8151613408816133d5565b600082821015613c6757613c676139cb565b500390565b600082613c7b57613c7b613a26565b500690565b60008219821115613c9357613c936139cb565b50019056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a00000000000000000000000044da528cde933688dffd4317774fd474298a356f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9

Deployed Bytecode

0x6080604052600436106102fd5760003560e01c80637313cba91161018f578063b87cd3a9116100e1578063e985e9c51161008a578063f2fde38b11610064578063f2fde38b14610913578063f7b4c18714610933578063f8d0762e1461095357600080fd5b8063e985e9c51461088a578063ee0db0ef146108d3578063f1545cf3146108f357600080fd5b8063c0a544be116100bb578063c0a544be14610814578063c87b56dd14610848578063d9ea97121461086857600080fd5b8063b87cd3a9146107a7578063b88d4fde146107c7578063bbea7eef146107e757600080fd5b806389e75812116101435780638e230f831161011d5780638e230f831461073e57806395d89b4114610772578063a22cb4651461078757600080fd5b806389e75812146106de5780638c7ea24b146107005780638da5cb5b1461072057600080fd5b80638336f274116101745780638336f2741461066a5780638462151c1461068a57806385209ee0146106b757600080fd5b80637313cba9146106355780637514023f1461064a57600080fd5b80633574a2dd1161025357806359543f79116101fc5780636c19e783116101d65780636c19e783146105e057806370a0823114610600578063715018a61461062057600080fd5b806359543f791461058b5780636352211e146105ab5780636c0360eb146105cb57600080fd5b80634f6ccce71161022d5780634f6ccce71461052957806355f804b314610549578063570fde4f1461056957600080fd5b80633574a2dd146104d45780633ccfd60b146104f457806342842e0e1461050957600080fd5b806316755b57116102b557806323b872dd1161028f57806323b872dd146104555780632a55205a146104755780632f745c59146104b457600080fd5b806316755b57146103e857806318160ddd146103fb578063238ac9331461043557600080fd5b806306fdde03116102e657806306fdde031461036c578063081812fc1461038e578063095ea7b3146103c657600080fd5b806301ffc9a71461030257806305a5b0e214610337575b600080fd5b34801561030e57600080fd5b5061032261031d3660046133eb565b610973565b60405190151581526020015b60405180910390f35b34801561034357600080fd5b5060085461035990600160b01b900461ffff1681565b60405161ffff909116815260200161032e565b34801561037857600080fd5b50610381610993565b60405161032e9190613467565b34801561039a57600080fd5b506103ae6103a936600461347a565b610a25565b6040516001600160a01b03909116815260200161032e565b3480156103d257600080fd5b506103e66103e13660046134af565b610a70565b005b6103e66103f63660046134eb565b610afe565b34801561040757600080fd5b5060005461ffff600160b01b82048116600160a01b909204811691909103165b60405190815260200161032e565b34801561044157600080fd5b506009546103ae906001600160a01b031681565b34801561046157600080fd5b506103e6610470366004613506565b610d87565b34801561048157600080fd5b50610495610490366004613542565b610d92565b604080516001600160a01b03909316835260208301919091520161032e565b3480156104c057600080fd5b506104276104cf3660046134af565b610de7565b3480156104e057600080fd5b506103e66104ef366004613603565b610ea1565b34801561050057600080fd5b506103e6610f00565b34801561051557600080fd5b506103e6610524366004613506565b611043565b34801561053557600080fd5b5061042761054436600461347a565b61105e565b34801561055557600080fd5b506103e6610564366004613603565b6110d1565b34801561057557600080fd5b5060085461035990600160c01b900461ffff1681565b34801561059757600080fd5b506103e66105a636600461366c565b61112c565b3480156105b757600080fd5b506103ae6105c636600461347a565b6115c9565b3480156105d757600080fd5b506103816115db565b3480156105ec57600080fd5b506103e66105fb366004613731565b611669565b34801561060c57600080fd5b5061042761061b366004613731565b6116e0565b34801561062c57600080fd5b506103e6611777565b34801561064157600080fd5b506103816117cb565b34801561065657600080fd5b506103e66106653660046134eb565b6117d8565b34801561067657600080fd5b5061032261068536600461374c565b611842565b34801561069657600080fd5b506106aa6106a5366004613731565b6118c8565b60405161032e91906137c0565b3480156106c357600080fd5b50600b546106d19060ff1681565b60405161032e919061381a565b3480156106ea57600080fd5b5060085461035990600160d01b900461ffff1681565b34801561070c57600080fd5b506103e661071b3660046134af565b6119fa565b34801561072c57600080fd5b506000546001600160a01b03166103ae565b34801561074a57600080fd5b506103ae7f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d981565b34801561077e57600080fd5b50610381611aa2565b34801561079357600080fd5b506103e66107a2366004613850565b611ab1565b3480156107b357600080fd5b506103e66107c23660046134eb565b611b47565b3480156107d357600080fd5b506103e66107e2366004613887565b611e19565b3480156107f357600080fd5b50610807610802366004613731565b611e6a565b60405161032e91906138ef565b34801561082057600080fd5b506103ae7f00000000000000000000000044da528cde933688dffd4317774fd474298a356f81565b34801561085457600080fd5b5061038161086336600461347a565b611efb565b34801561087457600080fd5b5060085461035990600160a01b900461ffff1681565b34801561089657600080fd5b506103226108a5366004613920565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108df57600080fd5b506103e66108ee3660046134eb565b61204f565b3480156108ff57600080fd5b506103e661090e366004613953565b6120d3565b34801561091f57600080fd5b506103e661092e366004613731565b6121ac565b34801561093f57600080fd5b506103e661094e36600461396f565b61227c565b34801561095f57600080fd5b506103ae61096e36600461347a565b6122eb565b600061097e82612389565b8061098d575061098d826123d9565b92915050565b6060600180546109a290613990565b80601f01602080910402602001604051908101604052809291908181526020018280546109ce90613990565b8015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b5050505050905090565b600081610a318161240f565b610a4e576040516333d1c03960e21b815260040160405180910390fd5b61ffff166000908152600460205260409020546001600160a01b031692915050565b6000610a7b826115c9565b9050806001600160a01b0316836001600160a01b03161415610ab05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ad05750610ace81336108a5565b155b15610aee576040516367d9dca160e11b815260040160405180910390fd5b610af983838361244d565b505050565b333214610b525760405162461bcd60e51b815260206004820152601860248201527f437564646c7943756273546f6b656e3a204e6f20626f7473000000000000000060448201526064015b60405180910390fd5b600180600b5460ff166002811115610b6c57610b6c613804565b14610bb95760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610b49565b816103e981610bd360005461ffff600160a01b9091041690565b610bdd91906139e1565b61ffff1610610c405760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610b49565b600361ffff841610610ca75760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2045786365656473207472616e7361636044820152691d1a5bdb881b1a5b5a5d60b21b6064820152608401610b49565b336000908152600a6020526040902054600790610cc990859061ffff166139e1565b61ffff1610610d405760405162461bcd60e51b815260206004820152602560248201527f437564646c7943756273546f6b656e3a20457863656564732077616c6c65742060448201527f6c696d69740000000000000000000000000000000000000000000000000000006064820152608401610b49565b336000908152600a602052604081208054859290610d6390849061ffff166139e1565b92506101000a81548161ffff021916908361ffff160217905550610af933846124bc565b610af98383836124d6565b604080518082019091526006546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610dd39086613a07565b610ddd9190613a3c565b9150509250929050565b600080805b60005461ffff600160a01b90910481169082161015610e875761ffff8116600090815260036020526040902054600160e01b900460ff16158015610e4d5750846001600160a01b0316610e428261ffff166115c9565b6001600160a01b0316145b15610e755783821415610e675761ffff16915061098d9050565b81610e7181613a50565b9250505b80610e7f81613a6b565b915050610dec565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b03163314610ee95760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b8051610efc90600d90602084019061331e565b5050565b60026007541415610f535760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b49565b60026007556000546001600160a01b0316331480610f84575033734c54b734471ef8080c5c252e5588f625d2e5e93e145b610fd05760405162461bcd60e51b815260206004820152601860248201527f50617961626c653a204c6f636b656420776974686472617700000000000000006044820152606401610b49565b6000610fdd600547613a3c565b9050611007738bffc7415b1f8cea3bf9e1f36ebb2ff15d175cf5611002836002613a07565b6126ca565b611025734c54b734471ef8080c5c252e5588f625d2e5e93e826126ca565b60085461103b906001600160a01b0316476126ca565b506001600755565b610af983838360405180602001604052806000815250611e19565b600080805b60005461ffff600160a01b90910481169082161015610e875761ffff8116600090815260036020526040902054600160e01b900460ff166110bf57838214156110b15761ffff169392505050565b816110bb81613a50565b9250505b806110c981613a6b565b915050611063565b6000546001600160a01b031633146111195760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b8051610efc90600c90602084019061331e565b33321461117b5760405162461bcd60e51b815260206004820152601860248201527f437564646c7943756273546f6b656e3a204e6f20626f747300000000000000006044820152606401610b49565b600280600b5460ff16600281111561119557611195613804565b146111e25760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610b49565b6008548351600160c01b90910461ffff16146112665760405162461bcd60e51b815260206004820152602760248201527f437564646c7943756273546f6b656e3a20496e76616c6964206e756d6265722060448201527f6f662063756273000000000000000000000000000000000000000000000000006064820152608401610b49565b60085461014d600160d01b90910461ffff16106112eb5760405162461bcd60e51b815260206004820152602660248201527f437564646c7943756273546f6b656e3a20466f73746572206c696d697420657860448201527f63656564656400000000000000000000000000000000000000000000000000006064820152608401610b49565b60005b60085461ffff600160c01b909104811690821610156113af57336001600160a01b031661133b858361ffff168151811061132a5761132a613a8d565b602002602001015161ffff166115c9565b6001600160a01b03161461139d5760405162461bcd60e51b815260206004820152602360248201527f437564646c7943756273546f6b656e3a204d7573742062652063756273206f776044820152623732b960e91b6064820152608401610b49565b806113a781613a6b565b9150506112ee565b5061144533846000815181106113c7576113c7613a8d565b602002602001015160405160200161142292919060609290921b6bffffffffffffffffffffffff1916825260f01b7fffff00000000000000000000000000000000000000000000000000000000000016601482015260160190565b60408051601f1981840301815291905260095484906001600160a01b0316611842565b61149d5760405162461bcd60e51b8152602060048201526024808201527f437564646c7943756273546f6b656e3a205369676e6174757265206e6f742076604482015263185b1a5960e21b6064820152608401610b49565b60005b60085461ffff600160c01b909104811690821610156114f1576114df848261ffff16815181106114d2576114d2613a8d565b60200260200101516127e3565b806114e981613a6b565b9150506114a0565b5060088054600160d01b900461ffff1690601a61150d83613a6b565b825461ffff9182166101009390930a9283029190920219909116179055506040517fff6438c2000000000000000000000000000000000000000000000000000000008152600160048201523360248201526001600160a01b037f000000000000000000000000fd2043f00450ed34589dffedc85875b9ee9855d9169063ff6438c290604401600060405180830381600087803b1580156115ac57600080fd5b505af11580156115c0573d6000803e3d6000fd5b50505050505050565b60006115d482612971565b5192915050565b600c80546115e890613990565b80601f016020809104026020016040519081016040528092919081815260200182805461161490613990565b80156116615780601f1061163657610100808354040283529160200191611661565b820191906000526020600020905b81548152906001019060200180831161164457829003601f168201915b505050505081565b6000546001600160a01b031633146116b15760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006001600160a01b038216611709576040516323d3ad8160e21b815260040160405180910390fd5b6000805b60005461ffff600160a01b9091048116908216101561176c57836001600160a01b031661173d8261ffff166115c9565b6001600160a01b0316141561175a578161175681613a6b565b9250505b8061176481613a6b565b91505061170d565b5061ffff1692915050565b6000546001600160a01b031633146117bf5760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6117c96000612aa6565b565b600d80546115e890613990565b6000546001600160a01b031633146118205760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6008805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6000816001600160a01b03166118b6846118b087805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612b03565b6001600160a01b031614949350505050565b606060006118d5836116e0565b9050806118f65760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff81111561191157611911613564565b60405190808252806020026020018201604052801561193a578160200160208202803683370190505b5090506000805b60005461ffff600160a01b90910481169082161015610e875761ffff8116600090815260036020526040902054600160e01b900460ff161580156119a25750856001600160a01b03166119978261ffff166115c9565b6001600160a01b0316145b156119e8578061ffff168383815181106119be576119be613a8d565b6020908102919091010152816119d381613a50565b925050838214156119e8575090949350505050565b806119f281613a6b565b915050611941565b6000546001600160a01b03163314611a425760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6001600160a01b038216611a985760405162461bcd60e51b815260206004820152601560248201527f50617961626c653a205a65726f206164647265737300000000000000000000006044820152606401610b49565b610efc8282612b1f565b6060600280546109a290613990565b6001600160a01b038216331415611adb5760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b333214611b965760405162461bcd60e51b815260206004820152601860248201527f437564646c7943756273546f6b656e3a204e6f20626f747300000000000000006044820152606401610b49565b600280600b5460ff166002811115611bb057611bb0613804565b14611bfd5760405162461bcd60e51b815260206004820152601e60248201527f437564646c7943756273546f6b656e3a20496e76616c696420737461746500006044820152606401610b49565b60085461029a90611c1a908490600160b01b900461ffff166139e1565b61ffff1610611c915760405162461bcd60e51b815260206004820152603260248201527f437564646c7943756273546f6b656e3a2050757263686173652065786365656460448201527f7320617661696c61626c6520746f6b656e7300000000000000000000000000006064820152608401610b49565b600361ffff831610611cf85760405162461bcd60e51b815260206004820152602a60248201527f437564646c7943756273546f6b656e3a2045786365656473207472616e7361636044820152691d1a5bdb881b1a5b5a5d60b21b6064820152608401610b49565b6008546001600160a01b037f00000000000000000000000044da528cde933688dffd4317774fd474298a356f8116916323b872dd91339190811690611d4a90879061ffff600160a01b90910416613aa3565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015261ffff166044820152606401602060405180830381600087803b158015611d9d57600080fd5b505af1158015611db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd59190613acd565b5081600860168282829054906101000a900461ffff16611df591906139e1565b92506101000a81548161ffff021916908361ffff160217905550610efc33836124bc565b611e248484846124d6565b6001600160a01b0383163b15158015611e465750611e4484848484612bd3565b155b15611e64576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b611e726133a2565b6040805160808101909152600b54819060ff166002811115611e9657611e96613804565b8152602001611ea860016103e9613aea565b61ffff9081168252600054602090920191600160b01b81048216600160a01b9091048216031681526001600160a01b039093166000908152600a602090815260409091205461ffff169301929092525090565b6060611f068261240f565b611f785760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b49565b6000600c8054611f8790613990565b90501161201e57600d8054611f9b90613990565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc790613990565b80156120145780601f10611fe957610100808354040283529160200191612014565b820191906000526020600020905b815481529060010190602001808311611ff757829003601f168201915b505050505061098d565b600c61202983612ccb565b60405160200161203a929190613b29565b60405160208183030381529060405292915050565b6000546001600160a01b031633146120975760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6008805461ffff909216600160c01b027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000546001600160a01b0316331461211b5760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b816103e98161213560005461ffff600160a01b9091041690565b61213f91906139e1565b61ffff16106121a25760405162461bcd60e51b815260206004820152602960248201527f437564646c7943756273546f6b656e3a204578636565647320617661696c61626044820152686c6520746f6b656e7360b81b6064820152608401610b49565b610af982846124bc565b6000546001600160a01b031633146121f45760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b6001600160a01b0381166122705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b49565b61227981612aa6565b50565b6000546001600160a01b031633146122c45760405162461bcd60e51b81526020600482018190526024820152600080516020613c998339815191526044820152606401610b49565b600b805482919060ff191660018360028111156122e3576122e3613804565b021790555050565b61ffff81166000908152600360209081526040808320815160608101835290546001600160a01b0381168252600160a01b810467ffffffffffffffff1693820193909352600160e01b90920460ff161580159183019190915261236157604051636f96cda160e11b815260040160405180910390fd5b80516001600160a01b03166115d45760405163a47c070d60e01b815260040160405180910390fd5b60006001600160e01b031982166380ac58cd60e01b14806123ba57506001600160e01b03198216635b5e139f60e01b145b8061098d57506301ffc9a760e01b6001600160e01b031983161461098d565b60006001600160e01b0319821663152a902d60e11b148061098d57506001600160e01b031982166301ffc9a760e01b1492915050565b6000805461ffff600160a01b909104811690831610801561098d57505061ffff16600090815260036020526040902054600160e01b900460ff161590565b61ffff8216600081815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0388811691821790925591519192908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b610efc828260405180602001604052806000815250612de1565b60006124e58261ffff16612971565b80519091506000906001600160a01b0316336001600160a01b031614806125135750815161251390336108a5565b8061253257503361252761ffff8516610a25565b6001600160a01b0316145b90508061255257604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146125875760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166125ae57604051633a954ecd60e21b815260040160405180910390fd5b6125be600084846000015161244d565b61ffff83811660009081526003602052604080822080546001600160a01b038981166001600160e01b031990921691909117600160a01b4267ffffffffffffffff1602179091556001870193841683529120541661267c5760005461ffff600160a01b9091048116908216101561267c57825161ffff8216600090815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b508261ffff16846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b8047101561271a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b49565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612767576040519150601f19603f3d011682016040523d82523d6000602084013e61276c565b606091505b5050905080610af95760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b49565b60006127f28261ffff16612971565b9050612804600083836000015161244d565b805161ffff80841660009081526003602052604080822080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff4216600160a01b026001600160e01b03199092166001600160a01b03978816179190911716600160e01b1790556001860192831682529020549091166128ed5760005461ffff600160a01b909104811690821610156128ed57815161ffff8216600090815260036020908152604090912080549185015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405161ffff8416916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060008054600161ffff600160b01b80840482169290920116027fffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffff909116179055565b60408051606081018252600080825260208201819052918101919091528160005461ffff600160a01b90910481169082161015612a8d5761ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a8b5780516001600160a01b031615612a1c579392505050565b506000190161ffff8116600090815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a86579392505050565b612a1c565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000612b128585612dee565b915091506118ee81612e5e565b612710811115612b715760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610b49565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c08903390899088908890600401613bfc565b602060405180830381600087803b158015612c2257600080fd5b505af1925050508015612c52575060408051601f3d908101601f19168201909252612c4f91810190613c38565b60015b612cad573d808015612c80576040519150601f19603f3d011682016040523d82523d6000602084013e612c85565b606091505b508051612ca5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612cef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d195780612d0381613a50565b9150612d129050600a83613a3c565b9150612cf3565b60008167ffffffffffffffff811115612d3457612d34613564565b6040519080825280601f01601f191660200182016040528015612d5e576020820181803683370190505b5090505b8415612cc357612d73600183613c55565b9150612d80600a86613c6c565b612d8b906030613c80565b60f81b818381518110612da057612da0613a8d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612dda600a86613a3c565b9450612d62565b610af98383836001613019565b600080825160411415612e255760208301516040840151606085015160001a612e19878285856131e9565b94509450505050612e57565b825160401415612e4f5760208301516040840151612e448683836132d6565b935093505050612e57565b506000905060025b9250929050565b6000816004811115612e7257612e72613804565b1415612e7b5750565b6001816004811115612e8f57612e8f613804565b1415612edd5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b49565b6002816004811115612ef157612ef1613804565b1415612f3f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b49565b6003816004811115612f5357612f53613804565b1415612fac5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b49565b6004816004811115612fc057612fc0613804565b14156122795760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b49565b600054600160a01b900461ffff166001600160a01b03851661304d57604051622e076360e81b815260040160405180910390fd5b61ffff841661306f5760405163b562e8dd60e01b815260040160405180910390fd5b61ffff81166000908152600360205260409020805467ffffffffffffffff4216600160a01b026001600160e01b03199091166001600160a01b03881617179055808481018380156130c957506001600160a01b0387163b15155b15613170575b60405161ffff8316906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131226000888480600101955061ffff1688612bd3565b61313f576040516368d2bf6b60e11b815260040160405180910390fd5b8061ffff168261ffff1614156130cf5760005461ffff848116600160a01b909204161461316b57600080fd5b6131c2565b5b604051600183019261ffff16906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061ffff168261ffff161415613171575b506000805461ffff92909216600160a01b0261ffff60a01b199092169190911790556126c3565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561322057506000905060036132cd565b8460ff16601b1415801561323857508460ff16601c14155b1561324957506000905060046132cd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561329d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132c6576000600192509250506132cd565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613310878288856131e9565b935093505050935093915050565b82805461332a90613990565b90600052602060002090601f01602090048101928261334c5760008555613392565b82601f1061336557805160ff1916838001178555613392565b82800160010185558215613392579182015b82811115613392578251825591602001919060010190613377565b5061339e9291506133c0565b5090565b60405180608001604052806004906020820280368337509192915050565b5b8082111561339e57600081556001016133c1565b6001600160e01b03198116811461227957600080fd5b6000602082840312156133fd57600080fd5b8135613408816133d5565b9392505050565b60005b8381101561342a578181015183820152602001613412565b83811115611e645750506000910152565b6000815180845261345381602086016020860161340f565b601f01601f19169290920160200192915050565b602081526000613408602083018461343b565b60006020828403121561348c57600080fd5b5035919050565b80356001600160a01b03811681146134aa57600080fd5b919050565b600080604083850312156134c257600080fd5b6134cb83613493565b946020939093013593505050565b803561ffff811681146134aa57600080fd5b6000602082840312156134fd57600080fd5b613408826134d9565b60008060006060848603121561351b57600080fd5b61352484613493565b925061353260208501613493565b9150604084013590509250925092565b6000806040838503121561355557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156135a3576135a3613564565b604052919050565b600067ffffffffffffffff8311156135c5576135c5613564565b6135d8601f8401601f191660200161357a565b90508281528383830111156135ec57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561361557600080fd5b813567ffffffffffffffff81111561362c57600080fd5b8201601f8101841361363d57600080fd5b612cc3848235602084016135ab565b600082601f83011261365d57600080fd5b613408838335602085016135ab565b6000806040838503121561367f57600080fd5b823567ffffffffffffffff8082111561369757600080fd5b818501915085601f8301126136ab57600080fd5b81356020828211156136bf576136bf613564565b8160051b6136ce82820161357a565b928352848101820192828101908a8511156136e857600080fd5b958301955b8487101561370d576136fe876134d9565b825295830195908301906136ed565b975050508601359250508082111561372457600080fd5b50610ddd8582860161364c565b60006020828403121561374357600080fd5b61340882613493565b60008060006060848603121561376157600080fd5b833567ffffffffffffffff8082111561377957600080fd5b6137858783880161364c565b9450602086013591508082111561379b57600080fd5b506137a88682870161364c565b9250506137b760408501613493565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156137f8578351835292840192918401916001016137dc565b50909695505050505050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061383c57634e487b7160e01b600052602160045260246000fd5b91905290565b801515811461227957600080fd5b6000806040838503121561386357600080fd5b61386c83613493565b9150602083013561387c81613842565b809150509250929050565b6000806000806080858703121561389d57600080fd5b6138a685613493565b93506138b460208601613493565b925060408501359150606085013567ffffffffffffffff8111156138d757600080fd5b6138e38782880161364c565b91505092959194509250565b60808101818360005b60048110156139175781518352602092830192909101906001016138f8565b50505092915050565b6000806040838503121561393357600080fd5b61393c83613493565b915061394a60208401613493565b90509250929050565b6000806040838503121561396657600080fd5b61393c836134d9565b60006020828403121561398157600080fd5b81356003811061340857600080fd5b600181811c908216806139a457607f821691505b602082108114156139c557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168185168083038211156139fe576139fe6139cb565b01949350505050565b6000816000190483118215151615613a2157613a216139cb565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a4b57613a4b613a26565b500490565b6000600019821415613a6457613a646139cb565b5060010190565b600061ffff80831681811415613a8357613a836139cb565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b600061ffff80831681851681830481118215151615613ac457613ac46139cb565b02949350505050565b600060208284031215613adf57600080fd5b815161340881613842565b600061ffff83811690831681811015613b0557613b056139cb565b039392505050565b60008151613b1f81856020860161340f565b9290920192915050565b600080845481600182811c915080831680613b4557607f831692505b6020808410821415613b6557634e487b7160e01b86526022600452602486fd5b818015613b795760018114613b8a57613bb7565b60ff19861689528489019650613bb7565b60008b81526020902060005b86811015613baf5781548b820152908501908301613b96565b505084890196505b505050505050613bf3613bca8286613b0d565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c2e608083018461343b565b9695505050505050565b600060208284031215613c4a57600080fd5b8151613408816133d5565b600082821015613c6757613c676139cb565b500390565b600082613c7b57613c7b613a26565b500690565b60008219821115613c9357613c936139cb565b50019056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a

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.