ERC-721
Overview
Max Total Supply
0 CHEMS
Holders
59
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
8 CHEMSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
MoleculeSynthesizer
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "./MoleculeScripter.sol"; import "../node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "../node_modules/@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; /// @title ChemScripts Contract /// @notice interface to get ElementBlocks owner addresses interface ElementBlocksInterface { function ownerOf(uint256 tokenId) external view returns (address owner); } /* ___ _ _ ___ __ __ ___ ___ ___ ___ ___ _____ ___ / __| || | __| \/ / __|/ __| _ \_ _| _ \_ _/ __| | (__| __ | _|| |\/| \__ \ (__| /| || _/ | | \__ \ \___|_||_|___|_| |_|___/\___|_|_\___|_| |_| |___/ This is an ode to the scientific and technological progress humanity has made. It is also a reminder of the importance of freedom and the decentralization of power. The contract allows creators to store generative art scripts that turn chemical molecules into artworks. Every molecule that has been discovered so far can be minted. Use this experimental software at your own risk. */ contract MoleculeSynthesizer is MoleculeScripter, ERC721 { //////////////////////////////////////////////////////////////////////////////////////// // SETUP // //////////////////////////////////////////////////////////////////////////////////////// /// @notice initiates the ElementBlocks contract ElementBlocksInterface elementBlocksContract; /// @notice sets up the token name, tracker and the ElementBlocks contract address constructor(address _elementsContract) ERC721("ChemScripts", "CHEMS") { elementBlocksContract = ElementBlocksInterface(_elementsContract); } /// @notice element short names to ElementBlocks tokenIDs mapping (string => uint) public elementToId; /// @notice allows contract owner to set the element's tokenIDs function setElementId (string memory _element, uint _elementId) public onlyOwner { elementToId[_element] = _elementId; } /// @notice gets element tokenIDs function getElementId (string memory _element) public view returns(uint) { return elementToId[_element]; } //////////////////////////////////////////////////////////////////////////////////////// // ERC721 MAGIC // //////////////////////////////////////////////////////////////////////////////////////// /// @notice apiURI stores the base URI to which the tokenID can be added for tokenURI string public apiURI; /// @notice contract owner can set and change the apiURI function setApiURI(string memory _apiURI) external onlyOwner { apiURI = _apiURI; } /// @notice returns the apiURI function _baseURI() internal view virtual override returns (string memory) { return apiURI; } //////////////////////////////////////////////////////////////////////////////////////// // NFT CHEMISTRY // //////////////////////////////////////////////////////////////////////////////////////// /// @notice event is emitted when a new molecule gets minted event NewMolecule(uint indexed moleculeId, string formula, string indexed key, string name, uint16 indexed scriptId); /// @notice stores molecule information /// @param formula is in InChI (international chemical Identifier) format /// @param key is a unique hash for each molecule /// @param name must be one of the molecules official names /// @param scriptId links to the generative art script that visualizes the molecule struct Molecule { string formula; string key; string name; uint16 scriptId; } /// @notice tokenIds to molecules mapping (uint => Molecule) public molecules; /// @notice keys to tokenIDs mapping (string => uint) public keys; /// @notice ensures that each molecule can only exist once per script function moleculeChecker (uint16 _scriptId, string memory _key) public view { if (keys[_key] > 0) { require(molecules[keys[_key]-1].scriptId != _scriptId, "molecule already minted"); } } /// @notice mints an ERC721 token and ties it to the molecule /// @param _formula requires everything after "InChI=" to at least one letter after the second slash function _createMolecule( string memory _formula, string memory _key, string memory _name, uint16 _scriptId ) internal mintableScript(_scriptId) returns (uint) { moleculeChecker(_scriptId, _key); uint id = _scriptId * 100000 + scripts[_scriptId].currentSupply; _safeMint(msg.sender, id); molecules[id] = Molecule(_formula, _key, _name, _scriptId); keys[_key] = id+1; scripts[_scriptId].currentSupply++; emit NewMolecule(id, _formula, _key, _name, _scriptId); return id; } /// @notice allows contract owner to re-assign wrong molecules when script not yet sealed function chemPolice( uint _moleculeId, string memory _formula, string memory _key, string memory _name) notSealed(molecules[_moleculeId].scriptId) onlyOwner external { Molecule storage wrongMolecule = molecules[_moleculeId]; wrongMolecule.formula = _formula; wrongMolecule.key = _key; wrongMolecule.name = _name; } //////////////////////////////////////////////////////////////////////////////////////// // MINTING & ROYALTIES // //////////////////////////////////////////////////////////////////////////////////////// /// @notice elementPercentage percentage that gets send to ElementBlocks holders uint public elementPercentage = 50; /// @notice allows contract owner to set percentage that flows to element holders function elementSetup(uint _elementPercentage) external onlyOwner { elementPercentage = _elementPercentage; } /// @notice element that currently gets the general royalties uint public royaltyHoldingElement = 1; /// @notice increments the royaltyHoldingElement and accounts for non-existent tokens function _nextRoyaltyHolder() internal { royaltyHoldingElement++; if (royaltyHoldingElement == 101) { royaltyHoldingElement++; } else if (royaltyHoldingElement == 107) { royaltyHoldingElement ++; } else if (royaltyHoldingElement == 121) { royaltyHoldingElement = 1; } } /// @notice gets current price and enables dutch auctions function getPrice(uint _scriptId) view public returns(uint) { uint duration = uint256(scripts[_scriptId].saleDuration) * 1 hours; if (!scripts[_scriptId].publicSale && !scripts[_scriptId].whitelistSale) { return 0; // allows creator and owner to test mint for free before the sale starts } else if ((block.timestamp - startingTime[_scriptId]) >= duration) { return scripts[_scriptId].endPrice; } else { return ((duration - (block.timestamp - startingTime[_scriptId])) * ((scripts[_scriptId].startPrice - scripts[_scriptId].endPrice) / duration) + scripts[_scriptId].endPrice); } } /// @notice distributes funds from minting to script creator and ElementBlock holders function _distributeFunds(uint _scriptId, string memory _formula, uint _numberOfElements) internal { if (msg.value > 0) { // script creator funds payable(scripts[_scriptId].creator).send( (msg.value - (msg.value*elementPercentage/100)) ); // specific elements royalties uint[] memory elementIds = formulaToElementIds(_formula, _numberOfElements); uint fundsPerElement = msg.value*elementPercentage/2/elementIds.length/100; for (uint i = 0; i < elementIds.length; i++) { payable(elementBlocksContract.ownerOf(elementIds[i])).send(fundsPerElement); } // general element royalties payable(elementBlocksContract.ownerOf(royaltyHoldingElement)).send(msg.value*elementPercentage/2/100); _nextRoyaltyHolder(); } } /// @notice returns tokenIds from all elements in a formula function formulaToElementIds(string memory _formula, uint _numberOfElements) public view returns(uint[] memory) { uint[] memory elementIds = new uint[](_numberOfElements); uint slashCounter = 0; uint elementsFound = 0; bytes memory moleculeBytes = bytes(_formula); for (uint i=1; i<moleculeBytes.length; i++) { if (bytes1("/") == moleculeBytes[i-1]) { slashCounter++; } if (slashCounter == 2) { if (_numberOfElements != elementsFound) { revert("Wrong elements nr"); } return elementIds; } if (slashCounter > 0) { string memory oneLetter = string(abi.encodePacked(moleculeBytes[i-1])); string memory twoLetters = string(abi.encodePacked(oneLetter, abi.encodePacked(moleculeBytes[i]))); if (elementToId[twoLetters] > 0) { uint element = elementToId[twoLetters]; elementIds[elementsFound] = element; elementsFound++; } else if (elementToId[oneLetter] > 0) { uint element = elementToId[oneLetter]; elementIds[elementsFound] = element; elementsFound++; } } } revert("Wrong formula"); } /// @notice mints a molecule /// @param _numberOfElements is the number of different elements in the formula /// @dev set the _numberOfElements to how often the element's letters occur in formula function mintMolecule( string memory _formula, string memory _key, string memory _name, uint16 _scriptId, uint _numberOfElements ) public payable { require(msg.value >= getPrice(_scriptId), "Insufficient funds"); require(scripts[_scriptId].publicSale || msg.sender == scripts[_scriptId].creator || msg.sender == owner(), "No public sale"); _distributeFunds(_scriptId, _formula, _numberOfElements); _createMolecule(_formula, _key, _name, _scriptId); } /// @notice root for whitelist minting bytes32 public merkleRoot; /// @notice allows owner to set the merkleRoot for whitelist minting function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /// @notice counts the total amount of whitelisted mints across scripts per address mapping (address => uint) public mintCount; /// @notice mints a molecule when msg.sender is whitelisted /// @param _numberOfElements is the number of different elements in the formula /// @param _whitelisted the amount for which msg.sender is whitelisted /// @param _proof an array of proof hashes for the MerkleProof /// @dev set the _numberOfElements to how often the element's letters occur in formula function whitelistMint( string memory _formula, string memory _key, string memory _name, uint16 _scriptId, uint _numberOfElements, uint _whitelisted, bytes32[] memory _proof ) public payable { require(msg.value >= getPrice(_scriptId), "Insufficient funds"); require(scripts[_scriptId].whitelistSale || msg.sender == scripts[_scriptId].creator || msg.sender == owner(), "No WL sale"); require(MerkleProof.verify(_proof, merkleRoot, keccak256(abi.encodePacked(msg.sender, _whitelisted))), "merkle proof failed"); require(mintCount[msg.sender]<_whitelisted, "max reached"); mintCount[msg.sender] += 1; _distributeFunds(_scriptId, _formula, _numberOfElements); _createMolecule(_formula, _key, _name, _scriptId); } /// @notice contract owner can withdraw ETH that was accidentally sent to this contract function rescueFunds() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-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. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "../node_modules/@openzeppelin/contracts/access/Ownable.sol"; /// @notice stores and manages generative art scripts contract MoleculeScripter is Ownable { /// @notice stores script data /// @param name is the script's title /// @param scriptCode stores all generative art code on chain /// @param creator is the artists address /// @param publicSale scripts can be minted to /// @param locked scripts cannot be changed anymore /// @param isSealed scripts lock all molecule's chemical data forever /// @param currentSupply shows how many molecules have been minted with that script /// @param totalSupply is the limit of molecules that can be minted with that script /// @param saleDuration is the time in hours of the dutch auction /// @param startPrice is the price in wei the dutch auction starts with /// @param endPrice is the price in wei minting stays at after the saleDuration ended struct Script { string name; string scriptCode; address creator; bool publicSale; bool whitelistSale; bool locked; bool isSealed; uint16 currentSupply; uint16 totalSupply; uint32 saleDuration; uint64 startPrice; uint64 endPrice; } /// @notice emits when a new script is created event NewScript( uint indexed scriptId, string name, string scriptCode, address creator, bool publicSale, bool whitelistSale, bool locked, bool isSealed, uint16 currentSupply, uint16 totalSupply, uint32 saleDuration, uint64 startPrice, uint64 endPrice ); /// @notice stores all scripts on chain Script[] public scripts; /// @notice number of scripts a creator can deploy mapping (address => uint) public allowedScripts; /// @notice script ids that belong to a creator mapping (uint => address) public scriptToCreator; /// @notice total number of scripts a creator has deployed mapping (address => uint) creatorScriptCount; /// @notice script IDs to timestamps of sales starts mapping (uint => uint) startingTime; /// @notice allow new creators in function allowCreator(address _creator, uint _scriptsAllowed) external onlyOwner { allowedScripts[_creator] = allowedScripts[_creator] + _scriptsAllowed; } /// @notice returns all script ids created by one creator function getScriptsByCreator(address _creator) external view returns(uint[] memory) { uint[] memory result = new uint[](creatorScriptCount[_creator]); uint counter = 0; for (uint i = 0; i < scripts.length; i++) { if (scriptToCreator[i] == _creator) { result[counter] = i; counter++; } } return result; } /// @notice checks if the artists is allowed to publish a script modifier onlyCreators(address _creator) { require(allowedScripts[_creator] > 0 || _creator == owner(), "Creator not allowed"); require(allowedScripts[_creator] > creatorScriptCount[_creator] || _creator == owner(), "Creator max scripts reached"); _; } /// @notice creates a new script function createScript( string memory _name, string memory _scriptCode, uint16 _totalSupply, uint32 _saleDuration, uint64 _startPrice, uint64 _endPrice ) external onlyCreators(msg.sender) { scripts.push(Script(_name, _scriptCode, msg.sender, false, false, false, false, 0, _totalSupply, _saleDuration, _startPrice, _endPrice)); uint id = scripts.length -1; creatorScriptCount[msg.sender]++; scriptToCreator[id] = msg.sender; emit NewScript(id, _name, _scriptCode, msg.sender, false, false, false, false, 0, _totalSupply, _saleDuration, _startPrice, _endPrice); } /// @notice allows to activate / deactivate a script and sets starting time for the sale function saleSwitch(uint _scriptId, bool _publicSale, bool _whitelistSale) external onlyScriptCreator(_scriptId) { scripts[_scriptId].publicSale = _publicSale; scripts[_scriptId].whitelistSale = _whitelistSale; if (_publicSale || _whitelistSale) { startingTime[_scriptId] = block.timestamp; } } /// @notice only script creator or owner can execute a function modifier onlyScriptCreator(uint _scriptId) { require(msg.sender == scripts[_scriptId].creator || msg.sender == owner(), "Only script creator or owner"); _; } /// @notice checks if the script is below its total supply modifier mintableScript(uint _scriptId) { require(scripts[_scriptId].currentSupply+1 <= scripts[_scriptId].totalSupply, "Total supply reached"); _; } /// @notice only proceeds when the script is not locked modifier notLocked(uint _scriptId) { require(!scripts[_scriptId].locked, "Script locked"); _; } /// @notice permanently locks a script => price, supply, and code cannot be altered function lockScript(uint _scriptId) notLocked(_scriptId) onlyScriptCreator(_scriptId) external { scripts[_scriptId].locked = true; } /// @notice creators can update the script code when the script is not locked function updateScriptName(uint _scriptId, string memory _scriptName) notLocked(_scriptId) onlyScriptCreator(_scriptId) external { scripts[_scriptId].name = _scriptName; } /// @notice creators can update the script code when the script is not locked function updateScriptCode(uint _scriptId, string memory _scriptCode) notLocked(_scriptId) onlyScriptCreator(_scriptId) external { scripts[_scriptId].scriptCode = _scriptCode; } /// @notice updates total supply when the script is not locked function updateScriptTotalSupply(uint _scriptId, uint16 _totalSupply) notLocked(_scriptId) onlyScriptCreator(_scriptId) external { require(scripts[_scriptId].currentSupply <= _totalSupply, "Supply already exceeded"); scripts[_scriptId].totalSupply = _totalSupply; } /// @notice updates price per molecule when the script is not locked function updateScriptPrice(uint _scriptId, uint32 _saleDuration, uint64 _startPrice, uint64 _endPrice) notLocked(_scriptId) onlyScriptCreator(_scriptId) external { scripts[_scriptId].saleDuration = _saleDuration; scripts[_scriptId].startPrice = _startPrice; scripts[_scriptId].endPrice = _endPrice; } /// @notice only proceeds when the script is not sealed modifier notSealed(uint _scriptId) { require(!scripts[_scriptId].isSealed, "Script is sealed"); _; } /// @notice permanently seals a script => molecules cannot be altered anymore function sealScript(uint _scriptId) notSealed(_scriptId) onlyOwner external { scripts[_scriptId].isSealed = true; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1000000 }, "evmVersion": "byzantium", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_elementsContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"moleculeId","type":"uint256"},{"indexed":false,"internalType":"string","name":"formula","type":"string"},{"indexed":true,"internalType":"string","name":"key","type":"string"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"uint16","name":"scriptId","type":"uint16"}],"name":"NewMolecule","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"scriptId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"scriptCode","type":"string"},{"indexed":false,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"bool","name":"publicSale","type":"bool"},{"indexed":false,"internalType":"bool","name":"whitelistSale","type":"bool"},{"indexed":false,"internalType":"bool","name":"locked","type":"bool"},{"indexed":false,"internalType":"bool","name":"isSealed","type":"bool"},{"indexed":false,"internalType":"uint16","name":"currentSupply","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"totalSupply","type":"uint16"},{"indexed":false,"internalType":"uint32","name":"saleDuration","type":"uint32"},{"indexed":false,"internalType":"uint64","name":"startPrice","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"endPrice","type":"uint64"}],"name":"NewScript","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_creator","type":"address"},{"internalType":"uint256","name":"_scriptsAllowed","type":"uint256"}],"name":"allowCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedScripts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_moleculeId","type":"uint256"},{"internalType":"string","name":"_formula","type":"string"},{"internalType":"string","name":"_key","type":"string"},{"internalType":"string","name":"_name","type":"string"}],"name":"chemPolice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_scriptCode","type":"string"},{"internalType":"uint16","name":"_totalSupply","type":"uint16"},{"internalType":"uint32","name":"_saleDuration","type":"uint32"},{"internalType":"uint64","name":"_startPrice","type":"uint64"},{"internalType":"uint64","name":"_endPrice","type":"uint64"}],"name":"createScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"elementPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_elementPercentage","type":"uint256"}],"name":"elementSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"elementToId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_formula","type":"string"},{"internalType":"uint256","name":"_numberOfElements","type":"uint256"}],"name":"formulaToElementIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_element","type":"string"}],"name":"getElementId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_creator","type":"address"}],"name":"getScriptsByCreator","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"keys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"}],"name":"lockScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_formula","type":"string"},{"internalType":"string","name":"_key","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint16","name":"_scriptId","type":"uint16"},{"internalType":"uint256","name":"_numberOfElements","type":"uint256"}],"name":"mintMolecule","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_scriptId","type":"uint16"},{"internalType":"string","name":"_key","type":"string"}],"name":"moleculeChecker","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"molecules","outputs":[{"internalType":"string","name":"formula","type":"string"},{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint16","name":"scriptId","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyHoldingElement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"_scriptId","type":"uint256"},{"internalType":"bool","name":"_publicSale","type":"bool"},{"internalType":"bool","name":"_whitelistSale","type":"bool"}],"name":"saleSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scriptToCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scripts","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"scriptCode","type":"string"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"bool","name":"publicSale","type":"bool"},{"internalType":"bool","name":"whitelistSale","type":"bool"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"isSealed","type":"bool"},{"internalType":"uint16","name":"currentSupply","type":"uint16"},{"internalType":"uint16","name":"totalSupply","type":"uint16"},{"internalType":"uint32","name":"saleDuration","type":"uint32"},{"internalType":"uint64","name":"startPrice","type":"uint64"},{"internalType":"uint64","name":"endPrice","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"}],"name":"sealScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_apiURI","type":"string"}],"name":"setApiURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_element","type":"string"},{"internalType":"uint256","name":"_elementId","type":"uint256"}],"name":"setElementId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_scriptCode","type":"string"}],"name":"updateScriptCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"string","name":"_scriptName","type":"string"}],"name":"updateScriptName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"uint32","name":"_saleDuration","type":"uint32"},{"internalType":"uint64","name":"_startPrice","type":"uint64"},{"internalType":"uint64","name":"_endPrice","type":"uint64"}],"name":"updateScriptPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scriptId","type":"uint256"},{"internalType":"uint16","name":"_totalSupply","type":"uint16"}],"name":"updateScriptTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_formula","type":"string"},{"internalType":"string","name":"_key","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint16","name":"_scriptId","type":"uint16"},{"internalType":"uint256","name":"_numberOfElements","type":"uint256"},{"internalType":"uint256","name":"_whitelisted","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052603260115560016012553480156200001b57600080fd5b5060405162006274380380620062748339810160408190526200003e916200020e565b6040518060400160405280600b81526020017f4368656d536372697074730000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4348454d530000000000000000000000000000000000000000000000000000008152506000620000c562000164640100000000026401000000009004565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35081516200012490600690602085019062000168565b5080516200013a90600790602084019062000168565b5050600c8054600160a060020a031916600160a060020a0393909316929092179091555062000296565b3390565b828054620001769062000240565b90600052602060002090601f0160209004810192826200019a5760008555620001e5565b82601f10620001b557805160ff1916838001178555620001e5565b82800160010185558215620001e5579182015b82811115620001e5578251825591602001919060010190620001c8565b50620001f3929150620001f7565b5090565b5b80821115620001f35760008155600101620001f8565b6000602082840312156200022157600080fd5b8151600160a060020a03811681146200023957600080fd5b9392505050565b6002810460018216806200025557607f821691505b6020821081141562000290577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b615fce80620002a66000396000f3fe60806040526004361061033b576000357c0100000000000000000000000000000000000000000000000000000000900480636b285dda116101c2578063b824d3d411610109578063e7572230116100b2578063eacc33d71161008c578063eacc33d714610986578063ed9ec888146109a6578063f2fde38b146109d3578063f6b4c2d0146109f357600080fd5b8063e7572230146108f0578063e8bc8bdb14610910578063e985e9c51461093057600080fd5b8063c741289b116100e3578063c741289b14610878578063c87b56dd146108bb578063e6b2603b146108db57600080fd5b8063b824d3d414610825578063b88d4fde14610845578063b8a660c81461086557600080fd5b806395d89b411161016b578063a86d270a11610145578063a86d270a146107b5578063ae9bc9b8146107d5578063b1d059c4146107f557600080fd5b806395d89b41146107605780639c649c8614610775578063a22cb4651461079557600080fd5b806376657e1a1161019c57806376657e1a146106e85780637cb64759146107155780638da5cb5b1461073557600080fd5b80636b285dda1461067b57806370a08231146106b3578063715018a6146106d357600080fd5b80633d561c35116102865780635dfad5821161022f57806365219d5f1161020957806365219d5f1461061b5780636899d4851461063b57806369e384681461065b57600080fd5b80635dfad582146105c5578063610bcbc9146105e55780636352211e146105fb57600080fd5b806354f24d9e1161026057806354f24d9e1461057d57806356cd75e5146105925780635a0806e8146105b257600080fd5b80633d561c351461051057806342842e0e1461053d57806348d029381461055d57600080fd5b80631647f6f1116102e85780632d6ead22116102c25780632d6ead22146104b65780632eb4a7ab146104da57806332177bb4146104f057600080fd5b80631647f6f114610456578063185de7a01461047657806323b872dd1461049657600080fd5b8063081812fc11610319578063081812fc146103b957806308ff7f61146103fe578063095ea7b31461043657600080fd5b806301ffc9a714610340578063055094801461037557806306fdde0314610397575b600080fd5b34801561034c57600080fd5b5061036061035b366004615556565b610a2b565b60405190151581526020015b60405180910390f35b34801561038157600080fd5b50610395610390366004615511565b610b10565b005b3480156103a357600080fd5b506103ac610bf4565b60405161036c9190615af4565b3480156103c557600080fd5b506103d96103d436600461553d565b610c86565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161036c565b34801561040a57600080fd5b5061041e61041936600461553d565b610d60565b60405161036c9c9b9a99989796959493929190615b35565b34801561044257600080fd5b50610395610451366004615511565b610fc4565b34801561046257600080fd5b5061039561047136600461553d565b611151565b34801561048257600080fd5b50610395610491366004615590565b6112ac565b3480156104a257600080fd5b506103956104b136600461541b565b611344565b3480156104c257600080fd5b506104cc60125481565b60405190815260200161036c565b3480156104e657600080fd5b506104cc60135481565b3480156104fc57600080fd5b5061039561050b36600461553d565b6113e5565b34801561051c57600080fd5b506104cc61052b3660046153a8565b60026020526000908152604090205481565b34801561054957600080fd5b5061039561055836600461541b565b61146b565b34801561056957600080fd5b5061039561057836600461586f565b611486565b34801561058957600080fd5b506103ac6115ec565b34801561059e57600080fd5b506103956105ad366004615821565b61167a565b6103956105c0366004615666565b611755565b3480156105d157600080fd5b506103956105e03660046157dc565b611a42565b3480156105f157600080fd5b506104cc60115481565b34801561060757600080fd5b506103d961061636600461553d565b611ae8565b34801561062757600080fd5b50610395610636366004615737565b611b9a565b34801561064757600080fd5b506103956106563660046158ab565b612134565b34801561066757600080fd5b50610395610676366004615962565b6122d5565b34801561068757600080fd5b506104cc610696366004615590565b8051602081830181018051600d8252928201919093012091525481565b3480156106bf57600080fd5b506104cc6106ce3660046153a8565b612530565b3480156106df57600080fd5b506103956125fe565b3480156106f457600080fd5b506107086107033660046157dc565b6126ee565b60405161036c9190615ab0565b34801561072157600080fd5b5061039561073036600461553d565b612baa565b34801561074157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166103d9565b34801561076c57600080fd5b506103ac612c30565b34801561078157600080fd5b506107086107903660046153a8565b612c3f565b3480156107a157600080fd5b506103956107b03660046154dc565b612d31565b3480156107c157600080fd5b506103956107d03660046158ab565b612e48565b3480156107e157600080fd5b506103956107f0366004615985565b612fe2565b34801561080157600080fd5b5061081561081036600461553d565b613225565b60405161036c9493929190615bf6565b34801561083157600080fd5b5061039561084036600461553d565b6133e9565b34801561085157600080fd5b5061039561086036600461545c565b61358c565b6103956108733660046155c5565b61362e565b34801561088457600080fd5b506103d961089336600461553d565b60036020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3480156108c757600080fd5b506103ac6108d636600461553d565b6137cf565b3480156108e757600080fd5b506103956138df565b3480156108fc57600080fd5b506104cc61090b36600461553d565b6139c1565b34801561091c57600080fd5b5061039561092b3660046158dc565b613c08565b34801561093c57600080fd5b5061036061094b3660046153e2565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600b6020908152604080832093909416825291909152205460ff1690565b34801561099257600080fd5b506104cc6109a1366004615590565b613d94565b3480156109b257600080fd5b506104cc6109c13660046153a8565b60146020526000908152604090205481565b3480156109df57600080fd5b506103956109ee3660046153a8565b613dbc565b3480156109ff57600080fd5b506104cc610a0e366004615590565b805160208183018101805160108252928201919093012091525481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610abe57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b0a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902054610bc7908290615ccf565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526002602052604090209190915550565b606060068054610c0390615dcf565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2f90615dcf565b8015610c7c5780601f10610c5157610100808354040283529160200191610c7c565b820191906000526020600020905b815481529060010190602001808311610c5f57829003601f168201915b5050505050905090565b60008181526008602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b8d565b506000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60018181548110610d7057600080fd5b9060005260206000209060040201600091509050806000018054610d9390615dcf565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbf90615dcf565b8015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505050505090806001018054610e2190615dcf565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4d90615dcf565b8015610e9a5780601f10610e6f57610100808354040283529160200191610e9a565b820191906000526020600020905b815481529060010190602001808311610e7d57829003601f168201915b505050506002830154600390930154919273ffffffffffffffffffffffffffffffffffffffff81169274010000000000000000000000000000000000000000820460ff9081169350750100000000000000000000000000000000000000000083048116927601000000000000000000000000000000000000000000008104821692770100000000000000000000000000000000000000000000008204909216917801000000000000000000000000000000000000000000000000820461ffff908116927a0100000000000000000000000000000000000000000000000000008104909116917c010000000000000000000000000000000000000000000000000000000090910463ffffffff169067ffffffffffffffff80821691680100000000000000009004168c565b6000610fcf82611ae8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b8d565b3373ffffffffffffffffffffffffffffffffffffffff821614806110b657506110b6813361094b565b611142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b8d565b61114c8383613f6d565b505050565b806001818154811061116557611165615eea565b906000526020600020906004020160020160179054906101000a900460ff16156111eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f536372697074206973207365616c6564000000000000000000000000000000006044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b600180838154811061128057611280615eea565b906000526020600020906004020160020160176101000a81548160ff0219169083151502179055505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461132d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b805161134090600e9060208401906151a1565b5050565b61134e338261400d565b6113da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b8d565b61114c83838361417d565b60005473ffffffffffffffffffffffffffffffffffffffff163314611466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b601155565b61114c8383836040518060200160405280600081525061358c565b826001818154811061149a5761149a615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806114e8575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61154e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b826001858154811061156257611562615eea565b906000526020600020906004020160020160146101000a81548160ff021916908315150217905550816001858154811061159e5761159e615eea565b906000526020600020906004020160020160156101000a81548160ff02191690831515021790555082806115cf5750815b156115e65760008481526005602052604090204290555b50505050565b600e80546115f990615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461162590615dcf565b80156116725780601f1061164757610100808354040283529160200191611672565b820191906000526020600020905b81548152906001019060200180831161165557829003601f168201915b505050505081565b600060108260405161168c9190615a1c565b9081526020016040518091039020541115611340578161ffff16600f600060016010856040516116bc9190615a1c565b9081526020016040518091039020546116d59190615d63565b815260208101919091526040016000206003015461ffff161415611340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6d6f6c6563756c6520616c7265616479206d696e7465640000000000000000006044820152606401610b8d565b6117628461ffff166139c1565b3410156117cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e73756666696369656e742066756e647300000000000000000000000000006044820152606401610b8d565b60018461ffff16815481106117e2576117e2615eea565b906000526020600020906004020160020160159054906101000a900460ff168061184b575060018461ffff168154811061181e5761181e615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff1633145b8061186d575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6118d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f20574c2073616c65000000000000000000000000000000000000000000006044820152606401610b8d565b6013546040516c010000000000000000000000003302602082015260348101849052611919918391605401604051602081830303815290604052805190602001206143e4565b61197f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6d65726b6c652070726f6f66206661696c6564000000000000000000000000006044820152606401610b8d565b3360009081526014602052604090205482116119f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6d617820726561636865640000000000000000000000000000000000000000006044820152606401610b8d565b336000908152601460205260408120805460019290611a17908490615ccf565b90915550611a2c905061ffff85168885614493565b611a3887878787614784565b5050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ac3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b80600d83604051611ad49190615a1c565b908152604051908190036020019020555050565b60008181526008602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610b0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b8d565b33600081815260026020526040902054151580611bd1575060005473ffffffffffffffffffffffffffffffffffffffff8281169116145b611c37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f43726561746f72206e6f7420616c6c6f776564000000000000000000000000006044820152606401610b8d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460209081526040808320546002909252909120541180611c8f575060005473ffffffffffffffffffffffffffffffffffffffff8281169116145b611cf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43726561746f72206d61782073637269707473207265616368656400000000006044820152606401610b8d565b6040805161018081018252888152602080820189905233928201929092526000606082018190526080820181905260a0820181905260c0820181905260e0820181905261ffff881661010083015263ffffffff871661012083015267ffffffffffffffff8087166101408401528516610160830152600180548082018255915281518051929360049092027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60192611db092849201906151a1565b506020828101518051611dc992600185019201906151a1565b5060408201516002820180546060850151608086015160a087015160c088015160e08901516101008a01516101208b015173ffffffffffffffffffffffffffffffffffffffff9099167fffffffffffffffffffffff000000000000000000000000000000000000000000909716969096177401000000000000000000000000000000000000000095151595909502949094177fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000931515939093027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff169290921776010000000000000000000000000000000000000000000091151591909102177fffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffffff1677010000000000000000000000000000000000000000000000911515919091027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff1617780100000000000000000000000000000000000000000000000061ffff928316021779ffffffffffffffffffffffffffffffffffffffffffffffffffff167a01000000000000000000000000000000000000000000000000000091909216027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16177c010000000000000000000000000000000000000000000000000000000063ffffffff90931692909202919091179055610140820151600390910180546101609093015167ffffffffffffffff9283167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909416939093176801000000000000000092909316919091029190911790556001805460009161206491615d63565b33600090815260046020526040812080549293509061208283615e3f565b9190505550336003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fc3e046c4b6b7676b8ce1014ea072a2c5adbcb235edb66f7c49d6562644f7d3fb89893360008060008060008f8f8f8f6040516121229c9b9a99989796959493929190615b35565b60405180910390a25050505050505050565b816001818154811061214857612148615eea565b906000526020600020906004020160020160169054906101000a900460ff16156121ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b82600181815481106121e2576121e2615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff16331480612230575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b82600185815481106122aa576122aa615eea565b906000526020600020906004020160010190805190602001906122ce9291906151a1565b5050505050565b81600181815481106122e9576122e9615eea565b906000526020600020906004020160020160169054906101000a900460ff161561236f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b826001818154811061238357612383615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806123d1575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b8261ffff166001858154811061244f5761244f615eea565b60009182526020909120600490910201600201547801000000000000000000000000000000000000000000000000900461ffff1611156124eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f537570706c7920616c72656164792065786365656465640000000000000000006044820152606401610b8d565b82600185815481106124ff576124ff615eea565b9060005260206000209060040201600201601a6101000a81548161ffff021916908361ffff16021790555050505050565b600073ffffffffffffffffffffffffffffffffffffffff82166125d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b8d565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff16331461267f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b606060008267ffffffffffffffff81111561270b5761270b615f19565b604051908082528060200260200182016040528015612734578160200160208202803683370190505b5090506000808560015b8151811015612b475781612753600183615d63565b8151811061276357612763615eea565b60200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f2f000000000000000000000000000000000000000000000000000000000000007effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612826578361282281615e3f565b9450505b83600214156128a557828714612898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f57726f6e6720656c656d656e7473206e720000000000000000000000000000006044820152606401610b8d565b8495505050505050610b0a565b8315612b35576000826128b9600184615d63565b815181106128c9576128c9615eea565b60200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000260405160200161294b91907fff0000000000000000000000000000000000000000000000000000000000000091909116815260010190565b604051602081830303815290604052905060008184848151811061297157612971615eea565b60200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000026040516020016129f391907fff0000000000000000000000000000000000000000000000000000000000000091909116815260010190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052612a2f9291602001615a38565b60405160208183030381529060405290506000600d82604051612a529190615a1c565b9081526020016040518091039020541115612abb576000600d82604051612a799190615a1c565b908152602001604051809103902054905080888781518110612a9d57612a9d615eea565b602090810291909101015285612ab281615e3f565b96505050612b32565b6000600d83604051612acd9190615a1c565b9081526020016040518091039020541115612b32576000600d83604051612af49190615a1c565b908152602001604051809103902054905080888781518110612b1857612b18615eea565b602090810291909101015285612b2d81615e3f565b965050505b50505b80612b3f81615e3f565b91505061273e565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e6720666f726d756c61000000000000000000000000000000000000006044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff163314612c2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b601355565b606060078054610c0390615dcf565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260408120546060919067ffffffffffffffff811115612c8157612c81615f19565b604051908082528060200260200182016040528015612caa578160200160208202803683370190505b5090506000805b600154811015612d285760008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff86811691161415612d165780838381518110612cfd57612cfd615eea565b602090810291909101015281612d1281615e3f565b9250505b80612d2081615e3f565b915050612cb1565b50909392505050565b73ffffffffffffffffffffffffffffffffffffffff8216331415612db1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b8d565b336000818152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8160018181548110612e5c57612e5c615eea565b906000526020600020906004020160020160169054906101000a900460ff1615612ee2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b8260018181548110612ef657612ef6615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff16331480612f44575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612faa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b8260018581548110612fbe57612fbe615eea565b906000526020600020906004020160000190805190602001906122ce9291906151a1565b8360018181548110612ff657612ff6615eea565b906000526020600020906004020160020160169054906101000a900460ff161561307c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b846001818154811061309057613090615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806130de575060005473ffffffffffffffffffffffffffffffffffffffff1633145b613144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b846001878154811061315857613158615eea565b9060005260206000209060040201600201601c6101000a81548163ffffffff021916908363ffffffff160217905550836001878154811061319b5761319b615eea565b906000526020600020906004020160030160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600187815481106131e6576131e6615eea565b906000526020600020906004020160030160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050505050565b600f6020526000908152604090208054819061324090615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461326c90615dcf565b80156132b95780601f1061328e576101008083540402835291602001916132b9565b820191906000526020600020905b81548152906001019060200180831161329c57829003601f168201915b5050505050908060010180546132ce90615dcf565b80601f01602080910402602001604051908101604052809291908181526020018280546132fa90615dcf565b80156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b50505050509080600201805461335c90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461338890615dcf565b80156133d55780601f106133aa576101008083540402835291602001916133d5565b820191906000526020600020905b8154815290600101906020018083116133b857829003601f168201915b5050506003909301549192505061ffff1684565b80600181815481106133fd576133fd615eea565b906000526020600020906004020160020160169054906101000a900460ff1615613483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b816001818154811061349757613497615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806134e5575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61354b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b600180848154811061355f5761355f615eea565b906000526020600020906004020160020160166101000a81548160ff021916908315150217905550505050565b613596338361400d565b613622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b8d565b6115e684848484614abb565b61363b8261ffff166139c1565b3410156136a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e73756666696369656e742066756e647300000000000000000000000000006044820152606401610b8d565b60018261ffff16815481106136bb576136bb615eea565b906000526020600020906004020160020160149054906101000a900460ff1680613724575060018261ffff16815481106136f7576136f7615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff1633145b80613746575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6137ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f207075626c69632073616c650000000000000000000000000000000000006044820152606401610b8d565b6137bb8261ffff168683614493565b6137c785858585614784565b505050505050565b60008181526008602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b8d565b600061388d614b5e565b905060008151116138ad57604051806020016040528060008152506138d8565b806138b784614b6d565b6040516020016138c8929190615a38565b6040516020818303038152906040525b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff1660405173ffffffffffffffffffffffffffffffffffffffff9190911690303180156108fc02916000818181858888f193505050501580156139be573d6000803e3d6000fd5b50565b600080600183815481106139d7576139d7615eea565b6000918252602090912060049091020160020154613a1d907c0100000000000000000000000000000000000000000000000000000000900463ffffffff16610e10615d26565b905060018381548110613a3257613a32615eea565b906000526020600020906004020160020160149054906101000a900460ff16158015613a8d575060018381548110613a6c57613a6c615eea565b906000526020600020906004020160020160159054906101000a900460ff16155b15613a9b5750600092915050565b6000838152600560205260409020548190613ab69042615d63565b10613aff5760018381548110613ace57613ace615eea565b600091825260209091206004909102016003015468010000000000000000900467ffffffffffffffff169392505050565b60018381548110613b1257613b12615eea565b906000526020600020906004020160030160089054906101000a900467ffffffffffffffff1667ffffffffffffffff168160018581548110613b5657613b56615eea565b906000526020600020906004020160030160089054906101000a900467ffffffffffffffff1660018681548110613b8f57613b8f615eea565b6000918252602090912060036004909202010154613bb7919067ffffffffffffffff16615d7a565b67ffffffffffffffff16613bcb9190615ce7565b600085815260056020526040902054613be49042615d63565b613bee9084615d63565b613bf89190615d26565b6138d89190615ccf565b50919050565b6000848152600f60205260409020600301546001805461ffff9092169182908110613c3557613c35615eea565b906000526020600020906004020160020160179054906101000a900460ff1615613cbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f536372697074206973207365616c6564000000000000000000000000000000006044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff163314613d3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b6000858152600f6020908152604090912085519091613d5f9183918801906151a1565b508351613d7590600183019060208701906151a1565b508251613d8b90600283019060208601906151a1565b50505050505050565b6000600d82604051613da69190615a1c565b9081526020016040518091039020549050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613e3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b73ffffffffffffffffffffffffffffffffffffffff8116613ee0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b8d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000818152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613fc782611ae8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526008602052604081205473ffffffffffffffffffffffffffffffffffffffff166140be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b8d565b60006140c983611ae8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061413857508373ffffffffffffffffffffffffffffffffffffffff1661412084610c86565b73ffffffffffffffffffffffffffffffffffffffff16145b80614175575073ffffffffffffffffffffffffffffffffffffffff8082166000908152600b602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661419d82611ae8565b73ffffffffffffffffffffffffffffffffffffffff1614614240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b8d565b73ffffffffffffffffffffffffffffffffffffffff82166142e2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b8d565b6142ed600082613f6d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600960205260408120805460019290614323908490615d63565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260096020526040812080546001929061435e908490615ccf565b909155505060008181526008602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b855181101561448857600086828151811061440657614406615eea565b60200260200101519050808311614448576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250614475565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061448081615e3f565b9150506143e9565b509092149392505050565b341561114c57600183815481106144ac576144ac615eea565b600091825260209091206002600490920201015460115473ffffffffffffffffffffffffffffffffffffffff909116906108fc906064906144ed9034615d26565b6144f79190615ce7565b6145019034615d63565b6040518115909202916000818181858888f1935050505050600061452583836126ee565b905060006064825160026011543461453d9190615d26565b6145479190615ce7565b6145519190615ce7565b61455b9190615ce7565b905060005b825181101561467957600c54835173ffffffffffffffffffffffffffffffffffffffff90911690636352211e9085908490811061459f5761459f615eea565b60200260200101516040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016145e191815260200190565b60206040518083038186803b1580156145f957600080fd5b505afa15801561460d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061463191906153c5565b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505050808061467190615e3f565b915050614560565b50600c546012546040517f6352211e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921691636352211e916146d59160040190815260200190565b60206040518083038186803b1580156146ed57600080fd5b505afa158015614701573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061472591906153c5565b73ffffffffffffffffffffffffffffffffffffffff166108fc60646002601154346147509190615d26565b61475a9190615ce7565b6147649190615ce7565b6040518115909202916000818181858888f19350505050506122ce614cbe565b60008161ffff166001818154811061479e5761479e615eea565b9060005260206000209060040201600201601a9054906101000a900461ffff1661ffff16600182815481106147d5576147d5615eea565b6000918252602090912060049091020160020154614814907801000000000000000000000000000000000000000000000000900461ffff166001615c94565b61ffff161115614880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f546f74616c20737570706c7920726561636865640000000000000000000000006044820152606401610b8d565b61488a838661167a565b600060018461ffff16815481106148a3576148a3615eea565b600091825260209091206002600490920201015461ffff78010000000000000000000000000000000000000000000000009091048116906148e9908616620186a0615cfb565b6148f39190615cb1565b62ffffff1690506149043382614d23565b60408051608081018252888152602080820189905281830188905261ffff871660608301526000848152600f825292909220815180519293919261494b92849201906151a1565b50602082810151805161496492600185019201906151a1565b50604082015180516149809160028401916020909101906151a1565b5060609190910151600390910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff9092169190911790556149c8816001615ccf565b6010876040516149d89190615a1c565b908152604051908190036020019020556001805461ffff8616908110614a0057614a00615eea565b6000918252602090912060049091020160020180547801000000000000000000000000000000000000000000000000900461ffff16906018614a4183615e1d565b91906101000a81548161ffff021916908361ffff160217905550508361ffff1686604051614a6f9190615a1c565b6040518091039020827f50111d684154aae1dfb8ee2a704713506ac9e45326340f51a98d6472f33d6ef08a89604051614aa9929190615b07565b60405180910390a49695505050505050565b614ac684848461417d565b614ad284848484614d3d565b6115e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b8d565b6060600e8054610c0390615dcf565b606081614bad57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115614bd75780614bc181615e3f565b9150614bd09050600a83615ce7565b9150614bb1565b60008167ffffffffffffffff811115614bf257614bf2615f19565b6040519080825280601f01601f191660200182016040528015614c1c576020820181803683370190505b5090505b841561417557614c31600183615d63565b9150614c3e600a86615e78565b614c49906030615ccf565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110614c7d57614c7d615eea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614cb7600a86615ce7565b9450614c20565b60128054906000614cce83615e3f565b919050555060125460651415614cf55760128054906000614cee83615e3f565b9190505550565b601254606b1415614d105760128054906000614cee83615e3f565b60125460791415614d215760016012555b565b611340828260405180602001604052806000815250614f3c565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614f31576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614db4903390899088908890600401615a67565b602060405180830381600087803b158015614dce57600080fd5b505af1925050508015614e1c575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614e1991810190615573565b60015b614ee6573d808015614e4a576040519150601f19603f3d011682016040523d82523d6000602084013e614e4f565b606091505b508051614ede576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b8d565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050614175565b506001949350505050565b614f468383614fdf565b614f536000848484614d3d565b61114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b8d565b73ffffffffffffffffffffffffffffffffffffffff821661505c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8d565b60008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff16156150e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b8d565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260096020526040812080546001929061511e908490615ccf565b909155505060008181526008602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546151ad90615dcf565b90600052602060002090601f0160209004810192826151cf5760008555615215565b82601f106151e857805160ff1916838001178555615215565b82800160010185558215615215579182015b828111156152155782518255916020019190600101906151fa565b50615221929150615225565b5090565b5b808211156152215760008155600101615226565b600067ffffffffffffffff83111561525457615254615f19565b61528560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601615c45565b905082815283838301111561529957600080fd5b828260208301376000602084830101529392505050565b600082601f8301126152c157600080fd5b8135602067ffffffffffffffff8211156152dd576152dd615f19565b8082026152eb828201615c45565b83815282810190868401838801850189101561530657600080fd5b600093505b8584101561532957803583526001939093019291840191840161530b565b50979650505050505050565b8035801515811461534557600080fd5b919050565b600082601f83011261535b57600080fd5b6138d88383356020850161523a565b803561ffff8116811461534557600080fd5b803563ffffffff8116811461534557600080fd5b803567ffffffffffffffff8116811461534557600080fd5b6000602082840312156153ba57600080fd5b81356138d881615f48565b6000602082840312156153d757600080fd5b81516138d881615f48565b600080604083850312156153f557600080fd5b823561540081615f48565b9150602083013561541081615f48565b809150509250929050565b60008060006060848603121561543057600080fd5b833561543b81615f48565b9250602084013561544b81615f48565b929592945050506040919091013590565b6000806000806080858703121561547257600080fd5b843561547d81615f48565b9350602085013561548d81615f48565b925060408501359150606085013567ffffffffffffffff8111156154b057600080fd5b8501601f810187136154c157600080fd5b6154d08782356020840161523a565b91505092959194509250565b600080604083850312156154ef57600080fd5b82356154fa81615f48565b915061550860208401615335565b90509250929050565b6000806040838503121561552457600080fd5b823561552f81615f48565b946020939093013593505050565b60006020828403121561554f57600080fd5b5035919050565b60006020828403121561556857600080fd5b81356138d881615f6a565b60006020828403121561558557600080fd5b81516138d881615f6a565b6000602082840312156155a257600080fd5b813567ffffffffffffffff8111156155b957600080fd5b6141758482850161534a565b600080600080600060a086880312156155dd57600080fd5b853567ffffffffffffffff808211156155f557600080fd5b61560189838a0161534a565b9650602088013591508082111561561757600080fd5b61562389838a0161534a565b9550604088013591508082111561563957600080fd5b506156468882890161534a565b9350506156556060870161536a565b949793965091946080013592915050565b600080600080600080600060e0888a03121561568157600080fd5b873567ffffffffffffffff8082111561569957600080fd5b6156a58b838c0161534a565b985060208a01359150808211156156bb57600080fd5b6156c78b838c0161534a565b975060408a01359150808211156156dd57600080fd5b6156e98b838c0161534a565b96506156f760608b0161536a565b955060808a0135945060a08a0135935060c08a013591508082111561571b57600080fd5b506157288a828b016152b0565b91505092959891949750929550565b60008060008060008060c0878903121561575057600080fd5b863567ffffffffffffffff8082111561576857600080fd5b6157748a838b0161534a565b9750602089013591508082111561578a57600080fd5b5061579789828a0161534a565b9550506157a66040880161536a565b93506157b46060880161537c565b92506157c260808801615390565b91506157d060a08801615390565b90509295509295509295565b600080604083850312156157ef57600080fd5b823567ffffffffffffffff81111561580657600080fd5b6158128582860161534a565b95602094909401359450505050565b6000806040838503121561583457600080fd5b61583d8361536a565b9150602083013567ffffffffffffffff81111561585957600080fd5b6158658582860161534a565b9150509250929050565b60008060006060848603121561588457600080fd5b8335925061589460208501615335565b91506158a260408501615335565b90509250925092565b600080604083850312156158be57600080fd5b82359150602083013567ffffffffffffffff81111561585957600080fd5b600080600080608085870312156158f257600080fd5b84359350602085013567ffffffffffffffff8082111561591157600080fd5b61591d8883890161534a565b9450604087013591508082111561593357600080fd5b61593f8883890161534a565b9350606087013591508082111561595557600080fd5b506154d08782880161534a565b6000806040838503121561597557600080fd5b823591506155086020840161536a565b6000806000806080858703121561599b57600080fd5b843593506159ab6020860161537c565b92506159b960408601615390565b91506159c760608601615390565b905092959194509250565b600081518084526159ea816020860160208601615da3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251615a2e818460208701615da3565b9190910192915050565b60008351615a4a818460208801615da3565b835190830190615a5e818360208801615da3565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615aa660808301846159d2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615ae857835183529284019291840191600101615acc565b50909695505050505050565b6020815260006138d860208301846159d2565b604081526000615b1a60408301856159d2565b8281036020840152615b2c81856159d2565b95945050505050565b61018081526000615b4a61018083018f6159d2565b8281036020840152615b5c818f6159d2565b91505073ffffffffffffffffffffffffffffffffffffffff8c1660408301528a15156060830152891515608083015288151560a0830152615ba160c083018915159052565b61ffff871660e083015261ffff861661010083015263ffffffff851661012083015267ffffffffffffffff841661014083015267ffffffffffffffff83166101608301529d9c50505050505050505050505050565b608081526000615c0960808301876159d2565b8281036020840152615c1b81876159d2565b90508281036040840152615c2f81866159d2565b91505061ffff8316606083015295945050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715615c8c57615c8c615f19565b604052919050565b600061ffff808316818516808303821115615a5e57615a5e615e8c565b600062ffffff808316818516808303821115615a5e57615a5e615e8c565b60008219821115615ce257615ce2615e8c565b500190565b600082615cf657615cf6615ebb565b500490565b600062ffffff80831681851681830481118215151615615d1d57615d1d615e8c565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615d5e57615d5e615e8c565b500290565b600082821015615d7557615d75615e8c565b500390565b600067ffffffffffffffff83811690831681811015615d9b57615d9b615e8c565b039392505050565b60005b83811015615dbe578181015183820152602001615da6565b838111156115e65750506000910152565b600281046001821680615de357607f821691505b60208210811415613c02577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600061ffff80831681811415615e3557615e35615e8c565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615e7157615e71615e8c565b5060010190565b600082615e8757615e87615ebb565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146139be57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146139be57600080fdfea26469706673582212208d86e49bedbeea8a76a0a06d67787fd100b0a29147540dd1be339ee82789573864736f6c63430008060033000000000000000000000000a13325ba1b9493c02d364a4a41e646d24f532126
Deployed Bytecode
0x60806040526004361061033b576000357c0100000000000000000000000000000000000000000000000000000000900480636b285dda116101c2578063b824d3d411610109578063e7572230116100b2578063eacc33d71161008c578063eacc33d714610986578063ed9ec888146109a6578063f2fde38b146109d3578063f6b4c2d0146109f357600080fd5b8063e7572230146108f0578063e8bc8bdb14610910578063e985e9c51461093057600080fd5b8063c741289b116100e3578063c741289b14610878578063c87b56dd146108bb578063e6b2603b146108db57600080fd5b8063b824d3d414610825578063b88d4fde14610845578063b8a660c81461086557600080fd5b806395d89b411161016b578063a86d270a11610145578063a86d270a146107b5578063ae9bc9b8146107d5578063b1d059c4146107f557600080fd5b806395d89b41146107605780639c649c8614610775578063a22cb4651461079557600080fd5b806376657e1a1161019c57806376657e1a146106e85780637cb64759146107155780638da5cb5b1461073557600080fd5b80636b285dda1461067b57806370a08231146106b3578063715018a6146106d357600080fd5b80633d561c35116102865780635dfad5821161022f57806365219d5f1161020957806365219d5f1461061b5780636899d4851461063b57806369e384681461065b57600080fd5b80635dfad582146105c5578063610bcbc9146105e55780636352211e146105fb57600080fd5b806354f24d9e1161026057806354f24d9e1461057d57806356cd75e5146105925780635a0806e8146105b257600080fd5b80633d561c351461051057806342842e0e1461053d57806348d029381461055d57600080fd5b80631647f6f1116102e85780632d6ead22116102c25780632d6ead22146104b65780632eb4a7ab146104da57806332177bb4146104f057600080fd5b80631647f6f114610456578063185de7a01461047657806323b872dd1461049657600080fd5b8063081812fc11610319578063081812fc146103b957806308ff7f61146103fe578063095ea7b31461043657600080fd5b806301ffc9a714610340578063055094801461037557806306fdde0314610397575b600080fd5b34801561034c57600080fd5b5061036061035b366004615556565b610a2b565b60405190151581526020015b60405180910390f35b34801561038157600080fd5b50610395610390366004615511565b610b10565b005b3480156103a357600080fd5b506103ac610bf4565b60405161036c9190615af4565b3480156103c557600080fd5b506103d96103d436600461553d565b610c86565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161036c565b34801561040a57600080fd5b5061041e61041936600461553d565b610d60565b60405161036c9c9b9a99989796959493929190615b35565b34801561044257600080fd5b50610395610451366004615511565b610fc4565b34801561046257600080fd5b5061039561047136600461553d565b611151565b34801561048257600080fd5b50610395610491366004615590565b6112ac565b3480156104a257600080fd5b506103956104b136600461541b565b611344565b3480156104c257600080fd5b506104cc60125481565b60405190815260200161036c565b3480156104e657600080fd5b506104cc60135481565b3480156104fc57600080fd5b5061039561050b36600461553d565b6113e5565b34801561051c57600080fd5b506104cc61052b3660046153a8565b60026020526000908152604090205481565b34801561054957600080fd5b5061039561055836600461541b565b61146b565b34801561056957600080fd5b5061039561057836600461586f565b611486565b34801561058957600080fd5b506103ac6115ec565b34801561059e57600080fd5b506103956105ad366004615821565b61167a565b6103956105c0366004615666565b611755565b3480156105d157600080fd5b506103956105e03660046157dc565b611a42565b3480156105f157600080fd5b506104cc60115481565b34801561060757600080fd5b506103d961061636600461553d565b611ae8565b34801561062757600080fd5b50610395610636366004615737565b611b9a565b34801561064757600080fd5b506103956106563660046158ab565b612134565b34801561066757600080fd5b50610395610676366004615962565b6122d5565b34801561068757600080fd5b506104cc610696366004615590565b8051602081830181018051600d8252928201919093012091525481565b3480156106bf57600080fd5b506104cc6106ce3660046153a8565b612530565b3480156106df57600080fd5b506103956125fe565b3480156106f457600080fd5b506107086107033660046157dc565b6126ee565b60405161036c9190615ab0565b34801561072157600080fd5b5061039561073036600461553d565b612baa565b34801561074157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166103d9565b34801561076c57600080fd5b506103ac612c30565b34801561078157600080fd5b506107086107903660046153a8565b612c3f565b3480156107a157600080fd5b506103956107b03660046154dc565b612d31565b3480156107c157600080fd5b506103956107d03660046158ab565b612e48565b3480156107e157600080fd5b506103956107f0366004615985565b612fe2565b34801561080157600080fd5b5061081561081036600461553d565b613225565b60405161036c9493929190615bf6565b34801561083157600080fd5b5061039561084036600461553d565b6133e9565b34801561085157600080fd5b5061039561086036600461545c565b61358c565b6103956108733660046155c5565b61362e565b34801561088457600080fd5b506103d961089336600461553d565b60036020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3480156108c757600080fd5b506103ac6108d636600461553d565b6137cf565b3480156108e757600080fd5b506103956138df565b3480156108fc57600080fd5b506104cc61090b36600461553d565b6139c1565b34801561091c57600080fd5b5061039561092b3660046158dc565b613c08565b34801561093c57600080fd5b5061036061094b3660046153e2565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600b6020908152604080832093909416825291909152205460ff1690565b34801561099257600080fd5b506104cc6109a1366004615590565b613d94565b3480156109b257600080fd5b506104cc6109c13660046153a8565b60146020526000908152604090205481565b3480156109df57600080fd5b506103956109ee3660046153a8565b613dbc565b3480156109ff57600080fd5b506104cc610a0e366004615590565b805160208183018101805160108252928201919093012091525481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610abe57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b0a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902054610bc7908290615ccf565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526002602052604090209190915550565b606060068054610c0390615dcf565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2f90615dcf565b8015610c7c5780601f10610c5157610100808354040283529160200191610c7c565b820191906000526020600020905b815481529060010190602001808311610c5f57829003601f168201915b5050505050905090565b60008181526008602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b8d565b506000908152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60018181548110610d7057600080fd5b9060005260206000209060040201600091509050806000018054610d9390615dcf565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbf90615dcf565b8015610e0c5780601f10610de157610100808354040283529160200191610e0c565b820191906000526020600020905b815481529060010190602001808311610def57829003601f168201915b505050505090806001018054610e2190615dcf565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4d90615dcf565b8015610e9a5780601f10610e6f57610100808354040283529160200191610e9a565b820191906000526020600020905b815481529060010190602001808311610e7d57829003601f168201915b505050506002830154600390930154919273ffffffffffffffffffffffffffffffffffffffff81169274010000000000000000000000000000000000000000820460ff9081169350750100000000000000000000000000000000000000000083048116927601000000000000000000000000000000000000000000008104821692770100000000000000000000000000000000000000000000008204909216917801000000000000000000000000000000000000000000000000820461ffff908116927a0100000000000000000000000000000000000000000000000000008104909116917c010000000000000000000000000000000000000000000000000000000090910463ffffffff169067ffffffffffffffff80821691680100000000000000009004168c565b6000610fcf82611ae8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b8d565b3373ffffffffffffffffffffffffffffffffffffffff821614806110b657506110b6813361094b565b611142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b8d565b61114c8383613f6d565b505050565b806001818154811061116557611165615eea565b906000526020600020906004020160020160179054906101000a900460ff16156111eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f536372697074206973207365616c6564000000000000000000000000000000006044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b600180838154811061128057611280615eea565b906000526020600020906004020160020160176101000a81548160ff0219169083151502179055505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461132d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b805161134090600e9060208401906151a1565b5050565b61134e338261400d565b6113da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b8d565b61114c83838361417d565b60005473ffffffffffffffffffffffffffffffffffffffff163314611466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b601155565b61114c8383836040518060200160405280600081525061358c565b826001818154811061149a5761149a615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806114e8575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61154e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b826001858154811061156257611562615eea565b906000526020600020906004020160020160146101000a81548160ff021916908315150217905550816001858154811061159e5761159e615eea565b906000526020600020906004020160020160156101000a81548160ff02191690831515021790555082806115cf5750815b156115e65760008481526005602052604090204290555b50505050565b600e80546115f990615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461162590615dcf565b80156116725780601f1061164757610100808354040283529160200191611672565b820191906000526020600020905b81548152906001019060200180831161165557829003601f168201915b505050505081565b600060108260405161168c9190615a1c565b9081526020016040518091039020541115611340578161ffff16600f600060016010856040516116bc9190615a1c565b9081526020016040518091039020546116d59190615d63565b815260208101919091526040016000206003015461ffff161415611340576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f6d6f6c6563756c6520616c7265616479206d696e7465640000000000000000006044820152606401610b8d565b6117628461ffff166139c1565b3410156117cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e73756666696369656e742066756e647300000000000000000000000000006044820152606401610b8d565b60018461ffff16815481106117e2576117e2615eea565b906000526020600020906004020160020160159054906101000a900460ff168061184b575060018461ffff168154811061181e5761181e615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff1633145b8061186d575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6118d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e6f20574c2073616c65000000000000000000000000000000000000000000006044820152606401610b8d565b6013546040516c010000000000000000000000003302602082015260348101849052611919918391605401604051602081830303815290604052805190602001206143e4565b61197f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6d65726b6c652070726f6f66206661696c6564000000000000000000000000006044820152606401610b8d565b3360009081526014602052604090205482116119f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6d617820726561636865640000000000000000000000000000000000000000006044820152606401610b8d565b336000908152601460205260408120805460019290611a17908490615ccf565b90915550611a2c905061ffff85168885614493565b611a3887878787614784565b5050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ac3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b80600d83604051611ad49190615a1c565b908152604051908190036020019020555050565b60008181526008602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610b0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b8d565b33600081815260026020526040902054151580611bd1575060005473ffffffffffffffffffffffffffffffffffffffff8281169116145b611c37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f43726561746f72206e6f7420616c6c6f776564000000000000000000000000006044820152606401610b8d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460209081526040808320546002909252909120541180611c8f575060005473ffffffffffffffffffffffffffffffffffffffff8281169116145b611cf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43726561746f72206d61782073637269707473207265616368656400000000006044820152606401610b8d565b6040805161018081018252888152602080820189905233928201929092526000606082018190526080820181905260a0820181905260c0820181905260e0820181905261ffff881661010083015263ffffffff871661012083015267ffffffffffffffff8087166101408401528516610160830152600180548082018255915281518051929360049092027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60192611db092849201906151a1565b506020828101518051611dc992600185019201906151a1565b5060408201516002820180546060850151608086015160a087015160c088015160e08901516101008a01516101208b015173ffffffffffffffffffffffffffffffffffffffff9099167fffffffffffffffffffffff000000000000000000000000000000000000000000909716969096177401000000000000000000000000000000000000000095151595909502949094177fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000931515939093027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff169290921776010000000000000000000000000000000000000000000091151591909102177fffffffffffff000000ffffffffffffffffffffffffffffffffffffffffffffff1677010000000000000000000000000000000000000000000000911515919091027fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff1617780100000000000000000000000000000000000000000000000061ffff928316021779ffffffffffffffffffffffffffffffffffffffffffffffffffff167a01000000000000000000000000000000000000000000000000000091909216027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16177c010000000000000000000000000000000000000000000000000000000063ffffffff90931692909202919091179055610140820151600390910180546101609093015167ffffffffffffffff9283167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909416939093176801000000000000000092909316919091029190911790556001805460009161206491615d63565b33600090815260046020526040812080549293509061208283615e3f565b9190505550336003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550807fc3e046c4b6b7676b8ce1014ea072a2c5adbcb235edb66f7c49d6562644f7d3fb89893360008060008060008f8f8f8f6040516121229c9b9a99989796959493929190615b35565b60405180910390a25050505050505050565b816001818154811061214857612148615eea565b906000526020600020906004020160020160169054906101000a900460ff16156121ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b82600181815481106121e2576121e2615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff16331480612230575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b82600185815481106122aa576122aa615eea565b906000526020600020906004020160010190805190602001906122ce9291906151a1565b5050505050565b81600181815481106122e9576122e9615eea565b906000526020600020906004020160020160169054906101000a900460ff161561236f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b826001818154811061238357612383615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806123d1575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b8261ffff166001858154811061244f5761244f615eea565b60009182526020909120600490910201600201547801000000000000000000000000000000000000000000000000900461ffff1611156124eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f537570706c7920616c72656164792065786365656465640000000000000000006044820152606401610b8d565b82600185815481106124ff576124ff615eea565b9060005260206000209060040201600201601a6101000a81548161ffff021916908361ffff16021790555050505050565b600073ffffffffffffffffffffffffffffffffffffffff82166125d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b8d565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff16331461267f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b606060008267ffffffffffffffff81111561270b5761270b615f19565b604051908082528060200260200182016040528015612734578160200160208202803683370190505b5090506000808560015b8151811015612b475781612753600183615d63565b8151811061276357612763615eea565b60200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f2f000000000000000000000000000000000000000000000000000000000000007effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612826578361282281615e3f565b9450505b83600214156128a557828714612898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f57726f6e6720656c656d656e7473206e720000000000000000000000000000006044820152606401610b8d565b8495505050505050610b0a565b8315612b35576000826128b9600184615d63565b815181106128c9576128c9615eea565b60200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000260405160200161294b91907fff0000000000000000000000000000000000000000000000000000000000000091909116815260010190565b604051602081830303815290604052905060008184848151811061297157612971615eea565b60200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000026040516020016129f391907fff0000000000000000000000000000000000000000000000000000000000000091909116815260010190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052612a2f9291602001615a38565b60405160208183030381529060405290506000600d82604051612a529190615a1c565b9081526020016040518091039020541115612abb576000600d82604051612a799190615a1c565b908152602001604051809103902054905080888781518110612a9d57612a9d615eea565b602090810291909101015285612ab281615e3f565b96505050612b32565b6000600d83604051612acd9190615a1c565b9081526020016040518091039020541115612b32576000600d83604051612af49190615a1c565b908152602001604051809103902054905080888781518110612b1857612b18615eea565b602090810291909101015285612b2d81615e3f565b965050505b50505b80612b3f81615e3f565b91505061273e565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e6720666f726d756c61000000000000000000000000000000000000006044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff163314612c2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b601355565b606060078054610c0390615dcf565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260408120546060919067ffffffffffffffff811115612c8157612c81615f19565b604051908082528060200260200182016040528015612caa578160200160208202803683370190505b5090506000805b600154811015612d285760008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff86811691161415612d165780838381518110612cfd57612cfd615eea565b602090810291909101015281612d1281615e3f565b9250505b80612d2081615e3f565b915050612cb1565b50909392505050565b73ffffffffffffffffffffffffffffffffffffffff8216331415612db1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b8d565b336000818152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8160018181548110612e5c57612e5c615eea565b906000526020600020906004020160020160169054906101000a900460ff1615612ee2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b8260018181548110612ef657612ef6615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff16331480612f44575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612faa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b8260018581548110612fbe57612fbe615eea565b906000526020600020906004020160000190805190602001906122ce9291906151a1565b8360018181548110612ff657612ff6615eea565b906000526020600020906004020160020160169054906101000a900460ff161561307c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b846001818154811061309057613090615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806130de575060005473ffffffffffffffffffffffffffffffffffffffff1633145b613144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b846001878154811061315857613158615eea565b9060005260206000209060040201600201601c6101000a81548163ffffffff021916908363ffffffff160217905550836001878154811061319b5761319b615eea565b906000526020600020906004020160030160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600187815481106131e6576131e6615eea565b906000526020600020906004020160030160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050505050565b600f6020526000908152604090208054819061324090615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461326c90615dcf565b80156132b95780601f1061328e576101008083540402835291602001916132b9565b820191906000526020600020905b81548152906001019060200180831161329c57829003601f168201915b5050505050908060010180546132ce90615dcf565b80601f01602080910402602001604051908101604052809291908181526020018280546132fa90615dcf565b80156133475780601f1061331c57610100808354040283529160200191613347565b820191906000526020600020905b81548152906001019060200180831161332a57829003601f168201915b50505050509080600201805461335c90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461338890615dcf565b80156133d55780601f106133aa576101008083540402835291602001916133d5565b820191906000526020600020905b8154815290600101906020018083116133b857829003601f168201915b5050506003909301549192505061ffff1684565b80600181815481106133fd576133fd615eea565b906000526020600020906004020160020160169054906101000a900460ff1615613483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f536372697074206c6f636b6564000000000000000000000000000000000000006044820152606401610b8d565b816001818154811061349757613497615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff163314806134e5575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61354b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c79207363726970742063726561746f72206f72206f776e6572000000006044820152606401610b8d565b600180848154811061355f5761355f615eea565b906000526020600020906004020160020160166101000a81548160ff021916908315150217905550505050565b613596338361400d565b613622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b8d565b6115e684848484614abb565b61363b8261ffff166139c1565b3410156136a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e73756666696369656e742066756e647300000000000000000000000000006044820152606401610b8d565b60018261ffff16815481106136bb576136bb615eea565b906000526020600020906004020160020160149054906101000a900460ff1680613724575060018261ffff16815481106136f7576136f7615eea565b600091825260209091206004909102016002015473ffffffffffffffffffffffffffffffffffffffff1633145b80613746575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6137ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f207075626c69632073616c650000000000000000000000000000000000006044820152606401610b8d565b6137bb8261ffff168683614493565b6137c785858585614784565b505050505050565b60008181526008602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16613883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b8d565b600061388d614b5e565b905060008151116138ad57604051806020016040528060008152506138d8565b806138b784614b6d565b6040516020016138c8929190615a38565b6040516020818303038152906040525b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613960576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff1660405173ffffffffffffffffffffffffffffffffffffffff9190911690303180156108fc02916000818181858888f193505050501580156139be573d6000803e3d6000fd5b50565b600080600183815481106139d7576139d7615eea565b6000918252602090912060049091020160020154613a1d907c0100000000000000000000000000000000000000000000000000000000900463ffffffff16610e10615d26565b905060018381548110613a3257613a32615eea565b906000526020600020906004020160020160149054906101000a900460ff16158015613a8d575060018381548110613a6c57613a6c615eea565b906000526020600020906004020160020160159054906101000a900460ff16155b15613a9b5750600092915050565b6000838152600560205260409020548190613ab69042615d63565b10613aff5760018381548110613ace57613ace615eea565b600091825260209091206004909102016003015468010000000000000000900467ffffffffffffffff169392505050565b60018381548110613b1257613b12615eea565b906000526020600020906004020160030160089054906101000a900467ffffffffffffffff1667ffffffffffffffff168160018581548110613b5657613b56615eea565b906000526020600020906004020160030160089054906101000a900467ffffffffffffffff1660018681548110613b8f57613b8f615eea565b6000918252602090912060036004909202010154613bb7919067ffffffffffffffff16615d7a565b67ffffffffffffffff16613bcb9190615ce7565b600085815260056020526040902054613be49042615d63565b613bee9084615d63565b613bf89190615d26565b6138d89190615ccf565b50919050565b6000848152600f60205260409020600301546001805461ffff9092169182908110613c3557613c35615eea565b906000526020600020906004020160020160179054906101000a900460ff1615613cbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f536372697074206973207365616c6564000000000000000000000000000000006044820152606401610b8d565b60005473ffffffffffffffffffffffffffffffffffffffff163314613d3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b6000858152600f6020908152604090912085519091613d5f9183918801906151a1565b508351613d7590600183019060208701906151a1565b508251613d8b90600283019060208601906151a1565b50505050505050565b6000600d82604051613da69190615a1c565b9081526020016040518091039020549050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613e3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8d565b73ffffffffffffffffffffffffffffffffffffffff8116613ee0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b8d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000818152600a6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613fc782611ae8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526008602052604081205473ffffffffffffffffffffffffffffffffffffffff166140be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b8d565b60006140c983611ae8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061413857508373ffffffffffffffffffffffffffffffffffffffff1661412084610c86565b73ffffffffffffffffffffffffffffffffffffffff16145b80614175575073ffffffffffffffffffffffffffffffffffffffff8082166000908152600b602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661419d82611ae8565b73ffffffffffffffffffffffffffffffffffffffff1614614240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b8d565b73ffffffffffffffffffffffffffffffffffffffff82166142e2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b8d565b6142ed600082613f6d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600960205260408120805460019290614323908490615d63565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260096020526040812080546001929061435e908490615ccf565b909155505060008181526008602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b855181101561448857600086828151811061440657614406615eea565b60200260200101519050808311614448576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250614475565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061448081615e3f565b9150506143e9565b509092149392505050565b341561114c57600183815481106144ac576144ac615eea565b600091825260209091206002600490920201015460115473ffffffffffffffffffffffffffffffffffffffff909116906108fc906064906144ed9034615d26565b6144f79190615ce7565b6145019034615d63565b6040518115909202916000818181858888f1935050505050600061452583836126ee565b905060006064825160026011543461453d9190615d26565b6145479190615ce7565b6145519190615ce7565b61455b9190615ce7565b905060005b825181101561467957600c54835173ffffffffffffffffffffffffffffffffffffffff90911690636352211e9085908490811061459f5761459f615eea565b60200260200101516040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016145e191815260200190565b60206040518083038186803b1580156145f957600080fd5b505afa15801561460d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061463191906153c5565b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505050808061467190615e3f565b915050614560565b50600c546012546040517f6352211e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921691636352211e916146d59160040190815260200190565b60206040518083038186803b1580156146ed57600080fd5b505afa158015614701573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061472591906153c5565b73ffffffffffffffffffffffffffffffffffffffff166108fc60646002601154346147509190615d26565b61475a9190615ce7565b6147649190615ce7565b6040518115909202916000818181858888f19350505050506122ce614cbe565b60008161ffff166001818154811061479e5761479e615eea565b9060005260206000209060040201600201601a9054906101000a900461ffff1661ffff16600182815481106147d5576147d5615eea565b6000918252602090912060049091020160020154614814907801000000000000000000000000000000000000000000000000900461ffff166001615c94565b61ffff161115614880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f546f74616c20737570706c7920726561636865640000000000000000000000006044820152606401610b8d565b61488a838661167a565b600060018461ffff16815481106148a3576148a3615eea565b600091825260209091206002600490920201015461ffff78010000000000000000000000000000000000000000000000009091048116906148e9908616620186a0615cfb565b6148f39190615cb1565b62ffffff1690506149043382614d23565b60408051608081018252888152602080820189905281830188905261ffff871660608301526000848152600f825292909220815180519293919261494b92849201906151a1565b50602082810151805161496492600185019201906151a1565b50604082015180516149809160028401916020909101906151a1565b5060609190910151600390910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff9092169190911790556149c8816001615ccf565b6010876040516149d89190615a1c565b908152604051908190036020019020556001805461ffff8616908110614a0057614a00615eea565b6000918252602090912060049091020160020180547801000000000000000000000000000000000000000000000000900461ffff16906018614a4183615e1d565b91906101000a81548161ffff021916908361ffff160217905550508361ffff1686604051614a6f9190615a1c565b6040518091039020827f50111d684154aae1dfb8ee2a704713506ac9e45326340f51a98d6472f33d6ef08a89604051614aa9929190615b07565b60405180910390a49695505050505050565b614ac684848461417d565b614ad284848484614d3d565b6115e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b8d565b6060600e8054610c0390615dcf565b606081614bad57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115614bd75780614bc181615e3f565b9150614bd09050600a83615ce7565b9150614bb1565b60008167ffffffffffffffff811115614bf257614bf2615f19565b6040519080825280601f01601f191660200182016040528015614c1c576020820181803683370190505b5090505b841561417557614c31600183615d63565b9150614c3e600a86615e78565b614c49906030615ccf565b7f010000000000000000000000000000000000000000000000000000000000000002818381518110614c7d57614c7d615eea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614cb7600a86615ce7565b9450614c20565b60128054906000614cce83615e3f565b919050555060125460651415614cf55760128054906000614cee83615e3f565b9190505550565b601254606b1415614d105760128054906000614cee83615e3f565b60125460791415614d215760016012555b565b611340828260405180602001604052806000815250614f3c565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614f31576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614db4903390899088908890600401615a67565b602060405180830381600087803b158015614dce57600080fd5b505af1925050508015614e1c575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614e1991810190615573565b60015b614ee6573d808015614e4a576040519150601f19603f3d011682016040523d82523d6000602084013e614e4f565b606091505b508051614ede576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b8d565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050614175565b506001949350505050565b614f468383614fdf565b614f536000848484614d3d565b61114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b8d565b73ffffffffffffffffffffffffffffffffffffffff821661505c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8d565b60008181526008602052604090205473ffffffffffffffffffffffffffffffffffffffff16156150e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b8d565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260096020526040812080546001929061511e908490615ccf565b909155505060008181526008602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546151ad90615dcf565b90600052602060002090601f0160209004810192826151cf5760008555615215565b82601f106151e857805160ff1916838001178555615215565b82800160010185558215615215579182015b828111156152155782518255916020019190600101906151fa565b50615221929150615225565b5090565b5b808211156152215760008155600101615226565b600067ffffffffffffffff83111561525457615254615f19565b61528560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601615c45565b905082815283838301111561529957600080fd5b828260208301376000602084830101529392505050565b600082601f8301126152c157600080fd5b8135602067ffffffffffffffff8211156152dd576152dd615f19565b8082026152eb828201615c45565b83815282810190868401838801850189101561530657600080fd5b600093505b8584101561532957803583526001939093019291840191840161530b565b50979650505050505050565b8035801515811461534557600080fd5b919050565b600082601f83011261535b57600080fd5b6138d88383356020850161523a565b803561ffff8116811461534557600080fd5b803563ffffffff8116811461534557600080fd5b803567ffffffffffffffff8116811461534557600080fd5b6000602082840312156153ba57600080fd5b81356138d881615f48565b6000602082840312156153d757600080fd5b81516138d881615f48565b600080604083850312156153f557600080fd5b823561540081615f48565b9150602083013561541081615f48565b809150509250929050565b60008060006060848603121561543057600080fd5b833561543b81615f48565b9250602084013561544b81615f48565b929592945050506040919091013590565b6000806000806080858703121561547257600080fd5b843561547d81615f48565b9350602085013561548d81615f48565b925060408501359150606085013567ffffffffffffffff8111156154b057600080fd5b8501601f810187136154c157600080fd5b6154d08782356020840161523a565b91505092959194509250565b600080604083850312156154ef57600080fd5b82356154fa81615f48565b915061550860208401615335565b90509250929050565b6000806040838503121561552457600080fd5b823561552f81615f48565b946020939093013593505050565b60006020828403121561554f57600080fd5b5035919050565b60006020828403121561556857600080fd5b81356138d881615f6a565b60006020828403121561558557600080fd5b81516138d881615f6a565b6000602082840312156155a257600080fd5b813567ffffffffffffffff8111156155b957600080fd5b6141758482850161534a565b600080600080600060a086880312156155dd57600080fd5b853567ffffffffffffffff808211156155f557600080fd5b61560189838a0161534a565b9650602088013591508082111561561757600080fd5b61562389838a0161534a565b9550604088013591508082111561563957600080fd5b506156468882890161534a565b9350506156556060870161536a565b949793965091946080013592915050565b600080600080600080600060e0888a03121561568157600080fd5b873567ffffffffffffffff8082111561569957600080fd5b6156a58b838c0161534a565b985060208a01359150808211156156bb57600080fd5b6156c78b838c0161534a565b975060408a01359150808211156156dd57600080fd5b6156e98b838c0161534a565b96506156f760608b0161536a565b955060808a0135945060a08a0135935060c08a013591508082111561571b57600080fd5b506157288a828b016152b0565b91505092959891949750929550565b60008060008060008060c0878903121561575057600080fd5b863567ffffffffffffffff8082111561576857600080fd5b6157748a838b0161534a565b9750602089013591508082111561578a57600080fd5b5061579789828a0161534a565b9550506157a66040880161536a565b93506157b46060880161537c565b92506157c260808801615390565b91506157d060a08801615390565b90509295509295509295565b600080604083850312156157ef57600080fd5b823567ffffffffffffffff81111561580657600080fd5b6158128582860161534a565b95602094909401359450505050565b6000806040838503121561583457600080fd5b61583d8361536a565b9150602083013567ffffffffffffffff81111561585957600080fd5b6158658582860161534a565b9150509250929050565b60008060006060848603121561588457600080fd5b8335925061589460208501615335565b91506158a260408501615335565b90509250925092565b600080604083850312156158be57600080fd5b82359150602083013567ffffffffffffffff81111561585957600080fd5b600080600080608085870312156158f257600080fd5b84359350602085013567ffffffffffffffff8082111561591157600080fd5b61591d8883890161534a565b9450604087013591508082111561593357600080fd5b61593f8883890161534a565b9350606087013591508082111561595557600080fd5b506154d08782880161534a565b6000806040838503121561597557600080fd5b823591506155086020840161536a565b6000806000806080858703121561599b57600080fd5b843593506159ab6020860161537c565b92506159b960408601615390565b91506159c760608601615390565b905092959194509250565b600081518084526159ea816020860160208601615da3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251615a2e818460208701615da3565b9190910192915050565b60008351615a4a818460208801615da3565b835190830190615a5e818360208801615da3565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615aa660808301846159d2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015615ae857835183529284019291840191600101615acc565b50909695505050505050565b6020815260006138d860208301846159d2565b604081526000615b1a60408301856159d2565b8281036020840152615b2c81856159d2565b95945050505050565b61018081526000615b4a61018083018f6159d2565b8281036020840152615b5c818f6159d2565b91505073ffffffffffffffffffffffffffffffffffffffff8c1660408301528a15156060830152891515608083015288151560a0830152615ba160c083018915159052565b61ffff871660e083015261ffff861661010083015263ffffffff851661012083015267ffffffffffffffff841661014083015267ffffffffffffffff83166101608301529d9c50505050505050505050505050565b608081526000615c0960808301876159d2565b8281036020840152615c1b81876159d2565b90508281036040840152615c2f81866159d2565b91505061ffff8316606083015295945050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715615c8c57615c8c615f19565b604052919050565b600061ffff808316818516808303821115615a5e57615a5e615e8c565b600062ffffff808316818516808303821115615a5e57615a5e615e8c565b60008219821115615ce257615ce2615e8c565b500190565b600082615cf657615cf6615ebb565b500490565b600062ffffff80831681851681830481118215151615615d1d57615d1d615e8c565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615d5e57615d5e615e8c565b500290565b600082821015615d7557615d75615e8c565b500390565b600067ffffffffffffffff83811690831681811015615d9b57615d9b615e8c565b039392505050565b60005b83811015615dbe578181015183820152602001615da6565b838111156115e65750506000910152565b600281046001821680615de357607f821691505b60208210811415613c02577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600061ffff80831681811415615e3557615e35615e8c565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615e7157615e71615e8c565b5060010190565b600082615e8757615e87615ebb565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146139be57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146139be57600080fdfea26469706673582212208d86e49bedbeea8a76a0a06d67787fd100b0a29147540dd1be339ee82789573864736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a13325ba1b9493c02d364a4a41e646d24f532126
-----Decoded View---------------
Arg [0] : _elementsContract (address): 0xA13325bA1b9493C02d364a4a41e646d24F532126
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a13325ba1b9493c02d364a4a41e646d24f532126
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.