ETH Price: $3,390.34 (+1.28%)

Token

Every Icon (Icon)
 

Overview

Max Total Supply

512 Icon

Holders

301

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A re-imagining of Every Icon, John F. Simon Jr.'s seminal web-based software art work first released in 1997. This blockchain-native, on-chain expression was created by John F. Simon Jr. and divergence, in collaboration with FingerprintsDAO and e•a•t•}works Learn more at https://everyicon.xyz

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

Contract Source Code Verified (Exact Match)

Contract Name:
EveryIcon

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 32 : EveryIcon.sol
// SPDX-License-Identifier: UNLICENCED
// Implementation Copyright 2021, the author; All rights reserved
//
// This contract is an on-chain implementation of a concept created and
// developed by John F Simon Jr in partnership with e•a•t•works and
// @fingerprintsDAO
pragma solidity 0.8.10;

import "./EveryIconLib.sol";
import "base64-sol/base64.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721CommonEnumerable.sol";
import "@divergencetech/ethier/contracts/sales/LinearDutchAuction.sol";
import "@divergencetech/ethier/contracts/utils/DynamicBuffer.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/// @title Every Icon
/// @author @divergenceharri (@divergence_art)
contract EveryIcon is ERC721CommonEnumerable, LinearDutchAuction {
    using DynamicBuffer for bytes;
    using EveryIconLib for EveryIconLib.Repository;
    using Strings for uint256;

    /// @notice Contracts containing base icons from which designs are built.
    EveryIconLib.Repository private repo;

    constructor(
        string memory name,
        string memory symbol,
        EveryIconLib.Repository memory repo_,
        address[] memory payees,
        uint256[] memory shares
    )
        ERC721CommonEnumerable(name, symbol)
        LinearDutchAuction(
            LinearDutchAuction.DutchAuctionConfig({
                startPoint: 0, // disabled upon deployment
                startPrice: 5.12 ether,
                unit: AuctionIntervalUnit.Time,
                decreaseInterval: 300, // 5 minutes
                decreaseSize: 0.128 ether,
                numDecreases: 36
            }),
            0.512 ether,
            Seller.SellerConfig({
                totalInventory: 512,
                maxPerAddress: 0, // unlimited
                maxPerTx: 1,
                freeQuota: 42,
                reserveFreeQuota: true,
                lockTotalInventory: true,
                lockFreeQuota: true
            }),
            payable(0)
        )
    {
        setRepository(repo_);
        setBeneficiary(payable(new PaymentSplitter(payees, shares)));
    }

    /**** TOKEN AND SALES CONTROLS ****/

    /// @dev The current cost of a single mint can be fetched with cost(1).
    function buy() external payable {
        Seller._purchase(msg.sender, 1);
    }

    /// @dev Flag to signal permanent locking of the icon repository.
    bool public repositoryLocked;

    /// @dev Require that icon repository isn't locked yet.
    modifier repositoryUnlocked() {
        require(!repositoryLocked, "Repository locked");
        _;
    }

    /// @dev Sets addresses of icon-repository contracts.
    function setRepository(EveryIconLib.Repository memory repo_)
        public
        onlyOwner
        repositoryUnlocked
    {
        repo = repo_;
    }

    /// @dev Permanently locks the icon repository addresses.
    function lockRepository() external onlyOwner repositoryUnlocked {
        repositoryLocked = true;
    }

    /// @dev Base URI for returning iframe address in tokenURI().
    string public animationURIBase;

    /// @dev Sets current animationURIBase.
    function setAnimationURIBase(string memory base) external onlyOwner {
        animationURIBase = base;
    }

    /// @notice Hash of transaction in which front-end code is archived for
    /// on-chain provenance.
    bytes32 public codeStorageTxHash;

    /// @dev Sets codeStorageTxHash for front-code archival.
    function setCodeStorageTxHash(bytes32 txHash) external onlyOwner {
        codeStorageTxHash = txHash;
    }

    /// @notice Returns metadata as a JSON-encoded data URI.
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        bytes memory buf = DynamicBuffer.allocate(2**16);
        bytes memory tokenIdStr = bytes(tokenId.toString());

        buf.appendSafe("{");
        buf.appendSafe('"name":"Every Icon #');
        buf.appendSafe(tokenIdStr);
        buf.appendSafe('","image":"data:image/svg+xml,');
        buf.appendSafe(renderSVG(tokenId, 0));
        buf.appendSafe('","animation_url":"');
        buf.appendSafe(bytes(animationURIBase));
        buf.appendSafe(tokenIdStr);
        buf.appendSafe('"}');

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(buf)
                )
            );
    }

    /// @dev Required override for LinearDutchAuction's underlying Seller;
    /// effectively the minting function.
    function _handlePurchase(
        address to,
        uint256 num,
        bool
    ) internal override {
        for (uint256 i = 0; i < num; i++) {
            _safeMint(to, totalSupply());
            EveryIconLib.Token memory token;
            token.combMethod = INVALID_COMB_METHOD;
            tokens.push(token);
            mintingBlocks.push(
                uint32(block.number & EveryIconLib.MINTING_BLOCK_MASK)
            );
        }
    }

    /**** EVERY ICON-SPECIFIC FUNCTIONS ****/

    /// @notice Metadata describing every token's icon. The block in which a
    /// token is minted is also encoded in the image.
    EveryIconLib.Token[] public tokens;
    uint32[] public mintingBlocks;

    /// @notice Used to identify an unset EveryIconLib.Token. All new instances
    /// have this value.
    uint8 private constant INVALID_COMB_METHOD = 255;

    /// @notice Checks whether a token has already had its icon set by the owner
    function iconIsSet(uint256 tokenId) public view returns (bool) {
        return tokens[tokenId].combMethod != INVALID_COMB_METHOD;
    }

    /// @notice Time from which the front-end "ticks" icons. If an icon design
    /// isn't set by a collector within the allowed window, a random token is
    /// used and defaultSettingTime replaces iconSettingTimes.
    mapping(uint256 => uint256) public iconSettingTimes;
    uint256 defaultSettingTime;

    /// @notice Closes the window for token owners to set their own icons. After
    /// this point, unset tokens will be randomly allocated icons.
    function closeIconSettingWindow() public onlyOwner {
        defaultSettingTime = block.timestamp;
    }

    /// @notice Sets the 'starting icon'. This is only available if it has not
    /// already been set (either by the owner, or automatically by the contract
    /// when the setting window closed).
    function setIcon(uint256 tokenId, EveryIconLib.Token memory token)
        public
        whenNotPaused
        onlyApprovedOrOwner(tokenId)
    {
        require(!iconIsSet(tokenId), "Icon already set");
        require(defaultSettingTime == 0, "Icon randomly set");
        require(token.designIcon0 < 100, "Design icon 0 invalid");
        require(token.designIcon1 < 100, "Design icon 1 invalid");
        require(token.designIcon0 != token.designIcon1, "Repeated design icon");
        require(token.randIcon < 28, "Random icon invalid");
        require(token.combMethod < 3, "Combination method invalid");

        tokens[tokenId] = token;
        iconSettingTimes[tokenId] = block.timestamp;
    }

    /// @notice Default icon to show in thumbnails before a design is set. The
    /// actual icon has first and last words set to 0.
    uint256[2] private defaultIcon = [
        18609191942226762260243923200536250640,
        1923275577535336623121870409490058871001437930765964941608582343745444249600
    ];

    /// @notice Returns data required to render an icon in the browser.
    /// @return icon Bit-wise representation of the token.
    /// @return iconSettingTime The time from which the icon ticks, if non-zero.
    /// Zero value indicates the token is a placeholder
    function iconData(uint256 tokenId, uint256 ticks)
        public
        view
        returns (uint256[4] memory icon, uint256 iconSettingTime)
    {
        if (!iconIsSet(tokenId) && defaultSettingTime == 0) {
            icon[1] = defaultIcon[0];
            icon[2] = defaultIcon[1];
            return (icon, iconSettingTime);
        }

        EveryIconLib.Token memory token;

        if (iconIsSet(tokenId) == true) {
            token = tokens[tokenId];
            iconSettingTime = iconSettingTimes[tokenId];
        } else {
            token = EveryIconLib.randomToken(tokenId, mintingBlocks[tokenId]);
            iconSettingTime = defaultSettingTime;
        }

        icon = repo.startingBits(token, mintingBlocks[tokenId], ticks);

        return (icon, iconSettingTime);
    }

    /// @notice Ticks per second, as used by peekSVG.
    uint8 constant TICKS_PER_SECOND = 100;

    /// @notice Returns an SVG of the icon as it would be at the moment the function
    /// was called, having 'ticked' ever since being set at the rate TICKS_PER_SECOND
    function peekSVG(uint256 tokenId) external view returns (bytes memory) {
        uint256 startTime = iconIsSet(tokenId)
            ? iconSettingTimes[tokenId]
            : defaultSettingTime;

        return
            renderSVG(
                tokenId,
                (block.timestamp - startTime) * TICKS_PER_SECOND
            );
    }

    /// @notice Returns static SVG for a particular token. This is used for thumbnails
    /// and in the OpenSea listing, before the viewer clicks into the animated version of
    /// a piece
    function renderSVG(uint256 tokenId, uint256 ticks)
        public
        view
        returns (bytes memory)
    {
        (uint256[4] memory icon, ) = iconData(tokenId, ticks);
        return EveryIconLib.renderSVG(icon);
    }
}

File 2 of 32 : IEveryIconRepository.sol
// SPDX-License-Identifier: UNLICENCED
// Copyright 2021; All rights reserved
// Author: @divergenceharri (@divergence_art)

pragma solidity >=0.8.9 <0.9.0;

/// @title Every Icon Contract (Repository Interface)
/// @notice A common interface for the 4 Every Icon repositories.
interface IEveryIconRepository {
    function icon(uint256) external view returns (uint256[4] memory);
}

File 3 of 32 : EveryIconLib.sol
// SPDX-License-Identifier: UNLICENCED
// Implementation Copyright 2021, the author; All rights reserved
//
// This contract is an on-chain implementation of a concept created and
// developed by John F Simon Jr in partnership with e•a•t•works and
// @fingerprintsDAO
pragma solidity 0.8.10;

import "./IEveryIconRepository.sol";
import "@divergencetech/ethier/contracts/random/PRNG.sol";
import "@divergencetech/ethier/contracts/utils/DynamicBuffer.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/// @title Every Icon library
/// @author @divergenceharri (@divergence_art)
library EveryIconLib {
    using DynamicBuffer for bytes;
    using PRNG for PRNG.Source;
    using Strings for uint256;

    /// @dev A set of contracts containing base icons from which designs are
    /// built. Each MUST hold exactly 32 icons, with the first 104 being
    /// "design" icons and the next 28 being the "random" ones.
    struct Repository {
        IEveryIconRepository[4] icons;
    }

    /// @notice Returns the i'th "design" icon from the Repository.
    function designIcon(Repository storage repo, uint256 i)
        internal
        view
        returns (uint256[4] memory)
    {
        require(i < 100, "Invalid design icon");
        return repo.icons[i / 32].icon(i % 32);
    }

    /// @notice Returns the i'th "random" icon from the Repository.
    function randomIcon(Repository storage repo, uint256 i)
        internal
        view
        returns (uint256[4] memory)
    {
        require(i < 28, "Invalid random icon");
        return repo.icons[3].icon(i + 4);
    }

    /// @dev Masks the block in which an icon was minted to encode it in the
    /// bottom row of the image.
    uint256 internal constant MINTING_BLOCK_MASK = 2**32 - 1;

    /// @notice Constructs icon from parameters, returning a buffer of 1024 bits
    function startingBits(
        Repository storage repo,
        Token memory token,
        uint256 mintingBlock,
        uint256 ticks
    ) internal view returns (uint256[4] memory) {
        uint256[4] memory di0 = designIcon(repo, token.designIcon0);
        uint256[4] memory di1 = designIcon(repo, token.designIcon1);
        uint256[4] memory ri = randomIcon(repo, token.randIcon);
        uint256[4] memory icon;

        // Start by combining inputs to get the base token
        //
        // The original JavaScript piece, which this contract mimics, inverts
        // bits for the 'ticking' of the icons. It's easier to correct for this
        // by inverting all of the incoming values and performing inverted
        // bitwise operations here, hence the ~((~x & ~y) | ~z) patterns.
        if (token.combMethod == 0) {
            for (uint256 i = 0; i < 4; i++) {
                icon[i] = ~((~di0[i] & ~di1[i]) | ~ri[i]);
            }
        } else if (token.combMethod == 1) {
            for (uint256 i = 0; i < 4; i++) {
                icon[i] = ~((~di0[i] & ~di1[i]) ^ ~ri[i]);
            }
        } else if (token.combMethod == 2) {
            for (uint256 i = 0; i < 4; i++) {
                icon[i] = ~((~di0[i] | ~di1[i]) ^ ~ri[i]);
            }
        } else {
            // Although this won't be exposed to collectors, it allows for
            // testing of individual base icons via a different, inheriting
            // contract.
            for (uint256 i = 0; i < 4; i++) {
                icon[i] = di0[i];
            }
        }

        // After combining icons, we clear the last row of the image and replace
        // it with a big-endian representation of the block number in which the
        // token was minted. We chose big-endian representation (in contrast to
        // 'ticks') to remain consistent with Solidity's handling of integers
        mintingBlock = mintingBlock & MINTING_BLOCK_MASK;
        icon[3] = (icon[3] & (~MINTING_BLOCK_MASK)) | mintingBlock;

        // Finally, we add 'ticks'. For a starting icon this will be equal to
        // zero, but the 'peekSVG' function is designed to see how far the icon
        // would have got based on the assumed iteration rate of 100 ticks per
        // second.
        //
        // This step is complicated by the fact that the icon animation is
        // effectively little-endian. We therefore need to increment from the
        // highest bit down.
        unchecked {
            // Although all values only ever contain a single bit, they're
            // defined as uint256 instead of bool to shift without the need for
            // casting.
            uint256 a;
            uint256 b;
            uint256 sum; // a+b
            uint256 carry;
            uint256 mask;

            // Breaking the loop based on a lack of further carry (instead of
            // only looping over each word once) allows for overflow should the
            // icon reach the end. This will never happen (see [1] for an
            // interesting explanation!), but conceptually it is a core part of
            // the artwork – otherwise it would be impossible for "every" icon
            // to be generated!
            //
            // [1] Schneider B. Applied Cryptography: Protocols, Algorithms, and
            //     Source Code in C; pp. 157–8.
            for (uint256 i = 0; ticks + carry > 0; i = (i + 1) % 4) {
                mask = 1 << 255;
                for (uint256 j = 0; j < 256 && ticks + carry > 0; j++) {
                    a = ticks & 1;
                    b = (icon[i] >> (255 - j)) & 1;
                    sum = a ^ b ^ carry;
                    icon[i] = (icon[i] & ~mask) | (sum << (255 - j));

                    carry = a + b + carry >= 2 ? 1 : 0;
                    ticks >>= 1;
                    mask >>= 1;
                }
            }
        }

        return icon;
    }

    /// @notice Metadata defining a token's icon.
    struct Token {
        uint8 designIcon0;
        uint8 designIcon1;
        uint8 randIcon;
        uint8 combMethod;
    }

    /// @notice Returns a static SVG from a 1024-bit buffer. This is used for thumbnails
    /// and in the OpenSea listing, before the viewer clicks into the animated version of
    /// a piece.
    function renderSVG(uint256[4] memory icon)
        internal
        pure
        returns (bytes memory)
    {
        bytes memory svg = DynamicBuffer.allocate(2**16); // 64KB
        svg.appendSafe(
            abi.encodePacked(
                "<svg width='512' height='512' xmlns='http://www.w3.org/2000/svg'>",
                "<style>",
                "rect{width:16px;height:16px;stroke-width:1px;stroke:#c4c4c4}",
                ".b{fill:#000}",
                ".w{fill:#fff}",
                "</style>"
            )
        );

        uint256 x;
        uint256 y;
        bool bit;
        for (uint256 i = 0; i < 1024; i++) {
            x = (i % 32) * 16;
            y = (i / 32) * 16;
            bit = (icon[i / 256] >> (255 - (i % 256))) & 1 == 1;

            svg.appendSafe(
                abi.encodePacked(
                    "<rect x='",
                    x.toString(),
                    "' y='",
                    y.toString(),
                    "' class='",
                    bit ? "b" : "w",
                    "'/>"
                )
            );
        }

        svg.appendSafe("</svg>");
        return svg;
    }

    /// @notice Returns a random Token for an NFT which has not had its icon set
    /// by the cut-off point. Deterministically seeded from tokenId and
    /// mintingBlock.
    function randomToken(uint256 tokenId, uint256 mintingBlock)
        public
        pure
        returns (Token memory)
    {
        PRNG.Source src = PRNG.newSource(
            keccak256(abi.encodePacked(tokenId, mintingBlock))
        );

        return
            EveryIconLib.Token({
                designIcon0: uint8(src.readLessThan(100)),
                designIcon1: uint8(src.readLessThan(100)),
                randIcon: uint8(src.readLessThan(28)),
                combMethod: uint8(src.readLessThan(3))
            });
    }
}

