ETH Price: $3,162.40 (+3.06%)

Contract

0x1cA15CCdd91b55CD617a48dC9eEFb98CAe224757
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...210343142024-10-24 8:38:4725 days ago1729759127IN
Strange Attractors: SA Token
0 ETH0.0004678610.11464015
Safe Transfer Fr...209524202024-10-12 22:11:3537 days ago1728771095IN
Strange Attractors: SA Token
0 ETH0.000715438
Set Approval For...208877012024-10-03 21:34:5946 days ago1727991299IN
Strange Attractors: SA Token
0 ETH0.000309356.7
Set Render Size208447552024-09-27 21:49:1152 days ago1727473751IN
Strange Attractors: SA Token
0 ETH0.000287879.76211508
Set Color Anchor...208447542024-09-27 21:48:5952 days ago1727473739IN
Strange Attractors: SA Token
0 ETH0.0004247110.29964498
Set Projection P...208447232024-09-27 21:42:4752 days ago1727473367IN
Strange Attractors: SA Token
0 ETH0.0008957510.30294113
Set Approval For...205057642024-08-11 13:47:5999 days ago1723384079IN
Strange Attractors: SA Token
0 ETH0.000155673.36647598
Safe Transfer Fr...204801272024-08-07 23:57:11102 days ago1723075031IN
Strange Attractors: SA Token
0 ETH0.00013291.48721116
Set Approval For...202050652024-06-30 14:21:35141 days ago1719757295IN
Strange Attractors: SA Token
0 ETH0.000093533.8518257
Transfer From201444692024-06-22 3:08:47149 days ago1719025727IN
Strange Attractors: SA Token
0 ETH0.000232862.78123036
Safe Transfer Fr...200991902024-06-15 19:09:47156 days ago1718478587IN
Strange Attractors: SA Token
0 ETH0.0016262818.78682689
Set Approval For...198944902024-05-18 4:35:47184 days ago1716006947IN
Strange Attractors: SA Token
0 ETH0.00015553.3618745
Set Approval For...198311822024-05-09 8:06:11193 days ago1715241971IN
Strange Attractors: SA Token
0 ETH0.000200284.3299737
Set Approval For...197349142024-04-25 20:57:35207 days ago1714078655IN
Strange Attractors: SA Token
0 ETH0.000384168.32029053
Transfer From196028472024-04-07 9:12:35225 days ago1712481155IN
Strange Attractors: SA Token
0 ETH0.0012251414.15692444
Transfer From196028472024-04-07 9:12:35225 days ago1712481155IN
Strange Attractors: SA Token
0 ETH0.0010510114.15692444
Transfer From196028452024-04-07 9:12:11225 days ago1712481131IN
Strange Attractors: SA Token
0 ETH0.0011494513.59752947
Transfer From196028452024-04-07 9:12:11225 days ago1712481131IN
Strange Attractors: SA Token
0 ETH0.0010094813.59752947
Transfer From196028452024-04-07 9:12:11225 days ago1712481131IN
Strange Attractors: SA Token
0 ETH0.0010093113.59752947
Transfer From196028042024-04-07 9:03:59225 days ago1712480639IN
Strange Attractors: SA Token
0 ETH0.0012193414.08997356
Transfer From196028022024-04-07 9:03:35225 days ago1712480615IN
Strange Attractors: SA Token
0 ETH0.0010471314.10475823
Transfer From196028002024-04-07 9:03:11225 days ago1712480591IN
Strange Attractors: SA Token
0 ETH0.0013790414.24132367
Transfer From196027952024-04-07 9:02:11225 days ago1712480531IN
Strange Attractors: SA Token
0 ETH0.0014137914.60017368
Transfer From196027912024-04-07 9:01:23225 days ago1712480483IN
Strange Attractors: SA Token
0 ETH0.0010996314.81430242
Transfer From196027372024-04-07 8:50:23225 days ago1712479823IN
Strange Attractors: SA Token
0 ETH0.0011572613.37255226
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
149057092022-06-04 22:53:49897 days ago1654383229
Strange Attractors: SA Token
0.35 ETH
149057062022-06-04 22:52:49897 days ago1654383169
Strange Attractors: SA Token
0.35 ETH
149056992022-06-04 22:51:32897 days ago1654383092
Strange Attractors: SA Token
0.35 ETH
149056932022-06-04 22:50:26897 days ago1654383026
Strange Attractors: SA Token
0.35 ETH
149056232022-06-04 22:31:58897 days ago1654381918
Strange Attractors: SA Token
0.35 ETH
149055872022-06-04 22:22:34897 days ago1654381354
Strange Attractors: SA Token
0.35 ETH
140637972022-01-23 19:33:001030 days ago1642966380
Strange Attractors: SA Token
0.35 ETH
140637762022-01-23 19:27:551030 days ago1642966075
Strange Attractors: SA Token
0.35 ETH
140633792022-01-23 17:54:151030 days ago1642960455
Strange Attractors: SA Token
0.35 ETH
139650742022-01-08 13:41:051045 days ago1641649265
Strange Attractors: SA Token
0.35 ETH
139243722022-01-02 6:17:191051 days ago1641104239
Strange Attractors: SA Token
0.35 ETH
138004712021-12-14 1:45:361070 days ago1639446336
Strange Attractors: SA Token
0.35 ETH
137963422021-12-13 10:45:561071 days ago1639392356
Strange Attractors: SA Token
0.35 ETH
137962612021-12-13 10:29:031071 days ago1639391343
Strange Attractors: SA Token
0.35 ETH
137962552021-12-13 10:27:441071 days ago1639391264
Strange Attractors: SA Token
0.35 ETH
137962532021-12-13 10:27:011071 days ago1639391221
Strange Attractors: SA Token
0.35 ETH
137962482021-12-13 10:24:551071 days ago1639391095
Strange Attractors: SA Token
0.35 ETH
137962452021-12-13 10:24:161071 days ago1639391056
Strange Attractors: SA Token
0.35 ETH
137961802021-12-13 10:08:031071 days ago1639390083
Strange Attractors: SA Token
0.35 ETH
137961732021-12-13 10:06:101071 days ago1639389970
Strange Attractors: SA Token
0.35 ETH
137961682021-12-13 10:04:571071 days ago1639389897
Strange Attractors: SA Token
0.35 ETH
137626742021-12-08 4:16:051076 days ago1638936965
Strange Attractors: SA Token
0.35 ETH
136841752021-11-25 15:07:091089 days ago1637852829
Strange Attractors: SA Token
0.35 ETH
136795982021-11-24 21:34:161090 days ago1637789656
Strange Attractors: SA Token
0.35 ETH
136749472021-11-24 3:54:001090 days ago1637726040
Strange Attractors: SA Token
0.35 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrangeAttractors

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 25 : StrangeAttractors.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright 2021 David Huber (@cxkoda)
// All Rights Reserved

pragma solidity >=0.8.0 <0.9.0;

import "./solvers/IAttractorSolver.sol";
import "./renderers/ISvgRenderer.sol";
import "./utils/BaseOpenSea.sol";
import "./utils/ERC2981SinglePercentual.sol";
import "./utils/SignedSlotRestrictable.sol";
import "./utils/ColorMixer.sol";

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/PullPayment.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

/**
 * @notice Fully on-chain interactive NFT project performing numerical
 * simulations of chaotic, multi-dimensional _systems.
 * @dev This contract implements tokenonmics of the project, conforming to the
 * ERC721 and ERC2981 standard.
 * @author David Huber (@cxkoda)
 */
