ETH Price: $3,990.39 (-0.19%)

Token

SolarSystems (SOLSYS)
 

Overview

Max Total Supply

1,000 SOLSYS

Holders

432

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
10 SOLSYS
0x91C61c4D8EBF0E2b60d98a67C11fbd0cA2f621E7
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
SolarSystems

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 9 : SolarSystem.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Utilities.sol";
import "./Renderer.sol";
import "svgnft/contracts/Base64.sol";

contract SolarSystems is ERC721A, Ownable {
  uint256 public price;
  uint256 public maxSupply;
  Renderer public renderer;

  /**
   * @dev Constructs a new instance of the contract.
   * @param _name Name of the ERC721 token.
   * @param _symbol Symbol of the ERC721 token.
   * @param _price Price of each solar system in wei.
   * @param _maxSupply Maximum supply of solar systems.
   */
  constructor(
    string memory _name,
    string memory _symbol,
    uint256 _price,
    uint256 _maxSupply,
    address _renderer
  ) ERC721A(_name, _symbol) {
    price = _price;
    maxSupply = _maxSupply;
    renderer = Renderer(_renderer);
  }

  /**
   * @notice Sets the price of each solar system in wei.
   * @param _price Price of each solar system in wei.
   */
  function setPrice(uint256 _price) external onlyOwner {
    price = _price;
  }

  /**
   * @notice Returns the token URI for a given token ID.
   * @param tokenId ID of the token to get the URI for.
   * @return Token URI.
   */
  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

    string memory name = string(abi.encodePacked("Solar System #", utils.uint2str(tokenId)));
    string memory description = "Fully on-chain, procedurally generated, animated solar systems.";
    string memory svg = renderer.getSVG(tokenId);

    string memory json = string(
      abi.encodePacked(
        '{"name":"',
        name,
        '","description":"',
        description,
        '","attributes":[{"trait_type":"Planets","value":"',
        utils.uint2str(renderer.numPlanetsForTokenId(tokenId)),
        '"}, {"trait_type":"Ringed Planets", "value": "',
        utils.uint2str(renderer.numRingedPlanetsForTokenId(tokenId)),
        '"}, {"trait_type":"Star Type", "value": "',
        renderer.hasRareStarForTokenId(tokenId) ? "Blue" : "Normal",
        '"}], "image": "data:image/svg+xml;base64,',
        Base64.encode(bytes(svg)),
        '"}'
      )
    );
    return string(abi.encodePacked("data:application/json;base64,", Base64.encode(bytes(json))));
  }

  /**
   * @notice Mints new solar systems for the caller.
   * @param _quantity Quantity of solar systems to mint.
   */
  function mint(uint256 _quantity) external payable {
    require(msg.value >= price * _quantity, "Insufficient fee");
    require(totalSupply() + _quantity <= maxSupply, "Exceeds max supply");
    _mint(msg.sender, _quantity);
  }

  /**
   * @notice  Airdrops solar systems to a list of recipients. Only callable by the contract owner.
   * @param _recipients List of recipients to receive the airdrop.
   * @param _quantity Quantity of solar systems to airdrop to each recipient.
   */
  function airdrop(address[] memory _recipients, uint256 _quantity) external payable onlyOwner {
    require(totalSupply() + _quantity * _recipients.length <= maxSupply, "Exceeds max supply");
    for (uint256 i = 0; i < _recipients.length; i++) {
      _mint(_recipients[i], _quantity);
    }
  }

  /**
   * @notice Withdraws the contract's balance. Only callable by the contract owner.
   */
  function withdraw() external onlyOwner {
    require(payable(msg.sender).send(address(this).balance));
  }

  function _startTokenId() internal view virtual override returns (uint256) {
    return 1;
  }
}

File 2 of 9 : 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 9 : 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 4 of 9 : Renderer.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "./Trigonometry.sol";
import "./Utilities.sol";

contract Renderer {
  uint256 constant SIZE = 500;

  struct Planet {
    uint256 planetRadius;
    uint256 ringsOffset;
    uint256 orbitRadius;
    uint256[3] color;
    uint256 initialAngleDegrees;
    uint256 duration;
  }

  function translateWithAngle(
    int256 x,
    int256 y,
    uint256 degrees
  ) internal pure returns (int256, int256) {
    int256 newX = x;
    int256 newY = y;

    newX =
      x *
      Trigonometry.cos(degrees * (Trigonometry.PI / 180)) -
      y *
      Trigonometry.sin(degrees * (Trigonometry.PI / 180));
    newY =
      x *
      Trigonometry.sin(degrees * (Trigonometry.PI / 180)) +
      y *
      Trigonometry.cos(degrees * (Trigonometry.PI / 180));

    return (newX, newY);
  }


  /**
  * @notice Gets the SVG representation of a planet's orbit.
  * @param planet The planet to generate the SVG for.
  */
  function getOrbitSVG(Planet memory planet) public pure returns (string memory) {
    uint256 halfCanvasWidth = SIZE / 2;

    // Calculate the initial position of the planet
    int256 x = int256(planet.orbitRadius);
    int256 y = 0;

    (int256 innerX, int256 innerY) = translateWithAngle(x - 1, y, planet.initialAngleDegrees);
    (int256 outerX, int256 outerY) = translateWithAngle(x, y, planet.initialAngleDegrees);

    string memory colorTuple = string.concat(
      utils.uint2str(planet.color[0]),
      ",",
      utils.uint2str(planet.color[1]),
      ",",
      utils.uint2str(planet.color[2])
    );

    // Generate the SVG string
    string memory renderedSVG = string.concat(
      '<circle cx="',
      utils.uint2str(halfCanvasWidth),
      '" cy="',
      utils.uint2str(halfCanvasWidth),
      '" r="',
       utils.uint2str(planet.orbitRadius),
      '" fill="none" stroke="rgba(',
      colorTuple,
      ',0.5)"/>',
      // Inner circle
      '<g><circle cx="',
      utils.uint2str(uint256(int256(halfCanvasWidth) + innerX / 1e18)),
      '" cy="'
      
    );

    renderedSVG = string.concat(
      renderedSVG,
      utils.uint2str(uint256(int256(halfCanvasWidth) - innerY / 1e18)),
      '" r="',
      utils.uint2str(planet.planetRadius - 2),
      '" fill="rgb(',
      colorTuple,
      ')"/>'
      // Outer circle
      '<circle cx="',
      utils.uint2str(uint256(int256(halfCanvasWidth) + outerX / 1e18)),
      '" cy="'
    );

    renderedSVG = string.concat(
      renderedSVG,
      utils.uint2str(uint256(int256(halfCanvasWidth) - outerY / 1e18)),
      '" r="',
      utils.uint2str(planet.planetRadius),
      '" fill-opacity="0.8" fill="rgb(',
      colorTuple,
      ')"/>'
    );

    if (planet.ringsOffset != 0) {
      uint256 ringsRadius = planet.planetRadius + planet.ringsOffset;
      renderedSVG = string.concat(
        renderedSVG,
        // Rings
        '<circle cx="',
        utils.uint2str(uint256(int256(halfCanvasWidth) + outerX / 1e18)),
        '" cy="',
        utils.uint2str(uint256(int256(halfCanvasWidth) - outerY / 1e18)),
        '" r="',
        utils.uint2str(ringsRadius),
        '" fill="none" stroke-width="1" stroke="rgb(',
        colorTuple,
        ')"/>'
      );
    }

    renderedSVG = string.concat(
      renderedSVG,
      '<animateTransform attributeName="transform" type="rotate" from="0 ',
      utils.uint2str(halfCanvasWidth),
      " ",
      utils.uint2str(halfCanvasWidth),
      '" to="360 ',
      utils.uint2str(halfCanvasWidth),
      " ",
      utils.uint2str(halfCanvasWidth),
      '" dur="'
    );

    renderedSVG = string.concat(
      renderedSVG,
      utils.uint2str(planet.duration),
      's" repeatCount="indefinite"></animateTransform>',
      "</g>"
    );

    return renderedSVG;
  }

  /**
  * @notice Gets the number of planets in a solar system.
  * @param _tokenId The token ID of the solar system to get the number of planets for.
  */
  function numPlanetsForTokenId(uint256 _tokenId) public pure returns (uint256) {
    return utils.randomRange(_tokenId, "numPlanets", 1, 6);
  }

  /**
  * @notice Gets the number of ringed planets in a solar system.
  * @param _tokenId The token ID of the solar system to get the number of ringed planets for.
  */
  function numRingedPlanetsForTokenId(uint256 _tokenId) public pure returns (uint256) {
    uint256 numRingedPlanets;
    for (uint256 i = 0; i < numPlanetsForTokenId(_tokenId); i++) {
      if (utils.randomRange(_tokenId, string.concat("ringsOffset", utils.uint2str(i)), 0, 10) == 5) {
        numRingedPlanets++;
      }
    }
    return numRingedPlanets;
  }

  /**
  * @notice Determines if a solar system has a rare star.
  * @param _tokenId The token ID of the solar system to check.
  */
  function hasRareStarForTokenId(uint256 _tokenId) public pure returns (bool) {
    return utils.randomRange(_tokenId, "rareStar", 0, 10) == 5;
  }

  /**
  * @notice Gets the SVG representation of a solar system.
  * @param _tokenId The token ID of the solar system to generate the SVG for.
  */
  function getSVG(uint256 _tokenId) public pure returns (string memory) {
    uint256 numPlanets = numPlanetsForTokenId(_tokenId);
    uint256 radiusInterval = SIZE / 2 / (numPlanets + 3);
    uint256 planetRadiusUpperBound = utils.min(radiusInterval / 2, SIZE / 4);
    uint256 planetRadiusLowerBound = radiusInterval / 4;

    uint256 starRadius = utils.randomRange(_tokenId, "starRadius", radiusInterval, radiusInterval * 2 - 10);
    string memory starAttributes = hasRareStarForTokenId(_tokenId) ? 'fill="#39B1FF"' : 'fill="#FFDA17"';

    string memory renderSvg = string.concat(
      '<svg width="',
      utils.uint2str(SIZE),
      '" height="',
      utils.uint2str(SIZE),
      '" viewBox="0 0 ',
      utils.uint2str(SIZE),
      " ",
      utils.uint2str(SIZE),
      '" xmlns="http://www.w3.org/2000/svg">',
      '<rect width="',
      utils.uint2str(SIZE),
      '" height="',
      utils.uint2str(SIZE),
      '" fill="#0D1F2F"></rect>',
      '<circle cx="',
      utils.uint2str(SIZE / 2),
      '" cy="',
      utils.uint2str(SIZE / 2),
      '" r="',
      utils.uint2str(starRadius),
      '" ',
      starAttributes,
      "/>"
    );

    for (uint256 i = 0; i < numPlanets; i++) {
      Planet memory planet;

      if (utils.randomRange(_tokenId, string.concat("ringsOffset", utils.uint2str(i)), 0, 10) == 5) {
        planet.ringsOffset = 4;
      }

      planet.planetRadius = utils.randomRange(
        _tokenId,
        string.concat("planetRadius", utils.uint2str(i)),
        planetRadiusLowerBound,
        planetRadiusUpperBound - planet.ringsOffset
      );

      planet.orbitRadius = radiusInterval * (i + 3);
      planet.duration = utils.randomRange(_tokenId, string.concat("duration", utils.uint2str(i)), 5, 15);

      planet.color[0] = utils.randomRange(_tokenId, string.concat("colorR", utils.uint2str(i)), 100, 255);
      planet.color[1] = utils.randomRange(_tokenId, string.concat("colorG", utils.uint2str(i)), 100, 255);
      planet.color[2] = utils.randomRange(_tokenId, string.concat("colorB", utils.uint2str(i)), 100, 255);

      planet.initialAngleDegrees = utils.randomRange(
        _tokenId,
        string.concat("initialAngle", utils.uint2str(i)),
        0,
        360
      );

      string memory planetSVG = getOrbitSVG(planet);
      renderSvg = string.concat(renderSvg, planetSVG);
    }

    renderSvg = string.concat(renderSvg, "</svg>");

    return renderSvg;
  }

  function render(uint256 _tokenId) public pure returns (string memory) {
    return getSVG(_tokenId);
  }
}