File 4 of 32 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 5 of 32 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 6 of 32 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 7 of 32 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 8 of 32 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 32 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 32 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 32 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 12 of 32 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 tokenId);

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

File 13 of 32 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

File 14 of 32 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 32 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 16 of 32 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 17 of 32 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 18 of 32 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 19 of 32 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 20 of 32 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 21 of 32 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 22 of 32 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 23 of 32 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 24 of 32 : OwnerPausable.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

/// @notice A Pausable contract that can only be toggled by the Owner.
contract OwnerPausable is Ownable, Pausable {
    /// @notice Pauses the contract.
    function pause() public onlyOwner {
        Pausable._pause();
    }

    /// @notice Unpauses the contract.
    function unpause() public onlyOwner {
        Pausable._unpause();
    }
}

File 25 of 32 : Monotonic.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

/**
@notice Provides monotonic increasing and decreasing values, similar to
OpenZeppelin's Counter but (a) limited in direction, and (b) allowing for steps
> 1.
 */
library Monotonic {
    /**
    @notice Holds a value that can only increase.
    @dev The internal value MUST NOT be accessed directly. Instead use current()
    and add().
     */
    struct Increaser {
        uint256 value;
    }

    /// @notice Returns the current value of the Increaser.
    function current(Increaser storage incr) internal view returns (uint256) {
        return incr.value;
    }

    /// @notice Adds x to the Increaser's value.
    function add(Increaser storage incr, uint256 x) internal {
        incr.value += x;
    }

    /**
    @notice Holds a value that can only decrease.
    @dev The internal value MUST NOT be accessed directly. Instead use current()
    and subtract().
     */
    struct Decreaser {
        uint256 value;
    }

    /// @notice Returns the current value of the Decreaser.
    function current(Decreaser storage decr) internal view returns (uint256) {
        return decr.value;
    }

    /// @notice Subtracts x from the Decreaser's value.
    function subtract(Decreaser storage decr, uint256 x) internal {
        decr.value -= x;
    }
}

File 26 of 32 : DynamicBuffer.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)

pragma solidity >=0.8.0;

/// @title DynamicBuffer
/// @author David Huber (@cxkoda) and Simon Fremaux (@dievardump). See also
///         https://raw.githubusercontent.com/dievardump/solidity-dynamic-buffer
/// @notice This library is used to allocate a big amount of container memory
//          which will be subsequently filled without needing to reallocate
///         memory.
/// @dev First, allocate memory.
///      Then use `buffer.appendUnchecked(theBytes)` or `appendSafe()` if
///      bounds checking is required.
library DynamicBuffer {
    /// @notice Allocates container space for the DynamicBuffer
    /// @param capacity The intended max amount of bytes in the buffer
    /// @return buffer The memory location of the buffer
    /// @dev Allocates `capacity + 0x60` bytes of space
    ///      The buffer array starts at the first container data position,
    ///      (i.e. `buffer = container + 0x20`)
    function allocate(uint256 capacity)
        internal
        pure
        returns (bytes memory buffer)
    {
        assembly {
            // Get next-free memory address
            let container := mload(0x40)

            // Allocate memory by setting a new next-free address
            {
                // Add 2 x 32 bytes in size for the two length fields
                // Add 32 bytes safety space for 32B chunked copy
                let size := add(capacity, 0x60)
                let newNextFree := add(container, size)
                mstore(0x40, newNextFree)
            }

            // Set the correct container length
            {
                let length := add(capacity, 0x40)
                mstore(container, length)
            }

            // The buffer starts at idx 1 in the container (0 is length)
            buffer := add(container, 0x20)

            // Init content with length 0
            mstore(buffer, 0)
        }

        return buffer;
    }

    /// @notice Appends data to buffer, and update buffer length
    /// @param buffer the buffer to append the data to
    /// @param data the data to append
    /// @dev Does not perform out-of-bound checks (container capacity)
    ///      for efficiency.
    function appendUnchecked(bytes memory buffer, bytes memory data)
        internal
        pure
    {
        assembly {
            let length := mload(data)
            for {
                data := add(data, 0x20)
                let dataEnd := add(data, length)
                let copyTo := add(buffer, add(mload(buffer), 0x20))
            } lt(data, dataEnd) {
                data := add(data, 0x20)
                copyTo := add(copyTo, 0x20)
            } {
                // Copy 32B chunks from data to buffer.
                // This may read over data array boundaries and copy invalid
                // bytes, which doesn't matter in the end since we will
                // later set the correct buffer length, and have allocated an
                // additional word to avoid buffer overflow.
                mstore(copyTo, mload(data))
            }

            // Update buffer length
            mstore(buffer, add(mload(buffer), length))
        }
    }

    /// @notice Appends data to buffer, and update buffer length
    /// @param buffer the buffer to append the data to
    /// @param data the data to append
    /// @dev Performs out-of-bound checks and calls `appendUnchecked`.
    function appendSafe(bytes memory buffer, bytes memory data) internal pure {
        uint256 capacity;
        uint256 length;
        assembly {
            capacity := sub(mload(sub(buffer, 0x20)), 0x40)
            length := mload(buffer)
        }

        require(
            length + data.length <= capacity,
            "DynamicBuffer: Appending out of bounds."
        );
        appendUnchecked(buffer, data);
    }
}

File 27 of 32 : Seller.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "../utils/Monotonic.sol";
import "../utils/OwnerPausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/**
@notice An abstract contract providing the _purchase() function to:
 - Enforce per-wallet / per-transaction limits
 - Calculate required cost, forwarding to a beneficiary, and refunding extra
 */
abstract contract Seller is OwnerPausable, ReentrancyGuard {
    using Address for address payable;
    using Monotonic for Monotonic.Increaser;
    using Strings for uint256;

    /**
    @dev Note that the address limits are vulnerable to wallet farming.
    @param maxPerAddress Unlimited if zero.
    @param maxPerTex Unlimited if zero.
    @param freeQuota Maximum number that can be purchased free of charge by
    the contract owner.
    @param reserveFreeQuota Whether to excplitly reserve the freeQuota amount
    and not let it be eroded by regular purchases.
    @param lockFreeQuota If true, calls to setSellerConfig() will ignore changes
    to freeQuota. Can be locked after initial setting, but not unlocked. This
    allows a contract owner to commit to a maximum number of reserved items.
    @param lockTotalInventory Similar to lockFreeQuota but applied to
    totalInventory.
    */
    struct SellerConfig {
        uint256 totalInventory;
        uint256 maxPerAddress;
        uint256 maxPerTx;
        uint248 freeQuota;
        bool reserveFreeQuota;
        bool lockFreeQuota;
        bool lockTotalInventory;
    }

    constructor(SellerConfig memory config, address payable _beneficiary) {
        setSellerConfig(config);
        setBeneficiary(_beneficiary);
    }

    /// @notice Configuration of purchase limits.
    SellerConfig public sellerConfig;

    /// @notice Sets the seller config.
    function setSellerConfig(SellerConfig memory config) public onlyOwner {
        require(
            config.totalInventory >= config.freeQuota,
            "Seller: excessive free quota"
        );
        require(
            config.totalInventory >= _totalSold.current(),
            "Seller: inventory < already sold"
        );
        require(
            config.freeQuota >= purchasedFreeOfCharge.current(),
            "Seller: free quota < already used"
        );

        // Overriding the in-memory fields before copying the whole struct, as
        // against writing individual fields, gives a greater guarantee of
        // correctness as the code is simpler to read.
        if (sellerConfig.lockTotalInventory) {
            config.lockTotalInventory = true;
            config.totalInventory = sellerConfig.totalInventory;
        }
        if (sellerConfig.lockFreeQuota) {
            config.lockFreeQuota = true;
            config.freeQuota = sellerConfig.freeQuota;
        }
        sellerConfig = config;
    }

    /// @notice Recipient of revenues.
    address payable public beneficiary;

    /// @notice Sets the recipient of revenues.
    function setBeneficiary(address payable _beneficiary) public onlyOwner {
        beneficiary = _beneficiary;
    }

    /**
    @dev Must return the current cost of a batch of items. This may be constant
    or, for example, decreasing for a Dutch auction or increasing for a bonding
    curve.
    @param n The number of items being purchased.
     */
    function cost(uint256 n) public view virtual returns (uint256);

    /**
    @dev Called by both _purchase() and purchaseFreeOfCharge() after all limits
    have been put in place; must perform all contract-specific sale logic, e.g.
    ERC721 minting. When _handlePurchase() is called, the value returned by
    Seller.totalSold() will be the pre-purchase amount.
    @param to The recipient of the item(s).
    @param n The number of items allowed to be purchased, which MAY be less than
    to the number passed to _purchase() but SHALL be greater than zero.
    @param freeOfCharge Indicates that the call originated from
    purchaseFreeOfCharge() and not _purchase().
    */
    function _handlePurchase(
        address to,
        uint256 n,
        bool freeOfCharge
    ) internal virtual;

    /**
    @notice Tracks total number of items sold by this contract, including those
    purchased free of charge by the contract owner.
     */
    Monotonic.Increaser private _totalSold;

    /// @notice Returns the total number of items sold by this contract.
    function totalSold() public view returns (uint256) {
        return _totalSold.current();
    }

    /**
    @notice Tracks the number of items already bought by an address, regardless
    of transferring out (in the case of ERC721).
    @dev This isn't public as it may be skewed due to differences in msg.sender
    and tx.origin, which it treats in the same way such that
    sum(_bought)>=totalSold().
     */
    mapping(address => uint256) private _bought;

    /**
    @notice Returns min(n, max(extra items addr can purchase)) and reverts if 0.
    @param zeroMsg The message with which to revert on 0 extra.
     */
    function _capExtra(
        uint256 n,
        address addr,
        string memory zeroMsg
    ) internal view returns (uint256) {
        uint256 extra = sellerConfig.maxPerAddress - _bought[addr];
        if (extra == 0) {
            revert(string(abi.encodePacked("Seller: ", zeroMsg)));
        }
        return Math.min(n, extra);
    }

    /// @notice Emitted when a buyer is refunded.
    event Refund(address indexed buyer, uint256 amount);

    /// @notice Emitted on all purchases of non-zero amount.
    event Revenue(
        address indexed beneficiary,
        uint256 numPurchased,
        uint256 amount
    );

    /// @notice Tracks number of items purchased free of charge.
    Monotonic.Increaser private purchasedFreeOfCharge;

    /**
    @notice Allows the contract owner to purchase without payment, within the
    quota enforced by the SellerConfig.
     */
    function purchaseFreeOfCharge(address to, uint256 n)
        public
        onlyOwner
        whenNotPaused
    {
        uint256 freeQuota = sellerConfig.freeQuota;
        n = Math.min(n, freeQuota - purchasedFreeOfCharge.current());
        require(n > 0, "Seller: Free quota exceeded");

        uint256 totalInventory = sellerConfig.totalInventory;
        n = Math.min(n, totalInventory - _totalSold.current());
        require(n > 0, "Seller: Sold out");

        _handlePurchase(to, n, true);

        _totalSold.add(n);
        purchasedFreeOfCharge.add(n);
        assert(_totalSold.current() <= totalInventory);
        assert(purchasedFreeOfCharge.current() <= freeQuota);
    }

    /**
    @notice Enforces all purchase limits (counts and costs) before calling
    _handlePurchase(), after which the received funds are disbursed to the
    beneficiary, less any required refunds.
    @param to The final recipient of the item(s).
    @param requested The number of items requested for purchase, which MAY be
    reduced when passed to _handlePurchase().
     */
    function _purchase(address to, uint256 requested)
        internal
        nonReentrant
        whenNotPaused
    {
        /**
         * ##### CHECKS
         */
        SellerConfig memory config = sellerConfig;

        uint256 n = config.maxPerTx == 0
            ? requested
            : Math.min(requested, config.maxPerTx);

        uint256 maxAvailable = config.reserveFreeQuota
            ? config.totalInventory - config.freeQuota
            : config.totalInventory;
        n = Math.min(n, maxAvailable - _totalSold.current());
        require(n > 0, "Seller: Sold out");

        if (config.maxPerAddress > 0) {
            bool alsoLimitSender = _msgSender() != to;
            bool alsoLimitOrigin = tx.origin != _msgSender() && tx.origin != to;

            n = _capExtra(n, to, "Buyer limit");
            if (alsoLimitSender) {
                n = _capExtra(n, _msgSender(), "Sender limit");
            }
            if (alsoLimitOrigin) {
                n = _capExtra(n, tx.origin, "Origin limit");
            }

            _bought[to] += n;
            if (alsoLimitSender) {
                _bought[_msgSender()] += n;
            }
            if (alsoLimitOrigin) {
                _bought[tx.origin] += n;
            }
        }

        uint256 _cost = cost(n);
        if (msg.value < _cost) {
            revert(
                string(
                    abi.encodePacked(
                        "Seller: Costs ",
                        (_cost / 1e9).toString(),
                        " GWei"
                    )
                )
            );
        }

        /**
         * ##### EFFECTS
         */

        _handlePurchase(to, n, false);
        _totalSold.add(n);
        assert(_totalSold.current() <= config.totalInventory);

        /**
         * ##### INTERACTIONS
         */

        // Ideally we'd be using a PullPayment here, but the user experience is
        // poor when there's a variable cost or the number of items purchased
        // has been capped. We've addressed reentrancy with both a nonReentrant
        // modifier and the checks, effects, interactions pattern.

        if (_cost > 0) {
            beneficiary.sendValue(_cost);
            emit Revenue(beneficiary, n, _cost);
        }

        if (msg.value > _cost) {
            address payable reimburse = payable(_msgSender());
            uint256 refund = msg.value - _cost;

            // Using Address.sendValue() here would mask the revertMsg upon
            // reentrancy, but we want to expose it to allow for more precise
            // testing. This otherwise uses the exact same pattern as
            // Address.sendValue().
            (bool success, bytes memory returnData) = reimburse.call{
                value: refund
            }("");
            // Although `returnData` will have a spurious prefix, all we really
            // care about is that it contains the ReentrancyGuard reversion
            // message so we can check in the tests.
            require(success, string(returnData));

            emit Refund(reimburse, refund);
        }
    }
}

File 28 of 32 : LinearDutchAuction.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "./Seller.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";

