ERC-721
Overview
Max Total Supply
0 DC
Holders
207
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DateCalendar
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "Ownable.sol"; import "Strings.sol"; import "SafeCast.sol"; /** * @title DateCalendar contract * * @dev Extends ERC721 Non-Fungible Token Standard basic implementation. */ contract DateCalendar is ERC721, Ownable { /** * @dev Emitted when `dateTokenIndex` token's `GCalDate` proof has been * created and saved to the contract. This event will contain the * variables of the `GCalDate`, excluding `day_of_week`. */ event DateProof(uint8 indexed day, uint8 indexed month, int256 indexed year); using Strings for uint256; using SafeCast for uint256; // Base URI for the Date Calendar contract string private _baseDCURI; // Flag indicating whether future dates can be minted. bool public allowFutureDates; // Midpoint value of the Date Token Index (DTI) range uint256 private constant _dtiMidpoint = 7305000000000; /** * @dev A Julian Date (JD) is composed * of two pieces, the Julian Day Number (JDN) * and day fraction. * * @param `jdn` describes the number of solar days * between the given day and a fixed day in history starting * from 12:00 UT (noon). * @param `dayFraction` is between 0 and 1, *`dayFraction` should be interpreted as the * number after the decimal point. I.e. * 5 means 0.5. 51 mean 0.51. */ struct JulianDate { int256 jdn; uint16 dayFraction; } // Unix epoch date (1970-01-01) JD JulianDate private _unixEpochJD = JulianDate(2440587, 5); /** * @dev Representation of a Gregorian * calendar date. * * @param `day_of_week` from 0 to 6 indicating * the day of the week, with 0 being Sunday, * 1 being Monday, etc. * @param `day`: integer from 1 to 31 indicating the * day of the month. * @param `month` integer from 1 to 12 indicating the * month of the year. * @param `year` signed integer for the year. The year * before 1 is 0, and the year before 0 is -1, etc. * A year of 1 is 1 CE, a year of 0 is 1 BCE, * a year of -1 is 2 BCE, etc. */ struct GCalDate { uint8 day_of_week; uint8 day; uint8 month; int256 year; } // Mapping from DTI to Gregorian calendar date proof mapping(uint256 => GCalDate) private _dateProofs; /** * @dev Initialize the contract with a `name` and `symbol`. */ constructor(string memory name, string memory symbol, bool allowFutureDates_) ERC721(name, symbol) { allowFutureDates = allowFutureDates_; } /** * @dev Set the base URI for the contract. Token URIs are derived from this base. */ function setBaseURI(string memory baseURI) public onlyOwner { _baseDCURI = baseURI; } function _baseURI() internal view override returns (string memory) { return _baseDCURI; } /** * @dev Retrieve the Gregorian calendar date proof of a date token index. */ function proofOf(uint256 dateTokenIndex) public view returns (GCalDate memory) { require(_exists(dateTokenIndex), "DateCalendar: date proof query for nonexistent token"); return _dateProofs[dateTokenIndex]; } /** * @dev Returns the number of days since the Unix epoch (1970-01-01). */ function _daysFromUnixEpoch() private view returns (uint256) { return block.timestamp / 1 days; } /** * @dev Determines the JD of the current block. */ function currentBlockJD() public view returns (JulianDate memory) { int256 unixDelta = int256(_daysFromUnixEpoch()); return JulianDate(_unixEpochJD.jdn + unixDelta, 5); } /** * @dev Convert a Date Token Index to a Julian Date. */ function _dtiToJD(uint256 dateTokenIndex) private pure returns (JulianDate memory) { int256 jdn = int256(dateTokenIndex) - int256(_dtiMidpoint); return JulianDate(jdn, 5); } /** * @dev Determines whether a JD has been released. */ function _isReleased(JulianDate memory julianDate) private view returns (bool) { if (allowFutureDates) { return true; } JulianDate memory currentJD = currentBlockJD(); return julianDate.jdn <= currentJD.jdn; } /** * @dev Mint a date calendar token. */ function mintDate(uint256 dateTokenIndex) public { JulianDate memory jd = _dtiToJD(dateTokenIndex); require(_isReleased(jd), "DateCalendar: date has not yet been released."); _safeMint(msg.sender, dateTokenIndex); _setDateProof(dateTokenIndex, jd); } /** * @dev Save the Gregorian calendar date proof for a given date token index. */ function _setDateProof(uint256 dateTokenIndex, JulianDate memory julianDate) private { (uint8 dow, uint8 d, uint8 m, int256 y) = _jdToGCalDateVariables(julianDate); GCalDate storage date = _dateProofs[dateTokenIndex]; date.day_of_week = dow; date.day = d; date.month = m; date.year = y; emit DateProof(d, m, y); } uint16[12] private _toGCalDateHelper = [0, 31, 61, 92, 122, 153, 184, 214, 245, 275, 306, 337]; /** * @dev Calculate the variables of a Gregorian calendar date from a JD. * * References * [1] P. Baum, "Date Algorithms", 2020. * [2] J. Meeus, "Astronomical Algorithms", pp. 65, 1998. */ function _jdToGCalDateVariables(JulianDate memory julianDate) private view returns (uint8, uint8, uint8, int256) { uint8 dow = _jdToDOW(julianDate); (uint8 d, uint8 m, int256 y) = _jdToDMY(julianDate); return (dow, d, m, y); } function _jdToDMY(JulianDate memory julianDate) private view returns (uint8, uint8, int256) { int256 z = julianDate.jdn - 1721118; int256 a_ = z * 100 - 25; int256 a = _divideAndFloor(a_, 3652425); int256 p1_ = _divideAndFloor(a, 4); int256 y_ = z * 100 - 25 + a * 100 - p1_ * 100; int256 y = _divideAndFloor(y_, 36525); int256 p2_ = _divideAndFloor(36525 * y, 100); uint256 c = uint256(z + a - p1_ - p2_); uint8 m = ((5 * c + 456) / 153).toUint8(); uint16 f = _toGCalDateHelper[m-3]; uint8 d = (c - f).toUint8(); if (m > 12) { y += 1; m -= 12; } return (d, m, y); } function _jdToDOW(JulianDate memory julianDate) private view returns (uint8) { uint256 dow = uint256(_clockModulo(julianDate.jdn + 2, 7)); return dow.toUint8(); } /** * @dev Take the floor of (x / y). Assumes y > 0. */ function _divideAndFloor(int256 x, int256 y) private pure returns (int256) { if (x >= 0) { // For positive division, floor is done by default. return x / y; } else { // For negative division, need to take the negative // of the ceiling of the positive division. return -((-x + y -1) / y); } } /** * @dev Modulo in solidity is a remainder. This returns the clock modulo * of (x % y). Assumes y > 0. */ function _clockModulo(int256 x, int256 y) private pure returns (int256) { return x - (y * _divideAndFloor(x, y)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "DateCalendar.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bool","name":"allowFutureDates_","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"day","type":"uint8"},{"indexed":true,"internalType":"uint8","name":"month","type":"uint8"},{"indexed":true,"internalType":"int256","name":"year","type":"int256"}],"name":"DateProof","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":[],"name":"allowFutureDates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBlockJD","outputs":[{"components":[{"internalType":"int256","name":"jdn","type":"int256"},{"internalType":"uint16","name":"dayFraction","type":"uint16"}],"internalType":"struct DateCalendar.JulianDate","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dateTokenIndex","type":"uint256"}],"name":"mintDate","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":[{"internalType":"uint256","name":"dateTokenIndex","type":"uint256"}],"name":"proofOf","outputs":[{"components":[{"internalType":"uint8","name":"day_of_week","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"int256","name":"year","type":"int256"}],"internalType":"struct DateCalendar.GCalDate","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
62253d8b6080819052600560a0819052600991909155600a805461ffff19169091179055610240604052600060c0908152601f60e052603d61010052605c61012052607a6101405260996101605260b86101805260d66101a05260f56101c0526101136101e05261013261020052610151610220526200008390600c908162000170565b503480156200009157600080fd5b506040516200231338038062002313833981016040819052620000b4916200036e565b825183908390620000cd9060009060208501906200020d565b508051620000e39060019060208401906200020d565b50505062000100620000fa6200011a60201b60201c565b6200011e565b6008805460ff1916911515919091179055506200042f9050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600183019183908215620001fb5791602002820160005b83821115620001c957835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000187565b8015620001f95782816101000a81549061ffff0219169055600201602081600101049283019260010302620001c9565b505b50620002099291506200028a565b5090565b8280546200021b90620003f2565b90600052602060002090601f0160209004810192826200023f5760008555620001fb565b82601f106200025a57805160ff1916838001178555620001fb565b82800160010185558215620001fb579182015b82811115620001fb5782518255916020019190600101906200026d565b5b808211156200020957600081556001016200028b565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002c957600080fd5b81516001600160401b0380821115620002e657620002e6620002a1565b604051601f8301601f19908116603f01168101908282118183101715620003115762000311620002a1565b816040528381526020925086838588010111156200032e57600080fd5b600091505b8382101562000352578582018301518183018401529082019062000333565b83821115620003645760008385830101525b9695505050505050565b6000806000606084860312156200038457600080fd5b83516001600160401b03808211156200039c57600080fd5b620003aa87838801620002b7565b94506020860151915080821115620003c157600080fd5b50620003d086828701620002b7565b92505060408401518015158114620003e757600080fd5b809150509250925092565b600181811c908216806200040757607f821691505b602082108114156200042957634e487b7160e01b600052602260045260246000fd5b50919050565b611ed4806200043f6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806370a08231116100b8578063a22cb4651161007c578063a22cb465146102d5578063b88d4fde146102e8578063c87b56dd146102fb578063e985e9c51461030e578063eae7298814610321578063f2fde38b1461032e57600080fd5b806370a0823114610280578063715018a6146102a15780637fdb655f146102a95780638da5cb5b146102bc57806395d89b41146102cd57600080fd5b806323b872dd116100ff57806323b872dd1461020d57806342842e0e146102205780635213e1f11461023357806355f804b31461025a5780636352211e1461026d57600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a45780630cc611b1146101b9575b600080fd5b61014f61014a3660046117be565b610341565b60405190151581526020015b60405180910390f35b61016c610393565b60405161015b9190611833565b61018c610187366004611846565b610425565b6040516001600160a01b03909116815260200161015b565b6101b76101b236600461187b565b6104bf565b005b6101cc6101c7366004611846565b6105d5565b60405161015b9190600060808201905060ff835116825260ff602084015116602083015260ff60408401511660408301526060830151606083015292915050565b6101b761021b3660046118a5565b6106ca565b6101b761022e3660046118a5565b6106fb565b61023b610716565b604080518251815260209283015161ffff16928101929092520161015b565b6101b761026836600461196d565b610762565b61018c61027b366004611846565b6107a3565b61029361028e3660046119b6565b61081a565b60405190815260200161015b565b6101b76108a1565b6101b76102b7366004611846565b6108d7565b6006546001600160a01b031661018c565b61016c610963565b6101b76102e33660046119d1565b610972565b6101b76102f6366004611a0d565b61097d565b61016c610309366004611846565b6109b5565b61014f61031c366004611a89565b610a90565b60085461014f9060ff1681565b6101b761033c3660046119b6565b610abe565b60006001600160e01b031982166380ac58cd60e01b148061037257506001600160e01b03198216635b5e139f60e01b145b8061038d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546103a290611abc565b80601f01602080910402602001604051908101604052809291908181526020018280546103ce90611abc565b801561041b5780601f106103f05761010080835404028352916020019161041b565b820191906000526020600020905b8154815290600101906020018083116103fe57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104a35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104ca826107a3565b9050806001600160a01b0316836001600160a01b031614156105385760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161049a565b336001600160a01b038216148061055457506105548133610a90565b6105c65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161049a565b6105d08383610b59565b505050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600260205260409020546001600160a01b031661067a5760405162461bcd60e51b815260206004820152603460248201527f4461746543616c656e6461723a20646174652070726f6f66207175657279206660448201527337b9103737b732bc34b9ba32b73a103a37b5b2b760611b606482015260840161049a565b506000908152600b60209081526040918290208251608081018452815460ff8082168352610100820481169483019490945262010000900490921692820192909252600190910154606082015290565b6106d43382610bc7565b6106f05760405162461bcd60e51b815260040161049a90611af7565b6105d0838383610c9e565b6105d08383836040518060200160405280600081525061097d565b60408051808201909152600080825260208201526000610734610e3e565b90506040518060400160405280826009600001546107529190611b5e565b8152600560209091015292915050565b6006546001600160a01b0316331461078c5760405162461bcd60e51b815260040161049a90611b9f565b805161079f906007906020840190611718565b5050565b6000818152600260205260408120546001600160a01b03168061038d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161049a565b60006001600160a01b0382166108855760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161049a565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146108cb5760405162461bcd60e51b815260040161049a90611b9f565b6108d56000610e52565b565b60006108e282610ea4565b90506108ed81610ee5565b61094f5760405162461bcd60e51b815260206004820152602d60248201527f4461746543616c656e6461723a206461746520686173206e6f7420796574206260448201526c32b2b7103932b632b0b9b2b21760991b606482015260840161049a565b6109593383610f13565b61079f8282610f2d565b6060600180546103a290611abc565b61079f338383610fc3565b6109873383610bc7565b6109a35760405162461bcd60e51b815260040161049a90611af7565b6109af84848484611092565b50505050565b6000818152600260205260409020546060906001600160a01b0316610a345760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161049a565b6000610a3e6110c5565b90506000815111610a5e5760405180602001604052806000815250610a89565b80610a68846110d4565b604051602001610a79929190611bd4565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b03163314610ae85760405162461bcd60e51b815260040161049a90611b9f565b6001600160a01b038116610b4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049a565b610b5681610e52565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b8e826107a3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610c405760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161049a565b6000610c4b836107a3565b9050806001600160a01b0316846001600160a01b03161480610c865750836001600160a01b0316610c7b84610425565b6001600160a01b0316145b80610c965750610c968185610a90565b949350505050565b826001600160a01b0316610cb1826107a3565b6001600160a01b031614610d195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161049a565b6001600160a01b038216610d7b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161049a565b610d86600082610b59565b6001600160a01b0383166000908152600360205260408120805460019290610daf908490611c03565b90915550506001600160a01b0382166000908152600360205260408120805460019290610ddd908490611c1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000610e4d6201518042611c48565b905090565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051808201909152600080825260208201526000610eca6506a4d3ee1a0084611c5c565b60408051808201909152908152600560208201529392505050565b60085460009060ff1615610efb57506001919050565b6000610f05610716565b519251929092131592915050565b61079f8282604051806020016040528060008152506111d2565b600080600080610f3c85611205565b60008a8152600b6020526040808220805460ff88811661ffff19909216919091176101008883169081029190911762ff0000191662010000928816928302178355600183018690559251979b5095995093975091955091938593927f4fa04060735ae768fa9c1e9f6e80a2807d5dab64a2ce1b1f2ad2adad0046b89391a450505050505050565b816001600160a01b0316836001600160a01b031614156110255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161049a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61109d848484610c9e565b6110a984848484611239565b6109af5760405162461bcd60e51b815260040161049a90611c9b565b6060600780546103a290611abc565b6060816110f85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611122578061110c81611ced565b915061111b9050600a83611c48565b91506110fc565b60008167ffffffffffffffff81111561113d5761113d6118e1565b6040519080825280601f01601f191660200182016040528015611167576020820181803683370190505b5090505b8415610c965761117c600183611c03565b9150611189600a86611d08565b611194906030611c1a565b60f81b8183815181106111a9576111a9611d1c565b60200101906001600160f81b031916908160001a9053506111cb600a86611c48565b945061116b565b6111dc8383611337565b6111e96000848484611239565b6105d05760405162461bcd60e51b815260040161049a90611c9b565b600080600080600061121686611479565b90506000806000611226896114a2565b959b919a50985093965092945050505050565b60006001600160a01b0384163b1561132c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061127d903390899088908890600401611d32565b6020604051808303816000875af19250505080156112b8575060408051601f3d908101601f191682019092526112b591810190611d6f565b60015b611312573d8080156112e6576040519150601f19603f3d011682016040523d82523d6000602084013e6112eb565b606091505b50805161130a5760405162461bcd60e51b815260040161049a90611c9b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c96565b506001949350505050565b6001600160a01b03821661138d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161049a565b6000818152600260205260409020546001600160a01b0316156113f25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161049a565b6001600160a01b038216600090815260036020526040812080546001929061141b908490611c1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080611497836000015160026114909190611b5e565b6007611645565b9050610a8981611665565b600080600080621a431e85600001516114bb9190611c5c565b9050600060196114cc836064611d8c565b6114d69190611c5c565b905060006114e7826237bb496116ca565b905060006114f68260046116ca565b90506000611505826064611d8c565b611510846064611d8c565b601961151d886064611d8c565b6115279190611c5c565b6115319190611b5e565b61153b9190611c5c565b9050600061154b82618ead6116ca565b9050600061156561155e83618ead611d8c565b60646116ca565b905060008185611575888b611b5e565b61157f9190611c5c565b6115899190611c5c565b905060006115b8609961159d846005611e11565b6115a9906101c8611c1a565b6115b39190611c48565b611665565b90506000600c6115c9600384611e30565b60ff16600c81106115dc576115dc611d1c565b601081049190910154600f9091166002026101000a900461ffff16905060006116086115b38386611c03565b9050600c8360ff16111561163157611621600187611b5e565b955061162e600c84611e30565b92505b9e919d50939b509950505050505050505050565b600061165183836116ca565b61165b9083611d8c565b610a899084611c5c565b600060ff8211156116c65760405162461bcd60e51b815260206004820152602560248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2038604482015264206269747360d81b606482015260840161049a565b5090565b60008083126116e4576116dd8284611e53565b905061038d565b816001816116f186611e81565b6116fb9190611b5e565b6117059190611c5c565b61170f9190611e53565b6116dd90611e81565b82805461172490611abc565b90600052602060002090601f016020900481019282611746576000855561178c565b82601f1061175f57805160ff191683800117855561178c565b8280016001018555821561178c579182015b8281111561178c578251825591602001919060010190611771565b506116c69291505b808211156116c65760008155600101611794565b6001600160e01b031981168114610b5657600080fd5b6000602082840312156117d057600080fd5b8135610a89816117a8565b60005b838110156117f65781810151838201526020016117de565b838111156109af5750506000910152565b6000815180845261181f8160208601602086016117db565b601f01601f19169290920160200192915050565b602081526000610a896020830184611807565b60006020828403121561185857600080fd5b5035919050565b80356001600160a01b038116811461187657600080fd5b919050565b6000806040838503121561188e57600080fd5b6118978361185f565b946020939093013593505050565b6000806000606084860312156118ba57600080fd5b6118c38461185f565b92506118d16020850161185f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611912576119126118e1565b604051601f8501601f19908116603f0116810190828211818310171561193a5761193a6118e1565b8160405280935085815286868601111561195357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561197f57600080fd5b813567ffffffffffffffff81111561199657600080fd5b8201601f810184136119a757600080fd5b610c96848235602084016118f7565b6000602082840312156119c857600080fd5b610a898261185f565b600080604083850312156119e457600080fd5b6119ed8361185f565b915060208301358015158114611a0257600080fd5b809150509250929050565b60008060008060808587031215611a2357600080fd5b611a2c8561185f565b9350611a3a6020860161185f565b925060408501359150606085013567ffffffffffffffff811115611a5d57600080fd5b8501601f81018713611a6e57600080fd5b611a7d878235602084016118f7565b91505092959194509250565b60008060408385031215611a9c57600080fd5b611aa58361185f565b9150611ab36020840161185f565b90509250929050565b600181811c90821680611ad057607f821691505b60208210811415611af157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600080821280156001600160ff1b0384900385131615611b8057611b80611b48565b600160ff1b8390038412811615611b9957611b99611b48565b50500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008351611be68184602088016117db565b835190830190611bfa8183602088016117db565b01949350505050565b600082821015611c1557611c15611b48565b500390565b60008219821115611c2d57611c2d611b48565b500190565b634e487b7160e01b600052601260045260246000fd5b600082611c5757611c57611c32565b500490565b60008083128015600160ff1b850184121615611c7a57611c7a611b48565b6001600160ff1b0384018313811615611c9557611c95611b48565b50500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611d0157611d01611b48565b5060010190565b600082611d1757611d17611c32565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d6590830184611807565b9695505050505050565b600060208284031215611d8157600080fd5b8151610a89816117a8565b60006001600160ff1b0381841382841380821686840486111615611db257611db2611b48565b600160ff1b6000871282811687830589121615611dd157611dd1611b48565b60008712925087820587128484161615611ded57611ded611b48565b87850587128184161615611e0357611e03611b48565b505050929093029392505050565b6000816000190483118215151615611e2b57611e2b611b48565b500290565b600060ff821660ff841680821015611e4a57611e4a611b48565b90039392505050565b600082611e6257611e62611c32565b600160ff1b821460001984141615611e7c57611e7c611b48565b500590565b6000600160ff1b821415611e9757611e97611b48565b506000039056fea26469706673582212205a9e1509e7d4eb1e11d0996979b79fbe67abe97d09fd424aa2bbd61b308419ea64736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4461746543616c656e646172000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024443000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c806370a08231116100b8578063a22cb4651161007c578063a22cb465146102d5578063b88d4fde146102e8578063c87b56dd146102fb578063e985e9c51461030e578063eae7298814610321578063f2fde38b1461032e57600080fd5b806370a0823114610280578063715018a6146102a15780637fdb655f146102a95780638da5cb5b146102bc57806395d89b41146102cd57600080fd5b806323b872dd116100ff57806323b872dd1461020d57806342842e0e146102205780635213e1f11461023357806355f804b31461025a5780636352211e1461026d57600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a45780630cc611b1146101b9575b600080fd5b61014f61014a3660046117be565b610341565b60405190151581526020015b60405180910390f35b61016c610393565b60405161015b9190611833565b61018c610187366004611846565b610425565b6040516001600160a01b03909116815260200161015b565b6101b76101b236600461187b565b6104bf565b005b6101cc6101c7366004611846565b6105d5565b60405161015b9190600060808201905060ff835116825260ff602084015116602083015260ff60408401511660408301526060830151606083015292915050565b6101b761021b3660046118a5565b6106ca565b6101b761022e3660046118a5565b6106fb565b61023b610716565b604080518251815260209283015161ffff16928101929092520161015b565b6101b761026836600461196d565b610762565b61018c61027b366004611846565b6107a3565b61029361028e3660046119b6565b61081a565b60405190815260200161015b565b6101b76108a1565b6101b76102b7366004611846565b6108d7565b6006546001600160a01b031661018c565b61016c610963565b6101b76102e33660046119d1565b610972565b6101b76102f6366004611a0d565b61097d565b61016c610309366004611846565b6109b5565b61014f61031c366004611a89565b610a90565b60085461014f9060ff1681565b6101b761033c3660046119b6565b610abe565b60006001600160e01b031982166380ac58cd60e01b148061037257506001600160e01b03198216635b5e139f60e01b145b8061038d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546103a290611abc565b80601f01602080910402602001604051908101604052809291908181526020018280546103ce90611abc565b801561041b5780601f106103f05761010080835404028352916020019161041b565b820191906000526020600020905b8154815290600101906020018083116103fe57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104a35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104ca826107a3565b9050806001600160a01b0316836001600160a01b031614156105385760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161049a565b336001600160a01b038216148061055457506105548133610a90565b6105c65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161049a565b6105d08383610b59565b505050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600260205260409020546001600160a01b031661067a5760405162461bcd60e51b815260206004820152603460248201527f4461746543616c656e6461723a20646174652070726f6f66207175657279206660448201527337b9103737b732bc34b9ba32b73a103a37b5b2b760611b606482015260840161049a565b506000908152600b60209081526040918290208251608081018452815460ff8082168352610100820481169483019490945262010000900490921692820192909252600190910154606082015290565b6106d43382610bc7565b6106f05760405162461bcd60e51b815260040161049a90611af7565b6105d0838383610c9e565b6105d08383836040518060200160405280600081525061097d565b60408051808201909152600080825260208201526000610734610e3e565b90506040518060400160405280826009600001546107529190611b5e565b8152600560209091015292915050565b6006546001600160a01b0316331461078c5760405162461bcd60e51b815260040161049a90611b9f565b805161079f906007906020840190611718565b5050565b6000818152600260205260408120546001600160a01b03168061038d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161049a565b60006001600160a01b0382166108855760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161049a565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146108cb5760405162461bcd60e51b815260040161049a90611b9f565b6108d56000610e52565b565b60006108e282610ea4565b90506108ed81610ee5565b61094f5760405162461bcd60e51b815260206004820152602d60248201527f4461746543616c656e6461723a206461746520686173206e6f7420796574206260448201526c32b2b7103932b632b0b9b2b21760991b606482015260840161049a565b6109593383610f13565b61079f8282610f2d565b6060600180546103a290611abc565b61079f338383610fc3565b6109873383610bc7565b6109a35760405162461bcd60e51b815260040161049a90611af7565b6109af84848484611092565b50505050565b6000818152600260205260409020546060906001600160a01b0316610a345760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161049a565b6000610a3e6110c5565b90506000815111610a5e5760405180602001604052806000815250610a89565b80610a68846110d4565b604051602001610a79929190611bd4565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b03163314610ae85760405162461bcd60e51b815260040161049a90611b9f565b6001600160a01b038116610b4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049a565b610b5681610e52565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b8e826107a3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610c405760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161049a565b6000610c4b836107a3565b9050806001600160a01b0316846001600160a01b03161480610c865750836001600160a01b0316610c7b84610425565b6001600160a01b0316145b80610c965750610c968185610a90565b949350505050565b826001600160a01b0316610cb1826107a3565b6001600160a01b031614610d195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161049a565b6001600160a01b038216610d7b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161049a565b610d86600082610b59565b6001600160a01b0383166000908152600360205260408120805460019290610daf908490611c03565b90915550506001600160a01b0382166000908152600360205260408120805460019290610ddd908490611c1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000610e4d6201518042611c48565b905090565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051808201909152600080825260208201526000610eca6506a4d3ee1a0084611c5c565b60408051808201909152908152600560208201529392505050565b60085460009060ff1615610efb57506001919050565b6000610f05610716565b519251929092131592915050565b61079f8282604051806020016040528060008152506111d2565b600080600080610f3c85611205565b60008a8152600b6020526040808220805460ff88811661ffff19909216919091176101008883169081029190911762ff0000191662010000928816928302178355600183018690559251979b5095995093975091955091938593927f4fa04060735ae768fa9c1e9f6e80a2807d5dab64a2ce1b1f2ad2adad0046b89391a450505050505050565b816001600160a01b0316836001600160a01b031614156110255760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161049a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61109d848484610c9e565b6110a984848484611239565b6109af5760405162461bcd60e51b815260040161049a90611c9b565b6060600780546103a290611abc565b6060816110f85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611122578061110c81611ced565b915061111b9050600a83611c48565b91506110fc565b60008167ffffffffffffffff81111561113d5761113d6118e1565b6040519080825280601f01601f191660200182016040528015611167576020820181803683370190505b5090505b8415610c965761117c600183611c03565b9150611189600a86611d08565b611194906030611c1a565b60f81b8183815181106111a9576111a9611d1c565b60200101906001600160f81b031916908160001a9053506111cb600a86611c48565b945061116b565b6111dc8383611337565b6111e96000848484611239565b6105d05760405162461bcd60e51b815260040161049a90611c9b565b600080600080600061121686611479565b90506000806000611226896114a2565b959b919a50985093965092945050505050565b60006001600160a01b0384163b1561132c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061127d903390899088908890600401611d32565b6020604051808303816000875af19250505080156112b8575060408051601f3d908101601f191682019092526112b591810190611d6f565b60015b611312573d8080156112e6576040519150601f19603f3d011682016040523d82523d6000602084013e6112eb565b606091505b50805161130a5760405162461bcd60e51b815260040161049a90611c9b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c96565b506001949350505050565b6001600160a01b03821661138d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161049a565b6000818152600260205260409020546001600160a01b0316156113f25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161049a565b6001600160a01b038216600090815260036020526040812080546001929061141b908490611c1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080611497836000015160026114909190611b5e565b6007611645565b9050610a8981611665565b600080600080621a431e85600001516114bb9190611c5c565b9050600060196114cc836064611d8c565b6114d69190611c5c565b905060006114e7826237bb496116ca565b905060006114f68260046116ca565b90506000611505826064611d8c565b611510846064611d8c565b601961151d886064611d8c565b6115279190611c5c565b6115319190611b5e565b61153b9190611c5c565b9050600061154b82618ead6116ca565b9050600061156561155e83618ead611d8c565b60646116ca565b905060008185611575888b611b5e565b61157f9190611c5c565b6115899190611c5c565b905060006115b8609961159d846005611e11565b6115a9906101c8611c1a565b6115b39190611c48565b611665565b90506000600c6115c9600384611e30565b60ff16600c81106115dc576115dc611d1c565b601081049190910154600f9091166002026101000a900461ffff16905060006116086115b38386611c03565b9050600c8360ff16111561163157611621600187611b5e565b955061162e600c84611e30565b92505b9e919d50939b509950505050505050505050565b600061165183836116ca565b61165b9083611d8c565b610a899084611c5c565b600060ff8211156116c65760405162461bcd60e51b815260206004820152602560248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2038604482015264206269747360d81b606482015260840161049a565b5090565b60008083126116e4576116dd8284611e53565b905061038d565b816001816116f186611e81565b6116fb9190611b5e565b6117059190611c5c565b61170f9190611e53565b6116dd90611e81565b82805461172490611abc565b90600052602060002090601f016020900481019282611746576000855561178c565b82601f1061175f57805160ff191683800117855561178c565b8280016001018555821561178c579182015b8281111561178c578251825591602001919060010190611771565b506116c69291505b808211156116c65760008155600101611794565b6001600160e01b031981168114610b5657600080fd5b6000602082840312156117d057600080fd5b8135610a89816117a8565b60005b838110156117f65781810151838201526020016117de565b838111156109af5750506000910152565b6000815180845261181f8160208601602086016117db565b601f01601f19169290920160200192915050565b602081526000610a896020830184611807565b60006020828403121561185857600080fd5b5035919050565b80356001600160a01b038116811461187657600080fd5b919050565b6000806040838503121561188e57600080fd5b6118978361185f565b946020939093013593505050565b6000806000606084860312156118ba57600080fd5b6118c38461185f565b92506118d16020850161185f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611912576119126118e1565b604051601f8501601f19908116603f0116810190828211818310171561193a5761193a6118e1565b8160405280935085815286868601111561195357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561197f57600080fd5b813567ffffffffffffffff81111561199657600080fd5b8201601f810184136119a757600080fd5b610c96848235602084016118f7565b6000602082840312156119c857600080fd5b610a898261185f565b600080604083850312156119e457600080fd5b6119ed8361185f565b915060208301358015158114611a0257600080fd5b809150509250929050565b60008060008060808587031215611a2357600080fd5b611a2c8561185f565b9350611a3a6020860161185f565b925060408501359150606085013567ffffffffffffffff811115611a5d57600080fd5b8501601f81018713611a6e57600080fd5b611a7d878235602084016118f7565b91505092959194509250565b60008060408385031215611a9c57600080fd5b611aa58361185f565b9150611ab36020840161185f565b90509250929050565b600181811c90821680611ad057607f821691505b60208210811415611af157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600080821280156001600160ff1b0384900385131615611b8057611b80611b48565b600160ff1b8390038412811615611b9957611b99611b48565b50500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008351611be68184602088016117db565b835190830190611bfa8183602088016117db565b01949350505050565b600082821015611c1557611c15611b48565b500390565b60008219821115611c2d57611c2d611b48565b500190565b634e487b7160e01b600052601260045260246000fd5b600082611c5757611c57611c32565b500490565b60008083128015600160ff1b850184121615611c7a57611c7a611b48565b6001600160ff1b0384018313811615611c9557611c95611b48565b50500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415611d0157611d01611b48565b5060010190565b600082611d1757611d17611c32565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d6590830184611807565b9695505050505050565b600060208284031215611d8157600080fd5b8151610a89816117a8565b60006001600160ff1b0381841382841380821686840486111615611db257611db2611b48565b600160ff1b6000871282811687830589121615611dd157611dd1611b48565b60008712925087820587128484161615611ded57611ded611b48565b87850587128184161615611e0357611e03611b48565b505050929093029392505050565b6000816000190483118215151615611e2b57611e2b611b48565b500290565b600060ff821660ff841680821015611e4a57611e4a611b48565b90039392505050565b600082611e6257611e62611c32565b600160ff1b821460001984141615611e7c57611e7c611b48565b500590565b6000600160ff1b821415611e9757611e97611b48565b506000039056fea26469706673582212205a9e1509e7d4eb1e11d0996979b79fbe67abe97d09fd424aa2bbd61b308419ea64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c4461746543616c656e646172000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024443000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): DateCalendar
Arg [1] : symbol (string): DC
Arg [2] : allowFutureDates_ (bool): False
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 4461746543616c656e6461720000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 4443000000000000000000000000000000000000000000000000000000000000
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.