ETH Price: $3,408.76 (-0.21%)
Gas: 8 Gwei

Token

FEEL GOOD (FEELGOOD)
 

Overview

Max Total Supply

2,182 FEELGOOD

Holders

821

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 FEELGOOD
0x85c5078e24631b69f0f310176d23bcd980004741
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:
HistoryMkr

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : HistoryMkr.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol";
import "./@rarible/royalties/contracts/LibPart.sol";
import "./@rarible/royalties/contracts/LibRoyaltiesV2.sol";

contract HistoryMkr is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, RoyaltiesV2Impl {
    event Mint(address indexed _to, uint256 indexed _tokenId, bytes32 _ipfsHash);
    event NftBought(address _buyer, uint256 _price);
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdTracker;
    mapping(string => uint8) hashes;

    uint256 public _salePrice = 88000000000000000; //0.088 eth
    bytes4 constant private _INTERFACE_ID_ERC2981 = 0x2a55205a; //interface for royalties    
    uint16 private initialId;
    string constant private suffix = ".json";

    string public provenanceHash; 
    uint16 public treasurersTokens;
    string private baseURI;
    bool private mintPaused = true;
    address payable public treasurer;
    uint16 private royaltyPercentageBasePoints = 400; //4%
    uint16 private maxAvailableTokens;
    constructor(string memory name, string memory symbol, string memory _provenanceHash, address payable _treasurer, uint16 _initialId, uint16 _treasurersTokens, uint16 _maxAvailableTokens) ERC721(name, symbol) {
        provenanceHash = _provenanceHash;
        initialId = _initialId;
        treasurer = _treasurer;
        treasurersTokens = _treasurersTokens;
        maxAvailableTokens = _maxAvailableTokens;
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }
    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) onlyOwner {
        super._burn(tokenId);
    }
    function setRoyaltyPercentageBasePoints(uint16 _percentageBasePoints) public  onlyOwner {
        royaltyPercentageBasePoints = _percentageBasePoints;
    }
    function setRoyalties(uint _tokenId) private {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = royaltyPercentageBasePoints;
        _royalties[0].account = treasurer;
        _saveRoyalties(_tokenId, _royalties);
    }
    function royaltyInfo(uint16 _tokenId) external view returns (address receiver, uint256 royaltyAmount) {
        LibPart.Part[] memory _royalties = royalties[_tokenId];
        if(_royalties.length > 0) {
            //currently royalties are based on the default starting price of the NFT and not dynamic with the current price of the NFT
            return (_royalties[0].account, (_salePrice * _royalties[0].value)/10000);
        }
        return (address(0), 0);

    }
    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
        if(interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }
        if(interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }
        return super.supportsInterface(interfaceId);
    } 

    function contractURI() public view returns (string memory) {
        return "ipfs://QmViH1WNS7tWqVcJCmi2tpEGsjvZr3fvDCS3bgTV7bKarn";
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }
    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
        return super.tokenURI(tokenId); 
    }
    function mint(uint256 _mintAmount) public payable whenMintNotPaused() {
        require(_tokenIdTracker.current() + _mintAmount <= maxAvailableTokens, "all tokens have been minted");
        require(!Address.isContract(msg.sender), "address cannot be a contract");
        require( _mintAmount <= 10, "You can mint a maximum of 10");
        require( msg.value == _salePrice * _mintAmount, "Ether sent is not equal to PRICE * num" );
        payable(treasurer).transfer(msg.value);
        transferNFTs(_mintAmount, msg.sender);
    }

    function transferNFTs(uint256 num, address recipient) private {
        for(uint256 i = 0; i < num; i++){
            uint256 newItemId = initialId + _tokenIdTracker.current();
            super._safeMint(recipient, newItemId);
            require(_exists(newItemId), "minting the ID failed");
            setRoyalties(newItemId);
            string memory completeURI;
            completeURI = string(abi.encodePacked(Strings.toString(newItemId), suffix));
            _setTokenURI(newItemId, completeURI);
            _tokenIdTracker.increment();
            emit NftBought(msg.sender, newItemId);
        }
    }
    function claimTokens(uint8 num) public onlyOwner {
        require(num <= 50, "more than allowed max at a time"); //todo change this!!
        require(balanceOf(treasurer) + num <= treasurersTokens, "the contract treasurer cannot claim more");
        require(mintPaused, "this can only be done before minting is open to public");
        
        transferNFTs(num, treasurer);
    }
    function startMintingProcess(uint256 tokenPrice) public onlyOwner {
        require(mintPaused, "mint has already begun"); //check that mintPaused is true otherwise its already started
        require(balanceOf(treasurer) >= treasurersTokens, "cannot mint until all tokens have been claimed");
        _salePrice = tokenPrice;
        mintPaused = false;
    }

    function setTokenBaseURI(string memory base) public onlyOwner {
        baseURI = base;
    }
    function setNewTokenPrice(uint256 tokenPrice) public onlyOwner {
        _salePrice = tokenPrice;
    }
    modifier whenMintNotPaused() {
        require(!mintPaused, "minting is paused");
        _;
    }
}

File 2 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 21 : 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}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 21 : 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 5 of 21 : 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 6 of 21 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 21 : 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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 21 : 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;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 21 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 21 : RoyaltiesV2Impl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AbstractRoyalties.sol";
import "../RoyaltiesV2.sol";

contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {
    function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) {
        return royalties[id];
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) override internal {
        emit RoyaltiesSet(_id, _royalties);
    }
}

File 11 of 21 : LibPart.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

File 12 of 21 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibRoyaltiesV2 {
    /*
    * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
    */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}

File 13 of 21 : 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 14 of 21 : 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 15 of 21 : 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 16 of 21 : 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) {
        return msg.data;
    }
}

File 17 of 21 : 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 18 of 21 : 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 19 of 21 : 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);
}

File 20 of 21 : AbstractRoyalties.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../LibPart.sol";

abstract contract AbstractRoyalties {
    mapping (uint256 => LibPart.Part[]) public royalties;

    function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal {
        for (uint i = 0; i < _royalties.length; i++) {
            require(_royalties[i].account != address(0x0), "Recipient should be present");
            require(_royalties[i].value != 0, "Royalty value should be positive");
            royalties[_id].push(_royalties[i]);
        }
        _onRoyaltiesSet(_id, _royalties);
    }

    function _updateAccount(uint256 _id, address _from, address _to) internal {
        uint length = royalties[_id].length;
        for(uint i = 0; i < length; i++) {
            if (royalties[_id][i].account == _from) {
                royalties[_id][i].account = payable(address(uint160(_to)));
            }
        }
    }

    function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) virtual internal;
}

File 21 of 21 : RoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LibPart.sol";

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_provenanceHash","type":"string"},{"internalType":"address payable","name":"_treasurer","type":"address"},{"internalType":"uint16","name":"_initialId","type":"uint16"},{"internalType":"uint16","name":"_treasurersTokens","type":"uint16"},{"internalType":"uint16","name":"_maxAvailableTokens","type":"uint16"}],"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":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_ipfsHash","type":"bytes32"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"NftBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint8","name":"num","type":"uint8"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"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":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setNewTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_percentageBasePoints","type":"uint16"}],"name":"setRoyaltyPercentageBasePoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"base","type":"string"}],"name":"setTokenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"startMintingProcess","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":[],"name":"treasurer","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasurersTokens","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"}]

