ERC-721
Overview
Max Total Supply
0 LAC
Holders
851
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LACLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LaCollection
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./IMigrateContract.sol"; import "./LaCollectionAccess.sol"; interface INewContract { function migrateTokens(uint256[] calldata tokenIds, address to) external; } /** * @title LaCollection */ contract LaCollection is ERC721URIStorage, Pausable, LaCollectionAccess { using SafeMath for uint256; INewContract public newContract; modifier onlyLeftEdition(uint256 _artworkNumber) { require( artworkNumberToArtworkDetails[_artworkNumber].totalLeft > 0, "LaCollection: No more editions left to mint" ); _; } // Object for edition details struct ArtworkDetails { // Identifiers uint256 artworkNumber; // the range e.g. 10000 uint8 scarcity; // e.g. 1 = Unique, 2 = Super-Rare... // Counters uint16 totalMinted; // Total purchases or mints uint16 totalLeft; // Total number available to be purchased based on scarcity // Config string tokenUri; // IPFS hash - see base URI bool active; // Root control - on/off for the artwork } // Emitted on every artwork creation event ArtworkCreated(uint256 indexed artworkNumber, uint8 indexed scarcity); // Emitted on every mint edition event ArtworkEditionMinted( uint256 indexed tokenId, uint256 indexed artworkNumber, address indexed buyer ); // simple counter to keep track of the highest artwork number used uint256 public highestArtworkNumber; mapping(uint256 => ArtworkDetails) internal artworkNumberToArtworkDetails; // _tokenId : _artworkNumber mapping(uint256 => uint256) internal tokenIdToArtworkNumber; // _artworkNumber : [_tokenId, _tokenId] mapping(uint256 => uint256[]) internal artworkNumberToTokenIds; constructor() ERC721("LaCollection", "LAC") {} /// @dev Set the potential next version contract function setNewContract(address newContractAddress) external onlyOwner { require( address(newContract) == address(0), "LaCollection: NewContract already set" ); newContract = INewContract(newContractAddress); } /// @dev Creates a new Artwork function createArtwork( uint256 _artworkNumber, uint8 _scarcity, string memory _tokenUri, uint16 _totalLeft, bool _active ) external whenNotPaused onlyMinter returns (bool) { return _createArtwork( _artworkNumber, _scarcity, _tokenUri, _totalLeft, _active ); } /// @dev Creates a new Artwork and mint an edition function createArtworkAndMintEdition( uint256 _artworkNumber, uint8 _scarcity, string memory _tokenUri, uint16 _totalLeft, bool _active, address _to ) external whenNotPaused onlyMinter returns (uint256) { _createArtwork( _artworkNumber, _scarcity, _tokenUri, _totalLeft, _active ); // Create the token return _mintEdition( _to, _artworkNumber, artworkNumberToArtworkDetails[_artworkNumber].tokenUri ); } /// @dev Mints a token for an existing artwork function mint(address _to, uint256 _artworkNumber) external whenNotPaused onlyMinter onlyLeftEdition(_artworkNumber) returns (uint256) { // Create the token return _mintEdition( _to, _artworkNumber, artworkNumberToArtworkDetails[_artworkNumber].tokenUri ); } /// @dev Get artwork details from artworkNumber function getArtwork(uint256 artworkNumber) external view returns ( uint8 scarcity, uint16 totalMinted, uint16 totalLeft, string memory tokenUri, bool active ) { ArtworkDetails storage a = artworkNumberToArtworkDetails[artworkNumber]; scarcity = a.scarcity; totalMinted = a.totalMinted; totalLeft = a.totalLeft; tokenUri = a.tokenUri; active = a.active; } /// @dev Get artwork number from tokenId function getArtworkNumber(uint256 tokenId) external view returns (uint256) { return tokenIdToArtworkNumber[tokenId]; } /// @dev Return token ids for an artwork function getTokenIds(uint256 artworkNumber) external view returns (uint256[] memory) { return artworkNumberToTokenIds[artworkNumber]; } /** * @dev Internal factory method for building artworks */ function _createArtwork( uint256 _artworkNumber, uint8 _scarcity, string memory _tokenUri, uint16 _totalLeft, bool _active ) internal returns (bool) { // Prevent missing edition number require( _artworkNumber >= 1, "LaCollection: Artwork number not provided or must be greater than 1" ); // Prevent artwork number lower than last one used require( _artworkNumber > highestArtworkNumber, "LaCollection: Artwork number must be greater than previously used" ); // Check previously edition plus total available is less than new edition number require( highestArtworkNumber.add( artworkNumberToArtworkDetails[highestArtworkNumber].totalLeft ) <= _artworkNumber, "LaCollection: Artwork number must be greater than previously used plus total available" ); // Prevent missing token URI require( bytes(_tokenUri).length != 0, "LaCollection: Token URI is missing" ); // Prevent duplicate editions require( artworkNumberToArtworkDetails[_artworkNumber].artworkNumber == 0, "LaCollection: Edition Artwork already in existence" ); artworkNumberToArtworkDetails[_artworkNumber] = ArtworkDetails({ artworkNumber: _artworkNumber, scarcity: _scarcity, tokenUri: _tokenUri, totalMinted: 0, // default to all available totalLeft: _totalLeft, active: _active }); emit ArtworkCreated(_artworkNumber, _scarcity); // Update the edition pointer if needs be highestArtworkNumber = _artworkNumber + _totalLeft; return true; } /** * @dev Internal factory method to generate an new tokenId based * @dev based on artwork number */ function _getNextTokenId(uint256 _artworkNumber) internal view returns (uint256) { ArtworkDetails storage _artworkDetails = artworkNumberToArtworkDetails[ _artworkNumber ]; // Build next token ID e.g. 100000 + (1 - 1) = ID of 100001 (this first in the edition set) return _artworkDetails.artworkNumber.add(_artworkDetails.totalMinted); } /** * @dev Internal factory method to mint a new edition * @dev for an artwork */ function _mintEdition( address _to, uint256 _artworkNumber, string memory _tokenUri ) internal returns (uint256) { // Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set) uint256 _tokenId = _getNextTokenId(_artworkNumber); // Mint new base token super._mint(_to, _tokenId); super._setTokenURI(_tokenId, _tokenUri); // Maintain mapping for tokenId to artwork for lookup tokenIdToArtworkNumber[_tokenId] = _artworkNumber; // Maintain mapping of edition to token array for "edition minted tokens" artworkNumberToTokenIds[_artworkNumber].push(_tokenId); ArtworkDetails storage _artworkDetails = artworkNumberToArtworkDetails[ _artworkNumber ]; // Increase number totalMinted _artworkDetails.totalMinted += 1; // Decrease number totalLeft _artworkDetails.totalLeft -= 1; // Emit minted event emit ArtworkEditionMinted(_tokenId, _artworkNumber, _to); return _tokenId; } /// @dev Migrates tokens to a potential new version of this contract /// @param tokenIds - list of tokens to transfer function migrateTokens(uint256[] calldata tokenIds) external { require( address(newContract) != address(0), "LaCollection: New contract not set" ); for (uint256 index = 0; index < tokenIds.length; index++) { transferFrom(_msgSender(), address(this), tokenIds[index]); } newContract.migrateTokens(tokenIds, _msgSender()); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 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; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// 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 "./extensions/IERC721Enumerable.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 || ERC721.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 || ERC721.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 allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// 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.0; import "../utils/Context.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping (address => bool) members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override { require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override { require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; abstract contract LaCollectionAccess is Ownable, AccessControl { bytes32 public constant LACOLLECTION_ROLE = keccak256("LACOLLECTION_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); modifier onlyLaCollection { require( hasRole(LACOLLECTION_ROLE, _msgSender()), "LaCollection: Caller has not LaCollectionRole" ); _; } modifier onlyMinter { require( hasRole(MINTER_ROLE, _msgSender()) || hasRole(LACOLLECTION_ROLE, _msgSender()), "LaCollection: Caller is not a minter" ); _; } constructor() { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(LACOLLECTION_ROLE, _msgSender()); } function addLaCollectionRole(address account) external { grantRole(LACOLLECTION_ROLE, account); } function renounceLaCollectionRole(address account) external { renounceRole(LACOLLECTION_ROLE, account); } function revokeLaCollectionRole(address account) external { revokeRole(LACOLLECTION_ROLE, account); } function addMinterRole(address account) external { grantRole(MINTER_ROLE, account); } function renounceMinterRole(address account) external { renounceRole(MINTER_ROLE, account); } function revokeMinterRole(address account) external { revokeRole(MINTER_ROLE, account); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; interface IMigrateContract { function migrateTokens(uint256[] calldata tokenIds, address to) external; }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"artworkNumber","type":"uint256"},{"indexed":true,"internalType":"uint8","name":"scarcity","type":"uint8"}],"name":"ArtworkCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"artworkNumber","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"}],"name":"ArtworkEditionMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LACOLLECTION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addLaCollectionRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_artworkNumber","type":"uint256"},{"internalType":"uint8","name":"_scarcity","type":"uint8"},{"internalType":"string","name":"_tokenUri","type":"string"},{"internalType":"uint16","name":"_totalLeft","type":"uint16"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"createArtwork","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_artworkNumber","type":"uint256"},{"internalType":"uint8","name":"_scarcity","type":"uint8"},{"internalType":"string","name":"_tokenUri","type":"string"},{"internalType":"uint16","name":"_totalLeft","type":"uint16"},{"internalType":"bool","name":"_active","type":"bool"},{"internalType":"address","name":"_to","type":"address"}],"name":"createArtworkAndMintEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkNumber","type":"uint256"}],"name":"getArtwork","outputs":[{"internalType":"uint8","name":"scarcity","type":"uint8"},{"internalType":"uint16","name":"totalMinted","type":"uint16"},{"internalType":"uint16","name":"totalLeft","type":"uint16"},{"internalType":"string","name":"tokenUri","type":"string"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getArtworkNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artworkNumber","type":"uint256"}],"name":"getTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"highestArtworkNumber","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":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"migrateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_artworkNumber","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newContract","outputs":[{"internalType":"contract INewContract","name":"","type":"address"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"renounceLaCollectionRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"renounceMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeLaCollectionRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newContractAddress","type":"address"}],"name":"setNewContract","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"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600c81526020017f4c61436f6c6c656374696f6e00000000000000000000000000000000000000008152506040518060400160405280600381526020017f4c41430000000000000000000000000000000000000000000000000000000000815250600062000090620001e860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600190805190602001906200014692919062000363565b5080600290805190602001906200015f92919062000363565b5050506000600860006101000a81548160ff021916908315150217905550620001a16000801b62000195620001e860201b60201c565b620001f060201b60201c565b620001e27f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce620001d6620001e860201b60201c565b620001f060201b60201c565b62000478565b600033905090565b6200020282826200020660201b60201c565b5050565b620002188282620002f860201b60201c565b620002f45760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000299620001e860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054620003719062000413565b90600052602060002090601f016020900481019282620003955760008555620003e1565b82601f10620003b057805160ff1916838001178555620003e1565b82800160010185558215620003e1579182015b82811115620003e0578251825591602001919060010190620003c3565b5b509050620003f09190620003f4565b5090565b5b808211156200040f576000816000905550600101620003f5565b5090565b600060028204905060018216806200042c57607f821691505b6020821081141562000443576200044262000449565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61552180620004886000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c80637ee2725611610146578063b91e86cf116100c3578063d5d72e9711610087578063d5d72e9714610732578063e5951e601461074e578063e7b3ca391461076a578063e985e9c514610788578063f2a37208146107b8578063f2fde38b146107d457610253565b8063b91e86cf1461067c578063c87b56dd14610698578063cccf0d8e146106c8578063d5391393146106f8578063d547741f1461071657610253565b8063a217fddf1161010a578063a217fddf146105ee578063a22cb4651461060c578063adbf377614610628578063b3aa1bf114610644578063b88d4fde1461066057610253565b80637ee27256146105365780638da5cb5b14610552578063907eb6be1461057057806391d14854146105a057806395d89b41146105d057610253565b806342842e0e116101d4578063617f535311610198578063617f5353146104805780636352211e146104b057806369e2f0fb146104e057806370a08231146104fc578063715018a61461052c57610253565b806342842e0e146103da5780634313b531146103f657806357991d30146104145780635c975abb1461044457806360f6bd481461046257610253565b806323b872dd1161021b57806323b872dd14610326578063248a9ca3146103425780632f2ff15d1461037257806336568abe1461038e57806340c10f19146103aa57610253565b806301ffc9a71461025857806306fdde0314610288578063081812fc146102a6578063095ea7b3146102d6578063167ddf6e146102f2575b600080fd5b610272600480360381019061026d9190613836565b6107f0565b60405161027f9190614106565b60405180910390f35b610290610802565b60405161029d9190614157565b60405180910390f35b6102c060048036038101906102bb9190613890565b610894565b6040516102cd919061404b565b60405180910390f35b6102f060048036038101906102eb919061373c565b610919565b005b61030c60048036038101906103079190613890565b610a31565b60405161031d959493929190614574565b60405180910390f35b610340600480360381019061033b9190613626565b610b3b565b005b61035c600480360381019061035791906137c9565b610b9b565b6040516103699190614121565b60405180910390f35b61038c600480360381019061038791906137f6565b610bbb565b005b6103a860048036038101906103a391906137f6565b610c21565b005b6103c460048036038101906103bf919061373c565b610ca4565b6040516103d19190614559565b60405180910390f35b6103f460048036038101906103ef9190613626565b610eb4565b005b6103fe610ed4565b60405161040b919061413c565b60405180910390f35b61042e60048036038101906104299190613890565b610efa565b60405161043b91906140e4565b60405180910390f35b61044c610f65565b6040516104599190614106565b60405180910390f35b61046a610f7c565b6040516104779190614559565b60405180910390f35b61049a60048036038101906104959190613954565b610f82565b6040516104a79190614559565b60405180910390f35b6104ca60048036038101906104c59190613890565b611137565b6040516104d7919061404b565b60405180910390f35b6104fa60048036038101906104f591906135b9565b6111e9565b005b610516600480360381019061051191906135b9565b611216565b6040516105239190614559565b60405180910390f35b6105346112ce565b005b610550600480360381019061054b91906135b9565b611408565b005b61055a611435565b604051610567919061404b565b60405180910390f35b61058a600480360381019061058591906138bd565b61145e565b6040516105979190614106565b60405180910390f35b6105ba60048036038101906105b591906137f6565b611568565b6040516105c79190614106565b60405180910390f35b6105d86115d3565b6040516105e59190614157565b60405180910390f35b6105f6611665565b6040516106039190614121565b60405180910390f35b610626600480360381019061062191906136fc565b61166c565b005b610642600480360381019061063d91906135b9565b6117ed565b005b61065e600480360381019061065991906135b9565b61181a565b005b61067a60048036038101906106759190613679565b611847565b005b610696600480360381019061069191906135b9565b6118a9565b005b6106b260048036038101906106ad9190613890565b6118d6565b6040516106bf9190614157565b60405180910390f35b6106e260048036038101906106dd9190613890565b611a28565b6040516106ef9190614559565b60405180910390f35b610700611a45565b60405161070d9190614121565b60405180910390f35b610730600480360381019061072b91906137f6565b611a69565b005b61074c600480360381019061074791906135b9565b611acf565b005b6107686004803603810190610763919061377c565b611c20565b005b610772611d9b565b60405161077f9190614121565b60405180910390f35b6107a2600480360381019061079d91906135e6565b611dbf565b6040516107af9190614106565b60405180910390f35b6107d260048036038101906107cd91906135b9565b611e53565b005b6107ee60048036038101906107e991906135b9565b611e80565b005b60006107fb82612029565b9050919050565b60606001805461081190614909565b80601f016020809104026020016040519081016040528092919081815260200182805461083d90614909565b801561088a5780601f1061085f5761010080835404028352916020019161088a565b820191906000526020600020905b81548152906001019060200180831161086d57829003601f168201915b5050505050905090565b600061089f826120a3565b6108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590614419565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061092482611137565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098c906144f9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109b461210f565b73ffffffffffffffffffffffffffffffffffffffff1614806109e357506109e2816109dd61210f565b611dbf565b5b610a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1990614359565b60405180910390fd5b610a2c8383612117565b505050565b60008060006060600080600c600088815260200190815260200160002090508060010160009054906101000a900460ff1695508060010160019054906101000a900461ffff1694508060010160039054906101000a900461ffff169350806002018054610a9d90614909565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac990614909565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505092508060030160009054906101000a900460ff1691505091939590929450565b610b4c610b4661210f565b826121d0565b610b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8290614519565b60405180910390fd5b610b968383836122ae565b505050565b600060096000838152602001908152602001600020600101549050919050565b610bd4610bc783610b9b565b610bcf61210f565b611568565b610c13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0a90614179565b60405180910390fd5b610c1d828261250a565b5050565b610c2961210f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90614539565b60405180910390fd5b610ca082826125eb565b5050565b6000610cae610f65565b15610cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce590614319565b60405180910390fd5b610d1f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d1a61210f565b611568565b80610d575750610d567f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce610d5161210f565b611568565b5b610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d90614299565b60405180910390fd5b816000600c600083815260200190815260200160002060010160039054906101000a900461ffff1661ffff1611610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df990614479565b60405180910390fd5b610eab8484600c60008781526020019081526020016000206002018054610e2890614909565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5490614909565b8015610ea15780601f10610e7657610100808354040283529160200191610ea1565b820191906000526020600020905b815481529060010190602001808311610e8457829003601f168201915b50505050506126cd565b91505092915050565b610ecf83838360405180602001604052806000815250611847565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600e6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610f5957602002820191906000526020600020905b815481526020019060010190808311610f45575b50505050509050919050565b6000600860009054906101000a900460ff16905090565b600b5481565b6000610f8c610f65565b15610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc390614319565b60405180910390fd5b610ffd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ff861210f565b611568565b8061103557506110347f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce61102f61210f565b611568565b5b611074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106b90614299565b60405180910390fd5b6110818787878787612821565b5061112b8288600c60008b815260200190815260200160002060020180546110a890614909565b80601f01602080910402602001604051908101604052809291908181526020018280546110d490614909565b80156111215780601f106110f657610100808354040283529160200191611121565b820191906000526020600020905b81548152906001019060200180831161110457829003601f168201915b50505050506126cd565b90509695505050505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790614399565b60405180910390fd5b80915050919050565b6112137f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611a69565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127e90614379565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112d661210f565b73ffffffffffffffffffffffffffffffffffffffff166112f4611435565b73ffffffffffffffffffffffffffffffffffffffff161461134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134190614459565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6114327f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce82611a69565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611468610f65565b156114a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149f90614319565b60405180910390fd5b6114d97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66114d461210f565b611568565b8061151157506115107f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce61150b61210f565b611568565b5b611550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154790614299565b60405180910390fd5b61155d8686868686612821565b905095945050505050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600280546115e290614909565b80601f016020809104026020016040519081016040528092919081815260200182805461160e90614909565b801561165b5780601f106116305761010080835404028352916020019161165b565b820191906000526020600020905b81548152906001019060200180831161163e57829003601f168201915b5050505050905090565b6000801b81565b61167461210f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990614279565b60405180910390fd5b80600660006116ef61210f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661179c61210f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117e19190614106565b60405180910390a35050565b6118177f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682610bbb565b50565b6118447f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce82610bbb565b50565b61185861185261210f565b836121d0565b611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188e90614519565b60405180910390fd5b6118a384848484612b1d565b50505050565b6118d37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682610c21565b50565b60606118e1826120a3565b611920576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611917906143f9565b60405180910390fd5b600060076000848152602001908152602001600020805461194090614909565b80601f016020809104026020016040519081016040528092919081815260200182805461196c90614909565b80156119b95780601f1061198e576101008083540402835291602001916119b9565b820191906000526020600020905b81548152906001019060200180831161199c57829003601f168201915b5050505050905060006119ca612b79565b90506000815114156119e0578192505050611a23565b600082511115611a155780826040516020016119fd929190614027565b60405160208183030381529060405292505050611a23565b611a1e84612b90565b925050505b919050565b6000600d6000838152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611a82611a7583610b9b565b611a7d61210f565b611568565b611ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab8906142f9565b60405180910390fd5b611acb82826125eb565b5050565b611ad761210f565b73ffffffffffffffffffffffffffffffffffffffff16611af5611435565b73ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4290614459565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd390614239565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca990614199565b60405180910390fd5b60005b82829050811015611cfe57611ceb611ccb61210f565b30858585818110611cdf57611cde614a73565b5b90506020020135610b3b565b8080611cf69061496c565b915050611cb5565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e884703f8383611d4761210f565b6040518463ffffffff1660e01b8152600401611d65939291906140b2565b600060405180830381600087803b158015611d7f57600080fd5b505af1158015611d93573d6000803e3d6000fd5b505050505050565b7f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce81565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e7d7f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce82610c21565b50565b611e8861210f565b73ffffffffffffffffffffffffffffffffffffffff16611ea6611435565b73ffffffffffffffffffffffffffffffffffffffff1614611efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef390614459565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f63906141f9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061209c575061209b82612c37565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661218a83611137565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121db826120a3565b61221a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612211906142b9565b60405180910390fd5b600061222583611137565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061229457508373ffffffffffffffffffffffffffffffffffffffff1661227c84610894565b73ffffffffffffffffffffffffffffffffffffffff16145b806122a557506122a48185611dbf565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166122ce82611137565b73ffffffffffffffffffffffffffffffffffffffff1614612324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231b90614499565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90614259565b60405180910390fd5b61239f838383612d19565b6123aa600082612117565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123fa91906147c4565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124519190614709565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6125148282611568565b6125e75760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061258c61210f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6125f58282611568565b156126c95760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061266e61210f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000806126d984612d1e565b90506126e58582612d6b565b6126ef8184612f39565b83600d600083815260200190815260200160002081905550600e60008581526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556000600c6000868152602001908152602001600020905060018160010160018282829054906101000a900461ffff1661277a91906146d1565b92506101000a81548161ffff021916908361ffff16021790555060018160010160038282829054906101000a900461ffff166127b69190614790565b92506101000a81548161ffff021916908361ffff1602179055508573ffffffffffffffffffffffffffffffffffffffff1685837f6bad1740a229c1855e2e017211c865d604919ce6717c85ae3a93e579328e5b4260405160405180910390a481925050509392505050565b60006001861015612867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285e90614439565b60405180910390fd5b600b5486116128ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a2906142d9565b60405180910390fd5b856128eb600c6000600b54815260200190815260200160002060010160039054906101000a900461ffff1661ffff16600b54612fad90919063ffffffff16565b111561292c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292390614339565b60405180910390fd5b600084511415612971576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612968906141b9565b60405180910390fd5b6000600c600088815260200190815260200160002060000154146129ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c1906144d9565b60405180910390fd5b6040518060c001604052808781526020018660ff168152602001600061ffff1681526020018461ffff168152602001858152602001831515815250600c60008881526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360ff16021790555060408201518160010160016101000a81548161ffff021916908361ffff16021790555060608201518160010160036101000a81548161ffff021916908361ffff1602179055506080820151816002019080519060200190612aa5929190613338565b5060a08201518160030160006101000a81548160ff0219169083151502179055509050508460ff16867fc9739046125256acc5ccec43f5a3f12ed302ea2302aef7a28e1f724d351c1c4a60405160405180910390a38261ffff1686612b0a9190614709565b600b819055506001905095945050505050565b612b288484846122ae565b612b3484848484612fc3565b612b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6a906141d9565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060612b9b826120a3565b612bda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd1906144b9565b60405180910390fd5b6000612be4612b79565b90506000815111612c045760405180602001604052806000815250612c2f565b80612c0e8461315a565b604051602001612c1f929190614027565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d0257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d125750612d11826132bb565b5b9050919050565b505050565b600080600c60008481526020019081526020016000209050612d638160010160019054906101000a900461ffff1661ffff168260000154612fad90919063ffffffff16565b915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd2906143d9565b60405180910390fd5b612de4816120a3565b15612e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1b90614219565b60405180910390fd5b612e3060008383612d19565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e809190614709565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612f42826120a3565b612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f78906143b9565b60405180910390fd5b80600760008481526020019081526020016000209080519060200190612fa8929190613338565b505050565b60008183612fbb9190614709565b905092915050565b6000612fe48473ffffffffffffffffffffffffffffffffffffffff16613325565b1561314d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261300d61210f565b8786866040518563ffffffff1660e01b815260040161302f9493929190614066565b602060405180830381600087803b15801561304957600080fd5b505af192505050801561307a57506040513d601f19601f820116820180604052508101906130779190613863565b60015b6130fd573d80600081146130aa576040519150601f19603f3d011682016040523d82523d6000602084013e6130af565b606091505b506000815114156130f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ec906141d9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613152565b600190505b949350505050565b606060008214156131a2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506132b6565b600082905060005b600082146131d45780806131bd9061496c565b915050600a826131cd919061475f565b91506131aa565b60008167ffffffffffffffff8111156131f0576131ef614aa2565b5b6040519080825280601f01601f1916602001820160405280156132225781602001600182028036833780820191505090505b5090505b600085146132af5760018261323b91906147c4565b9150600a8561324a91906149b5565b60306132569190614709565b60f81b81838151811061326c5761326b614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132a8919061475f565b9450613226565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080823b905060008111915050919050565b82805461334490614909565b90600052602060002090601f01602090048101928261336657600085556133ad565b82601f1061337f57805160ff19168380011785556133ad565b828001600101855582156133ad579182015b828111156133ac578251825591602001919060010190613391565b5b5090506133ba91906133be565b5090565b5b808211156133d75760008160009055506001016133bf565b5090565b60006133ee6133e9846145f3565b6145ce565b90508281526020810184848401111561340a57613409614ae0565b5b6134158482856148c7565b509392505050565b600061343061342b84614624565b6145ce565b90508281526020810184848401111561344c5761344b614ae0565b5b6134578482856148c7565b509392505050565b60008135905061346e8161544a565b92915050565b60008083601f84011261348a57613489614ad6565b5b8235905067ffffffffffffffff8111156134a7576134a6614ad1565b5b6020830191508360208202830111156134c3576134c2614adb565b5b9250929050565b6000813590506134d981615461565b92915050565b6000813590506134ee81615478565b92915050565b6000813590506135038161548f565b92915050565b6000815190506135188161548f565b92915050565b600082601f83011261353357613532614ad6565b5b81356135438482602086016133db565b91505092915050565b600082601f83011261356157613560614ad6565b5b813561357184826020860161341d565b91505092915050565b600081359050613589816154a6565b92915050565b60008135905061359e816154bd565b92915050565b6000813590506135b3816154d4565b92915050565b6000602082840312156135cf576135ce614aef565b5b60006135dd8482850161345f565b91505092915050565b600080604083850312156135fd576135fc614aef565b5b600061360b8582860161345f565b925050602061361c8582860161345f565b9150509250929050565b60008060006060848603121561363f5761363e614aef565b5b600061364d8682870161345f565b935050602061365e8682870161345f565b925050604061366f8682870161358f565b9150509250925092565b6000806000806080858703121561369357613692614aef565b5b60006136a18782880161345f565b94505060206136b28782880161345f565b93505060406136c38782880161358f565b925050606085013567ffffffffffffffff8111156136e4576136e3614ae5565b5b6136f08782880161351e565b91505092959194509250565b6000806040838503121561371357613712614aef565b5b60006137218582860161345f565b9250506020613732858286016134ca565b9150509250929050565b6000806040838503121561375357613752614aef565b5b60006137618582860161345f565b92505060206137728582860161358f565b9150509250929050565b6000806020838503121561379357613792614aef565b5b600083013567ffffffffffffffff8111156137b1576137b0614ae5565b5b6137bd85828601613474565b92509250509250929050565b6000602082840312156137df576137de614aef565b5b60006137ed848285016134df565b91505092915050565b6000806040838503121561380d5761380c614aef565b5b600061381b858286016134df565b925050602061382c8582860161345f565b9150509250929050565b60006020828403121561384c5761384b614aef565b5b600061385a848285016134f4565b91505092915050565b60006020828403121561387957613878614aef565b5b600061388784828501613509565b91505092915050565b6000602082840312156138a6576138a5614aef565b5b60006138b48482850161358f565b91505092915050565b600080600080600060a086880312156138d9576138d8614aef565b5b60006138e78882890161358f565b95505060206138f8888289016135a4565b945050604086013567ffffffffffffffff81111561391957613918614ae5565b5b6139258882890161354c565b93505060606139368882890161357a565b9250506080613947888289016134ca565b9150509295509295909350565b60008060008060008060c0878903121561397157613970614aef565b5b600061397f89828a0161358f565b965050602061399089828a016135a4565b955050604087013567ffffffffffffffff8111156139b1576139b0614ae5565b5b6139bd89828a0161354c565b94505060606139ce89828a0161357a565b93505060806139df89828a016134ca565b92505060a06139f089828a0161345f565b9150509295509295509295565b6000613a098383613ffa565b60208301905092915050565b613a1e816147f8565b82525050565b6000613a308385614693565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115613a6357613a62614aea565b5b602083029250613a748385846148c7565b82840190509392505050565b6000613a8b82614665565b613a958185614693565b9350613aa083614655565b8060005b83811015613ad1578151613ab888826139fd565b9750613ac383614686565b925050600181019050613aa4565b5085935050505092915050565b613ae78161480a565b82525050565b613af681614816565b82525050565b6000613b0782614670565b613b1181856146a4565b9350613b218185602086016148d6565b613b2a81614af4565b840191505092915050565b613b3e81614891565b82525050565b6000613b4f8261467b565b613b5981856146b5565b9350613b698185602086016148d6565b613b7281614af4565b840191505092915050565b6000613b888261467b565b613b9281856146c6565b9350613ba28185602086016148d6565b80840191505092915050565b6000613bbb602f836146b5565b9150613bc682614b05565b604082019050919050565b6000613bde6022836146b5565b9150613be982614b54565b604082019050919050565b6000613c016022836146b5565b9150613c0c82614ba3565b604082019050919050565b6000613c246032836146b5565b9150613c2f82614bf2565b604082019050919050565b6000613c476026836146b5565b9150613c5282614c41565b604082019050919050565b6000613c6a601c836146b5565b9150613c7582614c90565b602082019050919050565b6000613c8d6025836146b5565b9150613c9882614cb9565b604082019050919050565b6000613cb06024836146b5565b9150613cbb82614d08565b604082019050919050565b6000613cd36019836146b5565b9150613cde82614d57565b602082019050919050565b6000613cf66024836146b5565b9150613d0182614d80565b604082019050919050565b6000613d19602c836146b5565b9150613d2482614dcf565b604082019050919050565b6000613d3c6041836146b5565b9150613d4782614e1e565b606082019050919050565b6000613d5f6030836146b5565b9150613d6a82614e93565b604082019050919050565b6000613d826010836146b5565b9150613d8d82614ee2565b602082019050919050565b6000613da56056836146b5565b9150613db082614f0b565b606082019050919050565b6000613dc86038836146b5565b9150613dd382614f80565b604082019050919050565b6000613deb602a836146b5565b9150613df682614fcf565b604082019050919050565b6000613e0e6029836146b5565b9150613e198261501e565b604082019050919050565b6000613e31602e836146b5565b9150613e3c8261506d565b604082019050919050565b6000613e546020836146b5565b9150613e5f826150bc565b602082019050919050565b6000613e776031836146b5565b9150613e82826150e5565b604082019050919050565b6000613e9a602c836146b5565b9150613ea582615134565b604082019050919050565b6000613ebd6043836146b5565b9150613ec882615183565b606082019050919050565b6000613ee06020836146b5565b9150613eeb826151f8565b602082019050919050565b6000613f03602b836146b5565b9150613f0e82615221565b604082019050919050565b6000613f266029836146b5565b9150613f3182615270565b604082019050919050565b6000613f49602f836146b5565b9150613f54826152bf565b604082019050919050565b6000613f6c6032836146b5565b9150613f778261530e565b604082019050919050565b6000613f8f6021836146b5565b9150613f9a8261535d565b604082019050919050565b6000613fb26031836146b5565b9150613fbd826153ac565b604082019050919050565b6000613fd5602f836146b5565b9150613fe0826153fb565b604082019050919050565b613ff48161484c565b82525050565b6140038161487a565b82525050565b6140128161487a565b82525050565b61402181614884565b82525050565b60006140338285613b7d565b915061403f8284613b7d565b91508190509392505050565b60006020820190506140606000830184613a15565b92915050565b600060808201905061407b6000830187613a15565b6140886020830186613a15565b6140956040830185614009565b81810360608301526140a78184613afc565b905095945050505050565b600060408201905081810360008301526140cd818587613a24565b90506140dc6020830184613a15565b949350505050565b600060208201905081810360008301526140fe8184613a80565b905092915050565b600060208201905061411b6000830184613ade565b92915050565b60006020820190506141366000830184613aed565b92915050565b60006020820190506141516000830184613b35565b92915050565b600060208201905081810360008301526141718184613b44565b905092915050565b6000602082019050818103600083015261419281613bae565b9050919050565b600060208201905081810360008301526141b281613bd1565b9050919050565b600060208201905081810360008301526141d281613bf4565b9050919050565b600060208201905081810360008301526141f281613c17565b9050919050565b6000602082019050818103600083015261421281613c3a565b9050919050565b6000602082019050818103600083015261423281613c5d565b9050919050565b6000602082019050818103600083015261425281613c80565b9050919050565b6000602082019050818103600083015261427281613ca3565b9050919050565b6000602082019050818103600083015261429281613cc6565b9050919050565b600060208201905081810360008301526142b281613ce9565b9050919050565b600060208201905081810360008301526142d281613d0c565b9050919050565b600060208201905081810360008301526142f281613d2f565b9050919050565b6000602082019050818103600083015261431281613d52565b9050919050565b6000602082019050818103600083015261433281613d75565b9050919050565b6000602082019050818103600083015261435281613d98565b9050919050565b6000602082019050818103600083015261437281613dbb565b9050919050565b6000602082019050818103600083015261439281613dde565b9050919050565b600060208201905081810360008301526143b281613e01565b9050919050565b600060208201905081810360008301526143d281613e24565b9050919050565b600060208201905081810360008301526143f281613e47565b9050919050565b6000602082019050818103600083015261441281613e6a565b9050919050565b6000602082019050818103600083015261443281613e8d565b9050919050565b6000602082019050818103600083015261445281613eb0565b9050919050565b6000602082019050818103600083015261447281613ed3565b9050919050565b6000602082019050818103600083015261449281613ef6565b9050919050565b600060208201905081810360008301526144b281613f19565b9050919050565b600060208201905081810360008301526144d281613f3c565b9050919050565b600060208201905081810360008301526144f281613f5f565b9050919050565b6000602082019050818103600083015261451281613f82565b9050919050565b6000602082019050818103600083015261453281613fa5565b9050919050565b6000602082019050818103600083015261455281613fc8565b9050919050565b600060208201905061456e6000830184614009565b92915050565b600060a0820190506145896000830188614018565b6145966020830187613feb565b6145a36040830186613feb565b81810360608301526145b58185613b44565b90506145c46080830184613ade565b9695505050505050565b60006145d86145e9565b90506145e4828261493b565b919050565b6000604051905090565b600067ffffffffffffffff82111561460e5761460d614aa2565b5b61461782614af4565b9050602081019050919050565b600067ffffffffffffffff82111561463f5761463e614aa2565b5b61464882614af4565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006146dc8261484c565b91506146e78361484c565b92508261ffff038211156146fe576146fd6149e6565b5b828201905092915050565b60006147148261487a565b915061471f8361487a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614754576147536149e6565b5b828201905092915050565b600061476a8261487a565b91506147758361487a565b92508261478557614784614a15565b5b828204905092915050565b600061479b8261484c565b91506147a68361484c565b9250828210156147b9576147b86149e6565b5b828203905092915050565b60006147cf8261487a565b91506147da8361487a565b9250828210156147ed576147ec6149e6565b5b828203905092915050565b60006148038261485a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061489c826148a3565b9050919050565b60006148ae826148b5565b9050919050565b60006148c08261485a565b9050919050565b82818337600083830152505050565b60005b838110156148f45780820151818401526020810190506148d9565b83811115614903576000848401525b50505050565b6000600282049050600182168061492157607f821691505b6020821081141561493557614934614a44565b5b50919050565b61494482614af4565b810181811067ffffffffffffffff8211171561496357614962614aa2565b5b80604052505050565b60006149778261487a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149aa576149a96149e6565b5b600182019050919050565b60006149c08261487a565b91506149cb8361487a565b9250826149db576149da614a15565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a204e657720636f6e7472616374206e6f74207360008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a20546f6b656e20555249206973206d6973736960008201527f6e67000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4c61436f6c6c656374696f6e3a204e6577436f6e747261637420616c7265616460008201527f7920736574000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4c61436f6c6c656374696f6e3a2043616c6c6572206973206e6f742061206d6960008201527f6e74657200000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a20417274776f726b206e756d626572206d757360008201527f742062652067726561746572207468616e2070726576696f75736c792075736560208201527f6400000000000000000000000000000000000000000000000000000000000000604082015250565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4c61436f6c6c656374696f6e3a20417274776f726b206e756d626572206d757360008201527f742062652067726561746572207468616e2070726576696f75736c792075736560208201527f6420706c757320746f74616c20617661696c61626c6500000000000000000000604082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a20417274776f726b206e756d626572206e6f7460008201527f2070726f7669646564206f72206d75737420626520677265617465722074686160208201527f6e20310000000000000000000000000000000000000000000000000000000000604082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4c61436f6c6c656374696f6e3a204e6f206d6f72652065646974696f6e73206c60008201527f65667420746f206d696e74000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a2045646974696f6e20417274776f726b20616c60008201527f726561647920696e206578697374656e63650000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b615453816147f8565b811461545e57600080fd5b50565b61546a8161480a565b811461547557600080fd5b50565b61548181614816565b811461548c57600080fd5b50565b61549881614820565b81146154a357600080fd5b50565b6154af8161484c565b81146154ba57600080fd5b50565b6154c68161487a565b81146154d157600080fd5b50565b6154dd81614884565b81146154e857600080fd5b5056fea2646970667358221220c4c7a9a64f7db25927fa11bc0b1ae316c15bdbcf05c053b6dc0e94256dc7cad664736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102535760003560e01c80637ee2725611610146578063b91e86cf116100c3578063d5d72e9711610087578063d5d72e9714610732578063e5951e601461074e578063e7b3ca391461076a578063e985e9c514610788578063f2a37208146107b8578063f2fde38b146107d457610253565b8063b91e86cf1461067c578063c87b56dd14610698578063cccf0d8e146106c8578063d5391393146106f8578063d547741f1461071657610253565b8063a217fddf1161010a578063a217fddf146105ee578063a22cb4651461060c578063adbf377614610628578063b3aa1bf114610644578063b88d4fde1461066057610253565b80637ee27256146105365780638da5cb5b14610552578063907eb6be1461057057806391d14854146105a057806395d89b41146105d057610253565b806342842e0e116101d4578063617f535311610198578063617f5353146104805780636352211e146104b057806369e2f0fb146104e057806370a08231146104fc578063715018a61461052c57610253565b806342842e0e146103da5780634313b531146103f657806357991d30146104145780635c975abb1461044457806360f6bd481461046257610253565b806323b872dd1161021b57806323b872dd14610326578063248a9ca3146103425780632f2ff15d1461037257806336568abe1461038e57806340c10f19146103aa57610253565b806301ffc9a71461025857806306fdde0314610288578063081812fc146102a6578063095ea7b3146102d6578063167ddf6e146102f2575b600080fd5b610272600480360381019061026d9190613836565b6107f0565b60405161027f9190614106565b60405180910390f35b610290610802565b60405161029d9190614157565b60405180910390f35b6102c060048036038101906102bb9190613890565b610894565b6040516102cd919061404b565b60405180910390f35b6102f060048036038101906102eb919061373c565b610919565b005b61030c60048036038101906103079190613890565b610a31565b60405161031d959493929190614574565b60405180910390f35b610340600480360381019061033b9190613626565b610b3b565b005b61035c600480360381019061035791906137c9565b610b9b565b6040516103699190614121565b60405180910390f35b61038c600480360381019061038791906137f6565b610bbb565b005b6103a860048036038101906103a391906137f6565b610c21565b005b6103c460048036038101906103bf919061373c565b610ca4565b6040516103d19190614559565b60405180910390f35b6103f460048036038101906103ef9190613626565b610eb4565b005b6103fe610ed4565b60405161040b919061413c565b60405180910390f35b61042e60048036038101906104299190613890565b610efa565b60405161043b91906140e4565b60405180910390f35b61044c610f65565b6040516104599190614106565b60405180910390f35b61046a610f7c565b6040516104779190614559565b60405180910390f35b61049a60048036038101906104959190613954565b610f82565b6040516104a79190614559565b60405180910390f35b6104ca60048036038101906104c59190613890565b611137565b6040516104d7919061404b565b60405180910390f35b6104fa60048036038101906104f591906135b9565b6111e9565b005b610516600480360381019061051191906135b9565b611216565b6040516105239190614559565b60405180910390f35b6105346112ce565b005b610550600480360381019061054b91906135b9565b611408565b005b61055a611435565b604051610567919061404b565b60405180910390f35b61058a600480360381019061058591906138bd565b61145e565b6040516105979190614106565b60405180910390f35b6105ba60048036038101906105b591906137f6565b611568565b6040516105c79190614106565b60405180910390f35b6105d86115d3565b6040516105e59190614157565b60405180910390f35b6105f6611665565b6040516106039190614121565b60405180910390f35b610626600480360381019061062191906136fc565b61166c565b005b610642600480360381019061063d91906135b9565b6117ed565b005b61065e600480360381019061065991906135b9565b61181a565b005b61067a60048036038101906106759190613679565b611847565b005b610696600480360381019061069191906135b9565b6118a9565b005b6106b260048036038101906106ad9190613890565b6118d6565b6040516106bf9190614157565b60405180910390f35b6106e260048036038101906106dd9190613890565b611a28565b6040516106ef9190614559565b60405180910390f35b610700611a45565b60405161070d9190614121565b60405180910390f35b610730600480360381019061072b91906137f6565b611a69565b005b61074c600480360381019061074791906135b9565b611acf565b005b6107686004803603810190610763919061377c565b611c20565b005b610772611d9b565b60405161077f9190614121565b60405180910390f35b6107a2600480360381019061079d91906135e6565b611dbf565b6040516107af9190614106565b60405180910390f35b6107d260048036038101906107cd91906135b9565b611e53565b005b6107ee60048036038101906107e991906135b9565b611e80565b005b60006107fb82612029565b9050919050565b60606001805461081190614909565b80601f016020809104026020016040519081016040528092919081815260200182805461083d90614909565b801561088a5780601f1061085f5761010080835404028352916020019161088a565b820191906000526020600020905b81548152906001019060200180831161086d57829003601f168201915b5050505050905090565b600061089f826120a3565b6108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590614419565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061092482611137565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098c906144f9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109b461210f565b73ffffffffffffffffffffffffffffffffffffffff1614806109e357506109e2816109dd61210f565b611dbf565b5b610a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1990614359565b60405180910390fd5b610a2c8383612117565b505050565b60008060006060600080600c600088815260200190815260200160002090508060010160009054906101000a900460ff1695508060010160019054906101000a900461ffff1694508060010160039054906101000a900461ffff169350806002018054610a9d90614909565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac990614909565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505092508060030160009054906101000a900460ff1691505091939590929450565b610b4c610b4661210f565b826121d0565b610b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8290614519565b60405180910390fd5b610b968383836122ae565b505050565b600060096000838152602001908152602001600020600101549050919050565b610bd4610bc783610b9b565b610bcf61210f565b611568565b610c13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0a90614179565b60405180910390fd5b610c1d828261250a565b5050565b610c2961210f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90614539565b60405180910390fd5b610ca082826125eb565b5050565b6000610cae610f65565b15610cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce590614319565b60405180910390fd5b610d1f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d1a61210f565b611568565b80610d575750610d567f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce610d5161210f565b611568565b5b610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d90614299565b60405180910390fd5b816000600c600083815260200190815260200160002060010160039054906101000a900461ffff1661ffff1611610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df990614479565b60405180910390fd5b610eab8484600c60008781526020019081526020016000206002018054610e2890614909565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5490614909565b8015610ea15780601f10610e7657610100808354040283529160200191610ea1565b820191906000526020600020905b815481529060010190602001808311610e8457829003601f168201915b50505050506126cd565b91505092915050565b610ecf83838360405180602001604052806000815250611847565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600e6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610f5957602002820191906000526020600020905b815481526020019060010190808311610f45575b50505050509050919050565b6000600860009054906101000a900460ff16905090565b600b5481565b6000610f8c610f65565b15610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc390614319565b60405180910390fd5b610ffd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ff861210f565b611568565b8061103557506110347f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce61102f61210f565b611568565b5b611074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106b90614299565b60405180910390fd5b6110818787878787612821565b5061112b8288600c60008b815260200190815260200160002060020180546110a890614909565b80601f01602080910402602001604051908101604052809291908181526020018280546110d490614909565b80156111215780601f106110f657610100808354040283529160200191611121565b820191906000526020600020905b81548152906001019060200180831161110457829003601f168201915b50505050506126cd565b90509695505050505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790614399565b60405180910390fd5b80915050919050565b6112137f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611a69565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127e90614379565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112d661210f565b73ffffffffffffffffffffffffffffffffffffffff166112f4611435565b73ffffffffffffffffffffffffffffffffffffffff161461134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134190614459565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6114327f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce82611a69565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611468610f65565b156114a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149f90614319565b60405180910390fd5b6114d97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66114d461210f565b611568565b8061151157506115107f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce61150b61210f565b611568565b5b611550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154790614299565b60405180910390fd5b61155d8686868686612821565b905095945050505050565b60006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600280546115e290614909565b80601f016020809104026020016040519081016040528092919081815260200182805461160e90614909565b801561165b5780601f106116305761010080835404028352916020019161165b565b820191906000526020600020905b81548152906001019060200180831161163e57829003601f168201915b5050505050905090565b6000801b81565b61167461210f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990614279565b60405180910390fd5b80600660006116ef61210f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661179c61210f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117e19190614106565b60405180910390a35050565b6118177f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682610bbb565b50565b6118447f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce82610bbb565b50565b61185861185261210f565b836121d0565b611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188e90614519565b60405180910390fd5b6118a384848484612b1d565b50505050565b6118d37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682610c21565b50565b60606118e1826120a3565b611920576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611917906143f9565b60405180910390fd5b600060076000848152602001908152602001600020805461194090614909565b80601f016020809104026020016040519081016040528092919081815260200182805461196c90614909565b80156119b95780601f1061198e576101008083540402835291602001916119b9565b820191906000526020600020905b81548152906001019060200180831161199c57829003601f168201915b5050505050905060006119ca612b79565b90506000815114156119e0578192505050611a23565b600082511115611a155780826040516020016119fd929190614027565b60405160208183030381529060405292505050611a23565b611a1e84612b90565b925050505b919050565b6000600d6000838152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611a82611a7583610b9b565b611a7d61210f565b611568565b611ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab8906142f9565b60405180910390fd5b611acb82826125eb565b5050565b611ad761210f565b73ffffffffffffffffffffffffffffffffffffffff16611af5611435565b73ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4290614459565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd390614239565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca990614199565b60405180910390fd5b60005b82829050811015611cfe57611ceb611ccb61210f565b30858585818110611cdf57611cde614a73565b5b90506020020135610b3b565b8080611cf69061496c565b915050611cb5565b50600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e884703f8383611d4761210f565b6040518463ffffffff1660e01b8152600401611d65939291906140b2565b600060405180830381600087803b158015611d7f57600080fd5b505af1158015611d93573d6000803e3d6000fd5b505050505050565b7f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce81565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e7d7f8a0ab232865884526b1b6d63754af1df481b6f18dfc9606b8089cbc5038d8fce82610c21565b50565b611e8861210f565b73ffffffffffffffffffffffffffffffffffffffff16611ea6611435565b73ffffffffffffffffffffffffffffffffffffffff1614611efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef390614459565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f63906141f9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061209c575061209b82612c37565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661218a83611137565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121db826120a3565b61221a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612211906142b9565b60405180910390fd5b600061222583611137565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061229457508373ffffffffffffffffffffffffffffffffffffffff1661227c84610894565b73ffffffffffffffffffffffffffffffffffffffff16145b806122a557506122a48185611dbf565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166122ce82611137565b73ffffffffffffffffffffffffffffffffffffffff1614612324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231b90614499565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90614259565b60405180910390fd5b61239f838383612d19565b6123aa600082612117565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123fa91906147c4565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124519190614709565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6125148282611568565b6125e75760016009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061258c61210f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6125f58282611568565b156126c95760006009600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061266e61210f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000806126d984612d1e565b90506126e58582612d6b565b6126ef8184612f39565b83600d600083815260200190815260200160002081905550600e60008581526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556000600c6000868152602001908152602001600020905060018160010160018282829054906101000a900461ffff1661277a91906146d1565b92506101000a81548161ffff021916908361ffff16021790555060018160010160038282829054906101000a900461ffff166127b69190614790565b92506101000a81548161ffff021916908361ffff1602179055508573ffffffffffffffffffffffffffffffffffffffff1685837f6bad1740a229c1855e2e017211c865d604919ce6717c85ae3a93e579328e5b4260405160405180910390a481925050509392505050565b60006001861015612867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285e90614439565b60405180910390fd5b600b5486116128ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a2906142d9565b60405180910390fd5b856128eb600c6000600b54815260200190815260200160002060010160039054906101000a900461ffff1661ffff16600b54612fad90919063ffffffff16565b111561292c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292390614339565b60405180910390fd5b600084511415612971576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612968906141b9565b60405180910390fd5b6000600c600088815260200190815260200160002060000154146129ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c1906144d9565b60405180910390fd5b6040518060c001604052808781526020018660ff168152602001600061ffff1681526020018461ffff168152602001858152602001831515815250600c60008881526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360ff16021790555060408201518160010160016101000a81548161ffff021916908361ffff16021790555060608201518160010160036101000a81548161ffff021916908361ffff1602179055506080820151816002019080519060200190612aa5929190613338565b5060a08201518160030160006101000a81548160ff0219169083151502179055509050508460ff16867fc9739046125256acc5ccec43f5a3f12ed302ea2302aef7a28e1f724d351c1c4a60405160405180910390a38261ffff1686612b0a9190614709565b600b819055506001905095945050505050565b612b288484846122ae565b612b3484848484612fc3565b612b73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6a906141d9565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b6060612b9b826120a3565b612bda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd1906144b9565b60405180910390fd5b6000612be4612b79565b90506000815111612c045760405180602001604052806000815250612c2f565b80612c0e8461315a565b604051602001612c1f929190614027565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d0257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d125750612d11826132bb565b5b9050919050565b505050565b600080600c60008481526020019081526020016000209050612d638160010160019054906101000a900461ffff1661ffff168260000154612fad90919063ffffffff16565b915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dd2906143d9565b60405180910390fd5b612de4816120a3565b15612e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1b90614219565b60405180910390fd5b612e3060008383612d19565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e809190614709565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612f42826120a3565b612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f78906143b9565b60405180910390fd5b80600760008481526020019081526020016000209080519060200190612fa8929190613338565b505050565b60008183612fbb9190614709565b905092915050565b6000612fe48473ffffffffffffffffffffffffffffffffffffffff16613325565b1561314d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261300d61210f565b8786866040518563ffffffff1660e01b815260040161302f9493929190614066565b602060405180830381600087803b15801561304957600080fd5b505af192505050801561307a57506040513d601f19601f820116820180604052508101906130779190613863565b60015b6130fd573d80600081146130aa576040519150601f19603f3d011682016040523d82523d6000602084013e6130af565b606091505b506000815114156130f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ec906141d9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613152565b600190505b949350505050565b606060008214156131a2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506132b6565b600082905060005b600082146131d45780806131bd9061496c565b915050600a826131cd919061475f565b91506131aa565b60008167ffffffffffffffff8111156131f0576131ef614aa2565b5b6040519080825280601f01601f1916602001820160405280156132225781602001600182028036833780820191505090505b5090505b600085146132af5760018261323b91906147c4565b9150600a8561324a91906149b5565b60306132569190614709565b60f81b81838151811061326c5761326b614a73565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132a8919061475f565b9450613226565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080823b905060008111915050919050565b82805461334490614909565b90600052602060002090601f01602090048101928261336657600085556133ad565b82601f1061337f57805160ff19168380011785556133ad565b828001600101855582156133ad579182015b828111156133ac578251825591602001919060010190613391565b5b5090506133ba91906133be565b5090565b5b808211156133d75760008160009055506001016133bf565b5090565b60006133ee6133e9846145f3565b6145ce565b90508281526020810184848401111561340a57613409614ae0565b5b6134158482856148c7565b509392505050565b600061343061342b84614624565b6145ce565b90508281526020810184848401111561344c5761344b614ae0565b5b6134578482856148c7565b509392505050565b60008135905061346e8161544a565b92915050565b60008083601f84011261348a57613489614ad6565b5b8235905067ffffffffffffffff8111156134a7576134a6614ad1565b5b6020830191508360208202830111156134c3576134c2614adb565b5b9250929050565b6000813590506134d981615461565b92915050565b6000813590506134ee81615478565b92915050565b6000813590506135038161548f565b92915050565b6000815190506135188161548f565b92915050565b600082601f83011261353357613532614ad6565b5b81356135438482602086016133db565b91505092915050565b600082601f83011261356157613560614ad6565b5b813561357184826020860161341d565b91505092915050565b600081359050613589816154a6565b92915050565b60008135905061359e816154bd565b92915050565b6000813590506135b3816154d4565b92915050565b6000602082840312156135cf576135ce614aef565b5b60006135dd8482850161345f565b91505092915050565b600080604083850312156135fd576135fc614aef565b5b600061360b8582860161345f565b925050602061361c8582860161345f565b9150509250929050565b60008060006060848603121561363f5761363e614aef565b5b600061364d8682870161345f565b935050602061365e8682870161345f565b925050604061366f8682870161358f565b9150509250925092565b6000806000806080858703121561369357613692614aef565b5b60006136a18782880161345f565b94505060206136b28782880161345f565b93505060406136c38782880161358f565b925050606085013567ffffffffffffffff8111156136e4576136e3614ae5565b5b6136f08782880161351e565b91505092959194509250565b6000806040838503121561371357613712614aef565b5b60006137218582860161345f565b9250506020613732858286016134ca565b9150509250929050565b6000806040838503121561375357613752614aef565b5b60006137618582860161345f565b92505060206137728582860161358f565b9150509250929050565b6000806020838503121561379357613792614aef565b5b600083013567ffffffffffffffff8111156137b1576137b0614ae5565b5b6137bd85828601613474565b92509250509250929050565b6000602082840312156137df576137de614aef565b5b60006137ed848285016134df565b91505092915050565b6000806040838503121561380d5761380c614aef565b5b600061381b858286016134df565b925050602061382c8582860161345f565b9150509250929050565b60006020828403121561384c5761384b614aef565b5b600061385a848285016134f4565b91505092915050565b60006020828403121561387957613878614aef565b5b600061388784828501613509565b91505092915050565b6000602082840312156138a6576138a5614aef565b5b60006138b48482850161358f565b91505092915050565b600080600080600060a086880312156138d9576138d8614aef565b5b60006138e78882890161358f565b95505060206138f8888289016135a4565b945050604086013567ffffffffffffffff81111561391957613918614ae5565b5b6139258882890161354c565b93505060606139368882890161357a565b9250506080613947888289016134ca565b9150509295509295909350565b60008060008060008060c0878903121561397157613970614aef565b5b600061397f89828a0161358f565b965050602061399089828a016135a4565b955050604087013567ffffffffffffffff8111156139b1576139b0614ae5565b5b6139bd89828a0161354c565b94505060606139ce89828a0161357a565b93505060806139df89828a016134ca565b92505060a06139f089828a0161345f565b9150509295509295509295565b6000613a098383613ffa565b60208301905092915050565b613a1e816147f8565b82525050565b6000613a308385614693565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115613a6357613a62614aea565b5b602083029250613a748385846148c7565b82840190509392505050565b6000613a8b82614665565b613a958185614693565b9350613aa083614655565b8060005b83811015613ad1578151613ab888826139fd565b9750613ac383614686565b925050600181019050613aa4565b5085935050505092915050565b613ae78161480a565b82525050565b613af681614816565b82525050565b6000613b0782614670565b613b1181856146a4565b9350613b218185602086016148d6565b613b2a81614af4565b840191505092915050565b613b3e81614891565b82525050565b6000613b4f8261467b565b613b5981856146b5565b9350613b698185602086016148d6565b613b7281614af4565b840191505092915050565b6000613b888261467b565b613b9281856146c6565b9350613ba28185602086016148d6565b80840191505092915050565b6000613bbb602f836146b5565b9150613bc682614b05565b604082019050919050565b6000613bde6022836146b5565b9150613be982614b54565b604082019050919050565b6000613c016022836146b5565b9150613c0c82614ba3565b604082019050919050565b6000613c246032836146b5565b9150613c2f82614bf2565b604082019050919050565b6000613c476026836146b5565b9150613c5282614c41565b604082019050919050565b6000613c6a601c836146b5565b9150613c7582614c90565b602082019050919050565b6000613c8d6025836146b5565b9150613c9882614cb9565b604082019050919050565b6000613cb06024836146b5565b9150613cbb82614d08565b604082019050919050565b6000613cd36019836146b5565b9150613cde82614d57565b602082019050919050565b6000613cf66024836146b5565b9150613d0182614d80565b604082019050919050565b6000613d19602c836146b5565b9150613d2482614dcf565b604082019050919050565b6000613d3c6041836146b5565b9150613d4782614e1e565b606082019050919050565b6000613d5f6030836146b5565b9150613d6a82614e93565b604082019050919050565b6000613d826010836146b5565b9150613d8d82614ee2565b602082019050919050565b6000613da56056836146b5565b9150613db082614f0b565b606082019050919050565b6000613dc86038836146b5565b9150613dd382614f80565b604082019050919050565b6000613deb602a836146b5565b9150613df682614fcf565b604082019050919050565b6000613e0e6029836146b5565b9150613e198261501e565b604082019050919050565b6000613e31602e836146b5565b9150613e3c8261506d565b604082019050919050565b6000613e546020836146b5565b9150613e5f826150bc565b602082019050919050565b6000613e776031836146b5565b9150613e82826150e5565b604082019050919050565b6000613e9a602c836146b5565b9150613ea582615134565b604082019050919050565b6000613ebd6043836146b5565b9150613ec882615183565b606082019050919050565b6000613ee06020836146b5565b9150613eeb826151f8565b602082019050919050565b6000613f03602b836146b5565b9150613f0e82615221565b604082019050919050565b6000613f266029836146b5565b9150613f3182615270565b604082019050919050565b6000613f49602f836146b5565b9150613f54826152bf565b604082019050919050565b6000613f6c6032836146b5565b9150613f778261530e565b604082019050919050565b6000613f8f6021836146b5565b9150613f9a8261535d565b604082019050919050565b6000613fb26031836146b5565b9150613fbd826153ac565b604082019050919050565b6000613fd5602f836146b5565b9150613fe0826153fb565b604082019050919050565b613ff48161484c565b82525050565b6140038161487a565b82525050565b6140128161487a565b82525050565b61402181614884565b82525050565b60006140338285613b7d565b915061403f8284613b7d565b91508190509392505050565b60006020820190506140606000830184613a15565b92915050565b600060808201905061407b6000830187613a15565b6140886020830186613a15565b6140956040830185614009565b81810360608301526140a78184613afc565b905095945050505050565b600060408201905081810360008301526140cd818587613a24565b90506140dc6020830184613a15565b949350505050565b600060208201905081810360008301526140fe8184613a80565b905092915050565b600060208201905061411b6000830184613ade565b92915050565b60006020820190506141366000830184613aed565b92915050565b60006020820190506141516000830184613b35565b92915050565b600060208201905081810360008301526141718184613b44565b905092915050565b6000602082019050818103600083015261419281613bae565b9050919050565b600060208201905081810360008301526141b281613bd1565b9050919050565b600060208201905081810360008301526141d281613bf4565b9050919050565b600060208201905081810360008301526141f281613c17565b9050919050565b6000602082019050818103600083015261421281613c3a565b9050919050565b6000602082019050818103600083015261423281613c5d565b9050919050565b6000602082019050818103600083015261425281613c80565b9050919050565b6000602082019050818103600083015261427281613ca3565b9050919050565b6000602082019050818103600083015261429281613cc6565b9050919050565b600060208201905081810360008301526142b281613ce9565b9050919050565b600060208201905081810360008301526142d281613d0c565b9050919050565b600060208201905081810360008301526142f281613d2f565b9050919050565b6000602082019050818103600083015261431281613d52565b9050919050565b6000602082019050818103600083015261433281613d75565b9050919050565b6000602082019050818103600083015261435281613d98565b9050919050565b6000602082019050818103600083015261437281613dbb565b9050919050565b6000602082019050818103600083015261439281613dde565b9050919050565b600060208201905081810360008301526143b281613e01565b9050919050565b600060208201905081810360008301526143d281613e24565b9050919050565b600060208201905081810360008301526143f281613e47565b9050919050565b6000602082019050818103600083015261441281613e6a565b9050919050565b6000602082019050818103600083015261443281613e8d565b9050919050565b6000602082019050818103600083015261445281613eb0565b9050919050565b6000602082019050818103600083015261447281613ed3565b9050919050565b6000602082019050818103600083015261449281613ef6565b9050919050565b600060208201905081810360008301526144b281613f19565b9050919050565b600060208201905081810360008301526144d281613f3c565b9050919050565b600060208201905081810360008301526144f281613f5f565b9050919050565b6000602082019050818103600083015261451281613f82565b9050919050565b6000602082019050818103600083015261453281613fa5565b9050919050565b6000602082019050818103600083015261455281613fc8565b9050919050565b600060208201905061456e6000830184614009565b92915050565b600060a0820190506145896000830188614018565b6145966020830187613feb565b6145a36040830186613feb565b81810360608301526145b58185613b44565b90506145c46080830184613ade565b9695505050505050565b60006145d86145e9565b90506145e4828261493b565b919050565b6000604051905090565b600067ffffffffffffffff82111561460e5761460d614aa2565b5b61461782614af4565b9050602081019050919050565b600067ffffffffffffffff82111561463f5761463e614aa2565b5b61464882614af4565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006146dc8261484c565b91506146e78361484c565b92508261ffff038211156146fe576146fd6149e6565b5b828201905092915050565b60006147148261487a565b915061471f8361487a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614754576147536149e6565b5b828201905092915050565b600061476a8261487a565b91506147758361487a565b92508261478557614784614a15565b5b828204905092915050565b600061479b8261484c565b91506147a68361484c565b9250828210156147b9576147b86149e6565b5b828203905092915050565b60006147cf8261487a565b91506147da8361487a565b9250828210156147ed576147ec6149e6565b5b828203905092915050565b60006148038261485a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061489c826148a3565b9050919050565b60006148ae826148b5565b9050919050565b60006148c08261485a565b9050919050565b82818337600083830152505050565b60005b838110156148f45780820151818401526020810190506148d9565b83811115614903576000848401525b50505050565b6000600282049050600182168061492157607f821691505b6020821081141561493557614934614a44565b5b50919050565b61494482614af4565b810181811067ffffffffffffffff8211171561496357614962614aa2565b5b80604052505050565b60006149778261487a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149aa576149a96149e6565b5b600182019050919050565b60006149c08261487a565b91506149cb8361487a565b9250826149db576149da614a15565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f206772616e740000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a204e657720636f6e7472616374206e6f74207360008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a20546f6b656e20555249206973206d6973736960008201527f6e67000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4c61436f6c6c656374696f6e3a204e6577436f6e747261637420616c7265616460008201527f7920736574000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4c61436f6c6c656374696f6e3a2043616c6c6572206973206e6f742061206d6960008201527f6e74657200000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a20417274776f726b206e756d626572206d757360008201527f742062652067726561746572207468616e2070726576696f75736c792075736560208201527f6400000000000000000000000000000000000000000000000000000000000000604082015250565b7f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60008201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4c61436f6c6c656374696f6e3a20417274776f726b206e756d626572206d757360008201527f742062652067726561746572207468616e2070726576696f75736c792075736560208201527f6420706c757320746f74616c20617661696c61626c6500000000000000000000604082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a20417274776f726b206e756d626572206e6f7460008201527f2070726f7669646564206f72206d75737420626520677265617465722074686160208201527f6e20310000000000000000000000000000000000000000000000000000000000604082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4c61436f6c6c656374696f6e3a204e6f206d6f72652065646974696f6e73206c60008201527f65667420746f206d696e74000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4c61436f6c6c656374696f6e3a2045646974696f6e20417274776f726b20616c60008201527f726561647920696e206578697374656e63650000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b615453816147f8565b811461545e57600080fd5b50565b61546a8161480a565b811461547557600080fd5b50565b61548181614816565b811461548c57600080fd5b50565b61549881614820565b81146154a357600080fd5b50565b6154af8161484c565b81146154ba57600080fd5b50565b6154c68161487a565b81146154d157600080fd5b50565b6154dd81614884565b81146154e857600080fd5b5056fea2646970667358221220c4c7a9a64f7db25927fa11bc0b1ae316c15bdbcf05c053b6dc0e94256dc7cad664736f6c63430008070033
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.