ETH Price: $3,952.35 (+1.20%)

Token

Crystallized Illusions (CI)
 

Overview

Max Total Supply

0 CI

Holders

66

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CI
0x9874346057faa8c5638694e1c1959f1d4bb48149
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:
Crystallized_Illusions

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Crystallized_Illusions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/**
 * This contract is designed for javascript enhanced multimedia projects.
 * Metadata (traits) must be handled entirely in javascript based on tokenId.
 * This template uses 1 medaiURI for all tokens' content.
 */

/** 
 * @title Crystallized Illusions v2, contract v1.2
 * @notice This is a customized ERC-721 contract for Crystallized Illusions. 
 * @author Matto
 * @custom:security-contact [email protected]
 */ 
contract Crystallized_Illusions is ERC721Royalty, Ownable, ReentrancyGuard {
  using Counters for Counters.Counter;
  using Strings for string;

  Counters.Counter public tokensMinted;
  string public baseURI;
  string public mediaURI;
  string public description;
  bool public projectLocked;
  uint8 public mintStage;
  uint16 public maxSupply = 65535;
  uint96 private platformBPS;
  uint96 private royaltyBPS;
  uint256 public mintFee;
  address private artistAddress;
  address private minterAddress;
  address private platformAddress;
  address private secondaryAddress;
  mapping(uint256 => address) secondaryAddressOf; // Payment Splitter Contract Mapping
  mapping(uint256 => string) public projectData;
  mapping(uint256 => uint256) public tokenEntropyOf;

  constructor() ERC721("Crystallized Illusions", "CI") {}

  /** 
   * CUSTOM EVENTS
   * @notice These events are watched by the substratum.art platform.
   * @dev These will be monitored by the custom backend. They will trigger
   * updating the API with data stored in projectData, as well as data returned
   * by the scriptInputsOf() function.
   */

  /**
   * @notice The PojectData event is emitted from writeProjectData function.
   * @dev indexed keyword is added to scriptIndex for searchability.
   * @param scriptIndex is index in the mapping that is being updated.
   * @param oldScript is the data being replaced, potentially "".
   * @param newScript is the new data stored to chain.
   */  
  event ProjectData(
      uint256 indexed scriptIndex,
      string oldScript,
      string newScript
  );

  /**
   * @notice The TokenUpdated event is emitted from multiple functions that 
   * that affect the rendering of traits/image of the token.
   * @dev indexed keyword is added to tokeId for searchability.
   * @param tokenId is the token that is being updated.
   * @param data is the new data regarding the change.
   */  
  event TokenUpdated(
      uint256 indexed tokenId,
      string data
  );

  /**
   * MODIFIERS
   * @notice These are reusable code to control function execution.
   */

  /**
   * @notice onlyMinters modifier controls accounts that can mint.
   * @dev This modifier will only allow transactions from the minter or
   * artist accounts.
   */
  modifier onlyMinters() {
      require(msg.sender == artistAddress || msg.sender == minterAddress);
      _;
  }

  /**
   * @notice onlyArtist restricts functions to the artist.
   */
  modifier onlyArtist() 
  {
      require(msg.sender == artistAddress);
      _;
  }

  /**
   * @notice onlyAuthorized restricts functions to the three accounts stored
   * on the contract, the owner, the artist, and the platform.
   */
  modifier onlyAuthorized()
  { 
      require(msg.sender == owner() || 
          msg.sender == artistAddress || 
          msg.sender == platformAddress);
      _;
  }

  /**
   * OVERRIDE FUNCTIONS
   * @notice These functions are declared as overrides because functions of the 
   * same name exist in imported contracts.
   * @dev 'super._transfer' calls the overridden function.
   */

  /** 
   * @notice _baseURI is an internal function that returns a state value.
   * @dev This override is needed when using a custom baseURI.
   * @return baseURI, which is a state value.
   */
  function _baseURI()
      internal 
      view 
      override 
      returns (string memory) 
  {
      return baseURI;
  }

  /**
   * @notice this override checks if a token has a specific royalty address set.
   * @dev as a mapping, if a token does not have an address set, it returns the
   * zero address, so a catch must be used to reset the returned address to the 
   * contract's default address.
   * @param _tokenId is the token to check its royalty information.
   * @param _salePrice is the price to calculate the royalty with.
   */
  function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
      public 
      view 
      virtual 
      override
      returns (address, uint256) 
  {
      address receiver = secondaryAddressOf[_tokenId];
      if (receiver == address(0)) {
        receiver = secondaryAddress;
      }
      uint256 royaltyAmount = (_salePrice * royaltyBPS) / 10000;
      return (receiver, royaltyAmount);
  }

  /** 
   * RECEIVING FUNCTIONS
   * @notice These functions are required for the contract to be able to
   * receive Ether.
   */

  /**
   * @dev The receive() function receives Ether when msg.data is empty.
   * @dev The fallback() function receives Ether when msg.data is not empty.
   */
  receive() external payable {}
  fallback() external payable {}

  /**
   * CUSTOM VIEW FUNCTIONS
   * @notice These are custom view functions implemented for efficiency.
   */

  /**
   * @notice getAddresses returns all addresses and fee BPS details.
   * @dev These state variables are private to reduce contract file size
   * and to make it more efficient to check all addresses.
   */
  function getAddresses()
      external
      view
      returns (string memory)
  {
      return
          string(
              abi.encodePacked(
                  '{"artist_address":"',
                  Strings.toHexString(uint160(artistAddress), 20),
                  '","minter_address":"',
                  Strings.toHexString(uint160(minterAddress), 20),
                  '","platform_address":"',
                  Strings.toHexString(uint160(platformAddress), 20),
                  '","platformBPS":"',                      
                  Strings.toString(platformBPS),
                  '","default_royalty_address":"',
                  Strings.toHexString(uint160(secondaryAddress), 20),
                  '","royaltyBPS":"',
                  Strings.toString(royaltyBPS),
                  '"}'
              )
          );
  }

  /**
   * @notice scriptInputsOf returns the input data necessary for the generative
   * script to create/recreate a Crystallized_Illusions token. 
   * @dev For any given token, this function returns all the on-chain data that
   * is needed to be inputted into the generative script to deterministically 
   * reproduce both the token's artwork and metadata.
   * @dev entropyString is set outside of the return to standardize this code.
   * @param _tokenId is the token whose inputs will be returned.
   * @return scriptInputs are returned in JSON format.
   */
  function scriptInputsOf(
      uint256 _tokenId
  )
      external
      view
      returns (string memory)
  {
      string memory entropyString = Strings.toString(tokenEntropyOf[_tokenId]);    
      return
          string(
              abi.encodePacked(
                  '{"token_id":"',
                  Strings.toString(_tokenId),
                  '","media_URI":"',
                  mediaURI,
                  '","token_entropy":"',
                  entropyString,
                  '"}'
              )
          );
  }

  /**
   * ARTIST CONTROLS
   * @notice These functions have various levels of artist-only control 
   * mechanisms in place. 
   * @dev All functions should use onlyArtist modifier.
   */

  /**
   * @notice changeMaxSupply allows changes to the maximum iteration count,
   * a value that is checked against during mint.
   * @dev This function will only update the maxSupply variable if the 
   * submitted value is greater than or equal to the current number of minted
   * tokens. maxSupply is used in the internal _minter function to cap the 
   * number of currently available tokens.
   * @param _maxSupply is the new maximum supply.
   */
  function changeMaxSupply(
      uint16 _maxSupply
  ) 
      external 
      onlyArtist 
  {
      require (!projectLocked);
      require(_maxSupply >= tokensMinted.current());
      maxSupply = _maxSupply;
  }

  /**
   * @notice setMintStage sets the stage of the mint.
   * @dev This is used instead of public view booleans to save contract size.
   * @param _mintStage is the new stage for the mint: 0 for disabled, 1 for 
   * public mint (following logic: 0-false, 1-true).
   * Other stages may be added as 2, 3, etc.
   */
  function setMintStage(
    uint8 _mintStage
  ) 
      external 
      onlyArtist 
  {
      mintStage = _mintStage;
  }

  /**
   * @notice setMintFee sets the price per mint.
   * @dev This function allows changes to the payment amount that is required 
   * for minting.
   * @param _mintFee is the cost per mint in Wei.
   */
  function setMintFee(
      uint256 _mintFee
  ) 
      external 
      onlyArtist 
  {
      mintFee = _mintFee;
  }

  /**
   * @notice setDescription updates the on-chain description.
   * @dev This is separate from other update functions because the description
   * size may be large and thus expensive to update.
   * @param _description is the new description. Quotation marks are not needed.
   */
  function setDescription(
      string memory _description
  ) 
      external 
      onlyArtist 
  {
      description = _description;
  }

  /**
   * @notice mintToAddress can only be called by the artist and the minter 
   * account, and it mints to a specified address.
   * @dev Variation of a mint function that uses a submitted address as the
   * account to mint to. The artist account can bypass the publicMintActive 
   * requirement.
   * @param _to is the address to send the token to.
   */
  function mintToAddress(
    address _to
  )
      external
      payable
      nonReentrant
      onlyMinters
  {
      require(mintStage == 1 || msg.sender == artistAddress);
      _minter(_to);
  }

  /**
   * ARTIST AND PLATFORM CONTROLS
   * @notice functions can be called by both the artist and platform address.
   * @dev the onlyAuthorized modifier used to check authorization.
   */

  /**
   * @notice pauseMint is a safeguard that pauses mint (only artist can unpause).
   * @dev onlyAuhtorized modifier gates access.
   */
  function pauseMint() 
      external 
      onlyAuthorized
  {
      mintStage = 0;
  }

  /**
   * @notice setMinterAddress sets/updates the project's approved minting address.
   * @dev minter can be a any type of account.
   * @param _minterAddress is the new account to be set as the minter.
   */
  function setMinterAddress(
      address _minterAddress
  ) 
      external 
      onlyAuthorized
  {
      minterAddress = _minterAddress;
  }

  /** 
   * @notice writeProjectData allows storage of the generative script on-chain.
   * @dev This will store the generative script needed to reproduce Crystallized_Illusions
   * tokens, along with other information and instructions. Vanilla JavaScript
   * and p5.js v1.0.0 are other dependencies.
   * @param _index identifies where the script data should be stored.
   * @param _newScript is the new script data.
   */
  function writeProjectData(
      uint256 _index, 
      string memory _newScript
  )
      external
      onlyAuthorized
  {
      require(!projectLocked);
      emit ProjectData(_index, projectData[_index], _newScript);
      projectData[_index] = _newScript;
  }

  /**
   * @notice setMediaURI sets/updates the project's mediaURI.
   * @dev mediaURI is appended with tokenId and file format and is used in 
   * javascript code.
   * @dev _newMediaURI is used instead of _baseURI because an override function
   * with that name already exists.
   * @param _newMediaURI is the API endpoint base for tokenURI calls.
   */
  function setMediaURI(
      string memory _newMediaURI
  ) 
      external 
      onlyAuthorized
  {
      mediaURI = _newMediaURI;
  }

  /**
   * @notice overrideDefaultRoyalty updates the royalty address per token.
   * @dev This updates a mapping that is used by royaltyInfo().
   * @param _tokenId is the token to update.
   * @param _secondaryAddress is the address for that token.
   */
  function overrideDefaultRoyalty(
      uint256 _tokenId,
      address _secondaryAddress
  )
      external
      onlyAuthorized
  {
      secondaryAddressOf[_tokenId] = _secondaryAddress;
  }

  /**
   * @notice withdraw is used to send funds to the payments addresses.
   * @dev Withdraw cannot be called if the payments addresses are not set. 
   */
  function withdraw() 
      external 
      onlyAuthorized
  {
      require(artistAddress != address(0));
      require(platformAddress != address(0));
      uint256 platformFee = address(this).balance * platformBPS / 10000;
      (bool sent1, bytes memory data1) = payable(platformAddress).call{value:platformFee}("");
      require(sent1, "Failed to send Ether");
      (bool sent2, bytes memory data2) = payable(artistAddress).call{value:address(this).balance}("");
      require(sent2, "Failed to send Ether");
  }

  /**
   * PLATFORM CONTROLS
   * @notice These are contract-level controls.
   * @dev all should use the onlyOwner modifier.
   */

  /**
   * @notice lockScripts freezes the projectData storage.
   * @dev The project must be fully minted before this function is callable.
   */
  function lockScripts() 
      external 
      onlyOwner 
  {
      require(tokensMinted.current() == maxSupply);
      projectLocked = true;
  }

  /**
   * @notice setPrimaryData supplies information needed for splitting mint funds.
   * @dev This must be set prior to withdrawl function use. 
   * @param _artistAddress is the new artist address.
   * @param _platformAddress is the new platform address.
   * @param _platformBPS is the platform fee amount, measured in base
   * percentage points.
   */
  function setPrimaryData(
      address _artistAddress, 
      address _platformAddress, 
      uint96 _platformBPS
  )
      external
      onlyOwner
  {
      artistAddress = _artistAddress;
      platformAddress = _platformAddress;
      platformBPS = _platformBPS;
  }

  /**
   * @notice setSecondaryData updates the royalty address and BPS for the project.
   * @dev This function allows changes to the payments address and secondary sale
   * royalty amount. After setting values, _setDefaultRoyalty is called in 
   * order to update the imported EIP-2981 contract functions.
   * @param _secondaryAddress is the new payments address.
   * @param _royaltyBPS is the new projet royalty amount, measured in 
   * base percentage points.
   */
  function setSecondaryData(
      address _secondaryAddress, 
      uint96 _royaltyBPS
  )
      external
      onlyOwner
  {
      secondaryAddress = _secondaryAddress;
      royaltyBPS = _royaltyBPS;
      _setDefaultRoyalty(_secondaryAddress, _royaltyBPS);
  }

  /**
   * @notice setURI sets/updates the project's baseURI.
   * @dev baseURI is appended with tokenId and is returned in tokenURI calls.
   * @dev _newBaseURI is used instead of _baseURI because an override function
   * with that name already exists.
   * @param _newBaseURI is the API endpoint base for tokenURI calls.
   */
  function setURI(
      string memory _newBaseURI
  ) 
      external 
      onlyOwner 
  {
      baseURI = _newBaseURI;
  }

  /**
   * INTERNAL FUNCTIONS
   * @notice these are helper functions that can only be called from within
   * this contract.
   */

  /**
   * @notice _minter is the internal function that generates mints.
   * @dev Minting function called by the public 'mintToAddress' function.
   * The artist can bypass the payment requirement.
   * @param _to is the address to send the token to.
   */
  function _minter(
      address _to
  ) 
      internal 
  {
      require(
          msg.value == mintFee || msg.sender == artistAddress,
          "Incorrect value."
      );
      require(
          tokensMinted.current() < maxSupply,
          "All minted."
      );
      uint256 tokenId = tokensMinted.current();
      tokensMinted.increment();
      _assignDecimalEntropy(tokenId);
      _safeMint(_to, tokenId);
  }

  /**     
   * @notice _assignDecimalEntropy generates the token's decimal entropy.
   * @dev This creates a series of digits used as token entropy, created
   * from various data inputs. Even with concurrent mints in a single block,
   * each _tokenId will be unique, resulting in unique hashes.
   * @param _tokenId is the token that the data will get assigned to.
   */
  function _assignDecimalEntropy(
      uint256 _tokenId
  ) 
      internal 
  {
      tokenEntropyOf[_tokenId] = uint256(
          keccak256(
              abi.encodePacked(
                  _tokenId,
                  "Crystallized Illusions",
                  block.number,
                  block.timestamp,
                  tx.gasprice,
                  _tokenId
              )
          )
      );
  }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 3 of 17 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 4 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

File 5 of 17 : 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 6 of 17 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for
 * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

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

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

        _owners[tokenId] = to;

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

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

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

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

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

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

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

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

        emit Transfer(from, to, tokenId);

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

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

File 11 of 17 : 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 12 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 13 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"scriptIndex","type":"uint256"},{"indexed":false,"internalType":"string","name":"oldScript","type":"string"},{"indexed":false,"internalType":"string","name":"newScript","type":"string"}],"name":"ProjectData","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"data","type":"string"}],"name":"TokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxSupply","type":"uint16"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAddresses","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"lockScripts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mediaURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintToAddress","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_secondaryAddress","type":"address"}],"name":"overrideDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"scriptInputsOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newMediaURI","type":"string"}],"name":"setMediaURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintFee","type":"uint256"}],"name":"setMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintStage","type":"uint8"}],"name":"setMintStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minterAddress","type":"address"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artistAddress","type":"address"},{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"uint96","name":"_platformBPS","type":"uint96"}],"name":"setPrimaryData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_secondaryAddress","type":"address"},{"internalType":"uint96","name":"_royaltyBPS","type":"uint96"}],"name":"setSecondaryData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setURI","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":"","type":"uint256"}],"name":"tokenEntropyOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensMinted","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newScript","type":"string"}],"name":"writeProjectData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405261ffff600e60026101000a81548161ffff021916908361ffff1602179055503480156200003057600080fd5b506040518060400160405280601681526020017f4372797374616c6c697a656420496c6c7573696f6e73000000000000000000008152506040518060400160405280600281526020017f43490000000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000b5929190620001cd565b508060039080519060200190620000ce929190620001cd565b505050620000f1620000e5620000ff60201b60201c565b6200010760201b60201c565b6001600981905550620002e2565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001db906200027d565b90600052602060002090601f016020900481019282620001ff57600085556200024b565b82601f106200021a57805160ff19168380011785556200024b565b828001600101855582156200024b579182015b828111156200024a5782518255916020019190600101906200022d565b5b5090506200025a91906200025e565b5090565b5b80821115620002795760008160009055506001016200025f565b5090565b600060028204905060018216806200029657607f821691505b60208210811415620002ad57620002ac620002b3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b615aca80620002f26000396000f3fe60806040526004361061026b5760003560e01c80638da5cb5b11610144578063c37f7770116100b6578063d5abeb011161007a578063d5abeb011461090b578063e985e9c514610936578063eddd0d9c14610973578063f150a0491461099c578063f2fde38b146109c7578063ffd4aa55146109f057610272565b8063c37f777014610826578063c7ef2b7814610863578063c87b56dd1461088e578063cd85cdb5146108cb578063cf6210fa146108e257610272565b8063a22cb46511610108578063a22cb4651461072e578063a3106b9514610757578063a39fac1214610780578063b2d32f69146107ab578063b88d4fde146107d4578063bb0ba35d146107fd57610272565b80638da5cb5b1461064757806390c3f38f1461067257806393ae76cf1461069b57806393ff4c81146106d857806395d89b411461070357610272565b806342842e0e116101dd57806370a08231116101a157806370a082311461054b578063715018a6146105885780637284e4161461059f57806377b9f9b1146105ca5780638903f70c146105e15780638a6795781461061e57610272565b806342842e0e146104665780635b3b4f771461048f5780636352211e146104b85780636c0360eb146104f55780636de9f32b1461052057610272565b806313966db51161022f57806313966db51461036b578063208c2d411461039657806323b872dd146103bf578063288a9069146103e85780632a55205a146104115780633ccfd60b1461044f57610272565b806301ffc9a71461027457806302fe5305146102b157806306fdde03146102da578063081812fc14610305578063095ea7b31461034257610272565b3661027257005b005b34801561028057600080fd5b5061029b60048036038101906102969190614130565b610a0c565b6040516102a89190614bcf565b60405180910390f35b3480156102bd57600080fd5b506102d860048036038101906102d3919061418a565b610a1e565b005b3480156102e657600080fd5b506102ef610a40565b6040516102fc9190614bea565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190614200565b610ad2565b6040516103399190614b3f565b60405180910390f35b34801561034e57600080fd5b50610369600480360381019061036491906140b0565b610b18565b005b34801561037757600080fd5b50610380610c30565b60405161038d9190614ede565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b891906141d3565b610c36565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190613f47565b610ce4565b005b3480156103f457600080fd5b5061040f600480360381019061040a919061401d565b610d44565b005b34801561041d57600080fd5b50610438600480360381019061043391906142c9565b610e04565b604051610446929190614ba6565b60405180910390f35b34801561045b57600080fd5b50610464610eee565b005b34801561047257600080fd5b5061048d60048036038101906104889190613f47565b611281565b005b34801561049b57600080fd5b506104b660048036038101906104b191906140f0565b6112a1565b005b3480156104c457600080fd5b506104df60048036038101906104da9190614200565b611329565b6040516104ec9190614b3f565b60405180910390f35b34801561050157600080fd5b5061050a6113b0565b6040516105179190614bea565b60405180910390f35b34801561052c57600080fd5b5061053561143e565b6040516105429190614ede565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190613eda565b61144a565b60405161057f9190614ede565b60405180910390f35b34801561059457600080fd5b5061059d611502565b005b3480156105ab57600080fd5b506105b4611516565b6040516105c19190614bea565b60405180910390f35b3480156105d657600080fd5b506105df6115a4565b005b3480156105ed57600080fd5b5061060860048036038101906106039190614200565b6115f2565b6040516106159190614bea565b60405180910390f35b34801561062a57600080fd5b506106456004803603810190610640919061422d565b611692565b005b34801561065357600080fd5b5061065c6117d7565b6040516106699190614b3f565b60405180910390f35b34801561067e57600080fd5b506106996004803603810190610694919061418a565b611801565b005b3480156106a757600080fd5b506106c260048036038101906106bd9190614200565b611875565b6040516106cf9190614bea565b60405180910390f35b3480156106e457600080fd5b506106ed6118cc565b6040516106fa9190614bcf565b60405180910390f35b34801561070f57600080fd5b506107186118df565b6040516107259190614bea565b60405180910390f35b34801561073a57600080fd5b5061075560048036038101906107509190614070565b611971565b005b34801561076357600080fd5b5061077e60048036038101906107799190613eda565b611987565b005b34801561078c57600080fd5b50610795611aba565b6040516107a29190614bea565b60405180910390f35b3480156107b757600080fd5b506107d260048036038101906107cd919061426d565b611c53565b005b3480156107e057600080fd5b506107fb60048036038101906107f69190613f9a565b611dd4565b005b34801561080957600080fd5b50610824600480360381019061081f9190614309565b611e36565b005b34801561083257600080fd5b5061084d60048036038101906108489190614200565b611eae565b60405161085a9190614ede565b60405180910390f35b34801561086f57600080fd5b50610878611ec6565b6040516108859190614bea565b60405180910390f35b34801561089a57600080fd5b506108b560048036038101906108b09190614200565b611f54565b6040516108c29190614bea565b60405180910390f35b3480156108d757600080fd5b506108e0611fbc565b005b3480156108ee57600080fd5b506109096004803603810190610904919061418a565b6120c9565b005b34801561091757600080fd5b506109206121d2565b60405161092d9190614ec3565b60405180910390f35b34801561094257600080fd5b5061095d60048036038101906109589190613f07565b6121e6565b60405161096a9190614bcf565b60405180910390f35b34801561097f57600080fd5b5061099a60048036038101906109959190614200565b61227a565b005b3480156109a857600080fd5b506109b16122de565b6040516109be9190614ef9565b60405180910390f35b3480156109d357600080fd5b506109ee60048036038101906109e99190613eda565b6122f1565b005b610a0a6004803603810190610a059190613eda565b612375565b005b6000610a17826124ba565b9050919050565b610a2661259c565b80600b9080519060200190610a3c929190613caf565b5050565b606060028054610a4f90615226565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7b90615226565b8015610ac85780601f10610a9d57610100808354040283529160200191610ac8565b820191906000526020600020905b815481529060010190602001808311610aab57829003601f168201915b5050505050905090565b6000610add8261261a565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2382611329565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8b90614e03565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bb3612665565b73ffffffffffffffffffffffffffffffffffffffff161480610be25750610be181610bdc612665565b6121e6565b5b610c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1890614e23565b60405180910390fd5b610c2b838361266d565b505050565b600f5481565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c9057600080fd5b600e60009054906101000a900460ff1615610caa57600080fd5b610cb4600a612726565b8161ffff161015610cc457600080fd5b80600e60026101000a81548161ffff021916908361ffff16021790555050565b610cf5610cef612665565b82612734565b610d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2b90614c63565b60405180910390fd5b610d3f8383836127c9565b505050565b610d4c61259c565b82601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550505050565b60008060006014600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e9a57601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b6000612710600e60109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1686610ed39190615085565b610edd9190615054565b905081819350935050509250929050565b610ef66117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f7c5750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80610fd45750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610fdd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561103957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561109557600080fd5b6000612710600e60049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16476110ce9190615085565b6110d89190615054565b9050600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360405161112390614a63565b60006040518083038185875af1925050503d8060008114611160576040519150601f19603f3d011682016040523d82523d6000602084013e611165565b606091505b5091509150816111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a190614d03565b60405180910390fd5b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516111f390614a63565b60006040518083038185875af1925050503d8060008114611230576040519150601f19603f3d011682016040523d82523d6000602084013e611235565b606091505b50915091508161127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190614d03565b60405180910390fd5b5050505050565b61129c83838360405180602001604052806000815250611dd4565b505050565b6112a961259c565b81601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60106101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506113258282612ac3565b5050565b60008061133583612c58565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90614de3565b60405180910390fd5b80915050919050565b600b80546113bd90615226565b80601f01602080910402602001604051908101604052809291908181526020018280546113e990615226565b80156114365780601f1061140b57610100808354040283529160200191611436565b820191906000526020600020905b81548152906001019060200180831161141957829003601f168201915b505050505081565b600a8060000154905081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b290614d63565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61150a61259c565b6115146000612c95565b565b600d805461152390615226565b80601f016020809104026020016040519081016040528092919081815260200182805461154f90615226565b801561159c5780601f106115715761010080835404028352916020019161159c565b820191906000526020600020905b81548152906001019060200180831161157f57829003601f168201915b505050505081565b6115ac61259c565b600e60029054906101000a900461ffff1661ffff166115cb600a612726565b146115d557600080fd5b6001600e60006101000a81548160ff021916908315150217905550565b6015602052806000526040600020600091509050805461161190615226565b80601f016020809104026020016040519081016040528092919081815260200182805461163d90615226565b801561168a5780601f1061165f5761010080835404028352916020019161168a565b820191906000526020600020905b81548152906001019060200180831161166d57829003601f168201915b505050505081565b61169a6117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806117205750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806117785750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61178157600080fd5b806014600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461185b57600080fd5b80600d9080519060200190611871929190613caf565b5050565b606060006118956016600085815260200190815260200160002054612d5b565b90506118a083612d5b565b600c826040516020016118b593929190614a78565b604051602081830303815290604052915050919050565b600e60009054906101000a900460ff1681565b6060600380546118ee90615226565b80601f016020809104026020016040519081016040528092919081815260200182805461191a90615226565b80156119675780601f1061193c57610100808354040283529160200191611967565b820191906000526020600020905b81548152906001019060200180831161194a57829003601f168201915b5050505050905090565b61198361197c612665565b8383612e33565b5050565b61198f6117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a155750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80611a6d5750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611a7657600080fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060611aff601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611b42601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611b85601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611bb6600e60049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16612d5b565b611bf9601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611c2a600e60109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16612d5b565b604051602001611c3f969594939291906149be565b604051602081830303815290604052905090565b611c5b6117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611ce15750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80611d395750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611d4257600080fd5b600e60009054906101000a900460ff1615611d5c57600080fd5b817f53d9dfb5a5d1618382bb802d3e0c09318c4177db3a09870a0d260b32243e39c46015600085815260200190815260200160002083604051611da0929190614c0c565b60405180910390a280601560008481526020019081526020016000209080519060200190611dcf929190613caf565b505050565b611de5611ddf612665565b83612734565b611e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1b90614c63565b60405180910390fd5b611e30848484846131dc565b50505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e9057600080fd5b80600e60016101000a81548160ff021916908360ff16021790555050565b60166020528060005260406000206000915090505481565b600c8054611ed390615226565b80601f0160208091040260200160405190810160405280929190818152602001828054611eff90615226565b8015611f4c5780601f10611f2157610100808354040283529160200191611f4c565b820191906000526020600020905b815481529060010190602001808311611f2f57829003601f168201915b505050505081565b6060611f5f8261261a565b6000611f69613238565b90506000815111611f895760405180602001604052806000815250611fb4565b80611f9384612d5b565b604051602001611fa492919061499a565b6040516020818303038152906040525b915050919050565b611fc46117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061204a5750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806120a25750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6120ab57600080fd5b6000600e60016101000a81548160ff021916908360ff160217905550565b6120d16117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806121575750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806121af5750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6121b857600080fd5b80600c90805190602001906121ce929190613caf565b5050565b600e60029054906101000a900461ffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122d457600080fd5b80600f8190555050565b600e60019054906101000a900460ff1681565b6122f961259c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236090614ca3565b60405180910390fd5b61237281612c95565b50565b61237d6132ca565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806124265750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61242f57600080fd5b6001600e60019054906101000a900460ff1660ff16148061249d5750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6124a657600080fd5b6124af8161331a565b6124b7613444565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061258557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061259557506125948261344e565b5b9050919050565b6125a4612665565b73ffffffffffffffffffffffffffffffffffffffff166125c26117d7565b73ffffffffffffffffffffffffffffffffffffffff1614612618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260f90614dc3565b60405180910390fd5b565b612623816134c8565b612662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990614de3565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126e083611329565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60008061274083611329565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612782575061278181856121e6565b5b806127c057508373ffffffffffffffffffffffffffffffffffffffff166127a884610ad2565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127e982611329565b73ffffffffffffffffffffffffffffffffffffffff161461283f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283690614cc3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a690614d23565b60405180910390fd5b6128bc8383836001613509565b8273ffffffffffffffffffffffffffffffffffffffff166128dc82611329565b73ffffffffffffffffffffffffffffffffffffffff1614612932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292990614cc3565b60405180910390fd5b6006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612abe838383600161362f565b505050565b612acb613635565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2090614e43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9090614ea3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060006001612d6a8461363f565b01905060008167ffffffffffffffff811115612d8957612d8861534f565b5b6040519080825280601f01601f191660200182016040528015612dbb5781602001600182028036833780820191505090505b509050600082602001820190505b600115612e28578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e1257612e116152c2565b5b0494506000851415612e2357612e28565b612dc9565b819350505050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9990614d43565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f939190614bcf565b60405180910390a3505050565b606060006002836002612fb39190615085565b612fbd9190614ffe565b67ffffffffffffffff811115612fd657612fd561534f565b5b6040519080825280601f01601f1916602001820160405280156130085781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106130405761303f615320565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106130a4576130a3615320565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026130e49190615085565b6130ee9190614ffe565b90505b600181111561318e577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106131305761312f615320565b5b1a60f81b82828151811061314757613146615320565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613187906151fc565b90506130f1565b50600084146131d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c990614c43565b60405180910390fd5b8091505092915050565b6131e78484846127c9565b6131f384848484613792565b613232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322990614c83565b60405180910390fd5b50505050565b6060600b805461324790615226565b80601f016020809104026020016040519081016040528092919081815260200182805461327390615226565b80156132c05780601f10613295576101008083540402835291602001916132c0565b820191906000526020600020905b8154815290600101906020018083116132a357829003601f168201915b5050505050905090565b60026009541415613310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330790614e63565b60405180910390fd5b6002600981905550565b600f543414806133775750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6133b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ad90614da3565b60405180910390fd5b600e60029054906101000a900461ffff1661ffff166133d5600a612726565b10613415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340c90614e83565b60405180910390fd5b6000613421600a612726565b905061342d600a613929565b6134368161393f565b613440828261398b565b5050565b6001600981905550565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806134c157506134c0826139a9565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166134ea83612c58565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600181111561362957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461359d5780600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461359591906150df565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136285780600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136209190614ffe565b925050819055505b5b50505050565b50505050565b6000612710905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061369d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613693576136926152c2565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106136da576d04ee2d6d415b85acef810000000083816136d0576136cf6152c2565b5b0492506020810190505b662386f26fc10000831061370957662386f26fc1000083816136ff576136fe6152c2565b5b0492506010810190505b6305f5e1008310613732576305f5e1008381613728576137276152c2565b5b0492506008810190505b612710831061375757612710838161374d5761374c6152c2565b5b0492506004810190505b6064831061377a57606483816137705761376f6152c2565b5b0492506002810190505b600a8310613789576001810190505b80915050919050565b60006137b38473ffffffffffffffffffffffffffffffffffffffff16613a13565b1561391c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137dc612665565b8786866040518563ffffffff1660e01b81526004016137fe9493929190614b5a565b602060405180830381600087803b15801561381857600080fd5b505af192505050801561384957506040513d601f19601f82011682018060405250810190613846919061415d565b60015b6138cc573d8060008114613879576040519150601f19603f3d011682016040523d82523d6000602084013e61387e565b606091505b506000815114156138c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138bb90614c83565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613921565b600190505b949350505050565b6001816000016000828254019250508190555050565b8043423a84604051602001613958959493929190614ad5565b6040516020818303038152906040528051906020012060001c601660008381526020019081526020016000208190555050565b6139a5828260405180602001604052806000815250613a36565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b613a408383613a91565b613a4d6000848484613792565b613a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8390614c83565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613af890614d83565b60405180910390fd5b613b0a816134c8565b15613b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4190614ce3565b60405180910390fd5b613b58600083836001613509565b613b61816134c8565b15613ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9890614ce3565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613cab60008383600161362f565b5050565b828054613cbb90615226565b90600052602060002090601f016020900481019282613cdd5760008555613d24565b82601f10613cf657805160ff1916838001178555613d24565b82800160010185558215613d24579182015b82811115613d23578251825591602001919060010190613d08565b5b509050613d319190613d35565b5090565b5b80821115613d4e576000816000905550600101613d36565b5090565b6000613d65613d6084614f39565b614f14565b905082815260208101848484011115613d8157613d80615383565b5b613d8c8482856151ba565b509392505050565b6000613da7613da284614f6a565b614f14565b905082815260208101848484011115613dc357613dc2615383565b5b613dce8482856151ba565b509392505050565b600081359050613de5816159f3565b92915050565b600081359050613dfa81615a0a565b92915050565b600081359050613e0f81615a21565b92915050565b600081519050613e2481615a21565b92915050565b600082601f830112613e3f57613e3e61537e565b5b8135613e4f848260208601613d52565b91505092915050565b600082601f830112613e6d57613e6c61537e565b5b8135613e7d848260208601613d94565b91505092915050565b600081359050613e9581615a38565b92915050565b600081359050613eaa81615a4f565b92915050565b600081359050613ebf81615a66565b92915050565b600081359050613ed481615a7d565b92915050565b600060208284031215613ef057613eef61538d565b5b6000613efe84828501613dd6565b91505092915050565b60008060408385031215613f1e57613f1d61538d565b5b6000613f2c85828601613dd6565b9250506020613f3d85828601613dd6565b9150509250929050565b600080600060608486031215613f6057613f5f61538d565b5b6000613f6e86828701613dd6565b9350506020613f7f86828701613dd6565b9250506040613f9086828701613e9b565b9150509250925092565b60008060008060808587031215613fb457613fb361538d565b5b6000613fc287828801613dd6565b9450506020613fd387828801613dd6565b9350506040613fe487828801613e9b565b925050606085013567ffffffffffffffff81111561400557614004615388565b5b61401187828801613e2a565b91505092959194509250565b6000806000606084860312156140365761403561538d565b5b600061404486828701613dd6565b935050602061405586828701613dd6565b925050604061406686828701613ec5565b9150509250925092565b600080604083850312156140875761408661538d565b5b600061409585828601613dd6565b92505060206140a685828601613deb565b9150509250929050565b600080604083850312156140c7576140c661538d565b5b60006140d585828601613dd6565b92505060206140e685828601613e9b565b9150509250929050565b600080604083850312156141075761410661538d565b5b600061411585828601613dd6565b925050602061412685828601613ec5565b9150509250929050565b6000602082840312156141465761414561538d565b5b600061415484828501613e00565b91505092915050565b6000602082840312156141735761417261538d565b5b600061418184828501613e15565b91505092915050565b6000602082840312156141a05761419f61538d565b5b600082013567ffffffffffffffff8111156141be576141bd615388565b5b6141ca84828501613e58565b91505092915050565b6000602082840312156141e9576141e861538d565b5b60006141f784828501613e86565b91505092915050565b6000602082840312156142165761421561538d565b5b600061422484828501613e9b565b91505092915050565b600080604083850312156142445761424361538d565b5b600061425285828601613e9b565b925050602061426385828601613dd6565b9150509250929050565b600080604083850312156142845761428361538d565b5b600061429285828601613e9b565b925050602083013567ffffffffffffffff8111156142b3576142b2615388565b5b6142bf85828601613e58565b9150509250929050565b600080604083850312156142e0576142df61538d565b5b60006142ee85828601613e9b565b92505060206142ff85828601613e9b565b9150509250929050565b60006020828403121561431f5761431e61538d565b5b600061432d84828501613eb0565b91505092915050565b61433f81615113565b82525050565b61434e81615125565b82525050565b600061435f82614fb0565b6143698185614fc6565b93506143798185602086016151c9565b61438281615392565b840191505092915050565b600061439882614fbb565b6143a28185614fe2565b93506143b28185602086016151c9565b6143bb81615392565b840191505092915050565b60006143d182614fbb565b6143db8185614ff3565b93506143eb8185602086016151c9565b80840191505092915050565b6000815461440481615226565b61440e8186614fe2565b94506001821660008114614429576001811461443b5761446e565b60ff198316865260208601935061446e565b61444485614f9b565b60005b8381101561446657815481890152600182019150602081019050614447565b808801955050505b50505092915050565b6000815461448481615226565b61448e8186614ff3565b945060018216600081146144a957600181146144ba576144ed565b60ff198316865281860193506144ed565b6144c385614f9b565b60005b838110156144e5578154818901526001820191506020810190506144c6565b838801955050505b50505092915050565b6000614503602083614fe2565b915061450e826153a3565b602082019050919050565b6000614526600f83614ff3565b9150614531826153cc565b600f82019050919050565b6000614549602d83614fe2565b9150614554826153f5565b604082019050919050565b600061456c603283614fe2565b915061457782615444565b604082019050919050565b600061458f602683614fe2565b915061459a82615493565b604082019050919050565b60006145b2602583614fe2565b91506145bd826154e2565b604082019050919050565b60006145d5601383614ff3565b91506145e082615531565b601382019050919050565b60006145f8601c83614fe2565b91506146038261555a565b602082019050919050565b600061461b601183614ff3565b915061462682615583565b601182019050919050565b600061463e601483614fe2565b9150614649826155ac565b602082019050919050565b6000614661602483614fe2565b915061466c826155d5565b604082019050919050565b6000614684601983614fe2565b915061468f82615624565b602082019050919050565b60006146a7602983614fe2565b91506146b28261564d565b604082019050919050565b60006146ca601483614ff3565b91506146d58261569c565b601482019050919050565b60006146ed600283614ff3565b91506146f8826156c5565b600282019050919050565b6000614710601d83614ff3565b915061471b826156ee565b601d82019050919050565b6000614733602083614fe2565b915061473e82615717565b602082019050919050565b6000614756601083614fe2565b915061476182615740565b602082019050919050565b6000614779602083614fe2565b915061478482615769565b602082019050919050565b600061479c601383614ff3565b91506147a782615792565b601382019050919050565b60006147bf601883614fe2565b91506147ca826157bb565b602082019050919050565b60006147e2602183614fe2565b91506147ed826157e4565b604082019050919050565b6000614805600083614fd7565b915061481082615833565b600082019050919050565b6000614828603d83614fe2565b915061483382615836565b604082019050919050565b600061484b601683614ff3565b915061485682615885565b601682019050919050565b600061486e600d83614ff3565b9150614879826158ae565b600d82019050919050565b6000614891602a83614fe2565b915061489c826158d7565b604082019050919050565b60006148b4601683614ff3565b91506148bf82615926565b601682019050919050565b60006148d7601f83614fe2565b91506148e28261594f565b602082019050919050565b60006148fa600b83614fe2565b915061490582615978565b602082019050919050565b600061491d601083614ff3565b9150614928826159a1565b601082019050919050565b6000614940601983614fe2565b915061494b826159ca565b602082019050919050565b61495f8161515d565b82525050565b61496e8161518b565b82525050565b6149856149808261518b565b615289565b82525050565b61499481615195565b82525050565b60006149a682856143c6565b91506149b282846143c6565b91508190509392505050565b60006149c98261478f565b91506149d582896143c6565b91506149e0826146bd565b91506149ec82886143c6565b91506149f7826148a7565b9150614a0382876143c6565b9150614a0e8261460e565b9150614a1a82866143c6565b9150614a2582614703565b9150614a3182856143c6565b9150614a3c82614910565b9150614a4882846143c6565b9150614a53826146e0565b9150819050979650505050505050565b6000614a6e826147f8565b9150819050919050565b6000614a8382614861565b9150614a8f82866143c6565b9150614a9a82614519565b9150614aa68285614477565b9150614ab1826145c8565b9150614abd82846143c6565b9150614ac8826146e0565b9150819050949350505050565b6000614ae18288614974565b602082019150614af08261483e565b9150614afc8287614974565b602082019150614b0c8286614974565b602082019150614b1c8285614974565b602082019150614b2c8284614974565b6020820191508190509695505050505050565b6000602082019050614b546000830184614336565b92915050565b6000608082019050614b6f6000830187614336565b614b7c6020830186614336565b614b896040830185614965565b8181036060830152614b9b8184614354565b905095945050505050565b6000604082019050614bbb6000830185614336565b614bc86020830184614965565b9392505050565b6000602082019050614be46000830184614345565b92915050565b60006020820190508181036000830152614c04818461438d565b905092915050565b60006040820190508181036000830152614c2681856143f7565b90508181036020830152614c3a818461438d565b90509392505050565b60006020820190508181036000830152614c5c816144f6565b9050919050565b60006020820190508181036000830152614c7c8161453c565b9050919050565b60006020820190508181036000830152614c9c8161455f565b9050919050565b60006020820190508181036000830152614cbc81614582565b9050919050565b60006020820190508181036000830152614cdc816145a5565b9050919050565b60006020820190508181036000830152614cfc816145eb565b9050919050565b60006020820190508181036000830152614d1c81614631565b9050919050565b60006020820190508181036000830152614d3c81614654565b9050919050565b60006020820190508181036000830152614d5c81614677565b9050919050565b60006020820190508181036000830152614d7c8161469a565b9050919050565b60006020820190508181036000830152614d9c81614726565b9050919050565b60006020820190508181036000830152614dbc81614749565b9050919050565b60006020820190508181036000830152614ddc8161476c565b9050919050565b60006020820190508181036000830152614dfc816147b2565b9050919050565b60006020820190508181036000830152614e1c816147d5565b9050919050565b60006020820190508181036000830152614e3c8161481b565b9050919050565b60006020820190508181036000830152614e5c81614884565b9050919050565b60006020820190508181036000830152614e7c816148ca565b9050919050565b60006020820190508181036000830152614e9c816148ed565b9050919050565b60006020820190508181036000830152614ebc81614933565b9050919050565b6000602082019050614ed86000830184614956565b92915050565b6000602082019050614ef36000830184614965565b92915050565b6000602082019050614f0e600083018461498b565b92915050565b6000614f1e614f2f565b9050614f2a8282615258565b919050565b6000604051905090565b600067ffffffffffffffff821115614f5457614f5361534f565b5b614f5d82615392565b9050602081019050919050565b600067ffffffffffffffff821115614f8557614f8461534f565b5b614f8e82615392565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006150098261518b565b91506150148361518b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561504957615048615293565b5b828201905092915050565b600061505f8261518b565b915061506a8361518b565b92508261507a576150796152c2565b5b828204905092915050565b60006150908261518b565b915061509b8361518b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150d4576150d3615293565b5b828202905092915050565b60006150ea8261518b565b91506150f58361518b565b92508282101561510857615107615293565b5b828203905092915050565b600061511e8261516b565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156151e75780820151818401526020810190506151cc565b838111156151f6576000848401525b50505050565b60006152078261518b565b9150600082141561521b5761521a615293565b5b600182039050919050565b6000600282049050600182168061523e57607f821691505b60208210811415615252576152516152f1565b5b50919050565b61526182615392565b810181811067ffffffffffffffff821117156152805761527f61534f565b5b80604052505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f222c226d656469615f555249223a220000000000000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f222c22746f6b656e5f656e74726f7079223a2200000000000000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f222c22706c6174666f726d425053223a22000000000000000000000000000000600082015250565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f222c226d696e7465725f61646472657373223a22000000000000000000000000600082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f222c2264656661756c745f726f79616c74795f61646472657373223a22000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f496e636f72726563742076616c75652e00000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7b226172746973745f61646472657373223a2200000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f4372797374616c6c697a656420496c6c7573696f6e7300000000000000000000600082015250565b7f7b22746f6b656e5f6964223a2200000000000000000000000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f222c22706c6174666f726d5f61646472657373223a2200000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f416c6c206d696e7465642e000000000000000000000000000000000000000000600082015250565b7f222c22726f79616c7479425053223a2200000000000000000000000000000000600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6159fc81615113565b8114615a0757600080fd5b50565b615a1381615125565b8114615a1e57600080fd5b50565b615a2a81615131565b8114615a3557600080fd5b50565b615a418161515d565b8114615a4c57600080fd5b50565b615a588161518b565b8114615a6357600080fd5b50565b615a6f81615195565b8114615a7a57600080fd5b50565b615a86816151a2565b8114615a9157600080fd5b5056fea264697066735822122065be4c676b1e3c7218d2dc661a9b5f2d07b55089f095e0263af7b55bdc188ca664736f6c63430008070033

