ETH Price: $3,556.18 (+6.89%)

Token

Terraforms (TERRAFORMS)
 

Overview

Max Total Supply

9,911 TERRAFORMS

Holders

2,002

Market

Volume (24H)

1.2057 ETH

Min Price (24H)

$1,798.36 @ 0.505700 ETH

Max Price (24H)

$2,489.32 @ 0.700000 ETH
Balance
2 TERRAFORMS
0x7f174fafb04f4bc8972519026a4446c6ff7cb2d8
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Onchain land art from a dynamically generated, onchain 3D world.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Terraforms

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 18 : Terraforms.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/*                                 TERRAFORMS

            . . # # - _ _ > _ _ - - # # # # . + + ^ + . . # - _ } ~ 
            . . # - - _ > } } _ _ _ - - - - # . + + + + . # - _ ~ ~ 
            # # # - _ _ } ~ ~ ~ } > _ _ _ - # . + ^ ^ + . # - _ } ~ 
            # - - - _ > } ~ ~ ~ ~ ~ ~ ~ } _ - . + ^ ^ ^ + . # - > ~ 
            - - _ _ _ > ~ ~ ~ ~ ~ ~ ~ ~ ~ _ - . + ^ ^ ^ ^ + . - _ } 
            _ _ _ _ _ > } ~ ~ ~ ~ ~ ~ ~ ~ _ # . ^ ^ ^ ^ ^ + . # - _ 
            _ > > _ _ _ _ } ~ ~ ~ ~ ~ ~ > - # + ^ ^ ^ ^ ^ + . # - - 
            _ > _ _ - - - _ } ~ ~ ~ } _ _ # . ^ ^ ^ ^ ^ ^ + . # # - 
            _ _ _ - - # # - _ _ > > _ - # . ^ ^ ^ ^ ^ ^ + . # # # # 
            _ _ - # # . # # - - _ _ - # . + ^ ^ ^ ^ ^ + . # # - - # 
            - - # # . . . . # - - - # . . ^ ^ ^ ^ ^ ^ . # - - - - # 
            # # # . + ^ + + . # # # . . + ^ ^ ^ ^ ^ + . # - _ _ - - 
            # # . + ^ ^ ^ ^ + . . . . + ^ ^ ^ ^ ^ ^ . # - - _ _ - # 
            # . . ^ ^ ^ ^ ^ ^ ^ + + + ^ ^ ^ ^ ^ ^ + . # - - - - - # 
            - . . ^ ^ ^ ^ ^ ^ ^ ^ + + ^ ^ ^ ^ + + . # # # - - # # # 
            - # . + ^ ^ ^ ^ ^ ^ ^ ^ + + + + . . # # # # # # # . . . 
            _ - # . + ^ ^ ^ ^ ^ ^ ^ + . . # # - - - # # . . . + + + 
            > - # . + ^ ^ ^ ^ ^ ^ + . . # - _ _ _ _ - # . . + ^ ^ + 
            } _ - # . + ^ ^ ^ ^ ^ + . # - _ > } } _ - # . . + ^ ^ + 
            } _ - # . + ^ ^ ^ ^ ^ + . # - _ } ~ ~ } _ - # . + + ^ + 
            } _ - # . + ^ ^ ^ ^ ^ + . # - _ } ~ ~ ~ } _ - # . + + + 
            > _ - # . + ^ ^ ^ ^ ^ + . # - _ } ~ ~ ~ ~ _ - - # . + + 
            _ _ - # . + ^ ^ ^ ^ ^ + . . # - > ~ ~ ~ ~ > _ - # . + + 
            - - - # # . + ^ ^ ^ ^ ^ + . # - _ } ~ ~ } _ - - # . + ^ 
            - - # # # . . + ^ ^ ^ ^ ^ + . # - _ > } _ _ - # . + ^ ^ 
            # # # # # # # . + ^ ^ ^ ^ ^ + . # - _ _ _ - # . . + ^ ^ 
            . . # # - - - # . + + ^ ^ ^ + . # # - - - # # . + ^ ^ ^ 
            + . # # - - - - # . . + + + + . . # - - - # . + + ^ ^ ^ 
*/

import "./ITerraformsData.sol";
import "./TerraformsPlacements.sol";

