false
true
0

Contract Address Details

0xe844D8286b3a0be21569d6bb736515Ec13548f05

Contract Name
HyperlinkFactory
Creator
0xdb6c1a–93d4a2 at 0x0b0427–2b4118
Implementation
0x07d820d69d0af386de05d3c792b51aec086a315e
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
80 Transactions
Transfers
0 Transfers
Gas Used
31,455,380
Last Balance Update
26505447
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
HyperlinkFactory




Optimization enabled
true
Compiler version
v0.8.4+commit.c7e474f2




Optimization runs
2000
EVM Version
istanbul




Verified at
2026-05-11T19:05:32.314334Z

contracts/HyperlinkFactory.sol

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/proxy/ClonesUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";




import "./Hyperlink.sol";





contract HyperlinkFactory {

    using SafeMathUpgradeable for uint256;

    uint256 internal constant BASIS_POINTS = 10000; // denominator for calculating percentages



    event HyperlinkCreated(
        address indexed contractAddress,
        address indexed link,
        address indexed primaryRecipient,
        address platform,
        uint256 quantityForSale,
        uint256 salePrice,
        uint256 platformFeeBasisPoints
    );

    address immutable internal implementation;

    constructor() {
        implementation = address(new Hyperlink());
    }
    
    function getImplementation() public view returns (address) {
        return implementation;
    }

    function createHyperlink(
        string calldata tokenMetadata_,
        string calldata contractMetadata_,
        address payable primaryRecipient_,
        uint256 quantityForSale_,
        uint256 salePrice_,
        address payable platform_,
        uint256 platformFeeBasisPoints_,
        address link_
    ) external returns (address) {
        address clone = ClonesUpgradeable.cloneDeterministic(implementation, keccak256(abi.encode(tokenMetadata_)));

        require(platformFeeBasisPoints_ <= BASIS_POINTS, "HyperlinkFactory: platform fee basis points must be less than or equal to contract basis points");

        require(quantityForSale_ > 0, "HyperlinkFactory: must sell at least one edition");

        if (link_ != address(0)) {
            require(
                IERC165Upgradeable(link_).supportsInterface(type(IERC721Upgradeable).interfaceId),
                "HyperlinkFactory: hyperlink does not support ERC721 interfaceID"
            );
        }

        Hyperlink(payable(clone)).initialize( tokenMetadata_, contractMetadata_, primaryRecipient_, quantityForSale_, salePrice_, platform_, platformFeeBasisPoints_, link_);
        emit HyperlinkCreated(clone, link_, primaryRecipient_, platform_, quantityForSale_, salePrice_, platformFeeBasisPoints_);
        return clone;
    }

    function predictEditionAddress(string calldata _tokenMetadata) public view returns (address) {
        return ClonesUpgradeable.predictDeterministicAddress(implementation, keccak256(abi.encode(_tokenMetadata)));
    }
}
        

/extensions/IERC721MetadataUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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);
}
          

/ClonesUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library ClonesUpgradeable {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}
          

/ERC165Upgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}
          

/IERC721Upgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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;
}
          

/SafeMathUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}
          

/ReentrancyGuardUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _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 make 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;
    }
    uint256[49] private __gap;
}
          

/Hyperlink.sol

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { ReentrancyGuardUpgradeable } from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";



