ERC-721
Overview
Max Total Supply
82 SPFLOWER
Holders
33
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 SPFLOWERLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SpringFlowers
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 50 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "tiny-erc721/contracts/TinyERC721.sol"; import "./Garden.sol"; contract SpringFlowers is TinyERC721, Ownable, Pausable { uint256 public constant MAX_SUPPLY = 2000; uint256 public maxPerWallet = 3; uint256 public price = 0.004 ether; string public contractURIString; address public freePass = 0xfdf1f065ED5097D84CB3b36695D9D70153a8056C; constructor() TinyERC721("Spring Flowers", "SPFLOWER", 0) { _pause(); } function _calculateAux( address from, address to, uint256 tokenId, bytes12 current ) internal view virtual override returns (bytes12) { return from == address(0) ? bytes12( keccak256( abi.encodePacked( tokenId, to, block.difficulty, block.timestamp ) ) ) : current; } function flowerHash(uint256 tokenId) public view returns (bytes32) { return keccak256(abi.encodePacked(tokenId, _tokenData(tokenId).aux)); } function mint(uint256 amount) external payable whenNotPaused { require(totalSupply() + amount <= MAX_SUPPLY); require(amount <= maxPerWallet); require( balanceOf(msg.sender) + amount <= maxPerWallet, "Max mint limit" ); if(IERC721(freePass).balanceOf(msg.sender) == 0){ checkValue(price * amount); } _mint(msg.sender, amount); } function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { require(_exists(tokenId), "Token does not exist"); return ( string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name": "Flower #', Strings.toString(tokenId), '", "description": "Spring Flowers is a collection of 100% on-chain generative flowers! The flower traits are randomly generated at mint, partially seeded with the minters address.", "image": "data:image/svg+xml;base64,', Base64.encode( bytes( Garden.getFlowerSVG(flowerHash(tokenId)) ) ), '", "attributes":', Garden.getFlowerTraits(flowerHash(tokenId)), "}" ) ) ) ) ) ); } function getSVG(uint256 tokenId) external view returns (string memory){ return Garden.getFlowerSVG(flowerHash(tokenId)); } function contractURI() external view returns (string memory) { return ( string( abi.encodePacked( "data:application/json;base64,", contractURIString ) ) ); } function tokensOfOwner( address _owner ) external view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while ( ownedTokenIndex < ownerTokenCount && currentTokenId <= MAX_SUPPLY ) { // -1 for 0-based token count address currentTokenOwner = ownerOf(currentTokenId - 1); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId-1; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } //// Private function checkValue(uint256 value) private { if (msg.value > value) { (bool succ, ) = payable(msg.sender).call{ value: (msg.value - value) }(""); require(succ); } else if (msg.value < value) { revert(); } } /// Admin function mintTo(address to, uint256 _amount) external onlyOwner { require(totalSupply() + _amount <= MAX_SUPPLY); _mint(to, _amount); } function setContractURI(string memory _contractURI) external onlyOwner { contractURIString = _contractURI; } function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner { maxPerWallet = _maxPerWallet; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function setFreePass(address _freePass) external onlyOwner { freePass = _freePass; } function togglePause() external onlyOwner { paused() ? _unpause() : _pause(); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; (bool succ, ) = payable(msg.sender).call{value: balance}(""); require(succ); } } ///~@nft_ved
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _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 paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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) public 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: * * - `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 (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.8.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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)); /// @solidity memory-safe-assembly 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 // 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/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.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Strings.sol"; library Garden { using Strings for uint256; uint256 constant probDaisyCutoff = 65; uint256 constant probLilyCutoff = 98; function getFlowerSVG(bytes32 flowerHash) internal view returns (string memory){ uint256 saltedSeed = uint256(keccak256(abi.encodePacked(flowerHash, address(this)))); uint256 flowerType = uint256(flowerHash) % 100; string memory svg = string( abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">' ) ); // Background svg = string(abi.encodePacked(svg, '<rect x="0" y="0" width="200" height="200" fill="lightblue"/>')); // Add the stem svg = string(abi.encodePacked(svg, '<rect x="97" y="100" width="6" height="100" fill="green" stroke="black" stroke-width="1"/>')); // Add the flower if(flowerType <= probDaisyCutoff){ svg = string(abi.encodePacked(svg, generateDaisy(saltedSeed))); } else if (flowerType > probDaisyCutoff && flowerType <= probLilyCutoff){ svg = string(abi.encodePacked(svg, generateLily(saltedSeed))); } else { svg = string(abi.encodePacked(svg, generateCamellia(saltedSeed))); } svg = string(abi.encodePacked(svg, "</svg>")); return svg; } function getFlowerTraits(bytes32 flowerHash) internal view returns (string memory){ uint256 saltedSeed = uint256(keccak256(abi.encodePacked(flowerHash, address(this)))); uint256 flowerType = uint256(flowerHash) % 100; return string( abi.encodePacked( '[{"trait_type":"Flower","value":"', getFlowerTypeString(flowerType), '"},{"trait_type":"Color","value":"', getPetalColor(saltedSeed),'"}]' )); } function getFlowerTypeString(uint256 flowerType) internal pure returns (string memory){ string memory flowerTypeString = "camellia"; if(flowerType <= probDaisyCutoff){ flowerTypeString = "daisy"; } else if (flowerType > probDaisyCutoff && flowerType <= probLilyCutoff){ flowerTypeString = "lily"; } return flowerTypeString; } function getPetalColor( uint256 seed ) private pure returns (string memory) { string[] memory colors = new string[](25); colors[0] = "gold"; colors[1] = "yellow"; colors[2] = "moccasin"; colors[3] = "peachpuff"; colors[4] = "lavender"; colors[5] = "thistle"; colors[6] = "orchid"; colors[7] = "lavender"; colors[8] = "mediumpurple"; colors[9] = "blueviolet"; colors[10] = "indigo"; colors[11] = "slateblue"; colors[12] = "midnightblue"; colors[13] = "rosybrown"; colors[14] = "white"; colors[15] = "aliceblue"; colors[16] = "azure"; colors[17] = "mistyrose"; colors[18] = "lightcoral"; colors[19] = "crimson"; colors[20] = "salmon"; colors[21] = "pink"; colors[22] = "mediumvioletred"; colors[23] = "tomato"; colors[24] = "lightsalmon"; uint256 colorIndex = seed % 25; return colors[colorIndex]; } function getDaisyCenterColor( uint256 seed ) private pure returns (string memory) { string memory color = seed % 25 < 3 ? "black" : "yellow"; return color; } function generateDaisy(uint256 seed) internal pure returns (string memory) { uint256 numPetals = (seed % 8) + 16; uint256 rotation = 360 / numPetals; string memory svg; string memory color = getPetalColor(seed); // Add petals using radial symmetry for (uint256 i = 0; i < numPetals; i++) { uint256 petalRadius = ((seed % 10) + 10) / 2; string memory petal = string( abi.encodePacked( '<ellipse cx="100" cy="75" rx="', petalRadius.toString(), '" ry="25" fill="', color, '" stroke="black" stroke-width="1" transform="rotate(', ((rotation * i)+195).toString(), ' 100 100)"/>' ) ); svg = string(abi.encodePacked(svg, petal)); } // Add the central circle svg = string( abi.encodePacked( svg, '<circle cx="100" cy="100" r="15" fill="', getDaisyCenterColor(seed), '" stroke="black" stroke-width="1"/>' ) ); return svg; } function generateCamellia(uint256 seed) internal pure returns (string memory) { string memory svg; // Choose a random color for the petals string memory petalColor = getPetalColor(seed); // Generate Camellia petals using radial symmetry and layers for (uint256 layer = 0; layer < 7; layer++) { uint256 petalWidth = 50 - 5 * layer; uint256 petalHeight = (seed % 15) + 60 - 5 * layer; uint256 petalRadius = petalWidth / 2; for (uint256 i = 0; i < 12; i++) { string memory petal = string( abi.encodePacked( '<ellipse cx="100" cy="', (100 - petalHeight / 2 + 5 * layer).toString(), '" rx="', petalRadius.toString(), '" ry="', (petalHeight / 2).toString(), '" fill="', petalColor, '" transform="rotate(', (30 * i + ((layer % 2) * 30) / 2).toString(), ' 100 100)" stroke="black" stroke-width="1"/>' ) ); svg = string(abi.encodePacked(svg, petal)); } } return svg; } function generateLily(uint256 seed) internal pure returns (string memory) { string memory svg; // Petal dimensions uint256 petalWidth = (seed % 20) + 40; uint256 petalHeight = ((seed / 2) % 30) + 60; uint256 petalRadius = petalWidth / 2; // Create a radial gradient for the petals string memory gradient = string( abi.encodePacked( '<defs><radialGradient id="petalGradient" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="50%" style="stop-color:', getPetalColor(seed), '"/><stop offset="100%" style="stop-color:white"/></radialGradient></defs>' ) ); svg = string(abi.encodePacked(svg, gradient)); // Generate 6 petals using radial symmetry for (uint256 i = 0; i < 6; i++) { string memory petal = string( abi.encodePacked( '<ellipse cx="100" cy="', (100 - petalHeight / 2).toString(), '" rx="', petalRadius.toString(), '" ry="', (petalHeight / 2).toString(), '" fill="url(#petalGradient)" transform="rotate(', ((60 * i) + 30).toString(), ' 100 100)" stroke="black" stroke-width="1"/>' ) ); svg = string(abi.encodePacked(svg, petal)); } // Add the stamen string memory stamen = string( abi.encodePacked( '<ellipse cx="100" cy="100" rx="10" ry="20" fill="orange" stroke="black" stroke-width="1"/>' ) ); svg = string(abi.encodePacked(svg, stamen)); return svg; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error TokenDataQueryForNonexistentToken(); error OwnerQueryForNonexistentToken(); error OperatorQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); contract TinyERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; struct TokenData { address owner; bytes12 aux; } uint256 private immutable _maxBatchSize; mapping(uint256 => TokenData) private _tokens; uint256 private _mintCounter; string private _name; string private _symbol; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { _name = name_; _symbol = symbol_; _maxBatchSize = maxBatchSize_; } function totalSupply() public view virtual returns (uint256) { return _mintCounter; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } function _baseURI() internal view virtual returns (string memory) { return ''; } function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); uint256 total = totalSupply(); uint256 count; address lastOwner; for (uint256 i; i < total; ++i) { address tokenOwner = _tokens[i].owner; if (tokenOwner != address(0)) lastOwner = tokenOwner; if (lastOwner == owner) ++count; } return count; } function _tokenData(uint256 tokenId) internal view returns (TokenData storage) { if (!_exists(tokenId)) revert TokenDataQueryForNonexistentToken(); TokenData storage token = _tokens[tokenId]; uint256 currentIndex = tokenId; while (token.owner == address(0)) { unchecked { --currentIndex; } token = _tokens[currentIndex]; } return token; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken(); return _tokenData(tokenId).owner; } function approve(address to, uint256 tokenId) public virtual override { TokenData memory token = _tokenData(tokenId); address owner = token.owner; if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, token); } function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { TokenData memory token = _tokenData(tokenId); if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved(); _transfer(from, to, tokenId, token); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { TokenData memory token = _tokenData(tokenId); if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved(); _safeTransfer(from, to, tokenId, token, _data); } function _safeTransfer( address from, address to, uint256 tokenId, TokenData memory token, bytes memory _data ) internal virtual { _transfer(from, to, tokenId, token); if (to.isContract() && !_checkOnERC721Received(from, to, tokenId, _data)) revert TransferToNonERC721ReceiverImplementer(); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _mintCounter; } function _isApprovedOrOwner( address spender, uint256 tokenId, TokenData memory token ) internal view virtual returns (bool) { address owner = token.owner; return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 startTokenId = _mintCounter; _mint(to, quantity); if (to.isContract()) { unchecked { for (uint256 i; i < quantity; ++i) { if (!_checkOnERC721Received(address(0), to, startTokenId + i, _data)) revert TransferToNonERC721ReceiverImplementer(); } } } } function _mint(address to, uint256 quantity) internal virtual { if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); uint256 startTokenId = _mintCounter; _beforeTokenTransfers(address(0), to, startTokenId, quantity); unchecked { for (uint256 i; i < quantity; ++i) { if (_maxBatchSize == 0 ? i == 0 : i % _maxBatchSize == 0) { TokenData storage token = _tokens[startTokenId + i]; token.owner = to; token.aux = _calculateAux(address(0), to, startTokenId + i, 0); } emit Transfer(address(0), to, startTokenId + i); } _mintCounter += quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } function _transfer( address from, address to, uint256 tokenId, TokenData memory token ) internal virtual { if (token.owner != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); _approve(address(0), tokenId, token); unchecked { uint256 nextTokenId = tokenId + 1; if (_exists(nextTokenId)) { TokenData storage nextToken = _tokens[nextTokenId]; if (nextToken.owner == address(0)) { nextToken.owner = token.owner; nextToken.aux = token.aux; } } } TokenData storage newToken = _tokens[tokenId]; newToken.owner = to; newToken.aux = _calculateAux(from, to, tokenId, token.aux); emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } function _calculateAux( address from, address to, uint256 tokenId, bytes12 current ) internal view virtual returns (bytes12) {} function _approve( address to, uint256 tokenId, TokenData memory token ) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(token.owner, to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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 TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
{ "optimizer": { "enabled": true, "runs": 50 }, "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"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenDataQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"flowerHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freePass","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_freePass","type":"address"}],"name":"setFreePass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526003600755660e35fa931a0000600855600a80546001600160a01b03191673fdf1f065ed5097d84cb3b36695d9d70153a8056c1790553480156200004757600080fd5b506040518060400160405280600e81526020016d537072696e6720466c6f7765727360901b8152506040518060400160405280600881526020016729a8232627aba2a960c11b81525060008260029081620000a3919062000296565b506003620000b2838262000296565b5060805250620000c4905033620000e1565b6006805460ff60a01b19169055620000db62000133565b62000362565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200013d62000196565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001793390565b6040516001600160a01b03909116815260200160405180910390a1565b620001aa600654600160a01b900460ff1690565b15620001ef5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200021c57607f821691505b6020821081036200023d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200029157600081815260208120601f850160051c810160208610156200026c5750805b601f850160051c820191505b818110156200028d5782815560010162000278565b5050505b505050565b81516001600160401b03811115620002b257620002b2620001f1565b620002ca81620002c3845462000207565b8462000243565b602080601f831160018114620003025760008415620002e95750858301515b600019600386901b1c1916600185901b1785556200028d565b600085815260208120601f198616915b82811015620003335788860151825594840194600190910190840162000312565b5085821015620003525787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161386a620003856000396000818161134a0152611370015261386a6000f3fe6080604052600436106101c45760003560e01c8063715018a6116100f8578063a22cb46511610090578063a22cb465146104d7578063b88d4fde146104f7578063be985ac914610517578063c4ae316814610537578063c87b56dd1461054c578063e268e4d31461056c578063e8a3d4851461058c578063e985e9c5146105a1578063f2fde38b146105c157600080fd5b8063715018a6146103e45780637e41d835146103f95780638462151c1461040e5780638da5cb5b1461043b57806391b7f5ed14610459578063938e3d7b1461047957806395d89b4114610499578063a035b1fe146104ae578063a0712d68146104c457600080fd5b806332cb6b0c1161016b57806332cb6b0c146102ee5780633ccfd60b1461030457806342842e0e14610319578063449a52f814610339578063453c2310146103595780635c975abb1461036f5780636352211e1461038457806366c5ac0d146103a457806370a08231146103c457600080fd5b806301ffc9a7146101c957806306fdde03146101fe578063081812fc14610220578063095ea7b31461024d57806318160ddd1461026f57806323b872dd1461028e57806325a83582146102ae5780633238f9dc146102ce575b600080fd5b3480156101d557600080fd5b506101e96101e43660046128d3565b6105e1565b60405190151581526020015b60405180910390f35b34801561020a57600080fd5b50610213610633565b6040516101f59190612940565b34801561022c57600080fd5b5061024061023b366004612953565b6106c5565b6040516101f5919061296c565b34801561025957600080fd5b5061026d61026836600461299c565b61070b565b005b34801561027b57600080fd5b506001545b6040519081526020016101f5565b34801561029a57600080fd5b5061026d6102a93660046129c6565b6107bf565b3480156102ba57600080fd5b50600a54610240906001600160a01b031681565b3480156102da57600080fd5b506102806102e9366004612953565b610831565b3480156102fa57600080fd5b506102806107d081565b34801561031057600080fd5b5061026d610889565b34801561032557600080fd5b5061026d6103343660046129c6565b6108ec565b34801561034557600080fd5b5061026d61035436600461299c565b61090c565b34801561036557600080fd5b5061028060075481565b34801561037b57600080fd5b506101e9610940565b34801561039057600080fd5b5061024061039f366004612953565b610950565b3480156103b057600080fd5b5061026d6103bf366004612a02565b610993565b3480156103d057600080fd5b506102806103df366004612a02565b6109bd565b3480156103f057600080fd5b5061026d610a63565b34801561040557600080fd5b50610213610a77565b34801561041a57600080fd5b5061042e610429366004612a02565b610b05565b6040516101f59190612a1d565b34801561044757600080fd5b506006546001600160a01b0316610240565b34801561046557600080fd5b5061026d610474366004612953565b610be9565b34801561048557600080fd5b5061026d610494366004612aec565b610bf6565b3480156104a557600080fd5b50610213610c0a565b3480156104ba57600080fd5b5061028060085481565b61026d6104d2366004612953565b610c19565b3480156104e357600080fd5b5061026d6104f2366004612b34565b610d48565b34801561050357600080fd5b5061026d610512366004612b70565b610ddd565b34801561052357600080fd5b50610213610532366004612953565b610e57565b34801561054357600080fd5b5061026d610e6a565b34801561055857600080fd5b50610213610567366004612953565b610e8e565b34801561057857600080fd5b5061026d610587366004612953565b610f5b565b34801561059857600080fd5b50610213610f68565b3480156105ad57600080fd5b506101e96105bc366004612beb565b610f90565b3480156105cd57600080fd5b5061026d6105dc366004612a02565b610fbe565b60006001600160e01b031982166380ac58cd60e01b148061061257506001600160e01b03198216635b5e139f60e01b145b8061062d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461064290612c1e565b80601f016020809104026020016040519081016040528092919081815260200182805461066e90612c1e565b80156106bb5780601f10610690576101008083540402835291602001916106bb565b820191906000526020600020905b81548152906001019060200180831161069e57829003601f168201915b5050505050905090565b60006106d2826001541190565b6106ef576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061071682611034565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036107705760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610790575061078e8133610f90565b155b156107ae576040516367d9dca160e11b815260040160405180910390fd5b6107b984848461109d565b50505050565b60006107ca82611034565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506108083383836110fe565b61082557604051632ce44b5f60e11b815260040160405180910390fd5b6107b98484848461114f565b60008161083d83611034565b5460405161086c9291600160a01b900460a01b906020019182526001600160a01b0319166020820152602c0190565b604051602081830303815290604052805190602001209050919050565b610891611299565b6040514790600090339083908381818185875af1925050503d80600081146108d5576040519150601f19603f3d011682016040523d82523d6000602084013e6108da565b606091505b50509050806108e857600080fd5b5050565b61090783838360405180602001604052806000815250610ddd565b505050565b610914611299565b6107d08161092160015490565b61092b9190612c6e565b111561093657600080fd5b6108e882826112f3565b600654600160a01b900460ff1690565b600061095d826001541190565b61097a57604051636f96cda160e11b815260040160405180910390fd5b61098382611034565b546001600160a01b031692915050565b61099b611299565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166109e6576040516323d3ad8160e21b815260040160405180910390fd5b60006109f160015490565b905060008060005b83811015610a59576000818152602081905260409020546001600160a01b03168015610a23578092505b866001600160a01b0316836001600160a01b031603610a4857610a4584612c81565b93505b50610a5281612c81565b90506109f9565b5090949350505050565b610a6b611299565b610a756000611451565b565b60098054610a8490612c1e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab090612c1e565b8015610afd5780601f10610ad257610100808354040283529160200191610afd565b820191906000526020600020905b815481529060010190602001808311610ae057829003601f168201915b505050505081565b60606000610b12836109bd565b90506000816001600160401b03811115610b2e57610b2e612a61565b604051908082528060200260200182016040528015610b57578160200160208202803683370190505b509050600160005b8381108015610b7057506107d08211155b15610a59576000610b8561039f600185612c9a565b9050866001600160a01b0316816001600160a01b031603610bd657610bab600184612c9a565b848381518110610bbd57610bbd612cad565b602090810291909101015281610bd281612c81565b9250505b82610be081612c81565b93505050610b5f565b610bf1611299565b600855565b610bfe611299565b60096108e88282612d11565b60606003805461064290612c1e565b610c216114a3565b6107d081610c2e60015490565b610c389190612c6e565b1115610c4357600080fd5b600754811115610c5257600080fd5b60075481610c5f336109bd565b610c699190612c6e565b1115610cad5760405162461bcd60e51b815260206004820152600e60248201526d13585e081b5a5b9d081b1a5b5a5d60921b60448201526064015b60405180910390fd5b600a546040516370a0823160e01b81526001600160a01b03909116906370a0823190610cdd90339060040161296c565b602060405180830381865afa158015610cfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1e9190612dd0565b600003610d3b57610d3b81600854610d369190612de9565b6114eb565b610d4533826112f3565b50565b336001600160a01b03831603610d715760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610de883611034565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b03191660208201529050610e263384836110fe565b610e4357604051632ce44b5f60e11b815260040160405180910390fd5b610e508585858486611549565b5050505050565b606061062d610e6583610831565b611595565b610e72611299565b610e7a610940565b610e8657610a75611735565b610a7561178f565b6060610e9b826001541190565b610ede5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610ca4565b610f35610eea836117cb565b610efe610ef9610e6586610831565b61185d565b610f0f610f0a86610831565b6119af565b604051602001610f2193929190612e1c565b60405160208183030381529060405261185d565b604051602001610f459190612fb1565b6040516020818303038152906040529050919050565b610f63611299565b600755565b60606009604051602001610f7c9190612ff6565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610fc6611299565b6001600160a01b03811661102b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca4565b610d4581611451565b6000611041826001541190565b61105e576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b031661109657600019016000818152602081905260409020915061106e565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b80516000906001600160a01b03858116908216148061112257506111228186610f90565b806111465750846001600160a01b031661113b856106c5565b6001600160a01b0316145b95945050505050565b836001600160a01b031681600001516001600160a01b0316146111845760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0383166111ab57604051633a954ecd60e21b815260040160405180910390fd5b6111b76000838361109d565b600182016111c6816001541190565b1561120957600081815260208190526040902080546001600160a01b0316611207578251602084015160a01c600160a01b026001600160a01b039091161781555b505b5060008281526020818152604090912080546001600160a01b0319166001600160a01b0386161781559082015161124590869086908690611a2a565b815460a09190911c600160a01b026001600160a01b03918216178255604051849186811691908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4610e50565b6006546001600160a01b03163314610a755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca4565b6001600160a01b03821661131957604051622e076360e81b815260040160405180910390fd5b8060000361133a5760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015611443577f0000000000000000000000000000000000000000000000000000000000000000156113a4577f0000000000000000000000000000000000000000000000000000000000000000818161139d5761139d61309b565b06156113a7565b80155b1561140157808201600081815260208190526040812080546001600160a01b0319166001600160a01b038816178155916113e49190879082611a2a565b815460a09190911c600160a01b026001600160a01b039091161790555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101611340565b506001805483019055505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114ab610940565b15610a755760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ca4565b8034111561153c576000336115008334612c9a565b604051600081818185875af1925050503d80600081146108d5576040519150601f19603f3d011682016040523d82523d6000602084013e6108da565b80341015610d4557600080fd5b6115558585858561114f565b6001600160a01b0384163b15158015611577575061157585858584611a93565b155b15610e50576040516368d2bf6b60e11b815260040160405180910390fd5b6060600082306040516020016115ac9291906130b1565b60408051601f198184030181529190528051602090910120905060006115d36064856130cc565b90506000604051602001611630907f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d223020302032303020323030223e00006020820152603e0190565b60405160208183030381529060405290508060405160200161165291906130e0565b6040516020818303038152906040529050806040516020016116749190613147565b6040516020818303038152906040529050604182116116be578061169784611b7b565b6040516020016116a89291906131d1565b604051602081830303815290604052905061170b565b6041821180156116cf575060628211155b156116de578061169784611ca2565b806116e884611eb6565b6040516020016116f99291906131d1565b60405160208183030381529060405290505b8060405160200161171c9190613200565b60408051601f1981840301815291905295945050505050565b61173d6114a3565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117783390565b604051611785919061296c565b60405180910390a1565b61179761202a565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611778565b606060006117d883612075565b60010190506000816001600160401b038111156117f7576117f7612a61565b6040519080825280601f01601f191660200182016040528015611821576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461182b57509392505050565b6060815160000361187c57505060408051602081019091526000815290565b60006040518060600160405280604081526020016137f560409139905060006003845160026118ab9190612c6e565b6118b5919061322a565b6118c0906004612de9565b6001600160401b038111156118d7576118d7612a61565b6040519080825280601f01601f191660200182016040528015611901576020820181803683370190505b509050600182016020820185865187015b8082101561196d576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611912565b5050600386510660018114611989576002811461199c576119a4565b603d6001830353603d60028303536119a4565b603d60018303535b509195945050505050565b6060600082306040516020016119c69291906130b1565b60408051601f198184030181529190528051602090910120905060006119ed6064856130cc565b90506119f88161214b565b611a01836121cf565b604051602001611a1292919061323e565b60405160208183030381529060405292505050919050565b60006001600160a01b03851615611a415781611a88565b60408051602081018590526001600160601b0319606087901b1691810191909152446054820152426074820152609401604051602081830303815290604052805190602001205b90505b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ac89033908990889088906004016132e4565b6020604051808303816000875af1925050508015611b03575060408051601f3d908101601f19168201909252611b0091810190613321565b60015b611b61573d808015611b31576040519150601f19603f3d011682016040523d82523d6000602084013e611b36565b606091505b508051600003611b59576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a8b565b60606000611b8a6008846130cc565b611b95906010612c6e565b90506000611ba58261016861322a565b905060606000611bb4866121cf565b905060005b84811015611c6c5760006002611bd0600a8a6130cc565b611bdb90600a612c6e565b611be5919061322a565b90506000611bf2826117cb565b84611c10611c00868a612de9565b611c0b9060c3612c6e565b6117cb565b604051602001611c229392919061333e565b60405160208183030381529060405290508481604051602001611c469291906131d1565b604051602081830303815290604052945050508080611c6490612c81565b915050611bb9565b5081611c778761285d565b604051602001611c88929190613427565b60408051601f198184030181529190529695505050505050565b6060806000611cb26014856130cc565b611cbd906028612c6e565b90506000601e611cce60028761322a565b611cd891906130cc565b611ce390603c612c6e565b90506000611cf260028461322a565b90506000611cff876121cf565b604051602001611d0f91906134c6565b60405160208183030381529060405290508481604051602001611d339291906131d1565b604051602081830303815290604052945060005b6006811015611df7576000611d6b611d6060028761322a565b611c0b906064612c9a565b611d74856117cb565b611d82611c0b60028961322a565b611d9b611d9086603c612de9565b611c0b90601e612c6e565b604051602001611dae949392919061360d565b60405160208183030381529060405290508681604051602001611dd29291906131d1565b6040516020818303038152906040529650508080611def90612c81565b915050611d47565b506000604051602001611e76907f3c656c6c697073652063783d22313030222063793d22313030222072783d223181527f30222072793d223230222066696c6c3d226f72616e676522207374726f6b653d60208201527911313630b1b5911039ba3937b5b296bbb4b23a341e911891179f60311b6040820152605a0190565b60405160208183030381529060405290508581604051602001611e9a9291906131d1565b60408051601f1981840301815291905298975050505050505050565b6060806000611ec4846121cf565b905060005b6007811015612021576000611edf826005612de9565b611eea906032612c9a565b90506000611ef9836005612de9565b611f04600f896130cc565b611f0f90603c612c6e565b611f199190612c9a565b90506000611f2860028461322a565b905060005b600c81101561200a576000611f66611f46876005612de9565b611f5160028761322a565b611f5c906064612c9a565b611c0b9190612c6e565b611f6f846117cb565b611f7d611c0b60028861322a565b89611fad6002611f8d818d6130cc565b611f9890601e612de9565b611fa2919061322a565b611f5c88601e612de9565b604051602001611fc19594939291906136fc565b60405160208183030381529060405290508781604051602001611fe59291906131d1565b604051602081830303815290604052975050808061200290612c81565b915050611f2d565b50505050808061201990612c81565b915050611ec9565b50909392505050565b612032610940565b610a755760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ca4565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106120b45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b83106120de576904ee2d6d415b85acef8160201b830492506020015b662386f26fc1000083106120fc57662386f26fc10000830492506010015b6305f5e1008310612114576305f5e100830492506008015b612710831061212857612710830492506004015b6064831061213a576064830492506002015b600a831061062d5760010192915050565b60408051808201909152600881526763616d656c6c696160c01b6020820152606090604183116121975750604080518082019091526005815264646169737960d81b602082015261062d565b6041831180156121a8575060628311155b1561062d57506040805180820190915260048152636c696c7960e01b602082015292915050565b604080516019808252610340820190925260609160009190816020015b60608152602001906001900390816121ec5790505090506040518060400160405280600481526020016319dbdb1960e21b8152508160008151811061223357612233612cad565b60200260200101819052506040518060400160405280600681526020016579656c6c6f7760d01b8152508160018151811061227057612270612cad565b60200260200101819052506040518060400160405280600881526020016736b7b1b1b0b9b4b760c11b815250816002815181106122af576122af612cad565b6020026020010181905250604051806040016040528060098152602001683832b0b1b4383ab33360b91b815250816003815181106122ef576122ef612cad565b6020026020010181905250604051806040016040528060088152602001673630bb32b73232b960c11b8152508160048151811061232e5761232e612cad565b60200260200101819052506040518060400160405280600781526020016674686973746c6560c81b8152508160058151811061236c5761236c612cad565b6020026020010181905250604051806040016040528060068152602001651bdc98da1a5960d21b815250816006815181106123a9576123a9612cad565b6020026020010181905250604051806040016040528060088152602001673630bb32b73232b960c11b815250816007815181106123e8576123e8612cad565b60200260200101819052506040518060400160405280600c81526020016b6d656469756d707572706c6560a01b8152508160088151811061242b5761242b612cad565b60200260200101819052506040518060400160405280600a815260200169189b1d595d9a5bdb195d60b21b8152508160098151811061246c5761246c612cad565b602002602001018190525060405180604001604052806006815260200165696e6469676f60d01b81525081600a815181106124a9576124a9612cad565b602002602001018190525060405180604001604052806009815260200168736c617465626c756560b81b81525081600b815181106124e9576124e9612cad565b60200260200101819052506040518060400160405280600c81526020016b6d69646e69676874626c756560a01b81525081600c8151811061252c5761252c612cad565b6020026020010181905250604051806040016040528060098152602001683937b9bcb13937bbb760b91b81525081600d8151811061256c5761256c612cad565b602002602001018190525060405180604001604052806005815260200164776869746560d81b81525081600e815181106125a8576125a8612cad565b602002602001018190525060405180604001604052806009815260200168616c696365626c756560b81b81525081600f815181106125e8576125e8612cad565b602002602001018190525060405180604001604052806005815260200164617a75726560d81b8152508160108151811061262457612624612cad565b6020026020010181905250604051806040016040528060098152602001686d69737479726f736560b81b8152508160118151811061266457612664612cad565b60200260200101819052506040518060400160405280600a8152602001691b1a59da1d18dbdc985b60b21b815250816012815181106126a5576126a5612cad565b60200260200101819052506040518060400160405280600781526020016631b934b6b9b7b760c91b815250816013815181106126e3576126e3612cad565b60200260200101819052506040518060400160405280600681526020016539b0b636b7b760d11b8152508160148151811061272057612720612cad565b60200260200101819052506040518060400160405280600481526020016370696e6b60e01b8152508160158151811061275b5761275b612cad565b60200260200101819052506040518060400160405280600f81526020016e1b59591a5d5b5d9a5bdb195d1c9959608a1b815250816016815181106127a1576127a1612cad565b602002602001018190525060405180604001604052806006815260200165746f6d61746f60d01b815250816017815181106127de576127de612cad565b60200260200101819052506040518060400160405280600b81526020016a3634b3b43a39b0b636b7b760a91b8152508160188151811061282057612820612cad565b602090810291909101015260006128386019856130cc565b905081818151811061284c5761284c612cad565b602002602001015192505050919050565b60606000600361286e6019856130cc565b10612897576040518060400160405280600681526020016579656c6c6f7760d01b8152506128b6565b60405180604001604052806005815260200164626c61636b60d81b8152505b9392505050565b6001600160e01b031981168114610d4557600080fd5b6000602082840312156128e557600080fd5b81356128b6816128bd565b60005b8381101561290b5781810151838201526020016128f3565b50506000910152565b6000815180845261292c8160208601602086016128f0565b601f01601f19169290920160200192915050565b6020815260006128b66020830184612914565b60006020828403121561296557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b038116811461299757600080fd5b919050565b600080604083850312156129af57600080fd5b6129b883612980565b946020939093013593505050565b6000806000606084860312156129db57600080fd5b6129e484612980565b92506129f260208501612980565b9150604084013590509250925092565b600060208284031215612a1457600080fd5b6128b682612980565b6020808252825182820181905260009190848201906040850190845b81811015612a5557835183529284019291840191600101612a39565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612a9157612a91612a61565b604051601f8501601f19908116603f01168101908282118183101715612ab957612ab9612a61565b81604052809350858152868686011115612ad257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612afe57600080fd5b81356001600160401b03811115612b1457600080fd5b8201601f81018413612b2557600080fd5b611a8b84823560208401612a77565b60008060408385031215612b4757600080fd5b612b5083612980565b915060208301358015158114612b6557600080fd5b809150509250929050565b60008060008060808587031215612b8657600080fd5b612b8f85612980565b9350612b9d60208601612980565b92506040850135915060608501356001600160401b03811115612bbf57600080fd5b8501601f81018713612bd057600080fd5b612bdf87823560208401612a77565b91505092959194509250565b60008060408385031215612bfe57600080fd5b612c0783612980565b9150612c1560208401612980565b90509250929050565b600181811c90821680612c3257607f821691505b602082108103612c5257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561062d5761062d612c58565b600060018201612c9357612c93612c58565b5060010190565b8181038181111561062d5761062d612c58565b634e487b7160e01b600052603260045260246000fd5b601f82111561090757600081815260208120601f850160051c81016020861015612cea5750805b601f850160051c820191505b81811015612d0957828155600101612cf6565b505050505050565b81516001600160401b03811115612d2a57612d2a612a61565b612d3e81612d388454612c1e565b84612cc3565b602080601f831160018114612d735760008415612d5b5750858301515b600019600386901b1c1916600185901b178555612d09565b600085815260208120601f198616915b82811015612da257888601518255948401946001909101908401612d83565b5085821015612dc05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215612de257600080fd5b5051919050565b808202811582820484141761062d5761062d612c58565b60008151612e128185602086016128f0565b9290920192915050565b717b226e616d65223a2022466c6f776572202360701b81528351600090612e4a8160128501602089016128f0565b7f222c20226465736372697074696f6e223a2022537072696e6720466c6f7765726012918401918201527f73206973206120636f6c6c656374696f6e206f662031303025206f6e2d63686160328201527f696e2067656e6572617469766520666c6f77657273212054686520666c6f776560528201527f7220747261697473206172652072616e646f6d6c792067656e6572617465642060728201527f6174206d696e742c207061727469616c6c79207365656465642077697468207460928201527f6865206d696e7465727320616464726573732e222c2022696d616765223a202260b28201527919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b60d28201528451612f688160ec8401602089016128f0565b612fa6612f99612f9360ec848601016f1116101130ba3a3934b13aba32b9911d60811b815260100190565b87612e00565b607d60f81b815260010190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612fe981601d8501602087016128f0565b91909101601d0192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d6000845461302a81612c1e565b60018281168015613042576001811461305b5761308e565b60ff19841688870152821515830288018601945061308e565b8860005260208060002060005b858110156130835781548b82018a0152908401908201613068565b505050858389010194505b5092979650505050505050565b634e487b7160e01b600052601260045260246000fd5b91825260601b6001600160601b031916602082015260340190565b6000826130db576130db61309b565b500690565b600082516130f28184602087016128f0565b7f3c7265637420783d22302220793d2230222077696474683d22323030222068659201918252507f696768743d22323030222066696c6c3d226c69676874626c7565222f3e0000006020820152603d01919050565b600082516131598184602087016128f0565b7f3c7265637420783d2239372220793d22313030222077696474683d22362220689201918252507f65696768743d22313030222066696c6c3d22677265656e22207374726f6b653d60208201527911313630b1b5911039ba3937b5b296bbb4b23a341e911891179f60311b6040820152605a01919050565b600083516131e38184602088016128f0565b8351908301906131f78183602088016128f0565b01949350505050565b600082516132128184602087016128f0565b651e17b9bb339f60d11b920191825250600601919050565b6000826132395761323961309b565b500490565b7f5b7b2274726169745f74797065223a22466c6f776572222c2276616c7565223a8152601160f91b6020820152600083516132808160218501602088016128f0565b7f227d2c7b2274726169745f74797065223a22436f6c6f72222c2276616c756522602191840191820152611d1160f11b604182015283516132c88160438401602088016128f0565b62227d5d60e81b60439290910191820152604601949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061331790830184612914565b9695505050505050565b60006020828403121561333357600080fd5b81516128b6816128bd565b7f3c656c6c697073652063783d22313030222063793d223735222072783d22000081526000845161337681601e8501602089016128f0565b6f1110393c9e91191a91103334b6361e9160811b601e9184019182015284516133a681602e8401602089016128f0565b7f22207374726f6b653d22626c61636b22207374726f6b652d77696474683d2231602e92909101918201527304440e8e4c2dce6ccdee4da7a44e4dee8c2e8ca560631b604e82015283516134018160628401602088016128f0565b6b10189818101898181491179f60a11b60629290910191820152606e0195945050505050565b600083516134398184602088016128f0565b80830190507f3c636972636c652063783d22313030222063793d223130302220723d22313522815266103334b6361e9160c91b602082015283516134848160278401602088016128f0565b7f22207374726f6b653d22626c61636b22207374726f6b652d77696474683d2231602792909101918201526211179f60e91b6047820152604a01949350505050565b7f3c646566733e3c72616469616c4772616469656e742069643d22706574616c4781527f72616469656e74222078313d223025222079313d223025222078323d2231303060208201527f25222079323d223025223e3c73746f70206f66667365743d223530252220737460408201526f3cb6329e9139ba37b816b1b7b637b91d60811b6060820152600082516135638160708501602087016128f0565b7f222f3e3c73746f70206f66667365743d223130302522207374796c653d22737460709390910192830152507f6f702d636f6c6f723a7768697465222f3e3c2f72616469616c4772616469656e6090820152683a1f1e17b232b3399f60b91b60b082015260b901919050565b7f20313030203130302922207374726f6b653d22626c61636b22207374726f6b6581526b16bbb4b23a341e911891179f60a11b6020820152602c0190565b751e32b63634b839b29031bc1e91189818111031bc9e9160511b8152845160009061363f816016850160208a016128f0565b651110393c1e9160d11b601691840191820152855161366581601c840160208a016128f0565b651110393c9e9160d11b601c9290910191820152845161368c8160228401602089016128f0565b7f222066696c6c3d2275726c2823706574616c4772616469656e74292220747261602292909101918201526e0dce6ccdee4da7a44e4dee8c2e8ca5608b1b604282015283516136e28160518401602088016128f0565b6136f06051828401016135cf565b98975050505050505050565b751e32b63634b839b29031bc1e91189818111031bc9e9160511b8152855160009061372e816016850160208b016128f0565b651110393c1e9160d11b601691840191820152865161375481601c840160208b016128f0565b651110393c9e9160d11b601c9290910191820152855161377b816022840160208a016128f0565b6711103334b6361e9160c11b6022929091019182015284516137a481602a8401602089016128f0565b7304440e8e4c2dce6ccdee4da7a44e4dee8c2e8ca560631b602a929091019182015283516137d981603e8401602088016128f0565b6137e7603e828401016135cf565b999850505050505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208af02e9f11b576cb77005b833acb3c425ff3285ac94f3c338dd28e3f4482891f64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101c45760003560e01c8063715018a6116100f8578063a22cb46511610090578063a22cb465146104d7578063b88d4fde146104f7578063be985ac914610517578063c4ae316814610537578063c87b56dd1461054c578063e268e4d31461056c578063e8a3d4851461058c578063e985e9c5146105a1578063f2fde38b146105c157600080fd5b8063715018a6146103e45780637e41d835146103f95780638462151c1461040e5780638da5cb5b1461043b57806391b7f5ed14610459578063938e3d7b1461047957806395d89b4114610499578063a035b1fe146104ae578063a0712d68146104c457600080fd5b806332cb6b0c1161016b57806332cb6b0c146102ee5780633ccfd60b1461030457806342842e0e14610319578063449a52f814610339578063453c2310146103595780635c975abb1461036f5780636352211e1461038457806366c5ac0d146103a457806370a08231146103c457600080fd5b806301ffc9a7146101c957806306fdde03146101fe578063081812fc14610220578063095ea7b31461024d57806318160ddd1461026f57806323b872dd1461028e57806325a83582146102ae5780633238f9dc146102ce575b600080fd5b3480156101d557600080fd5b506101e96101e43660046128d3565b6105e1565b60405190151581526020015b60405180910390f35b34801561020a57600080fd5b50610213610633565b6040516101f59190612940565b34801561022c57600080fd5b5061024061023b366004612953565b6106c5565b6040516101f5919061296c565b34801561025957600080fd5b5061026d61026836600461299c565b61070b565b005b34801561027b57600080fd5b506001545b6040519081526020016101f5565b34801561029a57600080fd5b5061026d6102a93660046129c6565b6107bf565b3480156102ba57600080fd5b50600a54610240906001600160a01b031681565b3480156102da57600080fd5b506102806102e9366004612953565b610831565b3480156102fa57600080fd5b506102806107d081565b34801561031057600080fd5b5061026d610889565b34801561032557600080fd5b5061026d6103343660046129c6565b6108ec565b34801561034557600080fd5b5061026d61035436600461299c565b61090c565b34801561036557600080fd5b5061028060075481565b34801561037b57600080fd5b506101e9610940565b34801561039057600080fd5b5061024061039f366004612953565b610950565b3480156103b057600080fd5b5061026d6103bf366004612a02565b610993565b3480156103d057600080fd5b506102806103df366004612a02565b6109bd565b3480156103f057600080fd5b5061026d610a63565b34801561040557600080fd5b50610213610a77565b34801561041a57600080fd5b5061042e610429366004612a02565b610b05565b6040516101f59190612a1d565b34801561044757600080fd5b506006546001600160a01b0316610240565b34801561046557600080fd5b5061026d610474366004612953565b610be9565b34801561048557600080fd5b5061026d610494366004612aec565b610bf6565b3480156104a557600080fd5b50610213610c0a565b3480156104ba57600080fd5b5061028060085481565b61026d6104d2366004612953565b610c19565b3480156104e357600080fd5b5061026d6104f2366004612b34565b610d48565b34801561050357600080fd5b5061026d610512366004612b70565b610ddd565b34801561052357600080fd5b50610213610532366004612953565b610e57565b34801561054357600080fd5b5061026d610e6a565b34801561055857600080fd5b50610213610567366004612953565b610e8e565b34801561057857600080fd5b5061026d610587366004612953565b610f5b565b34801561059857600080fd5b50610213610f68565b3480156105ad57600080fd5b506101e96105bc366004612beb565b610f90565b3480156105cd57600080fd5b5061026d6105dc366004612a02565b610fbe565b60006001600160e01b031982166380ac58cd60e01b148061061257506001600160e01b03198216635b5e139f60e01b145b8061062d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461064290612c1e565b80601f016020809104026020016040519081016040528092919081815260200182805461066e90612c1e565b80156106bb5780601f10610690576101008083540402835291602001916106bb565b820191906000526020600020905b81548152906001019060200180831161069e57829003601f168201915b5050505050905090565b60006106d2826001541190565b6106ef576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061071682611034565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036107705760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610790575061078e8133610f90565b155b156107ae576040516367d9dca160e11b815260040160405180910390fd5b6107b984848461109d565b50505050565b60006107ca82611034565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506108083383836110fe565b61082557604051632ce44b5f60e11b815260040160405180910390fd5b6107b98484848461114f565b60008161083d83611034565b5460405161086c9291600160a01b900460a01b906020019182526001600160a01b0319166020820152602c0190565b604051602081830303815290604052805190602001209050919050565b610891611299565b6040514790600090339083908381818185875af1925050503d80600081146108d5576040519150601f19603f3d011682016040523d82523d6000602084013e6108da565b606091505b50509050806108e857600080fd5b5050565b61090783838360405180602001604052806000815250610ddd565b505050565b610914611299565b6107d08161092160015490565b61092b9190612c6e565b111561093657600080fd5b6108e882826112f3565b600654600160a01b900460ff1690565b600061095d826001541190565b61097a57604051636f96cda160e11b815260040160405180910390fd5b61098382611034565b546001600160a01b031692915050565b61099b611299565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166109e6576040516323d3ad8160e21b815260040160405180910390fd5b60006109f160015490565b905060008060005b83811015610a59576000818152602081905260409020546001600160a01b03168015610a23578092505b866001600160a01b0316836001600160a01b031603610a4857610a4584612c81565b93505b50610a5281612c81565b90506109f9565b5090949350505050565b610a6b611299565b610a756000611451565b565b60098054610a8490612c1e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab090612c1e565b8015610afd5780601f10610ad257610100808354040283529160200191610afd565b820191906000526020600020905b815481529060010190602001808311610ae057829003601f168201915b505050505081565b60606000610b12836109bd565b90506000816001600160401b03811115610b2e57610b2e612a61565b604051908082528060200260200182016040528015610b57578160200160208202803683370190505b509050600160005b8381108015610b7057506107d08211155b15610a59576000610b8561039f600185612c9a565b9050866001600160a01b0316816001600160a01b031603610bd657610bab600184612c9a565b848381518110610bbd57610bbd612cad565b602090810291909101015281610bd281612c81565b9250505b82610be081612c81565b93505050610b5f565b610bf1611299565b600855565b610bfe611299565b60096108e88282612d11565b60606003805461064290612c1e565b610c216114a3565b6107d081610c2e60015490565b610c389190612c6e565b1115610c4357600080fd5b600754811115610c5257600080fd5b60075481610c5f336109bd565b610c699190612c6e565b1115610cad5760405162461bcd60e51b815260206004820152600e60248201526d13585e081b5a5b9d081b1a5b5a5d60921b60448201526064015b60405180910390fd5b600a546040516370a0823160e01b81526001600160a01b03909116906370a0823190610cdd90339060040161296c565b602060405180830381865afa158015610cfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1e9190612dd0565b600003610d3b57610d3b81600854610d369190612de9565b6114eb565b610d4533826112f3565b50565b336001600160a01b03831603610d715760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610de883611034565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b03191660208201529050610e263384836110fe565b610e4357604051632ce44b5f60e11b815260040160405180910390fd5b610e508585858486611549565b5050505050565b606061062d610e6583610831565b611595565b610e72611299565b610e7a610940565b610e8657610a75611735565b610a7561178f565b6060610e9b826001541190565b610ede5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610ca4565b610f35610eea836117cb565b610efe610ef9610e6586610831565b61185d565b610f0f610f0a86610831565b6119af565b604051602001610f2193929190612e1c565b60405160208183030381529060405261185d565b604051602001610f459190612fb1565b6040516020818303038152906040529050919050565b610f63611299565b600755565b60606009604051602001610f7c9190612ff6565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610fc6611299565b6001600160a01b03811661102b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca4565b610d4581611451565b6000611041826001541190565b61105e576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b031661109657600019016000818152602081905260409020915061106e565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b80516000906001600160a01b03858116908216148061112257506111228186610f90565b806111465750846001600160a01b031661113b856106c5565b6001600160a01b0316145b95945050505050565b836001600160a01b031681600001516001600160a01b0316146111845760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0383166111ab57604051633a954ecd60e21b815260040160405180910390fd5b6111b76000838361109d565b600182016111c6816001541190565b1561120957600081815260208190526040902080546001600160a01b0316611207578251602084015160a01c600160a01b026001600160a01b039091161781555b505b5060008281526020818152604090912080546001600160a01b0319166001600160a01b0386161781559082015161124590869086908690611a2a565b815460a09190911c600160a01b026001600160a01b03918216178255604051849186811691908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4610e50565b6006546001600160a01b03163314610a755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca4565b6001600160a01b03821661131957604051622e076360e81b815260040160405180910390fd5b8060000361133a5760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015611443577f0000000000000000000000000000000000000000000000000000000000000000156113a4577f0000000000000000000000000000000000000000000000000000000000000000818161139d5761139d61309b565b06156113a7565b80155b1561140157808201600081815260208190526040812080546001600160a01b0319166001600160a01b038816178155916113e49190879082611a2a565b815460a09190911c600160a01b026001600160a01b039091161790555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101611340565b506001805483019055505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114ab610940565b15610a755760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ca4565b8034111561153c576000336115008334612c9a565b604051600081818185875af1925050503d80600081146108d5576040519150601f19603f3d011682016040523d82523d6000602084013e6108da565b80341015610d4557600080fd5b6115558585858561114f565b6001600160a01b0384163b15158015611577575061157585858584611a93565b155b15610e50576040516368d2bf6b60e11b815260040160405180910390fd5b6060600082306040516020016115ac9291906130b1565b60408051601f198184030181529190528051602090910120905060006115d36064856130cc565b90506000604051602001611630907f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d223020302032303020323030223e00006020820152603e0190565b60405160208183030381529060405290508060405160200161165291906130e0565b6040516020818303038152906040529050806040516020016116749190613147565b6040516020818303038152906040529050604182116116be578061169784611b7b565b6040516020016116a89291906131d1565b604051602081830303815290604052905061170b565b6041821180156116cf575060628211155b156116de578061169784611ca2565b806116e884611eb6565b6040516020016116f99291906131d1565b60405160208183030381529060405290505b8060405160200161171c9190613200565b60408051601f1981840301815291905295945050505050565b61173d6114a3565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117783390565b604051611785919061296c565b60405180910390a1565b61179761202a565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611778565b606060006117d883612075565b60010190506000816001600160401b038111156117f7576117f7612a61565b6040519080825280601f01601f191660200182016040528015611821576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461182b57509392505050565b6060815160000361187c57505060408051602081019091526000815290565b60006040518060600160405280604081526020016137f560409139905060006003845160026118ab9190612c6e565b6118b5919061322a565b6118c0906004612de9565b6001600160401b038111156118d7576118d7612a61565b6040519080825280601f01601f191660200182016040528015611901576020820181803683370190505b509050600182016020820185865187015b8082101561196d576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611912565b5050600386510660018114611989576002811461199c576119a4565b603d6001830353603d60028303536119a4565b603d60018303535b509195945050505050565b6060600082306040516020016119c69291906130b1565b60408051601f198184030181529190528051602090910120905060006119ed6064856130cc565b90506119f88161214b565b611a01836121cf565b604051602001611a1292919061323e565b60405160208183030381529060405292505050919050565b60006001600160a01b03851615611a415781611a88565b60408051602081018590526001600160601b0319606087901b1691810191909152446054820152426074820152609401604051602081830303815290604052805190602001205b90505b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ac89033908990889088906004016132e4565b6020604051808303816000875af1925050508015611b03575060408051601f3d908101601f19168201909252611b0091810190613321565b60015b611b61573d808015611b31576040519150601f19603f3d011682016040523d82523d6000602084013e611b36565b606091505b508051600003611b59576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a8b565b60606000611b8a6008846130cc565b611b95906010612c6e565b90506000611ba58261016861322a565b905060606000611bb4866121cf565b905060005b84811015611c6c5760006002611bd0600a8a6130cc565b611bdb90600a612c6e565b611be5919061322a565b90506000611bf2826117cb565b84611c10611c00868a612de9565b611c0b9060c3612c6e565b6117cb565b604051602001611c229392919061333e565b60405160208183030381529060405290508481604051602001611c469291906131d1565b604051602081830303815290604052945050508080611c6490612c81565b915050611bb9565b5081611c778761285d565b604051602001611c88929190613427565b60408051601f198184030181529190529695505050505050565b6060806000611cb26014856130cc565b611cbd906028612c6e565b90506000601e611cce60028761322a565b611cd891906130cc565b611ce390603c612c6e565b90506000611cf260028461322a565b90506000611cff876121cf565b604051602001611d0f91906134c6565b60405160208183030381529060405290508481604051602001611d339291906131d1565b604051602081830303815290604052945060005b6006811015611df7576000611d6b611d6060028761322a565b611c0b906064612c9a565b611d74856117cb565b611d82611c0b60028961322a565b611d9b611d9086603c612de9565b611c0b90601e612c6e565b604051602001611dae949392919061360d565b60405160208183030381529060405290508681604051602001611dd29291906131d1565b6040516020818303038152906040529650508080611def90612c81565b915050611d47565b506000604051602001611e76907f3c656c6c697073652063783d22313030222063793d22313030222072783d223181527f30222072793d223230222066696c6c3d226f72616e676522207374726f6b653d60208201527911313630b1b5911039ba3937b5b296bbb4b23a341e911891179f60311b6040820152605a0190565b60405160208183030381529060405290508581604051602001611e9a9291906131d1565b60408051601f1981840301815291905298975050505050505050565b6060806000611ec4846121cf565b905060005b6007811015612021576000611edf826005612de9565b611eea906032612c9a565b90506000611ef9836005612de9565b611f04600f896130cc565b611f0f90603c612c6e565b611f199190612c9a565b90506000611f2860028461322a565b905060005b600c81101561200a576000611f66611f46876005612de9565b611f5160028761322a565b611f5c906064612c9a565b611c0b9190612c6e565b611f6f846117cb565b611f7d611c0b60028861322a565b89611fad6002611f8d818d6130cc565b611f9890601e612de9565b611fa2919061322a565b611f5c88601e612de9565b604051602001611fc19594939291906136fc565b60405160208183030381529060405290508781604051602001611fe59291906131d1565b604051602081830303815290604052975050808061200290612c81565b915050611f2d565b50505050808061201990612c81565b915050611ec9565b50909392505050565b612032610940565b610a755760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ca4565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106120b45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b83106120de576904ee2d6d415b85acef8160201b830492506020015b662386f26fc1000083106120fc57662386f26fc10000830492506010015b6305f5e1008310612114576305f5e100830492506008015b612710831061212857612710830492506004015b6064831061213a576064830492506002015b600a831061062d5760010192915050565b60408051808201909152600881526763616d656c6c696160c01b6020820152606090604183116121975750604080518082019091526005815264646169737960d81b602082015261062d565b6041831180156121a8575060628311155b1561062d57506040805180820190915260048152636c696c7960e01b602082015292915050565b604080516019808252610340820190925260609160009190816020015b60608152602001906001900390816121ec5790505090506040518060400160405280600481526020016319dbdb1960e21b8152508160008151811061223357612233612cad565b60200260200101819052506040518060400160405280600681526020016579656c6c6f7760d01b8152508160018151811061227057612270612cad565b60200260200101819052506040518060400160405280600881526020016736b7b1b1b0b9b4b760c11b815250816002815181106122af576122af612cad565b6020026020010181905250604051806040016040528060098152602001683832b0b1b4383ab33360b91b815250816003815181106122ef576122ef612cad565b6020026020010181905250604051806040016040528060088152602001673630bb32b73232b960c11b8152508160048151811061232e5761232e612cad565b60200260200101819052506040518060400160405280600781526020016674686973746c6560c81b8152508160058151811061236c5761236c612cad565b6020026020010181905250604051806040016040528060068152602001651bdc98da1a5960d21b815250816006815181106123a9576123a9612cad565b6020026020010181905250604051806040016040528060088152602001673630bb32b73232b960c11b815250816007815181106123e8576123e8612cad565b60200260200101819052506040518060400160405280600c81526020016b6d656469756d707572706c6560a01b8152508160088151811061242b5761242b612cad565b60200260200101819052506040518060400160405280600a815260200169189b1d595d9a5bdb195d60b21b8152508160098151811061246c5761246c612cad565b602002602001018190525060405180604001604052806006815260200165696e6469676f60d01b81525081600a815181106124a9576124a9612cad565b602002602001018190525060405180604001604052806009815260200168736c617465626c756560b81b81525081600b815181106124e9576124e9612cad565b60200260200101819052506040518060400160405280600c81526020016b6d69646e69676874626c756560a01b81525081600c8151811061252c5761252c612cad565b6020026020010181905250604051806040016040528060098152602001683937b9bcb13937bbb760b91b81525081600d8151811061256c5761256c612cad565b602002602001018190525060405180604001604052806005815260200164776869746560d81b81525081600e815181106125a8576125a8612cad565b602002602001018190525060405180604001604052806009815260200168616c696365626c756560b81b81525081600f815181106125e8576125e8612cad565b602002602001018190525060405180604001604052806005815260200164617a75726560d81b8152508160108151811061262457612624612cad565b6020026020010181905250604051806040016040528060098152602001686d69737479726f736560b81b8152508160118151811061266457612664612cad565b60200260200101819052506040518060400160405280600a8152602001691b1a59da1d18dbdc985b60b21b815250816012815181106126a5576126a5612cad565b60200260200101819052506040518060400160405280600781526020016631b934b6b9b7b760c91b815250816013815181106126e3576126e3612cad565b60200260200101819052506040518060400160405280600681526020016539b0b636b7b760d11b8152508160148151811061272057612720612cad565b60200260200101819052506040518060400160405280600481526020016370696e6b60e01b8152508160158151811061275b5761275b612cad565b60200260200101819052506040518060400160405280600f81526020016e1b59591a5d5b5d9a5bdb195d1c9959608a1b815250816016815181106127a1576127a1612cad565b602002602001018190525060405180604001604052806006815260200165746f6d61746f60d01b815250816017815181106127de576127de612cad565b60200260200101819052506040518060400160405280600b81526020016a3634b3b43a39b0b636b7b760a91b8152508160188151811061282057612820612cad565b602090810291909101015260006128386019856130cc565b905081818151811061284c5761284c612cad565b602002602001015192505050919050565b60606000600361286e6019856130cc565b10612897576040518060400160405280600681526020016579656c6c6f7760d01b8152506128b6565b60405180604001604052806005815260200164626c61636b60d81b8152505b9392505050565b6001600160e01b031981168114610d4557600080fd5b6000602082840312156128e557600080fd5b81356128b6816128bd565b60005b8381101561290b5781810151838201526020016128f3565b50506000910152565b6000815180845261292c8160208601602086016128f0565b601f01601f19169290920160200192915050565b6020815260006128b66020830184612914565b60006020828403121561296557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b038116811461299757600080fd5b919050565b600080604083850312156129af57600080fd5b6129b883612980565b946020939093013593505050565b6000806000606084860312156129db57600080fd5b6129e484612980565b92506129f260208501612980565b9150604084013590509250925092565b600060208284031215612a1457600080fd5b6128b682612980565b6020808252825182820181905260009190848201906040850190845b81811015612a5557835183529284019291840191600101612a39565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612a9157612a91612a61565b604051601f8501601f19908116603f01168101908282118183101715612ab957612ab9612a61565b81604052809350858152868686011115612ad257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612afe57600080fd5b81356001600160401b03811115612b1457600080fd5b8201601f81018413612b2557600080fd5b611a8b84823560208401612a77565b60008060408385031215612b4757600080fd5b612b5083612980565b915060208301358015158114612b6557600080fd5b809150509250929050565b60008060008060808587031215612b8657600080fd5b612b8f85612980565b9350612b9d60208601612980565b92506040850135915060608501356001600160401b03811115612bbf57600080fd5b8501601f81018713612bd057600080fd5b612bdf87823560208401612a77565b91505092959194509250565b60008060408385031215612bfe57600080fd5b612c0783612980565b9150612c1560208401612980565b90509250929050565b600181811c90821680612c3257607f821691505b602082108103612c5257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561062d5761062d612c58565b600060018201612c9357612c93612c58565b5060010190565b8181038181111561062d5761062d612c58565b634e487b7160e01b600052603260045260246000fd5b601f82111561090757600081815260208120601f850160051c81016020861015612cea5750805b601f850160051c820191505b81811015612d0957828155600101612cf6565b505050505050565b81516001600160401b03811115612d2a57612d2a612a61565b612d3e81612d388454612c1e565b84612cc3565b602080601f831160018114612d735760008415612d5b5750858301515b600019600386901b1c1916600185901b178555612d09565b600085815260208120601f198616915b82811015612da257888601518255948401946001909101908401612d83565b5085821015612dc05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215612de257600080fd5b5051919050565b808202811582820484141761062d5761062d612c58565b60008151612e128185602086016128f0565b9290920192915050565b717b226e616d65223a2022466c6f776572202360701b81528351600090612e4a8160128501602089016128f0565b7f222c20226465736372697074696f6e223a2022537072696e6720466c6f7765726012918401918201527f73206973206120636f6c6c656374696f6e206f662031303025206f6e2d63686160328201527f696e2067656e6572617469766520666c6f77657273212054686520666c6f776560528201527f7220747261697473206172652072616e646f6d6c792067656e6572617465642060728201527f6174206d696e742c207061727469616c6c79207365656465642077697468207460928201527f6865206d696e7465727320616464726573732e222c2022696d616765223a202260b28201527919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b60d28201528451612f688160ec8401602089016128f0565b612fa6612f99612f9360ec848601016f1116101130ba3a3934b13aba32b9911d60811b815260100190565b87612e00565b607d60f81b815260010190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612fe981601d8501602087016128f0565b91909101601d0192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d6000845461302a81612c1e565b60018281168015613042576001811461305b5761308e565b60ff19841688870152821515830288018601945061308e565b8860005260208060002060005b858110156130835781548b82018a0152908401908201613068565b505050858389010194505b5092979650505050505050565b634e487b7160e01b600052601260045260246000fd5b91825260601b6001600160601b031916602082015260340190565b6000826130db576130db61309b565b500690565b600082516130f28184602087016128f0565b7f3c7265637420783d22302220793d2230222077696474683d22323030222068659201918252507f696768743d22323030222066696c6c3d226c69676874626c7565222f3e0000006020820152603d01919050565b600082516131598184602087016128f0565b7f3c7265637420783d2239372220793d22313030222077696474683d22362220689201918252507f65696768743d22313030222066696c6c3d22677265656e22207374726f6b653d60208201527911313630b1b5911039ba3937b5b296bbb4b23a341e911891179f60311b6040820152605a01919050565b600083516131e38184602088016128f0565b8351908301906131f78183602088016128f0565b01949350505050565b600082516132128184602087016128f0565b651e17b9bb339f60d11b920191825250600601919050565b6000826132395761323961309b565b500490565b7f5b7b2274726169745f74797065223a22466c6f776572222c2276616c7565223a8152601160f91b6020820152600083516132808160218501602088016128f0565b7f227d2c7b2274726169745f74797065223a22436f6c6f72222c2276616c756522602191840191820152611d1160f11b604182015283516132c88160438401602088016128f0565b62227d5d60e81b60439290910191820152604601949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061331790830184612914565b9695505050505050565b60006020828403121561333357600080fd5b81516128b6816128bd565b7f3c656c6c697073652063783d22313030222063793d223735222072783d22000081526000845161337681601e8501602089016128f0565b6f1110393c9e91191a91103334b6361e9160811b601e9184019182015284516133a681602e8401602089016128f0565b7f22207374726f6b653d22626c61636b22207374726f6b652d77696474683d2231602e92909101918201527304440e8e4c2dce6ccdee4da7a44e4dee8c2e8ca560631b604e82015283516134018160628401602088016128f0565b6b10189818101898181491179f60a11b60629290910191820152606e0195945050505050565b600083516134398184602088016128f0565b80830190507f3c636972636c652063783d22313030222063793d223130302220723d22313522815266103334b6361e9160c91b602082015283516134848160278401602088016128f0565b7f22207374726f6b653d22626c61636b22207374726f6b652d77696474683d2231602792909101918201526211179f60e91b6047820152604a01949350505050565b7f3c646566733e3c72616469616c4772616469656e742069643d22706574616c4781527f72616469656e74222078313d223025222079313d223025222078323d2231303060208201527f25222079323d223025223e3c73746f70206f66667365743d223530252220737460408201526f3cb6329e9139ba37b816b1b7b637b91d60811b6060820152600082516135638160708501602087016128f0565b7f222f3e3c73746f70206f66667365743d223130302522207374796c653d22737460709390910192830152507f6f702d636f6c6f723a7768697465222f3e3c2f72616469616c4772616469656e6090820152683a1f1e17b232b3399f60b91b60b082015260b901919050565b7f20313030203130302922207374726f6b653d22626c61636b22207374726f6b6581526b16bbb4b23a341e911891179f60a11b6020820152602c0190565b751e32b63634b839b29031bc1e91189818111031bc9e9160511b8152845160009061363f816016850160208a016128f0565b651110393c1e9160d11b601691840191820152855161366581601c840160208a016128f0565b651110393c9e9160d11b601c9290910191820152845161368c8160228401602089016128f0565b7f222066696c6c3d2275726c2823706574616c4772616469656e74292220747261602292909101918201526e0dce6ccdee4da7a44e4dee8c2e8ca5608b1b604282015283516136e28160518401602088016128f0565b6136f06051828401016135cf565b98975050505050505050565b751e32b63634b839b29031bc1e91189818111031bc9e9160511b8152855160009061372e816016850160208b016128f0565b651110393c1e9160d11b601691840191820152865161375481601c840160208b016128f0565b651110393c9e9160d11b601c9290910191820152855161377b816022840160208a016128f0565b6711103334b6361e9160c11b6022929091019182015284516137a481602a8401602089016128f0565b7304440e8e4c2dce6ccdee4da7a44e4dee8c2e8ca560631b602a929091019182015283516137d981603e8401602088016128f0565b6137e7603e828401016135cf565b999850505050505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208af02e9f11b576cb77005b833acb3c425ff3285ac94f3c338dd28e3f4482891f64736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.