/// @title  Land parcels in an onchain 3D megastructure
/// @author xaltgeist, with code direction and consultation from 0x113d
contract Terraforms is TerraformsPlacements {
    
    /// @notice Tokens are pieces of an onchain 3D megastructure. Represents a
    ///         level of the structure
    struct StructureLevel {
        uint levelNumber;
        uint tokensOnLevel;
        int structureSpaceX;
        int structureSpaceY;
        int structureSpaceZ;  
    }

    /// @notice Supplemental token data, including spatial information
    struct TokenData {
        uint tokenId;
        uint level;
        uint xCoordinate;
        uint yCoordinate;
        int elevation;
        int structureSpaceX;
        int structureSpaceY;
        int structureSpaceZ;
        string zoneName;
        string[10] zoneColors;
        string[9] characterSet;
    }

    /// @notice Address of contract managing augmentations
    address public immutable terraformsAugmentationsAddress;

    /// @notice This constant is the length of a token in 3D space
    int public constant TOKEN_SCALE = 6619 * 32;

    /// @notice An append-only list of optional (opt-in) tokenURI upgrades
    address[] public tokenURIAddresses;

    // The array index of the tokenURIAddress for each token
    mapping(uint => uint) tokenToURIAddressIndex;

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     * CONSTRUCTOR, FALLBACKS
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    constructor(
        address _terraformsDataAddress, 
        address _terraformsAugmentationsAddress
    ) 
        ERC721("Terraforms", "TERRAFORMS")
        Ownable()
    {
        tokenURIAddresses.push(_terraformsDataAddress);
        terraformsAugmentationsAddress = _terraformsAugmentationsAddress;
    }
 
    receive() external payable {}
    fallback() external payable {}
    
    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     * FUNCTION MODIFIERS
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    modifier publicMint (uint numTokens) {
        require(numTokens <= 10, "Max 10");
        require(
            tokenCounter <= (SUPPLY - numTokens) &&
            msg.value >= numTokens * PRICE
        );
        _;
    }

    modifier postReveal (uint tokenId) {
        require(seed != 0 && _exists(tokenId));
        _;
    }

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     * PUBLIC: MINTING
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    /// @notice Mint tokens
    /// @param numTokens The amount of tokens
    function mint(uint numTokens) 
        public 
        payable 
        nonReentrant 
        publicMint(numTokens)
    {
        require(!mintingPaused, "Paused");
        _mintTokens(msg.sender, numTokens);
    }

    /// @notice Mints tokens if you hold Loot or a mintpass
    /// @dev Queries the Loot contract to check if minter is a holder
    /// @param numTokens The amount of tokens
    function earlyMint(uint numTokens) 
        public 
        payable 
        nonReentrant 
        publicMint(numTokens)
    {
        require(earlyMintActive, "Inactive");
        require(
            balanceOf(msg.sender) <= 100 && // Early wallet limit of 100
            (
                IERC721(
                    0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7
                ).balanceOf(msg.sender) > 0 || // Check if sender has Loot
                addressToMintpass[msg.sender] != Mintpass.None // Or a mintpass
            )
        );
        _mintTokens(msg.sender, numTokens);
    }

    /// @notice Redeems a mintpass for a dreaming token
    function redeemMintpass() public nonReentrant {
        require(addressToMintpass[msg.sender] == Mintpass.Unused);
        addressToMintpass[msg.sender] = Mintpass.Used;
        _mintTokens(msg.sender, 1);
        dreamers += 1;
        tokenToDreamBlock[tokenCounter] = block.number;
        tokenToStatus[tokenCounter] = Status.OriginDaydream;
        emit Daydreaming(tokenCounter);
    }

    /// @notice Allows owners to claim an allotment of tokens
    /// @param to The recipient address
    /// @param numTokens The amount of tokens
    function ownerClaim(address to, uint numTokens) public onlyOwner {
        require(
            tokenCounter >= SUPPLY && 
            tokenCounter <= (MAX_SUPPLY - numTokens)
        );
        _mintTokens(to, numTokens);
    }

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     * PUBLIC: TOKEN DATA
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    /// @notice Returns the token URI
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @dev Token owners can specify which tokenURI address to use
    ///      on a per-token basis using setTokenURIAddress
    /// @return result A base64 encoded JSON string
    function tokenURI(uint256 tokenId) 
        public 
        view
        override
        returns (string memory result) 
    {
        if (seed == 0){ // If tokens aren't revealed yet, return a placeholder
            result = ITerraformsData(tokenURIAddresses[0]).prerevealURI(tokenId);
        } else { // Otherwise, call the token's specified tokenURI address
            result = ITerraformsData(
                tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
            ).tokenURI(
                tokenId,
                uint(tokenToStatus[tokenId]),
                tokenToPlacement[tokenId],
                seed,
                _yearsOfDecay(block.timestamp),
                tokenToCanvasData[tokenId]
            );
        }
    }

    /// @notice Returns HTML containing the token SVG
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @return result A plaintext HTML string with a plaintext token SVG
    function tokenHTML(uint tokenId) 
        public 
        view
        postReveal(tokenId)
        returns (string memory result)
    {
        result = ITerraformsData( // Call the token's specified tokenURI address
            tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
        ).tokenHTML(
            uint(tokenToStatus[tokenId]),
            tokenToPlacement[tokenId],
            seed,
            _yearsOfDecay(block.timestamp),
            tokenToCanvasData[tokenId]
        );
    }

    /// @notice Returns an SVG of the token
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @return A plaintext SVG
    function tokenSVG(uint tokenId) 
        public 
        view 
        postReveal(tokenId)
        returns (string memory) 
    {
        return ITerraformsData( // Call the token's specified tokenURI address
            tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
        ).tokenSVG(
            uint(tokenToStatus[tokenId]),
            tokenToPlacement[tokenId],
            seed,
            _yearsOfDecay(block.timestamp),
            tokenToCanvasData[tokenId]
        );
    }

    /// @notice Returns the characters composing the token image
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @return A 2D array of strings
    function tokenCharacters(uint tokenId) 
        public 
        view
        postReveal(tokenId)
        returns (string[32][32] memory) 
    {
        return ITerraformsData( // Call the token's specified tokenURI address
            tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
        ).tokenCharacters(
            uint(tokenToStatus[tokenId]),
            tokenToPlacement[tokenId],
            seed,
            _yearsOfDecay(block.timestamp),
            tokenToCanvasData[tokenId]
        );
    }

    /// @notice Returns the integer values that determine the token's topography
    /// @dev Values are 16-bit signed ints (i.e., +/- 65536)
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @return A 2D array of signed integers
    function tokenTerrainValues(uint tokenId) 
        public 
        view
        postReveal(tokenId)
        returns (int[32][32] memory) 
    {
        return ITerraformsData( // Call the token's specified tokenURI address
            tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
        ).tokenTerrain(
            tokenToPlacement[tokenId], 
            seed, 
            _yearsOfDecay(block.timestamp)
        );
    }

    /// @notice Returns the stepwise height values visually represented on token
    /// @dev Values range from 0 (highest) to 8 (lowest). 9 indicates empty 
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @return A 2D array of unsigned integers
    function tokenHeightmapIndices(uint tokenId)
        public 
        view
        postReveal(tokenId)
        returns (uint[32][32] memory)
    {
        return ITerraformsData( // Call the token's specified tokenURI address
            tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
        ).tokenHeightmapIndices(
            uint(tokenToStatus[tokenId]),
            tokenToPlacement[tokenId], 
            seed, 
            _yearsOfDecay(block.timestamp),
            tokenToCanvasData[tokenId]
        );
    }

    /// @notice Spatial information about the token structure at a given time
    /// @dev Spatial values used to generate visuals are offset by
    ///      (seed * TOKEN_SCALE). Return values remove that offset
    /// @param timestamp The point in time to visualize the structure
    /// @return structure An array of StructureLevel structs
    function structureData(uint timestamp) 
        public 
        view 
        returns (StructureLevel[20] memory structure)
    {
        ITerraformsData terraformsData = ITerraformsData(tokenURIAddresses[0]);
        uint decay = _yearsOfDecay(timestamp);

        // Structure is offset into 3D space by the seed * the size of a tile
        // That offset is removed for ease of use
        int xyzNormalization = int(seed) * TOKEN_SCALE;
        
        // Temporary variables for loop
        int x;
        int y;
        int z;
        
        for (uint i; i < 20; i++){ 
            // Get XYZ origin for 0,0 tile on each level
            (x, y, z) = terraformsData.tileOrigin(i, 0, seed, decay, timestamp);
            
            // Add level to result array
            structure[i] = StructureLevel(
                i + 1, // Adjust level from zero-index
                terraformsData.levelDimensions(i) ** 2, // n Tokens == edge^2
                x - xyzNormalization,
                y - xyzNormalization,
                z - xyzNormalization                
            );
        }

        return structure;
    }

    /// @notice Data re: a token's visual composition and location on structure
    /// @dev Spatial values used to generate visuals are offset by
    ///      (seed * TOKEN_SCALE). Return values remove that offset
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @return result A TokenData struct
    function tokenSupplementalData(uint tokenId) 
        public 
        view
        postReveal(tokenId)
        returns (TokenData memory result) 
    {
        ITerraformsData terraformsData = ITerraformsData(
            tokenURIAddresses[tokenToURIAddressIndex[tokenId]]
        );

        // Structure is offset into 3D space by the seed * the size of a tile
        // That offset is removed for ease of use
        int xyzNormalization = int(seed) * TOKEN_SCALE;   

        (uint level, uint tile) = terraformsData.levelAndTile(
            tokenToPlacement[tokenId], 
            seed
        );
        uint dimensions = terraformsData.levelDimensions(level);
        
        result.elevation = terraformsData.tokenElevation(level, tile, seed);
        (
            result.structureSpaceX, 
            result.structureSpaceY, 
            result.structureSpaceZ
        ) = terraformsData.tileOrigin(
            level, 
            tile, 
            seed, 
            _yearsOfDecay(block.timestamp),
            block.timestamp
        );

        (result.zoneColors, result.zoneName) = terraformsData.tokenZone(
            tokenToPlacement[tokenId], 
            seed
        );

        (result.characterSet, , , ) = terraformsData.characterSet(
            tokenToPlacement[tokenId], seed
        );

        result.level = level + 1; // Adjust from zero-index
        result.xCoordinate = tile % dimensions;
        result.yCoordinate = tile / dimensions;
        result.structureSpaceX -= xyzNormalization;
        result.structureSpaceY -= xyzNormalization;
        result.structureSpaceZ -= xyzNormalization;
        return result;
        
    }

    /// @notice Token owner can set tokenURI address for an array of tokens
    /// @param tokens The tokens to set to the new URI address
    /// @param index The index of the new tokenURIAddress in tokenURIAddresses
    function setTokenURIAddress(uint[] memory tokens, uint index) public {
        require(index < tokenURIAddresses.length);

        for(uint i; i < tokens.length; i++){
            require(msg.sender == ownerOf(tokens[i]));
            tokenToURIAddressIndex[tokens[i]] = index;
        }
    }

    /// @notice Owner can add new opt-in tokenURI address
    /// @param newAddress The new tokenURI address
    function addTokenURIAddress(address newAddress) public onlyOwner {
        tokenURIAddresses.push(newAddress);
    }

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     * INTERNAL: MINTING
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    /// @notice Internal function for minting tokens
    /// @param to The recipient address
    /// @param numTokens The amount of tokens
    function _mintTokens(address to, uint numTokens) internal {
        uint base = tokenCounter;
        while (tokenCounter < base + numTokens) {
            _shufflePlacements();
            tokenCounter += 1;
            _safeMint(to, tokenCounter);
        }
    }

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
     * INTERNAL: TOKEN DATA
     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    /// @notice Returns the amount of decay to apply to the token structure
    /// @dev Decay begins unless there are enough dreamers
    /// @param timestamp The point in time for determining decay
    /// @return The years of decay affecting the tokens
    function _yearsOfDecay(uint timestamp) internal view returns (uint) {
        uint decayBegins = REVEAL_TIMESTAMP + dreamers * 3_650 days;
        if (dreamers >= 500 || timestamp <= decayBegins) {
            return 0;
        } else {
            return (timestamp - decayBegins) / 365 days;
        }
    }
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * LICENSES
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
FOR UPDATES AND ADDITIONAL INFO ABOUT THE LICENSE RELATING TO THIS PROJECT,
SEE WWW.MATHCASTLES.XYZ

AS OF DEPLOY TIME, THE FOLLOWING LICENSE APPLIES TO THIS PROJECT'S ARTWORK
(EXCLUDING ITS FONTS, WHICH ARE COVERED BY THE LICENSE BELOW THIS LICENSE):

# License - Terraforms by Mathcastles

## 1. Purpose

This license (this “**License**”) was created by Mathcastles LLC 
("**Mathcastles**") to promote the interests of and to foster the innovations 
and creativity of NFT collectors and developers. This License seeks to maximize 
the rights of owners to enjoy and profit from the NFTs they own while preserving 
their value for future owners.

## 2. Summary

### 2.A. Owners of Terraforms NFTs can:

1. Display, reproduce and commercialize the Art (defined below) while they own 
the NFTs, with optional attribution.
2. Develop and commercialize derivative works of the Art, both physical and 
virtual (including, for example, fractionalizations) while they own the 
corresponding NFTs, with optional attribution.
3. Continue to commercialize derivative works of the Art of NFTs they previously 
owned if the derivative works were developed and released while they owned the 
NFTs.
4. Use the Art for personal, non-commercial use.
5. Display the Art on marketplaces for buying and selling their NFTs.
6. Use their NFTs to interact with websites and apps, including decentralized 
apps (dapps).

### 2.B. Owners of Terraforms NFTs cannot:

1. Transfer the rights granted by this license to anyone, or to the public.
2. Commercialize the Art of NFTs they do not currently own, or develop or 
release derivative works of the Art of NFTs they do not currently own.
3. Register or attempt to enforce any intellectual property rights in any 
derivative work of the Art, in a manner that would limit a past, present or 
future owner from commercializing the Art or creating derivative works in 
accordance with this license.

### 2.C. Additional Terms for Commercial Enterprises:

If an owner, together with its direct and indirect affiliates, operates an 
enterprise that has ten (10) or more employees or US$5,000,000 or more per year 
in gross receipts, then the owner cannot make more than US$500,000 in total 
annual revenue from commercializing its NFTs or derivatives without separate 
written permission from Mathcastles.

## 3. Terms

### 3.A. Definitions

“**Art**” means any art, design, and related underlying data that may be 
associated with an NFT that you Own.

"**Commercial Enterprise**" means any natural person, incorporated entity, or 
other commercial venture, together with its direct and indirect owners and 
affiliates, which during any of the last three calendar years had, in the 
aggregate, (i) ten (10) or more employees or (ii) the equivalent of 
US$5,000,000 or more per year in gross receipts.

"**Creator**" means Mathcastles LLC.

“**Derivatives**” means extensions or derivative works created by you of 
Purchased NFTs that include, or contain or are derived from the Art.

"**NFT**" means an Ethereum blockchain-tracked non-fungible token created from
this contract.

“**Own**” means, with respect to an NFT, an NFT that you have purchased or 
otherwise rightfully acquired, where proof of such purchase is recorded on the 
relevant blockchain, and that you continue to possess.

“**Purchased NFT**” means an NFT that you Own.

“**Third Party IP**” means any third party patent rights (including, without 
limitation, patent applications and disclosures), copyrights, trade secrets, 
trademarks, know-how or any other intellectual property rights recognized in any 
country or jurisdiction in the world.

### 3.B. Ownership

You acknowledge and agree that Creator (or, as applicable, its licensors) owns 
all legal right, title and interest in and to the Art, and all intellectual 
property rights therein. The rights that you have in and to the Art are limited 
to those described in this License. Creator reserves all rights in and to the 
Art not expressly granted to you in this License.

### 3.C. License

#### 3.C.1. General Use

Subject to your continued compliance with the terms of this License, Creator 
grants you a worldwide, non-exclusive, non-transferable, royalty-free license to 
use, copy, and display the Art for your Purchased NFTs, along with any 
Derivatives that you choose to create or use, solely for the following purposes:

1. for your own personal, non-commercial use;
2. as part of a marketplace that permits the purchase and sale of your NFTs; or
3. as part of a third party website or application that permits the inclusion, 
involvement, or participation of your NFTs.

#### 3.C.2. Commercial and Derivative Use

Creator grants you a limited, worldwide, non-exclusive, non-transferable license 
to use, copy, and display the Art for your Purchased NFTs for the purpose of 
commercializing your own physical or virtual merchandise that includes, 
contains, or consists of the Art for your Purchased NFTs (“**Commercial Use**”) 
and to commercialize Derivatives of your Purchased NFTs ("**Derivative Use**"), 
provided that if you are a Commercial Enterprise, such Commercial Use and 
Derivative Use do not in the aggregate result in you earning more than Five 
Hundred Thousand U.S. Dollars (US$500,000) in gross revenue in any year. For 
the sake of clarity, nothing in this Section 3.C.2. will be deemed to restrict 
you from:

1. owning or operating a marketplace that permits the use and sale of NFTs 
generally;
2. owning or operating a third party website or application that permits the 
inclusion, involvement, or participation of NFTs generally; or
3. earning revenue from any of the foregoing, even where such revenue is in 
excess of US$500,000 per year.

### 3.D. Restrictions

#### 3.D.1. No Additional IP Rights

You may not attempt to trademark, copyright, or otherwise acquire additional 
intellectual property rights in the Art, nor permit any third party to do or 
attempt to do any of the foregoing, without Creator’s express prior written 
consent; _provided_, that this section does not prohibit an owner from acquiring 
intellectual property rights in a derivative work.

#### 3.D.2. No License Granted as to Third Party IP

To the extent that Art associated with your Purchased NFTs contains Third Party 
IP (for example, licensed intellectual property from a third party artist, 
company, or public figure), you understand and agree as follows:

1. that the inclusion of any Third Party IP in the Art does not grant you any 
rights to use such Third Party IP except as it is incorporated in the Art;
2. that, depending on the nature of the license granted from the owner of the 
Third Party IP, Creator may need to pass through additional restrictions on your 
ability to use the Art; and
3. to the extent that Creator informs you of such additional restrictions in 
writing (including by email), you will be responsible for complying with all 
such restrictions from the date that you receive the notice, and that failure 
to do so will be deemed a breach of this license.

The restrictions in this Section 3.D. will survive the expiration or termination 
of this License.

### 3.E. Limitations of License

Except for the right to Derivative Use described in Section 3.C.2., the license 
granted in this Section 3 applies only to the extent that you continue to Own 
the applicable Purchased NFT. If at any time you sell, trade, donate, give away, 
transfer, or otherwise dispose of your Purchased NFT for any reason, the license 
granted in Section 3 (except for the right to Derivative Use described in 
Section 3.C.2.) will immediately expire with respect to those NFTs without the 
requirement of notice, and you will have no further rights in or to the Art for 
those NFTs. The right to Derivative Use described in Section 3.C.2. shall 
continue indefinitely for so long as you comply with this License.

If you are a Commercial Enterprise and you exceed the US$500,000 limitation on 
annual gross revenue set forth in Section 3.C.2. above, you will be in breach of 
this License, and must send an email to Creator at [email protected] 
within fifteen (15) days, with the phrase “NFT License - Commercial Use” in the 
subject line, requesting a discussion with Creator regarding entering into a 
broader license agreement or obtaining an exemption (which may be granted or 
withheld in Creator’s sole and absolute discretion).

If you exceed the scope of the license grant in this Section 3 without entering 
into a broader license agreement with or obtaining an exemption from Creator, 
you acknowledge and agree that:

1. you are in breach of this License;
2. in addition to any remedies that may be available to Creator at law or in 
equity, the Creator may immediately terminate this License, without the 
requirement of notice; and
3. you will be responsible to reimburse Creator for any costs and expenses 
incurred by Creator during the course of enforcing the terms of this License 
against you.

********************************************************************************

THE FOLLOWING LICENSE APPLIES TO THE FONTS USED IN THIS PROJECT

Copyright 2018 The Noto Project Authors (github.com/googlei18n/noto-fonts)

This Font Software is licensed under the SIL Open Font License,
Version 1.1.

This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to
provide a free and open framework in which fonts may be shared and
improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software
components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to,
deleting, or substituting -- in part or in whole -- any of the
components of the Original Version, by changing formats or by porting
the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed,
modify, redistribute, and sell modified and unmodified copies of the
Font Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components, in
Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the
corresponding Copyright Holder. This restriction only applies to the
primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created using
the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 5 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 15 of 18 : ITerraformsData.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ITerraformsData {
    function tokenURI(uint, uint, uint, uint, uint, uint[] memory) 
        external 
        view 
        returns (string memory);

    function tokenHTML(uint, uint, uint, uint, uint[] memory) 
        external 
        view 
        returns (string memory);

    function tokenSVG(uint, uint, uint, uint, uint[] memory) 
        external 
        view 
        returns (string memory);

    function tokenTerrain(uint, uint, uint) 
        external 
        view 
        returns (int[32][32] memory);

    function tokenCharacters(uint, uint, uint, uint, uint[] memory) 
        external 
        view 
        returns (string[32][32] memory);

    function tokenHeightmapIndices(uint, uint, uint, uint, uint[] memory) 
        external 
        view 
        returns (uint[32][32] memory);

    function tokenZone(uint, uint) 
        external 
        view 
        returns (string[10] memory, string memory);

    function characterSet(uint, uint) 
        external 
        view 
        returns (string[9] memory, uint, uint, uint);
    
    function levelAndTile(uint, uint) external view returns (uint, uint);
    
    function tileOrigin(uint, uint, uint, uint, uint) 
        external 
        view 
        returns (int, int, int);
   
    function levelDimensions(uint) external view returns (uint);

    function tokenElevation(uint, uint, uint) external view returns (int);

    function prerevealURI(uint) external view returns (string memory);
}

File 16 of 18 : TerraformsAdmin.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/// @title Admin functions and access control for the Terraforms contract
/// @author xaltgeist
abstract contract TerraformsAdmin is ERC721Enumerable, ReentrancyGuard, Ownable{
    
    enum Mintpass {None, Unused, Used}
    
    /// @notice Sale information
    uint public constant PRICE = 0.16 ether; 
    uint public constant MAX_SUPPLY = 11_104;
    uint public constant OWNER_ALLOTMENT = 1_200;
    uint public constant SUPPLY = MAX_SUPPLY - OWNER_ALLOTMENT;
    uint public tokenCounter;
    bool public earlyMintActive;
    bool public mintingPaused = true;

    mapping(address => Mintpass) addressToMintpass;
    
    /// @notice Toggles whether claimers can mint (other than through early)
    function togglePause() public onlyOwner {
        mintingPaused = !mintingPaused;
    }

    /// @notice Toggles whether Loot and mintpass holders can mint early
    function toggleEarly() public onlyOwner {
        earlyMintActive = !earlyMintActive;
    }

    /// @notice Sets the addresses of mintpass holders
    function setMintpassHolders(address[] memory mintpassHolders) 
        public
        onlyOwner 
    {
        for (uint i; i < mintpassHolders.length; i ++){
            addressToMintpass[mintpassHolders[i]] = Mintpass.Unused;
        }
    }

    /// @notice Transfers the contract balance to the owner
    function withdraw() public onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance}("");
        require(success);
    }
}

File 17 of 18 : TerraformsDreaming.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./TerraformsAdmin.sol";

/// @author xaltgeist
/// @title Tokens can be transformed to painter apps or terraformed
abstract contract TerraformsDreaming is TerraformsAdmin {
    
    /// Tokens can have one of five statuses:
    /// 0. Terrain:       The default visual presentation
    /// 1. Daydream:      A blank token that users can paint on
    /// 2. Terraformed:   A terraformed token with user-supplied visuals
    /// 3. OriginDaydream:    A daydream token that was dreaming on mint
    /// 4. OriginTerraformed: A terraformed OriginDaydream token
    enum Status {
        Terrain, 
        Daydream, 
        Terraformed, 
        OriginDaydream, 
        OriginTerraformed
    }
    
    uint public dreamers; // Number of dreaming tokens

    mapping(uint => uint) public tokenToDreamBlock;
    mapping(uint => Status) public tokenToStatus;
    mapping(uint => uint[]) public tokenToCanvasData;
    mapping(uint => address) public tokenToDreamer;
    mapping(uint => address) public tokenToAuthorizedDreamer;

    event Daydreaming(uint tokenId);
    event Terraformed(uint tokenId, address terraformer);

    /// @notice *PERMANENTLY* sets a token to dreaming, changing its attributes
    /// @dev A minimum amount must be dreaming to prevent collapse
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    function enterDream(uint tokenId) public {
        require(msg.sender == ownerOf(tokenId));
        tokenToDreamBlock[tokenId] = block.number;
        if (tokenToStatus[tokenId] == Status.Terrain){
            dreamers += 1;
        }
        if (uint(tokenToStatus[tokenId]) > 2){
            tokenToStatus[tokenId] = Status.OriginDaydream;
        } else {
            tokenToStatus[tokenId] = Status.Daydream;   
        }
        emit Daydreaming(tokenId);
    }

    /// @notice Authorizes an address to commit canvas data to a dreaming token
    /// @dev To revoke, call authorizeDreamer with address(0).
    /// NOTE Authorization is automatically revoked on transfer.
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @param authorizedDreamer The address authorized to commit canvas data
    function authorizeDreamer(uint tokenId, address authorizedDreamer) public {
        require(msg.sender == ownerOf(tokenId));
        tokenToAuthorizedDreamer[tokenId] = authorizedDreamer;
    }

    /// @notice Sets a dreaming token's canvas to a user-supplied drawing
    /// @dev The drawing data is encoded as 16 uints. The 64 least significant
    ///      digits of each uint represent values from 0-9 at successive x,y
    ///      positions on the token, beginning in the top left corner. Each 
    ///      value will be obtained from left to right by taking the current 
    ///      uint mod 10, and then advancing to the next digit until all uints 
    ///      are exhausted. 
    /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY)
    /// @param dream An array of 16 uints, each representing the heightmap 
    ///              indices of two rows
    function commitDreamToCanvas(uint tokenId, uint[16] memory dream) public {
        require(
            (
                msg.sender == ownerOf(tokenId) ||
                msg.sender == tokenToAuthorizedDreamer[tokenId]
            ) &&
            uint(tokenToStatus[tokenId]) % 2 == 1
        );
        tokenToDreamer[tokenId] = msg.sender;
        tokenToStatus[tokenId] = Status(uint(tokenToStatus[tokenId]) + 1);
        tokenToCanvasData[tokenId] = dream;
        emit Terraformed(tokenId, msg.sender);
    }

    /// @notice On transfer, revokes authorization to commit dreaming token
    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal 
        virtual 
        override
    {
        super._beforeTokenTransfer(from, to, tokenId);
        tokenToAuthorizedDreamer[tokenId] = address(0);
    }
}