/// @notice A Seller with a linearly decreasing price.
abstract contract LinearDutchAuction is Seller {
    /**
    @param unit The unit of "time" used for decreasing prices, block number or
    timestamp. NOTE: See the comment on AuctionIntervalUnit re use of Time as a
    unit.
    @param startPoint The block or timestamp at which the auction opens. A value
    of zero disables the auction. See setAuctionStartPoint().
    @param startPrice The price at `startPoint`.
    @param decreaseInterval The number of units to wait before decreasing the
    price. MUST be non-zero.
    @param decreaseSize The amount by which price decreases after every
    `decreaseInterval`.
    @param numDecreases The maximum number of price decreases before remaining
    constant. The reserve price is therefore implicit and equal to
    startPrice-numDecrease*decreaseSize.
     */
    struct DutchAuctionConfig {
        uint256 startPoint;
        uint256 startPrice;
        uint256 decreaseInterval;
        uint256 decreaseSize;
        // From https://docs.soliditylang.org/en/v0.8.10/types.html#enums "Enums
        // cannot have more than 256 members"; presumably they take 8 bits, so
        // use some of the numDecreases space instead.
        uint248 numDecreases;
        AuctionIntervalUnit unit;
    }

    /**
    @notice The unit of "time" along which the cost decreases.
    @dev If no value is provided then the zero UNSPECIFIED will trigger an
    error.

    NOTE: The Block unit is more reliable as it has an explicit progression
    (simply incrementing). Miners are allowed to have a time drift into the
    future although which predisposes to unexpected behaviour by which "future"
    costs are encountered. See the ConsenSys 15-second rule:
    https://consensys.net/blog/developers/solidity-best-practices-for-smart-contract-security/
     */
    enum AuctionIntervalUnit {
        UNSPECIFIED,
        Block,
        Time
    }

    /// @param expectedReserve See setAuctionConfig().
    constructor(
        DutchAuctionConfig memory config,
        uint256 expectedReserve,
        Seller.SellerConfig memory sellerConfig,
        address payable _beneficiary
    ) Seller(sellerConfig, _beneficiary) {
        setAuctionConfig(config, expectedReserve);
    }

    /// @notice Configuration of price changes.
    DutchAuctionConfig public dutchAuctionConfig;

    /**
    @notice Sets the auction config.
    @param expectedReserve A safety check that the reserve, as calculated from
    the config, is as expected.
     */
    function setAuctionConfig(
        DutchAuctionConfig memory config,
        uint256 expectedReserve
    ) public onlyOwner {
        // Underflow might occur is size/num decreases is too large.
        unchecked {
            require(
                config.startPrice - config.decreaseSize * config.numDecreases ==
                    expectedReserve,
                "LinearDutchAuction: incorrect reserve"
            );
        }
        require(
            config.unit != AuctionIntervalUnit.UNSPECIFIED,
            "LinearDutchAuction: unspecified unit"
        );
        require(
            config.decreaseInterval > 0,
            "LinearDutchAuction: zero decrease interval"
        );
        dutchAuctionConfig = config;
    }

    /**
    @notice Sets the config startPoint. A startPoint of zero disables the
    auction.
    @dev The auction can be toggle on and off with this function, without the
    cost of having to update the entire config.
     */
    function setAuctionStartPoint(uint256 startPoint) public onlyOwner {
        dutchAuctionConfig.startPoint = startPoint;
    }

    /// @notice Override of Seller.cost() with Dutch-auction logic.
    function cost(uint256 n) public view override returns (uint256) {
        DutchAuctionConfig storage cfg = dutchAuctionConfig;

        uint256 current;
        if (cfg.unit == AuctionIntervalUnit.Block) {
            current = block.number;
        } else if (cfg.unit == AuctionIntervalUnit.Time) {
            current = block.timestamp;
        }

        require(
            cfg.startPoint != 0 && current >= cfg.startPoint,
            "LinearDutchAuction: Not started"
        );

        uint256 decreases = Math.min(
            (current - cfg.startPoint) / cfg.decreaseInterval,
            cfg.numDecreases
        );
        return n * (cfg.startPrice - decreases * cfg.decreaseSize);
    }
}

File 29 of 32 : PRNG.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.9 <0.9.0;

library PRNG {
    /**
    @notice A source of random numbers.
    @dev Pointer to a 4-word buffer of {seed, counter, entropy, remaining unread
    bits}. however, note that this is abstracted away by the API and SHOULD NOT
    be used. This layout MUST NOT be considered part of the public API and
    therefore not relied upon even within stable versions
     */
    type Source is uint256;

    /// @notice Layout within the buffer. 0x00 is the seed.
    uint256 private constant COUNTER = 0x20;
    uint256 private constant ENTROPY = 0x40;
    uint256 private constant REMAIN = 0x60;

    /**
    @notice Returns a new deterministic Source, differentiated only by the seed.
    @dev Use of PRNG.Source does NOT provide any unpredictability as generated
    numbers are entirely deterministic. Either a verifiable source of randomness
    such as Chainlink VRF, or a commit-and-reveal protocol MUST be used if
    unpredictability is required. The latter is only appropriate if the contract
    owner can be trusted within the specified threat model.
     */
    function newSource(bytes32 seed) internal pure returns (Source src) {
        assembly {
            src := mload(0x40)
            mstore(0x40, add(src, 0x80))
            mstore(src, seed)
        }
        // DO NOT call _refill() on the new Source as newSource() is also used
        // by loadSource(), which implements its own state modifications. The
        // first call to read() on a fresh Source will induce a call to
        // _refill().
    }

    /**
    @dev Hashes seed||counter, placing it in the entropy word, and resets the
    remaining bits to 256. Increments the counter BEFORE the refill (ie 0 is
    never used) as this simplifies round-tripping with store() and loadSource()
    because the stored counter state is the same as the one used for deriving
    the entropy pool.
     */
    function _refill(Source src) private pure {
        assembly {
            let ctr := add(src, COUNTER)
            mstore(ctr, add(1, mload(ctr)))
            mstore(add(src, ENTROPY), keccak256(src, 0x40))
            mstore(add(src, REMAIN), 256)
        }
    }

    /**
    @notice Returns the specified number of bits <= 256 from the Source.
    @dev It is safe to cast the returned value to a uint<bits>.
     */
    function read(Source src, uint256 bits)
        internal
        pure
        returns (uint256 sample)
    {
        require(bits <= 256, "PRNG: max 256 bits");

        uint256 remain;
        assembly {
            remain := mload(add(src, REMAIN))
        }
        if (remain > bits) {
            return readWithSufficient(src, bits);
        }

        uint256 extra = bits - remain;
        sample = readWithSufficient(src, remain);
        assembly {
            sample := shl(extra, sample)
        }

        _refill(src);
        sample = sample | readWithSufficient(src, extra);
    }

    /**
    @notice Returns the specified number of bits, assuming that there is
    sufficient entropy remaining. See read() for usage.
     */
    function readWithSufficient(Source src, uint256 bits)
        private
        pure
        returns (uint256 sample)
    {
        assembly {
            let pool := add(src, ENTROPY)
            let ent := mload(pool)
            sample := and(ent, sub(shl(bits, 1), 1))

            mstore(pool, shr(bits, ent))
            let rem := add(src, REMAIN)
            mstore(rem, sub(mload(rem), bits))
        }
    }

    /// @notice Returns a random boolean.
    function readBool(Source src) internal pure returns (bool) {
        return read(src, 1) == 1;
    }

    /**
    @notice Returns the number of bits needed to encode n.
    @dev Useful for calling readLessThan() multiple times with the same upper
    bound.
     */
    function bitLength(uint256 n) internal pure returns (uint16 bits) {
        assembly {
            for {
                let _n := n
            } gt(_n, 0) {
                _n := shr(1, _n)
            } {
                bits := add(bits, 1)
            }
        }
    }

    /**
    @notice Returns a uniformly random value in [0,n) with rejection sampling.
    @dev If the size of n is known, prefer readLessThan(Source, uint, uint16) as
    it skips the bit counting performed by this version; see bitLength().
     */
    function readLessThan(Source src, uint256 n)
        internal
        pure
        returns (uint256)
    {
        return readLessThan(src, n, bitLength(n));
    }

    /**
    @notice Returns a uniformly random value in [0,n) with rejection sampling
    from the range [0,2^bits).
    @dev For greatest efficiency, the value of bits should be the smallest
    number of bits required to capture n; if this is not known, use
    readLessThan(Source, uint) or bitLength(). Although rejections are reduced
    by using twice the number of bits, this increases the rate at which the
    entropy pool must be refreshed with a call to keccak256().

    TODO: benchmark higher number of bits for rejection vs hashing gas cost.
     */
    function readLessThan(
        Source src,
        uint256 n,
        uint16 bits
    ) internal pure returns (uint256 result) {
        // Discard results >= n and try again because using % will bias towards
        // lower values; e.g. if n = 13 and we read 4 bits then {13, 14, 15}%13
        // will select {0, 1, 2} twice as often as the other values.
        for (result = n; result >= n; result = read(src, bits)) {}
    }

    /**
    @notice Returns the internal state of the Source.
    @dev MUST NOT be considered part of the API and is subject to change without
    deprecation nor warning. Only exposed for testing.
     */
    function state(Source src)
        internal
        pure
        returns (
            uint256 seed,
            uint256 counter,
            uint256 entropy,
            uint256 remain
        )
    {
        assembly {
            seed := mload(src)
            counter := mload(add(src, COUNTER))
            entropy := mload(add(src, ENTROPY))
            remain := mload(add(src, REMAIN))
        }
    }

    /**
    @notice Stores the state of the Source in a 2-word buffer. See loadSource().
    @dev The layout of the stored state MUST NOT be considered part of the
    public API, and is subject to change without warning. It is therefore only
    safe to rely on stored Sources _within_ contracts, but not _between_ them.
     */
    function store(Source src, uint256[2] storage stored) internal {
        uint256 seed;
        // Counter will never be as high as 2^247 (because the sun will have
        // depleted by then) and remain is in [0,256], so pack them to save 20k
        // gas on an SSTORE.
        uint256 packed;
        assembly {
            seed := mload(src)
            packed := add(
                shl(9, mload(add(src, COUNTER))),
                mload(add(src, REMAIN))
            )
        }
        stored[0] = seed;
        stored[1] = packed;
        // Not storing the entropy as it can be recalculated later.
    }

    /**
    @notice Recreates a Source from the state stored with store().
     */
    function loadSource(uint256[2] storage stored)
        internal
        view
        returns (Source)
    {
        Source src = newSource(bytes32(stored[0]));
        uint256 packed = stored[1];
        uint256 counter = packed >> 9;
        uint256 remain = packed & 511;

        assembly {
            mstore(add(src, COUNTER), counter)
            mstore(add(src, REMAIN), remain)

            // Has the same effect on internal state as as _refill() then
            // read(256-rem).
            let ent := shr(sub(256, remain), keccak256(src, 0x40))
            mstore(add(src, ENTROPY), ent)
        }
        return src;
    }
}

File 30 of 32 : OpenSeaGasFreeListing.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

// Inspired by BaseOpenSea by Simon Fremaux (@dievardump) but without the need
// to pass specific addresses depending on deployment network.
// https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/