contract StrangeAttractors is
    BaseOpenSea,
    SignedSlotRestrictable,
    ERC2981SinglePercentual,
    ERC721Enumerable,
    Ownable,
    PullPayment
{
    /**
     * @notice Maximum number of editions per system.
     */
    uint8 private constant MAX_PER_SYSTEM = 128;

    /**
     * @notice Max number that the contract owner can mint in a specific system.
     * @dev The contract assumes that the owner mints the first pieces.
     */
    uint8 private constant OWNER_ALLOCATION = 2;

    /**
     * @notice Mint price
     */
    uint256 public constant MINT_PRICE = (35 ether) / 100;

    /**
     * @notice Contains the configuration of a given _systems in the collection.
     */
    struct AttractorSystem {
        string description;
        uint8 numLeftForMint;
        bool locked;
        ISvgRenderer renderer;
        uint8 defaultRenderSize;
        uint32[] defaultColorAnchors;
        IAttractorSolver solver;
        SolverParameters solverParameters;
    }

    /**
     * @notice Systems in the collection.
     * @dev Convention: The first system is the fullset system.
     */
    AttractorSystem[] private _systems;

    /**
     * @notice Token configuration
     */
    struct Token {
        uint8 systemId;
        bool usedForFullsetToken;
        bool useDefaultColors;
        bool useDefaultProjection;
        uint8 renderSize;
        uint256 randomSeed;
        ProjectionParameters projectionParameters;
        uint32[] colorAnchors;
    }

    /**
     * @notice All existing _tokens
     * @dev Maps tokenId => token configuration
     */
    mapping(uint256 => Token) private _tokens;

    // -------------------------------------------------------------------------
    //
    //  Collection setup
    //
    // -------------------------------------------------------------------------

    /**
     * @notice Contract constructor
     * @dev Sets the owner as default 10% royalty receiver.
     */
    constructor(
        string memory name,
        string memory symbol,
        address slotSigner,
        address openSeaProxyRegistry
    ) ERC721(name, symbol) {
        if (openSeaProxyRegistry != address(0)) {
            _setOpenSeaRegistry(openSeaProxyRegistry);
        }
        _setRoyaltyReceiver(owner());
        _setRoyaltyPercentage(1000);
        _setSlotSigner(slotSigner);
    }

    /**
     * @notice Adds a new attractor system to the collection
     * @dev This is used to set up the collection after contract deployment.
     * If `systemId` is a valid ID, the corresponding, existing system will
     * be overwritten. Otherwise a new system will be added.
     * Further system modification is prevented if the system is locked.
     * Both adding and modifying were merged in this single method to avoid
     * hitting the contract size limit.
     */
    function newAttractorSystem(
        string calldata description,
        address solver,
        SolverParameters calldata solverParameters,
        address renderer,
        uint32[] calldata defaultColorAnchors,
        uint8 defaultRenderSize,
        uint256 systemId
    ) external onlyOwner {
        AttractorSystem memory system = AttractorSystem({
            numLeftForMint: MAX_PER_SYSTEM,
            description: description,
            locked: false,
            solver: IAttractorSolver(solver),
            solverParameters: solverParameters,
            renderer: ISvgRenderer(renderer),
            defaultColorAnchors: defaultColorAnchors,
            defaultRenderSize: defaultRenderSize
        });
        if (systemId < _systems.length) {
            require(!_systems[systemId].locked, "System locked");
            system.numLeftForMint = _systems[systemId].numLeftForMint;
            _systems[systemId] = system;
        } else {
            _systems.push(system);
        }
    }

    /**
     * @notice Locks a system against further modifications.
     */
    function lockSystem(uint8 systemId) external onlyOwner {
        _systems[systemId].locked = true;
    }

    // -------------------------------------------------------------------------
    //
    //  Minting
    //
    // -------------------------------------------------------------------------

    function setSlotSigner(address signer) external onlyOwner {
        _setSlotSigner(signer);
    }

    /**
     * @notice Enable or disable the slot restriction for minting.
     */
    function setSlotRestriction(bool enabled) external onlyOwner {
        _setSlotRestriction(enabled);
    }

    /**
     * @notice Interface to mint the remaining owner allocated pieces.
     * @dev This has to be executed before anyone else has minted.
     */
    function safeMintOwner() external onlyOwner {
        bool mintedSomething = false;
        for (uint8 systemId = 1; systemId < _systems.length; systemId++) {
            for (
                ;
                MAX_PER_SYSTEM - _systems[systemId].numLeftForMint <
                OWNER_ALLOCATION;

            ) {
                _safeMintInAttractor(systemId);
                mintedSomething = true;
            }
        }

        // To get some feedback if there are no pieces left for the owner.
        require(mintedSomething, "Owner allocation exhausted.");
    }

    /**
     * @notice Mint interface for regular users.
     * @dev Mints one edition piece from a randomly selected system. The
     * The probability to mint a given system is proportional to the available
     * editions.
     */
    function safeMintRegularToken(uint256 nonce, bytes calldata signature)
        external
        payable
    {
        require(msg.value == MINT_PRICE, "Invalid payment.");
        _consumeSlotIfEnabled(_msgSender(), nonce, signature);
        _asyncTransfer(owner(), msg.value);

        // Check how many _tokens there are left in total.
        uint256 numAvailableTokens = 0;
        for (uint8 idx = 1; idx < _systems.length; ++idx) {
            numAvailableTokens += _systems[idx].numLeftForMint;
        }

        if (numAvailableTokens > 0) {
            // Draw a pseudo-random number in [0, numAvailableTokens) that
            // determines which system to mint.
            uint256 rand = _random(numAvailableTokens) % numAvailableTokens;

            // Check in which bracket `rand` is and mint an edition of the
            // corresponding system
            for (uint8 idx = 1; idx < _systems.length; ++idx) {
                if (rand < _systems[idx].numLeftForMint) {
                    _safeMintInAttractor(idx);
                    return;
                } else {
                    rand -= _systems[idx].numLeftForMint;
                }
            }
        }

        revert("All _systems sold out");
    }

    /**
     * @notice Interface to mint a special token for fullset holders.
     * @dev The sender needs to supply one unused token of every regular
     * system.
     */
    function safeMintFullsetToken(uint256[4] calldata tokenIds)
        external
        onlyApprovedOrOwner(tokenIds[0])
        onlyApprovedOrOwner(tokenIds[1])
        onlyApprovedOrOwner(tokenIds[2])
        onlyApprovedOrOwner(tokenIds[3])
    {
        require(isFullsetMintEnabled, "Fullset mint is disabled.");

        bool[4] memory containsSystem = [false, false, false, false];
        for (uint256 idx = 0; idx < 4; ++idx) {
            // Check if already used
            require(
                !_tokens[tokenIds[idx]].usedForFullsetToken,
                "Token already used."
            );

            // Set an ok flag if a given system was found
            containsSystem[_getTokenSystemId(tokenIds[idx]) - 1] = true;

            // Mark as used
            _tokens[tokenIds[idx]].usedForFullsetToken = true;
        }

        // Check if all _systems are present
        require(
            containsSystem[0] &&
                containsSystem[1] &&
                containsSystem[2] &&
                containsSystem[3],
            "Tokens of each system required"
        );

        uint256 tokenId = _safeMintInAttractor(0);

        // Although we technically  don't need to set this flag onr the fullset
        // system, let's set it anyways to display the correct value in
        // `tokenURI`.
        _tokens[tokenId].usedForFullsetToken = true;
    }

    /**
     * @notice Flag for enabling fullset token minting.
     */
    bool public isFullsetMintEnabled = false;

    /**
     * @notice Toggles the ability to mint fullset _tokens.
     */
    function enableFullsetMint(bool enable) external onlyOwner {
        isFullsetMintEnabled = enable;
    }

    /**
     * @dev Mints the next token in the system.
     */
    function _safeMintInAttractor(uint8 systemId)
        internal
        returns (uint256 tokenId)
    {
        require(systemId < _systems.length, "Mint in non-existent system.");
        require(
            _systems[systemId].numLeftForMint > 0,
            "System capacity exhausted"
        );

        tokenId =
            (systemId * _tokenIdSystemMultiplier) +
            (MAX_PER_SYSTEM - _systems[systemId].numLeftForMint);

        _tokens[tokenId] = Token({
            systemId: systemId,
            randomSeed: _random(tokenId),
            projectionParameters: ProjectionParameters(
                new int256[](0),
                new int256[](0),
                new int256[](0)
            ),
            colorAnchors: new uint32[](0),
            usedForFullsetToken: false,
            useDefaultColors: true,
            useDefaultProjection: true,
            renderSize: _systems[systemId].defaultRenderSize
        });
        _systems[systemId].numLeftForMint--;

        _safeMint(_msgSender(), tokenId);
    }

    /**
     * @notice Defines the system prefix in the `tokenId`.
     * @dev Convention: The `tokenId` will be given by
     * `edition + _tokenIdSystemMultiplier * systemId`
     */
    uint256 private constant _tokenIdSystemMultiplier = 1e3;

    /**
     * @notice Retrieves the `systemId` from a given `tokenId`.
     */
    function _getTokenSystemId(uint256 tokenId) internal pure returns (uint8) {
        return uint8(tokenId / _tokenIdSystemMultiplier);
    }

    /**
     * @notice Retrieves the `edition` from a given `tokenId`.
     */
    function _getTokenEdition(uint256 tokenId) internal pure returns (uint8) {
        return uint8(tokenId % _tokenIdSystemMultiplier);
    }

    /**
     * @notice Draw a pseudo-random number.
     * @dev Although the drawing can be manipulated with this implementation,
     * it is sufficiently fair for the given purpose.
     * Multiple evaluations on the same block with the same `modSeed` from the
     * same sender will yield the same random numbers.
     */
    function _random(uint256 modSeed) internal view returns (uint256) {
        return
            uint256(
                keccak256(
                    abi.encodePacked(block.timestamp, _msgSender(), modSeed)
                )
            );
    }

    /**
     * @notice Re-draw a _tokens `randomSeed`.
     * @dev This is implemented as a last resort if a _tokens `randomSeed`
     * produces starting values that do not converge to the attractor.
     * Although this never happened while testing, you never know for sure
     * with random numbers.
     */
    function rerollTokenRandomSeed(uint256 tokenId) external onlyOwner {
        _tokens[tokenId].randomSeed = _random(_tokens[tokenId].randomSeed);
    }

    // -------------------------------------------------------------------------
    //
    //  Rendering
    //
    // -------------------------------------------------------------------------

    /**
     * @notice Assembles the name of a token
     * @dev Composed of the system name provided by the solver and the tokens
     * edition number. The returned string has been escapted for usage in
     * data-uris.
     */
    function getTokenName(uint256 tokenId) public view returns (string memory) {
        return
            string(
                abi.encodePacked(
                    _systems[_getTokenSystemId(tokenId)].solver.getSystemType(),
                    // " #",
                    " %23", // Uri encoded
                    Strings.toString(_getTokenEdition(tokenId))
                )
            );
    }

    /**
     * @notice Renders a given token with externally supplied parameters.
     * @return The svg string.
     */
    function renderWithConfig(
        uint256 tokenId,
        ProjectionParameters memory projectionParameters,
        uint32[] memory colorAnchors,
        uint8 renderSize
    ) public view returns (string memory) {
        AttractorSystem storage system = _systems[_getTokenSystemId(tokenId)];

        return
            system.renderer.render(
                system.solver.computeSolution(
                    system.solverParameters,
                    system.solver.getRandomStartingPoint(
                        _tokens[tokenId].randomSeed
                    ),
                    projectionParameters
                ),
                ColorMixer.getColormap(colorAnchors),
                renderSize
            );
    }

    /**
     * @notice Returns the `ProjectionParameters` for a given token.
     * @dev Checks if default settings are used and computes them if needed.
     */
    function getProjectionParameters(uint256 tokenId)
        public
        view
        returns (ProjectionParameters memory)
    {
        if (_tokens[tokenId].useDefaultProjection) {
            return
                _systems[_getTokenSystemId(tokenId)]
                    .solver
                    .getDefaultProjectionParameters(_getTokenEdition(tokenId));
        } else {
            return _tokens[tokenId].projectionParameters;
        }
    }

    /**
     * @notice Returns the `colormap` for a given token.
     * @dev Checks if default settings are used and retrieves them if needed.
     */
    function getColorAnchors(uint256 tokenId)
        public
        view
        returns (uint32[] memory colormap)
    {
        if (_tokens[tokenId].useDefaultColors) {
            return _systems[_getTokenSystemId(tokenId)].defaultColorAnchors;
        } else {
            return _tokens[tokenId].colorAnchors;
        }
    }

    /**
     * @notice Returns data URI of token metadata.
     * @dev The output conforms to the Opensea attributes metadata standard.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        AttractorSystem storage system = _systems[_getTokenSystemId(tokenId)];

        bytes memory data = abi.encodePacked(
            'data:application/json,{"name":"',
            getTokenName(tokenId),
            '",',
            '"description":"',
            system.description,
            '","attributes":[{"trait_type": "System","value":"',
            system.solver.getSystemType(),
            '"},{"trait_type": "Random Seed", "value":"',
            Strings.toHexString(_tokens[tokenId].randomSeed)
        );

        if (isFullsetMintEnabled) {
            data = abi.encodePacked(
                data,
                '"},{"trait_type": "Dimensions", "value":"',
                Strings.toString(system.solver.getDimensionality()),
                '"},{"trait_type": "Completed", "value":"',
                _tokens[tokenId].usedForFullsetToken ? "Yes" : "No"
            );
        }

        return
            string(
                abi.encodePacked(
                    data,
                    '"}],"image":"data:image/svg+xml,',
                    renderWithConfig(
                        tokenId,
                        getProjectionParameters(tokenId),
                        getColorAnchors(tokenId),
                        _tokens[tokenId].renderSize
                    ),
                    '"}'
                )
            );
    }

    // -------------------------------------------------------------------------
    //
    //  Token interaction
    //
    // -------------------------------------------------------------------------

    /**
     * @notice Set the projection parameters for a given token.
     */
    function setProjectionParameters(
        uint256 tokenId,
        ProjectionParameters calldata projectionParameters
    ) external onlyApprovedOrOwner(tokenId) {
        require(
            _systems[_getTokenSystemId(tokenId)]
                .solver
                .isValidProjectionParameters(projectionParameters),
            "Invalid projection parameters"
        );

        _tokens[tokenId].projectionParameters = projectionParameters;
        _tokens[tokenId].useDefaultProjection = false;
    }

    /**
     * @notice Set or reset the color anchors for a given token.
     * @dev To revert to the _systems default, `colorAnchors` has to be empty.
     * On own method for resetting was omitted to remain below the contract size
     * limit.
     * See `ColorMixer` for more details on the color system.
     */
    function setColorAnchors(uint256 tokenId, uint32[] calldata colorAnchors)
        external
        onlyApprovedOrOwner(tokenId)
    {
        // Lets restrict this to something sensible.
        require(
            colorAnchors.length > 0 && colorAnchors.length <= 64,
            "Invalid amount of color anchors."
        );
        _tokens[tokenId].colorAnchors = colorAnchors;
        _tokens[tokenId].useDefaultColors = false;
    }

    /**
     * @notice Set the rendersize for a given token.
     */
    function setRenderSize(uint256 tokenId, uint8 renderSize)
        external
        onlyApprovedOrOwner(tokenId)
    {
        _tokens[tokenId].renderSize = renderSize;
    }

    /**
     * @notice Reset various rendering parameters for a given token.
     * @dev Setting the individual flag to true resets the associated parameters.
     */
    function resetRenderParameters(
        uint256 tokenId,
        bool resetProjectionParameters,
        bool resetColorAnchors,
        bool resetRenderSize
    ) external onlyApprovedOrOwner(tokenId) {
        if (resetProjectionParameters) {
            _tokens[tokenId].useDefaultProjection = true;
        }
        if (resetColorAnchors) {
            _tokens[tokenId].useDefaultColors = true;
        }
        if (resetRenderSize) {
            _tokens[tokenId].renderSize = _systems[_getTokenSystemId(tokenId)]
                .defaultRenderSize;
        }
    }

    // -------------------------------------------------------------------------
    //
    //  External getters, metadata and steering
    //
    // -------------------------------------------------------------------------

    /**
     * @notice Retrieve a system with a given ID.
     * @dev This was necessay because for some reason the default public getter
     * does not return `defaultColorAnchors` correctly.
     */
    function systems(uint8 systemId)
        external
        view
        returns (AttractorSystem memory)
    {
        return _systems[systemId];
    }

    /**
     * @notice Retrieve a token with a given ID.
     * @dev This was necessay because for some reason the default public getter
     * does not return `colorAnchors` correctly.
     */
    function tokens(uint256 tokenId) external view returns (Token memory) {
        return _tokens[tokenId];
    }

    /**
     * @dev Sets the royalty percentage (in units of 0.01%)
     */
    function setRoyaltyPercentage(uint256 percentage) external onlyOwner {
        _setRoyaltyPercentage(percentage);
    }

    /**
     * @dev Sets the address to receive the royalties
     */
    function setRoyaltyReceiver(address receiver) external onlyOwner {
        _setRoyaltyReceiver(receiver);
    }

    // -------------------------------------------------------------------------
    //
    //  Internal stuff
    //
    // -------------------------------------------------------------------------

    /**
     * @dev Approves the opensea proxy for token transfers.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        return
            super.isApprovedForAll(owner, operator) ||
            isOwnersOpenSeaProxy(owner, operator);
    }

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

    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "Neither owner nor approved for this token"
        );
        _;
    }
}

File 2 of 25 : IAttractorSolver.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright 2021 David Huber (@cxkoda)
// All Rights Reserved

pragma solidity >=0.8.0 <0.9.0;

import "./AttractorSolution.sol";

/**
 * @notice Parameters going to the numerical ODE solver.
 * @param numberOfIterations Total number of iterations.
 * @param dt Timestep increment in each iteration
 * @param skip Amount of iterations between storing two points.
 * @dev `numberOfIterations` has to be dividable without rest by `skip`.
 */
struct SolverParameters {
    uint256 numberOfIterations;
    uint256 dt;
    uint8 skip;
}

/**
 * @notice Parameters going to the projection routines.
 * @dev The lengths of all fields have to match the dimensionality of the
 * considered system.
 * @param axis1 First projection axis (horizontal image coordinate)
 * @param axis2 Second projection axis (vertical image coordinate)
 * @param offset Offset applied before projecting.
 */
struct ProjectionParameters {
    int256[] axis1;
    int256[] axis2;
    int256[] offset;
}

/**
 * @notice Starting point for the numerical simulation
 * @dev The length of the starting point has to match the dimensionality of the
 * considered system.
 * I agree, this struct looks kinda dumb, but I really like speaking types.
 * So as long as we don't have typedefs for non-elementary types, we are stuck
 * with this cruelty.
 */
struct StartingPoint {
    int256[] startingPoint;
}

/**
 * @notice Interface for simulators of chaotic systems.
 * @dev Implementations of this interface will contain the mathematical
 * description of the underlying differential equations, deal with its numerical
 * solution and the 2D projection of the results.
 * Implementations will internally use fixed-point numbers with a precision of
 * 96 bits by convention.
 * @author David Huber (@cxkoda)
 */
interface IAttractorSolver {
    /**
     * @notice Simulates the evolution of a chaotic system.
     * @dev This is the core piece of this class that performs everything
     * at once. All relevant algorithm for the evaluation of the ODEs
     * the numerical scheme, the projection and storage are contained within
     * this method for performance reasons.
     * @return An `AttractorSolution` containing already projected 2D points
     * and tangents to them.
     */
    function computeSolution(
        SolverParameters calldata,
        StartingPoint calldata,
        ProjectionParameters calldata
    ) external pure returns (AttractorSolution memory);

    /**
     * @notice Generates a random starting point for the system.
     */
    function getRandomStartingPoint(uint256 randomSeed)
        external
        view
        returns (StartingPoint memory);

    /**
     * @notice Generates the default projection for a given edition of the
     * system.
     */
    function getDefaultProjectionParameters(uint256 editionId)
        external
        view
        returns (ProjectionParameters memory);

    /**
     * @notice Returns the type/name of the dynamical system.
     */
    function getSystemType() external pure returns (string memory);

    /**
     * @notice Returns the dimensionality of the dynamical system (number of
     * ODEs).
     */
    function getDimensionality() external pure returns (uint8);

    /**
     * @notice Returns the precision of the internally used fixed-point numbers.
     * @dev The solvers operate on fixed-point numbers with a given PRECISION,
     * i.e. the amount of bits reserved for decimal places.
     * By convention, this method will return 96 throughout the project.
     */
    function getFixedPointPrecision() external pure returns (uint8);

    /**
     * @notice Checks if given `ProjectionParameters` are valid`
     */
    function isValidProjectionParameters(ProjectionParameters memory)
        external
        pure
        returns (bool);
}

File 3 of 25 : ISvgRenderer.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright 2021 David Huber (@cxkoda)
// All Rights Reserved

pragma solidity >=0.8.0 <0.9.0;

import "../solvers/AttractorSolution.sol";

/**
 * @notice Renders a solution of an attractor simulation as SVG
 * @author David Huber (@cxkoda)
 */
interface ISvgRenderer {
    /**
     * @notice Renders a list of 2D points and tangents as svg
     * @param solution List of 16-bit fixed-point points and tangents. 
     * See `AttractorSolution`.
     * @param colormap 256 8-bit RGB colors. Leaving this in memory for easier
     * access in assembly later.
     * @param markerSize A modifier for marker sizes (e.g. stroke width, 
     * point size)
     * @return The generated svg string. The viewport covers the area 
     * [-64, 64] x [-64, 64] by convention.
     */
    function render(
        AttractorSolution calldata solution,
        bytes memory colormap,
        uint8 markerSize
    ) external pure returns (string memory);
}

File 4 of 25 : BaseOpenSea.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/

/// @title OpenSea contract helper that defines a few things
/// @author Simon Fremaux (@dievardump)
/// @dev This is a contract used to add OpenSea's support for gas-less trading
///      by checking if operator is owner's proxy
contract BaseOpenSea {
    string private _contractURI;
    ProxyRegistry private _proxyRegistry;

    /// @notice Returns the contract URI function. Used on OpenSea to get details
    ///         about a contract (owner, royalties etc...)
    ///         See documentation: https://docs.opensea.io/docs/contract-level-metadata
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    /// @notice Helper for OpenSea gas-less trading
    /// @dev Allows to check if `operator` is owner's OpenSea proxy
    /// @param owner the owner we check for
    /// @param operator the operator (proxy) we check for
    function isOwnersOpenSeaProxy(address owner, address operator)
        public
        view
        returns (bool)
    {
        ProxyRegistry proxyRegistry = _proxyRegistry;
        return
            // we have a proxy registry address
            address(proxyRegistry) != address(0) &&
            // current operator is owner's proxy address
            address(proxyRegistry.proxies(owner)) == operator;
    }

    /// @dev Internal function to set the _contractURI
    /// @param contractURI_ the new contract uri
    function _setContractURI(string memory contractURI_) internal {
        _contractURI = contractURI_;
    }

    /// @dev Internal function to set the _proxyRegistry
    /// @param proxyRegistryAddress the new proxy registry address
    function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
        _proxyRegistry = ProxyRegistry(proxyRegistryAddress);
    }
}

contract OwnableDelegateProxy {}

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

File 5 of 25 : ERC2981SinglePercentual.sol
// SPDX-License-Identifier: MIT
// Copyright 2021 David Huber (@cxkoda)

pragma solidity >=0.8.0 <0.9.0;

import "./ERC2981.sol";

/**
 * @notice ERC2981 royalty info implementation for a single beneficiary
 * receving a percentage of sales prices.
 * @author David Huber (@cxkoda)
 */
contract ERC2981SinglePercentual is ERC2981 {
    /**
     * @dev The royalty percentage (in units of 0.01%)
     */
    uint256 _percentage;

    /**
     * @dev The address to receive the royalties
     */
    address _receiver;

    /**
     * @dev See {IERC2981-royaltyInfo}.
     */
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        royaltyAmount = (salePrice / 10000) * _percentage;
        receiver = _receiver;
    }

    /**
     * @dev Sets the royalty percentage (in units of 0.01%)
     */
    function _setRoyaltyPercentage(uint256 percentage_) internal {
        _percentage = percentage_;
    }

    /**
     * @dev Sets the address to receive the royalties
     */
    function _setRoyaltyReceiver(address receiver_) internal {
        _receiver = receiver_;
    }
}

File 6 of 25 : SignedSlotRestrictable.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright 2021 David Huber (@cxkoda)
// All Rights Reserved

pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

/**
 * @notice Impements consumable slots that can be used to restrict e.g. minting.
 * @dev Intended as parent class for consumer contracts.
 * The slot allocation is based on signing associated messages off-chain, which
 * contain the grantee, the signer and a nonce. The contract checks whether the
 * slot is still valid and invalidates it after consumption.
 * @author David Huber (@cxkoda)
 */
contract SignedSlotRestrictable {
    // this is because minting is secured with a Signature
    using ECDSA for bytes32;

    /**
     * @dev Flag for whether the restriction should be enforced or not.
     */
    bool private _isSlotRestricted = true;

    /**
     * @dev List of already used/consumed slot messages
     */
    mapping(bytes32 => bool) private _usedMessages;

    /**
     * @dev The address that signes the slot messages.
     */
    address private _signer;

    /**
     * @notice Checks if the restriction if active
     */
    function isSlotRestricted() public view returns (bool) {
        return _isSlotRestricted;
    }

    /**
     * @notice Actives/Disactivates the restriction
     */
    function _setSlotRestriction(bool enable) internal {
        _isSlotRestricted = enable;
    }

    /**
     * @notice Changes the signing address.
     * @dev Changing the signer renders not yet consumed slots unconsumable.
     */
    function _setSlotSigner(address signer_) internal {
        _signer = signer_;
    }

    /**
     * @notice Helper that creates the message that signer needs to sign to
     * approve the slot.
     */
    function createSlotMessage(address grantee, uint256 nonce)
        public
        view
        returns (bytes32)
    {
        return keccak256(abi.encode(grantee, nonce, _signer, address(this)));
    }

    /**
     * @notice Checks if a given slot is still valid.
     */
    function isValidSlot(
        address grantee,
        uint256 nonce,
        bytes memory signature
    ) external view returns (bool) {
        bytes32 message = createSlotMessage(grantee, nonce);
        return ((!_usedMessages[message]) &&
            (message.toEthSignedMessageHash().recover(signature) == _signer));
    }

    /**
     * @notice Consumes a slot for a given user if the restriction is enabled.
     * @dev Intended to be called before the action to be restricted.
     * Validates the signature and checks if the slot was already used before.
     */
    function _consumeSlotIfEnabled(
        address grantee,
        uint256 nonce,
        bytes memory signature
    ) internal {
        if (_isSlotRestricted) {
            bytes32 message = createSlotMessage(grantee, nonce);
            require(!_usedMessages[message], "Slot already used");
            require(
                message.toEthSignedMessageHash().recover(signature) == _signer,
                "Invalid slot signature"
            );
            _usedMessages[message] = true;
        }
    }
}