File 5 of 9 : Trigonometry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

/**
 * @notice Solidity library offering basic trigonometry functions where inputs and outputs are
 * integers. Inputs are specified in radians scaled by 1e18, and similarly outputs are scaled by 1e18.
 *
 * This implementation is based off the Solidity trigonometry library written by Lefteris Karapetsas
 * which can be found here: https://github.com/Sikorkaio/sikorka/blob/e75c91925c914beaedf4841c0336a806f2b5f66d/contracts/trigonometry.sol
 *
 * Compared to Lefteris' implementation, this version makes the following changes:
 *   - Uses a 32 bits instead of 16 bits for improved accuracy
 *   - Updated for Solidity 0.8.x
 *   - Various gas optimizations
 *   - Change inputs/outputs to standard trig format (scaled by 1e18) instead of requiring the
 *     integer format used by the algorithm
 *
 * Lefertis' implementation is based off Dave Dribin's trigint C library
 *     http://www.dribin.org/dave/trigint/
 *
 * Which in turn is based from a now deleted article which can be found in the Wayback Machine:
 *     http://web.archive.org/web/20120301144605/http://www.dattalo.com/technical/software/pic/picsine.html
 */
library Trigonometry {
  // Table index into the trigonometric table
  uint256 constant INDEX_WIDTH = 8;
  // Interpolation between successive entries in the table
  uint256 constant INTERP_WIDTH = 16;
  uint256 constant INDEX_OFFSET = 28 - INDEX_WIDTH;
  uint256 constant INTERP_OFFSET = INDEX_OFFSET - INTERP_WIDTH;
  uint32 constant ANGLES_IN_CYCLE = 1073741824;
  uint32 constant QUADRANT_HIGH_MASK = 536870912;
  uint32 constant QUADRANT_LOW_MASK = 268435456;
  uint256 constant SINE_TABLE_SIZE = 256;

  // Pi as an 18 decimal value, which is plenty of accuracy: "For JPL's highest accuracy calculations, which are for
  // interplanetary navigation, we use 3.141592653589793: https://www.jpl.nasa.gov/edu/news/2016/3/16/how-many-decimals-of-pi-do-we-really-need/
  uint256 constant PI = 3141592653589793238;
  uint256 constant TWO_PI = 2 * PI;
  uint256 constant PI_OVER_TWO = PI / 2;

  // The constant sine lookup table was generated by generate_trigonometry.py. We must use a constant
  // bytes array because constant arrays are not supported in Solidity. Each entry in the lookup
  // table is 4 bytes. Since we're using 32-bit parameters for the lookup table, we get a table size
  // of 2^(32/4) + 1 = 257, where the first and last entries are equivalent (hence the table size of
  // 256 defined above)
  uint8 constant entry_bytes = 4; // each entry in the lookup table is 4 bytes
  uint256 constant entry_mask = ((1 << (8 * entry_bytes)) - 1); // mask used to cast bytes32 -> lookup table entry
  bytes constant sin_table =
    hex"00_00_00_00_00_c9_0f_88_01_92_1d_20_02_5b_26_d7_03_24_2a_bf_03_ed_26_e6_04_b6_19_5d_05_7f_00_35_06_47_d9_7c_07_10_a3_45_07_d9_5b_9e_08_a2_00_9a_09_6a_90_49_0a_33_08_bc_0a_fb_68_05_0b_c3_ac_35_0c_8b_d3_5e_0d_53_db_92_0e_1b_c2_e4_0e_e3_87_66_0f_ab_27_2b_10_72_a0_48_11_39_f0_cf_12_01_16_d5_12_c8_10_6e_13_8e_db_b1_14_55_76_b1_15_1b_df_85_15_e2_14_44_16_a8_13_05_17_6d_d9_de_18_33_66_e8_18_f8_b8_3c_19_bd_cb_f3_1a_82_a0_25_1b_47_32_ef_1c_0b_82_6a_1c_cf_8c_b3_1d_93_4f_e5_1e_56_ca_1e_1f_19_f9_7b_1f_dc_dc_1b_20_9f_70_1c_21_61_b3_9f_22_23_a4_c5_22_e5_41_af_23_a6_88_7e_24_67_77_57_25_28_0c_5d_25_e8_45_b6_26_a8_21_85_27_67_9d_f4_28_26_b9_28_28_e5_71_4a_29_a3_c4_85_2a_61_b1_01_2b_1f_34_eb_2b_dc_4e_6f_2c_98_fb_ba_2d_55_3a_fb_2e_11_0a_62_2e_cc_68_1e_2f_87_52_62_30_41_c7_60_30_fb_c5_4d_31_b5_4a_5d_32_6e_54_c7_33_26_e2_c2_33_de_f2_87_34_96_82_4f_35_4d_90_56_36_04_1a_d9_36_ba_20_13_37_6f_9e_46_38_24_93_b0_38_d8_fe_93_39_8c_dd_32_3a_40_2d_d1_3a_f2_ee_b7_3b_a5_1e_29_3c_56_ba_70_3d_07_c1_d5_3d_b8_32_a5_3e_68_0b_2c_3f_17_49_b7_3f_c5_ec_97_40_73_f2_1d_41_21_58_9a_41_ce_1e_64_42_7a_41_d0_43_25_c1_35_43_d0_9a_ec_44_7a_cd_50_45_24_56_bc_45_cd_35_8f_46_75_68_27_47_1c_ec_e6_47_c3_c2_2e_48_69_e6_64_49_0f_57_ee_49_b4_15_33_4a_58_1c_9d_4a_fb_6c_97_4b_9e_03_8f_4c_3f_df_f3_4c_e1_00_34_4d_81_62_c3_4e_21_06_17_4e_bf_e8_a4_4f_5e_08_e2_4f_fb_65_4c_50_97_fc_5e_51_33_cc_94_51_ce_d4_6e_52_69_12_6e_53_02_85_17_53_9b_2a_ef_54_33_02_7d_54_ca_0a_4a_55_60_40_e2_55_f5_a4_d2_56_8a_34_a9_57_1d_ee_f9_57_b0_d2_55_58_42_dd_54_58_d4_0e_8c_59_64_64_97_59_f3_de_12_5a_82_79_99_5b_10_35_ce_5b_9d_11_53_5c_29_0a_cc_5c_b4_20_df_5d_3e_52_36_5d_c7_9d_7b_5e_50_01_5d_5e_d7_7c_89_5f_5e_0d_b2_5f_e3_b3_8d_60_68_6c_ce_60_ec_38_2f_61_6f_14_6b_61_f1_00_3e_62_71_fa_68_62_f2_01_ac_63_71_14_cc_63_ef_32_8f_64_6c_59_bf_64_e8_89_25_65_63_bf_91_65_dd_fb_d2_66_57_3c_bb_66_cf_81_1f_67_46_c7_d7_67_bd_0f_bc_68_32_57_aa_68_a6_9e_80_69_19_e3_1f_69_8c_24_6b_69_fd_61_4a_6a_6d_98_a3_6a_dc_c9_64_6b_4a_f2_78_6b_b8_12_d0_6c_24_29_5f_6c_8f_35_1b_6c_f9_34_fb_6d_62_27_f9_6d_ca_0d_14_6e_30_e3_49_6e_96_a9_9c_6e_fb_5f_11_6f_5f_02_b1_6f_c1_93_84_70_23_10_99_70_83_78_fe_70_e2_cb_c5_71_41_08_04_71_9e_2c_d1_71_fa_39_48_72_55_2c_84_72_af_05_a6_73_07_c3_cf_73_5f_66_25_73_b5_eb_d0_74_0b_53_fa_74_5f_9d_d0_74_b2_c8_83_75_04_d3_44_75_55_bd_4b_75_a5_85_ce_75_f4_2c_0a_76_41_af_3c_76_8e_0e_a5_76_d9_49_88_77_23_5f_2c_77_6c_4e_da_77_b4_17_df_77_fa_b9_88_78_40_33_28_78_84_84_13_78_c7_ab_a1_79_09_a9_2c_79_4a_7c_11_79_8a_23_b0_79_c8_9f_6d_7a_05_ee_ac_7a_42_10_d8_7a_7d_05_5a_7a_b6_cb_a3_7a_ef_63_23_7b_26_cb_4e_7b_5d_03_9d_7b_92_0b_88_7b_c5_e2_8f_7b_f8_88_2f_7c_29_fb_ed_7c_5a_3d_4f_7c_89_4b_dd_7c_b7_27_23_7c_e3_ce_b1_7d_0f_42_17_7d_39_80_eb_7d_62_8a_c5_7d_8a_5f_3f_7d_b0_fd_f7_7d_d6_66_8e_7d_fa_98_a7_7e_1d_93_e9_7e_3f_57_fe_7e_5f_e4_92_7e_7f_39_56_7e_9d_55_fb_7e_ba_3a_38_7e_d5_e5_c5_7e_f0_58_5f_7f_09_91_c3_7f_21_91_b3_7f_38_57_f5_7f_4d_e4_50_7f_62_36_8e_7f_75_4e_7f_7f_87_2b_f2_7f_97_ce_bc_7f_a7_36_b3_7f_b5_63_b2_7f_c2_55_95_7f_ce_0c_3d_7f_d8_87_8d_7f_e1_c7_6a_7f_e9_cb_bf_7f_f0_94_77_7f_f6_21_81_7f_fa_72_d0_7f_fd_88_59_7f_ff_62_15_7f_ff_ff_ff";

  /**
   * @notice Return the sine of a value, specified in radians scaled by 1e18
   * @dev This algorithm for converting sine only uses integer values, and it works by dividing the
   * circle into 30 bit angles, i.e. there are 1,073,741,824 (2^30) angle units, instead of the
   * standard 360 degrees (2pi radians). From there, we get an output in range -2,147,483,647 to
   * 2,147,483,647, (which is the max value of an int32) which is then converted back to the standard
   * range of -1 to 1, again scaled by 1e18
   * @param _angle Angle to convert
   * @return Result scaled by 1e18
   */
  function sin(uint256 _angle) internal pure returns (int256) {
    unchecked {
      // Convert angle from from arbitrary radian value (range of 0 to 2pi) to the algorithm's range
      // of 0 to 1,073,741,824
      _angle = (ANGLES_IN_CYCLE * (_angle % TWO_PI)) / TWO_PI;

      // Apply a mask on an integer to extract a certain number of bits, where angle is the integer
      // whose bits we want to get, the width is the width of the bits (in bits) we want to extract,
      // and the offset is the offset of the bits (in bits) we want to extract. The result is an
      // integer containing _width bits of _value starting at the offset bit
      uint256 interp = (_angle >> INTERP_OFFSET) & ((1 << INTERP_WIDTH) - 1);
      uint256 index = (_angle >> INDEX_OFFSET) & ((1 << INDEX_WIDTH) - 1);

      // The lookup table only contains data for one quadrant (since sin is symmetric around both
      // axes), so here we figure out which quadrant we're in, then we lookup the values in the
      // table then modify values accordingly
      bool is_odd_quadrant = (_angle & QUADRANT_LOW_MASK) == 0;
      bool is_negative_quadrant = (_angle & QUADRANT_HIGH_MASK) != 0;

      if (!is_odd_quadrant) {
        index = SINE_TABLE_SIZE - 1 - index;
      }

      bytes memory table = sin_table;
      // We are looking for two consecutive indices in our lookup table
      // Since EVM is left aligned, to read n bytes of data from idx i, we must read from `i * data_len` + `n`
      // therefore, to read two entries of size entry_bytes `index * entry_bytes` + `entry_bytes * 2`
      uint256 offset1_2 = (index + 2) * entry_bytes;

      // This following snippet will function for any entry_bytes <= 15
      uint256 x1_2;
      assembly {
        // mload will grab one word worth of bytes (32), as that is the minimum size in EVM
        x1_2 := mload(add(table, offset1_2))
      }

      // We now read the last two numbers of size entry_bytes from x1_2
      // in example: entry_bytes = 4; x1_2 = 0x00...12345678abcdefgh
      // therefore: entry_mask = 0xFFFFFFFF

      // 0x00...12345678abcdefgh >> 8*4 = 0x00...12345678
      // 0x00...12345678 & 0xFFFFFFFF = 0x12345678
      uint256 x1 = (x1_2 >> (8 * entry_bytes)) & entry_mask;
      // 0x00...12345678abcdefgh & 0xFFFFFFFF = 0xabcdefgh
      uint256 x2 = x1_2 & entry_mask;

      // Approximate angle by interpolating in the table, accounting for the quadrant
      uint256 approximation = ((x2 - x1) * interp) >> INTERP_WIDTH;
      int256 sine = is_odd_quadrant ? int256(x1) + int256(approximation) : int256(x2) - int256(approximation);
      if (is_negative_quadrant) {
        sine *= -1;
      }

      // Bring result from the range of -2,147,483,647 through 2,147,483,647 to -1e18 through 1e18.
      // This can never overflow because sine is bounded by the above values
      return (sine * 1e18) / 2_147_483_647;
    }
  }

  /**
   * @notice Return the cosine of a value, specified in radians scaled by 1e18
   * @dev This is identical to the sin() method, and just computes the value by delegating to the
   * sin() method using the identity cos(x) = sin(x + pi/2)
   * @dev Overflow when `angle + PI_OVER_TWO > type(uint256).max` is ok, results are still accurate
   * @param _angle Angle to convert
   * @return Result scaled by 1e18
   */
  function cos(uint256 _angle) internal pure returns (int256) {
    unchecked {
      return sin(_angle + PI_OVER_TWO);
    }
  }
}

