ETH Price: $2,437.25 (+5.94%)

1stDibs.2 (DIBS2)
 

Overview

TokenID

1089

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

1stDibs is a leading marketplace of contemporary art and design. We debuted our NFT and digital arts platform in August 2021.

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

Contract Source Code Verified (Exact Match)

Contract Name:
FirstDibsTokenV2

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1348 runs

Other Settings:
default evmVersion
File 1 of 26 : FirstDibsTokenV2.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol';

import './IERC721CreatorV2.sol';
import './FirstDibsPayments.sol';
import './SplitForwarderFactory.sol';
import './FirstDibsERC2771Context.sol';

contract FirstDibsTokenV2 is
    ERC721,
    Ownable,
    AccessControl,
    ERC721Burnable,
    ERC721Pausable,
    ERC721URIStorage,
    IERC721CreatorV2,
    FirstDibsPayments,
    FirstDibsERC2771Context,
    SplitForwarderFactory
{
    using Counters for Counters.Counter;

    bytes32 public constant MINTER_ROLE = keccak256('MINTER_ROLE');
    bytes32 public constant MINT_WITH_CREATOR = keccak256('MINT_WITH_CREATOR');
    bytes32 public constant MINTER_ROLE_ADMIN = keccak256('MINTER_ROLE_ADMIN');

    /**
     * @dev token ID mapping to payable creator address
     */
    mapping(uint256 => address payable) private tokenCreators;

    /**
     * @dev Owner address to token ID mapping. Allows the marketplace to
     * manage tokens airdropped to creators
     */
    mapping(address => mapping(uint256 => bool)) private approveAirdropForDibsMarketplace;

    /**
     * @dev Verified dibs marketplace
     */
    address public dibsMarketplace;

    /**
     * @dev Emitted when `approved` enables or disables approval for dibsMarketplace to manage `tokenId`
     */
    event ApprovedDibsMarketplaceByAirdrop(
        address indexed approved,
        uint256 indexed tokenId,
        bool isApproved
    );

    /**
     * @dev Auto-incrementing counter for token IDs
     */
    Counters.Counter private tokenIds;

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, `MINT_WITH_CREATOR`,
     * and `MINTER_ROLE_ADMIN` to the account that deploys the contract.
     * Also sets dibsMarketplace
     */
    constructor(
        string memory _name,
        string memory _symbol,
        address _splitForwarder,
        address _splitPool,
        address _trustedForwarder,
        address _dibsMarketplace
    )
        ERC721(_name, _symbol)
        FirstDibsERC2771Context(_trustedForwarder)
        SplitForwarderFactory(_splitForwarder, _splitPool)
    {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(MINT_WITH_CREATOR, _msgSender());
        _setupRole(MINTER_ROLE_ADMIN, _msgSender());
        _setRoleAdmin(MINTER_ROLE, MINTER_ROLE_ADMIN);

        dibsMarketplace = _dibsMarketplace;
    }

    /**
     * @dev Internal function for setting the token's creator.
     * @param _creator address of the creator of the token.
     * @param _tokenId uint256 id of the token.
     */
    function _setTokenCreator(address payable _creator, uint256 _tokenId) private {
        tokenCreators[_tokenId] = _creator;
    }

    /**
     * @dev External function to get the token's creator
     * @param _tokenId uint256 id of the token.
     */
    function tokenCreator(uint256 _tokenId) external view override returns (address payable) {
        return tokenCreators[_tokenId];
    }

    /**
     * @dev internal function that mints a token. Sets _creator to creator and owner
     * @param _tokenURI string metadata URI of the token.
     * @param _creator address of the creator of the token.
     * @param _paymentAddress address to send royalty payments to
     * @param _tokenRoyalty uint32 royalty basis points for a token
     */
    function _mint(
        string memory _tokenURI,
        address payable _creator,
        address payable _paymentAddress,
        uint32 _tokenRoyalty
    ) internal returns (uint256 newTokenId) {
        tokenIds.increment();
        newTokenId = tokenIds.current();

        _safeMint(_creator, newTokenId);
        _setTokenURI(newTokenId, _tokenURI);
        _setTokenCreator(_creator, newTokenId);
        _setTokenPaymentAddress(_paymentAddress, newTokenId);
        if (_tokenRoyalty > 0) {
            _setPerTokenRoyalties(newTokenId, _tokenRoyalty);
        }
    }

    /**
     * @dev Public function that mints a token. Sets msg.sender to creator and owner and requires MINTER_ROLE
     * @param _tokenURI uint256 metadata URI of the token.
     */
    function mint(string memory _tokenURI) public returns (uint256) {
        require(hasRole(MINTER_ROLE, _msgSender()), 'mint: must have MINTER_ROLE');
        address payable _creator = payable(_msgSender());
        return _mint(_tokenURI, _creator, _creator, 0);
    }

    /**
     * @dev Admin only function that allows admin to mint a token with custom params, including creator
     * Also approves the marketplace as an operator of the token on the creator's behalf.
     * @param _tokenURI uint256 metadata URI of the token.
     * @param _merkleRoot bytes32 merkle root to create a split for, this will take precedence over _paymentAddress
     * @param _paymentAddress address custom payment address to send creator royalties to
     * @param _tokenRoyalty uint32 custom royalty basis shares to set for creator royalties
     * @param _creatorAddress address creator of the token
     */
    function airdropMintToCreator(
        string memory _tokenURI,
        bytes32 _merkleRoot,
        address payable _paymentAddress,
        uint32 _tokenRoyalty,
        address _creatorAddress
    ) public {
        require(
            hasRole(MINT_WITH_CREATOR, _msgSender()) || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            'airdropMintToCreator: must have MINT_WITH_CREATOR or DEFAULT_ADMIN_ROLE'
        );
        require(
            _creatorAddress != address(0),
            'airdropMintToCreator: creator cannot be zero address'
        );
        address paymentAddress = _creatorAddress;
        if (_merkleRoot != 0) {
            paymentAddress = createSplitForwarder(_merkleRoot);
        } else if (_paymentAddress != address(0)) {
            paymentAddress = _paymentAddress;
        }
        uint256 tokenId = _mint(
            _tokenURI,
            payable(_creatorAddress),
            payable(paymentAddress),
            _tokenRoyalty
        );
        approveAirdropForDibsMarketplace[_creatorAddress][tokenId] = true;
        emit ApprovedDibsMarketplaceByAirdrop(_creatorAddress, tokenId, true);
    }

    /**
     * @dev Public function that allows addresses with MINTER_ROLE to mint a token with custom parameters
     * @param _tokenURI uint256 metadata URI of the token.
     * @param _merkleRoot bytes32 merkle root to create a split for, takes precedence over payment address
     * @param _paymentAddress address custom payment address to send creator royalties to
     * @param _tokenRoyalty uint32 custom royalty basis shares to set for creator royalties
     * @param _approveDibsMarketplaceForAll bool if true, this and future tokens minted on this contract will be approved for the marketplace
     * @param _approveDibsMarketplaceForOne bool if true, this token will be approved for the contracts marketplace address
     */
    function mintWithParams(
        string memory _tokenURI,
        bytes32 _merkleRoot,
        address payable _paymentAddress,
        uint32 _tokenRoyalty,
        bool _approveDibsMarketplaceForAll,
        bool _approveDibsMarketplaceForOne
    ) public {
        require(hasRole(MINTER_ROLE, _msgSender()), 'mintWithParams: must have MINTER_ROLE');
        address paymentAddress = _msgSender();

        if (_merkleRoot != 0) {
            paymentAddress = createSplitForwarder(_merkleRoot);
        } else if (_paymentAddress != address(0)) {
            paymentAddress = _paymentAddress;
        }

        uint256 newTokenId = _mint(
            _tokenURI,
            payable(_msgSender()),
            payable(paymentAddress),
            _tokenRoyalty
        );

        if (_approveDibsMarketplaceForAll) {
            setApprovalForAll(dibsMarketplace, true);
        } else if (_approveDibsMarketplaceForOne) {
            approve(dibsMarketplace, newTokenId);
        }
    }

    /**
     * @dev Uses ERC721 _safeTransfer but also allows marketplaces to transfer airdropped tokens
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        require(
            _isOwnerApprovedOrMarketplace(_msgSender(), tokenId),
            'FirstDibsTokenV2: transfer caller is not owner nor approved nor verified'
        );
        _safeTransfer(from, to, tokenId, '');
    }

    /**
     * @dev Returns whether `operator` is allowed to manage `tokenId`. If token owner => token ID is in the
     * approvedForDibsMarketplace mapping then dibsMarketplace is allowed to manage the token.
     */
    function _isOwnerApprovedOrMarketplace(address operator, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        require(_exists(tokenId), 'FirstDibsTokenV2: operator query for nonexistent token');
        address tokenOwner = ERC721.ownerOf(tokenId);
        return (operator == tokenOwner ||
            getApproved(tokenId) == operator ||
            isApprovedForAll(tokenOwner, operator) ||
            // Allow the marketplace to manage the token if token has been airdropped to the creator
            // This should only be true for owners that had tokens airdropped to them using airdropMintToCreator.
            (approveAirdropForDibsMarketplace[tokenOwner][tokenId] && operator == dibsMarketplace));
    }

    /**
     * @dev Returns whether `operator` is allowed to manage `tokenId`. If token owner => token ID is in the
     * approvedForDibsMarketplace mapping then dibsMarketplace is allowed to manage the token.
     *
     */
    function isOwnerApprovedOrMarketplace(address operator, uint256 tokenId)
        external
        view
        returns (bool)
    {
        return _isOwnerApprovedOrMarketplace(operator, tokenId);
    }

    function setDibsMarketplace(address _dibsMarketplace) external {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            'setDibsMarketplace: must have DEFAULT_ADMIN_ROLE'
        );
        dibsMarketplace = _dibsMarketplace;
    }

    /**
     * @dev Pauses all token transfers.
     * See {ERC721Pausable} and {Pausable-_pause}.
     * Requirements: the caller must have the `DEFAULT_ADMIN_ROLE`.
     */
    function pause() public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'pause: must have DEFAULT_ADMIN_ROLE');
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     * See {ERC721Pausable} and {Pausable-_unpause}.
     * Requirements: the caller must have the `DEFAULT_ADMIN_ROLE`.
     */
    function unpause() public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'unpause: must have DEFAULT_ADMIN_ROLE');
        _unpause();
    }

    // The following functions are overrides required by Solidity.

    /**
     * @dev Must override this function since both ERC721, ERC721Pausable define it
     * Checks that the contract isn't paused before doing a transfer
     */
    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _tokenId
    ) internal override(ERC721, ERC721Pausable) whenNotPaused {
        super._beforeTokenTransfer(_from, _to, _tokenId);
    }

    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function _msgSender()
        internal
        view
        override(Context, FirstDibsERC2771Context)
        returns (address sender)
    {
        return super._msgSender();
    }

    function _msgData()
        internal
        view
        override(Context, FirstDibsERC2771Context)
        returns (bytes calldata)
    {
        return super._msgData();
    }
}

