ETH Price: $2,288.19 (+0.50%)

Token

BNV2 (BNV2)
 

Overview

Max Total Supply

739 BNV2

Holders

328

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 BNV2
0xC67c60cD6d82Fcb2fC6a9a58eA62F80443E32683
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
BNVToken

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 19 : BNVToken.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "./BNVTokenBase.sol";
import "./IBNVToken.sol";
import "./adapters/IBNVAdapter.sol";

/// @title BNV Token Contract 
/// @author Sensible Lab
/// @dev based on a standard ERC721
contract BNVToken is BNVTokenBase, IBNVToken {

    using EnumerableSet for EnumerableSet.AddressSet;

    // Adapter address
    EnumerableSet.AddressSet private _adapters;

    /// @notice Initializes the contract with `baseURI`, use IPFS
    constructor(address[] memory adapterAddress) ERC721("BNV2", "BNV2") {
        for (uint i = 0; i < adapterAddress.length; i++) {
            _adapters.add(adapterAddress[i]);
        }
    }
    
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(BNVTokenBase) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /// @notice disable approve
    function approve(address to, uint256 tokenId) public override(BNVTokenBase) {
        require(isWhiteList(ownerOf(tokenId), to), "Only whitelist is allowed");
        super.approve(to, tokenId);
    }

    /// @notice disable owner to set approve for those operator not in whitelist
    function setApprovalForAll(address operator, bool approved) public override(BNVTokenBase) {
        require(isWhiteList(_msgSender(), operator), "Only whitelist is allowed");
        super.setApprovalForAll(operator, approved);
    }

    /// @notice disable transfer from
    function transferFrom(address from, address to, uint256 tokenId) public virtual override(BNVTokenBase) {
        require(_msgSender() != ownerOf(tokenId), "Use transferWithRoyalty");
        //solhint-disable-next-line max-line-length
        require(getApproved(tokenId) == _msgSender() || isApprovedForAll(ownerOf(tokenId), _msgSender()), "ERC721: transfer caller is not owner nor approved");
        _transfer(from, to, tokenId);
    }

    /// @notice safe transfer from only allow for whitelist and us
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override(BNVTokenBase) {
        require(_msgSender() != ownerOf(tokenId), "Use transferWithRoyalty");
        require(getApproved(tokenId) == _msgSender() || isApprovedForAll(ownerOf(tokenId), _msgSender()), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    // VIEW ONLY =======================================

    /// @notice check whether sender is in white list
    function isWhiteList(address owner, address operator) public view override returns (bool) {
        bool isWhitelisted = false;
        for (uint i = 0; i < _adapters.length(); i++) {
            isWhitelisted = IBNVAdapter(_adapters.at(i)).hasPermission(owner, operator);
            if (isWhitelisted) break;
        }
        return isWhitelisted;
    }

    // ADMIN =======================================

    /// @notice get all adapter address
    function _getAllAdapters() external view onlyOwner returns (address[] memory) {
        address[] memory arr = new address[](_adapters.length());
        for (uint i = 0; i < _adapters.length(); i++) {
            arr[i] = _adapters.at(i);
        }
        return arr;
    }

    /// @notice set adapter address
    function _addToAdapters(address newAdapter) external onlyOwner {
        _adapters.add(newAdapter);
    }

    /// @notice remove adapter address
    function _removeFromAdapters(address existingAdapter) external onlyOwner {
        _adapters.remove(existingAdapter);
    }

}

File 2 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 3 of 19 : BNVTokenBase.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "./IBNVTokenBase.sol";

/// @title BNV Token Base Contract 
/// @author Sensible Lab
/// @dev based on a standard ERC721, drop id is enforced for each token
abstract contract BNVTokenBase is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, IBNVTokenBase {

    using EnumerableSet for EnumerableSet.AddressSet;

    uint256 constant PERCENTAGE_DECIMAL = 10000;

    // Mapping of drop id to drop URI
    mapping (uint256 => string) private _dropURIs;

    // Mapping of token id to drop id
    mapping(uint256 => uint256) private _dropIds;

    // Mapping of drop Id to beneficiaries address
    mapping(uint256 => EnumerableSet.AddressSet) private _beneficiarySets;

    // Mapping of drop Id to beneficiaries rate
    mapping(uint256 => uint256[]) private _beneficiarySplitSets;

    // royalty rate
    mapping(uint256 => uint256) private _royaltyRate;

    // royalty balance
    mapping(uint256 => uint256) private _royaltyBalance;

    // Last sold price of token
    mapping(uint256 => uint256) private _lastSoldPrice;

    // token lock
    mapping(uint256 => uint256) private _tokenLocked;
    
    // minter
    EnumerableSet.AddressSet private _minters;

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
        require(!_isTokenLocked(tokenId), "Token locked");
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _dropURI(uint256 tokenId) internal view virtual returns (string memory) {
        if (_dropIds[tokenId] > 0) {
            return _dropURIs[_dropIds[tokenId]];
        }
        return "";
    }

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

    /// @notice get token URI with drop ID
    function tokenURI(uint256 tokenId) public view virtual override(ERC721, ERC721URIStorage) returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory dropURI = _dropURI(tokenId);
        string memory baseTokenURI = super.tokenURI(tokenId);

        // If there is no drop URI, return the token URI from ERC-721. It shouldn't happened.
        if (bytes(dropURI).length == 0) {
            return baseTokenURI;
        }

        if (bytes(baseTokenURI).length > 0) {
            // If both are set, concatenate the drop and tokenURI (via abi.encodePacked).
            return string(abi.encodePacked(dropURI, baseTokenURI));
        } else {
            return dropURI;
        }
    }

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

    /// @notice disable approve
    function approve(address to, uint256 tokenId) public virtual override(ERC721, IERC721) {
        require(!_isTokenLocked(tokenId), "Token locked");
        super.approve(to, tokenId);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override(ERC721, IERC721) {
        super.setApprovalForAll(operator, approved);
    }

    /// @notice disable transfer from
    function transferFrom(address /* from */, address /* to */, uint256 /* tokenId */) public virtual override(ERC721, IERC721) {
        revert("Use transferWithRoyalty");
    }

    /// @notice safe transfer from only allow for whitelist and us
    function safeTransferFrom(address /* from */, address /* to */, uint256 /* tokenId */, bytes memory /* _data */) public virtual override(ERC721, IERC721) {
        revert("Use transferWithRoyalty");
    }

    /// @notice set last sold price
    function setLastSoldPrice(uint256 tokenId, uint256 lastSoldPrice) public virtual override onlyOwner {
        _lastSoldPrice[tokenId] = lastSoldPrice;
    }
    /// @notice mint token
    /// @dev Only `Owner` or `BNV address` can mint
    function mint(address to, uint256 tokenId, uint256 dropId, string memory uri, uint lastSoldPrice) public virtual override {
        require(owner() == _msgSender() || _minters.contains(_msgSender()), "Minting not allowed");
        // check parameters are valid
        require(!_exists(tokenId), "Token already exists");
        require(bytes(uri).length > 0, "URI is empty");
        // call ERC721 safe mint
        _safeMint(to, tokenId);
        // set token URI
        _setTokenURI(tokenId, uri);
        // map token Id to drop Id
        _dropIds[tokenId] = dropId;

        _lastSoldPrice[tokenId] = lastSoldPrice;
    }

    /// @notice burn token
    /// @dev Only `Owner` or `BNV address` can mint
    function burn(uint256 tokenId) public virtual onlyOwner {
        require(!_isTokenLocked(tokenId), "Token locked");
        // call ERC721 burn
        _burn(tokenId);
        // set drop id for this token to 0
        _dropIds[tokenId] = 0;
        // set last sold price to 0
        _lastSoldPrice[tokenId] = 0;
    }

    /// @notice transfer with royalty fee paid
    function transferWithRoyalty(address to, uint256 tokenId) public payable virtual override {
        require(_exists(tokenId), "Token does not exist");
        require(!_isTokenLocked(tokenId), "Token locked");
        require(royaltyPayableOf(tokenId) <= msg.value, "Insufficient royalty");
        // transfer token, check whether token approved
        super.safeTransferFrom(_msgSender(), to, tokenId, "");
        // add value to royalty balance
        _royaltyBalance[tokenId] += msg.value;
        // split royalty to beneficiaries
        _splitRoyaltyForBeneficiaries(tokenId, _royaltyBalance[tokenId]);
    }

    /// @notice allow anyone to paid for royalty
    function payRoyalty(uint256 tokenId) public payable virtual override {
        require(!_isTokenLocked(tokenId), "Token locked");
        // add value to royalty balance
        _royaltyBalance[tokenId] += msg.value;
        // emit royalty added event
        emit RoyaltyPaid(tokenId, _msgSender(), msg.value);
    }

    // VIEW ONLY =======================================

    /// @notice get royalty fee of token
    /// @dev equation: (price * rate / decimal) - balance = remaining royalty that needs to pay
    function royaltyPayableOf(uint256 tokenId) public view virtual override returns (uint256) {
        uint256 royaltyPayable = _lastSoldPrice[tokenId] * _royaltyRate[_dropIds[tokenId]] / PERCENTAGE_DECIMAL;
        if (royaltyPayable >= _royaltyBalance[tokenId]) {
            return royaltyPayable - _royaltyBalance[tokenId];
        } else {
            return 0;
        }
    }

    /// @notice get royalty rate of drop
    function royaltyRateOf(uint256 dropId) public view virtual override returns (uint256) {
        return _royaltyRate[dropId];
    }

    /// @notice check token id exists
    function exists(uint256 tokenId) public view virtual override returns (bool) {
        return _exists(tokenId);
    }

    /// @notice drop id of that token
    function dropOf(uint256 tokenId) public view virtual override returns (uint256) {
        return _dropIds[tokenId];
    }

    /// @notice beneficiaries of `dropId`
    function beneficiariesOf(uint256 dropId) public view virtual override returns (address[] memory) {
        address[] memory arr = new address[](_beneficiarySets[dropId].length());
        for (uint i = 0; i < _beneficiarySets[dropId].length(); i++) {
            arr[i] = _beneficiarySets[dropId].at(i);
        }
        return arr;
    }

    /// @notice beneficiaries splits of `dropId`
    function beneficiarySplitsOf(uint256 dropId) public view virtual override returns (uint256[] memory) {
        uint256[] memory arr = new uint256[](_beneficiarySplitSets[dropId].length);
        for (uint i = 0; i < _beneficiarySplitSets[dropId].length; i++) {
            arr[i] = _beneficiarySplitSets[dropId][i];
        }
        return arr;
    }

    /// @notice get last sold price
    function lastSoldPriceOf(uint256 tokenId) public view virtual override returns (uint256) {
        return _lastSoldPrice[tokenId];
    }

    /// @notice get token lock
    function getTokenLock(uint256 tokenId) public view virtual override returns (uint256) {
        return _tokenLocked[tokenId];
    }

    // ADMIN =======================================

    /// @notice Set drop URI, onlyOwner
    function _setDropURI(uint256 dropId, string memory newUri) public virtual onlyOwner {
        _dropURIs[dropId] = newUri;
    }

    /// @notice allow owner of this contract to transfer any token for the sake of emergency use
    function _transferFrom(address from, address to, uint256 tokenId) public virtual onlyOwner {
        require(!_isTokenLocked(tokenId), "Token locked");
        _transfer(from, to, tokenId);
    }

    /// @notice update token royalty balance
    function _setRoyaltyBalance(uint256 tokenId, uint256 balance) public virtual onlyOwner {
        _royaltyBalance[tokenId] = balance;
    }

    /// @notice withdraw from this contract
    function _withdraw(uint256 amount) public virtual onlyOwner {
        Address.sendValue(payable(owner()), amount);
    }

    /// @notice add drop info
    function _addDrop(uint256 dropId, uint256 rate, address[] memory beneficiaries, uint256[] memory beneficiarySplits) public virtual onlyOwner {
        require(beneficiaries.length == beneficiarySplits.length, "Invalid beneficiary data");
        // set royalty rate for drop
        _royaltyRate[dropId] = rate;

        // add to beneficiaries
        _addBeneficiaries(dropId, beneficiaries, beneficiarySplits);
    }

    /// @notice set beneficiaries
    function _setBeneficiaries(uint256 dropId, address[] memory beneficiaries, uint256[] memory beneficiarySplits) public virtual onlyOwner {
        // remove existing
        while (_beneficiarySets[dropId].length() > 0) {
            _beneficiarySets[dropId].remove(_beneficiarySets[dropId].at(0));
            _beneficiarySplitSets[dropId].pop();
        }
        // add to beneficiaries
        _addBeneficiaries(dropId, beneficiaries, beneficiarySplits);
    }


    /// @notice lock token for doing things
    /// @dev 0 = unlock, 1 or more = locked by some parties
    function _setTokenLock(uint256 tokenId, uint256 parties) public virtual onlyOwner {
        _tokenLocked[tokenId] = parties;
        // Clear approval
        _approve(address(0), tokenId);
    }

    // PRIVATE =======================================

    /// @notice add beneficiaries
    function _addBeneficiaries(uint256 dropId, address[] memory beneficiaries, uint256[] memory beneficiarySplits) internal virtual {
        // add beneficiaries
        for (uint i = 0; i < beneficiaries.length; i++) {
            _beneficiarySets[dropId].add(beneficiaries[i]);
            _beneficiarySplitSets[dropId].push(beneficiarySplits[i]);
        }
    }

    /// @notice calculate beneficiaries split
    function _splitRoyaltyForBeneficiaries(uint256 tokenId, uint256 amount) internal virtual {
        // distribute to each beneficiary address
        for (uint i = 0; i < _beneficiarySets[_dropIds[tokenId]].length(); i++) {
            uint256 splitAmount = amount * _beneficiarySplitSets[_dropIds[tokenId]][i] / PERCENTAGE_DECIMAL;
            Address.sendValue(payable(_beneficiarySets[_dropIds[tokenId]].at(i)), splitAmount);

            // emit royalty distributed event
            emit RoyaltyDistributed(tokenId, _beneficiarySets[_dropIds[tokenId]].at(i), splitAmount);
        }
        // reset royalty balance to zero
        _royaltyBalance[tokenId] = 0;
    }

    /// @notice check is token get locked
    function _isTokenLocked(uint256 tokenId) internal view virtual returns (bool) {
        return _tokenLocked[tokenId] != 0;
    }
    
    // Adding minter
    function _addMinter(address minter) external onlyOwner {
        _minters.add(minter);
    }

    // Assign Token Owner
    function _assignTokenOwner(uint256 tokenId, address newOwner) external onlyOwner {
        super._transfer(ownerOf(tokenId), newOwner, tokenId);
    }

}

File 4 of 19 : IBNVToken.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

/// @title BNV Token Interface 
/// @author Sensible Lab
interface IBNVToken {

    // VIEW ONLY =======================================

    function isWhiteList(address sender, address operator) external view returns (bool);

}

File 5 of 19 : IBNVAdapter.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

/// @title BNV Adapter Interface 
/// @author Sensible Lab
/// @dev adapter for external contract integration
interface IBNVAdapter {

    // VIEW ONLY =======================================

    function hasPermission(address owner, address operator) external view returns (bool);

}

File 6 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

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}. 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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = 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 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 7 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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 8 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 9 of 19 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

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 10 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 11 of 19 : Address.sol
// SPDX-License-Identifier: MIT

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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 13 of 19 : IBNVTokenBase.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

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

/// @title BNV Token Base Interface 
/// @author Sensible Lab
/// @dev based on a standard ERC721
interface IBNVTokenBase is IERC721 {

    /// @notice Emitted when royalty `amount` is paid `tokenId` by `payee`
    event RoyaltyPaid(uint256 indexed tokenId, address indexed payee, uint256 amount);

    /// @notice Emitted when royalty `amount` is distributed to beneficiaries of `tokenId`
    event RoyaltyDistributed(uint256 indexed tokenId, address indexed to, uint256 amount);

    function setLastSoldPrice(uint256 tokenId, uint256 lastSoldPrice) external;

    function mint(address to, uint256 tokenId, uint256 dropId, string memory uri, uint lastSoldPrice) external;

    function transferWithRoyalty(address to, uint256 tokenId) external payable;

    function payRoyalty(uint256 tokenId) external payable;

    // VIEW ONLY =======================================

    function royaltyPayableOf(uint256 tokenId) external view returns (uint256);

    function royaltyRateOf(uint256 dropId) external view returns (uint256);

    function exists(uint256 tokenId) external view returns (bool);
    
    function dropOf(uint256 tokenId) external view returns (uint256);

    function beneficiariesOf(uint256 dropId) external view returns (address[] memory);

    function beneficiarySplitsOf(uint256 dropId) external view returns (uint256[] memory);

    function lastSoldPriceOf(uint256 tokenId) external view returns (uint256);

    function getTokenLock(uint256 tokenId) external view returns (uint256);

}

File 14 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

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 15 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface 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 16 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 17 of 19 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 18 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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 19 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"adapterAddress","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltyDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltyPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"address[]","name":"beneficiaries","type":"address[]"},{"internalType":"uint256[]","name":"beneficiarySplits","type":"uint256[]"}],"name":"_addDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"_addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdapter","type":"address"}],"name":"_addToAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"_assignTokenOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_getAllAdapters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"existingAdapter","type":"address"}],"name":"_removeFromAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"address[]","name":"beneficiaries","type":"address[]"},{"internalType":"uint256[]","name":"beneficiarySplits","type":"uint256[]"}],"name":"_setBeneficiaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"string","name":"newUri","type":"string"}],"name":"_setDropURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"_setRoyaltyBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"parties","type":"uint256"}],"name":"_setTokenLock","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"amount","type":"uint256"}],"name":"_withdraw","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":"dropId","type":"uint256"}],"name":"beneficiariesOf","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"beneficiarySplitsOf","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":"uint256","name":"tokenId","type":"uint256"}],"name":"dropOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isWhiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lastSoldPriceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"lastSoldPrice","type":"uint256"}],"name":"mint","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"payRoyalty","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"royaltyPayableOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"}],"name":"royaltyRateOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"lastSoldPrice","type":"uint256"}],"name":"setLastSoldPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferWithRoyalty","outputs":[],"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b506040516200462b3803806200462b833981016040819052620000349162000293565b60408051808201825260048082526321272b1960e11b6020808401828152855180870190965292855284015281519192916200007391600091620001d0565b50805162000089906001906020840190620001d0565b50505060006200009e6200015a60201b60201c565b600b80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060005b815181101562000152576200013c8282815181106200011e57634e487b7160e01b600052603260045260246000fd5b602002602001015160166200015e60201b6200208b1790919060201c565b50806200014981620003a4565b915050620000ef565b5050620003e2565b3390565b600062000175836001600160a01b0384166200017e565b90505b92915050565b6000818152600183016020526040812054620001c75750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000178565b50600062000178565b828054620001de9062000367565b90600052602060002090601f0160209004810192826200020257600085556200024d565b82601f106200021d57805160ff19168380011785556200024d565b828001600101855582156200024d579182015b828111156200024d57825182559160200191906001019062000230565b506200025b9291506200025f565b5090565b5b808211156200025b576000815560010162000260565b80516001600160a01b03811681146200028e57600080fd5b919050565b60006020808385031215620002a6578182fd5b82516001600160401b0380821115620002bd578384fd5b818501915085601f830112620002d1578384fd5b815181811115620002e657620002e6620003cc565b8060051b604051601f19603f830116810181811085821117156200030e576200030e620003cc565b604052828152858101935084860182860187018a10156200032d578788fd5b8795505b838610156200035a57620003458162000276565b85526001959095019493860193860162000331565b5098975050505050505050565b600181811c908216806200037c57607f821691505b602082108114156200039e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620003c557634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b61423980620003f26000396000f3fe6080604052600436106102f25760003560e01c806368ed45b41161018f578063a7a78885116100e1578063c33c79c91161008a578063cb71253511610064578063cb7125351461087c578063e985e9c51461089c578063f2fde38b146108e557600080fd5b8063c33c79c914610829578063c7cc9b1114610849578063c87b56dd1461085c57600080fd5b8063b88d4fde116100bb578063b88d4fde146107d6578063b9b316f3146107f6578063c0f054571461080957600080fd5b8063a7a7888514610769578063ac6a2b5d14610789578063b0b5babe146107a957600080fd5b806395d89b41116101435780639f843a741161011d5780639f843a7414610709578063a22cb46514610729578063a278d7c01461074957600080fd5b806395d89b41146106a757806395f1ae6b146106bc5780639e615be1146106e957600080fd5b8063715018a611610174578063715018a6146106545780638da5cb5b146106695780639046cc9f1461068757600080fd5b806368ed45b41461061457806370a082311461063457600080fd5b806340090d53116102485780634f558e79116101fc57806365dbcd71116101d657806365dbcd71146105a5578063669e0ac2146105c757806367cd7b56146105e757600080fd5b80634f558e79146105455780634f6ccce7146105655780636352211e1461058557600080fd5b806342966c681161022d57806342966c68146104d857806348c21076146104f8578063495de4891461051857600080fd5b806340090d531461049857806342842e0e146104b857600080fd5b8063095ea7b3116102aa5780631891032211610284578063189103221461043857806323b872dd146104585780632f745c591461047857600080fd5b8063095ea7b3146103c85780630a0de5d8146103e857806318160ddd1461042357600080fd5b806306fdde03116102db57806306fdde031461034e578063081812fc1461037057806308c3a572146103a857600080fd5b806301ffc9a7146102f757806303c7bce11461032c575b600080fd5b34801561030357600080fd5b50610317610312366004613d5d565b610905565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034c610347366004613b7b565b610916565b005b34801561035a57600080fd5b50610363610972565b6040516103239190614023565b34801561037c57600080fd5b5061039061038b366004613d95565b610a04565b6040516001600160a01b039091168152602001610323565b3480156103b457600080fd5b5061034c6103c3366004613e7e565b610a99565b3480156103d457600080fd5b5061034c6103e3366004613cb1565b610af3565b3480156103f457600080fd5b50610415610403366004613d95565b6000908152600d602052604090205490565b604051908152602001610323565b34801561042f57600080fd5b50600854610415565b34801561044457600080fd5b5061034c610453366004613b7b565b610b5b565b34801561046457600080fd5b5061034c610473366004613bc7565b610bae565b34801561048457600080fd5b50610415610493366004613cb1565b610cc6565b3480156104a457600080fd5b5061034c6104b3366004613e9f565b610d6e565b3480156104c457600080fd5b5061034c6104d3366004613bc7565b610e29565b3480156104e457600080fd5b5061034c6104f3366004613d95565b610e44565b34801561050457600080fd5b5061034c610513366004613dcf565b610efe565b34801561052457600080fd5b50610415610533366004613d95565b60009081526010602052604090205490565b34801561055157600080fd5b50610317610560366004613d95565b610fe5565b34801561057157600080fd5b50610415610580366004613d95565b611004565b34801561059157600080fd5b506103906105a0366004613d95565b6110b6565b3480156105b157600080fd5b506105ba611141565b6040516103239190613f9e565b3480156105d357600080fd5b5061034c6105e2366004613cda565b611259565b3480156105f357600080fd5b50610607610602366004613d95565b6113b0565b6040516103239190613feb565b34801561062057600080fd5b5061034c61062f366004613b7b565b6114ab565b34801561064057600080fd5b5061041561064f366004613b7b565b6114fe565b34801561066057600080fd5b5061034c611598565b34801561067557600080fd5b50600b546001600160a01b0316610390565b34801561069357600080fd5b5061034c6106a2366004613e7e565b61162a565b3480156106b357600080fd5b50610363611684565b3480156106c857600080fd5b506104156106d7366004613d95565b60009081526012602052604090205490565b3480156106f557600080fd5b5061034c610704366004613dad565b611693565b34801561071557600080fd5b5061034c610724366004613e39565b6116ee565b34801561073557600080fd5b5061034c610744366004613c7b565b611755565b34801561075557600080fd5b506105ba610764366004613d95565b6117b4565b34801561077557600080fd5b50610317610784366004613b95565b6118a4565b34801561079557600080fd5b5061034c6107a4366004613d95565b611988565b3480156107b557600080fd5b506104156107c4366004613d95565b60009081526013602052604090205490565b3480156107e257600080fd5b5061034c6107f1366004613c02565b6119ee565b61034c610804366004613cb1565b611afc565b34801561081557600080fd5b5061034c610824366004613e7e565b611c5b565b34801561083557600080fd5b50610415610844366004613d95565b611cbe565b61034c610857366004613d95565b611d46565b34801561086857600080fd5b50610363610877366004613d95565b611dee565b34801561088857600080fd5b5061034c610897366004613bc7565b611ed8565b3480156108a857600080fd5b506103176108b7366004613b95565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108f157600080fd5b5061034c610900366004613b7b565b611f6b565b6000610910826120a0565b92915050565b600b546001600160a01b031633146109635760405162461bcd60e51b815260206004820181905260248201526000805160206141e483398151915260448201526064015b60405180910390fd5b61096e60148261208b565b5050565b60606000805461098190614119565b80601f01602080910402602001604051908101604052809291908181526020018280546109ad90614119565b80156109fa5780601f106109cf576101008083540402835291602001916109fa565b820191906000526020600020905b8154815290600101906020018083116109dd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a7d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095a565b506000908152600460205260409020546001600160a01b031690565b600b546001600160a01b03163314610ae15760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60009182526011602052604090912055565b610b05610aff826110b6565b836118a4565b610b515760405162461bcd60e51b815260206004820152601960248201527f4f6e6c792077686974656c69737420697320616c6c6f77656400000000000000604482015260640161095a565b61096e82826120de565b600b546001600160a01b03163314610ba35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b61096e601682612133565b610bb7816110b6565b6001600160a01b0316336001600160a01b03161415610c185760405162461bcd60e51b815260206004820152601760248201527f557365207472616e7366657257697468526f79616c7479000000000000000000604482015260640161095a565b33610c2282610a04565b6001600160a01b03161480610c445750610c44610c3e826110b6565b336108b7565b610cb65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161095a565b610cc1838383612148565b505050565b6000610cd1836114fe565b8210610d455760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161095a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03163314610db65760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b8051825114610e075760405162461bcd60e51b815260206004820152601860248201527f496e76616c69642062656e656669636961727920646174610000000000000000604482015260640161095a565b6000848152601060205260409020839055610e23848383612320565b50505050565b610cc1838383604051806020016040528060008152506119ee565b600b546001600160a01b03163314610e8c5760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60008181526013602052604090205415610ed75760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b610ee0816123da565b6000908152600d602090815260408083208390556012909152812055565b600b546001600160a01b03163314610f465760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6000838152600e60205260408120610f5d906123e3565b1115610fda576000838152600e60205260408120610f9391610f7f91906123ed565b6000858152600e6020526040902090612133565b506000838152600f60205260409020805480610fbf57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055610f46565b610cc1838383612320565b6000818152600260205260408120546001600160a01b03161515610910565b600061100f60085490565b82106110835760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161095a565b600882815481106110a457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806109105760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161095a565b600b546060906001600160a01b0316331461118c5760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b600061119860166123e3565b67ffffffffffffffff8111156111be57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111e7578160200160208202803683370190505b50905060005b6111f760166123e3565b811015611253576112096016826123ed565b82828151811061122957634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061124b8161414e565b9150506111ed565b50905090565b600b546001600160a01b031633148061127857506112786014336123f9565b6112c45760405162461bcd60e51b815260206004820152601360248201527f4d696e74696e67206e6f7420616c6c6f77656400000000000000000000000000604482015260640161095a565b6000848152600260205260409020546001600160a01b0316156113295760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c726561647920657869737473000000000000000000000000604482015260640161095a565b600082511161137a5760405162461bcd60e51b815260206004820152600c60248201527f55524920697320656d7074790000000000000000000000000000000000000000604482015260640161095a565b611384858561241b565b61138e8483612435565b6000938452600d60209081526040808620949094556012905291909220555050565b6000818152600f60205260408120546060919067ffffffffffffffff8111156113e957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611412578160200160208202803683370190505b50905060005b6000848152600f60205260409020548110156114a4576000848152600f6020526040902080548290811061145c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828151811061148757634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061149c8161414e565b915050611418565b5092915050565b600b546001600160a01b031633146114f35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b61096e60168261208b565b60006001600160a01b03821661157c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161095a565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146115e05760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b600b546001600160a01b031633146116725760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60009182526012602052604090912055565b60606001805461098190614119565b600b546001600160a01b031633146116db5760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b61096e6116e7836110b6565b8284612148565b600b546001600160a01b031633146117365760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6000828152600c602090815260409091208251610cc192840190613946565b61175e33610aff565b6117aa5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c792077686974656c69737420697320616c6c6f77656400000000000000604482015260640161095a565b61096e82826124de565b6000818152600e60205260408120606091906117cf906123e3565b67ffffffffffffffff8111156117f557634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561181e578160200160208202803683370190505b50905060005b6000848152600e6020526040902061183b906123e3565b8110156114a4576000848152600e6020526040902061185a90826123ed565b82828151811061187a57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061189c8161414e565b915050611824565b600080805b6118b360166123e3565b811015611980576118c56016826123ed565b6040517fcde680410000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301528681166024830152919091169063cde680419060440160206040518083038186803b15801561192957600080fd5b505afa15801561193d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119619190613d41565b9150811561196e57611980565b806119788161414e565b9150506118a9565b509392505050565b600b546001600160a01b031633146119d05760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6119eb6119e5600b546001600160a01b031690565b826124e8565b50565b6119f7826110b6565b6001600160a01b0316336001600160a01b03161415611a585760405162461bcd60e51b815260206004820152601760248201527f557365207472616e7366657257697468526f79616c7479000000000000000000604482015260640161095a565b33611a6283610a04565b6001600160a01b03161480611a7e5750611a7e610c3e836110b6565b611af05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161095a565b610e2384848484612601565b6000818152600260205260409020546001600160a01b0316611b605760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015260640161095a565b60008181526013602052604090205415611bab5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b34611bb582611cbe565b1115611c035760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e7420726f79616c7479000000000000000000000000604482015260640161095a565b611c1e3383836040518060200160405280600081525061267f565b60008181526011602052604081208054349290611c3c90849061408b565b909155505060008181526011602052604090205461096e908290612689565b600b546001600160a01b03163314611ca35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b600082815260136020526040812082905561096e90836127d1565b6000818152600d6020908152604080832054835260108252808320548484526012909252822054829161271091611cf591906140b7565b611cff91906140a3565b6000848152601160205260409020549091508110611d3757600083815260116020526040902054611d3090826140d6565b9392505050565b50600092915050565b50919050565b60008181526013602052604090205415611d915760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b60008181526011602052604081208054349290611daf90849061408b565b9091555050604051348152339082907ff670029fc6f5302baba881b4ae845d1453acdf752b4c19ed81fe0fa6a686409b9060200160405180910390a350565b6000818152600260205260409020546060906001600160a01b0316611e7b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161095a565b6000611e868361283f565b90506000611e9384612915565b9050815160001415611ea6579392505050565b8051156114a4578181604051602001611ec0929190613f33565b60405160208183030381529060405292505050919050565b600b546001600160a01b03163314611f205760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60008181526013602052604090205415610cb65760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b600b546001600160a01b03163314611fb35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6001600160a01b03811661202f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161095a565b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611d30836001600160a01b038416612a90565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610910575061091082612adf565b600081815260136020526040902054156121295760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b61096e8282612b7a565b6000611d30836001600160a01b038416612ca7565b826001600160a01b031661215b826110b6565b6001600160a01b0316146121d75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161095a565b6001600160a01b0382166122525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161095a565b61225d838383612dbe565b6122686000826127d1565b6001600160a01b03831660009081526003602052604081208054600192906122919084906140d6565b90915550506001600160a01b03821660009081526003602052604081208054600192906122bf90849061408b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8251811015610e235761237883828151811061234f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600e600087815260200190815260200160002061208b90919063ffffffff16565b506000848152600f6020526040902082518390839081106123a957634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200155806123d28161414e565b915050612323565b6119eb81612dc9565b6000610910825490565b6000611d308383612e09565b6001600160a01b03811660009081526001830160205260408120541515611d30565b61096e828260405180602001604052806000815250612eb8565b6000828152600260205260409020546001600160a01b03166124bf5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161095a565b6000828152600a602090815260409091208251610cc192840190613946565b61096e8282612f36565b804710156125385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161095a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612585576040519150601f19603f3d011682016040523d82523d6000602084013e61258a565b606091505b5050905080610cc15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161095a565b61260c848484612148565b61261884848484612ffb565b610e235760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095a565b611a7e3383613153565b60005b6000838152600d60209081526040808320548352600e90915290206126b0906123e3565b8110156127be576000838152600d60209081526040808320548352600f909152812080546127109190849081106126f757634e487b7160e01b600052603260045260246000fd5b90600052602060002001548461270d91906140b7565b61271791906140a3565b6000858152600d60209081526040808320548352600e9091529020909150612743906119e590846123ed565b6000848152600d60209081526040808320548352600e909152902061276890836123ed565b6001600160a01b0316847fff50aeaf5513a2bfcf5c38af0d681d05e9a00cd91cc42ab2e143549595e5f172836040516127a391815260200190565b60405180910390a350806127b68161414e565b91505061268c565b5050600090815260116020526040812055565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612806826110b6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600d602052604090205460609015612901576000828152600d60209081526040808320548352600c9091529020805461287c90614119565b80601f01602080910402602001604051908101604052809291908181526020018280546128a890614119565b80156128f55780601f106128ca576101008083540402835291602001916128f5565b820191906000526020600020905b8154815290600101906020018083116128d857829003601f168201915b50505050509050919050565b505060408051602081019091526000815290565b6000818152600260205260409020546060906001600160a01b03166129a25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161095a565b6000828152600a6020526040812080546129bb90614119565b80601f01602080910402602001604051908101604052809291908181526020018280546129e790614119565b8015612a345780601f10612a0957610100808354040283529160200191612a34565b820191906000526020600020905b815481529060010190602001808311612a1757829003601f168201915b505050505090506000612a5260408051602081019091526000815290565b9050805160001415612a65575092915050565b815115612a7f578082604051602001611ec0929190613f33565b612a8884613246565b949350505050565b6000818152600183016020526040812054612ad757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610910565b506000610910565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612b4257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061091057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610910565b6000612b85826110b6565b9050806001600160a01b0316836001600160a01b03161415612c0f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161095a565b336001600160a01b0382161480612c2b5750612c2b81336108b7565b612c9d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161095a565b610cc183836127d1565b60008181526001830160205260408120548015612db4576000612ccb6001836140d6565b8554909150600090612cdf906001906140d6565b90506000866000018281548110612d0657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110612d3757634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080612d7857634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610910565b6000915050610910565b610cc183838361333b565b612dd281613391565b6000818152600a602052604090208054612deb90614119565b1590506119eb576000818152600a602052604081206119eb916139ca565b81546000908210612e825760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f6473000000000000000000000000000000000000000000000000000000000000606482015260840161095a565b826000018281548110612ea557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b612ec28383613438565b612ecf6000848484612ffb565b610cc15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095a565b6001600160a01b038216331415612f8f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161095a565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006001600160a01b0384163b1561314857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061303f903390899088908890600401613f62565b602060405180830381600087803b15801561305957600080fd5b505af1925050508015613089575060408051601f3d908101601f1916820190925261308691810190613d79565b60015b61312e573d8080156130b7576040519150601f19603f3d011682016040523d82523d6000602084013e6130bc565b606091505b5080516131265760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a88565b506001949350505050565b6000818152600260205260408120546001600160a01b03166131cc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095a565b60006131d7836110b6565b9050806001600160a01b0316846001600160a01b031614806132125750836001600160a01b031661320784610a04565b6001600160a01b0316145b80612a8857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612a88565b6000818152600260205260409020546060906001600160a01b03166132d35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161095a565b60006132ea60408051602081019091526000815290565b9050600081511161330a5760405180602001604052806000815250611d30565b8061331484613586565b604051602001613325929190613f33565b6040516020818303038152906040529392505050565b600081815260136020526040902054156133865760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b610cc18383836136d4565b600061339c826110b6565b90506133aa81600084612dbe565b6133b56000836127d1565b6001600160a01b03811660009081526003602052604081208054600192906133de9084906140d6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661348e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161095a565b6000818152600260205260409020546001600160a01b0316156134f35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161095a565b6134ff60008383612dbe565b6001600160a01b038216600090815260036020526040812080546001929061352890849061408b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816135c657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135f057806135da8161414e565b91506135e99050600a836140a3565b91506135ca565b60008167ffffffffffffffff81111561361957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613643576020820181803683370190505b5090505b8415612a88576136586001836140d6565b9150613665600a86614169565b61367090603061408b565b60f81b81838151811061369357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136cd600a866140a3565b9450613647565b6001600160a01b03831661372f5761372a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613752565b816001600160a01b0316836001600160a01b03161461375257613752838261378c565b6001600160a01b03821661376957610cc181613829565b826001600160a01b0316826001600160a01b031614610cc157610cc18282613902565b60006001613799846114fe565b6137a391906140d6565b6000838152600760205260409020549091508082146137f6576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061383b906001906140d6565b6000838152600960205260408120546008805493945090928490811061387157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106138a057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806138e657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061390d836114fe565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461395290614119565b90600052602060002090601f01602090048101928261397457600085556139ba565b82601f1061398d57805160ff19168380011785556139ba565b828001600101855582156139ba579182015b828111156139ba57825182559160200191906001019061399f565b506139c6929150613a00565b5090565b5080546139d690614119565b6000825580601f106139e6575050565b601f0160209004906000526020600020908101906119eb91905b5b808211156139c65760008155600101613a01565b600067ffffffffffffffff831115613a2f57613a2f6141a9565b613a42601f8401601f1916602001614036565b9050828152838383011115613a5657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114613a8457600080fd5b919050565b600082601f830112613a99578081fd5b81356020613aae613aa983614067565b614036565b80838252828201915082860187848660051b8901011115613acd578586fd5b855b85811015613af257613ae082613a6d565b84529284019290840190600101613acf565b5090979650505050505050565b600082601f830112613b0f578081fd5b81356020613b1f613aa983614067565b80838252828201915082860187848660051b8901011115613b3e578586fd5b855b85811015613af257813584529284019290840190600101613b40565b600082601f830112613b6c578081fd5b611d3083833560208501613a15565b600060208284031215613b8c578081fd5b611d3082613a6d565b60008060408385031215613ba7578081fd5b613bb083613a6d565b9150613bbe60208401613a6d565b90509250929050565b600080600060608486031215613bdb578081fd5b613be484613a6d565b9250613bf260208501613a6d565b9150604084013590509250925092565b60008060008060808587031215613c17578081fd5b613c2085613a6d565b9350613c2e60208601613a6d565b925060408501359150606085013567ffffffffffffffff811115613c50578182fd5b8501601f81018713613c60578182fd5b613c6f87823560208401613a15565b91505092959194509250565b60008060408385031215613c8d578182fd5b613c9683613a6d565b91506020830135613ca6816141bf565b809150509250929050565b60008060408385031215613cc3578182fd5b613ccc83613a6d565b946020939093013593505050565b600080600080600060a08688031215613cf1578081fd5b613cfa86613a6d565b94506020860135935060408601359250606086013567ffffffffffffffff811115613d23578182fd5b613d2f88828901613b5c565b95989497509295608001359392505050565b600060208284031215613d52578081fd5b8151611d30816141bf565b600060208284031215613d6e578081fd5b8135611d30816141cd565b600060208284031215613d8a578081fd5b8151611d30816141cd565b600060208284031215613da6578081fd5b5035919050565b60008060408385031215613dbf578182fd5b82359150613bbe60208401613a6d565b600080600060608486031215613de3578081fd5b83359250602084013567ffffffffffffffff80821115613e01578283fd5b613e0d87838801613a89565b93506040860135915080821115613e22578283fd5b50613e2f86828701613aff565b9150509250925092565b60008060408385031215613e4b578182fd5b82359150602083013567ffffffffffffffff811115613e68578182fd5b613e7485828601613b5c565b9150509250929050565b60008060408385031215613e90578182fd5b50508035926020909101359150565b60008060008060808587031215613eb4578182fd5b8435935060208501359250604085013567ffffffffffffffff80821115613ed9578384fd5b613ee588838901613a89565b93506060870135915080821115613efa578283fd5b50613c6f87828801613aff565b60008151808452613f1f8160208601602086016140ed565b601f01601f19169290920160200192915050565b60008351613f458184602088016140ed565b835190830190613f598183602088016140ed565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f946080830184613f07565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613fdf5783516001600160a01b031683529284019291840191600101613fba565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613fdf57835183529284019291840191600101614007565b602081526000611d306020830184613f07565b604051601f8201601f1916810167ffffffffffffffff8111828210171561405f5761405f6141a9565b604052919050565b600067ffffffffffffffff821115614081576140816141a9565b5060051b60200190565b6000821982111561409e5761409e61417d565b500190565b6000826140b2576140b2614193565b500490565b60008160001904831182151516156140d1576140d161417d565b500290565b6000828210156140e8576140e861417d565b500390565b60005b838110156141085781810151838201526020016140f0565b83811115610e235750506000910152565b600181811c9082168061412d57607f821691505b60208210811415611d4057634e487b7160e01b600052602260045260246000fd5b60006000198214156141625761416261417d565b5060010190565b60008261417857614178614193565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146119eb57600080fd5b6001600160e01b0319811681146119eb57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220fbde95bb08fb27f752dfef425f1f7e45b4656b4aed70b5253551f80a5c181c1564736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000299878b01e28c14e15ffa08cc70992273cc2aa580000000000000000000000004b9b9ade48498fa1e3a4c9dfec45908786345c9f

