ETH Price: $2,449.15 (+1.21%)

Contract

0x4E88B3D81B3Ac5EE626c9F2e7ea570043a153c8b
 

Overview

ETH Balance

0.02 ETH

Eth Value

$48.98 (@ $2,449.15/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint192919332024-02-23 17:59:35226 days ago1708711175IN
0x4E88B3D8...43a153c8b
0.01 ETH0.002281329.62505289
Set Approval For...191170552024-01-30 4:52:11251 days ago1706590331IN
0x4E88B3D8...43a153c8b
0 ETH0.0005139711.07402757
Set Approval For...188026372023-12-17 1:59:23295 days ago1702778363IN
0x4E88B3D8...43a153c8b
0 ETH0.000847134.54040898
Set Approval For...184432902023-10-27 18:19:59345 days ago1698430799IN
0x4E88B3D8...43a153c8b
0 ETH0.0008977719.34307953
Set Approval For...182030042023-09-24 3:32:23379 days ago1695526343IN
0x4E88B3D8...43a153c8b
0 ETH0.000318836.86942634
Set Approval For...179856312023-08-24 16:03:59409 days ago1692893039IN
0x4E88B3D8...43a153c8b
0 ETH0.0014772831.82910671
Set Approval For...176403582023-07-07 7:10:59458 days ago1688713859IN
0x4E88B3D8...43a153c8b
0 ETH0.0006221425.39261296
Mint175670982023-06-27 0:17:35468 days ago1687825055IN
0x4E88B3D8...43a153c8b
0.01 ETH0.0009959512.52681534
Withdraw171391182023-04-27 17:52:35528 days ago1682617955IN
0x4E88B3D8...43a153c8b
0 ETH0.0012184239.51933576
Set Approval For...168941892023-03-24 1:47:35563 days ago1679622455IN
0x4E88B3D8...43a153c8b
0 ETH0.0006611814.24577305
Mint168360152023-03-15 21:38:47571 days ago1678916327IN
0x4E88B3D8...43a153c8b
0 ETH0.0006282627.42336148
Set Approval For...168306292023-03-15 3:27:11572 days ago1678850831IN
0x4E88B3D8...43a153c8b
0 ETH0.001350229.091036
Set Approval For...168269962023-03-14 15:10:59572 days ago1678806659IN
0x4E88B3D8...43a153c8b
0 ETH0.0026885357.92637758
Mint167997512023-03-10 19:18:35576 days ago1678475915IN
0x4E88B3D8...43a153c8b
0.02 ETH0.0032741230.68472698
Update Script167971772023-03-10 10:36:11577 days ago1678444571IN
0x4E88B3D8...43a153c8b
0 ETH0.0015176331.15136185
Update Script167905132023-03-09 12:00:35577 days ago1678363235IN
0x4E88B3D8...43a153c8b
0 ETH0.0008042825.40877892
Update Script167904352023-03-09 11:44:47577 days ago1678362287IN
0x4E88B3D8...43a153c8b
0 ETH0.0012906822.63016724
Transfer From167492142023-03-03 16:37:35583 days ago1677861455IN
0x4E88B3D8...43a153c8b
0 ETH0.0012975533.63111944
Transfer From167492132023-03-03 16:37:23583 days ago1677861443IN
0x4E88B3D8...43a153c8b
0 ETH0.0014657333.78676586
Transfer From167492122023-03-03 16:37:11583 days ago1677861431IN
0x4E88B3D8...43a153c8b
0 ETH0.0019438532.13934523
Mint167448102023-03-03 1:47:11584 days ago1677808031IN
0x4E88B3D8...43a153c8b
0.01 ETH0.0062243880.81732455
Safe Transfer Fr...167318392023-03-01 5:57:47586 days ago1677650267IN
0x4E88B3D8...43a153c8b
0 ETH0.0009137615.41517952
Mint167247772023-02-28 6:07:59587 days ago1677564479IN
0x4E88B3D8...43a153c8b
0.03 ETH0.0026206318.8673603
Safe Transfer Fr...167120042023-02-26 11:05:59588 days ago1677409559IN
0x4E88B3D8...43a153c8b
0 ETH0.0007416417.58410596
Safe Transfer Fr...167120002023-02-26 11:05:11588 days ago1677409511IN
0x4E88B3D8...43a153c8b
0 ETH0.0008326317.72437963
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
171391182023-04-27 17:52:35528 days ago1682617955
0x4E88B3D8...43a153c8b
0.74 ETH
166183952023-02-13 7:38:23602 days ago1676273903
0x4E88B3D8...43a153c8b
7.6 ETH
166183812023-02-13 7:35:35602 days ago1676273735
0x4E88B3D8...43a153c8b
0.07 ETH
165632372023-02-05 14:39:35609 days ago1675607975
0x4E88B3D8...43a153c8b
0.02 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TerraformAutomata

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

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

pragma solidity ^0.8.12; 

/*          TERRAFORM AUTOMATA

            \(")/
			-( )-
			/(_)\
*/

import "./AutomataData.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/// @title Terraform Automata, onchain cellular automata using Terraforms as a canvas.
/// @author mozrt

contract TerraformAutomata is ERC721, Ownable, AutomataData {

	string public previewURL;
	address public immutable EthFS;

    constructor (
		address _terraformsAddress,
		address _terraformsDataAddress,
		address _terraformsCharsAddress,
		address _fileStoreAddress,
		address _ethFS,
		string memory _previewURL
	) ERC721 (
		"Terraform Automata", "TA"
	) AutomataData (
		_terraformsAddress, 
		_terraformsDataAddress, 
		_terraformsCharsAddress, 
		_fileStoreAddress
	) {
		EthFS = _ethFS;
		previewURL = _previewURL;
    }

    mapping(uint256 => string) public scripts;

	function firstHtml() internal view virtual returns(string memory) {
        string memory startURL = "<html> <head> <meta charset='UTF-8'> <script type='text/javascript+gzip' src='data:text/javascript;base64,";
        string memory interURL = "'></script> <script src='data:text/javascript;base64,";
        string memory lib = getLibraries(EthFS,"p5-v1.5.0.min.js.gz");
		string memory compression = getLibraries(EthFS,"gunzipScripts-0.0.1.js");
        return string.concat(startURL,lib,interURL,compression);
    }

	function getVars(uint tokenId) internal view virtual returns(string memory) {

		uint256[32][32] memory heightmap = getTokenHeightmapIndices(tokenId);
		string[10] memory zone = getTokenSupplementalData(tokenId).zoneColors;
		string[9] memory biome = getTokenSupplementalData(tokenId).characterSet;
		(string memory font, uint256 fontSize) = getFont(tokenId);

		string memory zoneString = string(abi.encodePacked("; const zone = ['", zone[0], "','", zone[1], "','", zone[2], "','", zone[3], "','", zone[4], "','", zone[5], "','", zone[6], "','", zone[7], "','", zone[8], "','", zone[9], "']"));

		string memory biomeString = string(abi.encodePacked("; const biome = ['", biome[0], "','", biome[1], "','", biome[2], "','", biome[3], "','", biome[4], "','", biome[5], "','", biome[6], "','", biome[7], "','", biome[8], "']"));

		string memory vars = string(abi.encodePacked("const heightmap = ", heightToString(heightmap), zoneString, biomeString, "; const fontSize = ", Strings.toString(fontSize),"; const font = 'data:application/font-woff2;charset=utf-8;base64,", font, "';"));

		return vars;
	}

    function tokenHTML(uint tokenId) public view returns(string memory) {

		string memory encoded = "data:text/html;base64,";
		string memory midURL = "'></script> </head> <body> <script>";
		string memory endURL = "</script> </body> </html>";    
		string memory secondHtml = string(abi.encodePacked(midURL, getVars(tokenId), checkScript(tokenId), endURL));
		string memory htmlRaw = string(abi.encodePacked(firstHtml(), secondHtml));
		string memory html = string(abi.encodePacked(encoded, Base64.encode(bytes(htmlRaw))));
		return html;
    }

	function tokenURI (uint tokenId) public view override returns (string memory) {
        string memory baseURL = "data:application/json;base64,";
		string memory URI = Base64.encode(bytes(abi.encodePacked("{\"description\": \"Terraform Automata are onchain cellular automata using Terraforms as a canvas.\", \"external_url\": \"https://www.terraformautomata.xyz/inventory/", Strings.toString(tokenId),"\", \"image\":\"", previewURL, Strings.toString(tokenId), "\", \"animation_url\": \"", tokenHTML(tokenId), "\", \"name\": \"Automaton ", Strings.toString(tokenId), "\"}")));	
		return string(abi.encodePacked(baseURL, URI));
	}

	function updateScript(uint[] memory tokenIds, string memory _script) public {
		for (uint i = 0; i < tokenIds.length; i++) {
			require(msg.sender == ownerOf(tokenIds[i]), "Only the token owner can update the script");
			scripts[tokenIds[i]] = _script;
        }
    }

    function getScript(uint256 _tokenId) public view returns (string memory) {
        return scripts[_tokenId];
    }

	function checkScript(uint tokenId) internal view virtual returns(string memory) {
		string memory script; 

		if (bytes(getScript(tokenId)).length == 0) {
			script = getLibraries(EthFS,"automata.js");
		} else {
			script = getLibraries(EthFS,getScript(tokenId));
		}
        script = string(Base64.decode(script));

		return script;
	}

	function updatePreview(string memory newPreviewURL) public returns (string memory) {
		require(msg.sender == owner(), "Only the contract owner can update the preview URL.");
		previewURL = newPreviewURL; 
		return previewURL;
	}

	function mint(address holder, uint[] memory tokenIds) public payable {
        uint256 cost = 10000000000000000; 
        uint256 total = cost * tokenIds.length;
        require(msg.value >= total, "Insufficient ETH to mint tokens submitted.");

        for (uint i = 0; i < tokenIds.length; i++) {
            require(getTerraformOwner(tokenIds[i]) == holder, "Terraform owned by another address.");
            require(!_exists(tokenIds[i]), "Token already minted.");
            _safeMint(holder, tokenIds[i]);
        }
    }

    function withdraw(uint256 amount) public {
        require(msg.sender == owner(), "Only the contract owner can withdraw funds.");
        require(address(this).balance >= amount, "Not enough funds in the contract to withdraw.");
        payable(owner()).transfer(amount);
    }	
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 5 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 11 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 13 of 14 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

File 14 of 14 : AutomataData.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12; 

import "@openzeppelin/contracts/utils/Strings.sol";
import "base64-sol/base64.sol";

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;
    }

interface ITerraforms {
    function tokenHeightmapIndices(uint) external view returns(uint256[32][32] memory);
    function tokenSupplementalData(uint) external view returns(tokenData memory);  
    function tokenToPlacement(uint) external view returns(uint256);
	function ownerOf(uint) external view returns(address);
}

interface ITerraformsData {
	function characterSet(uint256, uint256) external view returns(string[9] memory, uint256, uint256, uint256);
}

interface ITerraformsChars {
	function font(uint256) external view returns(string memory);
}

interface IFileStore {
	function readFile(address, string memory) external view returns(string memory);
}

contract AutomataData {

	address immutable public terraformsAddress;
	address immutable public terraformsDataAddress;
	address immutable public terraformsCharsAddress;
	address immutable public fileStoreAddress;

	constructor(address _terraformsAddress, address _terraformsDataAddress, address _terraformsCharsAddress, address _fileStoreAddress) {
		terraformsAddress = _terraformsAddress;
		terraformsDataAddress = _terraformsDataAddress;
		terraformsCharsAddress = _terraformsCharsAddress;
		fileStoreAddress = _fileStoreAddress;
	}

   	function getPlacement(uint tokenId) internal view virtual returns(uint256) {
		return ITerraforms(terraformsAddress).tokenToPlacement(tokenId);
	}

	function getCharacterSet(uint256 placement, uint256 seed) internal view virtual returns(string[9] memory, uint256, uint256, uint256) {
		return ITerraformsData(terraformsDataAddress).characterSet(placement, seed);
	}

	function getFontData(uint256 id) internal view virtual returns(string memory) {
		return ITerraformsChars(terraformsCharsAddress).font(id);
	}
	
	function getFont(uint tokenId) internal view virtual returns(string memory, uint256) {
		uint256 placement = getPlacement(tokenId);
		(,uint256 font,uint256 fontSize,) = getCharacterSet(placement, 10196);
		return (getFontData(font),fontSize);
    }

    function getTokenHeightmapIndices(uint tokenId) internal view virtual returns(uint256[32][32] memory) {
    	return ITerraforms(terraformsAddress).tokenHeightmapIndices(tokenId);
    }

    function getTokenSupplementalData(uint tokenId) internal view virtual returns(tokenData memory) {
    	return ITerraforms(terraformsAddress).tokenSupplementalData(tokenId);
    }

	function heightToString(uint256[32][32] memory height) internal view virtual returns(string memory) {
		string memory combinedString = "[";
		for (uint256 i = 0; i < 32; i++) {
  			for (uint256 j = 0; j < 32; j++) {
				combinedString = string.concat(combinedString,Strings.toString(height[i][j]),",");
  			}
		}
		combinedString = string.concat(combinedString,"]");
		return combinedString;
	}

	function getTerraformOwner(uint tokenId) internal view virtual returns(address) {
		return ITerraforms(terraformsAddress).ownerOf(tokenId);
	}

	function getLibraries(address addi, string memory lib) internal view virtual returns(string memory) {
		return IFileStore(fileStoreAddress).readFile(addi, lib);
	}
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000,
    "details": {
      "yul": true,
      "yulDetails": {
        "stackAllocation": true,
        "optimizerSteps": "dhfoDgvulfnTUtnIf"
      }
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_terraformsAddress","type":"address"},{"internalType":"address","name":"_terraformsDataAddress","type":"address"},{"internalType":"address","name":"_terraformsCharsAddress","type":"address"},{"internalType":"address","name":"_fileStoreAddress","type":"address"},{"internalType":"address","name":"_ethFS","type":"address"},{"internalType":"string","name":"_previewURL","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"EthFS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileStoreAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getScript","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"previewURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scripts","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"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":"terraformsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terraformsCharsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terraformsDataAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHTML","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newPreviewURL","type":"string"}],"name":"updatePreview","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string","name":"_script","type":"string"}],"name":"updateScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040523480156200001257600080fd5b50604051620048b6380380620048b68339810160408190526200003591620002bb565b85858585604051806040016040528060128152602001715465727261666f726d204175746f6d61746160701b81525060405180604001604052806002815260200161544160f01b81525081600090816200009091906200046e565b5060016200009f82826200046e565b505050620000bc620000b6620000fb60201b60201c565b620000ff565b6001600160a01b0393841660805291831660a052821660c052811660e0528216610100526007620000ee82826200046e565b505050505050506200053a565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0382165b92915050565b6200016f8162000151565b81146200017b57600080fd5b50565b80516200015e8162000164565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681016001600160401b0381118282101715620001c957620001c96200018b565b6040525050565b6000620001dc60405190565b9050620001ea8282620001a1565b919050565b60006001600160401b038211156200020b576200020b6200018b565b601f19601f83011660200192915050565b60005b83811015620002395781810151838201526020016200021f565b50506000910152565b6000620002596200025384620001ef565b620001d0565b905082815260208101848484011115620002765762000276600080fd5b620002838482856200021c565b509392505050565b600082601f830112620002a157620002a1600080fd5b8151620002b384826020860162000242565b949350505050565b60008060008060008060c08789031215620002d957620002d9600080fd5b6000620002e789896200017e565b9650506020620002fa89828a016200017e565b95505060406200030d89828a016200017e565b94505060606200032089828a016200017e565b93505060806200033389828a016200017e565b60a089015190935090506001600160401b03811115620003565762000356600080fd5b6200036489828a016200028b565b9150509295509295509295565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200039c57607f821691505b602082108103620003b157620003b162000371565b50919050565b60006200015e620003c58381565b90565b620003d383620003b7565b81546008840282811b60001990911b908116901990911617825550505050565b600062000402818484620003c8565b505050565b8181101562000426576200041d600082620003f3565b60010162000407565b5050565b601f82111562000402576000818152602090206020601f85010481016020851015620004535750805b620004676020601f86010483018262000407565b5050505050565b81516001600160401b038111156200048a576200048a6200018b565b62000496825462000387565b620004a38282856200042a565b506020601f821160018114620004db5760008315620004c25750848201515b600019600885021c198116600285021785555062000467565b600084815260208120601f198516915b828110156200050d5787850151825560209485019460019092019101620004eb565b50848210156200052b5783870151600019601f87166008021c191681555b50505050600202600101905550565b60805160a05160c05160e051610100516142ea620005cc60003960008181610506015281816114a60152818161150c0152818161158f01526115f20152600081816105b60152611d1901526000818161040a0152612303015260008181610354015261222f0152600081816103000152818161193e01528181611a8e01528181611b3d01526121aa01526142ea6000f3fe6080604052600436106101c25760003560e01c8063715018a6116100f7578063b88d4fde11610095578063e985e9c511610064578063e985e9c51461053b578063ea146e5114610584578063f1864a12146105a4578063f2fde38b146105d857600080fd5b8063b88d4fde146104b4578063c87b56dd146104d4578063cb4e9844146104f4578063de836ebd1461052857600080fd5b806395d89b41116100d157806395d89b411461044a5780639ca5525f1461045f578063a22cb46514610474578063b79bebaf1461049457600080fd5b8063715018a6146103e357806385fa5245146103f85780638da5cb5b1461042c57600080fd5b80632e1a7d4d11610164578063530bf1051161013e578063530bf105146103425780636352211e146103765780636b4c48fe1461039657806370a08231146103b657600080fd5b80632e1a7d4d146102ce57806341ad6025146102ee57806342842e0e1461032257600080fd5b806308ff7f61116101a057806308ff7f611461024c578063095ea7b31461026c578063128c5a5a1461028e57806323b872dd146102ae57600080fd5b806301ffc9a7146101c757806306fdde03146101fd578063081812fc1461021f575b600080fd5b3480156101d357600080fd5b506101e76101e23660046125c2565b6105f8565b6040516101f491906125ed565b60405180910390f35b34801561020957600080fd5b506102126106dd565b6040516101f49190612651565b34801561022b57600080fd5b5061023f61023a366004612673565b61076f565b6040516101f491906126ae565b34801561025857600080fd5b50610212610267366004612673565b610796565b34801561027857600080fd5b5061028c6102873660046126d0565b610830565b005b34801561029a57600080fd5b5061028c6102a93660046128a1565b6108dc565b3480156102ba57600080fd5b5061028c6102c9366004612909565b610986565b3480156102da57600080fd5b5061028c6102e9366004612673565b6109b7565b3480156102fa57600080fd5b5061023f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561032e57600080fd5b5061028c61033d366004612909565b610a3f565b34801561034e57600080fd5b5061023f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561038257600080fd5b5061023f610391366004612673565b610a5a565b3480156103a257600080fd5b506102126103b1366004612959565b610a8f565b3480156103c257600080fd5b506103d66103d1366004612994565b610b72565b6040516101f491906129bb565b3480156103ef57600080fd5b5061028c610bb6565b34801561040457600080fd5b5061023f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561043857600080fd5b506006546001600160a01b031661023f565b34801561045657600080fd5b50610212610bca565b34801561046b57600080fd5b50610212610bd9565b34801561048057600080fd5b5061028c61048f3660046129dc565b610be6565b3480156104a057600080fd5b506102126104af366004612673565b610bf1565b3480156104c057600080fd5b5061028c6104cf366004612a0f565b610d1f565b3480156104e057600080fd5b506102126104ef366004612673565b610d57565b34801561050057600080fd5b5061023f7f000000000000000000000000000000000000000000000000000000000000000081565b61028c610536366004612a8e565b610e0e565b34801561054757600080fd5b506101e7610556366004612adc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561059057600080fd5b5061021261059f366004612673565b610f39565b3480156105b057600080fd5b5061023f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105e457600080fd5b5061028c6105f3366004612994565b610f56565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061068b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106d757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546106ec90612b25565b80601f016020809104026020016040519081016040528092919081815260200182805461071890612b25565b80156107655780601f1061073a57610100808354040283529160200191610765565b820191906000526020600020905b81548152906001019060200180831161074857829003601f168201915b5050505050905090565b600061077a82610f90565b506000908152600460205260409020546001600160a01b031690565b600860205260009081526040902080546107af90612b25565b80601f01602080910402602001604051908101604052809291908181526020018280546107db90612b25565b80156108285780601f106107fd57610100808354040283529160200191610828565b820191906000526020600020905b81548152906001019060200180831161080b57829003601f168201915b505050505081565b600061083b82610a5a565b9050806001600160a01b0316836001600160a01b0316036108775760405162461bcd60e51b815260040161086e90612bab565b60405180910390fd5b336001600160a01b03821614806108b157506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6108cd5760405162461bcd60e51b815260040161086e90612c13565b6108d78383610fc4565b505050565b60005b82518110156108d75761090a8382815181106108fd576108fd612c23565b6020026020010151610a5a565b6001600160a01b0316336001600160a01b03161461093a5760405162461bcd60e51b815260040161086e90612c91565b816008600085848151811061095157610951612c23565b6020026020010151815260200190815260200160002090816109739190612d3a565b508061097e81612e10565b9150506108df565b610990338261103f565b6109ac5760405162461bcd60e51b815260040161086e90612e82565b6108d78383836110be565b6006546001600160a01b031633146109e15760405162461bcd60e51b815260040161086e90612eea565b80471015610a015760405162461bcd60e51b815260040161086e90612f52565b6006546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610a3b573d6000803e3d6000fd5b5050565b6108d783838360405180602001604052806000815250610d1f565b6000818152600260205260408120546001600160a01b0316806106d75760405162461bcd60e51b815260040161086e90612f96565b6060610aa36006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614610ad35760405162461bcd60e51b815260040161086e90612ffe565b6007610adf8382612d3a565b5060078054610aed90612b25565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1990612b25565b8015610b665780601f10610b3b57610100808354040283529160200191610b66565b820191906000526020600020905b815481529060010190602001808311610b4957829003601f168201915b50505050509050919050565b60006001600160a01b038216610b9a5760405162461bcd60e51b815260040161086e90613066565b506001600160a01b031660009081526003602052604090205490565b610bbe611200565b610bc8600061122a565b565b6060600180546106ec90612b25565b600780546107af90612b25565b610a3b338383611289565b606060006040518060400160405280601681526020017f646174613a746578742f68746d6c3b6261736536342c00000000000000000000815250905060006040518060600160405280602381526020016141336023913960408051808201909152601981527f3c2f7363726970743e203c2f626f64793e203c2f68746d6c3e000000000000006020820152909150600082610c8b8761132b565b610c948861148d565b84604051602001610ca89493929190613098565b60405160208183030381529060405290506000610cc361154c565b82604051602001610cd59291906130cf565b6040516020818303038152906040529050600085610cf28361167d565b604051602001610d039291906130cf565b60408051601f1981840301815291905298975050505050505050565b610d29338361103f565b610d455760405162461bcd60e51b815260040161086e90612e82565b610d5184848484611837565b50505050565b60408051808201909152601d81527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208201526060906000610de1610d9c8561186a565b6007610da78761186a565b610db088610bf1565b610db98961186a565b604051602001610dcd959493929190613181565b60405160208183030381529060405261167d565b90508181604051602001610df69291906130cf565b60405160208183030381529060405292505050919050565b8051662386f26fc1000090600090610e269083613300565b905080341015610e485760405162461bcd60e51b815260040161086e9061336f565b60005b8351811015610f3257846001600160a01b0316610e80858381518110610e7357610e73612c23565b602002602001015161190b565b6001600160a01b031614610ea65760405162461bcd60e51b815260040161086e906133d7565b610ee0848281518110610ebb57610ebb612c23565b60200260200101516000908152600260205260409020546001600160a01b0316151590565b15610efd5760405162461bcd60e51b815260040161086e90613419565b610f2085858381518110610f1357610f13612c23565b60200260200101516119b4565b80610f2a81612e10565b915050610e4b565b5050505050565b6000818152600860205260409020805460609190610aed90612b25565b610f5e611200565b6001600160a01b038116610f845760405162461bcd60e51b815260040161086e90613481565b610f8d8161122a565b50565b6000818152600260205260409020546001600160a01b0316610f8d5760405162461bcd60e51b815260040161086e90612f96565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061100682610a5a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061104b83610a5a565b9050806001600160a01b0316846001600160a01b0316148061109257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806110b65750836001600160a01b03166110ab8461076f565b6001600160a01b0316145b949350505050565b826001600160a01b03166110d182610a5a565b6001600160a01b0316146110f75760405162461bcd60e51b815260040161086e906134e9565b6001600160a01b03821661111d5760405162461bcd60e51b815260040161086e90613551565b61112a83838360016119ce565b826001600160a01b031661113d82610a5a565b6001600160a01b0316146111635760405162461bcd60e51b815260040161086e906134e9565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610bc85760405162461bcd60e51b815260040161086e90613591565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036112ba5760405162461bcd60e51b815260040161086e906135d3565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061131e9085906125ed565b60405180910390a3505050565b6060600061133883611a56565b9050600061134584611b05565b61012001519050600061135785611b05565b6101400151905060008061136a87611bb7565b9092509050600084816020020151856001602002015186600260200201518760036020020151886004602002015189600560200201518a600660200201518b600760200201518c600860200201518d600960200201516040516020016113d99a9998979695949392919061360b565b60408051808303601f1901815282825286516020808901519389015160608a015160808b015160a08c015160c08d015160e08e01516101008f0151989b5060009a6114339a98999697959694959394929391929101613757565b6040516020818303038152906040529050600061144f88611bf0565b838361145a8761186a565b8860405160200161146f959493929190613895565b60408051601f198184030181529190529a9950505050505050505050565b60608061149983610f39565b51600003611507576115007f00000000000000000000000000000000000000000000000000000000000000006040518060400160405280600b81526020017f6175746f6d6174612e6a73000000000000000000000000000000000000000000815250611ce6565b905061153c565b6115397f000000000000000000000000000000000000000000000000000000000000000061153485610f39565b611ce6565b90505b61154581611d95565b9392505050565b606060006040518060a00160405280606a8152602001614156606a91399050600060405180606001604052806035815260200161420060359139905060006115e97f00000000000000000000000000000000000000000000000000000000000000006040518060400160405280601381526020017f70352d76312e352e302e6d696e2e6a732e677a00000000000000000000000000815250611ce6565b9050600061164c7f00000000000000000000000000000000000000000000000000000000000000006040518060400160405280601681526020017f67756e7a6970536372697074732d302e302e312e6a7300000000000000000000815250611ce6565b9050838284836040516020016116659493929190613098565b60405160208183030381529060405294505050505090565b6060815160000361169c57505060408051602081019091526000815290565b60006040518060600160405280604081526020016141c060409139905060006003845160026116cb919061397d565b6116d591906139a6565b6116e0906004613300565b905060006116ef82602061397d565b67ffffffffffffffff8111156117075761170761270d565b6040519080825280601f01601f191660200182016040528015611731576020820181803683370190505b509050818152600183018586518101602084015b8183101561179d576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611745565b6003895106600181146117b7576002811461180157611829565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152611829565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b6118428484846110be565b61184e84848484611f17565b610d515760405162461bcd60e51b815260040161086e90613a12565b6060600061187783612062565b600101905060008167ffffffffffffffff8111156118975761189761270d565b6040519080825280601f01601f1916602001820160405280156118c1576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846118cb575b509392505050565b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e906119739085906004016129bb565b602060405180830381865afa158015611990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190613a2d565b610a3b828260405180602001604052806000815250612144565b6001811115610d51576001600160a01b03841615611a14576001600160a01b03841660009081526003602052604081208054839290611a0e908490613a4e565b90915550505b6001600160a01b03831615610d51576001600160a01b03831660009081526003602052604081208054839290611a4b90849061397d565b909155505050505050565b611a5e612493565b6040517f3107cbac0000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633107cbac90611ac39085906004016129bb565b61800060405180830381865afa158015611ae1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190613b65565b611b0d6124c1565b6040517f63be6ad40000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906363be6ad490611b729085906004016129bb565b600060405180830381865afa158015611b8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d79190810190613e37565b6060600080611bc584612177565b9050600080611bd6836127d4612220565b509250925050611be5826122d0565b969095509350505050565b60408051808201909152600181527f5b00000000000000000000000000000000000000000000000000000000000000602082015260609060005b6020811015611cbd5760005b6020811015611caa5782611c75868460208110611c5557611c55612c23565b60200201518360208110611c6b57611c6b612c23565b602002015161186a565b604051602001611c86929190613e72565b60405160208183030381529060405292508080611ca290612e10565b915050611c36565b5080611cb581612e10565b915050611c2a565b5080604051602001611ccf9190613eb5565b60408051601f198184030181529190529392505050565b6040517f35fae7a60000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906335fae7a690611d509086908690600401613eeb565b600060405180830381865afa158015611d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115459190810190613f0b565b80516060908290600003611db9576040805160008082526020820190925290611903565b60048151611dc79190613f46565b15611de45760405162461bcd60e51b815260040161086e90613f8c565b60006040518060a0016040528060808152602001614235608091399050600060048351611e1191906139a6565b611e1c906003613300565b90506000611e2b82602061397d565b67ffffffffffffffff811115611e4357611e4361270d565b6040519080825280601f01601f191660200182016040528015611e6d576020820181803683370190505b5090508351840151603d60ff821603611e9a57600183039250613d3d61ffff821603611e9a576001830392505b50818152600183018485518101602084015b81831015611f0957600483019250825160ff8082168601511660ff808360081c168701511660061b0160ff808360101c1687015116600c1b60ff808460181c168801511660121b010190508060e81b825250600381019050611eac565b509298975050505050505050565b60006001600160a01b0384163b15612057576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611f74903390899088908890600401613f9c565b6020604051808303816000875af1925050508015611faf575060408051601f3d908101601f19168201909252611fac91810190613fe1565b60015b61200c573d808015611fdd576040519150601f19603f3d011682016040523d82523d6000602084013e611fe2565b606091505b5080516000036120045760405162461bcd60e51b815260040161086e90613a12565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506110b6565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106120ab577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106120d7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106120f557662386f26fc10000830492506010015b6305f5e100831061210d576305f5e100830492506008015b612710831061212157612710830492506004015b60648310612133576064830492506002015b600a83106106d75760010192915050565b61214e838361237d565b61215b6000848484611f17565b6108d75760405162461bcd60e51b815260040161086e90613a12565b6040517fab2f711e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ab2f711e906121df9085906004016129bb565b602060405180830381865afa1580156121fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190614002565b612228612526565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eaaaf94787876040518363ffffffff1660e01b815260040161227b929190614023565b600060405180830381865afa158015612298573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122c0919081019061403e565b9299919850965090945092505050565b6040517fc2f35aa60000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c2f35aa6906123389085906004016129bb565b600060405180830381865afa158015612355573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d79190810190613f0b565b6001600160a01b0382166123a35760405162461bcd60e51b815260040161086e906140e0565b6000818152600260205260409020546001600160a01b0316156123d85760405162461bcd60e51b815260040161086e90614122565b6123e66000838360016119ce565b6000818152600260205260409020546001600160a01b03161561241b5760405162461bcd60e51b815260040161086e90614122565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061040001604052806020905b6124ab61254e565b8152602001906001900390816124a35790505090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200161251461256d565b8152602001612521612526565b905290565b6040518061012001604052806009905b60608152602001906001900390816125365790505090565b6040518061040001604052806020906020820280368337509192915050565b60408051610140810190915260608152600960208201612536565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610f8d57600080fd5b80356106d781612588565b6000602082840312156125d7576125d7600080fd5b60006110b684846125b7565b8015155b82525050565b602081016106d782846125e3565b60005b838110156126165781810151838201526020016125fe565b50506000910152565b6000612629825190565b8084526020840193506126408185602086016125fb565b601f01601f19169290920192915050565b60208082528101611545818461261f565b806125ac565b80356106d781612662565b60006020828403121561268857612688600080fd5b60006110b68484612668565b60006001600160a01b0382166106d7565b6125e781612694565b602081016106d782846126a5565b6125ac81612694565b80356106d7816126bc565b600080604083850312156126e6576126e6600080fd5b60006126f285856126c5565b925050602061270385828601612668565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156127495761274961270d565b6040525050565b600061275b60405190565b90506127678282612723565b919050565b600067ffffffffffffffff8211156127865761278661270d565b5060209081020190565b60006127a361279e8461276c565b612750565b838152905060208082019084028301858111156127c2576127c2600080fd5b835b818110156127e4576127d68782612668565b8352602092830192016127c4565b5050509392505050565b600082601f83011261280257612802600080fd5b81356110b6848260208601612790565b600067ffffffffffffffff82111561282c5761282c61270d565b601f19601f83011660200192915050565b82818337506000910152565b600061285761279e84612812565b90508281526020810184848401111561287257612872600080fd5b61190384828561283d565b600082601f83011261289157612891600080fd5b81356110b6848260208601612849565b600080604083850312156128b7576128b7600080fd5b823567ffffffffffffffff8111156128d1576128d1600080fd5b6128dd858286016127ee565b925050602083013567ffffffffffffffff8111156128fd576128fd600080fd5b6127038582860161287d565b60008060006060848603121561292157612921600080fd5b600061292d86866126c5565b935050602061293e868287016126c5565b925050604061294f86828701612668565b9150509250925092565b60006020828403121561296e5761296e600080fd5b813567ffffffffffffffff81111561298857612988600080fd5b6110b68482850161287d565b6000602082840312156129a9576129a9600080fd5b60006110b684846126c5565b806125e7565b602081016106d782846129b5565b8015156125ac565b80356106d7816129c9565b600080604083850312156129f2576129f2600080fd5b60006129fe85856126c5565b9250506020612703858286016129d1565b60008060008060808587031215612a2857612a28600080fd5b6000612a3487876126c5565b9450506020612a45878288016126c5565b9350506040612a5687828801612668565b925050606085013567ffffffffffffffff811115612a7657612a76600080fd5b612a828782880161287d565b91505092959194509250565b60008060408385031215612aa457612aa4600080fd5b6000612ab085856126c5565b925050602083013567ffffffffffffffff811115612ad057612ad0600080fd5b612703858286016127ee565b60008060408385031215612af257612af2600080fd5b6000612afe85856126c5565b9250506020612703858286016126c5565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612b3957607f821691505b602082108103612b4b57612b4b612b0f565b50919050565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b602080825281016106d781612b51565b603d8152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060208201529050612ba5565b602080825281016106d781612bbb565b634e487b7160e01b600052603260045260246000fd5b602a8152602081017f4f6e6c792074686520746f6b656e206f776e65722063616e207570646174652081527f746865207363726970740000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612c39565b60006106d7612cad8381565b90565b612cb983612ca1565b81546008840282811b60001990911b908116901990911617825550505050565b60006108d7818484612cb0565b81811015610a3b57612cf9600082612cd9565b600101612ce6565b601f8211156108d7576000818152602090206020601f85010481016020851015612d285750805b610f326020601f860104830182612ce6565b815167ffffffffffffffff811115612d5457612d5461270d565b612d5e8254612b25565b612d69828285612d01565b506020601f821160018114612d9e5760008315612d865750848201515b600019600885021c1981166002850217855550610f32565b600084815260208120601f198516915b82811015612dce5787850151825560209485019460019092019101612dae565b5084821015612deb5783870151600019601f87166008021c191681555b50505050600202600101905550565b634e487b7160e01b600052601160045260246000fd5b60006000198203612e2357612e23612dfa565b5060010190565b602d8152602081017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581527f72206f7220617070726f7665640000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612e2a565b602b8152602081017f4f6e6c792074686520636f6e7472616374206f776e65722063616e207769746881527f647261772066756e64732e00000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612e92565b602d8152602081017f4e6f7420656e6f7567682066756e647320696e2074686520636f6e747261637481527f20746f2077697468647261772e0000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612efa565b60188152602081017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815290505b60200190565b602080825281016106d781612f62565b60338152602081017f4f6e6c792074686520636f6e7472616374206f776e65722063616e207570646181527f74652074686520707265766965772055524c2e0000000000000000000000000060208201529050612ba5565b602080825281016106d781612fa6565b60298152602081017f4552433732313a2061646472657373207a65726f206973206e6f74206120766181527f6c6964206f776e6572000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d78161300e565b6000613080825190565b61308e8185602086016125fb565b9290920192915050565b6130a28186613076565b90506130ae8185613076565b90506130ba8184613076565b90506130c68183613076565b95945050505050565b6130d98184613076565b90506115458183613076565b600081546130f281612b25565b600182168015613109576001811461311e5761314e565b60ff198316865281151582028601935061314e565b60008581526020902060005b838110156131465781548882015260019091019060200161312a565b505081860193505b50505092915050565b7f227d00000000000000000000000000000000000000000000000000000000000081525b60020190565b7f7b226465736372697074696f6e223a20225465727261666f726d204175746f6d81527f61746120617265206f6e636861696e2063656c6c756c6172206175746f6d617460208201527f61207573696e67205465727261666f726d7320617320612063616e7661732e2260408201527f2c202265787465726e616c5f75726c223a202268747470733a2f2f7777772e7460608201527f65727261666f726d6175746f6d6174612e78797a2f696e76656e746f72792f006080820152609f016132498187613076565b7f222c2022696d616765223a2200000000000000000000000000000000000000008152600c01905061327b81866130e5565b90506132878185613076565b7f222c2022616e696d6174696f6e5f75726c223a20220000000000000000000000815260150190506132b98184613076565b7f222c20226e616d65223a20224175746f6d61746f6e2000000000000000000000815260160190506132eb8183613076565b90506132f681613157565b9695505050505050565b81810281158282048414176106d7576106d7612dfa565b602a8152602081017f496e73756666696369656e742045544820746f206d696e7420746f6b656e732081527f7375626d69747465642e0000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781613317565b60238152602081017f5465727261666f726d206f776e656420627920616e6f7468657220616464726581527f73732e000000000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d78161337f565b60158152602081017f546f6b656e20616c7265616479206d696e7465642e000000000000000000000081529050612f90565b602080825281016106d7816133e7565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781613429565b60258152602081017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e657200000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781613491565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d7816134f9565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612f90565b602080825281016106d781613561565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529050612f90565b602080825281016106d7816135a1565b7f275d000000000000000000000000000000000000000000000000000000000000815261317b565b7f3b20636f6e7374207a6f6e65203d205b27000000000000000000000000000000815260110161363b818c613076565b62272c2760e81b81526003019050613653818b613076565b62272c2760e81b8152600301905061366b818a613076565b62272c2760e81b815260030190506136838189613076565b62272c2760e81b8152600301905061369b8188613076565b62272c2760e81b815260030190506136b38187613076565b62272c2760e81b815260030190506136cb8186613076565b62272c2760e81b815260030190506136e38185613076565b62272c2760e81b815260030190506136fb8184613076565b62272c2760e81b815260030190506137138183613076565b905061371e816135e3565b9b9a5050505050505050505050565b7f3b20636f6e73742062696f6d65203d205b27000000000000000000000000000081525b60120190565b6137608161372d565b905061376c818b613076565b62272c2760e81b81526003019050613784818a613076565b62272c2760e81b8152600301905061379c8189613076565b62272c2760e81b815260030190506137b48188613076565b62272c2760e81b815260030190506137cc8187613076565b62272c2760e81b815260030190506137e48186613076565b62272c2760e81b815260030190506137fc8185613076565b62272c2760e81b815260030190506138148184613076565b62272c2760e81b8152600301905061382c8183613076565b9050613837816135e3565b9a9950505050505050505050565b7f636f6e7374206865696768746d6170203d2000000000000000000000000000008152613751565b7f273b000000000000000000000000000000000000000000000000000000000000815261317b565b61389e81613845565b90506138aa8187613076565b90506138b68186613076565b90506138c28185613076565b7f3b20636f6e737420666f6e7453697a65203d2000000000000000000000000000815260130190506138f48184613076565b7f3b20636f6e737420666f6e74203d2027646174613a6170706c69636174696f6e81527f2f666f6e742d776f6666323b636861727365743d7574662d383b62617365363460208201527f2c00000000000000000000000000000000000000000000000000000000000000604082015260410190506139728183613076565b90506132f68161386d565b808201808211156106d7576106d7612dfa565b634e487b7160e01b600052601260045260246000fd5b6000826139b5576139b5613990565b500490565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529050612ba5565b602080825281016106d7816139ba565b80516106d7816126bc565b600060208284031215613a4257613a42600080fd5b60006110b68484613a22565b818103818111156106d7576106d7612dfa565b600067ffffffffffffffff821115613a7b57613a7b61270d565b5060200290565b80516106d781612662565b6000613a9b61279e84613a61565b90508060208402830185811115613ab457613ab4600080fd5b835b818110156127e457613ac88782613a82565b835260209283019201613ab6565b600082601f830112613aea57613aea600080fd5b60206110b6848285613a8d565b6000613b0561279e84613a61565b9050806104008402830185811115613b1f57613b1f600080fd5b835b818110156127e457613b338782613ad6565b835260209092019161040001613b21565b600082601f830112613b5857613b58600080fd5b60206110b6848285613af7565b60006180008284031215613b7b57613b7b600080fd5b60006110b68484613b44565b6000613b9561279e84612812565b905082815260208101848484011115613bb057613bb0600080fd5b6119038482856125fb565b600082601f830112613bcf57613bcf600080fd5b81516110b6848260208601613b87565b6000613bed61279e84613a61565b90508060208402830185811115613c0657613c06600080fd5b835b818110156127e457805167ffffffffffffffff811115613c2a57613c2a600080fd5b8501613c368882613bbb565b84525060209283019201613c08565b600082601f830112613c5957613c59600080fd5b600a6110b6848285613bdf565b6000613c7461279e84613a61565b90508060208402830185811115613c8d57613c8d600080fd5b835b818110156127e457805167ffffffffffffffff811115613cb157613cb1600080fd5b8501613cbd8882613bbb565b84525060209283019201613c8f565b600082601f830112613ce057613ce0600080fd5b60096110b6848285613c66565b60006101608284031215613d0357613d03600080fd5b613d0e610160612750565b90506000613d1c8484613a82565b908201526020613d2e84848301613a82565b908201526040613d4084848301613a82565b908201526060613d5284848301613a82565b908201526080613d6484848301613a82565b9082015260a0613d7684848301613a82565b9082015260c0613d8884848301613a82565b9082015260e0613d9a84848301613a82565b9082015261010082015167ffffffffffffffff811115613dbc57613dbc600080fd5b613dc884828501613bbb565b6101008301525061012082015167ffffffffffffffff811115613ded57613ded600080fd5b613df984828501613c45565b6101208301525061014082015167ffffffffffffffff811115613e1e57613e1e600080fd5b613e2a84828501613ccc565b6101408301525092915050565b600060208284031215613e4c57613e4c600080fd5b815167ffffffffffffffff811115613e6657613e66600080fd5b6110b684828501613ced565b613e7c8184613076565b9050613e888183613076565b7f2c0000000000000000000000000000000000000000000000000000000000000081526001019392505050565b613ebf8183613076565b7f5d00000000000000000000000000000000000000000000000000000000000000815260010192915050565b60408101613ef982856126a5565b81810360208301526110b6818461261f565b600060208284031215613f2057613f20600080fd5b815167ffffffffffffffff811115613f3a57613f3a600080fd5b6110b684828501613bbb565b600082613f5557613f55613990565b500690565b601c8152602081017f696e76616c696420626173653634206465636f64657220696e7075740000000081529050612f90565b602080825281016106d781613f5a565b60808101613faa82876126a5565b613fb760208301866126a5565b613fc460408301856129b5565b81810360608301526132f6818461261f565b80516106d781612588565b600060208284031215613ff657613ff6600080fd5b60006110b68484613fd6565b60006020828403121561401757614017600080fd5b60006110b68484613a82565b6040810161403182856129b5565b61154560208301846129b5565b6000806000806080858703121561405757614057600080fd5b845167ffffffffffffffff81111561407157614071600080fd5b61407d87828801613ccc565b945050602061408e87828801613a82565b935050604061409f87828801613a82565b9250506060612a8287828801613a82565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152612f90565b602080825281016106d7816140b0565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529050612f90565b602080825281016106d7816140f056fe273e3c2f7363726970743e203c2f686561643e203c626f64793e203c7363726970743e3c68746d6c3e203c686561643e203c6d65746120636861727365743d275554462d38273e203c73637269707420747970653d27746578742f6a6176617363726970742b677a697027207372633d27646174613a746578742f6a6176617363726970743b6261736536342c4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f273e3c2f7363726970743e203c736372697074207372633d27646174613a746578742f6a6176617363726970743b6261736536342c000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e0000003f3435363738393a3b3c3d00000000000000000102030405060708090a0b0c0d0e0f101112131415161718190000000000001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000a264697066735822122061feddfb293370a6a248e0dbe57c51710f2e73e772632af99306bc18c3b35a6964736f6c634300081100330000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e56000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff2000000000000000000000000c9e417b7e67e387026161e50875d512f29630d7b000000000000000000000000bc66c61bcf49cc3fe4e321aecea307f61ec57c0b0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b9100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f7777772e7465727261666f726d6578706c6f7265722e78797a2f6170692f746f6b656e2d7376672f00000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101c25760003560e01c8063715018a6116100f7578063b88d4fde11610095578063e985e9c511610064578063e985e9c51461053b578063ea146e5114610584578063f1864a12146105a4578063f2fde38b146105d857600080fd5b8063b88d4fde146104b4578063c87b56dd146104d4578063cb4e9844146104f4578063de836ebd1461052857600080fd5b806395d89b41116100d157806395d89b411461044a5780639ca5525f1461045f578063a22cb46514610474578063b79bebaf1461049457600080fd5b8063715018a6146103e357806385fa5245146103f85780638da5cb5b1461042c57600080fd5b80632e1a7d4d11610164578063530bf1051161013e578063530bf105146103425780636352211e146103765780636b4c48fe1461039657806370a08231146103b657600080fd5b80632e1a7d4d146102ce57806341ad6025146102ee57806342842e0e1461032257600080fd5b806308ff7f61116101a057806308ff7f611461024c578063095ea7b31461026c578063128c5a5a1461028e57806323b872dd146102ae57600080fd5b806301ffc9a7146101c757806306fdde03146101fd578063081812fc1461021f575b600080fd5b3480156101d357600080fd5b506101e76101e23660046125c2565b6105f8565b6040516101f491906125ed565b60405180910390f35b34801561020957600080fd5b506102126106dd565b6040516101f49190612651565b34801561022b57600080fd5b5061023f61023a366004612673565b61076f565b6040516101f491906126ae565b34801561025857600080fd5b50610212610267366004612673565b610796565b34801561027857600080fd5b5061028c6102873660046126d0565b610830565b005b34801561029a57600080fd5b5061028c6102a93660046128a1565b6108dc565b3480156102ba57600080fd5b5061028c6102c9366004612909565b610986565b3480156102da57600080fd5b5061028c6102e9366004612673565b6109b7565b3480156102fa57600080fd5b5061023f7f0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e5681565b34801561032e57600080fd5b5061028c61033d366004612909565b610a3f565b34801561034e57600080fd5b5061023f7f000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff281565b34801561038257600080fd5b5061023f610391366004612673565b610a5a565b3480156103a257600080fd5b506102126103b1366004612959565b610a8f565b3480156103c257600080fd5b506103d66103d1366004612994565b610b72565b6040516101f491906129bb565b3480156103ef57600080fd5b5061028c610bb6565b34801561040457600080fd5b5061023f7f000000000000000000000000c9e417b7e67e387026161e50875d512f29630d7b81565b34801561043857600080fd5b506006546001600160a01b031661023f565b34801561045657600080fd5b50610212610bca565b34801561046b57600080fd5b50610212610bd9565b34801561048057600080fd5b5061028c61048f3660046129dc565b610be6565b3480156104a057600080fd5b506102126104af366004612673565b610bf1565b3480156104c057600080fd5b5061028c6104cf366004612a0f565b610d1f565b3480156104e057600080fd5b506102126104ef366004612673565b610d57565b34801561050057600080fd5b5061023f7f0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b9181565b61028c610536366004612a8e565b610e0e565b34801561054757600080fd5b506101e7610556366004612adc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561059057600080fd5b5061021261059f366004612673565b610f39565b3480156105b057600080fd5b5061023f7f000000000000000000000000bc66c61bcf49cc3fe4e321aecea307f61ec57c0b81565b3480156105e457600080fd5b5061028c6105f3366004612994565b610f56565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061068b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106d757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546106ec90612b25565b80601f016020809104026020016040519081016040528092919081815260200182805461071890612b25565b80156107655780601f1061073a57610100808354040283529160200191610765565b820191906000526020600020905b81548152906001019060200180831161074857829003601f168201915b5050505050905090565b600061077a82610f90565b506000908152600460205260409020546001600160a01b031690565b600860205260009081526040902080546107af90612b25565b80601f01602080910402602001604051908101604052809291908181526020018280546107db90612b25565b80156108285780601f106107fd57610100808354040283529160200191610828565b820191906000526020600020905b81548152906001019060200180831161080b57829003601f168201915b505050505081565b600061083b82610a5a565b9050806001600160a01b0316836001600160a01b0316036108775760405162461bcd60e51b815260040161086e90612bab565b60405180910390fd5b336001600160a01b03821614806108b157506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6108cd5760405162461bcd60e51b815260040161086e90612c13565b6108d78383610fc4565b505050565b60005b82518110156108d75761090a8382815181106108fd576108fd612c23565b6020026020010151610a5a565b6001600160a01b0316336001600160a01b03161461093a5760405162461bcd60e51b815260040161086e90612c91565b816008600085848151811061095157610951612c23565b6020026020010151815260200190815260200160002090816109739190612d3a565b508061097e81612e10565b9150506108df565b610990338261103f565b6109ac5760405162461bcd60e51b815260040161086e90612e82565b6108d78383836110be565b6006546001600160a01b031633146109e15760405162461bcd60e51b815260040161086e90612eea565b80471015610a015760405162461bcd60e51b815260040161086e90612f52565b6006546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610a3b573d6000803e3d6000fd5b5050565b6108d783838360405180602001604052806000815250610d1f565b6000818152600260205260408120546001600160a01b0316806106d75760405162461bcd60e51b815260040161086e90612f96565b6060610aa36006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614610ad35760405162461bcd60e51b815260040161086e90612ffe565b6007610adf8382612d3a565b5060078054610aed90612b25565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1990612b25565b8015610b665780601f10610b3b57610100808354040283529160200191610b66565b820191906000526020600020905b815481529060010190602001808311610b4957829003601f168201915b50505050509050919050565b60006001600160a01b038216610b9a5760405162461bcd60e51b815260040161086e90613066565b506001600160a01b031660009081526003602052604090205490565b610bbe611200565b610bc8600061122a565b565b6060600180546106ec90612b25565b600780546107af90612b25565b610a3b338383611289565b606060006040518060400160405280601681526020017f646174613a746578742f68746d6c3b6261736536342c00000000000000000000815250905060006040518060600160405280602381526020016141336023913960408051808201909152601981527f3c2f7363726970743e203c2f626f64793e203c2f68746d6c3e000000000000006020820152909150600082610c8b8761132b565b610c948861148d565b84604051602001610ca89493929190613098565b60405160208183030381529060405290506000610cc361154c565b82604051602001610cd59291906130cf565b6040516020818303038152906040529050600085610cf28361167d565b604051602001610d039291906130cf565b60408051601f1981840301815291905298975050505050505050565b610d29338361103f565b610d455760405162461bcd60e51b815260040161086e90612e82565b610d5184848484611837565b50505050565b60408051808201909152601d81527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208201526060906000610de1610d9c8561186a565b6007610da78761186a565b610db088610bf1565b610db98961186a565b604051602001610dcd959493929190613181565b60405160208183030381529060405261167d565b90508181604051602001610df69291906130cf565b60405160208183030381529060405292505050919050565b8051662386f26fc1000090600090610e269083613300565b905080341015610e485760405162461bcd60e51b815260040161086e9061336f565b60005b8351811015610f3257846001600160a01b0316610e80858381518110610e7357610e73612c23565b602002602001015161190b565b6001600160a01b031614610ea65760405162461bcd60e51b815260040161086e906133d7565b610ee0848281518110610ebb57610ebb612c23565b60200260200101516000908152600260205260409020546001600160a01b0316151590565b15610efd5760405162461bcd60e51b815260040161086e90613419565b610f2085858381518110610f1357610f13612c23565b60200260200101516119b4565b80610f2a81612e10565b915050610e4b565b5050505050565b6000818152600860205260409020805460609190610aed90612b25565b610f5e611200565b6001600160a01b038116610f845760405162461bcd60e51b815260040161086e90613481565b610f8d8161122a565b50565b6000818152600260205260409020546001600160a01b0316610f8d5760405162461bcd60e51b815260040161086e90612f96565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061100682610a5a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061104b83610a5a565b9050806001600160a01b0316846001600160a01b0316148061109257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806110b65750836001600160a01b03166110ab8461076f565b6001600160a01b0316145b949350505050565b826001600160a01b03166110d182610a5a565b6001600160a01b0316146110f75760405162461bcd60e51b815260040161086e906134e9565b6001600160a01b03821661111d5760405162461bcd60e51b815260040161086e90613551565b61112a83838360016119ce565b826001600160a01b031661113d82610a5a565b6001600160a01b0316146111635760405162461bcd60e51b815260040161086e906134e9565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610bc85760405162461bcd60e51b815260040161086e90613591565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036112ba5760405162461bcd60e51b815260040161086e906135d3565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061131e9085906125ed565b60405180910390a3505050565b6060600061133883611a56565b9050600061134584611b05565b61012001519050600061135785611b05565b6101400151905060008061136a87611bb7565b9092509050600084816020020151856001602002015186600260200201518760036020020151886004602002015189600560200201518a600660200201518b600760200201518c600860200201518d600960200201516040516020016113d99a9998979695949392919061360b565b60408051808303601f1901815282825286516020808901519389015160608a015160808b015160a08c015160c08d015160e08e01516101008f0151989b5060009a6114339a98999697959694959394929391929101613757565b6040516020818303038152906040529050600061144f88611bf0565b838361145a8761186a565b8860405160200161146f959493929190613895565b60408051601f198184030181529190529a9950505050505050505050565b60608061149983610f39565b51600003611507576115007f0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b916040518060400160405280600b81526020017f6175746f6d6174612e6a73000000000000000000000000000000000000000000815250611ce6565b905061153c565b6115397f0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b9161153485610f39565b611ce6565b90505b61154581611d95565b9392505050565b606060006040518060a00160405280606a8152602001614156606a91399050600060405180606001604052806035815260200161420060359139905060006115e97f0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b916040518060400160405280601381526020017f70352d76312e352e302e6d696e2e6a732e677a00000000000000000000000000815250611ce6565b9050600061164c7f0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b916040518060400160405280601681526020017f67756e7a6970536372697074732d302e302e312e6a7300000000000000000000815250611ce6565b9050838284836040516020016116659493929190613098565b60405160208183030381529060405294505050505090565b6060815160000361169c57505060408051602081019091526000815290565b60006040518060600160405280604081526020016141c060409139905060006003845160026116cb919061397d565b6116d591906139a6565b6116e0906004613300565b905060006116ef82602061397d565b67ffffffffffffffff8111156117075761170761270d565b6040519080825280601f01601f191660200182016040528015611731576020820181803683370190505b509050818152600183018586518101602084015b8183101561179d576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611745565b6003895106600181146117b7576002811461180157611829565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152611829565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b6118428484846110be565b61184e84848484611f17565b610d515760405162461bcd60e51b815260040161086e90613a12565b6060600061187783612062565b600101905060008167ffffffffffffffff8111156118975761189761270d565b6040519080825280601f01601f1916602001820160405280156118c1576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846118cb575b509392505050565b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e561690636352211e906119739085906004016129bb565b602060405180830381865afa158015611990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190613a2d565b610a3b828260405180602001604052806000815250612144565b6001811115610d51576001600160a01b03841615611a14576001600160a01b03841660009081526003602052604081208054839290611a0e908490613a4e565b90915550505b6001600160a01b03831615610d51576001600160a01b03831660009081526003602052604081208054839290611a4b90849061397d565b909155505050505050565b611a5e612493565b6040517f3107cbac0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e561690633107cbac90611ac39085906004016129bb565b61800060405180830381865afa158015611ae1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190613b65565b611b0d6124c1565b6040517f63be6ad40000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e5616906363be6ad490611b729085906004016129bb565b600060405180830381865afa158015611b8f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d79190810190613e37565b6060600080611bc584612177565b9050600080611bd6836127d4612220565b509250925050611be5826122d0565b969095509350505050565b60408051808201909152600181527f5b00000000000000000000000000000000000000000000000000000000000000602082015260609060005b6020811015611cbd5760005b6020811015611caa5782611c75868460208110611c5557611c55612c23565b60200201518360208110611c6b57611c6b612c23565b602002015161186a565b604051602001611c86929190613e72565b60405160208183030381529060405292508080611ca290612e10565b915050611c36565b5080611cb581612e10565b915050611c2a565b5080604051602001611ccf9190613eb5565b60408051601f198184030181529190529392505050565b6040517f35fae7a60000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f000000000000000000000000bc66c61bcf49cc3fe4e321aecea307f61ec57c0b16906335fae7a690611d509086908690600401613eeb565b600060405180830381865afa158015611d6d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115459190810190613f0b565b80516060908290600003611db9576040805160008082526020820190925290611903565b60048151611dc79190613f46565b15611de45760405162461bcd60e51b815260040161086e90613f8c565b60006040518060a0016040528060808152602001614235608091399050600060048351611e1191906139a6565b611e1c906003613300565b90506000611e2b82602061397d565b67ffffffffffffffff811115611e4357611e4361270d565b6040519080825280601f01601f191660200182016040528015611e6d576020820181803683370190505b5090508351840151603d60ff821603611e9a57600183039250613d3d61ffff821603611e9a576001830392505b50818152600183018485518101602084015b81831015611f0957600483019250825160ff8082168601511660ff808360081c168701511660061b0160ff808360101c1687015116600c1b60ff808460181c168801511660121b010190508060e81b825250600381019050611eac565b509298975050505050505050565b60006001600160a01b0384163b15612057576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611f74903390899088908890600401613f9c565b6020604051808303816000875af1925050508015611faf575060408051601f3d908101601f19168201909252611fac91810190613fe1565b60015b61200c573d808015611fdd576040519150601f19603f3d011682016040523d82523d6000602084013e611fe2565b606091505b5080516000036120045760405162461bcd60e51b815260040161086e90613a12565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506110b6565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106120ab577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106120d7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106120f557662386f26fc10000830492506010015b6305f5e100831061210d576305f5e100830492506008015b612710831061212157612710830492506004015b60648310612133576064830492506002015b600a83106106d75760010192915050565b61214e838361237d565b61215b6000848484611f17565b6108d75760405162461bcd60e51b815260040161086e90613a12565b6040517fab2f711e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e56169063ab2f711e906121df9085906004016129bb565b602060405180830381865afa1580156121fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d79190614002565b612228612526565b60008060007f000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff26001600160a01b031663eaaaf94787876040518363ffffffff1660e01b815260040161227b929190614023565b600060405180830381865afa158015612298573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122c0919081019061403e565b9299919850965090945092505050565b6040517fc2f35aa60000000000000000000000000000000000000000000000000000000081526060906001600160a01b037f000000000000000000000000c9e417b7e67e387026161e50875d512f29630d7b169063c2f35aa6906123389085906004016129bb565b600060405180830381865afa158015612355573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106d79190810190613f0b565b6001600160a01b0382166123a35760405162461bcd60e51b815260040161086e906140e0565b6000818152600260205260409020546001600160a01b0316156123d85760405162461bcd60e51b815260040161086e90614122565b6123e66000838360016119ce565b6000818152600260205260409020546001600160a01b03161561241b5760405162461bcd60e51b815260040161086e90614122565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518061040001604052806020905b6124ab61254e565b8152602001906001900390816124a35790505090565b60405180610160016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016060815260200161251461256d565b8152602001612521612526565b905290565b6040518061012001604052806009905b60608152602001906001900390816125365790505090565b6040518061040001604052806020906020820280368337509192915050565b60408051610140810190915260608152600960208201612536565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610f8d57600080fd5b80356106d781612588565b6000602082840312156125d7576125d7600080fd5b60006110b684846125b7565b8015155b82525050565b602081016106d782846125e3565b60005b838110156126165781810151838201526020016125fe565b50506000910152565b6000612629825190565b8084526020840193506126408185602086016125fb565b601f01601f19169290920192915050565b60208082528101611545818461261f565b806125ac565b80356106d781612662565b60006020828403121561268857612688600080fd5b60006110b68484612668565b60006001600160a01b0382166106d7565b6125e781612694565b602081016106d782846126a5565b6125ac81612694565b80356106d7816126bc565b600080604083850312156126e6576126e6600080fd5b60006126f285856126c5565b925050602061270385828601612668565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156127495761274961270d565b6040525050565b600061275b60405190565b90506127678282612723565b919050565b600067ffffffffffffffff8211156127865761278661270d565b5060209081020190565b60006127a361279e8461276c565b612750565b838152905060208082019084028301858111156127c2576127c2600080fd5b835b818110156127e4576127d68782612668565b8352602092830192016127c4565b5050509392505050565b600082601f83011261280257612802600080fd5b81356110b6848260208601612790565b600067ffffffffffffffff82111561282c5761282c61270d565b601f19601f83011660200192915050565b82818337506000910152565b600061285761279e84612812565b90508281526020810184848401111561287257612872600080fd5b61190384828561283d565b600082601f83011261289157612891600080fd5b81356110b6848260208601612849565b600080604083850312156128b7576128b7600080fd5b823567ffffffffffffffff8111156128d1576128d1600080fd5b6128dd858286016127ee565b925050602083013567ffffffffffffffff8111156128fd576128fd600080fd5b6127038582860161287d565b60008060006060848603121561292157612921600080fd5b600061292d86866126c5565b935050602061293e868287016126c5565b925050604061294f86828701612668565b9150509250925092565b60006020828403121561296e5761296e600080fd5b813567ffffffffffffffff81111561298857612988600080fd5b6110b68482850161287d565b6000602082840312156129a9576129a9600080fd5b60006110b684846126c5565b806125e7565b602081016106d782846129b5565b8015156125ac565b80356106d7816129c9565b600080604083850312156129f2576129f2600080fd5b60006129fe85856126c5565b9250506020612703858286016129d1565b60008060008060808587031215612a2857612a28600080fd5b6000612a3487876126c5565b9450506020612a45878288016126c5565b9350506040612a5687828801612668565b925050606085013567ffffffffffffffff811115612a7657612a76600080fd5b612a828782880161287d565b91505092959194509250565b60008060408385031215612aa457612aa4600080fd5b6000612ab085856126c5565b925050602083013567ffffffffffffffff811115612ad057612ad0600080fd5b612703858286016127ee565b60008060408385031215612af257612af2600080fd5b6000612afe85856126c5565b9250506020612703858286016126c5565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612b3957607f821691505b602082108103612b4b57612b4b612b0f565b50919050565b60218152602081017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015290505b60400190565b602080825281016106d781612b51565b603d8152602081017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060208201529050612ba5565b602080825281016106d781612bbb565b634e487b7160e01b600052603260045260246000fd5b602a8152602081017f4f6e6c792074686520746f6b656e206f776e65722063616e207570646174652081527f746865207363726970740000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612c39565b60006106d7612cad8381565b90565b612cb983612ca1565b81546008840282811b60001990911b908116901990911617825550505050565b60006108d7818484612cb0565b81811015610a3b57612cf9600082612cd9565b600101612ce6565b601f8211156108d7576000818152602090206020601f85010481016020851015612d285750805b610f326020601f860104830182612ce6565b815167ffffffffffffffff811115612d5457612d5461270d565b612d5e8254612b25565b612d69828285612d01565b506020601f821160018114612d9e5760008315612d865750848201515b600019600885021c1981166002850217855550610f32565b600084815260208120601f198516915b82811015612dce5787850151825560209485019460019092019101612dae565b5084821015612deb5783870151600019601f87166008021c191681555b50505050600202600101905550565b634e487b7160e01b600052601160045260246000fd5b60006000198203612e2357612e23612dfa565b5060010190565b602d8152602081017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581527f72206f7220617070726f7665640000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612e2a565b602b8152602081017f4f6e6c792074686520636f6e7472616374206f776e65722063616e207769746881527f647261772066756e64732e00000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612e92565b602d8152602081017f4e6f7420656e6f7567682066756e647320696e2074686520636f6e747261637481527f20746f2077697468647261772e0000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781612efa565b60188152602081017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815290505b60200190565b602080825281016106d781612f62565b60338152602081017f4f6e6c792074686520636f6e7472616374206f776e65722063616e207570646181527f74652074686520707265766965772055524c2e0000000000000000000000000060208201529050612ba5565b602080825281016106d781612fa6565b60298152602081017f4552433732313a2061646472657373207a65726f206973206e6f74206120766181527f6c6964206f776e6572000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d78161300e565b6000613080825190565b61308e8185602086016125fb565b9290920192915050565b6130a28186613076565b90506130ae8185613076565b90506130ba8184613076565b90506130c68183613076565b95945050505050565b6130d98184613076565b90506115458183613076565b600081546130f281612b25565b600182168015613109576001811461311e5761314e565b60ff198316865281151582028601935061314e565b60008581526020902060005b838110156131465781548882015260019091019060200161312a565b505081860193505b50505092915050565b7f227d00000000000000000000000000000000000000000000000000000000000081525b60020190565b7f7b226465736372697074696f6e223a20225465727261666f726d204175746f6d81527f61746120617265206f6e636861696e2063656c6c756c6172206175746f6d617460208201527f61207573696e67205465727261666f726d7320617320612063616e7661732e2260408201527f2c202265787465726e616c5f75726c223a202268747470733a2f2f7777772e7460608201527f65727261666f726d6175746f6d6174612e78797a2f696e76656e746f72792f006080820152609f016132498187613076565b7f222c2022696d616765223a2200000000000000000000000000000000000000008152600c01905061327b81866130e5565b90506132878185613076565b7f222c2022616e696d6174696f6e5f75726c223a20220000000000000000000000815260150190506132b98184613076565b7f222c20226e616d65223a20224175746f6d61746f6e2000000000000000000000815260160190506132eb8183613076565b90506132f681613157565b9695505050505050565b81810281158282048414176106d7576106d7612dfa565b602a8152602081017f496e73756666696369656e742045544820746f206d696e7420746f6b656e732081527f7375626d69747465642e0000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781613317565b60238152602081017f5465727261666f726d206f776e656420627920616e6f7468657220616464726581527f73732e000000000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d78161337f565b60158152602081017f546f6b656e20616c7265616479206d696e7465642e000000000000000000000081529050612f90565b602080825281016106d7816133e7565b60268152602081017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781613429565b60258152602081017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e657200000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d781613491565b60248152602081017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529050612ba5565b602080825281016106d7816134f9565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612f90565b602080825281016106d781613561565b60198152602081017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529050612f90565b602080825281016106d7816135a1565b7f275d000000000000000000000000000000000000000000000000000000000000815261317b565b7f3b20636f6e7374207a6f6e65203d205b27000000000000000000000000000000815260110161363b818c613076565b62272c2760e81b81526003019050613653818b613076565b62272c2760e81b8152600301905061366b818a613076565b62272c2760e81b815260030190506136838189613076565b62272c2760e81b8152600301905061369b8188613076565b62272c2760e81b815260030190506136b38187613076565b62272c2760e81b815260030190506136cb8186613076565b62272c2760e81b815260030190506136e38185613076565b62272c2760e81b815260030190506136fb8184613076565b62272c2760e81b815260030190506137138183613076565b905061371e816135e3565b9b9a5050505050505050505050565b7f3b20636f6e73742062696f6d65203d205b27000000000000000000000000000081525b60120190565b6137608161372d565b905061376c818b613076565b62272c2760e81b81526003019050613784818a613076565b62272c2760e81b8152600301905061379c8189613076565b62272c2760e81b815260030190506137b48188613076565b62272c2760e81b815260030190506137cc8187613076565b62272c2760e81b815260030190506137e48186613076565b62272c2760e81b815260030190506137fc8185613076565b62272c2760e81b815260030190506138148184613076565b62272c2760e81b8152600301905061382c8183613076565b9050613837816135e3565b9a9950505050505050505050565b7f636f6e7374206865696768746d6170203d2000000000000000000000000000008152613751565b7f273b000000000000000000000000000000000000000000000000000000000000815261317b565b61389e81613845565b90506138aa8187613076565b90506138b68186613076565b90506138c28185613076565b7f3b20636f6e737420666f6e7453697a65203d2000000000000000000000000000815260130190506138f48184613076565b7f3b20636f6e737420666f6e74203d2027646174613a6170706c69636174696f6e81527f2f666f6e742d776f6666323b636861727365743d7574662d383b62617365363460208201527f2c00000000000000000000000000000000000000000000000000000000000000604082015260410190506139728183613076565b90506132f68161386d565b808201808211156106d7576106d7612dfa565b634e487b7160e01b600052601260045260246000fd5b6000826139b5576139b5613990565b500490565b60328152602081017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529050612ba5565b602080825281016106d7816139ba565b80516106d7816126bc565b600060208284031215613a4257613a42600080fd5b60006110b68484613a22565b818103818111156106d7576106d7612dfa565b600067ffffffffffffffff821115613a7b57613a7b61270d565b5060200290565b80516106d781612662565b6000613a9b61279e84613a61565b90508060208402830185811115613ab457613ab4600080fd5b835b818110156127e457613ac88782613a82565b835260209283019201613ab6565b600082601f830112613aea57613aea600080fd5b60206110b6848285613a8d565b6000613b0561279e84613a61565b9050806104008402830185811115613b1f57613b1f600080fd5b835b818110156127e457613b338782613ad6565b835260209092019161040001613b21565b600082601f830112613b5857613b58600080fd5b60206110b6848285613af7565b60006180008284031215613b7b57613b7b600080fd5b60006110b68484613b44565b6000613b9561279e84612812565b905082815260208101848484011115613bb057613bb0600080fd5b6119038482856125fb565b600082601f830112613bcf57613bcf600080fd5b81516110b6848260208601613b87565b6000613bed61279e84613a61565b90508060208402830185811115613c0657613c06600080fd5b835b818110156127e457805167ffffffffffffffff811115613c2a57613c2a600080fd5b8501613c368882613bbb565b84525060209283019201613c08565b600082601f830112613c5957613c59600080fd5b600a6110b6848285613bdf565b6000613c7461279e84613a61565b90508060208402830185811115613c8d57613c8d600080fd5b835b818110156127e457805167ffffffffffffffff811115613cb157613cb1600080fd5b8501613cbd8882613bbb565b84525060209283019201613c8f565b600082601f830112613ce057613ce0600080fd5b60096110b6848285613c66565b60006101608284031215613d0357613d03600080fd5b613d0e610160612750565b90506000613d1c8484613a82565b908201526020613d2e84848301613a82565b908201526040613d4084848301613a82565b908201526060613d5284848301613a82565b908201526080613d6484848301613a82565b9082015260a0613d7684848301613a82565b9082015260c0613d8884848301613a82565b9082015260e0613d9a84848301613a82565b9082015261010082015167ffffffffffffffff811115613dbc57613dbc600080fd5b613dc884828501613bbb565b6101008301525061012082015167ffffffffffffffff811115613ded57613ded600080fd5b613df984828501613c45565b6101208301525061014082015167ffffffffffffffff811115613e1e57613e1e600080fd5b613e2a84828501613ccc565b6101408301525092915050565b600060208284031215613e4c57613e4c600080fd5b815167ffffffffffffffff811115613e6657613e66600080fd5b6110b684828501613ced565b613e7c8184613076565b9050613e888183613076565b7f2c0000000000000000000000000000000000000000000000000000000000000081526001019392505050565b613ebf8183613076565b7f5d00000000000000000000000000000000000000000000000000000000000000815260010192915050565b60408101613ef982856126a5565b81810360208301526110b6818461261f565b600060208284031215613f2057613f20600080fd5b815167ffffffffffffffff811115613f3a57613f3a600080fd5b6110b684828501613bbb565b600082613f5557613f55613990565b500690565b601c8152602081017f696e76616c696420626173653634206465636f64657220696e7075740000000081529050612f90565b602080825281016106d781613f5a565b60808101613faa82876126a5565b613fb760208301866126a5565b613fc460408301856129b5565b81810360608301526132f6818461261f565b80516106d781612588565b600060208284031215613ff657613ff6600080fd5b60006110b68484613fd6565b60006020828403121561401757614017600080fd5b60006110b68484613a82565b6040810161403182856129b5565b61154560208301846129b5565b6000806000806080858703121561405757614057600080fd5b845167ffffffffffffffff81111561407157614071600080fd5b61407d87828801613ccc565b945050602061408e87828801613a82565b935050604061409f87828801613a82565b9250506060612a8287828801613a82565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152612f90565b602080825281016106d7816140b0565b601c8152602081017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529050612f90565b602080825281016106d7816140f056fe273e3c2f7363726970743e203c2f686561643e203c626f64793e203c7363726970743e3c68746d6c3e203c686561643e203c6d65746120636861727365743d275554462d38273e203c73637269707420747970653d27746578742f6a6176617363726970742b677a697027207372633d27646174613a746578742f6a6176617363726970743b6261736536342c4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f273e3c2f7363726970743e203c736372697074207372633d27646174613a746578742f6a6176617363726970743b6261736536342c000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e0000003f3435363738393a3b3c3d00000000000000000102030405060708090a0b0c0d0e0f101112131415161718190000000000001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000a264697066735822122061feddfb293370a6a248e0dbe57c51710f2e73e772632af99306bc18c3b35a6964736f6c63430008110033

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

