ETH Price: $3,419.43 (-0.61%)
Gas: 3 Gwei

Token

NFTBox ([BOX])
 

Overview

Max Total Supply

0 [BOX]

Holders

151

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
donkey.kongz.eth
Balance
1 [BOX]
0x40f27673D71F8BC62ad2A2Fa1Aa55fbbC042FEE9
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

NFTBoxes is a curated series of boxes of NFTs.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NFTBoxesBox

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 19 : NFTBoxes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "ERC721.sol";
import "ERC2981.sol";
import "IVendingMachine.sol";
import "Ownable.sol";	
import "SubscriptionService.sol";
import "BoxJsonParser.sol";


contract NFTBoxesBox is ERC721("NFTBox", "[BOX]"), Ownable, ERC2981, BoxJsonParser {
    
	struct BoxMould{
		uint8				live; // bool
		uint8				shared; // bool
		uint128				maxEdition;
		uint128				maxBuyAmount;
		uint128				currentEditionCount;
		uint256				price;
		address payable[]	artists;
		uint256[]			shares;
		string				name;
		string				series;
		string				theme;
		string				ipfsHash;
		string				arweaveHash;
	}

	struct Box {
		uint256				mouldId;
		uint256				edition;
	}

	uint256 totalSupply;
	IVendingMachine public	vendingMachine;
	SubscriptionService public subService;
	uint256 public			boxMouldCount;

	uint256 constant public TOTAL_SHARES = 1000;

	mapping(uint256 => BoxMould) public	boxMoulds;
	mapping(uint256 =>  Box) public	boxes;
	mapping(uint256 => bool) public lockedBoxes;
	mapping(uint256 => mapping(address => uint256)) boxBoughtMapping;
	mapping(uint256 => uint256) subDistroTracker;

	mapping(address => uint256) public teamShare;
	address payable[] public team;


	mapping(address => bool) public authorisedCaller;

	event BoxMouldCreated(uint256 id);
	event BoxBought(uint256 indexed boxMould, uint256 boxEdition, uint256 tokenId);
	event BatchDeployed(uint256 indexed boxMould, uint256 batchSize);

	constructor(address _service) {
		team.push(payable(0x3428B1746Dfd26C7C725913D829BE2706AA89B2e));
		team.push(payable(0x4C7BEdfA26C744e6bd61CBdF86F3fc4a76DCa073));
		team.push(payable(0x00000000002bF160523a704a019a0C0E63a41B66));
		team.push(payable(0x8C26a91205e531E8B35Cf3315f384727B9681D75));

		teamShare[address(0x3428B1746Dfd26C7C725913D829BE2706AA89B2e)] = 600;
        teamShare[address(0x4C7BEdfA26C744e6bd61CBdF86F3fc4a76DCa073)] = 10;
        teamShare[address(0x00000000002bF160523a704a019a0C0E63a41B66)] = 90;
		teamShare[address(0x8C26a91205e531E8B35Cf3315f384727B9681D75)] = 30;
		vendingMachine = IVendingMachine(0x6d4530149e5B4483d2F7E60449C02570531A0751);
		subService = SubscriptionService(_service);
	}


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

	function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external onlyOwner {
		_setDefaultRoyalty(_receiver, _feeNumerator);
	} 

	modifier authorised() {
		require(authorisedCaller[msg.sender] || msg.sender == owner(), "Not authorised to execute.");
		_;
	}

	function setSubService(address _newSub) external onlyOwner {
		subService = SubscriptionService(_newSub);
	}

	function setCaller(address _caller, bool _value) external onlyOwner {
		authorisedCaller[_caller] = _value;
	}

	function addTeamMember(address payable _member) external onlyOwner {
		for (uint256 i = 0; i < team.length; i++)
			require( _member != team[i], "members exists already");
		team.push(_member);
	}

	function removeTeamMember(address payable _member) external onlyOwner {
		for (uint256 i = 0; i < team.length; i++)
			if (team[i] == _member) {
				delete teamShare[_member];
				team[i] = team[team.length - 1];
				team.pop();
			}
	}

	function setTeamShare(address _member, uint _share) external onlyOwner {
		require(_share <= TOTAL_SHARES, "share must be below 1000");
		for (uint256 i = 0; i < team.length; i++)
			if (team[i] == _member)
				teamShare[_member] = _share;
	}

	function setLockOnBox(uint256 _id, bool _lock) external authorised {
		require(_id <= boxMouldCount && _id > 0, "ID !exist.");
		lockedBoxes[_id] = _lock;
	}

	function createBoxMould(
		uint128 _max,
		uint128 _maxBuyAmount,
		uint256 _price,
		address payable[] memory _artists,
		uint256[] memory _shares,
		string memory _name,
		string memory _series,
		string memory _theme,
		string memory _ipfsHash,
		string memory _arweaveHash)
		external
		onlyOwner {
		require(_artists.length == _shares.length, "arrays !same len");
		boxMoulds[boxMouldCount + 1] = BoxMould({
			live: uint8(0),
			shared: uint8(0),
			maxEdition: _max,
			maxBuyAmount: _maxBuyAmount,
			currentEditionCount: 0,
			price: _price,
			artists: _artists,
			shares: _shares,
			name: _name,
			series: _series,
			theme: _theme,
			ipfsHash: _ipfsHash,
			arweaveHash: _arweaveHash
		});
		boxMouldCount++;
		lockedBoxes[boxMouldCount] = true;
		emit BoxMouldCreated(boxMouldCount);
	}

	function removeArtist(uint256 _id, address payable _artist) external onlyOwner {
		BoxMould storage boxMould = boxMoulds[_id];
		require(_id <= boxMouldCount && _id > 0, "ID !exist");
		for (uint256 i = 0; i < boxMould.artists.length; i++) {
			if (boxMould.artists[i] == _artist) {
				boxMould.artists[i] = boxMould.artists[boxMould.artists.length - 1];
				boxMould.artists.pop();
				boxMould.shares[i] = boxMould.shares[boxMould.shares.length - 1];
				boxMould.shares.pop();
			}
		}
	}
	
	function addArtists(uint256 _id, address payable _artist, uint256 _share) external onlyOwner {
		BoxMould storage boxMould = boxMoulds[_id];
		require(_id <= boxMouldCount && _id > 0, "ID !exist");
		boxMould.artists.push(_artist);
		boxMould.shares.push(_share);
	}

	function distributeBoxToSubHolders(uint256 _id) external onlyOwner {
		require(_id <= boxMouldCount && _id > 0, "ID !exist");
		uint256 trackerId = subDistroTracker[_id]++;
		require(trackerId < 10, "Distro done");

		BoxMould storage boxMould = boxMoulds[_id];
		uint128 currentEdition = boxMould.currentEditionCount;
		address[] memory subHolders = subService.fetchValidHolders(trackerId * 50, 50);
		uint256 mintTracker;
		uint256 _totalSupply = totalSupply;
		for (uint256 i = 0; i < 50; i++) {
			address holder = subHolders[i];
			if (holder != address(0)) {
				_buy(currentEdition, _id, mintTracker, holder, _totalSupply + mintTracker + 1);
				mintTracker++;
			}
		}
		totalSupply += mintTracker;
		boxMould.currentEditionCount += uint128(mintTracker);
		if (currentEdition + mintTracker == boxMould.maxEdition)
			boxMould.live = uint8(1);
		if (trackerId == 9)
			subService.pushNewBox();
	}

	function buyManyBoxes(uint256 _id, uint128 _quantity) external payable {
		BoxMould storage boxMould = boxMoulds[_id];
		uint128 currentEdition = boxMould.currentEditionCount;
		uint128 max = boxMould.maxEdition;
		require(_id <= boxMouldCount && _id > 0, "ID !exist");
		require(boxMould.live == 0, "!live");
		require(!lockedBoxes[_id], "locked");
		require(boxMould.price * _quantity == msg.value, "!price");
		require(currentEdition + _quantity <= max, "Too many boxes");
		require(boxBoughtMapping[_id][msg.sender] + _quantity <= boxMould.maxBuyAmount, "!buy");

		uint256 _totalSupply = totalSupply;
		for (uint128 i = 0; i < _quantity; i++)
			_buy(currentEdition, _id, i, msg.sender, _totalSupply + i + 1);
		totalSupply += _quantity;
		boxMould.currentEditionCount += _quantity;
		boxBoughtMapping[_id][msg.sender] = boxBoughtMapping[_id][msg.sender] + _quantity;
		if (currentEdition + _quantity == max)
			boxMould.live = uint8(1);
	}

	function _buy(uint128 _currentEdition, uint256 _id, uint256 _new, address _recipient, uint256 _tokenId) internal {
		boxes[_tokenId] = Box(_id, _currentEdition + _new + 1);
		//safe mint?
		emit BoxBought(_id, _currentEdition + _new + 1, _tokenId);
		_mint(_recipient, _tokenId);
	}

	// close a sale if not sold out
	function closeBox(uint256 _id) external authorised {
		BoxMould storage boxMould = boxMoulds[_id];
		require(_id <= boxMouldCount && _id > 0, "ID !exist.");
		boxMould.live = uint8(1);
	}

	function setVendingMachine(address _machine) external onlyOwner {
		vendingMachine = IVendingMachine(_machine);
	}

	function distributeOffchain(uint256 _id, address[][] calldata _recipients, uint256[] calldata _ids) external authorised {
		BoxMould memory boxMould= boxMoulds[_id];
		require(boxMould.live == 1, "live");
		require (_recipients[0].length == _ids.length, "bad array");

		// i is batch number
		for (uint256 i = 0; i < _recipients.length; i++) {
			// j is for the index of nft ID to send
			for (uint256 j = 0;j <  _recipients[0].length; j++)
				vendingMachine.NFTMachineFor(_ids[j], _recipients[i][j]);
		}
		emit BatchDeployed(_id, _recipients.length);
	}

	function distributeShares(uint256 _id) external {
		BoxMould storage boxMould= boxMoulds[_id];
		require(_id <= boxMouldCount && _id > 0, "ID !exist.");
		require(boxMould.live == 1 && boxMould.shared == 0,  "!distribute");
		require(is100(_id), "sum != 100%.");

		boxMould.shared = 1;
		uint256 rev = uint256(boxMould.currentEditionCount) * boxMould.price;
		uint256 share;
		for (uint256 i = 0; i < team.length; i++) {
			share = rev * teamShare[team[i]] / TOTAL_SHARES;
			team[i].transfer(share);
		}
		for (uint256 i = 0; i < boxMould.artists.length; i++) {
			share = rev * boxMould.shares[i] / TOTAL_SHARES;
			boxMould.artists[i].transfer(share);
		}
	}

	function is100(uint256 _id) internal returns(bool) {
		BoxMould storage boxMould= boxMoulds[_id];
		uint256 total;
		for (uint256 i = 0; i < team.length; i++) {
			total = total + teamShare[team[i]];
		}
		for (uint256 i = 0; i < boxMould.shares.length; i++) {
			total = total + boxMould.shares[i];
		}
		return total == TOTAL_SHARES;
	}

	function getArtist(uint256 _id) external view returns (address payable[] memory) {
		return boxMoulds[_id].artists;
	}

	function getArtistShares(uint256 _id) external view returns (uint256[] memory) {
		return boxMoulds[_id].shares;
	}

    function getBoxMetaData(uint256 _id) external view returns 
    (uint256 boxId, uint256 boxEdition, uint128 boxMax, string memory boxName, string memory boxSeries, string memory boxTheme, string memory boxHashIPFS, string memory boxHashArweave) {
        Box memory box = boxes[_id];
        BoxMould memory mould = boxMoulds[box.mouldId];
        return (box.mouldId, box.edition, mould.maxEdition, mould.name, mould.series, mould.theme, mould.ipfsHash, mould.arweaveHash);
    }

	function _transfer(address from, address to, uint256 tokenId) internal override {
		Box memory box = boxes[tokenId];
		require(!lockedBoxes[box.mouldId], "Box is locked");
		super._transfer(from, to, tokenId);
	}

	function tokenURI(uint256 _tokenId) public view override returns(string memory) {
		Box memory box = boxes[_tokenId];
		require(box.mouldId > 0);
		BoxMould memory mould = boxMoulds[box.mouldId];
		return string(
			abi.encodePacked(
				generateTokenUriPart1(box.edition, mould.series, mould.name, mould.theme),
				generateTokenUriPart2(box.mouldId, box.edition, mould.maxEdition, mould.series, mould.ipfsHash, mould.theme)
			)
		);
	}

	// function tokenURITest(uint256 _tokenId) public view returns(string memory) {

	// 	return string(
	// 		abi.encodePacked(
	// 			generateTokenUriPart1(66, "Main", "December 2021", "Finale"),
	// 			generateTokenUriPart2(12, 66, 132, "Main", "QmefbyT1uqjDaHsLzVMmwicjHVAXQjzfkeCXjfBwUA8om2", "Finale")
	// 		)
	// 	);
	// }
}

File 2 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "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 internal _name;

    // Token symbol
    string internal _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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 4 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

import "IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 7 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 8 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 9 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 19 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "IERC2981.sol";
import "ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 12 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 13 of 19 : IVendingMachine.sol
pragma solidity ^0.8.2;

interface IVendingMachine {

	function NFTMachineFor(uint256 NFTId, address _recipient) external;
}

File 14 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "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 internal _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 15 of 19 : SubscriptionService.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