File 2 of 26 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 3 of 26 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 26 : 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 5 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.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 ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings 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.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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}.
     */
    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 = ERC721.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 {
        _setApprovalForAll(_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 = ERC721.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 = ERC721.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(ERC721.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(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.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 {}
}

File 6 of 26 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 7 of 26 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 9 of 26 : IERC721CreatorV2.sol
//SPDX-License-Identifier: BSD 3-Clause
pragma solidity 0.8.7;

/**
 * @title IERC721 Non-Fungible Token Creator basic interface
 * @dev Interop with other systems supporting this interface
 * @notice Original license and source here: https://github.com/Pixura/pixura-contracts
 */
interface IERC721CreatorV2 {
    /**
     * @dev Gets the creator of the _tokenId
     * @param _tokenId uint256 ID of the token
     * @return address of the creator of _tokenId
     */
    function tokenCreator(uint256 _tokenId) external view returns (address payable);
}

File 10 of 26 : FirstDibsPayments.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.7;

import '@openzeppelin/contracts/access/Ownable.sol';
import './IFirstDibsRoyalties.sol';
import './SplitForwarderFactory.sol';

contract FirstDibsPayments is IFirstDibsRoyalties, Ownable {
    // default royalties to creators on secondary sales
    uint32 public override globalCreatorRoyaltyBasisPoints = 1000;
    /**
     * @dev token ID mapping to payable alternate payment address for a creator
     */
    mapping(uint256 => address payable) private tokenPaymentAddresses;

    /**
     * @dev token ID mapping to royalty basis points
     */
    mapping(uint256 => uint32) private perTokenRoyalties;

    /**
     * @dev setter for global creator royalty rate
     * @param royaltyBasisPoints new creator royalty rate
     */
    function setGlobalCreatorRoyaltyBasisPoints(uint32 royaltyBasisPoints)
        external
        override
        onlyOwner
    {
        require(royaltyBasisPoints <= 10000, 'Value must be <= 10000');
        require(royaltyBasisPoints >= 200, 'Creator royalty cannot be lower than 2%');
        globalCreatorRoyaltyBasisPoints = royaltyBasisPoints;
    }

    /**
     * @dev set a new payment address for a token
     * @param _tokenId token ID to set a new payment address for
     * @param _paymentAddress new payment address
     *
     */
    function _setTokenPaymentAddress(address payable _paymentAddress, uint256 _tokenId) internal {
        tokenPaymentAddresses[_tokenId] = _paymentAddress;
    }

    /**
     * @dev set per token royalties
     * @param _tokenId token ID to set a individual royalties for
     * @param _basisPoints royalty basis point
     */
    function _setPerTokenRoyalties(uint256 _tokenId, uint32 _basisPoints) internal {
        require(_basisPoints <= 3000, 'Per token royalty must be less than 30%');
        perTokenRoyalties[_tokenId] = _basisPoints;
    }

    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        override
        returns (address _receiver, uint256 _royaltyAmount)
    {
        _receiver = tokenPaymentAddresses[_tokenId];
        uint256 royaltyBasisPoints = globalCreatorRoyaltyBasisPoints;
        if (perTokenRoyalties[_tokenId] != 0) {
            royaltyBasisPoints = perTokenRoyalties[_tokenId];
        }
        _royaltyAmount = (_value * royaltyBasisPoints) / 10000;
    }
}

File 11 of 26 : SplitForwarderFactory.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.7;
import '@openzeppelin/contracts/proxy/Clones.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

import './ISplitForwarder.sol';
import './ISplitForwarderFactory.sol';

contract SplitForwarderFactory is ISplitForwarderFactory, Ownable {
    using Clones for address;
    using Address for address;
    /**
     * ========================
     * #Public state variables
     * ========================
     */
    address public override splitForwarder;
    address public override splitPool;

    /**
     * ========================
     * constructor
     * ========================
     * @param _splitForwarder address for split forwarder implementation contract
     * @param _splitPool address for split pool contract
     */
    constructor(address _splitForwarder, address _splitPool) {
        splitForwarder = _splitForwarder;
        splitPool = _splitPool;
    }

    /**
     * @dev setter for split forwarder address
     * @param _splitForwarder address for the split forwarder contract
     */
    function setSplitForwarder(address _splitForwarder) external onlyOwner {
        require(_splitForwarder != address(0), 'cannot be zero address');
        splitForwarder = _splitForwarder;
    }

    /**
     * @dev setter for split pool address
     * @param _splitPool address for the split forwarder contract
     */
    function setSplitPool(address _splitPool) external onlyOwner {
        require(_splitPool != address(0), 'cannot be zero address');
        splitPool = _splitPool;
    }

    /**
     * @dev return the predicted/existing split forwarder address for a given merkle root
     * @param _merkleRoot merkle root to lookup the address for
     */
    function getSplitForwarderAddress(bytes32 _merkleRoot)
        external
        view
        override
        returns (address)
    {
        require(splitForwarder != address(0), 'splitForwarder must be set');
        return splitForwarder.predictDeterministicAddress(keccak256(abi.encode(_merkleRoot)));
    }

    /**
     * @dev create a SplitForwarder proxy for a given merkle root
     * @param _merkleRoot merkle root which to deploy a split forwarder proxy for
     */
    function createSplitForwarder(bytes32 _merkleRoot) public override returns (address _clone) {
        require(
            splitForwarder != address(0) && splitPool != address(0),
            'splitForwarder & splitPool must be set'
        );
        _clone = splitForwarder.predictDeterministicAddress(keccak256(abi.encode(_merkleRoot)));
        if (!_clone.isContract()) {
            splitForwarder.cloneDeterministic(keccak256(abi.encode(_merkleRoot)));
            ISplitForwarder(_clone).initialize(_merkleRoot, splitPool);
        }
    }
}

File 12 of 26 : FirstDibsERC2771Context.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/access/Ownable.sol';

/**
 * @dev Context variant with ERC2771 support.
 * copy/paste from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/metatx/ERC2771Context.sol
 * but added a "setTrustedForwarder" function so we can deploy the forwarder contract after the token contract
 */
abstract contract FirstDibsERC2771Context is Context, Ownable {
    address private _trustedForwarder;

    constructor(address trustedForwarder) {
        _trustedForwarder = trustedForwarder;
    }

    function setTrustedForwarder(address trustedForwarder) external onlyOwner {
        _trustedForwarder = trustedForwarder;
    }

    function isTrustedForwarder(address forwarder) public view virtual returns (bool) {
        return forwarder == _trustedForwarder;
    }

    function _msgSender() internal view virtual override returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}

File 13 of 26 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 14 of 26 : 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 15 of 26 : 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 16 of 26 : 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 17 of 26 : 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 18 of 26 : 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 19 of 26 : 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 20 of 26 : 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 21 of 26 : 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 22 of 26 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 23 of 26 : IFirstDibsRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

/** @title IFirstDibsRoyalties
 * @dev Interface for the ERC2981 Token Royalty standard, as well as the rarible schema
 */
interface IFirstDibsRoyalties {
    /**
     * @dev getter & setter for current creator royalty basis points
     */
    function globalCreatorRoyaltyBasisPoints() external view returns (uint32);
    function setGlobalCreatorRoyaltyBasisPoints(uint32 _royaltyRate) external;
    /**
     * @dev EIP-2981 royalty standard https://eips.ethereum.org/EIPS/eip-2981
     * @param _tokenId token ID to receive royalty info on
     * @param _value amount to calculate royalty for
     */
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 24 of 26 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)

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

File 25 of 26 : ISplitForwarder.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface ISplitForwarder is IERC165 {
    function merkleRoot() external view returns (bytes32);
    function splitPool() external view returns (address);
    function initialize(bytes32 _merkleRoot, address _splitPool) external;
}

File 26 of 26 : ISplitForwarderFactory.sol
//SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.7;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface ISplitForwarderFactory {
    function splitForwarder() external view returns (address);
    function splitPool() external view returns (address);
    function getSplitForwarderAddress(bytes32 _merkleRoot) external view returns(address);
    function createSplitForwarder(bytes32 _merkleRoot) external returns (address _clone);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_splitForwarder","type":"address"},{"internalType":"address","name":"_splitPool","type":"address"},{"internalType":"address","name":"_trustedForwarder","type":"address"},{"internalType":"address","name":"_dibsMarketplace","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isApproved","type":"bool"}],"name":"ApprovedDibsMarketplaceByAirdrop","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE_ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_WITH_CREATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address payable","name":"_paymentAddress","type":"address"},{"internalType":"uint32","name":"_tokenRoyalty","type":"uint32"},{"internalType":"address","name":"_creatorAddress","type":"address"}],"name":"airdropMintToCreator","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"createSplitForwarder","outputs":[{"internalType":"address","name":"_clone","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dibsMarketplace","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"getSplitForwarderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalCreatorRoyaltyBasisPoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isOwnerApprovedOrMarketplace","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address payable","name":"_paymentAddress","type":"address"},{"internalType":"uint32","name":"_tokenRoyalty","type":"uint32"},{"internalType":"bool","name":"_approveDibsMarketplaceForAll","type":"bool"},{"internalType":"bool","name":"_approveDibsMarketplaceForOne","type":"bool"}],"name":"mintWithParams","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","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":"address","name":"_dibsMarketplace","type":"address"}],"name":"setDibsMarketplace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"royaltyBasisPoints","type":"uint32"}],"name":"setGlobalCreatorRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_splitForwarder","type":"address"}],"name":"setSplitForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_splitPool","type":"address"}],"name":"setSplitPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"trustedForwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"splitPool","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":"_tokenId","type":"uint256"}],"name":"tokenCreator","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805463ffffffff19166103e81790553480156200002257600080fd5b5060405162004203380380620042038339810160408190526200004591620004f9565b83838388888160009080519060200190620000629291906200037f565b508051620000789060019060208401906200037f565b505050620000956200008f620001d360201b60201c565b620001ef565b6008805460ff19169055600d80546001600160a01b03199081166001600160a01b0393841617909155600e8054821694831694909417909355600f80549093169116179055620000f06000620000ea620001d3565b62000241565b6200010e600080516020620041e3833981519152620000ea620001d3565b6200013d7f8bfb584c227c3073936237f17ad489521ee4928fcefad86a4e06b6bd5eb3f63c620000ea620001d3565b6200016c7f11c2020b6b4f4e00c2410234e0c72636b4739cf7cda4d8e24ef6b881350e6704620000ea620001d3565b620001a7600080516020620041e38339815191527f11c2020b6b4f4e00c2410234e0c72636b4739cf7cda4d8e24ef6b881350e670462000251565b601280546001600160a01b0319166001600160a01b039290921691909117905550620005ff9350505050565b6000620001ea6200029c60201b62001c171760201c565b905090565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200024d8282620002d5565b5050565b600082815260076020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b600d546000906001600160a01b0316331415620002c0575060131936013560601c90565b620001ea6200037b60201b62001c441760201c565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166200024d5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905562000337620001d3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b3390565b8280546200038d90620005ac565b90600052602060002090601f016020900481019282620003b15760008555620003fc565b82601f10620003cc57805160ff1916838001178555620003fc565b82800160010185558215620003fc579182015b82811115620003fc578251825591602001919060010190620003df565b506200040a9291506200040e565b5090565b5b808211156200040a57600081556001016200040f565b80516001600160a01b03811681146200043d57600080fd5b919050565b600082601f8301126200045457600080fd5b81516001600160401b0380821115620004715762000471620005e9565b604051601f8301601f19908116603f011681019082821181831017156200049c576200049c620005e9565b81604052838152602092508683858801011115620004b957600080fd5b600091505b83821015620004dd5785820183015181830184015290820190620004be565b83821115620004ef5760008385830101525b9695505050505050565b60008060008060008060c087890312156200051357600080fd5b86516001600160401b03808211156200052b57600080fd5b620005398a838b0162000442565b975060208901519150808211156200055057600080fd5b506200055f89828a0162000442565b955050620005706040880162000425565b9350620005806060880162000425565b9250620005906080880162000425565b9150620005a060a0880162000425565b90509295509295509295565b600181811c90821680620005c157607f821691505b60208210811415620005e357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613bd4806200060f6000396000f3fe608060405234801561001057600080fd5b50600436106103155760003560e01c806370522669116101a7578063a217fddf116100ee578063d547741f11610097578063dd8dc4c411610071578063dd8dc4c414610724578063e985e9c514610737578063f2fde38b1461077357600080fd5b8063d547741f146106eb578063d85d3d27146106fe578063da7422281461071157600080fd5b8063c87b56dd116100c8578063c87b56dd1461069e578063d286a4de146106b1578063d5391393146106c457600080fd5b8063a217fddf14610670578063a22cb46514610678578063b88d4fde1461068b57600080fd5b806385b33c2e1161015057806395d89b411161012a57806395d89b41146106425780639ab87b451461064a5780639fd8e1181461065d57600080fd5b806385b33c2e146105e55780638da5cb5b146105f857806391d148541461060957600080fd5b80637af42857116101815780637af42857146105a35780638456cb59146105ca5780638503531e146105d257600080fd5b8063705226691461057557806370a0823114610588578063715018a61461059b57600080fd5b80632f2ff15d1161026b57806343d824bc116102145780636352211e116101ee5780636352211e1461053c57806363988cac1461054f5780636a6df3e01461056257600080fd5b806343d824bc146104fc578063572b6c051461050f5780635c975abb1461053157600080fd5b806340c1a0641161024557806340c1a064146104ad57806342842e0e146104d657806342966c68146104e957600080fd5b80632f2ff15d1461047f57806336568abe146104925780633f4ba83a146104a557600080fd5b8063095ea7b3116102cd578063248a9ca3116102a7578063248a9ca31461040557806324ef71fd146104285780632a55205a1461044d57600080fd5b8063095ea7b3146103aa57806311d15e7a146103bd57806323b872dd146103f257600080fd5b80630719ae84116102fe5780630719ae8414610357578063072dbe931461036c578063081812fc1461037f57600080fd5b806301ffc9a71461031a57806306fdde0314610342575b600080fd5b61032d61032836600461372c565b610786565b60405190151581526020015b60405180910390f35b61034a610797565b60405161033991906139f9565b61036a610365366004613576565b610829565b005b61036a61037a36600461379b565b61091f565b61039261038d3660046136ee565b610b19565b6040516001600160a01b039091168152602001610339565b61036a6103b83660046136c2565b610bbf565b6103e47f11c2020b6b4f4e00c2410234e0c72636b4739cf7cda4d8e24ef6b881350e670481565b604051908152602001610339565b61036a6104003660046135cc565b610d03565b6103e46104133660046136ee565b60009081526007602052604090206001015490565b600a546104389063ffffffff1681565b60405163ffffffff9091168152602001610339565b61046061045b3660046138a4565b610d91565b604080516001600160a01b039093168352602083019190915201610339565b61036a61048d366004613707565b610e03565b61036a6104a0366004613707565b610e30565b61036a610ecc565b6103926104bb3660046136ee565b6000908152601060205260409020546001600160a01b031690565b61036a6104e43660046135cc565b610f3d565b61036a6104f73660046136ee565b611001565b61039261050a3660046136ee565b61108a565b61032d61051d366004613576565b600d546001600160a01b0391821691161490565b60085460ff1661032d565b61039261054a3660046136ee565b61123a565b600f54610392906001600160a01b031681565b61036a610570366004613576565b6112c5565b6103926105833660046136ee565b6113b6565b6103e4610596366004613576565b611427565b61036a6114c1565b6103e47f8bfb584c227c3073936237f17ad489521ee4928fcefad86a4e06b6bd5eb3f63c81565b61036a611544565b61032d6105e03660046136c2565b6115cb565b601254610392906001600160a01b031681565b6006546001600160a01b0316610392565b61032d610617366004613707565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61034a6115de565b61036a610658366004613576565b6115ed565b61036a61066b3660046138c6565b61168e565b6103e4600081565b61036a61068636600461368d565b6117f8565b61036a61069936600461360d565b61180a565b61034a6106ac3660046136ee565b61189f565b61036a6106bf36600461381a565b6118aa565b6103e47f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61036a6106f9366004613707565b6119c3565b6103e461070c366004613766565b6119eb565b61036a61071f366004613576565b611a7e565b600e54610392906001600160a01b031681565b61032d610745366004613593565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61036a610781366004613576565b611b19565b600061079182611c48565b92915050565b6060600080546107a690613ab1565b80601f01602080910402602001604051908101604052809291908181526020018280546107d290613ab1565b801561081f5780601f106107f45761010080835404028352916020019161081f565b820191906000526020600020905b81548152906001019060200180831161080257829003601f168201915b5050505050905090565b610831611c86565b6001600160a01b031661084c6006546001600160a01b031690565b6001600160a01b0316146108a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166108fd5760405162461bcd60e51b815260206004820152601660248201527f63616e6e6f74206265207a65726f206164647265737300000000000000000000604482015260640161089e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b61094b7f8bfb584c227c3073936237f17ad489521ee4928fcefad86a4e06b6bd5eb3f63c610617611c86565b8061095e575061095e6000610617611c86565b6109f65760405162461bcd60e51b815260206004820152604760248201527f61697264726f704d696e74546f43726561746f723a206d75737420686176652060448201527f4d494e545f574954485f43524541544f52206f722044454641554c545f41444d60648201527f494e5f524f4c4500000000000000000000000000000000000000000000000000608482015260a40161089e565b6001600160a01b038116610a725760405162461bcd60e51b815260206004820152603460248201527f61697264726f704d696e74546f43726561746f723a2063726561746f7220636160448201527f6e6e6f74206265207a65726f2061646472657373000000000000000000000000606482015260840161089e565b808415610a8957610a828561108a565b9050610a9b565b6001600160a01b03841615610a9b5750825b6000610aa987848487611c90565b6001600160a01b0384166000818152601160209081526040808320858452825291829020805460ff19166001908117909155915191825292935083927f20efeee1222d2c69d321347d9deed6b2379542a8d06a5ed52e92f131b3d1c50f910160405180910390a350505050505050565b6000818152600260205260408120546001600160a01b0316610ba35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161089e565b506000908152600460205260409020546001600160a01b031690565b6000610bca8261123a565b9050806001600160a01b0316836001600160a01b03161415610c545760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161089e565b806001600160a01b0316610c66611c86565b6001600160a01b03161480610c825750610c8281610745611c86565b610cf45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161089e565b610cfe8383611d24565b505050565b610d14610d0e611c86565b82611d92565b610d865760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b610cfe838383611e96565b6000828152600b6020908152604080832054600a54600c909352908320546001600160a01b03909116929163ffffffff908116911615610de257506000848152600c602052604090205463ffffffff165b612710610def8286613a38565b610df99190613a24565b9150509250929050565b600082815260076020526040902060010154610e2681610e21611c86565b61206e565b610cfe83836120ee565b610e38611c86565b6001600160a01b0316816001600160a01b031614610ebe5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161089e565b610ec88282612191565b5050565b610ed96000610617611c86565b610f335760405162461bcd60e51b815260206004820152602560248201527f756e70617573653a206d75737420686176652044454641554c545f41444d494e6044820152645f524f4c4560d81b606482015260840161089e565b610f3b612232565b565b610f4e610f48611c86565b826122d4565b610fe65760405162461bcd60e51b815260206004820152604860248201527f466972737444696273546f6b656e56323a207472616e736665722063616c6c6560448201527f72206973206e6f74206f776e6572206e6f7220617070726f766564206e6f722060648201527f7665726966696564000000000000000000000000000000000000000000000000608482015260a40161089e565b610cfe83838360405180602001604052806000815250612422565b61100c610d0e611c86565b61107e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161089e565b611087816124ab565b50565b600e546000906001600160a01b0316158015906110b15750600f546001600160a01b031615155b6111235760405162461bcd60e51b815260206004820152602660248201527f73706c6974466f7277617264657220262073706c6974506f6f6c206d7573742060448201527f6265207365740000000000000000000000000000000000000000000000000000606482015260840161089e565b6111638260405160200161113991815260200190565b60408051601f198184030181529190528051602090910120600e546001600160a01b0316906124b4565b90506001600160a01b0381163b611235576111b48260405160200161118a91815260200190565b60408051601f198184030181529190528051602090910120600e546001600160a01b031690612530565b50600f546040517f6910e334000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03918216602482015290821690636910e33490604401600060405180830381600087803b15801561121c57600080fd5b505af1158015611230573d6000803e3d6000fd5b505050505b919050565b6000818152600260205260408120546001600160a01b0316806107915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161089e565b6112cd611c86565b6001600160a01b03166112e86006546001600160a01b031690565b6001600160a01b03161461133e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b6001600160a01b0381166113945760405162461bcd60e51b815260206004820152601660248201527f63616e6e6f74206265207a65726f206164647265737300000000000000000000604482015260640161089e565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546000906001600160a01b03166114115760405162461bcd60e51b815260206004820152601a60248201527f73706c6974466f72776172646572206d75737420626520736574000000000000604482015260640161089e565b6107918260405160200161113991815260200190565b60006001600160a01b0382166114a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161089e565b506001600160a01b031660009081526003602052604090205490565b6114c9611c86565b6001600160a01b03166114e46006546001600160a01b031690565b6001600160a01b03161461153a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b610f3b60006125e7565b6115516000610617611c86565b6115c35760405162461bcd60e51b815260206004820152602360248201527f70617573653a206d75737420686176652044454641554c545f41444d494e5f5260448201527f4f4c450000000000000000000000000000000000000000000000000000000000606482015260840161089e565b610f3b612639565b60006115d783836122d4565b9392505050565b6060600180546107a690613ab1565b6115fa6000610617611c86565b61166c5760405162461bcd60e51b815260206004820152603060248201527f736574446962734d61726b6574706c6163653a206d757374206861766520444560448201527f4641554c545f41444d494e5f524f4c4500000000000000000000000000000000606482015260840161089e565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611696611c86565b6001600160a01b03166116b16006546001600160a01b031690565b6001600160a01b0316146117075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b6127108163ffffffff16111561175f5760405162461bcd60e51b815260206004820152601660248201527f56616c7565206d757374206265203c3d20313030303000000000000000000000604482015260640161089e565b60c88163ffffffff1610156117dc5760405162461bcd60e51b815260206004820152602760248201527f43726561746f7220726f79616c74792063616e6e6f74206265206c6f7765722060448201527f7468616e20322500000000000000000000000000000000000000000000000000606482015260840161089e565b600a805463ffffffff191663ffffffff92909216919091179055565b610ec8611803611c86565b83836126c2565b61181b611815611c86565b83611d92565b61188d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b61189984848484612422565b50505050565b606061079182612791565b6118d67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610617611c86565b6119305760405162461bcd60e51b815260206004820152602560248201527f6d696e7457697468506172616d733a206d7573742068617665204d494e5445526044820152645f524f4c4560d81b606482015260840161089e565b600061193a611c86565b905085156119525761194b8661108a565b9050611964565b6001600160a01b038516156119645750835b600061197988611972611c86565b8488611c90565b9050831561199d57601254611998906001600160a01b031660016117f8565b6119b9565b82156119b9576012546119b9906001600160a01b031682610bbf565b5050505050505050565b6000828152600760205260409020600101546119e181610e21611c86565b610cfe8383612191565b6000611a197f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610617611c86565b611a655760405162461bcd60e51b815260206004820152601b60248201527f6d696e743a206d7573742068617665204d494e5445525f524f4c450000000000604482015260640161089e565b6000611a6f611c86565b90506115d78382836000611c90565b611a86611c86565b6001600160a01b0316611aa16006546001600160a01b031690565b6001600160a01b031614611af75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611b21611c86565b6001600160a01b0316611b3c6006546001600160a01b031690565b6001600160a01b031614611b925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b6001600160a01b038116611c0e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161089e565b611087816125e7565b600d546000906001600160a01b0316331415611c3a575060131936013560601c90565b503390565b905090565b3390565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061079157506107918261291c565b6000611c3f611c17565b6000611ca0601380546001019055565b50601354611cae84826129b7565b611cb881866129d1565b600081815260106020526040902080546001600160a01b0319166001600160a01b0386161790556000818152600b6020526040902080546001600160a01b0319166001600160a01b03851617905563ffffffff821615611d1c57611d1c8183612a7a565b949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d598261123a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611e1c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161089e565b6000611e278361123a565b9050806001600160a01b0316846001600160a01b03161480611e625750836001600160a01b0316611e5784610b19565b6001600160a01b0316145b80611d1c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611d1c565b826001600160a01b0316611ea98261123a565b6001600160a01b031614611f255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161089e565b6001600160a01b038216611fa05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161089e565b611fab838383612b20565b611fb6600082611d24565b6001600160a01b0383166000908152600360205260408120805460019290611fdf908490613a57565b90915550506001600160a01b038216600090815260036020526040812080546001929061200d908490613a0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610ec8576120ac816001600160a01b03166014612b7e565b6120b7836020612b7e565b6040516020016120c892919061393c565b60408051601f198184030181529082905262461bcd60e51b825261089e916004016139f9565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610ec85760008281526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561214d611c86565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff1615610ec85760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191690556121ee611c86565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60085460ff166122845760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161089e565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122b7611c86565b6040516001600160a01b03909116815260200160405180910390a1565b6000818152600260205260408120546001600160a01b031661235e5760405162461bcd60e51b815260206004820152603660248201527f466972737444696273546f6b656e56323a206f70657261746f7220717565727960448201527f20666f72206e6f6e6578697374656e7420746f6b656e00000000000000000000606482015260840161089e565b60006123698361123a565b9050806001600160a01b0316846001600160a01b031614806123a45750836001600160a01b031661239984610b19565b6001600160a01b0316145b806123d457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611d1c57506001600160a01b038116600090815260116020908152604080832086845290915290205460ff168015611d1c57506012546001600160a01b0385811691161491505092915050565b61242d848484611e96565b61243984848484612d43565b6118995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b61108781612ec3565b60006115d78383306040517f3d602d80600a3d3981f3363d3d373d3d3d363d730000000000000000000000008152606093841b60148201527f5af43d82803e903d91602b57fd5bf3ff000000000000000000000000000000006028820152921b6038830152604c8201526037808220606c830152605591012090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b0381166107915760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640161089e565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff161561268c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161089e565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122b7611c86565b816001600160a01b0316836001600160a01b031614156127245760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161089e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000818152600260205260409020546060906001600160a01b031661281e5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161089e565b6000828152600960205260408120805461283790613ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461286390613ab1565b80156128b05780601f10612885576101008083540402835291602001916128b0565b820191906000526020600020905b81548152906001019060200180831161289357829003601f168201915b5050505050905060006128ce60408051602081019091526000815290565b90508051600014156128e1575092915050565b8151156129135780826040516020016128fb92919061390d565b60405160208183030381529060405292505050919050565b611d1c84612f03565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061297f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610791565b610ec8828260405180602001604052806000815250612ff8565b6000828152600260205260409020546001600160a01b0316612a5b5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161089e565b60008281526009602090815260409091208251610cfe928401906133ed565b610bb88163ffffffff161115612af85760405162461bcd60e51b815260206004820152602760248201527f50657220746f6b656e20726f79616c7479206d757374206265206c657373207460448201527f68616e2033302500000000000000000000000000000000000000000000000000606482015260840161089e565b6000918252600c6020526040909120805463ffffffff191663ffffffff909216919091179055565b60085460ff1615612b735760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161089e565b610cfe838383613081565b60606000612b8d836002613a38565b612b98906002613a0c565b67ffffffffffffffff811115612bb057612bb0613b5d565b6040519080825280601f01601f191660200182016040528015612bda576020820181803683370190505b509050600360fc1b81600081518110612bf557612bf5613b47565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c4057612c40613b47565b60200101906001600160f81b031916908160001a9053506000612c64846002613a38565b612c6f906001613a0c565b90505b6001811115612cf4577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612cb057612cb0613b47565b1a60f81b828281518110612cc657612cc6613b47565b60200101906001600160f81b031916908160001a90535060049490941c93612ced81613a9a565b9050612c72565b5083156115d75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161089e565b60006001600160a01b0384163b15612ebb57836001600160a01b031663150b7a02612d6c611c86565b8786866040518563ffffffff1660e01b8152600401612d8e94939291906139bd565b602060405180830381600087803b158015612da857600080fd5b505af1925050508015612dd8575060408051601f3d908101601f19168201909252612dd591810190613749565b60015b612e88573d808015612e06576040519150601f19603f3d011682016040523d82523d6000602084013e612e0b565b606091505b508051612e805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d1c565b506001611d1c565b612ecc816130fa565b60008181526009602052604090208054612ee590613ab1565b15905061108757600081815260096020526040812061108791613471565b6000818152600260205260409020546060906001600160a01b0316612f905760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161089e565b6000612fa760408051602081019091526000815290565b90506000815111612fc757604051806020016040528060008152506115d7565b80612fd1846131a1565b604051602001612fe292919061390d565b6040516020818303038152906040529392505050565b613002838361329f565b61300f6000848484612d43565b610cfe5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b60085460ff1615610cfe5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c6520706175736564000000000000000000000000000000000000000000606482015260840161089e565b60006131058261123a565b905061311381600084612b20565b61311e600083611d24565b6001600160a01b0381166000908152600360205260408120805460019290613147908490613a57565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060816131c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131ef57806131d981613aec565b91506131e89050600a83613a24565b91506131c9565b60008167ffffffffffffffff81111561320a5761320a613b5d565b6040519080825280601f01601f191660200182016040528015613234576020820181803683370190505b5090505b8415611d1c57613249600183613a57565b9150613256600a86613b07565b613261906030613a0c565b60f81b81838151811061327657613276613b47565b60200101906001600160f81b031916908160001a905350613298600a86613a24565b9450613238565b6001600160a01b0382166132f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161089e565b6000818152600260205260409020546001600160a01b03161561335a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161089e565b61336660008383612b20565b6001600160a01b038216600090815260036020526040812080546001929061338f908490613a0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546133f990613ab1565b90600052602060002090601f01602090048101928261341b5760008555613461565b82601f1061343457805160ff1916838001178555613461565b82800160010185558215613461579182015b82811115613461578251825591602001919060010190613446565b5061346d9291506134a7565b5090565b50805461347d90613ab1565b6000825580601f1061348d575050565b601f01602090049060005260206000209081019061108791905b5b8082111561346d57600081556001016134a8565b600067ffffffffffffffff808411156134d7576134d7613b5d565b604051601f8501601f19908116603f011681019082821181831017156134ff576134ff613b5d565b8160405280935085815286868601111561351857600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461123557600080fd5b600082601f83011261355357600080fd5b6115d7838335602085016134bc565b803563ffffffff8116811461123557600080fd5b60006020828403121561358857600080fd5b81356115d781613b73565b600080604083850312156135a657600080fd5b82356135b181613b73565b915060208301356135c181613b73565b809150509250929050565b6000806000606084860312156135e157600080fd5b83356135ec81613b73565b925060208401356135fc81613b73565b929592945050506040919091013590565b6000806000806080858703121561362357600080fd5b843561362e81613b73565b9350602085013561363e81613b73565b925060408501359150606085013567ffffffffffffffff81111561366157600080fd5b8501601f8101871361367257600080fd5b613681878235602084016134bc565b91505092959194509250565b600080604083850312156136a057600080fd5b82356136ab81613b73565b91506136b960208401613532565b90509250929050565b600080604083850312156136d557600080fd5b82356136e081613b73565b946020939093013593505050565b60006020828403121561370057600080fd5b5035919050565b6000806040838503121561371a57600080fd5b8235915060208301356135c181613b73565b60006020828403121561373e57600080fd5b81356115d781613b88565b60006020828403121561375b57600080fd5b81516115d781613b88565b60006020828403121561377857600080fd5b813567ffffffffffffffff81111561378f57600080fd5b611d1c84828501613542565b600080600080600060a086880312156137b357600080fd5b853567ffffffffffffffff8111156137ca57600080fd5b6137d688828901613542565b9550506020860135935060408601356137ee81613b73565b92506137fc60608701613562565b9150608086013561380c81613b73565b809150509295509295909350565b60008060008060008060c0878903121561383357600080fd5b863567ffffffffffffffff81111561384a57600080fd5b61385689828a01613542565b96505060208701359450604087013561386e81613b73565b935061387c60608801613562565b925061388a60808801613532565b915061389860a08801613532565b90509295509295509295565b600080604083850312156138b757600080fd5b50508035926020909101359150565b6000602082840312156138d857600080fd5b6115d782613562565b600081518084526138f9816020860160208601613a6e565b601f01601f19169290920160200192915050565b6000835161391f818460208801613a6e565b835190830190613933818360208801613a6e565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613974816017850160208801613a6e565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516139b1816028840160208801613a6e565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526139ef60808301846138e1565b9695505050505050565b6020815260006115d760208301846138e1565b60008219821115613a1f57613a1f613b1b565b500190565b600082613a3357613a33613b31565b500490565b6000816000190483118215151615613a5257613a52613b1b565b500290565b600082821015613a6957613a69613b1b565b500390565b60005b83811015613a89578181015183820152602001613a71565b838111156118995750506000910152565b600081613aa957613aa9613b1b565b506000190190565b600181811c90821680613ac557607f821691505b60208210811415613ae657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613b0057613b00613b1b565b5060010190565b600082613b1657613b16613b31565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461108757600080fd5b6001600160e01b03198116811461108757600080fdfea26469706673582212208d49fb98d9b26df41fa3b470b4e5a2d35a59cb5c7045d804882c40aaf71f4cfa64736f6c634300080700339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046852869902d9f8a4d76195fc23add15d921abd90000000000000000000000000000000000000000000000000000000000000009317374446962732e32000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054449425332000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103155760003560e01c806370522669116101a7578063a217fddf116100ee578063d547741f11610097578063dd8dc4c411610071578063dd8dc4c414610724578063e985e9c514610737578063f2fde38b1461077357600080fd5b8063d547741f146106eb578063d85d3d27146106fe578063da7422281461071157600080fd5b8063c87b56dd116100c8578063c87b56dd1461069e578063d286a4de146106b1578063d5391393146106c457600080fd5b8063a217fddf14610670578063a22cb46514610678578063b88d4fde1461068b57600080fd5b806385b33c2e1161015057806395d89b411161012a57806395d89b41146106425780639ab87b451461064a5780639fd8e1181461065d57600080fd5b806385b33c2e146105e55780638da5cb5b146105f857806391d148541461060957600080fd5b80637af42857116101815780637af42857146105a35780638456cb59146105ca5780638503531e146105d257600080fd5b8063705226691461057557806370a0823114610588578063715018a61461059b57600080fd5b80632f2ff15d1161026b57806343d824bc116102145780636352211e116101ee5780636352211e1461053c57806363988cac1461054f5780636a6df3e01461056257600080fd5b806343d824bc146104fc578063572b6c051461050f5780635c975abb1461053157600080fd5b806340c1a0641161024557806340c1a064146104ad57806342842e0e146104d657806342966c68146104e957600080fd5b80632f2ff15d1461047f57806336568abe146104925780633f4ba83a146104a557600080fd5b8063095ea7b3116102cd578063248a9ca3116102a7578063248a9ca31461040557806324ef71fd146104285780632a55205a1461044d57600080fd5b8063095ea7b3146103aa57806311d15e7a146103bd57806323b872dd146103f257600080fd5b80630719ae84116102fe5780630719ae8414610357578063072dbe931461036c578063081812fc1461037f57600080fd5b806301ffc9a71461031a57806306fdde0314610342575b600080fd5b61032d61032836600461372c565b610786565b60405190151581526020015b60405180910390f35b61034a610797565b60405161033991906139f9565b61036a610365366004613576565b610829565b005b61036a61037a36600461379b565b61091f565b61039261038d3660046136ee565b610b19565b6040516001600160a01b039091168152602001610339565b61036a6103b83660046136c2565b610bbf565b6103e47f11c2020b6b4f4e00c2410234e0c72636b4739cf7cda4d8e24ef6b881350e670481565b604051908152602001610339565b61036a6104003660046135cc565b610d03565b6103e46104133660046136ee565b60009081526007602052604090206001015490565b600a546104389063ffffffff1681565b60405163ffffffff9091168152602001610339565b61046061045b3660046138a4565b610d91565b604080516001600160a01b039093168352602083019190915201610339565b61036a61048d366004613707565b610e03565b61036a6104a0366004613707565b610e30565b61036a610ecc565b6103926104bb3660046136ee565b6000908152601060205260409020546001600160a01b031690565b61036a6104e43660046135cc565b610f3d565b61036a6104f73660046136ee565b611001565b61039261050a3660046136ee565b61108a565b61032d61051d366004613576565b600d546001600160a01b0391821691161490565b60085460ff1661032d565b61039261054a3660046136ee565b61123a565b600f54610392906001600160a01b031681565b61036a610570366004613576565b6112c5565b6103926105833660046136ee565b6113b6565b6103e4610596366004613576565b611427565b61036a6114c1565b6103e47f8bfb584c227c3073936237f17ad489521ee4928fcefad86a4e06b6bd5eb3f63c81565b61036a611544565b61032d6105e03660046136c2565b6115cb565b601254610392906001600160a01b031681565b6006546001600160a01b0316610392565b61032d610617366004613707565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61034a6115de565b61036a610658366004613576565b6115ed565b61036a61066b3660046138c6565b61168e565b6103e4600081565b61036a61068636600461368d565b6117f8565b61036a61069936600461360d565b61180a565b61034a6106ac3660046136ee565b61189f565b61036a6106bf36600461381a565b6118aa565b6103e47f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61036a6106f9366004613707565b6119c3565b6103e461070c366004613766565b6119eb565b61036a61071f366004613576565b611a7e565b600e54610392906001600160a01b031681565b61032d610745366004613593565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61036a610781366004613576565b611b19565b600061079182611c48565b92915050565b6060600080546107a690613ab1565b80601f01602080910402602001604051908101604052809291908181526020018280546107d290613ab1565b801561081f5780601f106107f45761010080835404028352916020019161081f565b820191906000526020600020905b81548152906001019060200180831161080257829003601f168201915b5050505050905090565b610831611c86565b6001600160a01b031661084c6006546001600160a01b031690565b6001600160a01b0316146108a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166108fd5760405162461bcd60e51b815260206004820152601660248201527f63616e6e6f74206265207a65726f206164647265737300000000000000000000604482015260640161089e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b61094b7f8bfb584c227c3073936237f17ad489521ee4928fcefad86a4e06b6bd5eb3f63c610617611c86565b8061095e575061095e6000610617611c86565b6109f65760405162461bcd60e51b815260206004820152604760248201527f61697264726f704d696e74546f43726561746f723a206d75737420686176652060448201527f4d494e545f574954485f43524541544f52206f722044454641554c545f41444d60648201527f494e5f524f4c4500000000000000000000000000000000000000000000000000608482015260a40161089e565b6001600160a01b038116610a725760405162461bcd60e51b815260206004820152603460248201527f61697264726f704d696e74546f43726561746f723a2063726561746f7220636160448201527f6e6e6f74206265207a65726f2061646472657373000000000000000000000000606482015260840161089e565b808415610a8957610a828561108a565b9050610a9b565b6001600160a01b03841615610a9b5750825b6000610aa987848487611c90565b6001600160a01b0384166000818152601160209081526040808320858452825291829020805460ff19166001908117909155915191825292935083927f20efeee1222d2c69d321347d9deed6b2379542a8d06a5ed52e92f131b3d1c50f910160405180910390a350505050505050565b6000818152600260205260408120546001600160a01b0316610ba35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161089e565b506000908152600460205260409020546001600160a01b031690565b6000610bca8261123a565b9050806001600160a01b0316836001600160a01b03161415610c545760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161089e565b806001600160a01b0316610c66611c86565b6001600160a01b03161480610c825750610c8281610745611c86565b610cf45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161089e565b610cfe8383611d24565b505050565b610d14610d0e611c86565b82611d92565b610d865760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b610cfe838383611e96565b6000828152600b6020908152604080832054600a54600c909352908320546001600160a01b03909116929163ffffffff908116911615610de257506000848152600c602052604090205463ffffffff165b612710610def8286613a38565b610df99190613a24565b9150509250929050565b600082815260076020526040902060010154610e2681610e21611c86565b61206e565b610cfe83836120ee565b610e38611c86565b6001600160a01b0316816001600160a01b031614610ebe5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161089e565b610ec88282612191565b5050565b610ed96000610617611c86565b610f335760405162461bcd60e51b815260206004820152602560248201527f756e70617573653a206d75737420686176652044454641554c545f41444d494e6044820152645f524f4c4560d81b606482015260840161089e565b610f3b612232565b565b610f4e610f48611c86565b826122d4565b610fe65760405162461bcd60e51b815260206004820152604860248201527f466972737444696273546f6b656e56323a207472616e736665722063616c6c6560448201527f72206973206e6f74206f776e6572206e6f7220617070726f766564206e6f722060648201527f7665726966696564000000000000000000000000000000000000000000000000608482015260a40161089e565b610cfe83838360405180602001604052806000815250612422565b61100c610d0e611c86565b61107e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161089e565b611087816124ab565b50565b600e546000906001600160a01b0316158015906110b15750600f546001600160a01b031615155b6111235760405162461bcd60e51b815260206004820152602660248201527f73706c6974466f7277617264657220262073706c6974506f6f6c206d7573742060448201527f6265207365740000000000000000000000000000000000000000000000000000606482015260840161089e565b6111638260405160200161113991815260200190565b60408051601f198184030181529190528051602090910120600e546001600160a01b0316906124b4565b90506001600160a01b0381163b611235576111b48260405160200161118a91815260200190565b60408051601f198184030181529190528051602090910120600e546001600160a01b031690612530565b50600f546040517f6910e334000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03918216602482015290821690636910e33490604401600060405180830381600087803b15801561121c57600080fd5b505af1158015611230573d6000803e3d6000fd5b505050505b919050565b6000818152600260205260408120546001600160a01b0316806107915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161089e565b6112cd611c86565b6001600160a01b03166112e86006546001600160a01b031690565b6001600160a01b03161461133e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b6001600160a01b0381166113945760405162461bcd60e51b815260206004820152601660248201527f63616e6e6f74206265207a65726f206164647265737300000000000000000000604482015260640161089e565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546000906001600160a01b03166114115760405162461bcd60e51b815260206004820152601a60248201527f73706c6974466f72776172646572206d75737420626520736574000000000000604482015260640161089e565b6107918260405160200161113991815260200190565b60006001600160a01b0382166114a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161089e565b506001600160a01b031660009081526003602052604090205490565b6114c9611c86565b6001600160a01b03166114e46006546001600160a01b031690565b6001600160a01b03161461153a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b610f3b60006125e7565b6115516000610617611c86565b6115c35760405162461bcd60e51b815260206004820152602360248201527f70617573653a206d75737420686176652044454641554c545f41444d494e5f5260448201527f4f4c450000000000000000000000000000000000000000000000000000000000606482015260840161089e565b610f3b612639565b60006115d783836122d4565b9392505050565b6060600180546107a690613ab1565b6115fa6000610617611c86565b61166c5760405162461bcd60e51b815260206004820152603060248201527f736574446962734d61726b6574706c6163653a206d757374206861766520444560448201527f4641554c545f41444d494e5f524f4c4500000000000000000000000000000000606482015260840161089e565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611696611c86565b6001600160a01b03166116b16006546001600160a01b031690565b6001600160a01b0316146117075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b6127108163ffffffff16111561175f5760405162461bcd60e51b815260206004820152601660248201527f56616c7565206d757374206265203c3d20313030303000000000000000000000604482015260640161089e565b60c88163ffffffff1610156117dc5760405162461bcd60e51b815260206004820152602760248201527f43726561746f7220726f79616c74792063616e6e6f74206265206c6f7765722060448201527f7468616e20322500000000000000000000000000000000000000000000000000606482015260840161089e565b600a805463ffffffff191663ffffffff92909216919091179055565b610ec8611803611c86565b83836126c2565b61181b611815611c86565b83611d92565b61188d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161089e565b61189984848484612422565b50505050565b606061079182612791565b6118d67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610617611c86565b6119305760405162461bcd60e51b815260206004820152602560248201527f6d696e7457697468506172616d733a206d7573742068617665204d494e5445526044820152645f524f4c4560d81b606482015260840161089e565b600061193a611c86565b905085156119525761194b8661108a565b9050611964565b6001600160a01b038516156119645750835b600061197988611972611c86565b8488611c90565b9050831561199d57601254611998906001600160a01b031660016117f8565b6119b9565b82156119b9576012546119b9906001600160a01b031682610bbf565b5050505050505050565b6000828152600760205260409020600101546119e181610e21611c86565b610cfe8383612191565b6000611a197f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610617611c86565b611a655760405162461bcd60e51b815260206004820152601b60248201527f6d696e743a206d7573742068617665204d494e5445525f524f4c450000000000604482015260640161089e565b6000611a6f611c86565b90506115d78382836000611c90565b611a86611c86565b6001600160a01b0316611aa16006546001600160a01b031690565b6001600160a01b031614611af75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611b21611c86565b6001600160a01b0316611b3c6006546001600160a01b031690565b6001600160a01b031614611b925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089e565b6001600160a01b038116611c0e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161089e565b611087816125e7565b600d546000906001600160a01b0316331415611c3a575060131936013560601c90565b503390565b905090565b3390565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061079157506107918261291c565b6000611c3f611c17565b6000611ca0601380546001019055565b50601354611cae84826129b7565b611cb881866129d1565b600081815260106020526040902080546001600160a01b0319166001600160a01b0386161790556000818152600b6020526040902080546001600160a01b0319166001600160a01b03851617905563ffffffff821615611d1c57611d1c8183612a7a565b949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d598261123a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611e1c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161089e565b6000611e278361123a565b9050806001600160a01b0316846001600160a01b03161480611e625750836001600160a01b0316611e5784610b19565b6001600160a01b0316145b80611d1c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16611d1c565b826001600160a01b0316611ea98261123a565b6001600160a01b031614611f255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161089e565b6001600160a01b038216611fa05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161089e565b611fab838383612b20565b611fb6600082611d24565b6001600160a01b0383166000908152600360205260408120805460019290611fdf908490613a57565b90915550506001600160a01b038216600090815260036020526040812080546001929061200d908490613a0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610ec8576120ac816001600160a01b03166014612b7e565b6120b7836020612b7e565b6040516020016120c892919061393c565b60408051601f198184030181529082905262461bcd60e51b825261089e916004016139f9565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610ec85760008281526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561214d611c86565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff1615610ec85760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191690556121ee611c86565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60085460ff166122845760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161089e565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122b7611c86565b6040516001600160a01b03909116815260200160405180910390a1565b6000818152600260205260408120546001600160a01b031661235e5760405162461bcd60e51b815260206004820152603660248201527f466972737444696273546f6b656e56323a206f70657261746f7220717565727960448201527f20666f72206e6f6e6578697374656e7420746f6b656e00000000000000000000606482015260840161089e565b60006123698361123a565b9050806001600160a01b0316846001600160a01b031614806123a45750836001600160a01b031661239984610b19565b6001600160a01b0316145b806123d457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611d1c57506001600160a01b038116600090815260116020908152604080832086845290915290205460ff168015611d1c57506012546001600160a01b0385811691161491505092915050565b61242d848484611e96565b61243984848484612d43565b6118995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b61108781612ec3565b60006115d78383306040517f3d602d80600a3d3981f3363d3d373d3d3d363d730000000000000000000000008152606093841b60148201527f5af43d82803e903d91602b57fd5bf3ff000000000000000000000000000000006028820152921b6038830152604c8201526037808220606c830152605591012090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b0381166107915760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640161089e565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff161561268c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161089e565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122b7611c86565b816001600160a01b0316836001600160a01b031614156127245760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161089e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000818152600260205260409020546060906001600160a01b031661281e5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161089e565b6000828152600960205260408120805461283790613ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461286390613ab1565b80156128b05780601f10612885576101008083540402835291602001916128b0565b820191906000526020600020905b81548152906001019060200180831161289357829003601f168201915b5050505050905060006128ce60408051602081019091526000815290565b90508051600014156128e1575092915050565b8151156129135780826040516020016128fb92919061390d565b60405160208183030381529060405292505050919050565b611d1c84612f03565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061297f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610791565b610ec8828260405180602001604052806000815250612ff8565b6000828152600260205260409020546001600160a01b0316612a5b5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161089e565b60008281526009602090815260409091208251610cfe928401906133ed565b610bb88163ffffffff161115612af85760405162461bcd60e51b815260206004820152602760248201527f50657220746f6b656e20726f79616c7479206d757374206265206c657373207460448201527f68616e2033302500000000000000000000000000000000000000000000000000606482015260840161089e565b6000918252600c6020526040909120805463ffffffff191663ffffffff909216919091179055565b60085460ff1615612b735760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161089e565b610cfe838383613081565b60606000612b8d836002613a38565b612b98906002613a0c565b67ffffffffffffffff811115612bb057612bb0613b5d565b6040519080825280601f01601f191660200182016040528015612bda576020820181803683370190505b509050600360fc1b81600081518110612bf557612bf5613b47565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c4057612c40613b47565b60200101906001600160f81b031916908160001a9053506000612c64846002613a38565b612c6f906001613a0c565b90505b6001811115612cf4577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612cb057612cb0613b47565b1a60f81b828281518110612cc657612cc6613b47565b60200101906001600160f81b031916908160001a90535060049490941c93612ced81613a9a565b9050612c72565b5083156115d75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161089e565b60006001600160a01b0384163b15612ebb57836001600160a01b031663150b7a02612d6c611c86565b8786866040518563ffffffff1660e01b8152600401612d8e94939291906139bd565b602060405180830381600087803b158015612da857600080fd5b505af1925050508015612dd8575060408051601f3d908101601f19168201909252612dd591810190613749565b60015b612e88573d808015612e06576040519150601f19603f3d011682016040523d82523d6000602084013e612e0b565b606091505b508051612e805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d1c565b506001611d1c565b612ecc816130fa565b60008181526009602052604090208054612ee590613ab1565b15905061108757600081815260096020526040812061108791613471565b6000818152600260205260409020546060906001600160a01b0316612f905760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161089e565b6000612fa760408051602081019091526000815290565b90506000815111612fc757604051806020016040528060008152506115d7565b80612fd1846131a1565b604051602001612fe292919061390d565b6040516020818303038152906040529392505050565b613002838361329f565b61300f6000848484612d43565b610cfe5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161089e565b60085460ff1615610cfe5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c6520706175736564000000000000000000000000000000000000000000606482015260840161089e565b60006131058261123a565b905061311381600084612b20565b61311e600083611d24565b6001600160a01b0381166000908152600360205260408120805460019290613147908490613a57565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060816131c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131ef57806131d981613aec565b91506131e89050600a83613a24565b91506131c9565b60008167ffffffffffffffff81111561320a5761320a613b5d565b6040519080825280601f01601f191660200182016040528015613234576020820181803683370190505b5090505b8415611d1c57613249600183613a57565b9150613256600a86613b07565b613261906030613a0c565b60f81b81838151811061327657613276613b47565b60200101906001600160f81b031916908160001a905350613298600a86613a24565b9450613238565b6001600160a01b0382166132f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161089e565b6000818152600260205260409020546001600160a01b03161561335a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161089e565b61336660008383612b20565b6001600160a01b038216600090815260036020526040812080546001929061338f908490613a0c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546133f990613ab1565b90600052602060002090601f01602090048101928261341b5760008555613461565b82601f1061343457805160ff1916838001178555613461565b82800160010185558215613461579182015b82811115613461578251825591602001919060010190613446565b5061346d9291506134a7565b5090565b50805461347d90613ab1565b6000825580601f1061348d575050565b601f01602090049060005260206000209081019061108791905b5b8082111561346d57600081556001016134a8565b600067ffffffffffffffff808411156134d7576134d7613b5d565b604051601f8501601f19908116603f011681019082821181831017156134ff576134ff613b5d565b8160405280935085815286868601111561351857600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461123557600080fd5b600082601f83011261355357600080fd5b6115d7838335602085016134bc565b803563ffffffff8116811461123557600080fd5b60006020828403121561358857600080fd5b81356115d781613b73565b600080604083850312156135a657600080fd5b82356135b181613b73565b915060208301356135c181613b73565b809150509250929050565b6000806000606084860312156135e157600080fd5b83356135ec81613b73565b925060208401356135fc81613b73565b929592945050506040919091013590565b6000806000806080858703121561362357600080fd5b843561362e81613b73565b9350602085013561363e81613b73565b925060408501359150606085013567ffffffffffffffff81111561366157600080fd5b8501601f8101871361367257600080fd5b613681878235602084016134bc565b91505092959194509250565b600080604083850312156136a057600080fd5b82356136ab81613b73565b91506136b960208401613532565b90509250929050565b600080604083850312156136d557600080fd5b82356136e081613b73565b946020939093013593505050565b60006020828403121561370057600080fd5b5035919050565b6000806040838503121561371a57600080fd5b8235915060208301356135c181613b73565b60006020828403121561373e57600080fd5b81356115d781613b88565b60006020828403121561375b57600080fd5b81516115d781613b88565b60006020828403121561377857600080fd5b813567ffffffffffffffff81111561378f57600080fd5b611d1c84828501613542565b600080600080600060a086880312156137b357600080fd5b853567ffffffffffffffff8111156137ca57600080fd5b6137d688828901613542565b9550506020860135935060408601356137ee81613b73565b92506137fc60608701613562565b9150608086013561380c81613b73565b809150509295509295909350565b60008060008060008060c0878903121561383357600080fd5b863567ffffffffffffffff81111561384a57600080fd5b61385689828a01613542565b96505060208701359450604087013561386e81613b73565b935061387c60608801613562565b925061388a60808801613532565b915061389860a08801613532565b90509295509295509295565b600080604083850312156138b757600080fd5b50508035926020909101359150565b6000602082840312156138d857600080fd5b6115d782613562565b600081518084526138f9816020860160208601613a6e565b601f01601f19169290920160200192915050565b6000835161391f818460208801613a6e565b835190830190613933818360208801613a6e565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613974816017850160208801613a6e565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516139b1816028840160208801613a6e565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526139ef60808301846138e1565b9695505050505050565b6020815260006115d760208301846138e1565b60008219821115613a1f57613a1f613b1b565b500190565b600082613a3357613a33613b31565b500490565b6000816000190483118215151615613a5257613a52613b1b565b500290565b600082821015613a6957613a69613b1b565b500390565b60005b83811015613a89578181015183820152602001613a71565b838111156118995750506000910152565b600081613aa957613aa9613b1b565b506000190190565b600181811c90821680613ac557607f821691505b60208210811415613ae657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613b0057613b00613b1b565b5060010190565b600082613b1657613b16613b31565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461108757600080fd5b6001600160e01b03198116811461108757600080fdfea26469706673582212208d49fb98d9b26df41fa3b470b4e5a2d35a59cb5c7045d804882c40aaf71f4cfa64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046852869902d9f8a4d76195fc23add15d921abd90000000000000000000000000000000000000000000000000000000000000009317374446962732e32000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054449425332000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): 1stDibs.2
Arg [1] : _symbol (string): DIBS2
Arg [2] : _splitForwarder (address): 0x0000000000000000000000000000000000000000
Arg [3] : _splitPool (address): 0x0000000000000000000000000000000000000000
Arg [4] : _trustedForwarder (address): 0x0000000000000000000000000000000000000000
Arg [5] : _dibsMarketplace (address): 0x46852869902d9F8A4D76195fC23Add15d921aBd9

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000046852869902d9f8a4d76195fc23add15d921abd9
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 317374446962732e320000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 4449425332000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.