0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e56000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff2000000000000000000000000c9e417b7e67e387026161e50875d512f29630d7b000000000000000000000000bc66c61bcf49cc3fe4e321aecea307f61ec57c0b0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b9100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f7777772e7465727261666f726d6578706c6f7265722e78797a2f6170692f746f6b656e2d7376672f00000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _terraformsAddress (address): 0x4E1f41613c9084FdB9E34E11fAE9412427480e56
Arg [1] : _terraformsDataAddress (address): 0xA5aFC9fE76a28fB12C60954Ed6e2e5f8ceF64Ff2
Arg [2] : _terraformsCharsAddress (address): 0xC9e417B7e67E387026161E50875D512f29630D7B
Arg [3] : _fileStoreAddress (address): 0xBc66C61BCF49Cc3fe4E321aeCEa307F61EC57C0b
Arg [4] : _ethFS (address): 0x9746fD0A77829E12F8A9DBe70D7a322412325B91
Arg [5] : _previewURL (string): https://www.terraformexplorer.xyz/api/token-svg/

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000004e1f41613c9084fdb9e34e11fae9412427480e56
Arg [1] : 000000000000000000000000a5afc9fe76a28fb12c60954ed6e2e5f8cef64ff2
Arg [2] : 000000000000000000000000c9e417b7e67e387026161e50875d512f29630d7b
Arg [3] : 000000000000000000000000bc66c61bcf49cc3fe4e321aecea307f61ec57c0b
Arg [4] : 0000000000000000000000009746fd0a77829e12f8a9dbe70d7a322412325b91
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [7] : 68747470733a2f2f7777772e7465727261666f726d6578706c6f7265722e7879
Arg [8] : 7a2f6170692f746f6b656e2d7376672f00000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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