import "ERC721Enumerable.sol";
import "Ownable.sol";
import "SubJsonParser.sol";

contract SubscriptionService is ERC721Enumerable, Ownable, SubJsonParser {

	struct SubData {
		uint32 tier;
		uint32 start;
		uint32 length;
	}

	uint256 public constant MAX = 500;
	uint256 public maxSupply = 300;
	bool public paused;
	uint32 public counter;

	uint256[3] public subPrice;
	uint256 buyCounter;

	mapping(uint256 => uint256) expiredStack;
	uint256 expiredCounter;
	mapping(uint256 => SubData) public subData;
	mapping(address => bool) public authorisedCaller;

	bool public initiated;

	event SubBought(address indexed buyer, uint256 indexed tokenId, uint32 tier, uint256 value);

	constructor(string memory _name, string memory _symbol)  ERC721(_name, _symbol) {}

	function init (string memory __name, string memory __symbol) external {
		require(!initiated);
		initiated = true;
		paused = true;
		subPrice[0] = 1_950_000_000_000_000_000;
		subPrice[1] = 3_705_000_000_000_000_000;
		subPrice[2] = 5_265_000_000_000_000_000;

		counter = 1;
		_name = __name;
		_symbol = __symbol;
		_owner = msg.sender;
	}

	modifier notPaused() {
		require(!paused, "Paused");
		_;
	}

	modifier authorised() {
		require(authorisedCaller[msg.sender], "Not authorised to execute.");
		_;
	}

	function setCaller(address _caller, bool _value) external onlyOwner {
		authorisedCaller[_caller] = _value;
	}

	function fetchEth() external onlyOwner {
		payable(owner()).transfer(address(this).balance);
	}

	function pause() external onlyOwner {
		paused = true;
	}

	function unpause() external onlyOwner {
		paused = false;
	}

	function pushNewBox() external authorised {
		counter++;
	}

	function setPrice(uint256 _index, uint256 _price) external onlyOwner {
		subPrice[_index] = _price;
	}

	function setMaxSupply(uint256 _max) external onlyOwner {
		require(_max <= MAX);
		maxSupply = _max;
	}

	function refundSub(uint256 _tokenId) external onlyOwner {
		require(!isExpired(_tokenId), "Expired");
		SubData memory data = subData[_tokenId];
		expiredStack[expiredCounter++] = _tokenId;
		delete subData[_tokenId];
		_burn(_tokenId);
	}

	function expireSub(uint256 _tokenId) external {
		require(isExpired(_tokenId), "Not expired");
		expiredStack[expiredCounter++] = _tokenId;
		delete subData[_tokenId];
		_burn(_tokenId);
	}

	function buySub(uint8 _tier) external payable {
		buySub(_tier, msg.sender);
	}

	function buySubOwner(uint8 _tier, address _for) public payable onlyOwner {
		require(_tier == 0 || _tier == 1 || _tier == 2, "Sub: Wrong sub model");
		require(totalSupply() < maxSupply, "No more subs of that tier to buy");
		require(msg.value == subPrice[_tier], "!price");

		if (buyCounter < MAX) {
			subData[++buyCounter] = SubData(_tier, counter, _getLength(_tier));
			_mint(_for, buyCounter);
			emit SubBought(_for, buyCounter, _tier, msg.value);
		}
		else {
			require(expiredCounter > 0, "No subs available, try next month");
			uint256 id = expiredStack[--expiredCounter];
			subData[id] = SubData(_tier, counter, _getLength(_tier));
			_mint(_for, id);
			emit SubBought(_for, id, _tier, msg.value);
		}
	}

	function buySub(uint8 _tier, address _for) public payable notPaused {
		require(_tier == 0 || _tier == 1 || _tier == 2, "Sub: Wrong sub model");
		require(totalSupply() < maxSupply, "No more subs of that tier to buy");
		require(msg.value == subPrice[_tier], "!price");

		if (buyCounter < MAX) {
			subData[++buyCounter] = SubData(_tier, counter, _getLength(_tier));
			_mint(_for, buyCounter);
			emit SubBought(_for, buyCounter, _tier, msg.value);
		}
		else {
			require(expiredCounter > 0, "No subs available, try next month");
			uint256 id = expiredStack[--expiredCounter];
			subData[id] = SubData(_tier, counter, _getLength(_tier));
			_mint(_for, id);
			emit SubBought(_for, id, _tier, msg.value);
		}
	}

	function isExpired(uint256 _tokenId) public view returns(bool) {
		SubData memory data = subData[_tokenId];
		return data.start + data.length <= counter;
	}

	function _getType(uint32 _length) internal pure returns(uint256) {
		if (_length == 3)
			return 0;
		else if (_length == 6)
			return 1;
		if (_length == 9)
			return 2;
		return 0;
	}

	function _getLength(uint8 _type) internal pure returns(uint32) {
		if (_type == uint8(0))
			return uint32(3);
		else if (_type == uint8(1))
			return uint32(6);
		if (_type == uint8(2))
			return uint32(9);
		return 0;
	}

	function fetchValidHolders(uint256 _start, uint256 _len) external view returns(address[] memory holders) {
		holders = new address[](_len);
		for (uint256 i = _start; i < _start + _len; i++) {
			if (_exists(i)) {
				address owner = ownerOf(i);
				if (!isExpired(i))
					holders[i - _start] = ownerOf(i);
			}
		}
	}

	function returnSubDataOfHolder(address _holder) external view returns(SubData[] memory data) {
		uint256 amount = balanceOf(_holder);
		data = new SubData[](amount);
		for (uint256 i = 0; i < amount; i++) {
			data[i] = subData[tokenOfOwnerByIndex(_holder, i)];
		}
	}

	function hasUserSub(address _holder, uint256 _tierId) external view returns(bool) {
		uint256 amount = balanceOf(_holder);
		for (uint256 i = 0; i < amount; i++) {
			uint256 tokenId = tokenOfOwnerByIndex(_holder, i);
			SubData memory data = subData[tokenId];
			if (data.tier == _tierId && !isExpired(tokenId))
				return true;
		}
		return false;
	}

	function _transfer(address from, address to, uint256 tokenId) internal override notPaused {
		super._transfer(from, to, tokenId);
	}


	function tokenURI(uint256 _tokenId) public view override returns(string memory) {
		SubData memory data = subData[_tokenId];
		require(_exists(_tokenId));
		return string(
			abi.encodePacked(
				generateTokenUriPart1(_tokenId, uint256(data.tier)),
				generateTokenUriPart2(_getLength(uint8(data.tier)), counter, data.start, data.length)
			)
		);
	}
}

File 16 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

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 17 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @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 18 of 19 : SubJsonParser.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

contract SubJsonParser {

	function generateTokenUriPart1(uint256 _tokenId, uint256 _tier) public pure returns(string memory) {
		return string(
			abi.encodePacked(
				bytes('data:application/json;utf8,{"name":"'),
				_getName(_tokenId, _tier),
				bytes('","description":"'),
				"NFTBox subscription that guarantees the reception of a monthly box until it expires.",
				bytes('","external_url":"'),
				_getExternalUrl()
			)
		);
	}

	function generateTokenUriPart2(uint256 _tier, uint256 _counter, uint256 _start, uint256 _length) public pure returns(string memory) {
		return string(
			abi.encodePacked(
				bytes('","attributes":['),
				_tierSub(_tier),
				_expiry(_counter - _start + _length),
				bytes(',"image":"'),
				_getImageCache(_tier),
				bytes('"}')
			)
		);
	}

	function _getImageCache(uint256 _tier) internal pure returns(string memory) {
		if (_tier == 3)
			return string(abi.encodePacked("https://ipfs.io/ipfs/QmV3GaTzqLvGSRTAuiLQGsBUDDx4Dr7G7gxqtR8eRhudLL"));
		if (_tier == 6)
			return string(abi.encodePacked("https://ipfs.io/ipfs/QmZBtFNpbrstaKwSDzsB3uFGMeN7b5VjT93Udab2EbB2tQ"));
		if (_tier == 9)
			return string(abi.encodePacked("https://ipfs.io/ipfs/QmPCv1DEWH6pTXXVVdR3nqcavT1bzNRY5QoyR6KEzVjUkb"));
		return string(abi.encodePacked(""));
	}

	function _getName(uint256 _tokenId, uint256 _tier) internal pure returns(string memory) {
		return string(abi.encodePacked("NFTBox ", _tierName(_tier), " Subscription"));
	}

	function _tierSub(uint256 _tier) internal pure returns(string memory) {
		return string(abi.encodePacked(bytes('{"trait_type": "Tier","value":"'), _tierName(_tier), bytes('"},')));
	}

	function _tierName(uint256 _tier) internal pure returns(string memory) {
		if (_tier == 0)
			return string(abi.encodePacked("Bronze"));
		if (_tier == 1)
			return string(abi.encodePacked("Silver"));
		if (_tier == 2)
			return string(abi.encodePacked("Gold"));
		if (_tier == 3)
			return string(abi.encodePacked("Bronze"));
		if (_tier == 6)
			return string(abi.encodePacked("Silver"));
		if (_tier == 9)
			return string(abi.encodePacked("Gold"));
	}

	function _expiry(uint256 _expirationCount) internal pure returns(string memory) {
		return string(abi.encodePacked(bytes('{"trait_type": "Boxes left","value":"'), _uint2str(_expirationCount), bytes('"}]')));
	}

	function _getImageCache(string memory _hash) internal pure returns(string memory) {
		return string(abi.encodePacked("https://ipfs.io/ipfs/", _hash));
	}

	function _getExternalUrl() internal pure returns(string memory) {
		return string(abi.encodePacked("https://www.nftboxes.io/"));
	}

	function _uint2str(uint _i) internal pure returns (string memory _uintAsString) {
		if (_i == 0) {
			return "0";
		}
		uint j = _i;
		uint len;
		while (j != 0) {
			len++;
			j /= 10;
		}
		bytes memory bstr = new bytes(len);
		uint k = len;
		while (_i != 0) {
			k = k-1;
			uint8 temp = (48 + uint8(_i - _i / 10 * 10));
			bytes1 b1 = bytes1(temp);
			bstr[k] = b1;
			_i /= 10;
		}
		return string(bstr);
	}
}

File 19 of 19 : BoxJsonParser.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;