contract Hyperlink is Initializable, ReentrancyGuardUpgradeable, ERC721Upgradeable {
    // ========= USING DECLARATIONS =========
    using SafeMathUpgradeable for uint256;
    using AddressUpgradeable for address payable;

    uint256 internal constant BASIS_POINTS = 10000; // denominator for calculating percentages


    // ============== VARIABLES ==============

    // METADATA
    string internal _tokenMetadata;
    string internal _contractMetadata;

    // MONETARY
    address payable internal _primaryRecipient;
    uint256 internal _quantityForSale;
    uint256 internal _salePrice;

    address payable internal _platform;
    uint256 internal _platformFeeBasisPoints;

    // LINK
    address internal _link;

    // SALES STATE
    uint256 internal _numberSold;



    // ============= INITIALIZER =============
    function initialize(
        string calldata tokenMetadata_,
        string calldata contractMetadata_,
        address payable primaryRecipient_,
        uint256 quantityForSale_,
        uint256 salePrice_,
        address payable platform_,
        uint256 platformFeeBasisPoints_,
        address link_
    ) initializer external {
        __ERC721_init("Hyperlink", "HYPERLINK");
        _tokenMetadata = tokenMetadata_;
        _contractMetadata = contractMetadata_;

        _primaryRecipient = primaryRecipient_;
        _quantityForSale = quantityForSale_;
        _salePrice = salePrice_;

        _platform = platform_;
        _platformFeeBasisPoints = platformFeeBasisPoints_;

        _link = link_;
    }

    // ============ CORE FUNCTIONS ============
    function mint() public payable {
        // Check that there are still tokens available to purchase.
        require(
            _numberSold < _quantityForSale,
            "Hyperlink: all editions have already been sold"
        );
        // Check that the sender is paying the correct amount.
        require(
            msg.value == _salePrice,
            "Hyperlink: must send enough to purchase the edition"
        );

        if (_link != address(0)) {
            require(
                IERC721Upgradeable(_link).balanceOf(msg.sender) > 0,
                "Hyperlink: must own the linked edition to mint"
            );
        }


        _numberSold++; // first edition starts at index 1 (more humanly understood)
        _mint(msg.sender, _numberSold);
    }

    function withdraw() public nonReentrant {
        uint256 contractBalance = address(this).balance;

        require(
            contractBalance > 0,
            "Hyperlink: contract balance must be greater than zero"
        );

        uint256 platformFee = contractBalance.mul(_platformFeeBasisPoints) / BASIS_POINTS;
        _primaryRecipient.sendValue(contractBalance.sub(platformFee)); // the rest goes to the fund recipient 
        if (platformFee > 0) {
            _platform.sendValue(platformFee);
        }
    }

    

    // ============ URI FUNCTIONS ============

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(ownerOf(_tokenId) != address(0), "Hyperlink: token has not been sold or does not exist");
        return _tokenMetadata;
    }

    function contractURI() public view returns (string memory) {
        return _contractMetadata;
    }



    function tokenMetadata() public view returns (string memory) {
        return _tokenMetadata;
    }

    function numberSold() public view returns (uint256) {
        return _numberSold;
    }

    function salePrice() public view returns (uint256) {
        return _salePrice;
    }

    function quantityForSale() public view returns (uint256) {
        return _quantityForSale;
    }

    function link() public view returns (address) {
        return _link;
    }

    // receive any royalties 

    receive() external payable {}

    fallback() external payable {}

}
          

/AddressUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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 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);
            }
        }
    }
}
          

/IERC165Upgradeable.sol

// SPDX-License-Identifier: MIT

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

/StringsUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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);
    }
}
          

/IERC721ReceiverUpgradeable.sol

// SPDX-License-Identifier: MIT

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

/ERC721Upgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 virtual override {
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, 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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
    uint256[44] private __gap;
}
          

/Initializable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}
          

/ContextUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}
          

Compiler Settings

