Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
34 CYDX
Holders
13
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CypherDudesArchives
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import {SSTORE2} from "./ethfs/solady/utils/SSTORE2.sol"; import {File, Content} from "./ethfs/File.sol"; error NotTheOwner(string filename, address caller); interface ICypherdudesFileStore { function getChecksum( string memory filename ) external view returns (bytes32 checksum); } interface ICypherdudesFileStoreBit { function getChecksum( string memory filename ) external view returns (bytes32 checksum); } interface ICypherdudesContentStore { function pointers(bytes32 checksum) external view returns (address pointer); function contentLength( bytes32 checksum ) external view returns (uint256 size); } interface ICypherdudes { struct TokenData { uint256 seed; uint256 globalProgression; string secretWord; } function tokenData( uint256 tokenId ) external view returns (uint256, uint256, string memory); function ownerOf(uint256 tokenId) external view returns (address); } interface ICypherdudesBit { struct TokenData { uint256 seed; uint256 globalProgression; string secretWord; } function tokenData( uint256 tokenId ) external view returns (uint256, uint256, string memory); function ownerOf(uint256 tokenId) external view returns (address); } interface ICypherDudesArchivesRenderer { function tokenURI(uint256 tokenId) external view returns (string memory); } /// @title cypherdudesArchives /// @author @felixfelixfelix contract CypherDudesArchives is ERC721Royalty, Ownable { uint256 public totalSupply = 0; struct ArchiveData { uint256 DudeId; uint256 FileId; bytes32 storageChecksum; uint256 blockNumber; uint256 timestamp; bool freeAccess; string secret; } struct ArchiveFileData { uint256 FileCount; } /// @dev Mapping from Archive ID to archive data mapping(uint256 => ArchiveData) public archiveData; /// @dev Mapping from dude ID to File data mapping(uint256 => ArchiveFileData) public archiveFileData; ICypherdudesFileStore public fileStore; ICypherdudesFileStoreBit public fileStoreBit; ICypherdudesContentStore public contentStore; ICypherdudes public cypherdudesContract; ICypherdudesBit public cypherdudesBitContract; ICypherDudesArchivesRenderer public renderer; constructor( address filestore_, address filestoreBit_, address contentStore_, address cypherdudes_, address cypherdudesBit_ ) ERC721("CypherDudesArchives", "CYDX") Ownable(msg.sender) { fileStore = ICypherdudesFileStore(filestore_); fileStoreBit = ICypherdudesFileStoreBit(filestoreBit_); contentStore = ICypherdudesContentStore(contentStore_); cypherdudesContract = ICypherdudes(cypherdudes_); cypherdudesBitContract = ICypherdudesBit(cypherdudesBit_); _setDefaultRoyalty(msg.sender, 100); } /// @dev Reentrancy protection modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function setRenderer( address _cypherdudesArchivesRenderer ) public onlyOwner { renderer = ICypherDudesArchivesRenderer(_cypherdudesArchivesRenderer); } function mintPrivateArchive(uint256 _dudeId) public callerIsUser { if (_dudeId < 1728) { (, , string memory _secretWord) = cypherdudesContract.tokenData( _dudeId ); require( _msgSender() == cypherdudesContract.ownerOf(_dudeId), "Not Authorized" ); require( bytes(_secretWord).length != 0, "You need to claim a word to unlock the feature" ); uint256 _archiveId = totalSupply; uint256 _fileCount = archiveFileData[_dudeId].FileCount + 1; totalSupply++; archiveData[_archiveId].DudeId = _dudeId; archiveData[_archiveId].FileId = _fileCount; archiveFileData[_dudeId].FileCount = _fileCount; archiveData[_archiveId].storageChecksum = getStorageData(_dudeId); archiveData[_archiveId].blockNumber = block.number; archiveData[_archiveId].timestamp = block.timestamp; archiveData[_archiveId].freeAccess = false; _safeMint(_msgSender(), _archiveId); } if (_dudeId > 1727) { (, , string memory _secretWordBit) = cypherdudesBitContract .tokenData(_dudeId); require( _msgSender() == cypherdudesBitContract.ownerOf(_dudeId), "Not Authorized" ); require( bytes(_secretWordBit).length != 0, "You need to claim a word to unlock the feature" ); uint256 _archiveId = totalSupply; uint256 _fileCount = archiveFileData[_dudeId].FileCount + 1; totalSupply++; archiveData[_archiveId].DudeId = _dudeId; archiveData[_archiveId].FileId = _fileCount; archiveFileData[_dudeId].FileCount = _fileCount; archiveData[_archiveId].storageChecksum = getStorageData(_dudeId); archiveData[_archiveId].blockNumber = block.number; archiveData[_archiveId].timestamp = block.timestamp; archiveData[_archiveId].freeAccess = false; _safeMint(_msgSender(), _archiveId); } } function mintPublicArchive( uint256 _dudeId, string memory secretKey ) public callerIsUser { if (_dudeId < 1728) { (, , string memory _secretWord) = cypherdudesContract.tokenData( _dudeId ); require( _msgSender() == cypherdudesContract.ownerOf(_dudeId), "Not Authorized" ); require( bytes(_secretWord).length != 0, "You need to claim a word to unlock the feature" ); uint256 _archiveId = totalSupply; uint256 _fileCount = archiveFileData[_dudeId].FileCount + 1; totalSupply++; archiveData[_archiveId].DudeId = _dudeId; archiveData[_archiveId].FileId = _fileCount; archiveFileData[_dudeId].FileCount = _fileCount; archiveData[_archiveId].storageChecksum = getStorageData(_dudeId); archiveData[_archiveId].blockNumber = block.number; archiveData[_archiveId].timestamp = block.timestamp; archiveData[_archiveId].freeAccess = true; archiveData[_archiveId].secret = secretKey; _safeMint(_msgSender(), _archiveId); } if (_dudeId > 1727) { (, , string memory _secretWordBit) = cypherdudesBitContract .tokenData(_dudeId); require( _msgSender() == cypherdudesBitContract.ownerOf(_dudeId), "Not Authorized" ); require( bytes(_secretWordBit).length != 0, "You need to claim a word to unlock the feature" ); uint256 _archiveId = totalSupply; uint256 _fileCount = archiveFileData[_dudeId].FileCount + 1; totalSupply++; archiveData[_archiveId].DudeId = _dudeId; archiveData[_archiveId].FileId = _fileCount; archiveFileData[_dudeId].FileCount = _fileCount; archiveData[_archiveId].storageChecksum = getStorageData(_dudeId); archiveData[_archiveId].blockNumber = block.number; archiveData[_archiveId].timestamp = block.timestamp; archiveData[_archiveId].freeAccess = true; archiveData[_archiveId].secret = secretKey; _safeMint(_msgSender(), _archiveId); } } function getStorageData( uint256 _dudeId ) public view returns (bytes32 cardChecksum) { if (_dudeId < 1728) { cardChecksum = fileStore.getChecksum( string.concat("cypherCard_", toString(_dudeId)) ); } if (_dudeId > 1727) { cardChecksum = fileStoreBit.getChecksum( string.concat("cypherCard_", toString(_dudeId)) ); } } function getMessageData( bytes32 cardChecksum ) public view returns ( address storageAddress, uint256 fileSize, string memory message ) { storageAddress = contentStore.pointers(cardChecksum); fileSize = contentStore.contentLength(cardChecksum); message = abi.decode(SSTORE2.read(storageAddress), (File)).read(); } /// @dev calls the renderer token URI function function tokenURI( uint256 tokenId ) public view override returns (string memory) { return renderer.tokenURI(tokenId); } /// @dev Helper function to convert uint256 into string function toString(uint256 value) internal pure returns (string memory) { 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--; buffer[digits] = bytes1(uint8(48 + (value % 10))); value /= 10; } return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "../../interfaces/IERC2981.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; import {IERC721} from "./IERC721.sol"; import {IERC721Receiver} from "./IERC721Receiver.sol"; import {IERC721Metadata} from "./extensions/IERC721Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {Strings} from "../../utils/Strings.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {IERC721Errors} from "../../interfaces/draft-IERC6093.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}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => 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 returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * 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 { _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); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - 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) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. 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 */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.20; import {ERC721} from "../ERC721.sol"; import {ERC2981} from "../../common/ERC2981.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually * for specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; import {IERC721} from "../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 // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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 // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ 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 subtraction of two unsigned integers, with an overflow flag. */ 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. */ 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. */ 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. */ 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 largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.20; struct Content { bytes32 checksum; address pointer; } struct File { uint256 size; // content length in bytes, max 24k Content[] contents; } function read(File memory file) view returns (string memory contents) { Content[] memory chunks = file.contents; // Adapted from https://gist.github.com/xtremetom/20411eb126aaf35f98c8a8ffa00123cd assembly { let len := mload(chunks) let totalSize := 0x20 contents := mload(0x40) let size let chunk let pointer // loop through all pointer addresses // - get content // - get address // - get data size // - get code and add to contents // - update total size for { let i := 0 } lt(i, len) { i := add(i, 1) } { chunk := mload(add(chunks, add(0x20, mul(i, 0x20)))) pointer := mload(add(chunk, 0x20)) size := sub(extcodesize(pointer), 1) extcodecopy(pointer, add(contents, totalSize), 1, size) totalSize := add(totalSize, size) } // update contents size mstore(contents, sub(totalSize, 0x20)) // store contents mstore(0x40, add(contents, and(add(totalSize, 0x1f), not(0x1f)))) } } using {read} for File global;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Read and write to persistent storage at a fraction of the cost. /// @author Solady (https://github.com/vectorized/solmady/blob/main/src/utils/SSTORE2.sol) /// @author Saw-mon-and-Natalie (https://github.com/Saw-mon-and-Natalie) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SSTORE2.sol) /// @author Modified from 0xSequence (https://github.com/0xSequence/sstore2/blob/master/contracts/SSTORE2.sol) library SSTORE2 { /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* CUSTOM ERRORS */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ error DeploymentFailed(); error InvalidPointer(); error ReadOutOfBounds(); /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* WRITE LOGIC */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ function write(bytes memory data) internal returns (address pointer) { // Note: The assembly block below does not expand the memory. assembly { let originalDataLength := mload(data) // Add 1 to data size since we are prefixing it with a STOP opcode. let dataSize := add(originalDataLength, 1) /** * ------------------------------------------------------------------------------+ * Opcode | Mnemonic | Stack | Memory | * ------------------------------------------------------------------------------| * 61 codeSize | PUSH2 codeSize | codeSize | | * 80 | DUP1 | codeSize codeSize | | * 60 0xa | PUSH1 0xa | 0xa codeSize codeSize | | * 3D | RETURNDATASIZE | 0 0xa codeSize codeSize | | * 39 | CODECOPY | codeSize | [0..codeSize): code | * 3D | RETURNDATASZIE | 0 codeSize | [0..codeSize): code | * F3 | RETURN | | [0..codeSize): code | * 00 | STOP | | | * ------------------------------------------------------------------------------+ * @dev Prefix the bytecode with a STOP opcode to ensure it cannot be called. * Also PUSH2 is used since max contract size cap is 24,576 bytes which is less than 2 ** 16. */ mstore( data, or( 0x61000080600a3d393df300, // Left shift `dataSize` by 64 so that it lines up with the 0000 after PUSH2. shl(0x40, dataSize) ) ) // Deploy a new contract with the generated creation code. pointer := create(0, add(data, 0x15), add(dataSize, 0xa)) // If `pointer` is zero, revert. if iszero(pointer) { // Store the function selector of `DeploymentFailed()`. mstore(0x00, 0x30116425) // Revert with (offset, size). revert(0x1c, 0x04) } // Restore original length of the variable size `data`. mstore(data, originalDataLength) } } /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ /* READ LOGIC */ /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ function read(address pointer) internal view returns (bytes memory data) { assembly { let pointerCodesize := extcodesize(pointer) if iszero(pointerCodesize) { // Store the function selector of `InvalidPointer()`. mstore(0x00, 0x11052bb4) // Revert with (offset, size). revert(0x1c, 0x04) } // Offset all indices by 1 to skip the STOP opcode. let size := sub(pointerCodesize, 1) // Get the pointer to the free memory and allocate // enough 32-byte words for the data and the length of the data, // then copy the code to the allocated memory. // Masking with 0xffe0 will suffice, since contract size is less than 16 bits. data := mload(0x40) mstore(0x40, add(data, and(add(size, 0x3f), 0xffe0))) mstore(data, size) extcodecopy(pointer, add(data, 0x20), 1, size) } } function read(address pointer, uint256 start) internal view returns (bytes memory data) { assembly { let pointerCodesize := extcodesize(pointer) if iszero(pointerCodesize) { // Store the function selector of `InvalidPointer()`. mstore(0x00, 0x11052bb4) // Revert with (offset, size). revert(0x1c, 0x04) } // If `!(pointer.code.size > start)`, reverts. // This also handles the case where `start + 1` overflows. if iszero(gt(pointerCodesize, start)) { // Store the function selector of `ReadOutOfBounds()`. mstore(0x00, 0x84eb0dd1) // Revert with (offset, size). revert(0x1c, 0x04) } let size := sub(pointerCodesize, add(start, 1)) // Get the pointer to the free memory and allocate // enough 32-byte words for the data and the length of the data, // then copy the code to the allocated memory. // Masking with 0xffe0 will suffice, since contract size is less than 16 bits. data := mload(0x40) mstore(0x40, add(data, and(add(size, 0x3f), 0xffe0))) mstore(data, size) extcodecopy(pointer, add(data, 0x20), add(start, 1), size) } } function read( address pointer, uint256 start, uint256 end ) internal view returns (bytes memory data) { assembly { let pointerCodesize := extcodesize(pointer) if iszero(pointerCodesize) { // Store the function selector of `InvalidPointer()`. mstore(0x00, 0x11052bb4) // Revert with (offset, size). revert(0x1c, 0x04) } // If `!(pointer.code.size > end) || (start > end)`, revert. // This also handles the cases where `end + 1` or `start + 1` overflow. if iszero( and( gt(pointerCodesize, end), // Within bounds. iszero(gt(start, end)) // Valid range. ) ) { // Store the function selector of `ReadOutOfBounds()`. mstore(0x00, 0x84eb0dd1) // Revert with (offset, size). revert(0x1c, 0x04) } let size := sub(end, start) // Get the pointer to the free memory and allocate // enough 32-byte words for the data and the length of the data, // then copy the code to the allocated memory. // Masking with 0xffe0 will suffice, since contract size is less than 16 bits. data := mload(0x40) mstore(0x40, add(data, and(add(size, 0x3f), 0xffe0))) mstore(data, size) extcodecopy(pointer, add(data, 0x20), add(start, 1), size) } } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"filestore_","type":"address"},{"internalType":"address","name":"filestoreBit_","type":"address"},{"internalType":"address","name":"contentStore_","type":"address"},{"internalType":"address","name":"cypherdudes_","type":"address"},{"internalType":"address","name":"cypherdudesBit_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"archiveData","outputs":[{"internalType":"uint256","name":"DudeId","type":"uint256"},{"internalType":"uint256","name":"FileId","type":"uint256"},{"internalType":"bytes32","name":"storageChecksum","type":"bytes32"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bool","name":"freeAccess","type":"bool"},{"internalType":"string","name":"secret","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"archiveFileData","outputs":[{"internalType":"uint256","name":"FileCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contentStore","outputs":[{"internalType":"contract ICypherdudesContentStore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cypherdudesBitContract","outputs":[{"internalType":"contract ICypherdudesBit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cypherdudesContract","outputs":[{"internalType":"contract ICypherdudes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileStore","outputs":[{"internalType":"contract ICypherdudesFileStore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileStoreBit","outputs":[{"internalType":"contract ICypherdudesFileStoreBit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cardChecksum","type":"bytes32"}],"name":"getMessageData","outputs":[{"internalType":"address","name":"storageAddress","type":"address"},{"internalType":"uint256","name":"fileSize","type":"uint256"},{"internalType":"string","name":"message","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dudeId","type":"uint256"}],"name":"getStorageData","outputs":[{"internalType":"bytes32","name":"cardChecksum","type":"bytes32"}],"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":"_dudeId","type":"uint256"}],"name":"mintPrivateArchive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dudeId","type":"uint256"},{"internalType":"string","name":"secretKey","type":"string"}],"name":"mintPublicArchive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract ICypherDudesArchivesRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cypherdudesArchivesRenderer","type":"address"}],"name":"setRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006009553480156200001657600080fd5b50604051620051123803806200511283398181016040528101906200003c9190620005a2565b336040518060400160405280601381526020017f43797068657244756465734172636869766573000000000000000000000000008152506040518060400160405280600481526020017f43594458000000000000000000000000000000000000000000000000000000008152508160029081620000ba9190620008a4565b508060039081620000cc9190620008a4565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001445760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016200013b91906200099c565b60405180910390fd5b6200015581620002b960201b60201c565b5084600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002ae3360646200037f60201b60201c565b505050505062000a48565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000620003916200052e60201b60201c565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115620003f95781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401620003f092919062000a1b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200046e5760006040517fb6d9900a0000000000000000000000000000000000000000000000000000000081526004016200046591906200099c565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b6000612710905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200056a826200053d565b9050919050565b6200057c816200055d565b81146200058857600080fd5b50565b6000815190506200059c8162000571565b92915050565b600080600080600060a08688031215620005c157620005c062000538565b5b6000620005d1888289016200058b565b9550506020620005e4888289016200058b565b9450506040620005f7888289016200058b565b93505060606200060a888289016200058b565b92505060806200061d888289016200058b565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006ac57607f821691505b602082108103620006c257620006c162000664565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200072c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006ed565b620007388683620006ed565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007856200077f620007798462000750565b6200075a565b62000750565b9050919050565b6000819050919050565b620007a18362000764565b620007b9620007b0826200078c565b848454620006fa565b825550505050565b600090565b620007d0620007c1565b620007dd81848462000796565b505050565b5b818110156200080557620007f9600082620007c6565b600181019050620007e3565b5050565b601f82111562000854576200081e81620006c8565b6200082984620006dd565b8101602085101562000839578190505b620008516200084885620006dd565b830182620007e2565b50505b505050565b600082821c905092915050565b6000620008796000198460080262000859565b1980831691505092915050565b600062000894838362000866565b9150826002028217905092915050565b620008af826200062a565b67ffffffffffffffff811115620008cb57620008ca62000635565b5b620008d7825462000693565b620008e482828562000809565b600060209050601f8311600181146200091c576000841562000907578287015190505b62000913858262000886565b86555062000983565b601f1984166200092c86620006c8565b60005b8281101562000956578489015182556001820191506020850194506020810190506200092f565b8683101562000976578489015162000972601f89168262000866565b8355505b6001600288020188555050505b505050505050565b62000996816200055d565b82525050565b6000602082019050620009b360008301846200098b565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6000620009f2620009ec620009e684620009b9565b6200075a565b62000750565b9050919050565b62000a0481620009d1565b82525050565b62000a158162000750565b82525050565b600060408201905062000a326000830185620009f9565b62000a41602083018462000a0a565b9392505050565b6146ba8062000a586000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80636ed7db781161010f578063a22cb465116100a2578063d395242f11610071578063d395242f14610599578063e985e9c5146105cb578063f2fde38b146105fb578063f547f92814610617576101e5565b8063a22cb46514610501578063b88d4fde1461051d578063c0c127dd14610539578063c87b56dd14610569576101e5565b80638ada6b0f116100de5780638ada6b0f146104775780638da5cb5b1461049557806395d89b41146104b3578063970d9036146104d1576101e5565b80636ed7db781461040357806370a0823114610421578063715018a6146104515780637f3075a51461045b576101e5565b806323b872dd1161018757806342842e0e1161015657806342842e0e1461036557806356d3163d1461038157806360c8cd801461039d5780636352211e146103d3576101e5565b806323b872dd146102de5780632a55205a146102fa5780633a6e674c1461032b5780633e68119c14610349576101e5565b8063095ea7b3116101c3578063095ea7b31461026857806318160ddd1461028457806321ea07e1146102a257806322509b26146102c0576101e5565b806301ffc9a7146101ea57806306fdde031461021a578063081812fc14610238575b600080fd5b61020460048036038101906101ff919061316e565b610635565b60405161021191906131b6565b60405180910390f35b610222610647565b60405161022f9190613261565b60405180910390f35b610252600480360381019061024d91906132b9565b6106d9565b60405161025f9190613327565b60405180910390f35b610282600480360381019061027d919061336e565b6106f5565b005b61028c61070b565b60405161029991906133bd565b60405180910390f35b6102aa610711565b6040516102b79190613437565b60405180910390f35b6102c8610737565b6040516102d59190613473565b60405180910390f35b6102f860048036038101906102f3919061348e565b61075d565b005b610314600480360381019061030f91906134e1565b61085f565b604051610322929190613521565b60405180910390f35b610333610a49565b604051610340919061356b565b60405180910390f35b610363600480360381019061035e91906132b9565b610a6f565b005b61037f600480360381019061037a919061348e565b611152565b005b61039b60048036038101906103969190613586565b611172565b005b6103b760048036038101906103b291906132b9565b6111be565b6040516103ca97969594939291906135cc565b60405180910390f35b6103ed60048036038101906103e891906132b9565b611295565b6040516103fa9190613327565b60405180910390f35b61040b6112a7565b6040516104189190613663565b60405180910390f35b61043b60048036038101906104369190613586565b6112cd565b60405161044891906133bd565b60405180910390f35b610459611387565b005b610475600480360381019061047091906137b3565b61139b565b005b61047f611ac7565b60405161048c9190613830565b60405180910390f35b61049d611aed565b6040516104aa9190613327565b60405180910390f35b6104bb611b17565b6040516104c89190613261565b60405180910390f35b6104eb60048036038101906104e691906132b9565b611ba9565b6040516104f8919061384b565b60405180910390f35b61051b60048036038101906105169190613892565b611d50565b005b61053760048036038101906105329190613973565b611d66565b005b610553600480360381019061054e91906132b9565b611d83565b60405161056091906133bd565b60405180910390f35b610583600480360381019061057e91906132b9565b611da1565b6040516105909190613261565b60405180910390f35b6105b360048036038101906105ae9190613a22565b611e4b565b6040516105c293929190613a4f565b60405180910390f35b6105e560048036038101906105e09190613a8d565b611fb9565b6040516105f291906131b6565b60405180910390f35b61061560048036038101906106109190613586565b61204d565b005b61061f6120d3565b60405161062c9190613aee565b60405180910390f35b6000610640826120f9565b9050919050565b60606002805461065690613b38565b80601f016020809104026020016040519081016040528092919081815260200182805461068290613b38565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b5050505050905090565b60006106e4826121db565b506106ee82612263565b9050919050565b61070782826107026122a0565b6122a8565b5050565b60095481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036107cf5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016107c69190613327565b60405180910390fd5b60006107e383836107de6122a0565b6122ba565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610859578382826040517f64283d7b00000000000000000000000000000000000000000000000000000000815260040161085093929190613b69565b60405180910390fd5b50505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036109f45760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006109fe6124d4565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610a2a9190613bcf565b610a349190613c40565b90508160000151819350935050509250929050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610add576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad490613cbd565b60405180910390fd5b6106c0811015610e16576000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f836040518263ffffffff1660e01b8152600401610b4491906133bd565b600060405180830381865afa158015610b61573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610b8a9190613d62565b92505050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610be991906133bd565b602060405180830381865afa158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a9190613de6565b73ffffffffffffffffffffffffffffffffffffffff16610c486122a0565b73ffffffffffffffffffffffffffffffffffffffff1614610c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9590613e5f565b60405180910390fd5b6000815103610ce2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd990613ef1565b60405180910390fd5b6000600954905060006001600b600086815260200190815260200160002060000154610d0e9190613f11565b905060096000815480929190610d2390613f45565b919050555083600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b600086815260200190815260200160002060000181905550610d8284611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506000600a600084815260200190815260200160002060050160006101000a81548160ff021916908315150217905550610e12610e0c6122a0565b836124de565b5050505b6106bf81111561114f576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f836040518263ffffffff1660e01b8152600401610e7d91906133bd565b600060405180830381865afa158015610e9a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ec39190613d62565b92505050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610f2291906133bd565b602060405180830381865afa158015610f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f639190613de6565b73ffffffffffffffffffffffffffffffffffffffff16610f816122a0565b73ffffffffffffffffffffffffffffffffffffffff1614610fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fce90613e5f565b60405180910390fd5b600081510361101b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101290613ef1565b60405180910390fd5b6000600954905060006001600b6000868152602001908152602001600020600001546110479190613f11565b90506009600081548092919061105c90613f45565b919050555083600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b6000868152602001908152602001600020600001819055506110bb84611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506000600a600084815260200190815260200160002060050160006101000a81548160ff02191690831515021790555061114b6111456122a0565b836124de565b5050505b50565b61116d83838360405180602001604052806000815250611d66565b505050565b61117a6124fc565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a6020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050160009054906101000a900460ff169080600601805461121290613b38565b80601f016020809104026020016040519081016040528092919081815260200182805461123e90613b38565b801561128b5780601f106112605761010080835404028352916020019161128b565b820191906000526020600020905b81548152906001019060200180831161126e57829003601f168201915b5050505050905087565b60006112a0826121db565b9050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113405760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016113379190613327565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61138f6124fc565b6113996000612583565b565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140090613cbd565b60405180910390fd5b6106c0821015611766576000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b815260040161147091906133bd565b600060405180830381865afa15801561148d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906114b69190613d62565b92505050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161151591906133bd565b602060405180830381865afa158015611532573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115569190613de6565b73ffffffffffffffffffffffffffffffffffffffff166115746122a0565b73ffffffffffffffffffffffffffffffffffffffff16146115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613e5f565b60405180910390fd5b600081510361160e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160590613ef1565b60405180910390fd5b6000600954905060006001600b60008781526020019081526020016000206000015461163a9190613f11565b90506009600081548092919061164f90613f45565b919050555084600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b6000878152602001908152602001600020600001819055506116ae85611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506001600a600084815260200190815260200160002060050160006101000a81548160ff02191690831515021790555083600a60008481526020019081526020016000206006019081611750919061412f565b5061176261175c6122a0565b836124de565b5050505b6106bf821115611ac3576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b81526004016117cd91906133bd565b600060405180830381865afa1580156117ea573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118139190613d62565b92505050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161187291906133bd565b602060405180830381865afa15801561188f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b39190613de6565b73ffffffffffffffffffffffffffffffffffffffff166118d16122a0565b73ffffffffffffffffffffffffffffffffffffffff1614611927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191e90613e5f565b60405180910390fd5b600081510361196b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196290613ef1565b60405180910390fd5b6000600954905060006001600b6000878152602001908152602001600020600001546119979190613f11565b9050600960008154809291906119ac90613f45565b919050555084600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b600087815260200190815260200160002060000181905550611a0b85611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506001600a600084815260200190815260200160002060050160006101000a81548160ff02191690831515021790555083600a60008481526020019081526020016000206006019081611aad919061412f565b50611abf611ab96122a0565b836124de565b5050505b5050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b2690613b38565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5290613b38565b8015611b9f5780601f10611b7457610100808354040283529160200191611b9f565b820191906000526020600020905b815481529060010190602001808311611b8257829003601f168201915b5050505050905090565b60006106c0821015611c7b57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a52e640e611bfc84612649565b604051602001611c0c9190614263565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611c379190613261565b602060405180830381865afa158015611c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c78919061429e565b90505b6106bf821115611d4b57600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a52e640e611ccc84612649565b604051602001611cdc9190614263565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611d079190613261565b602060405180830381865afa158015611d24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d48919061429e565b90505b919050565b611d62611d5b6122a0565b83836127a8565b5050565b611d7184848461075d565b611d7d84848484612917565b50505050565b600b6020528060005260406000206000915090508060000154905081565b6060601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611dfe91906133bd565b600060405180830381865afa158015611e1b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e4491906142cb565b9050919050565b6000806060600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631bf226ac856040518263ffffffff1660e01b8152600401611eab919061384b565b602060405180830381865afa158015611ec8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eec9190613de6565b9250600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166331654b09856040518263ffffffff1660e01b8152600401611f49919061384b565b602060405180830381865afa158015611f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8a9190614314565b9150611fb0611f9884612ace565b806020019051810190611fab91906144cf565b612b0e565b90509193909250565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120556124fc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120c75760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016120be9190613327565b60405180910390fd5b6120d081612583565b50565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121c457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121d457506121d382612b82565b5b9050919050565b6000806121e783612bfc565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361225a57826040517f7e27328900000000000000000000000000000000000000000000000000000000815260040161225191906133bd565b60405180910390fd5b80915050919050565b60006006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b6122b58383836001612c39565b505050565b6000806122c684612bfc565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461230857612307818486612dfe565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123995761234a600085600080612c39565b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461241c576001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846004600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6000612710905090565b6124f8828260405180602001604052806000815250612ec2565b5050565b6125046122a0565b73ffffffffffffffffffffffffffffffffffffffff16612522611aed565b73ffffffffffffffffffffffffffffffffffffffff1614612581576125456122a0565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016125789190613327565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008203612690576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127a3565b600082905060005b600082146126c25780806126ab90613f45565b915050600a826126bb9190613c40565b9150612698565b60008167ffffffffffffffff8111156126de576126dd613688565b5b6040519080825280601f01601f1916602001820160405280156127105781602001600182028036833780820191505090505b5090505b6000851461279c57818061272790614518565b925050600a856127379190614541565b60306127439190613f11565b60f81b81838151811061275957612758614572565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127959190613c40565b9450612714565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361281957816040517f5b08ba180000000000000000000000000000000000000000000000000000000081526004016128109190613327565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161290a91906131b6565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115612ac8578273ffffffffffffffffffffffffffffffffffffffff1663150b7a0261295b6122a0565b8685856040518563ffffffff1660e01b815260040161297d94939291906145f6565b6020604051808303816000875af19250505080156129b957506040513d601f19601f820116820180604052508101906129b69190614657565b60015b612a3d573d80600081146129e9576040519150601f19603f3d011682016040523d82523d6000602084013e6129ee565b606091505b506000815103612a3557836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612a2c9190613327565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ac657836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612abd9190613327565b60405180910390fd5b505b50505050565b6060813b80612ae5576311052bb46000526004601cfd5b60018103604051925061ffe0603f820116830160405280835280600160208501863c5050919050565b60606000826020015190508051602060405193506000806000805b85811015612b6357602081026020018701519250602083015191506001823b039350836001868a01843c8385019450600181019050612b29565b50602084038752601f19601f8501168701604052505050505050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bf55750612bf482612ede565b5b9050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080612c725750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612da6576000612c82846121db565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612ced57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015612d005750612cfe8184611fb9565b155b15612d4257826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401612d399190613327565b60405180910390fd5b8115612da457838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836006600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612e09838383612f48565b612ebd57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e7e57806040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612e7591906133bd565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612eb4929190613521565b60405180910390fd5b505050565b612ecc8383613009565b612ed96000848484612917565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561300057508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612fc15750612fc08484611fb9565b5b80612fff57508273ffffffffffffffffffffffffffffffffffffffff16612fe783612263565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361307b5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016130729190613327565b60405180910390fd5b6000613089838360006122ba565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146130fd5760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016130f49190613327565b60405180910390fd5b505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61314b81613116565b811461315657600080fd5b50565b60008135905061316881613142565b92915050565b6000602082840312156131845761318361310c565b5b600061319284828501613159565b91505092915050565b60008115159050919050565b6131b08161319b565b82525050565b60006020820190506131cb60008301846131a7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561320b5780820151818401526020810190506131f0565b60008484015250505050565b6000601f19601f8301169050919050565b6000613233826131d1565b61323d81856131dc565b935061324d8185602086016131ed565b61325681613217565b840191505092915050565b6000602082019050818103600083015261327b8184613228565b905092915050565b6000819050919050565b61329681613283565b81146132a157600080fd5b50565b6000813590506132b38161328d565b92915050565b6000602082840312156132cf576132ce61310c565b5b60006132dd848285016132a4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613311826132e6565b9050919050565b61332181613306565b82525050565b600060208201905061333c6000830184613318565b92915050565b61334b81613306565b811461335657600080fd5b50565b60008135905061336881613342565b92915050565b600080604083850312156133855761338461310c565b5b600061339385828601613359565b92505060206133a4858286016132a4565b9150509250929050565b6133b781613283565b82525050565b60006020820190506133d260008301846133ae565b92915050565b6000819050919050565b60006133fd6133f86133f3846132e6565b6133d8565b6132e6565b9050919050565b600061340f826133e2565b9050919050565b600061342182613404565b9050919050565b61343181613416565b82525050565b600060208201905061344c6000830184613428565b92915050565b600061345d82613404565b9050919050565b61346d81613452565b82525050565b60006020820190506134886000830184613464565b92915050565b6000806000606084860312156134a7576134a661310c565b5b60006134b586828701613359565b93505060206134c686828701613359565b92505060406134d7868287016132a4565b9150509250925092565b600080604083850312156134f8576134f761310c565b5b6000613506858286016132a4565b9250506020613517858286016132a4565b9150509250929050565b60006040820190506135366000830185613318565b61354360208301846133ae565b9392505050565b600061355582613404565b9050919050565b6135658161354a565b82525050565b6000602082019050613580600083018461355c565b92915050565b60006020828403121561359c5761359b61310c565b5b60006135aa84828501613359565b91505092915050565b6000819050919050565b6135c6816135b3565b82525050565b600060e0820190506135e1600083018a6133ae565b6135ee60208301896133ae565b6135fb60408301886135bd565b61360860608301876133ae565b61361560808301866133ae565b61362260a08301856131a7565b81810360c08301526136348184613228565b905098975050505050505050565b600061364d82613404565b9050919050565b61365d81613642565b82525050565b60006020820190506136786000830184613654565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136c082613217565b810181811067ffffffffffffffff821117156136df576136de613688565b5b80604052505050565b60006136f2613102565b90506136fe82826136b7565b919050565b600067ffffffffffffffff82111561371e5761371d613688565b5b61372782613217565b9050602081019050919050565b82818337600083830152505050565b600061375661375184613703565b6136e8565b90508281526020810184848401111561377257613771613683565b5b61377d848285613734565b509392505050565b600082601f83011261379a5761379961367e565b5b81356137aa848260208601613743565b91505092915050565b600080604083850312156137ca576137c961310c565b5b60006137d8858286016132a4565b925050602083013567ffffffffffffffff8111156137f9576137f8613111565b5b61380585828601613785565b9150509250929050565b600061381a82613404565b9050919050565b61382a8161380f565b82525050565b60006020820190506138456000830184613821565b92915050565b600060208201905061386060008301846135bd565b92915050565b61386f8161319b565b811461387a57600080fd5b50565b60008135905061388c81613866565b92915050565b600080604083850312156138a9576138a861310c565b5b60006138b785828601613359565b92505060206138c88582860161387d565b9150509250929050565b600067ffffffffffffffff8211156138ed576138ec613688565b5b6138f682613217565b9050602081019050919050565b6000613916613911846138d2565b6136e8565b90508281526020810184848401111561393257613931613683565b5b61393d848285613734565b509392505050565b600082601f83011261395a5761395961367e565b5b813561396a848260208601613903565b91505092915050565b6000806000806080858703121561398d5761398c61310c565b5b600061399b87828801613359565b94505060206139ac87828801613359565b93505060406139bd878288016132a4565b925050606085013567ffffffffffffffff8111156139de576139dd613111565b5b6139ea87828801613945565b91505092959194509250565b6139ff816135b3565b8114613a0a57600080fd5b50565b600081359050613a1c816139f6565b92915050565b600060208284031215613a3857613a3761310c565b5b6000613a4684828501613a0d565b91505092915050565b6000606082019050613a646000830186613318565b613a7160208301856133ae565b8181036040830152613a838184613228565b9050949350505050565b60008060408385031215613aa457613aa361310c565b5b6000613ab285828601613359565b9250506020613ac385828601613359565b9150509250929050565b6000613ad882613404565b9050919050565b613ae881613acd565b82525050565b6000602082019050613b036000830184613adf565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b5057607f821691505b602082108103613b6357613b62613b09565b5b50919050565b6000606082019050613b7e6000830186613318565b613b8b60208301856133ae565b613b986040830184613318565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613bda82613283565b9150613be583613283565b9250828202613bf381613283565b91508282048414831517613c0a57613c09613ba0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c4b82613283565b9150613c5683613283565b925082613c6657613c65613c11565b5b828204905092915050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b6000613ca7601e836131dc565b9150613cb282613c71565b602082019050919050565b60006020820190508181036000830152613cd681613c9a565b9050919050565b600081519050613cec8161328d565b92915050565b6000613d05613d0084613703565b6136e8565b905082815260208101848484011115613d2157613d20613683565b5b613d2c8482856131ed565b509392505050565b600082601f830112613d4957613d4861367e565b5b8151613d59848260208601613cf2565b91505092915050565b600080600060608486031215613d7b57613d7a61310c565b5b6000613d8986828701613cdd565b9350506020613d9a86828701613cdd565b925050604084015167ffffffffffffffff811115613dbb57613dba613111565b5b613dc786828701613d34565b9150509250925092565b600081519050613de081613342565b92915050565b600060208284031215613dfc57613dfb61310c565b5b6000613e0a84828501613dd1565b91505092915050565b7f4e6f7420417574686f72697a6564000000000000000000000000000000000000600082015250565b6000613e49600e836131dc565b9150613e5482613e13565b602082019050919050565b60006020820190508181036000830152613e7881613e3c565b9050919050565b7f596f75206e65656420746f20636c61696d206120776f726420746f20756e6c6f60008201527f636b207468652066656174757265000000000000000000000000000000000000602082015250565b6000613edb602e836131dc565b9150613ee682613e7f565b604082019050919050565b60006020820190508181036000830152613f0a81613ece565b9050919050565b6000613f1c82613283565b9150613f2783613283565b9250828201905080821115613f3f57613f3e613ba0565b5b92915050565b6000613f5082613283565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f8257613f81613ba0565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613fef7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613fb2565b613ff98683613fb2565b95508019841693508086168417925050509392505050565b600061402c61402761402284613283565b6133d8565b613283565b9050919050565b6000819050919050565b61404683614011565b61405a61405282614033565b848454613fbf565b825550505050565b600090565b61406f614062565b61407a81848461403d565b505050565b5b8181101561409e57614093600082614067565b600181019050614080565b5050565b601f8211156140e3576140b481613f8d565b6140bd84613fa2565b810160208510156140cc578190505b6140e06140d885613fa2565b83018261407f565b50505b505050565b600082821c905092915050565b6000614106600019846008026140e8565b1980831691505092915050565b600061411f83836140f5565b9150826002028217905092915050565b614138826131d1565b67ffffffffffffffff81111561415157614150613688565b5b61415b8254613b38565b6141668282856140a2565b600060209050601f8311600181146141995760008415614187578287015190505b6141918582614113565b8655506141f9565b601f1984166141a786613f8d565b60005b828110156141cf578489015182556001820191506020850194506020810190506141aa565b868310156141ec57848901516141e8601f8916826140f5565b8355505b6001600288020188555050505b505050505050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600081905092915050565b600061423d826131d1565b6142478185614227565b93506142578185602086016131ed565b80840191505092915050565b600061426e82614201565b600b8201915061427e8284614232565b915081905092915050565b600081519050614298816139f6565b92915050565b6000602082840312156142b4576142b361310c565b5b60006142c284828501614289565b91505092915050565b6000602082840312156142e1576142e061310c565b5b600082015167ffffffffffffffff8111156142ff576142fe613111565b5b61430b84828501613d34565b91505092915050565b60006020828403121561432a5761432961310c565b5b600061433884828501613cdd565b91505092915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561436657614365613688565b5b602082029050602081019050919050565b600080fd5b60006040828403121561439257614391614341565b5b61439c60406136e8565b905060006143ac84828501614289565b60008301525060206143c084828501613dd1565b60208301525092915050565b60006143df6143da8461434b565b6136e8565b9050808382526020820190506040840283018581111561440257614401614377565b5b835b8181101561442b5780614417888261437c565b845260208401935050604081019050614404565b5050509392505050565b600082601f83011261444a5761444961367e565b5b815161445a8482602086016143cc565b91505092915050565b60006040828403121561447957614478614341565b5b61448360406136e8565b9050600061449384828501613cdd565b600083015250602082015167ffffffffffffffff8111156144b7576144b6614346565b5b6144c384828501614435565b60208301525092915050565b6000602082840312156144e5576144e461310c565b5b600082015167ffffffffffffffff81111561450357614502613111565b5b61450f84828501614463565b91505092915050565b600061452382613283565b91506000820361453657614535613ba0565b5b600182039050919050565b600061454c82613283565b915061455783613283565b92508261456757614566613c11565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60006145c8826145a1565b6145d281856145ac565b93506145e28185602086016131ed565b6145eb81613217565b840191505092915050565b600060808201905061460b6000830187613318565b6146186020830186613318565b61462560408301856133ae565b818103606083015261463781846145bd565b905095945050505050565b60008151905061465181613142565b92915050565b60006020828403121561466d5761466c61310c565b5b600061467b84828501614642565b9150509291505056fea2646970667358221220625312c6084388aa184a2f995112f8e795c5d85e52fcf1af66652723eefdb20964736f6c634300081600330000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b0000000000000000000000001532bdc14ca87df4a7bd76c0856ddd108314002b00000000000000000000000001044883ed596a50e211ab2eaffd9a43ad382c8c0000000000000000000000009d0f5277d19075ec1201ff94a483c5bcee718d2000000000000000000000000013d3cc46a839ab3ba3b527c5c9d98fda724432f6
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80636ed7db781161010f578063a22cb465116100a2578063d395242f11610071578063d395242f14610599578063e985e9c5146105cb578063f2fde38b146105fb578063f547f92814610617576101e5565b8063a22cb46514610501578063b88d4fde1461051d578063c0c127dd14610539578063c87b56dd14610569576101e5565b80638ada6b0f116100de5780638ada6b0f146104775780638da5cb5b1461049557806395d89b41146104b3578063970d9036146104d1576101e5565b80636ed7db781461040357806370a0823114610421578063715018a6146104515780637f3075a51461045b576101e5565b806323b872dd1161018757806342842e0e1161015657806342842e0e1461036557806356d3163d1461038157806360c8cd801461039d5780636352211e146103d3576101e5565b806323b872dd146102de5780632a55205a146102fa5780633a6e674c1461032b5780633e68119c14610349576101e5565b8063095ea7b3116101c3578063095ea7b31461026857806318160ddd1461028457806321ea07e1146102a257806322509b26146102c0576101e5565b806301ffc9a7146101ea57806306fdde031461021a578063081812fc14610238575b600080fd5b61020460048036038101906101ff919061316e565b610635565b60405161021191906131b6565b60405180910390f35b610222610647565b60405161022f9190613261565b60405180910390f35b610252600480360381019061024d91906132b9565b6106d9565b60405161025f9190613327565b60405180910390f35b610282600480360381019061027d919061336e565b6106f5565b005b61028c61070b565b60405161029991906133bd565b60405180910390f35b6102aa610711565b6040516102b79190613437565b60405180910390f35b6102c8610737565b6040516102d59190613473565b60405180910390f35b6102f860048036038101906102f3919061348e565b61075d565b005b610314600480360381019061030f91906134e1565b61085f565b604051610322929190613521565b60405180910390f35b610333610a49565b604051610340919061356b565b60405180910390f35b610363600480360381019061035e91906132b9565b610a6f565b005b61037f600480360381019061037a919061348e565b611152565b005b61039b60048036038101906103969190613586565b611172565b005b6103b760048036038101906103b291906132b9565b6111be565b6040516103ca97969594939291906135cc565b60405180910390f35b6103ed60048036038101906103e891906132b9565b611295565b6040516103fa9190613327565b60405180910390f35b61040b6112a7565b6040516104189190613663565b60405180910390f35b61043b60048036038101906104369190613586565b6112cd565b60405161044891906133bd565b60405180910390f35b610459611387565b005b610475600480360381019061047091906137b3565b61139b565b005b61047f611ac7565b60405161048c9190613830565b60405180910390f35b61049d611aed565b6040516104aa9190613327565b60405180910390f35b6104bb611b17565b6040516104c89190613261565b60405180910390f35b6104eb60048036038101906104e691906132b9565b611ba9565b6040516104f8919061384b565b60405180910390f35b61051b60048036038101906105169190613892565b611d50565b005b61053760048036038101906105329190613973565b611d66565b005b610553600480360381019061054e91906132b9565b611d83565b60405161056091906133bd565b60405180910390f35b610583600480360381019061057e91906132b9565b611da1565b6040516105909190613261565b60405180910390f35b6105b360048036038101906105ae9190613a22565b611e4b565b6040516105c293929190613a4f565b60405180910390f35b6105e560048036038101906105e09190613a8d565b611fb9565b6040516105f291906131b6565b60405180910390f35b61061560048036038101906106109190613586565b61204d565b005b61061f6120d3565b60405161062c9190613aee565b60405180910390f35b6000610640826120f9565b9050919050565b60606002805461065690613b38565b80601f016020809104026020016040519081016040528092919081815260200182805461068290613b38565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b5050505050905090565b60006106e4826121db565b506106ee82612263565b9050919050565b61070782826107026122a0565b6122a8565b5050565b60095481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036107cf5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016107c69190613327565b60405180910390fd5b60006107e383836107de6122a0565b6122ba565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610859578382826040517f64283d7b00000000000000000000000000000000000000000000000000000000815260040161085093929190613b69565b60405180910390fd5b50505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036109f45760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006109fe6124d4565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610a2a9190613bcf565b610a349190613c40565b90508160000151819350935050509250929050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610add576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad490613cbd565b60405180910390fd5b6106c0811015610e16576000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f836040518263ffffffff1660e01b8152600401610b4491906133bd565b600060405180830381865afa158015610b61573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610b8a9190613d62565b92505050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610be991906133bd565b602060405180830381865afa158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a9190613de6565b73ffffffffffffffffffffffffffffffffffffffff16610c486122a0565b73ffffffffffffffffffffffffffffffffffffffff1614610c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9590613e5f565b60405180910390fd5b6000815103610ce2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd990613ef1565b60405180910390fd5b6000600954905060006001600b600086815260200190815260200160002060000154610d0e9190613f11565b905060096000815480929190610d2390613f45565b919050555083600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b600086815260200190815260200160002060000181905550610d8284611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506000600a600084815260200190815260200160002060050160006101000a81548160ff021916908315150217905550610e12610e0c6122a0565b836124de565b5050505b6106bf81111561114f576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f836040518263ffffffff1660e01b8152600401610e7d91906133bd565b600060405180830381865afa158015610e9a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ec39190613d62565b92505050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610f2291906133bd565b602060405180830381865afa158015610f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f639190613de6565b73ffffffffffffffffffffffffffffffffffffffff16610f816122a0565b73ffffffffffffffffffffffffffffffffffffffff1614610fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fce90613e5f565b60405180910390fd5b600081510361101b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101290613ef1565b60405180910390fd5b6000600954905060006001600b6000868152602001908152602001600020600001546110479190613f11565b90506009600081548092919061105c90613f45565b919050555083600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b6000868152602001908152602001600020600001819055506110bb84611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506000600a600084815260200190815260200160002060050160006101000a81548160ff02191690831515021790555061114b6111456122a0565b836124de565b5050505b50565b61116d83838360405180602001604052806000815250611d66565b505050565b61117a6124fc565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a6020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050160009054906101000a900460ff169080600601805461121290613b38565b80601f016020809104026020016040519081016040528092919081815260200182805461123e90613b38565b801561128b5780601f106112605761010080835404028352916020019161128b565b820191906000526020600020905b81548152906001019060200180831161126e57829003601f168201915b5050505050905087565b60006112a0826121db565b9050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113405760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016113379190613327565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61138f6124fc565b6113996000612583565b565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140090613cbd565b60405180910390fd5b6106c0821015611766576000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b815260040161147091906133bd565b600060405180830381865afa15801561148d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906114b69190613d62565b92505050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161151591906133bd565b602060405180830381865afa158015611532573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115569190613de6565b73ffffffffffffffffffffffffffffffffffffffff166115746122a0565b73ffffffffffffffffffffffffffffffffffffffff16146115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613e5f565b60405180910390fd5b600081510361160e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160590613ef1565b60405180910390fd5b6000600954905060006001600b60008781526020019081526020016000206000015461163a9190613f11565b90506009600081548092919061164f90613f45565b919050555084600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b6000878152602001908152602001600020600001819055506116ae85611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506001600a600084815260200190815260200160002060050160006101000a81548160ff02191690831515021790555083600a60008481526020019081526020016000206006019081611750919061412f565b5061176261175c6122a0565b836124de565b5050505b6106bf821115611ac3576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b81526004016117cd91906133bd565b600060405180830381865afa1580156117ea573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118139190613d62565b92505050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161187291906133bd565b602060405180830381865afa15801561188f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b39190613de6565b73ffffffffffffffffffffffffffffffffffffffff166118d16122a0565b73ffffffffffffffffffffffffffffffffffffffff1614611927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191e90613e5f565b60405180910390fd5b600081510361196b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196290613ef1565b60405180910390fd5b6000600954905060006001600b6000878152602001908152602001600020600001546119979190613f11565b9050600960008154809291906119ac90613f45565b919050555084600a60008481526020019081526020016000206000018190555080600a60008481526020019081526020016000206001018190555080600b600087815260200190815260200160002060000181905550611a0b85611ba9565b600a60008481526020019081526020016000206002018190555043600a60008481526020019081526020016000206003018190555042600a6000848152602001908152602001600020600401819055506001600a600084815260200190815260200160002060050160006101000a81548160ff02191690831515021790555083600a60008481526020019081526020016000206006019081611aad919061412f565b50611abf611ab96122a0565b836124de565b5050505b5050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b2690613b38565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5290613b38565b8015611b9f5780601f10611b7457610100808354040283529160200191611b9f565b820191906000526020600020905b815481529060010190602001808311611b8257829003601f168201915b5050505050905090565b60006106c0821015611c7b57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a52e640e611bfc84612649565b604051602001611c0c9190614263565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611c379190613261565b602060405180830381865afa158015611c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c78919061429e565b90505b6106bf821115611d4b57600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a52e640e611ccc84612649565b604051602001611cdc9190614263565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611d079190613261565b602060405180830381865afa158015611d24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d48919061429e565b90505b919050565b611d62611d5b6122a0565b83836127a8565b5050565b611d7184848461075d565b611d7d84848484612917565b50505050565b600b6020528060005260406000206000915090508060000154905081565b6060601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611dfe91906133bd565b600060405180830381865afa158015611e1b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e4491906142cb565b9050919050565b6000806060600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631bf226ac856040518263ffffffff1660e01b8152600401611eab919061384b565b602060405180830381865afa158015611ec8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eec9190613de6565b9250600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166331654b09856040518263ffffffff1660e01b8152600401611f49919061384b565b602060405180830381865afa158015611f66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8a9190614314565b9150611fb0611f9884612ace565b806020019051810190611fab91906144cf565b612b0e565b90509193909250565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120556124fc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120c75760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016120be9190613327565b60405180910390fd5b6120d081612583565b50565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121c457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121d457506121d382612b82565b5b9050919050565b6000806121e783612bfc565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361225a57826040517f7e27328900000000000000000000000000000000000000000000000000000000815260040161225191906133bd565b60405180910390fd5b80915050919050565b60006006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b6122b58383836001612c39565b505050565b6000806122c684612bfc565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461230857612307818486612dfe565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123995761234a600085600080612c39565b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461241c576001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846004600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6000612710905090565b6124f8828260405180602001604052806000815250612ec2565b5050565b6125046122a0565b73ffffffffffffffffffffffffffffffffffffffff16612522611aed565b73ffffffffffffffffffffffffffffffffffffffff1614612581576125456122a0565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016125789190613327565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008203612690576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127a3565b600082905060005b600082146126c25780806126ab90613f45565b915050600a826126bb9190613c40565b9150612698565b60008167ffffffffffffffff8111156126de576126dd613688565b5b6040519080825280601f01601f1916602001820160405280156127105781602001600182028036833780820191505090505b5090505b6000851461279c57818061272790614518565b925050600a856127379190614541565b60306127439190613f11565b60f81b81838151811061275957612758614572565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127959190613c40565b9450612714565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361281957816040517f5b08ba180000000000000000000000000000000000000000000000000000000081526004016128109190613327565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161290a91906131b6565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115612ac8578273ffffffffffffffffffffffffffffffffffffffff1663150b7a0261295b6122a0565b8685856040518563ffffffff1660e01b815260040161297d94939291906145f6565b6020604051808303816000875af19250505080156129b957506040513d601f19601f820116820180604052508101906129b69190614657565b60015b612a3d573d80600081146129e9576040519150601f19603f3d011682016040523d82523d6000602084013e6129ee565b606091505b506000815103612a3557836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612a2c9190613327565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ac657836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612abd9190613327565b60405180910390fd5b505b50505050565b6060813b80612ae5576311052bb46000526004601cfd5b60018103604051925061ffe0603f820116830160405280835280600160208501863c5050919050565b60606000826020015190508051602060405193506000806000805b85811015612b6357602081026020018701519250602083015191506001823b039350836001868a01843c8385019450600181019050612b29565b50602084038752601f19601f8501168701604052505050505050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bf55750612bf482612ede565b5b9050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8080612c725750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612da6576000612c82846121db565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612ced57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015612d005750612cfe8184611fb9565b155b15612d4257826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401612d399190613327565b60405180910390fd5b8115612da457838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836006600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612e09838383612f48565b612ebd57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e7e57806040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612e7591906133bd565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612eb4929190613521565b60405180910390fd5b505050565b612ecc8383613009565b612ed96000848484612917565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561300057508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612fc15750612fc08484611fb9565b5b80612fff57508273ffffffffffffffffffffffffffffffffffffffff16612fe783612263565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361307b5760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016130729190613327565b60405180910390fd5b6000613089838360006122ba565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146130fd5760006040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081526004016130f49190613327565b60405180910390fd5b505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61314b81613116565b811461315657600080fd5b50565b60008135905061316881613142565b92915050565b6000602082840312156131845761318361310c565b5b600061319284828501613159565b91505092915050565b60008115159050919050565b6131b08161319b565b82525050565b60006020820190506131cb60008301846131a7565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561320b5780820151818401526020810190506131f0565b60008484015250505050565b6000601f19601f8301169050919050565b6000613233826131d1565b61323d81856131dc565b935061324d8185602086016131ed565b61325681613217565b840191505092915050565b6000602082019050818103600083015261327b8184613228565b905092915050565b6000819050919050565b61329681613283565b81146132a157600080fd5b50565b6000813590506132b38161328d565b92915050565b6000602082840312156132cf576132ce61310c565b5b60006132dd848285016132a4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613311826132e6565b9050919050565b61332181613306565b82525050565b600060208201905061333c6000830184613318565b92915050565b61334b81613306565b811461335657600080fd5b50565b60008135905061336881613342565b92915050565b600080604083850312156133855761338461310c565b5b600061339385828601613359565b92505060206133a4858286016132a4565b9150509250929050565b6133b781613283565b82525050565b60006020820190506133d260008301846133ae565b92915050565b6000819050919050565b60006133fd6133f86133f3846132e6565b6133d8565b6132e6565b9050919050565b600061340f826133e2565b9050919050565b600061342182613404565b9050919050565b61343181613416565b82525050565b600060208201905061344c6000830184613428565b92915050565b600061345d82613404565b9050919050565b61346d81613452565b82525050565b60006020820190506134886000830184613464565b92915050565b6000806000606084860312156134a7576134a661310c565b5b60006134b586828701613359565b93505060206134c686828701613359565b92505060406134d7868287016132a4565b9150509250925092565b600080604083850312156134f8576134f761310c565b5b6000613506858286016132a4565b9250506020613517858286016132a4565b9150509250929050565b60006040820190506135366000830185613318565b61354360208301846133ae565b9392505050565b600061355582613404565b9050919050565b6135658161354a565b82525050565b6000602082019050613580600083018461355c565b92915050565b60006020828403121561359c5761359b61310c565b5b60006135aa84828501613359565b91505092915050565b6000819050919050565b6135c6816135b3565b82525050565b600060e0820190506135e1600083018a6133ae565b6135ee60208301896133ae565b6135fb60408301886135bd565b61360860608301876133ae565b61361560808301866133ae565b61362260a08301856131a7565b81810360c08301526136348184613228565b905098975050505050505050565b600061364d82613404565b9050919050565b61365d81613642565b82525050565b60006020820190506136786000830184613654565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136c082613217565b810181811067ffffffffffffffff821117156136df576136de613688565b5b80604052505050565b60006136f2613102565b90506136fe82826136b7565b919050565b600067ffffffffffffffff82111561371e5761371d613688565b5b61372782613217565b9050602081019050919050565b82818337600083830152505050565b600061375661375184613703565b6136e8565b90508281526020810184848401111561377257613771613683565b5b61377d848285613734565b509392505050565b600082601f83011261379a5761379961367e565b5b81356137aa848260208601613743565b91505092915050565b600080604083850312156137ca576137c961310c565b5b60006137d8858286016132a4565b925050602083013567ffffffffffffffff8111156137f9576137f8613111565b5b61380585828601613785565b9150509250929050565b600061381a82613404565b9050919050565b61382a8161380f565b82525050565b60006020820190506138456000830184613821565b92915050565b600060208201905061386060008301846135bd565b92915050565b61386f8161319b565b811461387a57600080fd5b50565b60008135905061388c81613866565b92915050565b600080604083850312156138a9576138a861310c565b5b60006138b785828601613359565b92505060206138c88582860161387d565b9150509250929050565b600067ffffffffffffffff8211156138ed576138ec613688565b5b6138f682613217565b9050602081019050919050565b6000613916613911846138d2565b6136e8565b90508281526020810184848401111561393257613931613683565b5b61393d848285613734565b509392505050565b600082601f83011261395a5761395961367e565b5b813561396a848260208601613903565b91505092915050565b6000806000806080858703121561398d5761398c61310c565b5b600061399b87828801613359565b94505060206139ac87828801613359565b93505060406139bd878288016132a4565b925050606085013567ffffffffffffffff8111156139de576139dd613111565b5b6139ea87828801613945565b91505092959194509250565b6139ff816135b3565b8114613a0a57600080fd5b50565b600081359050613a1c816139f6565b92915050565b600060208284031215613a3857613a3761310c565b5b6000613a4684828501613a0d565b91505092915050565b6000606082019050613a646000830186613318565b613a7160208301856133ae565b8181036040830152613a838184613228565b9050949350505050565b60008060408385031215613aa457613aa361310c565b5b6000613ab285828601613359565b9250506020613ac385828601613359565b9150509250929050565b6000613ad882613404565b9050919050565b613ae881613acd565b82525050565b6000602082019050613b036000830184613adf565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b5057607f821691505b602082108103613b6357613b62613b09565b5b50919050565b6000606082019050613b7e6000830186613318565b613b8b60208301856133ae565b613b986040830184613318565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613bda82613283565b9150613be583613283565b9250828202613bf381613283565b91508282048414831517613c0a57613c09613ba0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c4b82613283565b9150613c5683613283565b925082613c6657613c65613c11565b5b828204905092915050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b6000613ca7601e836131dc565b9150613cb282613c71565b602082019050919050565b60006020820190508181036000830152613cd681613c9a565b9050919050565b600081519050613cec8161328d565b92915050565b6000613d05613d0084613703565b6136e8565b905082815260208101848484011115613d2157613d20613683565b5b613d2c8482856131ed565b509392505050565b600082601f830112613d4957613d4861367e565b5b8151613d59848260208601613cf2565b91505092915050565b600080600060608486031215613d7b57613d7a61310c565b5b6000613d8986828701613cdd565b9350506020613d9a86828701613cdd565b925050604084015167ffffffffffffffff811115613dbb57613dba613111565b5b613dc786828701613d34565b9150509250925092565b600081519050613de081613342565b92915050565b600060208284031215613dfc57613dfb61310c565b5b6000613e0a84828501613dd1565b91505092915050565b7f4e6f7420417574686f72697a6564000000000000000000000000000000000000600082015250565b6000613e49600e836131dc565b9150613e5482613e13565b602082019050919050565b60006020820190508181036000830152613e7881613e3c565b9050919050565b7f596f75206e65656420746f20636c61696d206120776f726420746f20756e6c6f60008201527f636b207468652066656174757265000000000000000000000000000000000000602082015250565b6000613edb602e836131dc565b9150613ee682613e7f565b604082019050919050565b60006020820190508181036000830152613f0a81613ece565b9050919050565b6000613f1c82613283565b9150613f2783613283565b9250828201905080821115613f3f57613f3e613ba0565b5b92915050565b6000613f5082613283565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f8257613f81613ba0565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613fef7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613fb2565b613ff98683613fb2565b95508019841693508086168417925050509392505050565b600061402c61402761402284613283565b6133d8565b613283565b9050919050565b6000819050919050565b61404683614011565b61405a61405282614033565b848454613fbf565b825550505050565b600090565b61406f614062565b61407a81848461403d565b505050565b5b8181101561409e57614093600082614067565b600181019050614080565b5050565b601f8211156140e3576140b481613f8d565b6140bd84613fa2565b810160208510156140cc578190505b6140e06140d885613fa2565b83018261407f565b50505b505050565b600082821c905092915050565b6000614106600019846008026140e8565b1980831691505092915050565b600061411f83836140f5565b9150826002028217905092915050565b614138826131d1565b67ffffffffffffffff81111561415157614150613688565b5b61415b8254613b38565b6141668282856140a2565b600060209050601f8311600181146141995760008415614187578287015190505b6141918582614113565b8655506141f9565b601f1984166141a786613f8d565b60005b828110156141cf578489015182556001820191506020850194506020810190506141aa565b868310156141ec57848901516141e8601f8916826140f5565b8355505b6001600288020188555050505b505050505050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600081905092915050565b600061423d826131d1565b6142478185614227565b93506142578185602086016131ed565b80840191505092915050565b600061426e82614201565b600b8201915061427e8284614232565b915081905092915050565b600081519050614298816139f6565b92915050565b6000602082840312156142b4576142b361310c565b5b60006142c284828501614289565b91505092915050565b6000602082840312156142e1576142e061310c565b5b600082015167ffffffffffffffff8111156142ff576142fe613111565b5b61430b84828501613d34565b91505092915050565b60006020828403121561432a5761432961310c565b5b600061433884828501613cdd565b91505092915050565b600080fd5b600080fd5b600067ffffffffffffffff82111561436657614365613688565b5b602082029050602081019050919050565b600080fd5b60006040828403121561439257614391614341565b5b61439c60406136e8565b905060006143ac84828501614289565b60008301525060206143c084828501613dd1565b60208301525092915050565b60006143df6143da8461434b565b6136e8565b9050808382526020820190506040840283018581111561440257614401614377565b5b835b8181101561442b5780614417888261437c565b845260208401935050604081019050614404565b5050509392505050565b600082601f83011261444a5761444961367e565b5b815161445a8482602086016143cc565b91505092915050565b60006040828403121561447957614478614341565b5b61448360406136e8565b9050600061449384828501613cdd565b600083015250602082015167ffffffffffffffff8111156144b7576144b6614346565b5b6144c384828501614435565b60208301525092915050565b6000602082840312156144e5576144e461310c565b5b600082015167ffffffffffffffff81111561450357614502613111565b5b61450f84828501614463565b91505092915050565b600061452382613283565b91506000820361453657614535613ba0565b5b600182039050919050565b600061454c82613283565b915061455783613283565b92508261456757614566613c11565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60006145c8826145a1565b6145d281856145ac565b93506145e28185602086016131ed565b6145eb81613217565b840191505092915050565b600060808201905061460b6000830187613318565b6146186020830186613318565b61462560408301856133ae565b818103606083015261463781846145bd565b905095945050505050565b60008151905061465181613142565b92915050565b60006020828403121561466d5761466c61310c565b5b600061467b84828501614642565b9150509291505056fea2646970667358221220625312c6084388aa184a2f995112f8e795c5d85e52fcf1af66652723eefdb20964736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b0000000000000000000000001532bdc14ca87df4a7bd76c0856ddd108314002b00000000000000000000000001044883ed596a50e211ab2eaffd9a43ad382c8c0000000000000000000000009d0f5277d19075ec1201ff94a483c5bcee718d2000000000000000000000000013d3cc46a839ab3ba3b527c5c9d98fda724432f6
-----Decoded View---------------
Arg [0] : filestore_ (address): 0x9181580FCe530e5FBD8DbA7141Fc0cCBb8e59b8B
Arg [1] : filestoreBit_ (address): 0x1532BDC14CA87DF4A7bd76c0856DdD108314002B
Arg [2] : contentStore_ (address): 0x01044883Ed596a50e211ab2EAFFd9a43Ad382C8c
Arg [3] : cypherdudes_ (address): 0x9D0f5277D19075eC1201fF94a483c5bCEe718d20
Arg [4] : cypherdudesBit_ (address): 0x13d3Cc46a839Ab3Ba3b527C5c9d98fdA724432f6
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b
Arg [1] : 0000000000000000000000001532bdc14ca87df4a7bd76c0856ddd108314002b
Arg [2] : 00000000000000000000000001044883ed596a50e211ab2eaffd9a43ad382c8c
Arg [3] : 0000000000000000000000009d0f5277d19075ec1201ff94a483c5bcee718d20
Arg [4] : 00000000000000000000000013d3cc46a839ab3ba3b527c5c9d98fda724432f6
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.