contract BoxJsonParser {

	function generateTokenUriPart1(uint256 _tokenId, string memory _series, string memory _name, string memory _theme) public pure returns(string memory) {
		return string(
			abi.encodePacked(
				bytes('data:application/json;utf8,{"name":"'),
				_getName(_name, _tokenId),
				bytes('","description":"'),
				"NFTBoxes are a curated monthly box of NFTs on the newest gold standard of NFT technology."
			)
		);
	}

	function generateTokenUriPart2(uint256 _boxId, uint256 _tokenId, uint256 _max, string memory _series, string memory _hash, string memory _theme) public pure returns(string memory) {
		return string(
			abi.encodePacked(
				bytes('","attributes":['),
				_traitBoxId(_boxId),
				_traitBoxSeries(_series),
				_traitBoxTheme(_theme),
				_traitBoxEdition(_tokenId, _max),
				bytes(',"image":"'),
				_getImageCache(_hash),bytes('"}')
			)
		);
	}

	function _traitBoxId(uint256 _boxId) internal pure returns(string memory) {
		return string(abi.encodePacked(bytes('{"trait_type": "box id","value":"'), _uint2str(_boxId), bytes('"},')));
	}

	function _traitBoxSeries(string memory _series) internal pure returns(string memory) {
		return string(abi.encodePacked(bytes('{"trait_type": "box series","value":"'), _series, bytes('"},')));
	}

	function _traitBoxTheme(string memory _theme) internal pure returns(string memory) {
		return string(abi.encodePacked(bytes('{"trait_type": "box theme","value":"'), _theme, bytes('"},')));
	}

	function _traitBoxEdition(uint256 _tokenId, uint256 _maxEdition) internal pure returns(string memory) {
		return string(abi.encodePacked(bytes('{"trait_type": "box edition","value":"'), _uint2str(_tokenId), bytes(' of '), _uint2str(_maxEdition), bytes('"}]')));
	}

	function _getName(string memory _name, uint256 _tokenId) internal pure returns(string memory) {
		return string(abi.encodePacked(_name, " #", _uint2str(_tokenId)));
	}

	function _getImageCache(string memory _hash) internal pure returns(string memory) {
		return string(abi.encodePacked("https://ipfs.io/ipfs/", _hash));
	}

	function _uint2str(uint _i) internal pure returns (string memory _uintAsString) {
		if (_i == 0) {
			return "0";
		}
		uint j = _i;
		uint len;
		while (j != 0) {
			len++;
			j /= 10;
		}
		bytes memory bstr = new bytes(len);
		uint k = len;
		while (_i != 0) {
			k = k-1;
			uint8 temp = (48 + uint8(_i - _i / 10 * 10));
			bytes1 b1 = bytes1(temp);
			bstr[k] = b1;
			_i /= 10;
		}
		return string(bstr);
	}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_service","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"boxMould","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"batchSize","type":"uint256"}],"name":"BatchDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"boxMould","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boxEdition","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BoxBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"BoxMouldCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOTAL_SHARES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address payable","name":"_artist","type":"address"},{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"addArtists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_member","type":"address"}],"name":"addTeamMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorisedCaller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boxMouldCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"boxMoulds","outputs":[{"internalType":"uint8","name":"live","type":"uint8"},{"internalType":"uint8","name":"shared","type":"uint8"},{"internalType":"uint128","name":"maxEdition","type":"uint128"},{"internalType":"uint128","name":"maxBuyAmount","type":"uint128"},{"internalType":"uint128","name":"currentEditionCount","type":"uint128"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"series","type":"string"},{"internalType":"string","name":"theme","type":"string"},{"internalType":"string","name":"ipfsHash","type":"string"},{"internalType":"string","name":"arweaveHash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"boxes","outputs":[{"internalType":"uint256","name":"mouldId","type":"uint256"},{"internalType":"uint256","name":"edition","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint128","name":"_quantity","type":"uint128"}],"name":"buyManyBoxes","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"closeBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_max","type":"uint128"},{"internalType":"uint128","name":"_maxBuyAmount","type":"uint128"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address payable[]","name":"_artists","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_series","type":"string"},{"internalType":"string","name":"_theme","type":"string"},{"internalType":"string","name":"_ipfsHash","type":"string"},{"internalType":"string","name":"_arweaveHash","type":"string"}],"name":"createBoxMould","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"distributeBoxToSubHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address[][]","name":"_recipients","type":"address[][]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"distributeOffchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"distributeShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_series","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_theme","type":"string"}],"name":"generateTokenUriPart1","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boxId","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"},{"internalType":"string","name":"_series","type":"string"},{"internalType":"string","name":"_hash","type":"string"},{"internalType":"string","name":"_theme","type":"string"}],"name":"generateTokenUriPart2","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"getArtist","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getArtistShares","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getBoxMetaData","outputs":[{"internalType":"uint256","name":"boxId","type":"uint256"},{"internalType":"uint256","name":"boxEdition","type":"uint256"},{"internalType":"uint128","name":"boxMax","type":"uint128"},{"internalType":"string","name":"boxName","type":"string"},{"internalType":"string","name":"boxSeries","type":"string"},{"internalType":"string","name":"boxTheme","type":"string"},{"internalType":"string","name":"boxHashIPFS","type":"string"},{"internalType":"string","name":"boxHashArweave","type":"string"}],"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":"","type":"uint256"}],"name":"lockedBoxes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address payable","name":"_artist","type":"address"}],"name":"removeArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_member","type":"address"}],"name":"removeTeamMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"setLockOnBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSub","type":"address"}],"name":"setSubService","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_member","type":"address"},{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"setTeamShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_machine","type":"address"}],"name":"setVendingMachine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"subService","outputs":[{"internalType":"contract SubscriptionService","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"team","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"teamShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"vendingMachine","outputs":[{"internalType":"contract IVendingMachine","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162005c8838038062005c8883398101604081905262000034916200034b565b604080518082018252600681526509c8ca884def60d31b6020808301918252835180850190945260058452645b424f585d60d81b9084015281519192916200007f91600091620002a5565b50805162000095906001906020840190620002a5565b505050620000b2620000ac6200024f60201b60201c565b62000253565b60138054600181810183557f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09091820180546001600160a01b0319908116733428b1746dfd26c7c725913d829be2706aa89b2e1790915583548083018555830180548216734c7bedfa26c744e6bd61cbdf86f3fc4a76dca073179055835480830185558301805482166e2bf160523a704a019a0c0e63a41b6617905583549182019093550180548216738c26a91205e531e8b35cf3315f384727b9681d7590811790915560126020526102587f2a5556231608a05ac97b64345c5a2e21baac02555c887d2dd75327b0c18cac0455600a7f4b42c0dc43e7e2cec57c7e4866bff09faaba5ef9b3bf565d2d418946c71fc3b2819055605a7f9d098e4c4486be026166fdd2309434d32493b5725d0a005ff2b47504c0b21ee155600091909152601e7f7cd96984c14683fdc049dceb589e45aebd09884098157bc9661c1aa3c98720ec5580548216736d4530149e5b4483d2f7e60449c02570531a0751179055600b80546001600160a01b039390931692909116919091179055620003b8565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002b3906200037b565b90600052602060002090601f016020900481019282620002d7576000855562000322565b82601f10620002f257805160ff191683800117855562000322565b8280016001018555821562000322579182015b828111156200032257825182559160200191906001019062000305565b506200033092915062000334565b5090565b5b8082111562000330576000815560010162000335565b6000602082840312156200035d578081fd5b81516001600160a01b038116811462000374578182fd5b9392505050565b6002810460018216806200039057607f821691505b60208210811415620003b257634e487b7160e01b600052602260045260246000fd5b50919050565b6158c080620003c86000396000f3fe6080604052600436106102935760003560e01c8063715018a61161015a578063b3ed1da4116100c1578063eba2389d1161007a578063eba2389d146108b4578063f2fde38b146108d4578063f5f0cebd146108f4578063f769046f14610914578063f9e1eb5f14610941578063fb4a25581461096157610293565b8063b3ed1da4146107c1578063b5a3f84f146107f5578063b88d4fde1461080b578063c87b56dd1461082b578063cb67558e1461084b578063e985e9c51461086b57610293565b80639cae6eae116101135780639cae6eae146106fe5780639e4189261461071e578063a22cb4651461073e578063a2e28ea31461075e578063a74772c81461077e578063aef078bc146107ae57610293565b8063715018a614610653578063783abc8e14610668578063811dd0e21461068857806385e3f997146106b55780638da5cb5b146106cb57806395d89b41146106e957610293565b80632a55205a116101fe578063451dc3e6116101b7578063451dc3e61461054c57806346fd55221461056c5780634ccc6b5f1461058c5780634ed3faf2146105bc5780636352211e1461060557806370a082311461062557610293565b80632a55205a146104565780632b28bc991461049557806333c1da70146104b55780633eb2b5ad146104ec578063424f4fef1461050c57806342842e0e1461052c57610293565b80630fceb9ab116102505780630fceb9ab1461038957806314eba026146103a9578063197ebd53146103c9578063231710d7146103e957806323b872dd14610409578063263030561461042957610293565b806301ffc9a71461029857806304634d8d146102cd57806306fdde03146102ef578063081812fc14610311578063095ea7b3146103495780630a7c6fca14610369575b600080fd5b3480156102a457600080fd5b506102b86102b3366004614b5f565b610981565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102ed6102e8366004614a8e565b6109a3565b005b3480156102fb57600080fd5b506103046109e4565b6040516102c491906152d8565b34801561031d57600080fd5b5061033161032c366004614cd7565b610a76565b6040516001600160a01b0390911681526020016102c4565b34801561035557600080fd5b506102ed610364366004614a63565b610b0b565b34801561037557600080fd5b50610304610384366004614dd2565b610c21565b34801561039557600080fd5b506102ed6103a4366004614cd7565b610c9c565b3480156103b557600080fd5b506102ed6103c436600461491e565b610d2a565b3480156103d557600080fd5b506103316103e4366004614cd7565b610eaa565b3480156103f557600080fd5b506102ed61040436600461491e565b610ed4565b34801561041557600080fd5b506102ed610424366004614972565b610f20565b34801561043557600080fd5b50610449610444366004614cd7565b610f51565b6040516102c491906152a0565b34801561046257600080fd5b50610476610471366004614e76565b610fb6565b604080516001600160a01b0390931683526020830191909152016102c4565b3480156104a157600080fd5b506102ed6104b0366004614d13565b611064565b3480156104c157600080fd5b506104d56104d0366004614cd7565b611119565b6040516102c49b9a999897969594939291906154cf565b3480156104f857600080fd5b506102ed61050736600461491e565b611430565b34801561051857600080fd5b50600a54610331906001600160a01b031681565b34801561053857600080fd5b506102ed610547366004614972565b61154d565b34801561055857600080fd5b50600b54610331906001600160a01b031681565b34801561057857600080fd5b506102ed610587366004614b97565b611568565b34801561059857600080fd5b506102b86105a7366004614cd7565b600f6020526000908152604090205460ff1681565b3480156105c857600080fd5b506105f06105d7366004614cd7565b600e602052600090815260409020805460019091015482565b604080519283526020830191909152016102c4565b34801561061157600080fd5b50610331610620366004614cd7565b61185a565b34801561063157600080fd5b5061064561064036600461491e565b6118d1565b6040519081526020016102c4565b34801561065f57600080fd5b506102ed611958565b34801561067457600080fd5b506102ed610683366004614cef565b61198e565b34801561069457600080fd5b506106a86106a3366004614cd7565b611be2565b6040516102c49190615253565b3480156106c157600080fd5b506106456103e881565b3480156106d757600080fd5b506006546001600160a01b0316610331565b3480156106f557600080fd5b50610304611c50565b34801561070a57600080fd5b506102ed610719366004614a2f565b611c5f565b34801561072a57600080fd5b506102ed610739366004614db0565b611cb4565b34801561074a57600080fd5b506102ed610759366004614a2f565b611d46565b34801561076a57600080fd5b506102ed610779366004614cd7565b611d51565b34801561078a57600080fd5b506102b861079936600461491e565b60146020526000908152604090205460ff1681565b6102ed6107bc366004614e54565b612066565b3480156107cd57600080fd5b506107e16107dc366004614cd7565b612390565b6040516102c4989796959493929190615441565b34801561080157600080fd5b50610645600c5481565b34801561081757600080fd5b506102ed6108263660046149b2565b61280d565b34801561083757600080fd5b50610304610846366004614cd7565b61283f565b34801561085757600080fd5b506102ed61086636600461491e565b612cf1565b34801561087757600080fd5b506102b861088636600461493a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108c057600080fd5b506102ed6108cf366004614a63565b612d3d565b3480156108e057600080fd5b506102ed6108ef36600461491e565b612e3a565b34801561090057600080fd5b506102ed61090f366004614d39565b612ed5565b34801561092057600080fd5b5061064561092f36600461491e565b60126020526000908152604090205481565b34801561094d57600080fd5b5061030461095c366004614e97565b61356d565b34801561096d57600080fd5b506102ed61097c366004614cd7565b613636565b600061098c826138fb565b8061099b575061099b8261391c565b90505b919050565b6006546001600160a01b031633146109d65760405162461bcd60e51b81526004016109cd90615361565b60405180910390fd5b6109e0828261396c565b5050565b6060600080546109f390615702565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f90615702565b8015610a6c5780601f10610a4157610100808354040283529160200191610a6c565b820191906000526020600020905b815481529060010190602001808311610a4f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610aef5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109cd565b506000908152600460205260409020546001600160a01b031690565b6000610b168261185a565b9050806001600160a01b0316836001600160a01b03161415610b845760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109cd565b336001600160a01b0382161480610ba05750610ba08133610886565b610c125760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109cd565b610c1c8383613a80565b505050565b606060405180606001604052806024815260200161582160249139610c468487613aee565b604051806040016040528060118152602001701116113232b9b1b934b83a34b7b7111d1160791b815250604051602001610c8293929190615011565b60405160208183030381529060405290505b949350505050565b3360009081526014602052604090205460ff1680610cc457506006546001600160a01b031633145b610ce05760405162461bcd60e51b81526004016109cd906153e7565b6000818152600d60205260409020600c548211801590610d005750600082115b610d1c5760405162461bcd60e51b81526004016109cd9061533d565b805460ff1916600117905550565b6006546001600160a01b03163314610d545760405162461bcd60e51b81526004016109cd90615361565b60005b6013548110156109e057816001600160a01b031660138281548110610d8c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610e98576001600160a01b03821660009081526012602052604081205560138054610dd0906001906156bf565b81548110610dee57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154601380546001600160a01b039092169183908110610e2857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506013805480610e7557634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b80610ea281615764565b915050610d57565b60138181548110610eba57600080fd5b6000918252602090912001546001600160a01b0316905081565b6006546001600160a01b03163314610efe5760405162461bcd60e51b81526004016109cd90615361565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610f2a3382613b22565b610f465760405162461bcd60e51b81526004016109cd90615396565b610c1c838383613c18565b6000818152600d6020908152604091829020600401805483518184028101840190945280845260609392830182828015610faa57602002820191906000526020600020905b815481526020019060010190808311610f96575b50505050509050919050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161102b5750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061104a906001600160601b0316876156a0565b6110549190615680565b91519350909150505b9250929050565b6006546001600160a01b0316331461108e5760405162461bcd60e51b81526004016109cd90615361565b6000838152600d60205260409020600c5484118015906110ae5750600084115b6110ca5760405162461bcd60e51b81526004016109cd9061541e565b600381018054600180820183556000928352602080842090920180546001600160a01b0319166001600160a01b0397909716969096179095556004909201805494850181558152209091015550565b600d60205260009081526040902080546001820154600283015460058401805460ff808616966101008704909116956001600160801b036201000090910481169580821695600160801b90910490911693909261117590615702565b80601f01602080910402602001604051908101604052809291908181526020018280546111a190615702565b80156111ee5780601f106111c3576101008083540402835291602001916111ee565b820191906000526020600020905b8154815290600101906020018083116111d157829003601f168201915b50505050509080600601805461120390615702565b80601f016020809104026020016040519081016040528092919081815260200182805461122f90615702565b801561127c5780601f106112515761010080835404028352916020019161127c565b820191906000526020600020905b81548152906001019060200180831161125f57829003601f168201915b50505050509080600701805461129190615702565b80601f01602080910402602001604051908101604052809291908181526020018280546112bd90615702565b801561130a5780601f106112df5761010080835404028352916020019161130a565b820191906000526020600020905b8154815290600101906020018083116112ed57829003601f168201915b50505050509080600801805461131f90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461134b90615702565b80156113985780601f1061136d57610100808354040283529160200191611398565b820191906000526020600020905b81548152906001019060200180831161137b57829003601f168201915b5050505050908060090180546113ad90615702565b80601f01602080910402602001604051908101604052809291908181526020018280546113d990615702565b80156114265780601f106113fb57610100808354040283529160200191611426565b820191906000526020600020905b81548152906001019060200180831161140957829003601f168201915b505050505090508b565b6006546001600160a01b0316331461145a5760405162461bcd60e51b81526004016109cd90615361565b60005b6013548110156114fa576013818154811061148857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03838116911614156114e85760405162461bcd60e51b81526020600482015260166024820152756d656d626572732065786973747320616c726561647960501b60448201526064016109cd565b806114f281615764565b91505061145d565b50601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b0392909216919091179055565b610c1c8383836040518060200160405280600081525061280d565b6006546001600160a01b031633146115925760405162461bcd60e51b81526004016109cd90615361565b85518751146115d65760405162461bcd60e51b815260206004820152601060248201526f30b93930bcb99010b9b0b6b2903632b760811b60448201526064016109cd565b604051806101a00160405280600060ff168152602001600060ff1681526020018b6001600160801b031681526020018a6001600160801b0316815260200160006001600160801b0316815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182815250600d6000600c5460016116659190615643565b815260208082019290925260409081016000208351815485850151938601516001600160801b03908116620100000271ffffffffffffffffffffffffffffffff00001960ff9687166101000261ff00199790951660ff1990941693909317959095169290921716929092178155606084015160018201805460808701518516600160801b029285166fffffffffffffffffffffffffffffffff19909116179093161790915560a0830151600282015560c08301518051919261172f92600385019290910190614640565b5060e0820151805161174b9160048401916020909101906146a5565b5061010082015180516117689160058401916020909101906146e0565b5061012082015180516117859160068401916020909101906146e0565b5061014082015180516117a29160078401916020909101906146e0565b5061016082015180516117bf9160088401916020909101906146e0565b5061018082015180516117dc9160098401916020909101906146e0565b5050600c8054915060006117ef83615764565b9091555050600c80546000908152600f602052604090819020805460ff19166001179055905490517f77628c9166aca2fc4ccb8b7681fa345c93f54fb929f857d05cfebbfb665bad02916118469190815260200190565b60405180910390a150505050505050505050565b6000818152600260205260408120546001600160a01b03168061099b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109cd565b60006001600160a01b03821661193c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109cd565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119825760405162461bcd60e51b81526004016109cd90615361565b61198c6000613c96565b565b6006546001600160a01b031633146119b85760405162461bcd60e51b81526004016109cd90615361565b6000828152600d60205260409020600c5483118015906119d85750600083115b6119f45760405162461bcd60e51b81526004016109cd9061541e565b60005b6003820154811015611bdc57826001600160a01b0316826003018281548110611a3057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611bca57600382018054611a5d906001906156bf565b81548110611a7b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546003830180546001600160a01b039092169183908110611ab757634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600301805480611b0657634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055600482018054611b3a906001906156bf565b81548110611b5857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826004018281548110611b8657634e487b7160e01b600052603260045260246000fd5b60009182526020909120015560048201805480611bb357634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555b80611bd481615764565b9150506119f7565b50505050565b6000818152600d6020908152604091829020600301805483518184028101840190945280845260609392830182828015610faa57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c275750505050509050919050565b6060600180546109f390615702565b6006546001600160a01b03163314611c895760405162461bcd60e51b81526004016109cd90615361565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b3360009081526014602052604090205460ff1680611cdc57506006546001600160a01b031633145b611cf85760405162461bcd60e51b81526004016109cd906153e7565b600c548211158015611d0a5750600082115b611d265760405162461bcd60e51b81526004016109cd9061533d565b6000918252600f6020526040909120805460ff1916911515919091179055565b6109e0338383613ce8565b6006546001600160a01b03163314611d7b5760405162461bcd60e51b81526004016109cd90615361565b600c548111158015611d8d5750600081115b611da95760405162461bcd60e51b81526004016109cd9061541e565b600081815260116020526040812080549082611dc483615764565b919050559050600a8110611e085760405162461bcd60e51b815260206004820152600b60248201526a44697374726f20646f6e6560a81b60448201526064016109cd565b6000828152600d602052604081206001810154600b549192600160801b9091046001600160801b0316916001600160a01b031663aaae61eb611e4b8660326156a0565b6040516001600160e01b031960e084901b16815260048101919091526032602482015260440160006040518083038186803b158015611e8957600080fd5b505afa158015611e9d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ec59190810190614ac6565b600954909150600090815b6032811015611f61576000848281518110611efb57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060006001600160a01b0316816001600160a01b031614611f4e57611f40868a8684611f308289615643565b611f3b906001615643565b613db7565b83611f4a81615764565b9450505b5080611f5981615764565b915050611ed0565b508160096000828254611f749190615643565b9091555050600185018054839190601090611fa0908490600160801b90046001600160801b0316615621565b82546101009290920a6001600160801b03818102199093169183160217909155865462010000900481169150611fd99084908716615643565b1415611feb57845460ff191660011785555b856009141561205d57600b60009054906101000a90046001600160a01b03166001600160a01b031663b8dea0956040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561204457600080fd5b505af1158015612058573d6000803e3d6000fd5b505050505b50505050505050565b6000828152600d6020526040902060018101548154600c54600160801b9092046001600160801b039081169262010000909204169085118015906120aa5750600085115b6120c65760405162461bcd60e51b81526004016109cd9061541e565b825460ff16156121005760405162461bcd60e51b8152602060048201526005602482015264216c69766560d81b60448201526064016109cd565b6000858152600f602052604090205460ff16156121485760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b60448201526064016109cd565b34846001600160801b0316846002015461216291906156a0565b146121985760405162461bcd60e51b815260206004820152600660248201526521707269636560d01b60448201526064016109cd565b6001600160801b0381166121ac8584615621565b6001600160801b031611156121f45760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e7920626f78657360901b60448201526064016109cd565b600183015460008681526010602090815260408083203384529091529020546001600160801b039182169161222c9190871690615643565b11156122635760405162461bcd60e51b81526004016109cd906020808252600490820152632162757960e01b604082015260600190565b60095460005b856001600160801b0316816001600160801b031610156122af5761229d84886001600160801b03841633611f308288615643565b806122a78161573d565b915050612269565b50846001600160801b0316600960008282546122cb9190615643565b90915550506001840180548691906010906122f7908490600160801b90046001600160801b0316615621565b82546101009290920a6001600160801b03818102199093169183160217909155600088815260106020908152604080832033845290915290205461233f925090871690615643565b60008781526010602090815260408083203384529091529020556001600160801b03821661236d8685615621565b6001600160801b0316141561238857835460ff191660011784555b505050505050565b6000818152600e60209081526040808320815180830183528154808252600192830154828601528552600d845282852083516101a081018552815460ff8082168352610100820416828801526001600160801b036201000090910481168287015293820154808516606083810191909152600160801b9091049094166080820152600282015460a082015260038201805486518189028101890190975280875288978897879687968796879692958c959194929360c08601939290919083018282801561248657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612468575b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156124de57602002820191906000526020600020905b8154815260200190600101908083116124ca575b505050505081526020016005820180546124f790615702565b80601f016020809104026020016040519081016040528092919081815260200182805461252390615702565b80156125705780601f1061254557610100808354040283529160200191612570565b820191906000526020600020905b81548152906001019060200180831161255357829003601f168201915b5050505050815260200160068201805461258990615702565b80601f01602080910402602001604051908101604052809291908181526020018280546125b590615702565b80156126025780601f106125d757610100808354040283529160200191612602565b820191906000526020600020905b8154815290600101906020018083116125e557829003601f168201915b5050505050815260200160078201805461261b90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461264790615702565b80156126945780601f1061266957610100808354040283529160200191612694565b820191906000526020600020905b81548152906001019060200180831161267757829003601f168201915b505050505081526020016008820180546126ad90615702565b80601f01602080910402602001604051908101604052809291908181526020018280546126d990615702565b80156127265780601f106126fb57610100808354040283529160200191612726565b820191906000526020600020905b81548152906001019060200180831161270957829003601f168201915b5050505050815260200160098201805461273f90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461276b90615702565b80156127b85780601f1061278d576101008083540402835291602001916127b8565b820191906000526020600020905b81548152906001019060200180831161279b57829003601f168201915b5050505050815250509050816000015182602001518260400151836101000151846101200151856101400151866101600151876101800151995099509950995099509950995099505050919395975091939597565b6128173383613b22565b6128335760405162461bcd60e51b81526004016109cd90615396565b611bdc84848484613e69565b6000818152600e602090815260409182902082518084019093528054808452600190910154918301919091526060919061287857600080fd5b80516000908152600d6020908152604080832081516101a081018352815460ff8082168352610100820416828601526001600160801b036201000090910481168285015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548451818702810187019095528085529194929360c086019390929083018282801561293a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161291c575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561299257602002820191906000526020600020905b81548152602001906001019080831161297e575b505050505081526020016005820180546129ab90615702565b80601f01602080910402602001604051908101604052809291908181526020018280546129d790615702565b8015612a245780601f106129f957610100808354040283529160200191612a24565b820191906000526020600020905b815481529060010190602001808311612a0757829003601f168201915b50505050508152602001600682018054612a3d90615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612a6990615702565b8015612ab65780601f10612a8b57610100808354040283529160200191612ab6565b820191906000526020600020905b815481529060010190602001808311612a9957829003601f168201915b50505050508152602001600782018054612acf90615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612afb90615702565b8015612b485780601f10612b1d57610100808354040283529160200191612b48565b820191906000526020600020905b815481529060010190602001808311612b2b57829003601f168201915b50505050508152602001600882018054612b6190615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8d90615702565b8015612bda5780601f10612baf57610100808354040283529160200191612bda565b820191906000526020600020905b815481529060010190602001808311612bbd57829003601f168201915b50505050508152602001600982018054612bf390615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612c1f90615702565b8015612c6c5780601f10612c4157610100808354040283529160200191612c6c565b820191906000526020600020905b815481529060010190602001808311612c4f57829003601f168201915b5050505050815250509050612c968260200151826101200151836101000151846101400151610c21565b612cc88360000151846020015184604001516001600160801b031685610120015186610160015187610140015161356d565b604051602001612cd992919061516d565b60405160208183030381529060405292505050919050565b6006546001600160a01b03163314612d1b5760405162461bcd60e51b81526004016109cd90615361565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314612d675760405162461bcd60e51b81526004016109cd90615361565b6103e8811115612db95760405162461bcd60e51b815260206004820152601860248201527f7368617265206d7573742062652062656c6f772031303030000000000000000060448201526064016109cd565b60005b601354811015610c1c57826001600160a01b031660138281548110612df157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415612e28576001600160a01b03831660009081526012602052604090208290555b80612e3281615764565b915050612dbc565b6006546001600160a01b03163314612e645760405162461bcd60e51b81526004016109cd90615361565b6001600160a01b038116612ec95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cd565b612ed281613c96565b50565b3360009081526014602052604090205460ff1680612efd57506006546001600160a01b031633145b612f195760405162461bcd60e51b81526004016109cd906153e7565b6000858152600d6020908152604080832081516101a081018352815460ff8082168352610100820416828601526001600160801b036201000090910481168285015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548451818702810187019095528085529194929360c0860193909290830182828015612fd957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612fbb575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561303157602002820191906000526020600020905b81548152602001906001019080831161301d575b5050505050815260200160058201805461304a90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461307690615702565b80156130c35780601f10613098576101008083540402835291602001916130c3565b820191906000526020600020905b8154815290600101906020018083116130a657829003601f168201915b505050505081526020016006820180546130dc90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461310890615702565b80156131555780601f1061312a57610100808354040283529160200191613155565b820191906000526020600020905b81548152906001019060200180831161313857829003601f168201915b5050505050815260200160078201805461316e90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461319a90615702565b80156131e75780601f106131bc576101008083540402835291602001916131e7565b820191906000526020600020905b8154815290600101906020018083116131ca57829003601f168201915b5050505050815260200160088201805461320090615702565b80601f016020809104026020016040519081016040528092919081815260200182805461322c90615702565b80156132795780601f1061324e57610100808354040283529160200191613279565b820191906000526020600020905b81548152906001019060200180831161325c57829003601f168201915b5050505050815260200160098201805461329290615702565b80601f01602080910402602001604051908101604052809291908181526020018280546132be90615702565b801561330b5780601f106132e05761010080835404028352916020019161330b565b820191906000526020600020905b8154815290600101906020018083116132ee57829003601f168201915b5050505050815250509050806000015160ff166001146133565760405162461bcd60e51b81526004016109cd906020808252600490820152636c69766560e01b604082015260600190565b81858560008161337657634e487b7160e01b600052603260045260246000fd5b90506020028101906133889190615585565b9050146133c35760405162461bcd60e51b815260206004820152600960248201526862616420617272617960b81b60448201526064016109cd565b60005b8481101561352f5760005b868660008181106133f257634e487b7160e01b600052603260045260246000fd5b90506020028101906134049190615585565b905081101561351c57600a546001600160a01b031663e56e347986868481811061343e57634e487b7160e01b600052603260045260246000fd5b9050602002013589898681811061346557634e487b7160e01b600052603260045260246000fd5b90506020028101906134779190615585565b8581811061349557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906134aa919061491e565b6040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b1580156134f157600080fd5b505af1158015613505573d6000803e3d6000fd5b50505050808061351490615764565b9150506133d1565b508061352781615764565b9150506133c6565b5060405184815286907fb3e821bfa4e118cf1cac28128930a4e53e59dd51d9e30c95ee100e4d3b0d2ef29060200160405180910390a2505050505050565b60606040518060400160405280601081526020016f222c2261747472696275746573223a5b60801b8152506135a188613e9c565b6135aa86613f04565b6135b385613f4e565b6135bd8a8a613f98565b6040518060400160405280600a815260200169161134b6b0b3b2911d1160b11b8152506135e989614012565b60405180604001604052806002815260200161227d60f01b81525060405160200161361b9897969594939291906150c8565b60405160208183030381529060405290509695505050505050565b6000818152600d60205260409020600c5482118015906136565750600082115b6136725760405162461bcd60e51b81526004016109cd9061533d565b805460ff16600114801561368d57508054610100900460ff16155b6136c75760405162461bcd60e51b815260206004820152600b60248201526a216469737472696275746560a81b60448201526064016109cd565b6136d082614025565b61370b5760405162461bcd60e51b815260206004820152600c60248201526b39bab690109e90189818129760a11b60448201526064016109cd565b805461ff0019166101001781556002810154600182015460009161373f916001600160801b03600160801b909104166156a0565b90506000805b601354811015613826576103e8601260006013848154811061377757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020546137a690856156a0565b6137b09190615680565b9150601381815481106137d357634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015613813573d6000803e3d6000fd5b508061381e81615764565b915050613745565b5060005b60038401548110156138f4576103e884600401828154811061385c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001548461387291906156a0565b61387c9190615680565b91508360030181815481106138a157634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f193505050501580156138e1573d6000803e3d6000fd5b50806138ec81615764565b91505061382a565b5050505050565b60006001600160e01b0319821663152a902d60e11b148061099b575061099b825b60006001600160e01b031982166380ac58cd60e01b148061394d57506001600160e01b03198216635b5e139f60e01b145b8061099b57506301ffc9a760e01b6001600160e01b031983161461099b565b6127106001600160601b03821611156139da5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109cd565b6001600160a01b038216613a305760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109cd565b604080518082019091526001600160a01b039283168082526001600160601b03929092166020909101819052600780546001600160a01b031916909217909216600160a01b909202919091179055565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613ab58261185a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606082613afa83614111565b604051602001613b0b92919061519c565b604051602081830303815290604052905092915050565b6000818152600260205260408120546001600160a01b0316613b9b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109cd565b6000613ba68361185a565b9050806001600160a01b0316846001600160a01b03161480613bed57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610c945750836001600160a01b0316613c0684610a76565b6001600160a01b031614949350505050565b6000818152600e6020908152604080832081518083018352815480825260019092015481850152908452600f9092529091205460ff1615613c8b5760405162461bcd60e51b815260206004820152600d60248201526c109bde081a5cc81b1bd8dad959609a1b60448201526064016109cd565b611bdc848484614257565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415613d4a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109cd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b604051806040016040528085815260200184876001600160801b0316613ddd9190615643565b613de8906001615643565b90526000828152600e6020908152604090912082518155910151600190910155837f5420392aab8a9f3a70c0145321ff58bc86c3da3596336224396de59f430fc0f5613e3d856001600160801b038916615643565b613e48906001615643565b60408051918252602082018590520160405180910390a26138f482826143f3565b613e74848484613c18565b613e8084848484614536565b611bdc5760405162461bcd60e51b81526004016109cd906152eb565b606060405180606001604052806021815260200161584560219139613ec083614111565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613eee93929190614f63565b6040516020818303038152906040529050919050565b6060604051806060016040528060258152602001615866602591398260405180604001604052806003815260200162089f4b60ea1b815250604051602001613eee93929190614f63565b60606040518060600160405280602481526020016157fd602491398260405180604001604052806003815260200162089f4b60ea1b815250604051602001613eee93929190614f63565b60606040518060600160405280602681526020016157d760269139613fbc84614111565b6040518060400160405280600481526020016301037b3160e51b815250613fe285614111565b60405180604001604052806003815260200162227d5d60e81b815250604051602001613b0b959493929190614fa6565b606081604051602001613eee91906151d9565b6000818152600d6020526040812081805b6013548110156140a857601260006013838154811061406557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020546140949083615643565b9150806140a081615764565b915050614036565b5060005b6004830154811015614105578260040181815481106140db57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826140f19190615643565b9150806140fd81615764565b9150506140ac565b506103e8149392505050565b60608161413657506040805180820190915260018152600360fc1b602082015261099e565b8160005b8115614160578061414a81615764565b91506141599050600a83615680565b915061413a565b60008167ffffffffffffffff81111561418957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156141b3576020820181803683370190505b509050815b851561424e576141c96001826156bf565b905060006141d8600a88615680565b6141e390600a6156a0565b6141ed90886156bf565b6141f890603061565b565b905060008160f81b90508084848151811061422357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350614245600a89615680565b975050506141b8565b50949350505050565b826001600160a01b031661426a8261185a565b6001600160a01b0316146142ce5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109cd565b6001600160a01b0382166143305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109cd565b61433b600082613a80565b6001600160a01b03831660009081526003602052604081208054600192906143649084906156bf565b90915550506001600160a01b0382166000908152600360205260408120805460019290614392908490615643565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610c1c565b6001600160a01b0382166144495760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109cd565b6000818152600260205260409020546001600160a01b0316156144ae5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109cd565b6001600160a01b03821660009081526003602052604081208054600192906144d7908490615643565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46109e0565b60006001600160a01b0384163b1561463857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061457a903390899088908890600401615216565b602060405180830381600087803b15801561459457600080fd5b505af19250505080156145c4575060408051601f3d908101601f191682019092526145c191810190614b7b565b60015b61461e573d8080156145f2576040519150601f19603f3d011682016040523d82523d6000602084013e6145f7565b606091505b5080516146165760405162461bcd60e51b81526004016109cd906152eb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c94565b506001610c94565b828054828255906000526020600020908101928215614695579160200282015b8281111561469557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614660565b506146a1929150614753565b5090565b828054828255906000526020600020908101928215614695579160200282015b828111156146955782518255916020019190600101906146c5565b8280546146ec90615702565b90600052602060002090601f01602090048101928261470e5760008555614695565b82601f1061472757805160ff1916838001178555614695565b8280016001018555821561469557918201828111156146955782518255916020019190600101906146c5565b5b808211156146a15760008155600101614754565b600067ffffffffffffffff83111561478257614782615795565b614795601f8401601f19166020016155cc565b90508281528383830111156147a957600080fd5b828260208301376000602084830101529392505050565b600082601f8301126147d0578081fd5b813560206147e56147e0836155fd565b6155cc565b8281528181019085830183850287018401881015614801578586fd5b855b85811015614828578135614816816157ab565b84529284019290840190600101614803565b5090979650505050505050565b60008083601f840112614846578182fd5b50813567ffffffffffffffff81111561485d578182fd5b602083019150836020808302850101111561105d57600080fd5b600082601f830112614887578081fd5b813560206148976147e0836155fd565b82815281810190858301838502870184018810156148b3578586fd5b855b85811015614828578135845292840192908401906001016148b5565b8035801515811461099e57600080fd5b600082601f8301126148f1578081fd5b61490083833560208501614768565b9392505050565b80356001600160801b038116811461099e57600080fd5b60006020828403121561492f578081fd5b8135614900816157ab565b6000806040838503121561494c578081fd5b8235614957816157ab565b91506020830135614967816157ab565b809150509250929050565b600080600060608486031215614986578081fd5b8335614991816157ab565b925060208401356149a1816157ab565b929592945050506040919091013590565b600080600080608085870312156149c7578182fd5b84356149d2816157ab565b935060208501356149e2816157ab565b925060408501359150606085013567ffffffffffffffff811115614a04578182fd5b8501601f81018713614a14578182fd5b614a2387823560208401614768565b91505092959194509250565b60008060408385031215614a41578182fd5b8235614a4c816157ab565b9150614a5a602084016148d1565b90509250929050565b60008060408385031215614a75578182fd5b8235614a80816157ab565b946020939093013593505050565b60008060408385031215614aa0578182fd5b8235614aab816157ab565b915060208301356001600160601b0381168114614967578182fd5b60006020808385031215614ad8578182fd5b825167ffffffffffffffff811115614aee578283fd5b8301601f81018513614afe578283fd5b8051614b0c6147e0826155fd565b8181528381019083850185840285018601891015614b28578687fd5b8694505b83851015614b53578051614b3f816157ab565b835260019490940193918501918501614b2c565b50979650505050505050565b600060208284031215614b70578081fd5b8135614900816157c0565b600060208284031215614b8c578081fd5b8151614900816157c0565b6000806000806000806000806000806101408b8d031215614bb6578788fd5b614bbf8b614907565b9950614bcd60208c01614907565b985060408b0135975060608b013567ffffffffffffffff80821115614bf0578788fd5b614bfc8e838f016147c0565b985060808d0135915080821115614c11578788fd5b614c1d8e838f01614877565b975060a08d0135915080821115614c32578687fd5b614c3e8e838f016148e1565b965060c08d0135915080821115614c53578586fd5b614c5f8e838f016148e1565b955060e08d0135915080821115614c74578485fd5b614c808e838f016148e1565b94506101008d0135915080821115614c96578384fd5b614ca28e838f016148e1565b93506101208d0135915080821115614cb8578283fd5b50614cc58d828e016148e1565b9150509295989b9194979a5092959850565b600060208284031215614ce8578081fd5b5035919050565b60008060408385031215614d01578182fd5b823591506020830135614967816157ab565b600080600060608486031215614d27578081fd5b8335925060208401356149a1816157ab565b600080600080600060608688031215614d50578283fd5b85359450602086013567ffffffffffffffff80821115614d6e578485fd5b614d7a89838a01614835565b90965094506040880135915080821115614d92578283fd5b50614d9f88828901614835565b969995985093965092949392505050565b60008060408385031215614dc2578182fd5b82359150614a5a602084016148d1565b60008060008060808587031215614de7578182fd5b84359350602085013567ffffffffffffffff80821115614e05578384fd5b614e11888389016148e1565b94506040870135915080821115614e26578384fd5b614e32888389016148e1565b93506060870135915080821115614e47578283fd5b50614a23878288016148e1565b60008060408385031215614e66578182fd5b82359150614a5a60208401614907565b60008060408385031215614e88578182fd5b50508035926020909101359150565b60008060008060008060c08789031215614eaf578384fd5b863595506020870135945060408701359350606087013567ffffffffffffffff80821115614edb578384fd5b614ee78a838b016148e1565b94506080890135915080821115614efc578384fd5b614f088a838b016148e1565b935060a0890135915080821115614f1d578283fd5b50614f2a89828a016148e1565b9150509295509295509295565b60008151808452614f4f8160208601602086016156d6565b601f01601f19169290920160200192915050565b60008451614f758184602089016156d6565b845190830190614f898183602089016156d6565b8451910190614f9c8183602088016156d6565b0195945050505050565b60008651614fb8818460208b016156d6565b865190830190614fcc818360208b016156d6565b8651910190614fdf818360208a016156d6565b8551910190614ff28183602089016156d6565b84519101906150058183602088016156d6565b01979650505050505050565b600084516150238184602089016156d6565b8451908301906150378183602089016156d6565b845191019061504a8183602088016156d6565b7f4e4654426f7865732061726520612063757261746564206d6f6e74686c79206291019081527f6f78206f66204e465473206f6e20746865206e657765737420676f6c6420737460208201527f616e64617264206f66204e465420746563686e6f6c6f67792e00000000000000604082015260590195945050505050565b6000895160206150db8285838f016156d6565b8a51918401916150ee8184848f016156d6565b8a519201916151008184848e016156d6565b89519201916151128184848d016156d6565b88519201916151248184848c016156d6565b87519201916151368184848b016156d6565b86519201916151488184848a016156d6565b855192019161515a81848489016156d6565b919091019b9a5050505050505050505050565b6000835161517f8184602088016156d6565b8351908301906151938183602088016156d6565b01949350505050565b600083516151ae8184602088016156d6565b61202360f01b90830190815283516151cd8160028401602088016156d6565b01600201949350505050565b60007468747470733a2f2f697066732e696f2f697066732f60581b825282516152098160158501602087016156d6565b9190910160150192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061524990830184614f37565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156152945783516001600160a01b03168352928401929184019160010161526f565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615294578351835292840192918401916001016152bc565b6000602082526149006020830184614f37565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600a908201526924a21010b2bc34b9ba1760b11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601a908201527f4e6f7420617574686f726973656420746f20657865637574652e000000000000604082015260600190565b60208082526009908201526812510808595e1a5cdd60ba1b604082015260600190565b60006101008a83528960208401526001600160801b038916604084015280606084015261547081840189614f37565b905082810360808401526154848188614f37565b905082810360a08401526154988187614f37565b905082810360c08401526154ac8186614f37565b905082810360e08401526154c08185614f37565b9b9a5050505050505050505050565b60ff8c811682528b1660208201526001600160801b038a811660408301528916606082015260006101606001600160801b038a1660808401528860a08401528060c084015261552081840189614f37565b905082810360e08401526155348188614f37565b90508281036101008401526155498187614f37565b905082810361012084015261555e8186614f37565b90508281036101408401526155738185614f37565b9e9d5050505050505050505050505050565b6000808335601e1984360301811261559b578283fd5b83018035915067ffffffffffffffff8211156155b5578283fd5b602090810192508102360382131561105d57600080fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156155f5576155f5615795565b604052919050565b600067ffffffffffffffff82111561561757615617615795565b5060209081020190565b60006001600160801b038083168185168083038211156151935761519361577f565b600082198211156156565761565661577f565b500190565b600060ff821660ff84168060ff038211156156785761567861577f565b019392505050565b60008261569b57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156156ba576156ba61577f565b500290565b6000828210156156d1576156d161577f565b500390565b60005b838110156156f15781810151838201526020016156d9565b83811115611bdc5750506000910152565b60028104600182168061571657607f821691505b6020821081141561573757634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b038083168181141561575a5761575a61577f565b6001019392505050565b60006000198214156157785761577861577f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612ed257600080fd5b6001600160e01b031981168114612ed257600080fdfe7b2274726169745f74797065223a2022626f782065646974696f6e222c2276616c7565223a227b2274726169745f74797065223a2022626f78207468656d65222c2276616c7565223a22646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d65223a227b2274726169745f74797065223a2022626f78206964222c2276616c7565223a227b2274726169745f74797065223a2022626f7820736572696573222c2276616c7565223a22a2646970667358221220ccbd53caab90ea7019048e4e539834b704df0ccbe1cf4cef0d0b5e8215852b3964736f6c63430008020033000000000000000000000000acadaf7fb6156d3c1832c27612611c735babb495

Deployed Bytecode

0x6080604052600436106102935760003560e01c8063715018a61161015a578063b3ed1da4116100c1578063eba2389d1161007a578063eba2389d146108b4578063f2fde38b146108d4578063f5f0cebd146108f4578063f769046f14610914578063f9e1eb5f14610941578063fb4a25581461096157610293565b8063b3ed1da4146107c1578063b5a3f84f146107f5578063b88d4fde1461080b578063c87b56dd1461082b578063cb67558e1461084b578063e985e9c51461086b57610293565b80639cae6eae116101135780639cae6eae146106fe5780639e4189261461071e578063a22cb4651461073e578063a2e28ea31461075e578063a74772c81461077e578063aef078bc146107ae57610293565b8063715018a614610653578063783abc8e14610668578063811dd0e21461068857806385e3f997146106b55780638da5cb5b146106cb57806395d89b41146106e957610293565b80632a55205a116101fe578063451dc3e6116101b7578063451dc3e61461054c57806346fd55221461056c5780634ccc6b5f1461058c5780634ed3faf2146105bc5780636352211e1461060557806370a082311461062557610293565b80632a55205a146104565780632b28bc991461049557806333c1da70146104b55780633eb2b5ad146104ec578063424f4fef1461050c57806342842e0e1461052c57610293565b80630fceb9ab116102505780630fceb9ab1461038957806314eba026146103a9578063197ebd53146103c9578063231710d7146103e957806323b872dd14610409578063263030561461042957610293565b806301ffc9a71461029857806304634d8d146102cd57806306fdde03146102ef578063081812fc14610311578063095ea7b3146103495780630a7c6fca14610369575b600080fd5b3480156102a457600080fd5b506102b86102b3366004614b5f565b610981565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102ed6102e8366004614a8e565b6109a3565b005b3480156102fb57600080fd5b506103046109e4565b6040516102c491906152d8565b34801561031d57600080fd5b5061033161032c366004614cd7565b610a76565b6040516001600160a01b0390911681526020016102c4565b34801561035557600080fd5b506102ed610364366004614a63565b610b0b565b34801561037557600080fd5b50610304610384366004614dd2565b610c21565b34801561039557600080fd5b506102ed6103a4366004614cd7565b610c9c565b3480156103b557600080fd5b506102ed6103c436600461491e565b610d2a565b3480156103d557600080fd5b506103316103e4366004614cd7565b610eaa565b3480156103f557600080fd5b506102ed61040436600461491e565b610ed4565b34801561041557600080fd5b506102ed610424366004614972565b610f20565b34801561043557600080fd5b50610449610444366004614cd7565b610f51565b6040516102c491906152a0565b34801561046257600080fd5b50610476610471366004614e76565b610fb6565b604080516001600160a01b0390931683526020830191909152016102c4565b3480156104a157600080fd5b506102ed6104b0366004614d13565b611064565b3480156104c157600080fd5b506104d56104d0366004614cd7565b611119565b6040516102c49b9a999897969594939291906154cf565b3480156104f857600080fd5b506102ed61050736600461491e565b611430565b34801561051857600080fd5b50600a54610331906001600160a01b031681565b34801561053857600080fd5b506102ed610547366004614972565b61154d565b34801561055857600080fd5b50600b54610331906001600160a01b031681565b34801561057857600080fd5b506102ed610587366004614b97565b611568565b34801561059857600080fd5b506102b86105a7366004614cd7565b600f6020526000908152604090205460ff1681565b3480156105c857600080fd5b506105f06105d7366004614cd7565b600e602052600090815260409020805460019091015482565b604080519283526020830191909152016102c4565b34801561061157600080fd5b50610331610620366004614cd7565b61185a565b34801561063157600080fd5b5061064561064036600461491e565b6118d1565b6040519081526020016102c4565b34801561065f57600080fd5b506102ed611958565b34801561067457600080fd5b506102ed610683366004614cef565b61198e565b34801561069457600080fd5b506106a86106a3366004614cd7565b611be2565b6040516102c49190615253565b3480156106c157600080fd5b506106456103e881565b3480156106d757600080fd5b506006546001600160a01b0316610331565b3480156106f557600080fd5b50610304611c50565b34801561070a57600080fd5b506102ed610719366004614a2f565b611c5f565b34801561072a57600080fd5b506102ed610739366004614db0565b611cb4565b34801561074a57600080fd5b506102ed610759366004614a2f565b611d46565b34801561076a57600080fd5b506102ed610779366004614cd7565b611d51565b34801561078a57600080fd5b506102b861079936600461491e565b60146020526000908152604090205460ff1681565b6102ed6107bc366004614e54565b612066565b3480156107cd57600080fd5b506107e16107dc366004614cd7565b612390565b6040516102c4989796959493929190615441565b34801561080157600080fd5b50610645600c5481565b34801561081757600080fd5b506102ed6108263660046149b2565b61280d565b34801561083757600080fd5b50610304610846366004614cd7565b61283f565b34801561085757600080fd5b506102ed61086636600461491e565b612cf1565b34801561087757600080fd5b506102b861088636600461493a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108c057600080fd5b506102ed6108cf366004614a63565b612d3d565b3480156108e057600080fd5b506102ed6108ef36600461491e565b612e3a565b34801561090057600080fd5b506102ed61090f366004614d39565b612ed5565b34801561092057600080fd5b5061064561092f36600461491e565b60126020526000908152604090205481565b34801561094d57600080fd5b5061030461095c366004614e97565b61356d565b34801561096d57600080fd5b506102ed61097c366004614cd7565b613636565b600061098c826138fb565b8061099b575061099b8261391c565b90505b919050565b6006546001600160a01b031633146109d65760405162461bcd60e51b81526004016109cd90615361565b60405180910390fd5b6109e0828261396c565b5050565b6060600080546109f390615702565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f90615702565b8015610a6c5780601f10610a4157610100808354040283529160200191610a6c565b820191906000526020600020905b815481529060010190602001808311610a4f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610aef5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109cd565b506000908152600460205260409020546001600160a01b031690565b6000610b168261185a565b9050806001600160a01b0316836001600160a01b03161415610b845760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109cd565b336001600160a01b0382161480610ba05750610ba08133610886565b610c125760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109cd565b610c1c8383613a80565b505050565b606060405180606001604052806024815260200161582160249139610c468487613aee565b604051806040016040528060118152602001701116113232b9b1b934b83a34b7b7111d1160791b815250604051602001610c8293929190615011565b60405160208183030381529060405290505b949350505050565b3360009081526014602052604090205460ff1680610cc457506006546001600160a01b031633145b610ce05760405162461bcd60e51b81526004016109cd906153e7565b6000818152600d60205260409020600c548211801590610d005750600082115b610d1c5760405162461bcd60e51b81526004016109cd9061533d565b805460ff1916600117905550565b6006546001600160a01b03163314610d545760405162461bcd60e51b81526004016109cd90615361565b60005b6013548110156109e057816001600160a01b031660138281548110610d8c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610e98576001600160a01b03821660009081526012602052604081205560138054610dd0906001906156bf565b81548110610dee57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154601380546001600160a01b039092169183908110610e2857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506013805480610e7557634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b80610ea281615764565b915050610d57565b60138181548110610eba57600080fd5b6000918252602090912001546001600160a01b0316905081565b6006546001600160a01b03163314610efe5760405162461bcd60e51b81526004016109cd90615361565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610f2a3382613b22565b610f465760405162461bcd60e51b81526004016109cd90615396565b610c1c838383613c18565b6000818152600d6020908152604091829020600401805483518184028101840190945280845260609392830182828015610faa57602002820191906000526020600020905b815481526020019060010190808311610f96575b50505050509050919050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161102b5750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061104a906001600160601b0316876156a0565b6110549190615680565b91519350909150505b9250929050565b6006546001600160a01b0316331461108e5760405162461bcd60e51b81526004016109cd90615361565b6000838152600d60205260409020600c5484118015906110ae5750600084115b6110ca5760405162461bcd60e51b81526004016109cd9061541e565b600381018054600180820183556000928352602080842090920180546001600160a01b0319166001600160a01b0397909716969096179095556004909201805494850181558152209091015550565b600d60205260009081526040902080546001820154600283015460058401805460ff808616966101008704909116956001600160801b036201000090910481169580821695600160801b90910490911693909261117590615702565b80601f01602080910402602001604051908101604052809291908181526020018280546111a190615702565b80156111ee5780601f106111c3576101008083540402835291602001916111ee565b820191906000526020600020905b8154815290600101906020018083116111d157829003601f168201915b50505050509080600601805461120390615702565b80601f016020809104026020016040519081016040528092919081815260200182805461122f90615702565b801561127c5780601f106112515761010080835404028352916020019161127c565b820191906000526020600020905b81548152906001019060200180831161125f57829003601f168201915b50505050509080600701805461129190615702565b80601f01602080910402602001604051908101604052809291908181526020018280546112bd90615702565b801561130a5780601f106112df5761010080835404028352916020019161130a565b820191906000526020600020905b8154815290600101906020018083116112ed57829003601f168201915b50505050509080600801805461131f90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461134b90615702565b80156113985780601f1061136d57610100808354040283529160200191611398565b820191906000526020600020905b81548152906001019060200180831161137b57829003601f168201915b5050505050908060090180546113ad90615702565b80601f01602080910402602001604051908101604052809291908181526020018280546113d990615702565b80156114265780601f106113fb57610100808354040283529160200191611426565b820191906000526020600020905b81548152906001019060200180831161140957829003601f168201915b505050505090508b565b6006546001600160a01b0316331461145a5760405162461bcd60e51b81526004016109cd90615361565b60005b6013548110156114fa576013818154811061148857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03838116911614156114e85760405162461bcd60e51b81526020600482015260166024820152756d656d626572732065786973747320616c726561647960501b60448201526064016109cd565b806114f281615764565b91505061145d565b50601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b0392909216919091179055565b610c1c8383836040518060200160405280600081525061280d565b6006546001600160a01b031633146115925760405162461bcd60e51b81526004016109cd90615361565b85518751146115d65760405162461bcd60e51b815260206004820152601060248201526f30b93930bcb99010b9b0b6b2903632b760811b60448201526064016109cd565b604051806101a00160405280600060ff168152602001600060ff1681526020018b6001600160801b031681526020018a6001600160801b0316815260200160006001600160801b0316815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182815250600d6000600c5460016116659190615643565b815260208082019290925260409081016000208351815485850151938601516001600160801b03908116620100000271ffffffffffffffffffffffffffffffff00001960ff9687166101000261ff00199790951660ff1990941693909317959095169290921716929092178155606084015160018201805460808701518516600160801b029285166fffffffffffffffffffffffffffffffff19909116179093161790915560a0830151600282015560c08301518051919261172f92600385019290910190614640565b5060e0820151805161174b9160048401916020909101906146a5565b5061010082015180516117689160058401916020909101906146e0565b5061012082015180516117859160068401916020909101906146e0565b5061014082015180516117a29160078401916020909101906146e0565b5061016082015180516117bf9160088401916020909101906146e0565b5061018082015180516117dc9160098401916020909101906146e0565b5050600c8054915060006117ef83615764565b9091555050600c80546000908152600f602052604090819020805460ff19166001179055905490517f77628c9166aca2fc4ccb8b7681fa345c93f54fb929f857d05cfebbfb665bad02916118469190815260200190565b60405180910390a150505050505050505050565b6000818152600260205260408120546001600160a01b03168061099b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109cd565b60006001600160a01b03821661193c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109cd565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119825760405162461bcd60e51b81526004016109cd90615361565b61198c6000613c96565b565b6006546001600160a01b031633146119b85760405162461bcd60e51b81526004016109cd90615361565b6000828152600d60205260409020600c5483118015906119d85750600083115b6119f45760405162461bcd60e51b81526004016109cd9061541e565b60005b6003820154811015611bdc57826001600160a01b0316826003018281548110611a3057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611bca57600382018054611a5d906001906156bf565b81548110611a7b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546003830180546001600160a01b039092169183908110611ab757634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600301805480611b0657634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055600482018054611b3a906001906156bf565b81548110611b5857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826004018281548110611b8657634e487b7160e01b600052603260045260246000fd5b60009182526020909120015560048201805480611bb357634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555b80611bd481615764565b9150506119f7565b50505050565b6000818152600d6020908152604091829020600301805483518184028101840190945280845260609392830182828015610faa57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c275750505050509050919050565b6060600180546109f390615702565b6006546001600160a01b03163314611c895760405162461bcd60e51b81526004016109cd90615361565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b3360009081526014602052604090205460ff1680611cdc57506006546001600160a01b031633145b611cf85760405162461bcd60e51b81526004016109cd906153e7565b600c548211158015611d0a5750600082115b611d265760405162461bcd60e51b81526004016109cd9061533d565b6000918252600f6020526040909120805460ff1916911515919091179055565b6109e0338383613ce8565b6006546001600160a01b03163314611d7b5760405162461bcd60e51b81526004016109cd90615361565b600c548111158015611d8d5750600081115b611da95760405162461bcd60e51b81526004016109cd9061541e565b600081815260116020526040812080549082611dc483615764565b919050559050600a8110611e085760405162461bcd60e51b815260206004820152600b60248201526a44697374726f20646f6e6560a81b60448201526064016109cd565b6000828152600d602052604081206001810154600b549192600160801b9091046001600160801b0316916001600160a01b031663aaae61eb611e4b8660326156a0565b6040516001600160e01b031960e084901b16815260048101919091526032602482015260440160006040518083038186803b158015611e8957600080fd5b505afa158015611e9d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ec59190810190614ac6565b600954909150600090815b6032811015611f61576000848281518110611efb57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060006001600160a01b0316816001600160a01b031614611f4e57611f40868a8684611f308289615643565b611f3b906001615643565b613db7565b83611f4a81615764565b9450505b5080611f5981615764565b915050611ed0565b508160096000828254611f749190615643565b9091555050600185018054839190601090611fa0908490600160801b90046001600160801b0316615621565b82546101009290920a6001600160801b03818102199093169183160217909155865462010000900481169150611fd99084908716615643565b1415611feb57845460ff191660011785555b856009141561205d57600b60009054906101000a90046001600160a01b03166001600160a01b031663b8dea0956040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561204457600080fd5b505af1158015612058573d6000803e3d6000fd5b505050505b50505050505050565b6000828152600d6020526040902060018101548154600c54600160801b9092046001600160801b039081169262010000909204169085118015906120aa5750600085115b6120c65760405162461bcd60e51b81526004016109cd9061541e565b825460ff16156121005760405162461bcd60e51b8152602060048201526005602482015264216c69766560d81b60448201526064016109cd565b6000858152600f602052604090205460ff16156121485760405162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b60448201526064016109cd565b34846001600160801b0316846002015461216291906156a0565b146121985760405162461bcd60e51b815260206004820152600660248201526521707269636560d01b60448201526064016109cd565b6001600160801b0381166121ac8584615621565b6001600160801b031611156121f45760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e7920626f78657360901b60448201526064016109cd565b600183015460008681526010602090815260408083203384529091529020546001600160801b039182169161222c9190871690615643565b11156122635760405162461bcd60e51b81526004016109cd906020808252600490820152632162757960e01b604082015260600190565b60095460005b856001600160801b0316816001600160801b031610156122af5761229d84886001600160801b03841633611f308288615643565b806122a78161573d565b915050612269565b50846001600160801b0316600960008282546122cb9190615643565b90915550506001840180548691906010906122f7908490600160801b90046001600160801b0316615621565b82546101009290920a6001600160801b03818102199093169183160217909155600088815260106020908152604080832033845290915290205461233f925090871690615643565b60008781526010602090815260408083203384529091529020556001600160801b03821661236d8685615621565b6001600160801b0316141561238857835460ff191660011784555b505050505050565b6000818152600e60209081526040808320815180830183528154808252600192830154828601528552600d845282852083516101a081018552815460ff8082168352610100820416828801526001600160801b036201000090910481168287015293820154808516606083810191909152600160801b9091049094166080820152600282015460a082015260038201805486518189028101890190975280875288978897879687968796879692958c959194929360c08601939290919083018282801561248657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612468575b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156124de57602002820191906000526020600020905b8154815260200190600101908083116124ca575b505050505081526020016005820180546124f790615702565b80601f016020809104026020016040519081016040528092919081815260200182805461252390615702565b80156125705780601f1061254557610100808354040283529160200191612570565b820191906000526020600020905b81548152906001019060200180831161255357829003601f168201915b5050505050815260200160068201805461258990615702565b80601f01602080910402602001604051908101604052809291908181526020018280546125b590615702565b80156126025780601f106125d757610100808354040283529160200191612602565b820191906000526020600020905b8154815290600101906020018083116125e557829003601f168201915b5050505050815260200160078201805461261b90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461264790615702565b80156126945780601f1061266957610100808354040283529160200191612694565b820191906000526020600020905b81548152906001019060200180831161267757829003601f168201915b505050505081526020016008820180546126ad90615702565b80601f01602080910402602001604051908101604052809291908181526020018280546126d990615702565b80156127265780601f106126fb57610100808354040283529160200191612726565b820191906000526020600020905b81548152906001019060200180831161270957829003601f168201915b5050505050815260200160098201805461273f90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461276b90615702565b80156127b85780601f1061278d576101008083540402835291602001916127b8565b820191906000526020600020905b81548152906001019060200180831161279b57829003601f168201915b5050505050815250509050816000015182602001518260400151836101000151846101200151856101400151866101600151876101800151995099509950995099509950995099505050919395975091939597565b6128173383613b22565b6128335760405162461bcd60e51b81526004016109cd90615396565b611bdc84848484613e69565b6000818152600e602090815260409182902082518084019093528054808452600190910154918301919091526060919061287857600080fd5b80516000908152600d6020908152604080832081516101a081018352815460ff8082168352610100820416828601526001600160801b036201000090910481168285015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548451818702810187019095528085529194929360c086019390929083018282801561293a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161291c575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561299257602002820191906000526020600020905b81548152602001906001019080831161297e575b505050505081526020016005820180546129ab90615702565b80601f01602080910402602001604051908101604052809291908181526020018280546129d790615702565b8015612a245780601f106129f957610100808354040283529160200191612a24565b820191906000526020600020905b815481529060010190602001808311612a0757829003601f168201915b50505050508152602001600682018054612a3d90615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612a6990615702565b8015612ab65780601f10612a8b57610100808354040283529160200191612ab6565b820191906000526020600020905b815481529060010190602001808311612a9957829003601f168201915b50505050508152602001600782018054612acf90615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612afb90615702565b8015612b485780601f10612b1d57610100808354040283529160200191612b48565b820191906000526020600020905b815481529060010190602001808311612b2b57829003601f168201915b50505050508152602001600882018054612b6190615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8d90615702565b8015612bda5780601f10612baf57610100808354040283529160200191612bda565b820191906000526020600020905b815481529060010190602001808311612bbd57829003601f168201915b50505050508152602001600982018054612bf390615702565b80601f0160208091040260200160405190810160405280929190818152602001828054612c1f90615702565b8015612c6c5780601f10612c4157610100808354040283529160200191612c6c565b820191906000526020600020905b815481529060010190602001808311612c4f57829003601f168201915b5050505050815250509050612c968260200151826101200151836101000151846101400151610c21565b612cc88360000151846020015184604001516001600160801b031685610120015186610160015187610140015161356d565b604051602001612cd992919061516d565b60405160208183030381529060405292505050919050565b6006546001600160a01b03163314612d1b5760405162461bcd60e51b81526004016109cd90615361565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314612d675760405162461bcd60e51b81526004016109cd90615361565b6103e8811115612db95760405162461bcd60e51b815260206004820152601860248201527f7368617265206d7573742062652062656c6f772031303030000000000000000060448201526064016109cd565b60005b601354811015610c1c57826001600160a01b031660138281548110612df157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415612e28576001600160a01b03831660009081526012602052604090208290555b80612e3281615764565b915050612dbc565b6006546001600160a01b03163314612e645760405162461bcd60e51b81526004016109cd90615361565b6001600160a01b038116612ec95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109cd565b612ed281613c96565b50565b3360009081526014602052604090205460ff1680612efd57506006546001600160a01b031633145b612f195760405162461bcd60e51b81526004016109cd906153e7565b6000858152600d6020908152604080832081516101a081018352815460ff8082168352610100820416828601526001600160801b036201000090910481168285015260018301548082166060840152600160801b9004166080820152600282015460a08201526003820180548451818702810187019095528085529194929360c0860193909290830182828015612fd957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612fbb575b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561303157602002820191906000526020600020905b81548152602001906001019080831161301d575b5050505050815260200160058201805461304a90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461307690615702565b80156130c35780601f10613098576101008083540402835291602001916130c3565b820191906000526020600020905b8154815290600101906020018083116130a657829003601f168201915b505050505081526020016006820180546130dc90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461310890615702565b80156131555780601f1061312a57610100808354040283529160200191613155565b820191906000526020600020905b81548152906001019060200180831161313857829003601f168201915b5050505050815260200160078201805461316e90615702565b80601f016020809104026020016040519081016040528092919081815260200182805461319a90615702565b80156131e75780601f106131bc576101008083540402835291602001916131e7565b820191906000526020600020905b8154815290600101906020018083116131ca57829003601f168201915b5050505050815260200160088201805461320090615702565b80601f016020809104026020016040519081016040528092919081815260200182805461322c90615702565b80156132795780601f1061324e57610100808354040283529160200191613279565b820191906000526020600020905b81548152906001019060200180831161325c57829003601f168201915b5050505050815260200160098201805461329290615702565b80601f01602080910402602001604051908101604052809291908181526020018280546132be90615702565b801561330b5780601f106132e05761010080835404028352916020019161330b565b820191906000526020600020905b8154815290600101906020018083116132ee57829003601f168201915b5050505050815250509050806000015160ff166001146133565760405162461bcd60e51b81526004016109cd906020808252600490820152636c69766560e01b604082015260600190565b81858560008161337657634e487b7160e01b600052603260045260246000fd5b90506020028101906133889190615585565b9050146133c35760405162461bcd60e51b815260206004820152600960248201526862616420617272617960b81b60448201526064016109cd565b60005b8481101561352f5760005b868660008181106133f257634e487b7160e01b600052603260045260246000fd5b90506020028101906134049190615585565b905081101561351c57600a546001600160a01b031663e56e347986868481811061343e57634e487b7160e01b600052603260045260246000fd5b9050602002013589898681811061346557634e487b7160e01b600052603260045260246000fd5b90506020028101906134779190615585565b8581811061349557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906134aa919061491e565b6040516001600160e01b031960e085901b16815260048101929092526001600160a01b03166024820152604401600060405180830381600087803b1580156134f157600080fd5b505af1158015613505573d6000803e3d6000fd5b50505050808061351490615764565b9150506133d1565b508061352781615764565b9150506133c6565b5060405184815286907fb3e821bfa4e118cf1cac28128930a4e53e59dd51d9e30c95ee100e4d3b0d2ef29060200160405180910390a2505050505050565b60606040518060400160405280601081526020016f222c2261747472696275746573223a5b60801b8152506135a188613e9c565b6135aa86613f04565b6135b385613f4e565b6135bd8a8a613f98565b6040518060400160405280600a815260200169161134b6b0b3b2911d1160b11b8152506135e989614012565b60405180604001604052806002815260200161227d60f01b81525060405160200161361b9897969594939291906150c8565b60405160208183030381529060405290509695505050505050565b6000818152600d60205260409020600c5482118015906136565750600082115b6136725760405162461bcd60e51b81526004016109cd9061533d565b805460ff16600114801561368d57508054610100900460ff16155b6136c75760405162461bcd60e51b815260206004820152600b60248201526a216469737472696275746560a81b60448201526064016109cd565b6136d082614025565b61370b5760405162461bcd60e51b815260206004820152600c60248201526b39bab690109e90189818129760a11b60448201526064016109cd565b805461ff0019166101001781556002810154600182015460009161373f916001600160801b03600160801b909104166156a0565b90506000805b601354811015613826576103e8601260006013848154811061377757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020546137a690856156a0565b6137b09190615680565b9150601381815481106137d357634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f19350505050158015613813573d6000803e3d6000fd5b508061381e81615764565b915050613745565b5060005b60038401548110156138f4576103e884600401828154811061385c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001548461387291906156a0565b61387c9190615680565b91508360030181815481106138a157634e487b7160e01b600052603260045260246000fd5b60009182526020822001546040516001600160a01b039091169184156108fc02918591818181858888f193505050501580156138e1573d6000803e3d6000fd5b50806138ec81615764565b91505061382a565b5050505050565b60006001600160e01b0319821663152a902d60e11b148061099b575061099b825b60006001600160e01b031982166380ac58cd60e01b148061394d57506001600160e01b03198216635b5e139f60e01b145b8061099b57506301ffc9a760e01b6001600160e01b031983161461099b565b6127106001600160601b03821611156139da5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016109cd565b6001600160a01b038216613a305760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016109cd565b604080518082019091526001600160a01b039283168082526001600160601b03929092166020909101819052600780546001600160a01b031916909217909216600160a01b909202919091179055565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613ab58261185a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606082613afa83614111565b604051602001613b0b92919061519c565b604051602081830303815290604052905092915050565b6000818152600260205260408120546001600160a01b0316613b9b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109cd565b6000613ba68361185a565b9050806001600160a01b0316846001600160a01b03161480613bed57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610c945750836001600160a01b0316613c0684610a76565b6001600160a01b031614949350505050565b6000818152600e6020908152604080832081518083018352815480825260019092015481850152908452600f9092529091205460ff1615613c8b5760405162461bcd60e51b815260206004820152600d60248201526c109bde081a5cc81b1bd8dad959609a1b60448201526064016109cd565b611bdc848484614257565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415613d4a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109cd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b604051806040016040528085815260200184876001600160801b0316613ddd9190615643565b613de8906001615643565b90526000828152600e6020908152604090912082518155910151600190910155837f5420392aab8a9f3a70c0145321ff58bc86c3da3596336224396de59f430fc0f5613e3d856001600160801b038916615643565b613e48906001615643565b60408051918252602082018590520160405180910390a26138f482826143f3565b613e74848484613c18565b613e8084848484614536565b611bdc5760405162461bcd60e51b81526004016109cd906152eb565b606060405180606001604052806021815260200161584560219139613ec083614111565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613eee93929190614f63565b6040516020818303038152906040529050919050565b6060604051806060016040528060258152602001615866602591398260405180604001604052806003815260200162089f4b60ea1b815250604051602001613eee93929190614f63565b60606040518060600160405280602481526020016157fd602491398260405180604001604052806003815260200162089f4b60ea1b815250604051602001613eee93929190614f63565b60606040518060600160405280602681526020016157d760269139613fbc84614111565b6040518060400160405280600481526020016301037b3160e51b815250613fe285614111565b60405180604001604052806003815260200162227d5d60e81b815250604051602001613b0b959493929190614fa6565b606081604051602001613eee91906151d9565b6000818152600d6020526040812081805b6013548110156140a857601260006013838154811061406557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020546140949083615643565b9150806140a081615764565b915050614036565b5060005b6004830154811015614105578260040181815481106140db57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826140f19190615643565b9150806140fd81615764565b9150506140ac565b506103e8149392505050565b60608161413657506040805180820190915260018152600360fc1b602082015261099e565b8160005b8115614160578061414a81615764565b91506141599050600a83615680565b915061413a565b60008167ffffffffffffffff81111561418957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156141b3576020820181803683370190505b509050815b851561424e576141c96001826156bf565b905060006141d8600a88615680565b6141e390600a6156a0565b6141ed90886156bf565b6141f890603061565b565b905060008160f81b90508084848151811061422357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350614245600a89615680565b975050506141b8565b50949350505050565b826001600160a01b031661426a8261185a565b6001600160a01b0316146142ce5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109cd565b6001600160a01b0382166143305760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109cd565b61433b600082613a80565b6001600160a01b03831660009081526003602052604081208054600192906143649084906156bf565b90915550506001600160a01b0382166000908152600360205260408120805460019290614392908490615643565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610c1c565b6001600160a01b0382166144495760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109cd565b6000818152600260205260409020546001600160a01b0316156144ae5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109cd565b6001600160a01b03821660009081526003602052604081208054600192906144d7908490615643565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46109e0565b60006001600160a01b0384163b1561463857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061457a903390899088908890600401615216565b602060405180830381600087803b15801561459457600080fd5b505af19250505080156145c4575060408051601f3d908101601f191682019092526145c191810190614b7b565b60015b61461e573d8080156145f2576040519150601f19603f3d011682016040523d82523d6000602084013e6145f7565b606091505b5080516146165760405162461bcd60e51b81526004016109cd906152eb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c94565b506001610c94565b828054828255906000526020600020908101928215614695579160200282015b8281111561469557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614660565b506146a1929150614753565b5090565b828054828255906000526020600020908101928215614695579160200282015b828111156146955782518255916020019190600101906146c5565b8280546146ec90615702565b90600052602060002090601f01602090048101928261470e5760008555614695565b82601f1061472757805160ff1916838001178555614695565b8280016001018555821561469557918201828111156146955782518255916020019190600101906146c5565b5b808211156146a15760008155600101614754565b600067ffffffffffffffff83111561478257614782615795565b614795601f8401601f19166020016155cc565b90508281528383830111156147a957600080fd5b828260208301376000602084830101529392505050565b600082601f8301126147d0578081fd5b813560206147e56147e0836155fd565b6155cc565b8281528181019085830183850287018401881015614801578586fd5b855b85811015614828578135614816816157ab565b84529284019290840190600101614803565b5090979650505050505050565b60008083601f840112614846578182fd5b50813567ffffffffffffffff81111561485d578182fd5b602083019150836020808302850101111561105d57600080fd5b600082601f830112614887578081fd5b813560206148976147e0836155fd565b82815281810190858301838502870184018810156148b3578586fd5b855b85811015614828578135845292840192908401906001016148b5565b8035801515811461099e57600080fd5b600082601f8301126148f1578081fd5b61490083833560208501614768565b9392505050565b80356001600160801b038116811461099e57600080fd5b60006020828403121561492f578081fd5b8135614900816157ab565b6000806040838503121561494c578081fd5b8235614957816157ab565b91506020830135614967816157ab565b809150509250929050565b600080600060608486031215614986578081fd5b8335614991816157ab565b925060208401356149a1816157ab565b929592945050506040919091013590565b600080600080608085870312156149c7578182fd5b84356149d2816157ab565b935060208501356149e2816157ab565b925060408501359150606085013567ffffffffffffffff811115614a04578182fd5b8501601f81018713614a14578182fd5b614a2387823560208401614768565b91505092959194509250565b60008060408385031215614a41578182fd5b8235614a4c816157ab565b9150614a5a602084016148d1565b90509250929050565b60008060408385031215614a75578182fd5b8235614a80816157ab565b946020939093013593505050565b60008060408385031215614aa0578182fd5b8235614aab816157ab565b915060208301356001600160601b0381168114614967578182fd5b60006020808385031215614ad8578182fd5b825167ffffffffffffffff811115614aee578283fd5b8301601f81018513614afe578283fd5b8051614b0c6147e0826155fd565b8181528381019083850185840285018601891015614b28578687fd5b8694505b83851015614b53578051614b3f816157ab565b835260019490940193918501918501614b2c565b50979650505050505050565b600060208284031215614b70578081fd5b8135614900816157c0565b600060208284031215614b8c578081fd5b8151614900816157c0565b6000806000806000806000806000806101408b8d031215614bb6578788fd5b614bbf8b614907565b9950614bcd60208c01614907565b985060408b0135975060608b013567ffffffffffffffff80821115614bf0578788fd5b614bfc8e838f016147c0565b985060808d0135915080821115614c11578788fd5b614c1d8e838f01614877565b975060a08d0135915080821115614c32578687fd5b614c3e8e838f016148e1565b965060c08d0135915080821115614c53578586fd5b614c5f8e838f016148e1565b955060e08d0135915080821115614c74578485fd5b614c808e838f016148e1565b94506101008d0135915080821115614c96578384fd5b614ca28e838f016148e1565b93506101208d0135915080821115614cb8578283fd5b50614cc58d828e016148e1565b9150509295989b9194979a5092959850565b600060208284031215614ce8578081fd5b5035919050565b60008060408385031215614d01578182fd5b823591506020830135614967816157ab565b600080600060608486031215614d27578081fd5b8335925060208401356149a1816157ab565b600080600080600060608688031215614d50578283fd5b85359450602086013567ffffffffffffffff80821115614d6e578485fd5b614d7a89838a01614835565b90965094506040880135915080821115614d92578283fd5b50614d9f88828901614835565b969995985093965092949392505050565b60008060408385031215614dc2578182fd5b82359150614a5a602084016148d1565b60008060008060808587031215614de7578182fd5b84359350602085013567ffffffffffffffff80821115614e05578384fd5b614e11888389016148e1565b94506040870135915080821115614e26578384fd5b614e32888389016148e1565b93506060870135915080821115614e47578283fd5b50614a23878288016148e1565b60008060408385031215614e66578182fd5b82359150614a5a60208401614907565b60008060408385031215614e88578182fd5b50508035926020909101359150565b60008060008060008060c08789031215614eaf578384fd5b863595506020870135945060408701359350606087013567ffffffffffffffff80821115614edb578384fd5b614ee78a838b016148e1565b94506080890135915080821115614efc578384fd5b614f088a838b016148e1565b935060a0890135915080821115614f1d578283fd5b50614f2a89828a016148e1565b9150509295509295509295565b60008151808452614f4f8160208601602086016156d6565b601f01601f19169290920160200192915050565b60008451614f758184602089016156d6565b845190830190614f898183602089016156d6565b8451910190614f9c8183602088016156d6565b0195945050505050565b60008651614fb8818460208b016156d6565b865190830190614fcc818360208b016156d6565b8651910190614fdf818360208a016156d6565b8551910190614ff28183602089016156d6565b84519101906150058183602088016156d6565b01979650505050505050565b600084516150238184602089016156d6565b8451908301906150378183602089016156d6565b845191019061504a8183602088016156d6565b7f4e4654426f7865732061726520612063757261746564206d6f6e74686c79206291019081527f6f78206f66204e465473206f6e20746865206e657765737420676f6c6420737460208201527f616e64617264206f66204e465420746563686e6f6c6f67792e00000000000000604082015260590195945050505050565b6000895160206150db8285838f016156d6565b8a51918401916150ee8184848f016156d6565b8a519201916151008184848e016156d6565b89519201916151128184848d016156d6565b88519201916151248184848c016156d6565b87519201916151368184848b016156d6565b86519201916151488184848a016156d6565b855192019161515a81848489016156d6565b919091019b9a5050505050505050505050565b6000835161517f8184602088016156d6565b8351908301906151938183602088016156d6565b01949350505050565b600083516151ae8184602088016156d6565b61202360f01b90830190815283516151cd8160028401602088016156d6565b01600201949350505050565b60007468747470733a2f2f697066732e696f2f697066732f60581b825282516152098160158501602087016156d6565b9190910160150192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061524990830184614f37565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156152945783516001600160a01b03168352928401929184019160010161526f565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615294578351835292840192918401916001016152bc565b6000602082526149006020830184614f37565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600a908201526924a21010b2bc34b9ba1760b11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601a908201527f4e6f7420617574686f726973656420746f20657865637574652e000000000000604082015260600190565b60208082526009908201526812510808595e1a5cdd60ba1b604082015260600190565b60006101008a83528960208401526001600160801b038916604084015280606084015261547081840189614f37565b905082810360808401526154848188614f37565b905082810360a08401526154988187614f37565b905082810360c08401526154ac8186614f37565b905082810360e08401526154c08185614f37565b9b9a5050505050505050505050565b60ff8c811682528b1660208201526001600160801b038a811660408301528916606082015260006101606001600160801b038a1660808401528860a08401528060c084015261552081840189614f37565b905082810360e08401526155348188614f37565b90508281036101008401526155498187614f37565b905082810361012084015261555e8186614f37565b90508281036101408401526155738185614f37565b9e9d5050505050505050505050505050565b6000808335601e1984360301811261559b578283fd5b83018035915067ffffffffffffffff8211156155b5578283fd5b602090810192508102360382131561105d57600080fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156155f5576155f5615795565b604052919050565b600067ffffffffffffffff82111561561757615617615795565b5060209081020190565b60006001600160801b038083168185168083038211156151935761519361577f565b600082198211156156565761565661577f565b500190565b600060ff821660ff84168060ff038211156156785761567861577f565b019392505050565b60008261569b57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156156ba576156ba61577f565b500290565b6000828210156156d1576156d161577f565b500390565b60005b838110156156f15781810151838201526020016156d9565b83811115611bdc5750506000910152565b60028104600182168061571657607f821691505b6020821081141561573757634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b038083168181141561575a5761575a61577f565b6001019392505050565b60006000198214156157785761577861577f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612ed257600080fd5b6001600160e01b031981168114612ed257600080fdfe7b2274726169745f74797065223a2022626f782065646974696f6e222c2276616c7565223a227b2274726169745f74797065223a2022626f78207468656d65222c2276616c7565223a22646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d65223a227b2274726169745f74797065223a2022626f78206964222c2276616c7565223a227b2274726169745f74797065223a2022626f7820736572696573222c2276616c7565223a22a2646970667358221220ccbd53caab90ea7019048e4e539834b704df0ccbe1cf4cef0d0b5e8215852b3964736f6c63430008020033

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

000000000000000000000000acadaf7fb6156d3c1832c27612611c735babb495

-----Decoded View---------------
Arg [0] : _service (address): 0xACaDaF7FB6156D3c1832c27612611C735baBB495

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000acadaf7fb6156d3c1832c27612611c735babb495


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.