File 6 of 9 : Utilities.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

// Core utils used extensively to format CSS and numbers.
library utils {
  function random(string memory input) internal pure returns (uint256) {
    return uint256(keccak256(abi.encodePacked(input)));
  }

  function randomRange(
    uint256 tokenId,
    string memory keyPrefix,
    uint256 lower,
    uint256 upper
  ) internal pure returns (uint256) {
    uint256 rand = random(string(abi.encodePacked(keyPrefix, uint2str(tokenId))));
    return (rand % (upper - lower)) + lower;
  }

  function min(uint256 a, uint256 b) internal pure returns (uint256) {
    return a < b ? a : b;
  }

  // converts an unsigned integer to a string
  function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) {
    if (_i == 0) {
      return "0";
    }
    uint256 j = _i;
    uint256 len;
    while (j != 0) {
      len++;
      j /= 10;
    }
    bytes memory bstr = new bytes(len);
    uint256 k = len;
    while (_i != 0) {
      k = k - 1;
      uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
      bytes1 b1 = bytes1(temp);
      bstr[k] = b1;
      _i /= 10;
    }
    return string(bstr);
  }
}

File 7 of 9 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 8 of 9 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 9 of 9 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
  bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

  /// @notice Encodes some bytes to the base64 representation
  function encode(bytes memory data) internal pure returns (string memory) {
    uint256 len = data.length;
    if (len == 0) return "";

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

    // Add some extra buffer at the end
    bytes memory result = new bytes(encodedLen + 32);

    bytes memory table = TABLE;

    assembly {
      let tablePtr := add(table, 1)
      let resultPtr := add(result, 32)

      for {
        let i := 0
      } lt(i, len) {

      } {
        i := add(i, 3)
        let input := and(mload(add(data, i)), 0xffffff)

        let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
        out := shl(8, out)
        out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
        out := shl(8, out)
        out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
        out := shl(8, out)
        out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
        out := shl(224, out)

        mstore(resultPtr, out)

        resultPtr := add(resultPtr, 4)
      }

      switch mod(len, 3)
      case 1 {
        mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
      }
      case 2 {
        mstore(sub(resultPtr, 1), shl(248, 0x3d))
      }

      mstore(result, encodedLen)
    }

    return string(result);
  }
}

