Overview
ETH Balance
0.22 ETH
Eth Value
$579.00 (@ $2,631.80/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 37 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Token URI | 16583679 | 548 days ago | IN | 0 ETH | 0.00297612 | ||||
Mint | 16532825 | 556 days ago | IN | 0.01 ETH | 0.0026966 | ||||
Set Token URI | 15503139 | 700 days ago | IN | 0 ETH | 0.00462219 | ||||
Mint | 15501313 | 701 days ago | IN | 0.01 ETH | 0.0019792 | ||||
Set Token URI | 14933433 | 792 days ago | IN | 0 ETH | 0.01070857 | ||||
Mint | 14927306 | 793 days ago | IN | 0.01 ETH | 0.00995546 | ||||
Set Token URI | 14922482 | 794 days ago | IN | 0 ETH | 0.01119413 | ||||
Set Token URI | 14779481 | 817 days ago | IN | 0 ETH | 0.0017663 | ||||
Set Token URI | 14779440 | 817 days ago | IN | 0 ETH | 0.00159212 | ||||
Mint | 14779412 | 817 days ago | IN | 0.01 ETH | 0.00239324 | ||||
Mint | 14779279 | 817 days ago | IN | 0.01 ETH | 0.00213843 | ||||
Mint | 14779249 | 817 days ago | IN | 0.01 ETH | 0.00193481 | ||||
Mint | 14779233 | 817 days ago | IN | 0.01 ETH | 0.00193282 | ||||
Mint | 14779220 | 817 days ago | IN | 0.01 ETH | 0.00187533 | ||||
Mint | 14779199 | 817 days ago | IN | 0.01 ETH | 0.00193373 | ||||
Mint | 14779181 | 817 days ago | IN | 0.01 ETH | 0.00250498 | ||||
Mint | 14779167 | 817 days ago | IN | 0.01 ETH | 0.00280809 | ||||
Mint | 14779163 | 817 days ago | IN | 0.01 ETH | 0.00218667 | ||||
Mint | 14779152 | 817 days ago | IN | 0.01 ETH | 0.00250527 | ||||
Safe Transfer Fr... | 14660263 | 836 days ago | IN | 0 ETH | 0.00279718 | ||||
Mint | 14656500 | 837 days ago | IN | 0.01 ETH | 0.00603589 | ||||
Set Token URI | 14453946 | 869 days ago | IN | 0 ETH | 0.00316763 | ||||
Mint | 14453902 | 869 days ago | IN | 0.01 ETH | 0.00411896 | ||||
Mint | 14432129 | 872 days ago | IN | 0.01 ETH | 0.00596832 | ||||
Set Token URI | 14396996 | 877 days ago | IN | 0 ETH | 0.00193775 |
Loading...
Loading
Contract Name:
DymeSpace
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./third-party/openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./third-party/openzeppelin/contracts/token/common/ERC2981.sol"; import "./third-party/openzeppelin/contracts/access/Ownable.sol"; import "./third-party/openzeppelin/contracts/utils/Base64.sol"; import "./DymeSpaceUtils.sol"; /** * @title Official DymeSpace contract * @author The DymeSpace crew * @notice The DymeSpace contract implements dynamic NFTs where a token URI is mutable and * the date information is embedded in the token ID * @dev The date information of a day is embedded in the token ID, so that each token * represents a unique day without having to rely on the token URI. * A date is encoded in the token ID with the following equation: * year * 100000 + month * 1000 + day * 10 + era (0 for Before the Common Era (BCE) or 1 for Common Era (CE)) * For example, the release day of the Bitcoin white paper October 31, 2008 * would be converted into the token ID 200810311 */ contract DymeSpace is ERC721Enumerable, ERC2981, Ownable { /** * @dev Emitted when a token URI is updated * @param tokenId - the ID of the updated token * @param setter - the account that updated the token URI * @param uri - the new token URI */ event TokenURIUpdate(uint256 indexed tokenId, address indexed setter, string uri); uint256 private _tokenPrice = 10000000000000000; // 0.01 ETH uint256 private _uriPriceLimit = 1000000000000000; // 0.001 ETH uint96 private _royaltyPercentage = 500; // 5.00% mapping(uint256 => string) private _customTokenURI; constructor() ERC721("DymeSpace", "DAY") { _setDefaultRoyalty(owner(), _royaltyPercentage); } /// @inheritdoc IERC165 function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Returns the token price in WEI * @return the token price */ function tokenPrice() public view returns (uint256) { return _tokenPrice; } /** * @notice Returns the URI price limit in WEI * @dev The URI price limit is the maximum amount * that can be charged to update the token URI * @return the URI price limit */ function uriPriceLimit() public view returns (uint256) { return _uriPriceLimit; } /** * @notice Withdraws the funds to an address * @dev Only the contract owner is able to withdraw funds * @param receiver - the receiver address * @param amount - the amount in wei */ function withdraw(address payable receiver, uint256 amount) public onlyOwner { Address.sendValue(receiver, amount); } /** * @notice Mints a new DAY token * @param owner - the new token owner address * @param date - the date of the to be minted DAY token */ function mint(address owner, DymeSpaceUtils.Date memory date) public payable { require(msg.value == _tokenPrice, "DymeSpace: sent Ether mismatch token price"); uint256 tokenId = DymeSpaceUtils.calcTokenId(date.era, date.year, date.month, date.day); require(DymeSpaceUtils.isTokenId(tokenId), "DymeSpace: invalid date"); _safeMint(owner, tokenId); } /** * @notice Returns the token IDs of the first and last valid date * @return an array with the very first and the very last valid token ID */ function tokenRange() public pure returns (uint256, uint256) { return ( 1380000000001010, // 1st january of year 13800000000 BCE (Big Bang) 1380000000012311 // 31st december of year 13800000000 CE ); } /** * @notice Updates the token URI of a DAY token * @param tokenId - the token ID of the to be updated DAY token * @param uri - the new token URI */ function setTokenURI(uint256 tokenId, string memory uri) public payable { require(msg.value <= _uriPriceLimit, "DymeSpace: sent Ether greater URI price limit"); require(_isApprovedOrOwner(_msgSender(), tokenId), "DymeSpace: not permitted"); _customTokenURI[tokenId] = uri; emit TokenURIUpdate(tokenId, msg.sender, uri); } /** * @notice Returns the token URI of a DAY token * @dev If no token URI is set, a default NFT image, conforming to the OpenSea metadata standard, * is returned. See (https://docs.opensea.io/docs/metadata-standards) * @param tokenId - the token ID of the DAY token * @return the token URI of the given token ID */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "DymeSpace: operator query for nonexistent token"); return bytes(_customTokenURI[tokenId]).length == 0 ? _defaultTokenURI(tokenId) : _customTokenURI[tokenId]; } function _defaultTokenURI(uint256 tokenId) private pure returns (string memory) { DymeSpaceUtils.Date memory date = DymeSpaceUtils.tokenIdToDate(tokenId); bytes memory image = abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 750">' '<style><![CDATA[.A{isolation:isolate}.C{mix-blend-mode:lighten}.D{mix-blend-mode:color-burn}.G{letter-spacing:3px}]]></style>' '<defs><radialGradient id="A" cx="15.33" cy="22.1" r="1327.72" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2e004c"/><stop offset=".13" stop-color="#2c0250"/><stop offset=".27" stop-color="#26095e"/><stop offset=".42" stop-color="#1d1474"/><stop offset=".52" stop-color="#141e88"/><stop offset=".65" stop-color="#211882"/><stop offset=".88" stop-color="#420973"/><stop offset="1" stop-color="#57006a"/></radialGradient><radialGradient id="B" cx="729.79" cy="715.13" r="1123.35" gradientUnits="userSpaceOnUse"><stop offset=".17" stop-color="#fda291"/><stop offset=".23" stop-color="#f39c91" stop-opacity=".96"/><stop offset=".33" stop-color="#d98d91" stop-opacity=".86"/><stop offset=".46" stop-color="#af7492" stop-opacity=".69"/><stop offset=".61" stop-color="#745293" stop-opacity=".46"/><stop offset=".78" stop-color="#2a2693" stop-opacity=".17"/><stop offset=".87" stop-color="#000d94" stop-opacity="0"/></radialGradient><radialGradient id="C" cx="672.71" cy="24.79" fx="391.918" fy="91.935" r="800.57" gradientTransform="translate(0)" gradientUnits="userSpaceOnUse"><stop offset=".27" stop-color="#f07698"/><stop offset=".32" stop-color="#e9729a" stop-opacity=".97"/><stop offset=".41" stop-color="#d7689f" stop-opacity=".88"/><stop offset=".52" stop-color="#b958a7" stop-opacity=".74"/><stop offset=".64" stop-color="#8f41b3" stop-opacity=".55"/><stop offset=".77" stop-color="#5a23c2" stop-opacity=".3"/><stop offset=".91" stop-color="#1b00d4" stop-opacity="0"/></radialGradient></defs>' '<g class="A"><g><g><path d="M0,0H750V750H0Z" fill="url(#A)"/><path class="C" d="M0,0H750V750H0Z" fill="url(#B)"/><path class="D" d="M750 0v750H0V0" fill="url(#C)"/><path d="M430,354.71v-10h20v-10h10v-10h10v-10h10v-10h10v-10h10v-20h10v-70H500v-10H490v-10H480v-10H460v-10H440v-10H310v10H290v10H270v10H260v10H250v10H240v70h10v20h10v10h10v10h10v10h10v10h10v10h20v10h10v20H320v10H300v10H290v10H280v10H270v10H260v10H250v20H240v70h10v10h10v10h10v10h20v10h20v10H440v-10h20v-10h20v-10h10v-10h10v-10h10v-70H500v-20H490v-10H480v-10H470v-10H460v-10H450v-10H430v-10H420v-20Zm-29.93-120.1h40v-10h30v-10h19.86v-10h10v10h-10v10H470.07v10h-30v10h-40Zm-110.07,0H280v-10H260.14v-10h-10v-10h10v10H280v10h30v10h40v10h50v10H350v-10H310v-10H290ZM390.85,464.84v9.87H400v10h30v10h20v10h30v20H460v10H440v10H410v10H340v-10H310v-10H290v-10H270v-20h30v-10h20v-10h30v-10h10.85v-9.87h10V345.73h-10v-20h-20v-10h-10v-10h-10v-10h-10v-10h-10v-10h20v10h30v10h50v-10h30v-10h20v10h-10v10h-10v10h-10v10h-10v10h-20v20h-10V464.84Z" fill="#fff"/></g></g></g>' '<text x="50%" y="12%" class="G" fill="#fff" font-weight="bold" font-family="monospace" text-anchor="middle" font-size="70">', Strings.toString(date.day), '. ', _monthToString(date.month), '</text><text x="50%" y="92%" class="G" fill="#fff" font-weight="bold" font-family="monospace" text-anchor="middle" font-size="70">', Strings.toString(date.year), ' ', date.era == DymeSpaceUtils.Era.BCE ? "BCE" : "CE", '</text>' '</svg>' ); string memory json = Base64.encode(abi.encodePacked( '{' '"name":' '"', _dateToName(date), '",', '"description":' '"This dynamic NFT represents a unique day on the blockchain with its content being customizable by the owner. Check out dyme.space",' '"image":' '"data:image/svg+xml;base64,', Base64.encode(image), '",' '"external_url":' '"https://dyme.space/?tokenId=', Strings.toString(tokenId), '"' '}' )); return string(abi.encodePacked('data:application/json;base64,', json)); } function _monthToString(uint256 month) private pure returns (string memory) { return month == 1 ? "Jan" : month == 2 ? "Feb" : month == 3 ? "Mar" : month == 4 ? "Apr" : month == 5 ? "May" : month == 6 ? "Jun" : month == 7 ? "Jul" : month == 8 ? "Aug" : month == 9 ? "Sep" : month == 10 ? "Oct" : month == 11 ? "Nov" : "Dec"; } function _dateToName(DymeSpaceUtils.Date memory date) private pure returns (string memory) { return string(abi.encodePacked( 'DAY #', Strings.toString(date.year), '-', date.month < 10 ? '0' : '', Strings.toString(date.month), '-', date.day < 10 ? '0' : '', Strings.toString(date.day), '-', Strings.toString(uint256(date.era)) )); } /** * @notice Returns the default token URI of a DAY token * @dev An NFT image, conforming to the OpenSea metadata standard, * is returned. See (https://docs.opensea.io/docs/metadata-standards) * @param tokenId - the token ID of the DAY token * @return the default token URI of the given token ID */ function defaultTokenURI(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "DymeSpace: operator query for nonexistent token"); return _defaultTokenURI(tokenId); } /** * @notice Returns the token IDs of DAY tokens within the given year * @param era - the era (0 = BCE, 1 = CE) * @param year - the year (0 < year < 13800000000) * @return an array with the token IDs */ function tokensInYear(DymeSpaceUtils.Era era, uint256 year) public view returns (uint256[] memory) { require(DymeSpaceUtils.isEra(era), "DymeSpace: invalid era"); require(DymeSpaceUtils.isYear(year), "DymeSpace: invalid year"); uint256[] memory tokenIds = new uint256[](DymeSpaceUtils.isLeapYear(year) ? 366 : 365); uint256 index = 0; for (uint256 month = 1; month <= 12; month++) { for (uint256 day = 1; day <= DymeSpaceUtils.daysInMonth(month, year); day++) { uint256 tokenId = DymeSpaceUtils.calcTokenId(era, year, month, day); if (_exists(tokenId)) { tokenIds[index] = tokenId; } index++; } } return tokenIds; } /** * @notice Returns the token IDs of DAY tokens owned by the given address * @param owner - the owner address * @return an array with the token IDs */ function tokensOfOwner(address owner) public view returns (uint256[] memory) { uint256 numOfTokenIds = this.balanceOf(owner); uint256[] memory tokenIds = new uint256[](numOfTokenIds); for (uint256 index = 0; index < numOfTokenIds; index++) { tokenIds[index] = this.tokenOfOwnerByIndex(owner, index); } return tokenIds; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 (last updated v4.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @title Utility library for the DymeSpace contract * @author The DymeSpace crew * @notice The DymeSpaceUtils library provides helper functions for the DymeSpace contract */ library DymeSpaceUtils { enum Era { BCE, CE } struct Date { Era era; uint256 year; uint256 month; uint256 day; } /** * @notice Calculates a token ID based on a date * @param era - the era * @param year - the year * @param month - the month * @param day - the day * @return the token ID representing the date */ function calcTokenId(Era era, uint256 year, uint256 month, uint256 day) internal pure returns (uint256) { return year * 100000 + month * 1000 + day * 10 + uint256(era); } /** * @notice Converts a token ID to a date * @param tokenId - the token ID * @return the date representing the token ID */ function tokenIdToDate(uint256 tokenId) internal pure returns (Date memory) { return Date({ era: tokenId % 10 == 0 ? Era.BCE : Era.CE, day: (tokenId / 10) % 100, month: (tokenId / 1000) % 100, year: tokenId / 100000 }); } /** * @notice Calculates the number of days in a month * @param year - the year of the month * @param month - the month * @return the number of days of the month */ function daysInMonth(uint256 month, uint256 year) internal pure returns (uint256) { if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) { return 31; } if (month == 4 || month == 6 || month == 9 || month == 11) { return 30; } if (month == 2) { return isLeapYear(year) ? 29 : 28; } return 0; } /** * @notice Checks if a given year is a leap year * @param year - the year * @return true if it is a leap year, false if not */ function isLeapYear(uint256 year) internal pure returns (bool) { return (year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0)); // https://en.wikipedia.org/wiki/Gregorian_calendar } /** * @notice Checks if a given token ID is valid * @param tokenId - the tokenID * @return true if it is a valid token ID, false if not */ function isTokenId(uint256 tokenId) internal pure returns (bool) { DymeSpaceUtils.Date memory date = DymeSpaceUtils.tokenIdToDate(tokenId); return DymeSpaceUtils.isEra(date.era) && DymeSpaceUtils.isYear(date.year) && DymeSpaceUtils.isMonth(date.month) && DymeSpaceUtils.isDay(date.year, date.month, date.day); } /** * @notice Checks if a given era is valid * @param era - the era * @return true if it is a valid era, false if not */ function isEra(Era era) internal pure returns (bool) { uint256 _era = uint256(era); return _era == 1 || _era == 0; } /** * @notice Checks if a given year is valid * @param year - the year * @return true if it is a valid year, false if not */ function isYear(uint256 year) internal pure returns (bool) { return year <= 13800000000 && year != 0; } /** * @notice Checks if a given month is valid * @param month - the month * @return true if it is a valid month, false if not */ function isMonth(uint256 month) internal pure returns (bool) { return month >= 1 && month <= 12; } /** * @notice Checks if a given day is valid * @param year - the year of the day * @param month - the month of the day * @param day - the day * @return true if it is a valid day, false if not */ function isDay(uint256 year, uint256 month, uint256 day) internal pure returns (bool) { return day >= 1 && day <= DymeSpaceUtils.daysInMonth(month, year); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: 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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 (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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 (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 (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed 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 v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"setter","type":"address"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"TokenURIUpdate","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":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"defaultTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"components":[{"internalType":"enum DymeSpaceUtils.Era","name":"era","type":"uint8"},{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"}],"internalType":"struct DymeSpaceUtils.Date","name":"date","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"payable","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenRange","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum DymeSpaceUtils.Era","name":"era","type":"uint8"},{"internalType":"uint256","name":"year","type":"uint256"}],"name":"tokensInYear","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"},{"inputs":[],"name":"uriPriceLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052662386f26fc10000600d5566038d7ea4c68000600e55600f80546001600160601b0319166101f41790553480156200003b57600080fd5b50604080518082018252600981526844796d65537061636560b81b60208083019182528351808501909452600384526244415960e81b908401528151919291620000889160009162000245565b5080516200009e90600190602084019062000245565b505050620000bb620000b5620000ea60201b60201c565b620000ee565b620000e4620000d2600c546001600160a01b031690565b600f546001600160601b031662000140565b62000328565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001b45760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200020c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001ab565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b8280546200025390620002eb565b90600052602060002090601f016020900481019282620002775760008555620002c2565b82601f106200029257805160ff1916838001178555620002c2565b82800160010185558215620002c2579182015b82811115620002c2578251825591602001919060010190620002a5565b50620002d0929150620002d4565b5090565b5b80821115620002d05760008155600101620002d5565b600181811c908216806200030057607f821691505b602082108114156200032257634e487b7160e01b600052602260045260246000fd5b50919050565b6140ed80620003386000396000f3fe6080604052600436106101c25760003560e01c806370a08231116100f7578063a6cd1c8311610095578063e80fd8a411610064578063e80fd8a414610509578063e985e9c514610529578063f2fde38b14610572578063f3fef3a31461059257600080fd5b8063a6cd1c8314610496578063b88d4fde146104b6578063c87b56dd146104d6578063d3d4e62d146104f657600080fd5b80638462151c116100d15780638462151c146104165780638da5cb5b1461044357806395d89b4114610461578063a22cb4651461047657600080fd5b806370a08231146103cc578063715018a6146103ec5780637ff9b5961461040157600080fd5b80632a55205a1161016457806342842e0e1161013e57806342842e0e146103575780634f6ccce7146103775780636352211e14610397578063645354a8146103b757600080fd5b80632a55205a146102ca5780632f745c5914610309578063406984181461032957600080fd5b8063095ea7b3116101a0578063095ea7b314610256578063162094c41461027857806318160ddd1461028b57806323b872dd146102aa57600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e2366004612af7565b6105b2565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b506102116105c3565b6040516101f39190613dd8565b34801561022a57600080fd5b5061023e610239366004612b4a565b610655565b6040516001600160a01b0390911681526020016101f3565b34801561026257600080fd5b50610276610271366004612ae5565b6106e2565b005b610276610286366004612b7a565b6107f8565b34801561029757600080fd5b506008545b6040519081526020016101f3565b3480156102b657600080fd5b506102766102c5366004612968565b61091d565b3480156102d657600080fd5b506102ea6102e5366004612bd2565b61094e565b604080516001600160a01b0390931683526020830191909152016101f3565b34801561031557600080fd5b5061029c610324366004612ae5565b6109fa565b34801561033557600080fd5b50604080516604e71a49ca43f281526604e71a49ca70176020820152016101f3565b34801561036357600080fd5b50610276610372366004612968565b610a90565b34801561038357600080fd5b5061029c610392366004612b4a565b610aab565b3480156103a357600080fd5b5061023e6103b2366004612b4a565b610b4c565b3480156103c357600080fd5b50600e5461029c565b3480156103d857600080fd5b5061029c6103e73660046128e9565b610bc3565b3480156103f857600080fd5b50610276610c4a565b34801561040d57600080fd5b50600d5461029c565b34801561042257600080fd5b506104366104313660046128e9565b610c80565b6040516101f39190613d94565b34801561044f57600080fd5b50600c546001600160a01b031661023e565b34801561046d57600080fd5b50610211610e22565b34801561048257600080fd5b50610276610491366004612a25565b610e31565b3480156104a257600080fd5b506102116104b1366004612b4a565b610e40565b3480156104c257600080fd5b506102766104d13660046129a8565b610e70565b3480156104e257600080fd5b506102116104f1366004612b4a565b610ea7565b610276610504366004612a56565b610f8a565b34801561051557600080fd5b50610436610524366004612b2f565b61106d565b34801561053557600080fd5b506101e7610544366004612930565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561057e57600080fd5b5061027661058d3660046128e9565b61122d565b34801561059e57600080fd5b506102766105ad366004612905565b6112c8565b60006105bd826112fc565b92915050565b6060600080546105d290613fa0565b80601f01602080910402602001604051908101604052809291908181526020018280546105fe90613fa0565b801561064b5780601f106106205761010080835404028352916020019161064b565b820191906000526020600020905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b600061066082611321565b6106c65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106ed82610b4c565b9050806001600160a01b0316836001600160a01b0316141561075b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106bd565b336001600160a01b038216148061077757506107778133610544565b6107e95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106bd565b6107f3838361133e565b505050565b600e543411156108605760405162461bcd60e51b815260206004820152602d60248201527f44796d6553706163653a2073656e74204574686572206772656174657220555260448201526c12481c1c9a58d9481b1a5b5a5d609a1b60648201526084016106bd565b61086b335b836113ac565b6108b75760405162461bcd60e51b815260206004820152601860248201527f44796d6553706163653a206e6f74207065726d6974746564000000000000000060448201526064016106bd565b600082815260106020908152604090912082516108d6928401906127c6565b50336001600160a01b0316827fac027339c24c20f5f41275b1117adb65235d94f2680f571352a226f09a6b184e836040516109119190613dd8565b60405180910390a35050565b61092733826113ac565b6109435760405162461bcd60e51b81526004016106bd90613ec1565b6107f3838383611496565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109c3575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109e2906001600160601b031687613f3e565b6109ec9190613f2a565b915196919550909350505050565b6000610a0583610bc3565b8210610a675760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106bd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107f383838360405180602001604052806000815250610e70565b6000610ab660085490565b8210610b195760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106bd565b60088281548110610b3a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106bd565b60006001600160a01b038216610c2e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106bd565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b03163314610c745760405162461bcd60e51b81526004016106bd90613e8c565b610c7e600061163d565b565b6040516370a0823160e01b81526001600160a01b038216600482015260609060009030906370a082319060240160206040518083038186803b158015610cc557600080fd5b505afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd9190612b62565b905060008167ffffffffffffffff811115610d2857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d51578160200160208202803683370190505b50905060005b82811015610e1a57604051632f745c5960e01b81526001600160a01b0386166004820152602481018290523090632f745c599060440160206040518083038186803b158015610da557600080fd5b505afa158015610db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddd9190612b62565b828281518110610dfd57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610e1281613fdb565b915050610d57565b509392505050565b6060600180546105d290613fa0565b610e3c33838361168f565b5050565b6060610e4b82611321565b610e675760405162461bcd60e51b81526004016106bd90613deb565b6105bd8261175e565b610e7933610865565b610e955760405162461bcd60e51b81526004016106bd90613ec1565b610ea184848484611891565b50505050565b6060610eb282611321565b610ece5760405162461bcd60e51b81526004016106bd90613deb565b60008281526010602052604090208054610ee790613fa0565b159050610e675760008281526010602052604090208054610f0790613fa0565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3390613fa0565b8015610f805780601f10610f5557610100808354040283529160200191610f80565b820191906000526020600020905b815481529060010190602001808311610f6357829003601f168201915b50505050506105bd565b600d543414610fee5760405162461bcd60e51b815260206004820152602a60248201527f44796d6553706163653a2073656e74204574686572206d69736d6174636820746044820152696f6b656e20707269636560b01b60648201526084016106bd565b600061100c82600001518360200151846040015185606001516118c4565b905061101781611931565b6110635760405162461bcd60e51b815260206004820152601760248201527f44796d6553706163653a20696e76616c6964206461746500000000000000000060448201526064016106bd565b6107f38382611999565b6060611078836119b3565b6110bd5760405162461bcd60e51b815260206004820152601660248201527544796d6553706163653a20696e76616c69642065726160501b60448201526064016106bd565b6110c6826119e9565b6111125760405162461bcd60e51b815260206004820152601760248201527f44796d6553706163653a20696e76616c6964207965617200000000000000000060448201526064016106bd565b600061111d83611a01565b6111295761016d61112d565b61016e5b61ffff1667ffffffffffffffff81111561115757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611180578160200160208202803683370190505b509050600060015b600c81116112235760015b61119d8287611a3c565b81116112105760006111b1888885856118c4565b90506111bc81611321565b156111ef57808585815181106111e257634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b836111f981613fdb565b94505050808061120890613fdb565b915050611193565b508061121b81613fdb565b915050611188565b5090949350505050565b600c546001600160a01b031633146112575760405162461bcd60e51b81526004016106bd90613e8c565b6001600160a01b0381166112bc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106bd565b6112c58161163d565b50565b600c546001600160a01b031633146112f25760405162461bcd60e51b81526004016106bd90613e8c565b610e3c8282611af6565b60006001600160e01b0319821663152a902d60e11b14806105bd57506105bd82611c0f565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061137382610b4c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113b782611321565b6114185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106bd565b600061142383610b4c565b9050806001600160a01b0316846001600160a01b0316148061145e5750836001600160a01b031661145384610655565b6001600160a01b0316145b8061148e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114a982610b4c565b6001600160a01b03161461150d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106bd565b6001600160a01b03821661156f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106bd565b61157a838383611c34565b61158560008261133e565b6001600160a01b03831660009081526003602052604081208054600192906115ae908490613f5d565b90915550506001600160a01b03821660009081526003602052604081208054600192906115dc908490613f12565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156116f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106bd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6060600061176b83611cec565b9050600061177c8260600151611db1565b6117898360400151611ecb565b6117968460200151611db1565b6000855160018111156117b957634e487b7160e01b600052602160045260246000fd5b146117de5760405180604001604052806002815260200161434560f01b8152506117fb565b6040518060400160405280600381526020016242434560e81b8152505b60405160200161180e9493929190612dcc565b6040516020818303038152906040529050600061186561182d846120af565b611836846121a5565b61183f88611db1565b60405160200161185193929190612c3b565b6040516020818303038152906040526121a5565b9050806040516020016118789190613d1c565b6040516020818303038152906040529350505050919050565b61189c848484611496565b6118a884848484612307565b610ea15760405162461bcd60e51b81526004016106bd90613e3a565b60008460018111156118e657634e487b7160e01b600052602160045260246000fd5b6118f183600a613f3e565b6118fd856103e8613f3e565b61190a87620186a0613f3e565b6119149190613f12565b61191e9190613f12565b6119289190613f12565b95945050505050565b60008061193d83611cec565b905061194c81600001516119b3565b8015611960575061196081602001516119e9565b801561197457506119748160400151612411565b80156119925750611992816020015182604001518360600151612427565b9392505050565b610e3c82826040518060200160405280600081525061244a565b6000808260018111156119d657634e487b7160e01b600052602160045260246000fd5b9050806001148061199257501592915050565b60006403368b4a0082111580156105bd575050151590565b6000611a0e600483613ff6565b1580156105bd5750611a21606483613ff6565b1515806105bd5750611a3561019083613ff6565b1592915050565b60008260011480611a4d5750826003145b80611a585750826005145b80611a635750826007145b80611a6e5750826008145b80611a79575082600a145b80611a84575082600c145b15611a915750601f6105bd565b8260041480611aa05750826006145b80611aab5750826009145b80611ab6575082600b145b15611ac35750601e6105bd565b8260021415611aed57611ad582611a01565b611ae057601c611ae3565b601d5b60ff1690506105bd565b50600092915050565b80471015611b465760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016106bd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b93576040519150601f19603f3d011682016040523d82523d6000602084013e611b98565b606091505b50509050806107f35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016106bd565b60006001600160e01b0319821663780e9d6360e01b14806105bd57506105bd8261247d565b6001600160a01b038316611c8f57611c8a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611cb2565b816001600160a01b0316836001600160a01b031614611cb257611cb283826124cd565b6001600160a01b038216611cc9576107f38161256a565b826001600160a01b0316826001600160a01b0316146107f3576107f38282612643565b611d18604080516080810190915280600081526020016000815260200160008152602001600081525090565b6040518060800160405280600a84611d309190613ff6565b15611d3c576001611d3f565b60005b6001811115611d5e57634e487b7160e01b600052602160045260246000fd5b8152602001611d70620186a085613f2a565b81526020016064611d836103e886613f2a565b611d8d9190613ff6565b81526020016064611d9f600a86613f2a565b611da99190613ff6565b905292915050565b606081611dd55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dff5780611de981613fdb565b9150611df89050600a83613f2a565b9150611dd9565b60008167ffffffffffffffff811115611e2857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e52576020820181803683370190505b5090505b841561148e57611e67600183613f5d565b9150611e74600a86613ff6565b611e7f906030613f12565b60f81b818381518110611ea257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ec4600a86613f2a565b9450611e56565b606081600114612090578160021461206f578160031461204e578160041461202d578160051461200c5781600614611feb5781600714611fca5781600814611fa95781600914611f885781600a14611f675781600b14611f46576040518060400160405280600381526020016244656360e81b8152506105bd565b604051806040016040528060038152602001622737bb60e91b8152506105bd565b6040518060400160405280600381526020016213d8dd60ea1b8152506105bd565b6040518060400160405280600381526020016205365760ec1b8152506105bd565b6040518060400160405280600381526020016241756760e81b8152506105bd565b60405180604001604052806003815260200162129d5b60ea1b8152506105bd565b60405180604001604052806003815260200162253ab760e91b8152506105bd565b604051806040016040528060038152602001624d617960e81b8152506105bd565b6040518060400160405280600381526020016220b83960e91b8152506105bd565b6040518060400160405280600381526020016226b0b960e91b8152506105bd565b604051806040016040528060038152602001622332b160e91b8152506105bd565b50506040805180820190915260038152622530b760e91b602082015290565b60606120be8260200151611db1565b600a8360400151106120df57604051806020016040528060008152506120fa565b604051806040016040528060018152602001600360fc1b8152505b6121078460400151611db1565b600a8560600151106121285760405180602001604052806000815250612143565b604051806040016040528060018152602001600360fc1b8152505b6121508660600151611db1565b865161217a90600181111561217557634e487b7160e01b600052602160045260246000fd5b611db1565b60405160200161218f96959493929190613c60565b6040516020818303038152906040529050919050565b60608151600014156121c557505060408051602081019091526000815290565b600060405180606001604052806040815260200161407860409139905060006003845160026121f49190613f12565b6121fe9190613f2a565b612209906004613f3e565b67ffffffffffffffff81111561222f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612259576020820181803683370190505b509050600182016020820185865187015b808210156122c5576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061226a565b50506003865106600181146122e157600281146122f4576122fc565b603d6001830353603d60028303536122fc565b603d60018303535b509195945050505050565b60006001600160a01b0384163b1561240957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061234b903390899088908890600401613d61565b602060405180830381600087803b15801561236557600080fd5b505af1925050508015612395575060408051601f3d908101601f1916820190925261239291810190612b13565b60015b6123ef573d8080156123c3576040519150601f19603f3d011682016040523d82523d6000602084013e6123c8565b606091505b5080516123e75760405162461bcd60e51b81526004016106bd90613e3a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061148e565b50600161148e565b6000600182101580156105bd575050600c101590565b60006001821015801561148e575061243f8385611a3c565b821115949350505050565b6124548383612687565b6124616000848484612307565b6107f35760405162461bcd60e51b81526004016106bd90613e3a565b60006001600160e01b031982166380ac58cd60e01b14806124ae57506001600160e01b03198216635b5e139f60e01b145b806105bd57506301ffc9a760e01b6001600160e01b03198316146105bd565b600060016124da84610bc3565b6124e49190613f5d565b600083815260076020526040902054909150808214612537576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061257c90600190613f5d565b600083815260096020526040812054600880549394509092849081106125b257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106125e157634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061262757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061264e83610bc3565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166126dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106bd565b6126e681611321565b156127335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106bd565b61273f60008383611c34565b6001600160a01b0382166000908152600360205260408120805460019290612768908490613f12565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546127d290613fa0565b90600052602060002090601f0160209004810192826127f4576000855561283a565b82601f1061280d57805160ff191683800117855561283a565b8280016001018555821561283a579182015b8281111561283a57825182559160200191906001019061281f565b5061284692915061284a565b5090565b5b80821115612846576000815560010161284b565b600067ffffffffffffffff8084111561287a5761287a614036565b604051601f8501601f19908116603f011681019082821181831017156128a2576128a2614036565b816040528093508581528686860111156128bb57600080fd5b858560208301376000602087830101525050509392505050565b8035600281106128e457600080fd5b919050565b6000602082840312156128fa578081fd5b81356119928161404c565b60008060408385031215612917578081fd5b82356129228161404c565b946020939093013593505050565b60008060408385031215612942578182fd5b823561294d8161404c565b9150602083013561295d8161404c565b809150509250929050565b60008060006060848603121561297c578081fd5b83356129878161404c565b925060208401356129978161404c565b929592945050506040919091013590565b600080600080608085870312156129bd578081fd5b84356129c88161404c565b935060208501356129d88161404c565b925060408501359150606085013567ffffffffffffffff8111156129fa578182fd5b8501601f81018713612a0a578182fd5b612a198782356020840161285f565b91505092959194509250565b60008060408385031215612a37578182fd5b8235612a428161404c565b91506020830135801515811461295d578182fd5b60008082840360a0811215612a69578283fd5b8335612a748161404c565b92506080601f1982011215612a87578182fd5b506040516080810181811067ffffffffffffffff82111715612aab57612aab614036565b604052612aba602085016128d5565b8152604084013560208201526060840135604082015260808401356060820152809150509250929050565b60008060408385031215612917578182fd5b600060208284031215612b08578081fd5b813561199281614061565b600060208284031215612b24578081fd5b815161199281614061565b60008060408385031215612b41578081fd5b612922836128d5565b600060208284031215612b5b578081fd5b5035919050565b600060208284031215612b73578081fd5b5051919050565b60008060408385031215612b8c578182fd5b82359150602083013567ffffffffffffffff811115612ba9578182fd5b8301601f81018513612bb9578182fd5b612bc88582356020840161285f565b9150509250929050565b60008060408385031215612be4578182fd5b50508035926020909101359150565b60008151808452612c0b816020860160208601613f74565b601f01601f19169290920160200192915050565b60008151612c31818560208601613f74565b9290920192915050565b683d913730b6b2911d1160b91b81528351600090612c60816009850160208901613f74565b61088b60f21b6009918401918201527f226465736372697074696f6e223a22546869732064796e616d6963204e465420600b8201527f726570726573656e7473206120756e6971756520646179206f6e207468652062602b8201527f6c6f636b636861696e20776974682069747320636f6e74656e74206265696e67604b8201527f20637573746f6d697a61626c6520627920746865206f776e65722e2043686563606b8201527f6b206f75742064796d652e7370616365222c22696d616765223a22646174613a608b820152741a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b605a1b60ab8201528451612d5e8160c0840160208901613f74565b612dc1612db3612dad60c0848601017f222c2265787465726e616c5f75726c223a2268747470733a2f2f64796d652e7381526d706163652f3f746f6b656e49643d60901b6020820152602e0190565b87612c1f565b61227d60f01b815260020190565b979650505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d223020302037353020373530223e3c7360208201527f74796c653e3c215b43444154415b2e417b69736f6c6174696f6e3a69736f6c6160408201527f74657d2e437b6d69782d626c656e642d6d6f64653a6c69676874656e7d2e447b60608201527f6d69782d626c656e642d6d6f64653a636f6c6f722d6275726e7d2e477b6c657460808201527f7465722d73706163696e673a3370787d5d5d3e3c2f7374796c653e3c6465667360a08201527f3e3c72616469616c4772616469656e742069643d2241222063783d2231352e3360c08201527f33222063793d2232322e312220723d22313332372e373222206772616469656e60e08201527f74556e6974733d227573657253706163654f6e557365223e3c73746f70206f666101008201527f667365743d2230222073746f702d636f6c6f723d2223326530303463222f3e3c6101208201527f73746f70206f66667365743d222e3133222073746f702d636f6c6f723d2223326101408201527f6330323530222f3e3c73746f70206f66667365743d222e3237222073746f702d6101608201527f636f6c6f723d2223323630393565222f3e3c73746f70206f66667365743d222e6101808201527f3432222073746f702d636f6c6f723d2223316431343734222f3e3c73746f70206101a08201527f6f66667365743d222e3532222073746f702d636f6c6f723d22233134316538386101c08201527f222f3e3c73746f70206f66667365743d222e3635222073746f702d636f6c6f726101e08201527f3d2223323131383832222f3e3c73746f70206f66667365743d222e38382220736102008201527f746f702d636f6c6f723d2223343230393733222f3e3c73746f70206f666673656102208201527f743d2231222073746f702d636f6c6f723d2223353730303661222f3e3c2f72616102408201527f6469616c4772616469656e743e3c72616469616c4772616469656e742069643d6102608201527f2242222063783d223732392e3739222063793d223731352e31332220723d22316102808201527f3132332e333522206772616469656e74556e6974733d227573657253706163656102a08201527f4f6e557365223e3c73746f70206f66667365743d222e3137222073746f702d636102c08201527f6f6c6f723d2223666461323931222f3e3c73746f70206f66667365743d222e326102e08201527f33222073746f702d636f6c6f723d2223663339633931222073746f702d6f70616103008201527f636974793d222e3936222f3e3c73746f70206f66667365743d222e33332220736103208201527f746f702d636f6c6f723d2223643938643931222073746f702d6f7061636974796103408201527f3d222e3836222f3e3c73746f70206f66667365743d222e3436222073746f702d6103608201527f636f6c6f723d2223616637343932222073746f702d6f7061636974793d222e366103808201527f39222f3e3c73746f70206f66667365743d222e3631222073746f702d636f6c6f6103a08201527f723d2223373435323933222073746f702d6f7061636974793d222e3436222f3e6103c08201527f3c73746f70206f66667365743d222e3738222073746f702d636f6c6f723d22236103e08201527f326132363933222073746f702d6f7061636974793d222e3137222f3e3c73746f6104008201527f70206f66667365743d222e3837222073746f702d636f6c6f723d2223303030646104208201527f3934222073746f702d6f7061636974793d2230222f3e3c2f72616469616c47726104408201527f616469656e743e3c72616469616c4772616469656e742069643d2243222063786104608201527f3d223637322e3731222063793d2232342e3739222066783d223339312e3931386104808201527f222066793d2239312e3933352220723d223830302e353722206772616469656e6104a08201527f745472616e73666f726d3d227472616e736c61746528302922206772616469656104c08201527f6e74556e6974733d227573657253706163654f6e557365223e3c73746f70206f6104e08201527f66667365743d222e3237222073746f702d636f6c6f723d2223663037363938226105008201527f2f3e3c73746f70206f66667365743d222e3332222073746f702d636f6c6f723d6105208201527f2223653937323961222073746f702d6f7061636974793d222e3937222f3e3c736105408201527f746f70206f66667365743d222e3431222073746f702d636f6c6f723d222364376105608201527f36383966222073746f702d6f7061636974793d222e3838222f3e3c73746f70206105808201527f6f66667365743d222e3532222073746f702d636f6c6f723d22236239353861376105a08201527f222073746f702d6f7061636974793d222e3734222f3e3c73746f70206f6666736105c08201527f65743d222e3634222073746f702d636f6c6f723d2223386634316233222073746105e08201527f6f702d6f7061636974793d222e3535222f3e3c73746f70206f66667365743d226106008201527f2e3737222073746f702d636f6c6f723d2223356132336332222073746f702d6f6106208201527f7061636974793d222e33222f3e3c73746f70206f66667365743d222e393122206106408201527f73746f702d636f6c6f723d2223316230306434222073746f702d6f70616369746106608201527f793d2230222f3e3c2f72616469616c4772616469656e743e3c2f646566733e3c6106808201527f6720636c6173733d2241223e3c673e3c673e3c7061746820643d224d302c30486106a08201527f3735305637353048305a222066696c6c3d2275726c28234129222f3e3c7061746106c08201527f6820636c6173733d22432220643d224d302c30483735305637353048305a22206106e08201527f66696c6c3d2275726c28234229222f3e3c7061746820636c6173733d224422206107008201527f643d224d37353020307637353048305630222066696c6c3d2275726c282343296107208201527f222f3e3c7061746820643d224d3433302c3335342e3731762d3130683230762d6107408201527f3130683130762d3130683130762d3130683130762d3130683130762d313068316107608201527f30762d3230683130762d373048353030762d313048343930762d3130483438306107808201527f762d313048343630762d313048343430762d31304833313076313048323930766107a08201527f31304832373076313048323630763130483235307631304832343076373068316107c08201527f30763230683130763130683130763130683130763130683130763130683130766107e08201527f31306832307631306831307632304833323076313048333030763130483239306108008201527f76313048323830763130483237307631304832363076313048323530763230486108208201527f32343076373068313076313068313076313068313076313068323076313068326108408201527f3076313048343430762d3130683230762d3130683230762d3130683130762d316108608201527f30683130762d3130683130762d373048353030762d323048343930762d3130486108808201527f343830762d313048343730762d313048343630762d313048343530762d3130486108a08201527f343330762d313048343230762d32305a6d2d32392e39332d3132302e316834306108c08201527f762d3130683330762d31306831392e3836762d3130683130763130682d3130766108e08201527f3130483437302e3037763130682d3330763130682d34305a6d2d3131302e30376109008201527f2c3048323830762d3130483236302e3134762d3130682d3130762d31306831306109208201527f76313048323830763130683330763130683430763130683530763130483335306109408201527f762d313048333130762d3130483239305a4d3339302e38352c3436342e3834766109608201527f392e3837483430307631306833307631306832307631306833307632304834366109808201527f30763130483434307631304834313076313048333430762d313048333130762d6109a08201527f313048323930762d313048323730762d3230683330762d3130683230762d31306109c08201527f683330762d31306831302e3835762d392e3837683130563334352e3733682d316109e08201527f30762d3230682d3230762d3130682d3130762d3130682d3130762d3130682d31610a008201527f30762d3130682d3130762d3130683230763130683330763130683530762d3130610a208201527f683330762d3130683230763130682d3130763130682d3130763130682d313076610a408201527f3130682d3130763130682d3230763230682d3130563436342e38345a22206669610a608201527f6c6c3d2223666666222f3e3c2f673e3c2f673e3c2f673e3c7465787420783d22610a808201527f3530252220793d223132252220636c6173733d2247222066696c6c3d22236666610aa08201527f662220666f6e742d7765696768743d22626f6c642220666f6e742d66616d696c610ac08201527f793d226d6f6e6f73706163652220746578742d616e63686f723d226d6964646c610ae0820152713291103337b73a16b9b4bd329e911b98111f60711b610b008201526000613c56613c3d613c37613c2a613c24613b7e613b78613b6a610b128a018e612c1f565b61017160f51b815260020190565b8b612c1f565b7f3c2f746578743e3c7465787420783d223530252220793d223932252220636c6181527f73733d2247222066696c6c3d22236666662220666f6e742d7765696768743d2260208201527f626f6c642220666f6e742d66616d696c793d226d6f6e6f73706163652220746560408201527f78742d616e63686f723d226d6964646c652220666f6e742d73697a653d223730606082015261111f60f11b608082015260820190565b88612c1f565b600160fd1b815260010190565b85612c1f565b6c1e17ba32bc3a1f1e17b9bb339f60991b8152600d0190565b9695505050505050565b64444159202360d81b8152600087516020613c818260058601838d01613f74565b8184019150602d60f81b8060058401528951613ca38160068601858e01613f74565b8951930192613cb88160068601858d01613f74565b600693019283018190528751613cd48160078601858c01613f74565b8751930192613ce98160078601858b01613f74565b600793019283015284516005830192613d09908290600801848901613f74565b9091016003019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613d5481601d850160208701613f74565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c5690830184612bf3565b6020808252825182820181905260009190848201906040850190845b81811015613dcc57835183529284019291840191600101613db0565b50909695505050505050565b6020815260006119926020830184612bf3565b6020808252602f908201527f44796d6553706163653a206f70657261746f7220717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613f2557613f2561400a565b500190565b600082613f3957613f39614020565b500490565b6000816000190483118215151615613f5857613f5861400a565b500290565b600082821015613f6f57613f6f61400a565b500390565b60005b83811015613f8f578181015183820152602001613f77565b83811115610ea15750506000910152565b600181811c90821680613fb457607f821691505b60208210811415613fd557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613fef57613fef61400a565b5060010190565b60008261400557614005614020565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112c557600080fd5b6001600160e01b0319811681146112c557600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220caf71d5ab992e5ad227e65ad0e58278ef54df4af1744d191b5210c42c14ea43564736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101c25760003560e01c806370a08231116100f7578063a6cd1c8311610095578063e80fd8a411610064578063e80fd8a414610509578063e985e9c514610529578063f2fde38b14610572578063f3fef3a31461059257600080fd5b8063a6cd1c8314610496578063b88d4fde146104b6578063c87b56dd146104d6578063d3d4e62d146104f657600080fd5b80638462151c116100d15780638462151c146104165780638da5cb5b1461044357806395d89b4114610461578063a22cb4651461047657600080fd5b806370a08231146103cc578063715018a6146103ec5780637ff9b5961461040157600080fd5b80632a55205a1161016457806342842e0e1161013e57806342842e0e146103575780634f6ccce7146103775780636352211e14610397578063645354a8146103b757600080fd5b80632a55205a146102ca5780632f745c5914610309578063406984181461032957600080fd5b8063095ea7b3116101a0578063095ea7b314610256578063162094c41461027857806318160ddd1461028b57806323b872dd146102aa57600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e2366004612af7565b6105b2565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b506102116105c3565b6040516101f39190613dd8565b34801561022a57600080fd5b5061023e610239366004612b4a565b610655565b6040516001600160a01b0390911681526020016101f3565b34801561026257600080fd5b50610276610271366004612ae5565b6106e2565b005b610276610286366004612b7a565b6107f8565b34801561029757600080fd5b506008545b6040519081526020016101f3565b3480156102b657600080fd5b506102766102c5366004612968565b61091d565b3480156102d657600080fd5b506102ea6102e5366004612bd2565b61094e565b604080516001600160a01b0390931683526020830191909152016101f3565b34801561031557600080fd5b5061029c610324366004612ae5565b6109fa565b34801561033557600080fd5b50604080516604e71a49ca43f281526604e71a49ca70176020820152016101f3565b34801561036357600080fd5b50610276610372366004612968565b610a90565b34801561038357600080fd5b5061029c610392366004612b4a565b610aab565b3480156103a357600080fd5b5061023e6103b2366004612b4a565b610b4c565b3480156103c357600080fd5b50600e5461029c565b3480156103d857600080fd5b5061029c6103e73660046128e9565b610bc3565b3480156103f857600080fd5b50610276610c4a565b34801561040d57600080fd5b50600d5461029c565b34801561042257600080fd5b506104366104313660046128e9565b610c80565b6040516101f39190613d94565b34801561044f57600080fd5b50600c546001600160a01b031661023e565b34801561046d57600080fd5b50610211610e22565b34801561048257600080fd5b50610276610491366004612a25565b610e31565b3480156104a257600080fd5b506102116104b1366004612b4a565b610e40565b3480156104c257600080fd5b506102766104d13660046129a8565b610e70565b3480156104e257600080fd5b506102116104f1366004612b4a565b610ea7565b610276610504366004612a56565b610f8a565b34801561051557600080fd5b50610436610524366004612b2f565b61106d565b34801561053557600080fd5b506101e7610544366004612930565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561057e57600080fd5b5061027661058d3660046128e9565b61122d565b34801561059e57600080fd5b506102766105ad366004612905565b6112c8565b60006105bd826112fc565b92915050565b6060600080546105d290613fa0565b80601f01602080910402602001604051908101604052809291908181526020018280546105fe90613fa0565b801561064b5780601f106106205761010080835404028352916020019161064b565b820191906000526020600020905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b600061066082611321565b6106c65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106ed82610b4c565b9050806001600160a01b0316836001600160a01b0316141561075b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106bd565b336001600160a01b038216148061077757506107778133610544565b6107e95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106bd565b6107f3838361133e565b505050565b600e543411156108605760405162461bcd60e51b815260206004820152602d60248201527f44796d6553706163653a2073656e74204574686572206772656174657220555260448201526c12481c1c9a58d9481b1a5b5a5d609a1b60648201526084016106bd565b61086b335b836113ac565b6108b75760405162461bcd60e51b815260206004820152601860248201527f44796d6553706163653a206e6f74207065726d6974746564000000000000000060448201526064016106bd565b600082815260106020908152604090912082516108d6928401906127c6565b50336001600160a01b0316827fac027339c24c20f5f41275b1117adb65235d94f2680f571352a226f09a6b184e836040516109119190613dd8565b60405180910390a35050565b61092733826113ac565b6109435760405162461bcd60e51b81526004016106bd90613ec1565b6107f3838383611496565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109c3575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109e2906001600160601b031687613f3e565b6109ec9190613f2a565b915196919550909350505050565b6000610a0583610bc3565b8210610a675760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106bd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107f383838360405180602001604052806000815250610e70565b6000610ab660085490565b8210610b195760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106bd565b60088281548110610b3a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106bd565b60006001600160a01b038216610c2e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106bd565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b03163314610c745760405162461bcd60e51b81526004016106bd90613e8c565b610c7e600061163d565b565b6040516370a0823160e01b81526001600160a01b038216600482015260609060009030906370a082319060240160206040518083038186803b158015610cc557600080fd5b505afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd9190612b62565b905060008167ffffffffffffffff811115610d2857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d51578160200160208202803683370190505b50905060005b82811015610e1a57604051632f745c5960e01b81526001600160a01b0386166004820152602481018290523090632f745c599060440160206040518083038186803b158015610da557600080fd5b505afa158015610db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddd9190612b62565b828281518110610dfd57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610e1281613fdb565b915050610d57565b509392505050565b6060600180546105d290613fa0565b610e3c33838361168f565b5050565b6060610e4b82611321565b610e675760405162461bcd60e51b81526004016106bd90613deb565b6105bd8261175e565b610e7933610865565b610e955760405162461bcd60e51b81526004016106bd90613ec1565b610ea184848484611891565b50505050565b6060610eb282611321565b610ece5760405162461bcd60e51b81526004016106bd90613deb565b60008281526010602052604090208054610ee790613fa0565b159050610e675760008281526010602052604090208054610f0790613fa0565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3390613fa0565b8015610f805780601f10610f5557610100808354040283529160200191610f80565b820191906000526020600020905b815481529060010190602001808311610f6357829003601f168201915b50505050506105bd565b600d543414610fee5760405162461bcd60e51b815260206004820152602a60248201527f44796d6553706163653a2073656e74204574686572206d69736d6174636820746044820152696f6b656e20707269636560b01b60648201526084016106bd565b600061100c82600001518360200151846040015185606001516118c4565b905061101781611931565b6110635760405162461bcd60e51b815260206004820152601760248201527f44796d6553706163653a20696e76616c6964206461746500000000000000000060448201526064016106bd565b6107f38382611999565b6060611078836119b3565b6110bd5760405162461bcd60e51b815260206004820152601660248201527544796d6553706163653a20696e76616c69642065726160501b60448201526064016106bd565b6110c6826119e9565b6111125760405162461bcd60e51b815260206004820152601760248201527f44796d6553706163653a20696e76616c6964207965617200000000000000000060448201526064016106bd565b600061111d83611a01565b6111295761016d61112d565b61016e5b61ffff1667ffffffffffffffff81111561115757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611180578160200160208202803683370190505b509050600060015b600c81116112235760015b61119d8287611a3c565b81116112105760006111b1888885856118c4565b90506111bc81611321565b156111ef57808585815181106111e257634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b836111f981613fdb565b94505050808061120890613fdb565b915050611193565b508061121b81613fdb565b915050611188565b5090949350505050565b600c546001600160a01b031633146112575760405162461bcd60e51b81526004016106bd90613e8c565b6001600160a01b0381166112bc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106bd565b6112c58161163d565b50565b600c546001600160a01b031633146112f25760405162461bcd60e51b81526004016106bd90613e8c565b610e3c8282611af6565b60006001600160e01b0319821663152a902d60e11b14806105bd57506105bd82611c0f565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061137382610b4c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006113b782611321565b6114185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106bd565b600061142383610b4c565b9050806001600160a01b0316846001600160a01b0316148061145e5750836001600160a01b031661145384610655565b6001600160a01b0316145b8061148e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114a982610b4c565b6001600160a01b03161461150d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106bd565b6001600160a01b03821661156f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106bd565b61157a838383611c34565b61158560008261133e565b6001600160a01b03831660009081526003602052604081208054600192906115ae908490613f5d565b90915550506001600160a01b03821660009081526003602052604081208054600192906115dc908490613f12565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156116f15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106bd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6060600061176b83611cec565b9050600061177c8260600151611db1565b6117898360400151611ecb565b6117968460200151611db1565b6000855160018111156117b957634e487b7160e01b600052602160045260246000fd5b146117de5760405180604001604052806002815260200161434560f01b8152506117fb565b6040518060400160405280600381526020016242434560e81b8152505b60405160200161180e9493929190612dcc565b6040516020818303038152906040529050600061186561182d846120af565b611836846121a5565b61183f88611db1565b60405160200161185193929190612c3b565b6040516020818303038152906040526121a5565b9050806040516020016118789190613d1c565b6040516020818303038152906040529350505050919050565b61189c848484611496565b6118a884848484612307565b610ea15760405162461bcd60e51b81526004016106bd90613e3a565b60008460018111156118e657634e487b7160e01b600052602160045260246000fd5b6118f183600a613f3e565b6118fd856103e8613f3e565b61190a87620186a0613f3e565b6119149190613f12565b61191e9190613f12565b6119289190613f12565b95945050505050565b60008061193d83611cec565b905061194c81600001516119b3565b8015611960575061196081602001516119e9565b801561197457506119748160400151612411565b80156119925750611992816020015182604001518360600151612427565b9392505050565b610e3c82826040518060200160405280600081525061244a565b6000808260018111156119d657634e487b7160e01b600052602160045260246000fd5b9050806001148061199257501592915050565b60006403368b4a0082111580156105bd575050151590565b6000611a0e600483613ff6565b1580156105bd5750611a21606483613ff6565b1515806105bd5750611a3561019083613ff6565b1592915050565b60008260011480611a4d5750826003145b80611a585750826005145b80611a635750826007145b80611a6e5750826008145b80611a79575082600a145b80611a84575082600c145b15611a915750601f6105bd565b8260041480611aa05750826006145b80611aab5750826009145b80611ab6575082600b145b15611ac35750601e6105bd565b8260021415611aed57611ad582611a01565b611ae057601c611ae3565b601d5b60ff1690506105bd565b50600092915050565b80471015611b465760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016106bd565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b93576040519150601f19603f3d011682016040523d82523d6000602084013e611b98565b606091505b50509050806107f35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016106bd565b60006001600160e01b0319821663780e9d6360e01b14806105bd57506105bd8261247d565b6001600160a01b038316611c8f57611c8a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611cb2565b816001600160a01b0316836001600160a01b031614611cb257611cb283826124cd565b6001600160a01b038216611cc9576107f38161256a565b826001600160a01b0316826001600160a01b0316146107f3576107f38282612643565b611d18604080516080810190915280600081526020016000815260200160008152602001600081525090565b6040518060800160405280600a84611d309190613ff6565b15611d3c576001611d3f565b60005b6001811115611d5e57634e487b7160e01b600052602160045260246000fd5b8152602001611d70620186a085613f2a565b81526020016064611d836103e886613f2a565b611d8d9190613ff6565b81526020016064611d9f600a86613f2a565b611da99190613ff6565b905292915050565b606081611dd55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dff5780611de981613fdb565b9150611df89050600a83613f2a565b9150611dd9565b60008167ffffffffffffffff811115611e2857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e52576020820181803683370190505b5090505b841561148e57611e67600183613f5d565b9150611e74600a86613ff6565b611e7f906030613f12565b60f81b818381518110611ea257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611ec4600a86613f2a565b9450611e56565b606081600114612090578160021461206f578160031461204e578160041461202d578160051461200c5781600614611feb5781600714611fca5781600814611fa95781600914611f885781600a14611f675781600b14611f46576040518060400160405280600381526020016244656360e81b8152506105bd565b604051806040016040528060038152602001622737bb60e91b8152506105bd565b6040518060400160405280600381526020016213d8dd60ea1b8152506105bd565b6040518060400160405280600381526020016205365760ec1b8152506105bd565b6040518060400160405280600381526020016241756760e81b8152506105bd565b60405180604001604052806003815260200162129d5b60ea1b8152506105bd565b60405180604001604052806003815260200162253ab760e91b8152506105bd565b604051806040016040528060038152602001624d617960e81b8152506105bd565b6040518060400160405280600381526020016220b83960e91b8152506105bd565b6040518060400160405280600381526020016226b0b960e91b8152506105bd565b604051806040016040528060038152602001622332b160e91b8152506105bd565b50506040805180820190915260038152622530b760e91b602082015290565b60606120be8260200151611db1565b600a8360400151106120df57604051806020016040528060008152506120fa565b604051806040016040528060018152602001600360fc1b8152505b6121078460400151611db1565b600a8560600151106121285760405180602001604052806000815250612143565b604051806040016040528060018152602001600360fc1b8152505b6121508660600151611db1565b865161217a90600181111561217557634e487b7160e01b600052602160045260246000fd5b611db1565b60405160200161218f96959493929190613c60565b6040516020818303038152906040529050919050565b60608151600014156121c557505060408051602081019091526000815290565b600060405180606001604052806040815260200161407860409139905060006003845160026121f49190613f12565b6121fe9190613f2a565b612209906004613f3e565b67ffffffffffffffff81111561222f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612259576020820181803683370190505b509050600182016020820185865187015b808210156122c5576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061226a565b50506003865106600181146122e157600281146122f4576122fc565b603d6001830353603d60028303536122fc565b603d60018303535b509195945050505050565b60006001600160a01b0384163b1561240957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061234b903390899088908890600401613d61565b602060405180830381600087803b15801561236557600080fd5b505af1925050508015612395575060408051601f3d908101601f1916820190925261239291810190612b13565b60015b6123ef573d8080156123c3576040519150601f19603f3d011682016040523d82523d6000602084013e6123c8565b606091505b5080516123e75760405162461bcd60e51b81526004016106bd90613e3a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061148e565b50600161148e565b6000600182101580156105bd575050600c101590565b60006001821015801561148e575061243f8385611a3c565b821115949350505050565b6124548383612687565b6124616000848484612307565b6107f35760405162461bcd60e51b81526004016106bd90613e3a565b60006001600160e01b031982166380ac58cd60e01b14806124ae57506001600160e01b03198216635b5e139f60e01b145b806105bd57506301ffc9a760e01b6001600160e01b03198316146105bd565b600060016124da84610bc3565b6124e49190613f5d565b600083815260076020526040902054909150808214612537576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061257c90600190613f5d565b600083815260096020526040812054600880549394509092849081106125b257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106125e157634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061262757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061264e83610bc3565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166126dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106bd565b6126e681611321565b156127335760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106bd565b61273f60008383611c34565b6001600160a01b0382166000908152600360205260408120805460019290612768908490613f12565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546127d290613fa0565b90600052602060002090601f0160209004810192826127f4576000855561283a565b82601f1061280d57805160ff191683800117855561283a565b8280016001018555821561283a579182015b8281111561283a57825182559160200191906001019061281f565b5061284692915061284a565b5090565b5b80821115612846576000815560010161284b565b600067ffffffffffffffff8084111561287a5761287a614036565b604051601f8501601f19908116603f011681019082821181831017156128a2576128a2614036565b816040528093508581528686860111156128bb57600080fd5b858560208301376000602087830101525050509392505050565b8035600281106128e457600080fd5b919050565b6000602082840312156128fa578081fd5b81356119928161404c565b60008060408385031215612917578081fd5b82356129228161404c565b946020939093013593505050565b60008060408385031215612942578182fd5b823561294d8161404c565b9150602083013561295d8161404c565b809150509250929050565b60008060006060848603121561297c578081fd5b83356129878161404c565b925060208401356129978161404c565b929592945050506040919091013590565b600080600080608085870312156129bd578081fd5b84356129c88161404c565b935060208501356129d88161404c565b925060408501359150606085013567ffffffffffffffff8111156129fa578182fd5b8501601f81018713612a0a578182fd5b612a198782356020840161285f565b91505092959194509250565b60008060408385031215612a37578182fd5b8235612a428161404c565b91506020830135801515811461295d578182fd5b60008082840360a0811215612a69578283fd5b8335612a748161404c565b92506080601f1982011215612a87578182fd5b506040516080810181811067ffffffffffffffff82111715612aab57612aab614036565b604052612aba602085016128d5565b8152604084013560208201526060840135604082015260808401356060820152809150509250929050565b60008060408385031215612917578182fd5b600060208284031215612b08578081fd5b813561199281614061565b600060208284031215612b24578081fd5b815161199281614061565b60008060408385031215612b41578081fd5b612922836128d5565b600060208284031215612b5b578081fd5b5035919050565b600060208284031215612b73578081fd5b5051919050565b60008060408385031215612b8c578182fd5b82359150602083013567ffffffffffffffff811115612ba9578182fd5b8301601f81018513612bb9578182fd5b612bc88582356020840161285f565b9150509250929050565b60008060408385031215612be4578182fd5b50508035926020909101359150565b60008151808452612c0b816020860160208601613f74565b601f01601f19169290920160200192915050565b60008151612c31818560208601613f74565b9290920192915050565b683d913730b6b2911d1160b91b81528351600090612c60816009850160208901613f74565b61088b60f21b6009918401918201527f226465736372697074696f6e223a22546869732064796e616d6963204e465420600b8201527f726570726573656e7473206120756e6971756520646179206f6e207468652062602b8201527f6c6f636b636861696e20776974682069747320636f6e74656e74206265696e67604b8201527f20637573746f6d697a61626c6520627920746865206f776e65722e2043686563606b8201527f6b206f75742064796d652e7370616365222c22696d616765223a22646174613a608b820152741a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b605a1b60ab8201528451612d5e8160c0840160208901613f74565b612dc1612db3612dad60c0848601017f222c2265787465726e616c5f75726c223a2268747470733a2f2f64796d652e7381526d706163652f3f746f6b656e49643d60901b6020820152602e0190565b87612c1f565b61227d60f01b815260020190565b979650505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d223020302037353020373530223e3c7360208201527f74796c653e3c215b43444154415b2e417b69736f6c6174696f6e3a69736f6c6160408201527f74657d2e437b6d69782d626c656e642d6d6f64653a6c69676874656e7d2e447b60608201527f6d69782d626c656e642d6d6f64653a636f6c6f722d6275726e7d2e477b6c657460808201527f7465722d73706163696e673a3370787d5d5d3e3c2f7374796c653e3c6465667360a08201527f3e3c72616469616c4772616469656e742069643d2241222063783d2231352e3360c08201527f33222063793d2232322e312220723d22313332372e373222206772616469656e60e08201527f74556e6974733d227573657253706163654f6e557365223e3c73746f70206f666101008201527f667365743d2230222073746f702d636f6c6f723d2223326530303463222f3e3c6101208201527f73746f70206f66667365743d222e3133222073746f702d636f6c6f723d2223326101408201527f6330323530222f3e3c73746f70206f66667365743d222e3237222073746f702d6101608201527f636f6c6f723d2223323630393565222f3e3c73746f70206f66667365743d222e6101808201527f3432222073746f702d636f6c6f723d2223316431343734222f3e3c73746f70206101a08201527f6f66667365743d222e3532222073746f702d636f6c6f723d22233134316538386101c08201527f222f3e3c73746f70206f66667365743d222e3635222073746f702d636f6c6f726101e08201527f3d2223323131383832222f3e3c73746f70206f66667365743d222e38382220736102008201527f746f702d636f6c6f723d2223343230393733222f3e3c73746f70206f666673656102208201527f743d2231222073746f702d636f6c6f723d2223353730303661222f3e3c2f72616102408201527f6469616c4772616469656e743e3c72616469616c4772616469656e742069643d6102608201527f2242222063783d223732392e3739222063793d223731352e31332220723d22316102808201527f3132332e333522206772616469656e74556e6974733d227573657253706163656102a08201527f4f6e557365223e3c73746f70206f66667365743d222e3137222073746f702d636102c08201527f6f6c6f723d2223666461323931222f3e3c73746f70206f66667365743d222e326102e08201527f33222073746f702d636f6c6f723d2223663339633931222073746f702d6f70616103008201527f636974793d222e3936222f3e3c73746f70206f66667365743d222e33332220736103208201527f746f702d636f6c6f723d2223643938643931222073746f702d6f7061636974796103408201527f3d222e3836222f3e3c73746f70206f66667365743d222e3436222073746f702d6103608201527f636f6c6f723d2223616637343932222073746f702d6f7061636974793d222e366103808201527f39222f3e3c73746f70206f66667365743d222e3631222073746f702d636f6c6f6103a08201527f723d2223373435323933222073746f702d6f7061636974793d222e3436222f3e6103c08201527f3c73746f70206f66667365743d222e3738222073746f702d636f6c6f723d22236103e08201527f326132363933222073746f702d6f7061636974793d222e3137222f3e3c73746f6104008201527f70206f66667365743d222e3837222073746f702d636f6c6f723d2223303030646104208201527f3934222073746f702d6f7061636974793d2230222f3e3c2f72616469616c47726104408201527f616469656e743e3c72616469616c4772616469656e742069643d2243222063786104608201527f3d223637322e3731222063793d2232342e3739222066783d223339312e3931386104808201527f222066793d2239312e3933352220723d223830302e353722206772616469656e6104a08201527f745472616e73666f726d3d227472616e736c61746528302922206772616469656104c08201527f6e74556e6974733d227573657253706163654f6e557365223e3c73746f70206f6104e08201527f66667365743d222e3237222073746f702d636f6c6f723d2223663037363938226105008201527f2f3e3c73746f70206f66667365743d222e3332222073746f702d636f6c6f723d6105208201527f2223653937323961222073746f702d6f7061636974793d222e3937222f3e3c736105408201527f746f70206f66667365743d222e3431222073746f702d636f6c6f723d222364376105608201527f36383966222073746f702d6f7061636974793d222e3838222f3e3c73746f70206105808201527f6f66667365743d222e3532222073746f702d636f6c6f723d22236239353861376105a08201527f222073746f702d6f7061636974793d222e3734222f3e3c73746f70206f6666736105c08201527f65743d222e3634222073746f702d636f6c6f723d2223386634316233222073746105e08201527f6f702d6f7061636974793d222e3535222f3e3c73746f70206f66667365743d226106008201527f2e3737222073746f702d636f6c6f723d2223356132336332222073746f702d6f6106208201527f7061636974793d222e33222f3e3c73746f70206f66667365743d222e393122206106408201527f73746f702d636f6c6f723d2223316230306434222073746f702d6f70616369746106608201527f793d2230222f3e3c2f72616469616c4772616469656e743e3c2f646566733e3c6106808201527f6720636c6173733d2241223e3c673e3c673e3c7061746820643d224d302c30486106a08201527f3735305637353048305a222066696c6c3d2275726c28234129222f3e3c7061746106c08201527f6820636c6173733d22432220643d224d302c30483735305637353048305a22206106e08201527f66696c6c3d2275726c28234229222f3e3c7061746820636c6173733d224422206107008201527f643d224d37353020307637353048305630222066696c6c3d2275726c282343296107208201527f222f3e3c7061746820643d224d3433302c3335342e3731762d3130683230762d6107408201527f3130683130762d3130683130762d3130683130762d3130683130762d313068316107608201527f30762d3230683130762d373048353030762d313048343930762d3130483438306107808201527f762d313048343630762d313048343430762d31304833313076313048323930766107a08201527f31304832373076313048323630763130483235307631304832343076373068316107c08201527f30763230683130763130683130763130683130763130683130763130683130766107e08201527f31306832307631306831307632304833323076313048333030763130483239306108008201527f76313048323830763130483237307631304832363076313048323530763230486108208201527f32343076373068313076313068313076313068313076313068323076313068326108408201527f3076313048343430762d3130683230762d3130683230762d3130683130762d316108608201527f30683130762d3130683130762d373048353030762d323048343930762d3130486108808201527f343830762d313048343730762d313048343630762d313048343530762d3130486108a08201527f343330762d313048343230762d32305a6d2d32392e39332d3132302e316834306108c08201527f762d3130683330762d31306831392e3836762d3130683130763130682d3130766108e08201527f3130483437302e3037763130682d3330763130682d34305a6d2d3131302e30376109008201527f2c3048323830762d3130483236302e3134762d3130682d3130762d31306831306109208201527f76313048323830763130683330763130683430763130683530763130483335306109408201527f762d313048333130762d3130483239305a4d3339302e38352c3436342e3834766109608201527f392e3837483430307631306833307631306832307631306833307632304834366109808201527f30763130483434307631304834313076313048333430762d313048333130762d6109a08201527f313048323930762d313048323730762d3230683330762d3130683230762d31306109c08201527f683330762d31306831302e3835762d392e3837683130563334352e3733682d316109e08201527f30762d3230682d3230762d3130682d3130762d3130682d3130762d3130682d31610a008201527f30762d3130682d3130762d3130683230763130683330763130683530762d3130610a208201527f683330762d3130683230763130682d3130763130682d3130763130682d313076610a408201527f3130682d3130763130682d3230763230682d3130563436342e38345a22206669610a608201527f6c6c3d2223666666222f3e3c2f673e3c2f673e3c2f673e3c7465787420783d22610a808201527f3530252220793d223132252220636c6173733d2247222066696c6c3d22236666610aa08201527f662220666f6e742d7765696768743d22626f6c642220666f6e742d66616d696c610ac08201527f793d226d6f6e6f73706163652220746578742d616e63686f723d226d6964646c610ae0820152713291103337b73a16b9b4bd329e911b98111f60711b610b008201526000613c56613c3d613c37613c2a613c24613b7e613b78613b6a610b128a018e612c1f565b61017160f51b815260020190565b8b612c1f565b7f3c2f746578743e3c7465787420783d223530252220793d223932252220636c6181527f73733d2247222066696c6c3d22236666662220666f6e742d7765696768743d2260208201527f626f6c642220666f6e742d66616d696c793d226d6f6e6f73706163652220746560408201527f78742d616e63686f723d226d6964646c652220666f6e742d73697a653d223730606082015261111f60f11b608082015260820190565b88612c1f565b600160fd1b815260010190565b85612c1f565b6c1e17ba32bc3a1f1e17b9bb339f60991b8152600d0190565b9695505050505050565b64444159202360d81b8152600087516020613c818260058601838d01613f74565b8184019150602d60f81b8060058401528951613ca38160068601858e01613f74565b8951930192613cb88160068601858d01613f74565b600693019283018190528751613cd48160078601858c01613f74565b8751930192613ce98160078601858b01613f74565b600793019283015284516005830192613d09908290600801848901613f74565b9091016003019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613d5481601d850160208701613f74565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c5690830184612bf3565b6020808252825182820181905260009190848201906040850190845b81811015613dcc57835183529284019291840191600101613db0565b50909695505050505050565b6020815260006119926020830184612bf3565b6020808252602f908201527f44796d6553706163653a206f70657261746f7220717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613f2557613f2561400a565b500190565b600082613f3957613f39614020565b500490565b6000816000190483118215151615613f5857613f5861400a565b500290565b600082821015613f6f57613f6f61400a565b500390565b60005b83811015613f8f578181015183820152602001613f77565b83811115610ea15750506000910152565b600181811c90821680613fb457607f821691505b60208210811415613fd557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613fef57613fef61400a565b5060010190565b60008261400557614005614020565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112c557600080fd5b6001600160e01b0319811681146112c557600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220caf71d5ab992e5ad227e65ad0e58278ef54df4af1744d191b5210c42c14ea43564736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,632.22 | 0.22 | $579.09 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.