ETH Price: $3,271.45 (+0.68%)
Gas: 1 Gwei

Token

TokyoBraveHeroesSecondGeneration (TBH2G)
 

Overview

Max Total Supply

1,111 TBH2G

Holders

498

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TBH2G
0xc864841c0d02a8a6bf0d022ff2826ed29eff7556
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
TokyoBraveHeroes2G

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : TokyoBraveHeroes2G.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "./lib/ERC721A.sol";
import "./lib/rarible/royalties/contracts/LibPart.sol";
import "./lib/rarible/royalties/contracts/LibRoyaltiesV2.sol";
import "./lib/rarible/royalties/contracts/RoyaltiesV2.sol";

contract TokyoBraveHeroes2G is ERC721A, Ownable, ReentrancyGuard, RoyaltiesV2 {
    mapping(address => uint256) public _whiteLists;
    uint256 private _whiteListCount;

    uint256 public tokenAmount = 0;
    uint256 public wlmintPrice = 0 ether;
    uint256 public mintPrice = 0.03 ether;

    bool public startWhitelistSale = false;
    bool public startPublicSale = false;
    bool public changed = false;

    uint256 private maxMintsWL = 3;
    uint256 private maxMints = 3;
    uint256 private _totalSupply = 1111;
    string private _beforeTokenURI;
    string private _afterTokenPath;

    mapping(address => uint256) public wlMinted;
    mapping(address => uint256) public psMinted;

    // Royality management
    bytes4 public constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    address payable public defaultRoyaltiesReceipientAddress; // This will be set in the constructor
    uint96 public defaultPercentageBasisPoints = 1000; // 10%

    constructor()
        ERC721A(
            "TokyoBraveHeroesSecondGeneration",
            "TBH2G",
            maxMints,
            _totalSupply
        )
    {
        defaultRoyaltiesReceipientAddress = payable(address(this));
    }

    function ownerMint(uint256 amount, address _address) public onlyOwner {
        require((amount + tokenAmount) <= (_totalSupply), "mint failure");

        _safeMint(_address, amount);
        tokenAmount += amount;
    }

    function privateMint(uint256 amount) external payable nonReentrant {
        require(startWhitelistSale, "sale: Paused");
        require(
            _whiteLists[msg.sender] >= wlMinted[msg.sender] + amount,
            "You have no wl left"
        );
        require(maxMintsWL >= amount, "sale: 5 max per tx");
        require(
            maxMintsWL >= wlMinted[msg.sender] + amount,
            "You have no mint left"
        );
        require(msg.value == wlmintPrice * amount, "Value sent is not correct");
        require((amount + tokenAmount) <= (_totalSupply), "mint failure");

        wlMinted[msg.sender] += amount;
        _safeMint(msg.sender, amount);
        tokenAmount += amount;
    }

    function publicMint(uint256 amount) public payable nonReentrant {
        require(startPublicSale, "sale: Paused");
        require(maxMints >= amount, "sale: 10 maxper tx");
        require(
            maxMints >= psMinted[msg.sender] + amount,
            "You have no mint left"
        );
        require(msg.value == mintPrice * amount, "Value sent is not correct");
        require((amount + tokenAmount) <= (_totalSupply), "mint failure");

        psMinted[msg.sender] += amount;
        _safeMint(msg.sender, amount);
        tokenAmount += amount;
    }

    function setwlPrice(uint256 newPrice) external onlyOwner {
        wlmintPrice = newPrice;
    }

    function setPrice(uint256 newPrice) external onlyOwner {
        mintPrice = newPrice;
    }

    function doChange() external onlyOwner {
        changed = true;
    }

    function setWhitelistSale(bool bool_) external onlyOwner {
        startWhitelistSale = bool_;
    }

    function setPublicSale(bool bool_) external onlyOwner {
        startPublicSale = bool_;
    }

    function setBeforeURI(string memory beforeTokenURI_) public onlyOwner {
        _beforeTokenURI = string(
            abi.encodePacked(beforeTokenURI_, "before.json")
        );
    }

    function setAfterURI(string memory afterTokenPath_) public onlyOwner {
        _afterTokenPath = afterTokenPath_;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        if (changed == false) {
            return _beforeTokenURI;
        } else {
            return
                string(
                    abi.encodePacked(
                        _afterTokenPath,
                        Strings.toString(tokenId),
                        ".json"
                    )
                );
        }
    }

    function deleteWL(address addr) public virtual onlyOwner {
        _whiteListCount = _whiteListCount - _whiteLists[addr];
        delete (_whiteLists[addr]);
    }

    function upsertWL(address addr, uint256 maxMint) public virtual onlyOwner {
        _whiteListCount = _whiteListCount - _whiteLists[addr];
        _whiteLists[addr] = maxMint;
        _whiteListCount = _whiteListCount + maxMint;
    }

    function pushMultiWL(address[] memory list) public virtual onlyOwner {
        for (uint256 i = 0; i < list.length; i++) {
            _whiteLists[list[i]] += 1;
            _whiteListCount += 1;
        }
    }

    function pushMultiWLSpecifyNum(address[] memory list, uint256 num)
        public
        virtual
        onlyOwner
    {
        for (uint256 i = 0; i < list.length; i++) {
            _whiteLists[list[i]] += num;
            _whiteListCount += num;
        }
    }

    function getWLCount() public view returns (uint256) {
        return _whiteListCount;
    }

    /**
     * @dev disable Ownerble renounceOwnership
     */
    function renounceOwnership() public override onlyOwner {}

    /**
     * @dev do withdraw eth.
     */
    function withdrawETH() external virtual onlyOwner {
        uint256 royalty = address(this).balance;

        Address.sendValue(payable(owner()), royalty);
    }

    // Copied from ForgottenRunesWarriorsGuild. Thank you dotta ;)
    /**
     * @dev ERC20s should not be sent to this contract, but if someone
     * does, it's nice to be able to recover them
     * @param token IERC20 the token address
     * @param amount uint256 the amount to send
     */
    function forwardERC20s(IERC20 token, uint256 amount) public onlyOwner {
        require(address(msg.sender) != address(0));
        token.transfer(msg.sender, amount);
    }

    // Royality management
    /**
     * @dev set defaultRoyaltiesReceipientAddress
     * @param _defaultRoyaltiesReceipientAddress address New royality receipient address
     */
    function setDefaultRoyaltiesReceipientAddress(
        address payable _defaultRoyaltiesReceipientAddress
    ) public onlyOwner {
        defaultRoyaltiesReceipientAddress = _defaultRoyaltiesReceipientAddress;
    }

    /**
     * @dev set defaultPercentageBasisPoints
     * @param _defaultPercentageBasisPoints uint96 New royality percentagy basis points
     */
    function setDefaultPercentageBasisPoints(
        uint96 _defaultPercentageBasisPoints
    ) public onlyOwner {
        defaultPercentageBasisPoints = _defaultPercentageBasisPoints;
    }

    /**
     * @dev return royality for Rarible
     */
    function getRaribleV2Royalties(uint256)
        external
        view
        override
        returns (LibPart.Part[] memory)
    {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = defaultPercentageBasisPoints;
        _royalties[0].account = defaultRoyaltiesReceipientAddress;
        return _royalties;
    }

    /**
     * @dev return royality in EIP-2981 standard
     * @param _salePrice uint256 sales price of the token royality is calculated
     */
    function royaltyInfo(uint256, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        return (
            defaultRoyaltiesReceipientAddress,
            (_salePrice * defaultPercentageBasisPoints) / 10000
        );
    }

    /**
     * @dev Interface
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A)
        returns (bool)
    {
        if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }
        if (interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 3 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 5 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 1;

    uint256 internal immutable collectionSize;
    uint256 internal immutable maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) private _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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
     * `maxBatchSize` refers to how much a minter can mint at a time.
     * `collectionSize_` refers to how many tokens are in the collection.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_,
        uint256 collectionSize_
    ) {
        require(
            collectionSize_ > 0,
            "ERC721A: collection must have a nonzero supply"
        );
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
        collectionSize = collectionSize_;
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    function _numberMinted(address owner) internal view returns (uint256) {
        require(
            owner != address(0),
            "ERC721A: number minted query for the zero address"
        );
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

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

        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: 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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, "");
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - there must be `quantity` tokens remaining unminted in the total collection.
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );
            updatedIndex++;
        }

        currentIndex = updatedIndex;
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(
            isApprovedOrOwner,
            "ERC721A: transfer caller is not owner nor approved"
        );

        require(
            prevOwnership.addr == from,
            "ERC721A: transfer from incorrect owner"
        );
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                    prevOwnership.addr,
                    prevOwnership.startTimestamp
                );
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > collectionSize - 1) {
            endIndex = collectionSize - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(
                    ownership.addr,
                    ownership.startTimestamp
                );
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 6 of 17 : LibPart.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    struct Part {
        address payable account;
        uint96 value;
    }

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

File 7 of 17 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./LibPart.sol";

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

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

File 9 of 17 : 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 10 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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 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 11 of 17 : 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 12 of 17 : 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 13 of 17 : 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 14 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_INTERFACE_ID_ERC2981","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_whiteLists","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"changed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultPercentageBasisPoints","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltiesReceipientAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"deleteWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"doChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forwardERC20s","outputs":[],"stateMutability":"nonpayable","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":"","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWLCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"amount","type":"uint256"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"psMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"name":"pushMultiWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"pushMultiWLSpecifyNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"afterTokenPath_","type":"string"}],"name":"setAfterURI","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":"string","name":"beforeTokenURI_","type":"string"}],"name":"setBeforeURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_defaultPercentageBasisPoints","type":"uint96"}],"name":"setDefaultPercentageBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_defaultRoyaltiesReceipientAddress","type":"address"}],"name":"setDefaultRoyaltiesReceipientAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setwlPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startWhitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"tokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"upsertWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wlMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlmintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c0604052600160005560006007556000600c556000600d55666a94d74f430000600e556000600f60006101000a81548160ff0219169083151502179055506000600f60016101000a81548160ff0219169083151502179055506000600f60026101000a81548160ff021916908315150217905550600360105560036011556104576012556103e8601760146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550348015620000c457600080fd5b506040518060400160405280602081526020017f546f6b796f42726176654865726f65735365636f6e6447656e65726174696f6e8152506040518060400160405280600581526020017f5442483247000000000000000000000000000000000000000000000000000000815250601154601254600081116200017d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000174906200047d565b60405180910390fd5b60008211620001c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ba9062000515565b60405180910390fd5b8360019080519060200190620001db92919062000346565b508260029080519060200190620001f492919062000346565b508160a08181525050806080818152505050505050620002296200021d6200027860201b60201c565b6200028060201b60201c565b600160098190555030601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200059c565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003549062000566565b90600052602060002090601f016020900481019282620003785760008555620003c4565b82601f106200039357805160ff1916838001178555620003c4565b82800160010185558215620003c4579182015b82811115620003c3578251825591602001919060010190620003a6565b5b509050620003d39190620003d7565b5090565b5b80821115620003f2576000816000905550600101620003d8565b5090565b600082825260208201905092915050565b7f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060008201527f6e6f6e7a65726f20737570706c79000000000000000000000000000000000000602082015250565b600062000465602e83620003f6565b9150620004728262000407565b604082019050919050565b60006020820190508181036000830152620004988162000456565b9050919050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b6000620004fd602783620003f6565b91506200050a826200049f565b604082019050919050565b600060208201905081810360008301526200053081620004ee565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200057f57607f821691505b6020821081141562000596576200059562000537565b5b50919050565b60805160a051615da2620005cd60003960008181612edd01528181612f060152613675015260005050615da26000f3fe60806040526004361061031a5760003560e01c80638da5cb5b116101ab578063ca7ce3ec116100f7578063e086e5ec11610095578063eec7faa11161006f578063eec7faa114610bc5578063f2fde38b14610bf0578063fd0af96114610c19578063ff44e91514610c445761031a565b8063e086e5ec14610b48578063e985e9c514610b5f578063ed00c02d14610b9c5761031a565b8063cd3a8e27116100d1578063cd3a8e2714610a9e578063d0ec7fd414610ac9578063d52c57e014610af4578063d7224ba014610b1d5761031a565b8063ca7ce3ec146109fb578063cad96cca14610a24578063cc7aba7f14610a615761031a565b806397a6a8ed11610164578063abfe40a81161013e578063abfe40a814610962578063b88d4fde1461097e578063c87b56dd146109a7578063c93b5f34146109e45761031a565b806397a6a8ed146108e35780639a6a96701461090e578063a22cb465146109395761031a565b80638da5cb5b146107d557806391b7f5ed1461080057806391dcbd1014610829578063942958f41461085257806395d89b411461088f5780639727151a146108ba5761031a565b806342842e0e1161026a578063687889ab1161022357806378a92380116101fd57806378a923801461071d578063862d37241461075a57806386e24724146107835780638cffd16a146107ac5761031a565b8063687889ab146106a057806370a08231146106c9578063715018a6146107065761031a565b806342842e0e146105805780634f6ccce7146105a9578063547bef2c146105e65780635aca1bb61461060f5780636352211e146106385780636817c76c146106755761031a565b80630d3a6aee116102d757806323b872dd116102b157806323b872dd146104c05780632a55205a146104e95780632db11544146105275780632f745c59146105435761031a565b80630d3a6aee146104415780630e13a7c01461046c57806318160ddd146104955761031a565b806301ffc9a71461031f578063021f70ae1461035c57806306fdde0314610385578063081812fc146103b0578063095ea7b3146103ed5780630c1c972a14610416575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190613c3d565b610c6f565b6040516103539190613c85565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613cfe565b610d2e565b005b34801561039157600080fd5b5061039a610dcf565b6040516103a79190613dc4565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613e1c565b610e61565b6040516103e49190613e58565b60405180910390f35b3480156103f957600080fd5b50610414600480360381019061040f9190613e73565b610ee6565b005b34801561042257600080fd5b5061042b610fff565b6040516104389190613c85565b60405180910390f35b34801561044d57600080fd5b50610456611012565b6040516104639190613c85565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e9190613e1c565b611025565b005b3480156104a157600080fd5b506104aa611037565b6040516104b79190613ec2565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e29190613edd565b61104d565b005b3480156104f557600080fd5b50610510600480360381019061050b9190613f30565b61105d565b60405161051e929190613f70565b60405180910390f35b610541600480360381019061053c9190613e1c565b6110cf565b005b34801561054f57600080fd5b5061056a60048036038101906105659190613e73565b611365565b6040516105779190613ec2565b60405180910390f35b34801561058c57600080fd5b506105a760048036038101906105a29190613edd565b611563565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190613e1c565b611583565b6040516105dd9190613ec2565b60405180910390f35b3480156105f257600080fd5b5061060d60048036038101906106089190613e73565b6115d6565b005b34801561061b57600080fd5b5061063660048036038101906106319190613fc5565b61168d565b005b34801561064457600080fd5b5061065f600480360381019061065a9190613e1c565b6116b2565b60405161066c9190613e58565b60405180910390f35b34801561068157600080fd5b5061068a6116c8565b6040516106979190613ec2565b60405180910390f35b3480156106ac57600080fd5b506106c760048036038101906106c2919061413a565b6116ce565b005b3480156106d557600080fd5b506106f060048036038101906106eb9190613cfe565b611783565b6040516106fd9190613ec2565b60405180910390f35b34801561071257600080fd5b5061071b61186c565b005b34801561072957600080fd5b50610744600480360381019061073f9190613cfe565b611876565b6040516107519190613ec2565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c919061424b565b61188e565b005b34801561078f57600080fd5b506107aa60048036038101906107a59190614294565b6118b0565b005b3480156107b857600080fd5b506107d360048036038101906107ce919061431b565b611966565b005b3480156107e157600080fd5b506107ea6119b2565b6040516107f79190613e58565b60405180910390f35b34801561080c57600080fd5b5061082760048036038101906108229190613e1c565b6119dc565b005b34801561083557600080fd5b50610850600480360381019061084b919061424b565b6119ee565b005b34801561085e57600080fd5b5061087960048036038101906108749190613cfe565b611a2f565b6040516108869190613ec2565b60405180910390f35b34801561089b57600080fd5b506108a4611a47565b6040516108b19190613dc4565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190614386565b611ad9565b005b3480156108ef57600080fd5b506108f8611bad565b60405161090591906143d5565b60405180910390f35b34801561091a57600080fd5b50610923611bb8565b6040516109309190614417565b60405180910390f35b34801561094557600080fd5b50610960600480360381019061095b9190614432565b611bd6565b005b61097c60048036038101906109779190613e1c565b611d57565b005b34801561098a57600080fd5b506109a560048036038101906109a09190614513565b6120b9565b005b3480156109b357600080fd5b506109ce60048036038101906109c99190613e1c565b612115565b6040516109db9190613dc4565b60405180910390f35b3480156109f057600080fd5b506109f9612240565b005b348015610a0757600080fd5b50610a226004803603810190610a1d9190613fc5565b612265565b005b348015610a3057600080fd5b50610a4b6004803603810190610a469190613e1c565b61228a565b604051610a589190614692565b60405180910390f35b348015610a6d57600080fd5b50610a886004803603810190610a839190613cfe565b6123c0565b604051610a959190613ec2565b60405180910390f35b348015610aaa57600080fd5b50610ab36123d8565b604051610ac091906146c3565b60405180910390f35b348015610ad557600080fd5b50610ade6123fe565b604051610aeb9190613ec2565b60405180910390f35b348015610b0057600080fd5b50610b1b6004803603810190610b1691906146de565b612408565b005b348015610b2957600080fd5b50610b32612489565b604051610b3f9190613ec2565b60405180910390f35b348015610b5457600080fd5b50610b5d61248f565b005b348015610b6b57600080fd5b50610b866004803603810190610b81919061471e565b6124b0565b604051610b939190613c85565b60405180910390f35b348015610ba857600080fd5b50610bc36004803603810190610bbe919061478a565b612544565b005b348015610bd157600080fd5b50610bda612580565b604051610be79190613ec2565b60405180910390f35b348015610bfc57600080fd5b50610c176004803603810190610c129190613cfe565b612586565b005b348015610c2557600080fd5b50610c2e61260a565b604051610c3b9190613ec2565b60405180910390f35b348015610c5057600080fd5b50610c59612610565b604051610c669190613c85565b60405180910390f35b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610cc75760019050610d29565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610d1d5760019050610d29565b610d2682612623565b90505b919050565b610d3661276d565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b54610d8391906147e6565b600b81905550600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b606060018054610dde90614849565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0a90614849565b8015610e575780601f10610e2c57610100808354040283529160200191610e57565b820191906000526020600020905b815481529060010190602001808311610e3a57829003601f168201915b5050505050905090565b6000610e6c826127eb565b610eab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea2906148ed565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ef1826116b2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f599061497f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f816127f8565b73ffffffffffffffffffffffffffffffffffffffff161480610fb05750610faf81610faa6127f8565b6124b0565b5b610fef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe690614a11565b60405180910390fd5b610ffa838383612800565b505050565b600f60019054906101000a900460ff1681565b600f60029054906101000a900460ff1681565b61102d61276d565b80600d8190555050565b6000600160005461104891906147e6565b905090565b6110588383836128b2565b505050565b600080601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710601760149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856110ba9190614a31565b6110c49190614aba565b915091509250929050565b60026009541415611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90614b37565b60405180910390fd5b6002600981905550600f60019054906101000a900460ff1661116c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116390614ba3565b60405180910390fd5b8060115410156111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a890614c0f565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111fc9190614c2f565b6011541015611240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123790614cd1565b60405180910390fd5b80600e5461124e9190614a31565b341461128f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128690614d3d565b60405180910390fd5b601254600c54826112a09190614c2f565b11156112e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d890614da9565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113309190614c2f565b925050819055506113413382612e6b565b80600c60008282546113539190614c2f565b92505081905550600160098190555050565b600061137083611783565b82106113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a890614e3b565b60405180910390fd5b60006113bb611037565b905060008060005b83811015611521576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146114b557806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561150d57868414156114fe57819550505050505061155d565b838061150990614e5b565b9450505b50808061151990614e5b565b9150506113c3565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490614f16565b60405180910390fd5b92915050565b61157e838383604051806020016040528060008152506120b9565b505050565b600061158d611037565b82106115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c590614fa8565b60405180910390fd5b819050919050565b6115de61276d565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b5461162b91906147e6565b600b8190555080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600b546116839190614c2f565b600b819055505050565b61169561276d565b80600f60016101000a81548160ff02191690831515021790555050565b60006116bd82612e89565b600001519050919050565b600e5481565b6116d661276d565b60005b825181101561177e5781600a60008584815181106116fa576116f9614fc8565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461174b9190614c2f565b9250508190555081600b60008282546117649190614c2f565b92505081905550808061177690614e5b565b9150506116d9565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117eb90615069565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61187461276d565b565b60156020528060005260406000206000915090505481565b61189661276d565b80601490805190602001906118ac929190613ab6565b5050565b6118b861276d565b60005b8151811015611962576001600a60008484815181106118dd576118dc614fc8565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461192e9190614c2f565b925050819055506001600b60008282546119489190614c2f565b92505081905550808061195a90614e5b565b9150506118bb565b5050565b61196e61276d565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119e461276d565b80600e8190555050565b6119f661276d565b80604051602001611a079190615111565b60405160208183030381529060405260139080519060200190611a2b929190613ab6565b5050565b60166020528060005260406000206000915090505481565b606060028054611a5690614849565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8290614849565b8015611acf5780601f10611aa457610100808354040283529160200191611acf565b820191906000526020600020905b815481529060010190602001808311611ab257829003601f168201915b5050505050905090565b611ae161276d565b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611b1b57600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611b56929190613f70565b602060405180830381600087803b158015611b7057600080fd5b505af1158015611b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba89190615148565b505050565b632a55205a60e01b81565b601760149054906101000a90046bffffffffffffffffffffffff1681565b611bde6127f8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c43906151c1565b60405180910390fd5b8060066000611c596127f8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d066127f8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d4b9190613c85565b60405180910390a35050565b60026009541415611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9490614b37565b60405180910390fd5b6002600981905550600f60009054906101000a900460ff16611df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611deb90614ba3565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e3f9190614c2f565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb79061522d565b60405180910390fd5b806010541015611f05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efc90615299565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f509190614c2f565b6010541015611f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8b90614cd1565b60405180910390fd5b80600d54611fa29190614a31565b3414611fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fda90614d3d565b60405180910390fd5b601254600c5482611ff49190614c2f565b1115612035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202c90614da9565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120849190614c2f565b925050819055506120953382612e6b565b80600c60008282546120a79190614c2f565b92505081905550600160098190555050565b6120c48484846128b2565b6120d08484848461308c565b61210f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121069061532b565b60405180910390fd5b50505050565b6060612120826127eb565b61215f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612156906153bd565b60405180910390fd5b60001515600f60029054906101000a900460ff161515141561220d576013805461218890614849565b80601f01602080910402602001604051908101604052809291908181526020018280546121b490614849565b80156122015780601f106121d657610100808354040283529160200191612201565b820191906000526020600020905b8154815290600101906020018083116121e457829003601f168201915b5050505050905061223b565b601461221883613223565b6040516020016122299291906154bd565b60405160208183030381529060405290505b919050565b61224861276d565b6001600f60026101000a81548160ff021916908315150217905550565b61226d61276d565b80600f60006101000a81548160ff02191690831515021790555050565b60606000600167ffffffffffffffff8111156122a9576122a8613ff7565b5b6040519080825280602002602001820160405280156122e257816020015b6122cf613b3c565b8152602001906001900390816122c75790505b509050601760149054906101000a90046bffffffffffffffffffffffff168160008151811061231457612313614fc8565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061237957612378614fc8565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b600a6020528060005260406000206000915090505481565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600b54905090565b61241061276d565b601254600c54836124219190614c2f565b1115612462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245990614da9565b60405180910390fd5b61246c8183612e6b565b81600c600082825461247e9190614c2f565b925050819055505050565b60075481565b61249761276d565b60004790506124ad6124a76119b2565b82613384565b50565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61254c61276d565b80601760146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b600c5481565b61258e61276d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f59061555e565b60405180910390fd5b61260781613478565b50565b600d5481565b600f60009054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126ee57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061275657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061276657506127658261353e565b5b9050919050565b6127756127f8565b73ffffffffffffffffffffffffffffffffffffffff166127936119b2565b73ffffffffffffffffffffffffffffffffffffffff16146127e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e0906155ca565b60405180910390fd5b565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006128bd82612e89565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166128e46127f8565b73ffffffffffffffffffffffffffffffffffffffff16148061294057506129096127f8565b73ffffffffffffffffffffffffffffffffffffffff1661292884610e61565b73ffffffffffffffffffffffffffffffffffffffff16145b8061295c575061295b82600001516129566127f8565b6124b0565b5b90508061299e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129959061565c565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612a10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a07906156ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7790615780565b60405180910390fd5b612a8d85858560016135a8565b612a9d6000848460000151612800565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612b0b91906157bc565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612baf91906157f0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612cb59190614c2f565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612dfb57612d2b816127eb565b15612dfa576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e6386868660016135ae565b505050505050565b612e858282604051806020016040528060008152506135b4565b5050565b612e91613b7a565b612e9a826127eb565b612ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed0906158a8565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008310612f3d5760017f000000000000000000000000000000000000000000000000000000000000000084612f3091906147e6565b612f3a9190614c2f565b90505b60008390505b81811061304b576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461303757809350505050613087565b508080613043906158c8565b915050612f43565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307e90615964565b60405180910390fd5b919050565b60006130ad8473ffffffffffffffffffffffffffffffffffffffff16613a93565b15613216578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d66127f8565b8786866040518563ffffffff1660e01b81526004016130f894939291906159d9565b602060405180830381600087803b15801561311257600080fd5b505af192505050801561314357506040513d601f19601f820116820180604052508101906131409190615a3a565b60015b6131c6573d8060008114613173576040519150601f19603f3d011682016040523d82523d6000602084013e613178565b606091505b506000815114156131be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b59061532b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061321b565b600190505b949350505050565b6060600082141561326b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061337f565b600082905060005b6000821461329d57808061328690614e5b565b915050600a826132969190614aba565b9150613273565b60008167ffffffffffffffff8111156132b9576132b8613ff7565b5b6040519080825280601f01601f1916602001820160405280156132eb5781602001600182028036833780820191505090505b5090505b600085146133785760018261330491906147e6565b9150600a856133139190615a67565b603061331f9190614c2f565b60f81b81838151811061333557613334614fc8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856133719190614aba565b94506132ef565b8093505050505b919050565b804710156133c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133be90615ae4565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516133ed90615b35565b60006040518083038185875af1925050503d806000811461342a576040519150601f19603f3d011682016040523d82523d6000602084013e61342f565b606091505b5050905080613473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346a90615bbc565b60405180910390fd5b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561362a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362190615c4e565b60405180910390fd5b613633816127eb565b15613673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366a90615cba565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008311156136d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136cd90615d4c565b60405180910390fd5b6136e360008583866135a8565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516137e091906157f0565b6fffffffffffffffffffffffffffffffff16815260200185836020015161380791906157f0565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613a7657818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a16600088848861308c565b613a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a4c9061532b565b60405180910390fd5b8180613a6090614e5b565b9250508080613a6e90614e5b565b9150506139a5565b5080600081905550613a8b60008785886135ae565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613ac290614849565b90600052602060002090601f016020900481019282613ae45760008555613b2b565b82601f10613afd57805160ff1916838001178555613b2b565b82800160010185558215613b2b579182015b82811115613b2a578251825591602001919060010190613b0f565b5b509050613b389190613bb4565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613bcd576000816000905550600101613bb5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c1a81613be5565b8114613c2557600080fd5b50565b600081359050613c3781613c11565b92915050565b600060208284031215613c5357613c52613bdb565b5b6000613c6184828501613c28565b91505092915050565b60008115159050919050565b613c7f81613c6a565b82525050565b6000602082019050613c9a6000830184613c76565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ccb82613ca0565b9050919050565b613cdb81613cc0565b8114613ce657600080fd5b50565b600081359050613cf881613cd2565b92915050565b600060208284031215613d1457613d13613bdb565b5b6000613d2284828501613ce9565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d65578082015181840152602081019050613d4a565b83811115613d74576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d9682613d2b565b613da08185613d36565b9350613db0818560208601613d47565b613db981613d7a565b840191505092915050565b60006020820190508181036000830152613dde8184613d8b565b905092915050565b6000819050919050565b613df981613de6565b8114613e0457600080fd5b50565b600081359050613e1681613df0565b92915050565b600060208284031215613e3257613e31613bdb565b5b6000613e4084828501613e07565b91505092915050565b613e5281613cc0565b82525050565b6000602082019050613e6d6000830184613e49565b92915050565b60008060408385031215613e8a57613e89613bdb565b5b6000613e9885828601613ce9565b9250506020613ea985828601613e07565b9150509250929050565b613ebc81613de6565b82525050565b6000602082019050613ed76000830184613eb3565b92915050565b600080600060608486031215613ef657613ef5613bdb565b5b6000613f0486828701613ce9565b9350506020613f1586828701613ce9565b9250506040613f2686828701613e07565b9150509250925092565b60008060408385031215613f4757613f46613bdb565b5b6000613f5585828601613e07565b9250506020613f6685828601613e07565b9150509250929050565b6000604082019050613f856000830185613e49565b613f926020830184613eb3565b9392505050565b613fa281613c6a565b8114613fad57600080fd5b50565b600081359050613fbf81613f99565b92915050565b600060208284031215613fdb57613fda613bdb565b5b6000613fe984828501613fb0565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61402f82613d7a565b810181811067ffffffffffffffff8211171561404e5761404d613ff7565b5b80604052505050565b6000614061613bd1565b905061406d8282614026565b919050565b600067ffffffffffffffff82111561408d5761408c613ff7565b5b602082029050602081019050919050565b600080fd5b60006140b66140b184614072565b614057565b905080838252602082019050602084028301858111156140d9576140d861409e565b5b835b8181101561410257806140ee8882613ce9565b8452602084019350506020810190506140db565b5050509392505050565b600082601f83011261412157614120613ff2565b5b81356141318482602086016140a3565b91505092915050565b6000806040838503121561415157614150613bdb565b5b600083013567ffffffffffffffff81111561416f5761416e613be0565b5b61417b8582860161410c565b925050602061418c85828601613e07565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156141b6576141b5613ff7565b5b6141bf82613d7a565b9050602081019050919050565b82818337600083830152505050565b60006141ee6141e98461419b565b614057565b90508281526020810184848401111561420a57614209614196565b5b6142158482856141cc565b509392505050565b600082601f83011261423257614231613ff2565b5b81356142428482602086016141db565b91505092915050565b60006020828403121561426157614260613bdb565b5b600082013567ffffffffffffffff81111561427f5761427e613be0565b5b61428b8482850161421d565b91505092915050565b6000602082840312156142aa576142a9613bdb565b5b600082013567ffffffffffffffff8111156142c8576142c7613be0565b5b6142d48482850161410c565b91505092915050565b60006142e882613ca0565b9050919050565b6142f8816142dd565b811461430357600080fd5b50565b600081359050614315816142ef565b92915050565b60006020828403121561433157614330613bdb565b5b600061433f84828501614306565b91505092915050565b600061435382613cc0565b9050919050565b61436381614348565b811461436e57600080fd5b50565b6000813590506143808161435a565b92915050565b6000806040838503121561439d5761439c613bdb565b5b60006143ab85828601614371565b92505060206143bc85828601613e07565b9150509250929050565b6143cf81613be5565b82525050565b60006020820190506143ea60008301846143c6565b92915050565b60006bffffffffffffffffffffffff82169050919050565b614411816143f0565b82525050565b600060208201905061442c6000830184614408565b92915050565b6000806040838503121561444957614448613bdb565b5b600061445785828601613ce9565b925050602061446885828601613fb0565b9150509250929050565b600067ffffffffffffffff82111561448d5761448c613ff7565b5b61449682613d7a565b9050602081019050919050565b60006144b66144b184614472565b614057565b9050828152602081018484840111156144d2576144d1614196565b5b6144dd8482856141cc565b509392505050565b600082601f8301126144fa576144f9613ff2565b5b813561450a8482602086016144a3565b91505092915050565b6000806000806080858703121561452d5761452c613bdb565b5b600061453b87828801613ce9565b945050602061454c87828801613ce9565b935050604061455d87828801613e07565b925050606085013567ffffffffffffffff81111561457e5761457d613be0565b5b61458a878288016144e5565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6145cb816142dd565b82525050565b6145da816143f0565b82525050565b6040820160008201516145f660008501826145c2565b50602082015161460960208501826145d1565b50505050565b600061461b83836145e0565b60408301905092915050565b6000602082019050919050565b600061463f82614596565b61464981856145a1565b9350614654836145b2565b8060005b8381101561468557815161466c888261460f565b975061467783614627565b925050600181019050614658565b5085935050505092915050565b600060208201905081810360008301526146ac8184614634565b905092915050565b6146bd816142dd565b82525050565b60006020820190506146d860008301846146b4565b92915050565b600080604083850312156146f5576146f4613bdb565b5b600061470385828601613e07565b925050602061471485828601613ce9565b9150509250929050565b6000806040838503121561473557614734613bdb565b5b600061474385828601613ce9565b925050602061475485828601613ce9565b9150509250929050565b614767816143f0565b811461477257600080fd5b50565b6000813590506147848161475e565b92915050565b6000602082840312156147a05761479f613bdb565b5b60006147ae84828501614775565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147f182613de6565b91506147fc83613de6565b92508282101561480f5761480e6147b7565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061486157607f821691505b602082108114156148755761487461481a565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006148d7602d83613d36565b91506148e28261487b565b604082019050919050565b60006020820190508181036000830152614906816148ca565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000614969602283613d36565b91506149748261490d565b604082019050919050565b600060208201905081810360008301526149988161495c565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006149fb603983613d36565b9150614a068261499f565b604082019050919050565b60006020820190508181036000830152614a2a816149ee565b9050919050565b6000614a3c82613de6565b9150614a4783613de6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a8057614a7f6147b7565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614ac582613de6565b9150614ad083613de6565b925082614ae057614adf614a8b565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614b21601f83613d36565b9150614b2c82614aeb565b602082019050919050565b60006020820190508181036000830152614b5081614b14565b9050919050565b7f73616c653a205061757365640000000000000000000000000000000000000000600082015250565b6000614b8d600c83613d36565b9150614b9882614b57565b602082019050919050565b60006020820190508181036000830152614bbc81614b80565b9050919050565b7f73616c653a203130206d61787065722074780000000000000000000000000000600082015250565b6000614bf9601283613d36565b9150614c0482614bc3565b602082019050919050565b60006020820190508181036000830152614c2881614bec565b9050919050565b6000614c3a82613de6565b9150614c4583613de6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c7a57614c796147b7565b5b828201905092915050565b7f596f752068617665206e6f206d696e74206c6566740000000000000000000000600082015250565b6000614cbb601583613d36565b9150614cc682614c85565b602082019050919050565b60006020820190508181036000830152614cea81614cae565b9050919050565b7f56616c75652073656e74206973206e6f7420636f727265637400000000000000600082015250565b6000614d27601983613d36565b9150614d3282614cf1565b602082019050919050565b60006020820190508181036000830152614d5681614d1a565b9050919050565b7f6d696e74206661696c7572650000000000000000000000000000000000000000600082015250565b6000614d93600c83613d36565b9150614d9e82614d5d565b602082019050919050565b60006020820190508181036000830152614dc281614d86565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e25602283613d36565b9150614e3082614dc9565b604082019050919050565b60006020820190508181036000830152614e5481614e18565b9050919050565b6000614e6682613de6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e9957614e986147b7565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614f00602e83613d36565b9150614f0b82614ea4565b604082019050919050565b60006020820190508181036000830152614f2f81614ef3565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614f92602383613d36565b9150614f9d82614f36565b604082019050919050565b60006020820190508181036000830152614fc181614f85565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000615053602b83613d36565b915061505e82614ff7565b604082019050919050565b6000602082019050818103600083015261508281615046565b9050919050565b600081905092915050565b600061509f82613d2b565b6150a98185615089565b93506150b9818560208601613d47565b80840191505092915050565b7f6265666f72652e6a736f6e000000000000000000000000000000000000000000600082015250565b60006150fb600b83615089565b9150615106826150c5565b600b82019050919050565b600061511d8284615094565b9150615128826150ee565b915081905092915050565b60008151905061514281613f99565b92915050565b60006020828403121561515e5761515d613bdb565b5b600061516c84828501615133565b91505092915050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006151ab601a83613d36565b91506151b682615175565b602082019050919050565b600060208201905081810360008301526151da8161519e565b9050919050565b7f596f752068617665206e6f20776c206c65667400000000000000000000000000600082015250565b6000615217601383613d36565b9150615222826151e1565b602082019050919050565b600060208201905081810360008301526152468161520a565b9050919050565b7f73616c653a2035206d6178207065722074780000000000000000000000000000600082015250565b6000615283601283613d36565b915061528e8261524d565b602082019050919050565b600060208201905081810360008301526152b281615276565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000615315603383613d36565b9150615320826152b9565b604082019050919050565b6000602082019050818103600083015261534481615308565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006153a7602f83613d36565b91506153b28261534b565b604082019050919050565b600060208201905081810360008301526153d68161539a565b9050919050565b60008190508160005260206000209050919050565b600081546153ff81614849565b6154098186615089565b94506001821660008114615424576001811461543557615468565b60ff19831686528186019350615468565b61543e856153dd565b60005b8381101561546057815481890152600182019150602081019050615441565b838801955050505b50505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006154a7600583615089565b91506154b282615471565b600582019050919050565b60006154c982856153f2565b91506154d58284615094565b91506154e08261549a565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615548602683613d36565b9150615553826154ec565b604082019050919050565b600060208201905081810360008301526155778161553b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006155b4602083613d36565b91506155bf8261557e565b602082019050919050565b600060208201905081810360008301526155e3816155a7565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615646603283613d36565b9150615651826155ea565b604082019050919050565b6000602082019050818103600083015261567581615639565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006156d8602683613d36565b91506156e38261567c565b604082019050919050565b60006020820190508181036000830152615707816156cb565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061576a602583613d36565b91506157758261570e565b604082019050919050565b600060208201905081810360008301526157998161575d565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006157c7826157a0565b91506157d2836157a0565b9250828210156157e5576157e46147b7565b5b828203905092915050565b60006157fb826157a0565b9150615806836157a0565b9250826fffffffffffffffffffffffffffffffff0382111561582b5761582a6147b7565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615892602a83613d36565b915061589d82615836565b604082019050919050565b600060208201905081810360008301526158c181615885565b9050919050565b60006158d382613de6565b915060008214156158e7576158e66147b7565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b600061594e602f83613d36565b9150615959826158f2565b604082019050919050565b6000602082019050818103600083015261597d81615941565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159ab82615984565b6159b5818561598f565b93506159c5818560208601613d47565b6159ce81613d7a565b840191505092915050565b60006080820190506159ee6000830187613e49565b6159fb6020830186613e49565b615a086040830185613eb3565b8181036060830152615a1a81846159a0565b905095945050505050565b600081519050615a3481613c11565b92915050565b600060208284031215615a5057615a4f613bdb565b5b6000615a5e84828501615a25565b91505092915050565b6000615a7282613de6565b9150615a7d83613de6565b925082615a8d57615a8c614a8b565b5b828206905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615ace601d83613d36565b9150615ad982615a98565b602082019050919050565b60006020820190508181036000830152615afd81615ac1565b9050919050565b600081905092915050565b50565b6000615b1f600083615b04565b9150615b2a82615b0f565b600082019050919050565b6000615b4082615b12565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615ba6603a83613d36565b9150615bb182615b4a565b604082019050919050565b60006020820190508181036000830152615bd581615b99565b9050919050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615c38602183613d36565b9150615c4382615bdc565b604082019050919050565b60006020820190508181036000830152615c6781615c2b565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615ca4601d83613d36565b9150615caf82615c6e565b602082019050919050565b60006020820190508181036000830152615cd381615c97565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6000615d36602283613d36565b9150615d4182615cda565b604082019050919050565b60006020820190508181036000830152615d6581615d29565b905091905056fea2646970667358221220dc7d87a2143b9982a80182636b7ccd5832b88ca91a0756eba7b4dbe8e8c532ce64736f6c63430008090033

Deployed Bytecode

0x60806040526004361061031a5760003560e01c80638da5cb5b116101ab578063ca7ce3ec116100f7578063e086e5ec11610095578063eec7faa11161006f578063eec7faa114610bc5578063f2fde38b14610bf0578063fd0af96114610c19578063ff44e91514610c445761031a565b8063e086e5ec14610b48578063e985e9c514610b5f578063ed00c02d14610b9c5761031a565b8063cd3a8e27116100d1578063cd3a8e2714610a9e578063d0ec7fd414610ac9578063d52c57e014610af4578063d7224ba014610b1d5761031a565b8063ca7ce3ec146109fb578063cad96cca14610a24578063cc7aba7f14610a615761031a565b806397a6a8ed11610164578063abfe40a81161013e578063abfe40a814610962578063b88d4fde1461097e578063c87b56dd146109a7578063c93b5f34146109e45761031a565b806397a6a8ed146108e35780639a6a96701461090e578063a22cb465146109395761031a565b80638da5cb5b146107d557806391b7f5ed1461080057806391dcbd1014610829578063942958f41461085257806395d89b411461088f5780639727151a146108ba5761031a565b806342842e0e1161026a578063687889ab1161022357806378a92380116101fd57806378a923801461071d578063862d37241461075a57806386e24724146107835780638cffd16a146107ac5761031a565b8063687889ab146106a057806370a08231146106c9578063715018a6146107065761031a565b806342842e0e146105805780634f6ccce7146105a9578063547bef2c146105e65780635aca1bb61461060f5780636352211e146106385780636817c76c146106755761031a565b80630d3a6aee116102d757806323b872dd116102b157806323b872dd146104c05780632a55205a146104e95780632db11544146105275780632f745c59146105435761031a565b80630d3a6aee146104415780630e13a7c01461046c57806318160ddd146104955761031a565b806301ffc9a71461031f578063021f70ae1461035c57806306fdde0314610385578063081812fc146103b0578063095ea7b3146103ed5780630c1c972a14610416575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190613c3d565b610c6f565b6040516103539190613c85565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613cfe565b610d2e565b005b34801561039157600080fd5b5061039a610dcf565b6040516103a79190613dc4565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613e1c565b610e61565b6040516103e49190613e58565b60405180910390f35b3480156103f957600080fd5b50610414600480360381019061040f9190613e73565b610ee6565b005b34801561042257600080fd5b5061042b610fff565b6040516104389190613c85565b60405180910390f35b34801561044d57600080fd5b50610456611012565b6040516104639190613c85565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e9190613e1c565b611025565b005b3480156104a157600080fd5b506104aa611037565b6040516104b79190613ec2565b60405180910390f35b3480156104cc57600080fd5b506104e760048036038101906104e29190613edd565b61104d565b005b3480156104f557600080fd5b50610510600480360381019061050b9190613f30565b61105d565b60405161051e929190613f70565b60405180910390f35b610541600480360381019061053c9190613e1c565b6110cf565b005b34801561054f57600080fd5b5061056a60048036038101906105659190613e73565b611365565b6040516105779190613ec2565b60405180910390f35b34801561058c57600080fd5b506105a760048036038101906105a29190613edd565b611563565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190613e1c565b611583565b6040516105dd9190613ec2565b60405180910390f35b3480156105f257600080fd5b5061060d60048036038101906106089190613e73565b6115d6565b005b34801561061b57600080fd5b5061063660048036038101906106319190613fc5565b61168d565b005b34801561064457600080fd5b5061065f600480360381019061065a9190613e1c565b6116b2565b60405161066c9190613e58565b60405180910390f35b34801561068157600080fd5b5061068a6116c8565b6040516106979190613ec2565b60405180910390f35b3480156106ac57600080fd5b506106c760048036038101906106c2919061413a565b6116ce565b005b3480156106d557600080fd5b506106f060048036038101906106eb9190613cfe565b611783565b6040516106fd9190613ec2565b60405180910390f35b34801561071257600080fd5b5061071b61186c565b005b34801561072957600080fd5b50610744600480360381019061073f9190613cfe565b611876565b6040516107519190613ec2565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c919061424b565b61188e565b005b34801561078f57600080fd5b506107aa60048036038101906107a59190614294565b6118b0565b005b3480156107b857600080fd5b506107d360048036038101906107ce919061431b565b611966565b005b3480156107e157600080fd5b506107ea6119b2565b6040516107f79190613e58565b60405180910390f35b34801561080c57600080fd5b5061082760048036038101906108229190613e1c565b6119dc565b005b34801561083557600080fd5b50610850600480360381019061084b919061424b565b6119ee565b005b34801561085e57600080fd5b5061087960048036038101906108749190613cfe565b611a2f565b6040516108869190613ec2565b60405180910390f35b34801561089b57600080fd5b506108a4611a47565b6040516108b19190613dc4565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190614386565b611ad9565b005b3480156108ef57600080fd5b506108f8611bad565b60405161090591906143d5565b60405180910390f35b34801561091a57600080fd5b50610923611bb8565b6040516109309190614417565b60405180910390f35b34801561094557600080fd5b50610960600480360381019061095b9190614432565b611bd6565b005b61097c60048036038101906109779190613e1c565b611d57565b005b34801561098a57600080fd5b506109a560048036038101906109a09190614513565b6120b9565b005b3480156109b357600080fd5b506109ce60048036038101906109c99190613e1c565b612115565b6040516109db9190613dc4565b60405180910390f35b3480156109f057600080fd5b506109f9612240565b005b348015610a0757600080fd5b50610a226004803603810190610a1d9190613fc5565b612265565b005b348015610a3057600080fd5b50610a4b6004803603810190610a469190613e1c565b61228a565b604051610a589190614692565b60405180910390f35b348015610a6d57600080fd5b50610a886004803603810190610a839190613cfe565b6123c0565b604051610a959190613ec2565b60405180910390f35b348015610aaa57600080fd5b50610ab36123d8565b604051610ac091906146c3565b60405180910390f35b348015610ad557600080fd5b50610ade6123fe565b604051610aeb9190613ec2565b60405180910390f35b348015610b0057600080fd5b50610b1b6004803603810190610b1691906146de565b612408565b005b348015610b2957600080fd5b50610b32612489565b604051610b3f9190613ec2565b60405180910390f35b348015610b5457600080fd5b50610b5d61248f565b005b348015610b6b57600080fd5b50610b866004803603810190610b81919061471e565b6124b0565b604051610b939190613c85565b60405180910390f35b348015610ba857600080fd5b50610bc36004803603810190610bbe919061478a565b612544565b005b348015610bd157600080fd5b50610bda612580565b604051610be79190613ec2565b60405180910390f35b348015610bfc57600080fd5b50610c176004803603810190610c129190613cfe565b612586565b005b348015610c2557600080fd5b50610c2e61260a565b604051610c3b9190613ec2565b60405180910390f35b348015610c5057600080fd5b50610c59612610565b604051610c669190613c85565b60405180910390f35b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610cc75760019050610d29565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610d1d5760019050610d29565b610d2682612623565b90505b919050565b610d3661276d565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b54610d8391906147e6565b600b81905550600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b606060018054610dde90614849565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0a90614849565b8015610e575780601f10610e2c57610100808354040283529160200191610e57565b820191906000526020600020905b815481529060010190602001808311610e3a57829003601f168201915b5050505050905090565b6000610e6c826127eb565b610eab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea2906148ed565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ef1826116b2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f599061497f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f816127f8565b73ffffffffffffffffffffffffffffffffffffffff161480610fb05750610faf81610faa6127f8565b6124b0565b5b610fef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe690614a11565b60405180910390fd5b610ffa838383612800565b505050565b600f60019054906101000a900460ff1681565b600f60029054906101000a900460ff1681565b61102d61276d565b80600d8190555050565b6000600160005461104891906147e6565b905090565b6110588383836128b2565b505050565b600080601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710601760149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856110ba9190614a31565b6110c49190614aba565b915091509250929050565b60026009541415611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c90614b37565b60405180910390fd5b6002600981905550600f60019054906101000a900460ff1661116c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116390614ba3565b60405180910390fd5b8060115410156111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a890614c0f565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111fc9190614c2f565b6011541015611240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123790614cd1565b60405180910390fd5b80600e5461124e9190614a31565b341461128f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128690614d3d565b60405180910390fd5b601254600c54826112a09190614c2f565b11156112e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d890614da9565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113309190614c2f565b925050819055506113413382612e6b565b80600c60008282546113539190614c2f565b92505081905550600160098190555050565b600061137083611783565b82106113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a890614e3b565b60405180910390fd5b60006113bb611037565b905060008060005b83811015611521576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146114b557806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561150d57868414156114fe57819550505050505061155d565b838061150990614e5b565b9450505b50808061151990614e5b565b9150506113c3565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490614f16565b60405180910390fd5b92915050565b61157e838383604051806020016040528060008152506120b9565b505050565b600061158d611037565b82106115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c590614fa8565b60405180910390fd5b819050919050565b6115de61276d565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b5461162b91906147e6565b600b8190555080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600b546116839190614c2f565b600b819055505050565b61169561276d565b80600f60016101000a81548160ff02191690831515021790555050565b60006116bd82612e89565b600001519050919050565b600e5481565b6116d661276d565b60005b825181101561177e5781600a60008584815181106116fa576116f9614fc8565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461174b9190614c2f565b9250508190555081600b60008282546117649190614c2f565b92505081905550808061177690614e5b565b9150506116d9565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117eb90615069565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61187461276d565b565b60156020528060005260406000206000915090505481565b61189661276d565b80601490805190602001906118ac929190613ab6565b5050565b6118b861276d565b60005b8151811015611962576001600a60008484815181106118dd576118dc614fc8565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461192e9190614c2f565b925050819055506001600b60008282546119489190614c2f565b92505081905550808061195a90614e5b565b9150506118bb565b5050565b61196e61276d565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119e461276d565b80600e8190555050565b6119f661276d565b80604051602001611a079190615111565b60405160208183030381529060405260139080519060200190611a2b929190613ab6565b5050565b60166020528060005260406000206000915090505481565b606060028054611a5690614849565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8290614849565b8015611acf5780601f10611aa457610100808354040283529160200191611acf565b820191906000526020600020905b815481529060010190602001808311611ab257829003601f168201915b5050505050905090565b611ae161276d565b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611b1b57600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611b56929190613f70565b602060405180830381600087803b158015611b7057600080fd5b505af1158015611b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba89190615148565b505050565b632a55205a60e01b81565b601760149054906101000a90046bffffffffffffffffffffffff1681565b611bde6127f8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c43906151c1565b60405180910390fd5b8060066000611c596127f8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d066127f8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d4b9190613c85565b60405180910390a35050565b60026009541415611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9490614b37565b60405180910390fd5b6002600981905550600f60009054906101000a900460ff16611df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611deb90614ba3565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e3f9190614c2f565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb79061522d565b60405180910390fd5b806010541015611f05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efc90615299565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f509190614c2f565b6010541015611f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8b90614cd1565b60405180910390fd5b80600d54611fa29190614a31565b3414611fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fda90614d3d565b60405180910390fd5b601254600c5482611ff49190614c2f565b1115612035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202c90614da9565b60405180910390fd5b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120849190614c2f565b925050819055506120953382612e6b565b80600c60008282546120a79190614c2f565b92505081905550600160098190555050565b6120c48484846128b2565b6120d08484848461308c565b61210f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121069061532b565b60405180910390fd5b50505050565b6060612120826127eb565b61215f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612156906153bd565b60405180910390fd5b60001515600f60029054906101000a900460ff161515141561220d576013805461218890614849565b80601f01602080910402602001604051908101604052809291908181526020018280546121b490614849565b80156122015780601f106121d657610100808354040283529160200191612201565b820191906000526020600020905b8154815290600101906020018083116121e457829003601f168201915b5050505050905061223b565b601461221883613223565b6040516020016122299291906154bd565b60405160208183030381529060405290505b919050565b61224861276d565b6001600f60026101000a81548160ff021916908315150217905550565b61226d61276d565b80600f60006101000a81548160ff02191690831515021790555050565b60606000600167ffffffffffffffff8111156122a9576122a8613ff7565b5b6040519080825280602002602001820160405280156122e257816020015b6122cf613b3c565b8152602001906001900390816122c75790505b509050601760149054906101000a90046bffffffffffffffffffffffff168160008151811061231457612313614fc8565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061237957612378614fc8565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b600a6020528060005260406000206000915090505481565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600b54905090565b61241061276d565b601254600c54836124219190614c2f565b1115612462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245990614da9565b60405180910390fd5b61246c8183612e6b565b81600c600082825461247e9190614c2f565b925050819055505050565b60075481565b61249761276d565b60004790506124ad6124a76119b2565b82613384565b50565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61254c61276d565b80601760146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b600c5481565b61258e61276d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f59061555e565b60405180910390fd5b61260781613478565b50565b600d5481565b600f60009054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126ee57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061275657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061276657506127658261353e565b5b9050919050565b6127756127f8565b73ffffffffffffffffffffffffffffffffffffffff166127936119b2565b73ffffffffffffffffffffffffffffffffffffffff16146127e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e0906155ca565b60405180910390fd5b565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006128bd82612e89565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166128e46127f8565b73ffffffffffffffffffffffffffffffffffffffff16148061294057506129096127f8565b73ffffffffffffffffffffffffffffffffffffffff1661292884610e61565b73ffffffffffffffffffffffffffffffffffffffff16145b8061295c575061295b82600001516129566127f8565b6124b0565b5b90508061299e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129959061565c565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612a10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a07906156ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7790615780565b60405180910390fd5b612a8d85858560016135a8565b612a9d6000848460000151612800565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612b0b91906157bc565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612baf91906157f0565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612cb59190614c2f565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612dfb57612d2b816127eb565b15612dfa576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e6386868660016135ae565b505050505050565b612e858282604051806020016040528060008152506135b4565b5050565b612e91613b7a565b612e9a826127eb565b612ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed0906158a8565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000038310612f3d5760017f000000000000000000000000000000000000000000000000000000000000000384612f3091906147e6565b612f3a9190614c2f565b90505b60008390505b81811061304b576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461303757809350505050613087565b508080613043906158c8565b915050612f43565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307e90615964565b60405180910390fd5b919050565b60006130ad8473ffffffffffffffffffffffffffffffffffffffff16613a93565b15613216578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d66127f8565b8786866040518563ffffffff1660e01b81526004016130f894939291906159d9565b602060405180830381600087803b15801561311257600080fd5b505af192505050801561314357506040513d601f19601f820116820180604052508101906131409190615a3a565b60015b6131c6573d8060008114613173576040519150601f19603f3d011682016040523d82523d6000602084013e613178565b606091505b506000815114156131be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b59061532b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061321b565b600190505b949350505050565b6060600082141561326b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061337f565b600082905060005b6000821461329d57808061328690614e5b565b915050600a826132969190614aba565b9150613273565b60008167ffffffffffffffff8111156132b9576132b8613ff7565b5b6040519080825280601f01601f1916602001820160405280156132eb5781602001600182028036833780820191505090505b5090505b600085146133785760018261330491906147e6565b9150600a856133139190615a67565b603061331f9190614c2f565b60f81b81838151811061333557613334614fc8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856133719190614aba565b94506132ef565b8093505050505b919050565b804710156133c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133be90615ae4565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516133ed90615b35565b60006040518083038185875af1925050503d806000811461342a576040519150601f19603f3d011682016040523d82523d6000602084013e61342f565b606091505b5050905080613473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346a90615bbc565b60405180910390fd5b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561362a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362190615c4e565b60405180910390fd5b613633816127eb565b15613673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366a90615cba565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000038311156136d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136cd90615d4c565b60405180910390fd5b6136e360008583866135a8565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516137e091906157f0565b6fffffffffffffffffffffffffffffffff16815260200185836020015161380791906157f0565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015613a7657818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a16600088848861308c565b613a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a4c9061532b565b60405180910390fd5b8180613a6090614e5b565b9250508080613a6e90614e5b565b9150506139a5565b5080600081905550613a8b60008785886135ae565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613ac290614849565b90600052602060002090601f016020900481019282613ae45760008555613b2b565b82601f10613afd57805160ff1916838001178555613b2b565b82800160010185558215613b2b579182015b82811115613b2a578251825591602001919060010190613b0f565b5b509050613b389190613bb4565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613bcd576000816000905550600101613bb5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c1a81613be5565b8114613c2557600080fd5b50565b600081359050613c3781613c11565b92915050565b600060208284031215613c5357613c52613bdb565b5b6000613c6184828501613c28565b91505092915050565b60008115159050919050565b613c7f81613c6a565b82525050565b6000602082019050613c9a6000830184613c76565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ccb82613ca0565b9050919050565b613cdb81613cc0565b8114613ce657600080fd5b50565b600081359050613cf881613cd2565b92915050565b600060208284031215613d1457613d13613bdb565b5b6000613d2284828501613ce9565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d65578082015181840152602081019050613d4a565b83811115613d74576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d9682613d2b565b613da08185613d36565b9350613db0818560208601613d47565b613db981613d7a565b840191505092915050565b60006020820190508181036000830152613dde8184613d8b565b905092915050565b6000819050919050565b613df981613de6565b8114613e0457600080fd5b50565b600081359050613e1681613df0565b92915050565b600060208284031215613e3257613e31613bdb565b5b6000613e4084828501613e07565b91505092915050565b613e5281613cc0565b82525050565b6000602082019050613e6d6000830184613e49565b92915050565b60008060408385031215613e8a57613e89613bdb565b5b6000613e9885828601613ce9565b9250506020613ea985828601613e07565b9150509250929050565b613ebc81613de6565b82525050565b6000602082019050613ed76000830184613eb3565b92915050565b600080600060608486031215613ef657613ef5613bdb565b5b6000613f0486828701613ce9565b9350506020613f1586828701613ce9565b9250506040613f2686828701613e07565b9150509250925092565b60008060408385031215613f4757613f46613bdb565b5b6000613f5585828601613e07565b9250506020613f6685828601613e07565b9150509250929050565b6000604082019050613f856000830185613e49565b613f926020830184613eb3565b9392505050565b613fa281613c6a565b8114613fad57600080fd5b50565b600081359050613fbf81613f99565b92915050565b600060208284031215613fdb57613fda613bdb565b5b6000613fe984828501613fb0565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61402f82613d7a565b810181811067ffffffffffffffff8211171561404e5761404d613ff7565b5b80604052505050565b6000614061613bd1565b905061406d8282614026565b919050565b600067ffffffffffffffff82111561408d5761408c613ff7565b5b602082029050602081019050919050565b600080fd5b60006140b66140b184614072565b614057565b905080838252602082019050602084028301858111156140d9576140d861409e565b5b835b8181101561410257806140ee8882613ce9565b8452602084019350506020810190506140db565b5050509392505050565b600082601f83011261412157614120613ff2565b5b81356141318482602086016140a3565b91505092915050565b6000806040838503121561415157614150613bdb565b5b600083013567ffffffffffffffff81111561416f5761416e613be0565b5b61417b8582860161410c565b925050602061418c85828601613e07565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156141b6576141b5613ff7565b5b6141bf82613d7a565b9050602081019050919050565b82818337600083830152505050565b60006141ee6141e98461419b565b614057565b90508281526020810184848401111561420a57614209614196565b5b6142158482856141cc565b509392505050565b600082601f83011261423257614231613ff2565b5b81356142428482602086016141db565b91505092915050565b60006020828403121561426157614260613bdb565b5b600082013567ffffffffffffffff81111561427f5761427e613be0565b5b61428b8482850161421d565b91505092915050565b6000602082840312156142aa576142a9613bdb565b5b600082013567ffffffffffffffff8111156142c8576142c7613be0565b5b6142d48482850161410c565b91505092915050565b60006142e882613ca0565b9050919050565b6142f8816142dd565b811461430357600080fd5b50565b600081359050614315816142ef565b92915050565b60006020828403121561433157614330613bdb565b5b600061433f84828501614306565b91505092915050565b600061435382613cc0565b9050919050565b61436381614348565b811461436e57600080fd5b50565b6000813590506143808161435a565b92915050565b6000806040838503121561439d5761439c613bdb565b5b60006143ab85828601614371565b92505060206143bc85828601613e07565b9150509250929050565b6143cf81613be5565b82525050565b60006020820190506143ea60008301846143c6565b92915050565b60006bffffffffffffffffffffffff82169050919050565b614411816143f0565b82525050565b600060208201905061442c6000830184614408565b92915050565b6000806040838503121561444957614448613bdb565b5b600061445785828601613ce9565b925050602061446885828601613fb0565b9150509250929050565b600067ffffffffffffffff82111561448d5761448c613ff7565b5b61449682613d7a565b9050602081019050919050565b60006144b66144b184614472565b614057565b9050828152602081018484840111156144d2576144d1614196565b5b6144dd8482856141cc565b509392505050565b600082601f8301126144fa576144f9613ff2565b5b813561450a8482602086016144a3565b91505092915050565b6000806000806080858703121561452d5761452c613bdb565b5b600061453b87828801613ce9565b945050602061454c87828801613ce9565b935050604061455d87828801613e07565b925050606085013567ffffffffffffffff81111561457e5761457d613be0565b5b61458a878288016144e5565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6145cb816142dd565b82525050565b6145da816143f0565b82525050565b6040820160008201516145f660008501826145c2565b50602082015161460960208501826145d1565b50505050565b600061461b83836145e0565b60408301905092915050565b6000602082019050919050565b600061463f82614596565b61464981856145a1565b9350614654836145b2565b8060005b8381101561468557815161466c888261460f565b975061467783614627565b925050600181019050614658565b5085935050505092915050565b600060208201905081810360008301526146ac8184614634565b905092915050565b6146bd816142dd565b82525050565b60006020820190506146d860008301846146b4565b92915050565b600080604083850312156146f5576146f4613bdb565b5b600061470385828601613e07565b925050602061471485828601613ce9565b9150509250929050565b6000806040838503121561473557614734613bdb565b5b600061474385828601613ce9565b925050602061475485828601613ce9565b9150509250929050565b614767816143f0565b811461477257600080fd5b50565b6000813590506147848161475e565b92915050565b6000602082840312156147a05761479f613bdb565b5b60006147ae84828501614775565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147f182613de6565b91506147fc83613de6565b92508282101561480f5761480e6147b7565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061486157607f821691505b602082108114156148755761487461481a565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006148d7602d83613d36565b91506148e28261487b565b604082019050919050565b60006020820190508181036000830152614906816148ca565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000614969602283613d36565b91506149748261490d565b604082019050919050565b600060208201905081810360008301526149988161495c565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006149fb603983613d36565b9150614a068261499f565b604082019050919050565b60006020820190508181036000830152614a2a816149ee565b9050919050565b6000614a3c82613de6565b9150614a4783613de6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a8057614a7f6147b7565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614ac582613de6565b9150614ad083613de6565b925082614ae057614adf614a8b565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614b21601f83613d36565b9150614b2c82614aeb565b602082019050919050565b60006020820190508181036000830152614b5081614b14565b9050919050565b7f73616c653a205061757365640000000000000000000000000000000000000000600082015250565b6000614b8d600c83613d36565b9150614b9882614b57565b602082019050919050565b60006020820190508181036000830152614bbc81614b80565b9050919050565b7f73616c653a203130206d61787065722074780000000000000000000000000000600082015250565b6000614bf9601283613d36565b9150614c0482614bc3565b602082019050919050565b60006020820190508181036000830152614c2881614bec565b9050919050565b6000614c3a82613de6565b9150614c4583613de6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c7a57614c796147b7565b5b828201905092915050565b7f596f752068617665206e6f206d696e74206c6566740000000000000000000000600082015250565b6000614cbb601583613d36565b9150614cc682614c85565b602082019050919050565b60006020820190508181036000830152614cea81614cae565b9050919050565b7f56616c75652073656e74206973206e6f7420636f727265637400000000000000600082015250565b6000614d27601983613d36565b9150614d3282614cf1565b602082019050919050565b60006020820190508181036000830152614d5681614d1a565b9050919050565b7f6d696e74206661696c7572650000000000000000000000000000000000000000600082015250565b6000614d93600c83613d36565b9150614d9e82614d5d565b602082019050919050565b60006020820190508181036000830152614dc281614d86565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e25602283613d36565b9150614e3082614dc9565b604082019050919050565b60006020820190508181036000830152614e5481614e18565b9050919050565b6000614e6682613de6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e9957614e986147b7565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614f00602e83613d36565b9150614f0b82614ea4565b604082019050919050565b60006020820190508181036000830152614f2f81614ef3565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614f92602383613d36565b9150614f9d82614f36565b604082019050919050565b60006020820190508181036000830152614fc181614f85565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000615053602b83613d36565b915061505e82614ff7565b604082019050919050565b6000602082019050818103600083015261508281615046565b9050919050565b600081905092915050565b600061509f82613d2b565b6150a98185615089565b93506150b9818560208601613d47565b80840191505092915050565b7f6265666f72652e6a736f6e000000000000000000000000000000000000000000600082015250565b60006150fb600b83615089565b9150615106826150c5565b600b82019050919050565b600061511d8284615094565b9150615128826150ee565b915081905092915050565b60008151905061514281613f99565b92915050565b60006020828403121561515e5761515d613bdb565b5b600061516c84828501615133565b91505092915050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006151ab601a83613d36565b91506151b682615175565b602082019050919050565b600060208201905081810360008301526151da8161519e565b9050919050565b7f596f752068617665206e6f20776c206c65667400000000000000000000000000600082015250565b6000615217601383613d36565b9150615222826151e1565b602082019050919050565b600060208201905081810360008301526152468161520a565b9050919050565b7f73616c653a2035206d6178207065722074780000000000000000000000000000600082015250565b6000615283601283613d36565b915061528e8261524d565b602082019050919050565b600060208201905081810360008301526152b281615276565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000615315603383613d36565b9150615320826152b9565b604082019050919050565b6000602082019050818103600083015261534481615308565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006153a7602f83613d36565b91506153b28261534b565b604082019050919050565b600060208201905081810360008301526153d68161539a565b9050919050565b60008190508160005260206000209050919050565b600081546153ff81614849565b6154098186615089565b94506001821660008114615424576001811461543557615468565b60ff19831686528186019350615468565b61543e856153dd565b60005b8381101561546057815481890152600182019150602081019050615441565b838801955050505b50505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006154a7600583615089565b91506154b282615471565b600582019050919050565b60006154c982856153f2565b91506154d58284615094565b91506154e08261549a565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615548602683613d36565b9150615553826154ec565b604082019050919050565b600060208201905081810360008301526155778161553b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006155b4602083613d36565b91506155bf8261557e565b602082019050919050565b600060208201905081810360008301526155e3816155a7565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615646603283613d36565b9150615651826155ea565b604082019050919050565b6000602082019050818103600083015261567581615639565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006156d8602683613d36565b91506156e38261567c565b604082019050919050565b60006020820190508181036000830152615707816156cb565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061576a602583613d36565b91506157758261570e565b604082019050919050565b600060208201905081810360008301526157998161575d565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006157c7826157a0565b91506157d2836157a0565b9250828210156157e5576157e46147b7565b5b828203905092915050565b60006157fb826157a0565b9150615806836157a0565b9250826fffffffffffffffffffffffffffffffff0382111561582b5761582a6147b7565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615892602a83613d36565b915061589d82615836565b604082019050919050565b600060208201905081810360008301526158c181615885565b9050919050565b60006158d382613de6565b915060008214156158e7576158e66147b7565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b600061594e602f83613d36565b9150615959826158f2565b604082019050919050565b6000602082019050818103600083015261597d81615941565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159ab82615984565b6159b5818561598f565b93506159c5818560208601613d47565b6159ce81613d7a565b840191505092915050565b60006080820190506159ee6000830187613e49565b6159fb6020830186613e49565b615a086040830185613eb3565b8181036060830152615a1a81846159a0565b905095945050505050565b600081519050615a3481613c11565b92915050565b600060208284031215615a5057615a4f613bdb565b5b6000615a5e84828501615a25565b91505092915050565b6000615a7282613de6565b9150615a7d83613de6565b925082615a8d57615a8c614a8b565b5b828206905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615ace601d83613d36565b9150615ad982615a98565b602082019050919050565b60006020820190508181036000830152615afd81615ac1565b9050919050565b600081905092915050565b50565b6000615b1f600083615b04565b9150615b2a82615b0f565b600082019050919050565b6000615b4082615b12565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615ba6603a83613d36565b9150615bb182615b4a565b604082019050919050565b60006020820190508181036000830152615bd581615b99565b9050919050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615c38602183613d36565b9150615c4382615bdc565b604082019050919050565b60006020820190508181036000830152615c6781615c2b565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615ca4601d83613d36565b9150615caf82615c6e565b602082019050919050565b60006020820190508181036000830152615cd381615c97565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6000615d36602283613d36565b9150615d4182615cda565b604082019050919050565b60006020820190508181036000830152615d6581615d29565b905091905056fea2646970667358221220dc7d87a2143b9982a80182636b7ccd5832b88ca91a0756eba7b4dbe8e8c532ce64736f6c63430008090033

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.