Deployed Bytecode

0x6080604052600436106102f25760003560e01c806368ed45b41161018f578063a7a78885116100e1578063c33c79c91161008a578063cb71253511610064578063cb7125351461087c578063e985e9c51461089c578063f2fde38b146108e557600080fd5b8063c33c79c914610829578063c7cc9b1114610849578063c87b56dd1461085c57600080fd5b8063b88d4fde116100bb578063b88d4fde146107d6578063b9b316f3146107f6578063c0f054571461080957600080fd5b8063a7a7888514610769578063ac6a2b5d14610789578063b0b5babe146107a957600080fd5b806395d89b41116101435780639f843a741161011d5780639f843a7414610709578063a22cb46514610729578063a278d7c01461074957600080fd5b806395d89b41146106a757806395f1ae6b146106bc5780639e615be1146106e957600080fd5b8063715018a611610174578063715018a6146106545780638da5cb5b146106695780639046cc9f1461068757600080fd5b806368ed45b41461061457806370a082311461063457600080fd5b806340090d53116102485780634f558e79116101fc57806365dbcd71116101d657806365dbcd71146105a5578063669e0ac2146105c757806367cd7b56146105e757600080fd5b80634f558e79146105455780634f6ccce7146105655780636352211e1461058557600080fd5b806342966c681161022d57806342966c68146104d857806348c21076146104f8578063495de4891461051857600080fd5b806340090d531461049857806342842e0e146104b857600080fd5b8063095ea7b3116102aa5780631891032211610284578063189103221461043857806323b872dd146104585780632f745c591461047857600080fd5b8063095ea7b3146103c85780630a0de5d8146103e857806318160ddd1461042357600080fd5b806306fdde03116102db57806306fdde031461034e578063081812fc1461037057806308c3a572146103a857600080fd5b806301ffc9a7146102f757806303c7bce11461032c575b600080fd5b34801561030357600080fd5b50610317610312366004613d5d565b610905565b60405190151581526020015b60405180910390f35b34801561033857600080fd5b5061034c610347366004613b7b565b610916565b005b34801561035a57600080fd5b50610363610972565b6040516103239190614023565b34801561037c57600080fd5b5061039061038b366004613d95565b610a04565b6040516001600160a01b039091168152602001610323565b3480156103b457600080fd5b5061034c6103c3366004613e7e565b610a99565b3480156103d457600080fd5b5061034c6103e3366004613cb1565b610af3565b3480156103f457600080fd5b50610415610403366004613d95565b6000908152600d602052604090205490565b604051908152602001610323565b34801561042f57600080fd5b50600854610415565b34801561044457600080fd5b5061034c610453366004613b7b565b610b5b565b34801561046457600080fd5b5061034c610473366004613bc7565b610bae565b34801561048457600080fd5b50610415610493366004613cb1565b610cc6565b3480156104a457600080fd5b5061034c6104b3366004613e9f565b610d6e565b3480156104c457600080fd5b5061034c6104d3366004613bc7565b610e29565b3480156104e457600080fd5b5061034c6104f3366004613d95565b610e44565b34801561050457600080fd5b5061034c610513366004613dcf565b610efe565b34801561052457600080fd5b50610415610533366004613d95565b60009081526010602052604090205490565b34801561055157600080fd5b50610317610560366004613d95565b610fe5565b34801561057157600080fd5b50610415610580366004613d95565b611004565b34801561059157600080fd5b506103906105a0366004613d95565b6110b6565b3480156105b157600080fd5b506105ba611141565b6040516103239190613f9e565b3480156105d357600080fd5b5061034c6105e2366004613cda565b611259565b3480156105f357600080fd5b50610607610602366004613d95565b6113b0565b6040516103239190613feb565b34801561062057600080fd5b5061034c61062f366004613b7b565b6114ab565b34801561064057600080fd5b5061041561064f366004613b7b565b6114fe565b34801561066057600080fd5b5061034c611598565b34801561067557600080fd5b50600b546001600160a01b0316610390565b34801561069357600080fd5b5061034c6106a2366004613e7e565b61162a565b3480156106b357600080fd5b50610363611684565b3480156106c857600080fd5b506104156106d7366004613d95565b60009081526012602052604090205490565b3480156106f557600080fd5b5061034c610704366004613dad565b611693565b34801561071557600080fd5b5061034c610724366004613e39565b6116ee565b34801561073557600080fd5b5061034c610744366004613c7b565b611755565b34801561075557600080fd5b506105ba610764366004613d95565b6117b4565b34801561077557600080fd5b50610317610784366004613b95565b6118a4565b34801561079557600080fd5b5061034c6107a4366004613d95565b611988565b3480156107b557600080fd5b506104156107c4366004613d95565b60009081526013602052604090205490565b3480156107e257600080fd5b5061034c6107f1366004613c02565b6119ee565b61034c610804366004613cb1565b611afc565b34801561081557600080fd5b5061034c610824366004613e7e565b611c5b565b34801561083557600080fd5b50610415610844366004613d95565b611cbe565b61034c610857366004613d95565b611d46565b34801561086857600080fd5b50610363610877366004613d95565b611dee565b34801561088857600080fd5b5061034c610897366004613bc7565b611ed8565b3480156108a857600080fd5b506103176108b7366004613b95565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108f157600080fd5b5061034c610900366004613b7b565b611f6b565b6000610910826120a0565b92915050565b600b546001600160a01b031633146109635760405162461bcd60e51b815260206004820181905260248201526000805160206141e483398151915260448201526064015b60405180910390fd5b61096e60148261208b565b5050565b60606000805461098190614119565b80601f01602080910402602001604051908101604052809291908181526020018280546109ad90614119565b80156109fa5780601f106109cf576101008083540402835291602001916109fa565b820191906000526020600020905b8154815290600101906020018083116109dd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a7d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095a565b506000908152600460205260409020546001600160a01b031690565b600b546001600160a01b03163314610ae15760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60009182526011602052604090912055565b610b05610aff826110b6565b836118a4565b610b515760405162461bcd60e51b815260206004820152601960248201527f4f6e6c792077686974656c69737420697320616c6c6f77656400000000000000604482015260640161095a565b61096e82826120de565b600b546001600160a01b03163314610ba35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b61096e601682612133565b610bb7816110b6565b6001600160a01b0316336001600160a01b03161415610c185760405162461bcd60e51b815260206004820152601760248201527f557365207472616e7366657257697468526f79616c7479000000000000000000604482015260640161095a565b33610c2282610a04565b6001600160a01b03161480610c445750610c44610c3e826110b6565b336108b7565b610cb65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161095a565b610cc1838383612148565b505050565b6000610cd1836114fe565b8210610d455760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161095a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03163314610db65760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b8051825114610e075760405162461bcd60e51b815260206004820152601860248201527f496e76616c69642062656e656669636961727920646174610000000000000000604482015260640161095a565b6000848152601060205260409020839055610e23848383612320565b50505050565b610cc1838383604051806020016040528060008152506119ee565b600b546001600160a01b03163314610e8c5760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60008181526013602052604090205415610ed75760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b610ee0816123da565b6000908152600d602090815260408083208390556012909152812055565b600b546001600160a01b03163314610f465760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6000838152600e60205260408120610f5d906123e3565b1115610fda576000838152600e60205260408120610f9391610f7f91906123ed565b6000858152600e6020526040902090612133565b506000838152600f60205260409020805480610fbf57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055610f46565b610cc1838383612320565b6000818152600260205260408120546001600160a01b03161515610910565b600061100f60085490565b82106110835760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161095a565b600882815481106110a457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806109105760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161095a565b600b546060906001600160a01b0316331461118c5760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b600061119860166123e3565b67ffffffffffffffff8111156111be57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156111e7578160200160208202803683370190505b50905060005b6111f760166123e3565b811015611253576112096016826123ed565b82828151811061122957634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061124b8161414e565b9150506111ed565b50905090565b600b546001600160a01b031633148061127857506112786014336123f9565b6112c45760405162461bcd60e51b815260206004820152601360248201527f4d696e74696e67206e6f7420616c6c6f77656400000000000000000000000000604482015260640161095a565b6000848152600260205260409020546001600160a01b0316156113295760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c726561647920657869737473000000000000000000000000604482015260640161095a565b600082511161137a5760405162461bcd60e51b815260206004820152600c60248201527f55524920697320656d7074790000000000000000000000000000000000000000604482015260640161095a565b611384858561241b565b61138e8483612435565b6000938452600d60209081526040808620949094556012905291909220555050565b6000818152600f60205260408120546060919067ffffffffffffffff8111156113e957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611412578160200160208202803683370190505b50905060005b6000848152600f60205260409020548110156114a4576000848152600f6020526040902080548290811061145c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015482828151811061148757634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061149c8161414e565b915050611418565b5092915050565b600b546001600160a01b031633146114f35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b61096e60168261208b565b60006001600160a01b03821661157c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161095a565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146115e05760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b600b546001600160a01b031633146116725760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60009182526012602052604090912055565b60606001805461098190614119565b600b546001600160a01b031633146116db5760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b61096e6116e7836110b6565b8284612148565b600b546001600160a01b031633146117365760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6000828152600c602090815260409091208251610cc192840190613946565b61175e33610aff565b6117aa5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c792077686974656c69737420697320616c6c6f77656400000000000000604482015260640161095a565b61096e82826124de565b6000818152600e60205260408120606091906117cf906123e3565b67ffffffffffffffff8111156117f557634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561181e578160200160208202803683370190505b50905060005b6000848152600e6020526040902061183b906123e3565b8110156114a4576000848152600e6020526040902061185a90826123ed565b82828151811061187a57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101528061189c8161414e565b915050611824565b600080805b6118b360166123e3565b811015611980576118c56016826123ed565b6040517fcde680410000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301528681166024830152919091169063cde680419060440160206040518083038186803b15801561192957600080fd5b505afa15801561193d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119619190613d41565b9150811561196e57611980565b806119788161414e565b9150506118a9565b509392505050565b600b546001600160a01b031633146119d05760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6119eb6119e5600b546001600160a01b031690565b826124e8565b50565b6119f7826110b6565b6001600160a01b0316336001600160a01b03161415611a585760405162461bcd60e51b815260206004820152601760248201527f557365207472616e7366657257697468526f79616c7479000000000000000000604482015260640161095a565b33611a6283610a04565b6001600160a01b03161480611a7e5750611a7e610c3e836110b6565b611af05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161095a565b610e2384848484612601565b6000818152600260205260409020546001600160a01b0316611b605760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f74206578697374000000000000000000000000604482015260640161095a565b60008181526013602052604090205415611bab5760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b34611bb582611cbe565b1115611c035760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e7420726f79616c7479000000000000000000000000604482015260640161095a565b611c1e3383836040518060200160405280600081525061267f565b60008181526011602052604081208054349290611c3c90849061408b565b909155505060008181526011602052604090205461096e908290612689565b600b546001600160a01b03163314611ca35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b600082815260136020526040812082905561096e90836127d1565b6000818152600d6020908152604080832054835260108252808320548484526012909252822054829161271091611cf591906140b7565b611cff91906140a3565b6000848152601160205260409020549091508110611d3757600083815260116020526040902054611d3090826140d6565b9392505050565b50600092915050565b50919050565b60008181526013602052604090205415611d915760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b60008181526011602052604081208054349290611daf90849061408b565b9091555050604051348152339082907ff670029fc6f5302baba881b4ae845d1453acdf752b4c19ed81fe0fa6a686409b9060200160405180910390a350565b6000818152600260205260409020546060906001600160a01b0316611e7b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161095a565b6000611e868361283f565b90506000611e9384612915565b9050815160001415611ea6579392505050565b8051156114a4578181604051602001611ec0929190613f33565b60405160208183030381529060405292505050919050565b600b546001600160a01b03163314611f205760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b60008181526013602052604090205415610cb65760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b600b546001600160a01b03163314611fb35760405162461bcd60e51b815260206004820181905260248201526000805160206141e4833981519152604482015260640161095a565b6001600160a01b03811661202f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161095a565b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611d30836001600160a01b038416612a90565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610910575061091082612adf565b600081815260136020526040902054156121295760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b61096e8282612b7a565b6000611d30836001600160a01b038416612ca7565b826001600160a01b031661215b826110b6565b6001600160a01b0316146121d75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161095a565b6001600160a01b0382166122525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161095a565b61225d838383612dbe565b6122686000826127d1565b6001600160a01b03831660009081526003602052604081208054600192906122919084906140d6565b90915550506001600160a01b03821660009081526003602052604081208054600192906122bf90849061408b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8251811015610e235761237883828151811061234f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600e600087815260200190815260200160002061208b90919063ffffffff16565b506000848152600f6020526040902082518390839081106123a957634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200155806123d28161414e565b915050612323565b6119eb81612dc9565b6000610910825490565b6000611d308383612e09565b6001600160a01b03811660009081526001830160205260408120541515611d30565b61096e828260405180602001604052806000815250612eb8565b6000828152600260205260409020546001600160a01b03166124bf5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606482015260840161095a565b6000828152600a602090815260409091208251610cc192840190613946565b61096e8282612f36565b804710156125385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161095a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612585576040519150601f19603f3d011682016040523d82523d6000602084013e61258a565b606091505b5050905080610cc15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161095a565b61260c848484612148565b61261884848484612ffb565b610e235760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095a565b611a7e3383613153565b60005b6000838152600d60209081526040808320548352600e90915290206126b0906123e3565b8110156127be576000838152600d60209081526040808320548352600f909152812080546127109190849081106126f757634e487b7160e01b600052603260045260246000fd5b90600052602060002001548461270d91906140b7565b61271791906140a3565b6000858152600d60209081526040808320548352600e9091529020909150612743906119e590846123ed565b6000848152600d60209081526040808320548352600e909152902061276890836123ed565b6001600160a01b0316847fff50aeaf5513a2bfcf5c38af0d681d05e9a00cd91cc42ab2e143549595e5f172836040516127a391815260200190565b60405180910390a350806127b68161414e565b91505061268c565b5050600090815260116020526040812055565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612806826110b6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600d602052604090205460609015612901576000828152600d60209081526040808320548352600c9091529020805461287c90614119565b80601f01602080910402602001604051908101604052809291908181526020018280546128a890614119565b80156128f55780601f106128ca576101008083540402835291602001916128f5565b820191906000526020600020905b8154815290600101906020018083116128d857829003601f168201915b50505050509050919050565b505060408051602081019091526000815290565b6000818152600260205260409020546060906001600160a01b03166129a25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161095a565b6000828152600a6020526040812080546129bb90614119565b80601f01602080910402602001604051908101604052809291908181526020018280546129e790614119565b8015612a345780601f10612a0957610100808354040283529160200191612a34565b820191906000526020600020905b815481529060010190602001808311612a1757829003601f168201915b505050505090506000612a5260408051602081019091526000815290565b9050805160001415612a65575092915050565b815115612a7f578082604051602001611ec0929190613f33565b612a8884613246565b949350505050565b6000818152600183016020526040812054612ad757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610910565b506000610910565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612b4257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061091057507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610910565b6000612b85826110b6565b9050806001600160a01b0316836001600160a01b03161415612c0f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161095a565b336001600160a01b0382161480612c2b5750612c2b81336108b7565b612c9d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161095a565b610cc183836127d1565b60008181526001830160205260408120548015612db4576000612ccb6001836140d6565b8554909150600090612cdf906001906140d6565b90506000866000018281548110612d0657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110612d3757634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260018901909152604090208490558654879080612d7857634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610910565b6000915050610910565b610cc183838361333b565b612dd281613391565b6000818152600a602052604090208054612deb90614119565b1590506119eb576000818152600a602052604081206119eb916139ca565b81546000908210612e825760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60448201527f6473000000000000000000000000000000000000000000000000000000000000606482015260840161095a565b826000018281548110612ea557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b612ec28383613438565b612ecf6000848484612ffb565b610cc15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095a565b6001600160a01b038216331415612f8f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161095a565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006001600160a01b0384163b1561314857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061303f903390899088908890600401613f62565b602060405180830381600087803b15801561305957600080fd5b505af1925050508015613089575060408051601f3d908101601f1916820190925261308691810190613d79565b60015b61312e573d8080156130b7576040519150601f19603f3d011682016040523d82523d6000602084013e6130bc565b606091505b5080516131265760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a88565b506001949350505050565b6000818152600260205260408120546001600160a01b03166131cc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095a565b60006131d7836110b6565b9050806001600160a01b0316846001600160a01b031614806132125750836001600160a01b031661320784610a04565b6001600160a01b0316145b80612a8857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612a88565b6000818152600260205260409020546060906001600160a01b03166132d35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161095a565b60006132ea60408051602081019091526000815290565b9050600081511161330a5760405180602001604052806000815250611d30565b8061331484613586565b604051602001613325929190613f33565b6040516020818303038152906040529392505050565b600081815260136020526040902054156133865760405162461bcd60e51b815260206004820152600c60248201526b151bdad95b881b1bd8dad95960a21b604482015260640161095a565b610cc18383836136d4565b600061339c826110b6565b90506133aa81600084612dbe565b6133b56000836127d1565b6001600160a01b03811660009081526003602052604081208054600192906133de9084906140d6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661348e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161095a565b6000818152600260205260409020546001600160a01b0316156134f35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161095a565b6134ff60008383612dbe565b6001600160a01b038216600090815260036020526040812080546001929061352890849061408b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816135c657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135f057806135da8161414e565b91506135e99050600a836140a3565b91506135ca565b60008167ffffffffffffffff81111561361957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613643576020820181803683370190505b5090505b8415612a88576136586001836140d6565b9150613665600a86614169565b61367090603061408b565b60f81b81838151811061369357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136cd600a866140a3565b9450613647565b6001600160a01b03831661372f5761372a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613752565b816001600160a01b0316836001600160a01b03161461375257613752838261378c565b6001600160a01b03821661376957610cc181613829565b826001600160a01b0316826001600160a01b031614610cc157610cc18282613902565b60006001613799846114fe565b6137a391906140d6565b6000838152600760205260409020549091508082146137f6576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061383b906001906140d6565b6000838152600960205260408120546008805493945090928490811061387157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106138a057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806138e657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061390d836114fe565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461395290614119565b90600052602060002090601f01602090048101928261397457600085556139ba565b82601f1061398d57805160ff19168380011785556139ba565b828001600101855582156139ba579182015b828111156139ba57825182559160200191906001019061399f565b506139c6929150613a00565b5090565b5080546139d690614119565b6000825580601f106139e6575050565b601f0160209004906000526020600020908101906119eb91905b5b808211156139c65760008155600101613a01565b600067ffffffffffffffff831115613a2f57613a2f6141a9565b613a42601f8401601f1916602001614036565b9050828152838383011115613a5657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114613a8457600080fd5b919050565b600082601f830112613a99578081fd5b81356020613aae613aa983614067565b614036565b80838252828201915082860187848660051b8901011115613acd578586fd5b855b85811015613af257613ae082613a6d565b84529284019290840190600101613acf565b5090979650505050505050565b600082601f830112613b0f578081fd5b81356020613b1f613aa983614067565b80838252828201915082860187848660051b8901011115613b3e578586fd5b855b85811015613af257813584529284019290840190600101613b40565b600082601f830112613b6c578081fd5b611d3083833560208501613a15565b600060208284031215613b8c578081fd5b611d3082613a6d565b60008060408385031215613ba7578081fd5b613bb083613a6d565b9150613bbe60208401613a6d565b90509250929050565b600080600060608486031215613bdb578081fd5b613be484613a6d565b9250613bf260208501613a6d565b9150604084013590509250925092565b60008060008060808587031215613c17578081fd5b613c2085613a6d565b9350613c2e60208601613a6d565b925060408501359150606085013567ffffffffffffffff811115613c50578182fd5b8501601f81018713613c60578182fd5b613c6f87823560208401613a15565b91505092959194509250565b60008060408385031215613c8d578182fd5b613c9683613a6d565b91506020830135613ca6816141bf565b809150509250929050565b60008060408385031215613cc3578182fd5b613ccc83613a6d565b946020939093013593505050565b600080600080600060a08688031215613cf1578081fd5b613cfa86613a6d565b94506020860135935060408601359250606086013567ffffffffffffffff811115613d23578182fd5b613d2f88828901613b5c565b95989497509295608001359392505050565b600060208284031215613d52578081fd5b8151611d30816141bf565b600060208284031215613d6e578081fd5b8135611d30816141cd565b600060208284031215613d8a578081fd5b8151611d30816141cd565b600060208284031215613da6578081fd5b5035919050565b60008060408385031215613dbf578182fd5b82359150613bbe60208401613a6d565b600080600060608486031215613de3578081fd5b83359250602084013567ffffffffffffffff80821115613e01578283fd5b613e0d87838801613a89565b93506040860135915080821115613e22578283fd5b50613e2f86828701613aff565b9150509250925092565b60008060408385031215613e4b578182fd5b82359150602083013567ffffffffffffffff811115613e68578182fd5b613e7485828601613b5c565b9150509250929050565b60008060408385031215613e90578182fd5b50508035926020909101359150565b60008060008060808587031215613eb4578182fd5b8435935060208501359250604085013567ffffffffffffffff80821115613ed9578384fd5b613ee588838901613a89565b93506060870135915080821115613efa578283fd5b50613c6f87828801613aff565b60008151808452613f1f8160208601602086016140ed565b601f01601f19169290920160200192915050565b60008351613f458184602088016140ed565b835190830190613f598183602088016140ed565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f946080830184613f07565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613fdf5783516001600160a01b031683529284019291840191600101613fba565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613fdf57835183529284019291840191600101614007565b602081526000611d306020830184613f07565b604051601f8201601f1916810167ffffffffffffffff8111828210171561405f5761405f6141a9565b604052919050565b600067ffffffffffffffff821115614081576140816141a9565b5060051b60200190565b6000821982111561409e5761409e61417d565b500190565b6000826140b2576140b2614193565b500490565b60008160001904831182151516156140d1576140d161417d565b500290565b6000828210156140e8576140e861417d565b500390565b60005b838110156141085781810151838201526020016140f0565b83811115610e235750506000910152565b600181811c9082168061412d57607f821691505b60208210811415611d4057634e487b7160e01b600052602260045260246000fd5b60006000198214156141625761416261417d565b5060010190565b60008261417857614178614193565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146119eb57600080fd5b6001600160e01b0319811681146119eb57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220fbde95bb08fb27f752dfef425f1f7e45b4656b4aed70b5253551f80a5c181c1564736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000299878b01e28c14e15ffa08cc70992273cc2aa580000000000000000000000004b9b9ade48498fa1e3a4c9dfec45908786345c9f

-----Decoded View---------------
Arg [0] : adapterAddress (address[]): 0x299878B01e28C14e15Ffa08cC70992273CC2aA58,0x4b9b9aDE48498Fa1E3A4c9DfEc45908786345c9F

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [2] : 000000000000000000000000299878b01e28c14e15ffa08cc70992273cc2aa58
Arg [3] : 0000000000000000000000004b9b9ade48498fa1e3a4c9dfec45908786345c9f


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.