6080604052670138a388a43c0000600f556001601460006101000a81548160ff021916908315150217905550610190601460156101000a81548161ffff021916908361ffff1602179055503480156200005757600080fd5b5060405162005d6338038062005d6383398181016040528101906200007d9190620003bb565b86868160009080519060200190620000979291906200025f565b508060019080519060200190620000b09291906200025f565b505050620000d3620000c76200019160201b60201c565b6200019960201b60201c565b8460119080519060200190620000eb9291906200025f565b5082601060006101000a81548161ffff021916908361ffff16021790555083601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601260006101000a81548161ffff021916908361ffff16021790555080601460176101000a81548161ffff021916908361ffff16021790555050505050505050620006c5565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200026d90620005a2565b90600052602060002090601f016020900481019282620002915760008555620002dd565b82601f10620002ac57805160ff1916838001178555620002dd565b82800160010185558215620002dd579182015b82811115620002dc578251825591602001919060010190620002bf565b5b509050620002ec9190620002f0565b5090565b5b808211156200030b576000816000905550600101620002f1565b5090565b6000620003266200032084620004f4565b620004cb565b90508281526020810184848401111562000345576200034462000671565b5b620003528482856200056c565b509392505050565b6000815190506200036b8162000691565b92915050565b600082601f8301126200038957620003886200066c565b5b81516200039b8482602086016200030f565b91505092915050565b600081519050620003b581620006ab565b92915050565b600080600080600080600060e0888a031215620003dd57620003dc6200067b565b5b600088015167ffffffffffffffff811115620003fe57620003fd62000676565b5b6200040c8a828b0162000371565b975050602088015167ffffffffffffffff81111562000430576200042f62000676565b5b6200043e8a828b0162000371565b965050604088015167ffffffffffffffff81111562000462576200046162000676565b5b620004708a828b0162000371565b9550506060620004838a828b016200035a565b9450506080620004968a828b01620003a4565b93505060a0620004a98a828b01620003a4565b92505060c0620004bc8a828b01620003a4565b91505092959891949750929550565b6000620004d7620004ea565b9050620004e58282620005d8565b919050565b6000604051905090565b600067ffffffffffffffff8211156200051257620005116200063d565b5b6200051d8262000680565b9050602081019050919050565b600062000537826200054c565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200058c5780820151818401526020810190506200056f565b838111156200059c576000848401525b50505050565b60006002820490506001821680620005bb57607f821691505b60208210811415620005d257620005d16200060e565b5b50919050565b620005e38262000680565b810181811067ffffffffffffffff821117156200060557620006046200063d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200069c816200052a565b8114620006a857600080fd5b50565b620006b6816200053e565b8114620006c257600080fd5b50565b61568e80620006d56000396000f3fe6080604052600436106101ee5760003560e01c80638da5cb5b1161010d578063c87b56dd116100a0578063e8a3d4851161006f578063e8a3d48514610726578063e985e9c514610751578063ec4021751461078e578063f2fde38b146107b9578063fda49eb4146107e2576101ee565b8063c87b56dd1461065a578063cad96cca14610697578063ce9101d3146106d4578063d41edb18146106fd576101ee565b8063a22cb465116100dc578063a22cb4651461059f578063b6247be7146105c8578063b88d4fde14610606578063c6ab67a31461062f576101ee565b80638da5cb5b146105045780638ef79e911461052f57806395d89b4114610558578063a0712d6814610583576101ee565b80633f5961e8116101855780636352211e116101545780636352211e1461043557806370a0823114610472578063715018a6146104af5780638924af74146104c6576101ee565b80633f5961e81461037b57806342842e0e146103a65780634f6ccce7146103cf5780635f1187041461040c576101ee565b806318160ddd116101c157806318160ddd146102c157806323b872dd146102ec5780632f745c5914610315578063339f089f14610352576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190613a9f565b61080d565b6040516102279190614366565b60405180910390f35b34801561023c57600080fd5b506102456108cc565b6040516102529190614381565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190613b6f565b61095e565b60405161028f9190614270565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190613a5f565b6109e3565b005b3480156102cd57600080fd5b506102d6610afb565b6040516102e391906147de565b60405180910390f35b3480156102f857600080fd5b50610313600480360381019061030e9190613949565b610b08565b005b34801561032157600080fd5b5061033c60048036038101906103379190613a5f565b610b68565b60405161034991906147de565b60405180910390f35b34801561035e57600080fd5b5061037960048036038101906103749190613b6f565b610c0d565b005b34801561038757600080fd5b50610390610d7e565b60405161039d91906147c3565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c89190613949565b610d92565b005b3480156103db57600080fd5b506103f660048036038101906103f19190613b6f565b610db2565b60405161040391906147de565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e9190613bdc565b610e23565b005b34801561044157600080fd5b5061045c60048036038101906104579190613b6f565b610ff6565b6040516104699190614270565b60405180910390f35b34801561047e57600080fd5b50610499600480360381019061049491906138dc565b6110a8565b6040516104a691906147de565b60405180910390f35b3480156104bb57600080fd5b506104c4611160565b005b3480156104d257600080fd5b506104ed60048036038101906104e89190613b9c565b6111e8565b6040516104fb9291906142a6565b60405180910390f35b34801561051057600080fd5b5061051961125d565b6040516105269190614270565b60405180910390f35b34801561053b57600080fd5b5061055660048036038101906105519190613af9565b611287565b005b34801561056457600080fd5b5061056d61131d565b60405161057a9190614381565b60405180910390f35b61059d60048036038101906105989190613b6f565b6113af565b005b3480156105ab57600080fd5b506105c660048036038101906105c19190613a1f565b6115bc565b005b3480156105d457600080fd5b506105ef60048036038101906105ea9190613b42565b61173d565b6040516105fd92919061431b565b60405180910390f35b34801561061257600080fd5b5061062d6004803603810190610628919061399c565b6118cb565b005b34801561063b57600080fd5b5061064461192d565b6040516106519190614381565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190613b6f565b6119bb565b60405161068e9190614381565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b99190613b6f565b6119cd565b6040516106cb9190614344565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190613b42565b611acf565b005b34801561070957600080fd5b50610724600480360381019061071f9190613b6f565b611b6b565b005b34801561073257600080fd5b5061073b611bf1565b6040516107489190614381565b60405180910390f35b34801561075d57600080fd5b5061077860048036038101906107739190613909565b611c11565b6040516107859190614366565b60405180910390f35b34801561079a57600080fd5b506107a3611ca5565b6040516107b091906147de565b60405180910390f35b3480156107c557600080fd5b506107e060048036038101906107db91906138dc565b611cab565b005b3480156107ee57600080fd5b506107f7611da3565b604051610804919061428b565b60405180910390f35b60006344c74bcc60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561086557600190506108c7565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156108bb57600190506108c7565b6108c482611dc9565b90505b919050565b6060600080546108db90614b3c565b80601f016020809104026020016040519081016040528092919081815260200182805461090790614b3c565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b600061096982611e43565b6109a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099f906145a3565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ee82610ff6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5690614623565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a7e611eaf565b73ffffffffffffffffffffffffffffffffffffffff161480610aad5750610aac81610aa7611eaf565b611c11565b5b610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae3906144c3565b60405180910390fd5b610af68383611eb7565b505050565b6000600880549050905090565b610b19610b13611eaf565b82611f70565b610b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4f90614683565b60405180910390fd5b610b6383838361204e565b505050565b6000610b73836110a8565b8210610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab906143a3565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c15611eaf565b73ffffffffffffffffffffffffffffffffffffffff16610c3361125d565b73ffffffffffffffffffffffffffffffffffffffff1614610c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c80906145c3565b60405180910390fd5b601460009054906101000a900460ff16610cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccf906146a3565b60405180910390fd5b601260009054906101000a900461ffff1661ffff16610d18601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166110a8565b1015610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d50906146c3565b60405180910390fd5b80600f819055506000601460006101000a81548160ff02191690831515021790555050565b601260009054906101000a900461ffff1681565b610dad838383604051806020016040528060008152506118cb565b505050565b6000610dbc610afb565b8210610dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df4906146e3565b60405180910390fd5b60088281548110610e1157610e10614cd5565b5b90600052602060002001549050919050565b610e2b611eaf565b73ffffffffffffffffffffffffffffffffffffffff16610e4961125d565b73ffffffffffffffffffffffffffffffffffffffff1614610e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e96906145c3565b60405180910390fd5b60328160ff161115610ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edd90614643565b60405180910390fd5b601260009054906101000a900461ffff1661ffff168160ff16610f2a601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166110a8565b610f34919061492c565b1115610f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6c90614703565b60405180910390fd5b601460009054906101000a900460ff16610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb906147a3565b60405180910390fd5b610ff38160ff16601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166122aa565b50565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561109f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109690614503565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611110906144e3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611168611eaf565b73ffffffffffffffffffffffffffffffffffffffff1661118661125d565b73ffffffffffffffffffffffffffffffffffffffff16146111dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d3906145c3565b60405180910390fd5b6111e66000612407565b565b600c602052816000526040600020818154811061120457600080fd5b90600052602060002001600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a90046bffffffffffffffffffffffff16905082565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61128f611eaf565b73ffffffffffffffffffffffffffffffffffffffff166112ad61125d565b73ffffffffffffffffffffffffffffffffffffffff1614611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fa906145c3565b60405180910390fd5b8060139080519060200190611319929190613688565b5050565b60606001805461132c90614b3c565b80601f016020809104026020016040519081016040528092919081815260200182805461135890614b3c565b80156113a55780601f1061137a576101008083540402835291602001916113a5565b820191906000526020600020905b81548152906001019060200180831161138857829003601f168201915b5050505050905090565b601460009054906101000a900460ff16156113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f690614663565b60405180910390fd5b601460179054906101000a900461ffff1661ffff168161141f600d6124cd565b611429919061492c565b111561146a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146190614723565b60405180910390fd5b611473336124db565b156114b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114aa90614423565b60405180910390fd5b600a8111156114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90614743565b60405180910390fd5b80600f5461150591906149b3565b3414611546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153d90614783565b60405180910390fd5b601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156115ae573d6000803e3d6000fd5b506115b981336122aa565b50565b6115c4611eaf565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611632576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162990614463565b60405180910390fd5b806005600061163f611eaf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116ec611eaf565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117319190614366565b60405180910390a35050565b6000806000600c60008561ffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561183b578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190611779565b5050505090506000815111156118bd578060008151811061185f5761185e614cd5565b5b6020026020010151600001516127108260008151811061188257611881614cd5565b5b6020026020010151602001516bffffffffffffffffffffffff16600f546118a991906149b3565b6118b39190614982565b92509250506118c6565b60008092509250505b915091565b6118dc6118d6611eaf565b83611f70565b61191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191290614683565b60405180910390fd5b611927848484846124ee565b50505050565b6011805461193a90614b3c565b80601f016020809104026020016040519081016040528092919081815260200182805461196690614b3c565b80156119b35780601f10611988576101008083540402835291602001916119b3565b820191906000526020600020905b81548152906001019060200180831161199657829003601f168201915b505050505081565b60606119c68261254a565b9050919050565b6060600c6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611ac4578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190611a02565b505050509050919050565b611ad7611eaf565b73ffffffffffffffffffffffffffffffffffffffff16611af561125d565b73ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b42906145c3565b60405180910390fd5b80601460156101000a81548161ffff021916908361ffff16021790555050565b611b73611eaf565b73ffffffffffffffffffffffffffffffffffffffff16611b9161125d565b73ffffffffffffffffffffffffffffffffffffffff1614611be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bde906145c3565b60405180910390fd5b80600f8190555050565b606060405180606001604052806035815260200161562460359139905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600f5481565b611cb3611eaf565b73ffffffffffffffffffffffffffffffffffffffff16611cd161125d565b73ffffffffffffffffffffffffffffffffffffffff1614611d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1e906145c3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8e906143e3565b60405180910390fd5b611da081612407565b50565b601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e3c5750611e3b8261269c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f2a83610ff6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f7b82611e43565b611fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb190614483565b60405180910390fd5b6000611fc583610ff6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061203457508373ffffffffffffffffffffffffffffffffffffffff1661201c8461095e565b73ffffffffffffffffffffffffffffffffffffffff16145b8061204557506120448185611c11565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661206e82610ff6565b73ffffffffffffffffffffffffffffffffffffffff16146120c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bb906145e3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b90614443565b60405180910390fd5b61213f83838361277e565b61214a600082611eb7565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461219a9190614a0d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121f1919061492c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60005b828110156124025760006122c1600d6124cd565b601060009054906101000a900461ffff1661ffff166122e0919061492c565b90506122ec838261278e565b6122f581611e43565b612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232b90614543565b60405180910390fd5b61233d816127ac565b6060612348826128df565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060405160200161238f92919061424c565b60405160208183030381529060405290506123aa8282612a40565b6123b4600d612ab4565b7fca423c4bd22d187877e007ac3422d5d67acd79f7f2865ae0c8c548d9885211da33836040516123e592919061431b565b60405180910390a1505080806123fa90614b9f565b9150506122ad565b505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b600080823b905060008111915050919050565b6124f984848461204e565b61250584848484612aca565b612544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253b906143c3565b60405180910390fd5b50505050565b606061255582611e43565b612594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258b90614583565b60405180910390fd5b6000600a600084815260200190815260200160002080546125b490614b3c565b80601f01602080910402602001604051908101604052809291908181526020018280546125e090614b3c565b801561262d5780601f106126025761010080835404028352916020019161262d565b820191906000526020600020905b81548152906001019060200180831161261057829003601f168201915b50505050509050600061263e612c61565b9050600081511415612654578192505050612697565b60008251111561268957808260405160200161267192919061424c565b60405160208183030381529060405292505050612697565b61269284612cf3565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061276757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612777575061277682612d9a565b5b9050919050565b612789838383612e04565b505050565b6127a8828260405180602001604052806000815250612f18565b5050565b6000600167ffffffffffffffff8111156127c9576127c8614d04565b5b60405190808252806020026020018201604052801561280257816020015b6127ef61370e565b8152602001906001900390816127e75790505b509050601460159054906101000a900461ffff1661ffff168160008151811061282e5761282d614cd5565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061289357612892614cd5565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506128db8282612f73565b5050565b60606000821415612927576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a3b565b600082905060005b6000821461295957808061294290614b9f565b915050600a826129529190614982565b915061292f565b60008167ffffffffffffffff81111561297557612974614d04565b5b6040519080825280601f01601f1916602001820160405280156129a75781602001600182028036833780820191505090505b5090505b60008514612a34576001826129c09190614a0d565b9150600a856129cf9190614be8565b60306129db919061492c565b60f81b8183815181106129f1576129f0614cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a2d9190614982565b94506129ab565b8093505050505b919050565b612a4982611e43565b612a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7f90614523565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190612aaf929190613688565b505050565b6001816000016000828254019250508190555050565b6000612aeb8473ffffffffffffffffffffffffffffffffffffffff166124db565b15612c54578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b14611eaf565b8786866040518563ffffffff1660e01b8152600401612b3694939291906142cf565b602060405180830381600087803b158015612b5057600080fd5b505af1925050508015612b8157506040513d601f19601f82011682018060405250810190612b7e9190613acc565b60015b612c04573d8060008114612bb1576040519150601f19603f3d011682016040523d82523d6000602084013e612bb6565b606091505b50600081511415612bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf3906143c3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c59565b600190505b949350505050565b606060138054612c7090614b3c565b80601f0160208091040260200160405190810160405280929190818152602001828054612c9c90614b3c565b8015612ce95780601f10612cbe57610100808354040283529160200191612ce9565b820191906000526020600020905b815481529060010190602001808311612ccc57829003601f168201915b5050505050905090565b6060612cfe82611e43565b612d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3490614603565b60405180910390fd5b6000612d47612c61565b90506000815111612d675760405180602001604052806000815250612d92565b80612d71846128df565b604051602001612d8292919061424c565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612e0f838383613172565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e5257612e4d81613177565b612e91565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e9057612e8f83826131c0565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ed457612ecf8161332d565b612f13565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f1257612f1182826133fe565b5b5b505050565b612f22838361347d565b612f2f6000848484612aca565b612f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f65906143c3565b60405180910390fd5b505050565b60005b815181101561316357600073ffffffffffffffffffffffffffffffffffffffff16828281518110612faa57612fa9614cd5565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16141561300d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300490614763565b60405180910390fd5b600082828151811061302257613021614cd5565b5b6020026020010151602001516bffffffffffffffffffffffff16141561307d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613074906144a3565b60405180910390fd5b600c60008481526020019081526020016000208282815181106130a3576130a2614cd5565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050808061315b90614b9f565b915050612f76565b5061316e828261364b565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016131cd846110a8565b6131d79190614a0d565b90506000600760008481526020019081526020016000205490508181146132bc576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506133419190614a0d565b905060006009600084815260200190815260200160002054905060006008838154811061337157613370614cd5565b5b90600052602060002001549050806008838154811061339357613392614cd5565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806133e2576133e1614ca6565b5b6001900381819060005260206000200160009055905550505050565b6000613409836110a8565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e490614563565b60405180910390fd5b6134f681611e43565b15613536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352d90614403565b60405180910390fd5b6135426000838361277e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613592919061492c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df828260405161367c9291906147f9565b60405180910390a15050565b82805461369490614b3c565b90600052602060002090601f0160209004810192826136b657600085556136fd565b82601f106136cf57805160ff19168380011785556136fd565b828001600101855582156136fd579182015b828111156136fc5782518255916020019190600101906136e1565b5b50905061370a919061374c565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b5b8082111561376557600081600090555060010161374d565b5090565b600061377c6137778461484e565b614829565b90508281526020810184848401111561379857613797614d38565b5b6137a3848285614afa565b509392505050565b60006137be6137b98461487f565b614829565b9050828152602081018484840111156137da576137d9614d38565b5b6137e5848285614afa565b509392505050565b6000813590506137fc81615599565b92915050565b600081359050613811816155b0565b92915050565b600081359050613826816155c7565b92915050565b60008151905061383b816155c7565b92915050565b600082601f83011261385657613855614d33565b5b8135613866848260208601613769565b91505092915050565b600082601f83011261388457613883614d33565b5b81356138948482602086016137ab565b91505092915050565b6000813590506138ac816155de565b92915050565b6000813590506138c1816155f5565b92915050565b6000813590506138d68161560c565b92915050565b6000602082840312156138f2576138f1614d42565b5b6000613900848285016137ed565b91505092915050565b600080604083850312156139205761391f614d42565b5b600061392e858286016137ed565b925050602061393f858286016137ed565b9150509250929050565b60008060006060848603121561396257613961614d42565b5b6000613970868287016137ed565b9350506020613981868287016137ed565b9250506040613992868287016138b2565b9150509250925092565b600080600080608085870312156139b6576139b5614d42565b5b60006139c4878288016137ed565b94505060206139d5878288016137ed565b93505060406139e6878288016138b2565b925050606085013567ffffffffffffffff811115613a0757613a06614d3d565b5b613a1387828801613841565b91505092959194509250565b60008060408385031215613a3657613a35614d42565b5b6000613a44858286016137ed565b9250506020613a5585828601613802565b9150509250929050565b60008060408385031215613a7657613a75614d42565b5b6000613a84858286016137ed565b9250506020613a95858286016138b2565b9150509250929050565b600060208284031215613ab557613ab4614d42565b5b6000613ac384828501613817565b91505092915050565b600060208284031215613ae257613ae1614d42565b5b6000613af08482850161382c565b91505092915050565b600060208284031215613b0f57613b0e614d42565b5b600082013567ffffffffffffffff811115613b2d57613b2c614d3d565b5b613b398482850161386f565b91505092915050565b600060208284031215613b5857613b57614d42565b5b6000613b668482850161389d565b91505092915050565b600060208284031215613b8557613b84614d42565b5b6000613b93848285016138b2565b91505092915050565b60008060408385031215613bb357613bb2614d42565b5b6000613bc1858286016138b2565b9250506020613bd2858286016138b2565b9150509250929050565b600060208284031215613bf257613bf1614d42565b5b6000613c00848285016138c7565b91505092915050565b6000613c1583836141e1565b60408301905092915050565b613c2a81614a53565b82525050565b613c3981614a53565b82525050565b613c4881614a41565b82525050565b6000613c59826148c0565b613c6381856148ee565b9350613c6e836148b0565b8060005b83811015613c9f578151613c868882613c09565b9750613c91836148e1565b925050600181019050613c72565b5085935050505092915050565b613cb581614a65565b82525050565b6000613cc6826148cb565b613cd081856148ff565b9350613ce0818560208601614b09565b613ce981614d47565b840191505092915050565b6000613cff826148d6565b613d098185614910565b9350613d19818560208601614b09565b613d2281614d47565b840191505092915050565b6000613d38826148d6565b613d428185614921565b9350613d52818560208601614b09565b80840191505092915050565b6000613d6b602b83614910565b9150613d7682614d58565b604082019050919050565b6000613d8e603283614910565b9150613d9982614da7565b604082019050919050565b6000613db1602683614910565b9150613dbc82614df6565b604082019050919050565b6000613dd4601c83614910565b9150613ddf82614e45565b602082019050919050565b6000613df7601c83614910565b9150613e0282614e6e565b602082019050919050565b6000613e1a602483614910565b9150613e2582614e97565b604082019050919050565b6000613e3d601983614910565b9150613e4882614ee6565b602082019050919050565b6000613e60602c83614910565b9150613e6b82614f0f565b604082019050919050565b6000613e83602083614910565b9150613e8e82614f5e565b602082019050919050565b6000613ea6603883614910565b9150613eb182614f87565b604082019050919050565b6000613ec9602a83614910565b9150613ed482614fd6565b604082019050919050565b6000613eec602983614910565b9150613ef782615025565b604082019050919050565b6000613f0f602e83614910565b9150613f1a82615074565b604082019050919050565b6000613f32601583614910565b9150613f3d826150c3565b602082019050919050565b6000613f55602083614910565b9150613f60826150ec565b602082019050919050565b6000613f78603183614910565b9150613f8382615115565b604082019050919050565b6000613f9b602c83614910565b9150613fa682615164565b604082019050919050565b6000613fbe602083614910565b9150613fc9826151b3565b602082019050919050565b6000613fe1602983614910565b9150613fec826151dc565b604082019050919050565b6000614004602f83614910565b915061400f8261522b565b604082019050919050565b6000614027602183614910565b91506140328261527a565b604082019050919050565b600061404a601f83614910565b9150614055826152c9565b602082019050919050565b600061406d601183614910565b9150614078826152f2565b602082019050919050565b6000614090603183614910565b915061409b8261531b565b604082019050919050565b60006140b3601683614910565b91506140be8261536a565b602082019050919050565b60006140d6602e83614910565b91506140e182615393565b604082019050919050565b60006140f9602c83614910565b9150614104826153e2565b604082019050919050565b600061411c602883614910565b915061412782615431565b604082019050919050565b600061413f601b83614910565b915061414a82615480565b602082019050919050565b6000614162601c83614910565b915061416d826154a9565b602082019050919050565b6000614185601b83614910565b9150614190826154d2565b602082019050919050565b60006141a8602683614910565b91506141b3826154fb565b604082019050919050565b60006141cb603683614910565b91506141d68261554a565b604082019050919050565b6040820160008201516141f76000850182613c21565b50602082015161420a602085018261422e565b50505050565b61421981614a9d565b82525050565b61422881614acb565b82525050565b61423781614ae2565b82525050565b61424681614ae2565b82525050565b60006142588285613d2d565b91506142648284613d2d565b91508190509392505050565b60006020820190506142856000830184613c3f565b92915050565b60006020820190506142a06000830184613c30565b92915050565b60006040820190506142bb6000830185613c30565b6142c8602083018461423d565b9392505050565b60006080820190506142e46000830187613c3f565b6142f16020830186613c3f565b6142fe604083018561421f565b81810360608301526143108184613cbb565b905095945050505050565b60006040820190506143306000830185613c3f565b61433d602083018461421f565b9392505050565b6000602082019050818103600083015261435e8184613c4e565b905092915050565b600060208201905061437b6000830184613cac565b92915050565b6000602082019050818103600083015261439b8184613cf4565b905092915050565b600060208201905081810360008301526143bc81613d5e565b9050919050565b600060208201905081810360008301526143dc81613d81565b9050919050565b600060208201905081810360008301526143fc81613da4565b9050919050565b6000602082019050818103600083015261441c81613dc7565b9050919050565b6000602082019050818103600083015261443c81613dea565b9050919050565b6000602082019050818103600083015261445c81613e0d565b9050919050565b6000602082019050818103600083015261447c81613e30565b9050919050565b6000602082019050818103600083015261449c81613e53565b9050919050565b600060208201905081810360008301526144bc81613e76565b9050919050565b600060208201905081810360008301526144dc81613e99565b9050919050565b600060208201905081810360008301526144fc81613ebc565b9050919050565b6000602082019050818103600083015261451c81613edf565b9050919050565b6000602082019050818103600083015261453c81613f02565b9050919050565b6000602082019050818103600083015261455c81613f25565b9050919050565b6000602082019050818103600083015261457c81613f48565b9050919050565b6000602082019050818103600083015261459c81613f6b565b9050919050565b600060208201905081810360008301526145bc81613f8e565b9050919050565b600060208201905081810360008301526145dc81613fb1565b9050919050565b600060208201905081810360008301526145fc81613fd4565b9050919050565b6000602082019050818103600083015261461c81613ff7565b9050919050565b6000602082019050818103600083015261463c8161401a565b9050919050565b6000602082019050818103600083015261465c8161403d565b9050919050565b6000602082019050818103600083015261467c81614060565b9050919050565b6000602082019050818103600083015261469c81614083565b9050919050565b600060208201905081810360008301526146bc816140a6565b9050919050565b600060208201905081810360008301526146dc816140c9565b9050919050565b600060208201905081810360008301526146fc816140ec565b9050919050565b6000602082019050818103600083015261471c8161410f565b9050919050565b6000602082019050818103600083015261473c81614132565b9050919050565b6000602082019050818103600083015261475c81614155565b9050919050565b6000602082019050818103600083015261477c81614178565b9050919050565b6000602082019050818103600083015261479c8161419b565b9050919050565b600060208201905081810360008301526147bc816141be565b9050919050565b60006020820190506147d86000830184614210565b92915050565b60006020820190506147f3600083018461421f565b92915050565b600060408201905061480e600083018561421f565b81810360208301526148208184613c4e565b90509392505050565b6000614833614844565b905061483f8282614b6e565b919050565b6000604051905090565b600067ffffffffffffffff82111561486957614868614d04565b5b61487282614d47565b9050602081019050919050565b600067ffffffffffffffff82111561489a57614899614d04565b5b6148a382614d47565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061493782614acb565b915061494283614acb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561497757614976614c19565b5b828201905092915050565b600061498d82614acb565b915061499883614acb565b9250826149a8576149a7614c48565b5b828204905092915050565b60006149be82614acb565b91506149c983614acb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a0257614a01614c19565b5b828202905092915050565b6000614a1882614acb565b9150614a2383614acb565b925082821015614a3657614a35614c19565b5b828203905092915050565b6000614a4c82614aab565b9050919050565b6000614a5e82614aab565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015614b27578082015181840152602081019050614b0c565b83811115614b36576000848401525b50505050565b60006002820490506001821680614b5457607f821691505b60208210811415614b6857614b67614c77565b5b50919050565b614b7782614d47565b810181811067ffffffffffffffff82111715614b9657614b95614d04565b5b80604052505050565b6000614baa82614acb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bdd57614bdc614c19565b5b600182019050919050565b6000614bf382614acb565b9150614bfe83614acb565b925082614c0e57614c0d614c48565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f616464726573732063616e6e6f74206265206120636f6e747261637400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f526f79616c74792076616c75652073686f756c6420626520706f736974697665600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f6d696e74696e6720746865204944206661696c65640000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f6d6f7265207468616e20616c6c6f776564206d617820617420612074696d6500600082015250565b7f6d696e74696e6720697320706175736564000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f6d696e742068617320616c726561647920626567756e00000000000000000000600082015250565b7f63616e6e6f74206d696e7420756e74696c20616c6c20746f6b656e732068617660008201527f65206265656e20636c61696d6564000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f74686520636f6e7472616374207472656173757265722063616e6e6f7420636c60008201527f61696d206d6f7265000000000000000000000000000000000000000000000000602082015250565b7f616c6c20746f6b656e732068617665206265656e206d696e7465640000000000600082015250565b7f596f752063616e206d696e742061206d6178696d756d206f6620313000000000600082015250565b7f526563697069656e742073686f756c642062652070726573656e740000000000600082015250565b7f45746865722073656e74206973206e6f7420657175616c20746f20505249434560008201527f202a206e756d0000000000000000000000000000000000000000000000000000602082015250565b7f746869732063616e206f6e6c7920626520646f6e65206265666f7265206d696e60008201527f74696e67206973206f70656e20746f207075626c696300000000000000000000602082015250565b6155a281614a41565b81146155ad57600080fd5b50565b6155b981614a65565b81146155c457600080fd5b50565b6155d081614a71565b81146155db57600080fd5b50565b6155e781614a9d565b81146155f257600080fd5b50565b6155fe81614acb565b811461560957600080fd5b50565b61561581614ad5565b811461562057600080fd5b5056fe697066733a2f2f516d56694831574e533774577156634a436d693274704547736a765a72336676444353336267545637624b61726ea2646970667358221220fbecb45198785e38048ac7fadf627274f3c4124e59c023dcbb780776f9fcd6ad64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000dfc4a30c67e0cea073998cf873c1968ac8d739d000000000000000000000000000000000000000000000000000000000000050700000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000022b800000000000000000000000000000000000000000000000000000000000000094645454c20474f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084645454c474f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004034373463343863346531663431616662346534393537333135303135383538393662633764393236343932333264316237623362643266396163613530336166

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80638da5cb5b1161010d578063c87b56dd116100a0578063e8a3d4851161006f578063e8a3d48514610726578063e985e9c514610751578063ec4021751461078e578063f2fde38b146107b9578063fda49eb4146107e2576101ee565b8063c87b56dd1461065a578063cad96cca14610697578063ce9101d3146106d4578063d41edb18146106fd576101ee565b8063a22cb465116100dc578063a22cb4651461059f578063b6247be7146105c8578063b88d4fde14610606578063c6ab67a31461062f576101ee565b80638da5cb5b146105045780638ef79e911461052f57806395d89b4114610558578063a0712d6814610583576101ee565b80633f5961e8116101855780636352211e116101545780636352211e1461043557806370a0823114610472578063715018a6146104af5780638924af74146104c6576101ee565b80633f5961e81461037b57806342842e0e146103a65780634f6ccce7146103cf5780635f1187041461040c576101ee565b806318160ddd116101c157806318160ddd146102c157806323b872dd146102ec5780632f745c5914610315578063339f089f14610352576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190613a9f565b61080d565b6040516102279190614366565b60405180910390f35b34801561023c57600080fd5b506102456108cc565b6040516102529190614381565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190613b6f565b61095e565b60405161028f9190614270565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190613a5f565b6109e3565b005b3480156102cd57600080fd5b506102d6610afb565b6040516102e391906147de565b60405180910390f35b3480156102f857600080fd5b50610313600480360381019061030e9190613949565b610b08565b005b34801561032157600080fd5b5061033c60048036038101906103379190613a5f565b610b68565b60405161034991906147de565b60405180910390f35b34801561035e57600080fd5b5061037960048036038101906103749190613b6f565b610c0d565b005b34801561038757600080fd5b50610390610d7e565b60405161039d91906147c3565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c89190613949565b610d92565b005b3480156103db57600080fd5b506103f660048036038101906103f19190613b6f565b610db2565b60405161040391906147de565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e9190613bdc565b610e23565b005b34801561044157600080fd5b5061045c60048036038101906104579190613b6f565b610ff6565b6040516104699190614270565b60405180910390f35b34801561047e57600080fd5b50610499600480360381019061049491906138dc565b6110a8565b6040516104a691906147de565b60405180910390f35b3480156104bb57600080fd5b506104c4611160565b005b3480156104d257600080fd5b506104ed60048036038101906104e89190613b9c565b6111e8565b6040516104fb9291906142a6565b60405180910390f35b34801561051057600080fd5b5061051961125d565b6040516105269190614270565b60405180910390f35b34801561053b57600080fd5b5061055660048036038101906105519190613af9565b611287565b005b34801561056457600080fd5b5061056d61131d565b60405161057a9190614381565b60405180910390f35b61059d60048036038101906105989190613b6f565b6113af565b005b3480156105ab57600080fd5b506105c660048036038101906105c19190613a1f565b6115bc565b005b3480156105d457600080fd5b506105ef60048036038101906105ea9190613b42565b61173d565b6040516105fd92919061431b565b60405180910390f35b34801561061257600080fd5b5061062d6004803603810190610628919061399c565b6118cb565b005b34801561063b57600080fd5b5061064461192d565b6040516106519190614381565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190613b6f565b6119bb565b60405161068e9190614381565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b99190613b6f565b6119cd565b6040516106cb9190614344565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190613b42565b611acf565b005b34801561070957600080fd5b50610724600480360381019061071f9190613b6f565b611b6b565b005b34801561073257600080fd5b5061073b611bf1565b6040516107489190614381565b60405180910390f35b34801561075d57600080fd5b5061077860048036038101906107739190613909565b611c11565b6040516107859190614366565b60405180910390f35b34801561079a57600080fd5b506107a3611ca5565b6040516107b091906147de565b60405180910390f35b3480156107c557600080fd5b506107e060048036038101906107db91906138dc565b611cab565b005b3480156107ee57600080fd5b506107f7611da3565b604051610804919061428b565b60405180910390f35b60006344c74bcc60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561086557600190506108c7565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156108bb57600190506108c7565b6108c482611dc9565b90505b919050565b6060600080546108db90614b3c565b80601f016020809104026020016040519081016040528092919081815260200182805461090790614b3c565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b600061096982611e43565b6109a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099f906145a3565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ee82610ff6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5690614623565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a7e611eaf565b73ffffffffffffffffffffffffffffffffffffffff161480610aad5750610aac81610aa7611eaf565b611c11565b5b610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae3906144c3565b60405180910390fd5b610af68383611eb7565b505050565b6000600880549050905090565b610b19610b13611eaf565b82611f70565b610b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4f90614683565b60405180910390fd5b610b6383838361204e565b505050565b6000610b73836110a8565b8210610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab906143a3565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c15611eaf565b73ffffffffffffffffffffffffffffffffffffffff16610c3361125d565b73ffffffffffffffffffffffffffffffffffffffff1614610c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c80906145c3565b60405180910390fd5b601460009054906101000a900460ff16610cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccf906146a3565b60405180910390fd5b601260009054906101000a900461ffff1661ffff16610d18601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166110a8565b1015610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d50906146c3565b60405180910390fd5b80600f819055506000601460006101000a81548160ff02191690831515021790555050565b601260009054906101000a900461ffff1681565b610dad838383604051806020016040528060008152506118cb565b505050565b6000610dbc610afb565b8210610dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df4906146e3565b60405180910390fd5b60088281548110610e1157610e10614cd5565b5b90600052602060002001549050919050565b610e2b611eaf565b73ffffffffffffffffffffffffffffffffffffffff16610e4961125d565b73ffffffffffffffffffffffffffffffffffffffff1614610e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e96906145c3565b60405180910390fd5b60328160ff161115610ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edd90614643565b60405180910390fd5b601260009054906101000a900461ffff1661ffff168160ff16610f2a601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166110a8565b610f34919061492c565b1115610f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6c90614703565b60405180910390fd5b601460009054906101000a900460ff16610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb906147a3565b60405180910390fd5b610ff38160ff16601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166122aa565b50565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561109f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109690614503565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611110906144e3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611168611eaf565b73ffffffffffffffffffffffffffffffffffffffff1661118661125d565b73ffffffffffffffffffffffffffffffffffffffff16146111dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d3906145c3565b60405180910390fd5b6111e66000612407565b565b600c602052816000526040600020818154811061120457600080fd5b90600052602060002001600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a90046bffffffffffffffffffffffff16905082565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61128f611eaf565b73ffffffffffffffffffffffffffffffffffffffff166112ad61125d565b73ffffffffffffffffffffffffffffffffffffffff1614611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fa906145c3565b60405180910390fd5b8060139080519060200190611319929190613688565b5050565b60606001805461132c90614b3c565b80601f016020809104026020016040519081016040528092919081815260200182805461135890614b3c565b80156113a55780601f1061137a576101008083540402835291602001916113a5565b820191906000526020600020905b81548152906001019060200180831161138857829003601f168201915b5050505050905090565b601460009054906101000a900460ff16156113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f690614663565b60405180910390fd5b601460179054906101000a900461ffff1661ffff168161141f600d6124cd565b611429919061492c565b111561146a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146190614723565b60405180910390fd5b611473336124db565b156114b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114aa90614423565b60405180910390fd5b600a8111156114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90614743565b60405180910390fd5b80600f5461150591906149b3565b3414611546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153d90614783565b60405180910390fd5b601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156115ae573d6000803e3d6000fd5b506115b981336122aa565b50565b6115c4611eaf565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611632576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162990614463565b60405180910390fd5b806005600061163f611eaf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116ec611eaf565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117319190614366565b60405180910390a35050565b6000806000600c60008561ffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561183b578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190611779565b5050505090506000815111156118bd578060008151811061185f5761185e614cd5565b5b6020026020010151600001516127108260008151811061188257611881614cd5565b5b6020026020010151602001516bffffffffffffffffffffffff16600f546118a991906149b3565b6118b39190614982565b92509250506118c6565b60008092509250505b915091565b6118dc6118d6611eaf565b83611f70565b61191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191290614683565b60405180910390fd5b611927848484846124ee565b50505050565b6011805461193a90614b3c565b80601f016020809104026020016040519081016040528092919081815260200182805461196690614b3c565b80156119b35780601f10611988576101008083540402835291602001916119b3565b820191906000526020600020905b81548152906001019060200180831161199657829003601f168201915b505050505081565b60606119c68261254a565b9050919050565b6060600c6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611ac4578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190611a02565b505050509050919050565b611ad7611eaf565b73ffffffffffffffffffffffffffffffffffffffff16611af561125d565b73ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b42906145c3565b60405180910390fd5b80601460156101000a81548161ffff021916908361ffff16021790555050565b611b73611eaf565b73ffffffffffffffffffffffffffffffffffffffff16611b9161125d565b73ffffffffffffffffffffffffffffffffffffffff1614611be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bde906145c3565b60405180910390fd5b80600f8190555050565b606060405180606001604052806035815260200161562460359139905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600f5481565b611cb3611eaf565b73ffffffffffffffffffffffffffffffffffffffff16611cd161125d565b73ffffffffffffffffffffffffffffffffffffffff1614611d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1e906145c3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8e906143e3565b60405180910390fd5b611da081612407565b50565b601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e3c5750611e3b8261269c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f2a83610ff6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611f7b82611e43565b611fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb190614483565b60405180910390fd5b6000611fc583610ff6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061203457508373ffffffffffffffffffffffffffffffffffffffff1661201c8461095e565b73ffffffffffffffffffffffffffffffffffffffff16145b8061204557506120448185611c11565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661206e82610ff6565b73ffffffffffffffffffffffffffffffffffffffff16146120c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bb906145e3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b90614443565b60405180910390fd5b61213f83838361277e565b61214a600082611eb7565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461219a9190614a0d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121f1919061492c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60005b828110156124025760006122c1600d6124cd565b601060009054906101000a900461ffff1661ffff166122e0919061492c565b90506122ec838261278e565b6122f581611e43565b612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232b90614543565b60405180910390fd5b61233d816127ac565b6060612348826128df565b6040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060405160200161238f92919061424c565b60405160208183030381529060405290506123aa8282612a40565b6123b4600d612ab4565b7fca423c4bd22d187877e007ac3422d5d67acd79f7f2865ae0c8c548d9885211da33836040516123e592919061431b565b60405180910390a1505080806123fa90614b9f565b9150506122ad565b505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b600080823b905060008111915050919050565b6124f984848461204e565b61250584848484612aca565b612544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253b906143c3565b60405180910390fd5b50505050565b606061255582611e43565b612594576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258b90614583565b60405180910390fd5b6000600a600084815260200190815260200160002080546125b490614b3c565b80601f01602080910402602001604051908101604052809291908181526020018280546125e090614b3c565b801561262d5780601f106126025761010080835404028352916020019161262d565b820191906000526020600020905b81548152906001019060200180831161261057829003601f168201915b50505050509050600061263e612c61565b9050600081511415612654578192505050612697565b60008251111561268957808260405160200161267192919061424c565b60405160208183030381529060405292505050612697565b61269284612cf3565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061276757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612777575061277682612d9a565b5b9050919050565b612789838383612e04565b505050565b6127a8828260405180602001604052806000815250612f18565b5050565b6000600167ffffffffffffffff8111156127c9576127c8614d04565b5b60405190808252806020026020018201604052801561280257816020015b6127ef61370e565b8152602001906001900390816127e75790505b509050601460159054906101000a900461ffff1661ffff168160008151811061282e5761282d614cd5565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061289357612892614cd5565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506128db8282612f73565b5050565b60606000821415612927576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a3b565b600082905060005b6000821461295957808061294290614b9f565b915050600a826129529190614982565b915061292f565b60008167ffffffffffffffff81111561297557612974614d04565b5b6040519080825280601f01601f1916602001820160405280156129a75781602001600182028036833780820191505090505b5090505b60008514612a34576001826129c09190614a0d565b9150600a856129cf9190614be8565b60306129db919061492c565b60f81b8183815181106129f1576129f0614cd5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a2d9190614982565b94506129ab565b8093505050505b919050565b612a4982611e43565b612a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7f90614523565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190612aaf929190613688565b505050565b6001816000016000828254019250508190555050565b6000612aeb8473ffffffffffffffffffffffffffffffffffffffff166124db565b15612c54578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b14611eaf565b8786866040518563ffffffff1660e01b8152600401612b3694939291906142cf565b602060405180830381600087803b158015612b5057600080fd5b505af1925050508015612b8157506040513d601f19601f82011682018060405250810190612b7e9190613acc565b60015b612c04573d8060008114612bb1576040519150601f19603f3d011682016040523d82523d6000602084013e612bb6565b606091505b50600081511415612bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf3906143c3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c59565b600190505b949350505050565b606060138054612c7090614b3c565b80601f0160208091040260200160405190810160405280929190818152602001828054612c9c90614b3c565b8015612ce95780601f10612cbe57610100808354040283529160200191612ce9565b820191906000526020600020905b815481529060010190602001808311612ccc57829003601f168201915b5050505050905090565b6060612cfe82611e43565b612d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3490614603565b60405180910390fd5b6000612d47612c61565b90506000815111612d675760405180602001604052806000815250612d92565b80612d71846128df565b604051602001612d8292919061424c565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612e0f838383613172565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e5257612e4d81613177565b612e91565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e9057612e8f83826131c0565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ed457612ecf8161332d565b612f13565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f1257612f1182826133fe565b5b5b505050565b612f22838361347d565b612f2f6000848484612aca565b612f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f65906143c3565b60405180910390fd5b505050565b60005b815181101561316357600073ffffffffffffffffffffffffffffffffffffffff16828281518110612faa57612fa9614cd5565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16141561300d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300490614763565b60405180910390fd5b600082828151811061302257613021614cd5565b5b6020026020010151602001516bffffffffffffffffffffffff16141561307d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613074906144a3565b60405180910390fd5b600c60008481526020019081526020016000208282815181106130a3576130a2614cd5565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050808061315b90614b9f565b915050612f76565b5061316e828261364b565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016131cd846110a8565b6131d79190614a0d565b90506000600760008481526020019081526020016000205490508181146132bc576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506133419190614a0d565b905060006009600084815260200190815260200160002054905060006008838154811061337157613370614cd5565b5b90600052602060002001549050806008838154811061339357613392614cd5565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806133e2576133e1614ca6565b5b6001900381819060005260206000200160009055905550505050565b6000613409836110a8565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e490614563565b60405180910390fd5b6134f681611e43565b15613536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352d90614403565b60405180910390fd5b6135426000838361277e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613592919061492c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df828260405161367c9291906147f9565b60405180910390a15050565b82805461369490614b3c565b90600052602060002090601f0160209004810192826136b657600085556136fd565b82601f106136cf57805160ff19168380011785556136fd565b828001600101855582156136fd579182015b828111156136fc5782518255916020019190600101906136e1565b5b50905061370a919061374c565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b5b8082111561376557600081600090555060010161374d565b5090565b600061377c6137778461484e565b614829565b90508281526020810184848401111561379857613797614d38565b5b6137a3848285614afa565b509392505050565b60006137be6137b98461487f565b614829565b9050828152602081018484840111156137da576137d9614d38565b5b6137e5848285614afa565b509392505050565b6000813590506137fc81615599565b92915050565b600081359050613811816155b0565b92915050565b600081359050613826816155c7565b92915050565b60008151905061383b816155c7565b92915050565b600082601f83011261385657613855614d33565b5b8135613866848260208601613769565b91505092915050565b600082601f83011261388457613883614d33565b5b81356138948482602086016137ab565b91505092915050565b6000813590506138ac816155de565b92915050565b6000813590506138c1816155f5565b92915050565b6000813590506138d68161560c565b92915050565b6000602082840312156138f2576138f1614d42565b5b6000613900848285016137ed565b91505092915050565b600080604083850312156139205761391f614d42565b5b600061392e858286016137ed565b925050602061393f858286016137ed565b9150509250929050565b60008060006060848603121561396257613961614d42565b5b6000613970868287016137ed565b9350506020613981868287016137ed565b9250506040613992868287016138b2565b9150509250925092565b600080600080608085870312156139b6576139b5614d42565b5b60006139c4878288016137ed565b94505060206139d5878288016137ed565b93505060406139e6878288016138b2565b925050606085013567ffffffffffffffff811115613a0757613a06614d3d565b5b613a1387828801613841565b91505092959194509250565b60008060408385031215613a3657613a35614d42565b5b6000613a44858286016137ed565b9250506020613a5585828601613802565b9150509250929050565b60008060408385031215613a7657613a75614d42565b5b6000613a84858286016137ed565b9250506020613a95858286016138b2565b9150509250929050565b600060208284031215613ab557613ab4614d42565b5b6000613ac384828501613817565b91505092915050565b600060208284031215613ae257613ae1614d42565b5b6000613af08482850161382c565b91505092915050565b600060208284031215613b0f57613b0e614d42565b5b600082013567ffffffffffffffff811115613b2d57613b2c614d3d565b5b613b398482850161386f565b91505092915050565b600060208284031215613b5857613b57614d42565b5b6000613b668482850161389d565b91505092915050565b600060208284031215613b8557613b84614d42565b5b6000613b93848285016138b2565b91505092915050565b60008060408385031215613bb357613bb2614d42565b5b6000613bc1858286016138b2565b9250506020613bd2858286016138b2565b9150509250929050565b600060208284031215613bf257613bf1614d42565b5b6000613c00848285016138c7565b91505092915050565b6000613c1583836141e1565b60408301905092915050565b613c2a81614a53565b82525050565b613c3981614a53565b82525050565b613c4881614a41565b82525050565b6000613c59826148c0565b613c6381856148ee565b9350613c6e836148b0565b8060005b83811015613c9f578151613c868882613c09565b9750613c91836148e1565b925050600181019050613c72565b5085935050505092915050565b613cb581614a65565b82525050565b6000613cc6826148cb565b613cd081856148ff565b9350613ce0818560208601614b09565b613ce981614d47565b840191505092915050565b6000613cff826148d6565b613d098185614910565b9350613d19818560208601614b09565b613d2281614d47565b840191505092915050565b6000613d38826148d6565b613d428185614921565b9350613d52818560208601614b09565b80840191505092915050565b6000613d6b602b83614910565b9150613d7682614d58565b604082019050919050565b6000613d8e603283614910565b9150613d9982614da7565b604082019050919050565b6000613db1602683614910565b9150613dbc82614df6565b604082019050919050565b6000613dd4601c83614910565b9150613ddf82614e45565b602082019050919050565b6000613df7601c83614910565b9150613e0282614e6e565b602082019050919050565b6000613e1a602483614910565b9150613e2582614e97565b604082019050919050565b6000613e3d601983614910565b9150613e4882614ee6565b602082019050919050565b6000613e60602c83614910565b9150613e6b82614f0f565b604082019050919050565b6000613e83602083614910565b9150613e8e82614f5e565b602082019050919050565b6000613ea6603883614910565b9150613eb182614f87565b604082019050919050565b6000613ec9602a83614910565b9150613ed482614fd6565b604082019050919050565b6000613eec602983614910565b9150613ef782615025565b604082019050919050565b6000613f0f602e83614910565b9150613f1a82615074565b604082019050919050565b6000613f32601583614910565b9150613f3d826150c3565b602082019050919050565b6000613f55602083614910565b9150613f60826150ec565b602082019050919050565b6000613f78603183614910565b9150613f8382615115565b604082019050919050565b6000613f9b602c83614910565b9150613fa682615164565b604082019050919050565b6000613fbe602083614910565b9150613fc9826151b3565b602082019050919050565b6000613fe1602983614910565b9150613fec826151dc565b604082019050919050565b6000614004602f83614910565b915061400f8261522b565b604082019050919050565b6000614027602183614910565b91506140328261527a565b604082019050919050565b600061404a601f83614910565b9150614055826152c9565b602082019050919050565b600061406d601183614910565b9150614078826152f2565b602082019050919050565b6000614090603183614910565b915061409b8261531b565b604082019050919050565b60006140b3601683614910565b91506140be8261536a565b602082019050919050565b60006140d6602e83614910565b91506140e182615393565b604082019050919050565b60006140f9602c83614910565b9150614104826153e2565b604082019050919050565b600061411c602883614910565b915061412782615431565b604082019050919050565b600061413f601b83614910565b915061414a82615480565b602082019050919050565b6000614162601c83614910565b915061416d826154a9565b602082019050919050565b6000614185601b83614910565b9150614190826154d2565b602082019050919050565b60006141a8602683614910565b91506141b3826154fb565b604082019050919050565b60006141cb603683614910565b91506141d68261554a565b604082019050919050565b6040820160008201516141f76000850182613c21565b50602082015161420a602085018261422e565b50505050565b61421981614a9d565b82525050565b61422881614acb565b82525050565b61423781614ae2565b82525050565b61424681614ae2565b82525050565b60006142588285613d2d565b91506142648284613d2d565b91508190509392505050565b60006020820190506142856000830184613c3f565b92915050565b60006020820190506142a06000830184613c30565b92915050565b60006040820190506142bb6000830185613c30565b6142c8602083018461423d565b9392505050565b60006080820190506142e46000830187613c3f565b6142f16020830186613c3f565b6142fe604083018561421f565b81810360608301526143108184613cbb565b905095945050505050565b60006040820190506143306000830185613c3f565b61433d602083018461421f565b9392505050565b6000602082019050818103600083015261435e8184613c4e565b905092915050565b600060208201905061437b6000830184613cac565b92915050565b6000602082019050818103600083015261439b8184613cf4565b905092915050565b600060208201905081810360008301526143bc81613d5e565b9050919050565b600060208201905081810360008301526143dc81613d81565b9050919050565b600060208201905081810360008301526143fc81613da4565b9050919050565b6000602082019050818103600083015261441c81613dc7565b9050919050565b6000602082019050818103600083015261443c81613dea565b9050919050565b6000602082019050818103600083015261445c81613e0d565b9050919050565b6000602082019050818103600083015261447c81613e30565b9050919050565b6000602082019050818103600083015261449c81613e53565b9050919050565b600060208201905081810360008301526144bc81613e76565b9050919050565b600060208201905081810360008301526144dc81613e99565b9050919050565b600060208201905081810360008301526144fc81613ebc565b9050919050565b6000602082019050818103600083015261451c81613edf565b9050919050565b6000602082019050818103600083015261453c81613f02565b9050919050565b6000602082019050818103600083015261455c81613f25565b9050919050565b6000602082019050818103600083015261457c81613f48565b9050919050565b6000602082019050818103600083015261459c81613f6b565b9050919050565b600060208201905081810360008301526145bc81613f8e565b9050919050565b600060208201905081810360008301526145dc81613fb1565b9050919050565b600060208201905081810360008301526145fc81613fd4565b9050919050565b6000602082019050818103600083015261461c81613ff7565b9050919050565b6000602082019050818103600083015261463c8161401a565b9050919050565b6000602082019050818103600083015261465c8161403d565b9050919050565b6000602082019050818103600083015261467c81614060565b9050919050565b6000602082019050818103600083015261469c81614083565b9050919050565b600060208201905081810360008301526146bc816140a6565b9050919050565b600060208201905081810360008301526146dc816140c9565b9050919050565b600060208201905081810360008301526146fc816140ec565b9050919050565b6000602082019050818103600083015261471c8161410f565b9050919050565b6000602082019050818103600083015261473c81614132565b9050919050565b6000602082019050818103600083015261475c81614155565b9050919050565b6000602082019050818103600083015261477c81614178565b9050919050565b6000602082019050818103600083015261479c8161419b565b9050919050565b600060208201905081810360008301526147bc816141be565b9050919050565b60006020820190506147d86000830184614210565b92915050565b60006020820190506147f3600083018461421f565b92915050565b600060408201905061480e600083018561421f565b81810360208301526148208184613c4e565b90509392505050565b6000614833614844565b905061483f8282614b6e565b919050565b6000604051905090565b600067ffffffffffffffff82111561486957614868614d04565b5b61487282614d47565b9050602081019050919050565b600067ffffffffffffffff82111561489a57614899614d04565b5b6148a382614d47565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061493782614acb565b915061494283614acb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561497757614976614c19565b5b828201905092915050565b600061498d82614acb565b915061499883614acb565b9250826149a8576149a7614c48565b5b828204905092915050565b60006149be82614acb565b91506149c983614acb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a0257614a01614c19565b5b828202905092915050565b6000614a1882614acb565b9150614a2383614acb565b925082821015614a3657614a35614c19565b5b828203905092915050565b6000614a4c82614aab565b9050919050565b6000614a5e82614aab565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015614b27578082015181840152602081019050614b0c565b83811115614b36576000848401525b50505050565b60006002820490506001821680614b5457607f821691505b60208210811415614b6857614b67614c77565b5b50919050565b614b7782614d47565b810181811067ffffffffffffffff82111715614b9657614b95614d04565b5b80604052505050565b6000614baa82614acb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bdd57614bdc614c19565b5b600182019050919050565b6000614bf382614acb565b9150614bfe83614acb565b925082614c0e57614c0d614c48565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f616464726573732063616e6e6f74206265206120636f6e747261637400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f526f79616c74792076616c75652073686f756c6420626520706f736974697665600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f6d696e74696e6720746865204944206661696c65640000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f6d6f7265207468616e20616c6c6f776564206d617820617420612074696d6500600082015250565b7f6d696e74696e6720697320706175736564000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f6d696e742068617320616c726561647920626567756e00000000000000000000600082015250565b7f63616e6e6f74206d696e7420756e74696c20616c6c20746f6b656e732068617660008201527f65206265656e20636c61696d6564000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f74686520636f6e7472616374207472656173757265722063616e6e6f7420636c60008201527f61696d206d6f7265000000000000000000000000000000000000000000000000602082015250565b7f616c6c20746f6b656e732068617665206265656e206d696e7465640000000000600082015250565b7f596f752063616e206d696e742061206d6178696d756d206f6620313000000000600082015250565b7f526563697069656e742073686f756c642062652070726573656e740000000000600082015250565b7f45746865722073656e74206973206e6f7420657175616c20746f20505249434560008201527f202a206e756d0000000000000000000000000000000000000000000000000000602082015250565b7f746869732063616e206f6e6c7920626520646f6e65206265666f7265206d696e60008201527f74696e67206973206f70656e20746f207075626c696300000000000000000000602082015250565b6155a281614a41565b81146155ad57600080fd5b50565b6155b981614a65565b81146155c457600080fd5b50565b6155d081614a71565b81146155db57600080fd5b50565b6155e781614a9d565b81146155f257600080fd5b50565b6155fe81614acb565b811461560957600080fd5b50565b61561581614ad5565b811461562057600080fd5b5056fe697066733a2f2f516d56694831574e533774577156634a436d693274704547736a765a72336676444353336267545637624b61726ea2646970667358221220fbecb45198785e38048ac7fadf627274f3c4124e59c023dcbb780776f9fcd6ad64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000dfc4a30c67e0cea073998cf873c1968ac8d739d000000000000000000000000000000000000000000000000000000000000050700000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000022b800000000000000000000000000000000000000000000000000000000000000094645454c20474f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084645454c474f4f44000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004034373463343863346531663431616662346534393537333135303135383538393662633764393236343932333264316237623362643266396163613530336166

-----Decoded View---------------
Arg [0] : name (string): FEEL GOOD
Arg [1] : symbol (string): FEELGOOD
Arg [2] : _provenanceHash (string): 474c48c4e1f41afb4e495731501585896bc7d92649232d1b7b3bd2f9aca503af
Arg [3] : _treasurer (address): 0x0DFc4A30c67e0Cea073998Cf873c1968ac8d739D
Arg [4] : _initialId (uint16): 1287
Arg [5] : _treasurersTokens (uint16): 200
Arg [6] : _maxAvailableTokens (uint16): 8888

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000dfc4a30c67e0cea073998cf873c1968ac8d739d
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000507
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [6] : 00000000000000000000000000000000000000000000000000000000000022b8
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 4645454c20474f4f440000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [10] : 4645454c474f4f44000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [12] : 3437346334386334653166343161666234653439353733313530313538353839
Arg [13] : 3662633764393236343932333264316237623362643266396163613530336166


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.