File 7 of 25 : ColorMixer.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright 2021 David Huber (@cxkoda)
// All Rights Reserved

pragma solidity >=0.8.0 <0.9.0;

/**
 * @notice Interpolation between ColorAnchors to generate a colormap.
 * @dev A color anchor is encoded composed of four uint8 numbers in the order
 * `colorAnchor = | red | green | blue | position |`. Every `uint32` typed 
 * variable in the following code will correspond to such anchors, while 
 * `uint24`s correspond to rgb colors.
 * @author David Huber (@cxkoda)
 */
library ColorMixer {
    /**
     * @dev The internal fixed-point accuracy
     */
    uint8 private constant PRECISION = 32;
    uint256 private constant ONE = 2**32;

    /**
     * @notice Interpolate linearily between two colors.
     * @param fraction Fixed-point number in [0,1] giving the relative
     * contribution of `left` (0) and `right` (1).
     * The interpolation follows the equation 
     * `color = fraction * right + (1 - fraction) * left`.
     */
    function interpolate(
        uint24 left,
        uint24 right,
        uint256 fraction
    ) internal pure returns (uint24 color) {
        assembly {
            color := shr(
                PRECISION,
                add(
                    mul(fraction, and(shr(16, right), 0xff)),
                    mul(sub(ONE, fraction), and(shr(16, left), 0xff))
                )
            )
            color := add(
                shl(8, color),
                shr(
                    PRECISION,
                    add(
                        mul(fraction, and(shr(8, right), 0xff)),
                        mul(sub(ONE, fraction), and(shr(8, left), 0xff))
                    )
                )
            )
            color := add(
                shl(8, color),
                shr(
                    PRECISION,
                    add(
                        mul(fraction, and(right, 0xff)),
                        mul(sub(ONE, fraction), and(left, 0xff))
                    )
                )
            )
        }
    }

    /**
     * @notice Generate a colormap from a list of anchors.
     * @dev Anchors have to be sorted by position.
     */
    function getColormap(uint32[] calldata anchors)
        external
        pure
        returns (bytes memory colormap)
    {
        require(anchors.length > 0);
        colormap = new bytes(768);
        uint256 offset = 0;
        // Left extrapolation (below the leftmost anchor)
        {
            uint32 anchor = anchors[0];
            uint8 anchorPos = uint8(anchor & 0xff);
            for (uint32 position = 0; position < anchorPos; position++) {
                colormap[offset++] = bytes1(uint8((anchor >> 24) & 0xff));
                colormap[offset++] = bytes1(uint8((anchor >> 16) & 0xff));
                colormap[offset++] = bytes1(uint8((anchor >> 8) & 0xff));
            }
        }
        // Interpolation
        if (anchors.length > 1) {
            for (uint256 idx = 0; idx < anchors.length - 1; idx++) {
                uint32 left = anchors[idx];
                uint32 right = anchors[idx + 1];
                uint8 leftPosition = uint8(left & 0xff);
                uint8 rightPosition = uint8(right & 0xff);

                if (leftPosition == rightPosition) {
                    continue;
                }
                
                uint256 rangeInv = ONE / (rightPosition - leftPosition);
                for (
                    uint256 position = leftPosition;
                    position < rightPosition;
                    position++
                ) {
                    uint256 fraction = (position - leftPosition) * rangeInv;
                    uint32 interpolated = interpolate(
                        uint24(left >> 8),
                        uint24(right >> 8),
                        fraction
                    );
                    colormap[offset++] = bytes1(
                        uint8((interpolated >> 16) & 0xff)
                    );
                    colormap[offset++] = bytes1(
                        uint8((interpolated >> 8) & 0xff)
                    );
                    colormap[offset++] = bytes1(uint8(interpolated & 0xff));
                }
            }
        }
        // Right extrapolation (above the rightmost anchor)
        {
            uint32 anchor = anchors[anchors.length - 1];
            uint8 anchorPos = uint8(anchor & 0xff);
            for (uint256 position = anchorPos; position < 256; position++) {
                colormap[offset++] = bytes1(uint8((anchor >> 24) & 0xff));
                colormap[offset++] = bytes1(uint8((anchor >> 16) & 0xff));
                colormap[offset++] = bytes1(uint8((anchor >> 8) & 0xff));
            }
        }
    }
}

File 8 of 25 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 9 of 25 : PullPayment.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/escrow/Escrow.sol";

/**
 * @dev Simple implementation of a
 * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]
 * strategy, where the paying contract doesn't interact directly with the
 * receiver account, which must withdraw its payments itself.
 *
 * Pull-payments are often considered the best practice when it comes to sending
 * Ether, security-wise. It prevents recipients from blocking execution, and
 * eliminates reentrancy concerns.
 *
 * 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].
 *
 * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
 * instead of Solidity's `transfer` function. Payees can query their due
 * payments with {payments}, and retrieve them with {withdrawPayments}.
 */
abstract contract PullPayment {
    Escrow private immutable _escrow;

    constructor() {
        _escrow = new Escrow();
    }

    /**
     * @dev Withdraw accumulated payments, forwarding all gas to the recipient.
     *
     * Note that _any_ account can call this function, not just the `payee`.
     * This means that contracts unaware of the `PullPayment` protocol can still
     * receive funds this way, by having a separate account call
     * {withdrawPayments}.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee Whose payments will be withdrawn.
     */
    function withdrawPayments(address payable payee) public virtual {
        _escrow.withdraw(payee);
    }

    /**
     * @dev Returns the payments owed to an address.
     * @param dest The creditor's address.
     */
    function payments(address dest) public view returns (uint256) {
        return _escrow.depositsOf(dest);
    }

    /**
     * @dev Called by the payer to store the sent amount as credit to be pulled.
     * Funds sent in this way are stored in an intermediate {Escrow} contract, so
     * there is no danger of them being spent before withdrawal.
     *
     * @param dest The destination address of the funds.
     * @param amount The amount to transfer.
     */
    function _asyncTransfer(address dest, uint256 amount) internal virtual {
        _escrow.deposit{value: amount}(dest);
    }
}

File 10 of 25 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 25 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 25 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 13 of 25 : AttractorSolution.sol
// SPDX-License-Identifier: UNLICENSED
// Copyright 2021 David Huber (@cxkoda)
// All Rights Reserved

pragma solidity >=0.8.0 <0.9.0;

/**
 * @notice The data struct that will be passed from the solver to the renderer.
 * @dev `points` and `tangents` both contain pairs of 16-bit fixed-point numbers
 * with a PRECISION of 6 in row-major order.`dt` is given in the fixed-point
 * respresentation used by the solvers and corresponds to the time step between 
 * the datapoints.
 */
struct AttractorSolution {
    bytes points;
    bytes tangents;
    uint256 dt;
}

File 14 of 25 : ERC2981.sol
// SPDX-License-Identifier: MIT
// Copyright 2021 David Huber (@cxkoda)

pragma solidity >=0.8.0 <0.9.0;

import "./IERC2981.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @notice ERC2981 royalty info base contract
 * @dev Implements `supportsInterface`
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 15 of 25 : IERC2981.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 * @author Taken from https://eips.ethereum.org/EIPS/eip-2981
 */