/// @notice Library to achieve gas-free listings on OpenSea.
library OpenSeaGasFreeListing {
    /**
    @notice Returns whether the operator is an OpenSea proxy for the owner, thus
    allowing it to list without the token owner paying gas.
    @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
    this function returns true.
     */
    function isApprovedForAll(address owner, address operator)
        internal
        view
        returns (bool)
    {
        ProxyRegistry registry;
        assembly {
            switch chainid()
            case 1 {
                // mainnet
                registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
            }
            case 4 {
                // rinkeby
                registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
            }
        }

        return
            address(registry) != address(0) &&
            address(registry.proxies(owner)) == operator;
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 31 of 32 : ERC721CommonEnumerable.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "./ERC721Common.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

/**
@notice Extends ERC721Common functionality with ERC721Enumerable.
@dev This adds a significant gas cost to minting and transfers so only use if
absolutely necessary. If only totalSupply() is needed and the contract is also
an ethier Seller then use totalSold() as an alias.

See: https://shiny.mirror.xyz/OUampBbIz9ebEicfGnQf5At_ReMHlZy0tB4glb9xQ0E
*/
contract ERC721CommonEnumerable is ERC721Common, ERC721Enumerable {
    constructor(string memory name, string memory symbol)
        ERC721Common(name, symbol)
    {}

    /**
    @notice Returns ERC721Common.isApprovedForAll() to guarantee use of OpenSea
    gas-free listing functionality.
    */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override(ERC721, ERC721Common)
        returns (bool)
    {
        return ERC721Common.isApprovedForAll(owner, operator);
    }

    /// @notice Overrides _beforeTokenTransfer as required by inheritance.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721Common, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /// @notice Overrides supportsInterface as required by inheritance.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Common, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 32 of 32 : ERC721Common.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "./OpenSeaGasFreeListing.sol";
import "../utils/OwnerPausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/utils/Context.sol";

/**
@notice An ERC721 contract with common functionality:
 - OpenSea gas-free listings
 - OpenZeppelin Pausable
 - OpenZeppelin Pausable with functions exposed to Owner only
 */
contract ERC721Common is Context, ERC721Pausable, OwnerPausable {
    constructor(string memory name, string memory symbol)
        ERC721(name, symbol)
    {}

    /// @notice Requires that the token exists.
    modifier tokenExists(uint256 tokenId) {
        require(ERC721._exists(tokenId), "ERC721Common: Token doesn't exist");
        _;
    }

    /// @notice Requires that msg.sender owns or is approved for the token.
    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Common: Not approved nor owner"
        );
        _;
    }

    /// @notice Overrides _beforeTokenTransfer as required by inheritance.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721Pausable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /// @notice Overrides supportsInterface as required by inheritance.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /**
    @notice Returns true if either standard isApprovedForAll() returns true or
    the operator is the OpenSea proxy for the owner.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            super.isApprovedForAll(owner, operator) ||
            OpenSeaGasFreeListing.isApprovedForAll(owner, operator);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {
    "/contracts/EveryIconLib.sol": {
      "EveryIconLib": "0x450666b76e91461539AC54bd1137b2443da6427b"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"components":[{"internalType":"contract IEveryIconRepository[4]","name":"icons","type":"address[4]"}],"internalType":"struct EveryIconLib.Repository","name":"repo_","type":"tuple"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"numPurchased","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Revenue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"animationURIBase","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"beneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"closeIconSettingWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"codeStorageTxHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionConfig","outputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"ticks","type":"uint256"}],"name":"iconData","outputs":[{"internalType":"uint256[4]","name":"icon","type":"uint256[4]"},{"internalType":"uint256","name":"iconSettingTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"iconIsSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"iconSettingTimes","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":"lockRepository","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintingBlocks","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"peekSVG","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"purchaseFreeOfCharge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"ticks","type":"uint256"}],"name":"renderSVG","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"repositoryLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"sellerConfig","outputs":[{"internalType":"uint256","name":"totalInventory","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint248","name":"freeQuota","type":"uint248"},{"internalType":"bool","name":"reserveFreeQuota","type":"bool"},{"internalType":"bool","name":"lockFreeQuota","type":"bool"},{"internalType":"bool","name":"lockTotalInventory","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"base","type":"string"}],"name":"setAnimationURIBase","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":[{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint248","name":"numDecreases","type":"uint248"},{"internalType":"enum LinearDutchAuction.AuctionIntervalUnit","name":"unit","type":"uint8"}],"internalType":"struct LinearDutchAuction.DutchAuctionConfig","name":"config","type":"tuple"},{"internalType":"uint256","name":"expectedReserve","type":"uint256"}],"name":"setAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startPoint","type":"uint256"}],"name":"setAuctionStartPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"txHash","type":"bytes32"}],"name":"setCodeStorageTxHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint8","name":"designIcon0","type":"uint8"},{"internalType":"uint8","name":"designIcon1","type":"uint8"},{"internalType":"uint8","name":"randIcon","type":"uint8"},{"internalType":"uint8","name":"combMethod","type":"uint8"}],"internalType":"struct EveryIconLib.Token","name":"token","type":"tuple"}],"name":"setIcon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IEveryIconRepository[4]","name":"icons","type":"address[4]"}],"internalType":"struct EveryIconLib.Repository","name":"repo_","type":"tuple"}],"name":"setRepository","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"totalInventory","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint248","name":"freeQuota","type":"uint248"},{"internalType":"bool","name":"reserveFreeQuota","type":"bool"},{"internalType":"bool","name":"lockFreeQuota","type":"bool"},{"internalType":"bool","name":"lockTotalInventory","type":"bool"}],"internalType":"struct Seller.SellerConfig","name":"config","type":"tuple"}],"name":"setSellerConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"uint8","name":"designIcon0","type":"uint8"},{"internalType":"uint8","name":"designIcon1","type":"uint8"},{"internalType":"uint8","name":"randIcon","type":"uint8"},{"internalType":"uint8","name":"combMethod","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526f0e00000004000000043c71e00440891060809081526a4408910044089100e3c71160a41b60a0526200003c906025906002620007e0565b503480156200004a57600080fd5b5060405162006b7b38038062006b7b8339810160408190526200006d9162000b5c565b6040805160c0810182526000815267470de4df82000000602082015261012c918101919091526701c6bf526340000060608201526024608082015260a08101600281525067071afd498d0000006040518060e0016040528061020081526020016000815260200160018152602001602a6001600160f81b0316815260200160011515815260200160011515815260200160011515815250600081818a8a8181818181600090805190602001906200012692919062000823565b5080516200013c90600190602084019062000823565b5050506200015962000153620001f960201b60201c565b620001fd565b50506006805460ff60a01b1916905550506001600b556200017a826200024f565b620001858162000492565b506200019490508484620004ff565b50505050620001a9836200072c60201b60201c565b620001ee8282604051620001bd906200089f565b620001ca92919062000caa565b604051809103906000f080158015620001e7573d6000803e3d6000fd5b5062000492565b505050505062000d6f565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b031633146200029e5760405162461bcd60e51b8152602060048201819052602482015260008051602062006b5b83398151915260448201526064015b60405180910390fd5b80606001516001600160f81b031681600001511015620003015760405162461bcd60e51b815260206004820152601c60248201527f53656c6c65723a2065786365737369766520667265652071756f746100000000604482015260640162000295565b620003186012620007dc60201b620021761760201c565b815110156200036a5760405162461bcd60e51b815260206004820181905260248201527f53656c6c65723a20696e76656e746f7279203c20616c726561647920736f6c64604482015260640162000295565b620003816014620007dc60201b620021761760201c565b81606001516001600160f81b03161015620003e95760405162461bcd60e51b815260206004820152602160248201527f53656c6c65723a20667265652071756f7461203c20616c7265616479207573656044820152601960fa1b606482015260840162000295565b601054610100900460ff16156200040757600160c0820152600c5481525b60105460ff16156200042c57600160a0820152600f546001600160f81b031660608201525b8051600c556020810151600d556040810151600e55606081015160808201511515600160f81b026001600160f81b0390911617600f5560a08101516010805460c09093015115156101000261ff00199215159290921661ffff1990931692909217179055565b6006546001600160a01b03163314620004dd5760405162461bcd60e51b8152602060048201819052602482015260008051602062006b5b833981519152604482015260640162000295565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146200054a5760405162461bcd60e51b8152602060048201819052602482015260008051602062006b5b833981519152604482015260640162000295565b8082608001516001600160f81b031683606001510283602001510314620005c25760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b606482015260840162000295565b60008260a001516002811115620005dd57620005dd62000c94565b1415620006395760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b606482015260840162000295565b6000826040015111620006a25760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b606482015260840162000295565b815160159081556020830151601655604083015160175560608301516018556080830151601980547fff00000000000000000000000000000000000000000000000000000000000000166001600160f81b03909216918217815560a0850151859392909190600160f81b83600281111562000721576200072162000c94565b021790555050505050565b6006546001600160a01b03163314620007775760405162461bcd60e51b8152602060048201819052602482015260008051602062006b5b833981519152604482015260640162000295565b601e5460ff1615620007c05760405162461bcd60e51b815260206004820152601160248201527014995c1bdcda5d1bdc9e481b1bd8dad959607a1b604482015260640162000295565b80518190601a90620007d69082906004620008ad565b50505050565b5490565b826002810192821562000811579160200282015b8281111562000811578251825591602001919060010190620007f4565b506200081f929150620008f8565b5090565b828054620008319062000d32565b90600052602060002090601f01602090048101928262000855576000855562000811565b82601f106200087057805160ff191683800117855562000811565b8280016001018555821562000811579182018281111562000811578251825591602001919060010190620007f4565b6111538062005a0883390190565b826004810192821562000811579160200282015b828111156200081157825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620008c1565b5b808211156200081f5760008155600101620008f9565b634e487b7160e01b600052604160045260246000fd5b604051602081016001600160401b03811182821017156200094a576200094a6200090f565b60405290565b604051608081016001600160401b03811182821017156200094a576200094a6200090f565b604051601f8201601f191681016001600160401b0381118282101715620009a057620009a06200090f565b604052919050565b600082601f830112620009ba57600080fd5b81516001600160401b03811115620009d657620009d66200090f565b6020620009ec601f8301601f1916820162000975565b828152858284870101111562000a0157600080fd5b60005b8381101562000a2157858101830151828201840152820162000a04565b8381111562000a335760008385840101525b5095945050505050565b6001600160a01b038116811462000a5357600080fd5b50565b60006001600160401b0382111562000a725762000a726200090f565b5060051b60200190565b600082601f83011262000a8e57600080fd5b8151602062000aa762000aa18362000a56565b62000975565b82815260059290921b8401810191818101908684111562000ac757600080fd5b8286015b8481101562000aef57805162000ae18162000a3d565b835291830191830162000acb565b509695505050505050565b600082601f83011262000b0c57600080fd5b8151602062000b1f62000aa18362000a56565b82815260059290921b8401810191818101908684111562000b3f57600080fd5b8286015b8481101562000aef578051835291830191830162000b43565b600080600080600085870361010081121562000b7757600080fd5b86516001600160401b038082111562000b8f57600080fd5b62000b9d8a838b01620009a8565b975060209150818901518181111562000bb557600080fd5b62000bc38b828c01620009a8565b9750506080603f198401121562000bd957600080fd5b62000be362000925565b925089605f8a011262000bf557600080fd5b62000bff62000950565b8060c08b018c81111562000c1257600080fd5b60408c015b8181101562000c3b57805162000c2d8162000a3d565b845292850192850162000c17565b5090855251939650508083111562000c5257600080fd5b62000c608a848b0162000a7c565b945060e089015192508083111562000c7757600080fd5b505062000c878882890162000afa565b9150509295509295909350565b634e487b7160e01b600052602160045260246000fd5b604080825283519082018190526000906020906060840190828701845b8281101562000cee5781516001600160a01b03168452928401929084019060010162000cc7565b5050508381038285015284518082528583019183019060005b8181101562000d255783518352928401929184019160010162000d07565b5090979650505050505050565b600181811c9082168062000d4757607f821691505b6020821081141562000d6957634e487b7160e01b600052602260045260246000fd5b50919050565b614c898062000d7f6000396000f3fe6080604052600436106102ae5760003560e01c806365db480c11610175578063a6f2ae3a116100dc578063cf370c7c11610095578063e985e9c51161006f578063e985e9c514610905578063ec2a1a2f14610925578063f11845941461093a578063f2fde38b1461095a57600080fd5b8063cf370c7c14610890578063d30ad2ca146108c5578063e0c5b0ed146108e557600080fd5b8063a6f2ae3a1461077d578063b88d4fde14610785578063bb69b7ef146107a5578063bf62e21d14610830578063c85b380d14610850578063c87b56dd1461087057600080fd5b80639097548d1161012e5780639097548d146106d35780639106d7ba146106f357806395d89b41146107085780639ab78c161461071d578063a22cb4651461073d578063a6c575bd1461075d57600080fd5b806365db480c146105fd57806370a082311461061d578063715018a61461063d5780637bd07f8b146106525780638456cb59146106a05780638da5cb5b146106b557600080fd5b80632f274bd41161021957806342842e0e116101d257806342842e0e1461051c5780634b60d4e01461053c5780634f64b2be146105515780634f6ccce71461059e5780635c975abb146105be5780636352211e146105dd57600080fd5b80632f274bd41461045a5780632f745c591461047a57806338af3eed1461049a5780633a8b89c0146104ba5780633f4ba83a146104da578063422dae93146104ef57600080fd5b80630c431f051161026b5780630c431f0514610399578063158e3a95146103bd57806318160ddd146103d75780631c31f710146103ec57806323b872dd1461040c5780632ae3e2741461042c57600080fd5b806301ffc9a7146102b357806306fdde03146102e8578063081812fc1461030a578063094df6c614610342578063095ea7b3146103575780630bf160c514610379575b600080fd5b3480156102bf57600080fd5b506102d36102ce366004614086565b61097a565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b506102fd61098b565b6040516102df91906140fb565b34801561031657600080fd5b5061032a61032536600461410e565b610a1d565b6040516001600160a01b0390911681526020016102df565b34801561034e57600080fd5b506102fd610ab7565b34801561036357600080fd5b5061037761037236600461413c565b610b45565b005b34801561038557600080fd5b506102fd61039436600461410e565b610c5b565b3480156103a557600080fd5b506103af60205481565b6040519081526020016102df565b3480156103c957600080fd5b50601e546102d39060ff1681565b3480156103e357600080fd5b506009546103af565b3480156103f857600080fd5b50610377610407366004614168565b610ca7565b34801561041857600080fd5b50610377610427366004614185565b610cf3565b34801561043857600080fd5b5061044c6104473660046141c6565b610d25565b6040516102df9291906141e8565b34801561046657600080fd5b506103776104753660046142ae565b610f16565b34801561048657600080fd5b506103af61049536600461413c565b611104565b3480156104a657600080fd5b5060115461032a906001600160a01b031681565b3480156104c657600080fd5b506103776104d536600461434b565b61119a565b3480156104e657600080fd5b50610377611225565b3480156104fb57600080fd5b506103af61050a36600461410e565b60236020526000908152604090205481565b34801561052857600080fd5b50610377610537366004614185565b611259565b34801561054857600080fd5b50610377611274565b34801561055d57600080fd5b5061057161056c36600461410e565b6112a4565b6040805160ff958616815293851660208501529184169183019190915290911660608201526080016102df565b3480156105aa57600080fd5b506103af6105b936600461410e565b6112e4565b3480156105ca57600080fd5b50600654600160a01b900460ff166102d3565b3480156105e957600080fd5b5061032a6105f836600461410e565b611377565b34801561060957600080fd5b506103776106183660046143ec565b6113ee565b34801561062957600080fd5b506103af610638366004614168565b61172b565b34801561064957600080fd5b506103776117b2565b34801561065e57600080fd5b5060155460165460175460185460195461068e94939291906001600160f81b03811690600160f81b900460ff1686565b6040516102df969594939291906144a7565b3480156106ac57600080fd5b506103776117e6565b3480156106c157600080fd5b506006546001600160a01b031661032a565b3480156106df57600080fd5b506103af6106ee36600461410e565b611818565b3480156106ff57600080fd5b506103af61193d565b34801561071457600080fd5b506102fd61194d565b34801561072957600080fd5b5061037761073836600461410e565b61195c565b34801561074957600080fd5b50610377610758366004614501565b61198b565b34801561076957600080fd5b506103776107783660046145ac565b61199a565b6103776119d7565b34801561079157600080fd5b506103776107a03660046145f5565b6119e2565b3480156107b157600080fd5b50600c54600d54600e54600f546010546107ed949392916001600160f81b0381169160ff600160f81b9092048216918181169161010090041687565b604080519788526020880196909652948601939093526001600160f81b03909116606085015215156080840152151560a0830152151560c082015260e0016102df565b34801561083c57600080fd5b5061037761084b36600461413c565b611a14565b34801561085c57600080fd5b5061037761086b366004614675565b611b89565b34801561087c57600080fd5b506102fd61088b36600461410e565b611d71565b34801561089c57600080fd5b506108b06108ab36600461410e565b611f8d565b60405163ffffffff90911681526020016102df565b3480156108d157600080fd5b506102d36108e036600461410e565b611fc7565b3480156108f157600080fd5b5061037761090036600461410e565b611ffe565b34801561091157600080fd5b506102d36109203660046146f8565b61202d565b34801561093157600080fd5b50610377612039565b34801561094657600080fd5b506102fd6109553660046141c6565b6120b9565b34801561096657600080fd5b50610377610975366004614168565b6120db565b60006109858261217a565b92915050565b60606000805461099a90614731565b80601f01602080910402602001604051908101604052809291908181526020018280546109c690614731565b8015610a135780601f106109e857610100808354040283529160200191610a13565b820191906000526020600020905b8154815290600101906020018083116109f657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a9b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b601f8054610ac490614731565b80601f0160208091040260200160405190810160405280929190818152602001828054610af090614731565b8015610b3d5780601f10610b1257610100808354040283529160200191610b3d565b820191906000526020600020905b815481529060010190602001808311610b2057829003601f168201915b505050505081565b6000610b5082611377565b9050806001600160a01b0316836001600160a01b03161415610bbe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a92565b336001600160a01b0382161480610bda5750610bda813361202d565b610c4c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a92565b610c56838361219f565b505050565b60606000610c6883611fc7565b610c7457602454610c84565b6000838152602360205260409020545b9050610ca0836064610c968442614782565b6109559190614799565b9392505050565b6006546001600160a01b03163314610cd15760405162461bcd60e51b8152600401610a92906147b8565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b610cfe335b8261220d565b610d1a5760405162461bcd60e51b8152600401610a92906147ed565b610c568383836122dc565b610d2d613f71565b6000610d3884611fc7565b158015610d455750602454155b15610d5f5760255460208301526026546040830152610f0f565b604080516080810182526000808252602082018190529181018290526060810191909152610d8c85611fc7565b151560011415610e025760218581548110610da957610da961483e565b6000918252602080832060408051608081018252919093015460ff808216835261010082048116838501526201000082048116838601526301000000909104166060820152888452602390915291205492509050610ec3565b73450666b76e91461539ac54bd1137b2443da6427b632ffe815e8660228881548110610e3057610e3061483e565b600091825260209091206008820401546040516001600160e01b031960e086901b16815260048181019490945263ffffffff6007909316939093026101000a9004166024820152604401608060405180830381865af4158015610e97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebb9190614854565b905060245491505b610f0b8160228781548110610eda57610eda61483e565b60009182526020909120600882040154601a92916007166004026101000a900463ffffffff90811690889061248716565b9250505b9250929050565b6006546001600160a01b03163314610f405760405162461bcd60e51b8152600401610a92906147b8565b80606001516001600160f81b031681600001511015610fa15760405162461bcd60e51b815260206004820152601c60248201527f53656c6c65723a2065786365737369766520667265652071756f7461000000006044820152606401610a92565b60125481511015610ff45760405162461bcd60e51b815260206004820181905260248201527f53656c6c65723a20696e76656e746f7279203c20616c726561647920736f6c646044820152606401610a92565b60145481606001516001600160f81b0316101561105d5760405162461bcd60e51b815260206004820152602160248201527f53656c6c65723a20667265652071756f7461203c20616c7265616479207573656044820152601960fa1b6064820152608401610a92565b601054610100900460ff161561107a57600160c0820152600c5481525b60105460ff161561109e57600160a0820152600f546001600160f81b031660608201525b8051600c556020810151600d556040810151600e55606081015160808201511515600160f81b026001600160f81b0390911617600f5560a08101516010805460c09093015115156101000261ff00199215159290921661ffff1990931692909217179055565b600061110f8361172b565b82106111715760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a92565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6006546001600160a01b031633146111c45760405162461bcd60e51b8152600401610a92906147b8565b601e5460ff161561120b5760405162461bcd60e51b815260206004820152601160248201527014995c1bdcda5d1bdc9e481b1bd8dad959607a1b6044820152606401610a92565b80518190601a9061121f9082906004613f8f565b50505050565b6006546001600160a01b0316331461124f5760405162461bcd60e51b8152600401610a92906147b8565b6112576127dc565b565b610c56838383604051806020016040528060008152506119e2565b6006546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610a92906147b8565b42602455565b602181815481106112b457600080fd5b60009182526020909120015460ff8082169250610100820481169162010000810482169163010000009091041684565b60006112ef60095490565b82106113525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a92565b600982815481106113655761136561483e565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806109855760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a92565b600654600160a01b900460ff16156114185760405162461bcd60e51b8152600401610a92906148d9565b8161142233610cf8565b61147a5760405162461bcd60e51b8152602060048201526024808201527f455243373231436f6d6d6f6e3a204e6f7420617070726f766564206e6f72206f6044820152633bb732b960e11b6064820152608401610a92565b61148383611fc7565b156114c35760405162461bcd60e51b815260206004820152601060248201526f1258dbdb88185b1c9958591e481cd95d60821b6044820152606401610a92565b602454156115075760405162461bcd60e51b81526020600482015260116024820152701258dbdb881c985b991bdb5b1e481cd95d607a1b6044820152606401610a92565b6064826000015160ff16106115565760405162461bcd60e51b815260206004820152601560248201527411195cda59db881a58dbdb880c081a5b9d985b1a59605a1b6044820152606401610a92565b6064826020015160ff16106115a55760405162461bcd60e51b815260206004820152601560248201527411195cda59db881a58dbdb880c481a5b9d985b1a59605a1b6044820152606401610a92565b816020015160ff16826000015160ff1614156115fa5760405162461bcd60e51b81526020600482015260146024820152732932b832b0ba32b2103232b9b4b3b71034b1b7b760611b6044820152606401610a92565b601c826040015160ff16106116475760405162461bcd60e51b815260206004820152601360248201527214985b991bdb481a58dbdb881a5b9d985b1a59606a1b6044820152606401610a92565b6003826060015160ff161061169e5760405162461bcd60e51b815260206004820152601a60248201527f436f6d62696e6174696f6e206d6574686f6420696e76616c69640000000000006044820152606401610a92565b81602184815481106116b2576116b261483e565b600091825260208083208451920180548583015160408088015160609098015160ff90811663010000000263ff0000001999821662010000029990991663ffff0000199382166101000261ffff199095169190971617929092171693909317949094179093559481526023909152929092204290555050565b60006001600160a01b0382166117965760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a92565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117dc5760405162461bcd60e51b8152600401610a92906147b8565b6112576000612879565b6006546001600160a01b031633146118105760405162461bcd60e51b8152600401610a92906147b8565b6112576128cb565b600060158160016004830154600160f81b900460ff16600281111561183f5761183f614491565b141561184c575043611877565b60026004830154600160f81b900460ff16600281111561186e5761186e614491565b14156118775750425b815415801590611888575081548110155b6118d45760405162461bcd60e51b815260206004820152601f60248201527f4c696e656172447574636841756374696f6e3a204e6f742073746172746564006044820152606401610a92565b60028201548254600091611909916118ec9085614782565b6118f69190614919565b60048501546001600160f81b0316612930565b905082600301548161191b9190614799565b836001015461192a9190614782565b6119349086614799565b95945050505050565b600061194860125490565b905090565b60606001805461099a90614731565b6006546001600160a01b031633146119865760405162461bcd60e51b8152600401610a92906147b8565b602055565b611996338383612946565b5050565b6006546001600160a01b031633146119c45760405162461bcd60e51b8152600401610a92906147b8565b805161199690601f906020840190613fe7565b611257336001612a15565b6119ec338361220d565b611a085760405162461bcd60e51b8152600401610a92906147ed565b61121f84848484612ec7565b6006546001600160a01b03163314611a3e5760405162461bcd60e51b8152600401610a92906147b8565b600654600160a01b900460ff1615611a685760405162461bcd60e51b8152600401610a92906148d9565b600f546001600160f81b0316611a9082611a8160145490565b611a8b9084614782565b612930565b915060008211611ae25760405162461bcd60e51b815260206004820152601b60248201527f53656c6c65723a20467265652071756f746120657863656564656400000000006044820152606401610a92565b600c54611af283611a8160125490565b925060008311611b375760405162461bcd60e51b815260206004820152601060248201526f14d95b1b195c8e8814dbdb19081bdd5d60821b6044820152606401610a92565b611b4384846001612efa565b611b4e601284613022565b611b59601484613022565b80611b6360125490565b1115611b7157611b7161492d565b81611b7b60145490565b111561121f5761121f61492d565b6006546001600160a01b03163314611bb35760405162461bcd60e51b8152600401610a92906147b8565b8082608001516001600160f81b031683606001510283602001510314611c295760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610a92565b60008260a001516002811115611c4157611c41614491565b1415611c9b5760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610a92565b6000826040015111611d025760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610a92565b815160159081556020830151601655604083015160175560608301516018556080830151601980546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115611d6657611d66614491565b021790555050505050565b6040805162010060810190915262010040815260006020909101818152606091611d9a8461303f565b9050611dc8604051806040016040528060018152602001607b60f81b8152508361313d90919063ffffffff16565b604080518082019091526014815273226e616d65223a2245766572792049636f6e202360601b6020820152611dfe90839061313d565b611e08828261313d565b60408051808201909152601e81527f222c22696d616765223a22646174613a696d6167652f7376672b786d6c2c00006020820152611e4790839061313d565b611e5c611e558560006120b9565b839061313d565b60408051808201909152601381527211161130b734b6b0ba34b7b72fbab936111d1160691b6020820152611e9190839061313d565b611f2e601f8054611ea190614731565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd90614731565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b50505050508361313d90919063ffffffff16565b611f38828261313d565b604080518082019091526002815261227d60f01b6020820152611f5c90839061313d565b611f65826131c2565b604051602001611f759190614943565b60405160208183030381529060405292505050919050565b60228181548110611f9d57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b600060ff801660218381548110611fe057611fe061483e565b6000918252602090912001546301000000900460ff16141592915050565b6006546001600160a01b031633146120285760405162461bcd60e51b8152600401610a92906147b8565b601555565b6000610ca08383613328565b6006546001600160a01b031633146120635760405162461bcd60e51b8152600401610a92906147b8565b601e5460ff16156120aa5760405162461bcd60e51b815260206004820152601160248201527014995c1bdcda5d1bdc9e481b1bd8dad959607a1b6044820152606401610a92565b601e805460ff19166001179055565b606060006120c78484610d25565b5090506120d381613363565b949350505050565b6006546001600160a01b031633146121055760405162461bcd60e51b8152600401610a92906147b8565b6001600160a01b03811661216a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a92565b61217381612879565b50565b5490565b60006001600160e01b0319821663780e9d6360e01b14806109855750610985826135df565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121d482611377565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166122865760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a92565b600061229183611377565b9050806001600160a01b0316846001600160a01b031614806122cc5750836001600160a01b03166122c184610a1d565b6001600160a01b0316145b806120d357506120d3818561202d565b826001600160a01b03166122ef82611377565b6001600160a01b0316146123575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a92565b6001600160a01b0382166123b95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a92565b6123c48383836135ea565b6123cf60008261219f565b6001600160a01b03831660009081526003602052604081208054600192906123f8908490614782565b90915550506001600160a01b0382166000908152600360205260408120805460019290612426908490614988565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61248f613f71565b60006124a286866000015160ff166135f5565b905060006124b787876020015160ff166135f5565b905060006124cc88886040015160ff166136d9565b90506124d6613f71565b606088015160ff166125685760005b6004811015612562578281600481106125005761250061483e565b6020020151198482600481106125185761251861483e565b6020020151198683600481106125305761253061483e565b60200201511916171982826004811061254b5761254b61483e565b60200201528061255a816149a0565b9150506124e5565b506126d6565b876060015160ff16600114156125f85760005b6004811015612562578281600481106125965761259661483e565b6020020151198482600481106125ae576125ae61483e565b6020020151198683600481106125c6576125c661483e565b6020020151191618198282600481106125e1576125e161483e565b6020020152806125f0816149a0565b91505061257b565b876060015160ff16600214156126885760005b6004811015612562578281600481106126265761262661483e565b60200201511984826004811061263e5761263e61483e565b6020020151198683600481106126565761265661483e565b6020020151191718198282600481106126715761267161483e565b602002015280612680816149a0565b91505061260b565b60005b60048110156126d4578481600481106126a6576126a661483e565b60200201518282600481106126bd576126bd61483e565b6020020152806126cc816149a0565b91505061268b565b505b60608101805163ffffffff191663ffffffff989098169788179052600080808080805b8b8301156127c957600160ff1b915060005b6101008110801561271e57506000848e01115b156127ba578c60011696508060ff0388836004811061273f5761273f61483e565b6020020151901c6001169550838688181894508060ff0385901b831989846004811061276d5761276d61483e565b602002015116178883600481106127865761278661483e565b602002015260028787018501101561279f5760006127a2565b60015b60019d8e1c9d60ff91909116945092831c920161270b565b506004600182010690506126f9565b50949d9c50505050505050505050505050565b600654600160a01b900460ff1661282c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a92565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654600160a01b900460ff16156128f55760405162461bcd60e51b8152600401610a92906148d9565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861285c3390565b600081831061293f5781610ca0565b5090919050565b816001600160a01b0316836001600160a01b031614156129a85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a92565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6002600b541415612a685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a92565b6002600b55600654600160a01b900460ff1615612a975760405162461bcd60e51b8152600401610a92906148d9565b6040805160e081018252600c548152600d546020820152600e54918101829052600f546001600160f81b038116606083015260ff600160f81b909104811615156080830152601054808216151560a0840152610100900416151560c08201529060009015612b1257612b0d838360400151612930565b612b14565b825b905060008260800151612b28578251612b42565b60608301518351612b42916001600160f81b031690614782565b9050612b5182611a8160125490565b915060008211612b965760405162461bcd60e51b815260206004820152601060248201526f14d95b1b195c8e8814dbdb19081bdd5d60821b6044820152606401610a92565b602083015115612cf257336001600160a01b038616811415906000903214801590612bca5750326001600160a01b03881614155b9050612bfa84886040518060400160405280600b81526020016a109d5e595c881b1a5b5a5d60aa1b815250613745565b93508115612c3457612c3184336040518060400160405280600c81526020016b14d95b99195c881b1a5b5a5d60a21b815250613745565b93505b8015612c6c57612c6984326040518060400160405280600c81526020016b13dc9a59da5b881b1a5b5a5d60a21b815250613745565b93505b6001600160a01b03871660009081526013602052604081208054869290612c94908490614988565b90915550508115612cc4573360009081526013602052604081208054869290612cbe908490614988565b90915550505b8015612cef573260009081526013602052604081208054869290612ce9908490614988565b90915550505b50505b6000612cfd83611818565b905080341015612d5357612d1d612d18633b9aca0083614919565b61303f565b604051602001612d2d91906149bb565b60408051601f198184030181529082905262461bcd60e51b8252610a92916004016140fb565b612d5f86846000612efa565b612d6a601284613022565b83516012541115612d7d57612d7d61492d565b8015612de257601154612d99906001600160a01b03168261378e565b60115460408051858152602081018490526001600160a01b03909216917f01f51b99bd1c3cca301836178e5dee13aadfe44eff06dc3ddcbf3c9d058454f8910160405180910390a25b80341115612eba57336000612df78334614782565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114612e47576040519150601f19603f3d011682016040523d82523d6000602084013e612e4c565b606091505b5091509150818190612e715760405162461bcd60e51b8152600401610a9291906140fb565b50836001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d84604051612ead91815260200190565b60405180910390a2505050505b50506001600b5550505050565b612ed28484846122dc565b612ede848484846138a7565b61121f5760405162461bcd60e51b8152600401610a9290614a00565b60005b8281101561121f57612f1784612f1260095490565b6139a2565b6040805160808101825260008082526020820181815292820181815260ff60608401818152602180546001808201835591865295517f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b570909601805497519451925196841661ffff199098169790971761010094841685021763ffff00001916620100009284169290920263ff000000191691909117630100000095909216949094021790935560228054928301815590527f61035b26e3e9eee00e0d72fd1ee8ddca6894550dca6916ea2ac6baa90d11e51060088204018054600790921660040290920a63ffffffff818102199092164392909216021790558061301a816149a0565b915050612efd565b808260000160008282546130369190614988565b90915550505050565b6060816130635750506040805180820190915260018152600360fc1b602082015290565b8160005b811561308d5780613077816149a0565b91506130869050600a83614919565b9150613067565b60008167ffffffffffffffff8111156130a8576130a8614220565b6040519080825280601f01601f1916602001820160405280156130d2576020820181803683370190505b5090505b84156120d3576130e7600183614782565b91506130f4600a86614a52565b6130ff906030614988565b60f81b8183815181106131145761311461483e565b60200101906001600160f81b031916908160001a905350613136600a86614919565b94506130d6565b601f1982015182518251603f1990920191829061315a9083614988565b11156131b85760405162461bcd60e51b815260206004820152602760248201527f44796e616d69634275666665723a20417070656e64696e67206f7574206f66206044820152663137bab732399760c91b6064820152608401610a92565b61121f84846139bc565b60608151600014156131e257505060408051602081019091526000815290565b6000604051806060016040528060408152602001614c1460409139905060006003845160026132119190614988565b61321b9190614919565b613226906004614799565b90506000613235826020614988565b67ffffffffffffffff81111561324d5761324d614220565b6040519080825280601f01601f191660200182016040528015613277576020820181803683370190505b509050818152600183018586518101602084015b818310156132e3576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182535060010161328b565b6003895106600181146132fd576002811461330e5761331a565b613d3d60f01b60011983015261331a565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff1680610ca05750610ca083836139f2565b60408051620100608101909152620100408152600060209091018181526060915061349a604051602001613483907f3c7376672077696474683d2735313227206865696768743d273531322720786d81527f6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667276020820152601f60f91b6040820152661e39ba3cb6329f60c91b60418201527f726563747b77696474683a313670783b6865696768743a313670783b7374726f60488201527f6b652d77696474683a3170783b7374726f6b653a236334633463347d0000000060688201526c2e627b66696c6c3a233030307d60981b60848201526c2e777b66696c6c3a236666667d60981b6091820152671e17b9ba3cb6329f60c11b609e82015260a60190565b60408051601f19818403018152919052829061313d565b60008080805b6104008110156135ac576134b5602082614a52565b6134c0906010614799565b93506134cd602082614919565b6134d8906010614799565b92506134e661010082614a52565b6134f19060ff614782565b876134fe61010084614919565b6004811061350e5761350e61483e565b6020020151901c600116600114915061359a6135298561303f565b6135328561303f565b8461355657604051806040016040528060018152602001607760f81b815250613571565b604051806040016040528060018152602001603160f91b8152505b60405160200161358393929190614a66565b60408051601f19818403018152919052869061313d565b806135a4816149a0565b9150506134a0565b506040805180820190915260068152651e17b9bb339f60d11b60208201526135d590859061313d565b5091949350505050565b600061098582613ad4565b610c56838383613b24565b6135fd613f71565b606482106136435760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b9b4b3b71034b1b7b760691b6044820152606401610a92565b8261364f602084614919565b6004811061365f5761365f61483e565b01546001600160a01b0316638d96ee5161367a602085614a52565b6040518263ffffffff1660e01b815260040161369891815260200190565b608060405180830381865afa1580156136b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca09190614af6565b6136e1613f71565b601c82106137275760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103930b73237b69034b1b7b760691b6044820152606401610a92565b82600301546001600160a01b0316638d96ee5161367a846004614988565b6001600160a01b038216600090815260136020526040812054600d54829161376c91614782565b9050806137845782604051602001612d2d9190614b56565b6119348582612930565b804710156137de5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a92565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461382b576040519150601f19603f3d011682016040523d82523d6000602084013e613830565b606091505b5050905080610c565760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a92565b60006001600160a01b0384163b1561399a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138eb903390899088908890600401614b86565b6020604051808303816000875af1925050508015613926575060408051601f3d908101601f1916820190925261392391810190614bc3565b60015b613980573d808015613954576040519150601f19603f3d011682016040523d82523d6000602084013e613959565b606091505b5080516139785760405162461bcd60e51b8152600401610a9290614a00565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120d3565b5060016120d3565b611996828260405180602001604052806000815250613be7565b8051602082019150808201602084510184015b818410156139e75783518152602093840193016139cf565b505082510190915250565b6000804660018114613a0b5760048114613a2757613a3f565b73a5409ec958c83c3f309868babaca7c86dcb077c19150613a3f565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b038116158015906120d3575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa158015613a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ac29190614be0565b6001600160a01b031614949350505050565b60006001600160e01b031982166380ac58cd60e01b1480613b0557506001600160e01b03198216635b5e139f60e01b145b8061098557506301ffc9a760e01b6001600160e01b0319831614610985565b613b2f838383613c1a565b6001600160a01b038316613b8a57613b8581600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613bad565b816001600160a01b0316836001600160a01b031614613bad57613bad8382613c25565b6001600160a01b038216613bc457610c5681613cc2565b826001600160a01b0316826001600160a01b031614610c5657610c568282613d71565b613bf18383613db5565b613bfe60008484846138a7565b610c565760405162461bcd60e51b8152600401610a9290614a00565b610c56838383613f03565b60006001613c328461172b565b613c3c9190614782565b600083815260086020526040902054909150808214613c8f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613cd490600190614782565b6000838152600a602052604081205460098054939450909284908110613cfc57613cfc61483e565b906000526020600020015490508060098381548110613d1d57613d1d61483e565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613d5557613d55614bfd565b6001900381819060005260206000200160009055905550505050565b6000613d7c8361172b565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216613e0b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a92565b6000818152600260205260409020546001600160a01b031615613e705760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a92565b613e7c600083836135ea565b6001600160a01b0382166000908152600360205260408120805460019290613ea5908490614988565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600654600160a01b900460ff1615610c565760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610a92565b60405180608001604052806004906020820280368337509192915050565b8260048101928215613fd7579160200282015b82811115613fd757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613fa2565b50613fe392915061405b565b5090565b828054613ff390614731565b90600052602060002090601f0160209004810192826140155760008555613fd7565b82601f1061402e57805160ff1916838001178555613fd7565b82800160010185558215613fd7579182015b82811115613fd7578251825591602001919060010190614040565b5b80821115613fe3576000815560010161405c565b6001600160e01b03198116811461217357600080fd5b60006020828403121561409857600080fd5b8135610ca081614070565b60005b838110156140be5781810151838201526020016140a6565b8381111561121f5750506000910152565b600081518084526140e78160208601602086016140a3565b601f01601f19169290920160200192915050565b602081526000610ca060208301846140cf565b60006020828403121561412057600080fd5b5035919050565b6001600160a01b038116811461217357600080fd5b6000806040838503121561414f57600080fd5b823561415a81614127565b946020939093013593505050565b60006020828403121561417a57600080fd5b8135610ca081614127565b60008060006060848603121561419a57600080fd5b83356141a581614127565b925060208401356141b581614127565b929592945050506040919091013590565b600080604083850312156141d957600080fd5b50508035926020909101359150565b60a08101818460005b60048110156142105781518352602092830192909101906001016141f1565b5050508260808301529392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c0810167ffffffffffffffff8111828210171561425957614259614220565b60405290565b6040516080810167ffffffffffffffff8111828210171561425957614259614220565b80356001600160f81b038116811461429957600080fd5b919050565b8035801515811461429957600080fd5b600060e082840312156142c057600080fd5b60405160e0810181811067ffffffffffffffff821117156142e3576142e3614220565b806040525082358152602083013560208201526040830135604082015261430c60608401614282565b606082015261431d6080840161429e565b608082015261432e60a0840161429e565b60a082015261433f60c0840161429e565b60c08201529392505050565b60006080828403121561435d57600080fd5b604051602080820182811067ffffffffffffffff8211171561438157614381614220565b604052601f8401851361439357600080fd5b61439b61425f565b8060808601878111156143ad57600080fd5b865b818110156143cf5780356143c281614127565b84529284019284016143af565b505083525090949350505050565b60ff8116811461217357600080fd5b60008082840360a081121561440057600080fd5b833592506080601f198201121561441657600080fd5b506040516080810181811067ffffffffffffffff8211171561443a5761443a614220565b604052602084013561444b816143dd565b8152604084013561445b816143dd565b6020820152606084013561446e816143dd565b60408201526080840135614481816143dd565b6060820152919491935090915050565b634e487b7160e01b600052602160045260246000fd5b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c08101600383106144f057634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b6000806040838503121561451457600080fd5b823561451f81614127565b915061452d6020840161429e565b90509250929050565b600067ffffffffffffffff8084111561455157614551614220565b604051601f8501601f19908116603f0116810190828211818310171561457957614579614220565b8160405280935085815286868601111561459257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156145be57600080fd5b813567ffffffffffffffff8111156145d557600080fd5b8201601f810184136145e657600080fd5b6120d384823560208401614536565b6000806000806080858703121561460b57600080fd5b843561461681614127565b9350602085013561462681614127565b925060408501359150606085013567ffffffffffffffff81111561464957600080fd5b8501601f8101871361465a57600080fd5b61466987823560208401614536565b91505092959194509250565b60008082840360e081121561468957600080fd5b60c081121561469757600080fd5b506146a0614236565b833581526020840135602082015260408401356040820152606084013560608201526146ce60808501614282565b608082015260a0840135600381106146e557600080fd5b60a08201529460c0939093013593505050565b6000806040838503121561470b57600080fd5b823561471681614127565b9150602083013561472681614127565b809150509250929050565b600181811c9082168061474557607f821691505b6020821081141561476657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156147945761479461476c565b500390565b60008160001904831182151516156147b3576147b361476c565b500290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006080828403121561486657600080fd5b6040516080810181811067ffffffffffffffff8211171561488957614889614220565b6040528251614897816143dd565b815260208301516148a7816143dd565b602082015260408301516148ba816143dd565b604082015260608301516148cd816143dd565b60608201529392505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b60008261492857614928614903565b500490565b634e487b7160e01b600052600160045260246000fd5b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161497b81601d8501602087016140a3565b91909101601d0192915050565b6000821982111561499b5761499b61476c565b500190565b60006000198214156149b4576149b461476c565b5060010190565b6d029b2b63632b91d1021b7b9ba39960951b8152600082516149e481600e8501602087016140a3565b64204757656960d81b600e939091019283015250601301919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614a6157614a61614903565b500690565b683c7265637420783d2760b81b815260008451614a8a8160098501602089016140a3565b642720793d2760d81b6009918401918201528451614aaf81600e8401602089016140a3565b682720636c6173733d2760b81b600e92909101918201528351614ad98160178401602088016140a3565b6213979f60e91b60179290910191820152601a0195945050505050565b600060808284031215614b0857600080fd5b82601f830112614b1757600080fd5b614b1f61425f565b806080840185811115614b3157600080fd5b845b81811015614b4b578051845260209384019301614b33565b509095945050505050565b67029b2b63632b91d160c51b815260008251614b798160088501602087016140a3565b9190910160080192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614bb9908301846140cf565b9695505050505050565b600060208284031215614bd557600080fd5b8151610ca081614070565b600060208284031215614bf257600080fd5b8151610ca081614127565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d41e52f26abb512e3f27ab0f8f3d450545ad11096530b95053b0e0933a43110864736f6c634300080a00336080604052604051620011533803806200115383398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b50505062000571565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000556565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200054f576200054f62000522565b5060010190565b600082198211156200056c576200056c62000522565b500190565b610bd280620005816000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f3366004610946565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610963565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610963565b6103aa565b34801561019057600080fd5b506101a461019f36600461099c565b610583565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d7366004610946565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d366004610946565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b610243366004610946565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109b5565b60405180910390fd5b60006102bc60015490565b6102c69047610a11565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105b3565b9050806103125760405162461bcd60e51b81526004016102a890610a29565b6001600160a01b0383166000908152600360205260408120805483929061033a908490610a11565b9250508190555080600160008282546103539190610a11565b90915550610363905083826105f8565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103df5760405162461bcd60e51b81526004016102a8906109b5565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561043c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104609190610a74565b61046a9190610a11565b905060006104a383836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806104c25760405162461bcd60e51b81526004016102a890610a29565b6001600160a01b038085166000908152600660209081526040808320938716835292905290812080548392906104f9908490610a11565b90915550506001600160a01b03841660009081526005602052604081208054839290610526908490610a11565b909155506105379050848483610716565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006004828154811061059857610598610a8d565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105da9086610aa3565b6105e49190610ac2565b6105ee9190610ae4565b90505b9392505050565b804710156106485760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610695576040519150601f19603f3d011682016040523d82523d6000602084013e61069a565b606091505b50509050806107115760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610711928692916000916107a6918516908490610823565b80519091501561071157808060200190518101906107c49190610afb565b6107115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105ee848460008585843b61087c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b031685876040516108989190610b4d565b60006040518083038185875af1925050503d80600081146108d5576040519150601f19603f3d011682016040523d82523d6000602084013e6108da565b606091505b50915091506108ea8282866108f5565b979650505050505050565b606083156109045750816105f1565b8251156109145782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b69565b6001600160a01b038116811461094357600080fd5b50565b60006020828403121561095857600080fd5b81356105f18161092e565b6000806040838503121561097657600080fd5b82356109818161092e565b915060208301356109918161092e565b809150509250929050565b6000602082840312156109ae57600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a2457610a246109fb565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a8657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610abd57610abd6109fb565b500290565b600082610adf57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610af657610af66109fb565b500390565b600060208284031215610b0d57600080fd5b815180151581146105f157600080fd5b60005b83811015610b38578181015183820152602001610b20565b83811115610b47576000848401525b50505050565b60008251610b5f818460208701610b1d565b9190910192915050565b6020815260008251806020840152610b88816040850160208701610b1d565b601f01601f1916919091016040019291505056fea26469706673582212209fb91d5e307a3a800500e33731475a5ab98b465be14754426845f22e4a86d08764736f6c634300080a00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000070c2f23c71603463ebbcd10833d48e3e39d18b7c0000000000000000000000002c3f985127566fca31808e02acea4c86591a85380000000000000000000000008fb0ae4c4f5bebc5d1513699a74bf5703df01a940000000000000000000000004534a701e3bfb5c7015297fa75996a766c03930300000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000a45766572792049636f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000449636f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006ecfa61c589416df35ab818020ea61fe894af904000000000000000000000000bc49de68bcbd164574847a7ced47e7475179c76b0000000000000000000000001ddcf25f111f5fb653da75ab75ce68b928c56a6300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000fa