Settings
{
  "evmVersion": "london",
  "libraries": {
    "contracts/SolarSystem.sol:SolarSystems": {
      "Utilities": "0x78b005A56b91bE61c7d988b346F69233e81E4e4F",
      "Trigonometry": "0x3c0d3c2a9A73fbDF4C4F12597AF8Ba0927A4C810"
    }
  },
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_renderer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract Renderer","name":"","type":"address"}],"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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003a2038038062003a208339818101604052810190620000379190620003f9565b848481600290816200004a919062000700565b5080600390816200005c919062000700565b506200006d620000ef60201b60201c565b60008190555050506200009562000089620000f860201b60201c565b6200010060201b60201c565b8260098190555081600a8190555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620007e7565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200022f82620001e4565b810181811067ffffffffffffffff82111715620002515762000250620001f5565b5b80604052505050565b600062000266620001c6565b905062000274828262000224565b919050565b600067ffffffffffffffff821115620002975762000296620001f5565b5b620002a282620001e4565b9050602081019050919050565b60005b83811015620002cf578082015181840152602081019050620002b2565b60008484015250505050565b6000620002f2620002ec8462000279565b6200025a565b905082815260208101848484011115620003115762000310620001df565b5b6200031e848285620002af565b509392505050565b600082601f8301126200033e576200033d620001da565b5b815162000350848260208601620002db565b91505092915050565b6000819050919050565b6200036e8162000359565b81146200037a57600080fd5b50565b6000815190506200038e8162000363565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003c18262000394565b9050919050565b620003d381620003b4565b8114620003df57600080fd5b50565b600081519050620003f381620003c8565b92915050565b600080600080600060a08688031215620004185762000417620001d0565b5b600086015167ffffffffffffffff811115620004395762000438620001d5565b5b620004478882890162000326565b955050602086015167ffffffffffffffff8111156200046b576200046a620001d5565b5b620004798882890162000326565b94505060406200048c888289016200037d565b93505060606200049f888289016200037d565b9250506080620004b288828901620003e2565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200051257607f821691505b602082108103620005285762000527620004ca565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000553565b6200059e868362000553565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620005e1620005db620005d58462000359565b620005b6565b62000359565b9050919050565b6000819050919050565b620005fd83620005c0565b620006156200060c82620005e8565b84845462000560565b825550505050565b600090565b6200062c6200061d565b62000639818484620005f2565b505050565b5b8181101562000661576200065560008262000622565b6001810190506200063f565b5050565b601f821115620006b0576200067a816200052e565b620006858462000543565b8101602085101562000695578190505b620006ad620006a48562000543565b8301826200063e565b50505b505050565b600082821c905092915050565b6000620006d560001984600802620006b5565b1980831691505092915050565b6000620006f08383620006c2565b9150826002028217905092915050565b6200070b82620004bf565b67ffffffffffffffff811115620007275762000726620001f5565b5b620007338254620004f9565b6200074082828562000665565b600060209050601f83116001811462000778576000841562000763578287015190505b6200076f8582620006e2565b865550620007df565b601f19841662000788866200052e565b60005b82811015620007b2578489015182556001820191506020850194506020810190506200078b565b86831015620007d25784890151620007ce601f891682620006c2565b8355505b6001600288020188555050505b505050505050565b61322980620007f76000396000f3fe60806040526004361061014b5760003560e01c80638da5cb5b116100b6578063b88d4fde1161006f578063b88d4fde14610436578063c204642c14610452578063c87b56dd1461046e578063d5abeb01146104ab578063e985e9c5146104d6578063f2fde38b146105135761014b565b80638da5cb5b1461034757806391b7f5ed1461037257806395d89b411461039b578063a035b1fe146103c6578063a0712d68146103f1578063a22cb4651461040d5761014b565b80633ccfd60b116101085780633ccfd60b1461025857806342842e0e1461026f5780636352211e1461028b57806370a08231146102c8578063715018a6146103055780638ada6b0f1461031c5761014b565b806301ffc9a71461015057806306fdde031461018d578063081812fc146101b8578063095ea7b3146101f557806318160ddd1461021157806323b872dd1461023c575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611f8e565b61053c565b6040516101849190611fd6565b60405180910390f35b34801561019957600080fd5b506101a26105ce565b6040516101af9190612081565b60405180910390f35b3480156101c457600080fd5b506101df60048036038101906101da91906120d9565b610660565b6040516101ec9190612147565b60405180910390f35b61020f600480360381019061020a919061218e565b6106df565b005b34801561021d57600080fd5b50610226610823565b60405161023391906121dd565b60405180910390f35b610256600480360381019061025191906121f8565b61083a565b005b34801561026457600080fd5b5061026d610b5c565b005b610289600480360381019061028491906121f8565b610ba4565b005b34801561029757600080fd5b506102b260048036038101906102ad91906120d9565b610bc4565b6040516102bf9190612147565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea919061224b565b610bd6565b6040516102fc91906121dd565b60405180910390f35b34801561031157600080fd5b5061031a610c8e565b005b34801561032857600080fd5b50610331610ca2565b60405161033e91906122d7565b60405180910390f35b34801561035357600080fd5b5061035c610cc8565b6040516103699190612147565b60405180910390f35b34801561037e57600080fd5b50610399600480360381019061039491906120d9565b610cf2565b005b3480156103a757600080fd5b506103b0610d04565b6040516103bd9190612081565b60405180910390f35b3480156103d257600080fd5b506103db610d96565b6040516103e891906121dd565b60405180910390f35b61040b600480360381019061040691906120d9565b610d9c565b005b34801561041957600080fd5b50610434600480360381019061042f919061231e565b610e50565b005b610450600480360381019061044b9190612493565b610f5b565b005b61046c600480360381019061046791906125de565b610fce565b005b34801561047a57600080fd5b50610495600480360381019061049091906120d9565b611081565b6040516104a29190612081565b60405180910390f35b3480156104b757600080fd5b506104c0611470565b6040516104cd91906121dd565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f8919061263a565b611476565b60405161050a9190611fd6565b60405180910390f35b34801561051f57600080fd5b5061053a6004803603810190610535919061224b565b61150a565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061059757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105c75750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546105dd906126a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610609906126a9565b80156106565780601f1061062b57610100808354040283529160200191610656565b820191906000526020600020905b81548152906001019060200180831161063957829003601f168201915b5050505050905090565b600061066b8261158d565b6106a1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106ea82610bc4565b90508073ffffffffffffffffffffffffffffffffffffffff1661070b6115ec565b73ffffffffffffffffffffffffffffffffffffffff161461076e57610737816107326115ec565b611476565b61076d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061082d6115f4565b6001546000540303905090565b6000610845826115fd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108ac576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806108b8846116c9565b915091506108ce81876108c96115ec565b6116f0565b61091a576108e3866108de6115ec565b611476565b610919576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610980576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61098d8686866001611734565b801561099857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610a6685610a4288888761173a565b7c020000000000000000000000000000000000000000000000000000000017611762565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610aec5760006001850190506000600460008381526020019081526020016000205403610aea576000548114610ae9578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610b54868686600161178d565b505050505050565b610b64611793565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050610ba257600080fd5b565b610bbf83838360405180602001604052806000815250610f5b565b505050565b6000610bcf826115fd565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c3d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610c96611793565b610ca06000611811565b565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610cfa611793565b8060098190555050565b606060038054610d13906126a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3f906126a9565b8015610d8c5780601f10610d6157610100808354040283529160200191610d8c565b820191906000526020600020905b815481529060010190602001808311610d6f57829003601f168201915b5050505050905090565b60095481565b80600954610daa9190612709565b341015610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de3906127af565b60405180910390fd5b600a5481610df8610823565b610e0291906127cf565b1115610e43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3a9061284f565b60405180910390fd5b610e4d33826118d7565b50565b8060076000610e5d6115ec565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610f0a6115ec565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f4f9190611fd6565b60405180910390a35050565b610f6684848461083a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14610fc857610f9184848484611a92565b610fc7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b610fd6611793565b600a54825182610fe69190612709565b610fee610823565b610ff891906127cf565b1115611039576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110309061284f565b60405180910390fd5b60005b825181101561107c5761106983828151811061105b5761105a61286f565b5b6020026020010151836118d7565b80806110749061289e565b91505061103c565b505050565b606061108c8261158d565b6110c2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006110cd83611be2565b6040516020016110dd919061296e565b604051602081830303815290604052905060006040518060600160405280603f8152602001613175603f913990506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663be985ac9866040518263ffffffff1660e01b815260040161116891906121dd565b600060405180830381865afa158015611185573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906111ae9190612a31565b905060008383611258600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd01884f8a6040518263ffffffff1660e01b815260040161121291906121dd565b602060405180830381865afa15801561122f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112539190612a8f565b611be2565b6112fc600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663398820ff8b6040518263ffffffff1660e01b81526004016112b691906121dd565b602060405180830381865afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190612a8f565b611be2565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634716826c8b6040518263ffffffff1660e01b815260040161135791906121dd565b602060405180830381865afa158015611374573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113989190612ad1565b6113d7576040518060400160405280600681526020017f4e6f726d616c000000000000000000000000000000000000000000000000000081525061140e565b6040518060400160405280600481526020017f426c7565000000000000000000000000000000000000000000000000000000008152505b61141787611d6a565b60405160200161142c96959493929190612daa565b604051602081830303815290604052905061144681611d6a565b6040516020016114569190612e9b565b604051602081830303815290604052945050505050919050565b600a5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611512611793565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890612f2f565b60405180910390fd5b61158a81611811565b50565b6000816115986115f4565b111580156115a7575060005482105b80156115e5575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061160c6115f4565b11611692576000548110156116915760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361168f575b6000810361168557600460008360019003935083815260200190815260200160002054905061165b565b80925050506116c4565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611751868684611f01565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61179b611f0a565b73ffffffffffffffffffffffffffffffffffffffff166117b9610cc8565b73ffffffffffffffffffffffffffffffffffffffff161461180f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180690612f9b565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905060008203611917576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119246000848385611734565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061199b8361198c600086600061173a565b61199585611f12565b17611762565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611a3c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611a01565b5060008203611a77576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611a8d600084838561178d565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ab86115ec565b8786866040518563ffffffff1660e01b8152600401611ada9493929190613010565b6020604051808303816000875af1925050508015611b1657506040513d601f19601f82011682018060405250810190611b139190613071565b60015b611b8f573d8060008114611b46576040519150601f19603f3d011682016040523d82523d6000602084013e611b4b565b606091505b506000815103611b87576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203611c29576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d65565b600082905060005b60008214611c5b578080611c449061289e565b915050600a82611c5491906130cd565b9150611c31565b60008167ffffffffffffffff811115611c7757611c76612368565b5b6040519080825280601f01601f191660200182016040528015611ca95781602001600182028036833780820191505090505b50905060008290505b60008614611d5d57600181611cc791906130fe565b90506000600a8088611cd991906130cd565b611ce39190612709565b87611cee91906130fe565b6030611cfa919061313f565b905060008160f81b905080848481518110611d1857611d1761286f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88611d5491906130cd565b97505050611cb2565b819450505050505b919050565b606060008251905060008103611d925760405180602001604052806000815250915050611efc565b60006003600283611da391906127cf565b611dad91906130cd565b6004611db99190612709565b90506000602082611dca91906127cf565b67ffffffffffffffff811115611de357611de2612368565b5b6040519080825280601f01601f191660200182016040528015611e155781602001600182028036833780820191505090505b50905060006040518060600160405280604081526020016131b4604091399050600181016020830160005b86811015611eb95760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050611e40565b506003860660018114611ed35760028114611ee357611eee565b613d3d60f01b6002830352611eee565b603d60f81b60018303525b508484525050819450505050505b919050565b60009392505050565b600033905090565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611f6b81611f36565b8114611f7657600080fd5b50565b600081359050611f8881611f62565b92915050565b600060208284031215611fa457611fa3611f2c565b5b6000611fb284828501611f79565b91505092915050565b60008115159050919050565b611fd081611fbb565b82525050565b6000602082019050611feb6000830184611fc7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561202b578082015181840152602081019050612010565b60008484015250505050565b6000601f19601f8301169050919050565b600061205382611ff1565b61205d8185611ffc565b935061206d81856020860161200d565b61207681612037565b840191505092915050565b6000602082019050818103600083015261209b8184612048565b905092915050565b6000819050919050565b6120b6816120a3565b81146120c157600080fd5b50565b6000813590506120d3816120ad565b92915050565b6000602082840312156120ef576120ee611f2c565b5b60006120fd848285016120c4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061213182612106565b9050919050565b61214181612126565b82525050565b600060208201905061215c6000830184612138565b92915050565b61216b81612126565b811461217657600080fd5b50565b60008135905061218881612162565b92915050565b600080604083850312156121a5576121a4611f2c565b5b60006121b385828601612179565b92505060206121c4858286016120c4565b9150509250929050565b6121d7816120a3565b82525050565b60006020820190506121f260008301846121ce565b92915050565b60008060006060848603121561221157612210611f2c565b5b600061221f86828701612179565b935050602061223086828701612179565b9250506040612241868287016120c4565b9150509250925092565b60006020828403121561226157612260611f2c565b5b600061226f84828501612179565b91505092915050565b6000819050919050565b600061229d61229861229384612106565b612278565b612106565b9050919050565b60006122af82612282565b9050919050565b60006122c1826122a4565b9050919050565b6122d1816122b6565b82525050565b60006020820190506122ec60008301846122c8565b92915050565b6122fb81611fbb565b811461230657600080fd5b50565b600081359050612318816122f2565b92915050565b6000806040838503121561233557612334611f2c565b5b600061234385828601612179565b925050602061235485828601612309565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123a082612037565b810181811067ffffffffffffffff821117156123bf576123be612368565b5b80604052505050565b60006123d2611f22565b90506123de8282612397565b919050565b600067ffffffffffffffff8211156123fe576123fd612368565b5b61240782612037565b9050602081019050919050565b82818337600083830152505050565b6000612436612431846123e3565b6123c8565b90508281526020810184848401111561245257612451612363565b5b61245d848285612414565b509392505050565b600082601f83011261247a5761247961235e565b5b813561248a848260208601612423565b91505092915050565b600080600080608085870312156124ad576124ac611f2c565b5b60006124bb87828801612179565b94505060206124cc87828801612179565b93505060406124dd878288016120c4565b925050606085013567ffffffffffffffff8111156124fe576124fd611f31565b5b61250a87828801612465565b91505092959194509250565b600067ffffffffffffffff82111561253157612530612368565b5b602082029050602081019050919050565b600080fd5b600061255a61255584612516565b6123c8565b9050808382526020820190506020840283018581111561257d5761257c612542565b5b835b818110156125a657806125928882612179565b84526020840193505060208101905061257f565b5050509392505050565b600082601f8301126125c5576125c461235e565b5b81356125d5848260208601612547565b91505092915050565b600080604083850312156125f5576125f4611f2c565b5b600083013567ffffffffffffffff81111561261357612612611f31565b5b61261f858286016125b0565b9250506020612630858286016120c4565b9150509250929050565b6000806040838503121561265157612650611f2c565b5b600061265f85828601612179565b925050602061267085828601612179565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806126c157607f821691505b6020821081036126d4576126d361267a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612714826120a3565b915061271f836120a3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612758576127576126da565b5b828202905092915050565b7f496e73756666696369656e742066656500000000000000000000000000000000600082015250565b6000612799601083611ffc565b91506127a482612763565b602082019050919050565b600060208201905081810360008301526127c88161278c565b9050919050565b60006127da826120a3565b91506127e5836120a3565b92508282019050808211156127fd576127fc6126da565b5b92915050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000612839601283611ffc565b915061284482612803565b602082019050919050565b600060208201905081810360008301526128688161282c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006128a9826120a3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036128db576128da6126da565b5b600182019050919050565b600081905092915050565b7f536f6c61722053797374656d2023000000000000000000000000000000000000600082015250565b6000612927600e836128e6565b9150612932826128f1565b600e82019050919050565b600061294882611ff1565b61295281856128e6565b935061296281856020860161200d565b80840191505092915050565b60006129798261291a565b9150612985828461293d565b915081905092915050565b600067ffffffffffffffff8211156129ab576129aa612368565b5b6129b482612037565b9050602081019050919050565b60006129d46129cf84612990565b6123c8565b9050828152602081018484840111156129f0576129ef612363565b5b6129fb84828561200d565b509392505050565b600082601f830112612a1857612a1761235e565b5b8151612a288482602086016129c1565b91505092915050565b600060208284031215612a4757612a46611f2c565b5b600082015167ffffffffffffffff811115612a6557612a64611f31565b5b612a7184828501612a03565b91505092915050565b600081519050612a89816120ad565b92915050565b600060208284031215612aa557612aa4611f2c565b5b6000612ab384828501612a7a565b91505092915050565b600081519050612acb816122f2565b92915050565b600060208284031215612ae757612ae6611f2c565b5b6000612af584828501612abc565b91505092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000612b346009836128e6565b9150612b3f82612afe565b600982019050919050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b6000612b806011836128e6565b9150612b8b82612b4a565b601182019050919050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a225060008201527f6c616e657473222c2276616c7565223a22000000000000000000000000000000602082015250565b6000612bf26031836128e6565b9150612bfd82612b96565b603182019050919050565b7f227d2c207b2274726169745f74797065223a2252696e67656420506c616e657460008201527f73222c202276616c7565223a2022000000000000000000000000000000000000602082015250565b6000612c64602e836128e6565b9150612c6f82612c08565b602e82019050919050565b7f227d2c207b2274726169745f74797065223a22537461722054797065222c202260008201527f76616c7565223a20220000000000000000000000000000000000000000000000602082015250565b6000612cd66029836128e6565b9150612ce182612c7a565b602982019050919050565b7f227d5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d60008201527f6c3b6261736536342c0000000000000000000000000000000000000000000000602082015250565b6000612d486029836128e6565b9150612d5382612cec565b602982019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000612d946002836128e6565b9150612d9f82612d5e565b600282019050919050565b6000612db582612b27565b9150612dc1828961293d565b9150612dcc82612b73565b9150612dd8828861293d565b9150612de382612be5565b9150612def828761293d565b9150612dfa82612c57565b9150612e06828661293d565b9150612e1182612cc9565b9150612e1d828561293d565b9150612e2882612d3b565b9150612e34828461293d565b9150612e3f82612d87565b9150819050979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000612e85601d836128e6565b9150612e9082612e4f565b601d82019050919050565b6000612ea682612e78565b9150612eb2828461293d565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612f19602683611ffc565b9150612f2482612ebd565b604082019050919050565b60006020820190508181036000830152612f4881612f0c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f85602083611ffc565b9150612f9082612f4f565b602082019050919050565b60006020820190508181036000830152612fb481612f78565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612fe282612fbb565b612fec8185612fc6565b9350612ffc81856020860161200d565b61300581612037565b840191505092915050565b60006080820190506130256000830187612138565b6130326020830186612138565b61303f60408301856121ce565b81810360608301526130518184612fd7565b905095945050505050565b60008151905061306b81611f62565b92915050565b60006020828403121561308757613086611f2c565b5b60006130958482850161305c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130d8826120a3565b91506130e3836120a3565b9250826130f3576130f261309e565b5b828204905092915050565b6000613109826120a3565b9150613114836120a3565b925082820390508181111561312c5761312b6126da565b5b92915050565b600060ff82169050919050565b600061314a82613132565b915061315583613132565b9250828201905060ff81111561316e5761316d6126da565b5b9291505056fe46756c6c79206f6e2d636861696e2c2070726f6365647572616c6c792067656e6572617465642c20616e696d6174656420736f6c61722073797374656d732e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122047f1fd013ff271e01d89a2337dacf865a078ced068341c7c6155a384e1e4b48864736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000b3afac116f43b90ec03db56844c16ec777c2f197000000000000000000000000000000000000000000000000000000000000000c536f6c617253797374656d7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534f4c5359530000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061014b5760003560e01c80638da5cb5b116100b6578063b88d4fde1161006f578063b88d4fde14610436578063c204642c14610452578063c87b56dd1461046e578063d5abeb01146104ab578063e985e9c5146104d6578063f2fde38b146105135761014b565b80638da5cb5b1461034757806391b7f5ed1461037257806395d89b411461039b578063a035b1fe146103c6578063a0712d68146103f1578063a22cb4651461040d5761014b565b80633ccfd60b116101085780633ccfd60b1461025857806342842e0e1461026f5780636352211e1461028b57806370a08231146102c8578063715018a6146103055780638ada6b0f1461031c5761014b565b806301ffc9a71461015057806306fdde031461018d578063081812fc146101b8578063095ea7b3146101f557806318160ddd1461021157806323b872dd1461023c575b600080fd5b34801561015c57600080fd5b5061017760048036038101906101729190611f8e565b61053c565b6040516101849190611fd6565b60405180910390f35b34801561019957600080fd5b506101a26105ce565b6040516101af9190612081565b60405180910390f35b3480156101c457600080fd5b506101df60048036038101906101da91906120d9565b610660565b6040516101ec9190612147565b60405180910390f35b61020f600480360381019061020a919061218e565b6106df565b005b34801561021d57600080fd5b50610226610823565b60405161023391906121dd565b60405180910390f35b610256600480360381019061025191906121f8565b61083a565b005b34801561026457600080fd5b5061026d610b5c565b005b610289600480360381019061028491906121f8565b610ba4565b005b34801561029757600080fd5b506102b260048036038101906102ad91906120d9565b610bc4565b6040516102bf9190612147565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea919061224b565b610bd6565b6040516102fc91906121dd565b60405180910390f35b34801561031157600080fd5b5061031a610c8e565b005b34801561032857600080fd5b50610331610ca2565b60405161033e91906122d7565b60405180910390f35b34801561035357600080fd5b5061035c610cc8565b6040516103699190612147565b60405180910390f35b34801561037e57600080fd5b50610399600480360381019061039491906120d9565b610cf2565b005b3480156103a757600080fd5b506103b0610d04565b6040516103bd9190612081565b60405180910390f35b3480156103d257600080fd5b506103db610d96565b6040516103e891906121dd565b60405180910390f35b61040b600480360381019061040691906120d9565b610d9c565b005b34801561041957600080fd5b50610434600480360381019061042f919061231e565b610e50565b005b610450600480360381019061044b9190612493565b610f5b565b005b61046c600480360381019061046791906125de565b610fce565b005b34801561047a57600080fd5b50610495600480360381019061049091906120d9565b611081565b6040516104a29190612081565b60405180910390f35b3480156104b757600080fd5b506104c0611470565b6040516104cd91906121dd565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f8919061263a565b611476565b60405161050a9190611fd6565b60405180910390f35b34801561051f57600080fd5b5061053a6004803603810190610535919061224b565b61150a565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061059757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105c75750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546105dd906126a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610609906126a9565b80156106565780601f1061062b57610100808354040283529160200191610656565b820191906000526020600020905b81548152906001019060200180831161063957829003601f168201915b5050505050905090565b600061066b8261158d565b6106a1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106ea82610bc4565b90508073ffffffffffffffffffffffffffffffffffffffff1661070b6115ec565b73ffffffffffffffffffffffffffffffffffffffff161461076e57610737816107326115ec565b611476565b61076d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061082d6115f4565b6001546000540303905090565b6000610845826115fd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108ac576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806108b8846116c9565b915091506108ce81876108c96115ec565b6116f0565b61091a576108e3866108de6115ec565b611476565b610919576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610980576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61098d8686866001611734565b801561099857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610a6685610a4288888761173a565b7c020000000000000000000000000000000000000000000000000000000017611762565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610aec5760006001850190506000600460008381526020019081526020016000205403610aea576000548114610ae9578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610b54868686600161178d565b505050505050565b610b64611793565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050610ba257600080fd5b565b610bbf83838360405180602001604052806000815250610f5b565b505050565b6000610bcf826115fd565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c3d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610c96611793565b610ca06000611811565b565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610cfa611793565b8060098190555050565b606060038054610d13906126a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3f906126a9565b8015610d8c5780601f10610d6157610100808354040283529160200191610d8c565b820191906000526020600020905b815481529060010190602001808311610d6f57829003601f168201915b5050505050905090565b60095481565b80600954610daa9190612709565b341015610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de3906127af565b60405180910390fd5b600a5481610df8610823565b610e0291906127cf565b1115610e43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3a9061284f565b60405180910390fd5b610e4d33826118d7565b50565b8060076000610e5d6115ec565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610f0a6115ec565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f4f9190611fd6565b60405180910390a35050565b610f6684848461083a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14610fc857610f9184848484611a92565b610fc7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b610fd6611793565b600a54825182610fe69190612709565b610fee610823565b610ff891906127cf565b1115611039576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110309061284f565b60405180910390fd5b60005b825181101561107c5761106983828151811061105b5761105a61286f565b5b6020026020010151836118d7565b80806110749061289e565b91505061103c565b505050565b606061108c8261158d565b6110c2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006110cd83611be2565b6040516020016110dd919061296e565b604051602081830303815290604052905060006040518060600160405280603f8152602001613175603f913990506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663be985ac9866040518263ffffffff1660e01b815260040161116891906121dd565b600060405180830381865afa158015611185573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906111ae9190612a31565b905060008383611258600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd01884f8a6040518263ffffffff1660e01b815260040161121291906121dd565b602060405180830381865afa15801561122f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112539190612a8f565b611be2565b6112fc600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663398820ff8b6040518263ffffffff1660e01b81526004016112b691906121dd565b602060405180830381865afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190612a8f565b611be2565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634716826c8b6040518263ffffffff1660e01b815260040161135791906121dd565b602060405180830381865afa158015611374573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113989190612ad1565b6113d7576040518060400160405280600681526020017f4e6f726d616c000000000000000000000000000000000000000000000000000081525061140e565b6040518060400160405280600481526020017f426c7565000000000000000000000000000000000000000000000000000000008152505b61141787611d6a565b60405160200161142c96959493929190612daa565b604051602081830303815290604052905061144681611d6a565b6040516020016114569190612e9b565b604051602081830303815290604052945050505050919050565b600a5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611512611793565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890612f2f565b60405180910390fd5b61158a81611811565b50565b6000816115986115f4565b111580156115a7575060005482105b80156115e5575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061160c6115f4565b11611692576000548110156116915760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361168f575b6000810361168557600460008360019003935083815260200190815260200160002054905061165b565b80925050506116c4565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611751868684611f01565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61179b611f0a565b73ffffffffffffffffffffffffffffffffffffffff166117b9610cc8565b73ffffffffffffffffffffffffffffffffffffffff161461180f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180690612f9b565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905060008203611917576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119246000848385611734565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061199b8361198c600086600061173a565b61199585611f12565b17611762565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611a3c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611a01565b5060008203611a77576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611a8d600084838561178d565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ab86115ec565b8786866040518563ffffffff1660e01b8152600401611ada9493929190613010565b6020604051808303816000875af1925050508015611b1657506040513d601f19601f82011682018060405250810190611b139190613071565b60015b611b8f573d8060008114611b46576040519150601f19603f3d011682016040523d82523d6000602084013e611b4b565b606091505b506000815103611b87576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203611c29576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d65565b600082905060005b60008214611c5b578080611c449061289e565b915050600a82611c5491906130cd565b9150611c31565b60008167ffffffffffffffff811115611c7757611c76612368565b5b6040519080825280601f01601f191660200182016040528015611ca95781602001600182028036833780820191505090505b50905060008290505b60008614611d5d57600181611cc791906130fe565b90506000600a8088611cd991906130cd565b611ce39190612709565b87611cee91906130fe565b6030611cfa919061313f565b905060008160f81b905080848481518110611d1857611d1761286f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88611d5491906130cd565b97505050611cb2565b819450505050505b919050565b606060008251905060008103611d925760405180602001604052806000815250915050611efc565b60006003600283611da391906127cf565b611dad91906130cd565b6004611db99190612709565b90506000602082611dca91906127cf565b67ffffffffffffffff811115611de357611de2612368565b5b6040519080825280601f01601f191660200182016040528015611e155781602001600182028036833780820191505090505b50905060006040518060600160405280604081526020016131b4604091399050600181016020830160005b86811015611eb95760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050611e40565b506003860660018114611ed35760028114611ee357611eee565b613d3d60f01b6002830352611eee565b603d60f81b60018303525b508484525050819450505050505b919050565b60009392505050565b600033905090565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611f6b81611f36565b8114611f7657600080fd5b50565b600081359050611f8881611f62565b92915050565b600060208284031215611fa457611fa3611f2c565b5b6000611fb284828501611f79565b91505092915050565b60008115159050919050565b611fd081611fbb565b82525050565b6000602082019050611feb6000830184611fc7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561202b578082015181840152602081019050612010565b60008484015250505050565b6000601f19601f8301169050919050565b600061205382611ff1565b61205d8185611ffc565b935061206d81856020860161200d565b61207681612037565b840191505092915050565b6000602082019050818103600083015261209b8184612048565b905092915050565b6000819050919050565b6120b6816120a3565b81146120c157600080fd5b50565b6000813590506120d3816120ad565b92915050565b6000602082840312156120ef576120ee611f2c565b5b60006120fd848285016120c4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061213182612106565b9050919050565b61214181612126565b82525050565b600060208201905061215c6000830184612138565b92915050565b61216b81612126565b811461217657600080fd5b50565b60008135905061218881612162565b92915050565b600080604083850312156121a5576121a4611f2c565b5b60006121b385828601612179565b92505060206121c4858286016120c4565b9150509250929050565b6121d7816120a3565b82525050565b60006020820190506121f260008301846121ce565b92915050565b60008060006060848603121561221157612210611f2c565b5b600061221f86828701612179565b935050602061223086828701612179565b9250506040612241868287016120c4565b9150509250925092565b60006020828403121561226157612260611f2c565b5b600061226f84828501612179565b91505092915050565b6000819050919050565b600061229d61229861229384612106565b612278565b612106565b9050919050565b60006122af82612282565b9050919050565b60006122c1826122a4565b9050919050565b6122d1816122b6565b82525050565b60006020820190506122ec60008301846122c8565b92915050565b6122fb81611fbb565b811461230657600080fd5b50565b600081359050612318816122f2565b92915050565b6000806040838503121561233557612334611f2c565b5b600061234385828601612179565b925050602061235485828601612309565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123a082612037565b810181811067ffffffffffffffff821117156123bf576123be612368565b5b80604052505050565b60006123d2611f22565b90506123de8282612397565b919050565b600067ffffffffffffffff8211156123fe576123fd612368565b5b61240782612037565b9050602081019050919050565b82818337600083830152505050565b6000612436612431846123e3565b6123c8565b90508281526020810184848401111561245257612451612363565b5b61245d848285612414565b509392505050565b600082601f83011261247a5761247961235e565b5b813561248a848260208601612423565b91505092915050565b600080600080608085870312156124ad576124ac611f2c565b5b60006124bb87828801612179565b94505060206124cc87828801612179565b93505060406124dd878288016120c4565b925050606085013567ffffffffffffffff8111156124fe576124fd611f31565b5b61250a87828801612465565b91505092959194509250565b600067ffffffffffffffff82111561253157612530612368565b5b602082029050602081019050919050565b600080fd5b600061255a61255584612516565b6123c8565b9050808382526020820190506020840283018581111561257d5761257c612542565b5b835b818110156125a657806125928882612179565b84526020840193505060208101905061257f565b5050509392505050565b600082601f8301126125c5576125c461235e565b5b81356125d5848260208601612547565b91505092915050565b600080604083850312156125f5576125f4611f2c565b5b600083013567ffffffffffffffff81111561261357612612611f31565b5b61261f858286016125b0565b9250506020612630858286016120c4565b9150509250929050565b6000806040838503121561265157612650611f2c565b5b600061265f85828601612179565b925050602061267085828601612179565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806126c157607f821691505b6020821081036126d4576126d361267a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612714826120a3565b915061271f836120a3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612758576127576126da565b5b828202905092915050565b7f496e73756666696369656e742066656500000000000000000000000000000000600082015250565b6000612799601083611ffc565b91506127a482612763565b602082019050919050565b600060208201905081810360008301526127c88161278c565b9050919050565b60006127da826120a3565b91506127e5836120a3565b92508282019050808211156127fd576127fc6126da565b5b92915050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000612839601283611ffc565b915061284482612803565b602082019050919050565b600060208201905081810360008301526128688161282c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006128a9826120a3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036128db576128da6126da565b5b600182019050919050565b600081905092915050565b7f536f6c61722053797374656d2023000000000000000000000000000000000000600082015250565b6000612927600e836128e6565b9150612932826128f1565b600e82019050919050565b600061294882611ff1565b61295281856128e6565b935061296281856020860161200d565b80840191505092915050565b60006129798261291a565b9150612985828461293d565b915081905092915050565b600067ffffffffffffffff8211156129ab576129aa612368565b5b6129b482612037565b9050602081019050919050565b60006129d46129cf84612990565b6123c8565b9050828152602081018484840111156129f0576129ef612363565b5b6129fb84828561200d565b509392505050565b600082601f830112612a1857612a1761235e565b5b8151612a288482602086016129c1565b91505092915050565b600060208284031215612a4757612a46611f2c565b5b600082015167ffffffffffffffff811115612a6557612a64611f31565b5b612a7184828501612a03565b91505092915050565b600081519050612a89816120ad565b92915050565b600060208284031215612aa557612aa4611f2c565b5b6000612ab384828501612a7a565b91505092915050565b600081519050612acb816122f2565b92915050565b600060208284031215612ae757612ae6611f2c565b5b6000612af584828501612abc565b91505092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000612b346009836128e6565b9150612b3f82612afe565b600982019050919050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b6000612b806011836128e6565b9150612b8b82612b4a565b601182019050919050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a225060008201527f6c616e657473222c2276616c7565223a22000000000000000000000000000000602082015250565b6000612bf26031836128e6565b9150612bfd82612b96565b603182019050919050565b7f227d2c207b2274726169745f74797065223a2252696e67656420506c616e657460008201527f73222c202276616c7565223a2022000000000000000000000000000000000000602082015250565b6000612c64602e836128e6565b9150612c6f82612c08565b602e82019050919050565b7f227d2c207b2274726169745f74797065223a22537461722054797065222c202260008201527f76616c7565223a20220000000000000000000000000000000000000000000000602082015250565b6000612cd66029836128e6565b9150612ce182612c7a565b602982019050919050565b7f227d5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d60008201527f6c3b6261736536342c0000000000000000000000000000000000000000000000602082015250565b6000612d486029836128e6565b9150612d5382612cec565b602982019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000612d946002836128e6565b9150612d9f82612d5e565b600282019050919050565b6000612db582612b27565b9150612dc1828961293d565b9150612dcc82612b73565b9150612dd8828861293d565b9150612de382612be5565b9150612def828761293d565b9150612dfa82612c57565b9150612e06828661293d565b9150612e1182612cc9565b9150612e1d828561293d565b9150612e2882612d3b565b9150612e34828461293d565b9150612e3f82612d87565b9150819050979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000612e85601d836128e6565b9150612e9082612e4f565b601d82019050919050565b6000612ea682612e78565b9150612eb2828461293d565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612f19602683611ffc565b9150612f2482612ebd565b604082019050919050565b60006020820190508181036000830152612f4881612f0c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f85602083611ffc565b9150612f9082612f4f565b602082019050919050565b60006020820190508181036000830152612fb481612f78565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612fe282612fbb565b612fec8185612fc6565b9350612ffc81856020860161200d565b61300581612037565b840191505092915050565b60006080820190506130256000830187612138565b6130326020830186612138565b61303f60408301856121ce565b81810360608301526130518184612fd7565b905095945050505050565b60008151905061306b81611f62565b92915050565b60006020828403121561308757613086611f2c565b5b60006130958482850161305c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130d8826120a3565b91506130e3836120a3565b9250826130f3576130f261309e565b5b828204905092915050565b6000613109826120a3565b9150613114836120a3565b925082820390508181111561312c5761312b6126da565b5b92915050565b600060ff82169050919050565b600061314a82613132565b915061315583613132565b9250828201905060ff81111561316e5761316d6126da565b5b9291505056fe46756c6c79206f6e2d636861696e2c2070726f6365647572616c6c792067656e6572617465642c20616e696d6174656420736f6c61722073797374656d732e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122047f1fd013ff271e01d89a2337dacf865a078ced068341c7c6155a384e1e4b48864736f6c63430008100033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000b3afac116f43b90ec03db56844c16ec777c2f197000000000000000000000000000000000000000000000000000000000000000c536f6c617253797374656d7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534f4c5359530000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): SolarSystems
Arg [1] : _symbol (string): SOLSYS
Arg [2] : _price (uint256): 10000000000000000
Arg [3] : _maxSupply (uint256): 1000
Arg [4] : _renderer (address): 0xb3AFac116F43B90EC03dB56844c16Ec777c2f197

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 000000000000000000000000b3afac116f43b90ec03db56844c16ec777c2f197
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [6] : 536f6c617253797374656d730000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 534f4c5359530000000000000000000000000000000000000000000000000000


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

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