{"remappings":[],"optimizer":{"runs":2000,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"contracts/HyperlinkFactory.sol":"HyperlinkFactory"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"HyperlinkCreated","inputs":[{"type":"address","name":"contractAddress","internalType":"address","indexed":true},{"type":"address","name":"link","internalType":"address","indexed":true},{"type":"address","name":"primaryRecipient","internalType":"address","indexed":true},{"type":"address","name":"platform","internalType":"address","indexed":false},{"type":"uint256","name":"quantityForSale","internalType":"uint256","indexed":false},{"type":"uint256","name":"salePrice","internalType":"uint256","indexed":false},{"type":"uint256","name":"platformFeeBasisPoints","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"createHyperlink","inputs":[{"type":"string","name":"tokenMetadata_","internalType":"string"},{"type":"string","name":"contractMetadata_","internalType":"string"},{"type":"address","name":"primaryRecipient_","internalType":"address payable"},{"type":"uint256","name":"quantityForSale_","internalType":"uint256"},{"type":"uint256","name":"salePrice_","internalType":"uint256"},{"type":"address","name":"platform_","internalType":"address payable"},{"type":"uint256","name":"platformFeeBasisPoints_","internalType":"uint256"},{"type":"address","name":"link_","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getImplementation","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"predictEditionAddress","inputs":[{"type":"string","name":"_tokenMetadata","internalType":"string"}]}]
              

Contract Creation Code

0x60a060405234801561001057600080fd5b5060405161001d9061004f565b604051809103906000f080158015610039573d6000803e3d6000fd5b5060601b6001600160601b03191660805261005c565b6121ff8061095383390190565b60805160601c6108cd6100866000396000818160840152818160c3015261048d01526108cd6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632c46f7e314610046578063aaf10f4214610082578063ad9b262c146100a8575b600080fd5b6100596100543660046106d1565b6100bb565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b7f0000000000000000000000000000000000000000000000000000000000000000610059565b6100596100b6366004610691565b610486565b6000806101107f00000000000000000000000000000000000000000000000000000000000000008d8d6040516020016100f59291906107dc565b604051602081830303815290604052805190602001206104e3565b90506127108411156101b55760405162461bcd60e51b815260206004820152605f60248201527f48797065726c696e6b466163746f72793a20706c6174666f726d20666565206260448201527f6173697320706f696e7473206d757374206265206c657373207468616e206f7260648201527f20657175616c20746f20636f6e747261637420626173697320706f696e747300608482015260a4015b60405180910390fd5b6000871161022b5760405162461bcd60e51b815260206004820152603060248201527f48797065726c696e6b466163746f72793a206d7573742073656c6c206174206c60448201527f65617374206f6e652065646974696f6e0000000000000000000000000000000060648201526084016101ac565b73ffffffffffffffffffffffffffffffffffffffff831615610376576040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd00000000000000000000000000000000000000000000000000000000600482015273ffffffffffffffffffffffffffffffffffffffff8416906301ffc9a79060240160206040518083038186803b1580156102cc57600080fd5b505afa1580156102e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610304919061066a565b6103765760405162461bcd60e51b815260206004820152603f60248201527f48797065726c696e6b466163746f72793a2068797065726c696e6b20646f657360448201527f206e6f7420737570706f72742045524337323120696e7465726661636549440060648201526084016101ac565b6040517ffb265d1400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063fb265d14906103da908f908f908f908f908f908f908f908f908f908f906004016107f8565b600060405180830381600087803b1580156103f457600080fd5b505af1158015610408573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff8981168252602082018c90529181018a905260608101889052818c1693508682169250908416907f3391dd533a5534cd93a32a14cac973d26fdbb1a6c145192b293adc4c1b4581719060800160405180910390a49b9a5050505050505050505050565b60006104da7f000000000000000000000000000000000000000000000000000000000000000084846040516020016104bf9291906107dc565b604051602081830303815290604052805190602001206105a7565b90505b92915050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f591505073ffffffffffffffffffffffffffffffffffffffff81166104dd5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016101ac565b60006104da8383306040517f3d602d80600a3d3981f3363d3d373d3d3d363d730000000000000000000000008152606093841b60148201527f5af43d82803e903d91602b57fd5bf3ff000000000000000000000000000000006028820152921b6038830152604c8201526037808220606c830152605591012090565b60008083601f840112610634578182fd5b50813567ffffffffffffffff81111561064b578182fd5b60208301915083602082850101111561066357600080fd5b9250929050565b60006020828403121561067b578081fd5b8151801515811461068a578182fd5b9392505050565b600080602083850312156106a3578081fd5b823567ffffffffffffffff8111156106b9578182fd5b6106c585828601610623565b90969095509350505050565b6000806000806000806000806000806101008b8d0312156106f0578586fd5b8a3567ffffffffffffffff80821115610707578788fd5b6107138e838f01610623565b909c509a5060208d013591508082111561072b578788fd5b506107388d828e01610623565b90995097505060408b013561074c81610872565b955060608b0135945060808b0135935060a08b013561076a81610872565b925060c08b0135915060e08b013561078181610872565b809150509295989b9194979a5092959850565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b6020815260006107f0602083018486610794565b949350505050565b600061010080835261080d8184018d8f610794565b90508281036020840152610822818b8d610794565b73ffffffffffffffffffffffffffffffffffffffff998a16604085015260608401989098525050608081019490945291851660a084015260c083015290921660e090920191909152949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461089457600080fd5b5056fea264697066735822122097aee24d8384fd15aaa34aa396653b393cc9497feed9ee1650da72d029f64c8464736f6c63430008040033608060405234801561001057600080fd5b506121df806100206000396000f3fe6080604052600436106101615760003560e01c806370a08231116100bf578063c87b56dd11610079578063f51f96dd11610056578063f51f96dd146103db578063f5b2cad7146103f0578063fb265d141461040557005b8063c87b56dd1461035d578063e8a3d4851461037d578063e985e9c51461039257005b80639e711b12116100a75780639e711b1214610308578063a22cb4651461031d578063b88d4fde1461033d57005b806370a08231146102d357806395d89b41146102f357005b80631c4695f41161011b57806342842e0e116100f857806342842e0e146102745780636352211e146102945780636ab77f23146102b457005b80631c4695f41461022157806323b872dd1461023f5780633ccfd60b1461025f57005b8063081812fc11610149578063081812fc146101c1578063095ea7b3146101f95780631249c58b1461021957005b806301ffc9a71461016a57806306fdde031461019f57005b3661016857005b005b34801561017657600080fd5b5061018a610185366004611eb1565b610425565b60405190151581526020015b60405180910390f35b3480156101ab57600080fd5b506101b461050a565b6040516101969190612063565b3480156101cd57600080fd5b506101e16101dc366004611fac565b61059c565b6040516001600160a01b039091168152602001610196565b34801561020557600080fd5b50610168610214366004611e86565b610647565b610168610779565b34801561022d57600080fd5b5060d0546001600160a01b03166101e1565b34801561024b57600080fd5b5061016861025a366004611d3c565b6109a5565b34801561026b57600080fd5b50610168610a2c565b34801561028057600080fd5b5061016861028f366004611d3c565b610b61565b3480156102a057600080fd5b506101e16102af366004611fac565b610b7c565b3480156102c057600080fd5b5060d1545b604051908152602001610196565b3480156102df57600080fd5b506102c56102ee366004611ce8565b610c07565b3480156102ff57600080fd5b506101b4610ca1565b34801561031457600080fd5b5060cc546102c5565b34801561032957600080fd5b50610168610338366004611e55565b610cb0565b34801561034957600080fd5b50610168610358366004611d7c565b610d75565b34801561036957600080fd5b506101b4610378366004611fac565b610e03565b34801561038957600080fd5b506101b4610f1f565b34801561039e57600080fd5b5061018a6103ad366004611d04565b6001600160a01b039182166000908152609c6020908152604080832093909416825291909152205460ff1690565b3480156103e757600080fd5b5060cd546102c5565b3480156103fc57600080fd5b506101b4610f2e565b34801561041157600080fd5b50610168610420366004611ee9565b610f3d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806104b857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061050457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060978054610519906120e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610545906120e4565b80156105925780601f1061056757610100808354040283529160200191610592565b820191906000526020600020905b81548152906001019060200180831161057557829003601f168201915b5050505050905090565b6000818152609960205260408120546001600160a01b031661062b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152609b60205260409020546001600160a01b031690565b600061065282610b7c565b9050806001600160a01b0316836001600160a01b031614156106dc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610622565b336001600160a01b03821614806106f857506106f881336103ad565b61076a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610622565b61077483836110f0565b505050565b60cc5460d154106107f25760405162461bcd60e51b815260206004820152602e60248201527f48797065726c696e6b3a20616c6c2065646974696f6e73206861766520616c7260448201527f65616479206265656e20736f6c640000000000000000000000000000000000006064820152608401610622565b60cd5434146108695760405162461bcd60e51b815260206004820152603360248201527f48797065726c696e6b3a206d7573742073656e6420656e6f75676820746f207060448201527f75726368617365207468652065646974696f6e000000000000000000000000006064820152608401610622565b60d0546001600160a01b0316156109825760d0546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156108d757600080fd5b505afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190611fc4565b116109825760405162461bcd60e51b815260206004820152602e60248201527f48797065726c696e6b3a206d757374206f776e20746865206c696e6b6564206560448201527f646974696f6e20746f206d696e740000000000000000000000000000000000006064820152608401610622565b60d180549060006109928361211f565b91905055506109a33360d15461116b565b565b6109af33826112ba565b610a215760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610622565b6107748383836113c2565b60026001541415610a7f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610622565b60026001554780610af85760405162461bcd60e51b815260206004820152603560248201527f48797065726c696e6b3a20636f6e74726163742062616c616e6365206d75737460448201527f2062652067726561746572207468616e207a65726f00000000000000000000006064820152608401610622565b6000612710610b1260cf548461159c90919063ffffffff16565b610b1c919061208e565b9050610b3d610b2b83836115af565b60cb546001600160a01b0316906115bb565b8015610b595760ce54610b59906001600160a01b0316826115bb565b505060018055565b61077483838360405180602001604052806000815250610d75565b6000818152609960205260408120546001600160a01b0316806105045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610622565b60006001600160a01b038216610c855760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610622565b506001600160a01b03166000908152609a602052604090205490565b606060988054610519906120e4565b6001600160a01b038216331415610d095760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610622565b336000818152609c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d7f33836112ba565b610df15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610622565b610dfd848484846116d4565b50505050565b60606000610e1083610b7c565b6001600160a01b03161415610e8d5760405162461bcd60e51b815260206004820152603460248201527f48797065726c696e6b3a20746f6b656e20686173206e6f74206265656e20736f60448201527f6c64206f7220646f6573206e6f742065786973740000000000000000000000006064820152608401610622565b60c98054610e9a906120e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec6906120e4565b8015610f135780601f10610ee857610100808354040283529160200191610f13565b820191906000526020600020905b815481529060010190602001808311610ef657829003601f168201915b50505050509050919050565b606060ca8054610519906120e4565b606060c98054610519906120e4565b600054610100900460ff1680610f56575060005460ff16155b610fc85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610622565b600054610100900460ff16158015610fea576000805461ffff19166101011790555b61105e6040518060400160405280600981526020017f48797065726c696e6b00000000000000000000000000000000000000000000008152506040518060400160405280600981526020017f48595045524c494e4b000000000000000000000000000000000000000000000081525061175d565b61106a60c98c8c611b94565b5061107760ca8a8a611b94565b5060cb80546001600160a01b03808a1673ffffffffffffffffffffffffffffffffffffffff199283161790925560cc88905560cd87905560ce805487841690831617905560cf85905560d080549285169290911691909117905580156110e3576000805461ff00191690555b5050505050505050505050565b6000818152609b60205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061113282610b7c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166111c15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610622565b6000818152609960205260409020546001600160a01b0316156112265760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610622565b6001600160a01b0382166000908152609a6020526040812080546001929061124f908490612076565b9091555050600081815260996020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152609960205260408120546001600160a01b03166113445760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610622565b600061134f83610b7c565b9050806001600160a01b0316846001600160a01b0316148061138a5750836001600160a01b031661137f8461059c565b6001600160a01b0316145b806113ba57506001600160a01b038082166000908152609c602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166113d582610b7c565b6001600160a01b0316146114515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610622565b6001600160a01b0382166114cc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610622565b6114d76000826110f0565b6001600160a01b0383166000908152609a602052604081208054600192906115009084906120cd565b90915550506001600160a01b0382166000908152609a6020526040812080546001929061152e908490612076565b9091555050600081815260996020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006115a882846120ae565b9392505050565b60006115a882846120cd565b8047101561160b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610622565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611658576040519150601f19603f3d011682016040523d82523d6000602084013e61165d565b606091505b50509050806107745760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610622565b6116df8484846113c2565b6116eb8484848461183a565b610dfd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610622565b600054610100900460ff1680611776575060005460ff16155b6117e85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610622565b600054610100900460ff1615801561180a576000805461ffff19166101011790555b6118126119e7565b61181a6119e7565b6118248383611aa9565b8015610774576000805461ff0019169055505050565b60006001600160a01b0384163b156119dc576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611897903390899088908890600401612027565b602060405180830381600087803b1580156118b157600080fd5b505af19250505080156118e1575060408051601f3d908101601f191682019092526118de91810190611ecd565b60015b611991573d80801561190f576040519150601f19603f3d011682016040523d82523d6000602084013e611914565b606091505b5080516119895760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610622565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506113ba565b506001949350505050565b600054610100900460ff1680611a00575060005460ff16155b611a725760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610622565b600054610100900460ff16158015611a94576000805461ffff19166101011790555b8015611aa6576000805461ff00191690555b50565b600054610100900460ff1680611ac2575060005460ff16155b611b345760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610622565b600054610100900460ff16158015611b56576000805461ffff19166101011790555b8251611b69906097906020860190611c18565b508151611b7d906098906020850190611c18565b508015610774576000805461ff0019169055505050565b828054611ba0906120e4565b90600052602060002090601f016020900481019282611bc25760008555611c08565b82601f10611bdb5782800160ff19823516178555611c08565b82800160010185558215611c08579182015b82811115611c08578235825591602001919060010190611bed565b50611c14929150611c8c565b5090565b828054611c24906120e4565b90600052602060002090601f016020900481019282611c465760008555611c08565b82601f10611c5f57805160ff1916838001178555611c08565b82800160010185558215611c08579182015b82811115611c08578251825591602001919060010190611c71565b5b80821115611c145760008155600101611c8d565b60008083601f840112611cb2578182fd5b50813567ffffffffffffffff811115611cc9578182fd5b602083019150836020828501011115611ce157600080fd5b9250929050565b600060208284031215611cf9578081fd5b81356115a881612166565b60008060408385031215611d16578081fd5b8235611d2181612166565b91506020830135611d3181612166565b809150509250929050565b600080600060608486031215611d50578081fd5b8335611d5b81612166565b92506020840135611d6b81612166565b929592945050506040919091013590565b60008060008060808587031215611d91578081fd5b8435611d9c81612166565b93506020850135611dac81612166565b925060408501359150606085013567ffffffffffffffff80821115611dcf578283fd5b818701915087601f830112611de2578283fd5b813581811115611df457611df4612150565b604051601f8201601f19908116603f01168101908382118183101715611e1c57611e1c612150565b816040528281528a6020848701011115611e34578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215611e67578182fd5b8235611e7281612166565b915060208301358015158114611d31578182fd5b60008060408385031215611e98578182fd5b8235611ea381612166565b946020939093013593505050565b600060208284031215611ec2578081fd5b81356115a88161217b565b600060208284031215611ede578081fd5b81516115a88161217b565b6000806000806000806000806000806101008b8d031215611f08578586fd5b8a3567ffffffffffffffff80821115611f1f578788fd5b611f2b8e838f01611ca1565b909c509a5060208d0135915080821115611f43578788fd5b50611f508d828e01611ca1565b90995097505060408b0135611f6481612166565b955060608b0135945060808b0135935060a08b0135611f8281612166565b925060c08b0135915060e08b0135611f9981612166565b809150509295989b9194979a5092959850565b600060208284031215611fbd578081fd5b5035919050565b600060208284031215611fd5578081fd5b5051919050565b60008151808452815b8181101561200157602081850181015186830182015201611fe5565b818111156120125782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526120596080830184611fdc565b9695505050505050565b6020815260006115a86020830184611fdc565b600082198211156120895761208961213a565b500190565b6000826120a957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156120c8576120c861213a565b500290565b6000828210156120df576120df61213a565b500390565b600181811c908216806120f857607f821691505b6020821081141561211957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121335761213361213a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611aa657600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611aa657600080fdfea264697066735822122032070288b96ed3beb8b8e939cefab50362579692515d1a80aa747712f5cad07264736f6c63430008040033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632c46f7e314610046578063aaf10f4214610082578063ad9b262c146100a8575b600080fd5b6100596100543660046106d1565b6100bb565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b7f00000000000000000000000007d820d69d0af386de05d3c792b51aec086a315e610059565b6100596100b6366004610691565b610486565b6000806101107f00000000000000000000000007d820d69d0af386de05d3c792b51aec086a315e8d8d6040516020016100f59291906107dc565b604051602081830303815290604052805190602001206104e3565b90506127108411156101b55760405162461bcd60e51b815260206004820152605f60248201527f48797065726c696e6b466163746f72793a20706c6174666f726d20666565206260448201527f6173697320706f696e7473206d757374206265206c657373207468616e206f7260648201527f20657175616c20746f20636f6e747261637420626173697320706f696e747300608482015260a4015b60405180910390fd5b6000871161022b5760405162461bcd60e51b815260206004820152603060248201527f48797065726c696e6b466163746f72793a206d7573742073656c6c206174206c60448201527f65617374206f6e652065646974696f6e0000000000000000000000000000000060648201526084016101ac565b73ffffffffffffffffffffffffffffffffffffffff831615610376576040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd00000000000000000000000000000000000000000000000000000000600482015273ffffffffffffffffffffffffffffffffffffffff8416906301ffc9a79060240160206040518083038186803b1580156102cc57600080fd5b505afa1580156102e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610304919061066a565b6103765760405162461bcd60e51b815260206004820152603f60248201527f48797065726c696e6b466163746f72793a2068797065726c696e6b20646f657360448201527f206e6f7420737570706f72742045524337323120696e7465726661636549440060648201526084016101ac565b6040517ffb265d1400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063fb265d14906103da908f908f908f908f908f908f908f908f908f908f906004016107f8565b600060405180830381600087803b1580156103f457600080fd5b505af1158015610408573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff8981168252602082018c90529181018a905260608101889052818c1693508682169250908416907f3391dd533a5534cd93a32a14cac973d26fdbb1a6c145192b293adc4c1b4581719060800160405180910390a49b9a5050505050505050505050565b60006104da7f00000000000000000000000007d820d69d0af386de05d3c792b51aec086a315e84846040516020016104bf9291906107dc565b604051602081830303815290604052805190602001206105a7565b90505b92915050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f591505073ffffffffffffffffffffffffffffffffffffffff81166104dd5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c656400000000000000000060448201526064016101ac565b60006104da8383306040517f3d602d80600a3d3981f3363d3d373d3d3d363d730000000000000000000000008152606093841b60148201527f5af43d82803e903d91602b57fd5bf3ff000000000000000000000000000000006028820152921b6038830152604c8201526037808220606c830152605591012090565b60008083601f840112610634578182fd5b50813567ffffffffffffffff81111561064b578182fd5b60208301915083602082850101111561066357600080fd5b9250929050565b60006020828403121561067b578081fd5b8151801515811461068a578182fd5b9392505050565b600080602083850312156106a3578081fd5b823567ffffffffffffffff8111156106b9578182fd5b6106c585828601610623565b90969095509350505050565b6000806000806000806000806000806101008b8d0312156106f0578586fd5b8a3567ffffffffffffffff80821115610707578788fd5b6107138e838f01610623565b909c509a5060208d013591508082111561072b578788fd5b506107388d828e01610623565b90995097505060408b013561074c81610872565b955060608b0135945060808b0135935060a08b013561076a81610872565b925060c08b0135915060e08b013561078181610872565b809150509295989b9194979a5092959850565b81835281816020850137506000806020838501015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b6020815260006107f0602083018486610794565b949350505050565b600061010080835261080d8184018d8f610794565b90508281036020840152610822818b8d610794565b73ffffffffffffffffffffffffffffffffffffffff998a16604085015260608401989098525050608081019490945291851660a084015260c083015290921660e090920191909152949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461089457600080fd5b5056fea264697066735822122097aee24d8384fd15aaa34aa396653b393cc9497feed9ee1650da72d029f64c8464736f6c63430008040033