Deployed Bytecode

0x6080604052600436106102ae5760003560e01c806365db480c11610175578063a6f2ae3a116100dc578063cf370c7c11610095578063e985e9c51161006f578063e985e9c514610905578063ec2a1a2f14610925578063f11845941461093a578063f2fde38b1461095a57600080fd5b8063cf370c7c14610890578063d30ad2ca146108c5578063e0c5b0ed146108e557600080fd5b8063a6f2ae3a1461077d578063b88d4fde14610785578063bb69b7ef146107a5578063bf62e21d14610830578063c85b380d14610850578063c87b56dd1461087057600080fd5b80639097548d1161012e5780639097548d146106d35780639106d7ba146106f357806395d89b41146107085780639ab78c161461071d578063a22cb4651461073d578063a6c575bd1461075d57600080fd5b806365db480c146105fd57806370a082311461061d578063715018a61461063d5780637bd07f8b146106525780638456cb59146106a05780638da5cb5b146106b557600080fd5b80632f274bd41161021957806342842e0e116101d257806342842e0e1461051c5780634b60d4e01461053c5780634f64b2be146105515780634f6ccce71461059e5780635c975abb146105be5780636352211e146105dd57600080fd5b80632f274bd41461045a5780632f745c591461047a57806338af3eed1461049a5780633a8b89c0146104ba5780633f4ba83a146104da578063422dae93146104ef57600080fd5b80630c431f051161026b5780630c431f0514610399578063158e3a95146103bd57806318160ddd146103d75780631c31f710146103ec57806323b872dd1461040c5780632ae3e2741461042c57600080fd5b806301ffc9a7146102b357806306fdde03146102e8578063081812fc1461030a578063094df6c614610342578063095ea7b3146103575780630bf160c514610379575b600080fd5b3480156102bf57600080fd5b506102d36102ce366004614086565b61097a565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b506102fd61098b565b6040516102df91906140fb565b34801561031657600080fd5b5061032a61032536600461410e565b610a1d565b6040516001600160a01b0390911681526020016102df565b34801561034e57600080fd5b506102fd610ab7565b34801561036357600080fd5b5061037761037236600461413c565b610b45565b005b34801561038557600080fd5b506102fd61039436600461410e565b610c5b565b3480156103a557600080fd5b506103af60205481565b6040519081526020016102df565b3480156103c957600080fd5b50601e546102d39060ff1681565b3480156103e357600080fd5b506009546103af565b3480156103f857600080fd5b50610377610407366004614168565b610ca7565b34801561041857600080fd5b50610377610427366004614185565b610cf3565b34801561043857600080fd5b5061044c6104473660046141c6565b610d25565b6040516102df9291906141e8565b34801561046657600080fd5b506103776104753660046142ae565b610f16565b34801561048657600080fd5b506103af61049536600461413c565b611104565b3480156104a657600080fd5b5060115461032a906001600160a01b031681565b3480156104c657600080fd5b506103776104d536600461434b565b61119a565b3480156104e657600080fd5b50610377611225565b3480156104fb57600080fd5b506103af61050a36600461410e565b60236020526000908152604090205481565b34801561052857600080fd5b50610377610537366004614185565b611259565b34801561054857600080fd5b50610377611274565b34801561055d57600080fd5b5061057161056c36600461410e565b6112a4565b6040805160ff958616815293851660208501529184169183019190915290911660608201526080016102df565b3480156105aa57600080fd5b506103af6105b936600461410e565b6112e4565b3480156105ca57600080fd5b50600654600160a01b900460ff166102d3565b3480156105e957600080fd5b5061032a6105f836600461410e565b611377565b34801561060957600080fd5b506103776106183660046143ec565b6113ee565b34801561062957600080fd5b506103af610638366004614168565b61172b565b34801561064957600080fd5b506103776117b2565b34801561065e57600080fd5b5060155460165460175460185460195461068e94939291906001600160f81b03811690600160f81b900460ff1686565b6040516102df969594939291906144a7565b3480156106ac57600080fd5b506103776117e6565b3480156106c157600080fd5b506006546001600160a01b031661032a565b3480156106df57600080fd5b506103af6106ee36600461410e565b611818565b3480156106ff57600080fd5b506103af61193d565b34801561071457600080fd5b506102fd61194d565b34801561072957600080fd5b5061037761073836600461410e565b61195c565b34801561074957600080fd5b50610377610758366004614501565b61198b565b34801561076957600080fd5b506103776107783660046145ac565b61199a565b6103776119d7565b34801561079157600080fd5b506103776107a03660046145f5565b6119e2565b3480156107b157600080fd5b50600c54600d54600e54600f546010546107ed949392916001600160f81b0381169160ff600160f81b9092048216918181169161010090041687565b604080519788526020880196909652948601939093526001600160f81b03909116606085015215156080840152151560a0830152151560c082015260e0016102df565b34801561083c57600080fd5b5061037761084b36600461413c565b611a14565b34801561085c57600080fd5b5061037761086b366004614675565b611b89565b34801561087c57600080fd5b506102fd61088b36600461410e565b611d71565b34801561089c57600080fd5b506108b06108ab36600461410e565b611f8d565b60405163ffffffff90911681526020016102df565b3480156108d157600080fd5b506102d36108e036600461410e565b611fc7565b3480156108f157600080fd5b5061037761090036600461410e565b611ffe565b34801561091157600080fd5b506102d36109203660046146f8565b61202d565b34801561093157600080fd5b50610377612039565b34801561094657600080fd5b506102fd6109553660046141c6565b6120b9565b34801561096657600080fd5b50610377610975366004614168565b6120db565b60006109858261217a565b92915050565b60606000805461099a90614731565b80601f01602080910402602001604051908101604052809291908181526020018280546109c690614731565b8015610a135780601f106109e857610100808354040283529160200191610a13565b820191906000526020600020905b8154815290600101906020018083116109f657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a9b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b601f8054610ac490614731565b80601f0160208091040260200160405190810160405280929190818152602001828054610af090614731565b8015610b3d5780601f10610b1257610100808354040283529160200191610b3d565b820191906000526020600020905b815481529060010190602001808311610b2057829003601f168201915b505050505081565b6000610b5082611377565b9050806001600160a01b0316836001600160a01b03161415610bbe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a92565b336001600160a01b0382161480610bda5750610bda813361202d565b610c4c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a92565b610c56838361219f565b505050565b60606000610c6883611fc7565b610c7457602454610c84565b6000838152602360205260409020545b9050610ca0836064610c968442614782565b6109559190614799565b9392505050565b6006546001600160a01b03163314610cd15760405162461bcd60e51b8152600401610a92906147b8565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b610cfe335b8261220d565b610d1a5760405162461bcd60e51b8152600401610a92906147ed565b610c568383836122dc565b610d2d613f71565b6000610d3884611fc7565b158015610d455750602454155b15610d5f5760255460208301526026546040830152610f0f565b604080516080810182526000808252602082018190529181018290526060810191909152610d8c85611fc7565b151560011415610e025760218581548110610da957610da961483e565b6000918252602080832060408051608081018252919093015460ff808216835261010082048116838501526201000082048116838601526301000000909104166060820152888452602390915291205492509050610ec3565b73450666b76e91461539ac54bd1137b2443da6427b632ffe815e8660228881548110610e3057610e3061483e565b600091825260209091206008820401546040516001600160e01b031960e086901b16815260048181019490945263ffffffff6007909316939093026101000a9004166024820152604401608060405180830381865af4158015610e97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebb9190614854565b905060245491505b610f0b8160228781548110610eda57610eda61483e565b60009182526020909120600882040154601a92916007166004026101000a900463ffffffff90811690889061248716565b9250505b9250929050565b6006546001600160a01b03163314610f405760405162461bcd60e51b8152600401610a92906147b8565b80606001516001600160f81b031681600001511015610fa15760405162461bcd60e51b815260206004820152601c60248201527f53656c6c65723a2065786365737369766520667265652071756f7461000000006044820152606401610a92565b60125481511015610ff45760405162461bcd60e51b815260206004820181905260248201527f53656c6c65723a20696e76656e746f7279203c20616c726561647920736f6c646044820152606401610a92565b60145481606001516001600160f81b0316101561105d5760405162461bcd60e51b815260206004820152602160248201527f53656c6c65723a20667265652071756f7461203c20616c7265616479207573656044820152601960fa1b6064820152608401610a92565b601054610100900460ff161561107a57600160c0820152600c5481525b60105460ff161561109e57600160a0820152600f546001600160f81b031660608201525b8051600c556020810151600d556040810151600e55606081015160808201511515600160f81b026001600160f81b0390911617600f5560a08101516010805460c09093015115156101000261ff00199215159290921661ffff1990931692909217179055565b600061110f8361172b565b82106111715760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a92565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6006546001600160a01b031633146111c45760405162461bcd60e51b8152600401610a92906147b8565b601e5460ff161561120b5760405162461bcd60e51b815260206004820152601160248201527014995c1bdcda5d1bdc9e481b1bd8dad959607a1b6044820152606401610a92565b80518190601a9061121f9082906004613f8f565b50505050565b6006546001600160a01b0316331461124f5760405162461bcd60e51b8152600401610a92906147b8565b6112576127dc565b565b610c56838383604051806020016040528060008152506119e2565b6006546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610a92906147b8565b42602455565b602181815481106112b457600080fd5b60009182526020909120015460ff8082169250610100820481169162010000810482169163010000009091041684565b60006112ef60095490565b82106113525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a92565b600982815481106113655761136561483e565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806109855760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a92565b600654600160a01b900460ff16156114185760405162461bcd60e51b8152600401610a92906148d9565b8161142233610cf8565b61147a5760405162461bcd60e51b8152602060048201526024808201527f455243373231436f6d6d6f6e3a204e6f7420617070726f766564206e6f72206f6044820152633bb732b960e11b6064820152608401610a92565b61148383611fc7565b156114c35760405162461bcd60e51b815260206004820152601060248201526f1258dbdb88185b1c9958591e481cd95d60821b6044820152606401610a92565b602454156115075760405162461bcd60e51b81526020600482015260116024820152701258dbdb881c985b991bdb5b1e481cd95d607a1b6044820152606401610a92565b6064826000015160ff16106115565760405162461bcd60e51b815260206004820152601560248201527411195cda59db881a58dbdb880c081a5b9d985b1a59605a1b6044820152606401610a92565b6064826020015160ff16106115a55760405162461bcd60e51b815260206004820152601560248201527411195cda59db881a58dbdb880c481a5b9d985b1a59605a1b6044820152606401610a92565b816020015160ff16826000015160ff1614156115fa5760405162461bcd60e51b81526020600482015260146024820152732932b832b0ba32b2103232b9b4b3b71034b1b7b760611b6044820152606401610a92565b601c826040015160ff16106116475760405162461bcd60e51b815260206004820152601360248201527214985b991bdb481a58dbdb881a5b9d985b1a59606a1b6044820152606401610a92565b6003826060015160ff161061169e5760405162461bcd60e51b815260206004820152601a60248201527f436f6d62696e6174696f6e206d6574686f6420696e76616c69640000000000006044820152606401610a92565b81602184815481106116b2576116b261483e565b600091825260208083208451920180548583015160408088015160609098015160ff90811663010000000263ff0000001999821662010000029990991663ffff0000199382166101000261ffff199095169190971617929092171693909317949094179093559481526023909152929092204290555050565b60006001600160a01b0382166117965760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a92565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146117dc5760405162461bcd60e51b8152600401610a92906147b8565b6112576000612879565b6006546001600160a01b031633146118105760405162461bcd60e51b8152600401610a92906147b8565b6112576128cb565b600060158160016004830154600160f81b900460ff16600281111561183f5761183f614491565b141561184c575043611877565b60026004830154600160f81b900460ff16600281111561186e5761186e614491565b14156118775750425b815415801590611888575081548110155b6118d45760405162461bcd60e51b815260206004820152601f60248201527f4c696e656172447574636841756374696f6e3a204e6f742073746172746564006044820152606401610a92565b60028201548254600091611909916118ec9085614782565b6118f69190614919565b60048501546001600160f81b0316612930565b905082600301548161191b9190614799565b836001015461192a9190614782565b6119349086614799565b95945050505050565b600061194860125490565b905090565b60606001805461099a90614731565b6006546001600160a01b031633146119865760405162461bcd60e51b8152600401610a92906147b8565b602055565b611996338383612946565b5050565b6006546001600160a01b031633146119c45760405162461bcd60e51b8152600401610a92906147b8565b805161199690601f906020840190613fe7565b611257336001612a15565b6119ec338361220d565b611a085760405162461bcd60e51b8152600401610a92906147ed565b61121f84848484612ec7565b6006546001600160a01b03163314611a3e5760405162461bcd60e51b8152600401610a92906147b8565b600654600160a01b900460ff1615611a685760405162461bcd60e51b8152600401610a92906148d9565b600f546001600160f81b0316611a9082611a8160145490565b611a8b9084614782565b612930565b915060008211611ae25760405162461bcd60e51b815260206004820152601b60248201527f53656c6c65723a20467265652071756f746120657863656564656400000000006044820152606401610a92565b600c54611af283611a8160125490565b925060008311611b375760405162461bcd60e51b815260206004820152601060248201526f14d95b1b195c8e8814dbdb19081bdd5d60821b6044820152606401610a92565b611b4384846001612efa565b611b4e601284613022565b611b59601484613022565b80611b6360125490565b1115611b7157611b7161492d565b81611b7b60145490565b111561121f5761121f61492d565b6006546001600160a01b03163314611bb35760405162461bcd60e51b8152600401610a92906147b8565b8082608001516001600160f81b031683606001510283602001510314611c295760405162461bcd60e51b815260206004820152602560248201527f4c696e656172447574636841756374696f6e3a20696e636f7272656374207265604482015264736572766560d81b6064820152608401610a92565b60008260a001516002811115611c4157611c41614491565b1415611c9b5760405162461bcd60e51b8152602060048201526024808201527f4c696e656172447574636841756374696f6e3a20756e737065636966696564206044820152631d5b9a5d60e21b6064820152608401610a92565b6000826040015111611d025760405162461bcd60e51b815260206004820152602a60248201527f4c696e656172447574636841756374696f6e3a207a65726f206465637265617360448201526919481a5b9d195c9d985b60b21b6064820152608401610a92565b815160159081556020830151601655604083015160175560608301516018556080830151601980546001600160f81b0319166001600160f81b03909216918217815560a0850151859392909190600160f81b836002811115611d6657611d66614491565b021790555050505050565b6040805162010060810190915262010040815260006020909101818152606091611d9a8461303f565b9050611dc8604051806040016040528060018152602001607b60f81b8152508361313d90919063ffffffff16565b604080518082019091526014815273226e616d65223a2245766572792049636f6e202360601b6020820152611dfe90839061313d565b611e08828261313d565b60408051808201909152601e81527f222c22696d616765223a22646174613a696d6167652f7376672b786d6c2c00006020820152611e4790839061313d565b611e5c611e558560006120b9565b839061313d565b60408051808201909152601381527211161130b734b6b0ba34b7b72fbab936111d1160691b6020820152611e9190839061313d565b611f2e601f8054611ea190614731565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd90614731565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b50505050508361313d90919063ffffffff16565b611f38828261313d565b604080518082019091526002815261227d60f01b6020820152611f5c90839061313d565b611f65826131c2565b604051602001611f759190614943565b60405160208183030381529060405292505050919050565b60228181548110611f9d57600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b600060ff801660218381548110611fe057611fe061483e565b6000918252602090912001546301000000900460ff16141592915050565b6006546001600160a01b031633146120285760405162461bcd60e51b8152600401610a92906147b8565b601555565b6000610ca08383613328565b6006546001600160a01b031633146120635760405162461bcd60e51b8152600401610a92906147b8565b601e5460ff16156120aa5760405162461bcd60e51b815260206004820152601160248201527014995c1bdcda5d1bdc9e481b1bd8dad959607a1b6044820152606401610a92565b601e805460ff19166001179055565b606060006120c78484610d25565b5090506120d381613363565b949350505050565b6006546001600160a01b031633146121055760405162461bcd60e51b8152600401610a92906147b8565b6001600160a01b03811661216a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a92565b61217381612879565b50565b5490565b60006001600160e01b0319821663780e9d6360e01b14806109855750610985826135df565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121d482611377565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166122865760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a92565b600061229183611377565b9050806001600160a01b0316846001600160a01b031614806122cc5750836001600160a01b03166122c184610a1d565b6001600160a01b0316145b806120d357506120d3818561202d565b826001600160a01b03166122ef82611377565b6001600160a01b0316146123575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a92565b6001600160a01b0382166123b95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a92565b6123c48383836135ea565b6123cf60008261219f565b6001600160a01b03831660009081526003602052604081208054600192906123f8908490614782565b90915550506001600160a01b0382166000908152600360205260408120805460019290612426908490614988565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61248f613f71565b60006124a286866000015160ff166135f5565b905060006124b787876020015160ff166135f5565b905060006124cc88886040015160ff166136d9565b90506124d6613f71565b606088015160ff166125685760005b6004811015612562578281600481106125005761250061483e565b6020020151198482600481106125185761251861483e565b6020020151198683600481106125305761253061483e565b60200201511916171982826004811061254b5761254b61483e565b60200201528061255a816149a0565b9150506124e5565b506126d6565b876060015160ff16600114156125f85760005b6004811015612562578281600481106125965761259661483e565b6020020151198482600481106125ae576125ae61483e565b6020020151198683600481106125c6576125c661483e565b6020020151191618198282600481106125e1576125e161483e565b6020020152806125f0816149a0565b91505061257b565b876060015160ff16600214156126885760005b6004811015612562578281600481106126265761262661483e565b60200201511984826004811061263e5761263e61483e565b6020020151198683600481106126565761265661483e565b6020020151191718198282600481106126715761267161483e565b602002015280612680816149a0565b91505061260b565b60005b60048110156126d4578481600481106126a6576126a661483e565b60200201518282600481106126bd576126bd61483e565b6020020152806126cc816149a0565b91505061268b565b505b60608101805163ffffffff191663ffffffff989098169788179052600080808080805b8b8301156127c957600160ff1b915060005b6101008110801561271e57506000848e01115b156127ba578c60011696508060ff0388836004811061273f5761273f61483e565b6020020151901c6001169550838688181894508060ff0385901b831989846004811061276d5761276d61483e565b602002015116178883600481106127865761278661483e565b602002015260028787018501101561279f5760006127a2565b60015b60019d8e1c9d60ff91909116945092831c920161270b565b506004600182010690506126f9565b50949d9c50505050505050505050505050565b600654600160a01b900460ff1661282c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a92565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654600160a01b900460ff16156128f55760405162461bcd60e51b8152600401610a92906148d9565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861285c3390565b600081831061293f5781610ca0565b5090919050565b816001600160a01b0316836001600160a01b031614156129a85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a92565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6002600b541415612a685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a92565b6002600b55600654600160a01b900460ff1615612a975760405162461bcd60e51b8152600401610a92906148d9565b6040805160e081018252600c548152600d546020820152600e54918101829052600f546001600160f81b038116606083015260ff600160f81b909104811615156080830152601054808216151560a0840152610100900416151560c08201529060009015612b1257612b0d838360400151612930565b612b14565b825b905060008260800151612b28578251612b42565b60608301518351612b42916001600160f81b031690614782565b9050612b5182611a8160125490565b915060008211612b965760405162461bcd60e51b815260206004820152601060248201526f14d95b1b195c8e8814dbdb19081bdd5d60821b6044820152606401610a92565b602083015115612cf257336001600160a01b038616811415906000903214801590612bca5750326001600160a01b03881614155b9050612bfa84886040518060400160405280600b81526020016a109d5e595c881b1a5b5a5d60aa1b815250613745565b93508115612c3457612c3184336040518060400160405280600c81526020016b14d95b99195c881b1a5b5a5d60a21b815250613745565b93505b8015612c6c57612c6984326040518060400160405280600c81526020016b13dc9a59da5b881b1a5b5a5d60a21b815250613745565b93505b6001600160a01b03871660009081526013602052604081208054869290612c94908490614988565b90915550508115612cc4573360009081526013602052604081208054869290612cbe908490614988565b90915550505b8015612cef573260009081526013602052604081208054869290612ce9908490614988565b90915550505b50505b6000612cfd83611818565b905080341015612d5357612d1d612d18633b9aca0083614919565b61303f565b604051602001612d2d91906149bb565b60408051601f198184030181529082905262461bcd60e51b8252610a92916004016140fb565b612d5f86846000612efa565b612d6a601284613022565b83516012541115612d7d57612d7d61492d565b8015612de257601154612d99906001600160a01b03168261378e565b60115460408051858152602081018490526001600160a01b03909216917f01f51b99bd1c3cca301836178e5dee13aadfe44eff06dc3ddcbf3c9d058454f8910160405180910390a25b80341115612eba57336000612df78334614782565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114612e47576040519150601f19603f3d011682016040523d82523d6000602084013e612e4c565b606091505b5091509150818190612e715760405162461bcd60e51b8152600401610a9291906140fb565b50836001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d84604051612ead91815260200190565b60405180910390a2505050505b50506001600b5550505050565b612ed28484846122dc565b612ede848484846138a7565b61121f5760405162461bcd60e51b8152600401610a9290614a00565b60005b8281101561121f57612f1784612f1260095490565b6139a2565b6040805160808101825260008082526020820181815292820181815260ff60608401818152602180546001808201835591865295517f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b570909601805497519451925196841661ffff199098169790971761010094841685021763ffff00001916620100009284169290920263ff000000191691909117630100000095909216949094021790935560228054928301815590527f61035b26e3e9eee00e0d72fd1ee8ddca6894550dca6916ea2ac6baa90d11e51060088204018054600790921660040290920a63ffffffff818102199092164392909216021790558061301a816149a0565b915050612efd565b808260000160008282546130369190614988565b90915550505050565b6060816130635750506040805180820190915260018152600360fc1b602082015290565b8160005b811561308d5780613077816149a0565b91506130869050600a83614919565b9150613067565b60008167ffffffffffffffff8111156130a8576130a8614220565b6040519080825280601f01601f1916602001820160405280156130d2576020820181803683370190505b5090505b84156120d3576130e7600183614782565b91506130f4600a86614a52565b6130ff906030614988565b60f81b8183815181106131145761311461483e565b60200101906001600160f81b031916908160001a905350613136600a86614919565b94506130d6565b601f1982015182518251603f1990920191829061315a9083614988565b11156131b85760405162461bcd60e51b815260206004820152602760248201527f44796e616d69634275666665723a20417070656e64696e67206f7574206f66206044820152663137bab732399760c91b6064820152608401610a92565b61121f84846139bc565b60608151600014156131e257505060408051602081019091526000815290565b6000604051806060016040528060408152602001614c1460409139905060006003845160026132119190614988565b61321b9190614919565b613226906004614799565b90506000613235826020614988565b67ffffffffffffffff81111561324d5761324d614220565b6040519080825280601f01601f191660200182016040528015613277576020820181803683370190505b509050818152600183018586518101602084015b818310156132e3576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182535060010161328b565b6003895106600181146132fd576002811461330e5761331a565b613d3d60f01b60011983015261331a565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b03808316600090815260056020908152604080832093851683529290529081205460ff1680610ca05750610ca083836139f2565b60408051620100608101909152620100408152600060209091018181526060915061349a604051602001613483907f3c7376672077696474683d2735313227206865696768743d273531322720786d81527f6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667276020820152601f60f91b6040820152661e39ba3cb6329f60c91b60418201527f726563747b77696474683a313670783b6865696768743a313670783b7374726f60488201527f6b652d77696474683a3170783b7374726f6b653a236334633463347d0000000060688201526c2e627b66696c6c3a233030307d60981b60848201526c2e777b66696c6c3a236666667d60981b6091820152671e17b9ba3cb6329f60c11b609e82015260a60190565b60408051601f19818403018152919052829061313d565b60008080805b6104008110156135ac576134b5602082614a52565b6134c0906010614799565b93506134cd602082614919565b6134d8906010614799565b92506134e661010082614a52565b6134f19060ff614782565b876134fe61010084614919565b6004811061350e5761350e61483e565b6020020151901c600116600114915061359a6135298561303f565b6135328561303f565b8461355657604051806040016040528060018152602001607760f81b815250613571565b604051806040016040528060018152602001603160f91b8152505b60405160200161358393929190614a66565b60408051601f19818403018152919052869061313d565b806135a4816149a0565b9150506134a0565b506040805180820190915260068152651e17b9bb339f60d11b60208201526135d590859061313d565b5091949350505050565b600061098582613ad4565b610c56838383613b24565b6135fd613f71565b606482106136435760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b9b4b3b71034b1b7b760691b6044820152606401610a92565b8261364f602084614919565b6004811061365f5761365f61483e565b01546001600160a01b0316638d96ee5161367a602085614a52565b6040518263ffffffff1660e01b815260040161369891815260200190565b608060405180830381865afa1580156136b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca09190614af6565b6136e1613f71565b601c82106137275760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103930b73237b69034b1b7b760691b6044820152606401610a92565b82600301546001600160a01b0316638d96ee5161367a846004614988565b6001600160a01b038216600090815260136020526040812054600d54829161376c91614782565b9050806137845782604051602001612d2d9190614b56565b6119348582612930565b804710156137de5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a92565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461382b576040519150601f19603f3d011682016040523d82523d6000602084013e613830565b606091505b5050905080610c565760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a92565b60006001600160a01b0384163b1561399a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138eb903390899088908890600401614b86565b6020604051808303816000875af1925050508015613926575060408051601f3d908101601f1916820190925261392391810190614bc3565b60015b613980573d808015613954576040519150601f19603f3d011682016040523d82523d6000602084013e613959565b606091505b5080516139785760405162461bcd60e51b8152600401610a9290614a00565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120d3565b5060016120d3565b611996828260405180602001604052806000815250613be7565b8051602082019150808201602084510184015b818410156139e75783518152602093840193016139cf565b505082510190915250565b6000804660018114613a0b5760048114613a2757613a3f565b73a5409ec958c83c3f309868babaca7c86dcb077c19150613a3f565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b038116158015906120d3575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa158015613a9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ac29190614be0565b6001600160a01b031614949350505050565b60006001600160e01b031982166380ac58cd60e01b1480613b0557506001600160e01b03198216635b5e139f60e01b145b8061098557506301ffc9a760e01b6001600160e01b0319831614610985565b613b2f838383613c1a565b6001600160a01b038316613b8a57613b8581600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613bad565b816001600160a01b0316836001600160a01b031614613bad57613bad8382613c25565b6001600160a01b038216613bc457610c5681613cc2565b826001600160a01b0316826001600160a01b031614610c5657610c568282613d71565b613bf18383613db5565b613bfe60008484846138a7565b610c565760405162461bcd60e51b8152600401610a9290614a00565b610c56838383613f03565b60006001613c328461172b565b613c3c9190614782565b600083815260086020526040902054909150808214613c8f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613cd490600190614782565b6000838152600a602052604081205460098054939450909284908110613cfc57613cfc61483e565b906000526020600020015490508060098381548110613d1d57613d1d61483e565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613d5557613d55614bfd565b6001900381819060005260206000200160009055905550505050565b6000613d7c8361172b565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216613e0b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a92565b6000818152600260205260409020546001600160a01b031615613e705760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a92565b613e7c600083836135ea565b6001600160a01b0382166000908152600360205260408120805460019290613ea5908490614988565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600654600160a01b900460ff1615610c565760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610a92565b60405180608001604052806004906020820280368337509192915050565b8260048101928215613fd7579160200282015b82811115613fd757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613fa2565b50613fe392915061405b565b5090565b828054613ff390614731565b90600052602060002090601f0160209004810192826140155760008555613fd7565b82601f1061402e57805160ff1916838001178555613fd7565b82800160010185558215613fd7579182015b82811115613fd7578251825591602001919060010190614040565b5b80821115613fe3576000815560010161405c565b6001600160e01b03198116811461217357600080fd5b60006020828403121561409857600080fd5b8135610ca081614070565b60005b838110156140be5781810151838201526020016140a6565b8381111561121f5750506000910152565b600081518084526140e78160208601602086016140a3565b601f01601f19169290920160200192915050565b602081526000610ca060208301846140cf565b60006020828403121561412057600080fd5b5035919050565b6001600160a01b038116811461217357600080fd5b6000806040838503121561414f57600080fd5b823561415a81614127565b946020939093013593505050565b60006020828403121561417a57600080fd5b8135610ca081614127565b60008060006060848603121561419a57600080fd5b83356141a581614127565b925060208401356141b581614127565b929592945050506040919091013590565b600080604083850312156141d957600080fd5b50508035926020909101359150565b60a08101818460005b60048110156142105781518352602092830192909101906001016141f1565b5050508260808301529392505050565b634e487b7160e01b600052604160045260246000fd5b60405160c0810167ffffffffffffffff8111828210171561425957614259614220565b60405290565b6040516080810167ffffffffffffffff8111828210171561425957614259614220565b80356001600160f81b038116811461429957600080fd5b919050565b8035801515811461429957600080fd5b600060e082840312156142c057600080fd5b60405160e0810181811067ffffffffffffffff821117156142e3576142e3614220565b806040525082358152602083013560208201526040830135604082015261430c60608401614282565b606082015261431d6080840161429e565b608082015261432e60a0840161429e565b60a082015261433f60c0840161429e565b60c08201529392505050565b60006080828403121561435d57600080fd5b604051602080820182811067ffffffffffffffff8211171561438157614381614220565b604052601f8401851361439357600080fd5b61439b61425f565b8060808601878111156143ad57600080fd5b865b818110156143cf5780356143c281614127565b84529284019284016143af565b505083525090949350505050565b60ff8116811461217357600080fd5b60008082840360a081121561440057600080fd5b833592506080601f198201121561441657600080fd5b506040516080810181811067ffffffffffffffff8211171561443a5761443a614220565b604052602084013561444b816143dd565b8152604084013561445b816143dd565b6020820152606084013561446e816143dd565b60408201526080840135614481816143dd565b6060820152919491935090915050565b634e487b7160e01b600052602160045260246000fd5b8681526020810186905260408101859052606081018490526001600160f81b038316608082015260c08101600383106144f057634e487b7160e01b600052602160045260246000fd5b8260a0830152979650505050505050565b6000806040838503121561451457600080fd5b823561451f81614127565b915061452d6020840161429e565b90509250929050565b600067ffffffffffffffff8084111561455157614551614220565b604051601f8501601f19908116603f0116810190828211818310171561457957614579614220565b8160405280935085815286868601111561459257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156145be57600080fd5b813567ffffffffffffffff8111156145d557600080fd5b8201601f810184136145e657600080fd5b6120d384823560208401614536565b6000806000806080858703121561460b57600080fd5b843561461681614127565b9350602085013561462681614127565b925060408501359150606085013567ffffffffffffffff81111561464957600080fd5b8501601f8101871361465a57600080fd5b61466987823560208401614536565b91505092959194509250565b60008082840360e081121561468957600080fd5b60c081121561469757600080fd5b506146a0614236565b833581526020840135602082015260408401356040820152606084013560608201526146ce60808501614282565b608082015260a0840135600381106146e557600080fd5b60a08201529460c0939093013593505050565b6000806040838503121561470b57600080fd5b823561471681614127565b9150602083013561472681614127565b809150509250929050565b600181811c9082168061474557607f821691505b6020821081141561476657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156147945761479461476c565b500390565b60008160001904831182151516156147b3576147b361476c565b500290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006080828403121561486657600080fd5b6040516080810181811067ffffffffffffffff8211171561488957614889614220565b6040528251614897816143dd565b815260208301516148a7816143dd565b602082015260408301516148ba816143dd565b604082015260608301516148cd816143dd565b60608201529392505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b60008261492857614928614903565b500490565b634e487b7160e01b600052600160045260246000fd5b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161497b81601d8501602087016140a3565b91909101601d0192915050565b6000821982111561499b5761499b61476c565b500190565b60006000198214156149b4576149b461476c565b5060010190565b6d029b2b63632b91d1021b7b9ba39960951b8152600082516149e481600e8501602087016140a3565b64204757656960d81b600e939091019283015250601301919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082614a6157614a61614903565b500690565b683c7265637420783d2760b81b815260008451614a8a8160098501602089016140a3565b642720793d2760d81b6009918401918201528451614aaf81600e8401602089016140a3565b682720636c6173733d2760b81b600e92909101918201528351614ad98160178401602088016140a3565b6213979f60e91b60179290910191820152601a0195945050505050565b600060808284031215614b0857600080fd5b82601f830112614b1757600080fd5b614b1f61425f565b806080840185811115614b3157600080fd5b845b81811015614b4b578051845260209384019301614b33565b509095945050505050565b67029b2b63632b91d160c51b815260008251614b798160088501602087016140a3565b9190910160080192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614bb9908301846140cf565b9695505050505050565b600060208284031215614bd557600080fd5b8151610ca081614070565b600060208284031215614bf257600080fd5b8151610ca081614127565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d41e52f26abb512e3f27ab0f8f3d450545ad11096530b95053b0e0933a43110864736f6c634300080a0033

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000070c2f23c71603463ebbcd10833d48e3e39d18b7c0000000000000000000000002c3f985127566fca31808e02acea4c86591a85380000000000000000000000008fb0ae4c4f5bebc5d1513699a74bf5703df01a940000000000000000000000004534a701e3bfb5c7015297fa75996a766c03930300000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000a45766572792049636f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000449636f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006ecfa61c589416df35ab818020ea61fe894af904000000000000000000000000bc49de68bcbd164574847a7ced47e7475179c76b0000000000000000000000001ddcf25f111f5fb653da75ab75ce68b928c56a6300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000fa