interface IERC2981 is IERC165 {
    /**
     * @notice Called with the sale price to determine how much royalty
     * is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by _tokenId
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for _salePrice
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 16 of 25 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 17 of 25 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 25 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 19 of 25 : Escrow.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../access/Ownable.sol";
import "../Address.sol";

/**
 * @title Escrow
 * @dev Base escrow contract, holds funds designated for a payee until they
 * withdraw them.
 *
 * Intended usage: This contract (and derived escrow contracts) should be a
 * standalone contract, that only interacts with the contract that instantiated
 * it. That way, it is guaranteed that all Ether will be handled according to
 * the `Escrow` rules, and there is no need to check for payable functions or
 * transfers in the inheritance tree. The contract that uses the escrow as its
 * payment method should be its owner, and provide public methods redirecting
 * to the escrow's deposit and withdraw.
 */
contract Escrow is Ownable {
    using Address for address payable;

    event Deposited(address indexed payee, uint256 weiAmount);
    event Withdrawn(address indexed payee, uint256 weiAmount);

    mapping(address => uint256) private _deposits;

    function depositsOf(address payee) public view returns (uint256) {
        return _deposits[payee];
    }

    /**
     * @dev Stores the sent amount as credit to be withdrawn.
     * @param payee The destination address of the funds.
     */
    function deposit(address payee) public payable virtual onlyOwner {
        uint256 amount = msg.value;
        _deposits[payee] += amount;
        emit Deposited(payee, amount);
    }

    /**
     * @dev Withdraw accumulated balance for a payee, forwarding all gas to the
     * recipient.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee The address whose funds will be withdrawn and transferred to.
     */
    function withdraw(address payable payee) public virtual onlyOwner {
        uint256 payment = _deposits[payee];

        _deposits[payee] = 0;

        payee.sendValue(payment);

        emit Withdrawn(payee, payment);
    }
}

File 20 of 25 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 22 of 25 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 23 of 25 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 24 of 25 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 25 of 25 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/utils/ColorMixer.sol": {
      "ColorMixer": "0x7094dbba1cceae581d59b53af7f184ec8202d4c5"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"slotSigner","type":"address"},{"internalType":"address","name":"openSeaProxyRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"grantee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"createSlotMessage","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"enableFullsetMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getColorAnchors","outputs":[{"internalType":"uint32[]","name":"colormap","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getProjectionParameters","outputs":[{"components":[{"internalType":"int256[]","name":"axis1","type":"int256[]"},{"internalType":"int256[]","name":"axis2","type":"int256[]"},{"internalType":"int256[]","name":"offset","type":"int256[]"}],"internalType":"struct ProjectionParameters","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFullsetMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSlotRestricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"grantee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isValidSlot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"systemId","type":"uint8"}],"name":"lockSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"description","type":"string"},{"internalType":"address","name":"solver","type":"address"},{"components":[{"internalType":"uint256","name":"numberOfIterations","type":"uint256"},{"internalType":"uint256","name":"dt","type":"uint256"},{"internalType":"uint8","name":"skip","type":"uint8"}],"internalType":"struct SolverParameters","name":"solverParameters","type":"tuple"},{"internalType":"address","name":"renderer","type":"address"},{"internalType":"uint32[]","name":"defaultColorAnchors","type":"uint32[]"},{"internalType":"uint8","name":"defaultRenderSize","type":"uint8"},{"internalType":"uint256","name":"systemId","type":"uint256"}],"name":"newAttractorSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"int256[]","name":"axis1","type":"int256[]"},{"internalType":"int256[]","name":"axis2","type":"int256[]"},{"internalType":"int256[]","name":"offset","type":"int256[]"}],"internalType":"struct ProjectionParameters","name":"projectionParameters","type":"tuple"},{"internalType":"uint32[]","name":"colorAnchors","type":"uint32[]"},{"internalType":"uint8","name":"renderSize","type":"uint8"}],"name":"renderWithConfig","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rerollTokenRandomSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"resetProjectionParameters","type":"bool"},{"internalType":"bool","name":"resetColorAnchors","type":"bool"},{"internalType":"bool","name":"resetRenderSize","type":"bool"}],"name":"resetRenderParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[4]","name":"tokenIds","type":"uint256[4]"}],"name":"safeMintFullsetToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"safeMintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"safeMintRegularToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32[]","name":"colorAnchors","type":"uint32[]"}],"name":"setColorAnchors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"int256[]","name":"axis1","type":"int256[]"},{"internalType":"int256[]","name":"axis2","type":"int256[]"},{"internalType":"int256[]","name":"offset","type":"int256[]"}],"internalType":"struct ProjectionParameters","name":"projectionParameters","type":"tuple"}],"name":"setProjectionParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"renderSize","type":"uint8"}],"name":"setRenderSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"setRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setSlotRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSlotSigner","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":"uint8","name":"systemId","type":"uint8"}],"name":"systems","outputs":[{"components":[{"internalType":"string","name":"description","type":"string"},{"internalType":"uint8","name":"numLeftForMint","type":"uint8"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"contract ISvgRenderer","name":"renderer","type":"address"},{"internalType":"uint8","name":"defaultRenderSize","type":"uint8"},{"internalType":"uint32[]","name":"defaultColorAnchors","type":"uint32[]"},{"internalType":"contract IAttractorSolver","name":"solver","type":"address"},{"components":[{"internalType":"uint256","name":"numberOfIterations","type":"uint256"},{"internalType":"uint256","name":"dt","type":"uint256"},{"internalType":"uint8","name":"skip","type":"uint8"}],"internalType":"struct SolverParameters","name":"solverParameters","type":"tuple"}],"internalType":"struct StrangeAttractors.AttractorSystem","name":"","type":"tuple"}],"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":"tokenId","type":"uint256"}],"name":"tokens","outputs":[{"components":[{"internalType":"uint8","name":"systemId","type":"uint8"},{"internalType":"bool","name":"usedForFullsetToken","type":"bool"},{"internalType":"bool","name":"useDefaultColors","type":"bool"},{"internalType":"bool","name":"useDefaultProjection","type":"bool"},{"internalType":"uint8","name":"renderSize","type":"uint8"},{"internalType":"uint256","name":"randomSeed","type":"uint256"},{"components":[{"internalType":"int256[]","name":"axis1","type":"int256[]"},{"internalType":"int256[]","name":"axis2","type":"int256[]"},{"internalType":"int256[]","name":"offset","type":"int256[]"}],"internalType":"struct ProjectionParameters","name":"projectionParameters","type":"tuple"},{"internalType":"uint32[]","name":"colorAnchors","type":"uint32[]"}],"internalType":"struct StrangeAttractors.Token","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526001805460ff60a01b1916600160a01b1790556013805460ff191690553480156200002e57600080fd5b5060405162006a0238038062006a02833981016040819052620000519162000359565b8351849084906200006a906006906020850190620001bb565b50805162000080906007906020840190620001bb565b5050506200009d620000976200016560201b60201c565b62000169565b604051620000ab906200024a565b604051809103906000f080158015620000c8573d6000803e3d6000fd5b506001600160a01b03908116608052811615620000fb57600180546001600160a01b0319166001600160a01b0383161790555b62000134620001126010546001600160a01b031690565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b620001406103e8600455565b600380546001600160a01b0319166001600160a01b0384161790555050505062000425565b3390565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c990620003e8565b90600052602060002090601f016020900481019282620001ed576000855562000238565b82601f106200020857805160ff191683800117855562000238565b8280016001018555821562000238579182015b82811115620002385782518255916020019190600101906200021b565b506200024692915062000258565b5090565b6105f2806200641083390190565b5b8082111562000246576000815560010162000259565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200029757600080fd5b81516001600160401b0380821115620002b457620002b46200026f565b604051601f8301601f19908116603f01168101908282118183101715620002df57620002df6200026f565b81604052838152602092508683858801011115620002fc57600080fd5b600091505b8382101562000320578582018301518183018401529082019062000301565b83821115620003325760008385830101525b9695505050505050565b80516001600160a01b03811681146200035457600080fd5b919050565b600080600080608085870312156200037057600080fd5b84516001600160401b03808211156200038857600080fd5b620003968883890162000285565b95506020870151915080821115620003ad57600080fd5b50620003bc8782880162000285565b935050620003cd604086016200033c565b9150620003dd606086016200033c565b905092959194509250565b600181811c90821680620003fd57607f821691505b602082108114156200041f57634e487b7160e01b600052602260045260246000fd5b50919050565b608051615fc16200044f6000396000818161141601528181612e7901526131150152615fc16000f3fe6080604052600436106102c95760003560e01c806370a0823111610175578063b62c264c116100dc578063cbee721211610095578063e2982c211161006f578063e2982c21146108d6578063e8a3d485146108f6578063e985e9c51461090b578063f2fde38b1461092b57600080fd5b8063cbee721214610876578063d8d101e114610896578063dbe16c07146108b657600080fd5b8063b62c264c146107ba578063b88d4fde146107da578063bd69baa5146107fa578063c002d23d1461081a578063c0aca5be14610836578063c87b56dd1461085657600080fd5b80638da5cb5b1161012e5780638da5cb5b146106fa5780638dc251e31461071857806395d89b41146107385780639a65c8c51461074d578063a22cb4651461077a578063b62b15ed1461079a57600080fd5b806370a0823114610646578063715018a61461066657806372a1df411461067b5780637ba470821461069b578063836b74d1146106ba5780638397d419146106da57600080fd5b806331b3eb94116102345780636072b7e3116101ed5780636352211e116101c75780636352211e146105b95780636483701e146105d957806365c4dadc146105f95780636624ae871461061957600080fd5b80636072b7e3146105595780636102de981461057957806361ba27da1461059957600080fd5b806331b3eb94146104855780633b82b5fa146104a557806342842e0e146104d25780634f64b2be146104f25780634f6ccce71461051f5780635a7715fe1461053f57600080fd5b806318160ddd1161028657806318160ddd146103a757806321456b52146103c657806321b92666146103e657806323b872dd146104065780632a55205a146104265780632f745c591461046557600080fd5b806301ffc9a7146102ce5780630225c3db1461030357806306fdde0314610318578063081812fc1461033a578063095ea7b3146103725780631186363214610392575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004614743565b61094b565b60405190151581526020015b60405180910390f35b6103166103113660046147a1565b61095c565b005b34801561032457600080fd5b5061032d610b63565b6040516102fa9190614844565b34801561034657600080fd5b5061035a610355366004614857565b610bf5565b6040516001600160a01b0390911681526020016102fa565b34801561037e57600080fd5b5061031661038d366004614885565b610c8a565b34801561039e57600080fd5b50610316610da0565b3480156103b357600080fd5b50600e545b6040519081526020016102fa565b3480156103d257600080fd5b506103166103e1366004614927565b610e99565b3480156103f257600080fd5b506103166104013660046149f0565b61128e565b34801561041257600080fd5b50610316610421366004614a0d565b6112fb565b34801561043257600080fd5b50610446610441366004614a4e565b61132d565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561047157600080fd5b506103b8610480366004614885565b611361565b34801561049157600080fd5b506103166104a0366004614a70565b6113f7565b3480156104b157600080fd5b506104c56104c0366004614857565b611475565b6040516102fa9190614b19565b3480156104de57600080fd5b506103166104ed366004614a0d565b6116a0565b3480156104fe57600080fd5b5061051261050d366004614857565b6116bb565b6040516102fa9190614b62565b34801561052b57600080fd5b506103b861053a366004614857565b61192a565b34801561054b57600080fd5b506013546102ee9060ff1681565b34801561056557600080fd5b50610316610574366004614bf3565b6119bd565b34801561058557600080fd5b506102ee610594366004614c39565b611b1a565b3480156105a557600080fd5b506103166105b4366004614857565b611bc4565b3480156105c557600080fd5b5061035a6105d4366004614857565b611bf7565b3480156105e557600080fd5b506103b86105f4366004614885565b611c6e565b34801561060557600080fd5b50610316610614366004614c80565b611cbc565b34801561062557600080fd5b506106396106343660046149f0565b611cf9565b6040516102fa9190614c9d565b34801561065257600080fd5b506103b8610661366004614a70565b611f2a565b34801561067257600080fd5b50610316611fb1565b34801561068757600080fd5b50610316610696366004614d69565b611fe7565b3480156106a757600080fd5b50600154600160a01b900460ff166102ee565b3480156106c657600080fd5b5061032d6106d5366004614ef8565b61203d565b3480156106e657600080fd5b506103166106f5366004614fed565b6122aa565b34801561070657600080fd5b506010546001600160a01b031661035a565b34801561072457600080fd5b50610316610733366004614a70565b612389565b34801561074457600080fd5b5061032d6123d1565b34801561075957600080fd5b5061076d610768366004614857565b6123e0565b6040516102fa9190615040565b34801561078657600080fd5b50610316610795366004615053565b612518565b3480156107a657600080fd5b506102ee6107b53660046150f9565b6125dd565b3480156107c657600080fd5b506103166107d5366004614a70565b61263c565b3480156107e657600080fd5b506103166107f5366004615151565b612684565b34801561080657600080fd5b506103166108153660046151bc565b6126bc565b34801561082657600080fd5b506103b86704db73254763000081565b34801561084257600080fd5b506103166108513660046151fa565b612778565b34801561086257600080fd5b5061032d610871366004614857565b612a61565b34801561088257600080fd5b50610316610891366004614857565b612cdb565b3480156108a257600080fd5b506103166108b1366004614c80565b612d35565b3480156108c257600080fd5b5061032d6108d1366004614857565b612d79565b3480156108e257600080fd5b506103b86108f1366004614a70565b612e57565b34801561090257600080fd5b5061032d612ef5565b34801561091757600080fd5b506102ee610926366004614c39565b612f04565b34801561093757600080fd5b50610316610946366004614a70565b612f3f565b600061095682612fd7565b92915050565b6704db73254763000034146109ab5760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103830bcb6b2b73a1760811b60448201526064015b60405180910390fd5b6109ec338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612ffc92505050565b610a07610a016010546001600160a01b031690565b346130f6565b600060015b60115460ff82161015610a625760118160ff1681548110610a2f57610a2f61521c565b6000918252602090912060016007909202010154610a509060ff1683615248565b9150610a5b81615260565b9050610a0c565b508015610b2357600081610a758361316e565b610a7f9190615296565b905060015b60115460ff82161015610b205760118160ff1681548110610aa757610aa761521c565b600091825260209091206001600790920201015460ff16821015610ad757610ace816131b6565b50505050505050565b60118160ff1681548110610aed57610aed61521c565b6000918252602090912060016007909202010154610b0e9060ff16836152aa565b9150610b1981615260565b9050610a84565b50505b60405162461bcd60e51b8152602060048201526015602482015274105b1b0817dcde5cdd195b5cc81cdbdb19081bdd5d605a1b60448201526064016109a2565b606060068054610b72906152c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9e906152c1565b8015610beb5780601f10610bc057610100808354040283529160200191610beb565b820191906000526020600020905b815481529060010190602001808311610bce57829003601f168201915b5050505050905090565b6000818152600860205260408120546001600160a01b0316610c6e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a2565b506000908152600a60205260409020546001600160a01b031690565b6000610c9582611bf7565b9050806001600160a01b0316836001600160a01b03161415610d035760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a2565b336001600160a01b0382161480610d1f5750610d1f8133612f04565b610d915760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a2565b610d9b83836135a4565b505050565b6010546001600160a01b03163314610dca5760405162461bcd60e51b81526004016109a2906152f6565b600060015b60115460ff82161015610e48575b600260ff1660118260ff1681548110610df857610df861521c565b6000918252602090912060016007909202010154610e1a9060ff16608061532b565b60ff161015610e3657610e2c816131b6565b5060019150610ddd565b80610e4081615260565b915050610dcf565b5080610e965760405162461bcd60e51b815260206004820152601b60248201527f4f776e657220616c6c6f636174696f6e206578686175737465642e000000000060448201526064016109a2565b50565b6010546001600160a01b03163314610ec35760405162461bcd60e51b81526004016109a2906152f6565b604080516101206020601f8c01819004028201810190925261010081018a81526000928291908d908d908190850183828082843760009201829052509385525050608060208085018290526040808601949094526001600160a01b038c16606086015260ff8916918501919091528251898202818101830190945289815260a090940193928a925089918291908501908490808284376000920191909152505050908252506001600160a01b038a166020820152604001610f89368a90038a018a61534e565b90526011549091508210156111595760118281548110610fab57610fab61521c565b906000526020600020906007020160010160019054906101000a900460ff16156110075760405162461bcd60e51b815260206004820152600d60248201526c14de5cdd195b481b1bd8dad959609a1b60448201526064016109a2565b6011828154811061101a5761101a61521c565b60009182526020918290206001600790920201015460ff1690820152601180548291908490811061104d5761104d61521c565b9060005260206000209060070201600082015181600001908051906020019061107792919061453d565b5060208281015160018301805460408601516060870151608088015160ff908116600160b01b0260ff60b01b196001600160a01b0390931662010000029290921662010000600160b81b03199315156101000261ffff19909516919096161792909217169290921791909117905560a083015180516110fc92600285019201906145c1565b5060c08201516003820180546001600160a01b0319166001600160a01b0390921691909117905560e0909101518051600483015560208101516005830155604001516006909101805460ff191660ff909216919091179055611282565b601180546001810182556000919091528151805183926007027f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801916111a49183916020019061453d565b5060208281015160018301805460408601516060870151608088015160ff908116600160b01b0260ff60b01b196001600160a01b0390931662010000029290921662010000600160b81b03199315156101000261ffff19909516919096161792909217169290921791909117905560a0830151805161122992600285019201906145c1565b5060c08201516003820180546001600160a01b0319166001600160a01b0390921691909117905560e0909101518051600483015560208101516005830155604001516006909101805460ff191660ff9092169190911790555b50505050505050505050565b6010546001600160a01b031633146112b85760405162461bcd60e51b81526004016109a2906152f6565b600160118260ff16815481106112d0576112d061521c565b906000526020600020906007020160010160016101000a81548160ff02191690831515021790555050565b611306335b82613612565b6113225760405162461bcd60e51b81526004016109a2906153af565b610d9b8383836136e1565b600080600454612710846113419190615400565b61134b9190615414565b6005546001600160a01b03169590945092505050565b600061136c83611f2a565b82106113ce5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109a2565b506001600160a01b03919091166000908152600c60209081526040808320938352929052205490565b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906351cff8d990602401600060405180830381600087803b15801561145a57600080fd5b505af115801561146e573d6000803e3d6000fd5b5050505050565b61149960405180606001604052806060815260200160608152602001606081525090565b6000828152601260205260409020546301000000900460ff16156115755760116114c28361388c565b60ff16815481106114d5576114d561521c565b60009182526020909120600360079092020101546001600160a01b0316634706d0446115008461389a565b6040516001600160e01b031960e084901b16815260ff909116600482015260240160006040518083038186803b15801561153957600080fd5b505afa15801561154d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610956919081019061548e565b600082815260126020908152604091829020825160029091018054608093810283018401909452606082018481529193909284929184918401828280156115db57602002820191906000526020600020905b8154815260200190600101908083116115c7575b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561163357602002820191906000526020600020905b81548152602001906001019080831161161f575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561168b57602002820191906000526020600020905b815481526020019060010190808311611677575b5050505050815250509050919050565b919050565b610d9b83838360405180602001604052806000815250612684565b61171a60408051610100810182526000808252602080830182905282840182905260608084018390526080840183905260a084019290925283518083018552828152908101829052928301529060c08201908152602001606081525090565b60008281526012602090815260409182902082516101008082018552825460ff8082168452918104821615158386015262010000810482161515838701526301000000810482161515606080850191909152640100000000909104909116608080840191909152600184015460a08401528551600285018054968702820183019097529182018581529295939460c087019492938492909184918401828280156117e357602002820191906000526020600020905b8154815260200190600101908083116117cf575b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561183b57602002820191906000526020600020905b815481526020019060010190808311611827575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561189357602002820191906000526020600020905b81548152602001906001019080831161187f575b50505050508152505081526020016005820180548060200260200160405190810160405280929190818152602001828054801561168b57602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116118de5790505050505050815250509050919050565b6000611935600e5490565b82106119985760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109a2565b600e82815481106119ab576119ab61521c565b90600052602060002001549050919050565b816119c733611300565b6119e35760405162461bcd60e51b81526004016109a290615542565b60116119ee8461388c565b60ff1681548110611a0157611a0161521c565b60009182526020909120600360079092020101546040516325bd331560e21b81526001600160a01b03909116906396f4cc5490611a429085906004016155ff565b60206040518083038186803b158015611a5a57600080fd5b505afa158015611a6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a929190615675565b611ade5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c69642070726f6a656374696f6e20706172616d657465727300000060448201526064016109a2565b60008381526012602052604090208290600201611afb8282615759565b505050600091825250601260205260409020805463ff00000019169055565b6001546000906001600160a01b03168015801590611bbc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b158015611b7957600080fd5b505afa158015611b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb19190615815565b6001600160a01b0316145b949350505050565b6010546001600160a01b03163314611bee5760405162461bcd60e51b81526004016109a2906152f6565b610e9681600455565b6000818152600860205260408120546001600160a01b0316806109565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a2565b600354604080516001600160a01b0380861660208301529181018490529116606082015230608082015260009060a00160405160208183030381529060405280519060200120905092915050565b6010546001600160a01b03163314611ce65760405162461bcd60e51b81526004016109a2906152f6565b6013805460ff1916911515919091179055565b611d5660408051610100810182526060808252600060208084018290528385018290528284018290526080840182905260a0840183905260c08401829052845192830185528183528201819052928101929092529060e082015290565b60118260ff1681548110611d6c57611d6c61521c565b906000526020600020906007020160405180610100016040529081600082018054611d96906152c1565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc2906152c1565b8015611e0f5780601f10611de457610100808354040283529160200191611e0f565b820191906000526020600020905b815481529060010190602001808311611df257829003601f168201915b5050509183525050600182015460ff8082166020808501919091526101008304821615156040808601919091526001600160a01b03620100008504166060860152600160b01b909304909116608084015260028401805483518184028101840190945280845260a0909401939091830182828015611ed857602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411611e9b5790505b505050918352505060038201546001600160a01b0316602080830191909152604080516060810182526004850154815260058501549281019290925260069093015460ff168184015291015292915050565b60006001600160a01b038216611f955760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a2565b506001600160a01b031660009081526009602052604090205490565b6010546001600160a01b03163314611fdb5760405162461bcd60e51b81526004016109a2906152f6565b611fe560006138a8565b565b81611ff133611300565b61200d5760405162461bcd60e51b81526004016109a290615542565b50600091825260126020526040909120805460ff9092166401000000000264ff0000000019909216919091179055565b60606000601161204c8761388c565b60ff168154811061205f5761205f61521c565b6000918252602080832060016007909302018281015460038201548b86526012909352604094859020909301549351630b0179e160e31b81529094506001600160a01b036201000090930483169363cedaa54d93929092169163f1afd0a191600480880192859263580bcf08926120db92910190815260200190565b60006040518083038186803b1580156120f357600080fd5b505afa158015612107573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261212f9190810190615832565b8a6040518463ffffffff1660e01b815260040161214e939291906158b4565b60006040518083038186803b15801561216657600080fd5b505afa15801561217a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121a29190810190615952565b6040516322fd23c160e11b8152737094dbba1cceae581d59b53af7f184ec8202d4c5906345fa4782906121d9908a906004016159ef565b60006040518083038186803b1580156121f157600080fd5b505af4158015612205573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261222d9190810190615a39565b866040518463ffffffff1660e01b815260040161224c93929190615a6d565b60006040518083038186803b15801561226457600080fd5b505afa158015612278573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122a09190810190615ad8565b9695505050505050565b836122b433611300565b6122d05760405162461bcd60e51b81526004016109a290615542565b83156122f6576000858152601260205260409020805463ff000000191663010000001790555b821561231a576000858152601260205260409020805462ff00001916620100001790555b811561146e57601161232b8661388c565b60ff168154811061233e5761233e61521c565b60009182526020808320600792909202909101600101549682526012905260409020805464ff000000001916600160b01b90960460ff16640100000000029590951790945550505050565b6010546001600160a01b031633146123b35760405162461bcd60e51b81526004016109a2906152f6565b600580546001600160a01b0319166001600160a01b03831617905550565b606060078054610b72906152c1565b60008181526012602052604090205460609062010000900460ff16156124b157601161240b8361388c565b60ff168154811061241e5761241e61521c565b90600052602060002090600702016002018054806020026020016040519081016040528092919081815260200182805480156124a557602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116124685790505b50505050509050919050565b600082815260126020908152604091829020600501805483518184028101840190945280845290918301828280156124a5576000918252602091829020805463ffffffff168452908202830192909160049101808411612468575094979650505050505050565b6001600160a01b0382163314156125715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a2565b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000806125ea8585611c6e565b60008181526002602052604090205490915060ff1615801561263157506003546001600160a01b031661262684612620846138fa565b9061394d565b6001600160a01b0316145b9150505b9392505050565b6010546001600160a01b031633146126665760405162461bcd60e51b81526004016109a2906152f6565b600380546001600160a01b0319166001600160a01b03831617905550565b61268e3383613612565b6126aa5760405162461bcd60e51b81526004016109a2906153af565b6126b684848484613971565b50505050565b826126c633611300565b6126e25760405162461bcd60e51b81526004016109a290615542565b81158015906126f2575060408211155b61273e5760405162461bcd60e51b815260206004820181905260248201527f496e76616c696420616d6f756e74206f6620636f6c6f7220616e63686f72732e60448201526064016109a2565b600084815260126020526040902061275a90600501848461466b565b505050600091825250601260205260409020805462ff000019169055565b803561278333611300565b61279f5760405162461bcd60e51b81526004016109a290615542565b60208201356127ad33611300565b6127c95760405162461bcd60e51b81526004016109a290615542565b60408301356127d733611300565b6127f35760405162461bcd60e51b81526004016109a290615542565b606084013561280133611300565b61281d5760405162461bcd60e51b81526004016109a290615542565b60135460ff1661286f5760405162461bcd60e51b815260206004820152601960248201527f46756c6c736574206d696e742069732064697361626c65642e0000000000000060448201526064016109a2565b6040805160808101825260008082526020820181905291810182905260608101829052905b60048110156129bb57601260008883600481106128b3576128b361521c565b6020020135815260200190815260200160002060000160019054906101000a900460ff161561291a5760405162461bcd60e51b81526020600482015260136024820152722a37b5b2b71030b63932b0b23c903ab9b2b21760691b60448201526064016109a2565b600182600161293e8a85600481106129345761293461521c565b602002013561388c565b612948919061532b565b60ff166004811061295b5761295b61521c565b9115156020909202015260016012600089846004811061297d5761297d61521c565b6020020135815260200190815260200160002060000160016101000a81548160ff021916908315150217905550806129b490615b20565b9050612894565b50805180156129cb575060208101515b80156129d8575060408101515b80156129e5575060608101515b612a315760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e73206f6620656163682073797374656d207265717569726564000060448201526064016109a2565b6000612a3d60006131b6565b6000908152601260205260409020805461ff00191661010017905550505050505050565b606060006011612a708461388c565b60ff1681548110612a8357612a8361521c565b906000526020600020906007020190506000612a9e84612d79565b6003830154604080516303af1e7560e21b8152905185926001600160a01b031691630ebc79d4916004808301926000929190829003018186803b158015612ae457600080fd5b505afa158015612af8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b209190810190615ad8565b600087815260126020526040902060010154612b3b906139a4565b604051602001612b4e9493929190615b57565b60408051601f1981840301815291905260135490915060ff1615612c7c5780612c008360030160009054906101000a90046001600160a01b03166001600160a01b031663c1ce35ea6040518163ffffffff1660e01b815260040160206040518083038186803b158015612bc057600080fd5b505afa158015612bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bf89190615cf1565b60ff166139f8565b600086815260126020526040902054610100900460ff16612c3b57604051806040016040528060028152602001614e6f60f01b815250612c58565b6040518060400160405280600381526020016259657360e81b8152505b604051602001612c6a93929190615d0e565b60405160208183030381529060405290505b80612cb285612c8a87611475565b612c93886123e0565b600089815260126020526040902054640100000000900460ff1661203d565b604051602001612cc3929190615dc9565b60405160208183030381529060405292505050919050565b6010546001600160a01b03163314612d055760405162461bcd60e51b81526004016109a2906152f6565b600081815260126020526040902060010154612d209061316e565b60009182526012602052604090912060010155565b6010546001600160a01b03163314612d5f5760405162461bcd60e51b81526004016109a2906152f6565b6001805460ff60a01b1916600160a01b8315150217905550565b60606011612d868361388c565b60ff1681548110612d9957612d9961521c565b60009182526020822060036007909202010154604080516303af1e7560e21b815290516001600160a01b0390921692630ebc79d492600480840193829003018186803b158015612de857600080fd5b505afa158015612dfc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612e249190810190615ad8565b612e30612bf88461389a565b604051602001612e41929190615e31565b6040516020818303038152906040529050919050565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a9060240160206040518083038186803b158015612ebd57600080fd5b505afa158015612ed1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109569190615e70565b606060008054610b72906152c1565b6001600160a01b038083166000908152600b6020908152604080832093851683529290529081205460ff168061263557506126358383611b1a565b6010546001600160a01b03163314612f695760405162461bcd60e51b81526004016109a2906152f6565b6001600160a01b038116612fce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a2565b610e96816138a8565b60006001600160e01b0319821663780e9d6360e01b1480610956575061095682613af5565b600154600160a01b900460ff1615610d9b57600061301a8484611c6e565b60008181526002602052604090205490915060ff16156130705760405162461bcd60e51b815260206004820152601160248201527014db1bdd08185b1c9958591e481d5cd959607a1b60448201526064016109a2565b6003546001600160a01b031661308983612620846138fa565b6001600160a01b0316146130d85760405162461bcd60e51b8152602060048201526016602482015275496e76616c696420736c6f74207369676e617475726560501b60448201526064016109a2565b6000908152600260205260409020805460ff19166001179055505050565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019083906024016000604051808303818588803b15801561315a57600080fd5b505af1158015610ace573d6000803e3d6000fd5b60408051426020808301919091523360601b6bffffffffffffffffffffffff191682840152605480830194909452825180830390940184526074909101909152815191012090565b60115460009060ff83161061320d5760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420696e206e6f6e2d6578697374656e742073797374656d2e0000000060448201526064016109a2565b600060118360ff16815481106132255761322561521c565b600091825260209091206001600790920201015460ff16116132895760405162461bcd60e51b815260206004820152601960248201527f53797374656d206361706163697479206578686175737465640000000000000060448201526064016109a2565b60118260ff168154811061329f5761329f61521c565b60009182526020909120600160079092020101546132c19060ff16608061532b565b60ff166103e88360ff166132d59190615414565b6132df9190615248565b90506040518061010001604052808360ff16815260200160001515815260200160011515815260200160011515815260200160118460ff16815481106133275761332761521c565b60009182526020918290206001600790920201015460ff600160b01b909104168252016133538361316e565b8152602001604051806060016040528060006001600160401b0381111561337c5761337c614d8e565b6040519080825280602002602001820160405280156133a5578160200160208202803683370190505b50815260200160006040519080825280602002602001820160405280156133d6578160200160208202803683370190505b5081526020016000604051908082528060200260200182016040528015613407578160200160208202803683370190505b5090528152602001600060405190808252806020026020018201604052801561343a578160200160208202803683370190505b5090526000828152601260209081526040918290208351815485840151948601516060870151608088015160ff94851661ffff1990941693909317610100971515979097029690961763ffff00001916620100009115159190910263ff0000001916176301000000951515959095029490941764ff000000001916640100000000919094160292909217825560a0830151600183015560c083015180518051919260028501926134ed92849201906146de565b50602082810151805161350692600185019201906146de565b50604082015180516135229160028401916020909101906146de565b50505060e082015180516135409160058401916020909101906145c1565b5090505060118260ff168154811061355a5761355a61521c565b600091825260208220600160079092020101805460ff169161357b83615e89565b91906101000a81548160ff021916908360ff1602179055505061169b61359e3390565b82613b35565b6000818152600a6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906135d982611bf7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600860205260408120546001600160a01b031661368b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a2565b600061369683611bf7565b9050806001600160a01b0316846001600160a01b031614806136d15750836001600160a01b03166136c684610bf5565b6001600160a01b0316145b80611bbc5750611bbc8185612f04565b826001600160a01b03166136f482611bf7565b6001600160a01b03161461375c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109a2565b6001600160a01b0382166137be5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a2565b6137c9838383613b53565b6137d46000826135a4565b6001600160a01b03831660009081526009602052604081208054600192906137fd9084906152aa565b90915550506001600160a01b038216600090815260096020526040812080546001929061382b908490615248565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006109566103e883615400565b60006109566103e883615296565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600080600061395c8585613c0b565b9150915061396981613c7b565b509392505050565b61397c8484846136e1565b61398884848484613e36565b6126b65760405162461bcd60e51b81526004016109a290615ea6565b6060816139cb5750506040805180820190915260048152630307830360e41b602082015290565b8160005b81156139ee57806139df81615b20565b915050600882901c91506139cf565b611bbc8482613f40565b606081613a1c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a465780613a3081615b20565b9150613a3f9050600a83615400565b9150613a20565b6000816001600160401b03811115613a6057613a60614d8e565b6040519080825280601f01601f191660200182016040528015613a8a576020820181803683370190505b5090505b8415611bbc57613a9f6001836152aa565b9150613aac600a86615296565b613ab7906030615248565b60f81b818381518110613acc57613acc61521c565b60200101906001600160f81b031916908160001a905350613aee600a86615400565b9450613a8e565b60006001600160e01b031982166380ac58cd60e01b1480613b2657506001600160e01b03198216635b5e139f60e01b145b806109565750610956826140db565b613b4f828260405180602001604052806000815250614110565b5050565b6001600160a01b038316613bae57613ba981600e80546000838152600f60205260408120829055600182018355919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b613bd1565b816001600160a01b0316836001600160a01b031614613bd157613bd18382614143565b6001600160a01b038216613be857610d9b816141e0565b826001600160a01b0316826001600160a01b031614610d9b57610d9b828261428f565b600080825160411415613c425760208301516040840151606085015160001a613c36878285856142d3565b94509450505050613c74565b825160401415613c6c5760208301516040840151613c618683836143c0565b935093505050613c74565b506000905060025b9250929050565b6000816004811115613c8f57613c8f615ef8565b1415613c985750565b6001816004811115613cac57613cac615ef8565b1415613cfa5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109a2565b6002816004811115613d0e57613d0e615ef8565b1415613d5c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109a2565b6003816004811115613d7057613d70615ef8565b1415613dc95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109a2565b6004816004811115613ddd57613ddd615ef8565b1415610e965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109a2565b60006001600160a01b0384163b15613f3857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e7a903390899088908890600401615f0e565b602060405180830381600087803b158015613e9457600080fd5b505af1925050508015613ec4575060408051601f3d908101601f19168201909252613ec191810190615f41565b60015b613f1e573d808015613ef2576040519150601f19603f3d011682016040523d82523d6000602084013e613ef7565b606091505b508051613f165760405162461bcd60e51b81526004016109a290615ea6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bbc565b506001611bbc565b60606000613f4f836002615414565b613f5a906002615248565b6001600160401b03811115613f7157613f71614d8e565b6040519080825280601f01601f191660200182016040528015613f9b576020820181803683370190505b509050600360fc1b81600081518110613fb657613fb661521c565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613fe557613fe561521c565b60200101906001600160f81b031916908160001a9053506000614009846002615414565b614014906001615248565b90505b600181111561408c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106140485761404861521c565b1a60f81b82828151811061405e5761405e61521c565b60200101906001600160f81b031916908160001a90535060049490941c9361408581615f5e565b9050614017565b5083156126355760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109a2565b60006001600160e01b0319821663152a902d60e11b148061095657506301ffc9a760e01b6001600160e01b0319831614610956565b61411a83836143ef565b6141276000848484613e36565b610d9b5760405162461bcd60e51b81526004016109a290615ea6565b6000600161415084611f2a565b61415a91906152aa565b6000838152600d60205260409020549091508082146141ad576001600160a01b0384166000908152600c602090815260408083208584528252808320548484528184208190558352600d90915290208190555b506000918252600d602090815260408084208490556001600160a01b039094168352600c81528383209183525290812055565b600e546000906141f2906001906152aa565b6000838152600f6020526040812054600e805493945090928490811061421a5761421a61521c565b9060005260206000200154905080600e838154811061423b5761423b61521c565b6000918252602080832090910192909255828152600f9091526040808220849055858252812055600e80548061427357614273615f75565b6001900381819060005260206000200160009055905550505050565b600061429a83611f2a565b6001600160a01b039093166000908152600c602090815260408083208684528252808320859055938252600d9052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561430a57506000905060036143b7565b8460ff16601b1415801561432257508460ff16601c14155b1561433357506000905060046143b7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614387573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143b0576000600192509250506143b7565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016143e1878288856142d3565b935093505050935093915050565b6001600160a01b0382166144455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a2565b6000818152600860205260409020546001600160a01b0316156144aa5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a2565b6144b660008383613b53565b6001600160a01b03821660009081526009602052604081208054600192906144df908490615248565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054614549906152c1565b90600052602060002090601f01602090048101928261456b57600085556145b1565b82601f1061458457805160ff19168380011785556145b1565b828001600101855582156145b1579182015b828111156145b1578251825591602001919060010190614596565b506145bd929150614718565b5090565b828054828255906000526020600020906007016008900481019282156145b15791602002820160005b8382111561462e57835183826101000a81548163ffffffff021916908363ffffffff16021790555092602001926004016020816003010492830192600103026145ea565b801561465e5782816101000a81549063ffffffff021916905560040160208160030104928301926001030261462e565b50506145bd929150614718565b828054828255906000526020600020906007016008900481019282156145b15791602002820160005b8382111561462e57833563ffffffff1683826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302614694565b8280548282559060005260206000209081019282156145b157916020028201828111156145b1578251825591602001919060010190614596565b5b808211156145bd5760008155600101614719565b6001600160e01b031981168114610e9657600080fd5b60006020828403121561475557600080fd5b81356126358161472d565b60008083601f84011261477257600080fd5b5081356001600160401b0381111561478957600080fd5b602083019150836020828501011115613c7457600080fd5b6000806000604084860312156147b657600080fd5b8335925060208401356001600160401b038111156147d357600080fd5b6147df86828701614760565b9497909650939450505050565b60005b838110156148075781810151838201526020016147ef565b838111156126b65750506000910152565b600081518084526148308160208601602086016147ec565b601f01601f19169290920160200192915050565b6020815260006126356020830184614818565b60006020828403121561486957600080fd5b5035919050565b6001600160a01b0381168114610e9657600080fd5b6000806040838503121561489857600080fd5b82356148a381614870565b946020939093013593505050565b6000606082840312156148c357600080fd5b50919050565b60008083601f8401126148db57600080fd5b5081356001600160401b038111156148f257600080fd5b6020830191508360208260051b8501011115613c7457600080fd5b60ff81168114610e9657600080fd5b803561169b8161490d565b60008060008060008060008060006101208a8c03121561494657600080fd5b89356001600160401b038082111561495d57600080fd5b6149698d838e01614760565b909b50995060208c0135915061497e82614870565b81985061498e8d60408e016148b1565b975060a08c013591506149a082614870565b90955060c08b013590808211156149b657600080fd5b506149c38c828d016148c9565b90955093505060e08a01356149d78161490d565b809250506101008a013590509295985092959850929598565b600060208284031215614a0257600080fd5b81356126358161490d565b600080600060608486031215614a2257600080fd5b8335614a2d81614870565b92506020840135614a3d81614870565b929592945050506040919091013590565b60008060408385031215614a6157600080fd5b50508035926020909101359150565b600060208284031215614a8257600080fd5b813561263581614870565b600081518084526020808501945080840160005b83811015614abd57815187529582019590820190600101614aa1565b509495945050505050565b6000815160608452614add6060850182614a8d565b905060208301518482036020860152614af68282614a8d565b91505060408301518482036040860152614b108282614a8d565b95945050505050565b6020815260006126356020830184614ac8565b600081518084526020808501945080840160005b83811015614abd57815163ffffffff1687529582019590820190600101614b40565b6020815260ff825116602082015260006020830151614b85604084018215159052565b5060408301518015156060840152506060830151801515608084015250608083015160ff811660a08401525060a083015160c083015260c08301516101008060e0850152614bd7610120850183614ac8565b915060e0850151601f1985840301828601526122a08382614b2c565b60008060408385031215614c0657600080fd5b8235915060208301356001600160401b03811115614c2357600080fd5b614c2f858286016148b1565b9150509250929050565b60008060408385031215614c4c57600080fd5b8235614c5781614870565b91506020830135614c6781614870565b809150509250929050565b8015158114610e9657600080fd5b600060208284031215614c9257600080fd5b813561263581614c72565b60208152600082516101406020840152614cbb610160840182614818565b905060ff60208501511660408401526040840151614cdd606085018215159052565b5060608401516001600160a01b038116608085015250608084015160ff811660a08501525060a0840151838203601f190160c0850152614d1d8282614b2c565b91505060c0840151614d3a60e08501826001600160a01b03169052565b5060e084015180516101008501526020810151610120850152604081015160ff16610140850152509392505050565b60008060408385031215614d7c57600080fd5b823591506020830135614c678161490d565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715614dc657614dc6614d8e565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614df457614df4614d8e565b604052919050565b60006001600160401b03821115614e1557614e15614d8e565b5060051b60200190565b600082601f830112614e3057600080fd5b81356020614e45614e4083614dfc565b614dcc565b82815260059290921b84018101918181019086841115614e6457600080fd5b8286015b84811015614e7f5780358352918301918301614e68565b509695505050505050565b600082601f830112614e9b57600080fd5b81356020614eab614e4083614dfc565b82815260059290921b84018101918181019086841115614eca57600080fd5b8286015b84811015614e7f57803563ffffffff81168114614eeb5760008081fd5b8352918301918301614ece565b60008060008060808587031215614f0e57600080fd5b8435935060208501356001600160401b0380821115614f2c57600080fd5b9086019060608289031215614f4057600080fd5b614f48614da4565b823582811115614f5757600080fd5b614f638a828601614e1f565b825250602083013582811115614f7857600080fd5b614f848a828601614e1f565b602083015250604083013582811115614f9c57600080fd5b614fa88a828601614e1f565b604083015250809550506040870135915080821115614fc657600080fd5b50614fd387828801614e8a565b925050614fe26060860161491c565b905092959194509250565b6000806000806080858703121561500357600080fd5b84359350602085013561501581614c72565b9250604085013561502581614c72565b9150606085013561503581614c72565b939692955090935050565b6020815260006126356020830184614b2c565b6000806040838503121561506657600080fd5b823561507181614870565b91506020830135614c6781614c72565b60006001600160401b0382111561509a5761509a614d8e565b50601f01601f191660200190565b600082601f8301126150b957600080fd5b81356150c7614e4082615081565b8181528460208386010111156150dc57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561510e57600080fd5b833561511981614870565b92506020840135915060408401356001600160401b0381111561513b57600080fd5b615147868287016150a8565b9150509250925092565b6000806000806080858703121561516757600080fd5b843561517281614870565b9350602085013561518281614870565b92506040850135915060608501356001600160401b038111156151a457600080fd5b6151b0878288016150a8565b91505092959194509250565b6000806000604084860312156151d157600080fd5b8335925060208401356001600160401b038111156151ee57600080fd5b6147df868287016148c9565b60006080828403121561520c57600080fd5b826080830111156148c357600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561525b5761525b615232565b500190565b600060ff821660ff81141561527757615277615232565b60010192915050565b634e487b7160e01b600052601260045260246000fd5b6000826152a5576152a5615280565b500690565b6000828210156152bc576152bc615232565b500390565b600181811c908216806152d557607f821691505b602082108114156148c357634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060ff821660ff84168082101561534557615345615232565b90039392505050565b60006060828403121561536057600080fd5b604051606081018181106001600160401b038211171561538257615382614d8e565b8060405250823581526020830135602082015260408301356153a38161490d565b60408201529392505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008261540f5761540f615280565b500490565b600081600019048311821515161561542e5761542e615232565b500290565b600082601f83011261544457600080fd5b81516020615454614e4083614dfc565b82815260059290921b8401810191818101908684111561547357600080fd5b8286015b84811015614e7f5780518352918301918301615477565b6000602082840312156154a057600080fd5b81516001600160401b03808211156154b757600080fd5b90830190606082860312156154cb57600080fd5b6154d3614da4565b8251828111156154e257600080fd5b6154ee87828601615433565b82525060208301518281111561550357600080fd5b61550f87828601615433565b60208301525060408301518281111561552757600080fd5b61553387828601615433565b60408301525095945050505050565b60208082526029908201527f4e656974686572206f776e6572206e6f7220617070726f76656420666f7220746040820152683434b9903a37b5b2b760b91b606082015260800190565b6000808335601e198436030181126155a257600080fd5b83016020810192503590506001600160401b038111156155c157600080fd5b8060051b3603831315613c7457600080fd5b8183526000602080850194508260005b85811015614abd578135875295820195908201906001016155e3565b60208152600061560f838461558b565b606060208501526156246080850182846155d3565b915050615634602085018561558b565b601f198086850301604087015261564c8483856155d3565b935061565b604088018861558b565b9350915080868503016060870152506122a08383836155d3565b60006020828403121561568757600080fd5b815161263581614c72565b6000808335601e198436030181126156a957600080fd5b8301803591506001600160401b038211156156c357600080fd5b6020019150600581901b3603821315613c7457600080fd5b600160401b8311156156ef576156ef614d8e565b805483825580841015615726576000828152602081208581019083015b808210156157225782825560018201915061570c565b5050505b5060008181526020812083915b85811015615751578235825560209092019160019182019101615733565b505050505050565b6157638283615692565b600160401b81111561577757615777614d8e565b8254818455808210156157ae576000848152602081208381019083015b808210156157aa57828255600182019150615794565b5050505b5060008381526020902060005b828110156157d95783358255602090930192600191820191016157bb565b505050506157ea6020830183615692565b6157f88183600186016156db565b50506158076040830183615692565b6126b68183600286016156db565b60006020828403121561582757600080fd5b815161263581614870565b60006020828403121561584457600080fd5b81516001600160401b038082111561585b57600080fd5b908301906020828603121561586f57600080fd5b60405160208101818110838211171561588a5761588a614d8e565b60405282518281111561589c57600080fd5b6158a887828601615433565b82525095945050505050565b835481526001840154602082015260ff600285015416604082015260a0606082015260008351602060a08401526158ee60c0840182614a8d565b905082810360808401526122a08185614ac8565b6000615910614e4084615081565b905082815283838301111561592457600080fd5b6126358360208301846147ec565b600082601f83011261594357600080fd5b61263583835160208501615902565b60006020828403121561596457600080fd5b81516001600160401b038082111561597b57600080fd5b908301906060828603121561598f57600080fd5b615997614da4565b8251828111156159a657600080fd5b6159b287828601615932565b8252506020830151828111156159c757600080fd5b6159d387828601615932565b6020830152506040830151604082015280935050505092915050565b6020808252825182820181905260009190848201906040850190845b81811015615a2d57835163ffffffff1683529284019291840191600101615a0b565b50909695505050505050565b600060208284031215615a4b57600080fd5b81516001600160401b03811115615a6157600080fd5b611bbc84828501615932565b6060815260008451606080840152615a8860c0840182614818565b90506020860151605f19848303016080850152615aa58282614818565b915050604086015160a08401528281036020840152615ac48186614818565b91505060ff83166040830152949350505050565b600060208284031215615aea57600080fd5b81516001600160401b03811115615b0057600080fd5b8201601f81018413615b1157600080fd5b611bbc84825160208401615902565b6000600019821415615b3457615b34615232565b5060010190565b60008151615b4d8185602086016147ec565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e2c7b226e616d65223a22008152600085516020615b9082601f8601838b016147ec565b61088b60f21b601f928501928301526e113232b9b1b934b83a34b7b7111d1160891b60218301528654603090600090600181811c9080831680615bd457607f831692505b868310811415615bf257634e487b7160e01b85526022600452602485fd5b808015615c065760018114615c1b57615c4c565b60ff1985168988015283890187019550615c4c565b60008e81526020902060005b85811015615c425781548b82018a0152908401908901615c27565b505086848a010195505b50507f222c2261747472696275746573223a5b7b2274726169745f74797065223a2022845250507029bcb9ba32b69116113b30b63ab2911d1160791b602083015250615ce3615cdd615ca1603184018b615b3b565b7f227d2c7b2274726169745f74797065223a202252616e646f6d2053656564222c81526910113b30b63ab2911d1160b11b6020820152602a0190565b88615b3b565b9a9950505050505050505050565b600060208284031215615d0357600080fd5b81516126358161490d565b60008451615d208184602089016147ec565b80830190507f227d2c7b2274726169745f74797065223a202244696d656e73696f6e73222c20815268113b30b63ab2911d1160b91b60208201528451615d6d8160298401602089016147ec565b7f227d2c7b2274726169745f74797065223a2022436f6d706c65746564222c202260299290910191820152673b30b63ab2911d1160c11b60498201528351615dbc8160518401602088016147ec565b0160510195945050505050565b60008351615ddb8184602088016147ec565b80830190507f227d5d2c22696d616765223a22646174613a696d6167652f7376672b786d6c2c81528351615e168160208401602088016147ec565b61227d60f01b60209290910191820152602201949350505050565b60008351615e438184602088016147ec565b632025323360e01b9083019081528351615e648160048401602088016147ec565b01600401949350505050565b600060208284031215615e8257600080fd5b5051919050565b600060ff821680615e9c57615e9c615232565b6000190192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122a090830184614818565b600060208284031215615f5357600080fd5b81516126358161472d565b600081615f6d57615f6d615232565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220304d2c7875c3513b787f951f8beb3f979bf0bace9f0c55c81b9e36575d6e0b5664736f6c63430008090033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105748061007e6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a61461007c5780638da5cb5b14610091578063e3a9db1a146100be578063f2fde38b14610102578063f340fa0114610122575b600080fd5b34801561006657600080fd5b5061007a6100753660046104bf565b610135565b005b34801561008857600080fd5b5061007a6101d7565b34801561009d57600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100ca57600080fd5b506100f46100d93660046104bf565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b5565b34801561010e57600080fd5b5061007a61011d3660046104bf565b61020d565b61007a6101303660046104bf565b6102a8565b6000546001600160a01b031633146101685760405162461bcd60e51b815260040161015f906104e3565b60405180910390fd5b6001600160a01b0381166000818152600160205260408120805491905590610190908261033c565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516101cb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146102015760405162461bcd60e51b815260040161015f906104e3565b61020b600061045a565b565b6000546001600160a01b031633146102375760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b03811661029c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015f565b6102a58161045a565b50565b6000546001600160a01b031633146102d25760405162461bcd60e51b815260040161015f906104e3565b6001600160a01b0381166000908152600160205260408120805434928392916102fc908490610518565b90915550506040518181526001600160a01b038316907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016101cb565b8047101561038c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161015f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806104555760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161015f565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146102a557600080fd5b6000602082840312156104d157600080fd5b81356104dc816104aa565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561053957634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212201e27c14d8c29def61149c3a29e2598f2ba077c3039a23efd36fefd21cac7369064736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d4c4fd6bbe3bddcd2ce4d9c53dd38d4641fd1a9f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000012537472616e676520417474726163746f7273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025341000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102c95760003560e01c806370a0823111610175578063b62c264c116100dc578063cbee721211610095578063e2982c211161006f578063e2982c21146108d6578063e8a3d485146108f6578063e985e9c51461090b578063f2fde38b1461092b57600080fd5b8063cbee721214610876578063d8d101e114610896578063dbe16c07146108b657600080fd5b8063b62c264c146107ba578063b88d4fde146107da578063bd69baa5146107fa578063c002d23d1461081a578063c0aca5be14610836578063c87b56dd1461085657600080fd5b80638da5cb5b1161012e5780638da5cb5b146106fa5780638dc251e31461071857806395d89b41146107385780639a65c8c51461074d578063a22cb4651461077a578063b62b15ed1461079a57600080fd5b806370a0823114610646578063715018a61461066657806372a1df411461067b5780637ba470821461069b578063836b74d1146106ba5780638397d419146106da57600080fd5b806331b3eb94116102345780636072b7e3116101ed5780636352211e116101c75780636352211e146105b95780636483701e146105d957806365c4dadc146105f95780636624ae871461061957600080fd5b80636072b7e3146105595780636102de981461057957806361ba27da1461059957600080fd5b806331b3eb94146104855780633b82b5fa146104a557806342842e0e146104d25780634f64b2be146104f25780634f6ccce71461051f5780635a7715fe1461053f57600080fd5b806318160ddd1161028657806318160ddd146103a757806321456b52146103c657806321b92666146103e657806323b872dd146104065780632a55205a146104265780632f745c591461046557600080fd5b806301ffc9a7146102ce5780630225c3db1461030357806306fdde0314610318578063081812fc1461033a578063095ea7b3146103725780631186363214610392575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004614743565b61094b565b60405190151581526020015b60405180910390f35b6103166103113660046147a1565b61095c565b005b34801561032457600080fd5b5061032d610b63565b6040516102fa9190614844565b34801561034657600080fd5b5061035a610355366004614857565b610bf5565b6040516001600160a01b0390911681526020016102fa565b34801561037e57600080fd5b5061031661038d366004614885565b610c8a565b34801561039e57600080fd5b50610316610da0565b3480156103b357600080fd5b50600e545b6040519081526020016102fa565b3480156103d257600080fd5b506103166103e1366004614927565b610e99565b3480156103f257600080fd5b506103166104013660046149f0565b61128e565b34801561041257600080fd5b50610316610421366004614a0d565b6112fb565b34801561043257600080fd5b50610446610441366004614a4e565b61132d565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561047157600080fd5b506103b8610480366004614885565b611361565b34801561049157600080fd5b506103166104a0366004614a70565b6113f7565b3480156104b157600080fd5b506104c56104c0366004614857565b611475565b6040516102fa9190614b19565b3480156104de57600080fd5b506103166104ed366004614a0d565b6116a0565b3480156104fe57600080fd5b5061051261050d366004614857565b6116bb565b6040516102fa9190614b62565b34801561052b57600080fd5b506103b861053a366004614857565b61192a565b34801561054b57600080fd5b506013546102ee9060ff1681565b34801561056557600080fd5b50610316610574366004614bf3565b6119bd565b34801561058557600080fd5b506102ee610594366004614c39565b611b1a565b3480156105a557600080fd5b506103166105b4366004614857565b611bc4565b3480156105c557600080fd5b5061035a6105d4366004614857565b611bf7565b3480156105e557600080fd5b506103b86105f4366004614885565b611c6e565b34801561060557600080fd5b50610316610614366004614c80565b611cbc565b34801561062557600080fd5b506106396106343660046149f0565b611cf9565b6040516102fa9190614c9d565b34801561065257600080fd5b506103b8610661366004614a70565b611f2a565b34801561067257600080fd5b50610316611fb1565b34801561068757600080fd5b50610316610696366004614d69565b611fe7565b3480156106a757600080fd5b50600154600160a01b900460ff166102ee565b3480156106c657600080fd5b5061032d6106d5366004614ef8565b61203d565b3480156106e657600080fd5b506103166106f5366004614fed565b6122aa565b34801561070657600080fd5b506010546001600160a01b031661035a565b34801561072457600080fd5b50610316610733366004614a70565b612389565b34801561074457600080fd5b5061032d6123d1565b34801561075957600080fd5b5061076d610768366004614857565b6123e0565b6040516102fa9190615040565b34801561078657600080fd5b50610316610795366004615053565b612518565b3480156107a657600080fd5b506102ee6107b53660046150f9565b6125dd565b3480156107c657600080fd5b506103166107d5366004614a70565b61263c565b3480156107e657600080fd5b506103166107f5366004615151565b612684565b34801561080657600080fd5b506103166108153660046151bc565b6126bc565b34801561082657600080fd5b506103b86704db73254763000081565b34801561084257600080fd5b506103166108513660046151fa565b612778565b34801561086257600080fd5b5061032d610871366004614857565b612a61565b34801561088257600080fd5b50610316610891366004614857565b612cdb565b3480156108a257600080fd5b506103166108b1366004614c80565b612d35565b3480156108c257600080fd5b5061032d6108d1366004614857565b612d79565b3480156108e257600080fd5b506103b86108f1366004614a70565b612e57565b34801561090257600080fd5b5061032d612ef5565b34801561091757600080fd5b506102ee610926366004614c39565b612f04565b34801561093757600080fd5b50610316610946366004614a70565b612f3f565b600061095682612fd7565b92915050565b6704db73254763000034146109ab5760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103830bcb6b2b73a1760811b60448201526064015b60405180910390fd5b6109ec338484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612ffc92505050565b610a07610a016010546001600160a01b031690565b346130f6565b600060015b60115460ff82161015610a625760118160ff1681548110610a2f57610a2f61521c565b6000918252602090912060016007909202010154610a509060ff1683615248565b9150610a5b81615260565b9050610a0c565b508015610b2357600081610a758361316e565b610a7f9190615296565b905060015b60115460ff82161015610b205760118160ff1681548110610aa757610aa761521c565b600091825260209091206001600790920201015460ff16821015610ad757610ace816131b6565b50505050505050565b60118160ff1681548110610aed57610aed61521c565b6000918252602090912060016007909202010154610b0e9060ff16836152aa565b9150610b1981615260565b9050610a84565b50505b60405162461bcd60e51b8152602060048201526015602482015274105b1b0817dcde5cdd195b5cc81cdbdb19081bdd5d605a1b60448201526064016109a2565b606060068054610b72906152c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9e906152c1565b8015610beb5780601f10610bc057610100808354040283529160200191610beb565b820191906000526020600020905b815481529060010190602001808311610bce57829003601f168201915b5050505050905090565b6000818152600860205260408120546001600160a01b0316610c6e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a2565b506000908152600a60205260409020546001600160a01b031690565b6000610c9582611bf7565b9050806001600160a01b0316836001600160a01b03161415610d035760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a2565b336001600160a01b0382161480610d1f5750610d1f8133612f04565b610d915760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a2565b610d9b83836135a4565b505050565b6010546001600160a01b03163314610dca5760405162461bcd60e51b81526004016109a2906152f6565b600060015b60115460ff82161015610e48575b600260ff1660118260ff1681548110610df857610df861521c565b6000918252602090912060016007909202010154610e1a9060ff16608061532b565b60ff161015610e3657610e2c816131b6565b5060019150610ddd565b80610e4081615260565b915050610dcf565b5080610e965760405162461bcd60e51b815260206004820152601b60248201527f4f776e657220616c6c6f636174696f6e206578686175737465642e000000000060448201526064016109a2565b50565b6010546001600160a01b03163314610ec35760405162461bcd60e51b81526004016109a2906152f6565b604080516101206020601f8c01819004028201810190925261010081018a81526000928291908d908d908190850183828082843760009201829052509385525050608060208085018290526040808601949094526001600160a01b038c16606086015260ff8916918501919091528251898202818101830190945289815260a090940193928a925089918291908501908490808284376000920191909152505050908252506001600160a01b038a166020820152604001610f89368a90038a018a61534e565b90526011549091508210156111595760118281548110610fab57610fab61521c565b906000526020600020906007020160010160019054906101000a900460ff16156110075760405162461bcd60e51b815260206004820152600d60248201526c14de5cdd195b481b1bd8dad959609a1b60448201526064016109a2565b6011828154811061101a5761101a61521c565b60009182526020918290206001600790920201015460ff1690820152601180548291908490811061104d5761104d61521c565b9060005260206000209060070201600082015181600001908051906020019061107792919061453d565b5060208281015160018301805460408601516060870151608088015160ff908116600160b01b0260ff60b01b196001600160a01b0390931662010000029290921662010000600160b81b03199315156101000261ffff19909516919096161792909217169290921791909117905560a083015180516110fc92600285019201906145c1565b5060c08201516003820180546001600160a01b0319166001600160a01b0390921691909117905560e0909101518051600483015560208101516005830155604001516006909101805460ff191660ff909216919091179055611282565b601180546001810182556000919091528151805183926007027f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801916111a49183916020019061453d565b5060208281015160018301805460408601516060870151608088015160ff908116600160b01b0260ff60b01b196001600160a01b0390931662010000029290921662010000600160b81b03199315156101000261ffff19909516919096161792909217169290921791909117905560a0830151805161122992600285019201906145c1565b5060c08201516003820180546001600160a01b0319166001600160a01b0390921691909117905560e0909101518051600483015560208101516005830155604001516006909101805460ff191660ff9092169190911790555b50505050505050505050565b6010546001600160a01b031633146112b85760405162461bcd60e51b81526004016109a2906152f6565b600160118260ff16815481106112d0576112d061521c565b906000526020600020906007020160010160016101000a81548160ff02191690831515021790555050565b611306335b82613612565b6113225760405162461bcd60e51b81526004016109a2906153af565b610d9b8383836136e1565b600080600454612710846113419190615400565b61134b9190615414565b6005546001600160a01b03169590945092505050565b600061136c83611f2a565b82106113ce5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109a2565b506001600160a01b03919091166000908152600c60209081526040808320938352929052205490565b6040516351cff8d960e01b81526001600160a01b0382811660048301527f000000000000000000000000754b6f8efe5c36e03b5d4450e21046742d1d387616906351cff8d990602401600060405180830381600087803b15801561145a57600080fd5b505af115801561146e573d6000803e3d6000fd5b5050505050565b61149960405180606001604052806060815260200160608152602001606081525090565b6000828152601260205260409020546301000000900460ff16156115755760116114c28361388c565b60ff16815481106114d5576114d561521c565b60009182526020909120600360079092020101546001600160a01b0316634706d0446115008461389a565b6040516001600160e01b031960e084901b16815260ff909116600482015260240160006040518083038186803b15801561153957600080fd5b505afa15801561154d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610956919081019061548e565b600082815260126020908152604091829020825160029091018054608093810283018401909452606082018481529193909284929184918401828280156115db57602002820191906000526020600020905b8154815260200190600101908083116115c7575b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561163357602002820191906000526020600020905b81548152602001906001019080831161161f575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561168b57602002820191906000526020600020905b815481526020019060010190808311611677575b5050505050815250509050919050565b919050565b610d9b83838360405180602001604052806000815250612684565b61171a60408051610100810182526000808252602080830182905282840182905260608084018390526080840183905260a084019290925283518083018552828152908101829052928301529060c08201908152602001606081525090565b60008281526012602090815260409182902082516101008082018552825460ff8082168452918104821615158386015262010000810482161515838701526301000000810482161515606080850191909152640100000000909104909116608080840191909152600184015460a08401528551600285018054968702820183019097529182018581529295939460c087019492938492909184918401828280156117e357602002820191906000526020600020905b8154815260200190600101908083116117cf575b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561183b57602002820191906000526020600020905b815481526020019060010190808311611827575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561189357602002820191906000526020600020905b81548152602001906001019080831161187f575b50505050508152505081526020016005820180548060200260200160405190810160405280929190818152602001828054801561168b57602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116118de5790505050505050815250509050919050565b6000611935600e5490565b82106119985760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109a2565b600e82815481106119ab576119ab61521c565b90600052602060002001549050919050565b816119c733611300565b6119e35760405162461bcd60e51b81526004016109a290615542565b60116119ee8461388c565b60ff1681548110611a0157611a0161521c565b60009182526020909120600360079092020101546040516325bd331560e21b81526001600160a01b03909116906396f4cc5490611a429085906004016155ff565b60206040518083038186803b158015611a5a57600080fd5b505afa158015611a6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a929190615675565b611ade5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c69642070726f6a656374696f6e20706172616d657465727300000060448201526064016109a2565b60008381526012602052604090208290600201611afb8282615759565b505050600091825250601260205260409020805463ff00000019169055565b6001546000906001600160a01b03168015801590611bbc575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b158015611b7957600080fd5b505afa158015611b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb19190615815565b6001600160a01b0316145b949350505050565b6010546001600160a01b03163314611bee5760405162461bcd60e51b81526004016109a2906152f6565b610e9681600455565b6000818152600860205260408120546001600160a01b0316806109565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a2565b600354604080516001600160a01b0380861660208301529181018490529116606082015230608082015260009060a00160405160208183030381529060405280519060200120905092915050565b6010546001600160a01b03163314611ce65760405162461bcd60e51b81526004016109a2906152f6565b6013805460ff1916911515919091179055565b611d5660408051610100810182526060808252600060208084018290528385018290528284018290526080840182905260a0840183905260c08401829052845192830185528183528201819052928101929092529060e082015290565b60118260ff1681548110611d6c57611d6c61521c565b906000526020600020906007020160405180610100016040529081600082018054611d96906152c1565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc2906152c1565b8015611e0f5780601f10611de457610100808354040283529160200191611e0f565b820191906000526020600020905b815481529060010190602001808311611df257829003601f168201915b5050509183525050600182015460ff8082166020808501919091526101008304821615156040808601919091526001600160a01b03620100008504166060860152600160b01b909304909116608084015260028401805483518184028101840190945280845260a0909401939091830182828015611ed857602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411611e9b5790505b505050918352505060038201546001600160a01b0316602080830191909152604080516060810182526004850154815260058501549281019290925260069093015460ff168184015291015292915050565b60006001600160a01b038216611f955760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a2565b506001600160a01b031660009081526009602052604090205490565b6010546001600160a01b03163314611fdb5760405162461bcd60e51b81526004016109a2906152f6565b611fe560006138a8565b565b81611ff133611300565b61200d5760405162461bcd60e51b81526004016109a290615542565b50600091825260126020526040909120805460ff9092166401000000000264ff0000000019909216919091179055565b60606000601161204c8761388c565b60ff168154811061205f5761205f61521c565b6000918252602080832060016007909302018281015460038201548b86526012909352604094859020909301549351630b0179e160e31b81529094506001600160a01b036201000090930483169363cedaa54d93929092169163f1afd0a191600480880192859263580bcf08926120db92910190815260200190565b60006040518083038186803b1580156120f357600080fd5b505afa158015612107573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261212f9190810190615832565b8a6040518463ffffffff1660e01b815260040161214e939291906158b4565b60006040518083038186803b15801561216657600080fd5b505afa15801561217a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121a29190810190615952565b6040516322fd23c160e11b8152737094dbba1cceae581d59b53af7f184ec8202d4c5906345fa4782906121d9908a906004016159ef565b60006040518083038186803b1580156121f157600080fd5b505af4158015612205573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261222d9190810190615a39565b866040518463ffffffff1660e01b815260040161224c93929190615a6d565b60006040518083038186803b15801561226457600080fd5b505afa158015612278573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122a09190810190615ad8565b9695505050505050565b836122b433611300565b6122d05760405162461bcd60e51b81526004016109a290615542565b83156122f6576000858152601260205260409020805463ff000000191663010000001790555b821561231a576000858152601260205260409020805462ff00001916620100001790555b811561146e57601161232b8661388c565b60ff168154811061233e5761233e61521c565b60009182526020808320600792909202909101600101549682526012905260409020805464ff000000001916600160b01b90960460ff16640100000000029590951790945550505050565b6010546001600160a01b031633146123b35760405162461bcd60e51b81526004016109a2906152f6565b600580546001600160a01b0319166001600160a01b03831617905550565b606060078054610b72906152c1565b60008181526012602052604090205460609062010000900460ff16156124b157601161240b8361388c565b60ff168154811061241e5761241e61521c565b90600052602060002090600702016002018054806020026020016040519081016040528092919081815260200182805480156124a557602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116124685790505b50505050509050919050565b600082815260126020908152604091829020600501805483518184028101840190945280845290918301828280156124a5576000918252602091829020805463ffffffff168452908202830192909160049101808411612468575094979650505050505050565b6001600160a01b0382163314156125715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a2565b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000806125ea8585611c6e565b60008181526002602052604090205490915060ff1615801561263157506003546001600160a01b031661262684612620846138fa565b9061394d565b6001600160a01b0316145b9150505b9392505050565b6010546001600160a01b031633146126665760405162461bcd60e51b81526004016109a2906152f6565b600380546001600160a01b0319166001600160a01b03831617905550565b61268e3383613612565b6126aa5760405162461bcd60e51b81526004016109a2906153af565b6126b684848484613971565b50505050565b826126c633611300565b6126e25760405162461bcd60e51b81526004016109a290615542565b81158015906126f2575060408211155b61273e5760405162461bcd60e51b815260206004820181905260248201527f496e76616c696420616d6f756e74206f6620636f6c6f7220616e63686f72732e60448201526064016109a2565b600084815260126020526040902061275a90600501848461466b565b505050600091825250601260205260409020805462ff000019169055565b803561278333611300565b61279f5760405162461bcd60e51b81526004016109a290615542565b60208201356127ad33611300565b6127c95760405162461bcd60e51b81526004016109a290615542565b60408301356127d733611300565b6127f35760405162461bcd60e51b81526004016109a290615542565b606084013561280133611300565b61281d5760405162461bcd60e51b81526004016109a290615542565b60135460ff1661286f5760405162461bcd60e51b815260206004820152601960248201527f46756c6c736574206d696e742069732064697361626c65642e0000000000000060448201526064016109a2565b6040805160808101825260008082526020820181905291810182905260608101829052905b60048110156129bb57601260008883600481106128b3576128b361521c565b6020020135815260200190815260200160002060000160019054906101000a900460ff161561291a5760405162461bcd60e51b81526020600482015260136024820152722a37b5b2b71030b63932b0b23c903ab9b2b21760691b60448201526064016109a2565b600182600161293e8a85600481106129345761293461521c565b602002013561388c565b612948919061532b565b60ff166004811061295b5761295b61521c565b9115156020909202015260016012600089846004811061297d5761297d61521c565b6020020135815260200190815260200160002060000160016101000a81548160ff021916908315150217905550806129b490615b20565b9050612894565b50805180156129cb575060208101515b80156129d8575060408101515b80156129e5575060608101515b612a315760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e73206f6620656163682073797374656d207265717569726564000060448201526064016109a2565b6000612a3d60006131b6565b6000908152601260205260409020805461ff00191661010017905550505050505050565b606060006011612a708461388c565b60ff1681548110612a8357612a8361521c565b906000526020600020906007020190506000612a9e84612d79565b6003830154604080516303af1e7560e21b8152905185926001600160a01b031691630ebc79d4916004808301926000929190829003018186803b158015612ae457600080fd5b505afa158015612af8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b209190810190615ad8565b600087815260126020526040902060010154612b3b906139a4565b604051602001612b4e9493929190615b57565b60408051601f1981840301815291905260135490915060ff1615612c7c5780612c008360030160009054906101000a90046001600160a01b03166001600160a01b031663c1ce35ea6040518163ffffffff1660e01b815260040160206040518083038186803b158015612bc057600080fd5b505afa158015612bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bf89190615cf1565b60ff166139f8565b600086815260126020526040902054610100900460ff16612c3b57604051806040016040528060028152602001614e6f60f01b815250612c58565b6040518060400160405280600381526020016259657360e81b8152505b604051602001612c6a93929190615d0e565b60405160208183030381529060405290505b80612cb285612c8a87611475565b612c93886123e0565b600089815260126020526040902054640100000000900460ff1661203d565b604051602001612cc3929190615dc9565b60405160208183030381529060405292505050919050565b6010546001600160a01b03163314612d055760405162461bcd60e51b81526004016109a2906152f6565b600081815260126020526040902060010154612d209061316e565b60009182526012602052604090912060010155565b6010546001600160a01b03163314612d5f5760405162461bcd60e51b81526004016109a2906152f6565b6001805460ff60a01b1916600160a01b8315150217905550565b60606011612d868361388c565b60ff1681548110612d9957612d9961521c565b60009182526020822060036007909202010154604080516303af1e7560e21b815290516001600160a01b0390921692630ebc79d492600480840193829003018186803b158015612de857600080fd5b505afa158015612dfc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612e249190810190615ad8565b612e30612bf88461389a565b604051602001612e41929190615e31565b6040516020818303038152906040529050919050565b6040516371d4ed8d60e11b81526001600160a01b0382811660048301526000917f000000000000000000000000754b6f8efe5c36e03b5d4450e21046742d1d38769091169063e3a9db1a9060240160206040518083038186803b158015612ebd57600080fd5b505afa158015612ed1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109569190615e70565b606060008054610b72906152c1565b6001600160a01b038083166000908152600b6020908152604080832093851683529290529081205460ff168061263557506126358383611b1a565b6010546001600160a01b03163314612f695760405162461bcd60e51b81526004016109a2906152f6565b6001600160a01b038116612fce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a2565b610e96816138a8565b60006001600160e01b0319821663780e9d6360e01b1480610956575061095682613af5565b600154600160a01b900460ff1615610d9b57600061301a8484611c6e565b60008181526002602052604090205490915060ff16156130705760405162461bcd60e51b815260206004820152601160248201527014db1bdd08185b1c9958591e481d5cd959607a1b60448201526064016109a2565b6003546001600160a01b031661308983612620846138fa565b6001600160a01b0316146130d85760405162461bcd60e51b8152602060048201526016602482015275496e76616c696420736c6f74207369676e617475726560501b60448201526064016109a2565b6000908152600260205260409020805460ff19166001179055505050565b60405163f340fa0160e01b81526001600160a01b0383811660048301527f000000000000000000000000754b6f8efe5c36e03b5d4450e21046742d1d3876169063f340fa019083906024016000604051808303818588803b15801561315a57600080fd5b505af1158015610ace573d6000803e3d6000fd5b60408051426020808301919091523360601b6bffffffffffffffffffffffff191682840152605480830194909452825180830390940184526074909101909152815191012090565b60115460009060ff83161061320d5760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420696e206e6f6e2d6578697374656e742073797374656d2e0000000060448201526064016109a2565b600060118360ff16815481106132255761322561521c565b600091825260209091206001600790920201015460ff16116132895760405162461bcd60e51b815260206004820152601960248201527f53797374656d206361706163697479206578686175737465640000000000000060448201526064016109a2565b60118260ff168154811061329f5761329f61521c565b60009182526020909120600160079092020101546132c19060ff16608061532b565b60ff166103e88360ff166132d59190615414565b6132df9190615248565b90506040518061010001604052808360ff16815260200160001515815260200160011515815260200160011515815260200160118460ff16815481106133275761332761521c565b60009182526020918290206001600790920201015460ff600160b01b909104168252016133538361316e565b8152602001604051806060016040528060006001600160401b0381111561337c5761337c614d8e565b6040519080825280602002602001820160405280156133a5578160200160208202803683370190505b50815260200160006040519080825280602002602001820160405280156133d6578160200160208202803683370190505b5081526020016000604051908082528060200260200182016040528015613407578160200160208202803683370190505b5090528152602001600060405190808252806020026020018201604052801561343a578160200160208202803683370190505b5090526000828152601260209081526040918290208351815485840151948601516060870151608088015160ff94851661ffff1990941693909317610100971515979097029690961763ffff00001916620100009115159190910263ff0000001916176301000000951515959095029490941764ff000000001916640100000000919094160292909217825560a0830151600183015560c083015180518051919260028501926134ed92849201906146de565b50602082810151805161350692600185019201906146de565b50604082015180516135229160028401916020909101906146de565b50505060e082015180516135409160058401916020909101906145c1565b5090505060118260ff168154811061355a5761355a61521c565b600091825260208220600160079092020101805460ff169161357b83615e89565b91906101000a81548160ff021916908360ff1602179055505061169b61359e3390565b82613b35565b6000818152600a6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906135d982611bf7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600860205260408120546001600160a01b031661368b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a2565b600061369683611bf7565b9050806001600160a01b0316846001600160a01b031614806136d15750836001600160a01b03166136c684610bf5565b6001600160a01b0316145b80611bbc5750611bbc8185612f04565b826001600160a01b03166136f482611bf7565b6001600160a01b03161461375c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109a2565b6001600160a01b0382166137be5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a2565b6137c9838383613b53565b6137d46000826135a4565b6001600160a01b03831660009081526009602052604081208054600192906137fd9084906152aa565b90915550506001600160a01b038216600090815260096020526040812080546001929061382b908490615248565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006109566103e883615400565b60006109566103e883615296565b601080546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600080600061395c8585613c0b565b9150915061396981613c7b565b509392505050565b61397c8484846136e1565b61398884848484613e36565b6126b65760405162461bcd60e51b81526004016109a290615ea6565b6060816139cb5750506040805180820190915260048152630307830360e41b602082015290565b8160005b81156139ee57806139df81615b20565b915050600882901c91506139cf565b611bbc8482613f40565b606081613a1c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a465780613a3081615b20565b9150613a3f9050600a83615400565b9150613a20565b6000816001600160401b03811115613a6057613a60614d8e565b6040519080825280601f01601f191660200182016040528015613a8a576020820181803683370190505b5090505b8415611bbc57613a9f6001836152aa565b9150613aac600a86615296565b613ab7906030615248565b60f81b818381518110613acc57613acc61521c565b60200101906001600160f81b031916908160001a905350613aee600a86615400565b9450613a8e565b60006001600160e01b031982166380ac58cd60e01b1480613b2657506001600160e01b03198216635b5e139f60e01b145b806109565750610956826140db565b613b4f828260405180602001604052806000815250614110565b5050565b6001600160a01b038316613bae57613ba981600e80546000838152600f60205260408120829055600182018355919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0155565b613bd1565b816001600160a01b0316836001600160a01b031614613bd157613bd18382614143565b6001600160a01b038216613be857610d9b816141e0565b826001600160a01b0316826001600160a01b031614610d9b57610d9b828261428f565b600080825160411415613c425760208301516040840151606085015160001a613c36878285856142d3565b94509450505050613c74565b825160401415613c6c5760208301516040840151613c618683836143c0565b935093505050613c74565b506000905060025b9250929050565b6000816004811115613c8f57613c8f615ef8565b1415613c985750565b6001816004811115613cac57613cac615ef8565b1415613cfa5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109a2565b6002816004811115613d0e57613d0e615ef8565b1415613d5c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109a2565b6003816004811115613d7057613d70615ef8565b1415613dc95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109a2565b6004816004811115613ddd57613ddd615ef8565b1415610e965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109a2565b60006001600160a01b0384163b15613f3857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e7a903390899088908890600401615f0e565b602060405180830381600087803b158015613e9457600080fd5b505af1925050508015613ec4575060408051601f3d908101601f19168201909252613ec191810190615f41565b60015b613f1e573d808015613ef2576040519150601f19603f3d011682016040523d82523d6000602084013e613ef7565b606091505b508051613f165760405162461bcd60e51b81526004016109a290615ea6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bbc565b506001611bbc565b60606000613f4f836002615414565b613f5a906002615248565b6001600160401b03811115613f7157613f71614d8e565b6040519080825280601f01601f191660200182016040528015613f9b576020820181803683370190505b509050600360fc1b81600081518110613fb657613fb661521c565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613fe557613fe561521c565b60200101906001600160f81b031916908160001a9053506000614009846002615414565b614014906001615248565b90505b600181111561408c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106140485761404861521c565b1a60f81b82828151811061405e5761405e61521c565b60200101906001600160f81b031916908160001a90535060049490941c9361408581615f5e565b9050614017565b5083156126355760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109a2565b60006001600160e01b0319821663152a902d60e11b148061095657506301ffc9a760e01b6001600160e01b0319831614610956565b61411a83836143ef565b6141276000848484613e36565b610d9b5760405162461bcd60e51b81526004016109a290615ea6565b6000600161415084611f2a565b61415a91906152aa565b6000838152600d60205260409020549091508082146141ad576001600160a01b0384166000908152600c602090815260408083208584528252808320548484528184208190558352600d90915290208190555b506000918252600d602090815260408084208490556001600160a01b039094168352600c81528383209183525290812055565b600e546000906141f2906001906152aa565b6000838152600f6020526040812054600e805493945090928490811061421a5761421a61521c565b9060005260206000200154905080600e838154811061423b5761423b61521c565b6000918252602080832090910192909255828152600f9091526040808220849055858252812055600e80548061427357614273615f75565b6001900381819060005260206000200160009055905550505050565b600061429a83611f2a565b6001600160a01b039093166000908152600c602090815260408083208684528252808320859055938252600d9052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561430a57506000905060036143b7565b8460ff16601b1415801561432257508460ff16601c14155b1561433357506000905060046143b7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614387573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143b0576000600192509250506143b7565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016143e1878288856142d3565b935093505050935093915050565b6001600160a01b0382166144455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a2565b6000818152600860205260409020546001600160a01b0316156144aa5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a2565b6144b660008383613b53565b6001600160a01b03821660009081526009602052604081208054600192906144df908490615248565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054614549906152c1565b90600052602060002090601f01602090048101928261456b57600085556145b1565b82601f1061458457805160ff19168380011785556145b1565b828001600101855582156145b1579182015b828111156145b1578251825591602001919060010190614596565b506145bd929150614718565b5090565b828054828255906000526020600020906007016008900481019282156145b15791602002820160005b8382111561462e57835183826101000a81548163ffffffff021916908363ffffffff16021790555092602001926004016020816003010492830192600103026145ea565b801561465e5782816101000a81549063ffffffff021916905560040160208160030104928301926001030261462e565b50506145bd929150614718565b828054828255906000526020600020906007016008900481019282156145b15791602002820160005b8382111561462e57833563ffffffff1683826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302614694565b8280548282559060005260206000209081019282156145b157916020028201828111156145b1578251825591602001919060010190614596565b5b808211156145bd5760008155600101614719565b6001600160e01b031981168114610e9657600080fd5b60006020828403121561475557600080fd5b81356126358161472d565b60008083601f84011261477257600080fd5b5081356001600160401b0381111561478957600080fd5b602083019150836020828501011115613c7457600080fd5b6000806000604084860312156147b657600080fd5b8335925060208401356001600160401b038111156147d357600080fd5b6147df86828701614760565b9497909650939450505050565b60005b838110156148075781810151838201526020016147ef565b838111156126b65750506000910152565b600081518084526148308160208601602086016147ec565b601f01601f19169290920160200192915050565b6020815260006126356020830184614818565b60006020828403121561486957600080fd5b5035919050565b6001600160a01b0381168114610e9657600080fd5b6000806040838503121561489857600080fd5b82356148a381614870565b946020939093013593505050565b6000606082840312156148c357600080fd5b50919050565b60008083601f8401126148db57600080fd5b5081356001600160401b038111156148f257600080fd5b6020830191508360208260051b8501011115613c7457600080fd5b60ff81168114610e9657600080fd5b803561169b8161490d565b60008060008060008060008060006101208a8c03121561494657600080fd5b89356001600160401b038082111561495d57600080fd5b6149698d838e01614760565b909b50995060208c0135915061497e82614870565b81985061498e8d60408e016148b1565b975060a08c013591506149a082614870565b90955060c08b013590808211156149b657600080fd5b506149c38c828d016148c9565b90955093505060e08a01356149d78161490d565b809250506101008a013590509295985092959850929598565b600060208284031215614a0257600080fd5b81356126358161490d565b600080600060608486031215614a2257600080fd5b8335614a2d81614870565b92506020840135614a3d81614870565b929592945050506040919091013590565b60008060408385031215614a6157600080fd5b50508035926020909101359150565b600060208284031215614a8257600080fd5b813561263581614870565b600081518084526020808501945080840160005b83811015614abd57815187529582019590820190600101614aa1565b509495945050505050565b6000815160608452614add6060850182614a8d565b905060208301518482036020860152614af68282614a8d565b91505060408301518482036040860152614b108282614a8d565b95945050505050565b6020815260006126356020830184614ac8565b600081518084526020808501945080840160005b83811015614abd57815163ffffffff1687529582019590820190600101614b40565b6020815260ff825116602082015260006020830151614b85604084018215159052565b5060408301518015156060840152506060830151801515608084015250608083015160ff811660a08401525060a083015160c083015260c08301516101008060e0850152614bd7610120850183614ac8565b915060e0850151601f1985840301828601526122a08382614b2c565b60008060408385031215614c0657600080fd5b8235915060208301356001600160401b03811115614c2357600080fd5b614c2f858286016148b1565b9150509250929050565b60008060408385031215614c4c57600080fd5b8235614c5781614870565b91506020830135614c6781614870565b809150509250929050565b8015158114610e9657600080fd5b600060208284031215614c9257600080fd5b813561263581614c72565b60208152600082516101406020840152614cbb610160840182614818565b905060ff60208501511660408401526040840151614cdd606085018215159052565b5060608401516001600160a01b038116608085015250608084015160ff811660a08501525060a0840151838203601f190160c0850152614d1d8282614b2c565b91505060c0840151614d3a60e08501826001600160a01b03169052565b5060e084015180516101008501526020810151610120850152604081015160ff16610140850152509392505050565b60008060408385031215614d7c57600080fd5b823591506020830135614c678161490d565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715614dc657614dc6614d8e565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614df457614df4614d8e565b604052919050565b60006001600160401b03821115614e1557614e15614d8e565b5060051b60200190565b600082601f830112614e3057600080fd5b81356020614e45614e4083614dfc565b614dcc565b82815260059290921b84018101918181019086841115614e6457600080fd5b8286015b84811015614e7f5780358352918301918301614e68565b509695505050505050565b600082601f830112614e9b57600080fd5b81356020614eab614e4083614dfc565b82815260059290921b84018101918181019086841115614eca57600080fd5b8286015b84811015614e7f57803563ffffffff81168114614eeb5760008081fd5b8352918301918301614ece565b60008060008060808587031215614f0e57600080fd5b8435935060208501356001600160401b0380821115614f2c57600080fd5b9086019060608289031215614f4057600080fd5b614f48614da4565b823582811115614f5757600080fd5b614f638a828601614e1f565b825250602083013582811115614f7857600080fd5b614f848a828601614e1f565b602083015250604083013582811115614f9c57600080fd5b614fa88a828601614e1f565b604083015250809550506040870135915080821115614fc657600080fd5b50614fd387828801614e8a565b925050614fe26060860161491c565b905092959194509250565b6000806000806080858703121561500357600080fd5b84359350602085013561501581614c72565b9250604085013561502581614c72565b9150606085013561503581614c72565b939692955090935050565b6020815260006126356020830184614b2c565b6000806040838503121561506657600080fd5b823561507181614870565b91506020830135614c6781614c72565b60006001600160401b0382111561509a5761509a614d8e565b50601f01601f191660200190565b600082601f8301126150b957600080fd5b81356150c7614e4082615081565b8181528460208386010111156150dc57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561510e57600080fd5b833561511981614870565b92506020840135915060408401356001600160401b0381111561513b57600080fd5b615147868287016150a8565b9150509250925092565b6000806000806080858703121561516757600080fd5b843561517281614870565b9350602085013561518281614870565b92506040850135915060608501356001600160401b038111156151a457600080fd5b6151b0878288016150a8565b91505092959194509250565b6000806000604084860312156151d157600080fd5b8335925060208401356001600160401b038111156151ee57600080fd5b6147df868287016148c9565b60006080828403121561520c57600080fd5b826080830111156148c357600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561525b5761525b615232565b500190565b600060ff821660ff81141561527757615277615232565b60010192915050565b634e487b7160e01b600052601260045260246000fd5b6000826152a5576152a5615280565b500690565b6000828210156152bc576152bc615232565b500390565b600181811c908216806152d557607f821691505b602082108114156148c357634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060ff821660ff84168082101561534557615345615232565b90039392505050565b60006060828403121561536057600080fd5b604051606081018181106001600160401b038211171561538257615382614d8e565b8060405250823581526020830135602082015260408301356153a38161490d565b60408201529392505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008261540f5761540f615280565b500490565b600081600019048311821515161561542e5761542e615232565b500290565b600082601f83011261544457600080fd5b81516020615454614e4083614dfc565b82815260059290921b8401810191818101908684111561547357600080fd5b8286015b84811015614e7f5780518352918301918301615477565b6000602082840312156154a057600080fd5b81516001600160401b03808211156154b757600080fd5b90830190606082860312156154cb57600080fd5b6154d3614da4565b8251828111156154e257600080fd5b6154ee87828601615433565b82525060208301518281111561550357600080fd5b61550f87828601615433565b60208301525060408301518281111561552757600080fd5b61553387828601615433565b60408301525095945050505050565b60208082526029908201527f4e656974686572206f776e6572206e6f7220617070726f76656420666f7220746040820152683434b9903a37b5b2b760b91b606082015260800190565b6000808335601e198436030181126155a257600080fd5b83016020810192503590506001600160401b038111156155c157600080fd5b8060051b3603831315613c7457600080fd5b8183526000602080850194508260005b85811015614abd578135875295820195908201906001016155e3565b60208152600061560f838461558b565b606060208501526156246080850182846155d3565b915050615634602085018561558b565b601f198086850301604087015261564c8483856155d3565b935061565b604088018861558b565b9350915080868503016060870152506122a08383836155d3565b60006020828403121561568757600080fd5b815161263581614c72565b6000808335601e198436030181126156a957600080fd5b8301803591506001600160401b038211156156c357600080fd5b6020019150600581901b3603821315613c7457600080fd5b600160401b8311156156ef576156ef614d8e565b805483825580841015615726576000828152602081208581019083015b808210156157225782825560018201915061570c565b5050505b5060008181526020812083915b85811015615751578235825560209092019160019182019101615733565b505050505050565b6157638283615692565b600160401b81111561577757615777614d8e565b8254818455808210156157ae576000848152602081208381019083015b808210156157aa57828255600182019150615794565b5050505b5060008381526020902060005b828110156157d95783358255602090930192600191820191016157bb565b505050506157ea6020830183615692565b6157f88183600186016156db565b50506158076040830183615692565b6126b68183600286016156db565b60006020828403121561582757600080fd5b815161263581614870565b60006020828403121561584457600080fd5b81516001600160401b038082111561585b57600080fd5b908301906020828603121561586f57600080fd5b60405160208101818110838211171561588a5761588a614d8e565b60405282518281111561589c57600080fd5b6158a887828601615433565b82525095945050505050565b835481526001840154602082015260ff600285015416604082015260a0606082015260008351602060a08401526158ee60c0840182614a8d565b905082810360808401526122a08185614ac8565b6000615910614e4084615081565b905082815283838301111561592457600080fd5b6126358360208301846147ec565b600082601f83011261594357600080fd5b61263583835160208501615902565b60006020828403121561596457600080fd5b81516001600160401b038082111561597b57600080fd5b908301906060828603121561598f57600080fd5b615997614da4565b8251828111156159a657600080fd5b6159b287828601615932565b8252506020830151828111156159c757600080fd5b6159d387828601615932565b6020830152506040830151604082015280935050505092915050565b6020808252825182820181905260009190848201906040850190845b81811015615a2d57835163ffffffff1683529284019291840191600101615a0b565b50909695505050505050565b600060208284031215615a4b57600080fd5b81516001600160401b03811115615a6157600080fd5b611bbc84828501615932565b6060815260008451606080840152615a8860c0840182614818565b90506020860151605f19848303016080850152615aa58282614818565b915050604086015160a08401528281036020840152615ac48186614818565b91505060ff83166040830152949350505050565b600060208284031215615aea57600080fd5b81516001600160401b03811115615b0057600080fd5b8201601f81018413615b1157600080fd5b611bbc84825160208401615902565b6000600019821415615b3457615b34615232565b5060010190565b60008151615b4d8185602086016147ec565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e2c7b226e616d65223a22008152600085516020615b9082601f8601838b016147ec565b61088b60f21b601f928501928301526e113232b9b1b934b83a34b7b7111d1160891b60218301528654603090600090600181811c9080831680615bd457607f831692505b868310811415615bf257634e487b7160e01b85526022600452602485fd5b808015615c065760018114615c1b57615c4c565b60ff1985168988015283890187019550615c4c565b60008e81526020902060005b85811015615c425781548b82018a0152908401908901615c27565b505086848a010195505b50507f222c2261747472696275746573223a5b7b2274726169745f74797065223a2022845250507029bcb9ba32b69116113b30b63ab2911d1160791b602083015250615ce3615cdd615ca1603184018b615b3b565b7f227d2c7b2274726169745f74797065223a202252616e646f6d2053656564222c81526910113b30b63ab2911d1160b11b6020820152602a0190565b88615b3b565b9a9950505050505050505050565b600060208284031215615d0357600080fd5b81516126358161490d565b60008451615d208184602089016147ec565b80830190507f227d2c7b2274726169745f74797065223a202244696d656e73696f6e73222c20815268113b30b63ab2911d1160b91b60208201528451615d6d8160298401602089016147ec565b7f227d2c7b2274726169745f74797065223a2022436f6d706c65746564222c202260299290910191820152673b30b63ab2911d1160c11b60498201528351615dbc8160518401602088016147ec565b0160510195945050505050565b60008351615ddb8184602088016147ec565b80830190507f227d5d2c22696d616765223a22646174613a696d6167652f7376672b786d6c2c81528351615e168160208401602088016147ec565b61227d60f01b60209290910191820152602201949350505050565b60008351615e438184602088016147ec565b632025323360e01b9083019081528351615e648160048401602088016147ec565b01600401949350505050565b600060208284031215615e8257600080fd5b5051919050565b600060ff821680615e9c57615e9c615232565b6000190192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122a090830184614818565b600060208284031215615f5357600080fd5b81516126358161472d565b600081615f6d57615f6d615232565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220304d2c7875c3513b787f951f8beb3f979bf0bace9f0c55c81b9e36575d6e0b5664736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d4c4fd6bbe3bddcd2ce4d9c53dd38d4641fd1a9f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000012537472616e676520417474726163746f7273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025341000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Strange Attractors
Arg [1] : symbol (string): SA
Arg [2] : slotSigner (address): 0xd4c4Fd6bbe3BddcD2ce4D9C53Dd38D4641fD1A9f
Arg [3] : openSeaProxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000d4c4fd6bbe3bddcd2ce4d9c53dd38d4641fd1a9f
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 537472616e676520417474726163746f72730000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 5341000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Strange Attractors is an interactive, generative NFT project that simulates multi-dimensional, chaotic systems using nothing but an ethereum smart contract.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.