Deployed Bytecode

0x60806040526004361061026b5760003560e01c80638da5cb5b11610144578063c37f7770116100b6578063d5abeb011161007a578063d5abeb011461090b578063e985e9c514610936578063eddd0d9c14610973578063f150a0491461099c578063f2fde38b146109c7578063ffd4aa55146109f057610272565b8063c37f777014610826578063c7ef2b7814610863578063c87b56dd1461088e578063cd85cdb5146108cb578063cf6210fa146108e257610272565b8063a22cb46511610108578063a22cb4651461072e578063a3106b9514610757578063a39fac1214610780578063b2d32f69146107ab578063b88d4fde146107d4578063bb0ba35d146107fd57610272565b80638da5cb5b1461064757806390c3f38f1461067257806393ae76cf1461069b57806393ff4c81146106d857806395d89b411461070357610272565b806342842e0e116101dd57806370a08231116101a157806370a082311461054b578063715018a6146105885780637284e4161461059f57806377b9f9b1146105ca5780638903f70c146105e15780638a6795781461061e57610272565b806342842e0e146104665780635b3b4f771461048f5780636352211e146104b85780636c0360eb146104f55780636de9f32b1461052057610272565b806313966db51161022f57806313966db51461036b578063208c2d411461039657806323b872dd146103bf578063288a9069146103e85780632a55205a146104115780633ccfd60b1461044f57610272565b806301ffc9a71461027457806302fe5305146102b157806306fdde03146102da578063081812fc14610305578063095ea7b31461034257610272565b3661027257005b005b34801561028057600080fd5b5061029b60048036038101906102969190614130565b610a0c565b6040516102a89190614bcf565b60405180910390f35b3480156102bd57600080fd5b506102d860048036038101906102d3919061418a565b610a1e565b005b3480156102e657600080fd5b506102ef610a40565b6040516102fc9190614bea565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190614200565b610ad2565b6040516103399190614b3f565b60405180910390f35b34801561034e57600080fd5b50610369600480360381019061036491906140b0565b610b18565b005b34801561037757600080fd5b50610380610c30565b60405161038d9190614ede565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b891906141d3565b610c36565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190613f47565b610ce4565b005b3480156103f457600080fd5b5061040f600480360381019061040a919061401d565b610d44565b005b34801561041d57600080fd5b50610438600480360381019061043391906142c9565b610e04565b604051610446929190614ba6565b60405180910390f35b34801561045b57600080fd5b50610464610eee565b005b34801561047257600080fd5b5061048d60048036038101906104889190613f47565b611281565b005b34801561049b57600080fd5b506104b660048036038101906104b191906140f0565b6112a1565b005b3480156104c457600080fd5b506104df60048036038101906104da9190614200565b611329565b6040516104ec9190614b3f565b60405180910390f35b34801561050157600080fd5b5061050a6113b0565b6040516105179190614bea565b60405180910390f35b34801561052c57600080fd5b5061053561143e565b6040516105429190614ede565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190613eda565b61144a565b60405161057f9190614ede565b60405180910390f35b34801561059457600080fd5b5061059d611502565b005b3480156105ab57600080fd5b506105b4611516565b6040516105c19190614bea565b60405180910390f35b3480156105d657600080fd5b506105df6115a4565b005b3480156105ed57600080fd5b5061060860048036038101906106039190614200565b6115f2565b6040516106159190614bea565b60405180910390f35b34801561062a57600080fd5b506106456004803603810190610640919061422d565b611692565b005b34801561065357600080fd5b5061065c6117d7565b6040516106699190614b3f565b60405180910390f35b34801561067e57600080fd5b506106996004803603810190610694919061418a565b611801565b005b3480156106a757600080fd5b506106c260048036038101906106bd9190614200565b611875565b6040516106cf9190614bea565b60405180910390f35b3480156106e457600080fd5b506106ed6118cc565b6040516106fa9190614bcf565b60405180910390f35b34801561070f57600080fd5b506107186118df565b6040516107259190614bea565b60405180910390f35b34801561073a57600080fd5b5061075560048036038101906107509190614070565b611971565b005b34801561076357600080fd5b5061077e60048036038101906107799190613eda565b611987565b005b34801561078c57600080fd5b50610795611aba565b6040516107a29190614bea565b60405180910390f35b3480156107b757600080fd5b506107d260048036038101906107cd919061426d565b611c53565b005b3480156107e057600080fd5b506107fb60048036038101906107f69190613f9a565b611dd4565b005b34801561080957600080fd5b50610824600480360381019061081f9190614309565b611e36565b005b34801561083257600080fd5b5061084d60048036038101906108489190614200565b611eae565b60405161085a9190614ede565b60405180910390f35b34801561086f57600080fd5b50610878611ec6565b6040516108859190614bea565b60405180910390f35b34801561089a57600080fd5b506108b560048036038101906108b09190614200565b611f54565b6040516108c29190614bea565b60405180910390f35b3480156108d757600080fd5b506108e0611fbc565b005b3480156108ee57600080fd5b506109096004803603810190610904919061418a565b6120c9565b005b34801561091757600080fd5b506109206121d2565b60405161092d9190614ec3565b60405180910390f35b34801561094257600080fd5b5061095d60048036038101906109589190613f07565b6121e6565b60405161096a9190614bcf565b60405180910390f35b34801561097f57600080fd5b5061099a60048036038101906109959190614200565b61227a565b005b3480156109a857600080fd5b506109b16122de565b6040516109be9190614ef9565b60405180910390f35b3480156109d357600080fd5b506109ee60048036038101906109e99190613eda565b6122f1565b005b610a0a6004803603810190610a059190613eda565b612375565b005b6000610a17826124ba565b9050919050565b610a2661259c565b80600b9080519060200190610a3c929190613caf565b5050565b606060028054610a4f90615226565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7b90615226565b8015610ac85780601f10610a9d57610100808354040283529160200191610ac8565b820191906000526020600020905b815481529060010190602001808311610aab57829003601f168201915b5050505050905090565b6000610add8261261a565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2382611329565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8b90614e03565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bb3612665565b73ffffffffffffffffffffffffffffffffffffffff161480610be25750610be181610bdc612665565b6121e6565b5b610c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1890614e23565b60405180910390fd5b610c2b838361266d565b505050565b600f5481565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c9057600080fd5b600e60009054906101000a900460ff1615610caa57600080fd5b610cb4600a612726565b8161ffff161015610cc457600080fd5b80600e60026101000a81548161ffff021916908361ffff16021790555050565b610cf5610cef612665565b82612734565b610d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2b90614c63565b60405180910390fd5b610d3f8383836127c9565b505050565b610d4c61259c565b82601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550505050565b60008060006014600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e9a57601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b6000612710600e60109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1686610ed39190615085565b610edd9190615054565b905081819350935050509250929050565b610ef66117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f7c5750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80610fd45750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610fdd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561103957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561109557600080fd5b6000612710600e60049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16476110ce9190615085565b6110d89190615054565b9050600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360405161112390614a63565b60006040518083038185875af1925050503d8060008114611160576040519150601f19603f3d011682016040523d82523d6000602084013e611165565b606091505b5091509150816111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a190614d03565b60405180910390fd5b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516111f390614a63565b60006040518083038185875af1925050503d8060008114611230576040519150601f19603f3d011682016040523d82523d6000602084013e611235565b606091505b50915091508161127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190614d03565b60405180910390fd5b5050505050565b61129c83838360405180602001604052806000815250611dd4565b505050565b6112a961259c565b81601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60106101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506113258282612ac3565b5050565b60008061133583612c58565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e90614de3565b60405180910390fd5b80915050919050565b600b80546113bd90615226565b80601f01602080910402602001604051908101604052809291908181526020018280546113e990615226565b80156114365780601f1061140b57610100808354040283529160200191611436565b820191906000526020600020905b81548152906001019060200180831161141957829003601f168201915b505050505081565b600a8060000154905081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b290614d63565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61150a61259c565b6115146000612c95565b565b600d805461152390615226565b80601f016020809104026020016040519081016040528092919081815260200182805461154f90615226565b801561159c5780601f106115715761010080835404028352916020019161159c565b820191906000526020600020905b81548152906001019060200180831161157f57829003601f168201915b505050505081565b6115ac61259c565b600e60029054906101000a900461ffff1661ffff166115cb600a612726565b146115d557600080fd5b6001600e60006101000a81548160ff021916908315150217905550565b6015602052806000526040600020600091509050805461161190615226565b80601f016020809104026020016040519081016040528092919081815260200182805461163d90615226565b801561168a5780601f1061165f5761010080835404028352916020019161168a565b820191906000526020600020905b81548152906001019060200180831161166d57829003601f168201915b505050505081565b61169a6117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806117205750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806117785750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61178157600080fd5b806014600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461185b57600080fd5b80600d9080519060200190611871929190613caf565b5050565b606060006118956016600085815260200190815260200160002054612d5b565b90506118a083612d5b565b600c826040516020016118b593929190614a78565b604051602081830303815290604052915050919050565b600e60009054906101000a900460ff1681565b6060600380546118ee90615226565b80601f016020809104026020016040519081016040528092919081815260200182805461191a90615226565b80156119675780601f1061193c57610100808354040283529160200191611967565b820191906000526020600020905b81548152906001019060200180831161194a57829003601f168201915b5050505050905090565b61198361197c612665565b8383612e33565b5050565b61198f6117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a155750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80611a6d5750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611a7657600080fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060611aff601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611b42601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611b85601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611bb6600e60049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16612d5b565b611bf9601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166014612fa0565b611c2a600e60109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16612d5b565b604051602001611c3f969594939291906149be565b604051602081830303815290604052905090565b611c5b6117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611ce15750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80611d395750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611d4257600080fd5b600e60009054906101000a900460ff1615611d5c57600080fd5b817f53d9dfb5a5d1618382bb802d3e0c09318c4177db3a09870a0d260b32243e39c46015600085815260200190815260200160002083604051611da0929190614c0c565b60405180910390a280601560008481526020019081526020016000209080519060200190611dcf929190613caf565b505050565b611de5611ddf612665565b83612734565b611e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1b90614c63565b60405180910390fd5b611e30848484846131dc565b50505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e9057600080fd5b80600e60016101000a81548160ff021916908360ff16021790555050565b60166020528060005260406000206000915090505481565b600c8054611ed390615226565b80601f0160208091040260200160405190810160405280929190818152602001828054611eff90615226565b8015611f4c5780601f10611f2157610100808354040283529160200191611f4c565b820191906000526020600020905b815481529060010190602001808311611f2f57829003601f168201915b505050505081565b6060611f5f8261261a565b6000611f69613238565b90506000815111611f895760405180602001604052806000815250611fb4565b80611f9384612d5b565b604051602001611fa492919061499a565b6040516020818303038152906040525b915050919050565b611fc46117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061204a5750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806120a25750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6120ab57600080fd5b6000600e60016101000a81548160ff021916908360ff160217905550565b6120d16117d7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806121575750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806121af5750601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6121b857600080fd5b80600c90805190602001906121ce929190613caf565b5050565b600e60029054906101000a900461ffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122d457600080fd5b80600f8190555050565b600e60019054906101000a900460ff1681565b6122f961259c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236090614ca3565b60405180910390fd5b61237281612c95565b50565b61237d6132ca565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806124265750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61242f57600080fd5b6001600e60019054906101000a900460ff1660ff16148061249d5750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6124a657600080fd5b6124af8161331a565b6124b7613444565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061258557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061259557506125948261344e565b5b9050919050565b6125a4612665565b73ffffffffffffffffffffffffffffffffffffffff166125c26117d7565b73ffffffffffffffffffffffffffffffffffffffff1614612618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260f90614dc3565b60405180910390fd5b565b612623816134c8565b612662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265990614de3565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126e083611329565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60008061274083611329565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612782575061278181856121e6565b5b806127c057508373ffffffffffffffffffffffffffffffffffffffff166127a884610ad2565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127e982611329565b73ffffffffffffffffffffffffffffffffffffffff161461283f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283690614cc3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a690614d23565b60405180910390fd5b6128bc8383836001613509565b8273ffffffffffffffffffffffffffffffffffffffff166128dc82611329565b73ffffffffffffffffffffffffffffffffffffffff1614612932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292990614cc3565b60405180910390fd5b6006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612abe838383600161362f565b505050565b612acb613635565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2090614e43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9090614ea3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060006001612d6a8461363f565b01905060008167ffffffffffffffff811115612d8957612d8861534f565b5b6040519080825280601f01601f191660200182016040528015612dbb5781602001600182028036833780820191505090505b509050600082602001820190505b600115612e28578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e1257612e116152c2565b5b0494506000851415612e2357612e28565b612dc9565b819350505050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9990614d43565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f939190614bcf565b60405180910390a3505050565b606060006002836002612fb39190615085565b612fbd9190614ffe565b67ffffffffffffffff811115612fd657612fd561534f565b5b6040519080825280601f01601f1916602001820160405280156130085781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106130405761303f615320565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106130a4576130a3615320565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026130e49190615085565b6130ee9190614ffe565b90505b600181111561318e577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106131305761312f615320565b5b1a60f81b82828151811061314757613146615320565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613187906151fc565b90506130f1565b50600084146131d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c990614c43565b60405180910390fd5b8091505092915050565b6131e78484846127c9565b6131f384848484613792565b613232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322990614c83565b60405180910390fd5b50505050565b6060600b805461324790615226565b80601f016020809104026020016040519081016040528092919081815260200182805461327390615226565b80156132c05780601f10613295576101008083540402835291602001916132c0565b820191906000526020600020905b8154815290600101906020018083116132a357829003601f168201915b5050505050905090565b60026009541415613310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330790614e63565b60405180910390fd5b6002600981905550565b600f543414806133775750601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6133b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ad90614da3565b60405180910390fd5b600e60029054906101000a900461ffff1661ffff166133d5600a612726565b10613415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340c90614e83565b60405180910390fd5b6000613421600a612726565b905061342d600a613929565b6134368161393f565b613440828261398b565b5050565b6001600981905550565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806134c157506134c0826139a9565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166134ea83612c58565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600181111561362957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461359d5780600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461359591906150df565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136285780600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136209190614ffe565b925050819055505b5b50505050565b50505050565b6000612710905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061369d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613693576136926152c2565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106136da576d04ee2d6d415b85acef810000000083816136d0576136cf6152c2565b5b0492506020810190505b662386f26fc10000831061370957662386f26fc1000083816136ff576136fe6152c2565b5b0492506010810190505b6305f5e1008310613732576305f5e1008381613728576137276152c2565b5b0492506008810190505b612710831061375757612710838161374d5761374c6152c2565b5b0492506004810190505b6064831061377a57606483816137705761376f6152c2565b5b0492506002810190505b600a8310613789576001810190505b80915050919050565b60006137b38473ffffffffffffffffffffffffffffffffffffffff16613a13565b1561391c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137dc612665565b8786866040518563ffffffff1660e01b81526004016137fe9493929190614b5a565b602060405180830381600087803b15801561381857600080fd5b505af192505050801561384957506040513d601f19601f82011682018060405250810190613846919061415d565b60015b6138cc573d8060008114613879576040519150601f19603f3d011682016040523d82523d6000602084013e61387e565b606091505b506000815114156138c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138bb90614c83565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613921565b600190505b949350505050565b6001816000016000828254019250508190555050565b8043423a84604051602001613958959493929190614ad5565b6040516020818303038152906040528051906020012060001c601660008381526020019081526020016000208190555050565b6139a5828260405180602001604052806000815250613a36565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b613a408383613a91565b613a4d6000848484613792565b613a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8390614c83565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613af890614d83565b60405180910390fd5b613b0a816134c8565b15613b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4190614ce3565b60405180910390fd5b613b58600083836001613509565b613b61816134c8565b15613ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9890614ce3565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613cab60008383600161362f565b5050565b828054613cbb90615226565b90600052602060002090601f016020900481019282613cdd5760008555613d24565b82601f10613cf657805160ff1916838001178555613d24565b82800160010185558215613d24579182015b82811115613d23578251825591602001919060010190613d08565b5b509050613d319190613d35565b5090565b5b80821115613d4e576000816000905550600101613d36565b5090565b6000613d65613d6084614f39565b614f14565b905082815260208101848484011115613d8157613d80615383565b5b613d8c8482856151ba565b509392505050565b6000613da7613da284614f6a565b614f14565b905082815260208101848484011115613dc357613dc2615383565b5b613dce8482856151ba565b509392505050565b600081359050613de5816159f3565b92915050565b600081359050613dfa81615a0a565b92915050565b600081359050613e0f81615a21565b92915050565b600081519050613e2481615a21565b92915050565b600082601f830112613e3f57613e3e61537e565b5b8135613e4f848260208601613d52565b91505092915050565b600082601f830112613e6d57613e6c61537e565b5b8135613e7d848260208601613d94565b91505092915050565b600081359050613e9581615a38565b92915050565b600081359050613eaa81615a4f565b92915050565b600081359050613ebf81615a66565b92915050565b600081359050613ed481615a7d565b92915050565b600060208284031215613ef057613eef61538d565b5b6000613efe84828501613dd6565b91505092915050565b60008060408385031215613f1e57613f1d61538d565b5b6000613f2c85828601613dd6565b9250506020613f3d85828601613dd6565b9150509250929050565b600080600060608486031215613f6057613f5f61538d565b5b6000613f6e86828701613dd6565b9350506020613f7f86828701613dd6565b9250506040613f9086828701613e9b565b9150509250925092565b60008060008060808587031215613fb457613fb361538d565b5b6000613fc287828801613dd6565b9450506020613fd387828801613dd6565b9350506040613fe487828801613e9b565b925050606085013567ffffffffffffffff81111561400557614004615388565b5b61401187828801613e2a565b91505092959194509250565b6000806000606084860312156140365761403561538d565b5b600061404486828701613dd6565b935050602061405586828701613dd6565b925050604061406686828701613ec5565b9150509250925092565b600080604083850312156140875761408661538d565b5b600061409585828601613dd6565b92505060206140a685828601613deb565b9150509250929050565b600080604083850312156140c7576140c661538d565b5b60006140d585828601613dd6565b92505060206140e685828601613e9b565b9150509250929050565b600080604083850312156141075761410661538d565b5b600061411585828601613dd6565b925050602061412685828601613ec5565b9150509250929050565b6000602082840312156141465761414561538d565b5b600061415484828501613e00565b91505092915050565b6000602082840312156141735761417261538d565b5b600061418184828501613e15565b91505092915050565b6000602082840312156141a05761419f61538d565b5b600082013567ffffffffffffffff8111156141be576141bd615388565b5b6141ca84828501613e58565b91505092915050565b6000602082840312156141e9576141e861538d565b5b60006141f784828501613e86565b91505092915050565b6000602082840312156142165761421561538d565b5b600061422484828501613e9b565b91505092915050565b600080604083850312156142445761424361538d565b5b600061425285828601613e9b565b925050602061426385828601613dd6565b9150509250929050565b600080604083850312156142845761428361538d565b5b600061429285828601613e9b565b925050602083013567ffffffffffffffff8111156142b3576142b2615388565b5b6142bf85828601613e58565b9150509250929050565b600080604083850312156142e0576142df61538d565b5b60006142ee85828601613e9b565b92505060206142ff85828601613e9b565b9150509250929050565b60006020828403121561431f5761431e61538d565b5b600061432d84828501613eb0565b91505092915050565b61433f81615113565b82525050565b61434e81615125565b82525050565b600061435f82614fb0565b6143698185614fc6565b93506143798185602086016151c9565b61438281615392565b840191505092915050565b600061439882614fbb565b6143a28185614fe2565b93506143b28185602086016151c9565b6143bb81615392565b840191505092915050565b60006143d182614fbb565b6143db8185614ff3565b93506143eb8185602086016151c9565b80840191505092915050565b6000815461440481615226565b61440e8186614fe2565b94506001821660008114614429576001811461443b5761446e565b60ff198316865260208601935061446e565b61444485614f9b565b60005b8381101561446657815481890152600182019150602081019050614447565b808801955050505b50505092915050565b6000815461448481615226565b61448e8186614ff3565b945060018216600081146144a957600181146144ba576144ed565b60ff198316865281860193506144ed565b6144c385614f9b565b60005b838110156144e5578154818901526001820191506020810190506144c6565b838801955050505b50505092915050565b6000614503602083614fe2565b915061450e826153a3565b602082019050919050565b6000614526600f83614ff3565b9150614531826153cc565b600f82019050919050565b6000614549602d83614fe2565b9150614554826153f5565b604082019050919050565b600061456c603283614fe2565b915061457782615444565b604082019050919050565b600061458f602683614fe2565b915061459a82615493565b604082019050919050565b60006145b2602583614fe2565b91506145bd826154e2565b604082019050919050565b60006145d5601383614ff3565b91506145e082615531565b601382019050919050565b60006145f8601c83614fe2565b91506146038261555a565b602082019050919050565b600061461b601183614ff3565b915061462682615583565b601182019050919050565b600061463e601483614fe2565b9150614649826155ac565b602082019050919050565b6000614661602483614fe2565b915061466c826155d5565b604082019050919050565b6000614684601983614fe2565b915061468f82615624565b602082019050919050565b60006146a7602983614fe2565b91506146b28261564d565b604082019050919050565b60006146ca601483614ff3565b91506146d58261569c565b601482019050919050565b60006146ed600283614ff3565b91506146f8826156c5565b600282019050919050565b6000614710601d83614ff3565b915061471b826156ee565b601d82019050919050565b6000614733602083614fe2565b915061473e82615717565b602082019050919050565b6000614756601083614fe2565b915061476182615740565b602082019050919050565b6000614779602083614fe2565b915061478482615769565b602082019050919050565b600061479c601383614ff3565b91506147a782615792565b601382019050919050565b60006147bf601883614fe2565b91506147ca826157bb565b602082019050919050565b60006147e2602183614fe2565b91506147ed826157e4565b604082019050919050565b6000614805600083614fd7565b915061481082615833565b600082019050919050565b6000614828603d83614fe2565b915061483382615836565b604082019050919050565b600061484b601683614ff3565b915061485682615885565b601682019050919050565b600061486e600d83614ff3565b9150614879826158ae565b600d82019050919050565b6000614891602a83614fe2565b915061489c826158d7565b604082019050919050565b60006148b4601683614ff3565b91506148bf82615926565b601682019050919050565b60006148d7601f83614fe2565b91506148e28261594f565b602082019050919050565b60006148fa600b83614fe2565b915061490582615978565b602082019050919050565b600061491d601083614ff3565b9150614928826159a1565b601082019050919050565b6000614940601983614fe2565b915061494b826159ca565b602082019050919050565b61495f8161515d565b82525050565b61496e8161518b565b82525050565b6149856149808261518b565b615289565b82525050565b61499481615195565b82525050565b60006149a682856143c6565b91506149b282846143c6565b91508190509392505050565b60006149c98261478f565b91506149d582896143c6565b91506149e0826146bd565b91506149ec82886143c6565b91506149f7826148a7565b9150614a0382876143c6565b9150614a0e8261460e565b9150614a1a82866143c6565b9150614a2582614703565b9150614a3182856143c6565b9150614a3c82614910565b9150614a4882846143c6565b9150614a53826146e0565b9150819050979650505050505050565b6000614a6e826147f8565b9150819050919050565b6000614a8382614861565b9150614a8f82866143c6565b9150614a9a82614519565b9150614aa68285614477565b9150614ab1826145c8565b9150614abd82846143c6565b9150614ac8826146e0565b9150819050949350505050565b6000614ae18288614974565b602082019150614af08261483e565b9150614afc8287614974565b602082019150614b0c8286614974565b602082019150614b1c8285614974565b602082019150614b2c8284614974565b6020820191508190509695505050505050565b6000602082019050614b546000830184614336565b92915050565b6000608082019050614b6f6000830187614336565b614b7c6020830186614336565b614b896040830185614965565b8181036060830152614b9b8184614354565b905095945050505050565b6000604082019050614bbb6000830185614336565b614bc86020830184614965565b9392505050565b6000602082019050614be46000830184614345565b92915050565b60006020820190508181036000830152614c04818461438d565b905092915050565b60006040820190508181036000830152614c2681856143f7565b90508181036020830152614c3a818461438d565b90509392505050565b60006020820190508181036000830152614c5c816144f6565b9050919050565b60006020820190508181036000830152614c7c8161453c565b9050919050565b60006020820190508181036000830152614c9c8161455f565b9050919050565b60006020820190508181036000830152614cbc81614582565b9050919050565b60006020820190508181036000830152614cdc816145a5565b9050919050565b60006020820190508181036000830152614cfc816145eb565b9050919050565b60006020820190508181036000830152614d1c81614631565b9050919050565b60006020820190508181036000830152614d3c81614654565b9050919050565b60006020820190508181036000830152614d5c81614677565b9050919050565b60006020820190508181036000830152614d7c8161469a565b9050919050565b60006020820190508181036000830152614d9c81614726565b9050919050565b60006020820190508181036000830152614dbc81614749565b9050919050565b60006020820190508181036000830152614ddc8161476c565b9050919050565b60006020820190508181036000830152614dfc816147b2565b9050919050565b60006020820190508181036000830152614e1c816147d5565b9050919050565b60006020820190508181036000830152614e3c8161481b565b9050919050565b60006020820190508181036000830152614e5c81614884565b9050919050565b60006020820190508181036000830152614e7c816148ca565b9050919050565b60006020820190508181036000830152614e9c816148ed565b9050919050565b60006020820190508181036000830152614ebc81614933565b9050919050565b6000602082019050614ed86000830184614956565b92915050565b6000602082019050614ef36000830184614965565b92915050565b6000602082019050614f0e600083018461498b565b92915050565b6000614f1e614f2f565b9050614f2a8282615258565b919050565b6000604051905090565b600067ffffffffffffffff821115614f5457614f5361534f565b5b614f5d82615392565b9050602081019050919050565b600067ffffffffffffffff821115614f8557614f8461534f565b5b614f8e82615392565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006150098261518b565b91506150148361518b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561504957615048615293565b5b828201905092915050565b600061505f8261518b565b915061506a8361518b565b92508261507a576150796152c2565b5b828204905092915050565b60006150908261518b565b915061509b8361518b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150d4576150d3615293565b5b828202905092915050565b60006150ea8261518b565b91506150f58361518b565b92508282101561510857615107615293565b5b828203905092915050565b600061511e8261516b565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156151e75780820151818401526020810190506151cc565b838111156151f6576000848401525b50505050565b60006152078261518b565b9150600082141561521b5761521a615293565b5b600182039050919050565b6000600282049050600182168061523e57607f821691505b60208210811415615252576152516152f1565b5b50919050565b61526182615392565b810181811067ffffffffffffffff821117156152805761527f61534f565b5b80604052505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f222c226d656469615f555249223a220000000000000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f222c22746f6b656e5f656e74726f7079223a2200000000000000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f222c22706c6174666f726d425053223a22000000000000000000000000000000600082015250565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f222c226d696e7465725f61646472657373223a22000000000000000000000000600082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f222c2264656661756c745f726f79616c74795f61646472657373223a22000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f496e636f72726563742076616c75652e00000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7b226172746973745f61646472657373223a2200000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f4372797374616c6c697a656420496c6c7573696f6e7300000000000000000000600082015250565b7f7b22746f6b656e5f6964223a2200000000000000000000000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f222c22706c6174666f726d5f61646472657373223a2200000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f416c6c206d696e7465642e000000000000000000000000000000000000000000600082015250565b7f222c22726f79616c7479425053223a2200000000000000000000000000000000600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6159fc81615113565b8114615a0757600080fd5b50565b615a1381615125565b8114615a1e57600080fd5b50565b615a2a81615131565b8114615a3557600080fd5b50565b615a418161515d565b8114615a4c57600080fd5b50565b615a588161518b565b8114615a6357600080fd5b50565b615a6f81615195565b8114615a7a57600080fd5b50565b615a86816151a2565b8114615a9157600080fd5b5056fea264697066735822122065be4c676b1e3c7218d2dc661a9b5f2d07b55089f095e0263af7b55bdc188ca664736f6c63430008070033

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.