-----Decoded View---------------
Arg [0] : name (string): Every Icon
Arg [1] : symbol (string): Icon
Arg [2] : repo_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [3] : payees (address[]): 0x6eCfa61C589416dF35aB818020eA61fe894af904,0xbC49de68bCBD164574847A7ced47e7475179C76B,0x1DDcF25f111F5Fb653dA75aB75CE68b928C56a63
Arg [4] : shares (uint256[]): 625,125,250

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 00000000000000000000000070c2f23c71603463ebbcd10833d48e3e39d18b7c
Arg [3] : 0000000000000000000000002c3f985127566fca31808e02acea4c86591a8538
Arg [4] : 0000000000000000000000008fb0ae4c4f5bebc5d1513699a74bf5703df01a94
Arg [5] : 0000000000000000000000004534a701e3bfb5c7015297fa75996a766c039303
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 45766572792049636f6e00000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 49636f6e00000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [13] : 0000000000000000000000006ecfa61c589416df35ab818020ea61fe894af904
Arg [14] : 000000000000000000000000bc49de68bcbd164574847a7ced47e7475179c76b
Arg [15] : 0000000000000000000000001ddcf25f111f5fb653da75ab75ce68b928c56a63
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000271
Arg [18] : 000000000000000000000000000000000000000000000000000000000000007d
Arg [19] : 00000000000000000000000000000000000000000000000000000000000000fa


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.