File 18 of 18 : TerraformsPlacements.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./TerraformsDreaming.sol";

/// @author xaltgeist
/// @title Pseudorandom token placements
abstract contract TerraformsPlacements is TerraformsDreaming {
    
    uint public seed; // Seed derived from blockhash, used to rotate placements
    mapping(uint => uint) public tokenToPlacement; // Pseudorandom placements
    uint public immutable REVEAL_TIMESTAMP; // Token reveal (if not minted out)
    uint[MAX_SUPPLY] placementShuffler; // Used for pseudorandom placements

    event TokensRevealed(uint timestamp, uint seed);

    constructor (){
        REVEAL_TIMESTAMP = block.timestamp + 7 days;
    }

    /// @notice Finalizes the seed used to randomize token placement
    /// @dev Requires that seed isn't set, and that either the supply is minted
    ///      or a week has elapsed since deploy
    function setSeed() public {
        require(
            seed == 0 && 
            (tokenCounter >= SUPPLY || block.timestamp >= REVEAL_TIMESTAMP)
        );

        seed = uint(blockhash(block.number - 1)) % MAX_SUPPLY;

        if (seed == 0) { // Don't allow seed to be 0
            seed = 1;
        }
        emit TokensRevealed(block.timestamp, seed);
    }

    /// @notice Creates initial placements to determine a token's level/tile
    /// @dev Initial pseudorandom placements will be rotated by the seed
    function _shufflePlacements() internal {
        uint max = MAX_SUPPLY - tokenCounter;
        uint result;
        uint next = uint(
            keccak256(
                abi.encodePacked(
                    tokenCounter, 
                    blockhash(block.number - 1), 
                    block.difficulty
                )
            )
        ) % max;
        
        if (placementShuffler[next] == 0) {
            result = next;
        } else {
            result = placementShuffler[next];
        }

        if (placementShuffler[max - 1] != 0) {
            placementShuffler[next] = placementShuffler[max - 1];            
        } else {
            placementShuffler[next] = max - 1;
        }
        
        tokenToPlacement[tokenCounter + 1] = result;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "details": {
      "constantOptimizer": true,
      "cse": true,
      "deduplicate": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "peephole": true,
      "yul": false
    },
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_terraformsDataAddress","type":"address"},{"internalType":"address","name":"_terraformsAugmentationsAddress","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":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Daydreaming","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"terraformer","type":"address"}],"name":"Terraformed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"}],"name":"TokensRevealed","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ALLOTMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_SCALE","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"addTokenURIAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"authorizedDreamer","type":"address"}],"name":"authorizeDreamer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256[16]","name":"dream","type":"uint256[16]"}],"name":"commitDreamToCanvas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dreamers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"earlyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"earlyMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"enterDream","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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemMintpass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"mintpassHolders","type":"address[]"}],"name":"setMintpassHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setTokenURIAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"structureData","outputs":[{"components":[{"internalType":"uint256","name":"levelNumber","type":"uint256"},{"internalType":"uint256","name":"tokensOnLevel","type":"uint256"},{"internalType":"int256","name":"structureSpaceX","type":"int256"},{"internalType":"int256","name":"structureSpaceY","type":"int256"},{"internalType":"int256","name":"structureSpaceZ","type":"int256"}],"internalType":"struct Terraforms.StructureLevel[20]","name":"structure","type":"tuple[20]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terraformsAugmentationsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleEarly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenCharacters","outputs":[{"internalType":"string[32][32]","name":"","type":"string[32][32]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHTML","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHeightmapIndices","outputs":[{"internalType":"uint256[32][32]","name":"","type":"uint256[32][32]"}],"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":"tokenSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenSupplementalData","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"xCoordinate","type":"uint256"},{"internalType":"uint256","name":"yCoordinate","type":"uint256"},{"internalType":"int256","name":"elevation","type":"int256"},{"internalType":"int256","name":"structureSpaceX","type":"int256"},{"internalType":"int256","name":"structureSpaceY","type":"int256"},{"internalType":"int256","name":"structureSpaceZ","type":"int256"},{"internalType":"string","name":"zoneName","type":"string"},{"internalType":"string[10]","name":"zoneColors","type":"string[10]"},{"internalType":"string[9]","name":"characterSet","type":"string[9]"}],"internalType":"struct Terraforms.TokenData","name":"result","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenTerrainValues","outputs":[{"internalType":"int256[32][32]","name":"","type":"int256[32][32]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToAuthorizedDreamer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToCanvasData","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToDreamBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToDreamer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToPlacement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenToStatus","outputs":[{"internalType":"enum TerraformsDreaming.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURIAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600d805461ff0019166101001790553480156200002057600080fd5b50604051620059c8380380620059c883398101604081905262000043916200025c565b6040518060400160405280600a8152602001695465727261666f726d7360b01b8152506040518060400160405280600a8152602001695445525241464f524d5360b01b8152508160009080519060200190620000a1929190620001a3565b508051620000b7906001906020840190620001a3565b50506001600a5550620000d3620000cd6200014d565b62000151565b620000e24262093a806200029b565b608052612b7780546001810182556000919091527fa8e03d383aaeb8ac9cee38cfc7a3e9df720a59460a08160c6b079f8e0b5521040180546001600160a01b0319166001600160a01b03939093169290921790915560601b6001600160601b03191660a0526200035c565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b190620002e5565b90600052602060002090601f016020900481019282620001d5576000855562000220565b82601f10620001f057805160ff191683800117855562000220565b8280016001018555821562000220579182015b828111156200022057825182559160200191906001019062000203565b506200022e92915062000232565b5090565b5b808211156200022e576000815560010162000233565b8051620002568162000342565b92915050565b600080604083850312156200027057600080fd5b60006200027e858562000249565b9250506020620002918582860162000249565b9150509250929050565b6000620002a882620002e2565b9150620002b583620002e2565b92508219821115620002cb57620002cb62000316565b500190565b60006001600160a01b03821662000256565b90565b600281046001821680620002fa57607f821691505b602082108114156200031057620003106200032c565b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6200034d81620002d0565b81146200035957600080fd5b50565b60805160a05160601c61563562000393600039600061218b015260008181610d330152818161115b0152612ab201526156356000f3fe6080604052600436106103905760003560e01c8063715018a6116101dc578063b79bebaf11610102578063cae07d2a116100a0578063e1a283d61161006f578063e1a283d614610a03578063e6ec320e14610a18578063e985e9c514610a38578063f2fde38b14610a5857610397565b8063cae07d2a14610999578063d082e381146109ae578063d359fc19146109c3578063d41845d0146109e357610397565b8063bf514465116100dc578063bf51446514610922578063c4ae31681461094f578063c50497ae14610964578063c87b56dd1461097957610397565b8063b79bebaf146108c2578063b88d4fde146108e2578063b9173bb61461090257610397565b80638da5cb5b1161017a578063a0712d6811610149578063a0712d681461085a578063a22cb4651461086d578063a6e602101461088d578063ab2f711e146108a257610397565b80638da5cb5b146107f05780639047abbe1461080557806395d89b41146108255780639bac5f7a1461083a57610397565b80637d94792a116101b65780637d94792a1461079e5780637f46882f146107b35780638a61413c146107c85780638d859f3e146107db57610397565b8063715018a61461074957806371d985b31461075e57806373e687a81461077e57610397565b806332cb6b0c116102c15780635dd503501161025f5780636ae9a57e1161022e5780636ae9a57e146106d25780636c43c5a9146106e75780636f705c08146106fc57806370a082311461072957610397565b80635dd50350146106505780635e6d10f2146106705780636352211e1461068557806363be6ad4146106a557610397565b806343083f0e1161029b57806343083f0e146105ce578063473a3abf146105e35780634f6ccce714610610578063502f260c1461063057610397565b806332cb6b0c146105845780633ccfd60b1461059957806342842e0e146105ae57610397565b8063209ad1051161032e5780632f745c59116103085780632f745c59146105025780632fb16bc8146105225780633000436f146105375780633107cbac1461055757610397565b8063209ad105146104a257806323b872dd146104c257806329fdf854146104e257610397565b8063095ea7b31161036a578063095ea7b31461041e578063158ac44e1461043e57806318160ddd1461046b57806318e20a381461048d57610397565b806301ffc9a71461039957806306fdde03146103cf578063081812fc146103f157610397565b3661039757005b005b3480156103a557600080fd5b506103b96103b4366004613fde565b610a78565b6040516103c69190614d6c565b60405180910390f35b3480156103db57600080fd5b506103e4610aa5565b6040516103c69190614d96565b3480156103fd57600080fd5b5061041161040c3660046140b0565b610b37565b6040516103c69190614cdc565b34801561042a57600080fd5b50610397610439366004613e05565b610b83565b34801561044a57600080fd5b5061045e6104593660046140b0565b610c1b565b6040516103c69190614d2e565b34801561047757600080fd5b50610480610d2b565b6040516103c69190614d88565b34801561049957600080fd5b50610480610d31565b3480156104ae57600080fd5b506104116104bd3660046140b0565b610d55565b3480156104ce57600080fd5b506103976104dd366004613d0f565b610d70565b3480156104ee57600080fd5b506103976104fd366004613fa8565b610da8565b34801561050e57600080fd5b5061048061051d366004613e05565b610e63565b34801561052e57600080fd5b506103b9610eb8565b34801561054357600080fd5b506103976105523660046140ce565b610ec1565b34801561056357600080fd5b506105776105723660046140b0565b610f15565b6040516103c69190614d4e565b34801561059057600080fd5b50610480611062565b3480156105a557600080fd5b50610397611068565b3480156105ba57600080fd5b506103976105c9366004613d0f565b61111a565b3480156105da57600080fd5b50610397611135565b3480156105ef57600080fd5b506106036105fe3660046140b0565b6111ec565b6040516103c69190614d3d565b34801561061c57600080fd5b5061048061062b3660046140b0565b61133c565b34801561063c57600080fd5b5061039761064b3660046140ed565b611397565b34801561065c57600080fd5b5061048061066b3660046140b0565b61152f565b34801561067c57600080fd5b50610480611541565b34801561069157600080fd5b506104116106a03660046140b0565b611547565b3480156106b157600080fd5b506106c56106c03660046140b0565b61157c565b6040516103c69190614ef7565b3480156106de57600080fd5b506103976119fd565b3480156106f357600080fd5b50610397611b0e565b34801561070857600080fd5b5061071c6107173660046140b0565b611b61565b6040516103c69190614d7a565b34801561073557600080fd5b50610480610744366004613cb7565b611b76565b34801561075557600080fd5b50610397611bba565b34801561076a57600080fd5b50610397610779366004613cb7565b611c05565b34801561078a57600080fd5b506104116107993660046140b0565b611c97565b3480156107aa57600080fd5b50610480611cc2565b3480156107bf57600080fd5b50610480611cc8565b6103976107d63660046140b0565b611cce565b3480156107e757600080fd5b50610480611e75565b3480156107fc57600080fd5b50610411611e81565b34801561081157600080fd5b50610397610820366004613e35565b611e90565b34801561083157600080fd5b506103e4611f67565b34801561084657600080fd5b506103e46108553660046140b0565b611f76565b6103976108683660046140b0565b6120c0565b34801561087957600080fd5b50610397610888366004613dd5565b612177565b34801561089957600080fd5b50610411612189565b3480156108ae57600080fd5b506104806108bd3660046140b0565b6121ad565b3480156108ce57600080fd5b506103e46108dd3660046140b0565b6121bf565b3480156108ee57600080fd5b506103976108fd366004613d5c565b612266565b34801561090e57600080fd5b5061048061091d36600461411e565b6122a5565b34801561092e57600080fd5b5061094261093d3660046140b0565b6122d6565b6040516103c69190614d5d565b34801561095b57600080fd5b506103976124ee565b34801561097057600080fd5b5061048061254a565b34801561098557600080fd5b506103e46109943660046140b0565b61255b565b3480156109a557600080fd5b50610480612749565b3480156109ba57600080fd5b50610480612750565b3480156109cf57600080fd5b506103976109de3660046140b0565b612756565b3480156109ef57600080fd5b506104116109fe3660046140b0565b612885565b348015610a0f57600080fd5b506103b96128a0565b348015610a2457600080fd5b50610397610a33366004613e05565b6128ae565b348015610a4457600080fd5b506103b9610a53366004613cd5565b61292c565b348015610a6457600080fd5b50610397610a73366004613cb7565b61295a565b60006001600160e01b0319821663780e9d6360e01b1480610a9d5750610a9d826129c8565b90505b919050565b606060008054610ab4906154b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae0906154b1565b8015610b2d5780601f10610b0257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610b1057829003601f168201915b5050505050905090565b6000610b4282612a08565b610b675760405162461bcd60e51b8152600401610b5e90614e77565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b8e82611547565b9050806001600160a01b0316836001600160a01b03161415610bc25760405162461bcd60e51b8152600401610b5e90614ea7565b806001600160a01b0316610bd4612a25565b6001600160a01b03161480610bf05750610bf081610a53612a25565b610c0c5760405162461bcd60e51b8152600401610b5e90614e27565b610c168383612a29565b505050565b610c236134f3565b81601554600014158015610c3b5750610c3b81612a08565b610c4457600080fd5b6000838152612b786020526040902054612b7780549091908110610c7857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260169091526040909120546015546001600160a01b039092169163af3acd949190610cb342612a97565b6040518463ffffffff1660e01b8152600401610cd193929190614f80565b6180006040518083038186803b158015610cea57600080fd5b505afa158015610cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d229190613e6a565b91505b50919050565b60085490565b7f000000000000000000000000000000000000000000000000000000000000000081565b6013602052600090815260409020546001600160a01b031681565b610d81610d7b612a25565b82612b1b565b610d9d5760405162461bcd60e51b8152600401610b5e90614eb7565b610c16838383612ba0565b612b77548110610db757600080fd5b60005b8251811015610c1657610df3838281518110610de657634e487b7160e01b600052603260045260246000fd5b6020026020010151611547565b6001600160a01b0316336001600160a01b031614610e1057600080fd5b81612b786000858481518110610e3657634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080610e5b906154e6565b915050610dba565b6000610e6e83611b76565b8210610e8c5760405162461bcd60e51b8152600401610b5e90614db7565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600d5460ff1681565b610eca82611547565b6001600160a01b0316336001600160a01b031614610ee757600080fd5b60009182526014602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b610f1d613521565b81601554600014158015610f355750610f3581612a08565b610f3e57600080fd5b6000838152612b786020526040902054612b7780549091908110610f7257634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b039091169063d4920e7b9060ff166004811115610fc257634e487b7160e01b600052602160045260246000fd5b600086815260166020526040902054601554610fdd42612a97565b6000898152601260205260409081902090516001600160e01b031960e088901b168152611011959493929190600401614fa8565b6180006040518083038186803b15801561102a57600080fd5b505afa15801561103e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d229190613ebe565b612b6081565b611070612a25565b6001600160a01b0316611081611e81565b6001600160a01b0316146110a75760405162461bcd60e51b8152600401610b5e90614e87565b60006110b1611e81565b6001600160a01b0316476040516110c790614c9a565b60006040518083038185875af1925050503d8060008114611104576040519150601f19603f3d011682016040523d82523d6000602084013e611109565b606091505b505090508061111757600080fd5b50565b610c1683838360405180602001604052806000815250612266565b60155415801561117e575061114e6104b0612b60615402565b600c5410158061117e57507f00000000000000000000000000000000000000000000000000000000000000004210155b61118757600080fd5b612b60611195600143615402565b6111a091904061550c565b60158190556111af5760016015555b7f582fed560f3649624fbe512f240792c513414bcbbe26fc480454176615bd9447426015546040516111e2929190614f65565b60405180910390a1565b6111f461354f565b8160155460001415801561120c575061120c81612a08565b61121557600080fd5b6000838152612b786020526040902054612b778054909190811061124957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b0390911690632048c6739060ff16600481111561129957634e487b7160e01b600052602160045260246000fd5b6000868152601660205260409020546015546112b442612a97565b6000898152601260205260409081902090516001600160e01b031960e088901b1681526112e8959493929190600401614fa8565b60006040518083038186803b15801561130057600080fd5b505afa158015611314573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d229190810190613e89565b6000611346610d2b565b82106113645760405162461bcd60e51b8152600401610b5e90614ec7565b6008828154811061138557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6113a082611547565b6001600160a01b0316336001600160a01b031614806113d557506000828152601460205260409020546001600160a01b031633145b801561141e575060008281526011602052604090205460029060ff16600481111561141057634e487b7160e01b600052602160045260246000fd5b61141a919061550c565b6001145b61142757600080fd5b600082815260136020908152604080832080546001600160a01b03191633179055601190915290205460ff16600481111561147257634e487b7160e01b600052602160045260246000fd5b61147d906001615153565b600481111561149c57634e487b7160e01b600052602160045260246000fd5b6000838152601160205260409020805460ff191660018360048111156114d257634e487b7160e01b600052602160045260246000fd5b021790555060008281526012602052604090206114f19082601061357d565b507f45be0e1ab4f13227fa0c4e2419af72c74f30c385b00c34497e68550f3b40dedb8233604051611523929190614f08565b60405180910390a15050565b60106020526000908152604090205481565b6104b081565b6000818152600260205260408120546001600160a01b031680610a9d5760405162461bcd60e51b8152600401610b5e90614e47565b6115846135c8565b8160155460001415801561159c575061159c81612a08565b6115a557600080fd5b6000838152612b786020526040812054612b77805490919081106115d957634e487b7160e01b600052603260045260246000fd5b60009182526020822001546015546001600160a01b0390911692506116029062033b60906152d8565b60008681526016602052604080822054601554915163d55dd04360e01b8152939450919283926001600160a01b0387169263d55dd04392611647929190600401614f65565b604080518083038186803b15801561165e57600080fd5b505afa158015611672573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611696919061413d565b915091506000846001600160a01b031663045a16df846040518263ffffffff1660e01b81526004016116c89190614d88565b60206040518083038186803b1580156116e057600080fd5b505afa1580156116f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611718919061401a565b601554604051630e1f4fcd60e21b81529192506001600160a01b0387169163387d3f349161174c9187918791600401614f80565b60206040518083038186803b15801561176457600080fd5b505afa158015611778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179c919061401a565b876080018181525050846001600160a01b0316631c96531d84846015546117c242612a97565b426040518663ffffffff1660e01b81526004016117e3959493929190614ffa565b60606040518083038186803b1580156117fb57600080fd5b505afa15801561180f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118339190614038565b60e08a015260c089015260a088015260008881526016602052604090819020546015549151631563970160e01b81526001600160a01b0388169263156397019261188292909190600401614f65565b60006040518083038186803b15801561189a57600080fd5b505afa1580156118ae573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118d69190810190613edd565b6101008901526101208801526000888152601660205260409081902054601554915163eaaaf94760e01b81526001600160a01b0388169263eaaaf9479261192292909190600401614f65565b60006040518083038186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119769190810190613f3c565b50505061014088015261198a836001615153565b6020880152611999818361550c565b60408801526119a88183615181565b606088015260a0870180518591906119c19083906153ab565b90525060c0870180518591906119d89083906153ab565b90525060e0870180518591906119ef9083906153ab565b905250505050505050919050565b6002600a541415611a205760405162461bcd60e51b8152600401610b5e90614ed7565b6002600a556001336000908152600e602052604090205460ff166002811115611a5957634e487b7160e01b600052602160045260246000fd5b14611a6357600080fd5b336000818152600e60205260409020805460ff19166002179055611a88906001612ccd565b6001600f6000828254611a9b9190615153565b9091555050600c8054600090815260106020908152604080832043905583548352601190915290819020805460ff19166003179055905490517f41469549673f9fcac40591db4dfa9089e9ed2b430b749c4eb6586195721b8c1d91611aff91614d88565b60405180910390a16001600a55565b611b16612a25565b6001600160a01b0316611b27611e81565b6001600160a01b031614611b4d5760405162461bcd60e51b8152600401610b5e90614e87565b600d805460ff19811660ff90911615179055565b60116020526000908152604090205460ff1681565b60006001600160a01b038216611b9e5760405162461bcd60e51b8152600401610b5e90614e37565b506001600160a01b031660009081526003602052604090205490565b611bc2612a25565b6001600160a01b0316611bd3611e81565b6001600160a01b031614611bf95760405162461bcd60e51b8152600401610b5e90614e87565b611c036000612d17565b565b611c0d612a25565b6001600160a01b0316611c1e611e81565b6001600160a01b031614611c445760405162461bcd60e51b8152600401610b5e90614e87565b612b7780546001810182556000919091527fa8e03d383aaeb8ac9cee38cfc7a3e9df720a59460a08160c6b079f8e0b5521040180546001600160a01b0319166001600160a01b0392909216919091179055565b612b778181548110611ca857600080fd5b6000918252602090912001546001600160a01b0316905081565b60155481565b600f5481565b6002600a541415611cf15760405162461bcd60e51b8152600401610b5e90614ed7565b6002600a9081558190811115611d195760405162461bcd60e51b8152600401610b5e90614ee7565b80611d286104b0612b60615402565b611d329190615402565b600c5411158015611d545750611d506702386f26fc1000008261537b565b3410155b611d5d57600080fd5b600d5460ff16611d7f5760405162461bcd60e51b8152600401610b5e90614e67565b6064611d8a33611b76565b11158015611e5957506040516370a0823160e01b815260009073ff9c1b15b16263c61d017ee9f65c50e4ae0113d7906370a0823190611dcd903390600401614cdc565b60206040518083038186803b158015611de557600080fd5b505afa158015611df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1d919061401a565b1180611e595750336000908152600e602052604081205460ff166002811115611e5657634e487b7160e01b600052602160045260246000fd5b14155b611e6257600080fd5b611e6c3383612ccd565b50506001600a55565b6702386f26fc10000081565b600b546001600160a01b031690565b611e98612a25565b6001600160a01b0316611ea9611e81565b6001600160a01b031614611ecf5760405162461bcd60e51b8152600401610b5e90614e87565b60005b8151811015611f63576001600e6000848481518110611f0157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19166001836002811115611f4c57634e487b7160e01b600052602160045260246000fd5b021790555080611f5b816154e6565b915050611ed2565b5050565b606060018054610ab4906154b1565b606081601554600014158015611f905750611f9081612a08565b611f9957600080fd5b6000838152612b786020526040902054612b7780549091908110611fcd57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b0390911690632cff78d89060ff16600481111561201d57634e487b7160e01b600052602160045260246000fd5b60008681526016602052604090205460155461203842612a97565b6000898152601260205260409081902090516001600160e01b031960e088901b16815261206c959493929190600401614fa8565b60006040518083038186803b15801561208457600080fd5b505afa158015612098573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d22919081019061407b565b6002600a5414156120e35760405162461bcd60e51b8152600401610b5e90614ed7565b6002600a908155819081111561210b5760405162461bcd60e51b8152600401610b5e90614ee7565b8061211a6104b0612b60615402565b6121249190615402565b600c541115801561214657506121426702386f26fc1000008261537b565b3410155b61214f57600080fd5b600d54610100900460ff1615611e625760405162461bcd60e51b8152600401610b5e90614da7565b611f63612182612a25565b8383612d69565b7f000000000000000000000000000000000000000000000000000000000000000081565b60166020526000908152604090205481565b6060816015546000141580156121d957506121d981612a08565b6121e257600080fd5b6000838152612b786020526040902054612b778054909190811061221657634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b0390911690632907c2c49060ff16600481111561201d57634e487b7160e01b600052602160045260246000fd5b612277612271612a25565b83612b1b565b6122935760405162461bcd60e51b8152600401610b5e90614eb7565b61229f84848484612e0c565b50505050565b601260205281600052604060002081815481106122c157600080fd5b90600052602060002001600091509150505481565b6122de61362d565b6000612b7760008154811061230357634e487b7160e01b600052603260045260246000fd5b60009182526020822001546001600160a01b0316915061232284612a97565b9050600062033b6060155461233791906152d8565b90506000806000805b60148110156124e257866001600160a01b0316631c96531d8260006015548a8e6040518663ffffffff1660e01b8152600401612380959493929190614f23565b60606040518083038186803b15801561239857600080fd5b505afa1580156123ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d09190614038565b6040805160a081019091529296509094509250806123ef836001615153565b81526020016002896001600160a01b031663045a16df856040518263ffffffff1660e01b81526004016124229190614d88565b60206040518083038186803b15801561243a57600080fd5b505afa15801561244e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612472919061401a565b61247c91906151f2565b815260200161248b87876153ab565b815260200161249a87866153ab565b81526020016124a987856153ab565b90528882601481106124cb57634e487b7160e01b600052603260045260246000fd5b6020020152806124da816154e6565b915050612340565b50505050505050919050565b6124f6612a25565b6001600160a01b0316612507611e81565b6001600160a01b03161461252d5760405162461bcd60e51b8152600401610b5e90614e87565b600d805461ff001981166101009182900460ff1615909102179055565b6125586104b0612b60615402565b81565b60606015546000141561261f57612b7760008154811061258b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516358e7c27960e11b81526001600160a01b039091169063b1cf84f2906125c4908590600401614d88565b60006040518083038186803b1580156125dc57600080fd5b505afa1580156125f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612618919081019061407b565b9050610aa0565b6000828152612b786020526040902054612b778054909190811061265357634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015484835260119091526040909120546001600160a01b03909116906322bc92b090849060ff1660048111156126a557634e487b7160e01b600052602160045260246000fd5b6000868152601660205260409020546015546126c042612a97565b6000898152601260205260409081902090516001600160e01b031960e089901b1681526126f596959493929190600401615015565b60006040518083038186803b15801561270d57600080fd5b505afa158015612721573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a9d919081019061407b565b62033b6081565b600c5481565b61275f81611547565b6001600160a01b0316336001600160a01b03161461277c57600080fd5b6000818152601060209081526040808320439055601190915281205460ff1660048111156127ba57634e487b7160e01b600052602160045260246000fd5b14156127d9576001600f60008282546127d39190615153565b90915550505b60008181526011602052604090205460029060ff16600481111561280d57634e487b7160e01b600052602160045260246000fd5b1115612831576000818152601160205260409020805460ff1916600317905561284b565b6000818152601160205260409020805460ff191660011790555b7f41469549673f9fcac40591db4dfa9089e9ed2b430b749c4eb6586195721b8c1d8160405161287a9190614d88565b60405180910390a150565b6014602052600090815260409020546001600160a01b031681565b600d54610100900460ff1681565b6128b6612a25565b6001600160a01b03166128c7611e81565b6001600160a01b0316146128ed5760405162461bcd60e51b8152600401610b5e90614e87565b6128fb6104b0612b60615402565b600c5410158015612919575061291381612b60615402565b600c5411155b61292257600080fd5b611f638282612ccd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b612962612a25565b6001600160a01b0316612973611e81565b6001600160a01b0316146129995760405162461bcd60e51b8152600401610b5e90614e87565b6001600160a01b0381166129bf5760405162461bcd60e51b8152600401610b5e90614dd7565b61111781612d17565b60006001600160e01b031982166380ac58cd60e01b14806129f957506001600160e01b03198216635b5e139f60e01b145b80610a9d5750610a9d82612e3f565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a5e82611547565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080600f546312cc0300612aac919061537b565b612ad6907f0000000000000000000000000000000000000000000000000000000000000000615153565b90506101f4600f54101580612aeb5750808311155b15612afa576000915050610aa0565b6301e13380612b098285615402565b612b139190615181565b915050610aa0565b6000612b2682612a08565b612b425760405162461bcd60e51b8152600401610b5e90614e17565b6000612b4d83611547565b9050806001600160a01b0316846001600160a01b03161480612b885750836001600160a01b0316612b7d84610b37565b6001600160a01b0316145b80612b985750612b98818561292c565b949350505050565b826001600160a01b0316612bb382611547565b6001600160a01b031614612bd95760405162461bcd60e51b8152600401610b5e90614e97565b6001600160a01b038216612bff5760405162461bcd60e51b8152600401610b5e90614df7565b612c0a838383612e58565b612c15600082612a29565b6001600160a01b0383166000908152600360205260408120805460019290612c3e908490615402565b90915550506001600160a01b0382166000908152600360205260408120805460019290612c6c908490615153565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c545b612cdb8282615153565b600c541015610c1657612cec612e83565b6001600c6000828254612cff9190615153565b92505081905550612d1283600c5461301f565b612cd1565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612d9b5760405162461bcd60e51b8152600401610b5e90614e07565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612dff908590614d6c565b60405180910390a3505050565b612e17848484612ba0565b612e2384848484613039565b61229f5760405162461bcd60e51b8152600401610b5e90614dc7565b6001600160e01b031981166301ffc9a760e01b14919050565b612e63838383613154565b600090815260146020526040902080546001600160a01b03191690555050565b6000600c54612b60612e959190615402565b905060008082600c54600143612eab9190615402565b4044604051602001612ebf93929190614ca5565b6040516020818303038152906040528051906020012060001c612ee2919061550c565b9050601781612b608110612f0657634e487b7160e01b600052603260045260246000fd5b0154612f1457809150612f3b565b601781612b608110612f3657634e487b7160e01b600052603260045260246000fd5b015491505b6017612f48600185615402565b612b608110612f6757634e487b7160e01b600052603260045260246000fd5b015415612fc5576017612f7b600185615402565b612b608110612f9a57634e487b7160e01b600052603260045260246000fd5b0154601782612b608110612fbe57634e487b7160e01b600052603260045260246000fd5b0155612ff5565b612fd0600184615402565b601782612b608110612ff257634e487b7160e01b600052603260045260246000fd5b01555b8160166000600c5460016130099190615153565b8152602081019190915260400160002055505050565b611f638282604051806020016040528060008152506131dd565b600061304d846001600160a01b0316613210565b1561314957836001600160a01b031663150b7a02613069612a25565b8786866040518563ffffffff1660e01b815260040161308b9493929190614cea565b602060405180830381600087803b1580156130a557600080fd5b505af19250505080156130d5575060408051601f3d908101601f191682019092526130d291810190613ffc565b60015b61312f573d808015613103576040519150601f19603f3d011682016040523d82523d6000602084013e613108565b606091505b5080516131275760405162461bcd60e51b8152600401610b5e90614dc7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b98565b506001949350505050565b61315f838383610c16565b6001600160a01b03831661317b5761317681613216565b61319e565b816001600160a01b0316836001600160a01b03161461319e5761319e838261325a565b6001600160a01b0382166131ba576131b5816132f7565b610c16565b826001600160a01b0316826001600160a01b031614610c1657610c1682826133d0565b6131e78383613414565b6131f46000848484613039565b610c165760405162461bcd60e51b8152600401610b5e90614dc7565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161326784611b76565b6132719190615402565b6000838152600760205260409020549091508082146132c4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061330990600190615402565b6000838152600960205260408120546008805493945090928490811061333f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061336e57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806133b457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006133db83611b76565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661343a5760405162461bcd60e51b8152600401610b5e90614e57565b61344381612a08565b156134605760405162461bcd60e51b8152600401610b5e90614de7565b61346c60008383612e58565b6001600160a01b0382166000908152600360205260408120805460019290613495908490615153565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061040001604052806020905b61350b61365b565b8152602001906001900390816135035790505090565b6040518061040001604052806020905b61353961365b565b8152602001906001900390816135315790505090565b6040518061040001604052806020905b61356761367a565b81526020019060019003908161355f5790505090565b8280548282559060005260206000209081019282156135b8579160200282015b828111156135b857825182559160200191906001019061359d565b506135c49291506136a2565b5090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200161361b6136b7565b81526020016136286136d2565b905290565b6040518061028001604052806014905b6136456136ed565b81526020019060019003908161363d5790505090565b6040518061040001604052806020906020820280368337509192915050565b6040518061040001604052806020905b606081526020019060019003908161368a5790505090565b5b808211156135c457600081556001016136a3565b6040805161014081019091526060815260096020820161368a565b6040805161012081019091526060815260086020820161368a565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600061372f61372a8461509f565b615075565b9050808382526020820190508285602086028201111561374e57600080fd5b60005b8581101561377a57816137648882613ae3565b8452506020928301929190910190600101613751565b5050509392505050565b600061379261372a846150c3565b90508082856104008602820111156137a957600080fd5b60005b8581101561377a57816137bf8882613b69565b84525060209092019161040091909101906001016137ac565b60006137e661372a846150c3565b9050808260005b8581101561377a57815185016138038882613ba5565b84525060209283019291909101906001016137ed565b600061382761372a846150c3565b905080828561040086028201111561383e57600080fd5b60005b8581101561377a57816138548882613bff565b8452506020909201916104009190910190600101613841565b600061387b61372a846150c3565b9050808285602086028201111561389157600080fd5b60005b8581101561377a57816138a78882613c80565b8452506020928301929190910190600101613894565b60006138cb61372a846150c3565b9050808260005b8581101561377a57815185016138e88882613c8b565b84525060209283019291909101906001016138d2565b600061390c61372a846150c3565b9050808260005b8581101561377a57815185016139298882613c8b565b8452506020928301929190910190600101613913565b600061394d61372a846150c3565b9050808260005b8581101561377a578151850161396a8882613c8b565b8452506020928301929190910190600101613954565b600061398e61372a846150c3565b905080828560208602820111156139a457600080fd5b60005b8581101561377a57816139ba8882613cac565b84525060209283019291909101906001016139a7565b60006139de61372a846150c3565b905080828560208602820111156139f457600080fd5b60005b8581101561377a5781613a0a8882613c80565b84525060209283019291909101906001016139f7565b6000613a2e61372a8461509f565b90508083825260208201905082856020860282011115613a4d57600080fd5b60005b8581101561377a5781613a638882613cac565b8452506020928301929190910190600101613a50565b6000613a8761372a846150e4565b905082815260208101848484011115613a9f57600080fd5b613aaa848285615479565b509392505050565b6000613ac061372a846150e4565b905082815260208101848484011115613ad857600080fd5b613aaa848285615485565b8035610eb2816155d0565b600082601f830112613aff57600080fd5b8135612b9884826020860161371c565b600082601f830112613b2057600080fd5b6020612b98848285613784565b600082601f830112613b3e57600080fd5b6020612b988482856137d8565b600082601f830112613b5c57600080fd5b6020612b98848285613819565b600082601f830112613b7a57600080fd5b6020612b9884828561386d565b600082601f830112613b9857600080fd5b600a612b988482856138bd565b600082601f830112613bb657600080fd5b6020612b988482856138fe565b600082601f830112613bd457600080fd5b6009612b9884828561393f565b600082601f830112613bf257600080fd5b6010612b98848285613980565b600082601f830112613c1057600080fd5b6020612b988482856139d0565b600082601f830112613c2e57600080fd5b8135612b98848260208601613a20565b8035610eb2816155e4565b8035610eb2816155ed565b8051610eb2816155ed565b600082601f830112613c7057600080fd5b8135612b98848260208601613a79565b8051610eb2816155f6565b600082601f830112613c9c57600080fd5b8151612b98848260208601613ab2565b8035610eb2816155f6565b600060208284031215613cc957600080fd5b6000612b988484613ae3565b60008060408385031215613ce857600080fd5b6000613cf48585613ae3565b9250506020613d0585828601613ae3565b9150509250929050565b600080600060608486031215613d2457600080fd5b6000613d308686613ae3565b9350506020613d4186828701613ae3565b9250506040613d5286828701613cac565b9150509250925092565b60008060008060808587031215613d7257600080fd5b6000613d7e8787613ae3565b9450506020613d8f87828801613ae3565b9350506040613da087828801613cac565b925050606085013567ffffffffffffffff811115613dbd57600080fd5b613dc987828801613c5f565b91505092959194509250565b60008060408385031215613de857600080fd5b6000613df48585613ae3565b9250506020613d0585828601613c3e565b60008060408385031215613e1857600080fd5b6000613e248585613ae3565b9250506020613d0585828601613cac565b600060208284031215613e4757600080fd5b813567ffffffffffffffff811115613e5e57600080fd5b612b9884828501613aee565b60006180008284031215613e7d57600080fd5b6000612b988484613b0f565b600060208284031215613e9b57600080fd5b815167ffffffffffffffff811115613eb257600080fd5b612b9884828501613b2d565b60006180008284031215613ed157600080fd5b6000612b988484613b4b565b60008060408385031215613ef057600080fd5b825167ffffffffffffffff811115613f0757600080fd5b613f1385828601613b87565b925050602083015167ffffffffffffffff811115613f3057600080fd5b613d0585828601613c8b565b60008060008060808587031215613f5257600080fd5b845167ffffffffffffffff811115613f6957600080fd5b613f7587828801613bc3565b9450506020613f8687828801613c80565b9350506040613f9787828801613c80565b9250506060613dc987828801613c80565b60008060408385031215613fbb57600080fd5b823567ffffffffffffffff811115613fd257600080fd5b613e2485828601613c1d565b600060208284031215613ff057600080fd5b6000612b988484613c49565b60006020828403121561400e57600080fd5b6000612b988484613c54565b60006020828403121561402c57600080fd5b6000612b988484613c80565b60008060006060848603121561404d57600080fd5b60006140598686613c80565b935050602061406a86828701613c80565b9250506040613d5286828701613c80565b60006020828403121561408d57600080fd5b815167ffffffffffffffff8111156140a457600080fd5b612b9884828501613c8b565b6000602082840312156140c257600080fd5b6000612b988484613cac565b600080604083850312156140e157600080fd5b6000613cf48585613cac565b600080610220838503121561410157600080fd5b600061410d8585613cac565b9250506020613d0585828601613be1565b6000806040838503121561413157600080fd5b6000613e248585613cac565b6000806040838503121561415057600080fd5b600061415c8585613c80565b9250506020613d0585828601613c80565b600061417983836142f2565b50506104000190565b600061418e838361439f565b9392505050565b600061417983836144ad565b60006141ad83836145b4565b505060200190565b600061418e8383614573565b60006141cd8383614b48565b505060a00190565b6141de8161542a565b82525050565b6141ed8161511e565b6141f78184610aa0565b92506142028261510f565b8060005b8381101561423057815161421a878261416d565b96506142258361513e565b925050600101614206565b505050505050565b60006142438261511e565b61424d8185610aa0565b93508360208202850161425f8561510f565b8060005b85811015614299578484038952815161427c8582614182565b94506142878361513e565b60209a909a0199925050600101614263565b5091979650505050505050565b6142af8161511e565b6142b98184610aa0565b92506142c48261510f565b8060005b838110156142305781516142dc8782614195565b96506142e78361513e565b9250506001016142c8565b6142fb8161511e565b6143058184610aa0565b92506143108261510f565b8060005b8381101561423057815161432887826141a1565b96506143338361513e565b925050600101614314565b600061434982615124565b6143538185610aa0565b9350836020820285016143658561510f565b8060005b85811015614299578484038952815161438285826141b5565b945061438d8361513e565b60209a909a0199925050600101614369565b60006143aa8261511e565b6143b48185610aa0565b9350836020820285016143c68561510f565b8060005b8581101561429957848403895281516143e385826141b5565b94506143ee8361513e565b60209a909a01999250506001016143ca565b600061440b8261512a565b6144158185610aa0565b9350836020820285016144278561510f565b8060005b85811015614299578484038952815161444485826141b5565b945061444f8361513e565b60209a909a019992505060010161442b565b61446a81615130565b6144748184610aa0565b925061447f8261510f565b8060005b8381101561423057815161449787826141c1565b96506144a28361513e565b925050600101614483565b6144b68161511e565b6144c08184610aa0565b92506144cb8261510f565b8060005b838110156142305781516144e387826141a1565b96506144ee8361513e565b9250506001016144cf565b600061450482615136565b61450e818561514a565b935061451983615112565b8060005b8381101561454e5761452e826155a4565b61453888826141a1565b975061454383615144565b92505060010161451d565b509495945050505050565b6141de81615435565b6141de61456e8261510f565b61510f565b600061457e8261513a565b614588818561514a565b9350614598818560208601615485565b6145a1816155b0565b9093019392505050565b6141de81615463565b6141de8161510f565b6141de8161546e565b60006145d360068361514a565b6514185d5cd95960d21b815260200192915050565b60006145f5602b8361514a565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b600061464260328361514a565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b600061469660268361514a565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b60006146de601c8361514a565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b600061471760248361514a565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b600061475d60198361514a565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000614796602c8361514a565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b60006147e460388361514a565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000614843602a8361514a565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b600061488f60298361514a565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b60006148da60208361514a565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b600061491360088361514a565b67496e61637469766560c01b815260200192915050565b6000614937602c8361514a565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061498560208361514a565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006149be60298361514a565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000614a0960218361514a565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000610eb2600083610aa0565b6000614a5960318361514a565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000614aac602c8361514a565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000614afa601f8361514a565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b6000614b3360068361514a565b6504d61782031360d41b815260200192915050565b805160a0830190614b5984826145b4565b506020820151614b6c60208501826145b4565b506040820151614b7f60408501826145b4565b506060820151614b9260608501826145b4565b50608082015161229f60808501826145b4565b8051600090610160840190614bba85826145b4565b506020830151614bcd60208601826145b4565b506040830151614be060408601826145b4565b506060830151614bf360608601826145b4565b506080830151614c0660808601826145b4565b5060a0830151614c1960a08601826145b4565b5060c0830151614c2c60c08601826145b4565b5060e0830151614c3f60e08601826145b4565b50610100830151848203610100860152614c598282614573565b915050610120830151848203610120860152614c75828261433e565b915050610140830151848203610140860152614c918282614400565b95945050505050565b6000610eb282614a3f565b6000614cb18286614562565b602082019150614cc18285614562565b602082019150614cd18284614562565b506020019392505050565b60208101610eb282846141d5565b60808101614cf882876141d5565b614d0560208301866141d5565b614d1260408301856145b4565b8181036060830152614d248184614573565b9695505050505050565b6180008101610eb282846141e4565b6020808252810161418e8184614238565b6180008101610eb282846142a6565b610c808101610eb28284614461565b60208101610eb28284614559565b60208101610eb282846145ab565b60208101610eb282846145b4565b6020808252810161418e8184614573565b60208082528101610a9d816145c6565b60208082528101610a9d816145e8565b60208082528101610a9d81614635565b60208082528101610a9d81614689565b60208082528101610a9d816146d1565b60208082528101610a9d8161470a565b60208082528101610a9d81614750565b60208082528101610a9d81614789565b60208082528101610a9d816147d7565b60208082528101610a9d81614836565b60208082528101610a9d81614882565b60208082528101610a9d816148cd565b60208082528101610a9d81614906565b60208082528101610a9d8161492a565b60208082528101610a9d81614978565b60208082528101610a9d816149b1565b60208082528101610a9d816149fc565b60208082528101610a9d81614a4c565b60208082528101610a9d81614a9f565b60208082528101610a9d81614aed565b60208082528101610a9d81614b26565b6020808252810161418e8184614ba5565b60408101614f1682856145b4565b61418e60208301846141d5565b60a08101614f3182886145b4565b614f3e60208301876145bd565b614f4b60408301866145b4565b614f5860608301856145b4565b614d2460808301846145b4565b60408101614f7382856145b4565b61418e60208301846145b4565b60608101614f8e82866145b4565b614f9b60208301856145b4565b612b9860408301846145b4565b60a08101614fb682886145b4565b614fc360208301876145b4565b614fd060408301866145b4565b614fdd60608301856145b4565b8181036080830152614fef81846144f9565b979650505050505050565b60a0810161500882886145b4565b614f3e60208301876145b4565b60c0810161502382896145b4565b61503060208301886145b4565b61503d60408301876145b4565b61504a60608301866145b4565b61505760808301856145b4565b81810360a083015261506981846144f9565b98975050505050505050565b60405181810167ffffffffffffffff811182821017156150975761509761558e565b604052919050565b600067ffffffffffffffff8211156150b9576150b961558e565b5060209081020190565b600067ffffffffffffffff8211156150dd576150dd61558e565b5060200290565b600067ffffffffffffffff8211156150fe576150fe61558e565b506020601f91909101601f19160190565b90565b60009081526020902090565b50602090565b50600a90565b50600990565b50601490565b5490565b5190565b60200190565b60010190565b90815260200190565b600061515e8261510f565b91506151698361510f565b9250821982111561517c5761517c615536565b500190565b600061518c8261510f565b91506151978361510f565b9250826151a6576151a661554c565b500490565b80825b60018511156151e9578086048111156151c9576151c9615536565b60018516156151d757908102905b80026151e2856155ba565b94506151ae565b94509492505050565b60006151fd8261510f565b91506152088361545d565b925061418e60001984846000826152215750600161418e565b8161522e5750600061418e565b8160018114615244576002811461524e5761527b565b600191505061418e565b60ff84111561525f5761525f615536565b8360020a91508482111561527557615275615536565b5061418e565b5060208310610133831016604e8410600b84101617156152ae575081810a838111156152a9576152a9615536565b61418e565b6152bb84848460016151ab565b925090508184048111156152d1576152d1615536565b0292915050565b60006152e38261510f565b91506152ee8361510f565b9250826001600160ff1b03048211600084136000841316161561531357615313615536565b81600160ff1b058312600084126000841316161561533357615333615536565b82600160ff1b058212600084136000841216161561535357615353615536565b826001600160ff1b03058212600084126000841216161561537657615376615536565b500290565b60006153868261510f565b91506153918361510f565b925081600019048311821515161561537657615376615536565b60006153b68261510f565b91506153c18361510f565b925082600160ff1b018212600084121516156153df576153df615536565b826001600160ff1b030182136000841216156153fd576153fd615536565b500390565b600061540d8261510f565b91506154188361510f565b9250828210156153fd576153fd615536565b6000610a9d82615451565b151590565b6001600160e01b03191690565b80610aa0816155c0565b6001600160a01b031690565b60ff1690565b6000610a9d82615447565b6000610a9d8261510f565b82818337506000910152565b60005b838110156154a0578181015183820152602001615488565b8381111561229f5750506000910152565b6002810460018216806154c557607f821691505b60208210811415610d2557610d25615578565b6000610a9d61456e8361510f565b60006154f18261510f565b915060001982141561550557615505615536565b5060010190565b60006155178261510f565b91506155228361510f565b9250826155315761553161554c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6000610a9d82546154d8565b601f01601f191690565b60011c90565b6005811061111757611117615562565b6155d98161542a565b811461111757600080fd5b6155d981615435565b6155d98161543a565b6155d98161510f56fea26469706673582212207f1dbd1b88a506e84c83ec3fae555842e034424a13e4bd67f56f4de2328f67cb64736f6c63430008000033000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff20000000000000000000000002521beb44d433a5b916ad9d5ab51b98378870072

Deployed Bytecode

0x6080604052600436106103905760003560e01c8063715018a6116101dc578063b79bebaf11610102578063cae07d2a116100a0578063e1a283d61161006f578063e1a283d614610a03578063e6ec320e14610a18578063e985e9c514610a38578063f2fde38b14610a5857610397565b8063cae07d2a14610999578063d082e381146109ae578063d359fc19146109c3578063d41845d0146109e357610397565b8063bf514465116100dc578063bf51446514610922578063c4ae31681461094f578063c50497ae14610964578063c87b56dd1461097957610397565b8063b79bebaf146108c2578063b88d4fde146108e2578063b9173bb61461090257610397565b80638da5cb5b1161017a578063a0712d6811610149578063a0712d681461085a578063a22cb4651461086d578063a6e602101461088d578063ab2f711e146108a257610397565b80638da5cb5b146107f05780639047abbe1461080557806395d89b41146108255780639bac5f7a1461083a57610397565b80637d94792a116101b65780637d94792a1461079e5780637f46882f146107b35780638a61413c146107c85780638d859f3e146107db57610397565b8063715018a61461074957806371d985b31461075e57806373e687a81461077e57610397565b806332cb6b0c116102c15780635dd503501161025f5780636ae9a57e1161022e5780636ae9a57e146106d25780636c43c5a9146106e75780636f705c08146106fc57806370a082311461072957610397565b80635dd50350146106505780635e6d10f2146106705780636352211e1461068557806363be6ad4146106a557610397565b806343083f0e1161029b57806343083f0e146105ce578063473a3abf146105e35780634f6ccce714610610578063502f260c1461063057610397565b806332cb6b0c146105845780633ccfd60b1461059957806342842e0e146105ae57610397565b8063209ad1051161032e5780632f745c59116103085780632f745c59146105025780632fb16bc8146105225780633000436f146105375780633107cbac1461055757610397565b8063209ad105146104a257806323b872dd146104c257806329fdf854146104e257610397565b8063095ea7b31161036a578063095ea7b31461041e578063158ac44e1461043e57806318160ddd1461046b57806318e20a381461048d57610397565b806301ffc9a71461039957806306fdde03146103cf578063081812fc146103f157610397565b3661039757005b005b3480156103a557600080fd5b506103b96103b4366004613fde565b610a78565b6040516103c69190614d6c565b60405180910390f35b3480156103db57600080fd5b506103e4610aa5565b6040516103c69190614d96565b3480156103fd57600080fd5b5061041161040c3660046140b0565b610b37565b6040516103c69190614cdc565b34801561042a57600080fd5b50610397610439366004613e05565b610b83565b34801561044a57600080fd5b5061045e6104593660046140b0565b610c1b565b6040516103c69190614d2e565b34801561047757600080fd5b50610480610d2b565b6040516103c69190614d88565b34801561049957600080fd5b50610480610d31565b3480156104ae57600080fd5b506104116104bd3660046140b0565b610d55565b3480156104ce57600080fd5b506103976104dd366004613d0f565b610d70565b3480156104ee57600080fd5b506103976104fd366004613fa8565b610da8565b34801561050e57600080fd5b5061048061051d366004613e05565b610e63565b34801561052e57600080fd5b506103b9610eb8565b34801561054357600080fd5b506103976105523660046140ce565b610ec1565b34801561056357600080fd5b506105776105723660046140b0565b610f15565b6040516103c69190614d4e565b34801561059057600080fd5b50610480611062565b3480156105a557600080fd5b50610397611068565b3480156105ba57600080fd5b506103976105c9366004613d0f565b61111a565b3480156105da57600080fd5b50610397611135565b3480156105ef57600080fd5b506106036105fe3660046140b0565b6111ec565b6040516103c69190614d3d565b34801561061c57600080fd5b5061048061062b3660046140b0565b61133c565b34801561063c57600080fd5b5061039761064b3660046140ed565b611397565b34801561065c57600080fd5b5061048061066b3660046140b0565b61152f565b34801561067c57600080fd5b50610480611541565b34801561069157600080fd5b506104116106a03660046140b0565b611547565b3480156106b157600080fd5b506106c56106c03660046140b0565b61157c565b6040516103c69190614ef7565b3480156106de57600080fd5b506103976119fd565b3480156106f357600080fd5b50610397611b0e565b34801561070857600080fd5b5061071c6107173660046140b0565b611b61565b6040516103c69190614d7a565b34801561073557600080fd5b50610480610744366004613cb7565b611b76565b34801561075557600080fd5b50610397611bba565b34801561076a57600080fd5b50610397610779366004613cb7565b611c05565b34801561078a57600080fd5b506104116107993660046140b0565b611c97565b3480156107aa57600080fd5b50610480611cc2565b3480156107bf57600080fd5b50610480611cc8565b6103976107d63660046140b0565b611cce565b3480156107e757600080fd5b50610480611e75565b3480156107fc57600080fd5b50610411611e81565b34801561081157600080fd5b50610397610820366004613e35565b611e90565b34801561083157600080fd5b506103e4611f67565b34801561084657600080fd5b506103e46108553660046140b0565b611f76565b6103976108683660046140b0565b6120c0565b34801561087957600080fd5b50610397610888366004613dd5565b612177565b34801561089957600080fd5b50610411612189565b3480156108ae57600080fd5b506104806108bd3660046140b0565b6121ad565b3480156108ce57600080fd5b506103e46108dd3660046140b0565b6121bf565b3480156108ee57600080fd5b506103976108fd366004613d5c565b612266565b34801561090e57600080fd5b5061048061091d36600461411e565b6122a5565b34801561092e57600080fd5b5061094261093d3660046140b0565b6122d6565b6040516103c69190614d5d565b34801561095b57600080fd5b506103976124ee565b34801561097057600080fd5b5061048061254a565b34801561098557600080fd5b506103e46109943660046140b0565b61255b565b3480156109a557600080fd5b50610480612749565b3480156109ba57600080fd5b50610480612750565b3480156109cf57600080fd5b506103976109de3660046140b0565b612756565b3480156109ef57600080fd5b506104116109fe3660046140b0565b612885565b348015610a0f57600080fd5b506103b96128a0565b348015610a2457600080fd5b50610397610a33366004613e05565b6128ae565b348015610a4457600080fd5b506103b9610a53366004613cd5565b61292c565b348015610a6457600080fd5b50610397610a73366004613cb7565b61295a565b60006001600160e01b0319821663780e9d6360e01b1480610a9d5750610a9d826129c8565b90505b919050565b606060008054610ab4906154b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae0906154b1565b8015610b2d5780601f10610b0257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610b1057829003601f168201915b5050505050905090565b6000610b4282612a08565b610b675760405162461bcd60e51b8152600401610b5e90614e77565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b8e82611547565b9050806001600160a01b0316836001600160a01b03161415610bc25760405162461bcd60e51b8152600401610b5e90614ea7565b806001600160a01b0316610bd4612a25565b6001600160a01b03161480610bf05750610bf081610a53612a25565b610c0c5760405162461bcd60e51b8152600401610b5e90614e27565b610c168383612a29565b505050565b610c236134f3565b81601554600014158015610c3b5750610c3b81612a08565b610c4457600080fd5b6000838152612b786020526040902054612b7780549091908110610c7857634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260169091526040909120546015546001600160a01b039092169163af3acd949190610cb342612a97565b6040518463ffffffff1660e01b8152600401610cd193929190614f80565b6180006040518083038186803b158015610cea57600080fd5b505afa158015610cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d229190613e6a565b91505b50919050565b60085490565b7f0000000000000000000000000000000000000000000000000000000061c5d1f181565b6013602052600090815260409020546001600160a01b031681565b610d81610d7b612a25565b82612b1b565b610d9d5760405162461bcd60e51b8152600401610b5e90614eb7565b610c16838383612ba0565b612b77548110610db757600080fd5b60005b8251811015610c1657610df3838281518110610de657634e487b7160e01b600052603260045260246000fd5b6020026020010151611547565b6001600160a01b0316336001600160a01b031614610e1057600080fd5b81612b786000858481518110610e3657634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080610e5b906154e6565b915050610dba565b6000610e6e83611b76565b8210610e8c5760405162461bcd60e51b8152600401610b5e90614db7565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600d5460ff1681565b610eca82611547565b6001600160a01b0316336001600160a01b031614610ee757600080fd5b60009182526014602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b610f1d613521565b81601554600014158015610f355750610f3581612a08565b610f3e57600080fd5b6000838152612b786020526040902054612b7780549091908110610f7257634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b039091169063d4920e7b9060ff166004811115610fc257634e487b7160e01b600052602160045260246000fd5b600086815260166020526040902054601554610fdd42612a97565b6000898152601260205260409081902090516001600160e01b031960e088901b168152611011959493929190600401614fa8565b6180006040518083038186803b15801561102a57600080fd5b505afa15801561103e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d229190613ebe565b612b6081565b611070612a25565b6001600160a01b0316611081611e81565b6001600160a01b0316146110a75760405162461bcd60e51b8152600401610b5e90614e87565b60006110b1611e81565b6001600160a01b0316476040516110c790614c9a565b60006040518083038185875af1925050503d8060008114611104576040519150601f19603f3d011682016040523d82523d6000602084013e611109565b606091505b505090508061111757600080fd5b50565b610c1683838360405180602001604052806000815250612266565b60155415801561117e575061114e6104b0612b60615402565b600c5410158061117e57507f0000000000000000000000000000000000000000000000000000000061c5d1f14210155b61118757600080fd5b612b60611195600143615402565b6111a091904061550c565b60158190556111af5760016015555b7f582fed560f3649624fbe512f240792c513414bcbbe26fc480454176615bd9447426015546040516111e2929190614f65565b60405180910390a1565b6111f461354f565b8160155460001415801561120c575061120c81612a08565b61121557600080fd5b6000838152612b786020526040902054612b778054909190811061124957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b0390911690632048c6739060ff16600481111561129957634e487b7160e01b600052602160045260246000fd5b6000868152601660205260409020546015546112b442612a97565b6000898152601260205260409081902090516001600160e01b031960e088901b1681526112e8959493929190600401614fa8565b60006040518083038186803b15801561130057600080fd5b505afa158015611314573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d229190810190613e89565b6000611346610d2b565b82106113645760405162461bcd60e51b8152600401610b5e90614ec7565b6008828154811061138557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6113a082611547565b6001600160a01b0316336001600160a01b031614806113d557506000828152601460205260409020546001600160a01b031633145b801561141e575060008281526011602052604090205460029060ff16600481111561141057634e487b7160e01b600052602160045260246000fd5b61141a919061550c565b6001145b61142757600080fd5b600082815260136020908152604080832080546001600160a01b03191633179055601190915290205460ff16600481111561147257634e487b7160e01b600052602160045260246000fd5b61147d906001615153565b600481111561149c57634e487b7160e01b600052602160045260246000fd5b6000838152601160205260409020805460ff191660018360048111156114d257634e487b7160e01b600052602160045260246000fd5b021790555060008281526012602052604090206114f19082601061357d565b507f45be0e1ab4f13227fa0c4e2419af72c74f30c385b00c34497e68550f3b40dedb8233604051611523929190614f08565b60405180910390a15050565b60106020526000908152604090205481565b6104b081565b6000818152600260205260408120546001600160a01b031680610a9d5760405162461bcd60e51b8152600401610b5e90614e47565b6115846135c8565b8160155460001415801561159c575061159c81612a08565b6115a557600080fd5b6000838152612b786020526040812054612b77805490919081106115d957634e487b7160e01b600052603260045260246000fd5b60009182526020822001546015546001600160a01b0390911692506116029062033b60906152d8565b60008681526016602052604080822054601554915163d55dd04360e01b8152939450919283926001600160a01b0387169263d55dd04392611647929190600401614f65565b604080518083038186803b15801561165e57600080fd5b505afa158015611672573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611696919061413d565b915091506000846001600160a01b031663045a16df846040518263ffffffff1660e01b81526004016116c89190614d88565b60206040518083038186803b1580156116e057600080fd5b505afa1580156116f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611718919061401a565b601554604051630e1f4fcd60e21b81529192506001600160a01b0387169163387d3f349161174c9187918791600401614f80565b60206040518083038186803b15801561176457600080fd5b505afa158015611778573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061179c919061401a565b876080018181525050846001600160a01b0316631c96531d84846015546117c242612a97565b426040518663ffffffff1660e01b81526004016117e3959493929190614ffa565b60606040518083038186803b1580156117fb57600080fd5b505afa15801561180f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118339190614038565b60e08a015260c089015260a088015260008881526016602052604090819020546015549151631563970160e01b81526001600160a01b0388169263156397019261188292909190600401614f65565b60006040518083038186803b15801561189a57600080fd5b505afa1580156118ae573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118d69190810190613edd565b6101008901526101208801526000888152601660205260409081902054601554915163eaaaf94760e01b81526001600160a01b0388169263eaaaf9479261192292909190600401614f65565b60006040518083038186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119769190810190613f3c565b50505061014088015261198a836001615153565b6020880152611999818361550c565b60408801526119a88183615181565b606088015260a0870180518591906119c19083906153ab565b90525060c0870180518591906119d89083906153ab565b90525060e0870180518591906119ef9083906153ab565b905250505050505050919050565b6002600a541415611a205760405162461bcd60e51b8152600401610b5e90614ed7565b6002600a556001336000908152600e602052604090205460ff166002811115611a5957634e487b7160e01b600052602160045260246000fd5b14611a6357600080fd5b336000818152600e60205260409020805460ff19166002179055611a88906001612ccd565b6001600f6000828254611a9b9190615153565b9091555050600c8054600090815260106020908152604080832043905583548352601190915290819020805460ff19166003179055905490517f41469549673f9fcac40591db4dfa9089e9ed2b430b749c4eb6586195721b8c1d91611aff91614d88565b60405180910390a16001600a55565b611b16612a25565b6001600160a01b0316611b27611e81565b6001600160a01b031614611b4d5760405162461bcd60e51b8152600401610b5e90614e87565b600d805460ff19811660ff90911615179055565b60116020526000908152604090205460ff1681565b60006001600160a01b038216611b9e5760405162461bcd60e51b8152600401610b5e90614e37565b506001600160a01b031660009081526003602052604090205490565b611bc2612a25565b6001600160a01b0316611bd3611e81565b6001600160a01b031614611bf95760405162461bcd60e51b8152600401610b5e90614e87565b611c036000612d17565b565b611c0d612a25565b6001600160a01b0316611c1e611e81565b6001600160a01b031614611c445760405162461bcd60e51b8152600401610b5e90614e87565b612b7780546001810182556000919091527fa8e03d383aaeb8ac9cee38cfc7a3e9df720a59460a08160c6b079f8e0b5521040180546001600160a01b0319166001600160a01b0392909216919091179055565b612b778181548110611ca857600080fd5b6000918252602090912001546001600160a01b0316905081565b60155481565b600f5481565b6002600a541415611cf15760405162461bcd60e51b8152600401610b5e90614ed7565b6002600a9081558190811115611d195760405162461bcd60e51b8152600401610b5e90614ee7565b80611d286104b0612b60615402565b611d329190615402565b600c5411158015611d545750611d506702386f26fc1000008261537b565b3410155b611d5d57600080fd5b600d5460ff16611d7f5760405162461bcd60e51b8152600401610b5e90614e67565b6064611d8a33611b76565b11158015611e5957506040516370a0823160e01b815260009073ff9c1b15b16263c61d017ee9f65c50e4ae0113d7906370a0823190611dcd903390600401614cdc565b60206040518083038186803b158015611de557600080fd5b505afa158015611df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1d919061401a565b1180611e595750336000908152600e602052604081205460ff166002811115611e5657634e487b7160e01b600052602160045260246000fd5b14155b611e6257600080fd5b611e6c3383612ccd565b50506001600a55565b6702386f26fc10000081565b600b546001600160a01b031690565b611e98612a25565b6001600160a01b0316611ea9611e81565b6001600160a01b031614611ecf5760405162461bcd60e51b8152600401610b5e90614e87565b60005b8151811015611f63576001600e6000848481518110611f0157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19166001836002811115611f4c57634e487b7160e01b600052602160045260246000fd5b021790555080611f5b816154e6565b915050611ed2565b5050565b606060018054610ab4906154b1565b606081601554600014158015611f905750611f9081612a08565b611f9957600080fd5b6000838152612b786020526040902054612b7780549091908110611fcd57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b0390911690632cff78d89060ff16600481111561201d57634e487b7160e01b600052602160045260246000fd5b60008681526016602052604090205460155461203842612a97565b6000898152601260205260409081902090516001600160e01b031960e088901b16815261206c959493929190600401614fa8565b60006040518083038186803b15801561208457600080fd5b505afa158015612098573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d22919081019061407b565b6002600a5414156120e35760405162461bcd60e51b8152600401610b5e90614ed7565b6002600a908155819081111561210b5760405162461bcd60e51b8152600401610b5e90614ee7565b8061211a6104b0612b60615402565b6121249190615402565b600c541115801561214657506121426702386f26fc1000008261537b565b3410155b61214f57600080fd5b600d54610100900460ff1615611e625760405162461bcd60e51b8152600401610b5e90614da7565b611f63612182612a25565b8383612d69565b7f0000000000000000000000002521beb44d433a5b916ad9d5ab51b9837887007281565b60166020526000908152604090205481565b6060816015546000141580156121d957506121d981612a08565b6121e257600080fd5b6000838152612b786020526040902054612b778054909190811061221657634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015485835260119091526040909120546001600160a01b0390911690632907c2c49060ff16600481111561201d57634e487b7160e01b600052602160045260246000fd5b612277612271612a25565b83612b1b565b6122935760405162461bcd60e51b8152600401610b5e90614eb7565b61229f84848484612e0c565b50505050565b601260205281600052604060002081815481106122c157600080fd5b90600052602060002001600091509150505481565b6122de61362d565b6000612b7760008154811061230357634e487b7160e01b600052603260045260246000fd5b60009182526020822001546001600160a01b0316915061232284612a97565b9050600062033b6060155461233791906152d8565b90506000806000805b60148110156124e257866001600160a01b0316631c96531d8260006015548a8e6040518663ffffffff1660e01b8152600401612380959493929190614f23565b60606040518083038186803b15801561239857600080fd5b505afa1580156123ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d09190614038565b6040805160a081019091529296509094509250806123ef836001615153565b81526020016002896001600160a01b031663045a16df856040518263ffffffff1660e01b81526004016124229190614d88565b60206040518083038186803b15801561243a57600080fd5b505afa15801561244e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612472919061401a565b61247c91906151f2565b815260200161248b87876153ab565b815260200161249a87866153ab565b81526020016124a987856153ab565b90528882601481106124cb57634e487b7160e01b600052603260045260246000fd5b6020020152806124da816154e6565b915050612340565b50505050505050919050565b6124f6612a25565b6001600160a01b0316612507611e81565b6001600160a01b03161461252d5760405162461bcd60e51b8152600401610b5e90614e87565b600d805461ff001981166101009182900460ff1615909102179055565b6125586104b0612b60615402565b81565b60606015546000141561261f57612b7760008154811061258b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516358e7c27960e11b81526001600160a01b039091169063b1cf84f2906125c4908590600401614d88565b60006040518083038186803b1580156125dc57600080fd5b505afa1580156125f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612618919081019061407b565b9050610aa0565b6000828152612b786020526040902054612b778054909190811061265357634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015484835260119091526040909120546001600160a01b03909116906322bc92b090849060ff1660048111156126a557634e487b7160e01b600052602160045260246000fd5b6000868152601660205260409020546015546126c042612a97565b6000898152601260205260409081902090516001600160e01b031960e089901b1681526126f596959493929190600401615015565b60006040518083038186803b15801561270d57600080fd5b505afa158015612721573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a9d919081019061407b565b62033b6081565b600c5481565b61275f81611547565b6001600160a01b0316336001600160a01b03161461277c57600080fd5b6000818152601060209081526040808320439055601190915281205460ff1660048111156127ba57634e487b7160e01b600052602160045260246000fd5b14156127d9576001600f60008282546127d39190615153565b90915550505b60008181526011602052604090205460029060ff16600481111561280d57634e487b7160e01b600052602160045260246000fd5b1115612831576000818152601160205260409020805460ff1916600317905561284b565b6000818152601160205260409020805460ff191660011790555b7f41469549673f9fcac40591db4dfa9089e9ed2b430b749c4eb6586195721b8c1d8160405161287a9190614d88565b60405180910390a150565b6014602052600090815260409020546001600160a01b031681565b600d54610100900460ff1681565b6128b6612a25565b6001600160a01b03166128c7611e81565b6001600160a01b0316146128ed5760405162461bcd60e51b8152600401610b5e90614e87565b6128fb6104b0612b60615402565b600c5410158015612919575061291381612b60615402565b600c5411155b61292257600080fd5b611f638282612ccd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b612962612a25565b6001600160a01b0316612973611e81565b6001600160a01b0316146129995760405162461bcd60e51b8152600401610b5e90614e87565b6001600160a01b0381166129bf5760405162461bcd60e51b8152600401610b5e90614dd7565b61111781612d17565b60006001600160e01b031982166380ac58cd60e01b14806129f957506001600160e01b03198216635b5e139f60e01b145b80610a9d5750610a9d82612e3f565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a5e82611547565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080600f546312cc0300612aac919061537b565b612ad6907f0000000000000000000000000000000000000000000000000000000061c5d1f1615153565b90506101f4600f54101580612aeb5750808311155b15612afa576000915050610aa0565b6301e13380612b098285615402565b612b139190615181565b915050610aa0565b6000612b2682612a08565b612b425760405162461bcd60e51b8152600401610b5e90614e17565b6000612b4d83611547565b9050806001600160a01b0316846001600160a01b03161480612b885750836001600160a01b0316612b7d84610b37565b6001600160a01b0316145b80612b985750612b98818561292c565b949350505050565b826001600160a01b0316612bb382611547565b6001600160a01b031614612bd95760405162461bcd60e51b8152600401610b5e90614e97565b6001600160a01b038216612bff5760405162461bcd60e51b8152600401610b5e90614df7565b612c0a838383612e58565b612c15600082612a29565b6001600160a01b0383166000908152600360205260408120805460019290612c3e908490615402565b90915550506001600160a01b0382166000908152600360205260408120805460019290612c6c908490615153565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c545b612cdb8282615153565b600c541015610c1657612cec612e83565b6001600c6000828254612cff9190615153565b92505081905550612d1283600c5461301f565b612cd1565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612d9b5760405162461bcd60e51b8152600401610b5e90614e07565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612dff908590614d6c565b60405180910390a3505050565b612e17848484612ba0565b612e2384848484613039565b61229f5760405162461bcd60e51b8152600401610b5e90614dc7565b6001600160e01b031981166301ffc9a760e01b14919050565b612e63838383613154565b600090815260146020526040902080546001600160a01b03191690555050565b6000600c54612b60612e959190615402565b905060008082600c54600143612eab9190615402565b4044604051602001612ebf93929190614ca5565b6040516020818303038152906040528051906020012060001c612ee2919061550c565b9050601781612b608110612f0657634e487b7160e01b600052603260045260246000fd5b0154612f1457809150612f3b565b601781612b608110612f3657634e487b7160e01b600052603260045260246000fd5b015491505b6017612f48600185615402565b612b608110612f6757634e487b7160e01b600052603260045260246000fd5b015415612fc5576017612f7b600185615402565b612b608110612f9a57634e487b7160e01b600052603260045260246000fd5b0154601782612b608110612fbe57634e487b7160e01b600052603260045260246000fd5b0155612ff5565b612fd0600184615402565b601782612b608110612ff257634e487b7160e01b600052603260045260246000fd5b01555b8160166000600c5460016130099190615153565b8152602081019190915260400160002055505050565b611f638282604051806020016040528060008152506131dd565b600061304d846001600160a01b0316613210565b1561314957836001600160a01b031663150b7a02613069612a25565b8786866040518563ffffffff1660e01b815260040161308b9493929190614cea565b602060405180830381600087803b1580156130a557600080fd5b505af19250505080156130d5575060408051601f3d908101601f191682019092526130d291810190613ffc565b60015b61312f573d808015613103576040519150601f19603f3d011682016040523d82523d6000602084013e613108565b606091505b5080516131275760405162461bcd60e51b8152600401610b5e90614dc7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b98565b506001949350505050565b61315f838383610c16565b6001600160a01b03831661317b5761317681613216565b61319e565b816001600160a01b0316836001600160a01b03161461319e5761319e838261325a565b6001600160a01b0382166131ba576131b5816132f7565b610c16565b826001600160a01b0316826001600160a01b031614610c1657610c1682826133d0565b6131e78383613414565b6131f46000848484613039565b610c165760405162461bcd60e51b8152600401610b5e90614dc7565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161326784611b76565b6132719190615402565b6000838152600760205260409020549091508082146132c4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061330990600190615402565b6000838152600960205260408120546008805493945090928490811061333f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061336e57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806133b457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006133db83611b76565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661343a5760405162461bcd60e51b8152600401610b5e90614e57565b61344381612a08565b156134605760405162461bcd60e51b8152600401610b5e90614de7565b61346c60008383612e58565b6001600160a01b0382166000908152600360205260408120805460019290613495908490615153565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061040001604052806020905b61350b61365b565b8152602001906001900390816135035790505090565b6040518061040001604052806020905b61353961365b565b8152602001906001900390816135315790505090565b6040518061040001604052806020905b61356761367a565b81526020019060019003908161355f5790505090565b8280548282559060005260206000209081019282156135b8579160200282015b828111156135b857825182559160200191906001019061359d565b506135c49291506136a2565b5090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200161361b6136b7565b81526020016136286136d2565b905290565b6040518061028001604052806014905b6136456136ed565b81526020019060019003908161363d5790505090565b6040518061040001604052806020906020820280368337509192915050565b6040518061040001604052806020905b606081526020019060019003908161368a5790505090565b5b808211156135c457600081556001016136a3565b6040805161014081019091526060815260096020820161368a565b6040805161012081019091526060815260086020820161368a565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600061372f61372a8461509f565b615075565b9050808382526020820190508285602086028201111561374e57600080fd5b60005b8581101561377a57816137648882613ae3565b8452506020928301929190910190600101613751565b5050509392505050565b600061379261372a846150c3565b90508082856104008602820111156137a957600080fd5b60005b8581101561377a57816137bf8882613b69565b84525060209092019161040091909101906001016137ac565b60006137e661372a846150c3565b9050808260005b8581101561377a57815185016138038882613ba5565b84525060209283019291909101906001016137ed565b600061382761372a846150c3565b905080828561040086028201111561383e57600080fd5b60005b8581101561377a57816138548882613bff565b8452506020909201916104009190910190600101613841565b600061387b61372a846150c3565b9050808285602086028201111561389157600080fd5b60005b8581101561377a57816138a78882613c80565b8452506020928301929190910190600101613894565b60006138cb61372a846150c3565b9050808260005b8581101561377a57815185016138e88882613c8b565b84525060209283019291909101906001016138d2565b600061390c61372a846150c3565b9050808260005b8581101561377a57815185016139298882613c8b565b8452506020928301929190910190600101613913565b600061394d61372a846150c3565b9050808260005b8581101561377a578151850161396a8882613c8b565b8452506020928301929190910190600101613954565b600061398e61372a846150c3565b905080828560208602820111156139a457600080fd5b60005b8581101561377a57816139ba8882613cac565b84525060209283019291909101906001016139a7565b60006139de61372a846150c3565b905080828560208602820111156139f457600080fd5b60005b8581101561377a5781613a0a8882613c80565b84525060209283019291909101906001016139f7565b6000613a2e61372a8461509f565b90508083825260208201905082856020860282011115613a4d57600080fd5b60005b8581101561377a5781613a638882613cac565b8452506020928301929190910190600101613a50565b6000613a8761372a846150e4565b905082815260208101848484011115613a9f57600080fd5b613aaa848285615479565b509392505050565b6000613ac061372a846150e4565b905082815260208101848484011115613ad857600080fd5b613aaa848285615485565b8035610eb2816155d0565b600082601f830112613aff57600080fd5b8135612b9884826020860161371c565b600082601f830112613b2057600080fd5b6020612b98848285613784565b600082601f830112613b3e57600080fd5b6020612b988482856137d8565b600082601f830112613b5c57600080fd5b6020612b98848285613819565b600082601f830112613b7a57600080fd5b6020612b9884828561386d565b600082601f830112613b9857600080fd5b600a612b988482856138bd565b600082601f830112613bb657600080fd5b6020612b988482856138fe565b600082601f830112613bd457600080fd5b6009612b9884828561393f565b600082601f830112613bf257600080fd5b6010612b98848285613980565b600082601f830112613c1057600080fd5b6020612b988482856139d0565b600082601f830112613c2e57600080fd5b8135612b98848260208601613a20565b8035610eb2816155e4565b8035610eb2816155ed565b8051610eb2816155ed565b600082601f830112613c7057600080fd5b8135612b98848260208601613a79565b8051610eb2816155f6565b600082601f830112613c9c57600080fd5b8151612b98848260208601613ab2565b8035610eb2816155f6565b600060208284031215613cc957600080fd5b6000612b988484613ae3565b60008060408385031215613ce857600080fd5b6000613cf48585613ae3565b9250506020613d0585828601613ae3565b9150509250929050565b600080600060608486031215613d2457600080fd5b6000613d308686613ae3565b9350506020613d4186828701613ae3565b9250506040613d5286828701613cac565b9150509250925092565b60008060008060808587031215613d7257600080fd5b6000613d7e8787613ae3565b9450506020613d8f87828801613ae3565b9350506040613da087828801613cac565b925050606085013567ffffffffffffffff811115613dbd57600080fd5b613dc987828801613c5f565b91505092959194509250565b60008060408385031215613de857600080fd5b6000613df48585613ae3565b9250506020613d0585828601613c3e565b60008060408385031215613e1857600080fd5b6000613e248585613ae3565b9250506020613d0585828601613cac565b600060208284031215613e4757600080fd5b813567ffffffffffffffff811115613e5e57600080fd5b612b9884828501613aee565b60006180008284031215613e7d57600080fd5b6000612b988484613b0f565b600060208284031215613e9b57600080fd5b815167ffffffffffffffff811115613eb257600080fd5b612b9884828501613b2d565b60006180008284031215613ed157600080fd5b6000612b988484613b4b565b60008060408385031215613ef057600080fd5b825167ffffffffffffffff811115613f0757600080fd5b613f1385828601613b87565b925050602083015167ffffffffffffffff811115613f3057600080fd5b613d0585828601613c8b565b60008060008060808587031215613f5257600080fd5b845167ffffffffffffffff811115613f6957600080fd5b613f7587828801613bc3565b9450506020613f8687828801613c80565b9350506040613f9787828801613c80565b9250506060613dc987828801613c80565b60008060408385031215613fbb57600080fd5b823567ffffffffffffffff811115613fd257600080fd5b613e2485828601613c1d565b600060208284031215613ff057600080fd5b6000612b988484613c49565b60006020828403121561400e57600080fd5b6000612b988484613c54565b60006020828403121561402c57600080fd5b6000612b988484613c80565b60008060006060848603121561404d57600080fd5b60006140598686613c80565b935050602061406a86828701613c80565b9250506040613d5286828701613c80565b60006020828403121561408d57600080fd5b815167ffffffffffffffff8111156140a457600080fd5b612b9884828501613c8b565b6000602082840312156140c257600080fd5b6000612b988484613cac565b600080604083850312156140e157600080fd5b6000613cf48585613cac565b600080610220838503121561410157600080fd5b600061410d8585613cac565b9250506020613d0585828601613be1565b6000806040838503121561413157600080fd5b6000613e248585613cac565b6000806040838503121561415057600080fd5b600061415c8585613c80565b9250506020613d0585828601613c80565b600061417983836142f2565b50506104000190565b600061418e838361439f565b9392505050565b600061417983836144ad565b60006141ad83836145b4565b505060200190565b600061418e8383614573565b60006141cd8383614b48565b505060a00190565b6141de8161542a565b82525050565b6141ed8161511e565b6141f78184610aa0565b92506142028261510f565b8060005b8381101561423057815161421a878261416d565b96506142258361513e565b925050600101614206565b505050505050565b60006142438261511e565b61424d8185610aa0565b93508360208202850161425f8561510f565b8060005b85811015614299578484038952815161427c8582614182565b94506142878361513e565b60209a909a0199925050600101614263565b5091979650505050505050565b6142af8161511e565b6142b98184610aa0565b92506142c48261510f565b8060005b838110156142305781516142dc8782614195565b96506142e78361513e565b9250506001016142c8565b6142fb8161511e565b6143058184610aa0565b92506143108261510f565b8060005b8381101561423057815161432887826141a1565b96506143338361513e565b925050600101614314565b600061434982615124565b6143538185610aa0565b9350836020820285016143658561510f565b8060005b85811015614299578484038952815161438285826141b5565b945061438d8361513e565b60209a909a0199925050600101614369565b60006143aa8261511e565b6143b48185610aa0565b9350836020820285016143c68561510f565b8060005b8581101561429957848403895281516143e385826141b5565b94506143ee8361513e565b60209a909a01999250506001016143ca565b600061440b8261512a565b6144158185610aa0565b9350836020820285016144278561510f565b8060005b85811015614299578484038952815161444485826141b5565b945061444f8361513e565b60209a909a019992505060010161442b565b61446a81615130565b6144748184610aa0565b925061447f8261510f565b8060005b8381101561423057815161449787826141c1565b96506144a28361513e565b925050600101614483565b6144b68161511e565b6144c08184610aa0565b92506144cb8261510f565b8060005b838110156142305781516144e387826141a1565b96506144ee8361513e565b9250506001016144cf565b600061450482615136565b61450e818561514a565b935061451983615112565b8060005b8381101561454e5761452e826155a4565b61453888826141a1565b975061454383615144565b92505060010161451d565b509495945050505050565b6141de81615435565b6141de61456e8261510f565b61510f565b600061457e8261513a565b614588818561514a565b9350614598818560208601615485565b6145a1816155b0565b9093019392505050565b6141de81615463565b6141de8161510f565b6141de8161546e565b60006145d360068361514a565b6514185d5cd95960d21b815260200192915050565b60006145f5602b8361514a565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b600061464260328361514a565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b600061469660268361514a565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b60006146de601c8361514a565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b600061471760248361514a565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b600061475d60198361514a565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000614796602c8361514a565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b60006147e460388361514a565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000614843602a8361514a565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b600061488f60298361514a565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b60006148da60208361514a565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b600061491360088361514a565b67496e61637469766560c01b815260200192915050565b6000614937602c8361514a565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061498560208361514a565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b60006149be60298361514a565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000614a0960218361514a565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000610eb2600083610aa0565b6000614a5960318361514a565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000614aac602c8361514a565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000614afa601f8361514a565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b6000614b3360068361514a565b6504d61782031360d41b815260200192915050565b805160a0830190614b5984826145b4565b506020820151614b6c60208501826145b4565b506040820151614b7f60408501826145b4565b506060820151614b9260608501826145b4565b50608082015161229f60808501826145b4565b8051600090610160840190614bba85826145b4565b506020830151614bcd60208601826145b4565b506040830151614be060408601826145b4565b506060830151614bf360608601826145b4565b506080830151614c0660808601826145b4565b5060a0830151614c1960a08601826145b4565b5060c0830151614c2c60c08601826145b4565b5060e0830151614c3f60e08601826145b4565b50610100830151848203610100860152614c598282614573565b915050610120830151848203610120860152614c75828261433e565b915050610140830151848203610140860152614c918282614400565b95945050505050565b6000610eb282614a3f565b6000614cb18286614562565b602082019150614cc18285614562565b602082019150614cd18284614562565b506020019392505050565b60208101610eb282846141d5565b60808101614cf882876141d5565b614d0560208301866141d5565b614d1260408301856145b4565b8181036060830152614d248184614573565b9695505050505050565b6180008101610eb282846141e4565b6020808252810161418e8184614238565b6180008101610eb282846142a6565b610c808101610eb28284614461565b60208101610eb28284614559565b60208101610eb282846145ab565b60208101610eb282846145b4565b6020808252810161418e8184614573565b60208082528101610a9d816145c6565b60208082528101610a9d816145e8565b60208082528101610a9d81614635565b60208082528101610a9d81614689565b60208082528101610a9d816146d1565b60208082528101610a9d8161470a565b60208082528101610a9d81614750565b60208082528101610a9d81614789565b60208082528101610a9d816147d7565b60208082528101610a9d81614836565b60208082528101610a9d81614882565b60208082528101610a9d816148cd565b60208082528101610a9d81614906565b60208082528101610a9d8161492a565b60208082528101610a9d81614978565b60208082528101610a9d816149b1565b60208082528101610a9d816149fc565b60208082528101610a9d81614a4c565b60208082528101610a9d81614a9f565b60208082528101610a9d81614aed565b60208082528101610a9d81614b26565b6020808252810161418e8184614ba5565b60408101614f1682856145b4565b61418e60208301846141d5565b60a08101614f3182886145b4565b614f3e60208301876145bd565b614f4b60408301866145b4565b614f5860608301856145b4565b614d2460808301846145b4565b60408101614f7382856145b4565b61418e60208301846145b4565b60608101614f8e82866145b4565b614f9b60208301856145b4565b612b9860408301846145b4565b60a08101614fb682886145b4565b614fc360208301876145b4565b614fd060408301866145b4565b614fdd60608301856145b4565b8181036080830152614fef81846144f9565b979650505050505050565b60a0810161500882886145b4565b614f3e60208301876145b4565b60c0810161502382896145b4565b61503060208301886145b4565b61503d60408301876145b4565b61504a60608301866145b4565b61505760808301856145b4565b81810360a083015261506981846144f9565b98975050505050505050565b60405181810167ffffffffffffffff811182821017156150975761509761558e565b604052919050565b600067ffffffffffffffff8211156150b9576150b961558e565b5060209081020190565b600067ffffffffffffffff8211156150dd576150dd61558e565b5060200290565b600067ffffffffffffffff8211156150fe576150fe61558e565b506020601f91909101601f19160190565b90565b60009081526020902090565b50602090565b50600a90565b50600990565b50601490565b5490565b5190565b60200190565b60010190565b90815260200190565b600061515e8261510f565b91506151698361510f565b9250821982111561517c5761517c615536565b500190565b600061518c8261510f565b91506151978361510f565b9250826151a6576151a661554c565b500490565b80825b60018511156151e9578086048111156151c9576151c9615536565b60018516156151d757908102905b80026151e2856155ba565b94506151ae565b94509492505050565b60006151fd8261510f565b91506152088361545d565b925061418e60001984846000826152215750600161418e565b8161522e5750600061418e565b8160018114615244576002811461524e5761527b565b600191505061418e565b60ff84111561525f5761525f615536565b8360020a91508482111561527557615275615536565b5061418e565b5060208310610133831016604e8410600b84101617156152ae575081810a838111156152a9576152a9615536565b61418e565b6152bb84848460016151ab565b925090508184048111156152d1576152d1615536565b0292915050565b60006152e38261510f565b91506152ee8361510f565b9250826001600160ff1b03048211600084136000841316161561531357615313615536565b81600160ff1b058312600084126000841316161561533357615333615536565b82600160ff1b058212600084136000841216161561535357615353615536565b826001600160ff1b03058212600084126000841216161561537657615376615536565b500290565b60006153868261510f565b91506153918361510f565b925081600019048311821515161561537657615376615536565b60006153b68261510f565b91506153c18361510f565b925082600160ff1b018212600084121516156153df576153df615536565b826001600160ff1b030182136000841216156153fd576153fd615536565b500390565b600061540d8261510f565b91506154188361510f565b9250828210156153fd576153fd615536565b6000610a9d82615451565b151590565b6001600160e01b03191690565b80610aa0816155c0565b6001600160a01b031690565b60ff1690565b6000610a9d82615447565b6000610a9d8261510f565b82818337506000910152565b60005b838110156154a0578181015183820152602001615488565b8381111561229f5750506000910152565b6002810460018216806154c557607f821691505b60208210811415610d2557610d25615578565b6000610a9d61456e8361510f565b60006154f18261510f565b915060001982141561550557615505615536565b5060010190565b60006155178261510f565b91506155228361510f565b9250826155315761553161554c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6000610a9d82546154d8565b601f01601f191690565b60011c90565b6005811061111757611117615562565b6155d98161542a565b811461111757600080fd5b6155d981615435565b6155d98161543a565b6155d98161510f56fea26469706673582212207f1dbd1b88a506e84c83ec3fae555842e034424a13e4bd67f56f4de2328f67cb64736f6c63430008000033

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

000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff20000000000000000000000002521beb44d433a5b916ad9d5ab51b98378870072

-----Decoded View---------------
Arg [0] : _terraformsDataAddress (address): 0xA5aFC9fE76a28fB12C60954Ed6e2e5f8ceF64Ff2
Arg [1] : _terraformsAugmentationsAddress (address): 0x2521bEb44D433A5B916Ad9d5aB51B98378870072

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff2
Arg [1] : 0000000000000000000000002521beb44d433a5b916ad9d5ab51b98378870072


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.